ultyt/assets/index-5f881a31.js

133 lines
420 KiB
JavaScript

function Q1(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 Ul=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Em(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var km={exports:{}},la={},Tm={exports:{}},q={};/**
* @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 di=Symbol.for("react.element"),X1=Symbol.for("react.portal"),Y1=Symbol.for("react.fragment"),q1=Symbol.for("react.strict_mode"),J1=Symbol.for("react.profiler"),Z1=Symbol.for("react.provider"),eb=Symbol.for("react.context"),tb=Symbol.for("react.forward_ref"),nb=Symbol.for("react.suspense"),rb=Symbol.for("react.memo"),ob=Symbol.for("react.lazy"),mf=Symbol.iterator;function ib(e){return e===null||typeof e!="object"?null:(e=mf&&e[mf]||e["@@iterator"],typeof e=="function"?e:null)}var Rm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Nm=Object.assign,$m={};function qr(e,t,n){this.props=e,this.context=t,this.refs=$m,this.updater=n||Rm}qr.prototype.isReactComponent={};qr.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")};qr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Mm(){}Mm.prototype=qr.prototype;function kc(e,t,n){this.props=e,this.context=t,this.refs=$m,this.updater=n||Rm}var Tc=kc.prototype=new Mm;Tc.constructor=kc;Nm(Tc,qr.prototype);Tc.isPureReactComponent=!0;var gf=Array.isArray,Lm=Object.prototype.hasOwnProperty,Rc={current:null},Am={key:!0,ref:!0,__self:!0,__source:!0};function Om(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)Lm.call(t,r)&&!Am.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:di,type:e,key:i,ref:s,props:o,_owner:Rc.current}}function sb(e,t){return{$$typeof:di,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Nc(e){return typeof e=="object"&&e!==null&&e.$$typeof===di}function ab(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var vf=/\/+/g;function Wa(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ab(""+e.key):t.toString(36)}function qi(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 di:case X1:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Wa(s,0):r,gf(o)?(n="",e!=null&&(n=e.replace(vf,"$&/")+"/"),qi(o,t,n,"",function(u){return u})):o!=null&&(Nc(o)&&(o=sb(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(vf,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",gf(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+Wa(i,a);s+=qi(i,t,n,l,o)}else if(l=ib(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+Wa(i,a++),s+=qi(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 Ci(e,t,n){if(e==null)return e;var r=[],o=0;return qi(e,r,"","",function(i){return t.call(n,i,o++)}),r}function lb(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 Ge={current:null},Ji={transition:null},ub={ReactCurrentDispatcher:Ge,ReactCurrentBatchConfig:Ji,ReactCurrentOwner:Rc};q.Children={map:Ci,forEach:function(e,t,n){Ci(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ci(e,function(){t++}),t},toArray:function(e){return Ci(e,function(t){return t})||[]},only:function(e){if(!Nc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};q.Component=qr;q.Fragment=Y1;q.Profiler=J1;q.PureComponent=kc;q.StrictMode=q1;q.Suspense=nb;q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ub;q.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=Nm({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=Rc.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Lm.call(t,l)&&!Am.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:di,type:e.type,key:o,ref:i,props:r,_owner:s}};q.createContext=function(e){return e={$$typeof:eb,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Z1,_context:e},e.Consumer=e};q.createElement=Om;q.createFactory=function(e){var t=Om.bind(null,e);return t.type=e,t};q.createRef=function(){return{current:null}};q.forwardRef=function(e){return{$$typeof:tb,render:e}};q.isValidElement=Nc;q.lazy=function(e){return{$$typeof:ob,_payload:{_status:-1,_result:e},_init:lb}};q.memo=function(e,t){return{$$typeof:rb,type:e,compare:t===void 0?null:t}};q.startTransition=function(e){var t=Ji.transition;Ji.transition={};try{e()}finally{Ji.transition=t}};q.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};q.useCallback=function(e,t){return Ge.current.useCallback(e,t)};q.useContext=function(e){return Ge.current.useContext(e)};q.useDebugValue=function(){};q.useDeferredValue=function(e){return Ge.current.useDeferredValue(e)};q.useEffect=function(e,t){return Ge.current.useEffect(e,t)};q.useId=function(){return Ge.current.useId()};q.useImperativeHandle=function(e,t,n){return Ge.current.useImperativeHandle(e,t,n)};q.useInsertionEffect=function(e,t){return Ge.current.useInsertionEffect(e,t)};q.useLayoutEffect=function(e,t){return Ge.current.useLayoutEffect(e,t)};q.useMemo=function(e,t){return Ge.current.useMemo(e,t)};q.useReducer=function(e,t,n){return Ge.current.useReducer(e,t,n)};q.useRef=function(e){return Ge.current.useRef(e)};q.useState=function(e){return Ge.current.useState(e)};q.useSyncExternalStore=function(e,t,n){return Ge.current.useSyncExternalStore(e,t,n)};q.useTransition=function(){return Ge.current.useTransition()};q.version="18.2.0";Tm.exports=q;var v=Tm.exports;const re=Em(v),cb=Q1({__proto__:null,default:re},[v]);/**
* @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 db=v,fb=Symbol.for("react.element"),pb=Symbol.for("react.fragment"),hb=Object.prototype.hasOwnProperty,mb=db.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,gb={key:!0,ref:!0,__self:!0,__source:!0};function jm(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)hb.call(t,r)&&!gb.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:fb,type:e,key:i,ref:s,props:o,_owner:mb.current}}la.Fragment=pb;la.jsx=jm;la.jsxs=jm;km.exports=la;var E=km.exports,Wl={},_m={exports:{}},ut={},Dm={exports:{}},Im={};/**
* @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(j,A){var I=j.length;j.push(A);e:for(;0<I;){var w=I-1>>>1,k=j[w];if(0<o(k,A))j[w]=A,j[I]=k,I=w;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var A=j[0],I=j.pop();if(I!==A){j[0]=I;e:for(var w=0,k=j.length,D=k>>>1;w<D;){var V=2*(w+1)-1,H=j[V],W=V+1,G=j[W];if(0>o(H,I))W<k&&0>o(G,H)?(j[w]=G,j[W]=I,w=W):(j[w]=H,j[V]=I,w=V);else if(W<k&&0>o(G,I))j[w]=G,j[W]=I,w=W;else break e}}return A}function o(j,A){var I=j.sortIndex-A.sortIndex;return I!==0?I:j.id-A.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 g(j){for(var A=n(u);A!==null;){if(A.callback===null)r(u);else if(A.startTime<=j)r(u),A.sortIndex=A.expirationTime,t(l,A);else break;A=n(u)}}function S(j){if(y=!1,g(j),!m)if(n(l)!==null)m=!0,J(C);else{var A=n(u);A!==null&&ie(S,A.startTime-j)}}function C(j,A){m=!1,y&&(y=!1,b(x),x=-1),p=!0;var I=f;try{for(g(A),d=n(l);d!==null&&(!(d.expirationTime>A)||j&&!M());){var w=d.callback;if(typeof w=="function"){d.callback=null,f=d.priorityLevel;var k=w(d.expirationTime<=A);A=e.unstable_now(),typeof k=="function"?d.callback=k:d===n(l)&&r(l),g(A)}else r(l);d=n(l)}if(d!==null)var D=!0;else{var V=n(u);V!==null&&ie(S,V.startTime-A),D=!1}return D}finally{d=null,f=I,p=!1}}var T=!1,R=null,x=-1,$=5,F=-1;function M(){return!(e.unstable_now()-F<$)}function z(){if(R!==null){var j=e.unstable_now();F=j;var A=!0;try{A=R(!0,j)}finally{A?L():(T=!1,R=null)}}else T=!1}var L;if(typeof h=="function")L=function(){h(z)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,U=O.port2;O.port1.onmessage=z,L=function(){U.postMessage(null)}}else L=function(){P(z,0)};function J(j){R=j,T||(T=!0,L())}function ie(j,A){x=P(function(){j(e.unstable_now())},A)}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(j){j.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,J(C))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(j){switch(f){case 1:case 2:case 3:var A=3;break;default:A=f}var I=f;f=A;try{return j()}finally{f=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,A){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var I=f;f=j;try{return A()}finally{f=I}},e.unstable_scheduleCallback=function(j,A,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,j){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,j={id:c++,callback:A,priorityLevel:j,startTime:I,expirationTime:k,sortIndex:-1},I>w?(j.sortIndex=I,t(u,j),n(l)===null&&j===n(u)&&(y?(b(x),x=-1):y=!0,ie(S,I-w))):(j.sortIndex=k,t(l,j),m||p||(m=!0,J(C))),j},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(j){var A=f;return function(){var I=f;f=A;try{return j.apply(this,arguments)}finally{f=I}}}})(Im);Dm.exports=Im;var vb=Dm.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 Fm=v,at=vb;function _(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 Vm=new Set,zo={};function er(e,t){Vr(e,t),Vr(e+"Capture",t)}function Vr(e,t){for(zo[e]=t,e=0;e<t.length;e++)Vm.add(t[e])}var Qt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hl=Object.prototype.hasOwnProperty,yb=/^[: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]*$/,yf={},bf={};function bb(e){return Hl.call(bf,e)?!0:Hl.call(yf,e)?!1:yb.test(e)?bf[e]=!0:(yf[e]=!0,!1)}function xb(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 wb(e,t,n,r){if(t===null||typeof t>"u"||xb(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 Qe(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 _e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_e[e]=new Qe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_e[t]=new Qe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){_e[e]=new Qe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_e[e]=new Qe(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){_e[e]=new Qe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){_e[e]=new Qe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){_e[e]=new Qe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){_e[e]=new Qe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){_e[e]=new Qe(e,5,!1,e.toLowerCase(),null,!1,!1)});var $c=/[\-:]([a-z])/g;function Mc(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($c,Mc);_e[t]=new Qe(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($c,Mc);_e[t]=new Qe(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($c,Mc);_e[t]=new Qe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){_e[e]=new Qe(e,1,!1,e.toLowerCase(),null,!1,!1)});_e.xlinkHref=new Qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){_e[e]=new Qe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Lc(e,t,n,r){var o=_e.hasOwnProperty(t)?_e[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(wb(t,n,o,r)&&(n=null),r||o===null?bb(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 Zt=Fm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ei=Symbol.for("react.element"),gr=Symbol.for("react.portal"),vr=Symbol.for("react.fragment"),Ac=Symbol.for("react.strict_mode"),Kl=Symbol.for("react.profiler"),Bm=Symbol.for("react.provider"),zm=Symbol.for("react.context"),Oc=Symbol.for("react.forward_ref"),Gl=Symbol.for("react.suspense"),Ql=Symbol.for("react.suspense_list"),jc=Symbol.for("react.memo"),sn=Symbol.for("react.lazy"),Um=Symbol.for("react.offscreen"),xf=Symbol.iterator;function so(e){return e===null||typeof e!="object"?null:(e=xf&&e[xf]||e["@@iterator"],typeof e=="function"?e:null)}var be=Object.assign,Ha;function wo(e){if(Ha===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ha=t&&t[1]||""}return`
`+Ha+e}var Ka=!1;function Ga(e,t){if(!e||Ka)return"";Ka=!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{Ka=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?wo(e):""}function Sb(e){switch(e.tag){case 5:return wo(e.type);case 16:return wo("Lazy");case 13:return wo("Suspense");case 19:return wo("SuspenseList");case 0:case 2:case 15:return e=Ga(e.type,!1),e;case 11:return e=Ga(e.type.render,!1),e;case 1:return e=Ga(e.type,!0),e;default:return""}}function Xl(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 vr:return"Fragment";case gr:return"Portal";case Kl:return"Profiler";case Ac:return"StrictMode";case Gl:return"Suspense";case Ql:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case zm:return(e.displayName||"Context")+".Consumer";case Bm:return(e._context.displayName||"Context")+".Provider";case Oc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case jc:return t=e.displayName||null,t!==null?t:Xl(e.type)||"Memo";case sn:t=e._payload,e=e._init;try{return Xl(e(t))}catch{}}return null}function Pb(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 Xl(t);case 8:return t===Ac?"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 kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cb(e){var t=Wm(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 ki(e){e._valueTracker||(e._valueTracker=Cb(e))}function Hm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Wm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function bs(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 Yl(e,t){var n=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function wf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=kn(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 Km(e,t){t=t.checked,t!=null&&Lc(e,"checked",t,!1)}function ql(e,t){Km(e,t);var n=kn(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")?Jl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Jl(e,t.type,kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sf(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 Jl(e,t,n){(t!=="number"||bs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var So=Array.isArray;function Or(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=""+kn(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 Zl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return be({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Pf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(_(92));if(So(n)){if(1<n.length)throw Error(_(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:kn(n)}}function Gm(e,t){var n=kn(t.value),r=kn(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 Cf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Qm(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 eu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Qm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ti,Xm=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(Ti=Ti||document.createElement("div"),Ti.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ti.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Uo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var No={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},Eb=["Webkit","ms","Moz","O"];Object.keys(No).forEach(function(e){Eb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),No[t]=No[e]})});function Ym(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||No.hasOwnProperty(e)&&No[e]?(""+t).trim():t+"px"}function qm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Ym(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var kb=be({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 tu(e,t){if(t){if(kb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function nu(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 ru=null;function _c(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ou=null,jr=null,_r=null;function Ef(e){if(e=hi(e)){if(typeof ou!="function")throw Error(_(280));var t=e.stateNode;t&&(t=pa(t),ou(e.stateNode,e.type,t))}}function Jm(e){jr?_r?_r.push(e):_r=[e]:jr=e}function Zm(){if(jr){var e=jr,t=_r;if(_r=jr=null,Ef(e),t)for(e=0;e<t.length;e++)Ef(t[e])}}function eg(e,t){return e(t)}function tg(){}var Qa=!1;function ng(e,t,n){if(Qa)return e(t,n);Qa=!0;try{return eg(e,t,n)}finally{Qa=!1,(jr!==null||_r!==null)&&(tg(),Zm())}}function Wo(e,t){var n=e.stateNode;if(n===null)return null;var r=pa(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(_(231,t,typeof n));return n}var iu=!1;if(Qt)try{var ao={};Object.defineProperty(ao,"passive",{get:function(){iu=!0}}),window.addEventListener("test",ao,ao),window.removeEventListener("test",ao,ao)}catch{iu=!1}function Tb(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 $o=!1,xs=null,ws=!1,su=null,Rb={onError:function(e){$o=!0,xs=e}};function Nb(e,t,n,r,o,i,s,a,l){$o=!1,xs=null,Tb.apply(Rb,arguments)}function $b(e,t,n,r,o,i,s,a,l){if(Nb.apply(this,arguments),$o){if($o){var u=xs;$o=!1,xs=null}else throw Error(_(198));ws||(ws=!0,su=u)}}function tr(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 rg(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 kf(e){if(tr(e)!==e)throw Error(_(188))}function Mb(e){var t=e.alternate;if(!t){if(t=tr(e),t===null)throw Error(_(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 kf(o),e;if(i===r)return kf(o),t;i=i.sibling}throw Error(_(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(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function og(e){return e=Mb(e),e!==null?ig(e):null}function ig(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ig(e);if(t!==null)return t;e=e.sibling}return null}var sg=at.unstable_scheduleCallback,Tf=at.unstable_cancelCallback,Lb=at.unstable_shouldYield,Ab=at.unstable_requestPaint,Ce=at.unstable_now,Ob=at.unstable_getCurrentPriorityLevel,Dc=at.unstable_ImmediatePriority,ag=at.unstable_UserBlockingPriority,Ss=at.unstable_NormalPriority,jb=at.unstable_LowPriority,lg=at.unstable_IdlePriority,ua=null,At=null;function _b(e){if(At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(ua,e,void 0,(e.current.flags&128)===128)}catch{}}var Ct=Math.clz32?Math.clz32:Fb,Db=Math.log,Ib=Math.LN2;function Fb(e){return e>>>=0,e===0?32:31-(Db(e)/Ib|0)|0}var Ri=64,Ni=4194304;function Po(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 Ps(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=Po(a):(i&=s,i!==0&&(r=Po(i)))}else s=n&~o,s!==0?r=Po(s):i!==0&&(r=Po(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-Ct(t),o=1<<n,r|=e[n],t&=~o;return r}function Vb(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 Bb(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Ct(i),a=1<<s,l=o[s];l===-1?(!(a&n)||a&r)&&(o[s]=Vb(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function au(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ug(){var e=Ri;return Ri<<=1,!(Ri&4194240)&&(Ri=64),e}function Xa(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function fi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ct(t),e[t]=n}function zb(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-Ct(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Ic(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ct(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var oe=0;function cg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var dg,Fc,fg,pg,hg,lu=!1,$i=[],mn=null,gn=null,vn=null,Ho=new Map,Ko=new Map,un=[],Ub="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 Rf(e,t){switch(e){case"focusin":case"focusout":mn=null;break;case"dragenter":case"dragleave":gn=null;break;case"mouseover":case"mouseout":vn=null;break;case"pointerover":case"pointerout":Ho.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ko.delete(t.pointerId)}}function lo(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=hi(t),t!==null&&Fc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Wb(e,t,n,r,o){switch(t){case"focusin":return mn=lo(mn,e,t,n,r,o),!0;case"dragenter":return gn=lo(gn,e,t,n,r,o),!0;case"mouseover":return vn=lo(vn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Ho.set(i,lo(Ho.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Ko.set(i,lo(Ko.get(i)||null,e,t,n,r,o)),!0}return!1}function mg(e){var t=Vn(e.target);if(t!==null){var n=tr(t);if(n!==null){if(t=n.tag,t===13){if(t=rg(n),t!==null){e.blockedOn=t,hg(e.priority,function(){fg(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 Zi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=uu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ru=r,n.target.dispatchEvent(r),ru=null}else return t=hi(n),t!==null&&Fc(t),e.blockedOn=n,!1;t.shift()}return!0}function Nf(e,t,n){Zi(e)&&n.delete(t)}function Hb(){lu=!1,mn!==null&&Zi(mn)&&(mn=null),gn!==null&&Zi(gn)&&(gn=null),vn!==null&&Zi(vn)&&(vn=null),Ho.forEach(Nf),Ko.forEach(Nf)}function uo(e,t){e.blockedOn===t&&(e.blockedOn=null,lu||(lu=!0,at.unstable_scheduleCallback(at.unstable_NormalPriority,Hb)))}function Go(e){function t(o){return uo(o,e)}if(0<$i.length){uo($i[0],e);for(var n=1;n<$i.length;n++){var r=$i[n];r.blockedOn===e&&(r.blockedOn=null)}}for(mn!==null&&uo(mn,e),gn!==null&&uo(gn,e),vn!==null&&uo(vn,e),Ho.forEach(t),Ko.forEach(t),n=0;n<un.length;n++)r=un[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<un.length&&(n=un[0],n.blockedOn===null);)mg(n),n.blockedOn===null&&un.shift()}var Dr=Zt.ReactCurrentBatchConfig,Cs=!0;function Kb(e,t,n,r){var o=oe,i=Dr.transition;Dr.transition=null;try{oe=1,Vc(e,t,n,r)}finally{oe=o,Dr.transition=i}}function Gb(e,t,n,r){var o=oe,i=Dr.transition;Dr.transition=null;try{oe=4,Vc(e,t,n,r)}finally{oe=o,Dr.transition=i}}function Vc(e,t,n,r){if(Cs){var o=uu(e,t,n,r);if(o===null)il(e,t,r,Es,n),Rf(e,r);else if(Wb(o,e,t,n,r))r.stopPropagation();else if(Rf(e,r),t&4&&-1<Ub.indexOf(e)){for(;o!==null;){var i=hi(o);if(i!==null&&dg(i),i=uu(e,t,n,r),i===null&&il(e,t,r,Es,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else il(e,t,r,null,n)}}var Es=null;function uu(e,t,n,r){if(Es=null,e=_c(r),e=Vn(e),e!==null)if(t=tr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=rg(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 Es=e,null}function gg(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(Ob()){case Dc:return 1;case ag:return 4;case Ss:case jb:return 16;case lg:return 536870912;default:return 16}default:return 16}}var dn=null,Bc=null,es=null;function vg(){if(es)return es;var e,t=Bc,n=t.length,r,o="value"in dn?dn.value:dn.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 es=o.slice(e,1<r?1-r:void 0)}function ts(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 Mi(){return!0}function $f(){return!1}function ct(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)?Mi:$f,this.isPropagationStopped=$f,this}return be(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=Mi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Mi)},persist:function(){},isPersistent:Mi}),t}var Jr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zc=ct(Jr),pi=be({},Jr,{view:0,detail:0}),Qb=ct(pi),Ya,qa,co,ca=be({},pi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Uc,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!==co&&(co&&e.type==="mousemove"?(Ya=e.screenX-co.screenX,qa=e.screenY-co.screenY):qa=Ya=0,co=e),Ya)},movementY:function(e){return"movementY"in e?e.movementY:qa}}),Mf=ct(ca),Xb=be({},ca,{dataTransfer:0}),Yb=ct(Xb),qb=be({},pi,{relatedTarget:0}),Ja=ct(qb),Jb=be({},Jr,{animationName:0,elapsedTime:0,pseudoElement:0}),Zb=ct(Jb),ex=be({},Jr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),tx=ct(ex),nx=be({},Jr,{data:0}),Lf=ct(nx),rx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ox={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"},ix={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ix[e])?!!t[e]:!1}function Uc(){return sx}var ax=be({},pi,{key:function(e){if(e.key){var t=rx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ts(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ox[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uc,charCode:function(e){return e.type==="keypress"?ts(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ts(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),lx=ct(ax),ux=be({},ca,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Af=ct(ux),cx=be({},pi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uc}),dx=ct(cx),fx=be({},Jr,{propertyName:0,elapsedTime:0,pseudoElement:0}),px=ct(fx),hx=be({},ca,{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}),mx=ct(hx),gx=[9,13,27,32],Wc=Qt&&"CompositionEvent"in window,Mo=null;Qt&&"documentMode"in document&&(Mo=document.documentMode);var vx=Qt&&"TextEvent"in window&&!Mo,yg=Qt&&(!Wc||Mo&&8<Mo&&11>=Mo),Of=String.fromCharCode(32),jf=!1;function bg(e,t){switch(e){case"keyup":return gx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yr=!1;function yx(e,t){switch(e){case"compositionend":return xg(t);case"keypress":return t.which!==32?null:(jf=!0,Of);case"textInput":return e=t.data,e===Of&&jf?null:e;default:return null}}function bx(e,t){if(yr)return e==="compositionend"||!Wc&&bg(e,t)?(e=vg(),es=Bc=dn=null,yr=!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 yg&&t.locale!=="ko"?null:t.data;default:return null}}var xx={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 _f(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!xx[e.type]:t==="textarea"}function wg(e,t,n,r){Jm(r),t=ks(t,"onChange"),0<t.length&&(n=new zc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Lo=null,Qo=null;function wx(e){Lg(e,0)}function da(e){var t=wr(e);if(Hm(t))return e}function Sx(e,t){if(e==="change")return t}var Sg=!1;if(Qt){var Za;if(Qt){var el="oninput"in document;if(!el){var Df=document.createElement("div");Df.setAttribute("oninput","return;"),el=typeof Df.oninput=="function"}Za=el}else Za=!1;Sg=Za&&(!document.documentMode||9<document.documentMode)}function If(){Lo&&(Lo.detachEvent("onpropertychange",Pg),Qo=Lo=null)}function Pg(e){if(e.propertyName==="value"&&da(Qo)){var t=[];wg(t,Qo,e,_c(e)),ng(wx,t)}}function Px(e,t,n){e==="focusin"?(If(),Lo=t,Qo=n,Lo.attachEvent("onpropertychange",Pg)):e==="focusout"&&If()}function Cx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return da(Qo)}function Ex(e,t){if(e==="click")return da(t)}function kx(e,t){if(e==="input"||e==="change")return da(t)}function Tx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kt=typeof Object.is=="function"?Object.is:Tx;function Xo(e,t){if(kt(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(!Hl.call(t,o)||!kt(e[o],t[o]))return!1}return!0}function Ff(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vf(e,t){var n=Ff(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=Ff(n)}}function Cg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Eg(){for(var e=window,t=bs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=bs(e.document)}return t}function Hc(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 Rx(e){var t=Eg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Cg(n.ownerDocument.documentElement,n)){if(r!==null&&Hc(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=Vf(n,i);var s=Vf(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 Nx=Qt&&"documentMode"in document&&11>=document.documentMode,br=null,cu=null,Ao=null,du=!1;function Bf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;du||br==null||br!==bs(r)||(r=br,"selectionStart"in r&&Hc(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}),Ao&&Xo(Ao,r)||(Ao=r,r=ks(cu,"onSelect"),0<r.length&&(t=new zc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}function Li(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:Li("Animation","AnimationEnd"),animationiteration:Li("Animation","AnimationIteration"),animationstart:Li("Animation","AnimationStart"),transitionend:Li("Transition","TransitionEnd")},tl={},kg={};Qt&&(kg=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);function fa(e){if(tl[e])return tl[e];if(!xr[e])return e;var t=xr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in kg)return tl[e]=t[n];return e}var Tg=fa("animationend"),Rg=fa("animationiteration"),Ng=fa("animationstart"),$g=fa("transitionend"),Mg=new Map,zf="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 $n(e,t){Mg.set(e,t),er(t,[e])}for(var nl=0;nl<zf.length;nl++){var rl=zf[nl],$x=rl.toLowerCase(),Mx=rl[0].toUpperCase()+rl.slice(1);$n($x,"on"+Mx)}$n(Tg,"onAnimationEnd");$n(Rg,"onAnimationIteration");$n(Ng,"onAnimationStart");$n("dblclick","onDoubleClick");$n("focusin","onFocus");$n("focusout","onBlur");$n($g,"onTransitionEnd");Vr("onMouseEnter",["mouseout","mouseover"]);Vr("onMouseLeave",["mouseout","mouseover"]);Vr("onPointerEnter",["pointerout","pointerover"]);Vr("onPointerLeave",["pointerout","pointerover"]);er("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));er("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));er("onBeforeInput",["compositionend","keypress","textInput","paste"]);er("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));er("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));er("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Co="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(" "),Lx=new Set("cancel close invalid load scroll toggle".split(" ").concat(Co));function Uf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,$b(r,t,void 0,e),e.currentTarget=null}function Lg(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;Uf(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;Uf(o,a,u),i=l}}}if(ws)throw e=su,ws=!1,su=null,e}function ce(e,t){var n=t[gu];n===void 0&&(n=t[gu]=new Set);var r=e+"__bubble";n.has(r)||(Ag(t,e,2,!1),n.add(r))}function ol(e,t,n){var r=0;t&&(r|=4),Ag(n,e,r,t)}var Ai="_reactListening"+Math.random().toString(36).slice(2);function Yo(e){if(!e[Ai]){e[Ai]=!0,Vm.forEach(function(n){n!=="selectionchange"&&(Lx.has(n)||ol(n,!1,e),ol(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ai]||(t[Ai]=!0,ol("selectionchange",!1,t))}}function Ag(e,t,n,r){switch(gg(t)){case 1:var o=Kb;break;case 4:o=Gb;break;default:o=Vc}n=o.bind(null,t,n,e),o=void 0,!iu||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 il(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=Vn(a),s===null)return;if(l=s.tag,l===5||l===6){r=i=s;continue e}a=a.parentNode}}r=r.return}ng(function(){var u=i,c=_c(n),d=[];e:{var f=Mg.get(e);if(f!==void 0){var p=zc,m=e;switch(e){case"keypress":if(ts(n)===0)break e;case"keydown":case"keyup":p=lx;break;case"focusin":m="focus",p=Ja;break;case"focusout":m="blur",p=Ja;break;case"beforeblur":case"afterblur":p=Ja;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=Mf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Yb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=dx;break;case Tg:case Rg:case Ng:p=Zb;break;case $g:p=px;break;case"scroll":p=Qb;break;case"wheel":p=mx;break;case"copy":case"cut":case"paste":p=tx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Af}var y=(t&4)!==0,P=!y&&e==="scroll",b=y?f!==null?f+"Capture":null:f;y=[];for(var h=u,g;h!==null;){g=h;var S=g.stateNode;if(g.tag===5&&S!==null&&(g=S,b!==null&&(S=Wo(h,b),S!=null&&y.push(qo(h,S,g)))),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!==ru&&(m=n.relatedTarget||n.fromElement)&&(Vn(m)||m[Xt]))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?Vn(m):null,m!==null&&(P=tr(m),m!==P||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=u),p!==m)){if(y=Mf,S="onMouseLeave",b="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(y=Af,S="onPointerLeave",b="onPointerEnter",h="pointer"),P=p==null?f:wr(p),g=m==null?f:wr(m),f=new y(S,h+"leave",p,n,c),f.target=P,f.relatedTarget=g,S=null,Vn(c)===u&&(y=new y(b,h+"enter",m,n,c),y.target=g,y.relatedTarget=P,S=y),P=S,p&&m)t:{for(y=p,b=m,h=0,g=y;g;g=ar(g))h++;for(g=0,S=b;S;S=ar(S))g++;for(;0<h-g;)y=ar(y),h--;for(;0<g-h;)b=ar(b),g--;for(;h--;){if(y===b||b!==null&&y===b.alternate)break t;y=ar(y),b=ar(b)}y=null}else y=null;p!==null&&Wf(d,f,p,y,!1),m!==null&&P!==null&&Wf(d,P,m,y,!0)}}e:{if(f=u?wr(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var C=Sx;else if(_f(f))if(Sg)C=kx;else{C=Cx;var T=Px}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(C=Ex);if(C&&(C=C(e,u))){wg(d,C,n,c);break e}T&&T(e,f,u),e==="focusout"&&(T=f._wrapperState)&&T.controlled&&f.type==="number"&&Jl(f,"number",f.value)}switch(T=u?wr(u):window,e){case"focusin":(_f(T)||T.contentEditable==="true")&&(br=T,cu=u,Ao=null);break;case"focusout":Ao=cu=br=null;break;case"mousedown":du=!0;break;case"contextmenu":case"mouseup":case"dragend":du=!1,Bf(d,n,c);break;case"selectionchange":if(Nx)break;case"keydown":case"keyup":Bf(d,n,c)}var R;if(Wc)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 yr?bg(e,n)&&(x="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(x="onCompositionStart");x&&(yg&&n.locale!=="ko"&&(yr||x!=="onCompositionStart"?x==="onCompositionEnd"&&yr&&(R=vg()):(dn=c,Bc="value"in dn?dn.value:dn.textContent,yr=!0)),T=ks(u,x),0<T.length&&(x=new Lf(x,e,null,n,c),d.push({event:x,listeners:T}),R?x.data=R:(R=xg(n),R!==null&&(x.data=R)))),(R=vx?yx(e,n):bx(e,n))&&(u=ks(u,"onBeforeInput"),0<u.length&&(c=new Lf("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=R))}Lg(d,t)})}function qo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ks(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Wo(e,n),i!=null&&r.unshift(qo(e,i,o)),i=Wo(e,t),i!=null&&r.push(qo(e,i,o))),e=e.return}return r}function ar(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Wf(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=Wo(n,i),l!=null&&s.unshift(qo(n,l,a))):o||(l=Wo(n,i),l!=null&&s.push(qo(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Ax=/\r\n?/g,Ox=/\u0000|\uFFFD/g;function Hf(e){return(typeof e=="string"?e:""+e).replace(Ax,`
`).replace(Ox,"")}function Oi(e,t,n){if(t=Hf(t),Hf(e)!==t&&n)throw Error(_(425))}function Ts(){}var fu=null,pu=null;function hu(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 mu=typeof setTimeout=="function"?setTimeout:void 0,jx=typeof clearTimeout=="function"?clearTimeout:void 0,Kf=typeof Promise=="function"?Promise:void 0,_x=typeof queueMicrotask=="function"?queueMicrotask:typeof Kf<"u"?function(e){return Kf.resolve(null).then(e).catch(Dx)}:mu;function Dx(e){setTimeout(function(){throw e})}function sl(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),Go(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Go(t)}function yn(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 Gf(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 Zr=Math.random().toString(36).slice(2),$t="__reactFiber$"+Zr,Jo="__reactProps$"+Zr,Xt="__reactContainer$"+Zr,gu="__reactEvents$"+Zr,Ix="__reactListeners$"+Zr,Fx="__reactHandles$"+Zr;function Vn(e){var t=e[$t];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xt]||n[$t]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Gf(e);e!==null;){if(n=e[$t])return n;e=Gf(e)}return t}e=n,n=e.parentNode}return null}function hi(e){return e=e[$t]||e[Xt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function wr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function pa(e){return e[Jo]||null}var vu=[],Sr=-1;function Mn(e){return{current:e}}function de(e){0>Sr||(e.current=vu[Sr],vu[Sr]=null,Sr--)}function ae(e,t){Sr++,vu[Sr]=e.current,e.current=t}var Tn={},ze=Mn(Tn),Je=Mn(!1),Qn=Tn;function Br(e,t){var n=e.type.contextTypes;if(!n)return Tn;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 Ze(e){return e=e.childContextTypes,e!=null}function Rs(){de(Je),de(ze)}function Qf(e,t,n){if(ze.current!==Tn)throw Error(_(168));ae(ze,t),ae(Je,n)}function Og(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(_(108,Pb(e)||"Unknown",o));return be({},n,r)}function Ns(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Tn,Qn=ze.current,ae(ze,e),ae(Je,Je.current),!0}function Xf(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Og(e,t,Qn),r.__reactInternalMemoizedMergedChildContext=e,de(Je),de(ze),ae(ze,e)):de(Je),ae(Je,n)}var Ft=null,ha=!1,al=!1;function jg(e){Ft===null?Ft=[e]:Ft.push(e)}function Vx(e){ha=!0,jg(e)}function Ln(){if(!al&&Ft!==null){al=!0;var e=0,t=oe;try{var n=Ft;for(oe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ft=null,ha=!1}catch(o){throw Ft!==null&&(Ft=Ft.slice(e+1)),sg(Dc,Ln),o}finally{oe=t,al=!1}}return null}var Pr=[],Cr=0,$s=null,Ms=0,ft=[],pt=0,Xn=null,Vt=1,Bt="";function _n(e,t){Pr[Cr++]=Ms,Pr[Cr++]=$s,$s=e,Ms=t}function _g(e,t,n){ft[pt++]=Vt,ft[pt++]=Bt,ft[pt++]=Xn,Xn=e;var r=Vt;e=Bt;var o=32-Ct(r)-1;r&=~(1<<o),n+=1;var i=32-Ct(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Vt=1<<32-Ct(t)+o|n<<o|r,Bt=i+e}else Vt=1<<i|n<<o|r,Bt=e}function Kc(e){e.return!==null&&(_n(e,1),_g(e,1,0))}function Gc(e){for(;e===$s;)$s=Pr[--Cr],Pr[Cr]=null,Ms=Pr[--Cr],Pr[Cr]=null;for(;e===Xn;)Xn=ft[--pt],ft[pt]=null,Bt=ft[--pt],ft[pt]=null,Vt=ft[--pt],ft[pt]=null}var st=null,it=null,pe=!1,Pt=null;function Dg(e,t){var n=ht(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 Yf(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,st=e,it=yn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,st=e,it=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Xn!==null?{id:Vt,overflow:Bt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ht(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,st=e,it=null,!0):!1;default:return!1}}function yu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function bu(e){if(pe){var t=it;if(t){var n=t;if(!Yf(e,t)){if(yu(e))throw Error(_(418));t=yn(n.nextSibling);var r=st;t&&Yf(e,t)?Dg(r,n):(e.flags=e.flags&-4097|2,pe=!1,st=e)}}else{if(yu(e))throw Error(_(418));e.flags=e.flags&-4097|2,pe=!1,st=e}}}function qf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;st=e}function ji(e){if(e!==st)return!1;if(!pe)return qf(e),pe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!hu(e.type,e.memoizedProps)),t&&(t=it)){if(yu(e))throw Ig(),Error(_(418));for(;t;)Dg(e,t),t=yn(t.nextSibling)}if(qf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){it=yn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}it=null}}else it=st?yn(e.stateNode.nextSibling):null;return!0}function Ig(){for(var e=it;e;)e=yn(e.nextSibling)}function zr(){it=st=null,pe=!1}function Qc(e){Pt===null?Pt=[e]:Pt.push(e)}var Bx=Zt.ReactCurrentBatchConfig;function wt(e,t){if(e&&e.defaultProps){t=be({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Ls=Mn(null),As=null,Er=null,Xc=null;function Yc(){Xc=Er=As=null}function qc(e){var t=Ls.current;de(Ls),e._currentValue=t}function xu(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 Ir(e,t){As=e,Xc=Er=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qe=!0),e.firstContext=null)}function vt(e){var t=e._currentValue;if(Xc!==e)if(e={context:e,memoizedValue:t,next:null},Er===null){if(As===null)throw Error(_(308));Er=e,As.dependencies={lanes:0,firstContext:e}}else Er=Er.next=e;return t}var Bn=null;function Jc(e){Bn===null?Bn=[e]:Bn.push(e)}function Fg(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Jc(t)):(n.next=o.next,o.next=n),t.interleaved=n,Yt(e,r)}function Yt(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 an=!1;function Zc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vg(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 Wt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Yt(e,n)}return o=r.interleaved,o===null?(t.next=t,Jc(r)):(t.next=o.next,o.next=t),r.interleaved=t,Yt(e,n)}function ns(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,Ic(e,n)}}function Jf(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 Os(e,t,n,r){var o=e.updateQueue;an=!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=be({},d,f);break e;case 2:an=!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);qn|=s,e.lanes=s,e.memoizedState=d}}function Zf(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(_(191,o));o.call(r)}}}var Bg=new Fm.Component().refs;function wu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:be({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ma={isMounted:function(e){return(e=e._reactInternals)?tr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=He(),o=wn(e),i=Wt(r,o);i.payload=t,n!=null&&(i.callback=n),t=bn(e,i,o),t!==null&&(Et(t,e,o,r),ns(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=He(),o=wn(e),i=Wt(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=bn(e,i,o),t!==null&&(Et(t,e,o,r),ns(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=He(),r=wn(e),o=Wt(n,r);o.tag=2,t!=null&&(o.callback=t),t=bn(e,o,r),t!==null&&(Et(t,e,r,n),ns(t,e,r))}};function ep(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?!Xo(n,r)||!Xo(o,i):!0}function zg(e,t,n){var r=!1,o=Tn,i=t.contextType;return typeof i=="object"&&i!==null?i=vt(i):(o=Ze(t)?Qn:ze.current,r=t.contextTypes,i=(r=r!=null)?Br(e,o):Tn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ma,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function tp(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&&ma.enqueueReplaceState(t,t.state,null)}function Su(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Bg,Zc(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=vt(i):(i=Ze(t)?Qn:ze.current,o.context=Br(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(wu(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&&ma.enqueueReplaceState(o,o.state,null),Os(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function fo(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(_(309));var r=n.stateNode}if(!r)throw Error(_(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===Bg&&(a=o.refs={}),s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(_(284));if(!n._owner)throw Error(_(290,e))}return e}function _i(e,t){throw e=Object.prototype.toString.call(t),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function np(e){var t=e._init;return t(e._payload)}function Ug(e){function t(b,h){if(e){var g=b.deletions;g===null?(b.deletions=[h],b.flags|=16):g.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=Sn(b,h),b.index=0,b.sibling=null,b}function i(b,h,g){return b.index=g,e?(g=b.alternate,g!==null?(g=g.index,g<h?(b.flags|=2,h):g):(b.flags|=2,h)):(b.flags|=1048576,h)}function s(b){return e&&b.alternate===null&&(b.flags|=2),b}function a(b,h,g,S){return h===null||h.tag!==6?(h=hl(g,b.mode,S),h.return=b,h):(h=o(h,g),h.return=b,h)}function l(b,h,g,S){var C=g.type;return C===vr?c(b,h,g.props.children,S,g.key):h!==null&&(h.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===sn&&np(C)===h.type)?(S=o(h,g.props),S.ref=fo(b,h,g),S.return=b,S):(S=ls(g.type,g.key,g.props,null,b.mode,S),S.ref=fo(b,h,g),S.return=b,S)}function u(b,h,g,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==g.containerInfo||h.stateNode.implementation!==g.implementation?(h=ml(g,b.mode,S),h.return=b,h):(h=o(h,g.children||[]),h.return=b,h)}function c(b,h,g,S,C){return h===null||h.tag!==7?(h=Gn(g,b.mode,S,C),h.return=b,h):(h=o(h,g),h.return=b,h)}function d(b,h,g){if(typeof h=="string"&&h!==""||typeof h=="number")return h=hl(""+h,b.mode,g),h.return=b,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Ei:return g=ls(h.type,h.key,h.props,null,b.mode,g),g.ref=fo(b,null,h),g.return=b,g;case gr:return h=ml(h,b.mode,g),h.return=b,h;case sn:var S=h._init;return d(b,S(h._payload),g)}if(So(h)||so(h))return h=Gn(h,b.mode,g,null),h.return=b,h;_i(b,h)}return null}function f(b,h,g,S){var C=h!==null?h.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return C!==null?null:a(b,h,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ei:return g.key===C?l(b,h,g,S):null;case gr:return g.key===C?u(b,h,g,S):null;case sn:return C=g._init,f(b,h,C(g._payload),S)}if(So(g)||so(g))return C!==null?null:c(b,h,g,S,null);_i(b,g)}return null}function p(b,h,g,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return b=b.get(g)||null,a(h,b,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Ei:return b=b.get(S.key===null?g:S.key)||null,l(h,b,S,C);case gr:return b=b.get(S.key===null?g:S.key)||null,u(h,b,S,C);case sn:var T=S._init;return p(b,h,g,T(S._payload),C)}if(So(S)||so(S))return b=b.get(g)||null,c(h,b,S,C,null);_i(h,S)}return null}function m(b,h,g,S){for(var C=null,T=null,R=h,x=h=0,$=null;R!==null&&x<g.length;x++){R.index>x?($=R,R=null):$=R.sibling;var F=f(b,R,g[x],S);if(F===null){R===null&&(R=$);break}e&&R&&F.alternate===null&&t(b,R),h=i(F,h,x),T===null?C=F:T.sibling=F,T=F,R=$}if(x===g.length)return n(b,R),pe&&_n(b,x),C;if(R===null){for(;x<g.length;x++)R=d(b,g[x],S),R!==null&&(h=i(R,h,x),T===null?C=R:T.sibling=R,T=R);return pe&&_n(b,x),C}for(R=r(b,R);x<g.length;x++)$=p(R,b,x,g[x],S),$!==null&&(e&&$.alternate!==null&&R.delete($.key===null?x:$.key),h=i($,h,x),T===null?C=$:T.sibling=$,T=$);return e&&R.forEach(function(M){return t(b,M)}),pe&&_n(b,x),C}function y(b,h,g,S){var C=so(g);if(typeof C!="function")throw Error(_(150));if(g=C.call(g),g==null)throw Error(_(151));for(var T=C=null,R=h,x=h=0,$=null,F=g.next();R!==null&&!F.done;x++,F=g.next()){R.index>x?($=R,R=null):$=R.sibling;var M=f(b,R,F.value,S);if(M===null){R===null&&(R=$);break}e&&R&&M.alternate===null&&t(b,R),h=i(M,h,x),T===null?C=M:T.sibling=M,T=M,R=$}if(F.done)return n(b,R),pe&&_n(b,x),C;if(R===null){for(;!F.done;x++,F=g.next())F=d(b,F.value,S),F!==null&&(h=i(F,h,x),T===null?C=F:T.sibling=F,T=F);return pe&&_n(b,x),C}for(R=r(b,R);!F.done;x++,F=g.next())F=p(R,b,x,F.value,S),F!==null&&(e&&F.alternate!==null&&R.delete(F.key===null?x:F.key),h=i(F,h,x),T===null?C=F:T.sibling=F,T=F);return e&&R.forEach(function(z){return t(b,z)}),pe&&_n(b,x),C}function P(b,h,g,S){if(typeof g=="object"&&g!==null&&g.type===vr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Ei:e:{for(var C=g.key,T=h;T!==null;){if(T.key===C){if(C=g.type,C===vr){if(T.tag===7){n(b,T.sibling),h=o(T,g.props.children),h.return=b,b=h;break e}}else if(T.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===sn&&np(C)===T.type){n(b,T.sibling),h=o(T,g.props),h.ref=fo(b,T,g),h.return=b,b=h;break e}n(b,T);break}else t(b,T);T=T.sibling}g.type===vr?(h=Gn(g.props.children,b.mode,S,g.key),h.return=b,b=h):(S=ls(g.type,g.key,g.props,null,b.mode,S),S.ref=fo(b,h,g),S.return=b,b=S)}return s(b);case gr:e:{for(T=g.key;h!==null;){if(h.key===T)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(b,h.sibling),h=o(h,g.children||[]),h.return=b,b=h;break e}else{n(b,h);break}else t(b,h);h=h.sibling}h=ml(g,b.mode,S),h.return=b,b=h}return s(b);case sn:return T=g._init,P(b,h,T(g._payload),S)}if(So(g))return m(b,h,g,S);if(so(g))return y(b,h,g,S);_i(b,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(b,h.sibling),h=o(h,g),h.return=b,b=h):(n(b,h),h=hl(g,b.mode,S),h.return=b,b=h),s(b)):n(b,h)}return P}var Ur=Ug(!0),Wg=Ug(!1),mi={},Ot=Mn(mi),Zo=Mn(mi),ei=Mn(mi);function zn(e){if(e===mi)throw Error(_(174));return e}function ed(e,t){switch(ae(ei,t),ae(Zo,e),ae(Ot,mi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:eu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=eu(t,e)}de(Ot),ae(Ot,t)}function Wr(){de(Ot),de(Zo),de(ei)}function Hg(e){zn(ei.current);var t=zn(Ot.current),n=eu(t,e.type);t!==n&&(ae(Zo,e),ae(Ot,n))}function td(e){Zo.current===e&&(de(Ot),de(Zo))}var ge=Mn(0);function js(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 ll=[];function nd(){for(var e=0;e<ll.length;e++)ll[e]._workInProgressVersionPrimary=null;ll.length=0}var rs=Zt.ReactCurrentDispatcher,ul=Zt.ReactCurrentBatchConfig,Yn=0,ye=null,Ne=null,Le=null,_s=!1,Oo=!1,ti=0,zx=0;function De(){throw Error(_(321))}function rd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!kt(e[n],t[n]))return!1;return!0}function od(e,t,n,r,o,i){if(Yn=i,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,rs.current=e===null||e.memoizedState===null?Kx:Gx,e=n(r,o),Oo){i=0;do{if(Oo=!1,ti=0,25<=i)throw Error(_(301));i+=1,Le=Ne=null,t.updateQueue=null,rs.current=Qx,e=n(r,o)}while(Oo)}if(rs.current=Ds,t=Ne!==null&&Ne.next!==null,Yn=0,Le=Ne=ye=null,_s=!1,t)throw Error(_(300));return e}function id(){var e=ti!==0;return ti=0,e}function Rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Le===null?ye.memoizedState=Le=e:Le=Le.next=e,Le}function yt(){if(Ne===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Le===null?ye.memoizedState:Le.next;if(t!==null)Le=t,Ne=e;else{if(e===null)throw Error(_(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Le===null?ye.memoizedState=Le=e:Le=Le.next=e}return Le}function ni(e,t){return typeof t=="function"?t(e):t}function cl(e){var t=yt(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=Ne,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((Yn&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,ye.lanes|=c,qn|=c}u=u.next}while(u!==null&&u!==i);l===null?s=r:l.next=a,kt(r,t.memoizedState)||(qe=!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,ye.lanes|=i,qn|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function dl(e){var t=yt(),n=t.queue;if(n===null)throw Error(_(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);kt(i,t.memoizedState)||(qe=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Kg(){}function Gg(e,t){var n=ye,r=yt(),o=t(),i=!kt(r.memoizedState,o);if(i&&(r.memoizedState=o,qe=!0),r=r.queue,sd(Yg.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Le!==null&&Le.memoizedState.tag&1){if(n.flags|=2048,ri(9,Xg.bind(null,n,r,o,t),void 0,null),Ae===null)throw Error(_(349));Yn&30||Qg(n,t,o)}return o}function Qg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Xg(e,t,n,r){t.value=n,t.getSnapshot=r,qg(t)&&Jg(e)}function Yg(e,t,n){return n(function(){qg(t)&&Jg(e)})}function qg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kt(e,n)}catch{return!0}}function Jg(e){var t=Yt(e,1);t!==null&&Et(t,e,1,-1)}function rp(e){var t=Rt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ni,lastRenderedState:e},t.queue=e,e=e.dispatch=Hx.bind(null,ye,e),[t.memoizedState,e]}function ri(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.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 Zg(){return yt().memoizedState}function os(e,t,n,r){var o=Rt();ye.flags|=e,o.memoizedState=ri(1|t,n,void 0,r===void 0?null:r)}function ga(e,t,n,r){var o=yt();r=r===void 0?null:r;var i=void 0;if(Ne!==null){var s=Ne.memoizedState;if(i=s.destroy,r!==null&&rd(r,s.deps)){o.memoizedState=ri(t,n,i,r);return}}ye.flags|=e,o.memoizedState=ri(1|t,n,i,r)}function op(e,t){return os(8390656,8,e,t)}function sd(e,t){return ga(2048,8,e,t)}function ev(e,t){return ga(4,2,e,t)}function tv(e,t){return ga(4,4,e,t)}function nv(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 rv(e,t,n){return n=n!=null?n.concat([e]):null,ga(4,4,nv.bind(null,t,e),n)}function ad(){}function ov(e,t){var n=yt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&rd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function iv(e,t){var n=yt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&rd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function sv(e,t,n){return Yn&21?(kt(n,t)||(n=ug(),ye.lanes|=n,qn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qe=!0),e.memoizedState=n)}function Ux(e,t){var n=oe;oe=n!==0&&4>n?n:4,e(!0);var r=ul.transition;ul.transition={};try{e(!1),t()}finally{oe=n,ul.transition=r}}function av(){return yt().memoizedState}function Wx(e,t,n){var r=wn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lv(e))uv(t,n);else if(n=Fg(e,t,n,r),n!==null){var o=He();Et(n,e,r,o),cv(n,t,r)}}function Hx(e,t,n){var r=wn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lv(e))uv(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,kt(a,s)){var l=t.interleaved;l===null?(o.next=o,Jc(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Fg(e,t,o,r),n!==null&&(o=He(),Et(n,e,r,o),cv(n,t,r))}}function lv(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function uv(e,t){Oo=_s=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ic(e,n)}}var Ds={readContext:vt,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useInsertionEffect:De,useLayoutEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useMutableSource:De,useSyncExternalStore:De,useId:De,unstable_isNewReconciler:!1},Kx={readContext:vt,useCallback:function(e,t){return Rt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:op,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,os(4194308,4,nv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return os(4194308,4,e,t)},useInsertionEffect:function(e,t){return os(4,2,e,t)},useMemo:function(e,t){var n=Rt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Rt();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=Wx.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=Rt();return e={current:e},t.memoizedState=e},useState:rp,useDebugValue:ad,useDeferredValue:function(e){return Rt().memoizedState=e},useTransition:function(){var e=rp(!1),t=e[0];return e=Ux.bind(null,e[1]),Rt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,o=Rt();if(pe){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),Ae===null)throw Error(_(349));Yn&30||Qg(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,op(Yg.bind(null,r,i,e),[e]),r.flags|=2048,ri(9,Xg.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Rt(),t=Ae.identifierPrefix;if(pe){var n=Bt,r=Vt;n=(r&~(1<<32-Ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ti++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=zx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Gx={readContext:vt,useCallback:ov,useContext:vt,useEffect:sd,useImperativeHandle:rv,useInsertionEffect:ev,useLayoutEffect:tv,useMemo:iv,useReducer:cl,useRef:Zg,useState:function(){return cl(ni)},useDebugValue:ad,useDeferredValue:function(e){var t=yt();return sv(t,Ne.memoizedState,e)},useTransition:function(){var e=cl(ni)[0],t=yt().memoizedState;return[e,t]},useMutableSource:Kg,useSyncExternalStore:Gg,useId:av,unstable_isNewReconciler:!1},Qx={readContext:vt,useCallback:ov,useContext:vt,useEffect:sd,useImperativeHandle:rv,useInsertionEffect:ev,useLayoutEffect:tv,useMemo:iv,useReducer:dl,useRef:Zg,useState:function(){return dl(ni)},useDebugValue:ad,useDeferredValue:function(e){var t=yt();return Ne===null?t.memoizedState=e:sv(t,Ne.memoizedState,e)},useTransition:function(){var e=dl(ni)[0],t=yt().memoizedState;return[e,t]},useMutableSource:Kg,useSyncExternalStore:Gg,useId:av,unstable_isNewReconciler:!1};function Hr(e,t){try{var n="",r=t;do n+=Sb(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 fl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Pu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Xx=typeof WeakMap=="function"?WeakMap:Map;function dv(e,t,n){n=Wt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Fs||(Fs=!0,Au=r),Pu(e,t)},n}function fv(e,t,n){n=Wt(-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(){Pu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Pu(e,t),typeof r!="function"&&(xn===null?xn=new Set([this]):xn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function ip(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Xx;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=uw.bind(null,e,t,n),t.then(e,e))}function sp(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 ap(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=Wt(-1,1),t.tag=2,bn(n,t,1))),n.lanes|=1),e)}var Yx=Zt.ReactCurrentOwner,qe=!1;function We(e,t,n,r){t.child=e===null?Wg(t,null,n,r):Ur(t,e.child,n,r)}function lp(e,t,n,r,o){n=n.render;var i=t.ref;return Ir(t,o),r=od(e,t,n,r,i,o),n=id(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qt(e,t,o)):(pe&&n&&Kc(t),t.flags|=1,We(e,t,r,o),t.child)}function up(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!md(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,pv(e,t,i,r,o)):(e=ls(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:Xo,n(s,r)&&e.ref===t.ref)return qt(e,t,o)}return t.flags|=1,e=Sn(i,r),e.ref=t.ref,e.return=t,t.child=e}function pv(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Xo(i,r)&&e.ref===t.ref)if(qe=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(qe=!0);else return t.lanes=e.lanes,qt(e,t,o)}return Cu(e,t,n,r,o)}function hv(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},ae(Tr,ot),ot|=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,ae(Tr,ot),ot|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ae(Tr,ot),ot|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ae(Tr,ot),ot|=r;return We(e,t,o,n),t.child}function mv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cu(e,t,n,r,o){var i=Ze(n)?Qn:ze.current;return i=Br(t,i),Ir(t,o),n=od(e,t,n,r,i,o),r=id(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qt(e,t,o)):(pe&&r&&Kc(t),t.flags|=1,We(e,t,n,o),t.child)}function cp(e,t,n,r,o){if(Ze(n)){var i=!0;Ns(t)}else i=!1;if(Ir(t,o),t.stateNode===null)is(e,t),zg(t,n,r),Su(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=vt(u):(u=Ze(n)?Qn:ze.current,u=Br(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)&&tp(t,s,r,u),an=!1;var f=t.memoizedState;s.state=f,Os(t,r,s,o),l=t.memoizedState,a!==r||f!==l||Je.current||an?(typeof c=="function"&&(wu(t,n,c,r),l=t.memoizedState),(a=an||ep(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,Vg(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:wt(t.type,a),s.props=u,d=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=vt(l):(l=Ze(n)?Qn:ze.current,l=Br(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)&&tp(t,s,r,l),an=!1,f=t.memoizedState,s.state=f,Os(t,r,s,o);var m=t.memoizedState;a!==d||f!==m||Je.current||an?(typeof p=="function"&&(wu(t,n,p,r),m=t.memoizedState),(u=an||ep(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 Eu(e,t,n,r,i,o)}function Eu(e,t,n,r,o,i){mv(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Xf(t,n,!1),qt(e,t,i);r=t.stateNode,Yx.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Ur(t,e.child,null,i),t.child=Ur(t,null,a,i)):We(e,t,a,i),t.memoizedState=r.state,o&&Xf(t,n,!0),t.child}function gv(e){var t=e.stateNode;t.pendingContext?Qf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Qf(e,t.context,!1),ed(e,t.containerInfo)}function dp(e,t,n,r,o){return zr(),Qc(o),t.flags|=256,We(e,t,n,r),t.child}var ku={dehydrated:null,treeContext:null,retryLane:0};function Tu(e){return{baseLanes:e,cachePool:null,transitions:null}}function vv(e,t,n){var r=t.pendingProps,o=ge.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),ae(ge,o&1),e===null)return bu(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=ba(s,r,0,null),e=Gn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Tu(n),t.memoizedState=ku,e):ld(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return qx(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=Sn(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Sn(a,i):(i=Gn(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?Tu(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=ku,r}return i=e.child,e=i.sibling,r=Sn(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 ld(e,t){return t=ba({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Di(e,t,n,r){return r!==null&&Qc(r),Ur(t,e.child,null,n),e=ld(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function qx(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=fl(Error(_(422))),Di(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=ba({mode:"visible",children:r.children},o,0,null),i=Gn(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Ur(t,e.child,null,s),t.child.memoizedState=Tu(s),t.memoizedState=ku,i);if(!(t.mode&1))return Di(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(_(419)),r=fl(i,r,void 0),Di(e,t,s,r)}if(a=(s&e.childLanes)!==0,qe||a){if(r=Ae,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,Yt(e,o),Et(r,e,o,-1))}return hd(),r=fl(Error(_(421))),Di(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=cw.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,it=yn(o.nextSibling),st=t,pe=!0,Pt=null,e!==null&&(ft[pt++]=Vt,ft[pt++]=Bt,ft[pt++]=Xn,Vt=e.id,Bt=e.overflow,Xn=t),t=ld(t,r.children),t.flags|=4096,t)}function fp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),xu(e.return,t,n)}function pl(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 yv(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(We(e,t,r.children,n),r=ge.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&&fp(e,n,t);else if(e.tag===19)fp(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(ae(ge,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&&js(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),pl(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&&js(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}pl(t,!0,n,null,i);break;case"together":pl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function is(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),qn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=Sn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Sn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Jx(e,t,n){switch(t.tag){case 3:gv(t),zr();break;case 5:Hg(t);break;case 1:Ze(t.type)&&Ns(t);break;case 4:ed(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ae(Ls,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ae(ge,ge.current&1),t.flags|=128,null):n&t.child.childLanes?vv(e,t,n):(ae(ge,ge.current&1),e=qt(e,t,n),e!==null?e.sibling:null);ae(ge,ge.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return yv(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ae(ge,ge.current),r)break;return null;case 22:case 23:return t.lanes=0,hv(e,t,n)}return qt(e,t,n)}var bv,Ru,xv,wv;bv=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}};Ru=function(){};xv=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,zn(Ot.current);var i=null;switch(n){case"input":o=Yl(e,o),r=Yl(e,r),i=[];break;case"select":o=be({},o,{value:void 0}),r=be({},r,{value:void 0}),i=[];break;case"textarea":o=Zl(e,o),r=Zl(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ts)}tu(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"&&(zo.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"&&(zo.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ce("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)}};wv=function(e,t,n,r){n!==r&&(t.flags|=4)};function po(e,t){if(!pe)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 Ie(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 Zx(e,t,n){var r=t.pendingProps;switch(Gc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ie(t),null;case 1:return Ze(t.type)&&Rs(),Ie(t),null;case 3:return r=t.stateNode,Wr(),de(Je),de(ze),nd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ji(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Pt!==null&&(_u(Pt),Pt=null))),Ru(e,t),Ie(t),null;case 5:td(t);var o=zn(ei.current);if(n=t.type,e!==null&&t.stateNode!=null)xv(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return Ie(t),null}if(e=zn(Ot.current),ji(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[$t]=t,r[Jo]=i,e=(t.mode&1)!==0,n){case"dialog":ce("cancel",r),ce("close",r);break;case"iframe":case"object":case"embed":ce("load",r);break;case"video":case"audio":for(o=0;o<Co.length;o++)ce(Co[o],r);break;case"source":ce("error",r);break;case"img":case"image":case"link":ce("error",r),ce("load",r);break;case"details":ce("toggle",r);break;case"input":wf(r,i),ce("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ce("invalid",r);break;case"textarea":Pf(r,i),ce("invalid",r)}tu(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&&Oi(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Oi(r.textContent,a,e),o=["children",""+a]):zo.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&ce("scroll",r)}switch(n){case"input":ki(r),Sf(r,i,!0);break;case"textarea":ki(r),Cf(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Ts)}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=Qm(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[$t]=t,e[Jo]=r,bv(e,t,!1,!1),t.stateNode=e;e:{switch(s=nu(n,r),n){case"dialog":ce("cancel",e),ce("close",e),o=r;break;case"iframe":case"object":case"embed":ce("load",e),o=r;break;case"video":case"audio":for(o=0;o<Co.length;o++)ce(Co[o],e);o=r;break;case"source":ce("error",e),o=r;break;case"img":case"image":case"link":ce("error",e),ce("load",e),o=r;break;case"details":ce("toggle",e),o=r;break;case"input":wf(e,r),o=Yl(e,r),ce("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=be({},r,{value:void 0}),ce("invalid",e);break;case"textarea":Pf(e,r),o=Zl(e,r),ce("invalid",e);break;default:o=r}tu(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?qm(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Xm(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Uo(e,l):typeof l=="number"&&Uo(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(zo.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ce("scroll",e):l!=null&&Lc(e,i,l,s))}switch(n){case"input":ki(e),Sf(e,r,!1);break;case"textarea":ki(e),Cf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+kn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Or(e,!!r.multiple,i,!1):r.defaultValue!=null&&Or(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ts)}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 Ie(t),null;case 6:if(e&&t.stateNode!=null)wv(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(_(166));if(n=zn(ei.current),zn(Ot.current),ji(t)){if(r=t.stateNode,n=t.memoizedProps,r[$t]=t,(i=r.nodeValue!==n)&&(e=st,e!==null))switch(e.tag){case 3:Oi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Oi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[$t]=t,t.stateNode=r}return Ie(t),null;case 13:if(de(ge),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(pe&&it!==null&&t.mode&1&&!(t.flags&128))Ig(),zr(),t.flags|=98560,i=!1;else if(i=ji(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(_(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(_(317));i[$t]=t}else zr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ie(t),i=!1}else Pt!==null&&(_u(Pt),Pt=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||ge.current&1?$e===0&&($e=3):hd())),t.updateQueue!==null&&(t.flags|=4),Ie(t),null);case 4:return Wr(),Ru(e,t),e===null&&Yo(t.stateNode.containerInfo),Ie(t),null;case 10:return qc(t.type._context),Ie(t),null;case 17:return Ze(t.type)&&Rs(),Ie(t),null;case 19:if(de(ge),i=t.memoizedState,i===null)return Ie(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)po(i,!1);else{if($e!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=js(e),s!==null){for(t.flags|=128,po(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 ae(ge,ge.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ce()>Kr&&(t.flags|=128,r=!0,po(i,!1),t.lanes=4194304)}else{if(!r)if(e=js(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),po(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!pe)return Ie(t),null}else 2*Ce()-i.renderingStartTime>Kr&&n!==1073741824&&(t.flags|=128,r=!0,po(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=Ce(),t.sibling=null,n=ge.current,ae(ge,r?n&1|2:n&1),t):(Ie(t),null);case 22:case 23:return pd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ot&1073741824&&(Ie(t),t.subtreeFlags&6&&(t.flags|=8192)):Ie(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function ew(e,t){switch(Gc(t),t.tag){case 1:return Ze(t.type)&&Rs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wr(),de(Je),de(ze),nd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return td(t),null;case 13:if(de(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));zr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return de(ge),null;case 4:return Wr(),null;case 10:return qc(t.type._context),null;case 22:case 23:return pd(),null;case 24:return null;default:return null}}var Ii=!1,Ve=!1,tw=typeof WeakSet=="function"?WeakSet:Set,B=null;function kr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xe(e,t,r)}else n.current=null}function Nu(e,t,n){try{n()}catch(r){xe(e,t,r)}}var pp=!1;function nw(e,t){if(fu=Cs,e=Eg(),Hc(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(pu={focusedElem:e,selectionRange:n},Cs=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;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:wt(t.type,y),P);b.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(S){xe(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return m=pp,pp=!1,m}function jo(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&&Nu(t,n,i)}o=o.next}while(o!==r)}}function va(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 Sv(e){var t=e.alternate;t!==null&&(e.alternate=null,Sv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$t],delete t[Jo],delete t[gu],delete t[Ix],delete t[Fx])),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 Pv(e){return e.tag===5||e.tag===3||e.tag===4}function hp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pv(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 Mu(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=Ts));else if(r!==4&&(e=e.child,e!==null))for(Mu(e,t,n),e=e.sibling;e!==null;)Mu(e,t,n),e=e.sibling}function Lu(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(Lu(e,t,n),e=e.sibling;e!==null;)Lu(e,t,n),e=e.sibling}var Oe=null,St=!1;function tn(e,t,n){for(n=n.child;n!==null;)Cv(e,t,n),n=n.sibling}function Cv(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(ua,n)}catch{}switch(n.tag){case 5:Ve||kr(n,t);case 6:var r=Oe,o=St;Oe=null,tn(e,t,n),Oe=r,St=o,Oe!==null&&(St?(e=Oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Oe.removeChild(n.stateNode));break;case 18:Oe!==null&&(St?(e=Oe,n=n.stateNode,e.nodeType===8?sl(e.parentNode,n):e.nodeType===1&&sl(e,n),Go(e)):sl(Oe,n.stateNode));break;case 4:r=Oe,o=St,Oe=n.stateNode.containerInfo,St=!0,tn(e,t,n),Oe=r,St=o;break;case 0:case 11:case 14:case 15:if(!Ve&&(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)&&Nu(n,t,s),o=o.next}while(o!==r)}tn(e,t,n);break;case 1:if(!Ve&&(kr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){xe(n,t,a)}tn(e,t,n);break;case 21:tn(e,t,n);break;case 22:n.mode&1?(Ve=(r=Ve)||n.memoizedState!==null,tn(e,t,n),Ve=r):tn(e,t,n);break;default:tn(e,t,n)}}function mp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tw),t.forEach(function(r){var o=dw.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function bt(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:Oe=a.stateNode,St=!1;break e;case 3:Oe=a.stateNode.containerInfo,St=!0;break e;case 4:Oe=a.stateNode.containerInfo,St=!0;break e}a=a.return}if(Oe===null)throw Error(_(160));Cv(i,s,o),Oe=null,St=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){xe(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ev(t,e),t=t.sibling}function Ev(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(bt(t,e),Tt(e),r&4){try{jo(3,e,e.return),va(3,e)}catch(y){xe(e,e.return,y)}try{jo(5,e,e.return)}catch(y){xe(e,e.return,y)}}break;case 1:bt(t,e),Tt(e),r&512&&n!==null&&kr(n,n.return);break;case 5:if(bt(t,e),Tt(e),r&512&&n!==null&&kr(n,n.return),e.flags&32){var o=e.stateNode;try{Uo(o,"")}catch(y){xe(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&&Km(o,i),nu(a,s);var u=nu(a,i);for(s=0;s<l.length;s+=2){var c=l[s],d=l[s+1];c==="style"?qm(o,d):c==="dangerouslySetInnerHTML"?Xm(o,d):c==="children"?Uo(o,d):Lc(o,c,d,u)}switch(a){case"input":ql(o,i);break;case"textarea":Gm(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?Or(o,!!i.multiple,p,!1):f!==!!i.multiple&&(i.defaultValue!=null?Or(o,!!i.multiple,i.defaultValue,!0):Or(o,!!i.multiple,i.multiple?[]:"",!1))}o[Jo]=i}catch(y){xe(e,e.return,y)}}break;case 6:if(bt(t,e),Tt(e),r&4){if(e.stateNode===null)throw Error(_(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(y){xe(e,e.return,y)}}break;case 3:if(bt(t,e),Tt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Go(t.containerInfo)}catch(y){xe(e,e.return,y)}break;case 4:bt(t,e),Tt(e);break;case 13:bt(t,e),Tt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(dd=Ce())),r&4&&mp(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ve=(u=Ve)||c,bt(t,e),Ve=u):bt(t,e),Tt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(B=e,c=e.child;c!==null;){for(d=B=c;B!==null;){switch(f=B,p=f.child,f.tag){case 0:case 11:case 14:case 15:jo(4,f,f.return);break;case 1:kr(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){xe(r,n,y)}}break;case 5:kr(f,f.return);break;case 22:if(f.memoizedState!==null){vp(d);continue}}p!==null?(p.return=f,B=p):vp(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=Ym("display",s))}catch(y){xe(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){xe(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:bt(t,e),Tt(e),r&4&&mp(e);break;case 21:break;default:bt(t,e),Tt(e)}}function Tt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Pv(n)){var r=n;break e}n=n.return}throw Error(_(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Uo(o,""),r.flags&=-33);var i=hp(e);Lu(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=hp(e);Mu(e,a,s);break;default:throw Error(_(161))}}catch(l){xe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function rw(e,t,n){B=e,kv(e)}function kv(e,t,n){for(var r=(e.mode&1)!==0;B!==null;){var o=B,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Ii;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||Ve;a=Ii;var u=Ve;if(Ii=s,(Ve=l)&&!u)for(B=o;B!==null;)s=B,l=s.child,s.tag===22&&s.memoizedState!==null?yp(o):l!==null?(l.return=s,B=l):yp(o);for(;i!==null;)B=i,kv(i),i=i.sibling;B=o,Ii=a,Ve=u}gp(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,B=i):gp(e)}}function gp(e){for(;B!==null;){var t=B;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ve||va(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ve)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:wt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Zf(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}Zf(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&&Go(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(_(163))}Ve||t.flags&512&&$u(t)}catch(f){xe(t,t.return,f)}}if(t===e){B=null;break}if(n=t.sibling,n!==null){n.return=t.return,B=n;break}B=t.return}}function vp(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var n=t.sibling;if(n!==null){n.return=t.return,B=n;break}B=t.return}}function yp(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{va(4,t)}catch(l){xe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){xe(t,o,l)}}var i=t.return;try{$u(t)}catch(l){xe(t,i,l)}break;case 5:var s=t.return;try{$u(t)}catch(l){xe(t,s,l)}}}catch(l){xe(t,t.return,l)}if(t===e){B=null;break}var a=t.sibling;if(a!==null){a.return=t.return,B=a;break}B=t.return}}var ow=Math.ceil,Is=Zt.ReactCurrentDispatcher,ud=Zt.ReactCurrentOwner,mt=Zt.ReactCurrentBatchConfig,te=0,Ae=null,Re=null,je=0,ot=0,Tr=Mn(0),$e=0,oi=null,qn=0,ya=0,cd=0,_o=null,Ye=null,dd=0,Kr=1/0,It=null,Fs=!1,Au=null,xn=null,Fi=!1,fn=null,Vs=0,Do=0,Ou=null,ss=-1,as=0;function He(){return te&6?Ce():ss!==-1?ss:ss=Ce()}function wn(e){return e.mode&1?te&2&&je!==0?je&-je:Bx.transition!==null?(as===0&&(as=ug()),as):(e=oe,e!==0||(e=window.event,e=e===void 0?16:gg(e.type)),e):1}function Et(e,t,n,r){if(50<Do)throw Do=0,Ou=null,Error(_(185));fi(e,n,r),(!(te&2)||e!==Ae)&&(e===Ae&&(!(te&2)&&(ya|=n),$e===4&&cn(e,je)),et(e,r),n===1&&te===0&&!(t.mode&1)&&(Kr=Ce()+500,ha&&Ln()))}function et(e,t){var n=e.callbackNode;Bb(e,t);var r=Ps(e,e===Ae?je:0);if(r===0)n!==null&&Tf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Tf(n),t===1)e.tag===0?Vx(bp.bind(null,e)):jg(bp.bind(null,e)),_x(function(){!(te&6)&&Ln()}),n=null;else{switch(cg(r)){case 1:n=Dc;break;case 4:n=ag;break;case 16:n=Ss;break;case 536870912:n=lg;break;default:n=Ss}n=Ov(n,Tv.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Tv(e,t){if(ss=-1,as=0,te&6)throw Error(_(327));var n=e.callbackNode;if(Fr()&&e.callbackNode!==n)return null;var r=Ps(e,e===Ae?je:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Bs(e,r);else{t=r;var o=te;te|=2;var i=Nv();(Ae!==e||je!==t)&&(It=null,Kr=Ce()+500,Kn(e,t));do try{aw();break}catch(a){Rv(e,a)}while(1);Yc(),Is.current=i,te=o,Re!==null?t=0:(Ae=null,je=0,t=$e)}if(t!==0){if(t===2&&(o=au(e),o!==0&&(r=o,t=ju(e,o))),t===1)throw n=oi,Kn(e,0),cn(e,r),et(e,Ce()),n;if(t===6)cn(e,r);else{if(o=e.current.alternate,!(r&30)&&!iw(o)&&(t=Bs(e,r),t===2&&(i=au(e),i!==0&&(r=i,t=ju(e,i))),t===1))throw n=oi,Kn(e,0),cn(e,r),et(e,Ce()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(_(345));case 2:Dn(e,Ye,It);break;case 3:if(cn(e,r),(r&130023424)===r&&(t=dd+500-Ce(),10<t)){if(Ps(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){He(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=mu(Dn.bind(null,e,Ye,It),t);break}Dn(e,Ye,It);break;case 4:if(cn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Ct(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ow(r/1960))-r,10<r){e.timeoutHandle=mu(Dn.bind(null,e,Ye,It),r);break}Dn(e,Ye,It);break;case 5:Dn(e,Ye,It);break;default:throw Error(_(329))}}}return et(e,Ce()),e.callbackNode===n?Tv.bind(null,e):null}function ju(e,t){var n=_o;return e.current.memoizedState.isDehydrated&&(Kn(e,t).flags|=256),e=Bs(e,t),e!==2&&(t=Ye,Ye=n,t!==null&&_u(t)),e}function _u(e){Ye===null?Ye=e:Ye.push.apply(Ye,e)}function iw(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(!kt(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 cn(e,t){for(t&=~cd,t&=~ya,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ct(t),r=1<<n;e[n]=-1,t&=~r}}function bp(e){if(te&6)throw Error(_(327));Fr();var t=Ps(e,0);if(!(t&1))return et(e,Ce()),null;var n=Bs(e,t);if(e.tag!==0&&n===2){var r=au(e);r!==0&&(t=r,n=ju(e,r))}if(n===1)throw n=oi,Kn(e,0),cn(e,t),et(e,Ce()),n;if(n===6)throw Error(_(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dn(e,Ye,It),et(e,Ce()),null}function fd(e,t){var n=te;te|=1;try{return e(t)}finally{te=n,te===0&&(Kr=Ce()+500,ha&&Ln())}}function Jn(e){fn!==null&&fn.tag===0&&!(te&6)&&Fr();var t=te;te|=1;var n=mt.transition,r=oe;try{if(mt.transition=null,oe=1,e)return e()}finally{oe=r,mt.transition=n,te=t,!(te&6)&&Ln()}}function pd(){ot=Tr.current,de(Tr)}function Kn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,jx(n)),Re!==null)for(n=Re.return;n!==null;){var r=n;switch(Gc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Rs();break;case 3:Wr(),de(Je),de(ze),nd();break;case 5:td(r);break;case 4:Wr();break;case 13:de(ge);break;case 19:de(ge);break;case 10:qc(r.type._context);break;case 22:case 23:pd()}n=n.return}if(Ae=e,Re=e=Sn(e.current,null),je=ot=t,$e=0,oi=null,cd=ya=qn=0,Ye=_o=null,Bn!==null){for(t=0;t<Bn.length;t++)if(n=Bn[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}Bn=null}return e}function Rv(e,t){do{var n=Re;try{if(Yc(),rs.current=Ds,_s){for(var r=ye.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}_s=!1}if(Yn=0,Le=Ne=ye=null,Oo=!1,ti=0,ud.current=null,n===null||n.return===null){$e=1,oi=t,Re=null;break}e:{var i=e,s=n.return,a=n,l=t;if(t=je,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=sp(s);if(p!==null){p.flags&=-257,ap(p,s,a,i,t),p.mode&1&&ip(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)){ip(i,u,t),hd();break e}l=Error(_(426))}}else if(pe&&a.mode&1){var P=sp(s);if(P!==null){!(P.flags&65536)&&(P.flags|=256),ap(P,s,a,i,t),Qc(Hr(l,a));break e}}i=l=Hr(l,a),$e!==4&&($e=2),_o===null?_o=[i]:_o.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var b=dv(i,l,t);Jf(i,b);break e;case 1:a=l;var h=i.type,g=i.stateNode;if(!(i.flags&128)&&(typeof h.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(xn===null||!xn.has(g)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=fv(i,a,t);Jf(i,S);break e}}i=i.return}while(i!==null)}Mv(n)}catch(C){t=C,Re===n&&n!==null&&(Re=n=n.return);continue}break}while(1)}function Nv(){var e=Is.current;return Is.current=Ds,e===null?Ds:e}function hd(){($e===0||$e===3||$e===2)&&($e=4),Ae===null||!(qn&268435455)&&!(ya&268435455)||cn(Ae,je)}function Bs(e,t){var n=te;te|=2;var r=Nv();(Ae!==e||je!==t)&&(It=null,Kn(e,t));do try{sw();break}catch(o){Rv(e,o)}while(1);if(Yc(),te=n,Is.current=r,Re!==null)throw Error(_(261));return Ae=null,je=0,$e}function sw(){for(;Re!==null;)$v(Re)}function aw(){for(;Re!==null&&!Lb();)$v(Re)}function $v(e){var t=Av(e.alternate,e,ot);e.memoizedProps=e.pendingProps,t===null?Mv(e):Re=t,ud.current=null}function Mv(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ew(n,t),n!==null){n.flags&=32767,Re=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{$e=6,Re=null;return}}else if(n=Zx(n,t,ot),n!==null){Re=n;return}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);$e===0&&($e=5)}function Dn(e,t,n){var r=oe,o=mt.transition;try{mt.transition=null,oe=1,lw(e,t,n,r)}finally{mt.transition=o,oe=r}return null}function lw(e,t,n,r){do Fr();while(fn!==null);if(te&6)throw Error(_(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(_(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(zb(e,i),e===Ae&&(Re=Ae=null,je=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Fi||(Fi=!0,Ov(Ss,function(){return Fr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=mt.transition,mt.transition=null;var s=oe;oe=1;var a=te;te|=4,ud.current=null,nw(e,n),Ev(n,e),Rx(pu),Cs=!!fu,pu=fu=null,e.current=n,rw(n),Ab(),te=a,oe=s,mt.transition=i}else e.current=n;if(Fi&&(Fi=!1,fn=e,Vs=o),i=e.pendingLanes,i===0&&(xn=null),_b(n.stateNode),et(e,Ce()),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(Fs)throw Fs=!1,e=Au,Au=null,e;return Vs&1&&e.tag!==0&&Fr(),i=e.pendingLanes,i&1?e===Ou?Do++:(Do=0,Ou=e):Do=0,Ln(),null}function Fr(){if(fn!==null){var e=cg(Vs),t=mt.transition,n=oe;try{if(mt.transition=null,oe=16>e?16:e,fn===null)var r=!1;else{if(e=fn,fn=null,Vs=0,te&6)throw Error(_(331));var o=te;for(te|=4,B=e.current;B!==null;){var i=B,s=i.child;if(B.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(B=u;B!==null;){var c=B;switch(c.tag){case 0:case 11:case 15:jo(8,c,i)}var d=c.child;if(d!==null)d.return=c,B=d;else for(;B!==null;){c=B;var f=c.sibling,p=c.return;if(Sv(c),c===u){B=null;break}if(f!==null){f.return=p,B=f;break}B=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)}}B=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,B=s;else e:for(;B!==null;){if(i=B,i.flags&2048)switch(i.tag){case 0:case 11:case 15:jo(9,i,i.return)}var b=i.sibling;if(b!==null){b.return=i.return,B=b;break e}B=i.return}}var h=e.current;for(B=h;B!==null;){s=B;var g=s.child;if(s.subtreeFlags&2064&&g!==null)g.return=s,B=g;else e:for(s=h;B!==null;){if(a=B,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:va(9,a)}}catch(C){xe(a,a.return,C)}if(a===s){B=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,B=S;break e}B=a.return}}if(te=o,Ln(),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(ua,e)}catch{}r=!0}return r}finally{oe=n,mt.transition=t}}return!1}function xp(e,t,n){t=Hr(n,t),t=dv(e,t,1),e=bn(e,t,1),t=He(),e!==null&&(fi(e,1,t),et(e,t))}function xe(e,t,n){if(e.tag===3)xp(e,e,n);else for(;t!==null;){if(t.tag===3){xp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(xn===null||!xn.has(r))){e=Hr(n,e),e=fv(t,e,1),t=bn(t,e,1),e=He(),t!==null&&(fi(t,1,e),et(t,e));break}}t=t.return}}function uw(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=He(),e.pingedLanes|=e.suspendedLanes&n,Ae===e&&(je&n)===n&&($e===4||$e===3&&(je&130023424)===je&&500>Ce()-dd?Kn(e,0):cd|=n),et(e,t)}function Lv(e,t){t===0&&(e.mode&1?(t=Ni,Ni<<=1,!(Ni&130023424)&&(Ni=4194304)):t=1);var n=He();e=Yt(e,t),e!==null&&(fi(e,t,n),et(e,n))}function cw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lv(e,n)}function dw(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(_(314))}r!==null&&r.delete(t),Lv(e,n)}var Av;Av=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Je.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,Jx(e,t,n);qe=!!(e.flags&131072)}else qe=!1,pe&&t.flags&1048576&&_g(t,Ms,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;is(e,t),e=t.pendingProps;var o=Br(t,ze.current);Ir(t,n),o=od(null,t,r,e,o,n);var i=id();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,Ze(r)?(i=!0,Ns(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Zc(t),o.updater=ma,t.stateNode=o,o._reactInternals=t,Su(t,r,e,n),t=Eu(null,t,r,!0,i,n)):(t.tag=0,pe&&i&&Kc(t),We(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(is(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=pw(r),e=wt(r,e),o){case 0:t=Cu(null,t,r,e,n);break e;case 1:t=cp(null,t,r,e,n);break e;case 11:t=lp(null,t,r,e,n);break e;case 14:t=up(null,t,r,wt(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wt(r,o),Cu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wt(r,o),cp(e,t,r,o,n);case 3:e:{if(gv(t),e===null)throw Error(_(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Vg(e,t),Os(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=Hr(Error(_(423)),t),t=dp(e,t,r,n,o);break e}else if(r!==o){o=Hr(Error(_(424)),t),t=dp(e,t,r,n,o);break e}else for(it=yn(t.stateNode.containerInfo.firstChild),st=t,pe=!0,Pt=null,n=Wg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zr(),r===o){t=qt(e,t,n);break e}We(e,t,r,n)}t=t.child}return t;case 5:return Hg(t),e===null&&bu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,hu(r,o)?s=null:i!==null&&hu(r,i)&&(t.flags|=32),mv(e,t),We(e,t,s,n),t.child;case 6:return e===null&&bu(t),null;case 13:return vv(e,t,n);case 4:return ed(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ur(t,null,r,n):We(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wt(r,o),lp(e,t,r,o,n);case 7:return We(e,t,t.pendingProps,n),t.child;case 8:return We(e,t,t.pendingProps.children,n),t.child;case 12:return We(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,ae(Ls,r._currentValue),r._currentValue=s,i!==null)if(kt(i.value,s)){if(i.children===o.children&&!Je.current){t=qt(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=Wt(-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),xu(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(_(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),xu(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}We(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ir(t,n),o=vt(o),r=r(o),t.flags|=1,We(e,t,r,n),t.child;case 14:return r=t.type,o=wt(r,t.pendingProps),o=wt(r.type,o),up(e,t,r,o,n);case 15:return pv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wt(r,o),is(e,t),t.tag=1,Ze(r)?(e=!0,Ns(t)):e=!1,Ir(t,n),zg(t,r,o),Su(t,r,o,n),Eu(null,t,r,!0,e,n);case 19:return yv(e,t,n);case 22:return hv(e,t,n)}throw Error(_(156,t.tag))};function Ov(e,t){return sg(e,t)}function fw(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 ht(e,t,n,r){return new fw(e,t,n,r)}function md(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pw(e){if(typeof e=="function")return md(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Oc)return 11;if(e===jc)return 14}return 2}function Sn(e,t){var n=e.alternate;return n===null?(n=ht(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 ls(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")md(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case vr:return Gn(n.children,o,i,t);case Ac:s=8,o|=8;break;case Kl:return e=ht(12,n,t,o|2),e.elementType=Kl,e.lanes=i,e;case Gl:return e=ht(13,n,t,o),e.elementType=Gl,e.lanes=i,e;case Ql:return e=ht(19,n,t,o),e.elementType=Ql,e.lanes=i,e;case Um:return ba(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bm:s=10;break e;case zm:s=9;break e;case Oc:s=11;break e;case jc:s=14;break e;case sn:s=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=ht(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Gn(e,t,n,r){return e=ht(7,e,r,t),e.lanes=n,e}function ba(e,t,n,r){return e=ht(22,e,r,t),e.elementType=Um,e.lanes=n,e.stateNode={isHidden:!1},e}function hl(e,t,n){return e=ht(6,e,null,t),e.lanes=n,e}function ml(e,t,n){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hw(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=Xa(0),this.expirationTimes=Xa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xa(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function gd(e,t,n,r,o,i,s,a,l){return e=new hw(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ht(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zc(i),e}function mw(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function jv(e){if(!e)return Tn;e=e._reactInternals;e:{if(tr(e)!==e||e.tag!==1)throw Error(_(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ze(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(_(171))}if(e.tag===1){var n=e.type;if(Ze(n))return Og(e,n,t)}return t}function _v(e,t,n,r,o,i,s,a,l){return e=gd(n,r,!0,e,o,i,s,a,l),e.context=jv(null),n=e.current,r=He(),o=wn(n),i=Wt(r,o),i.callback=t??null,bn(n,i,o),e.current.lanes=o,fi(e,o,r),et(e,r),e}function xa(e,t,n,r){var o=t.current,i=He(),s=wn(o);return n=jv(n),t.context===null?t.context=n:t.pendingContext=n,t=Wt(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=bn(o,t,s),e!==null&&(Et(e,o,s,i),ns(e,o,s)),s}function zs(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 wp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function vd(e,t){wp(e,t),(e=e.alternate)&&wp(e,t)}function gw(){return null}var Dv=typeof reportError=="function"?reportError:function(e){console.error(e)};function yd(e){this._internalRoot=e}wa.prototype.render=yd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(_(409));xa(e,t,null,null)};wa.prototype.unmount=yd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Jn(function(){xa(null,e,null,null)}),t[Xt]=null}};function wa(e){this._internalRoot=e}wa.prototype.unstable_scheduleHydration=function(e){if(e){var t=pg();e={blockedOn:null,target:e,priority:t};for(var n=0;n<un.length&&t!==0&&t<un[n].priority;n++);un.splice(n,0,e),n===0&&mg(e)}};function bd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Sa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Sp(){}function vw(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=zs(s);i.call(u)}}var s=_v(t,r,e,0,null,!1,!1,"",Sp);return e._reactRootContainer=s,e[Xt]=s.current,Yo(e.nodeType===8?e.parentNode:e),Jn(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=zs(l);a.call(u)}}var l=gd(e,0,!1,null,null,!1,!1,"",Sp);return e._reactRootContainer=l,e[Xt]=l.current,Yo(e.nodeType===8?e.parentNode:e),Jn(function(){xa(t,l,n,r)}),l}function Pa(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=zs(s);a.call(l)}}xa(t,s,e,o)}else s=vw(n,t,e,o,r);return zs(s)}dg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Po(t.pendingLanes);n!==0&&(Ic(t,n|1),et(t,Ce()),!(te&6)&&(Kr=Ce()+500,Ln()))}break;case 13:Jn(function(){var r=Yt(e,1);if(r!==null){var o=He();Et(r,e,1,o)}}),vd(e,1)}};Fc=function(e){if(e.tag===13){var t=Yt(e,134217728);if(t!==null){var n=He();Et(t,e,134217728,n)}vd(e,134217728)}};fg=function(e){if(e.tag===13){var t=wn(e),n=Yt(e,t);if(n!==null){var r=He();Et(n,e,t,r)}vd(e,t)}};pg=function(){return oe};hg=function(e,t){var n=oe;try{return oe=e,t()}finally{oe=n}};ou=function(e,t,n){switch(t){case"input":if(ql(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=pa(r);if(!o)throw Error(_(90));Hm(r),ql(r,o)}}}break;case"textarea":Gm(e,n);break;case"select":t=n.value,t!=null&&Or(e,!!n.multiple,t,!1)}};eg=fd;tg=Jn;var yw={usingClientEntryPoint:!1,Events:[hi,wr,pa,Jm,Zm,fd]},ho={findFiberByHostInstance:Vn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},bw={bundleType:ho.bundleType,version:ho.version,rendererPackageName:ho.rendererPackageName,rendererConfig:ho.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Zt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=og(e),e===null?null:e.stateNode},findFiberByHostInstance:ho.findFiberByHostInstance||gw,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 Vi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vi.isDisabled&&Vi.supportsFiber)try{ua=Vi.inject(bw),At=Vi}catch{}}ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yw;ut.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!bd(t))throw Error(_(200));return mw(e,t,null,n)};ut.createRoot=function(e,t){if(!bd(e))throw Error(_(299));var n=!1,r="",o=Dv;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=gd(e,1,!1,null,null,n,!1,r,o),e[Xt]=t.current,Yo(e.nodeType===8?e.parentNode:e),new yd(t)};ut.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(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=og(t),e=e===null?null:e.stateNode,e};ut.flushSync=function(e){return Jn(e)};ut.hydrate=function(e,t,n){if(!Sa(t))throw Error(_(200));return Pa(null,e,t,!0,n)};ut.hydrateRoot=function(e,t,n){if(!bd(e))throw Error(_(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=Dv;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=_v(t,null,e,1,n??null,o,!1,i,s),e[Xt]=t.current,Yo(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 wa(t)};ut.render=function(e,t,n){if(!Sa(t))throw Error(_(200));return Pa(null,e,t,!1,n)};ut.unmountComponentAtNode=function(e){if(!Sa(e))throw Error(_(40));return e._reactRootContainer?(Jn(function(){Pa(null,null,e,!1,function(){e._reactRootContainer=null,e[Xt]=null})}),!0):!1};ut.unstable_batchedUpdates=fd;ut.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Sa(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return Pa(e,t,n,!1,r)};ut.version="18.2.0-next-9e3b772b8-20220608";function Iv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Iv)}catch(e){console.error(e)}}Iv(),_m.exports=ut;var Fv=_m.exports;const xw=Em(Fv);var Pp=Fv;Wl.createRoot=Pp.createRoot,Wl.hydrateRoot=Pp.hydrateRoot;const xd={prefix:String(Math.round(Math.random()*1e10)),current:0,isSSR:!1},wd=re.createContext(xd);let ww=!!(typeof window<"u"&&window.document&&window.document.createElement),gl=new WeakMap;function Sw(e=!1){let t=v.useContext(wd),n=v.useRef(null);if(n.current===null&&!e){var r,o;let i=(r=re.__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=gl.get(i);s==null?gl.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,gl.delete(i))}n.current=++t.current}return n.current}function Pw(e){let t=v.useContext(wd);t===xd&&!ww&&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=Sw(!!e);return e||`react-aria${t.prefix}-${n}`}function Cw(e){let t=re.useId(),[n]=v.useState(Sd()),r=n?"react-aria":`react-aria${xd.prefix}`;return e||`${r}-${t}`}const Ew=typeof re.useId=="function"?Cw:Pw;function kw(){return!1}function Tw(){return!0}function Rw(e){return()=>{}}function Sd(){return typeof re.useSyncExternalStore=="function"?re.useSyncExternalStore(Rw,kw,Tw):v.useContext(wd).isSSR}function Pd(e,t,n){let[r,o]=v.useState(e||t),i=v.useRef(e!==void 0),s=e!==void 0;v.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=v.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 Vv(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=Vv(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Nw(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Vv(e))&&(r&&(r+=" "),r+=t);return r}const tt=typeof window<"u"?re.useLayoutEffect:()=>{};function $w(e){let[t,n]=v.useState(e),r=v.useRef(t),o=v.useRef(null),i=v.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]);tt(()=>{o.current&&i()});let s=v.useCallback(a=>{o.current=a(r.current),i()},[i,o,r]);return[t,s]}let Us=new Map;function Ws(e){let[t,n]=v.useState(e),r=v.useRef(null),o=Ew(t),i=v.useCallback(s=>{r.current=s},[]);return Us.set(o,i),tt(()=>{let s=o;return()=>{Us.delete(s)}},[o]),v.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),o}function Mw(e,t){if(e===t)return e;let n=Us.get(e);if(n)return n(t),t;let r=Us.get(t);return r?(r(e),e):t}function Cp(e=[]){let t=Ws(),[n,r]=$w(t),o=v.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return tt(o,[t,o,...e]),n}function Ca(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function Se(...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]=Ca(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Nw(i,s):o==="id"&&i&&s?t.id=Mw(i,s):t[o]=s!==void 0?s:i}}return t}const Lw=new Set(["id"]),Aw=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ow=/^(data-.*)$/;function Cd(e,t={}){let{labelable:n,propNames:r}=t,o={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(Lw.has(i)||n&&Aw.has(i)||r!=null&&r.has(i)||Ow.test(i))&&(o[i]=e[i]);return o}function Rr(e){if(jw())e.focus({preventScroll:!0});else{let t=_w(e);e.focus(),Dw(t)}}let Bi=null;function jw(){if(Bi==null){Bi=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return Bi=!0,!0}})}catch{}}return Bi}function _w(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 Dw(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}let pr=new Map,Du=new Set;function Ep(){if(typeof window>"u")return;let e=n=>{let r=pr.get(n.target);r||(r=new Set,pr.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{let r=pr.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),pr.delete(n.target)),pr.size===0)){for(let o of Du)o();Du.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Ep():document.addEventListener("DOMContentLoaded",Ep));function Bv(e){requestAnimationFrame(()=>{pr.size===0?e():Du.add(e)})}function Iw(){let e=v.useRef(new Map),t=v.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=v.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=v.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return v.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Fw(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=Ws(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 Vw(){return typeof window.ResizeObserver<"u"}function Bw(e){const{ref:t,onResize:n}=e;v.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(Vw()){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 zv(e,t){tt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}},[e,t])}function zw(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 Ed(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 Uv(){return Ed(/^Mac/i)}function Uw(){return Ed(/^iPhone/i)}function Ww(){return Ed(/^iPad/i)||Uv()&&navigator.maxTouchPoints>1}function Wv(){return Uw()||Ww()}function Hw(){return zw(/Android/i)}function hr(e){const t=v.useRef(null);return tt(()=>{t.current=e},[e]),v.useCallback((...n)=>{const r=t.current;return r(...n)},[])}function Iu(e){return e.mozInputSource===0&&e.isTrusted?!0:Hw()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Kw(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const Gw=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Qw=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Hv(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize().script;return Gw.has(n)}let t=e.split("-")[0];return Qw.has(t)}function Kv(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Hv(e)?"rtl":"ltr"}}let Fu=Kv(),Eo=new Set;function kp(){Fu=Kv();for(let e of Eo)e(Fu)}function Xw(){let e=Sd(),[t,n]=v.useState(Fu);return v.useEffect(()=>(Eo.size===0&&window.addEventListener("languagechange",kp),Eo.add(n),()=>{Eo.delete(n),Eo.size===0&&window.removeEventListener("languagechange",kp)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Yw=re.createContext(null);function qw(e){let{locale:t,children:n}=e,r=Xw(),o=t?{locale:t,direction:Hv(t)?"rtl":"ltr"}:r;return re.createElement(Yw.Provider,{value:o},n)}var Mt=function(){return Mt=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},Mt.apply(this,arguments)};function Gv(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 Jw(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 Nr="default",Vu="",us=new WeakMap;function Tp(e){Wv()?(Nr==="default"&&(Vu=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),Nr="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(us.set(e,e.style.userSelect),e.style.userSelect="none")}function zi(e){if(Wv()){if(Nr!=="disabled")return;Nr="restoring",setTimeout(()=>{Bv(()=>{Nr==="restoring"&&(document.documentElement.style.webkitUserSelect==="none"&&(document.documentElement.style.webkitUserSelect=Vu||""),Vu="",Nr="default")})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&us.has(e)){let t=us.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),us.delete(e)}}const Qv=re.createContext(null);Qv.displayName="PressResponderContext";function Zw(e){let t=v.useContext(Qv);if(t){let{register:n,...r}=t;e=Se(r,e),n()}return zv(t,e.ref),e}function kd(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}=Zw(e),[p,m]=v.useState(!1),y=v.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:P,removeAllGlobalListeners:b}=Iw(),h=hr((x,$)=>{let F=y.current;s||F.didFirePressStart||(r&&r({type:"pressstart",pointerType:$,target:x.currentTarget,shiftKey:x.shiftKey,metaKey:x.metaKey,ctrlKey:x.ctrlKey,altKey:x.altKey}),n&&n(!0),F.didFirePressStart=!0,m(!0))}),g=hr((x,$,F=!0)=>{let M=y.current;M.didFirePressStart&&(M.ignoreClickAfterPress=!0,M.didFirePressStart=!1,o&&o({type:"pressend",pointerType:$,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:$,target:x.currentTarget,shiftKey:x.shiftKey,metaKey:x.metaKey,ctrlKey:x.ctrlKey,altKey:x.altKey}))}),S=hr((x,$)=>{s||i&&i({type:"pressup",pointerType:$,target:x.currentTarget,shiftKey:x.shiftKey,metaKey:x.metaKey,ctrlKey:x.ctrlKey,altKey:x.altKey})}),C=hr(x=>{let $=y.current;$.isPressed&&($.isOverTarget&&g(Dt($.target,x),$.pointerType,!1),$.isPressed=!1,$.isOverTarget=!1,$.activePointerId=null,$.pointerType=null,b(),c||zi($.target))}),T=hr(x=>{u&&C(x)}),R=v.useMemo(()=>{let x=y.current,$={onKeyDown(M){vl(M.nativeEvent,M.currentTarget)&&M.currentTarget.contains(M.target)?(Np(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"&&Bu(M.currentTarget)&&M.stopPropagation()},onKeyUp(M){vl(M.nativeEvent,M.currentTarget)&&!M.repeat&&M.currentTarget.contains(M.target)&&S(Dt(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"||Iu(M.nativeEvent))&&(!s&&!l&&Rr(M.currentTarget),h(M,"virtual"),S(M,"virtual"),g(M,"virtual")),x.ignoreEmulatedMouseEvents=!1,x.ignoreClickAfterPress=!1)}},F=M=>{if(x.isPressed&&vl(M,x.target)){Np(M.target,M.key)&&M.preventDefault(),M.stopPropagation(),x.isPressed=!1;let z=M.target;g(Dt(x.target,M),"keyboard",x.target.contains(z)),b(),x.target instanceof HTMLElement&&x.target.contains(z)&&(Bu(x.target)||x.target.getAttribute("role")==="link")&&x.target.click()}};if(typeof PointerEvent<"u"){$.onPointerDown=O=>{if(!(O.button!==0||!O.currentTarget.contains(O.target))){if(Kw(O.nativeEvent)){x.pointerType="virtual";return}yl(O.currentTarget)&&O.preventDefault(),x.pointerType=O.pointerType,O.stopPropagation(),x.isPressed||(x.isPressed=!0,x.isOverTarget=!0,x.activePointerId=O.pointerId,x.target=O.currentTarget,!s&&!l&&Rr(O.currentTarget),c||Tp(x.target),h(O,x.pointerType),P(document,"pointermove",M,!1),P(document,"pointerup",z,!1),P(document,"pointercancel",L,!1))}},$.onMouseDown=O=>{O.currentTarget.contains(O.target)&&O.button===0&&(yl(O.currentTarget)&&O.preventDefault(),O.stopPropagation())},$.onPointerUp=O=>{!O.currentTarget.contains(O.target)||x.pointerType==="virtual"||O.button===0&&lr(O,O.currentTarget)&&S(O,x.pointerType||O.pointerType)};let M=O=>{O.pointerId===x.activePointerId&&(lr(O,x.target)?x.isOverTarget||(x.isOverTarget=!0,h(Dt(x.target,O),x.pointerType)):x.isOverTarget&&(x.isOverTarget=!1,g(Dt(x.target,O),x.pointerType,!1),T(O)))},z=O=>{O.pointerId===x.activePointerId&&x.isPressed&&O.button===0&&(lr(O,x.target)?g(Dt(x.target,O),x.pointerType):x.isOverTarget&&g(Dt(x.target,O),x.pointerType,!1),x.isPressed=!1,x.isOverTarget=!1,x.activePointerId=null,x.pointerType=null,b(),c||zi(x.target))},L=O=>{C(O)};$.onDragStart=O=>{O.currentTarget.contains(O.target)&&C(O)}}else{$.onMouseDown=L=>{L.button!==0||!L.currentTarget.contains(L.target)||(yl(L.currentTarget)&&L.preventDefault(),L.stopPropagation(),!x.ignoreEmulatedMouseEvents&&(x.isPressed=!0,x.isOverTarget=!0,x.target=L.currentTarget,x.pointerType=Iu(L.nativeEvent)?"virtual":"mouse",!s&&!l&&Rr(L.currentTarget),h(L,x.pointerType),P(document,"mouseup",M,!1)))},$.onMouseEnter=L=>{L.currentTarget.contains(L.target)&&(L.stopPropagation(),x.isPressed&&!x.ignoreEmulatedMouseEvents&&(x.isOverTarget=!0,h(L,x.pointerType)))},$.onMouseLeave=L=>{L.currentTarget.contains(L.target)&&(L.stopPropagation(),x.isPressed&&!x.ignoreEmulatedMouseEvents&&(x.isOverTarget=!1,g(L,x.pointerType,!1),T(L)))},$.onMouseUp=L=>{L.currentTarget.contains(L.target)&&!x.ignoreEmulatedMouseEvents&&L.button===0&&S(L,x.pointerType)};let M=L=>{if(L.button===0){if(x.isPressed=!1,b(),x.ignoreEmulatedMouseEvents){x.ignoreEmulatedMouseEvents=!1;return}lr(L,x.target)?g(Dt(x.target,L),x.pointerType):x.isOverTarget&&g(Dt(x.target,L),x.pointerType,!1),x.isOverTarget=!1}};$.onTouchStart=L=>{if(!L.currentTarget.contains(L.target))return;L.stopPropagation();let O=eS(L.nativeEvent);O&&(x.activePointerId=O.identifier,x.ignoreEmulatedMouseEvents=!0,x.isOverTarget=!0,x.isPressed=!0,x.target=L.currentTarget,x.pointerType="touch",!s&&!l&&Rr(L.currentTarget),c||Tp(x.target),h(L,x.pointerType),P(window,"scroll",z,!0))},$.onTouchMove=L=>{if(!L.currentTarget.contains(L.target)||(L.stopPropagation(),!x.isPressed))return;let O=Rp(L.nativeEvent,x.activePointerId);O&&lr(O,L.currentTarget)?x.isOverTarget||(x.isOverTarget=!0,h(L,x.pointerType)):x.isOverTarget&&(x.isOverTarget=!1,g(L,x.pointerType,!1),T(L))},$.onTouchEnd=L=>{if(!L.currentTarget.contains(L.target)||(L.stopPropagation(),!x.isPressed))return;let O=Rp(L.nativeEvent,x.activePointerId);O&&lr(O,L.currentTarget)?(S(L,x.pointerType),g(L,x.pointerType)):x.isOverTarget&&g(L,x.pointerType,!1),x.isPressed=!1,x.activePointerId=null,x.isOverTarget=!1,x.ignoreEmulatedMouseEvents=!0,c||zi(x.target),b()},$.onTouchCancel=L=>{L.currentTarget.contains(L.target)&&(L.stopPropagation(),x.isPressed&&C(L))};let z=L=>{x.isPressed&&L.target.contains(x.target)&&C({currentTarget:x.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};$.onDragStart=L=>{L.currentTarget.contains(L.target)&&C(L)}}return $},[P,s,l,b,c,C,T,g,h,S]);return v.useEffect(()=>()=>{c||zi(y.current.target)},[c]),{isPressed:a||p,pressProps:Se(f,R)}}function Bu(e){return e.tagName==="A"&&e.hasAttribute("href")}function vl(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&&!Xv(o,n)||o instanceof HTMLTextAreaElement||o.isContentEditable)&&(!Bu(o)||i==="button"&&n!=="Enter")&&!(i==="link"&&n!=="Enter")}function eS(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Rp(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 Dt(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function tS(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 nS(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function lr(e,t){let n=t.getBoundingClientRect(),r=tS(e);return nS(n,r)}function yl(e){return!(e instanceof HTMLElement)||!e.draggable}function Np(e,t){return e instanceof HTMLInputElement?!Xv(e,t):e instanceof HTMLButtonElement?e.type!=="submit":!0}const rS=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Xv(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":rS.has(e.type)}class oS{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 Yv(e){let t=v.useRef({isFocused:!1,observer:null});tt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=hr(r=>{e==null||e(r)});return v.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 oS("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 qv(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=v.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),s=Yv(i),a=v.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 eo=null,zu=new Set,$p=!1,Zn=!1,Uu=!1;const iS={Tab:!0,Escape:!0};function Td(e,t){for(let n of zu)n(e,t)}function sS(e){return!(e.metaKey||!Uv()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Mp(e){Zn=!0,sS(e)&&(eo="keyboard",Td("keyboard",e))}function ur(e){eo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Zn=!0,Td("pointer",e))}function aS(e){Iu(e)&&(Zn=!0,eo="virtual")}function lS(e){e.target===window||e.target===document||(!Zn&&!Uu&&(eo="virtual",Td("virtual",e)),Zn=!1,Uu=!1)}function uS(){Zn=!1,Uu=!0}function Wu(){if(typeof window>"u"||$p)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Zn=!0,e.apply(this,arguments)},document.addEventListener("keydown",Mp,!0),document.addEventListener("keyup",Mp,!0),document.addEventListener("click",aS,!0),window.addEventListener("focus",lS,!0),window.addEventListener("blur",uS,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",ur,!0),document.addEventListener("pointermove",ur,!0),document.addEventListener("pointerup",ur,!0)):(document.addEventListener("mousedown",ur,!0),document.addEventListener("mousemove",ur,!0),document.addEventListener("mouseup",ur,!0)),$p=!0}typeof document<"u"&&(document.readyState!=="loading"?Wu():document.addEventListener("DOMContentLoaded",Wu));function Jv(){return eo!=="pointer"}function cS(){return eo}function dS(e,t,n){return!(e&&t==="keyboard"&&n instanceof KeyboardEvent&&!iS[n.key])}function fS(e,t,n){Wu(),v.useEffect(()=>{let r=(o,i)=>{dS(n==null?void 0:n.isTextInput,o,i)&&e(Jv())};return zu.add(r),()=>{zu.delete(r)}},t)}function pS(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=v.useRef({isFocusWithin:!1}),s=v.useCallback(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,i]),a=Yv(s),l=v.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 Hs=!1,bl=0;function Hu(){Hs=!0,setTimeout(()=>{Hs=!1},50)}function Lp(e){e.pointerType==="touch"&&Hu()}function hS(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Lp):document.addEventListener("touchend",Hu),bl++,()=>{bl--,!(bl>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Lp):document.removeEventListener("touchend",Hu))}}function Ea(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=v.useState(!1),a=v.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;v.useEffect(hS,[]);let{hoverProps:l,triggerHoverEnd:u}=v.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=>{Hs&&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&&!Hs&&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 v.useEffect(()=>{o&&u({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:l,isHovered:i}}function Ap(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 mS(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Ap(e.onKeyDown),onKeyUp:Ap(e.onKeyUp)}}}function Zv(e){if(cS()==="virtual"){let t=document.activeElement;Bv(()=>{document.activeElement===t&&document.contains(e)&&Rr(e)})}else Rr(e)}function gS(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 vS(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function ey(e,t){return e.nodeName!=="#comment"&&gS(e)&&vS(e,t)&&(!e.parentElement||ey(e.parentElement,e))}const Op=re.createContext(null);let fe=null;function yS(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=v.useRef(),s=v.useRef(),a=v.useRef([]),{parentNode:l}=v.useContext(Op)||{},u=v.useMemo(()=>new Gu({scopeRef:a}),[a]);tt(()=>{let f=l||Pe.root;if(Pe.getTreeNode(f.scopeRef)&&fe&&!Ks(fe,f.scopeRef)){let p=Pe.getTreeNode(fe);p&&(f=p)}f.addChild(u),Pe.addNode(u)},[u,l]),tt(()=>{let f=Pe.getTreeNode(a);f.contain=n},[n]),tt(()=>{let f=i.current.nextSibling,p=[];for(;f&&f!==s.current;)p.push(f),f=f.nextSibling;a.current=p},[t]),CS(a,r,n),SS(a,n),kS(a,r,n),PS(a,o),v.useEffect(()=>{if(a){let f=document.activeElement,p=null;if(Be(f,a.current)){for(let m of Pe.traverse())Be(f,m.scopeRef.current)&&(p=m);p===Pe.getTreeNode(a)&&(fe=p.scopeRef)}return()=>{let m=Pe.getTreeNode(a).parent.scopeRef;(a===fe||Ks(a,fe))&&(!m||Pe.getTreeNode(m))&&(fe=m),Pe.removeTreeNode(a)}}},[a]);let c=v.useMemo(()=>bS(a),[]),d=v.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return re.createElement(Op.Provider,{value:d},re.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,re.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function bS(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=pn(Un(n),{tabbable:o,accept:s},n);u.currentNode=Be(a,n)?a:l;let c=u.nextNode();return!c&&i&&(u.currentNode=l,c=u.nextNode()),c&&zt(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=pn(Un(n),{tabbable:o,accept:s},n);u.currentNode=Be(a,n)?a:l;let c=u.previousNode();return!c&&i&&(u.currentNode=l,c=u.previousNode()),c&&zt(c,!0),c},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=pn(Un(n),{tabbable:r,accept:o},n);i.currentNode=n[0].previousElementSibling;let s=i.nextNode();return s&&zt(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=pn(Un(n),{tabbable:r,accept:o},n);i.currentNode=n[n.length-1].nextElementSibling;let s=i.previousNode();return s&&zt(s,!0),s}}}const Rd=["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]"],xS=Rd.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Rd.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const wS=Rd.join(':not([hidden]):not([tabindex="-1"]),');function Un(e){return e[0].parentElement}function ko(e){let t=Pe.getTreeNode(fe);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function SS(e,t){let n=v.useRef(),r=v.useRef(null);tt(()=>{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||!ko(e))return;let u=document.activeElement,c=e.current;if(!Be(u,c))return;let d=pn(Un(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&&zt(f,!0)},s=l=>{(!fe||Ks(fe,e))&&Be(l.target,e.current)?(fe=e,n.current=l.target):ko(e)&&!Ku(l.target,e)?n.current?n.current.focus():fe&&Gs(fe.current):ko(e)&&(n.current=l.target)},a=l=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{ko(e)&&!Ku(document.activeElement,e)&&(fe=e,document.body.contains(l.target)?(n.current=l.target,n.current.focus()):fe&&Gs(fe.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]),tt(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function ty(e){return Ku(e)}function Be(e,t){return t.some(n=>n.contains(e))}function Ku(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Pe.traverse(Pe.getTreeNode(t)))if(Be(e,n.current))return!0;return!1}function Ks(e,t){var n;let r=(n=Pe.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function zt(e,t=!1){if(e!=null&&!t)try{Zv(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Gs(e,t=!0){let n=e[0].previousElementSibling,r=pn(Un(e),{tabbable:t},e);r.currentNode=n;let o=r.nextNode();t&&!o&&(r=pn(Un(e),{tabbable:!1},e),r.currentNode=n,o=r.nextNode()),zt(o)}function PS(e,t){const n=re.useRef(t);v.useEffect(()=>{n.current&&(fe=e,Be(document.activeElement,fe.current)||Gs(e.current)),n.current=!1},[e])}function CS(e,t,n){tt(()=>{if(t||n)return;let r=e.current,o=i=>{let s=i.target;Be(s,e.current)?fe=e:ty(s)||(fe=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 ES(e){let t=Pe.getTreeNode(fe);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function kS(e,t,n){const r=v.useRef(typeof document<"u"?document.activeElement:null);tt(()=>{let o=e.current;if(!t||n)return;let i=()=>{(!fe||Ks(fe,e))&&Be(document.activeElement,e.current)&&(fe=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]),tt(()=>{if(!t)return;Pe.getTreeNode(e).nodeToRestore=r.current;let o=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!ko(e))return;let s=document.activeElement;if(!Be(s,e.current))return;let a=Pe.getTreeNode(e).nodeToRestore,l=pn(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,Pe.getTreeNode(e).nodeToRestore=null),(!u||!Be(u,e.current))&&a){l.currentNode=a;do u=i.shiftKey?l.previousNode():l.nextNode();while(Be(u,e.current));i.preventDefault(),i.stopPropagation(),u?zt(u,!0):ty(a)?zt(a,!0):s.blur()}};return n||document.addEventListener("keydown",o,!0),()=>{n||document.removeEventListener("keydown",o,!0);let i=Pe.getTreeNode(e).nodeToRestore;if(t&&i&&(Be(document.activeElement,e.current)||document.activeElement===document.body&&ES(e))){let s=Pe.clone();requestAnimationFrame(()=>{if(document.activeElement===document.body){let a=s.getTreeNode(e);for(;a;){if(a.nodeToRestore&&document.body.contains(a.nodeToRestore)){zt(a.nodeToRestore);return}a=a.parent}for(a=s.getTreeNode(e);a;){if(a.scopeRef&&Pe.getTreeNode(a.scopeRef)){Gs(a.scopeRef.current,!0);return}a=a.parent}}})}}},[e,t,n])}function pn(e,t,n){let r=t!=null&&t.tabbable?wS:xS,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)&&ey(i)&&(!n||Be(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 Nd{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 Gu({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&&Be(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 Nd;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 Gu({scopeRef:null}),this.fastMap.set(null,this.root)}}class Gu{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 Pe=new Nd;function Gr(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=v.useRef({isFocused:!1,isFocusVisible:t||Jv()}),[i,s]=v.useState(!1),[a,l]=v.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=v.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),c=v.useCallback(p=>{o.current.isFocused=p,s(p),u()},[u]);fS(p=>{o.current.isFocusVisible=p,u()},[],{isTextInput:n});let{focusProps:d}=qv({isDisabled:r,onFocusChange:c}),{focusWithinProps:f}=pS({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:a,focusProps:r?f:d}}let TS=re.createContext(null);function RS(e){let t=v.useContext(TS)||{};zv(t,e);let{ref:n,...r}=t;return r}function $d(e,t){let{focusProps:n}=qv(e),{keyboardProps:r}=mS(e),o=Se(n,r),i=RS(t),s=e.isDisabled?{}:i,a=v.useRef(e.autoFocus);return v.useEffect(()=>{a.current&&t.current&&Zv(t.current),a.current=!1},[t]),{focusableProps:Se({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}const Qu=re.createContext(null);function NS(e){let{children:t}=e,n=v.useContext(Qu),[r,o]=v.useState(0),i=v.useMemo(()=>({parent:n,modalCount:r,addModal(){o(s=>s+1),n&&n.addModal()},removeModal(){o(s=>s-1),n&&n.removeModal()}}),[n,r]);return re.createElement(Qu.Provider,{value:i},t)}function $S(){let e=v.useContext(Qu);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function MS(e){let{modalProviderProps:t}=$S();return re.createElement("div",{"data-overlay-container":!0,...e,...t})}function LS(e){return re.createElement(NS,null,re.createElement(MS,e))}const jp=re.createContext(null);function AS(e){let t=Sd(),{portalContainer:n=t?null:document.body}=e,[r,o]=v.useState(!1),i=v.useMemo(()=>({contain:r,setContain:o}),[r,o]);if(!n)return null;let s;return e.disableFocusManagement?s=re.createElement(jp.Provider,{value:i},e.children):s=re.createElement(jp.Provider,{value:i},re.createElement(yS,{restoreFocus:!0,contain:r},e.children)),xw.createPortal(s,n)}var OS=({children:e,locale:t="en"})=>E.jsx(qw,{locale:t,children:E.jsx(LS,{children:e})});function Xe(e){return v.forwardRef(e)}var gi=(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]},_p=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,rt=e=>!e||typeof e!="object"||Object.keys(e).length===0,jS=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function ny(e,t){e.forEach(function(n){Array.isArray(n)?ny(n,t):t.push(n)})}function ry(e){let t=[];return ny(e,t),t}var _S=(...e)=>ry(e).filter(Boolean),oy=(e,t)=>{let n={};for(let r in e)t!=null&&t.hasOwnProperty(r)?n[r]=typeof e[r]=="object"?oy(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},Dp=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function DS(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=iy(t))&&(r&&(r+=" "),r+=n);return r}function iy(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=iy(e[r]))&&(n&&(n+=" "),n+=t);return n}var Md="-";function IS(e){var t=VS(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=r===void 0?{}:r;function i(a){var l=a.split(Md);return l[0]===""&&l.length!==1&&l.shift(),sy(l,t)||FS(a)}function s(a,l){var u=n[a]||[];return l&&o[a]?[].concat(u,o[a]):u}return{getClassGroupId:i,getConflictingClassGroupIds:s}}function sy(e,t){var s;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?sy(e.slice(1),r):void 0;if(o)return o;if(t.validators.length!==0){var i=e.join(Md);return(s=t.validators.find(function(a){var l=a.validator;return l(i)}))==null?void 0:s.classGroupId}}var Ip=/^\[(.+)\]$/;function FS(e){if(Ip.test(e)){var t=Ip.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function VS(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=zS(Object.entries(e.classGroups),n);return o.forEach(function(i){var s=i[0],a=i[1];Xu(a,r,s,t)}),r}function Xu(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var i=o===""?t:Fp(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(BS(o)){Xu(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];Xu(l,Fp(t,a),n,r)})})}function Fp(e,t){var n=e;return t.split(Md).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function BS(e){return e.isThemeGetter}function zS(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 US(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 ay="!";function WS(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(ay),y=m?p.substring(1):p,P=c&&c>u?c-u:void 0;return{modifiers:a,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:P}}}function HS(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 KS(e){return{cache:US(e.cacheSize),splitModifiers:WS(e),...IS(e)}}var GS=/\s+/;function QS(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(GS).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=HS(l).join(":"),y=u?m+ay: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 Yu(){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=KS(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=QS(u,r);return i(u,d),d}return function(){return s(DS.apply(null,arguments))}}function ue(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var ly=/^\[(?:([a-z-]+):)?(.+)\]$/i,XS=/^\d+\/\d+$/,YS=new Set(["px","full","screen"]),qS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,JS=/\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$/,ZS=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function xt(e){return Wn(e)||YS.has(e)||XS.test(e)||qu(e)}function qu(e){return nr(e,"length",iP)}function eP(e){return nr(e,"size",uy)}function tP(e){return nr(e,"position",uy)}function nP(e){return nr(e,"url",sP)}function Ui(e){return nr(e,"number",Wn)}function Wn(e){return!Number.isNaN(Number(e))}function rP(e){return e.endsWith("%")&&Wn(e.slice(0,-1))}function mo(e){return Vp(e)||nr(e,"number",Vp)}function Y(e){return ly.test(e)}function go(){return!0}function nn(e){return qS.test(e)}function oP(e){return nr(e,"",aP)}function nr(e,t,n){var r=ly.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function iP(e){return JS.test(e)}function uy(){return!1}function sP(e){return e.startsWith("url(")}function Vp(e){return Number.isInteger(Number(e))}function aP(e){return ZS.test(e)}function Ju(){var e=ue("colors"),t=ue("spacing"),n=ue("blur"),r=ue("brightness"),o=ue("borderColor"),i=ue("borderRadius"),s=ue("borderSpacing"),a=ue("borderWidth"),l=ue("contrast"),u=ue("grayscale"),c=ue("hueRotate"),d=ue("invert"),f=ue("gap"),p=ue("gradientColorStops"),m=ue("gradientColorStopPositions"),y=ue("inset"),P=ue("margin"),b=ue("opacity"),h=ue("padding"),g=ue("saturate"),S=ue("scale"),C=ue("sepia"),T=ue("skew"),R=ue("space"),x=ue("translate"),$=function(){return["auto","contain","none"]},F=function(){return["auto","hidden","clip","visible","scroll"]},M=function(){return["auto",Y,t]},z=function(){return[Y,t]},L=function(){return["",xt]},O=function(){return["auto",Wn,Y]},U=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},J=function(){return["solid","dashed","dotted","double","none"]},ie=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},j=function(){return["start","end","center","between","around","evenly","stretch"]},A=function(){return["","0",Y]},I=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},w=function(){return[Wn,Ui]},k=function(){return[Wn,Y]};return{cacheSize:500,theme:{colors:[go],spacing:[xt],blur:["none","",nn,Y],brightness:w(),borderColor:[e],borderRadius:["none","","full",nn,Y],borderSpacing:z(),borderWidth:L(),contrast:w(),grayscale:A(),hueRotate:k(),invert:A(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[rP,qu],inset:M(),margin:M(),opacity:w(),padding:z(),saturate:w(),scale:w(),sepia:A(),skew:k(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[nn]}],"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(),[Y])}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],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",mo]}],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",Y]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",mo]}],"grid-cols":[{"grid-cols":[go]}],"col-start-end":[{col:["auto",{span:["full",mo]},Y]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[go]}],"row-start-end":[{row:["auto",{span:[mo]},Y]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(j())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(j(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(j(),["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":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",Y,t]}],"min-w":[{"min-w":["min","max","fit",Y,xt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[nn]},nn,Y]}],h:[{h:[Y,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Y,xt]}],"max-h":[{"max-h":[Y,t,"min","max","fit"]}],"font-size":[{text:["base",nn,qu]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ui]}],"font-family":[{font:[go]}],"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",Y]}],"line-clamp":[{"line-clamp":["none",Wn,Ui]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Y,xt]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"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(J(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",xt]}],"underline-offset":[{"underline-offset":["auto",Y,xt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],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",Y]}],"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(),[tP])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",eP]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},nP]}],"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(J(),["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:J()}],"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(J())}],"outline-offset":[{"outline-offset":[Y,xt]}],"outline-w":[{outline:[xt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[xt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",nn,oP]}],"shadow-color":[{shadow:[go]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":ie()}],"bg-blend":[{"bg-blend":ie()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",nn,Y]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[g]}],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":[g]}],"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",Y]}],duration:[{duration:k()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:k()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[mo,Y]}],"translate-x":[{"translate-x":[x]}],"translate-y":[{"translate-y":[x]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Y]}],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",Y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"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",Y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[xt,Ui]}],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 lP(e,t){for(var n in t)cy(e,n,t[n]);return e}var uP=Object.prototype.hasOwnProperty,cP=new Set(["string","number","boolean"]);function cy(e,t,n){if(!uP.call(e,t)||cP.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)cy(e[t],r,n[r])}}function dP(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"?Yu.apply(void 0,[Ju,e].concat(n)):Yu.apply(void 0,[function(){return lP(Ju(),e)}].concat(n))}var fP=Yu(Ju),pP={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},dy=e=>e||void 0,Qs=(...e)=>dy(ry(e).filter(Boolean).join(" ")),xl=null,Xs={},Zu=!1,vo=(...e)=>t=>t.twMerge?((!xl||Zu)&&(Zu=!1,xl=rt(Xs)?fP:dP(Xs)),dy(xl(Qs(e)))):Qs(e),Bp=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=Qs(e[n],t[n]):e[n]=t[n];return e},hP=(e,t)=>{var n,r,o,i,s;let{slots:a={},variants:l={},compoundVariants:u=[],compoundSlots:c=[],defaultVariants:d={}}=e,f={...pP,...t},p=Qs((n=e==null?void 0:e.extend)==null?void 0:n.base,e==null?void 0:e.base),m=oy(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};!rt(f.twMergeConfig)&&!jS(f.twMergeConfig,Xs)&&(Zu=!0,Xs=f.twMergeConfig);let P=rt(a)?{}:{base:e==null?void 0:e.base,...a},b=rt((i=e==null?void 0:e.extend)==null?void 0:i.slots)?P:Bp((s=e==null?void 0:e.extend)==null?void 0:s.slots,rt(P)?{base:e==null?void 0:e.base}:P),h=S=>{var C,T,R,x;if(rt(m)&&rt(a)&&rt((C=e==null?void 0:e.extend)==null?void 0:C.slots))return vo(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 $=(A,I,w=[],k)=>{let D=w;if(typeof I=="string")D.push(Dp(I).split(" ").map(V=>`${A}:${V}`));else if(Array.isArray(I))D.push(I.flatMap(V=>`${A}:${V}`));else if(typeof I=="object"&&typeof k=="string"){let V=I==null?void 0:I[k];if(V&&typeof V=="string"){let H=Dp(V);D[k]=D[k]?[...D[k],...H.split(" ").map(W=>`${A}:${W}`)]:H.split(" ").map(W=>`${A}:${W}`)}else Array.isArray(V)&&V.length>0&&(D[k]=V.flatMap(H=>`${A}:${H}`))}return D},F=(A,I=m,w=null)=>{let k=I==null?void 0:I[A];if(!k||rt(k))return null;let D=S==null?void 0:S[A];if(D===null)return null;let V=_p(D),H=Array.isArray(f.responsiveVariants)&&f.responsiveVariants.length>0||f.responsiveVariants===!0,W=y==null?void 0:y[A],G=[];typeof V=="object"&&H&&(G=Object.keys(V).reduce((Z,le)=>{let ke=V[le],On=k==null?void 0:k[ke];return le==="initial"?(W=ke,Z):Array.isArray(f.responsiveVariants)&&!f.responsiveVariants.includes(le)?Z:$(le,On,Z,w)},[]));let ne=k[V]||k[_p(W)];return typeof G=="object"&&typeof w=="string"&&G[w]?Bp(G,ne):G.length>0?[ne,...G]:ne},M=()=>m?Object.keys(m).map(A=>F(A,m)):null,z=A=>!m||typeof m!="object"?null:Object.keys(m).reduce((I,w)=>{let k=F(w,m,A),D=A==="base"&&typeof k=="string"?k:k&&k[A];return D&&I.push(D),I},[]),L=S&&Object.fromEntries(Object.entries(S).filter(([,A])=>A!==void 0)),O=A=>{var I;let w=typeof(S==null?void 0:S[A])=="object"?{[A]:(I=S[A])==null?void 0:I.initial}:{};return{...y,...L,...w}},U=(A=[])=>A==null?void 0:A.filter(({class:I,className:w,...k})=>Object.entries(k).every(([D,V])=>{let H=O(D);return Array.isArray(V)?V.includes(H[D]):H[D]===V})).flatMap(({class:I,className:w})=>[I,w]),J=()=>{var A;let I=U(u),w=U((A=e==null?void 0:e.extend)==null?void 0:A.compoundVariants);return _S(w,I)},ie=()=>{let A=J();return Array.isArray(A)?A.reduce((I,w)=>{if(typeof w=="string"&&(I.base=vo(I.base,w)(f)),typeof w=="object"){let k=Object.keys(w);for(let D of k)I[D]=vo(I[D],w[D])(f)}return I},{}):A},j=()=>c.length<1?null:c.reduce((A,I)=>{let{slots:w=[],class:k,className:D,...V}=I;if(!rt(V)){let H=Object.keys(V);for(let W of H){let G=O(W)[W];if(!G||G!==V[W])return A}}for(let H of w)A[H]||(A[H]=[]),A[H].push([k,D]);return A},{});if(!rt(a)||!rt((T=e==null?void 0:e.extend)==null?void 0:T.slots)){let A=(R=ie())!=null?R:[],I=(x=j())!=null?x:[];return{...typeof b=="object"&&!rt(b)?Object.keys(b).reduce((w,k)=>(w[k]=D=>vo(b[k],z(k),A==null?void 0:A[k],I==null?void 0:I[k],D==null?void 0:D.class,D==null?void 0:D.className)(f),w),{}):{}}}return vo(p,M(),J(),S==null?void 0:S.class,S==null?void 0:S.className)(f)},g=()=>{if(!(!m||typeof m!="object"))return Object.keys(m)};return h.variantKeys=g(),h.base=p,h.slots=b,h.variants=m,h.defaultVariants=y,h.compoundSlots=c,h.compoundVariants=u,h},mP=["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"],wl=mP.map(e=>`unit-${e}`),Wi=["small","medium","large"],rr=(e,t)=>{var n,r,o;return hP(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",...wl],borderWidth:Wi,borderRadius:Wi},classGroups:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.classGroups,shadow:[{shadow:Wi}],"font-size":[{text:["tiny",...Wi]}],"bg-image":["bg-stripe-gradient"],"min-w":[{"min-w":["unit",...wl]}],"min-h":[{"min-h":["unit",...wl]}]}}})},vi=["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"],gP=["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"],Sl=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],zp=rr({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}}),vP={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"},yP={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"},bP={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"},xP={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"},wP={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"},SP={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"},PP={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"},cr={solid:vP,shadow:yP,bordered:bP,flat:xP,faded:wP,light:SP,ghost:PP},Up=rr({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",...vi],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:[...gP]}},{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"]}}]}),Wp=rr({base:["relative inline-flex items-center outline-none tap-highlight-transparent",...vi],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}}),CP="flex mx-1 text-current self-center",Hp=rr({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",...vi],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}}),EP=rr({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-10",...vi],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...Sl,"flex","items-center","justify-center"],name:[...Sl,"font-normal","text-center","text-inherit"],icon:[...Sl,"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:cr.solid.default},primary:{base:cr.solid.primary},secondary:{base:cr.solid.secondary},success:{base:cr.solid.success},warning:{base:cr.solid.warning},danger:{base:cr.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"}}]});rr({base:"flex items-center justify-center h-auto w-max-content",variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}});var Kp=rr({slots:{base:["flex","flex-col","relative","overflow-hidden","height-auto","outline-none","text-foreground","box-border","bg-content1",...vi],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}}),kP=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3),TP=(...e)=>{let t=" ";for(const n of e)if(typeof n=="string"&&n.length>0){t=n;break}return t};function fy(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=fy(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function se(...e){for(var t=0,n,r,o="";t<e.length;)(n=e[t++])&&(r=fy(n))&&(o&&(o+=" "),o+=r);return o}var X=e=>e?"true":void 0;function Ld(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=v.createContext(void 0);o.displayName=r;function i(){var s;const a=v.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 Ke(e){const t=v.useRef(null);return v.useImperativeHandle(e,()=>t.current),t}var RP=Object.create,py=Object.defineProperty,NP=Object.getOwnPropertyDescriptor,hy=Object.getOwnPropertyNames,$P=Object.getPrototypeOf,MP=Object.prototype.hasOwnProperty,my=(e,t)=>function(){return t||(0,e[hy(e)[0]])((t={exports:{}}).exports,t),t.exports},LP=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of hy(t))!MP.call(e,o)&&o!==n&&py(e,o,{get:()=>t[o],enumerable:!(r=NP(t,o))||r.enumerable});return e},AP=(e,t,n)=>(n=e!=null?RP($P(e)):{},LP(t||!e||!e.__esModule?py(n,"default",{value:e,enumerable:!0}):n,e)),OP=my({"../../../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,D){this.props=w,this.context=k,this.refs=P,this.updater=D||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 g(w,k,D){this.props=w,this.context=k,this.refs=P,this.updater=D||m}var S=g.prototype=new h;S.constructor=g,y(S,b.prototype),S.isPureReactComponent=!0;var C=Array.isArray,T=Object.prototype.hasOwnProperty,R={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function $(w,k,D){var V,H={},W=null,G=null;if(k!=null)for(V in k.ref!==void 0&&(G=k.ref),k.key!==void 0&&(W=""+k.key),k)T.call(k,V)&&!x.hasOwnProperty(V)&&(H[V]=k[V]);var ne=arguments.length-2;if(ne===1)H.children=D;else if(1<ne){for(var Z=Array(ne),le=0;le<ne;le++)Z[le]=arguments[le+2];H.children=Z}if(w&&w.defaultProps)for(V in ne=w.defaultProps,ne)H[V]===void 0&&(H[V]=ne[V]);return{$$typeof:t,type:w,key:W,ref:G,props:H,_owner:R.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 z(w){var k={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(D){return k[D]})}var L=/\/+/g;function O(w,k){return typeof w=="object"&&w!==null&&w.key!=null?z(""+w.key):k.toString(36)}function U(w,k,D,V,H){var W=typeof w;(W==="undefined"||W==="boolean")&&(w=null);var G=!1;if(w===null)G=!0;else switch(W){case"string":case"number":G=!0;break;case"object":switch(w.$$typeof){case t:case n:G=!0}}if(G)return G=w,H=H(G),w=V===""?"."+O(G,0):V,C(H)?(D="",w!=null&&(D=w.replace(L,"$&/")+"/"),U(H,k,D,"",function(le){return le})):H!=null&&(M(H)&&(H=F(H,D+(!H.key||G&&G.key===H.key?"":(""+H.key).replace(L,"$&/")+"/")+w)),k.push(H)),1;if(G=0,V=V===""?".":V+":",C(w))for(var ne=0;ne<w.length;ne++){W=w[ne];var Z=V+O(W,ne);G+=U(W,k,D,Z,H)}else if(Z=p(w),typeof Z=="function")for(w=Z.call(w),ne=0;!(W=w.next()).done;)W=W.value,Z=V+O(W,ne++),G+=U(W,k,D,Z,H);else if(W==="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 G}function J(w,k,D){if(w==null)return w;var V=[],H=0;return U(w,V,"","",function(W){return k.call(D,W,H++)}),V}function ie(w){if(w._status===-1){var k=w._result;k=k(),k.then(function(D){(w._status===0||w._status===-1)&&(w._status=1,w._result=D)},function(D){(w._status===0||w._status===-1)&&(w._status=2,w._result=D)}),w._status===-1&&(w._status=0,w._result=k)}if(w._status===1)return w._result.default;throw w._result}var j={current:null},A={transition:null},I={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:A,ReactCurrentOwner:R};e.Children={map:J,forEach:function(w,k,D){J(w,function(){k.apply(this,arguments)},D)},count:function(w){var k=0;return J(w,function(){k++}),k},toArray:function(w){return J(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=g,e.StrictMode=o,e.Suspense=u,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,e.cloneElement=function(w,k,D){if(w==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+w+".");var V=y({},w.props),H=w.key,W=w.ref,G=w._owner;if(k!=null){if(k.ref!==void 0&&(W=k.ref,G=R.current),k.key!==void 0&&(H=""+k.key),w.type&&w.type.defaultProps)var ne=w.type.defaultProps;for(Z in k)T.call(k,Z)&&!x.hasOwnProperty(Z)&&(V[Z]=k[Z]===void 0&&ne!==void 0?ne[Z]:k[Z])}var Z=arguments.length-2;if(Z===1)V.children=D;else if(1<Z){ne=Array(Z);for(var le=0;le<Z;le++)ne[le]=arguments[le+2];V.children=ne}return{$$typeof:t,type:w.type,key:H,ref:W,props:V,_owner:G}},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=$,e.createFactory=function(w){var k=$.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:ie}},e.memo=function(w,k){return{$$typeof:c,type:w,compare:k===void 0?null:k}},e.startTransition=function(w){var k=A.transition;A.transition={};try{w()}finally{A.transition=k}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(w,k){return j.current.useCallback(w,k)},e.useContext=function(w){return j.current.useContext(w)},e.useDebugValue=function(){},e.useDeferredValue=function(w){return j.current.useDeferredValue(w)},e.useEffect=function(w,k){return j.current.useEffect(w,k)},e.useId=function(){return j.current.useId()},e.useImperativeHandle=function(w,k,D){return j.current.useImperativeHandle(w,k,D)},e.useInsertionEffect=function(w,k){return j.current.useInsertionEffect(w,k)},e.useLayoutEffect=function(w,k){return j.current.useLayoutEffect(w,k)},e.useMemo=function(w,k){return j.current.useMemo(w,k)},e.useReducer=function(w,k,D){return j.current.useReducer(w,k,D)},e.useRef=function(w){return j.current.useRef(w)},e.useState=function(w){return j.current.useState(w)},e.useSyncExternalStore=function(w,k,D){return j.current.useSyncExternalStore(w,k,D)},e.useTransition=function(){return j.current.useTransition()},e.version="18.2.0"}}),jP=my({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){t.exports=OP()}}),Gp=AP(jP()),_P=(e,t)=>{let n=[];const r=Gp.Children.map(e,i=>(0,Gp.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 DP=new Set(["id","type","className","style","title","role","tabIndex","htmlFor","width","height"]),IP=/^(data-.*)$/,FP=/^(aria-.*)$/,VP=/^(on[A-Z].*)$/;function ec(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)&&(DP.has(i)||n&&FP.test(i)||r!=null&&r.has(i)||IP.test(i))||VP.test(i))&&(o[i]=e[i]);return o}var BP=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"})]}),zP=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 gy=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ka=v.createContext({}),Ta=v.createContext(null),Ra=typeof document<"u",Ys=Ra?v.useLayoutEffect:v.useEffect,vy=v.createContext({strict:!1});function UP(e,t,n,r){const{visualElement:o}=v.useContext(ka),i=v.useContext(vy),s=v.useContext(Ta),a=v.useContext(gy).reducedMotion,l=v.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 v.useInsertionEffect(()=>{u&&u.update(n,s)}),Ys(()=>{u&&u.render()}),v.useEffect(()=>{u&&u.updateFeatures()}),(window.HandoffAppearAnimations?Ys:v.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}function $r(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function WP(e,t,n){return v.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):$r(n)&&(n.current=r))},[t])}function ii(e){return typeof e=="string"||Array.isArray(e)}function Na(e){return typeof e=="object"&&typeof e.start=="function"}const Ad=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Od=["initial",...Ad];function $a(e){return Na(e.animate)||Od.some(t=>ii(e[t]))}function yy(e){return!!($a(e)||e.variants)}function HP(e,t){if($a(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ii(n)?n:void 0,animate:ii(r)?r:void 0}}return e.inherit!==!1?t:{}}function KP(e){const{initial:t,animate:n}=HP(e,v.useContext(ka));return v.useMemo(()=>({initial:t,animate:n}),[Qp(t),Qp(n)])}function Qp(e){return Array.isArray(e)?e.join(" "):e}const Xp={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"]},si={};for(const e in Xp)si[e]={isEnabled:t=>Xp[e].some(n=>!!t[n])};function GP(e){for(const t in e)si[t]={...si[t],...e[t]}}const jd=v.createContext({}),by=v.createContext({}),QP=Symbol.for("motionComponentSymbol");function XP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&GP(e);function i(a,l){let u;const c={...v.useContext(gy),...a,layoutId:YP(a)},{isStatic:d}=c,f=KP(a),p=r(a,d);if(!d&&Ra){f.visualElement=UP(o,p,c,t);const m=v.useContext(by),y=v.useContext(vy).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,y,e,m))}return v.createElement(ka.Provider,{value:f},u&&f.visualElement?v.createElement(u,{visualElement:f.visualElement,...c}):null,n(o,a,WP(p,f.visualElement,l),p,d,f.visualElement))}const s=v.forwardRef(i);return s[QP]=o,s}function YP({layoutId:e}){const t=v.useContext(jd).id;return t&&e!==void 0?t+"-"+e:e}function qP(e){function t(r,o={}){return XP(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 JP=["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 _d(e){return typeof e!="string"||e.includes("-")?!1:!!(JP.indexOf(e)>-1||/[A-Z]/.test(e))}const qs={};function ZP(e){Object.assign(qs,e)}const yi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],or=new Set(yi);function xy(e,{layout:t,layoutId:n}){return or.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!qs[e]||e==="opacity")}const nt=e=>!!(e&&e.getVelocity),eC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tC=yi.length;function nC(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;s<tC;s++){const a=yi[s];if(e[a]!==void 0){const l=eC[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 wy=e=>t=>typeof t=="string"&&t.startsWith(e),Sy=wy("--"),tc=wy("var(--"),rC=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,oC=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Rn=(e,t,n)=>Math.min(Math.max(n,e),t),ir={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Io={...ir,transform:e=>Rn(0,1,e)},Hi={...ir,default:1},Fo=e=>Math.round(e*1e5)/1e5,Ma=/(-)?([\d]*\.?[\d])+/g,Py=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,iC=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function bi(e){return typeof e=="string"}const xi=e=>({test:t=>bi(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),on=xi("deg"),jt=xi("%"),K=xi("px"),sC=xi("vh"),aC=xi("vw"),Yp={...jt,parse:e=>jt.parse(e)/100,transform:e=>jt.transform(e*100)},qp={...ir,transform:Math.round},Cy={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:on,rotateX:on,rotateY:on,rotateZ:on,scale:Hi,scaleX:Hi,scaleY:Hi,scaleZ:Hi,skew:on,skewX:on,skewY:on,distance:K,translateX:K,translateY:K,translateZ:K,x:K,y:K,z:K,perspective:K,transformPerspective:K,opacity:Io,originX:Yp,originY:Yp,originZ:K,zIndex:qp,fillOpacity:Io,strokeOpacity:Io,numOctaves:qp};function Dd(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(Sy(d)){i[d]=f;continue}const p=Cy[d],m=oC(f,p);if(or.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=nC(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 Id=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ey(e,t,n){for(const r in t)!nt(t[r])&&!xy(r,n)&&(e[r]=t[r])}function lC({transformTemplate:e},t,n){return v.useMemo(()=>{const r=Id();return Dd(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function uC(e,t,n){const r=e.style||{},o={};return Ey(o,r,e),Object.assign(o,lC(e,t,n)),e.transformValues?e.transformValues(o):o}function cC(e,t,n){const r={},o=uC(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 dC=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 Js(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||dC.has(e)}let ky=e=>!Js(e);function fC(e){e&&(ky=t=>t.startsWith("on")?!Js(t):e(t))}try{fC(require("@emotion/is-prop-valid").default)}catch{}function pC(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(ky(o)||n===!0&&Js(o)||!t&&!Js(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Jp(e,t,n){return typeof e=="string"?e:K.transform(t+n*e)}function hC(e,t,n){const r=Jp(t,e.x,e.width),o=Jp(n,e.y,e.height);return`${r} ${o}`}const mC={offset:"stroke-dashoffset",array:"stroke-dasharray"},gC={offset:"strokeDashoffset",array:"strokeDasharray"};function vC(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?mC:gC;e[i.offset]=K.transform(-r);const s=K.transform(t),a=K.transform(n);e[i.array]=`${s} ${a}`}function Fd(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(Dd(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=hC(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&&vC(p,s,a,l,!1)}const Ty=()=>({...Id(),attrs:{}}),Vd=e=>typeof e=="string"&&e.toLowerCase()==="svg";function yC(e,t,n,r){const o=v.useMemo(()=>{const i=Ty();return Fd(i,t,{enableHardwareAcceleration:!1},Vd(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Ey(i,e.style,e),o.style={...i,...o.style}}return o}function bC(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(_d(n)?yC:cC)(r,i,s,n),c={...pC(r,typeof n=="string",e),...l,ref:o},{children:d}=r,f=v.useMemo(()=>nt(d)?d.get():d,[d]);return v.createElement(n,{...c,children:f})}}const Bd=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Ry(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 Ny=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 $y(e,t,n,r){Ry(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Ny.has(o)?o:Bd(o),t.attrs[o])}function zd(e,t){const{style:n}=e,r={};for(const o in n)(nt(n[o])||t.style&&nt(t.style[o])||xy(o,e))&&(r[o]=n[o]);return r}function My(e,t){const n=zd(e,t);for(const r in e)if(nt(e[r])||nt(t[r])){const o=yi.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function Ud(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 Ly(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const Zs=e=>Array.isArray(e),xC=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),wC=e=>Zs(e)?e[e.length-1]||0:e;function cs(e){const t=nt(e)?e.get():e;return xC(t)?t.toValue():t}function SC({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:PC(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const Ay=e=>(t,n)=>{const r=v.useContext(ka),o=v.useContext(Ta),i=()=>SC(e,t,r,o);return n?i():Ly(i)};function PC(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=cs(i[f]);let{initial:s,animate:a}=e;const l=$a(e),u=yy(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"&&!Na(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const m=Ud(e,p);if(!m)return;const{transitionEnd:y,transition:P,...b}=m;for(const h in b){let g=b[h];if(Array.isArray(g)){const S=c?g.length-1:0;g=g[S]}g!==null&&(o[h]=g)}for(const h in y)o[h]=y[h]}),o}const CC={useVisualState:Ay({scrapeMotionValuesFromProps:My,createRenderState:Ty,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}}Fd(n,r,{enableHardwareAcceleration:!1},Vd(t.tagName),e.transformTemplate),$y(t,n)}})},EC={useVisualState:Ay({scrapeMotionValuesFromProps:zd,createRenderState:Id})};function kC(e,{forwardMotionProps:t=!1},n,r){return{..._d(e)?CC:EC,preloadedFeatures:n,useRender:bC(t),createVisualElement:r,Component:e}}function Ut(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Oy=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function La(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const TC=e=>t=>Oy(t)&&e(t,La(t));function Ht(e,t,n,r){return Ut(e,t,TC(n),r)}const RC=(e,t)=>n=>t(e(n)),Pn=(...e)=>e.reduce(RC);function jy(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Zp=jy("dragHorizontal"),eh=jy("dragVertical");function _y(e){let t=!1;if(e==="y")t=eh();else if(e==="x")t=Zp();else{const n=Zp(),r=eh();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Dy(){const e=_y(!0);return e?(e(),!1):!0}class An{constructor(t){this.isMounted=!1,this.node=t}update(){}}const we=e=>e;function NC(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 Ki=["prepare","read","update","preRender","render","postRender"],$C=40;function MC(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=Ki.reduce((d,f)=>(d[f]=NC(()=>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,$C),1),o.timestamp=d,o.isProcessing=!0,Ki.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,o.isProcessing||e(a)};return{schedule:Ki.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=>Ki.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:he,cancel:Jt,state:Fe,steps:Pl}=MC(typeof requestAnimationFrame<"u"?requestAnimationFrame:we,!0);function th(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.type==="touch"||Dy())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&he.update(()=>a[r](i,s))};return Ht(e.current,n,o,{passive:!e.getProps()[r]})}class LC extends An{mount(){this.unmount=Pn(th(this.node,!0),th(this.node,!1))}unmount(){}}class AC extends An{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=Pn(Ut(this.node.current,"focus",()=>this.onFocus()),Ut(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Iy=(e,t)=>t?e===t?!0:Iy(e,t.parentElement):!1;function Cl(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,La(n))}class OC extends An{constructor(){super(...arguments),this.removeStartListeners=we,this.removeEndListeners=we,this.removeAccessibleListeners=we,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),i=Ht(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();he.update(()=>{Iy(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=Ht(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Pn(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()||Cl("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&he.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Ut(this.node.current,"keyup",s),Cl("down",(a,l)=>{this.startPress(a,l)})},n=Ut(this.node.current,"keydown",t),r=()=>{this.isPressing&&Cl("cancel",(i,s)=>this.cancelPress(i,s))},o=Ut(this.node.current,"blur",r);this.removeAccessibleListeners=Pn(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&&he.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Dy()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&he.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Ht(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Ut(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Pn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const nc=new WeakMap,El=new WeakMap,jC=e=>{const t=nc.get(e.target);t&&t(e)},_C=e=>{e.forEach(jC)};function DC({root:e,...t}){const n=e||document;El.has(n)||El.set(n,{});const r=El.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(_C,{root:e,...t})),r[o]}function IC(e,t,n){const r=DC(t);return nc.set(e,n),r.observe(e),()=>{nc.delete(e),r.unobserve(e)}}const FC={some:0,all:1};class VC extends An{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:FC[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 IC(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(BC(t,n))&&this.startObserver()}unmount(){}}function BC({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const zC={inView:{Feature:VC},tap:{Feature:OC},focus:{Feature:AC},hover:{Feature:LC}};function Fy(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 UC(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function WC(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Aa(e,t,n){const r=e.getProps();return Ud(r,t,n!==void 0?n:r.custom,UC(e),WC(e))}const HC="framerAppearId",KC="data-"+Bd(HC);let GC=we,Wd=we;const Cn=e=>e*1e3,Kt=e=>e/1e3,QC={current:!1},Vy=e=>Array.isArray(e)&&typeof e[0]=="number";function By(e){return!!(!e||typeof e=="string"&&zy[e]||Vy(e)||Array.isArray(e)&&e.every(By))}const To=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,zy={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:To([0,.65,.55,1]),circOut:To([.55,0,1,.45]),backIn:To([.31,.01,.66,-.59]),backOut:To([.33,1.53,.69,.99])};function Uy(e){if(e)return Vy(e)?To(e):Array.isArray(e)?e.map(Uy):zy[e]}function XC(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=Uy(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 YC(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Wy=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,qC=1e-7,JC=12;function ZC(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Wy(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>qC&&++a<JC);return s}function wi(e,t,n,r){if(e===t&&n===r)return we;const o=i=>ZC(i,0,1,e,n);return i=>i===0||i===1?i:Wy(o(i),t,r)}const eE=wi(.42,0,1,1),tE=wi(0,0,.58,1),Hy=wi(.42,0,.58,1),nE=e=>Array.isArray(e)&&typeof e[0]!="number",Ky=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Gy=e=>t=>1-e(1-t),Qy=e=>1-Math.sin(Math.acos(e)),Hd=Gy(Qy),rE=Ky(Hd),Xy=wi(.33,1.53,.69,.99),Kd=Gy(Xy),oE=Ky(Kd),iE=e=>(e*=2)<1?.5*Kd(e):.5*(2-Math.pow(2,-10*(e-1))),sE={linear:we,easeIn:eE,easeInOut:Hy,easeOut:tE,circIn:Qy,circInOut:rE,circOut:Hd,backIn:Kd,backInOut:oE,backOut:Xy,anticipate:iE},nh=e=>{if(Array.isArray(e)){Wd(e.length===4);const[t,n,r,o]=e;return wi(t,n,r,o)}else if(typeof e=="string")return sE[e];return e},Gd=(e,t)=>n=>!!(bi(n)&&iC.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Yy=(e,t,n)=>r=>{if(!bi(r))return r;const[o,i,s,a]=r.match(Ma);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},aE=e=>Rn(0,255,e),kl={...ir,transform:e=>Math.round(aE(e))},Hn={test:Gd("rgb","red"),parse:Yy("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+kl.transform(e)+", "+kl.transform(t)+", "+kl.transform(n)+", "+Fo(Io.transform(r))+")"};function lE(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 rc={test:Gd("#"),parse:lE,transform:Hn.transform},Mr={test:Gd("hsl","hue"),parse:Yy("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+jt.transform(Fo(t))+", "+jt.transform(Fo(n))+", "+Fo(Io.transform(r))+")"},Ue={test:e=>Hn.test(e)||rc.test(e)||Mr.test(e),parse:e=>Hn.test(e)?Hn.parse(e):Mr.test(e)?Mr.parse(e):rc.parse(e),transform:e=>bi(e)?e:e.hasOwnProperty("red")?Hn.transform(e):Mr.transform(e)},ve=(e,t,n)=>-n*e+n*t+e;function Tl(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 uE({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=Tl(l,a,e+1/3),i=Tl(l,a,e),s=Tl(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const Rl=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},cE=[rc,Hn,Mr],dE=e=>cE.find(t=>t.test(e));function rh(e){const t=dE(e);let n=t.parse(e);return t===Mr&&(n=uE(n)),n}const qy=(e,t)=>{const n=rh(e),r=rh(t),o={...n};return i=>(o.red=Rl(n.red,r.red,i),o.green=Rl(n.green,r.green,i),o.blue=Rl(n.blue,r.blue,i),o.alpha=ve(n.alpha,r.alpha,i),Hn.transform(o))};function fE(e){var t,n;return isNaN(e)&&bi(e)&&(((t=e.match(Ma))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Py))===null||n===void 0?void 0:n.length)||0)>0}const Jy={regex:rC,countKey:"Vars",token:"${v}",parse:we},Zy={regex:Py,countKey:"Colors",token:"${c}",parse:Ue.parse},e0={regex:Ma,countKey:"Numbers",token:"${n}",parse:ir.parse};function Nl(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 ea(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Nl(n,Jy),Nl(n,Zy),Nl(n,e0),n}function t0(e){return ea(e).values}function n0(e){const{values:t,numColors:n,numVars:r,tokenised:o}=ea(e),i=t.length;return s=>{let a=o;for(let l=0;l<i;l++)l<r?a=a.replace(Jy.token,s[l]):l<r+n?a=a.replace(Zy.token,Ue.transform(s[l])):a=a.replace(e0.token,Fo(s[l]));return a}}const pE=e=>typeof e=="number"?0:e;function hE(e){const t=t0(e);return n0(e)(t.map(pE))}const Nn={test:fE,parse:t0,createTransformer:n0,getAnimatableNone:hE},r0=(e,t)=>n=>`${n>0?t:e}`;function o0(e,t){return typeof e=="number"?n=>ve(e,t,n):Ue.test(e)?qy(e,t):e.startsWith("var(")?r0(e,t):s0(e,t)}const i0=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>o0(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}},mE=(e,t)=>{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=o0(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},s0=(e,t)=>{const n=Nn.createTransformer(t),r=ea(e),o=ea(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Pn(i0(r.values,o.values),n):r0(e,t)},ai=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},oh=(e,t)=>n=>ve(e,t,n);function gE(e){return typeof e=="number"?oh:typeof e=="string"?Ue.test(e)?qy:s0:Array.isArray(e)?i0:typeof e=="object"?mE:oh}function vE(e,t,n){const r=[],o=n||gE(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]||we:t;a=Pn(l,a)}r.push(a)}return r}function a0(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Wd(i===t.length),i===1)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=vE(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=ai(e[c],e[c+1],u);return s[c](d)};return n?u=>l(Rn(e[0],e[i-1],u)):l}function yE(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ai(0,t,r);e.push(ve(n,1,o))}}function bE(e){const t=[0];return yE(t,e.length-1),t}function xE(e,t){return e.map(n=>n*t)}function wE(e,t){return e.map(()=>t||Hy).splice(0,e.length-1)}function ta({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=nE(r)?r.map(nh):nh(r),i={done:!1,value:t[0]},s=xE(n&&n.length===t.length?n:bE(t),e),a=a0(s,t,{ease:Array.isArray(o)?o:wE(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function l0(e,t){return t?e*(1e3/t):0}const SE=5;function u0(e,t,n){const r=Math.max(t-SE,0);return l0(n-e(r),t-r)}const $l=.001,PE=.01,ih=10,CE=.05,EE=1;function kE({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;GC(e<=Cn(ih));let s=1-t;s=Rn(CE,EE,s),e=Rn(PE,ih,Kt(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,p=oc(u,s),m=Math.exp(-d);return $l-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=oc(Math.pow(u,2),s);return(-o(u)+$l>0?-1:1)*((f-p)*m)/y}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-$l+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=RE(o,i,a);if(e=Cn(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 TE=12;function RE(e,t,n){let r=n;for(let o=1;o<TE;o++)r=r-e(r)/t(r);return r}function oc(e,t){return e*Math.sqrt(1-t*t)}const NE=["duration","bounce"],$E=["stiffness","damping","mass"];function sh(e,t){return t.some(n=>e[n]!==void 0)}function ME(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!sh(e,$E)&&sh(e,NE)){const n=kE(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function c0({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}=ME(r),p=c?-Kt(c):0,m=l/(2*Math.sqrt(a*u)),y=i-o,P=Kt(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 g=oc(P,m);h=S=>{const C=Math.exp(-m*P*S);return i-C*((p+m*P*y)/g*Math.sin(g*S)+y*Math.cos(g*S))}}else if(m===1)h=g=>i-Math.exp(-P*g)*(y+(p+P*y)*g);else{const g=P*Math.sqrt(m*m-1);h=S=>{const C=Math.exp(-m*P*S),T=Math.min(g*S,300);return i-C*((p+m*P*y)*Math.sinh(T)+g*y*Math.cosh(T))/g}}return{calculatedDuration:f&&d||null,next:g=>{const S=h(g);if(f)s.done=g>=d;else{let C=p;g!==0&&(m<1?C=u0(h,g,S):C=0);const T=Math.abs(C)<=n,R=Math.abs(i-S)<=t;s.done=T&&R}return s.value=s.done?i:S,s}}}function ah({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),g=x=>b+h(x),S=x=>{const $=h(x),F=g(x);f.done=Math.abs($)<=u,f.value=f.done?b:F};let C,T;const R=x=>{p(f.value)&&(C=x,T=c0({keyframes:[f.value,m(f.value)],velocity:u0(g,x,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return R(0),{calculatedDuration:null,next:x=>{let $=!1;return!T&&C===void 0&&($=!0,S(x),R(x)),C!==void 0&&x>C?T.next(x-C):(!$&&S(x),f)}}}const LE=e=>{const t=({timestamp:n})=>e(n);return{start:()=>he.update(t,!0),stop:()=>Jt(t),now:()=>Fe.isProcessing?Fe.timestamp:performance.now()}},lh=2e4;function uh(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 AE={decay:ah,inertia:ah,tween:ta,keyframes:ta,spring:c0};function na({autoplay:e=!0,delay:t=0,driver:n=LE,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 g=AE[o]||ta;let S;g!==ta&&typeof r[0]!="number"&&(S=a0([0,100],r,{clamp:!1}),r=[0,100]);const C=g({...f,keyframes:r});let T;a==="mirror"&&(T=g({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let R="idle",x=null,$=null,F=null;C.calculatedDuration===null&&i&&(C.calculatedDuration=uh(C));const{calculatedDuration:M}=C;let z=1/0,L=1/0;M!==null&&(z=M+s,L=z*(i+1)-s);let O=0;const U=w=>{if($===null)return;p>0&&($=Math.min($,w)),p<0&&($=Math.min(w-L/p,$)),x!==null?O=x:O=Math.round(w-$)*p;const k=O-t*(p>=0?1:-1),D=p>=0?k<0:k>L;O=Math.max(k,0),R==="finished"&&x===null&&(O=L);let V=O,H=C;if(i){const Z=O/z;let le=Math.floor(Z),ke=Z%1;!ke&&Z>=1&&(ke=1),ke===1&&le--,le=Math.min(le,i+1);const On=!!(le%2);On&&(a==="reverse"?(ke=1-ke,s&&(ke-=s/z)):a==="mirror"&&(H=T));let me=Rn(0,1,ke);O>L&&(me=a==="reverse"&&On?1:0),V=me*z}const W=D?{done:!1,value:r[0]}:H.next(V);S&&(W.value=S(W.value));let{done:G}=W;!D&&M!==null&&(G=p>=0?O>=L:O<=0);const ne=x===null&&(R==="finished"||R==="running"&&G);return d&&d(W.value),ne&&j(),W},J=()=>{h&&h.stop(),h=void 0},ie=()=>{R="idle",J(),y(),b(),$=F=null},j=()=>{R="finished",c&&c(),J(),y()},A=()=>{if(m)return;h||(h=n(U));const w=h.now();l&&l(),x!==null?$=w-x:(!$||R==="finished")&&($=w),R==="finished"&&b(),F=$,x=null,R="running",h.start()};e&&A();const I={then(w,k){return P.then(w,k)},get time(){return Kt(O)},set time(w){w=Cn(w),O=w,x!==null||!h||p===0?x=w:$=h.now()-w/p},get duration(){const w=C.calculatedDuration===null?uh(C):C.calculatedDuration;return Kt(w)},get speed(){return p},set speed(w){w===p||!h||(p=w,I.time=Kt(O))},get state(){return R},play:A,pause:()=>{R="paused",x=O},stop:()=>{m=!0,R!=="idle"&&(R="idle",u&&u(),ie())},cancel:()=>{F!==null&&U(F),ie()},complete:()=>{R="finished"},sample:w=>($=0,U(w))};return I}function OE(e){let t;return()=>(t===void 0&&(t=e()),t)}const jE=OE(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_E=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Gi=10,DE=2e4,IE=(e,t)=>t.type==="spring"||e==="backgroundColor"||!By(t.ease);function FE(e,t,{onUpdate:n,onComplete:r,...o}){if(!(jE()&&_E.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(IE(t,o)){const h=na({...o,repeat:0,delay:0});let g={done:!1,value:c[0]};const S=[];let C=0;for(;!g.done&&C<DE;)g=h.sample(C),S.push(g.value),C+=Gi;p=void 0,c=S,d=C-Gi,f="linear"}const m=XC(e.owner.current,t,c,{...o,duration:d,ease:f,times:p}),y=()=>m.cancel(),P=()=>{he.update(y),a(),u()};return m.onfinish=()=>{e.set(YC(c,o)),r&&r(),P()},{then(h,g){return l.then(h,g)},attachTimeline(h){return m.timeline=h,m.onfinish=null,we},get time(){return Kt(m.currentTime||0)},set time(h){m.currentTime=Cn(h)},get speed(){return m.playbackRate},set speed(h){m.playbackRate=h},get duration(){return Kt(d)},play:()=>{s||(m.play(),Jt(y))},pause:()=>m.pause(),stop:()=>{if(s=!0,m.playState==="idle")return;const{currentTime:h}=m;if(h){const g=na({...o,autoplay:!1});e.setWithVelocity(g.sample(h-Gi).value,g.sample(h).value,Gi)}P()},complete:()=>m.finish(),cancel:P}}function VE({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:we,pause:we,stop:we,then:i=>(i(),Promise.resolve()),cancel:we,complete:we});return t?na({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const BE={type:"spring",stiffness:500,damping:25,restSpeed:10},zE=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),UE={type:"keyframes",duration:.8},WE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},HE=(e,{keyframes:t})=>t.length>2?UE:or.has(e)?e.startsWith("scale")?zE(t[1]):BE:WE,ic=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Nn.test(t)||t==="0")&&!t.startsWith("url(")),KE=new Set(["brightness","contrast","saturate","opacity"]);function GE(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ma)||[];if(!r)return e;const o=n.replace(r,"");let i=KE.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const QE=/([a-z-]*)\(.*?\)/g,sc={...Nn,getAnimatableNone:e=>{const t=e.match(QE);return t?t.map(GE).join(" "):e}},XE={...Cy,color:Ue,backgroundColor:Ue,outlineColor:Ue,fill:Ue,stroke:Ue,borderColor:Ue,borderTopColor:Ue,borderRightColor:Ue,borderBottomColor:Ue,borderLeftColor:Ue,filter:sc,WebkitFilter:sc},Qd=e=>XE[e];function d0(e,t){let n=Qd(e);return n!==sc&&(n=Nn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const f0=e=>/^0[^.\s]+$/.test(e);function YE(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||f0(e)}function qE(e,t,n,r){const o=ic(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]),YE(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]=d0(t,a)}return i}function JE({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 p0(e,t){return e[t]||e.default||e}const Xd=(e,t,n,r={})=>o=>{const i=p0(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a=a-Cn(s);const l=qE(t,e,n,i),u=l[0],c=l[l.length-1],d=ic(e,u),f=ic(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(JE(i)||(p={...p,...HE(e,p)}),p.duration&&(p.duration=Cn(p.duration)),p.repeatDelay&&(p.repeatDelay=Cn(p.repeatDelay)),!d||!f||QC.current||i.type===!1)return VE(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=FE(t,e,p);if(m)return m}return na(p)};function ra(e){return!!(nt(e)&&e.add)}const ZE=e=>/^\-?\d*\.?\d+$/.test(e);function Yd(e,t){e.indexOf(t)===-1&&e.push(t)}function qd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Jd{constructor(){this.subscriptions=[]}add(t){return Yd(this.subscriptions,t),()=>qd(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 ek=e=>!isNaN(parseFloat(e));class tk{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}=Fe;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,he.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=()=>he.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=ek(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Jd);const r=this.events[t].add(n);return t==="change"?()=>{r(),he.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?l0(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 Qr(e,t){return new tk(e,t)}const h0=e=>t=>t.test(e),nk={test:e=>e==="auto",parse:e=>e},m0=[ir,K,jt,on,aC,sC,nk],yo=e=>m0.find(h0(e)),rk=[...m0,Ue,Nn],ok=e=>rk.find(h0(e));function ik(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Qr(n))}function sk(e,t){const n=Aa(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const a=wC(i[s]);ik(e,s,a)}}function ak(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"&&(ZE(c)||f0(c))?c=parseFloat(c):!ok(c)&&Nn.test(u)&&(c=d0(l,u)),e.addValue(l,Qr(c,{owner:e})),n[l]===void 0&&(n[l]=c),c!==null&&e.setBaseTarget(l,c))}}function lk(e,t){return t?(t[e]||t.default||t).from:void 0}function uk(e,t,n){const r={};for(const o in e){const i=lk(o,t);if(i!==void 0)r[o]=i;else{const s=n.getValue(o);s&&(r[o]=s.get())}}return r}function ck({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function g0(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&&ck(c,d))continue;const m={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!f.hasAnimated){const P=e.getProps()[KC];P&&(m.elapsed=window.HandoffAppearAnimations(P,d,f,he))}f.start(Xd(d,f,p,e.shouldReduceMotion&&or.has(d)?{type:!1}:m));const y=f.animation;ra(l)&&(l.add(d),y.then(()=>l.remove(d))),u.push(y)}return s&&Promise.all(u).then(()=>{s&&sk(e,s)}),u}function ac(e,t,n={}){const r=Aa(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(g0(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return dk(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 dk(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(fk).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(ac(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function fk(e,t){return e.sortNodePosition(t)}function pk(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>ac(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=ac(e,t,n);else{const o=typeof t=="function"?Aa(e,t,n.custom):t;r=Promise.all(g0(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const hk=[...Ad].reverse(),mk=Ad.length;function gk(e){return t=>Promise.all(t.map(({animation:n,options:r})=>pk(e,n,r)))}function vk(e){let t=gk(e);const n=bk();let r=!0;const o=(l,u)=>{const c=Aa(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<mk;b++){const h=hk[b],g=n[h],S=c[h]!==void 0?c[h]:d[h],C=ii(S),T=h===u?g.isActive:null;T===!1&&(y=b);let R=S===d[h]&&S!==c[h]&&C;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),g.protectedKeys={...m},!g.isActive&&T===null||!S&&!g.prevProp||Na(S)||typeof S=="boolean")continue;const x=yk(g.prevProp,S);let $=x||h===u&&g.isActive&&!R&&C||b>y&&C;const F=Array.isArray(S)?S:[S];let M=F.reduce(o,{});T===!1&&(M={});const{prevResolvedValues:z={}}=g,L={...z,...M},O=U=>{$=!0,p.delete(U),g.needsAnimating[U]=!0};for(const U in L){const J=M[U],ie=z[U];m.hasOwnProperty(U)||(J!==ie?Zs(J)&&Zs(ie)?!Fy(J,ie)||x?O(U):g.protectedKeys[U]=!0:J!==void 0?O(U):p.add(U):J!==void 0&&p.has(U)?O(U):g.protectedKeys[U]=!0)}g.prevProp=S,g.prevResolvedValues=M,g.isActive&&(m={...m,...M}),r&&e.blockInitialAnimation&&($=!1),$&&!R&&f.push(...F.map(U=>({animation:U,options:{type:h,...l}})))}if(p.size){const b={};p.forEach(h=>{const g=e.getBaseTarget(h);g!==void 0&&(b[h]=g)}),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 yk(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Fy(t,e):!1}function jn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bk(){return{animate:jn(!0),whileInView:jn(),whileHover:jn(),whileTap:jn(),whileDrag:jn(),whileFocus:jn(),exit:jn()}}class xk extends An{constructor(t){super(t),t.animationState||(t.animationState=vk(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Na(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 wk=0;class Sk extends An{constructor(){super(...arguments),this.id=wk++}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 Pk={animation:{Feature:xk},exit:{Feature:Sk}},ch=(e,t)=>Math.abs(e-t);function Ck(e,t){const n=ch(e.x,t.x),r=ch(e.y,t.y);return Math.sqrt(n**2+r**2)}class v0{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=Ll(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,d=Ck(u.offset,{x:0,y:0})>=3;if(!c&&!d)return;const{point:f}=u,{timestamp:p}=Fe;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=Ml(c,this.transformPagePoint),he.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:f}=this.handlers,p=Ll(u.type==="pointercancel"?this.lastMoveEventInfo:Ml(c,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,p),f&&f(u,p)},!Oy(t))return;this.handlers=n,this.transformPagePoint=r;const o=La(t),i=Ml(o,this.transformPagePoint),{point:s}=i,{timestamp:a}=Fe;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=n;l&&l(t,Ll(i,this.history)),this.removeListeners=Pn(Ht(window,"pointermove",this.handlePointerMove),Ht(window,"pointerup",this.handlePointerUp),Ht(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Jt(this.updatePoint)}}function Ml(e,t){return t?{point:t(e.point)}:e}function dh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ll({point:e},t){return{point:e,delta:dh(e,y0(t)),offset:dh(e,Ek(t)),velocity:kk(t,.1)}}function Ek(e){return e[0]}function y0(e){return e[e.length-1]}function kk(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=y0(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Cn(t)));)n--;if(!r)return{x:0,y:0};const i=Kt(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 lt(e){return e.max-e.min}function lc(e,t=0,n=.01){return Math.abs(e-t)<=n}function fh(e,t,n,r=.5){e.origin=r,e.originPoint=ve(t.min,t.max,e.origin),e.scale=lt(n)/lt(t),(lc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ve(n.min,n.max,e.origin)-e.originPoint,(lc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Vo(e,t,n,r){fh(e.x,t.x,n.x,r?r.originX:void 0),fh(e.y,t.y,n.y,r?r.originY:void 0)}function ph(e,t,n){e.min=n.min+t.min,e.max=e.min+lt(t)}function Tk(e,t,n){ph(e.x,t.x,n.x),ph(e.y,t.y,n.y)}function hh(e,t,n){e.min=t.min-n.min,e.max=e.min+lt(t)}function Bo(e,t,n){hh(e.x,t.x,n.x),hh(e.y,t.y,n.y)}function Rk(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ve(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ve(n,e,r.max):Math.min(e,n)),e}function mh(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 Nk(e,{top:t,left:n,bottom:r,right:o}){return{x:mh(e.x,n,o),y:mh(e.y,t,r)}}function gh(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 $k(e,t){return{x:gh(e.x,t.x),y:gh(e.y,t.y)}}function Mk(e,t){let n=.5;const r=lt(e),o=lt(t);return o>r?n=ai(t.min,t.max-r,e.min):r>o&&(n=ai(e.min,e.max-o,t.min)),Rn(0,1,n)}function Lk(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 uc=.35;function Ak(e=uc){return e===!1?e=0:e===!0&&(e=uc),{x:vh(e,"left","right"),y:vh(e,"top","bottom")}}function vh(e,t,n){return{min:yh(e,t),max:yh(e,n)}}function yh(e,t){return typeof e=="number"?e:e[t]||0}const bh=()=>({translate:0,scale:1,origin:0,originPoint:0}),Lr=()=>({x:bh(),y:bh()}),xh=()=>({min:0,max:0}),Te=()=>({x:xh(),y:xh()});function Nt(e){return[e("x"),e("y")]}function b0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ok({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function jk(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 Al(e){return e===void 0||e===1}function cc({scale:e,scaleX:t,scaleY:n}){return!Al(e)||!Al(t)||!Al(n)}function In(e){return cc(e)||x0(e)||e.z||e.rotate||e.rotateX||e.rotateY}function x0(e){return wh(e.x)||wh(e.y)}function wh(e){return e&&e!=="0%"}function oa(e,t,n){const r=e-n,o=t*r;return n+o}function Sh(e,t,n,r,o){return o!==void 0&&(e=oa(e,o,r)),oa(e,n,r)+t}function dc(e,t=0,n=1,r,o){e.min=Sh(e.min,t,n,r,o),e.max=Sh(e.max,t,n,r,o)}function w0(e,{x:t,y:n}){dc(e.x,t.translate,t.scale,t.originPoint),dc(e.y,n.translate,n.scale,n.originPoint)}function _k(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&&Ar(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,w0(e,s)),r&&In(i.latestValues)&&Ar(e,i.latestValues))}t.x=Ph(t.x),t.y=Ph(t.y)}function Ph(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function ln(e,t){e.min=e.min+t,e.max=e.max+t}function Ch(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=ve(e.min,e.max,i);dc(e,t[n],t[r],s,t.scale)}const Dk=["x","scaleX","originX"],Ik=["y","scaleY","originY"];function Ar(e,t){Ch(e.x,t,Dk),Ch(e.y,t,Ik)}function S0(e,t){return b0(jk(e.getBoundingClientRect(),t))}function Fk(e,t,n){const r=S0(e,n),{scroll:o}=t;return o&&(ln(r.x,o.offset.x),ln(r.y,o.offset.y)),r}const Vk=new WeakMap;class Bk{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=Te(),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(La(l,"page").point)},i=(l,u)=>{const{drag:c,dragPropagation:d,onDragStart:f}=this.getProps();if(c&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=_y(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),Nt(m=>{let y=this.getAxisMotionValue(m).get()||0;if(jt.test(y)){const{projection:P}=this.visualElement;if(P&&P.layout){const b=P.layout.layoutBox[m];b&&(y=lt(b)*(parseFloat(y)/100))}}this.originPoint[m]=y}),f&&he.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=zk(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 v0(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&&he.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||!Qi(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Rk(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&&$r(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Nk(r.layoutBox,t):this.constraints=!1,this.elastic=Ak(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Nt(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=Lk(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!$r(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=Fk(r,o.root,this.visualElement.getTransformPagePoint());let s=$k(o.layout.layoutBox,i);if(n){const a=n(Ok(s));this.hasMutatedConstraints=!!a,a&&(s=b0(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Nt(c=>{if(!Qi(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(Xd(t,r,0,n))}stopAnimation(){Nt(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){Nt(n=>{const{drag:r}=this.getProps();if(!Qi(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]-ve(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!$r(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Nt(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=Mk({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(),Nt(s=>{if(!Qi(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ve(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;Vk.set(this.visualElement,this);const t=this.visualElement.current,n=Ht(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();$r(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=Ut(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Nt(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=uc,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Qi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function zk(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Uk extends An{constructor(t){super(t),this.removeGroupControls=we,this.removeListeners=we,this.controls=new Bk(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||we}unmount(){this.removeGroupControls(),this.removeListeners()}}const Eh=e=>(t,n)=>{e&&he.update(()=>e(t,n))};class Wk extends An{constructor(){super(...arguments),this.removePointerDownListener=we}onPointerDown(t){this.session=new v0(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Eh(t),onStart:Eh(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&he.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=Ht(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 Hk(){const e=v.useContext(Ta);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=v.useId();return v.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const ds={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function kh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const bo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(K.test(e))e=parseFloat(e);else return e;const n=kh(e,t.target.x),r=kh(e,t.target.y);return`${n}% ${r}%`}},Kk={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Nn.parse(e);if(o.length>5)return r;const i=Nn.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=ve(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 Gk extends re.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;ZP(Qk),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()})),ds.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()||he.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 P0(e){const[t,n]=Hk(),r=v.useContext(jd);return re.createElement(Gk,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(by),isPresent:t,safeToRemove:n})}const Qk={borderRadius:{...bo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:bo,borderTopRightRadius:bo,borderBottomLeftRadius:bo,borderBottomRightRadius:bo,boxShadow:Kk},C0=["TopLeft","TopRight","BottomLeft","BottomRight"],Xk=C0.length,Th=e=>typeof e=="string"?parseFloat(e):e,Rh=e=>typeof e=="number"||K.test(e);function Yk(e,t,n,r,o,i){o?(e.opacity=ve(0,n.opacity!==void 0?n.opacity:1,qk(r)),e.opacityExit=ve(t.opacity!==void 0?t.opacity:1,0,Jk(r))):i&&(e.opacity=ve(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<Xk;s++){const a=`border${C0[s]}Radius`;let l=Nh(t,a),u=Nh(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Rh(l)===Rh(u)?(e[a]=Math.max(ve(Th(l),Th(u),r),0),(jt.test(u)||jt.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=ve(t.rotate||0,n.rotate||0,r))}function Nh(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const qk=E0(0,.5,Hd),Jk=E0(.5,.95,we);function E0(e,t,n){return r=>r<e?0:r>t?1:n(ai(e,t,r))}function $h(e,t){e.min=t.min,e.max=t.max}function dt(e,t){$h(e.x,t.x),$h(e.y,t.y)}function Mh(e,t,n,r,o){return e-=t,e=oa(e,1/n,r),o!==void 0&&(e=oa(e,1/o,r)),e}function Zk(e,t=0,n=1,r=.5,o,i=e,s=e){if(jt.test(t)&&(t=parseFloat(t),t=ve(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ve(i.min,i.max,r);e===i&&(a-=t),e.min=Mh(e.min,t,n,a,o),e.max=Mh(e.max,t,n,a,o)}function Lh(e,t,[n,r,o],i,s){Zk(e,t[n],t[r],t[o],t.scale,i,s)}const eT=["x","scaleX","originX"],tT=["y","scaleY","originY"];function Ah(e,t,n,r){Lh(e.x,t,eT,n?n.x:void 0,r?r.x:void 0),Lh(e.y,t,tT,n?n.y:void 0,r?r.y:void 0)}function Oh(e){return e.translate===0&&e.scale===1}function k0(e){return Oh(e.x)&&Oh(e.y)}function nT(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 T0(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 jh(e){return lt(e.x)/lt(e.y)}class rT{constructor(){this.members=[]}add(t){Yd(this.members,t),t.scheduleRender()}remove(t){if(qd(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 _h(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 oT=(e,t)=>e.depth-t.depth;class iT{constructor(){this.children=[],this.isDirty=!1}add(t){Yd(this.children,t),this.isDirty=!0}remove(t){qd(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(oT),this.isDirty=!1,this.children.forEach(t)}}function sT(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Jt(r),e(i-t))};return he.read(r,!0),()=>Jt(r)}function aT(e){window.MotionDebug&&window.MotionDebug.record(e)}function lT(e){return e instanceof SVGElement&&e.tagName!=="svg"}function uT(e,t,n){const r=nt(e)?e:Qr(e);return r.start(Xd("",r,t,n)),r.animation}const Dh=["","X","Y","Z"],Ih=1e3;let cT=0;const Fn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function R0({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=cT++,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=()=>{Fn.totalNodes=Fn.resolvedTargetDeltas=Fn.recalculatedProjection=0,this.nodes.forEach(pT),this.nodes.forEach(yT),this.nodes.forEach(bT),this.nodes.forEach(hT),aT(Fn)},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 iT)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Jd),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=lT(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=sT(f,250),ds.hasAnimatedSinceResize&&(ds.hasAnimatedSinceResize=!1,this.nodes.forEach(Vh))})}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()||CT,{onLayoutAnimationStart:P,onLayoutAnimationComplete:b}=c.getProps(),h=!this.targetLayout||!T0(this.targetLayout,m)||p,g=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,g);const S={...p0(y,"layout"),onPlay:P,onComplete:b};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||Vh(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,Jt(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(xT),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(Fh);return}this.isUpdating||this.nodes.forEach(gT),this.isUpdating=!1,this.nodes.forEach(vT),this.nodes.forEach(dT),this.nodes.forEach(fT),this.clearAllSnapshots();const a=performance.now();Fe.delta=Rn(0,1e3/60,a-Fe.timestamp),Fe.timestamp=a,Fe.isProcessing=!0,Pl.update.process(Fe),Pl.preRender.process(Fe),Pl.render.process(Fe),Fe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(mT),this.sharedNodes.forEach(wT)}scheduleUpdateProjection(){he.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){he.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=Te(),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&&!k0(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(a||In(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)),ET(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Te();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(ln(a.x,l.offset.x),ln(a.y,l.offset.y)),a}removeElementScroll(s){const a=Te();dt(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){dt(a,s);const{scroll:f}=this.root;f&&(ln(a.x,-f.offset.x),ln(a.y,-f.offset.y))}ln(a.x,c.offset.x),ln(a.y,c.offset.y)}}return a}applyTransform(s,a=!1){const l=Te();dt(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&&Ar(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),In(c.latestValues)&&Ar(l,c.latestValues)}return In(this.latestValues)&&Ar(l,this.latestValues),l}removeTransform(s){const a=Te();dt(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!In(u.latestValues))continue;cc(u.latestValues)&&u.updateSnapshot();const c=Te(),d=u.measurePageBox();dt(c,d),Ah(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return In(this.latestValues)&&Ah(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!==Fe.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=Fe.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Te(),this.relativeTargetOrigin=Te(),Bo(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),dt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Te(),this.targetWithTransforms=Te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Tk(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):dt(this.target,this.layout.layoutBox),w0(this.target,this.targetDelta)):dt(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=Te(),this.relativeTargetOrigin=Te(),Bo(this.relativeTargetOrigin,this.target,p.target),dt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Fn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||cc(this.parent.latestValues)||x0(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===Fe.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;dt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;_k(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=Lr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Lr(),this.projectionDeltaWithTransform=Lr());const y=this.projectionTransform;Vo(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=_h(this.projectionDelta,this.treeScale),(this.projectionTransform!==y||this.treeScale.x!==f||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Fn.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=Lr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=Te(),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(PT));this.animationProgress=0;let g;this.mixTargetDelta=S=>{const C=S/1e3;Bh(d.x,s.x,C),Bh(d.y,s.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bo(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ST(this.relativeTarget,this.relativeTargetOrigin,f,C),g&&nT(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=Te()),dt(g,this.relativeTarget)),y&&(this.animationValues=c,Yk(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&&(Jt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=he.update(()=>{ds.hasAnimatedSinceResize=!0,this.currentAnimation=uT(0,Ih,{...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(Ih),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&&N0(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Te();const d=lt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=lt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}dt(a,l),Ar(a,c),Vo(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new rT),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<Dh.length;c++){const d="rotate"+Dh[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=cs(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=cs(s.pointerEvents)||""),this.hasProjected&&!In(this.latestValues)&&(y.transform=c?c({},""):"none",this.hasProjected=!1),y}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=_h(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 qs){if(f[y]===void 0)continue;const{correct:P,applyTo:b}=qs[y],h=u.transform==="none"?f[y]:P(f[y],d);if(b){const g=b.length;for(let S=0;S<g;S++)u[b[S]]=h}else u[y]=h}return this.options.layoutId&&(u.pointerEvents=d===this?cs(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(Fh),this.root.sharedNodes.clear()}}}function dT(e){e.updateLayout()}function fT(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"?Nt(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=lt(f);f.min=r[d].min,f.max=f.min+p}):N0(i,n.layoutBox,r)&&Nt(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=lt(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=Lr();Vo(a,r,n.layoutBox);const l=Lr();s?Vo(l,e.applyTransform(o,!0),n.measuredBox):Vo(l,r,n.layoutBox);const u=!k0(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=Te();Bo(m,n.layoutBox,f.layoutBox);const y=Te();Bo(y,r,p.layoutBox),T0(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 pT(e){Fn.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 hT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mT(e){e.clearSnapshot()}function Fh(e){e.clearMeasurements()}function gT(e){e.isLayoutDirty=!1}function vT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Vh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function yT(e){e.resolveTargetDelta()}function bT(e){e.calcProjection()}function xT(e){e.resetRotation()}function wT(e){e.removeLeadSnapshot()}function Bh(e,t,n){e.translate=ve(t.translate,0,n),e.scale=ve(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function zh(e,t,n,r){e.min=ve(t.min,n.min,r),e.max=ve(t.max,n.max,r)}function ST(e,t,n,r){zh(e.x,t.x,n.x,r),zh(e.y,t.y,n.y,r)}function PT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const CT={duration:.45,ease:[.4,0,.1,1]},Uh=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Wh=Uh("applewebkit/")&&!Uh("chrome/")?Math.round:we;function Hh(e){e.min=Wh(e.min),e.max=Wh(e.max)}function ET(e){Hh(e.x),Hh(e.y)}function N0(e,t,n){return e==="position"||e==="preserve-aspect"&&!lc(jh(t),jh(n),.2)}const kT=R0({attachResizeListener:(e,t)=>Ut(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ol={current:void 0},$0=R0({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ol.current){const e=new kT({});e.mount(window),e.setOptions({layoutScroll:!0}),Ol.current=e}return Ol.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),TT={pan:{Feature:Wk},drag:{Feature:Uk,ProjectionNode:$0,MeasureLayout:P0}},RT=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function NT(e){const t=RT.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function fc(e,t,n=1){const[r,o]=NT(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():tc(o)?fc(o,t,n+1):o}function $T(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(!tc(i))return;const s=fc(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!tc(i))continue;const s=fc(i,r);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const MT=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),M0=e=>MT.has(e),LT=e=>Object.keys(e).some(M0),Kh=e=>e===ir||e===K,Gh=(e,t)=>parseFloat(e.split(", ")[t]),Qh=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Gh(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?Gh(i[1],e):0}},AT=new Set(["x","y","z"]),OT=yi.filter(e=>!AT.has(e));function jT(e){const t=[];return OT.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 Xr={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:Qh(4,13),y:Qh(5,14)};Xr.translateX=Xr.x;Xr.translateY=Xr.y;const _T=(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]=Xr[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]=Xr[u](l,i)}),e},DT=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(M0);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=yo(c);const f=t[l];let p;if(Zs(f)){const m=f.length,y=f[0]===null?1:0;c=f[y],d=yo(c);for(let P=y;P<m&&f[P]!==null;P++)p?Wd(yo(f[P])===p):p=yo(f[P])}else p=yo(f);if(d!==p)if(Kh(d)&&Kh(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=jT(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=_T(t,e,a);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),Ra&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function IT(e,t,n,r){return LT(t)?DT(e,t,n,r):{target:t,transitionEnd:r}}const FT=(e,t,n,r)=>{const o=$T(e,t,r);return t=o.target,r=o.transitionEnd,IT(e,t,n,r)},pc={current:null},L0={current:!1};function VT(){if(L0.current=!0,!!Ra)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>pc.current=e.matches;e.addListener(t),t()}else pc.current=!1}function BT(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(nt(i))e.addValue(o,i),ra(r)&&r.add(o);else if(nt(s))e.addValue(o,Qr(i,{owner:e})),ra(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,Qr(a!==void 0?a:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Xh=new WeakMap,A0=Object.keys(si),zT=A0.length,Yh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],UT=Od.length;class WT{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=()=>he.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=$a(n),this.isVariantNode=yy(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&&nt(f)&&(f.set(a[d],!1),ra(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Xh.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)),L0.current||VT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:pc.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Xh.delete(this.current),this.projection&&this.projection.unmount(),Jt(this.notifyUpdate),Jt(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=or.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&he.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<zT;l++){const u=A0[l],{isEnabled:c,Feature:d,ProjectionNode:f,MeasureLayout:p}=si[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&&$r(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):Te()}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<Yh.length;r++){const o=Yh[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=BT(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<UT;r++){const o=Od[r],i=this.props[o];(ii(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=Qr(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=Ud(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&&!nt(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 Jd),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class O0 extends WT{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=uk(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){ak(this,r,s);const a=FT(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function HT(e){return window.getComputedStyle(e)}class KT extends O0{readValueFromInstance(t,n){if(or.has(n)){const r=Qd(n);return r&&r.default||0}else{const r=HT(t),o=(Sy(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return S0(t,n)}build(t,n,r,o){Dd(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return zd(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;nt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){Ry(t,n,r,o)}}class GT extends O0{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(or.has(n)){const r=Qd(n);return r&&r.default||0}return n=Ny.has(n)?n:Bd(n),t.getAttribute(n)}measureInstanceViewportBox(){return Te()}scrapeMotionValuesFromProps(t,n){return My(t,n)}build(t,n,r,o){Fd(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){$y(t,n,r,o)}mount(t){this.isSVGTag=Vd(t.tagName),super.mount(t)}}const QT=(e,t)=>_d(e)?new GT(t,{enableHardwareAcceleration:!1}):new KT(t,{enableHardwareAcceleration:!0}),XT={layout:{ProjectionNode:$0,MeasureLayout:P0}},YT={...Pk,...zC,...TT,...XT},Zd=qP((e,t)=>kC(e,t,YT,QT));function j0(){const e=v.useRef(!1);return Ys(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function qT(){const e=j0(),[t,n]=v.useState(0),r=v.useCallback(()=>{e.current&&n(t+1)},[t]);return[v.useCallback(()=>he.postRender(r),[r]),t]}class JT extends v.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 ZT({children:e,isPresent:t}){const n=v.useId(),r=v.useRef(null),o=v.useRef({width:0,height:0,top:0,left:0});return v.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]),v.createElement(JT,{isPresent:t,childRef:r,sizeRef:o},v.cloneElement(e,{ref:r}))}const jl=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=Ly(e2),l=v.useId(),u=v.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 v.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),v.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=v.createElement(ZT,{isPresent:n},e)),v.createElement(Ta.Provider,{value:u},e)};function e2(){return new Map}function t2(e){return v.useEffect(()=>()=>e(),[])}const mr=e=>e.key||"";function n2(e,t){e.forEach(n=>{const r=mr(n);t.set(r,n)})}function r2(e){const t=[];return v.Children.forEach(e,n=>{v.isValidElement(n)&&t.push(n)}),t}const _0=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=v.useContext(jd).forceRender||qT()[0],l=j0(),u=r2(e);let c=u;const d=v.useRef(new Map).current,f=v.useRef(c),p=v.useRef(new Map).current,m=v.useRef(!0);if(Ys(()=>{m.current=!1,n2(u,p),f.current=c}),t2(()=>{m.current=!0,p.clear(),d.clear()}),m.current)return v.createElement(v.Fragment,null,c.map(h=>v.createElement(jl,{key:mr(h),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s},h)));c=[...c];const y=f.current.map(mr),P=u.map(mr),b=y.length;for(let h=0;h<b;h++){const g=y[h];P.indexOf(g)===-1&&!d.has(g)&&d.set(g,void 0)}return s==="wait"&&d.size&&(c=[]),d.forEach((h,g)=>{if(P.indexOf(g)!==-1)return;const S=p.get(g);if(!S)return;const C=y.indexOf(g);let T=h;if(!T){const R=()=>{p.delete(g),d.delete(g);const x=f.current.findIndex($=>$.key===g);if(f.current.splice(x,1),!d.size){if(f.current=u,l.current===!1)return;a(),r&&r()}};T=v.createElement(jl,{key:mr(S),isPresent:!1,onExitComplete:R,custom:t,presenceAffectsLayout:i,mode:s},S),d.set(g,T)}c.splice(C,0,T)}),c=c.map(h=>{const g=h.key;return d.has(g)?h:v.createElement(jl,{key:mr(h),isPresent:!0,presenceAffectsLayout:i,mode:s},h)}),v.createElement(v.Fragment,null,d.size?c:c.map(h=>v.cloneElement(h)))};var qh={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]},o2=()=>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"})]}),[tM,i2]=Ld({name:"AvatarGroupContext",strict:!1}),s2=globalThis!=null&&globalThis.document?v.useLayoutEffect:v.useEffect;function a2(e={}){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[u,c]=v.useState("pending");v.useEffect(()=>{c(n?"loading":"pending")},[n]);const d=v.useRef(),f=v.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 s2(()=>{if(!l)return u==="loading"&&f(),()=>{p()}},[u,f,l]),l?"loaded":u}function l2(e={}){var t,n,r,o,i;const s=i2(),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:g=(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:T=!1,getInitials:R=kP,ignoreFallback:x=!1,showFallback:$=!1,ImgComponent:F="img",imgProps:M,className:z,onError:L,...O}=e,U=l||"span",J=Ke(u),ie=Ke(P),{isFocusVisible:j,isFocused:A,focusProps:I}=Gr(),{isHovered:w,hoverProps:k}=Ea({isDisabled:C}),V=a2({src:c,onError:L,ignoreFallback:x})==="loaded",H=(!c||!V)&&$,W=v.useMemo(()=>{var ke;return EP({color:b,radius:h,size:g,isBordered:S,isDisabled:C,isInGroup:a,isInGridGroup:(ke=s==null?void 0:s.isGrid)!=null?ke:!1})},[b,h,g,S,C,a,s==null?void 0:s.isGrid]),G=se(p==null?void 0:p.base,z),ne=v.useMemo(()=>T||l==="button",[T,l]),Z=v.useCallback((ke={})=>({ref:J,tabIndex:ne?0:-1,"data-hover":X(w),"data-focus":X(A),"data-focus-visible":X(j),className:W.base({class:se(G,ke==null?void 0:ke.className)}),...Se(O,k,ne?I:{})}),[ne,W,G,I,O]),le=v.useCallback((ke={})=>({ref:ie,src:c,"data-loaded":X(V),className:W.img({class:p==null?void 0:p.img}),...Se(M,ke)}),[W,V,M,c,ie]);return{Component:U,ImgComponent:F,src:c,alt:y,icon:f,name:d,imgRef:ie,slots:W,classNames:p,fallback:m,isImgLoaded:V,showFallback:H,ignoreFallback:x,getInitials:R,getAvatarProps:Z,getImageProps:le}}var D0=Xe((e,t)=>{const{Component:n,ImgComponent:r,src:o,icon:i=E.jsx(o2,{}),alt:s,classNames:a,slots:l,name:u,showFallback:c,fallback:d,getInitials:f,getAvatarProps:p,getImageProps:m}=l2({...e,ref:t}),y=v.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]})});D0.displayName="NextUI.Avatar";var u2=D0;function I0(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}=kd({onPressStart:i,onPressEnd:s,onPressChange:a,onPress:o,isDisabled:r,preventFocusOnPress:l,allowTextSelectionOnPress:y,ref:t}),{focusableProps:g}=$d(e,t);u&&(g.tabIndex=r?-1:g.tabIndex);let S=Se(g,b,Cd(e,{labelable:!0}));return{isPressed:h,buttonProps:Se(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 c2=(e,t,n)=>Math.min(Math.max(e,t),n),F0=({ripples:e=[],motionProps:t,color:n="currentColor",style:r})=>E.jsx(E.Fragment,{children:e.map(o=>{const i=c2(.01*o.size,.2,o.size>100?.75:.5);return E.jsx(_0,{mode:"popLayout",children:E.jsx(Zd.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)})});F0.displayName="NextUI.Ripple";var d2=F0;function f2(e={}){const{removeAfter:t=1e3,...n}=e,[r,o]=v.useState([]);v.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=v.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}}var[p2,ef]=Ld({name:"CardContext",strict:!0,errorMessage:"useCardContext: `context` is undefined. Seems you forgot to wrap component within <Card />"}),V0=Xe((e,t)=>{var n;const{as:r,className:o,children:i,...s}=e,a=r||"div",l=Ke(t),{slots:u,classNames:c}=ef(),d=se(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})});V0.displayName="NextUI.CardBody";var B0=V0,z0=Xe((e,t)=>{var n;const{as:r,className:o,children:i,...s}=e,a=r||"div",l=Ke(t),{slots:u,classNames:c}=ef(),d=se(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})});z0.displayName="NextUI.CardFooter";var h2=z0,U0=Xe((e,t)=>{var n;const{as:r,className:o,children:i,...s}=e,a=r||"div",l=Ke(t),{slots:u,classNames:c}=ef(),d=se(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})});U0.displayName="NextUI.CardHeader";var m2=U0;function g2(e){const[t,n]=gi(e,Kp.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=Ke(r),y=o||(e.isPressable?"button":"div"),P=typeof y=="string",b=se(d==null?void 0:d.base,c),{onClick:h,ripples:g}=f2(),S=U=>{!e.disableAnimation&&!s&&m.current&&h(U)},{buttonProps:C,isPressed:T}=I0({onPress:l,elementType:o,isDisabled:!e.isPressable,onClick:Ca(a,S),allowTextSelectionOnPress:f,...p},m),{hoverProps:R,isHovered:x}=Ea({isDisabled:!e.isHoverable,...p}),{isFocusVisible:$,isFocused:F,focusProps:M}=Gr({autoFocus:u}),z=v.useMemo(()=>Kp({...n}),[...Object.values(n)]),L=v.useMemo(()=>({isDisabled:e.isDisabled,isFooterBlurred:e.isFooterBlurred,disableAnimation:e.disableAnimation,fullWidth:e.fullWidth,slots:z,classNames:d}),[z,d,e.isDisabled,e.isFooterBlurred,e.disableAnimation,e.fullWidth]),O=v.useCallback((U={})=>({ref:m,className:z.base({class:b}),tabIndex:e.isPressable?0:-1,"data-hover":X(x),"data-pressed":X(T),"data-focus":X(F),"data-focus-visible":X($),"data-disabled":X(e.isDisabled),...Se(e.isPressable?{...C,...M,role:"button"}:{},e.isHoverable?R:{},ec(p,{enabled:P}),ec(U))}),[m,z,b,P,e.isPressable,e.isHoverable,e.isDisabled,x,T,$,C,M,R,p]);return{context:L,domRef:m,Component:y,classNames:d,children:i,ripples:g,isHovered:x,isPressed:T,isPressable:e.isPressable,isHoverable:e.isHoverable,disableAnimation:e.disableAnimation,disableRipple:s,handleClick:S,isFocusVisible:$,getCardProps:O}}var W0=Xe((e,t)=>{const{children:n,context:r,Component:o,ripples:i,isPressable:s,disableAnimation:a,disableRipple:l,getCardProps:u}=g2({...e,ref:t});return E.jsxs(o,{...u(),children:[E.jsx(p2,{value:r,children:n}),s&&!a&&!l&&E.jsx(d2,{ripples:i})]})});W0.displayName="NextUI.Card";var tf=W0;function v2(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=Ws(t);let s=Ws(),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=Fw({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:a,fieldProps:l}}function y2(e){let{description:t,errorMessage:n,validationState:r}=e,{labelProps:o,fieldProps:i}=v2(e),s=Cp([!!t,!!n,r]),a=Cp([!!t,!!n,r]);return i=Se(i,{"aria-describedby":[s,a,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:i,descriptionProps:{id:s},errorMessageProps:{id:a}}}function b2(e={}){let{isReadOnly:t}=e,[n,r]=Pd(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 x2(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}=$d(e,t),{pressProps:d,isPressed:f}=kd({onPress:r,onPressStart:o,onPressEnd:i,isDisabled:a,ref:t}),p=Cd(l,{labelable:!0}),m=Se(c,d);return{isPressed:f,linkProps:Se(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 w2(e){var t,n;const[r,o]=gi(e,Wp.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",g=Ke(i),{linkProps:S}=x2({...b,onPress:p,onPressStart:m,onPressEnd:y,onClick:P,isDisabled:e.isDisabled,elementType:`${s}`},g),{isFocused:C,isFocusVisible:T,focusProps:R}=Gr({autoFocus:d});u&&(b.rel=(t=b.rel)!=null?t:"noopener noreferrer",b.target=(n=b.target)!=null?n:"_blank");const x=v.useMemo(()=>Wp({...o,className:f}),[...Object.values(o),f]),$=v.useCallback(()=>({ref:g,className:x,"data-focus":X(C),"data-disabled":X(e.isDisabled),"data-focus-visible":X(T),...Se(R,S,b)}),[x,C,T,R,S,b]);return{Component:h,children:a,anchorIcon:l,showAnchorIcon:c,getLinkProps:$}}var H0=Xe((e,t)=>{const{Component:n,children:r,showAnchorIcon:o,anchorIcon:i=E.jsx(BP,{className:CP}),getLinkProps:s}=w2({ref:t,...e});return E.jsx(n,{...s(),children:E.jsxs(E.Fragment,{children:[r,o&&i]})})});H0.displayName="NextUI.Link";var Jh=H0;function S2(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}=$d(e,t),{labelProps:c,fieldProps:d,descriptionProps:f,errorMessageProps:p}=y2(e),m=Cd(e,{labelable:!0});const y={type:a,pattern:e.pattern};return{labelProps:c,inputProps:Se(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 P2(e){var t,n;const[r,o]=gi(e,Up.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,g=v.useCallback(Q=>{b(Q??"")},[b]),[S,C]=Pd((t=r.value)!=null?t:void 0,(n=r.defaultValue)!=null?n:void 0,g),T=s||"div",R=se(d==null?void 0:d.base,c,S?"is-filled":""),x=e.isMultiline,$=Ke(i),F=v.useCallback(()=>{C(""),$.current&&($.current.value="",$.current.focus()),y==null||y()},[$,C,y]),{labelProps:M,inputProps:z,descriptionProps:L,errorMessageProps:O}=S2({...e,"aria-label":TP(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},$),{isFocusVisible:U,isFocused:J,focusProps:ie}=Gr({autoFocus:f,isTextInput:!0}),{isHovered:j,hoverProps:A}=Ea({isDisabled:!!(e!=null&&e.isDisabled)}),{focusProps:I,isFocusVisible:w}=Gr(),{pressProps:k}=kd({isDisabled:!!(e!=null&&e.isDisabled),onPress:F}),D=r.validationState==="invalid",V=v.useMemo(()=>{var Q;return(!e.labelPlacement||e.labelPlacement==="inside")&&!a?"outside":(Q=e.labelPlacement)!=null?Q:"inside"},[e.labelPlacement,a]),H=!r.placeholder&&V!=="outside-left"&&!x,W=!!y||e.isClearable,G=!!a||!!l||!!u,ne=!!r.placeholder,Z=!!l||!!u,le=V==="outside"||V==="outside-left",ke=V==="inside",On=!!p,me=v.useMemo(()=>Up({...o,isInvalid:D,isClearable:W,labelPlacement:V,isLabelPlaceholder:H&&!On}),[...Object.values(o),D,V,W,H,On]),I1=v.useCallback((Q={})=>({className:me.base({class:R}),"data-focus-visible":X(U),"data-readonly":X(e.isReadOnly),"data-focus":X(J),"data-hover":X(j),"data-required":X(e.isRequired),"data-invalid":X(D),"data-disabled":X(e.isDisabled),"data-has-elements":X(G),"data-has-helper":X(Z),...Q}),[me,R,J,j,D,Z,G,U,e.isReadOnly,e.isRequired,e.isDisabled]),F1=v.useCallback((Q={})=>({className:me.label({class:d==null?void 0:d.label}),...M,...Q}),[me,M,d==null?void 0:d.label]),V1=v.useCallback((Q={})=>({ref:$,className:me.input({class:se(d==null?void 0:d.input,S?"is-filled":"")}),...Se(ie,z,ec(h),Q),required:e.isRequired,"aria-readonly":X(e.isReadOnly),"aria-required":X(e.isRequired),onChange:Ca(z.onChange,P)}),[me,S,ie,z,h,d==null?void 0:d.input,e.isReadOnly,e.isRequired,P]),B1=v.useCallback((Q={})=>({"data-hover":X(j),className:me.inputWrapper({class:se(d==null?void 0:d.inputWrapper,S?"is-filled":"")}),onClick:pf=>{var hf;pf.target===pf.currentTarget&&((hf=$.current)==null||hf.focus())},...Se(Q,A),style:{cursor:"text",...Q.style}}),[me,j,S,d==null?void 0:d.inputWrapper]),z1=v.useCallback((Q={})=>({...Q,className:me.innerWrapper({class:se(d==null?void 0:d.innerWrapper,Q==null?void 0:Q.className)})}),[me,d==null?void 0:d.innerWrapper]),U1=v.useCallback((Q={})=>({...Q,className:me.mainWrapper({class:se(d==null?void 0:d.mainWrapper,Q==null?void 0:Q.className)})}),[me,d==null?void 0:d.mainWrapper]),W1=v.useCallback((Q={})=>({...Q,className:me.helperWrapper({class:se(d==null?void 0:d.helperWrapper,Q==null?void 0:Q.className)})}),[me,d==null?void 0:d.helperWrapper]),H1=v.useCallback((Q={})=>({...Q,...L,className:me.description({class:se(d==null?void 0:d.description,Q==null?void 0:Q.className)})}),[me,d==null?void 0:d.description]),K1=v.useCallback((Q={})=>({...Q,...O,className:me.errorMessage({class:se(d==null?void 0:d.errorMessage,Q==null?void 0:Q.className)})}),[me,O,d==null?void 0:d.errorMessage]),G1=v.useCallback((Q={})=>({...Q,role:"button",tabIndex:0,"data-focus-visible":X(w),className:me.clearButton({class:se(d==null?void 0:d.clearButton,Q==null?void 0:Q.className)}),...Se(k,I)}),[me,w,k,I,d==null?void 0:d.clearButton]);return{Component:T,classNames:d,domRef:$,label:a,description:l,startContent:p,endContent:m,labelPlacement:V,isClearable:W,isInvalid:D,hasHelper:Z,shouldLabelBeOutside:le,shouldLabelBeInside:ke,hasPlaceholder:ne,errorMessage:u,getBaseProps:I1,getLabelProps:F1,getInputProps:V1,getMainWrapperProps:U1,getInputWrapperProps:B1,getInnerWrapperProps:z1,getHelperWrapperProps:W1,getDescriptionProps:H1,getErrorMessageProps:K1,getClearButtonProps:G1}}var K0=Xe((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:g,getHelperWrapperProps:S,getDescriptionProps:C,getErrorMessageProps:T,getClearButtonProps:R}=P2({...e,ref:t}),x=r?E.jsx("label",{...y(),children:r}):null,$=v.useMemo(()=>i?E.jsx("span",{...R(),children:a||E.jsx(zP,{})}):a,[i,R]),F=v.useMemo(()=>c?E.jsx("div",{...S(),children:p?E.jsx("div",{...T(),children:p}):o?E.jsx("div",{...C(),children:o}):null}):null,[c,p,o,S,T,C]),M=v.useMemo(()=>s||$?E.jsxs("div",{...b(),children:[s,E.jsx("input",{...P()}),$]}):E.jsx("input",{...P()}),[s,$,P,b]),z=v.useMemo(()=>d?E.jsxs("div",{...g(),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,g,h,T,C]);return E.jsxs(n,{...m(),children:[d&&(l==="outside-left"||u)?x:null,z]})});K0.displayName="NextUI.Input";var C2=K0,fs="right-scroll-bar-position",ps="width-before-scroll-bar",E2="with-scroll-bars-hidden",k2="--removed-body-scroll-bar-size";function T2(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function R2(e,t){var n=v.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 N2(e,t){return R2(t||null,function(n){return e.forEach(function(r){return T2(r,n)})})}function $2(e){return e}function M2(e,t){t===void 0&&(t=$2);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 L2(e){e===void 0&&(e={});var t=M2(null);return t.options=Mt({async:!0,ssr:!1},e),t}var G0=function(e){var t=e.sideCar,n=Gv(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 v.createElement(r,Mt({},n))};G0.isSideCarExport=!0;function A2(e,t){return e.useMedium(t),G0}var Q0=L2(),_l=function(){},Oa=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:_l,onWheelCapture:_l,onTouchMoveCapture:_l}),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,g=Gv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=f,C=N2([n,t]),T=Mt(Mt({},g),o);return v.createElement(v.Fragment,null,c&&v.createElement(S,{sideCar:Q0,removeScrollBar:u,shards:d,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!y,lockRef:n,gapMode:h}),s?v.cloneElement(v.Children.only(a),Mt(Mt({},T),{ref:C})):v.createElement(b,Mt({},T,{className:l,ref:C}),a))});Oa.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Oa.classNames={fullWidth:ps,zeroRight:fs};var Zh,O2=function(){if(Zh)return Zh;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function j2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=O2();return t&&e.setAttribute("nonce",t),e}function _2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function D2(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var I2=function(){var e=0,t=null;return{add:function(n){e==0&&(t=j2())&&(_2(t,n),D2(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},F2=function(){var e=I2();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},X0=function(){var e=F2(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},V2={left:0,top:0,right:0,gap:0},Dl=function(e){return parseInt(e||"",10)||0},B2=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[Dl(n),Dl(r),Dl(o)]},z2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return V2;var t=B2(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])}},U2=X0(),W2=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(E2,` {
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(fs,` {
right: `).concat(a,"px ").concat(r,`;
}
.`).concat(ps,` {
margin-right: `).concat(a,"px ").concat(r,`;
}
.`).concat(fs," .").concat(fs,` {
right: 0 `).concat(r,`;
}
.`).concat(ps," .").concat(ps,` {
margin-right: 0 `).concat(r,`;
}
body {
`).concat(k2,": ").concat(a,`px;
}
`)},H2=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,i=v.useMemo(function(){return z2(o)},[o]);return v.createElement(U2,{styles:W2(i,!t,o,n?"":"!important")})},hc=!1;if(typeof window<"u")try{var Xi=Object.defineProperty({},"passive",{get:function(){return hc=!0,!0}});window.addEventListener("test",Xi,Xi),window.removeEventListener("test",Xi,Xi)}catch{hc=!1}var dr=hc?{passive:!1}:!1,K2=function(e){return e.tagName==="TEXTAREA"},Y0=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!K2(e)&&n[t]==="visible")},G2=function(e){return Y0(e,"overflowY")},Q2=function(e){return Y0(e,"overflowX")},em=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=q0(e,r);if(o){var i=J0(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},X2=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Y2=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},q0=function(e,t){return e==="v"?G2(t):Q2(t)},J0=function(e,t){return e==="v"?X2(t):Y2(t)},q2=function(e,t){return e==="h"&&t==="rtl"?-1:1},J2=function(e,t,n,r,o){var i=q2(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=J0(e,a),m=p[0],y=p[1],P=p[2],b=y-P-i*m;(m||b)&&q0(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},Yi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tm=function(e){return[e.deltaX,e.deltaY]},nm=function(e){return e&&"current"in e?e.current:e},Z2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},eR=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},tR=0,fr=[];function nR(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(tR++)[0],i=v.useState(X0)[0],s=v.useRef(e);v.useEffect(function(){s.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=Jw([e.lockRef.current],(e.shards||[]).map(nm),!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=v.useCallback(function(y,P){if("touches"in y&&y.touches.length===2)return!s.current.allowPinchZoom;var b=Yi(y),h=n.current,g="deltaX"in y?y.deltaX:h[0]-b[0],S="deltaY"in y?y.deltaY:h[1]-b[1],C,T=y.target,R=Math.abs(g)>Math.abs(S)?"h":"v";if("touches"in y&&R==="h"&&T.type==="range")return!1;var x=em(R,T);if(!x)return!0;if(x?C=R:(C=R==="v"?"h":"v",x=em(R,T)),!x)return!1;if(!r.current&&"changedTouches"in y&&(g||S)&&(r.current=C),!C)return!0;var $=r.current||C;return J2($,P,y,$==="h"?g:S,!0)},[]),l=v.useCallback(function(y){var P=y;if(!(!fr.length||fr[fr.length-1]!==i)){var b="deltaY"in P?tm(P):Yi(P),h=t.current.filter(function(C){return C.name===P.type&&C.target===P.target&&Z2(C.delta,b)})[0];if(h&&h.should){P.cancelable&&P.preventDefault();return}if(!h){var g=(s.current.shards||[]).map(nm).filter(Boolean).filter(function(C){return C.contains(P.target)}),S=g.length>0?a(P,g[0]):!s.current.noIsolation;S&&P.cancelable&&P.preventDefault()}}},[]),u=v.useCallback(function(y,P,b,h){var g={name:y,delta:P,target:b,should:h};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(S){return S!==g})},1)},[]),c=v.useCallback(function(y){n.current=Yi(y),r.current=void 0},[]),d=v.useCallback(function(y){u(y.type,tm(y),y.target,a(y,e.lockRef.current))},[]),f=v.useCallback(function(y){u(y.type,Yi(y),y.target,a(y,e.lockRef.current))},[]);v.useEffect(function(){return fr.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,dr),document.addEventListener("touchmove",l,dr),document.addEventListener("touchstart",c,dr),function(){fr=fr.filter(function(y){return y!==i}),document.removeEventListener("wheel",l,dr),document.removeEventListener("touchmove",l,dr),document.removeEventListener("touchstart",c,dr)}},[]);var p=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(i,{styles:eR(o)}):null,p?v.createElement(H2,{gapMode:e.gapMode}):null)}const rR=A2(Q0,nR);var Z0=v.forwardRef(function(e,t){return v.createElement(Oa,Mt({},e,{ref:t,sideCar:rR}))});Z0.classNames=Oa.classNames;const oR=Z0;var[iR,to]=Ld({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within <Navbar />"}),sR={enter:{height:"calc(100vh - var(--navbar-height) - 1px)",transition:{duration:.3,easings:"easeOut"}},exit:{height:0,transition:{duration:.25,easings:"easeIn"}}},e1=Xe((e,t)=>{var n,r;const{className:o,children:i,portalContainer:s,motionProps:a,style:l,...u}=e,c=Ke(t),{slots:d,isMenuOpen:f,height:p,disableAnimation:m,classNames:y}=to(),P=se(y==null?void 0:y.menu,o),b=v.useCallback(({children:g})=>E.jsx(oR,{forwardProps:!0,enabled:f,removeScrollBar:!1,children:g}),[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(_0,{children:f?E.jsx(b,{children:E.jsx(Zd.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:sR,...Se(a,u),children:i})}):null});return E.jsx(AS,{portalContainer:s,children:h})});e1.displayName="NextUI.NavbarMenu";var t1=e1,aR={visible:{y:0,transition:{ease:qh.easeOut}},hidden:{y:"-100%",transition:{ease:qh.easeIn}}},lR=typeof window<"u";function rm(e){return lR?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var uR=e=>{const{elementRef:t,delay:n=30,callback:r,isEnabled:o}=e,i=v.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 v.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 cR(e){var t;const[n,r]=gi(e,Hp.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",g=Ke(o),S=v.useRef(0),C=v.useRef(0),[T,R]=v.useState(!1),[x,$]=Pd(d,f,p),F=()=>{if(g.current){const U=g.current.offsetWidth;U!==S.current&&(S.current=U)}};Bw({ref:g,onResize:()=>{var U;((U=g.current)==null?void 0:U.offsetWidth)!==S.current&&(F(),$(!1))}}),v.useEffect(()=>{var U;F(),C.current=((U=g.current)==null?void 0:U.offsetHeight)||0},[]);const M=v.useMemo(()=>Hp({...r,hideOnScroll:l}),[...Object.values(r),l]),z=se(P==null?void 0:P.base,y);uR({elementRef:s,isEnabled:l||!u,callback:({prevPos:U,currPos:J})=>{c==null||c(J.y),l&&R(ie=>{const j=J.y>U.y&&J.y>C.current;return j!==ie?j:ie})}});const L=(U={})=>({...Se(b,U),"data-hidden":X(T),"data-menu-open":X(x),ref:g,className:M.base({class:se(z,U==null?void 0:U.className)}),style:{"--navbar-height":a,...U==null?void 0:U.style}}),O=(U={})=>({...U,"data-menu-open":X(x),className:M.wrapper({class:se(P==null?void 0:P.wrapper,U==null?void 0:U.className)})});return{Component:h,slots:M,domRef:g,height:a,isHidden:T,disableAnimation:(t=e.disableAnimation)!=null?t:!1,shouldHideOnScroll:l,isMenuOpen:x,classNames:P,setIsMenuOpen:$,motionProps:m,getBaseProps:L,getWrapperProps:O}}var n1=Xe((e,t)=>{const{children:n,...r}=e,o=cR({...r,ref:t}),i=o.Component,[s,a]=_P(n,t1),l=E.jsxs(E.Fragment,{children:[E.jsx("header",{...o.getWrapperProps(),children:s}),a]});return E.jsx(iR,{value:o,children:o.shouldHideOnScroll?E.jsx(Zd.nav,{animate:o.isHidden?"hidden":"visible",initial:!1,variants:aR,...Se(o.getBaseProps(),o.motionProps),children:l}):E.jsx(i,{...o.getBaseProps(),children:l})})});n1.displayName="NextUI.Navbar";var dR=n1,r1=Xe((e,t)=>{var n;const{as:r,className:o,children:i,...s}=e,a=r||"div",l=Ke(t),{slots:u,classNames:c}=to(),d=se(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})});r1.displayName="NextUI.NavbarBrand";var fR=r1,o1=Xe((e,t)=>{var n;const{as:r,className:o,children:i,justify:s="start",...a}=e,l=r||"ul",u=Ke(t),{slots:c,classNames:d}=to(),f=se(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})});o1.displayName="NextUI.NavbarContent";var mc=o1,i1=Xe((e,t)=>{var n;const{as:r,className:o,children:i,isActive:s,...a}=e,l=r||"li",u=Ke(t),{slots:c,classNames:d}=to(),f=se(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})});i1.displayName="NextUI.NavbarItem";var s1=i1,a1=Xe((e,t)=>{var n;const{className:r,children:o,...i}=e,s=Ke(t),{slots:a,isMenuOpen:l,classNames:u}=to(),c=se(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})});a1.displayName="NextUI.NavbarMenuItem";var pR=a1;function hR(e,t,n){const{isSelected:r}=t,{isPressed:o,buttonProps:i}=I0({...e,onPress:Ca(t.toggle,e.onPress)},n);return{isPressed:o,buttonProps:Se(i,{"aria-pressed":r})}}var l1=Xe((e,t)=>{var n;const{as:r,icon:o,className:i,onChange:s,autoFocus:a,srOnlyText:l,...u}=e,c=r||"button",d=Ke(t),{slots:f,classNames:p,isMenuOpen:m,setIsMenuOpen:y}=to(),b=b2({...u,isSelected:m,onChange:M=>{s==null||s(M),y(M)}}),{buttonProps:h,isPressed:g}=hR(e,b,d),{isFocusVisible:S,focusProps:C}=Gr({autoFocus:a}),{isHovered:T,hoverProps:R}=Ea({}),x=se(p==null?void 0:p.toggle,i),$=v.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=v.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(T),"data-open":X(m),"data-pressed":X(g),...Se(h,C,R,u),children:[E.jsx("span",{className:f.srOnly(),children:F}),$]})});l1.displayName="NextUI.NavbarMenuToggle";var mR=l1;function gR(e){const[t,n]=gi(e,zp.variantKeys),{as:r,children:o,isLoaded:i=!1,className:s,classNames:a,...l}=t,u=r||"div",c=v.useMemo(()=>zp({...n}),[...Object.values(n),o]),d=se(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:se(d,m==null?void 0:m.className)}),...l}),getContentProps:(m={})=>({className:c.content({class:se(a==null?void 0:a.content,m==null?void 0:m.className)})})}}var u1=Xe((e,t)=>{const{Component:n,children:r,getSkeletonProps:o,getContentProps:i}=gR({...e});return E.jsx(n,{ref:t,...o(),children:E.jsx("div",{...i(),children:r})})});u1.displayName="NextUI.Skeleton";var om=u1,nf={};function c1(e,t){return function(){return e.apply(t,arguments)}}const{toString:vR}=Object.prototype,{getPrototypeOf:rf}=Object,ja=(e=>t=>{const n=vR.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_t=e=>(e=e.toLowerCase(),t=>ja(t)===e),_a=e=>t=>typeof t===e,{isArray:no}=Array,li=_a("undefined");function yR(e){return e!==null&&!li(e)&&e.constructor!==null&&!li(e.constructor)&&gt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const d1=_t("ArrayBuffer");function bR(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&d1(e.buffer),t}const xR=_a("string"),gt=_a("function"),f1=_a("number"),Da=e=>e!==null&&typeof e=="object",wR=e=>e===!0||e===!1,hs=e=>{if(ja(e)!=="object")return!1;const t=rf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},SR=_t("Date"),PR=_t("File"),CR=_t("Blob"),ER=_t("FileList"),kR=e=>Da(e)&&gt(e.pipe),TR=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||gt(e.append)&&((t=ja(e))==="formdata"||t==="object"&&gt(e.toString)&&e.toString()==="[object FormData]"))},RR=_t("URLSearchParams"),NR=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Si(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),no(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 p1(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 h1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Ul)(),m1=e=>!li(e)&&e!==h1;function gc(){const{caseless:e}=m1(this)&&this||{},t={},n=(r,o)=>{const i=e&&p1(t,o)||o;hs(t[i])&&hs(r)?t[i]=gc(t[i],r):hs(r)?t[i]=gc({},r):no(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Si(arguments[r],n);return t}const $R=(e,t,n,{allOwnKeys:r}={})=>(Si(t,(o,i)=>{n&&gt(o)?e[i]=c1(o,n):e[i]=o},{allOwnKeys:r}),e),MR=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),LR=(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)},AR=(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&&rf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},OR=(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},jR=e=>{if(!e)return null;if(no(e))return e;let t=e.length;if(!f1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_R=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&rf(Uint8Array)),DR=(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])}},IR=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},FR=_t("HTMLFormElement"),VR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),im=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),BR=_t("RegExp"),g1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Si(n,(o,i)=>{t(o,i,e)!==!1&&(r[i]=o)}),Object.defineProperties(e,r)},zR=e=>{g1(e,(t,n)=>{if(gt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(gt(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+"'")})}})},UR=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return no(e)?r(e):r(String(e).split(t)),n},WR=()=>{},HR=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Il="abcdefghijklmnopqrstuvwxyz",sm="0123456789",v1={DIGIT:sm,ALPHA:Il,ALPHA_DIGIT:Il+Il.toUpperCase()+sm},KR=(e=16,t=v1.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function GR(e){return!!(e&&gt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const QR=e=>{const t=new Array(10),n=(r,o)=>{if(Da(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=no(r)?[]:{};return Si(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)},XR=_t("AsyncFunction"),YR=e=>e&&(Da(e)||gt(e))&&gt(e.then)&&gt(e.catch);var N={isArray:no,isArrayBuffer:d1,isBuffer:yR,isFormData:TR,isArrayBufferView:bR,isString:xR,isNumber:f1,isBoolean:wR,isObject:Da,isPlainObject:hs,isUndefined:li,isDate:SR,isFile:PR,isBlob:CR,isRegExp:BR,isFunction:gt,isStream:kR,isURLSearchParams:RR,isTypedArray:_R,isFileList:ER,forEach:Si,merge:gc,extend:$R,trim:NR,stripBOM:MR,inherits:LR,toFlatObject:AR,kindOf:ja,kindOfTest:_t,endsWith:OR,toArray:jR,forEachEntry:DR,matchAll:IR,isHTMLForm:FR,hasOwnProperty:im,hasOwnProp:im,reduceDescriptors:g1,freezeMethods:zR,toObjectSet:UR,toCamelCase:VR,noop:WR,toFiniteNumber:HR,findKey:p1,global:h1,isContextDefined:m1,ALPHABET:v1,generateString:KR,isSpecCompliantForm:GR,toJSONObject:QR,isAsyncFn:XR,isThenable:YR};function ee(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)}N.inherits(ee,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:N.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const y1=ee.prototype,b1={};["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=>{b1[e]={value:e}});Object.defineProperties(ee,b1);Object.defineProperty(y1,"isAxiosError",{value:!0});ee.from=(e,t,n,r,o,i)=>{const s=Object.create(y1);return N.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),ee.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};var qR=null;function vc(e){return N.isPlainObject(e)||N.isArray(e)}function x1(e){return N.endsWith(e,"[]")?e.slice(0,-2):e}function am(e,t,n){return e?e.concat(t).map(function(o,i){return o=x1(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function JR(e){return N.isArray(e)&&!e.some(vc)}const ZR=N.toFlatObject(N,{},null,function(t){return/^is[A-Z]/.test(t)});function Ia(e,t,n){if(!N.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=N.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,P){return!N.isUndefined(P[y])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&N.isSpecCompliantForm(t);if(!N.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(N.isDate(m))return m.toISOString();if(!l&&N.isBlob(m))throw new ee("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(m)||N.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(N.endsWith(y,"{}"))y=r?y:y.slice(0,-2),m=JSON.stringify(m);else if(N.isArray(m)&&JR(m)||(N.isFileList(m)||N.endsWith(y,"[]"))&&(b=N.toArray(m)))return y=x1(y),b.forEach(function(g,S){!(N.isUndefined(g)||g===null)&&t.append(s===!0?am([y],S,i):s===null?y:y+"[]",u(g))}),!1}return vc(m)?!0:(t.append(am(P,y,i),u(m)),!1)}const d=[],f=Object.assign(ZR,{defaultVisitor:c,convertValue:u,isVisitable:vc});function p(m,y){if(!N.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(m),N.forEach(m,function(b,h){(!(N.isUndefined(b)||b===null)&&o.call(t,b,N.isString(h)?h.trim():h,y,f))===!0&&p(b,y?y.concat(h):[h])}),d.pop()}}if(!N.isObject(e))throw new TypeError("data must be an object");return p(e),t}function lm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function of(e,t){this._pairs=[],e&&Ia(e,this,t)}const w1=of.prototype;w1.append=function(t,n){this._pairs.push([t,n])};w1.toString=function(t){const n=t?function(r){return t.call(this,r,lm)}:lm;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function eN(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function S1(e,t,n){if(!t)return e;const r=n&&n.encode||eN,o=n&&n.serialize;let i;if(o?i=o(t,n):i=N.isURLSearchParams(t)?t.toString():new of(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class tN{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){N.forEach(this.handlers,function(r){r!==null&&t(r)})}}var um=tN,P1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},nN=typeof URLSearchParams<"u"?URLSearchParams:of,rN=typeof FormData<"u"?FormData:null,oN=typeof Blob<"u"?Blob:null;const iN=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),sN=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")();var Lt={isBrowser:!0,classes:{URLSearchParams:nN,FormData:rN,Blob:oN},isStandardBrowserEnv:iN,isStandardBrowserWebWorkerEnv:sN,protocols:["http","https","file","blob","url","data"]};function aN(e,t){return Ia(e,new Lt.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Lt.isNode&&N.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function lN(e){return N.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function uN(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 C1(e){function t(n,r,o,i){let s=n[i++];const a=Number.isFinite(+s),l=i>=n.length;return s=!s&&N.isArray(o)?o.length:s,l?(N.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!N.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&N.isArray(o[s])&&(o[s]=uN(o[s])),!a)}if(N.isFormData(e)&&N.isFunction(e.entries)){const n={};return N.forEachEntry(e,(r,o)=>{t(lN(r),o,n,0)}),n}return null}const cN={"Content-Type":void 0};function dN(e,t,n){if(N.isString(e))try{return(t||JSON.parse)(e),N.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Fa={transitional:P1,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=N.isObject(t);if(i&&N.isHTMLForm(t)&&(t=new FormData(t)),N.isFormData(t))return o&&o?JSON.stringify(C1(t)):t;if(N.isArrayBuffer(t)||N.isBuffer(t)||N.isStream(t)||N.isFile(t)||N.isBlob(t))return t;if(N.isArrayBufferView(t))return t.buffer;if(N.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 aN(t,this.formSerializer).toString();if((a=N.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ia(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),dN(t)):t}],transformResponse:[function(t){const n=this.transitional||Fa.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&N.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"?ee.from(a,ee.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:Lt.classes.FormData,Blob:Lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};N.forEach(["delete","get","head"],function(t){Fa.headers[t]={}});N.forEach(["post","put","patch"],function(t){Fa.headers[t]=N.merge(cN)});var sf=Fa;const fN=N.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 pN=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]&&fN[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};const cm=Symbol("internals");function xo(e){return e&&String(e).trim().toLowerCase()}function ms(e){return e===!1||e==null?e:N.isArray(e)?e.map(ms):String(e)}function hN(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 mN=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fl(e,t,n,r,o){if(N.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!N.isString(t)){if(N.isString(r))return t.indexOf(r)!==-1;if(N.isRegExp(r))return r.test(t)}}function gN(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function vN(e,t){const n=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 Va{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,u){const c=xo(l);if(!c)throw new Error("header name must be a non-empty string");const d=N.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=ms(a))}const s=(a,l)=>N.forEach(a,(u,c)=>i(u,c,l));return N.isPlainObject(t)||t instanceof this.constructor?s(t,n):N.isString(t)&&(t=t.trim())&&!mN(t)?s(pN(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=xo(t),t){const r=N.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return hN(o);if(N.isFunction(n))return n.call(this,o,r);if(N.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=xo(t),t){const r=N.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Fl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=xo(s),s){const a=N.findKey(r,s);a&&(!n||Fl(r,r[a],a,n))&&(delete r[a],o=!0)}}return N.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||Fl(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return N.forEach(this,(o,i)=>{const s=N.findKey(r,i);if(s){n[s]=ms(o),delete n[i];return}const a=t?gN(i):String(i).trim();a!==i&&delete n[i],n[a]=ms(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return N.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&N.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[cm]=this[cm]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=xo(s);r[a]||(vN(o,s),r[a]=!0)}return N.isArray(t)?t.forEach(i):i(t),this}}Va.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N.freezeMethods(Va.prototype);N.freezeMethods(Va);var Gt=Va;function Vl(e,t){const n=this||sf,r=t||n,o=Gt.from(r.headers);let i=r.data;return N.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function E1(e){return!!(e&&e.__CANCEL__)}function Pi(e,t,n){ee.call(this,e??"canceled",ee.ERR_CANCELED,t,n),this.name="CanceledError"}N.inherits(Pi,ee,{__CANCEL__:!0});function yN(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ee("Request failed with status code "+n.status,[ee.ERR_BAD_REQUEST,ee.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}var bN=Lt.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,s,a){const l=[];l.push(n+"="+encodeURIComponent(r)),N.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),N.isString(i)&&l.push("path="+i),N.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 xN(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function wN(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function k1(e,t){return e&&!xN(t)?wN(e,t):t}var SN=Lt.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=N.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function PN(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function CN(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 dm(e,t){let n=0;const r=CN(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 EN=typeof XMLHttpRequest<"u";var kN=EN&&function(e){return new Promise(function(n,r){let o=e.data;const i=Gt.from(e.headers).normalize(),s=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}N.isFormData(o)&&(Lt.isStandardBrowserEnv||Lt.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=k1(e.baseURL,e.url);u.open(e.method.toUpperCase(),S1(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function d(){if(!u)return;const p=Gt.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};yN(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 ee("Request aborted",ee.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new ee("Network Error",ee.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||P1;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new ee(m,y.clarifyTimeoutError?ee.ETIMEDOUT:ee.ECONNABORTED,e,u)),u=null},Lt.isStandardBrowserEnv){const p=(e.withCredentials||SN(c))&&e.xsrfCookieName&&bN.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}o===void 0&&i.setContentType(null),"setRequestHeader"in u&&N.forEach(i.toJSON(),function(m,y){u.setRequestHeader(y,m)}),N.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&s!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",dm(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",dm(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=p=>{u&&(r(!p||p.type?new Pi(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=PN(c);if(f&&Lt.protocols.indexOf(f)===-1){r(new ee("Unsupported protocol "+f+":",ee.ERR_BAD_REQUEST,e));return}u.send(o||null)})};const gs={http:qR,xhr:kN};N.forEach(gs,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var TN={getAdapter:e=>{e=N.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;o<t&&(n=e[o],!(r=N.isString(n)?gs[n.toLowerCase()]:n));o++);if(!r)throw r===!1?new ee(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(N.hasOwnProp(gs,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!N.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:gs};function Bl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pi(null,e)}function fm(e){return Bl(e),e.headers=Gt.from(e.headers),e.data=Vl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),TN.getAdapter(e.adapter||sf.adapter)(e).then(function(r){return Bl(e),r.data=Vl.call(e,e.transformResponse,r),r.headers=Gt.from(r.headers),r},function(r){return E1(r)||(Bl(e),r&&r.response&&(r.response.data=Vl.call(e,e.transformResponse,r.response),r.response.headers=Gt.from(r.response.headers))),Promise.reject(r)})}const pm=e=>e instanceof Gt?e.toJSON():e;function Yr(e,t){t=t||{};const n={};function r(u,c,d){return N.isPlainObject(u)&&N.isPlainObject(c)?N.merge.call({caseless:d},u,c):N.isPlainObject(c)?N.merge({},c):N.isArray(c)?c.slice():c}function o(u,c,d){if(N.isUndefined(c)){if(!N.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function i(u,c){if(!N.isUndefined(c))return r(void 0,c)}function s(u,c){if(N.isUndefined(c)){if(!N.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(pm(u),pm(c),!0)};return N.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||o,f=d(e[c],t[c],c);N.isUndefined(f)&&d!==a||(n[c]=f)}),n}const T1="1.4.0",af={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{af[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const hm={};af.transitional=function(t,n,r){function o(i,s){return"[Axios v"+T1+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new ee(o(s," has been removed"+(n?" in "+n:"")),ee.ERR_DEPRECATED);return n&&!hm[s]&&(hm[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 RN(e,t,n){if(typeof e!="object")throw new ee("options must be an object",ee.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 ee("option "+i+" must be "+l,ee.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ee("Unknown option "+i,ee.ERR_BAD_OPTION)}}var yc={assertOptions:RN,validators:af};const rn=yc.validators;class ia{constructor(t){this.defaults=t,this.interceptors={request:new um,response:new um}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Yr(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&yc.assertOptions(r,{silentJSONParsing:rn.transitional(rn.boolean),forcedJSONParsing:rn.transitional(rn.boolean),clarifyTimeoutError:rn.transitional(rn.boolean)},!1),o!=null&&(N.isFunction(o)?n.paramsSerializer={serialize:o}:yc.assertOptions(o,{encode:rn.function,serialize:rn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s;s=i&&N.merge(i.common,i[n.method]),s&&N.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Gt.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=[fm.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=fm.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=Yr(this.defaults,t);const n=k1(t.baseURL,t.url);return S1(n,t.params,t.paramsSerializer)}}N.forEach(["delete","get","head","options"],function(t){ia.prototype[t]=function(n,r){return this.request(Yr(r||{},{method:t,url:n,data:(r||{}).data}))}});N.forEach(["post","put","patch"],function(t){function n(r){return function(i,s,a){return this.request(Yr(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}ia.prototype[t]=n(),ia.prototype[t+"Form"]=n(!0)});var vs=ia;class lf{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 Pi(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 lf(function(o){t=o}),cancel:t}}}var NN=lf;function $N(e){return function(n){return e.apply(null,n)}}function MN(e){return N.isObject(e)&&e.isAxiosError===!0}const bc={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(bc).forEach(([e,t])=>{bc[t]=e});var LN=bc;function R1(e){const t=new vs(e),n=c1(vs.prototype.request,t);return N.extend(n,vs.prototype,t,{allOwnKeys:!0}),N.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return R1(Yr(e,o))},n}const Me=R1(sf);Me.Axios=vs;Me.CanceledError=Pi;Me.CancelToken=NN;Me.isCancel=E1;Me.VERSION=T1;Me.toFormData=Ia;Me.AxiosError=ee;Me.Cancel=Me.CanceledError;Me.all=function(t){return Promise.all(t)};Me.spread=$N;Me.isAxiosError=MN;Me.mergeConfig=Yr;Me.AxiosHeaders=Gt;Me.formToJSON=e=>C1(N.isHTMLForm(e)?new FormData(e):e);Me.HttpStatusCode=LN;Me.default=Me;var AN=Me,ON=Ul&&Ul.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nf,"__esModule",{value:!0});var N1=nf.PipedAPI=void 0;const jN=ON(AN);class _N{constructor(t="https://pipedapi.kavin.rocks"){this.host=t}async _get(t){return(await jN.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}`)}}N1=nf.PipedAPI=_N;/**
* @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 hn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(hn||(hn={}));const mm="popstate";function DN(e){e===void 0&&(e={});function t(o,i){let{pathname:s="/",search:a="",hash:l=""}=sr(o.location.hash.substr(1));return xc("",{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:sa(i))}function r(o,i){Ba(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return FN(t,n,r,e)}function Ee(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ba(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function IN(){return Math.random().toString(36).substr(2,8)}function gm(e,t){return{usr:e.state,key:e.key,idx:t}}function xc(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||IN()})}function sa(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 FN(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=hn.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=hn.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=hn.Push;let h=xc(y.location,P,b);n&&n(h,P),u=c()+1;let g=gm(h,u),S=y.createHref(h);try{s.pushState(g,"",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=hn.Replace;let h=xc(y.location,P,b);n&&n(h,P),u=c();let g=gm(h,u),S=y.createHref(h);s.replaceState(g,"",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:sa(P);return Ee(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(mm,d),l=P,()=>{o.removeEventListener(mm,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 vm;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(vm||(vm={}));function VN(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?sr(t):t,o=uf(r.pathname||"/",n);if(o==null)return null;let i=$1(e);BN(i);let s=null;for(let a=0;s==null&&a<i.length;++a)s=YN(i[a],ZN(o));return s}function $1(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("/")&&(Ee(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=En([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(Ee(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),$1(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:QN(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 M1(i.path))o(i,s,l)}),t}function M1(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=M1(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 BN(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:XN(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const zN=/^:\w+$/,UN=3,WN=2,HN=1,KN=10,GN=-2,ym=e=>e==="*";function QN(e,t){let n=e.split("/"),r=n.length;return n.some(ym)&&(r+=GN),t&&(r+=WN),n.filter(o=>!ym(o)).reduce((o,i)=>o+(zN.test(i)?UN:i===""?HN:KN),r)}function XN(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 YN(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=qN({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:En([o,c.pathname]),pathnameBase:r$(En([o,c.pathnameBase])),route:d}),c.pathnameBase!=="/"&&(o=En([o,c.pathnameBase]))}return i}function qN(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=JN(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]=e$(a[d]||"",c),u},{}),pathname:i,pathnameBase:s,pattern:e}}function JN(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ba(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 ZN(e){try{return decodeURI(e)}catch(t){return Ba(!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 e$(e,t){try{return decodeURIComponent(e)}catch(n){return Ba(!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 uf(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 t$(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:n$(n,t):t,search:o$(r),hash:i$(o)}}function n$(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 zl(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 cf(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function df(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=sr(e):(o=ui({},e),Ee(!o.pathname||!o.pathname.includes("?"),zl("?","pathname","search",o)),Ee(!o.pathname||!o.pathname.includes("#"),zl("#","pathname","hash",o)),Ee(!o.search||!o.search.includes("#"),zl("#","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=t$(o,a),u=s&&s!=="/"&&s.endsWith("/"),c=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const En=e=>e.join("/").replace(/\/\/+/g,"/"),r$=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),o$=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,i$=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function s$(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const L1=["post","put","patch","delete"];new Set(L1);const a$=["get",...L1];new Set(a$);/**
* 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 aa(){return aa=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},aa.apply(this,arguments)}const ff=v.createContext(null),l$=v.createContext(null),ro=v.createContext(null),za=v.createContext(null),en=v.createContext({outlet:null,matches:[],isDataRoute:!1}),A1=v.createContext(null);function u$(e,t){let{relative:n}=t===void 0?{}:t;oo()||Ee(!1);let{basename:r,navigator:o}=v.useContext(ro),{hash:i,pathname:s,search:a}=j1(e,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:En([r,s])),o.createHref({pathname:l,search:a,hash:i})}function oo(){return v.useContext(za)!=null}function io(){return oo()||Ee(!1),v.useContext(za).location}function O1(e){v.useContext(ro).static||v.useLayoutEffect(e)}function Ua(){let{isDataRoute:e}=v.useContext(en);return e?P$():c$()}function c$(){oo()||Ee(!1);let e=v.useContext(ff),{basename:t,navigator:n}=v.useContext(ro),{matches:r}=v.useContext(en),{pathname:o}=io(),i=JSON.stringify(cf(r).map(l=>l.pathnameBase)),s=v.useRef(!1);return O1(()=>{s.current=!0}),v.useCallback(function(l,u){if(u===void 0&&(u={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let c=df(l,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:En([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,i,o,e])}function d$(){let{matches:e}=v.useContext(en),t=e[e.length-1];return t?t.params:{}}function j1(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=v.useContext(en),{pathname:o}=io(),i=JSON.stringify(cf(r).map(s=>s.pathnameBase));return v.useMemo(()=>df(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function f$(e,t){return p$(e,t)}function p$(e,t,n){oo()||Ee(!1);let{navigator:r}=v.useContext(ro),{matches:o}=v.useContext(en),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let a=i?i.pathnameBase:"/";i&&i.route;let l=io(),u;if(t){var c;let y=typeof t=="string"?sr(t):t;a==="/"||(c=y.pathname)!=null&&c.startsWith(a)||Ee(!1),u=y}else u=l;let d=u.pathname||"/",f=a==="/"?d:d.slice(a.length)||"/",p=VN(e,{pathname:f}),m=y$(p&&p.map(y=>Object.assign({},y,{params:Object.assign({},s,y.params),pathname:En([a,r.encodeLocation?r.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?a:En([a,r.encodeLocation?r.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,n);return t&&m?v.createElement(za.Provider,{value:{location:aa({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:hn.Pop}},m):m}function h$(){let e=S$(),t=s$(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 v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,i)}const m$=v.createElement(h$,null);class g$ extends v.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?v.createElement(en.Provider,{value:this.props.routeContext},v.createElement(A1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function v$(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(ff);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(en.Provider,{value:t},r)}function y$(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||Ee(!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||m$);let f=t.concat(i.slice(0,u+1)),p=()=>{let m;return c?m=d:l.route.Component?m=v.createElement(l.route.Component,null):l.route.element?m=l.route.element:m=a,v.createElement(v$,{match:l,routeContext:{outlet:a,matches:f,isDataRoute:n!=null},children:m})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?v.createElement(g$,{location:n.location,revalidation:n.revalidation,component:d,error:c,children:p(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):p()},null)}var wc;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(wc||(wc={}));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 b$(e){let t=v.useContext(ff);return t||Ee(!1),t}function x$(e){let t=v.useContext(l$);return t||Ee(!1),t}function w$(e){let t=v.useContext(en);return t||Ee(!1),t}function _1(e){let t=w$(),n=t.matches[t.matches.length-1];return n.route.id||Ee(!1),n.route.id}function S$(){var e;let t=v.useContext(A1),n=x$(ci.UseRouteError),r=_1(ci.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function P$(){let{router:e}=b$(wc.UseNavigateStable),t=_1(ci.UseNavigateStable),n=v.useRef(!1);return O1(()=>{n.current=!0}),v.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,aa({fromRouteId:t},i)))},[e,t])}function C$(e){let{to:t,replace:n,state:r,relative:o}=e;oo()||Ee(!1);let{matches:i}=v.useContext(en),{pathname:s}=io(),a=Ua(),l=df(t,cf(i).map(c=>c.pathnameBase),s,o==="path"),u=JSON.stringify(l);return v.useEffect(()=>a(JSON.parse(u),{replace:n,state:r,relative:o}),[a,u,o,n,r]),null}function ys(e){Ee(!1)}function E$(e){let{basename:t="/",children:n=null,location:r,navigationType:o=hn.Pop,navigator:i,static:s=!1}=e;oo()&&Ee(!1);let a=t.replace(/^\/*/,"/"),l=v.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=v.useMemo(()=>{let y=uf(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:v.createElement(ro.Provider,{value:l},v.createElement(za.Provider,{children:n,value:m}))}function k$(e){let{children:t,location:n}=e;return f$(Sc(t),n)}var bm;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(bm||(bm={}));new Promise(()=>{});function Sc(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,o)=>{if(!v.isValidElement(r))return;let i=[...t,o];if(r.type===v.Fragment){n.push.apply(n,Sc(r.props.children,i));return}r.type!==ys&&Ee(!1),!r.props.index||!r.props.children||Ee(!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=Sc(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 Pc(){return Pc=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},Pc.apply(this,arguments)}function T$(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 R$(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function N$(e,t){return e.button===0&&(!t||t==="_self")&&!R$(e)}function Cc(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 $$(e,t){let n=Cc(e);if(t)for(let r of t.keys())n.has(r)||t.getAll(r).forEach(o=>{n.append(r,o)});return n}const M$=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],L$="startTransition",xm=cb[L$];function A$(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=DN({window:o,v5Compat:!0}));let s=i.current,[a,l]=v.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=v.useCallback(d=>{u&&xm?xm(()=>l(d)):l(d)},[l,u]);return v.useLayoutEffect(()=>s.listen(c),[s,c]),v.createElement(E$,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s})}const O$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",j$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ro=v.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:u,preventScrollReset:c}=t,d=T$(t,M$),{basename:f}=v.useContext(ro),p,m=!1;if(typeof u=="string"&&j$.test(u)&&(p=u,O$))try{let h=new URL(window.location.href),g=u.startsWith("//")?new URL(h.protocol+u):new URL(u),S=uf(g.pathname,f);g.origin===h.origin&&S!=null?u=S+g.search+g.hash:m=!0}catch{}let y=u$(u,{relative:o}),P=_$(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:o});function b(h){r&&r(h),h.defaultPrevented||P(h)}return v.createElement("a",Pc({},d,{href:p||y,onClick:m||i?r:b,ref:n,target:l}))});var wm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(wm||(wm={}));var Sm;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Sm||(Sm={}));function _$(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s}=t===void 0?{}:t,a=Ua(),l=io(),u=j1(e,{relative:s});return v.useCallback(c=>{if(N$(c,n)){c.preventDefault();let d=r!==void 0?r:sa(l)===sa(u);a(e,{replace:d,state:o,preventScrollReset:i,relative:s})}},[l,a,u,r,o,n,e,i,s])}function D$(e){let t=v.useRef(Cc(e)),n=v.useRef(!1),r=io(),o=v.useMemo(()=>$$(r.search,n.current?null:t.current),[r.search]),i=Ua(),s=v.useCallback((a,l)=>{const u=Cc(typeof a=="function"?a(o):a);n.current=!0,i("?"+u,l)},[i,o]);return[o,s]}function I$({title:e,titleId:t,...n},r){return v.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?v.createElement("title",{id:t},e):null,v.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 F$=v.forwardRef(I$),V$=F$;function B$({title:e,titleId:t,...n},r){return v.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?v.createElement("title",{id:t},e):null,v.createElement("path",{d:"M12 15a3 3 0 100-6 3 3 0 000 6z"}),v.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 z$=v.forwardRef(B$),U$=z$;function W$({title:e,titleId:t,...n},r){return v.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?v.createElement("title",{id:t},e):null,v.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 H$=v.forwardRef(W$),K$=H$;function G$(e){return e>=1e6?(e/1e6).toFixed(2)+"M":e>=1e3?(e/1e3).toFixed(1)+"k":e.toString()}function Q$(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ec({video:e,uploaderAvatar:t}){const n=Ua();return E.jsxs(tf,{isBlurred:!0,isPressable:!0,onPress:()=>n(e.url),shadow:"none",children:[E.jsx(m2,{children:E.jsx("img",{className:"w-full rounded-xl",src:e.thumbnail})}),E.jsxs(B0,{className:"flex gap-3 flex-row",children:[E.jsx(u2,{className:"flex-none",src:t||e.uploaderAvatar}),E.jsxs("div",{className:"flex gap-3 flex-col",children:[E.jsx(Jh,{color:"foreground",href:`#${e.url}`,children:e.title}),E.jsx(Jh,{color:"foreground",href:`#${e.uploaderUrl}`,children:E.jsxs("div",{className:"flex flex-row items-center break-all",children:[E.jsx("p",{className:"flex-none text-md",children:e.uploaderName}),e.uploaderVerified&&E.jsx(V$,{className:"w-6 h-6 p-1"})]})}),E.jsxs("div",{className:"flex flex-row items-center",children:[E.jsx(U$,{className:"w-6 h-6 p-1"}),E.jsx("p",{className:"flex-none text-md",children:`${G$(e.views)} ${e.uploadedDate}`})]})]})]})]})}function D1(){return E.jsxs(tf,{isBlurred:!0,isPressable:!0,shadow:"none",className:"space-y-5 p-4",children:[E.jsx(om,{className:"rounded-lg",children:E.jsx("div",{className:"rounded-lg h-56 bg-default-300 p-4"})}),E.jsx(B0,{className:"flex gap-3 flex-row",children:E.jsx(om,{className:"flex rounded-full w-12 h-12"})})]})}function Pm({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 X$(){const[e,t]=v.useState([]);return v.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(D1,{},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(Ec,{video:n},n.url))})}function Y$(){return E.jsxs(dR,{children:[E.jsxs(mc,{children:[E.jsx(mR,{className:"sm:hidden"}),E.jsx(fR,{children:E.jsx(Ro,{className:"font-bold text-inherit",to:"/trending",children:"ULTYT"})})]}),E.jsx(mc,{className:"sm:flex gap-4",justify:"start",children:E.jsx(s1,{children:E.jsx(C2,{isClearable:!0,radius:"lg",placeholder:"Type to search...",startContent:E.jsx(K$,{className:"h-6 w-6"})})})}),E.jsx(q$,{})]})}function Cm(e){let t,n;return e?(t=pR,n=t1):(t=s1,n=mc),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 q$(){return E.jsxs(E.Fragment,{children:[Cm(!1),Cm(!0)]})}function J$(){const[e,t]=v.useState(),[n,r]=v.useState(),{id:o}=d$(),[i,s]=D$(),a=i.get("tabId")||"videos";return v.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.jsx("div",{className:"",children:E.jsxs(tf,{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(h2,{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 bg-white rounded-xl mt-4",children:[E.jsx("div",{style:{cursor:"pointer"},onClick:()=>{s({tabId:"videos"})},className:"text-xl font-bold p-4",children:"Videos"},"videos"),e.tabs.map((l,u)=>E.jsx("div",{style:{cursor:"pointer"},onClick:()=>{s({tabId:String(u)}),r(void 0)},className:"text-xl font-bold p-4",children:Q$(l.name)},l.name))]}),a!=="videos"?E.jsx(Pm,{children:n==null?void 0:n.content.map(l=>l.type==="stream"?(l=l,E.jsx(Ec,{video:l,uploaderAvatar:e.avatarUrl},l.url)):E.jsx("div",{className:"",children:"Soon..."},Math.random()))}):E.jsx(Pm,{children:e.relatedStreams.map(l=>E.jsx(Ec,{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(D1,{},l))})}function Z$(){return window.piped_api=new N1,E.jsx(OS,{children:E.jsxs(A$,{children:[E.jsx(Y$,{}),E.jsxs(k$,{children:[E.jsx(ys,{path:"/",element:E.jsx(C$,{to:"/trending"})}),E.jsx(ys,{path:"/trending",element:E.jsx(X$,{})}),E.jsx(ys,{path:"/channel/:id",element:E.jsx(J$,{})})]})]})})}Wl.createRoot(document.getElementById("root")).render(E.jsx(re.StrictMode,{children:E.jsx(Z$,{})}));