const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Error-B9GTS4IN.js","assets/Helmet-DipkOvWI.js","assets/index.esm-C0AHCyb7.js","assets/ContentTypeFilter-B1xB6XzJ.js","assets/loading-BKx1G5Wu.js","assets/subPage-D9zOw-sK.js","assets/index-B3SAaQLl.js","assets/index-Cr85L7t7.js","assets/index-B_0gWLOk.js","assets/index-B6qXqKjA.css","assets/index-jsIXdPjR.js","assets/index-B_n3aO36.js","assets/index-Boa7Wo3s.js","assets/index-CPPD8R2z.js","assets/NewsContent-BsAYvTWr.js","assets/index-BZeZEiaL.js","assets/ContentTypeFilter-oNXnMkFG.css","assets/overview-pco8k4BH.js","assets/listing-CMIWkB2Q.js","assets/SearchPage-Cu59_16p.js","assets/index-CP_eCKQ7.js","assets/page-rE_KgHA-.js","assets/test-DkwSQtkh.js"])))=>i.map(i=>d[i]);
var Py=e=>{throw TypeError(e)};var Wh=(e,t,r)=>t.has(e)||Py("Cannot "+r);var I=(e,t,r)=>(Wh(e,t,"read from private field"),r?r.call(e):t.get(e)),$e=(e,t,r)=>t.has(e)?Py("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),he=(e,t,r,n)=>(Wh(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Bt=(e,t,r)=>(Wh(e,t,"access private method"),r);var hc=(e,t,r,n)=>({set _(o){he(e,t,o,r)},get _(){return I(e,t,n)}});function PS(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(n,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>n[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"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(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 n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var pc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function kH(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var RS={exports:{}},ve={};/**
 * @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 Lu=Symbol.for("react.element"),p2=Symbol.for("react.portal"),m2=Symbol.for("react.fragment"),g2=Symbol.for("react.strict_mode"),v2=Symbol.for("react.profiler"),y2=Symbol.for("react.provider"),b2=Symbol.for("react.context"),x2=Symbol.for("react.forward_ref"),w2=Symbol.for("react.suspense"),S2=Symbol.for("react.memo"),E2=Symbol.for("react.lazy"),Ry=Symbol.iterator;function k2(e){return e===null||typeof e!="object"?null:(e=Ry&&e[Ry]||e["@@iterator"],typeof e=="function"?e:null)}var AS={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},DS=Object.assign,OS={};function Fs(e,t,r){this.props=e,this.context=t,this.refs=OS,this.updater=r||AS}Fs.prototype.isReactComponent={};Fs.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")};Fs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function MS(){}MS.prototype=Fs.prototype;function ev(e,t,r){this.props=e,this.context=t,this.refs=OS,this.updater=r||AS}var tv=ev.prototype=new MS;tv.constructor=ev;DS(tv,Fs.prototype);tv.isPureReactComponent=!0;var Ay=Array.isArray,$S=Object.prototype.hasOwnProperty,rv={current:null},FS={key:!0,ref:!0,__self:!0,__source:!0};function LS(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)$S.call(t,n)&&!FS.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)o[n]===void 0&&(o[n]=s[n]);return{$$typeof:Lu,type:e,key:i,ref:a,props:o,_owner:rv.current}}function C2(e,t){return{$$typeof:Lu,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function nv(e){return typeof e=="object"&&e!==null&&e.$$typeof===Lu}function _2(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Dy=/\/+/g;function Hh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_2(""+e.key):t.toString(36)}function Qc(e,t,r,n,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Lu:case p2:a=!0}}if(a)return a=e,o=o(a),e=n===""?"."+Hh(a,0):n,Ay(o)?(r="",e!=null&&(r=e.replace(Dy,"$&/")+"/"),Qc(o,t,r,"",function(u){return u})):o!=null&&(nv(o)&&(o=C2(o,r+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Dy,"$&/")+"/")+e)),t.push(o)),1;if(a=0,n=n===""?".":n+":",Ay(e))for(var s=0;s<e.length;s++){i=e[s];var l=n+Hh(i,s);a+=Qc(i,t,r,l,o)}else if(l=k2(e),typeof l=="function")for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=n+Hh(i,s++),a+=Qc(i,t,r,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 a}function mc(e,t,r){if(e==null)return e;var n=[],o=0;return Qc(e,n,"","",function(i){return t.call(r,i,o++)}),n}function T2(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var tr={current:null},Yc={transition:null},P2={ReactCurrentDispatcher:tr,ReactCurrentBatchConfig:Yc,ReactCurrentOwner:rv};function zS(){throw Error("act(...) is not supported in production builds of React.")}ve.Children={map:mc,forEach:function(e,t,r){mc(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return mc(e,function(){t++}),t},toArray:function(e){return mc(e,function(t){return t})||[]},only:function(e){if(!nv(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ve.Component=Fs;ve.Fragment=m2;ve.Profiler=v2;ve.PureComponent=ev;ve.StrictMode=g2;ve.Suspense=w2;ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P2;ve.act=zS;ve.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=DS({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=rv.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)$S.call(t,l)&&!FS.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];n.children=s}return{$$typeof:Lu,type:e.type,key:o,ref:i,props:n,_owner:a}};ve.createContext=function(e){return e={$$typeof:b2,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:y2,_context:e},e.Consumer=e};ve.createElement=LS;ve.createFactory=function(e){var t=LS.bind(null,e);return t.type=e,t};ve.createRef=function(){return{current:null}};ve.forwardRef=function(e){return{$$typeof:x2,render:e}};ve.isValidElement=nv;ve.lazy=function(e){return{$$typeof:E2,_payload:{_status:-1,_result:e},_init:T2}};ve.memo=function(e,t){return{$$typeof:S2,type:e,compare:t===void 0?null:t}};ve.startTransition=function(e){var t=Yc.transition;Yc.transition={};try{e()}finally{Yc.transition=t}};ve.unstable_act=zS;ve.useCallback=function(e,t){return tr.current.useCallback(e,t)};ve.useContext=function(e){return tr.current.useContext(e)};ve.useDebugValue=function(){};ve.useDeferredValue=function(e){return tr.current.useDeferredValue(e)};ve.useEffect=function(e,t){return tr.current.useEffect(e,t)};ve.useId=function(){return tr.current.useId()};ve.useImperativeHandle=function(e,t,r){return tr.current.useImperativeHandle(e,t,r)};ve.useInsertionEffect=function(e,t){return tr.current.useInsertionEffect(e,t)};ve.useLayoutEffect=function(e,t){return tr.current.useLayoutEffect(e,t)};ve.useMemo=function(e,t){return tr.current.useMemo(e,t)};ve.useReducer=function(e,t,r){return tr.current.useReducer(e,t,r)};ve.useRef=function(e){return tr.current.useRef(e)};ve.useState=function(e){return tr.current.useState(e)};ve.useSyncExternalStore=function(e,t,r){return tr.current.useSyncExternalStore(e,t,r)};ve.useTransition=function(){return tr.current.useTransition()};ve.version="18.3.1";RS.exports=ve;var w=RS.exports;const y=Pf(w),sm=PS({__proto__:null,default:y},[w]);var BS={exports:{}},Dr={},IS={exports:{}},jS={};/**
 * @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(V,q){var Z=V.length;V.push(q);e:for(;0<Z;){var pe=Z-1>>>1,xe=V[pe];if(0<o(xe,q))V[pe]=q,V[Z]=xe,Z=pe;else break e}}function r(V){return V.length===0?null:V[0]}function n(V){if(V.length===0)return null;var q=V[0],Z=V.pop();if(Z!==q){V[0]=Z;e:for(var pe=0,xe=V.length,te=xe>>>1;pe<te;){var fe=2*(pe+1)-1,Ne=V[fe],Le=fe+1,kt=V[Le];if(0>o(Ne,Z))Le<xe&&0>o(kt,Ne)?(V[pe]=kt,V[Le]=Z,pe=Le):(V[pe]=Ne,V[fe]=Z,pe=fe);else if(Le<xe&&0>o(kt,Z))V[pe]=kt,V[Le]=Z,pe=Le;else break e}}return q}function o(V,q){var Z=V.sortIndex-q.sortIndex;return Z!==0?Z:V.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,v=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(V){for(var q=r(u);q!==null;){if(q.callback===null)n(u);else if(q.startTime<=V)n(u),q.sortIndex=q.expirationTime,t(l,q);else break;q=r(u)}}function E(V){if(g=!1,b(V),!v)if(r(l)!==null)v=!0,be(C);else{var q=r(u);q!==null&&B(E,q.startTime-V)}}function C(V,q){v=!1,g&&(g=!1,p(T),T=-1),h=!0;var Z=f;try{for(b(q),d=r(l);d!==null&&(!(d.expirationTime>q)||V&&!W());){var pe=d.callback;if(typeof pe=="function"){d.callback=null,f=d.priorityLevel;var xe=pe(d.expirationTime<=q);q=e.unstable_now(),typeof xe=="function"?d.callback=xe:d===r(l)&&n(l),b(q)}else n(l);d=r(l)}if(d!==null)var te=!0;else{var fe=r(u);fe!==null&&B(E,fe.startTime-q),te=!1}return te}finally{d=null,f=Z,h=!1}}var S=!1,P=null,T=-1,F=5,O=-1;function W(){return!(e.unstable_now()-O<F)}function ne(){if(P!==null){var V=e.unstable_now();O=V;var q=!0;try{q=P(!0,V)}finally{q?re():(S=!1,P=null)}}else S=!1}var re;if(typeof m=="function")re=function(){m(ne)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,Me=le.port2;le.port1.onmessage=ne,re=function(){Me.postMessage(null)}}else re=function(){x(ne,0)};function be(V){P=V,S||(S=!0,re())}function B(V,q){T=x(function(){V(e.unstable_now())},q)}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(V){V.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,be(C))},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(V){switch(f){case 1:case 2:case 3:var q=3;break;default:q=f}var Z=f;f=q;try{return V()}finally{f=Z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,q){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var Z=f;f=V;try{return q()}finally{f=Z}},e.unstable_scheduleCallback=function(V,q,Z){var pe=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?pe+Z:pe):Z=pe,V){case 1:var xe=-1;break;case 2:xe=250;break;case 5:xe=1073741823;break;case 4:xe=1e4;break;default:xe=5e3}return xe=Z+xe,V={id:c++,callback:q,priorityLevel:V,startTime:Z,expirationTime:xe,sortIndex:-1},Z>pe?(V.sortIndex=Z,t(u,V),r(l)===null&&V===r(u)&&(g?(p(T),T=-1):g=!0,B(E,Z-pe))):(V.sortIndex=xe,t(l,V),v||h||(v=!0,be(C))),V},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(V){var q=f;return function(){var Z=f;f=q;try{return V.apply(this,arguments)}finally{f=Z}}}})(jS);IS.exports=jS;var R2=IS.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 A2=w,Pr=R2;function U(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 NS=new Set,Yl={};function la(e,t){ms(e,t),ms(e+"Capture",t)}function ms(e,t){for(Yl[e]=t,e=0;e<t.length;e++)NS.add(t[e])}var mo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lm=Object.prototype.hasOwnProperty,D2=/^[: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]*$/,Oy={},My={};function O2(e){return lm.call(My,e)?!0:lm.call(Oy,e)?!1:D2.test(e)?My[e]=!0:(Oy[e]=!0,!1)}function M2(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $2(e,t,r,n){if(t===null||typeof t>"u"||M2(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 rr(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var zt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){zt[e]=new rr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];zt[t]=new rr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){zt[e]=new rr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){zt[e]=new rr(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){zt[e]=new rr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){zt[e]=new rr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){zt[e]=new rr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){zt[e]=new rr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){zt[e]=new rr(e,5,!1,e.toLowerCase(),null,!1,!1)});var ov=/[\-:]([a-z])/g;function iv(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(ov,iv);zt[t]=new rr(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(ov,iv);zt[t]=new rr(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(ov,iv);zt[t]=new rr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){zt[e]=new rr(e,1,!1,e.toLowerCase(),null,!1,!1)});zt.xlinkHref=new rr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){zt[e]=new rr(e,1,!1,e.toLowerCase(),null,!0,!0)});function av(e,t,r,n){var o=zt.hasOwnProperty(t)?zt[t]:null;(o!==null?o.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&($2(t,r,o,n)&&(r=null),n||o===null?O2(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=r===null?o.type===3?!1:"":r:(t=o.attributeName,n=o.attributeNamespace,r===null?e.removeAttribute(t):(o=o.type,r=o===3||o===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var So=A2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,gc=Symbol.for("react.element"),Ca=Symbol.for("react.portal"),_a=Symbol.for("react.fragment"),sv=Symbol.for("react.strict_mode"),um=Symbol.for("react.profiler"),VS=Symbol.for("react.provider"),US=Symbol.for("react.context"),lv=Symbol.for("react.forward_ref"),cm=Symbol.for("react.suspense"),dm=Symbol.for("react.suspense_list"),uv=Symbol.for("react.memo"),zo=Symbol.for("react.lazy"),WS=Symbol.for("react.offscreen"),$y=Symbol.iterator;function Qs(e){return e===null||typeof e!="object"?null:(e=$y&&e[$y]||e["@@iterator"],typeof e=="function"?e:null)}var at=Object.assign,Gh;function pl(e){if(Gh===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Gh=t&&t[1]||""}return`
`+Gh+e}var Kh=!1;function qh(e,t){if(!e||Kh)return"";Kh=!0;var r=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 n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var o=u.stack.split(`
`),i=n.stack.split(`
`),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||o[a]!==i[s]){var l=`
`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Kh=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?pl(e):""}function F2(e){switch(e.tag){case 5:return pl(e.type);case 16:return pl("Lazy");case 13:return pl("Suspense");case 19:return pl("SuspenseList");case 0:case 2:case 15:return e=qh(e.type,!1),e;case 11:return e=qh(e.type.render,!1),e;case 1:return e=qh(e.type,!0),e;default:return""}}function fm(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 _a:return"Fragment";case Ca:return"Portal";case um:return"Profiler";case sv:return"StrictMode";case cm:return"Suspense";case dm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case US:return(e.displayName||"Context")+".Consumer";case VS:return(e._context.displayName||"Context")+".Provider";case lv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case uv:return t=e.displayName||null,t!==null?t:fm(e.type)||"Memo";case zo:t=e._payload,e=e._init;try{return fm(e(t))}catch{}}return null}function L2(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 fm(t);case 8:return t===sv?"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 ii(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function HS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function z2(e){var t=HS(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vc(e){e._valueTracker||(e._valueTracker=z2(e))}function GS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=HS(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Rd(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 hm(e,t){var r=t.checked;return at({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Fy(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ii(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function KS(e,t){t=t.checked,t!=null&&av(e,"checked",t,!1)}function pm(e,t){KS(e,t);var r=ii(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?mm(e,t.type,r):t.hasOwnProperty("defaultValue")&&mm(e,t.type,ii(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ly(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function mm(e,t,r){(t!=="number"||Rd(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ml=Array.isArray;function qa(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+ii(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,n&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function gm(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(U(91));return at({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function zy(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(U(92));if(ml(r)){if(1<r.length)throw Error(U(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ii(r)}}function qS(e,t){var r=ii(t.value),n=ii(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function By(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function QS(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 vm(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?QS(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var yc,YS=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(yc=yc||document.createElement("div"),yc.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=yc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Pl={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},B2=["Webkit","ms","Moz","O"];Object.keys(Pl).forEach(function(e){B2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pl[t]=Pl[e]})});function XS(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Pl.hasOwnProperty(e)&&Pl[e]?(""+t).trim():t+"px"}function JS(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=XS(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var I2=at({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 ym(e,t){if(t){if(I2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function bm(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 xm=null;function cv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wm=null,Qa=null,Ya=null;function Iy(e){if(e=Iu(e)){if(typeof wm!="function")throw Error(U(280));var t=e.stateNode;t&&(t=Mf(t),wm(e.stateNode,e.type,t))}}function ZS(e){Qa?Ya?Ya.push(e):Ya=[e]:Qa=e}function eE(){if(Qa){var e=Qa,t=Ya;if(Ya=Qa=null,Iy(e),t)for(e=0;e<t.length;e++)Iy(t[e])}}function tE(e,t){return e(t)}function rE(){}var Qh=!1;function nE(e,t,r){if(Qh)return e(t,r);Qh=!0;try{return tE(e,t,r)}finally{Qh=!1,(Qa!==null||Ya!==null)&&(rE(),eE())}}function Jl(e,t){var r=e.stateNode;if(r===null)return null;var n=Mf(r);if(n===null)return null;r=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(U(231,t,typeof r));return r}var Sm=!1;if(mo)try{var Ys={};Object.defineProperty(Ys,"passive",{get:function(){Sm=!0}}),window.addEventListener("test",Ys,Ys),window.removeEventListener("test",Ys,Ys)}catch{Sm=!1}function j2(e,t,r,n,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(c){this.onError(c)}}var Rl=!1,Ad=null,Dd=!1,Em=null,N2={onError:function(e){Rl=!0,Ad=e}};function V2(e,t,r,n,o,i,a,s,l){Rl=!1,Ad=null,j2.apply(N2,arguments)}function U2(e,t,r,n,o,i,a,s,l){if(V2.apply(this,arguments),Rl){if(Rl){var u=Ad;Rl=!1,Ad=null}else throw Error(U(198));Dd||(Dd=!0,Em=u)}}function ua(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function oE(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 jy(e){if(ua(e)!==e)throw Error(U(188))}function W2(e){var t=e.alternate;if(!t){if(t=ua(e),t===null)throw Error(U(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(o===null)break;var i=o.alternate;if(i===null){if(n=o.return,n!==null){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return jy(o),e;if(i===n)return jy(o),t;i=i.sibling}throw Error(U(188))}if(r.return!==n.return)r=o,n=i;else{for(var a=!1,s=o.child;s;){if(s===r){a=!0,r=o,n=i;break}if(s===n){a=!0,n=o,r=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===r){a=!0,r=i,n=o;break}if(s===n){a=!0,n=i,r=o;break}s=s.sibling}if(!a)throw Error(U(189))}}if(r.alternate!==n)throw Error(U(190))}if(r.tag!==3)throw Error(U(188));return r.stateNode.current===r?e:t}function iE(e){return e=W2(e),e!==null?aE(e):null}function aE(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=aE(e);if(t!==null)return t;e=e.sibling}return null}var sE=Pr.unstable_scheduleCallback,Ny=Pr.unstable_cancelCallback,H2=Pr.unstable_shouldYield,G2=Pr.unstable_requestPaint,pt=Pr.unstable_now,K2=Pr.unstable_getCurrentPriorityLevel,dv=Pr.unstable_ImmediatePriority,lE=Pr.unstable_UserBlockingPriority,Od=Pr.unstable_NormalPriority,q2=Pr.unstable_LowPriority,uE=Pr.unstable_IdlePriority,Rf=null,jn=null;function Q2(e){if(jn&&typeof jn.onCommitFiberRoot=="function")try{jn.onCommitFiberRoot(Rf,e,void 0,(e.current.flags&128)===128)}catch{}}var vn=Math.clz32?Math.clz32:J2,Y2=Math.log,X2=Math.LN2;function J2(e){return e>>>=0,e===0?32:31-(Y2(e)/X2|0)|0}var bc=64,xc=4194304;function gl(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 Md(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~o;s!==0?n=gl(s):(i&=a,i!==0&&(n=gl(i)))}else a=r&~o,a!==0?n=gl(a):i!==0&&(n=gl(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-vn(t),o=1<<r,n|=e[r],t&=~o;return n}function Z2(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 eR(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-vn(i),s=1<<a,l=o[a];l===-1?(!(s&r)||s&n)&&(o[a]=Z2(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}function km(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function cE(){var e=bc;return bc<<=1,!(bc&4194240)&&(bc=64),e}function Yh(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function zu(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-vn(t),e[t]=r}function tR(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-vn(r),i=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~i}}function fv(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-vn(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var ze=0;function dE(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var fE,hv,hE,pE,mE,Cm=!1,wc=[],Yo=null,Xo=null,Jo=null,Zl=new Map,eu=new Map,Io=[],rR="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 Vy(e,t){switch(e){case"focusin":case"focusout":Yo=null;break;case"dragenter":case"dragleave":Xo=null;break;case"mouseover":case"mouseout":Jo=null;break;case"pointerover":case"pointerout":Zl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":eu.delete(t.pointerId)}}function Xs(e,t,r,n,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Iu(t),t!==null&&hv(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function nR(e,t,r,n,o){switch(t){case"focusin":return Yo=Xs(Yo,e,t,r,n,o),!0;case"dragenter":return Xo=Xs(Xo,e,t,r,n,o),!0;case"mouseover":return Jo=Xs(Jo,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return Zl.set(i,Xs(Zl.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,eu.set(i,Xs(eu.get(i)||null,e,t,r,n,o)),!0}return!1}function gE(e){var t=$i(e.target);if(t!==null){var r=ua(t);if(r!==null){if(t=r.tag,t===13){if(t=oE(r),t!==null){e.blockedOn=t,mE(e.priority,function(){hE(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=_m(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);xm=n,r.target.dispatchEvent(n),xm=null}else return t=Iu(r),t!==null&&hv(t),e.blockedOn=r,!1;t.shift()}return!0}function Uy(e,t,r){Xc(e)&&r.delete(t)}function oR(){Cm=!1,Yo!==null&&Xc(Yo)&&(Yo=null),Xo!==null&&Xc(Xo)&&(Xo=null),Jo!==null&&Xc(Jo)&&(Jo=null),Zl.forEach(Uy),eu.forEach(Uy)}function Js(e,t){e.blockedOn===t&&(e.blockedOn=null,Cm||(Cm=!0,Pr.unstable_scheduleCallback(Pr.unstable_NormalPriority,oR)))}function tu(e){function t(o){return Js(o,e)}if(0<wc.length){Js(wc[0],e);for(var r=1;r<wc.length;r++){var n=wc[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Yo!==null&&Js(Yo,e),Xo!==null&&Js(Xo,e),Jo!==null&&Js(Jo,e),Zl.forEach(t),eu.forEach(t),r=0;r<Io.length;r++)n=Io[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Io.length&&(r=Io[0],r.blockedOn===null);)gE(r),r.blockedOn===null&&Io.shift()}var Xa=So.ReactCurrentBatchConfig,$d=!0;function iR(e,t,r,n){var o=ze,i=Xa.transition;Xa.transition=null;try{ze=1,pv(e,t,r,n)}finally{ze=o,Xa.transition=i}}function aR(e,t,r,n){var o=ze,i=Xa.transition;Xa.transition=null;try{ze=4,pv(e,t,r,n)}finally{ze=o,Xa.transition=i}}function pv(e,t,r,n){if($d){var o=_m(e,t,r,n);if(o===null)ap(e,t,n,Fd,r),Vy(e,n);else if(nR(o,e,t,r,n))n.stopPropagation();else if(Vy(e,n),t&4&&-1<rR.indexOf(e)){for(;o!==null;){var i=Iu(o);if(i!==null&&fE(i),i=_m(e,t,r,n),i===null&&ap(e,t,n,Fd,r),i===o)break;o=i}o!==null&&n.stopPropagation()}else ap(e,t,n,null,r)}}var Fd=null;function _m(e,t,r,n){if(Fd=null,e=cv(n),e=$i(e),e!==null)if(t=ua(e),t===null)e=null;else if(r=t.tag,r===13){if(e=oE(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Fd=e,null}function vE(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(K2()){case dv:return 1;case lE:return 4;case Od:case q2:return 16;case uE:return 536870912;default:return 16}default:return 16}}var Ko=null,mv=null,Jc=null;function yE(){if(Jc)return Jc;var e,t=mv,r=t.length,n,o="value"in Ko?Ko.value:Ko.textContent,i=o.length;for(e=0;e<r&&t[e]===o[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===o[i-n];n++);return Jc=o.slice(e,1<n?1-n:void 0)}function Zc(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 Sc(){return!0}function Wy(){return!1}function Or(e){function t(r,n,o,i,a){this._reactName=r,this._targetInst=o,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Sc:Wy,this.isPropagationStopped=Wy,this}return at(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Sc)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Sc)},persist:function(){},isPersistent:Sc}),t}var Ls={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gv=Or(Ls),Bu=at({},Ls,{view:0,detail:0}),sR=Or(Bu),Xh,Jh,Zs,Af=at({},Bu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vv,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!==Zs&&(Zs&&e.type==="mousemove"?(Xh=e.screenX-Zs.screenX,Jh=e.screenY-Zs.screenY):Jh=Xh=0,Zs=e),Xh)},movementY:function(e){return"movementY"in e?e.movementY:Jh}}),Hy=Or(Af),lR=at({},Af,{dataTransfer:0}),uR=Or(lR),cR=at({},Bu,{relatedTarget:0}),Zh=Or(cR),dR=at({},Ls,{animationName:0,elapsedTime:0,pseudoElement:0}),fR=Or(dR),hR=at({},Ls,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),pR=Or(hR),mR=at({},Ls,{data:0}),Gy=Or(mR),gR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vR={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"},yR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bR(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=yR[e])?!!t[e]:!1}function vv(){return bR}var xR=at({},Bu,{key:function(e){if(e.key){var t=gR[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?vR[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vv,charCode:function(e){return e.type==="keypress"?Zc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wR=Or(xR),SR=at({},Af,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ky=Or(SR),ER=at({},Bu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vv}),kR=Or(ER),CR=at({},Ls,{propertyName:0,elapsedTime:0,pseudoElement:0}),_R=Or(CR),TR=at({},Af,{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}),PR=Or(TR),RR=[9,13,27,32],yv=mo&&"CompositionEvent"in window,Al=null;mo&&"documentMode"in document&&(Al=document.documentMode);var AR=mo&&"TextEvent"in window&&!Al,bE=mo&&(!yv||Al&&8<Al&&11>=Al),qy=" ",Qy=!1;function xE(e,t){switch(e){case"keyup":return RR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ta=!1;function DR(e,t){switch(e){case"compositionend":return wE(t);case"keypress":return t.which!==32?null:(Qy=!0,qy);case"textInput":return e=t.data,e===qy&&Qy?null:e;default:return null}}function OR(e,t){if(Ta)return e==="compositionend"||!yv&&xE(e,t)?(e=yE(),Jc=mv=Ko=null,Ta=!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 bE&&t.locale!=="ko"?null:t.data;default:return null}}var MR={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 Yy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!MR[e.type]:t==="textarea"}function SE(e,t,r,n){ZS(n),t=Ld(t,"onChange"),0<t.length&&(r=new gv("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Dl=null,ru=null;function $R(e){ME(e,0)}function Df(e){var t=Aa(e);if(GS(t))return e}function FR(e,t){if(e==="change")return t}var EE=!1;if(mo){var ep;if(mo){var tp="oninput"in document;if(!tp){var Xy=document.createElement("div");Xy.setAttribute("oninput","return;"),tp=typeof Xy.oninput=="function"}ep=tp}else ep=!1;EE=ep&&(!document.documentMode||9<document.documentMode)}function Jy(){Dl&&(Dl.detachEvent("onpropertychange",kE),ru=Dl=null)}function kE(e){if(e.propertyName==="value"&&Df(ru)){var t=[];SE(t,ru,e,cv(e)),nE($R,t)}}function LR(e,t,r){e==="focusin"?(Jy(),Dl=t,ru=r,Dl.attachEvent("onpropertychange",kE)):e==="focusout"&&Jy()}function zR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Df(ru)}function BR(e,t){if(e==="click")return Df(t)}function IR(e,t){if(e==="input"||e==="change")return Df(t)}function jR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bn=typeof Object.is=="function"?Object.is:jR;function nu(e,t){if(bn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!lm.call(t,o)||!bn(e[o],t[o]))return!1}return!0}function Zy(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function eb(e,t){var r=Zy(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Zy(r)}}function CE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?CE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _E(){for(var e=window,t=Rd();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Rd(e.document)}return t}function bv(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 NR(e){var t=_E(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&CE(r.ownerDocument.documentElement,r)){if(n!==null&&bv(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=eb(r,i);var a=eb(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var VR=mo&&"documentMode"in document&&11>=document.documentMode,Pa=null,Tm=null,Ol=null,Pm=!1;function tb(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Pm||Pa==null||Pa!==Rd(n)||(n=Pa,"selectionStart"in n&&bv(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ol&&nu(Ol,n)||(Ol=n,n=Ld(Tm,"onSelect"),0<n.length&&(t=new gv("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Pa)))}function Ec(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ra={animationend:Ec("Animation","AnimationEnd"),animationiteration:Ec("Animation","AnimationIteration"),animationstart:Ec("Animation","AnimationStart"),transitionend:Ec("Transition","TransitionEnd")},rp={},TE={};mo&&(TE=document.createElement("div").style,"AnimationEvent"in window||(delete Ra.animationend.animation,delete Ra.animationiteration.animation,delete Ra.animationstart.animation),"TransitionEvent"in window||delete Ra.transitionend.transition);function Of(e){if(rp[e])return rp[e];if(!Ra[e])return e;var t=Ra[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in TE)return rp[e]=t[r];return e}var PE=Of("animationend"),RE=Of("animationiteration"),AE=Of("animationstart"),DE=Of("transitionend"),OE=new Map,rb="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 ci(e,t){OE.set(e,t),la(t,[e])}for(var np=0;np<rb.length;np++){var op=rb[np],UR=op.toLowerCase(),WR=op[0].toUpperCase()+op.slice(1);ci(UR,"on"+WR)}ci(PE,"onAnimationEnd");ci(RE,"onAnimationIteration");ci(AE,"onAnimationStart");ci("dblclick","onDoubleClick");ci("focusin","onFocus");ci("focusout","onBlur");ci(DE,"onTransitionEnd");ms("onMouseEnter",["mouseout","mouseover"]);ms("onMouseLeave",["mouseout","mouseover"]);ms("onPointerEnter",["pointerout","pointerover"]);ms("onPointerLeave",["pointerout","pointerover"]);la("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));la("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));la("onBeforeInput",["compositionend","keypress","textInput","paste"]);la("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));la("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));la("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vl="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(" "),HR=new Set("cancel close invalid load scroll toggle".split(" ").concat(vl));function nb(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,U2(n,t,void 0,e),e.currentTarget=null}function ME(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;nb(o,s,u),i=l}else for(a=0;a<n.length;a++){if(s=n[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;nb(o,s,u),i=l}}}if(Dd)throw e=Em,Dd=!1,Em=null,e}function He(e,t){var r=t[Mm];r===void 0&&(r=t[Mm]=new Set);var n=e+"__bubble";r.has(n)||($E(t,e,2,!1),r.add(n))}function ip(e,t,r){var n=0;t&&(n|=4),$E(r,e,n,t)}var kc="_reactListening"+Math.random().toString(36).slice(2);function ou(e){if(!e[kc]){e[kc]=!0,NS.forEach(function(r){r!=="selectionchange"&&(HR.has(r)||ip(r,!1,e),ip(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[kc]||(t[kc]=!0,ip("selectionchange",!1,t))}}function $E(e,t,r,n){switch(vE(t)){case 1:var o=iR;break;case 4:o=aR;break;default:o=pv}r=o.bind(null,t,r,e),o=void 0,!Sm||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),n?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function ap(e,t,r,n,o){var i=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var s=n.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(a===4)for(a=n.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;a=a.return}for(;s!==null;){if(a=$i(s),a===null)return;if(l=a.tag,l===5||l===6){n=i=a;continue e}s=s.parentNode}}n=n.return}nE(function(){var u=i,c=cv(r),d=[];e:{var f=OE.get(e);if(f!==void 0){var h=gv,v=e;switch(e){case"keypress":if(Zc(r)===0)break e;case"keydown":case"keyup":h=wR;break;case"focusin":v="focus",h=Zh;break;case"focusout":v="blur",h=Zh;break;case"beforeblur":case"afterblur":h=Zh;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Hy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=uR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=kR;break;case PE:case RE:case AE:h=fR;break;case DE:h=_R;break;case"scroll":h=sR;break;case"wheel":h=PR;break;case"copy":case"cut":case"paste":h=pR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Ky}var g=(t&4)!==0,x=!g&&e==="scroll",p=g?f!==null?f+"Capture":null:f;g=[];for(var m=u,b;m!==null;){b=m;var E=b.stateNode;if(b.tag===5&&E!==null&&(b=E,p!==null&&(E=Jl(m,p),E!=null&&g.push(iu(m,E,b)))),x)break;m=m.return}0<g.length&&(f=new h(f,v,null,r,c),d.push({event:f,listeners:g}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&r!==xm&&(v=r.relatedTarget||r.fromElement)&&($i(v)||v[go]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(v=r.relatedTarget||r.toElement,h=u,v=v?$i(v):null,v!==null&&(x=ua(v),v!==x||v.tag!==5&&v.tag!==6)&&(v=null)):(h=null,v=u),h!==v)){if(g=Hy,E="onMouseLeave",p="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(g=Ky,E="onPointerLeave",p="onPointerEnter",m="pointer"),x=h==null?f:Aa(h),b=v==null?f:Aa(v),f=new g(E,m+"leave",h,r,c),f.target=x,f.relatedTarget=b,E=null,$i(c)===u&&(g=new g(p,m+"enter",v,r,c),g.target=b,g.relatedTarget=x,E=g),x=E,h&&v)t:{for(g=h,p=v,m=0,b=g;b;b=xa(b))m++;for(b=0,E=p;E;E=xa(E))b++;for(;0<m-b;)g=xa(g),m--;for(;0<b-m;)p=xa(p),b--;for(;m--;){if(g===p||p!==null&&g===p.alternate)break t;g=xa(g),p=xa(p)}g=null}else g=null;h!==null&&ob(d,f,h,g,!1),v!==null&&x!==null&&ob(d,x,v,g,!0)}}e:{if(f=u?Aa(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var C=FR;else if(Yy(f))if(EE)C=IR;else{C=zR;var S=LR}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(C=BR);if(C&&(C=C(e,u))){SE(d,C,r,c);break e}S&&S(e,f,u),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&mm(f,"number",f.value)}switch(S=u?Aa(u):window,e){case"focusin":(Yy(S)||S.contentEditable==="true")&&(Pa=S,Tm=u,Ol=null);break;case"focusout":Ol=Tm=Pa=null;break;case"mousedown":Pm=!0;break;case"contextmenu":case"mouseup":case"dragend":Pm=!1,tb(d,r,c);break;case"selectionchange":if(VR)break;case"keydown":case"keyup":tb(d,r,c)}var P;if(yv)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Ta?xE(e,r)&&(T="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(T="onCompositionStart");T&&(bE&&r.locale!=="ko"&&(Ta||T!=="onCompositionStart"?T==="onCompositionEnd"&&Ta&&(P=yE()):(Ko=c,mv="value"in Ko?Ko.value:Ko.textContent,Ta=!0)),S=Ld(u,T),0<S.length&&(T=new Gy(T,e,null,r,c),d.push({event:T,listeners:S}),P?T.data=P:(P=wE(r),P!==null&&(T.data=P)))),(P=AR?DR(e,r):OR(e,r))&&(u=Ld(u,"onBeforeInput"),0<u.length&&(c=new Gy("onBeforeInput","beforeinput",null,r,c),d.push({event:c,listeners:u}),c.data=P))}ME(d,t)})}function iu(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ld(e,t){for(var r=t+"Capture",n=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Jl(e,r),i!=null&&n.unshift(iu(e,i,o)),i=Jl(e,t),i!=null&&n.push(iu(e,i,o))),e=e.return}return n}function xa(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ob(e,t,r,n,o){for(var i=t._reactName,a=[];r!==null&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&u!==null&&(s=u,o?(l=Jl(r,i),l!=null&&a.unshift(iu(r,l,s))):o||(l=Jl(r,i),l!=null&&a.push(iu(r,l,s)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var GR=/\r\n?/g,KR=/\u0000|\uFFFD/g;function ib(e){return(typeof e=="string"?e:""+e).replace(GR,`
`).replace(KR,"")}function Cc(e,t,r){if(t=ib(t),ib(e)!==t&&r)throw Error(U(425))}function zd(){}var Rm=null,Am=null;function Dm(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 Om=typeof setTimeout=="function"?setTimeout:void 0,qR=typeof clearTimeout=="function"?clearTimeout:void 0,ab=typeof Promise=="function"?Promise:void 0,QR=typeof queueMicrotask=="function"?queueMicrotask:typeof ab<"u"?function(e){return ab.resolve(null).then(e).catch(YR)}:Om;function YR(e){setTimeout(function(){throw e})}function sp(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(n===0){e.removeChild(o),tu(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=o}while(r);tu(t)}function Zo(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 sb(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var zs=Math.random().toString(36).slice(2),In="__reactFiber$"+zs,au="__reactProps$"+zs,go="__reactContainer$"+zs,Mm="__reactEvents$"+zs,XR="__reactListeners$"+zs,JR="__reactHandles$"+zs;function $i(e){var t=e[In];if(t)return t;for(var r=e.parentNode;r;){if(t=r[go]||r[In]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=sb(e);e!==null;){if(r=e[In])return r;e=sb(e)}return t}e=r,r=e.parentNode}return null}function Iu(e){return e=e[In]||e[go],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Aa(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(U(33))}function Mf(e){return e[au]||null}var $m=[],Da=-1;function di(e){return{current:e}}function Ke(e){0>Da||(e.current=$m[Da],$m[Da]=null,Da--)}function Ue(e,t){Da++,$m[Da]=e.current,e.current=t}var ai={},Kt=di(ai),lr=di(!1),ea=ai;function gs(e,t){var r=e.type.contextTypes;if(!r)return ai;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ur(e){return e=e.childContextTypes,e!=null}function Bd(){Ke(lr),Ke(Kt)}function lb(e,t,r){if(Kt.current!==ai)throw Error(U(168));Ue(Kt,t),Ue(lr,r)}function FE(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(U(108,L2(e)||"Unknown",o));return at({},r,n)}function Id(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ai,ea=Kt.current,Ue(Kt,e),Ue(lr,lr.current),!0}function ub(e,t,r){var n=e.stateNode;if(!n)throw Error(U(169));r?(e=FE(e,t,ea),n.__reactInternalMemoizedMergedChildContext=e,Ke(lr),Ke(Kt),Ue(Kt,e)):Ke(lr),Ue(lr,r)}var to=null,$f=!1,lp=!1;function LE(e){to===null?to=[e]:to.push(e)}function ZR(e){$f=!0,LE(e)}function fi(){if(!lp&&to!==null){lp=!0;var e=0,t=ze;try{var r=to;for(ze=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}to=null,$f=!1}catch(o){throw to!==null&&(to=to.slice(e+1)),sE(dv,fi),o}finally{ze=t,lp=!1}}return null}var Oa=[],Ma=0,jd=null,Nd=0,Vr=[],Ur=0,ta=null,io=1,ao="";function _i(e,t){Oa[Ma++]=Nd,Oa[Ma++]=jd,jd=e,Nd=t}function zE(e,t,r){Vr[Ur++]=io,Vr[Ur++]=ao,Vr[Ur++]=ta,ta=e;var n=io;e=ao;var o=32-vn(n)-1;n&=~(1<<o),r+=1;var i=32-vn(t)+o;if(30<i){var a=o-o%5;i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,io=1<<32-vn(t)+o|r<<o|n,ao=i+e}else io=1<<i|r<<o|n,ao=e}function xv(e){e.return!==null&&(_i(e,1),zE(e,1,0))}function wv(e){for(;e===jd;)jd=Oa[--Ma],Oa[Ma]=null,Nd=Oa[--Ma],Oa[Ma]=null;for(;e===ta;)ta=Vr[--Ur],Vr[Ur]=null,ao=Vr[--Ur],Vr[Ur]=null,io=Vr[--Ur],Vr[Ur]=null}var Er=null,Sr=null,rt=!1,mn=null;function BE(e,t){var r=Wr(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function cb(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Er=e,Sr=Zo(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Er=e,Sr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=ta!==null?{id:io,overflow:ao}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Wr(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Er=e,Sr=null,!0):!1;default:return!1}}function Fm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Lm(e){if(rt){var t=Sr;if(t){var r=t;if(!cb(e,t)){if(Fm(e))throw Error(U(418));t=Zo(r.nextSibling);var n=Er;t&&cb(e,t)?BE(n,r):(e.flags=e.flags&-4097|2,rt=!1,Er=e)}}else{if(Fm(e))throw Error(U(418));e.flags=e.flags&-4097|2,rt=!1,Er=e}}}function db(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Er=e}function _c(e){if(e!==Er)return!1;if(!rt)return db(e),rt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Dm(e.type,e.memoizedProps)),t&&(t=Sr)){if(Fm(e))throw IE(),Error(U(418));for(;t;)BE(e,t),t=Zo(t.nextSibling)}if(db(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Sr=Zo(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Sr=null}}else Sr=Er?Zo(e.stateNode.nextSibling):null;return!0}function IE(){for(var e=Sr;e;)e=Zo(e.nextSibling)}function vs(){Sr=Er=null,rt=!1}function Sv(e){mn===null?mn=[e]:mn.push(e)}var eA=So.ReactCurrentBatchConfig;function el(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(U(309));var n=r.stateNode}if(!n)throw Error(U(147,e));var o=n,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var s=o.refs;a===null?delete s[i]:s[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(U(284));if(!r._owner)throw Error(U(290,e))}return e}function Tc(e,t){throw e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function fb(e){var t=e._init;return t(e._payload)}function jE(e){function t(p,m){if(e){var b=p.deletions;b===null?(p.deletions=[m],p.flags|=16):b.push(m)}}function r(p,m){if(!e)return null;for(;m!==null;)t(p,m),m=m.sibling;return null}function n(p,m){for(p=new Map;m!==null;)m.key!==null?p.set(m.key,m):p.set(m.index,m),m=m.sibling;return p}function o(p,m){return p=ni(p,m),p.index=0,p.sibling=null,p}function i(p,m,b){return p.index=b,e?(b=p.alternate,b!==null?(b=b.index,b<m?(p.flags|=2,m):b):(p.flags|=2,m)):(p.flags|=1048576,m)}function a(p){return e&&p.alternate===null&&(p.flags|=2),p}function s(p,m,b,E){return m===null||m.tag!==6?(m=mp(b,p.mode,E),m.return=p,m):(m=o(m,b),m.return=p,m)}function l(p,m,b,E){var C=b.type;return C===_a?c(p,m,b.props.children,E,b.key):m!==null&&(m.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===zo&&fb(C)===m.type)?(E=o(m,b.props),E.ref=el(p,m,b),E.return=p,E):(E=ad(b.type,b.key,b.props,null,p.mode,E),E.ref=el(p,m,b),E.return=p,E)}function u(p,m,b,E){return m===null||m.tag!==4||m.stateNode.containerInfo!==b.containerInfo||m.stateNode.implementation!==b.implementation?(m=gp(b,p.mode,E),m.return=p,m):(m=o(m,b.children||[]),m.return=p,m)}function c(p,m,b,E,C){return m===null||m.tag!==7?(m=Ki(b,p.mode,E,C),m.return=p,m):(m=o(m,b),m.return=p,m)}function d(p,m,b){if(typeof m=="string"&&m!==""||typeof m=="number")return m=mp(""+m,p.mode,b),m.return=p,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case gc:return b=ad(m.type,m.key,m.props,null,p.mode,b),b.ref=el(p,null,m),b.return=p,b;case Ca:return m=gp(m,p.mode,b),m.return=p,m;case zo:var E=m._init;return d(p,E(m._payload),b)}if(ml(m)||Qs(m))return m=Ki(m,p.mode,b,null),m.return=p,m;Tc(p,m)}return null}function f(p,m,b,E){var C=m!==null?m.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return C!==null?null:s(p,m,""+b,E);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case gc:return b.key===C?l(p,m,b,E):null;case Ca:return b.key===C?u(p,m,b,E):null;case zo:return C=b._init,f(p,m,C(b._payload),E)}if(ml(b)||Qs(b))return C!==null?null:c(p,m,b,E,null);Tc(p,b)}return null}function h(p,m,b,E,C){if(typeof E=="string"&&E!==""||typeof E=="number")return p=p.get(b)||null,s(m,p,""+E,C);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case gc:return p=p.get(E.key===null?b:E.key)||null,l(m,p,E,C);case Ca:return p=p.get(E.key===null?b:E.key)||null,u(m,p,E,C);case zo:var S=E._init;return h(p,m,b,S(E._payload),C)}if(ml(E)||Qs(E))return p=p.get(b)||null,c(m,p,E,C,null);Tc(m,E)}return null}function v(p,m,b,E){for(var C=null,S=null,P=m,T=m=0,F=null;P!==null&&T<b.length;T++){P.index>T?(F=P,P=null):F=P.sibling;var O=f(p,P,b[T],E);if(O===null){P===null&&(P=F);break}e&&P&&O.alternate===null&&t(p,P),m=i(O,m,T),S===null?C=O:S.sibling=O,S=O,P=F}if(T===b.length)return r(p,P),rt&&_i(p,T),C;if(P===null){for(;T<b.length;T++)P=d(p,b[T],E),P!==null&&(m=i(P,m,T),S===null?C=P:S.sibling=P,S=P);return rt&&_i(p,T),C}for(P=n(p,P);T<b.length;T++)F=h(P,p,T,b[T],E),F!==null&&(e&&F.alternate!==null&&P.delete(F.key===null?T:F.key),m=i(F,m,T),S===null?C=F:S.sibling=F,S=F);return e&&P.forEach(function(W){return t(p,W)}),rt&&_i(p,T),C}function g(p,m,b,E){var C=Qs(b);if(typeof C!="function")throw Error(U(150));if(b=C.call(b),b==null)throw Error(U(151));for(var S=C=null,P=m,T=m=0,F=null,O=b.next();P!==null&&!O.done;T++,O=b.next()){P.index>T?(F=P,P=null):F=P.sibling;var W=f(p,P,O.value,E);if(W===null){P===null&&(P=F);break}e&&P&&W.alternate===null&&t(p,P),m=i(W,m,T),S===null?C=W:S.sibling=W,S=W,P=F}if(O.done)return r(p,P),rt&&_i(p,T),C;if(P===null){for(;!O.done;T++,O=b.next())O=d(p,O.value,E),O!==null&&(m=i(O,m,T),S===null?C=O:S.sibling=O,S=O);return rt&&_i(p,T),C}for(P=n(p,P);!O.done;T++,O=b.next())O=h(P,p,T,O.value,E),O!==null&&(e&&O.alternate!==null&&P.delete(O.key===null?T:O.key),m=i(O,m,T),S===null?C=O:S.sibling=O,S=O);return e&&P.forEach(function(ne){return t(p,ne)}),rt&&_i(p,T),C}function x(p,m,b,E){if(typeof b=="object"&&b!==null&&b.type===_a&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case gc:e:{for(var C=b.key,S=m;S!==null;){if(S.key===C){if(C=b.type,C===_a){if(S.tag===7){r(p,S.sibling),m=o(S,b.props.children),m.return=p,p=m;break e}}else if(S.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===zo&&fb(C)===S.type){r(p,S.sibling),m=o(S,b.props),m.ref=el(p,S,b),m.return=p,p=m;break e}r(p,S);break}else t(p,S);S=S.sibling}b.type===_a?(m=Ki(b.props.children,p.mode,E,b.key),m.return=p,p=m):(E=ad(b.type,b.key,b.props,null,p.mode,E),E.ref=el(p,m,b),E.return=p,p=E)}return a(p);case Ca:e:{for(S=b.key;m!==null;){if(m.key===S)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){r(p,m.sibling),m=o(m,b.children||[]),m.return=p,p=m;break e}else{r(p,m);break}else t(p,m);m=m.sibling}m=gp(b,p.mode,E),m.return=p,p=m}return a(p);case zo:return S=b._init,x(p,m,S(b._payload),E)}if(ml(b))return v(p,m,b,E);if(Qs(b))return g(p,m,b,E);Tc(p,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(r(p,m.sibling),m=o(m,b),m.return=p,p=m):(r(p,m),m=mp(b,p.mode,E),m.return=p,p=m),a(p)):r(p,m)}return x}var ys=jE(!0),NE=jE(!1),Vd=di(null),Ud=null,$a=null,Ev=null;function kv(){Ev=$a=Ud=null}function Cv(e){var t=Vd.current;Ke(Vd),e._currentValue=t}function zm(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Ja(e,t){Ud=e,Ev=$a=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(sr=!0),e.firstContext=null)}function qr(e){var t=e._currentValue;if(Ev!==e)if(e={context:e,memoizedValue:t,next:null},$a===null){if(Ud===null)throw Error(U(308));$a=e,Ud.dependencies={lanes:0,firstContext:e}}else $a=$a.next=e;return t}var Fi=null;function _v(e){Fi===null?Fi=[e]:Fi.push(e)}function VE(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,_v(t)):(r.next=o.next,o.next=r),t.interleaved=r,vo(e,n)}function vo(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Bo=!1;function Tv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function UE(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 lo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ei(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,_e&2){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,vo(e,r)}return o=n.interleaved,o===null?(t.next=t,_v(n)):(t.next=o.next,o.next=t),n.interleaved=t,vo(e,r)}function ed(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,fv(e,r)}}function hb(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Wd(e,t,r,n){var o=e.updateQueue;Bo=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?i=u:a.next=u,a=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;a=0,c=u=l=null,s=i;do{var f=s.lane,h=s.eventTime;if((n&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,g=s;switch(f=t,h=r,g.tag){case 1:if(v=g.payload,typeof v=="function"){d=v.call(h,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=g.payload,f=typeof v=="function"?v.call(h,d,f):v,f==null)break e;d=at({},d,f);break e;case 2:Bo=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,a|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);na|=a,e.lanes=a,e.memoizedState=d}}function pb(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(o!==null){if(n.callback=null,n=r,typeof o!="function")throw Error(U(191,o));o.call(n)}}}var ju={},Nn=di(ju),su=di(ju),lu=di(ju);function Li(e){if(e===ju)throw Error(U(174));return e}function Pv(e,t){switch(Ue(lu,t),Ue(su,e),Ue(Nn,ju),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:vm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=vm(t,e)}Ke(Nn),Ue(Nn,t)}function bs(){Ke(Nn),Ke(su),Ke(lu)}function WE(e){Li(lu.current);var t=Li(Nn.current),r=vm(t,e.type);t!==r&&(Ue(su,e),Ue(Nn,r))}function Rv(e){su.current===e&&(Ke(Nn),Ke(su))}var nt=di(0);function Hd(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.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 up=[];function Av(){for(var e=0;e<up.length;e++)up[e]._workInProgressVersionPrimary=null;up.length=0}var td=So.ReactCurrentDispatcher,cp=So.ReactCurrentBatchConfig,ra=0,it=null,wt=null,Tt=null,Gd=!1,Ml=!1,uu=0,tA=0;function It(){throw Error(U(321))}function Dv(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!bn(e[r],t[r]))return!1;return!0}function Ov(e,t,r,n,o,i){if(ra=i,it=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,td.current=e===null||e.memoizedState===null?iA:aA,e=r(n,o),Ml){i=0;do{if(Ml=!1,uu=0,25<=i)throw Error(U(301));i+=1,Tt=wt=null,t.updateQueue=null,td.current=sA,e=r(n,o)}while(Ml)}if(td.current=Kd,t=wt!==null&&wt.next!==null,ra=0,Tt=wt=it=null,Gd=!1,t)throw Error(U(300));return e}function Mv(){var e=uu!==0;return uu=0,e}function On(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tt===null?it.memoizedState=Tt=e:Tt=Tt.next=e,Tt}function Qr(){if(wt===null){var e=it.alternate;e=e!==null?e.memoizedState:null}else e=wt.next;var t=Tt===null?it.memoizedState:Tt.next;if(t!==null)Tt=t,wt=e;else{if(e===null)throw Error(U(310));wt=e,e={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},Tt===null?it.memoizedState=Tt=e:Tt=Tt.next=e}return Tt}function cu(e,t){return typeof t=="function"?t(e):t}function dp(e){var t=Qr(),r=t.queue;if(r===null)throw Error(U(311));r.lastRenderedReducer=e;var n=wt,o=n.baseQueue,i=r.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}n.baseQueue=o=i,r.pending=null}if(o!==null){i=o.next,n=n.baseState;var s=a=null,l=null,u=i;do{var c=u.lane;if((ra&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=d,a=n):l=l.next=d,it.lanes|=c,na|=c}u=u.next}while(u!==null&&u!==i);l===null?a=n:l.next=s,bn(n,t.memoizedState)||(sr=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){o=e;do i=o.lane,it.lanes|=i,na|=i,o=o.next;while(o!==e)}else o===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function fp(e){var t=Qr(),r=t.queue;if(r===null)throw Error(U(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(o!==null){r.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);bn(i,t.memoizedState)||(sr=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function HE(){}function GE(e,t){var r=it,n=Qr(),o=t(),i=!bn(n.memoizedState,o);if(i&&(n.memoizedState=o,sr=!0),n=n.queue,$v(QE.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||Tt!==null&&Tt.memoizedState.tag&1){if(r.flags|=2048,du(9,qE.bind(null,r,n,o,t),void 0,null),Pt===null)throw Error(U(349));ra&30||KE(r,t,o)}return o}function KE(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=it.updateQueue,t===null?(t={lastEffect:null,stores:null},it.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function qE(e,t,r,n){t.value=r,t.getSnapshot=n,YE(t)&&XE(e)}function QE(e,t,r){return r(function(){YE(t)&&XE(e)})}function YE(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!bn(e,r)}catch{return!0}}function XE(e){var t=vo(e,1);t!==null&&yn(t,e,1,-1)}function mb(e){var t=On();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:cu,lastRenderedState:e},t.queue=e,e=e.dispatch=oA.bind(null,it,e),[t.memoizedState,e]}function du(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=it.updateQueue,t===null?(t={lastEffect:null,stores:null},it.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function JE(){return Qr().memoizedState}function rd(e,t,r,n){var o=On();it.flags|=e,o.memoizedState=du(1|t,r,void 0,n===void 0?null:n)}function Ff(e,t,r,n){var o=Qr();n=n===void 0?null:n;var i=void 0;if(wt!==null){var a=wt.memoizedState;if(i=a.destroy,n!==null&&Dv(n,a.deps)){o.memoizedState=du(t,r,i,n);return}}it.flags|=e,o.memoizedState=du(1|t,r,i,n)}function gb(e,t){return rd(8390656,8,e,t)}function $v(e,t){return Ff(2048,8,e,t)}function ZE(e,t){return Ff(4,2,e,t)}function ek(e,t){return Ff(4,4,e,t)}function tk(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 rk(e,t,r){return r=r!=null?r.concat([e]):null,Ff(4,4,tk.bind(null,t,e),r)}function Fv(){}function nk(e,t){var r=Qr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Dv(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function ok(e,t){var r=Qr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Dv(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function ik(e,t,r){return ra&21?(bn(r,t)||(r=cE(),it.lanes|=r,na|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,sr=!0),e.memoizedState=r)}function rA(e,t){var r=ze;ze=r!==0&&4>r?r:4,e(!0);var n=cp.transition;cp.transition={};try{e(!1),t()}finally{ze=r,cp.transition=n}}function ak(){return Qr().memoizedState}function nA(e,t,r){var n=ri(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},sk(e))lk(t,r);else if(r=VE(e,t,r,n),r!==null){var o=Zt();yn(r,e,n,o),uk(r,t,n)}}function oA(e,t,r){var n=ri(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(sk(e))lk(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,bn(s,a)){var l=t.interleaved;l===null?(o.next=o,_v(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=VE(e,t,o,n),r!==null&&(o=Zt(),yn(r,e,n,o),uk(r,t,n))}}function sk(e){var t=e.alternate;return e===it||t!==null&&t===it}function lk(e,t){Ml=Gd=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function uk(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,fv(e,r)}}var Kd={readContext:qr,useCallback:It,useContext:It,useEffect:It,useImperativeHandle:It,useInsertionEffect:It,useLayoutEffect:It,useMemo:It,useReducer:It,useRef:It,useState:It,useDebugValue:It,useDeferredValue:It,useTransition:It,useMutableSource:It,useSyncExternalStore:It,useId:It,unstable_isNewReconciler:!1},iA={readContext:qr,useCallback:function(e,t){return On().memoizedState=[e,t===void 0?null:t],e},useContext:qr,useEffect:gb,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,rd(4194308,4,tk.bind(null,t,e),r)},useLayoutEffect:function(e,t){return rd(4194308,4,e,t)},useInsertionEffect:function(e,t){return rd(4,2,e,t)},useMemo:function(e,t){var r=On();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=On();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=nA.bind(null,it,e),[n.memoizedState,e]},useRef:function(e){var t=On();return e={current:e},t.memoizedState=e},useState:mb,useDebugValue:Fv,useDeferredValue:function(e){return On().memoizedState=e},useTransition:function(){var e=mb(!1),t=e[0];return e=rA.bind(null,e[1]),On().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=it,o=On();if(rt){if(r===void 0)throw Error(U(407));r=r()}else{if(r=t(),Pt===null)throw Error(U(349));ra&30||KE(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,gb(QE.bind(null,n,i,e),[e]),n.flags|=2048,du(9,qE.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=On(),t=Pt.identifierPrefix;if(rt){var r=ao,n=io;r=(n&~(1<<32-vn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=uu++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=tA++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},aA={readContext:qr,useCallback:nk,useContext:qr,useEffect:$v,useImperativeHandle:rk,useInsertionEffect:ZE,useLayoutEffect:ek,useMemo:ok,useReducer:dp,useRef:JE,useState:function(){return dp(cu)},useDebugValue:Fv,useDeferredValue:function(e){var t=Qr();return ik(t,wt.memoizedState,e)},useTransition:function(){var e=dp(cu)[0],t=Qr().memoizedState;return[e,t]},useMutableSource:HE,useSyncExternalStore:GE,useId:ak,unstable_isNewReconciler:!1},sA={readContext:qr,useCallback:nk,useContext:qr,useEffect:$v,useImperativeHandle:rk,useInsertionEffect:ZE,useLayoutEffect:ek,useMemo:ok,useReducer:fp,useRef:JE,useState:function(){return fp(cu)},useDebugValue:Fv,useDeferredValue:function(e){var t=Qr();return wt===null?t.memoizedState=e:ik(t,wt.memoizedState,e)},useTransition:function(){var e=fp(cu)[0],t=Qr().memoizedState;return[e,t]},useMutableSource:HE,useSyncExternalStore:GE,useId:ak,unstable_isNewReconciler:!1};function cn(e,t){if(e&&e.defaultProps){t=at({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Bm(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:at({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Lf={isMounted:function(e){return(e=e._reactInternals)?ua(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Zt(),o=ri(e),i=lo(n,o);i.payload=t,r!=null&&(i.callback=r),t=ei(e,i,o),t!==null&&(yn(t,e,o,n),ed(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Zt(),o=ri(e),i=lo(n,o);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=ei(e,i,o),t!==null&&(yn(t,e,o,n),ed(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Zt(),n=ri(e),o=lo(r,n);o.tag=2,t!=null&&(o.callback=t),t=ei(e,o,n),t!==null&&(yn(t,e,n,r),ed(t,e,n))}};function vb(e,t,r,n,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,a):t.prototype&&t.prototype.isPureReactComponent?!nu(r,n)||!nu(o,i):!0}function ck(e,t,r){var n=!1,o=ai,i=t.contextType;return typeof i=="object"&&i!==null?i=qr(i):(o=ur(t)?ea:Kt.current,n=t.contextTypes,i=(n=n!=null)?gs(e,o):ai),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Lf,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function yb(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Lf.enqueueReplaceState(t,t.state,null)}function Im(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},Tv(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=qr(i):(i=ur(t)?ea:Kt.current,o.context=gs(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Bm(e,t,i,r),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&&Lf.enqueueReplaceState(o,o.state,null),Wd(e,r,o,n),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function xs(e,t){try{var r="",n=t;do r+=F2(n),n=n.return;while(n);var o=r}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function hp(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function jm(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var lA=typeof WeakMap=="function"?WeakMap:Map;function dk(e,t,r){r=lo(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Qd||(Qd=!0,Ym=n),jm(e,t)},r}function fk(e,t,r){r=lo(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){jm(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){jm(e,t),typeof n!="function"&&(ti===null?ti=new Set([this]):ti.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function bb(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new lA;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=SA.bind(null,e,t,r),t.then(e,e))}function xb(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 wb(e,t,r,n,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=lo(-1,1),t.tag=2,ei(r,t,1))),r.lanes|=1),e)}var uA=So.ReactCurrentOwner,sr=!1;function Yt(e,t,r,n){t.child=e===null?NE(t,null,r,n):ys(t,e.child,r,n)}function Sb(e,t,r,n,o){r=r.render;var i=t.ref;return Ja(t,o),n=Ov(e,t,r,n,i,o),r=Mv(),e!==null&&!sr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,yo(e,t,o)):(rt&&r&&xv(t),t.flags|=1,Yt(e,t,n,o),t.child)}function Eb(e,t,r,n,o){if(e===null){var i=r.type;return typeof i=="function"&&!Uv(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,hk(e,t,i,n,o)):(e=ad(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:nu,r(a,n)&&e.ref===t.ref)return yo(e,t,o)}return t.flags|=1,e=ni(i,n),e.ref=t.ref,e.return=t,t.child=e}function hk(e,t,r,n,o){if(e!==null){var i=e.memoizedProps;if(nu(i,n)&&e.ref===t.ref)if(sr=!1,t.pendingProps=n=i,(e.lanes&o)!==0)e.flags&131072&&(sr=!0);else return t.lanes=e.lanes,yo(e,t,o)}return Nm(e,t,r,n,o)}function pk(e,t,r){var n=t.pendingProps,o=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ue(La,br),br|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ue(La,br),br|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,Ue(La,br),br|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,Ue(La,br),br|=n;return Yt(e,t,o,r),t.child}function mk(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Nm(e,t,r,n,o){var i=ur(r)?ea:Kt.current;return i=gs(t,i),Ja(t,o),r=Ov(e,t,r,n,i,o),n=Mv(),e!==null&&!sr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,yo(e,t,o)):(rt&&n&&xv(t),t.flags|=1,Yt(e,t,r,o),t.child)}function kb(e,t,r,n,o){if(ur(r)){var i=!0;Id(t)}else i=!1;if(Ja(t,o),t.stateNode===null)nd(e,t),ck(t,r,n),Im(t,r,n,o),n=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=r.contextType;typeof u=="object"&&u!==null?u=qr(u):(u=ur(r)?ea:Kt.current,u=gs(t,u));var c=r.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||l!==u)&&yb(t,a,n,u),Bo=!1;var f=t.memoizedState;a.state=f,Wd(t,n,a,o),l=t.memoizedState,s!==n||f!==l||lr.current||Bo?(typeof c=="function"&&(Bm(t,r,c,n),l=t.memoizedState),(s=Bo||vb(t,r,s,n,f,l,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=u,n=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,UE(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:cn(t.type,s),a.props=u,d=t.pendingProps,f=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=qr(l):(l=ur(r)?ea:Kt.current,l=gs(t,l));var h=r.getDerivedStateFromProps;(c=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==l)&&yb(t,a,n,l),Bo=!1,f=t.memoizedState,a.state=f,Wd(t,n,a,o);var v=t.memoizedState;s!==d||f!==v||lr.current||Bo?(typeof h=="function"&&(Bm(t,r,h,n),v=t.memoizedState),(u=Bo||vb(t,r,u,n,f,v,l)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,v,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,v,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=v),a.props=n,a.state=v,a.context=l,n=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return Vm(e,t,r,n,i,o)}function Vm(e,t,r,n,o,i){mk(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return o&&ub(t,r,!1),yo(e,t,i);n=t.stateNode,uA.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=ys(t,e.child,null,i),t.child=ys(t,null,s,i)):Yt(e,t,s,i),t.memoizedState=n.state,o&&ub(t,r,!0),t.child}function gk(e){var t=e.stateNode;t.pendingContext?lb(e,t.pendingContext,t.pendingContext!==t.context):t.context&&lb(e,t.context,!1),Pv(e,t.containerInfo)}function Cb(e,t,r,n,o){return vs(),Sv(o),t.flags|=256,Yt(e,t,r,n),t.child}var Um={dehydrated:null,treeContext:null,retryLane:0};function Wm(e){return{baseLanes:e,cachePool:null,transitions:null}}function vk(e,t,r){var n=t.pendingProps,o=nt.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Ue(nt,o&1),e===null)return Lm(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):(a=n.children,e=n.fallback,i?(n=t.mode,i=t.child,a={mode:"hidden",children:a},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=If(a,n,0,null),e=Ki(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Wm(r),t.memoizedState=Um,e):Lv(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return cA(e,t,a,n,s,o,r);if(i){i=n.fallback,a=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:n.children};return!(a&1)&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=ni(o,l),n.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=ni(s,i):(i=Ki(i,a,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,a=e.child.memoizedState,a=a===null?Wm(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=Um,n}return i=e.child,e=i.sibling,n=ni(i,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function Lv(e,t){return t=If({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Pc(e,t,r,n){return n!==null&&Sv(n),ys(t,e.child,null,r),e=Lv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function cA(e,t,r,n,o,i,a){if(r)return t.flags&256?(t.flags&=-257,n=hp(Error(U(422))),Pc(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=If({mode:"visible",children:n.children},o,0,null),i=Ki(i,o,a,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,t.mode&1&&ys(t,e.child,null,a),t.child.memoizedState=Wm(a),t.memoizedState=Um,i);if(!(t.mode&1))return Pc(e,t,a,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var s=n.dgst;return n=s,i=Error(U(419)),n=hp(i,n,void 0),Pc(e,t,a,n)}if(s=(a&e.childLanes)!==0,sr||s){if(n=Pt,n!==null){switch(a&-a){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&(n.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,vo(e,o),yn(n,e,o,-1))}return Vv(),n=hp(Error(U(421))),Pc(e,t,a,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=EA.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Sr=Zo(o.nextSibling),Er=t,rt=!0,mn=null,e!==null&&(Vr[Ur++]=io,Vr[Ur++]=ao,Vr[Ur++]=ta,io=e.id,ao=e.overflow,ta=t),t=Lv(t,n.children),t.flags|=4096,t)}function _b(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),zm(e.return,t,r)}function pp(e,t,r,n,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function yk(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(Yt(e,t,n.children,r),n=nt.current,n&2)n=n&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&&_b(e,r,t);else if(e.tag===19)_b(e,r,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}n&=1}if(Ue(nt,n),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&Hd(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),pp(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Hd(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}pp(t,!0,r,null,i);break;case"together":pp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function nd(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function yo(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),na|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,r=ni(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ni(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function dA(e,t,r){switch(t.tag){case 3:gk(t),vs();break;case 5:WE(t);break;case 1:ur(t.type)&&Id(t);break;case 4:Pv(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;Ue(Vd,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Ue(nt,nt.current&1),t.flags|=128,null):r&t.child.childLanes?vk(e,t,r):(Ue(nt,nt.current&1),e=yo(e,t,r),e!==null?e.sibling:null);Ue(nt,nt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return yk(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ue(nt,nt.current),n)break;return null;case 22:case 23:return t.lanes=0,pk(e,t,r)}return yo(e,t,r)}var bk,Hm,xk,wk;bk=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Hm=function(){};xk=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Li(Nn.current);var i=null;switch(r){case"input":o=hm(e,o),n=hm(e,n),i=[];break;case"select":o=at({},o,{value:void 0}),n=at({},n,{value:void 0}),i=[];break;case"textarea":o=gm(e,o),n=gm(e,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=zd)}ym(r,n);var a;r=null;for(u in o)if(!n.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Yl.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in n){var l=n[u];if(s=o!=null?o[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(i||(i=[]),i.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Yl.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&He("scroll",e),i||s===l||(i=[])):(i=i||[]).push(u,l))}r&&(i=i||[]).push("style",r);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};wk=function(e,t,r,n){r!==n&&(t.flags|=4)};function tl(e,t){if(!rt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function jt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function fA(e,t,r){var n=t.pendingProps;switch(wv(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(t),null;case 1:return ur(t.type)&&Bd(),jt(t),null;case 3:return n=t.stateNode,bs(),Ke(lr),Ke(Kt),Av(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(_c(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,mn!==null&&(Zm(mn),mn=null))),Hm(e,t),jt(t),null;case 5:Rv(t);var o=Li(lu.current);if(r=t.type,e!==null&&t.stateNode!=null)xk(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(U(166));return jt(t),null}if(e=Li(Nn.current),_c(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[In]=t,n[au]=i,e=(t.mode&1)!==0,r){case"dialog":He("cancel",n),He("close",n);break;case"iframe":case"object":case"embed":He("load",n);break;case"video":case"audio":for(o=0;o<vl.length;o++)He(vl[o],n);break;case"source":He("error",n);break;case"img":case"image":case"link":He("error",n),He("load",n);break;case"details":He("toggle",n);break;case"input":Fy(n,i),He("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},He("invalid",n);break;case"textarea":zy(n,i),He("invalid",n)}ym(r,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?n.textContent!==s&&(i.suppressHydrationWarning!==!0&&Cc(n.textContent,s,e),o=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Cc(n.textContent,s,e),o=["children",""+s]):Yl.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&He("scroll",n)}switch(r){case"input":vc(n),Ly(n,i,!0);break;case"textarea":vc(n),By(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=zd)}n=o,t.updateQueue=n,n!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=QS(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[In]=t,e[au]=n,bk(e,t,!1,!1),t.stateNode=e;e:{switch(a=bm(r,n),r){case"dialog":He("cancel",e),He("close",e),o=n;break;case"iframe":case"object":case"embed":He("load",e),o=n;break;case"video":case"audio":for(o=0;o<vl.length;o++)He(vl[o],e);o=n;break;case"source":He("error",e),o=n;break;case"img":case"image":case"link":He("error",e),He("load",e),o=n;break;case"details":He("toggle",e),o=n;break;case"input":Fy(e,n),o=hm(e,n),He("invalid",e);break;case"option":o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=at({},n,{value:void 0}),He("invalid",e);break;case"textarea":zy(e,n),o=gm(e,n),He("invalid",e);break;default:o=n}ym(r,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?JS(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&YS(e,l)):i==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Xl(e,l):typeof l=="number"&&Xl(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Yl.hasOwnProperty(i)?l!=null&&i==="onScroll"&&He("scroll",e):l!=null&&av(e,i,l,a))}switch(r){case"input":vc(e),Ly(e,n,!1);break;case"textarea":vc(e),By(e);break;case"option":n.value!=null&&e.setAttribute("value",""+ii(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?qa(e,!!n.multiple,i,!1):n.defaultValue!=null&&qa(e,!!n.multiple,n.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=zd)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return jt(t),null;case 6:if(e&&t.stateNode!=null)wk(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(U(166));if(r=Li(lu.current),Li(Nn.current),_c(t)){if(n=t.stateNode,r=t.memoizedProps,n[In]=t,(i=n.nodeValue!==r)&&(e=Er,e!==null))switch(e.tag){case 3:Cc(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Cc(n.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[In]=t,t.stateNode=n}return jt(t),null;case 13:if(Ke(nt),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(rt&&Sr!==null&&t.mode&1&&!(t.flags&128))IE(),vs(),t.flags|=98560,i=!1;else if(i=_c(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(U(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(U(317));i[In]=t}else vs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jt(t),i=!1}else mn!==null&&(Zm(mn),mn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||nt.current&1?St===0&&(St=3):Vv())),t.updateQueue!==null&&(t.flags|=4),jt(t),null);case 4:return bs(),Hm(e,t),e===null&&ou(t.stateNode.containerInfo),jt(t),null;case 10:return Cv(t.type._context),jt(t),null;case 17:return ur(t.type)&&Bd(),jt(t),null;case 19:if(Ke(nt),i=t.memoizedState,i===null)return jt(t),null;if(n=(t.flags&128)!==0,a=i.rendering,a===null)if(n)tl(i,!1);else{if(St!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Hd(e),a!==null){for(t.flags|=128,tl(i,!1),n=a.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)i=r,e=n,i.flags&=14680066,a=i.alternate,a===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=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ue(nt,nt.current&1|2),t.child}e=e.sibling}i.tail!==null&&pt()>ws&&(t.flags|=128,n=!0,tl(i,!1),t.lanes=4194304)}else{if(!n)if(e=Hd(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),tl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!rt)return jt(t),null}else 2*pt()-i.renderingStartTime>ws&&r!==1073741824&&(t.flags|=128,n=!0,tl(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pt(),t.sibling=null,r=nt.current,Ue(nt,n?r&1|2:r&1),t):(jt(t),null);case 22:case 23:return Nv(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?br&1073741824&&(jt(t),t.subtreeFlags&6&&(t.flags|=8192)):jt(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function hA(e,t){switch(wv(t),t.tag){case 1:return ur(t.type)&&Bd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bs(),Ke(lr),Ke(Kt),Av(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Rv(t),null;case 13:if(Ke(nt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));vs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ke(nt),null;case 4:return bs(),null;case 10:return Cv(t.type._context),null;case 22:case 23:return Nv(),null;case 24:return null;default:return null}}var Rc=!1,Wt=!1,pA=typeof WeakSet=="function"?WeakSet:Set,K=null;function Fa(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){ft(e,t,n)}else r.current=null}function Gm(e,t,r){try{r()}catch(n){ft(e,t,n)}}var Tb=!1;function mA(e,t){if(Rm=$d,e=_E(),bv(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==r||o!==0&&d.nodeType!==3||(s=a+o),d!==i||n!==0&&d.nodeType!==3||(l=a+n),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===r&&++u===o&&(s=a),f===i&&++c===n&&(l=a),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Am={focusedElem:e,selectionRange:r},$d=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var g=v.memoizedProps,x=v.memoizedState,p=t.stateNode,m=p.getSnapshotBeforeUpdate(t.elementType===t.type?g:cn(t.type,g),x);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(E){ft(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return v=Tb,Tb=!1,v}function $l(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Gm(t,r,i)}o=o.next}while(o!==n)}}function zf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Km(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Sk(e){var t=e.alternate;t!==null&&(e.alternate=null,Sk(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[In],delete t[au],delete t[Mm],delete t[XR],delete t[JR])),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 Ek(e){return e.tag===5||e.tag===3||e.tag===4}function Pb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ek(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 qm(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=zd));else if(n!==4&&(e=e.child,e!==null))for(qm(e,t,r),e=e.sibling;e!==null;)qm(e,t,r),e=e.sibling}function Qm(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Qm(e,t,r),e=e.sibling;e!==null;)Qm(e,t,r),e=e.sibling}var Mt=null,hn=!1;function Ao(e,t,r){for(r=r.child;r!==null;)kk(e,t,r),r=r.sibling}function kk(e,t,r){if(jn&&typeof jn.onCommitFiberUnmount=="function")try{jn.onCommitFiberUnmount(Rf,r)}catch{}switch(r.tag){case 5:Wt||Fa(r,t);case 6:var n=Mt,o=hn;Mt=null,Ao(e,t,r),Mt=n,hn=o,Mt!==null&&(hn?(e=Mt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Mt.removeChild(r.stateNode));break;case 18:Mt!==null&&(hn?(e=Mt,r=r.stateNode,e.nodeType===8?sp(e.parentNode,r):e.nodeType===1&&sp(e,r),tu(e)):sp(Mt,r.stateNode));break;case 4:n=Mt,o=hn,Mt=r.stateNode.containerInfo,hn=!0,Ao(e,t,r),Mt=n,hn=o;break;case 0:case 11:case 14:case 15:if(!Wt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Gm(r,t,a),o=o.next}while(o!==n)}Ao(e,t,r);break;case 1:if(!Wt&&(Fa(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){ft(r,t,s)}Ao(e,t,r);break;case 21:Ao(e,t,r);break;case 22:r.mode&1?(Wt=(n=Wt)||r.memoizedState!==null,Ao(e,t,r),Wt=n):Ao(e,t,r);break;default:Ao(e,t,r)}}function Rb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new pA),t.forEach(function(n){var o=kA.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function on(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var o=r[n];try{var i=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:Mt=s.stateNode,hn=!1;break e;case 3:Mt=s.stateNode.containerInfo,hn=!0;break e;case 4:Mt=s.stateNode.containerInfo,hn=!0;break e}s=s.return}if(Mt===null)throw Error(U(160));kk(i,a,o),Mt=null,hn=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){ft(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ck(t,e),t=t.sibling}function Ck(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(on(t,e),Tn(e),n&4){try{$l(3,e,e.return),zf(3,e)}catch(g){ft(e,e.return,g)}try{$l(5,e,e.return)}catch(g){ft(e,e.return,g)}}break;case 1:on(t,e),Tn(e),n&512&&r!==null&&Fa(r,r.return);break;case 5:if(on(t,e),Tn(e),n&512&&r!==null&&Fa(r,r.return),e.flags&32){var o=e.stateNode;try{Xl(o,"")}catch(g){ft(e,e.return,g)}}if(n&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=r!==null?r.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&KS(o,i),bm(s,a);var u=bm(s,i);for(a=0;a<l.length;a+=2){var c=l[a],d=l[a+1];c==="style"?JS(o,d):c==="dangerouslySetInnerHTML"?YS(o,d):c==="children"?Xl(o,d):av(o,c,d,u)}switch(s){case"input":pm(o,i);break;case"textarea":qS(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?qa(o,!!i.multiple,h,!1):f!==!!i.multiple&&(i.defaultValue!=null?qa(o,!!i.multiple,i.defaultValue,!0):qa(o,!!i.multiple,i.multiple?[]:"",!1))}o[au]=i}catch(g){ft(e,e.return,g)}}break;case 6:if(on(t,e),Tn(e),n&4){if(e.stateNode===null)throw Error(U(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){ft(e,e.return,g)}}break;case 3:if(on(t,e),Tn(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{tu(t.containerInfo)}catch(g){ft(e,e.return,g)}break;case 4:on(t,e),Tn(e);break;case 13:on(t,e),Tn(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Iv=pt())),n&4&&Rb(e);break;case 22:if(c=r!==null&&r.memoizedState!==null,e.mode&1?(Wt=(u=Wt)||c,on(t,e),Wt=u):on(t,e),Tn(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(K=e,c=e.child;c!==null;){for(d=K=c;K!==null;){switch(f=K,h=f.child,f.tag){case 0:case 11:case 14:case 15:$l(4,f,f.return);break;case 1:Fa(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){n=f,r=f.return;try{t=n,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(g){ft(n,r,g)}}break;case 5:Fa(f,f.return);break;case 22:if(f.memoizedState!==null){Db(d);continue}}h!==null?(h.return=f,K=h):Db(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"):(s=d.stateNode,l=d.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=XS("display",a))}catch(g){ft(e,e.return,g)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(g){ft(e,e.return,g)}}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:on(t,e),Tn(e),n&4&&Rb(e);break;case 21:break;default:on(t,e),Tn(e)}}function Tn(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Ek(r)){var n=r;break e}r=r.return}throw Error(U(160))}switch(n.tag){case 5:var o=n.stateNode;n.flags&32&&(Xl(o,""),n.flags&=-33);var i=Pb(e);Qm(e,i,o);break;case 3:case 4:var a=n.stateNode.containerInfo,s=Pb(e);qm(e,s,a);break;default:throw Error(U(161))}}catch(l){ft(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gA(e,t,r){K=e,_k(e)}function _k(e,t,r){for(var n=(e.mode&1)!==0;K!==null;){var o=K,i=o.child;if(o.tag===22&&n){var a=o.memoizedState!==null||Rc;if(!a){var s=o.alternate,l=s!==null&&s.memoizedState!==null||Wt;s=Rc;var u=Wt;if(Rc=a,(Wt=l)&&!u)for(K=o;K!==null;)a=K,l=a.child,a.tag===22&&a.memoizedState!==null?Ob(o):l!==null?(l.return=a,K=l):Ob(o);for(;i!==null;)K=i,_k(i),i=i.sibling;K=o,Rc=s,Wt=u}Ab(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,K=i):Ab(e)}}function Ab(e){for(;K!==null;){var t=K;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Wt||zf(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Wt)if(r===null)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:cn(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&pb(t,i,n);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}pb(t,a,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.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&&tu(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(U(163))}Wt||t.flags&512&&Km(t)}catch(f){ft(t,t.return,f)}}if(t===e){K=null;break}if(r=t.sibling,r!==null){r.return=t.return,K=r;break}K=t.return}}function Db(e){for(;K!==null;){var t=K;if(t===e){K=null;break}var r=t.sibling;if(r!==null){r.return=t.return,K=r;break}K=t.return}}function Ob(e){for(;K!==null;){var t=K;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{zf(4,t)}catch(l){ft(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var o=t.return;try{n.componentDidMount()}catch(l){ft(t,o,l)}}var i=t.return;try{Km(t)}catch(l){ft(t,i,l)}break;case 5:var a=t.return;try{Km(t)}catch(l){ft(t,a,l)}}}catch(l){ft(t,t.return,l)}if(t===e){K=null;break}var s=t.sibling;if(s!==null){s.return=t.return,K=s;break}K=t.return}}var vA=Math.ceil,qd=So.ReactCurrentDispatcher,zv=So.ReactCurrentOwner,Gr=So.ReactCurrentBatchConfig,_e=0,Pt=null,yt=null,Lt=0,br=0,La=di(0),St=0,fu=null,na=0,Bf=0,Bv=0,Fl=null,ir=null,Iv=0,ws=1/0,eo=null,Qd=!1,Ym=null,ti=null,Ac=!1,qo=null,Yd=0,Ll=0,Xm=null,od=-1,id=0;function Zt(){return _e&6?pt():od!==-1?od:od=pt()}function ri(e){return e.mode&1?_e&2&&Lt!==0?Lt&-Lt:eA.transition!==null?(id===0&&(id=cE()),id):(e=ze,e!==0||(e=window.event,e=e===void 0?16:vE(e.type)),e):1}function yn(e,t,r,n){if(50<Ll)throw Ll=0,Xm=null,Error(U(185));zu(e,r,n),(!(_e&2)||e!==Pt)&&(e===Pt&&(!(_e&2)&&(Bf|=r),St===4&&jo(e,Lt)),cr(e,n),r===1&&_e===0&&!(t.mode&1)&&(ws=pt()+500,$f&&fi()))}function cr(e,t){var r=e.callbackNode;eR(e,t);var n=Md(e,e===Pt?Lt:0);if(n===0)r!==null&&Ny(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Ny(r),t===1)e.tag===0?ZR(Mb.bind(null,e)):LE(Mb.bind(null,e)),QR(function(){!(_e&6)&&fi()}),r=null;else{switch(dE(n)){case 1:r=dv;break;case 4:r=lE;break;case 16:r=Od;break;case 536870912:r=uE;break;default:r=Od}r=$k(r,Tk.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Tk(e,t){if(od=-1,id=0,_e&6)throw Error(U(327));var r=e.callbackNode;if(Za()&&e.callbackNode!==r)return null;var n=Md(e,e===Pt?Lt:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Xd(e,n);else{t=n;var o=_e;_e|=2;var i=Rk();(Pt!==e||Lt!==t)&&(eo=null,ws=pt()+500,Gi(e,t));do try{xA();break}catch(s){Pk(e,s)}while(!0);kv(),qd.current=i,_e=o,yt!==null?t=0:(Pt=null,Lt=0,t=St)}if(t!==0){if(t===2&&(o=km(e),o!==0&&(n=o,t=Jm(e,o))),t===1)throw r=fu,Gi(e,0),jo(e,n),cr(e,pt()),r;if(t===6)jo(e,n);else{if(o=e.current.alternate,!(n&30)&&!yA(o)&&(t=Xd(e,n),t===2&&(i=km(e),i!==0&&(n=i,t=Jm(e,i))),t===1))throw r=fu,Gi(e,0),jo(e,n),cr(e,pt()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(U(345));case 2:Ti(e,ir,eo);break;case 3:if(jo(e,n),(n&130023424)===n&&(t=Iv+500-pt(),10<t)){if(Md(e,0)!==0)break;if(o=e.suspendedLanes,(o&n)!==n){Zt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Om(Ti.bind(null,e,ir,eo),t);break}Ti(e,ir,eo);break;case 4:if(jo(e,n),(n&4194240)===n)break;for(t=e.eventTimes,o=-1;0<n;){var a=31-vn(n);i=1<<a,a=t[a],a>o&&(o=a),n&=~i}if(n=o,n=pt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*vA(n/1960))-n,10<n){e.timeoutHandle=Om(Ti.bind(null,e,ir,eo),n);break}Ti(e,ir,eo);break;case 5:Ti(e,ir,eo);break;default:throw Error(U(329))}}}return cr(e,pt()),e.callbackNode===r?Tk.bind(null,e):null}function Jm(e,t){var r=Fl;return e.current.memoizedState.isDehydrated&&(Gi(e,t).flags|=256),e=Xd(e,t),e!==2&&(t=ir,ir=r,t!==null&&Zm(t)),e}function Zm(e){ir===null?ir=e:ir.push.apply(ir,e)}function yA(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var o=r[n],i=o.getSnapshot;o=o.value;try{if(!bn(i(),o))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 jo(e,t){for(t&=~Bv,t&=~Bf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-vn(t),n=1<<r;e[r]=-1,t&=~n}}function Mb(e){if(_e&6)throw Error(U(327));Za();var t=Md(e,0);if(!(t&1))return cr(e,pt()),null;var r=Xd(e,t);if(e.tag!==0&&r===2){var n=km(e);n!==0&&(t=n,r=Jm(e,n))}if(r===1)throw r=fu,Gi(e,0),jo(e,t),cr(e,pt()),r;if(r===6)throw Error(U(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ti(e,ir,eo),cr(e,pt()),null}function jv(e,t){var r=_e;_e|=1;try{return e(t)}finally{_e=r,_e===0&&(ws=pt()+500,$f&&fi())}}function oa(e){qo!==null&&qo.tag===0&&!(_e&6)&&Za();var t=_e;_e|=1;var r=Gr.transition,n=ze;try{if(Gr.transition=null,ze=1,e)return e()}finally{ze=n,Gr.transition=r,_e=t,!(_e&6)&&fi()}}function Nv(){br=La.current,Ke(La)}function Gi(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,qR(r)),yt!==null)for(r=yt.return;r!==null;){var n=r;switch(wv(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Bd();break;case 3:bs(),Ke(lr),Ke(Kt),Av();break;case 5:Rv(n);break;case 4:bs();break;case 13:Ke(nt);break;case 19:Ke(nt);break;case 10:Cv(n.type._context);break;case 22:case 23:Nv()}r=r.return}if(Pt=e,yt=e=ni(e.current,null),Lt=br=t,St=0,fu=null,Bv=Bf=na=0,ir=Fl=null,Fi!==null){for(t=0;t<Fi.length;t++)if(r=Fi[t],n=r.interleaved,n!==null){r.interleaved=null;var o=n.next,i=r.pending;if(i!==null){var a=i.next;i.next=o,n.next=a}r.pending=n}Fi=null}return e}function Pk(e,t){do{var r=yt;try{if(kv(),td.current=Kd,Gd){for(var n=it.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}Gd=!1}if(ra=0,Tt=wt=it=null,Ml=!1,uu=0,zv.current=null,r===null||r.return===null){St=1,fu=t,yt=null;break}e:{var i=e,a=r.return,s=r,l=t;if(t=Lt,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=s,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 h=xb(a);if(h!==null){h.flags&=-257,wb(h,a,s,i,t),h.mode&1&&bb(i,u,t),t=h,l=u;var v=t.updateQueue;if(v===null){var g=new Set;g.add(l),t.updateQueue=g}else v.add(l);break e}else{if(!(t&1)){bb(i,u,t),Vv();break e}l=Error(U(426))}}else if(rt&&s.mode&1){var x=xb(a);if(x!==null){!(x.flags&65536)&&(x.flags|=256),wb(x,a,s,i,t),Sv(xs(l,s));break e}}i=l=xs(l,s),St!==4&&(St=2),Fl===null?Fl=[i]:Fl.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var p=dk(i,l,t);hb(i,p);break e;case 1:s=l;var m=i.type,b=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(ti===null||!ti.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t;var E=fk(i,s,t);hb(i,E);break e}}i=i.return}while(i!==null)}Dk(r)}catch(C){t=C,yt===r&&r!==null&&(yt=r=r.return);continue}break}while(!0)}function Rk(){var e=qd.current;return qd.current=Kd,e===null?Kd:e}function Vv(){(St===0||St===3||St===2)&&(St=4),Pt===null||!(na&268435455)&&!(Bf&268435455)||jo(Pt,Lt)}function Xd(e,t){var r=_e;_e|=2;var n=Rk();(Pt!==e||Lt!==t)&&(eo=null,Gi(e,t));do try{bA();break}catch(o){Pk(e,o)}while(!0);if(kv(),_e=r,qd.current=n,yt!==null)throw Error(U(261));return Pt=null,Lt=0,St}function bA(){for(;yt!==null;)Ak(yt)}function xA(){for(;yt!==null&&!H2();)Ak(yt)}function Ak(e){var t=Mk(e.alternate,e,br);e.memoizedProps=e.pendingProps,t===null?Dk(e):yt=t,zv.current=null}function Dk(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=hA(r,t),r!==null){r.flags&=32767,yt=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{St=6,yt=null;return}}else if(r=fA(r,t,br),r!==null){yt=r;return}if(t=t.sibling,t!==null){yt=t;return}yt=t=e}while(t!==null);St===0&&(St=5)}function Ti(e,t,r){var n=ze,o=Gr.transition;try{Gr.transition=null,ze=1,wA(e,t,r,n)}finally{Gr.transition=o,ze=n}return null}function wA(e,t,r,n){do Za();while(qo!==null);if(_e&6)throw Error(U(327));r=e.finishedWork;var o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(U(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(tR(e,i),e===Pt&&(yt=Pt=null,Lt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Ac||(Ac=!0,$k(Od,function(){return Za(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=Gr.transition,Gr.transition=null;var a=ze;ze=1;var s=_e;_e|=4,zv.current=null,mA(e,r),Ck(r,e),NR(Am),$d=!!Rm,Am=Rm=null,e.current=r,gA(r),G2(),_e=s,ze=a,Gr.transition=i}else e.current=r;if(Ac&&(Ac=!1,qo=e,Yd=o),i=e.pendingLanes,i===0&&(ti=null),Q2(r.stateNode),cr(e,pt()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(Qd)throw Qd=!1,e=Ym,Ym=null,e;return Yd&1&&e.tag!==0&&Za(),i=e.pendingLanes,i&1?e===Xm?Ll++:(Ll=0,Xm=e):Ll=0,fi(),null}function Za(){if(qo!==null){var e=dE(Yd),t=Gr.transition,r=ze;try{if(Gr.transition=null,ze=16>e?16:e,qo===null)var n=!1;else{if(e=qo,qo=null,Yd=0,_e&6)throw Error(U(331));var o=_e;for(_e|=4,K=e.current;K!==null;){var i=K,a=i.child;if(K.flags&16){var s=i.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(K=u;K!==null;){var c=K;switch(c.tag){case 0:case 11:case 15:$l(8,c,i)}var d=c.child;if(d!==null)d.return=c,K=d;else for(;K!==null;){c=K;var f=c.sibling,h=c.return;if(Sk(c),c===u){K=null;break}if(f!==null){f.return=h,K=f;break}K=h}}}var v=i.alternate;if(v!==null){var g=v.child;if(g!==null){v.child=null;do{var x=g.sibling;g.sibling=null,g=x}while(g!==null)}}K=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,K=a;else e:for(;K!==null;){if(i=K,i.flags&2048)switch(i.tag){case 0:case 11:case 15:$l(9,i,i.return)}var p=i.sibling;if(p!==null){p.return=i.return,K=p;break e}K=i.return}}var m=e.current;for(K=m;K!==null;){a=K;var b=a.child;if(a.subtreeFlags&2064&&b!==null)b.return=a,K=b;else e:for(a=m;K!==null;){if(s=K,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:zf(9,s)}}catch(C){ft(s,s.return,C)}if(s===a){K=null;break e}var E=s.sibling;if(E!==null){E.return=s.return,K=E;break e}K=s.return}}if(_e=o,fi(),jn&&typeof jn.onPostCommitFiberRoot=="function")try{jn.onPostCommitFiberRoot(Rf,e)}catch{}n=!0}return n}finally{ze=r,Gr.transition=t}}return!1}function $b(e,t,r){t=xs(r,t),t=dk(e,t,1),e=ei(e,t,1),t=Zt(),e!==null&&(zu(e,1,t),cr(e,t))}function ft(e,t,r){if(e.tag===3)$b(e,e,r);else for(;t!==null;){if(t.tag===3){$b(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ti===null||!ti.has(n))){e=xs(r,e),e=fk(t,e,1),t=ei(t,e,1),e=Zt(),t!==null&&(zu(t,1,e),cr(t,e));break}}t=t.return}}function SA(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Zt(),e.pingedLanes|=e.suspendedLanes&r,Pt===e&&(Lt&r)===r&&(St===4||St===3&&(Lt&130023424)===Lt&&500>pt()-Iv?Gi(e,0):Bv|=r),cr(e,t)}function Ok(e,t){t===0&&(e.mode&1?(t=xc,xc<<=1,!(xc&130023424)&&(xc=4194304)):t=1);var r=Zt();e=vo(e,t),e!==null&&(zu(e,t,r),cr(e,r))}function EA(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Ok(e,r)}function kA(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(U(314))}n!==null&&n.delete(t),Ok(e,r)}var Mk;Mk=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||lr.current)sr=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return sr=!1,dA(e,t,r);sr=!!(e.flags&131072)}else sr=!1,rt&&t.flags&1048576&&zE(t,Nd,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;nd(e,t),e=t.pendingProps;var o=gs(t,Kt.current);Ja(t,r),o=Ov(null,t,n,e,o,r);var i=Mv();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,ur(n)?(i=!0,Id(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Tv(t),o.updater=Lf,t.stateNode=o,o._reactInternals=t,Im(t,n,e,r),t=Vm(null,t,n,!0,i,r)):(t.tag=0,rt&&i&&xv(t),Yt(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(nd(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=_A(n),e=cn(n,e),o){case 0:t=Nm(null,t,n,e,r);break e;case 1:t=kb(null,t,n,e,r);break e;case 11:t=Sb(null,t,n,e,r);break e;case 14:t=Eb(null,t,n,cn(n.type,e),r);break e}throw Error(U(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:cn(n,o),Nm(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:cn(n,o),kb(e,t,n,o,r);case 3:e:{if(gk(t),e===null)throw Error(U(387));n=t.pendingProps,i=t.memoizedState,o=i.element,UE(e,t),Wd(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=xs(Error(U(423)),t),t=Cb(e,t,n,r,o);break e}else if(n!==o){o=xs(Error(U(424)),t),t=Cb(e,t,n,r,o);break e}else for(Sr=Zo(t.stateNode.containerInfo.firstChild),Er=t,rt=!0,mn=null,r=NE(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(vs(),n===o){t=yo(e,t,r);break e}Yt(e,t,n,r)}t=t.child}return t;case 5:return WE(t),e===null&&Lm(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Dm(n,o)?a=null:i!==null&&Dm(n,i)&&(t.flags|=32),mk(e,t),Yt(e,t,a,r),t.child;case 6:return e===null&&Lm(t),null;case 13:return vk(e,t,r);case 4:return Pv(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ys(t,null,n,r):Yt(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:cn(n,o),Sb(e,t,n,o,r);case 7:return Yt(e,t,t.pendingProps,r),t.child;case 8:return Yt(e,t,t.pendingProps.children,r),t.child;case 12:return Yt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Ue(Vd,n._currentValue),n._currentValue=a,i!==null)if(bn(i.value,a)){if(i.children===o.children&&!lr.current){t=yo(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=lo(-1,r&-r),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|=r,l=i.alternate,l!==null&&(l.lanes|=r),zm(i.return,r,t),s.lanes|=r;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(U(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),zm(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Yt(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Ja(t,r),o=qr(o),n=n(o),t.flags|=1,Yt(e,t,n,r),t.child;case 14:return n=t.type,o=cn(n,t.pendingProps),o=cn(n.type,o),Eb(e,t,n,o,r);case 15:return hk(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:cn(n,o),nd(e,t),t.tag=1,ur(n)?(e=!0,Id(t)):e=!1,Ja(t,r),ck(t,n,o),Im(t,n,o,r),Vm(null,t,n,!0,e,r);case 19:return yk(e,t,r);case 22:return pk(e,t,r)}throw Error(U(156,t.tag))};function $k(e,t){return sE(e,t)}function CA(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wr(e,t,r,n){return new CA(e,t,r,n)}function Uv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _A(e){if(typeof e=="function")return Uv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===lv)return 11;if(e===uv)return 14}return 2}function ni(e,t){var r=e.alternate;return r===null?(r=Wr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function ad(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")Uv(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case _a:return Ki(r.children,o,i,t);case sv:a=8,o|=8;break;case um:return e=Wr(12,r,t,o|2),e.elementType=um,e.lanes=i,e;case cm:return e=Wr(13,r,t,o),e.elementType=cm,e.lanes=i,e;case dm:return e=Wr(19,r,t,o),e.elementType=dm,e.lanes=i,e;case WS:return If(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case VS:a=10;break e;case US:a=9;break e;case lv:a=11;break e;case uv:a=14;break e;case zo:a=16,n=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=Wr(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Ki(e,t,r,n){return e=Wr(7,e,n,t),e.lanes=r,e}function If(e,t,r,n){return e=Wr(22,e,n,t),e.elementType=WS,e.lanes=r,e.stateNode={isHidden:!1},e}function mp(e,t,r){return e=Wr(6,e,null,t),e.lanes=r,e}function gp(e,t,r){return t=Wr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function TA(e,t,r,n,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=Yh(0),this.expirationTimes=Yh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yh(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Wv(e,t,r,n,o,i,a,s,l){return e=new TA(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Wr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Tv(i),e}function PA(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ca,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Fk(e){if(!e)return ai;e=e._reactInternals;e:{if(ua(e)!==e||e.tag!==1)throw Error(U(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ur(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(U(171))}if(e.tag===1){var r=e.type;if(ur(r))return FE(e,r,t)}return t}function Lk(e,t,r,n,o,i,a,s,l){return e=Wv(r,n,!0,e,o,i,a,s,l),e.context=Fk(null),r=e.current,n=Zt(),o=ri(r),i=lo(n,o),i.callback=t??null,ei(r,i,o),e.current.lanes=o,zu(e,o,n),cr(e,n),e}function jf(e,t,r,n){var o=t.current,i=Zt(),a=ri(o);return r=Fk(r),t.context===null?t.context=r:t.pendingContext=r,t=lo(i,a),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=ei(o,t,a),e!==null&&(yn(e,o,a,i),ed(e,o,a)),a}function Jd(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 Fb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Hv(e,t){Fb(e,t),(e=e.alternate)&&Fb(e,t)}function RA(){return null}var zk=typeof reportError=="function"?reportError:function(e){console.error(e)};function Gv(e){this._internalRoot=e}Nf.prototype.render=Gv.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));jf(e,t,null,null)};Nf.prototype.unmount=Gv.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;oa(function(){jf(null,e,null,null)}),t[go]=null}};function Nf(e){this._internalRoot=e}Nf.prototype.unstable_scheduleHydration=function(e){if(e){var t=pE();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Io.length&&t!==0&&t<Io[r].priority;r++);Io.splice(r,0,e),r===0&&gE(e)}};function Kv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Vf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Lb(){}function AA(e,t,r,n,o){if(o){if(typeof n=="function"){var i=n;n=function(){var u=Jd(a);i.call(u)}}var a=Lk(t,n,e,0,null,!1,!1,"",Lb);return e._reactRootContainer=a,e[go]=a.current,ou(e.nodeType===8?e.parentNode:e),oa(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof n=="function"){var s=n;n=function(){var u=Jd(l);s.call(u)}}var l=Wv(e,0,!1,null,null,!1,!1,"",Lb);return e._reactRootContainer=l,e[go]=l.current,ou(e.nodeType===8?e.parentNode:e),oa(function(){jf(t,l,r,n)}),l}function Uf(e,t,r,n,o){var i=r._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var s=o;o=function(){var l=Jd(a);s.call(l)}}jf(t,a,e,o)}else a=AA(r,t,e,o,n);return Jd(a)}fE=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=gl(t.pendingLanes);r!==0&&(fv(t,r|1),cr(t,pt()),!(_e&6)&&(ws=pt()+500,fi()))}break;case 13:oa(function(){var n=vo(e,1);if(n!==null){var o=Zt();yn(n,e,1,o)}}),Hv(e,1)}};hv=function(e){if(e.tag===13){var t=vo(e,134217728);if(t!==null){var r=Zt();yn(t,e,134217728,r)}Hv(e,134217728)}};hE=function(e){if(e.tag===13){var t=ri(e),r=vo(e,t);if(r!==null){var n=Zt();yn(r,e,t,n)}Hv(e,t)}};pE=function(){return ze};mE=function(e,t){var r=ze;try{return ze=e,t()}finally{ze=r}};wm=function(e,t,r){switch(t){case"input":if(pm(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=Mf(n);if(!o)throw Error(U(90));GS(n),pm(n,o)}}}break;case"textarea":qS(e,r);break;case"select":t=r.value,t!=null&&qa(e,!!r.multiple,t,!1)}};tE=jv;rE=oa;var DA={usingClientEntryPoint:!1,Events:[Iu,Aa,Mf,ZS,eE,jv]},rl={findFiberByHostInstance:$i,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},OA={bundleType:rl.bundleType,version:rl.version,rendererPackageName:rl.rendererPackageName,rendererConfig:rl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:So.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=iE(e),e===null?null:e.stateNode},findFiberByHostInstance:rl.findFiberByHostInstance||RA,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dc.isDisabled&&Dc.supportsFiber)try{Rf=Dc.inject(OA),jn=Dc}catch{}}Dr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=DA;Dr.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Kv(t))throw Error(U(200));return PA(e,t,null,r)};Dr.createRoot=function(e,t){if(!Kv(e))throw Error(U(299));var r=!1,n="",o=zk;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Wv(e,1,!1,null,null,r,!1,n,o),e[go]=t.current,ou(e.nodeType===8?e.parentNode:e),new Gv(t)};Dr.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(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=iE(t),e=e===null?null:e.stateNode,e};Dr.flushSync=function(e){return oa(e)};Dr.hydrate=function(e,t,r){if(!Vf(t))throw Error(U(200));return Uf(null,e,t,!0,r)};Dr.hydrateRoot=function(e,t,r){if(!Kv(e))throw Error(U(405));var n=r!=null&&r.hydratedSources||null,o=!1,i="",a=zk;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=Lk(t,null,e,1,r??null,o,!1,i,a),e[go]=t.current,ou(e),n)for(e=0;e<n.length;e++)r=n[e],o=r._getVersion,o=o(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Nf(t)};Dr.render=function(e,t,r){if(!Vf(t))throw Error(U(200));return Uf(null,e,t,!1,r)};Dr.unmountComponentAtNode=function(e){if(!Vf(e))throw Error(U(40));return e._reactRootContainer?(oa(function(){Uf(null,null,e,!1,function(){e._reactRootContainer=null,e[go]=null})}),!0):!1};Dr.unstable_batchedUpdates=jv;Dr.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Vf(r))throw Error(U(200));if(e==null||e._reactInternals===void 0)throw Error(U(38));return Uf(e,t,r,!1,n)};Dr.version="18.3.1-next-f1338f8080-20240426";function Bk(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Bk)}catch(e){console.error(e)}}Bk(),BS.exports=Dr;var Nu=BS.exports;const MA=Pf(Nu),$A=PS({__proto__:null,default:MA},[Nu]);var Ik,zb=Nu;Ik=zb.createRoot,zb.hydrateRoot;var FA=!1;function LA(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function zA(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var BA=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!FA:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(zA(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=LA(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Nt="-ms-",Zd="-moz-",Re="-webkit-",jk="comm",qv="rule",Qv="decl",IA="@import",Nk="@keyframes",jA="@layer",NA=Math.abs,Wf=String.fromCharCode,VA=Object.assign;function UA(e,t){return Ft(e,0)^45?(((t<<2^Ft(e,0))<<2^Ft(e,1))<<2^Ft(e,2))<<2^Ft(e,3):0}function Vk(e){return e.trim()}function WA(e,t){return(e=t.exec(e))?e[0]:e}function Ae(e,t,r){return e.replace(t,r)}function eg(e,t){return e.indexOf(t)}function Ft(e,t){return e.charCodeAt(t)|0}function hu(e,t,r){return e.slice(t,r)}function zn(e){return e.length}function Yv(e){return e.length}function Oc(e,t){return t.push(e),e}function HA(e,t){return e.map(t).join("")}var Hf=1,Ss=1,Uk=0,mr=0,vt=0,Bs="";function Gf(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Hf,column:Ss,length:a,return:""}}function nl(e,t){return VA(Gf("",null,null,"",null,null,0),e,{length:-e.length},t)}function GA(){return vt}function KA(){return vt=mr>0?Ft(Bs,--mr):0,Ss--,vt===10&&(Ss=1,Hf--),vt}function kr(){return vt=mr<Uk?Ft(Bs,mr++):0,Ss++,vt===10&&(Ss=1,Hf++),vt}function Vn(){return Ft(Bs,mr)}function sd(){return mr}function Vu(e,t){return hu(Bs,e,t)}function pu(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Wk(e){return Hf=Ss=1,Uk=zn(Bs=e),mr=0,[]}function Hk(e){return Bs="",e}function ld(e){return Vk(Vu(mr-1,tg(e===91?e+2:e===40?e+1:e)))}function qA(e){for(;(vt=Vn())&&vt<33;)kr();return pu(e)>2||pu(vt)>3?"":" "}function QA(e,t){for(;--t&&kr()&&!(vt<48||vt>102||vt>57&&vt<65||vt>70&&vt<97););return Vu(e,sd()+(t<6&&Vn()==32&&kr()==32))}function tg(e){for(;kr();)switch(vt){case e:return mr;case 34:case 39:e!==34&&e!==39&&tg(vt);break;case 40:e===41&&tg(e);break;case 92:kr();break}return mr}function YA(e,t){for(;kr()&&e+vt!==57;)if(e+vt===84&&Vn()===47)break;return"/*"+Vu(t,mr-1)+"*"+Wf(e===47?e:kr())}function XA(e){for(;!pu(Vn());)kr();return Vu(e,mr)}function JA(e){return Hk(ud("",null,null,null,[""],e=Wk(e),0,[0],e))}function ud(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,h=0,v=0,g=1,x=1,p=1,m=0,b="",E=o,C=i,S=n,P=b;x;)switch(v=m,m=kr()){case 40:if(v!=108&&Ft(P,d-1)==58){eg(P+=Ae(ld(m),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:P+=ld(m);break;case 9:case 10:case 13:case 32:P+=qA(v);break;case 92:P+=QA(sd()-1,7);continue;case 47:switch(Vn()){case 42:case 47:Oc(ZA(YA(kr(),sd()),t,r),l);break;default:P+="/"}break;case 123*g:s[u++]=zn(P)*p;case 125*g:case 59:case 0:switch(m){case 0:case 125:x=0;case 59+c:p==-1&&(P=Ae(P,/\f/g,"")),h>0&&zn(P)-d&&Oc(h>32?Ib(P+";",n,r,d-1):Ib(Ae(P," ","")+";",n,r,d-2),l);break;case 59:P+=";";default:if(Oc(S=Bb(P,t,r,u,c,o,s,b,E=[],C=[],d),i),m===123)if(c===0)ud(P,t,S,S,E,i,d,s,C);else switch(f===99&&Ft(P,3)===110?100:f){case 100:case 108:case 109:case 115:ud(e,S,S,n&&Oc(Bb(e,S,S,0,0,o,s,b,o,E=[],d),C),o,C,d,s,n?E:C);break;default:ud(P,S,S,S,[""],C,0,s,C)}}u=c=h=0,g=p=1,b=P="",d=a;break;case 58:d=1+zn(P),h=v;default:if(g<1){if(m==123)--g;else if(m==125&&g++==0&&KA()==125)continue}switch(P+=Wf(m),m*g){case 38:p=c>0?1:(P+="\f",-1);break;case 44:s[u++]=(zn(P)-1)*p,p=1;break;case 64:Vn()===45&&(P+=ld(kr())),f=Vn(),c=d=zn(b=P+=XA(sd())),m++;break;case 45:v===45&&zn(P)==2&&(g=0)}}return i}function Bb(e,t,r,n,o,i,a,s,l,u,c){for(var d=o-1,f=o===0?i:[""],h=Yv(f),v=0,g=0,x=0;v<n;++v)for(var p=0,m=hu(e,d+1,d=NA(g=a[v])),b=e;p<h;++p)(b=Vk(g>0?f[p]+" "+m:Ae(m,/&\f/g,f[p])))&&(l[x++]=b);return Gf(e,t,r,o===0?qv:s,l,u,c)}function ZA(e,t,r){return Gf(e,t,r,jk,Wf(GA()),hu(e,2,-2),0)}function Ib(e,t,r,n){return Gf(e,t,r,Qv,hu(e,0,n),hu(e,n+1,-1),n)}function es(e,t){for(var r="",n=Yv(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function eD(e,t,r,n){switch(e.type){case jA:if(e.children.length)break;case IA:case Qv:return e.return=e.return||e.value;case jk:return"";case Nk:return e.return=e.value+"{"+es(e.children,n)+"}";case qv:e.value=e.props.join(",")}return zn(r=es(e.children,n))?e.return=e.value+"{"+r+"}":""}function tD(e){var t=Yv(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function rD(e){return function(t){t.root||(t=t.return)&&e(t)}}var jb=function(t){var r=new WeakMap;return function(n){if(r.has(n))return r.get(n);var o=t(n);return r.set(n,o),o}};function Gk(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var nD=function(t,r,n){for(var o=0,i=0;o=i,i=Vn(),o===38&&i===12&&(r[n]=1),!pu(i);)kr();return Vu(t,mr)},oD=function(t,r){var n=-1,o=44;do switch(pu(o)){case 0:o===38&&Vn()===12&&(r[n]=1),t[n]+=nD(mr-1,r,n);break;case 2:t[n]+=ld(o);break;case 4:if(o===44){t[++n]=Vn()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Wf(o)}while(o=kr());return t},iD=function(t,r){return Hk(oD(Wk(t),r))},Nb=new WeakMap,aD=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Nb.get(n))&&!o){Nb.set(t,!0);for(var i=[],a=iD(r,i),s=n.props,l=0,u=0;l<a.length;l++)for(var c=0;c<s.length;c++,u++)t.props[u]=i[l]?a[l].replace(/&\f/g,s[c]):s[c]+" "+a[l]}}},sD=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Kk(e,t){switch(UA(e,t)){case 5103:return Re+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Re+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Re+e+Zd+e+Nt+e+e;case 6828:case 4268:return Re+e+Nt+e+e;case 6165:return Re+e+Nt+"flex-"+e+e;case 5187:return Re+e+Ae(e,/(\w+).+(:[^]+)/,Re+"box-$1$2"+Nt+"flex-$1$2")+e;case 5443:return Re+e+Nt+"flex-item-"+Ae(e,/flex-|-self/,"")+e;case 4675:return Re+e+Nt+"flex-line-pack"+Ae(e,/align-content|flex-|-self/,"")+e;case 5548:return Re+e+Nt+Ae(e,"shrink","negative")+e;case 5292:return Re+e+Nt+Ae(e,"basis","preferred-size")+e;case 6060:return Re+"box-"+Ae(e,"-grow","")+Re+e+Nt+Ae(e,"grow","positive")+e;case 4554:return Re+Ae(e,/([^-])(transform)/g,"$1"+Re+"$2")+e;case 6187:return Ae(Ae(Ae(e,/(zoom-|grab)/,Re+"$1"),/(image-set)/,Re+"$1"),e,"")+e;case 5495:case 3959:return Ae(e,/(image-set\([^]*)/,Re+"$1$`$1");case 4968:return Ae(Ae(e,/(.+:)(flex-)?(.*)/,Re+"box-pack:$3"+Nt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Re+e+e;case 4095:case 3583:case 4068:case 2532:return Ae(e,/(.+)-inline(.+)/,Re+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(zn(e)-1-t>6)switch(Ft(e,t+1)){case 109:if(Ft(e,t+4)!==45)break;case 102:return Ae(e,/(.+:)(.+)-([^]+)/,"$1"+Re+"$2-$3$1"+Zd+(Ft(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~eg(e,"stretch")?Kk(Ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ft(e,t+1)!==115)break;case 6444:switch(Ft(e,zn(e)-3-(~eg(e,"!important")&&10))){case 107:return Ae(e,":",":"+Re)+e;case 101:return Ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Re+(Ft(e,14)===45?"inline-":"")+"box$3$1"+Re+"$2$3$1"+Nt+"$2box$3")+e}break;case 5936:switch(Ft(e,t+11)){case 114:return Re+e+Nt+Ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Re+e+Nt+Ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Re+e+Nt+Ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Re+e+Nt+e+e}return e}var lD=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Qv:t.return=Kk(t.value,t.length);break;case Nk:return es([nl(t,{value:Ae(t.value,"@","@"+Re)})],o);case qv:if(t.length)return HA(t.props,function(i){switch(WA(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return es([nl(t,{props:[Ae(i,/:(read-\w+)/,":"+Zd+"$1")]})],o);case"::placeholder":return es([nl(t,{props:[Ae(i,/:(plac\w+)/,":"+Re+"input-$1")]}),nl(t,{props:[Ae(i,/:(plac\w+)/,":"+Zd+"$1")]}),nl(t,{props:[Ae(i,/:(plac\w+)/,Nt+"input-$1")]})],o)}return""})}},uD=[lD],cD=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){var x=g.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||uD,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var x=g.getAttribute("data-emotion").split(" "),p=1;p<x.length;p++)i[x[p]]=!0;s.push(g)});var l,u=[aD,sD];{var c,d=[eD,rD(function(g){c.insert(g)})],f=tD(u.concat(o,d)),h=function(x){return es(JA(x),f)};l=function(x,p,m,b){c=m,h(x?x+"{"+p.styles+"}":p.styles),b&&(v.inserted[p.name]=!0)}}var v={key:r,sheet:new BA({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return v.sheet.hydrate(s),v};function ef(){return ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ef.apply(null,arguments)}var qk={exports:{}},Be={};/** @license React v16.13.1
 * react-is.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 Rt=typeof Symbol=="function"&&Symbol.for,Xv=Rt?Symbol.for("react.element"):60103,Jv=Rt?Symbol.for("react.portal"):60106,Kf=Rt?Symbol.for("react.fragment"):60107,qf=Rt?Symbol.for("react.strict_mode"):60108,Qf=Rt?Symbol.for("react.profiler"):60114,Yf=Rt?Symbol.for("react.provider"):60109,Xf=Rt?Symbol.for("react.context"):60110,Zv=Rt?Symbol.for("react.async_mode"):60111,Jf=Rt?Symbol.for("react.concurrent_mode"):60111,Zf=Rt?Symbol.for("react.forward_ref"):60112,eh=Rt?Symbol.for("react.suspense"):60113,dD=Rt?Symbol.for("react.suspense_list"):60120,th=Rt?Symbol.for("react.memo"):60115,rh=Rt?Symbol.for("react.lazy"):60116,fD=Rt?Symbol.for("react.block"):60121,hD=Rt?Symbol.for("react.fundamental"):60117,pD=Rt?Symbol.for("react.responder"):60118,mD=Rt?Symbol.for("react.scope"):60119;function Mr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Xv:switch(e=e.type,e){case Zv:case Jf:case Kf:case Qf:case qf:case eh:return e;default:switch(e=e&&e.$$typeof,e){case Xf:case Zf:case rh:case th:case Yf:return e;default:return t}}case Jv:return t}}}function Qk(e){return Mr(e)===Jf}Be.AsyncMode=Zv;Be.ConcurrentMode=Jf;Be.ContextConsumer=Xf;Be.ContextProvider=Yf;Be.Element=Xv;Be.ForwardRef=Zf;Be.Fragment=Kf;Be.Lazy=rh;Be.Memo=th;Be.Portal=Jv;Be.Profiler=Qf;Be.StrictMode=qf;Be.Suspense=eh;Be.isAsyncMode=function(e){return Qk(e)||Mr(e)===Zv};Be.isConcurrentMode=Qk;Be.isContextConsumer=function(e){return Mr(e)===Xf};Be.isContextProvider=function(e){return Mr(e)===Yf};Be.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xv};Be.isForwardRef=function(e){return Mr(e)===Zf};Be.isFragment=function(e){return Mr(e)===Kf};Be.isLazy=function(e){return Mr(e)===rh};Be.isMemo=function(e){return Mr(e)===th};Be.isPortal=function(e){return Mr(e)===Jv};Be.isProfiler=function(e){return Mr(e)===Qf};Be.isStrictMode=function(e){return Mr(e)===qf};Be.isSuspense=function(e){return Mr(e)===eh};Be.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Kf||e===Jf||e===Qf||e===qf||e===eh||e===dD||typeof e=="object"&&e!==null&&(e.$$typeof===rh||e.$$typeof===th||e.$$typeof===Yf||e.$$typeof===Xf||e.$$typeof===Zf||e.$$typeof===hD||e.$$typeof===pD||e.$$typeof===mD||e.$$typeof===fD)};Be.typeOf=Mr;qk.exports=Be;var gD=qk.exports,Yk=gD,vD={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yD={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xk={};Xk[Yk.ForwardRef]=vD;Xk[Yk.Memo]=yD;var bD=!0;function Jk(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var e0=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||bD===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},t0=function(t,r,n){e0(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function xD(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var wD={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},SD=!1,ED=/[A-Z]|^ms/g,kD=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zk=function(t){return t.charCodeAt(1)===45},Vb=function(t){return t!=null&&typeof t!="boolean"},vp=Gk(function(e){return Zk(e)?e:e.replace(ED,"-$&").toLowerCase()}),Ub=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(kD,function(n,o,i){return Bn={name:o,styles:i,next:Bn},o})}return wD[t]!==1&&!Zk(t)&&typeof r=="number"&&r!==0?r+"px":r},CD="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function mu(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Bn={name:o.name,styles:o.styles,next:Bn},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Bn={name:a.name,styles:a.styles,next:Bn},a=a.next;var s=i.styles+";";return s}return _D(e,t,r)}case"function":{if(e!==void 0){var l=Bn,u=r(e);return Bn=l,mu(e,t,u)}break}}var c=r;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function _D(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=mu(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":Vb(s)&&(n+=vp(i)+":"+Ub(i,s)+";")}else{if(i==="NO_COMPONENT_SELECTOR"&&SD)throw new Error(CD);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)Vb(a[l])&&(n+=vp(i)+":"+Ub(i,a[l])+";");else{var u=mu(e,t,a);switch(i){case"animation":case"animationName":{n+=vp(i)+":"+u+";";break}default:n+=i+"{"+u+"}"}}}}return n}var Wb=/label:\s*([^\s;{]+)\s*(;|$)/g,Bn;function nh(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Bn=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=mu(r,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=mu(r,t,e[s]),n){var l=i;o+=l[s]}Wb.lastIndex=0;for(var u="",c;(c=Wb.exec(o))!==null;)u+="-"+c[1];var d=xD(o)+u;return{name:d,styles:o,next:Bn}}var TD=function(t){return t()},eC=sm.useInsertionEffect?sm.useInsertionEffect:!1,tC=eC||TD,Hb=eC||w.useLayoutEffect,PD=!1,rC=w.createContext(typeof HTMLElement<"u"?cD({key:"css"}):null);rC.Provider;var r0=function(t){return w.forwardRef(function(r,n){var o=w.useContext(rC);return t(r,o,n)})},Es=w.createContext({}),RD=function(t,r){if(typeof r=="function"){var n=r(t);return n}return ef({},t,r)},AD=jb(function(e){return jb(function(t){return RD(e,t)})}),DD=function(t){var r=w.useContext(Es);return t.theme!==r&&(r=AD(r)(t.theme)),w.createElement(Es.Provider,{value:r},t.children)},n0={}.hasOwnProperty,rg="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",OD=function(t,r){var n={};for(var o in r)n0.call(r,o)&&(n[o]=r[o]);return n[rg]=t,n},MD=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return e0(r,n,o),tC(function(){return t0(r,n,o)}),null},$D=r0(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[rg],i=[n],a="";typeof e.className=="string"?a=Jk(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=nh(i,void 0,w.useContext(Es));a+=t.key+"-"+s.name;var l={};for(var u in e)n0.call(e,u)&&u!=="css"&&u!==rg&&!PD&&(l[u]=e[u]);return l.className=a,r&&(l.ref=r),w.createElement(w.Fragment,null,w.createElement(MD,{cache:t,serialized:s,isStringTag:typeof o=="string"}),w.createElement(o,l))}),FD=$D,Gb=function(t,r){var n=arguments;if(r==null||!n0.call(r,"css"))return w.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=FD,i[1]=OD(t,r);for(var a=2;a<o;a++)i[a]=n[a];return w.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Gb||(Gb={}));var Uu=r0(function(e,t){var r=e.styles,n=nh([r],void 0,w.useContext(Es)),o=w.useRef();return Hb(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",i),a.hydrate([l])),o.current=[a,s],function(){a.flush()}},[t]),Hb(function(){var i=o.current,a=i[0],s=i[1];if(s){i[1]=!1;return}if(n.next!==void 0&&t0(t,n.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});function LD(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return nh(t)}function zD(){var e=LD.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function $r(){const e=w.useContext(Es);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}var o0=w.createContext({});o0.displayName="ColorModeContext";function oh(){const e=w.useContext(o0);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function CH(e,t){const{colorMode:r}=oh();return r==="dark"?t:e}var Mc={light:"chakra-ui-light",dark:"chakra-ui-dark"};function BD(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,o==null||o()},setClassName(n){document.body.classList.add(n?Mc.dark:Mc.light),document.body.classList.remove(n?Mc.light:Mc.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var o;return((o=r.query().matches)!=null?o:n==="dark")?"dark":"light"},addListener(n){const o=r.query(),i=a=>{n(a.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(i):o.addEventListener("change",i),()=>{typeof o.removeListener=="function"?o.removeListener(i):o.removeEventListener("change",i)}},preventTransition(){const n=document.createElement("style");return n.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var ID="chakra-ui-color-mode";function jD(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var ND=jD(ID),ks=globalThis!=null&&globalThis.document?w.useLayoutEffect:w.useEffect,nC={exports:{}},ih={};/**
 * @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 VD=w,UD=Symbol.for("react.element"),WD=Symbol.for("react.fragment"),HD=Object.prototype.hasOwnProperty,GD=VD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,KD={key:!0,ref:!0,__self:!0,__source:!0};function oC(e,t,r){var n,o={},i=null,a=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)HD.call(t,n)&&!KD.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:UD,type:e,key:i,ref:a,props:o,_owner:GD.current}}ih.Fragment=WD;ih.jsx=oC;ih.jsxs=oC;nC.exports=ih;var z=nC.exports,Kb=()=>{};function qb(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function iC(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:a=ND}=e,s=o==="dark"?"dark":"light",[l,u]=w.useState(()=>qb(a,s)),[c,d]=w.useState(()=>qb(a)),{getSystemTheme:f,setClassName:h,setDataset:v,addListener:g}=w.useMemo(()=>BD({preventTransition:i}),[i]),x=o==="system"&&!l?c:l,p=w.useCallback(E=>{const C=E==="system"?f():E;u(C),h(C==="dark"),v(C),a.set(C)},[a,f,h,v]);ks(()=>{o==="system"&&d(f())},[]),w.useEffect(()=>{const E=a.get();if(E){p(E);return}if(o==="system"){p("system");return}p(s)},[a,s,o,p]);const m=w.useCallback(()=>{p(x==="dark"?"light":"dark")},[x,p]);w.useEffect(()=>{if(n)return g(p)},[n,g,p]);const b=w.useMemo(()=>({colorMode:t??x,toggleColorMode:t?Kb:m,setColorMode:t?Kb:p,forced:t!==void 0}),[x,m,p,t]);return z.jsx(o0.Provider,{value:b,children:r})}iC.displayName="ColorModeProvider";function qD(){const e=oh(),t=$r();return{...e,theme:t}}function QD(e,t,r){var n,o;if(t==null)return t;const i=a=>{var s,l;return(l=(s=e.__breakpoints)==null?void 0:s.asArray)==null?void 0:l[a]};return(o=(n=i(t))!=null?n:i(r))!=null?o:r}function YD(e,t,r){var n,o;if(t==null)return t;const i=a=>{var s,l;return(l=(s=e.__cssMap)==null?void 0:s[a])==null?void 0:l.value};return(o=(n=i(t))!=null?n:i(r))!=null?o:r}function _H(e,t,r){const n=$r();return XD(e,t,r)(n)}function XD(e,t,r){const n=Array.isArray(t)?t:[t],o=Array.isArray(r)?r:[r];return i=>{const a=o.filter(Boolean),s=n.map((l,u)=>{var c,d;if(e==="breakpoints")return QD(i,l,(c=a[u])!=null?c:l);const f=`${e}.${l}`;return YD(i,f,(d=a[u])!=null?d:l)});return Array.isArray(t)?s:s[0]}}function uo(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function zi(e,...t){return JD(e)?e(...t):e}var JD=e=>typeof e=="function",tf={exports:{}};tf.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,i=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",v="[object GeneratorFunction]",g="[object Map]",x="[object Number]",p="[object Null]",m="[object Object]",b="[object Proxy]",E="[object RegExp]",C="[object Set]",S="[object String]",P="[object Undefined]",T="[object WeakMap]",F="[object ArrayBuffer]",O="[object DataView]",W="[object Float32Array]",ne="[object Float64Array]",re="[object Int8Array]",le="[object Int16Array]",Me="[object Int32Array]",be="[object Uint8Array]",B="[object Uint8ClampedArray]",V="[object Uint16Array]",q="[object Uint32Array]",Z=/[\\^$.*+?()[\]{}|]/g,pe=/^\[object .+?Constructor\]$/,xe=/^(?:0|[1-9]\d*)$/,te={};te[W]=te[ne]=te[re]=te[le]=te[Me]=te[be]=te[B]=te[V]=te[q]=!0,te[s]=te[l]=te[F]=te[c]=te[O]=te[d]=te[f]=te[h]=te[g]=te[x]=te[m]=te[E]=te[C]=te[S]=te[T]=!1;var fe=typeof pc=="object"&&pc&&pc.Object===Object&&pc,Ne=typeof self=="object"&&self&&self.Object===Object&&self,Le=fe||Ne||Function("return this")(),kt=t&&!t.nodeType&&t,Ct=kt&&!0&&e&&!e.nodeType&&e,Co=Ct&&Ct.exports===kt,gi=Co&&fe.process,st=function(){try{var k=Ct&&Ct.require&&Ct.require("util").types;return k||gi&&gi.binding&&gi.binding("util")}catch{}}(),Jr=st&&st.isTypedArray;function vi(k,A,$){switch($.length){case 0:return k.call(A);case 1:return k.call(A,$[0]);case 2:return k.call(A,$[0],$[1]);case 3:return k.call(A,$[0],$[1],$[2])}return k.apply(A,$)}function Ws(k,A){for(var $=-1,J=Array(k);++$<k;)J[$]=A($);return J}function Zr(k){return function(A){return k(A)}}function fa(k,A){return k==null?void 0:k[A]}function ha(k,A){return function($){return k(A($))}}var pa=Array.prototype,Hs=Function.prototype,nr=Object.prototype,kn=Le["__core-js_shared__"],qn=Hs.toString,bt=nr.hasOwnProperty,Fr=function(){var k=/[^.]+$/.exec(kn&&kn.keys&&kn.keys.IE_PROTO||"");return k?"Symbol(src)_1."+k:""}(),_o=nr.toString,To=qn.call(Object),gr=RegExp("^"+qn.call(bt).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),At=Co?Le.Buffer:void 0,Gs=Le.Symbol,yi=Le.Uint8Array;At&&At.allocUnsafe;var oc=ha(Object.getPrototypeOf,Object),en=Object.create,ic=nr.propertyIsEnumerable,ac=pa.splice,Cn=Gs?Gs.toStringTag:void 0,ma=function(){try{var k=Lh(Object,"defineProperty");return k({},"",{}),k}catch{}}(),sc=At?At.isBuffer:void 0,bi=Math.max,lc=Date.now,ga=Lh(Le,"Map"),Qn=Lh(Object,"create"),Oh=function(){function k(){}return function(A){if(!ki(A))return{};if(en)return en(A);k.prototype=A;var $=new k;return k.prototype=void 0,$}}();function _n(k){var A=-1,$=k==null?0:k.length;for(this.clear();++A<$;){var J=k[A];this.set(J[0],J[1])}}function Mh(){this.__data__=Qn?Qn(null):{},this.size=0}function uc(k){var A=this.has(k)&&delete this.__data__[k];return this.size-=A?1:0,A}function va(k){var A=this.__data__;if(Qn){var $=A[k];return $===n?void 0:$}return bt.call(A,k)?A[k]:void 0}function ya(k){var A=this.__data__;return Qn?A[k]!==void 0:bt.call(A,k)}function $h(k,A){var $=this.__data__;return this.size+=this.has(k)?0:1,$[k]=Qn&&A===void 0?n:A,this}_n.prototype.clear=Mh,_n.prototype.delete=uc,_n.prototype.get=va,_n.prototype.has=ya,_n.prototype.set=$h;function tn(k){var A=-1,$=k==null?0:k.length;for(this.clear();++A<$;){var J=k[A];this.set(J[0],J[1])}}function _(){this.__data__=[],this.size=0}function D(k){var A=this.__data__,$=qt(A,k);if($<0)return!1;var J=A.length-1;return $==J?A.pop():ac.call(A,$,1),--this.size,!0}function M(k){var A=this.__data__,$=qt(A,k);return $<0?void 0:A[$][1]}function j(k){return qt(this.__data__,k)>-1}function H(k,A){var $=this.__data__,J=qt($,k);return J<0?(++this.size,$.push([k,A])):$[J][1]=A,this}tn.prototype.clear=_,tn.prototype.delete=D,tn.prototype.get=M,tn.prototype.has=j,tn.prototype.set=H;function X(k){var A=-1,$=k==null?0:k.length;for(this.clear();++A<$;){var J=k[A];this.set(J[0],J[1])}}function se(){this.size=0,this.__data__={hash:new _n,map:new(ga||tn),string:new _n}}function Q(k){var A=dc(this,k).delete(k);return this.size-=A?1:0,A}function Y(k){return dc(this,k).get(k)}function G(k){return dc(this,k).has(k)}function ee(k,A){var $=dc(this,k),J=$.size;return $.set(k,A),this.size+=$.size==J?0:1,this}X.prototype.clear=se,X.prototype.delete=Q,X.prototype.get=Y,X.prototype.has=G,X.prototype.set=ee;function ue(k){var A=this.__data__=new tn(k);this.size=A.size}function we(){this.__data__=new tn,this.size=0}function xt(k){var A=this.__data__,$=A.delete(k);return this.size=A.size,$}function Ie(k){return this.__data__.get(k)}function Ce(k){return this.__data__.has(k)}function Xe(k,A){var $=this.__data__;if($ instanceof tn){var J=$.__data__;if(!ga||J.length<r-1)return J.push([k,A]),this.size=++$.size,this;$=this.__data__=new X(J)}return $.set(k,A),this.size=$.size,this}ue.prototype.clear=we,ue.prototype.delete=xt,ue.prototype.get=Ie,ue.prototype.has=Ce,ue.prototype.set=Xe;function Po(k,A){var $=Ih(k),J=!$&&Bh(k),ke=!$&&!J&&Sy(k),Ve=!$&&!J&&!ke&&ky(k),Ze=$||J||ke||Ve,Te=Ze?Ws(k.length,String):[],et=Te.length;for(var nn in k)Ze&&(nn=="length"||ke&&(nn=="offset"||nn=="parent")||Ve&&(nn=="buffer"||nn=="byteLength"||nn=="byteOffset")||xy(nn,et))||Te.push(nn);return Te}function Yn(k,A,$){($!==void 0&&!fc(k[A],$)||$===void 0&&!(A in k))&&xi(k,A,$)}function rn(k,A,$){var J=k[A];(!(bt.call(k,A)&&fc(J,$))||$===void 0&&!(A in k))&&xi(k,A,$)}function qt(k,A){for(var $=k.length;$--;)if(fc(k[$][0],A))return $;return-1}function xi(k,A,$){A=="__proto__"&&ma?ma(k,A,{configurable:!0,enumerable:!0,value:$,writable:!0}):k[A]=$}var wi=YP();function Lr(k){return k==null?k===void 0?P:p:Cn&&Cn in Object(k)?XP(k):n2(k)}function Si(k){return Ks(k)&&Lr(k)==s}function ba(k){if(!ki(k)||t2(k))return!1;var A=Nh(k)?gr:pe;return A.test(s2(k))}function Ee(k){return Ks(k)&&Ey(k.length)&&!!te[Lr(k)]}function Je(k){if(!ki(k))return r2(k);var A=wy(k),$=[];for(var J in k)J=="constructor"&&(A||!bt.call(k,J))||$.push(J);return $}function Xn(k,A,$,J,ke){k!==A&&wi(A,function(Ve,Ze){if(ke||(ke=new ue),ki(Ve))Ei(k,A,Ze,$,Xn,J,ke);else{var Te=J?J(zh(k,Ze),Ve,Ze+"",k,A,ke):void 0;Te===void 0&&(Te=Ve),Yn(k,Ze,Te)}},Cy)}function Ei(k,A,$,J,ke,Ve,Ze){var Te=zh(k,$),et=zh(A,$),nn=Ze.get(et);if(nn){Yn(k,$,nn);return}var vr=Ve?Ve(Te,et,$+"",k,A,Ze):void 0,qs=vr===void 0;if(qs){var Vh=Ih(et),Uh=!Vh&&Sy(et),Ty=!Vh&&!Uh&&ky(et);vr=et,Vh||Uh||Ty?Ih(Te)?vr=Te:l2(Te)?vr=KP(Te):Uh?(qs=!1,vr=cc(et)):Ty?(qs=!1,vr=GP(et)):vr=[]:u2(et)||Bh(et)?(vr=Te,Bh(Te)?vr=c2(Te):(!ki(Te)||Nh(Te))&&(vr=JP(et))):qs=!1}qs&&(Ze.set(et,vr),ke(vr,et,J,Ve,Ze),Ze.delete(et)),Yn(k,$,vr)}function lt(k,A){return i2(o2(k,A,_y),k+"")}var Ro=ma?function(k,A){return ma(k,"toString",{configurable:!0,enumerable:!1,value:f2(A),writable:!0})}:_y;function cc(k,A){return k.slice()}function Fh(k){var A=new k.constructor(k.byteLength);return new yi(A).set(new yi(k)),A}function GP(k,A){var $=Fh(k.buffer);return new k.constructor($,k.byteOffset,k.length)}function KP(k,A){var $=-1,J=k.length;for(A||(A=Array(J));++$<J;)A[$]=k[$];return A}function qP(k,A,$,J){var ke=!$;$||($={});for(var Ve=-1,Ze=A.length;++Ve<Ze;){var Te=A[Ve],et=void 0;et===void 0&&(et=k[Te]),ke?xi($,Te,et):rn($,Te,et)}return $}function QP(k){return lt(function(A,$){var J=-1,ke=$.length,Ve=ke>1?$[ke-1]:void 0,Ze=ke>2?$[2]:void 0;for(Ve=k.length>3&&typeof Ve=="function"?(ke--,Ve):void 0,Ze&&ZP($[0],$[1],Ze)&&(Ve=ke<3?void 0:Ve,ke=1),A=Object(A);++J<ke;){var Te=$[J];Te&&k(A,Te,J,Ve)}return A})}function YP(k){return function(A,$,J){for(var ke=-1,Ve=Object(A),Ze=J(A),Te=Ze.length;Te--;){var et=Ze[++ke];if($(Ve[et],et,Ve)===!1)break}return A}}function dc(k,A){var $=k.__data__;return e2(A)?$[typeof A=="string"?"string":"hash"]:$.map}function Lh(k,A){var $=fa(k,A);return ba($)?$:void 0}function XP(k){var A=bt.call(k,Cn),$=k[Cn];try{k[Cn]=void 0;var J=!0}catch{}var ke=_o.call(k);return J&&(A?k[Cn]=$:delete k[Cn]),ke}function JP(k){return typeof k.constructor=="function"&&!wy(k)?Oh(oc(k)):{}}function xy(k,A){var $=typeof k;return A=A??a,!!A&&($=="number"||$!="symbol"&&xe.test(k))&&k>-1&&k%1==0&&k<A}function ZP(k,A,$){if(!ki($))return!1;var J=typeof A;return(J=="number"?jh($)&&xy(A,$.length):J=="string"&&A in $)?fc($[A],k):!1}function e2(k){var A=typeof k;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?k!=="__proto__":k===null}function t2(k){return!!Fr&&Fr in k}function wy(k){var A=k&&k.constructor,$=typeof A=="function"&&A.prototype||nr;return k===$}function r2(k){var A=[];if(k!=null)for(var $ in Object(k))A.push($);return A}function n2(k){return _o.call(k)}function o2(k,A,$){return A=bi(A===void 0?k.length-1:A,0),function(){for(var J=arguments,ke=-1,Ve=bi(J.length-A,0),Ze=Array(Ve);++ke<Ve;)Ze[ke]=J[A+ke];ke=-1;for(var Te=Array(A+1);++ke<A;)Te[ke]=J[ke];return Te[A]=$(Ze),vi(k,this,Te)}}function zh(k,A){if(!(A==="constructor"&&typeof k[A]=="function")&&A!="__proto__")return k[A]}var i2=a2(Ro);function a2(k){var A=0,$=0;return function(){var J=lc(),ke=i-(J-$);if($=J,ke>0){if(++A>=o)return arguments[0]}else A=0;return k.apply(void 0,arguments)}}function s2(k){if(k!=null){try{return qn.call(k)}catch{}try{return k+""}catch{}}return""}function fc(k,A){return k===A||k!==k&&A!==A}var Bh=Si(function(){return arguments}())?Si:function(k){return Ks(k)&&bt.call(k,"callee")&&!ic.call(k,"callee")},Ih=Array.isArray;function jh(k){return k!=null&&Ey(k.length)&&!Nh(k)}function l2(k){return Ks(k)&&jh(k)}var Sy=sc||h2;function Nh(k){if(!ki(k))return!1;var A=Lr(k);return A==h||A==v||A==u||A==b}function Ey(k){return typeof k=="number"&&k>-1&&k%1==0&&k<=a}function ki(k){var A=typeof k;return k!=null&&(A=="object"||A=="function")}function Ks(k){return k!=null&&typeof k=="object"}function u2(k){if(!Ks(k)||Lr(k)!=m)return!1;var A=oc(k);if(A===null)return!0;var $=bt.call(A,"constructor")&&A.constructor;return typeof $=="function"&&$ instanceof $&&qn.call($)==To}var ky=Jr?Zr(Jr):Ee;function c2(k){return qP(k,Cy(k))}function Cy(k){return jh(k)?Po(k):Je(k)}var d2=QP(function(k,A,$,J){Xn(k,A,$,J)});function f2(k){return function(){return k}}function _y(k){return k}function h2(){return!1}e.exports=d2})(tf,tf.exports);var ZD=tf.exports;const Hr=Pf(ZD);var eO=e=>/!(important)?$/.test(e),Qb=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,tO=(e,t)=>r=>{const n=String(t),o=eO(n),i=Qb(n),a=e?`${e}.${i}`:i;let s=uo(r.__cssMap)&&a in r.__cssMap?r.__cssMap[a].varRef:t;return s=Qb(s),o?`${s} !important`:s};function i0(e){const{scale:t,transform:r,compose:n}=e;return(i,a)=>{var s;const l=tO(t,i)(a);let u=(s=r==null?void 0:r(l,a))!=null?s:l;return n&&(u=n(u,a)),u}}var $c=(...e)=>t=>e.reduce((r,n)=>n(r),t);function zr(e,t){return r=>{const n={property:r,scale:e};return n.transform=i0({scale:e,transform:t}),n}}var rO=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function nO(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:rO(t),transform:r?i0({scale:r,compose:n}):n}}var aC=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function oO(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...aC].join(" ")}function iO(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...aC].join(" ")}var aO={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},sO={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function lO(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var uO={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},ng={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},cO=new Set(Object.values(ng)),og=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),dO=e=>e.trim();function fO(e,t){if(e==null||og.has(e))return e;if(!(ig(e)||og.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],a=o==null?void 0:o[2];if(!i||!a)return e;const s=i.includes("-gradient")?i:`${i}-gradient`,[l,...u]=a.split(",").map(dO).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in ng?ng[l]:l;u.unshift(c);const d=u.map(f=>{if(cO.has(f))return f;const h=f.indexOf(" "),[v,g]=h!==-1?[f.substr(0,h),f.substr(h+1)]:[f],x=ig(g)?g:g&&g.split(" "),p=`colors.${v}`,m=p in t.__cssMap?t.__cssMap[p].varRef:v;return x?[m,...Array.isArray(x)?x:[x]].join(" "):m});return`${s}(${d.join(", ")})`}var ig=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),hO=(e,t)=>fO(e,t??{});function pO(e){return/^var\(--.+\)$/.test(e)}var mO=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},Pn=e=>t=>`${e}(${t})`,Se={filter(e){return e!=="auto"?e:aO},backdropFilter(e){return e!=="auto"?e:sO},ring(e){return lO(Se.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?oO():e==="auto-gpu"?iO():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=mO(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(pO(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:hO,blur:Pn("blur"),opacity:Pn("opacity"),brightness:Pn("brightness"),contrast:Pn("contrast"),dropShadow:Pn("drop-shadow"),grayscale:Pn("grayscale"),hueRotate:e=>Pn("hue-rotate")(Se.degree(e)),invert:Pn("invert"),saturate:Pn("saturate"),sepia:Pn("sepia"),bgImage(e){return e==null||ig(e)||og.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=(t=uO[e])!=null?t:{},o={flexDirection:e};return r&&(o[r]=1),n&&(o[n]=1),o}},R={borderWidths:zr("borderWidths"),borderStyles:zr("borderStyles"),colors:zr("colors"),borders:zr("borders"),gradients:zr("gradients",Se.gradient),radii:zr("radii",Se.px),space:zr("space",$c(Se.vh,Se.px)),spaceT:zr("space",$c(Se.vh,Se.px)),degreeT(e){return{property:e,transform:Se.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:i0({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:zr("sizes",$c(Se.vh,Se.px)),sizesT:zr("sizes",$c(Se.vh,Se.fraction)),shadows:zr("shadows"),logical:nO,blur:zr("blur",Se.blur)},cd={background:R.colors("background"),backgroundColor:R.colors("backgroundColor"),backgroundImage:R.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Se.bgClip},bgSize:R.prop("backgroundSize"),bgPosition:R.prop("backgroundPosition"),bg:R.colors("background"),bgColor:R.colors("backgroundColor"),bgPos:R.prop("backgroundPosition"),bgRepeat:R.prop("backgroundRepeat"),bgAttachment:R.prop("backgroundAttachment"),bgGradient:R.gradients("backgroundImage"),bgClip:{transform:Se.bgClip}};Object.assign(cd,{bgImage:cd.backgroundImage,bgImg:cd.backgroundImage});var Pe={border:R.borders("border"),borderWidth:R.borderWidths("borderWidth"),borderStyle:R.borderStyles("borderStyle"),borderColor:R.colors("borderColor"),borderRadius:R.radii("borderRadius"),borderTop:R.borders("borderTop"),borderBlockStart:R.borders("borderBlockStart"),borderTopLeftRadius:R.radii("borderTopLeftRadius"),borderStartStartRadius:R.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:R.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:R.radii("borderTopRightRadius"),borderStartEndRadius:R.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:R.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:R.borders("borderRight"),borderInlineEnd:R.borders("borderInlineEnd"),borderBottom:R.borders("borderBottom"),borderBlockEnd:R.borders("borderBlockEnd"),borderBottomLeftRadius:R.radii("borderBottomLeftRadius"),borderBottomRightRadius:R.radii("borderBottomRightRadius"),borderLeft:R.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:R.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:R.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:R.borders(["borderLeft","borderRight"]),borderInline:R.borders("borderInline"),borderY:R.borders(["borderTop","borderBottom"]),borderBlock:R.borders("borderBlock"),borderTopWidth:R.borderWidths("borderTopWidth"),borderBlockStartWidth:R.borderWidths("borderBlockStartWidth"),borderTopColor:R.colors("borderTopColor"),borderBlockStartColor:R.colors("borderBlockStartColor"),borderTopStyle:R.borderStyles("borderTopStyle"),borderBlockStartStyle:R.borderStyles("borderBlockStartStyle"),borderBottomWidth:R.borderWidths("borderBottomWidth"),borderBlockEndWidth:R.borderWidths("borderBlockEndWidth"),borderBottomColor:R.colors("borderBottomColor"),borderBlockEndColor:R.colors("borderBlockEndColor"),borderBottomStyle:R.borderStyles("borderBottomStyle"),borderBlockEndStyle:R.borderStyles("borderBlockEndStyle"),borderLeftWidth:R.borderWidths("borderLeftWidth"),borderInlineStartWidth:R.borderWidths("borderInlineStartWidth"),borderLeftColor:R.colors("borderLeftColor"),borderInlineStartColor:R.colors("borderInlineStartColor"),borderLeftStyle:R.borderStyles("borderLeftStyle"),borderInlineStartStyle:R.borderStyles("borderInlineStartStyle"),borderRightWidth:R.borderWidths("borderRightWidth"),borderInlineEndWidth:R.borderWidths("borderInlineEndWidth"),borderRightColor:R.colors("borderRightColor"),borderInlineEndColor:R.colors("borderInlineEndColor"),borderRightStyle:R.borderStyles("borderRightStyle"),borderInlineEndStyle:R.borderStyles("borderInlineEndStyle"),borderTopRadius:R.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:R.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:R.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:R.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Pe,{rounded:Pe.borderRadius,roundedTop:Pe.borderTopRadius,roundedTopLeft:Pe.borderTopLeftRadius,roundedTopRight:Pe.borderTopRightRadius,roundedTopStart:Pe.borderStartStartRadius,roundedTopEnd:Pe.borderStartEndRadius,roundedBottom:Pe.borderBottomRadius,roundedBottomLeft:Pe.borderBottomLeftRadius,roundedBottomRight:Pe.borderBottomRightRadius,roundedBottomStart:Pe.borderEndStartRadius,roundedBottomEnd:Pe.borderEndEndRadius,roundedLeft:Pe.borderLeftRadius,roundedRight:Pe.borderRightRadius,roundedStart:Pe.borderInlineStartRadius,roundedEnd:Pe.borderInlineEndRadius,borderStart:Pe.borderInlineStart,borderEnd:Pe.borderInlineEnd,borderTopStartRadius:Pe.borderStartStartRadius,borderTopEndRadius:Pe.borderStartEndRadius,borderBottomStartRadius:Pe.borderEndStartRadius,borderBottomEndRadius:Pe.borderEndEndRadius,borderStartRadius:Pe.borderInlineStartRadius,borderEndRadius:Pe.borderInlineEndRadius,borderStartWidth:Pe.borderInlineStartWidth,borderEndWidth:Pe.borderInlineEndWidth,borderStartColor:Pe.borderInlineStartColor,borderEndColor:Pe.borderInlineEndColor,borderStartStyle:Pe.borderInlineStartStyle,borderEndStyle:Pe.borderInlineEndStyle});var gO={color:R.colors("color"),textColor:R.colors("color"),fill:R.colors("fill"),stroke:R.colors("stroke")},ag={boxShadow:R.shadows("boxShadow"),mixBlendMode:!0,blendMode:R.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:R.prop("backgroundBlendMode"),opacity:!0};Object.assign(ag,{shadow:ag.boxShadow});var vO={filter:{transform:Se.filter},blur:R.blur("--chakra-blur"),brightness:R.propT("--chakra-brightness",Se.brightness),contrast:R.propT("--chakra-contrast",Se.contrast),hueRotate:R.propT("--chakra-hue-rotate",Se.hueRotate),invert:R.propT("--chakra-invert",Se.invert),saturate:R.propT("--chakra-saturate",Se.saturate),dropShadow:R.propT("--chakra-drop-shadow",Se.dropShadow),backdropFilter:{transform:Se.backdropFilter},backdropBlur:R.blur("--chakra-backdrop-blur"),backdropBrightness:R.propT("--chakra-backdrop-brightness",Se.brightness),backdropContrast:R.propT("--chakra-backdrop-contrast",Se.contrast),backdropHueRotate:R.propT("--chakra-backdrop-hue-rotate",Se.hueRotate),backdropInvert:R.propT("--chakra-backdrop-invert",Se.invert),backdropSaturate:R.propT("--chakra-backdrop-saturate",Se.saturate)},rf={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Se.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:R.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:R.space("gap"),rowGap:R.space("rowGap"),columnGap:R.space("columnGap")};Object.assign(rf,{flexDir:rf.flexDirection});var sC={gridGap:R.space("gridGap"),gridColumnGap:R.space("gridColumnGap"),gridRowGap:R.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},yO={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Se.outline},outlineOffset:!0,outlineColor:R.colors("outlineColor")},Ir={width:R.sizesT("width"),inlineSize:R.sizesT("inlineSize"),height:R.sizes("height"),blockSize:R.sizes("blockSize"),boxSize:R.sizes(["width","height"]),minWidth:R.sizes("minWidth"),minInlineSize:R.sizes("minInlineSize"),minHeight:R.sizes("minHeight"),minBlockSize:R.sizes("minBlockSize"),maxWidth:R.sizes("maxWidth"),maxInlineSize:R.sizes("maxInlineSize"),maxHeight:R.sizes("maxHeight"),maxBlockSize:R.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (min-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (max-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:R.propT("float",Se.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Ir,{w:Ir.width,h:Ir.height,minW:Ir.minWidth,maxW:Ir.maxWidth,minH:Ir.minHeight,maxH:Ir.maxHeight,overscroll:Ir.overscrollBehavior,overscrollX:Ir.overscrollBehaviorX,overscrollY:Ir.overscrollBehaviorY});var bO={listStyleType:!0,listStylePosition:!0,listStylePos:R.prop("listStylePosition"),listStyleImage:!0,listStyleImg:R.prop("listStyleImage")};function xO(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n<o.length&&e;n+=1)e=e[o[n]];return e===void 0?r:e}var wO=e=>{const t=new WeakMap;return(n,o,i,a)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,i,a);return s.set(o,l),l}},SO=wO(xO),EO={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},kO={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},yp=(e,t,r)=>{const n={},o=SO(e,t,{});for(const i in o)i in r&&r[i]!=null||(n[i]=o[i]);return n},CO={srOnly:{transform(e){return e===!0?EO:e==="focusable"?kO:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>yp(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>yp(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>yp(t,e,r)}},zl={position:!0,pos:R.prop("position"),zIndex:R.prop("zIndex","zIndices"),inset:R.spaceT("inset"),insetX:R.spaceT(["left","right"]),insetInline:R.spaceT("insetInline"),insetY:R.spaceT(["top","bottom"]),insetBlock:R.spaceT("insetBlock"),top:R.spaceT("top"),insetBlockStart:R.spaceT("insetBlockStart"),bottom:R.spaceT("bottom"),insetBlockEnd:R.spaceT("insetBlockEnd"),left:R.spaceT("left"),insetInlineStart:R.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:R.spaceT("right"),insetInlineEnd:R.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(zl,{insetStart:zl.insetInlineStart,insetEnd:zl.insetInlineEnd});var _O={ring:{transform:Se.ring},ringColor:R.colors("--chakra-ring-color"),ringOffset:R.prop("--chakra-ring-offset-width"),ringOffsetColor:R.colors("--chakra-ring-offset-color"),ringInset:R.prop("--chakra-ring-inset")},Ge={margin:R.spaceT("margin"),marginTop:R.spaceT("marginTop"),marginBlockStart:R.spaceT("marginBlockStart"),marginRight:R.spaceT("marginRight"),marginInlineEnd:R.spaceT("marginInlineEnd"),marginBottom:R.spaceT("marginBottom"),marginBlockEnd:R.spaceT("marginBlockEnd"),marginLeft:R.spaceT("marginLeft"),marginInlineStart:R.spaceT("marginInlineStart"),marginX:R.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:R.spaceT("marginInline"),marginY:R.spaceT(["marginTop","marginBottom"]),marginBlock:R.spaceT("marginBlock"),padding:R.space("padding"),paddingTop:R.space("paddingTop"),paddingBlockStart:R.space("paddingBlockStart"),paddingRight:R.space("paddingRight"),paddingBottom:R.space("paddingBottom"),paddingBlockEnd:R.space("paddingBlockEnd"),paddingLeft:R.space("paddingLeft"),paddingInlineStart:R.space("paddingInlineStart"),paddingInlineEnd:R.space("paddingInlineEnd"),paddingX:R.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:R.space("paddingInline"),paddingY:R.space(["paddingTop","paddingBottom"]),paddingBlock:R.space("paddingBlock")};Object.assign(Ge,{m:Ge.margin,mt:Ge.marginTop,mr:Ge.marginRight,me:Ge.marginInlineEnd,marginEnd:Ge.marginInlineEnd,mb:Ge.marginBottom,ml:Ge.marginLeft,ms:Ge.marginInlineStart,marginStart:Ge.marginInlineStart,mx:Ge.marginX,my:Ge.marginY,p:Ge.padding,pt:Ge.paddingTop,py:Ge.paddingY,px:Ge.paddingX,pb:Ge.paddingBottom,pl:Ge.paddingLeft,ps:Ge.paddingInlineStart,paddingStart:Ge.paddingInlineStart,pr:Ge.paddingRight,pe:Ge.paddingInlineEnd,paddingEnd:Ge.paddingInlineEnd});var TO={textDecorationColor:R.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:R.shadows("textShadow")},PO={clipPath:!0,transform:R.propT("transform",Se.transform),transformOrigin:!0,translateX:R.spaceT("--chakra-translate-x"),translateY:R.spaceT("--chakra-translate-y"),skewX:R.degreeT("--chakra-skew-x"),skewY:R.degreeT("--chakra-skew-y"),scaleX:R.prop("--chakra-scale-x"),scaleY:R.prop("--chakra-scale-y"),scale:R.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:R.degreeT("--chakra-rotate")},RO={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:R.prop("transitionDuration","transition.duration"),transitionProperty:R.prop("transitionProperty","transition.property"),transitionTimingFunction:R.prop("transitionTimingFunction","transition.easing")},AO={fontFamily:R.prop("fontFamily","fonts"),fontSize:R.prop("fontSize","fontSizes",Se.px),fontWeight:R.prop("fontWeight","fontWeights"),lineHeight:R.prop("lineHeight","lineHeights"),letterSpacing:R.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},DO={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:R.spaceT("scrollMargin"),scrollMarginTop:R.spaceT("scrollMarginTop"),scrollMarginBottom:R.spaceT("scrollMarginBottom"),scrollMarginLeft:R.spaceT("scrollMarginLeft"),scrollMarginRight:R.spaceT("scrollMarginRight"),scrollMarginX:R.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:R.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:R.spaceT("scrollPadding"),scrollPaddingTop:R.spaceT("scrollPaddingTop"),scrollPaddingBottom:R.spaceT("scrollPaddingBottom"),scrollPaddingLeft:R.spaceT("scrollPaddingLeft"),scrollPaddingRight:R.spaceT("scrollPaddingRight"),scrollPaddingX:R.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:R.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function lC(e){return uo(e)&&e.reference?e.reference:String(e)}var ah=(e,...t)=>t.map(lC).join(` ${e} `).replace(/calc/g,""),Yb=(...e)=>`calc(${ah("+",...e)})`,Xb=(...e)=>`calc(${ah("-",...e)})`,sg=(...e)=>`calc(${ah("*",...e)})`,Jb=(...e)=>`calc(${ah("/",...e)})`,Zb=e=>{const t=lC(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:sg(t,-1)},Ai=Object.assign(e=>({add:(...t)=>Ai(Yb(e,...t)),subtract:(...t)=>Ai(Xb(e,...t)),multiply:(...t)=>Ai(sg(e,...t)),divide:(...t)=>Ai(Jb(e,...t)),negate:()=>Ai(Zb(e)),toString:()=>e.toString()}),{add:Yb,subtract:Xb,multiply:sg,divide:Jb,negate:Zb});function OO(e,t="-"){return e.replace(/\s+/g,t)}function MO(e){const t=OO(e.toString());return FO($O(t))}function $O(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function FO(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function LO(e,t=""){return[t,e].filter(Boolean).join("-")}function zO(e,t){return`var(${e}${t?`, ${t}`:""})`}function BO(e,t=""){return MO(`--${LO(e,t)}`)}function ie(e,t,r){const n=BO(e,r);return{variable:n,reference:zO(n,t)}}function IO(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,i]=n;r[o]=ie(`${e}-${o}`,i);continue}r[n]=ie(`${e}-${n}`)}return r}function jO(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function NO(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function lg(e){if(e==null)return e;const{unitless:t}=NO(e);return t||typeof e=="number"?`${e}px`:e}var uC=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,a0=e=>Object.fromEntries(Object.entries(e).sort(uC));function e1(e){const t=a0(e);return Object.assign(Object.values(t),t)}function VO(e){const t=Object.keys(a0(e));return new Set(t)}function t1(e){var t;if(!e)return e;e=(t=lg(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function yl(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${lg(e)})`),t&&r.push("and",`(max-width: ${lg(t)})`),r.join(" ")}function UO(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=e1(e),n=Object.entries(e).sort(uC).map(([a,s],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?t1(d):void 0,{_minW:t1(s),breakpoint:a,minW:s,maxW:d,maxWQuery:yl(null,d),minWQuery:yl(s),minMaxQuery:yl(s,d)}}),o=VO(e),i=Array.from(o.values());return{keys:o,normalized:r,isResponsive(a){const s=Object.keys(a);return s.length>0&&s.every(l=>o.has(l))},asObject:a0(e),asArray:e1(e),details:n,get(a){return n.find(s=>s.breakpoint===a)},media:[null,...r.map(a=>yl(a)).slice(1)],toArrayValue(a){if(!uo(a))throw new Error("toArrayValue: value must be an object");const s=i.map(l=>{var u;return(u=a[l])!=null?u:null});for(;jO(s)===null;)s.pop();return s},toObjectValue(a){if(!Array.isArray(a))throw new Error("toObjectValue: value must be an array");return a.reduce((s,l,u)=>{const c=i[u];return c!=null&&l!=null&&(s[c]=l),s},{})}}}var Dt={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Do=e=>cC(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Jn=e=>cC(t=>e(t,"~ &"),"[data-peer]",".peer"),cC=(e,...t)=>t.map(e).join(", "),sh={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Do(Dt.hover),_peerHover:Jn(Dt.hover),_groupFocus:Do(Dt.focus),_peerFocus:Jn(Dt.focus),_groupFocusVisible:Do(Dt.focusVisible),_peerFocusVisible:Jn(Dt.focusVisible),_groupActive:Do(Dt.active),_peerActive:Jn(Dt.active),_groupDisabled:Do(Dt.disabled),_peerDisabled:Jn(Dt.disabled),_groupInvalid:Do(Dt.invalid),_peerInvalid:Jn(Dt.invalid),_groupChecked:Do(Dt.checked),_peerChecked:Jn(Dt.checked),_groupFocusWithin:Do(Dt.focusWithin),_peerFocusWithin:Jn(Dt.focusWithin),_peerPlaceholderShown:Jn(Dt.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},dC=Object.keys(sh);function r1(e,t){return ie(String(e).replace(/\./g,"-"),void 0,t)}function WO(e,t){let r={};const n={};for(const[o,i]of Object.entries(e)){const{isSemantic:a,value:s}=i,{variable:l,reference:u}=r1(o,t==null?void 0:t.cssVarPrefix);if(!a){if(o.startsWith("space")){const f=o.split("."),[h,...v]=f,g=`${h}.-${v.join(".")}`,x=Ai.negate(s),p=Ai.negate(u);n[g]={value:x,var:l,varRef:p}}r[l]=s,n[o]={value:s,var:l,varRef:u};continue}const c=f=>{const v=[String(o).split(".")[0],f].join(".");if(!e[v])return f;const{reference:x}=r1(v,t==null?void 0:t.cssVarPrefix);return x},d=uo(s)?s:{default:s};r=Hr(r,Object.entries(d).reduce((f,[h,v])=>{var g,x;if(!v)return f;const p=c(`${v}`);if(h==="default")return f[l]=p,f;const m=(x=(g=sh)==null?void 0:g[h])!=null?x:h;return f[m]={[l]:p},f},{})),n[o]={value:u,var:l,varRef:u}}return{cssVars:r,cssMap:n}}function HO(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function GO(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function KO(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function n1(e,t,r={}){const{stop:n,getKey:o}=r;function i(a,s=[]){var l;if(KO(a)||Array.isArray(a)){const u={};for(const[c,d]of Object.entries(a)){const f=(l=o==null?void 0:o(c))!=null?l:c,h=[...s,f];if(n!=null&&n(a,h))return t(a,s);u[f]=i(d,h)}return u}return t(a,s)}return i(e)}var qO=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function QO(e){return GO(e,qO)}function YO(e){return e.semanticTokens}function XO(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}var JO=e=>dC.includes(e)||e==="default";function ZO({tokens:e,semanticTokens:t}){const r={};return n1(e,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!1,value:n})}),n1(t,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(JO)}),r}function e5(e){var t;const r=XO(e),n=QO(r),o=YO(r),i=ZO({tokens:n,semanticTokens:o}),a=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:s,cssVars:l}=WO(i,{cssVarPrefix:a});return Object.assign(r,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...l},__cssMap:s,__breakpoints:UO(r.breakpoints)}),r}var s0=Hr({},cd,Pe,gO,rf,Ir,vO,_O,yO,sC,CO,zl,ag,Ge,DO,AO,TO,PO,bO,RO),t5=Object.assign({},Ge,Ir,rf,sC,zl),TH=Object.keys(t5),r5=[...Object.keys(s0),...dC],n5={...s0,...sh},o5=e=>e in n5,i5=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,i={};for(const a in e){let s=zi(e[a],t);if(s==null)continue;if(s=uo(s)&&r(s)?n(s):s,!Array.isArray(s)){i[a]=s;continue}const l=s.slice(0,o.length).length;for(let u=0;u<l;u+=1){const c=o==null?void 0:o[u];if(!c){i[a]=s[u];continue}i[c]=i[c]||{},s[u]!=null&&(i[c][a]=s[u])}}return i};function a5(e){const t=[];let r="",n=!1;for(let o=0;o<e.length;o++){const i=e[o];i==="("?(n=!0,r+=i):i===")"?(n=!1,r+=i):i===","&&!n?(t.push(r),r=""):r+=i}return r=r.trim(),r&&t.push(r),t}function s5(e){return/^var\(--.+\)$/.test(e)}var l5=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!s5(t),u5=(e,t)=>{var r,n;if(t==null)return t;const o=l=>{var u,c;return(c=(u=e.__cssMap)==null?void 0:u[l])==null?void 0:c.varRef},i=l=>{var u;return(u=o(l))!=null?u:l},[a,s]=a5(t);return t=(n=(r=o(a))!=null?r:i(s))!=null?n:i(t),t};function c5(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(i,a=!1)=>{var s,l,u;const c=zi(i,n),d=i5(c)(n);let f={};for(let h in d){const v=d[h];let g=zi(v,n);h in r&&(h=r[h]),l5(h,g)&&(g=u5(n,g));let x=t[h];if(x===!0&&(x={property:h}),uo(g)){f[h]=(s=f[h])!=null?s:{},f[h]=Hr({},f[h],o(g,!0));continue}let p=(u=(l=x==null?void 0:x.transform)==null?void 0:l.call(x,g,n,c))!=null?u:g;p=x!=null&&x.processResult?o(p,!0):p;const m=zi(x==null?void 0:x.property,n);if(!a&&(x!=null&&x.static)){const b=zi(x.static,n);f=Hr({},f,b)}if(m&&Array.isArray(m)){for(const b of m)f[b]=p;continue}if(m){m==="&"&&uo(p)?f=Hr({},f,p):f[m]=p;continue}if(uo(p)){f=Hr({},f,p);continue}f[h]=p}return f};return o}var fC=e=>t=>c5({theme:t,pseudos:sh,configs:s0})(e);function We(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function d5(e,t){if(Array.isArray(e))return e;if(uo(e))return t(e);if(e!=null)return[e]}function f5(e,t){for(let r=t+1;r<e.length;r++)if(e[r]!=null)return r;return-1}function h5(e){const t=e.__breakpoints;return function(n,o,i,a){var s,l;if(!t)return;const u={},c=d5(i,t.toArrayValue);if(!c)return u;const d=c.length,f=d===1,h=!!n.parts;for(let v=0;v<d;v++){const g=t.details[v],x=t.details[f5(c,v)],p=yl(g.minW,x==null?void 0:x._minW),m=zi((s=n[o])==null?void 0:s[c[v]],a);if(m){if(h){(l=n.parts)==null||l.forEach(b=>{Hr(u,{[b]:f?m[b]:{[p]:m[b]}})});continue}if(!h){f?Hr(u,m):u[p]=m;continue}u[p]=m}}return u}}function p5(e){return t=>{var r;const{variant:n,size:o,theme:i}=t,a=h5(i);return Hr({},zi((r=e.baseStyle)!=null?r:{},t),a(e,"sizes",o,t),a(e,"variants",n,t))}}function PH(e,t,r){var n,o,i;return(i=(o=(n=e.__cssMap)==null?void 0:n[`${t}.${r}`])==null?void 0:o.varRef)!=null?i:r}function xn(e){return HO(e,["styleConfig","size","variant","colorScheme"])}function m5(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var g5=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function v5(e){return m5(e)?g5.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var y5={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},b5={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},x5={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},w5={property:y5,easing:b5,duration:x5},S5=w5,E5={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},k5=E5,C5={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},_5=C5,T5={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},P5=T5,R5={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},A5=R5,D5={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},O5=D5,M5={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},$5=M5,F5={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},L5=F5,z5={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},hC=z5,pC={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},B5={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},I5={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},j5={...pC,...B5,container:I5},mC=j5,N5={breakpoints:P5,zIndices:k5,radii:O5,blur:L5,colors:A5,...hC,sizes:mC,shadows:$5,space:pC,borders:_5,transition:S5},{defineMultiStyleConfig:V5,definePartsStyle:bl}=We(["stepper","step","title","description","indicator","separator","icon","number"]),ro=ie("stepper-indicator-size"),za=ie("stepper-icon-size"),Ba=ie("stepper-title-font-size"),xl=ie("stepper-description-font-size"),ol=ie("stepper-accent-color"),U5=bl(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[ol.variable]:`colors.${e}.500`,_dark:{[ol.variable]:`colors.${e}.200`}},title:{fontSize:Ba.reference,fontWeight:"medium"},description:{fontSize:xl.reference,color:"chakra-subtle-text"},number:{fontSize:Ba.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:za.reference,height:za.reference},indicator:{flexShrink:0,borderRadius:"full",width:ro.reference,height:ro.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:ol.reference},"&[data-status=complete]":{bg:ol.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:ol.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${ro.reference} - 8px)`,top:`calc(${ro.reference} + 4px)`,insetStart:`calc(${ro.reference} / 2 - 1px)`}}})),W5=V5({baseStyle:U5,sizes:{xs:bl({stepper:{[ro.variable]:"sizes.4",[za.variable]:"sizes.3",[Ba.variable]:"fontSizes.xs",[xl.variable]:"fontSizes.xs"}}),sm:bl({stepper:{[ro.variable]:"sizes.6",[za.variable]:"sizes.4",[Ba.variable]:"fontSizes.sm",[xl.variable]:"fontSizes.xs"}}),md:bl({stepper:{[ro.variable]:"sizes.8",[za.variable]:"sizes.5",[Ba.variable]:"fontSizes.md",[xl.variable]:"fontSizes.sm"}}),lg:bl({stepper:{[ro.variable]:"sizes.10",[za.variable]:"sizes.6",[Ba.variable]:"fontSizes.lg",[xl.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Oe(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){n();for(const d of c)t[d]=l(d);return Oe(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return Oe(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const h=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:a,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var H5=Oe("accordion").parts("root","container","button","panel").extend("icon"),G5=Oe("alert").parts("title","description","container").extend("icon","spinner"),K5=Oe("avatar").parts("label","badge","container").extend("excessLabel","group"),q5=Oe("breadcrumb").parts("link","item","container").extend("separator");Oe("button").parts();var Q5=Oe("checkbox").parts("control","icon","container").extend("label");Oe("progress").parts("track","filledTrack").extend("label");var Y5=Oe("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),X5=Oe("editable").parts("preview","input","textarea"),J5=Oe("form").parts("container","requiredIndicator","helperText"),Z5=Oe("formError").parts("text","icon"),eM=Oe("input").parts("addon","field","element","group"),tM=Oe("list").parts("container","item","icon"),rM=Oe("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),nM=Oe("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),oM=Oe("numberinput").parts("root","field","stepperGroup","stepper");Oe("pininput").parts("field");var iM=Oe("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),aM=Oe("progress").parts("label","filledTrack","track"),sM=Oe("radio").parts("container","control","label"),lM=Oe("select").parts("field","icon"),uM=Oe("slider").parts("container","track","thumb","filledTrack","mark"),cM=Oe("stat").parts("container","label","helpText","number","icon"),dM=Oe("switch").parts("container","track","thumb","label"),fM=Oe("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),hM=Oe("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),pM=Oe("tag").parts("container","label","closeButton"),mM=Oe("card").parts("container","header","body","footer");Oe("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Bi(e,t,r){return Math.min(Math.max(e,r),t)}class gM extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var wl=gM;function l0(e){if(typeof e!="string")throw new wl(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=kM.test(e)?bM(e):e;const r=xM.exec(t);if(r){const a=Array.from(r).slice(1);return[...a.slice(0,3).map(s=>parseInt(gu(s,2),16)),parseInt(gu(a[3]||"f",2),16)/255]}const n=wM.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,16)),parseInt(a[3]||"ff",16)/255]}const o=SM.exec(t);if(o){const a=Array.from(o).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,10)),parseFloat(a[3]||"1")]}const i=EM.exec(t);if(i){const[a,s,l,u]=Array.from(i).slice(1).map(parseFloat);if(Bi(0,100,s)!==s)throw new wl(e);if(Bi(0,100,l)!==l)throw new wl(e);return[...CM(a,s,l),Number.isNaN(u)?1:u]}throw new wl(e)}function vM(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const o1=e=>parseInt(e.replace(/_/g,""),36),yM="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const r=o1(t.substring(0,3)),n=o1(t.substring(3)).toString(16);let o="";for(let i=0;i<6-n.length;i++)o+="0";return e[r]=`${o}${n}`,e},{});function bM(e){const t=e.toLowerCase().trim(),r=yM[vM(t)];if(!r)throw new wl(e);return`#${r}`}const gu=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),xM=new RegExp(`^#${gu("([a-f0-9])",3)}([a-f0-9])?$`,"i"),wM=new RegExp(`^#${gu("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),SM=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${gu(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),EM=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,kM=/^[a-z]+$/i,i1=e=>Math.round(e*255),CM=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(i1);const o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*(t/100),a=i*(1-Math.abs(o%2-1));let s=0,l=0,u=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,u=a):o>=3&&o<4?(l=a,u=i):o>=4&&o<5?(s=a,u=i):o>=5&&o<6&&(s=i,u=a);const c=n-i/2,d=s+c,f=l+c,h=u+c;return[d,f,h].map(i1)};function _M(e,t,r,n){return`rgba(${Bi(0,255,e).toFixed()}, ${Bi(0,255,t).toFixed()}, ${Bi(0,255,r).toFixed()}, ${parseFloat(Bi(0,1,n).toFixed(3))})`}function TM(e,t){const[r,n,o,i]=l0(e);return _M(r,n,o,i-t)}function PM(e){const[t,r,n,o]=l0(e);let i=a=>{const s=Bi(0,255,a).toString(16);return s.length===1?`0${s}`:s};return`#${i(t)}${i(r)}${i(n)}${o<1?i(Math.round(o*255)):""}`}function RM(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;n<t.length;n++)e=e?e[t[n]]:o;return e===o?r:e}var AM=e=>Object.keys(e).length===0,Jt=(e,t,r)=>{const n=RM(e,`colors.${t}`,t);try{return PM(n),n}catch{return r??"#000000"}},DM=e=>{const[t,r,n]=l0(e);return(t*299+r*587+n*114)/1e3},OM=e=>t=>{const r=Jt(t,e);return DM(r)<128?"dark":"light"},MM=e=>t=>OM(e)(t)==="dark",Cs=(e,t)=>r=>{const n=Jt(r,e);return TM(n,1-t)};function a1(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
    45deg,
    ${t} 25%,
    transparent 25%,
    transparent 50%,
    ${t} 50%,
    ${t} 75%,
    transparent 75%,
    transparent
  )`,backgroundSize:`${e} ${e}`}}var $M=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function FM(e){const t=$M();return!e||AM(e)?t:e.string&&e.colors?zM(e.string,e.colors):e.string&&!e.colors?LM(e.string):e.colors&&!e.string?BM(e.colors):t}function LM(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t),t=t&t;let r="#";for(let n=0;n<3;n+=1){const o=t>>n*8&255;r+=`00${o.toString(16)}`.substr(-2)}return r}function zM(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;n<e.length;n+=1)r=e.charCodeAt(n)+((r<<5)-r),r=r&r;return r=(r%t.length+t.length)%t.length,t[r]}function BM(e){return e[Math.floor(Math.random()*e.length)]}function oe(e,t){return r=>r.colorMode==="dark"?t:e}function u0(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function IM(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function gC(e){return IM(e)&&e.reference?e.reference:String(e)}var lh=(e,...t)=>t.map(gC).join(` ${e} `).replace(/calc/g,""),s1=(...e)=>`calc(${lh("+",...e)})`,l1=(...e)=>`calc(${lh("-",...e)})`,ug=(...e)=>`calc(${lh("*",...e)})`,u1=(...e)=>`calc(${lh("/",...e)})`,c1=e=>{const t=gC(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:ug(t,-1)},no=Object.assign(e=>({add:(...t)=>no(s1(e,...t)),subtract:(...t)=>no(l1(e,...t)),multiply:(...t)=>no(ug(e,...t)),divide:(...t)=>no(u1(e,...t)),negate:()=>no(c1(e)),toString:()=>e.toString()}),{add:s1,subtract:l1,multiply:ug,divide:u1,negate:c1});function jM(e){return!Number.isInteger(parseFloat(e.toString()))}function NM(e,t="-"){return e.replace(/\s+/g,t)}function vC(e){const t=NM(e.toString());return t.includes("\\.")?e:jM(e)?t.replace(".","\\."):e}function VM(e,t=""){return[t,vC(e)].filter(Boolean).join("-")}function UM(e,t){return`var(${vC(e)}${t?`, ${t}`:""})`}function WM(e,t=""){return`--${VM(e,t)}`}function Et(e,t){const r=WM(e,void 0);return{variable:r,reference:UM(r,HM(void 0))}}function HM(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:GM,definePartsStyle:dd}=We(dM.keys),Bl=Et("switch-track-width"),qi=Et("switch-track-height"),bp=Et("switch-track-diff"),KM=no.subtract(Bl,qi),cg=Et("switch-thumb-x"),il=Et("switch-bg"),qM=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Bl.reference],height:[qi.reference],transitionProperty:"common",transitionDuration:"fast",[il.variable]:"colors.gray.300",_dark:{[il.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[il.variable]:`colors.${t}.500`,_dark:{[il.variable]:`colors.${t}.200`}},bg:il.reference}},QM={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[qi.reference],height:[qi.reference],_checked:{transform:`translateX(${cg.reference})`}},YM=dd(e=>({container:{[bp.variable]:KM,[cg.variable]:bp.reference,_rtl:{[cg.variable]:no(bp).negate().toString()}},track:qM(e),thumb:QM})),XM={sm:dd({container:{[Bl.variable]:"1.375rem",[qi.variable]:"sizes.3"}}),md:dd({container:{[Bl.variable]:"1.875rem",[qi.variable]:"sizes.4"}}),lg:dd({container:{[Bl.variable]:"2.875rem",[qi.variable]:"sizes.6"}})},JM=GM({baseStyle:YM,sizes:XM,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ZM,definePartsStyle:ts}=We(fM.keys),e$=ts({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),nf={"&[data-is-numeric=true]":{textAlign:"end"}},t$=ts(e=>{const{colorScheme:t}=e;return{th:{color:oe("gray.600","gray.400")(e),borderBottom:"1px",borderColor:oe(`${t}.100`,`${t}.700`)(e),...nf},td:{borderBottom:"1px",borderColor:oe(`${t}.100`,`${t}.700`)(e),...nf},caption:{color:oe("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),r$=ts(e=>{const{colorScheme:t}=e;return{th:{color:oe("gray.600","gray.400")(e),borderBottom:"1px",borderColor:oe(`${t}.100`,`${t}.700`)(e),...nf},td:{borderBottom:"1px",borderColor:oe(`${t}.100`,`${t}.700`)(e),...nf},caption:{color:oe("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:oe(`${t}.100`,`${t}.700`)(e)},td:{background:oe(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),n$={simple:t$,striped:r$,unstyled:{}},o$={sm:ts({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:ts({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:ts({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},i$=ZM({baseStyle:e$,variants:n$,sizes:o$,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),ar=ie("tabs-color"),gn=ie("tabs-bg"),Fc=ie("tabs-border-color"),{defineMultiStyleConfig:a$,definePartsStyle:Un}=We(hM.keys),s$=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},l$=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},u$=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},c$={p:4},d$=Un(e=>({root:s$(e),tab:l$(e),tablist:u$(e),tabpanel:c$})),f$={sm:Un({tab:{py:1,px:4,fontSize:"sm"}}),md:Un({tab:{fontSize:"md",py:2,px:4}}),lg:Un({tab:{fontSize:"lg",py:3,px:4}})},h$=Un(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",o=n?"borderStart":"borderBottom",i=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[ar.variable]:`colors.${t}.600`,_dark:{[ar.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[gn.variable]:"colors.gray.200",_dark:{[gn.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:ar.reference,bg:gn.reference}}}),p$=Un(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Fc.variable]:"transparent",_selected:{[ar.variable]:`colors.${t}.600`,[Fc.variable]:"colors.white",_dark:{[ar.variable]:`colors.${t}.300`,[Fc.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Fc.reference},color:ar.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),m$=Un(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[gn.variable]:"colors.gray.50",_dark:{[gn.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[gn.variable]:"colors.white",[ar.variable]:`colors.${t}.600`,_dark:{[gn.variable]:"colors.gray.800",[ar.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:ar.reference,bg:gn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),g$=Un(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Jt(r,`${t}.700`),bg:Jt(r,`${t}.100`)}}}}),v$=Un(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[ar.variable]:"colors.gray.600",_dark:{[ar.variable]:"inherit"},_selected:{[ar.variable]:"colors.white",[gn.variable]:`colors.${t}.600`,_dark:{[ar.variable]:"colors.gray.800",[gn.variable]:`colors.${t}.300`}},color:ar.reference,bg:gn.reference}}}),y$=Un({}),b$={line:h$,enclosed:p$,"enclosed-colored":m$,"soft-rounded":g$,"solid-rounded":v$,unstyled:y$},x$=a$({baseStyle:d$,sizes:f$,variants:b$,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),mt=IO("badge",["bg","color","shadow"]),w$={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:mt.bg.reference,color:mt.color.reference,boxShadow:mt.shadow.reference},S$=e=>{const{colorScheme:t,theme:r}=e,n=Cs(`${t}.500`,.6)(r);return{[mt.bg.variable]:`colors.${t}.500`,[mt.color.variable]:"colors.white",_dark:{[mt.bg.variable]:n,[mt.color.variable]:"colors.whiteAlpha.800"}}},E$=e=>{const{colorScheme:t,theme:r}=e,n=Cs(`${t}.200`,.16)(r);return{[mt.bg.variable]:`colors.${t}.100`,[mt.color.variable]:`colors.${t}.800`,_dark:{[mt.bg.variable]:n,[mt.color.variable]:`colors.${t}.200`}}},k$=e=>{const{colorScheme:t,theme:r}=e,n=Cs(`${t}.200`,.8)(r);return{[mt.color.variable]:`colors.${t}.500`,_dark:{[mt.color.variable]:n},[mt.shadow.variable]:`inset 0 0 0px 1px ${mt.color.reference}`}},C$={solid:S$,subtle:E$,outline:k$},Il={baseStyle:w$,variants:C$,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:_$,definePartsStyle:Qi}=We(pM.keys),d1=ie("tag-bg"),f1=ie("tag-color"),xp=ie("tag-shadow"),fd=ie("tag-min-height"),hd=ie("tag-min-width"),pd=ie("tag-font-size"),md=ie("tag-padding-inline"),T$={fontWeight:"medium",lineHeight:1.2,outline:0,[f1.variable]:mt.color.reference,[d1.variable]:mt.bg.reference,[xp.variable]:mt.shadow.reference,color:f1.reference,bg:d1.reference,boxShadow:xp.reference,borderRadius:"md",minH:fd.reference,minW:hd.reference,fontSize:pd.reference,px:md.reference,_focusVisible:{[xp.variable]:"shadows.outline"}},P$={lineHeight:1.2,overflow:"visible"},R$={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},A$=Qi({container:T$,label:P$,closeButton:R$}),D$={sm:Qi({container:{[fd.variable]:"sizes.5",[hd.variable]:"sizes.5",[pd.variable]:"fontSizes.xs",[md.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Qi({container:{[fd.variable]:"sizes.6",[hd.variable]:"sizes.6",[pd.variable]:"fontSizes.sm",[md.variable]:"space.2"}}),lg:Qi({container:{[fd.variable]:"sizes.8",[hd.variable]:"sizes.8",[pd.variable]:"fontSizes.md",[md.variable]:"space.3"}})},O$={subtle:Qi(e=>{var t;return{container:(t=Il.variants)==null?void 0:t.subtle(e)}}),solid:Qi(e=>{var t;return{container:(t=Il.variants)==null?void 0:t.solid(e)}}),outline:Qi(e=>{var t;return{container:(t=Il.variants)==null?void 0:t.outline(e)}})},M$=_$({variants:O$,baseStyle:A$,sizes:D$,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:so,defineMultiStyleConfig:$$}=We(eM.keys),Ia=ie("input-height"),ja=ie("input-font-size"),Na=ie("input-padding"),Va=ie("input-border-radius"),F$=so({addon:{height:Ia.reference,fontSize:ja.reference,px:Na.reference,borderRadius:Va.reference},field:{width:"100%",height:Ia.reference,fontSize:ja.reference,px:Na.reference,borderRadius:Va.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Oo={lg:{[ja.variable]:"fontSizes.lg",[Na.variable]:"space.4",[Va.variable]:"radii.md",[Ia.variable]:"sizes.12"},md:{[ja.variable]:"fontSizes.md",[Na.variable]:"space.4",[Va.variable]:"radii.md",[Ia.variable]:"sizes.10"},sm:{[ja.variable]:"fontSizes.sm",[Na.variable]:"space.3",[Va.variable]:"radii.sm",[Ia.variable]:"sizes.8"},xs:{[ja.variable]:"fontSizes.xs",[Na.variable]:"space.2",[Va.variable]:"radii.sm",[Ia.variable]:"sizes.6"}},L$={lg:so({field:Oo.lg,group:Oo.lg}),md:so({field:Oo.md,group:Oo.md}),sm:so({field:Oo.sm,group:Oo.sm}),xs:so({field:Oo.xs,group:Oo.xs})};function c0(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||oe("blue.500","blue.300")(e),errorBorderColor:r||oe("red.500","red.300")(e)}}var z$=so(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=c0(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:oe("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Jt(t,n),boxShadow:`0 0 0 1px ${Jt(t,n)}`},_focusVisible:{zIndex:1,borderColor:Jt(t,r),boxShadow:`0 0 0 1px ${Jt(t,r)}`}},addon:{border:"1px solid",borderColor:oe("inherit","whiteAlpha.50")(e),bg:oe("gray.100","whiteAlpha.300")(e)}}}),B$=so(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=c0(e);return{field:{border:"2px solid",borderColor:"transparent",bg:oe("gray.100","whiteAlpha.50")(e),_hover:{bg:oe("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Jt(t,n)},_focusVisible:{bg:"transparent",borderColor:Jt(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:oe("gray.100","whiteAlpha.50")(e)}}}),I$=so(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=c0(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Jt(t,n),boxShadow:`0px 1px 0px 0px ${Jt(t,n)}`},_focusVisible:{borderColor:Jt(t,r),boxShadow:`0px 1px 0px 0px ${Jt(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),j$=so({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),N$={outline:z$,filled:B$,flushed:I$,unstyled:j$},De=$$({baseStyle:F$,sizes:L$,variants:N$,defaultProps:{size:"md",variant:"outline"}}),h1,V$={...(h1=De.baseStyle)==null?void 0:h1.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},p1,m1,U$={outline:e=>{var t,r;return(r=(t=De.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=De.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=De.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(m1=(p1=De.variants)==null?void 0:p1.unstyled.field)!=null?m1:{}},g1,v1,y1,b1,x1,w1,S1,E1,W$={xs:(v1=(g1=De.sizes)==null?void 0:g1.xs.field)!=null?v1:{},sm:(b1=(y1=De.sizes)==null?void 0:y1.sm.field)!=null?b1:{},md:(w1=(x1=De.sizes)==null?void 0:x1.md.field)!=null?w1:{},lg:(E1=(S1=De.sizes)==null?void 0:S1.lg.field)!=null?E1:{}},H$={baseStyle:V$,sizes:W$,variants:U$,defaultProps:{size:"md",variant:"outline"}},Lc=Et("tooltip-bg"),wp=Et("tooltip-fg"),G$=Et("popper-arrow-bg"),K$={bg:Lc.reference,color:wp.reference,[Lc.variable]:"colors.gray.700",[wp.variable]:"colors.whiteAlpha.900",_dark:{[Lc.variable]:"colors.gray.300",[wp.variable]:"colors.gray.900"},[G$.variable]:Lc.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},q$={baseStyle:K$},{defineMultiStyleConfig:Q$,definePartsStyle:Sl}=We(aM.keys),Y$=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,i=oe(a1(),a1("1rem","rgba(0,0,0,0.1)"))(e),a=oe(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(
    to right,
    transparent 0%,
    ${Jt(r,a)} 50%,
    transparent 100%
  )`;return{...!n&&o&&i,...n?{bgImage:s}:{bgColor:a}}},X$={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},J$=e=>({bg:oe("gray.100","whiteAlpha.300")(e)}),Z$=e=>({transitionProperty:"common",transitionDuration:"slow",...Y$(e)}),eF=Sl(e=>({label:X$,filledTrack:Z$(e),track:J$(e)})),tF={xs:Sl({track:{h:"1"}}),sm:Sl({track:{h:"2"}}),md:Sl({track:{h:"3"}}),lg:Sl({track:{h:"4"}})},rF=Q$({sizes:tF,baseStyle:eF,defaultProps:{size:"md",colorScheme:"blue"}}),nF=e=>typeof e=="function";function er(e,...t){return nF(e)?e(...t):e}var{definePartsStyle:gd,defineMultiStyleConfig:oF}=We(Q5.keys),jl=ie("checkbox-size"),iF=e=>{const{colorScheme:t}=e;return{w:jl.reference,h:jl.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:oe(`${t}.500`,`${t}.200`)(e),borderColor:oe(`${t}.500`,`${t}.200`)(e),color:oe("white","gray.900")(e),_hover:{bg:oe(`${t}.600`,`${t}.300`)(e),borderColor:oe(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:oe("gray.200","transparent")(e),bg:oe("gray.200","whiteAlpha.300")(e),color:oe("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:oe(`${t}.500`,`${t}.200`)(e),borderColor:oe(`${t}.500`,`${t}.200`)(e),color:oe("white","gray.900")(e)},_disabled:{bg:oe("gray.100","whiteAlpha.100")(e),borderColor:oe("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:oe("red.500","red.300")(e)}}},aF={_disabled:{cursor:"not-allowed"}},sF={userSelect:"none",_disabled:{opacity:.4}},lF={transitionProperty:"transform",transitionDuration:"normal"},uF=gd(e=>({icon:lF,container:aF,control:er(iF,e),label:sF})),cF={sm:gd({control:{[jl.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:gd({control:{[jl.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:gd({control:{[jl.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},of=oF({baseStyle:uF,sizes:cF,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:dF,definePartsStyle:vd}=We(sM.keys),fF=e=>{var t;const r=(t=er(of.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},hF=vd(e=>{var t,r,n,o;return{label:(r=(t=of).baseStyle)==null?void 0:r.call(t,e).label,container:(o=(n=of).baseStyle)==null?void 0:o.call(n,e).container,control:fF(e)}}),pF={md:vd({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:vd({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:vd({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},mF=dF({baseStyle:hF,sizes:pF,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:gF,definePartsStyle:vF}=We(lM.keys),zc=ie("select-bg"),k1,yF={...(k1=De.baseStyle)==null?void 0:k1.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:zc.reference,[zc.variable]:"colors.white",_dark:{[zc.variable]:"colors.gray.700"},"> option, > optgroup":{bg:zc.reference}},bF={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},xF=vF({field:yF,icon:bF}),Bc={paddingInlineEnd:"8"},C1,_1,T1,P1,R1,A1,D1,O1,wF={lg:{...(C1=De.sizes)==null?void 0:C1.lg,field:{...(_1=De.sizes)==null?void 0:_1.lg.field,...Bc}},md:{...(T1=De.sizes)==null?void 0:T1.md,field:{...(P1=De.sizes)==null?void 0:P1.md.field,...Bc}},sm:{...(R1=De.sizes)==null?void 0:R1.sm,field:{...(A1=De.sizes)==null?void 0:A1.sm.field,...Bc}},xs:{...(D1=De.sizes)==null?void 0:D1.xs,field:{...(O1=De.sizes)==null?void 0:O1.xs.field,...Bc},icon:{insetEnd:"1"}}},SF=gF({baseStyle:xF,sizes:wF,variants:De.variants,defaultProps:De.defaultProps}),Sp=ie("skeleton-start-color"),Ep=ie("skeleton-end-color"),EF={[Sp.variable]:"colors.gray.100",[Ep.variable]:"colors.gray.400",_dark:{[Sp.variable]:"colors.gray.800",[Ep.variable]:"colors.gray.600"},background:Sp.reference,borderColor:Ep.reference,opacity:.7,borderRadius:"sm"},kF={baseStyle:EF},kp=ie("skip-link-bg"),CF={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[kp.variable]:"colors.white",_dark:{[kp.variable]:"colors.gray.700"},bg:kp.reference}},_F={baseStyle:CF},{defineMultiStyleConfig:TF,definePartsStyle:uh}=We(uM.keys),vu=ie("slider-thumb-size"),yu=ie("slider-track-size"),No=ie("slider-bg"),PF=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...u0({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},RF=e=>({...u0({orientation:e.orientation,horizontal:{h:yu.reference},vertical:{w:yu.reference}}),overflow:"hidden",borderRadius:"sm",[No.variable]:"colors.gray.200",_dark:{[No.variable]:"colors.whiteAlpha.200"},_disabled:{[No.variable]:"colors.gray.300",_dark:{[No.variable]:"colors.whiteAlpha.300"}},bg:No.reference}),AF=e=>{const{orientation:t}=e;return{...u0({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:vu.reference,h:vu.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},DF=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[No.variable]:`colors.${t}.500`,_dark:{[No.variable]:`colors.${t}.200`},bg:No.reference}},OF=uh(e=>({container:PF(e),track:RF(e),thumb:AF(e),filledTrack:DF(e)})),MF=uh({container:{[vu.variable]:"sizes.4",[yu.variable]:"sizes.1"}}),$F=uh({container:{[vu.variable]:"sizes.3.5",[yu.variable]:"sizes.1"}}),FF=uh({container:{[vu.variable]:"sizes.2.5",[yu.variable]:"sizes.0.5"}}),LF={lg:MF,md:$F,sm:FF},zF=TF({baseStyle:OF,sizes:LF,defaultProps:{size:"md",colorScheme:"blue"}}),Di=Et("spinner-size"),BF={width:[Di.reference],height:[Di.reference]},IF={xs:{[Di.variable]:"sizes.3"},sm:{[Di.variable]:"sizes.4"},md:{[Di.variable]:"sizes.6"},lg:{[Di.variable]:"sizes.8"},xl:{[Di.variable]:"sizes.12"}},jF={baseStyle:BF,sizes:IF,defaultProps:{size:"md"}},{defineMultiStyleConfig:NF,definePartsStyle:yC}=We(cM.keys),VF={fontWeight:"medium"},UF={opacity:.8,marginBottom:"2"},WF={verticalAlign:"baseline",fontWeight:"semibold"},HF={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},GF=yC({container:{},label:VF,helpText:UF,number:WF,icon:HF}),KF={md:yC({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},qF=NF({baseStyle:GF,sizes:KF,defaultProps:{size:"md"}}),Cp=ie("kbd-bg"),QF={[Cp.variable]:"colors.gray.100",_dark:{[Cp.variable]:"colors.whiteAlpha.100"},bg:Cp.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},YF={baseStyle:QF},XF={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},JF={baseStyle:XF},{defineMultiStyleConfig:ZF,definePartsStyle:eL}=We(tM.keys),tL={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},rL=eL({icon:tL}),nL=ZF({baseStyle:rL}),{defineMultiStyleConfig:oL,definePartsStyle:iL}=We(rM.keys),Mn=ie("menu-bg"),_p=ie("menu-shadow"),aL={[Mn.variable]:"#fff",[_p.variable]:"shadows.sm",_dark:{[Mn.variable]:"colors.gray.700",[_p.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Mn.reference,boxShadow:_p.reference},sL={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Mn.variable]:"colors.gray.100",_dark:{[Mn.variable]:"colors.whiteAlpha.100"}},_active:{[Mn.variable]:"colors.gray.200",_dark:{[Mn.variable]:"colors.whiteAlpha.200"}},_expanded:{[Mn.variable]:"colors.gray.100",_dark:{[Mn.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Mn.reference},lL={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},uL={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},cL={opacity:.6},dL={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},fL={transitionProperty:"common",transitionDuration:"normal"},hL=iL({button:fL,list:aL,item:sL,groupTitle:lL,icon:uL,command:cL,divider:dL}),pL=oL({baseStyle:hL}),{defineMultiStyleConfig:mL,definePartsStyle:dg}=We(nM.keys),Tp=ie("modal-bg"),Pp=ie("modal-shadow"),gL={bg:"blackAlpha.600",zIndex:"modal"},vL=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},yL=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[Tp.variable]:"colors.white",[Pp.variable]:"shadows.lg",_dark:{[Tp.variable]:"colors.gray.700",[Pp.variable]:"shadows.dark-lg"},bg:Tp.reference,boxShadow:Pp.reference}},bL={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},xL={position:"absolute",top:"2",insetEnd:"3"},wL=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},SL={px:"6",py:"4"},EL=dg(e=>({overlay:gL,dialogContainer:er(vL,e),dialog:er(yL,e),header:bL,closeButton:xL,body:er(wL,e),footer:SL}));function an(e){return dg(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var kL={xs:an("xs"),sm:an("sm"),md:an("md"),lg:an("lg"),xl:an("xl"),"2xl":an("2xl"),"3xl":an("3xl"),"4xl":an("4xl"),"5xl":an("5xl"),"6xl":an("6xl"),full:an("full")},CL=mL({baseStyle:EL,sizes:kL,defaultProps:{size:"md"}}),{defineMultiStyleConfig:_L,definePartsStyle:bC}=We(oM.keys),d0=Et("number-input-stepper-width"),xC=Et("number-input-input-padding"),TL=no(d0).add("0.5rem").toString(),Rp=Et("number-input-bg"),Ap=Et("number-input-color"),Dp=Et("number-input-border-color"),PL={[d0.variable]:"sizes.6",[xC.variable]:TL},RL=e=>{var t,r;return(r=(t=er(De.baseStyle,e))==null?void 0:t.field)!=null?r:{}},AL={width:d0.reference},DL={borderStart:"1px solid",borderStartColor:Dp.reference,color:Ap.reference,bg:Rp.reference,[Ap.variable]:"colors.chakra-body-text",[Dp.variable]:"colors.chakra-border-color",_dark:{[Ap.variable]:"colors.whiteAlpha.800",[Dp.variable]:"colors.whiteAlpha.300"},_active:{[Rp.variable]:"colors.gray.200",_dark:{[Rp.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},OL=bC(e=>{var t;return{root:PL,field:(t=er(RL,e))!=null?t:{},stepperGroup:AL,stepper:DL}});function Ic(e){var t,r,n;const o=(t=De.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},a=(n=(r=o.field)==null?void 0:r.fontSize)!=null?n:"md",s=hC.fontSizes[a];return bC({field:{...o.field,paddingInlineEnd:xC.reference,verticalAlign:"top"},stepper:{fontSize:no(s).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var ML={xs:Ic("xs"),sm:Ic("sm"),md:Ic("md"),lg:Ic("lg")},$L=_L({baseStyle:OL,sizes:ML,variants:De.variants,defaultProps:De.defaultProps}),M1,FL={...(M1=De.baseStyle)==null?void 0:M1.field,textAlign:"center"},LL={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},$1,F1,zL={outline:e=>{var t,r,n;return(n=(r=er((t=De.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=er((t=De.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=er((t=De.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(F1=($1=De.variants)==null?void 0:$1.unstyled.field)!=null?F1:{}},BL={baseStyle:FL,sizes:LL,variants:zL,defaultProps:De.defaultProps},{defineMultiStyleConfig:IL,definePartsStyle:jL}=We(iM.keys),jc=Et("popper-bg"),NL=Et("popper-arrow-bg"),L1=Et("popper-arrow-shadow-color"),VL={zIndex:10},UL={[jc.variable]:"colors.white",bg:jc.reference,[NL.variable]:jc.reference,[L1.variable]:"colors.gray.200",_dark:{[jc.variable]:"colors.gray.700",[L1.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},WL={px:3,py:2,borderBottomWidth:"1px"},HL={px:3,py:2},GL={px:3,py:2,borderTopWidth:"1px"},KL={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},qL=jL({popper:VL,content:UL,header:WL,body:HL,footer:GL,closeButton:KL}),QL=IL({baseStyle:qL}),{definePartsStyle:fg,defineMultiStyleConfig:YL}=We(Y5.keys),Op=ie("drawer-bg"),Mp=ie("drawer-box-shadow");function wa(e){return fg(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var XL={bg:"blackAlpha.600",zIndex:"modal"},JL={display:"flex",zIndex:"modal",justifyContent:"center"},ZL=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Op.variable]:"colors.white",[Mp.variable]:"shadows.lg",_dark:{[Op.variable]:"colors.gray.700",[Mp.variable]:"shadows.dark-lg"},bg:Op.reference,boxShadow:Mp.reference}},ez={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},tz={position:"absolute",top:"2",insetEnd:"3"},rz={px:"6",py:"2",flex:"1",overflow:"auto"},nz={px:"6",py:"4"},oz=fg(e=>({overlay:XL,dialogContainer:JL,dialog:er(ZL,e),header:ez,closeButton:tz,body:rz,footer:nz})),iz={xs:wa("xs"),sm:wa("md"),md:wa("lg"),lg:wa("2xl"),xl:wa("4xl"),full:wa("full")},az=YL({baseStyle:oz,sizes:iz,defaultProps:{size:"xs"}}),{definePartsStyle:sz,defineMultiStyleConfig:lz}=We(X5.keys),uz={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},cz={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},dz={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},fz=sz({preview:uz,input:cz,textarea:dz}),hz=lz({baseStyle:fz}),{definePartsStyle:pz,defineMultiStyleConfig:mz}=We(J5.keys),rs=ie("form-control-color"),gz={marginStart:"1",[rs.variable]:"colors.red.500",_dark:{[rs.variable]:"colors.red.300"},color:rs.reference},vz={mt:"2",[rs.variable]:"colors.gray.600",_dark:{[rs.variable]:"colors.whiteAlpha.600"},color:rs.reference,lineHeight:"normal",fontSize:"sm"},yz=pz({container:{width:"100%",position:"relative"},requiredIndicator:gz,helperText:vz}),bz=mz({baseStyle:yz}),{definePartsStyle:xz,defineMultiStyleConfig:wz}=We(Z5.keys),ns=ie("form-error-color"),Sz={[ns.variable]:"colors.red.500",_dark:{[ns.variable]:"colors.red.300"},color:ns.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},Ez={marginEnd:"0.5em",[ns.variable]:"colors.red.500",_dark:{[ns.variable]:"colors.red.300"},color:ns.reference},kz=xz({text:Sz,icon:Ez}),Cz=wz({baseStyle:kz}),_z={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},Tz={baseStyle:_z},Pz={fontFamily:"heading",fontWeight:"bold"},Rz={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},Az={baseStyle:Pz,sizes:Rz,defaultProps:{size:"xl"}},{defineMultiStyleConfig:Dz,definePartsStyle:Oz}=We(q5.keys),$p=ie("breadcrumb-link-decor"),Mz={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:$p.reference,[$p.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[$p.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},$z=Oz({link:Mz}),Fz=Dz({baseStyle:$z}),Lz={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},wC=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:oe("gray.800","whiteAlpha.900")(e),_hover:{bg:oe("gray.100","whiteAlpha.200")(e)},_active:{bg:oe("gray.200","whiteAlpha.300")(e)}};const n=Cs(`${t}.200`,.12)(r),o=Cs(`${t}.200`,.24)(r);return{color:oe(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:oe(`${t}.50`,n)(e)},_active:{bg:oe(`${t}.100`,o)(e)}}},zz=e=>{const{colorScheme:t}=e,r=oe("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...er(wC,e)}},Bz={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Iz=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const l=oe("gray.100","whiteAlpha.200")(e);return{bg:l,color:oe("gray.800","whiteAlpha.900")(e),_hover:{bg:oe("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:oe("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:o="white",hoverBg:i=`${r}.600`,activeBg:a=`${r}.700`}=(t=Bz[r])!=null?t:{},s=oe(n,`${r}.200`)(e);return{bg:s,color:oe(o,"gray.800")(e),_hover:{bg:oe(i,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:oe(a,`${r}.400`)(e)}}},jz=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:oe(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:oe(`${t}.700`,`${t}.500`)(e)}}},Nz={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},Vz={ghost:wC,outline:zz,solid:Iz,link:jz,unstyled:Nz},Uz={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},Wz={baseStyle:Lz,variants:Vz,sizes:Uz,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Yi,defineMultiStyleConfig:Hz}=We(mM.keys),af=ie("card-bg"),co=ie("card-padding"),SC=ie("card-shadow"),yd=ie("card-radius"),EC=ie("card-border-width","0"),kC=ie("card-border-color"),Gz=Yi({container:{[af.variable]:"colors.chakra-body-bg",backgroundColor:af.reference,boxShadow:SC.reference,borderRadius:yd.reference,color:"chakra-body-text",borderWidth:EC.reference,borderColor:kC.reference},body:{padding:co.reference,flex:"1 1 0%"},header:{padding:co.reference},footer:{padding:co.reference}}),Kz={sm:Yi({container:{[yd.variable]:"radii.base",[co.variable]:"space.3"}}),md:Yi({container:{[yd.variable]:"radii.md",[co.variable]:"space.5"}}),lg:Yi({container:{[yd.variable]:"radii.xl",[co.variable]:"space.7"}})},qz={elevated:Yi({container:{[SC.variable]:"shadows.base",_dark:{[af.variable]:"colors.gray.700"}}}),outline:Yi({container:{[EC.variable]:"1px",[kC.variable]:"colors.chakra-border-color"}}),filled:Yi({container:{[af.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[co.variable]:0},header:{[co.variable]:0},footer:{[co.variable]:0}}},Qz=Hz({baseStyle:Gz,variants:qz,sizes:Kz,defaultProps:{variant:"elevated",size:"md"}}),Nl=Et("close-button-size"),al=Et("close-button-bg"),Yz={w:[Nl.reference],h:[Nl.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[al.variable]:"colors.blackAlpha.100",_dark:{[al.variable]:"colors.whiteAlpha.100"}},_active:{[al.variable]:"colors.blackAlpha.200",_dark:{[al.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:al.reference},Xz={lg:{[Nl.variable]:"sizes.10",fontSize:"md"},md:{[Nl.variable]:"sizes.8",fontSize:"xs"},sm:{[Nl.variable]:"sizes.6",fontSize:"2xs"}},Jz={baseStyle:Yz,sizes:Xz,defaultProps:{size:"md"}},{variants:Zz,defaultProps:e3}=Il,t3={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:mt.bg.reference,color:mt.color.reference,boxShadow:mt.shadow.reference},r3={baseStyle:t3,variants:Zz,defaultProps:e3},n3={w:"100%",mx:"auto",maxW:"prose",px:"4"},o3={baseStyle:n3},i3={opacity:.6,borderColor:"inherit"},a3={borderStyle:"solid"},s3={borderStyle:"dashed"},l3={solid:a3,dashed:s3},u3={baseStyle:i3,variants:l3,defaultProps:{variant:"solid"}},{definePartsStyle:c3,defineMultiStyleConfig:d3}=We(H5.keys),f3={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},h3={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},p3={pt:"2",px:"4",pb:"5"},m3={fontSize:"1.25em"},g3=c3({container:f3,button:h3,panel:p3,icon:m3}),v3=d3({baseStyle:g3}),{definePartsStyle:Wu,defineMultiStyleConfig:y3}=We(G5.keys),Cr=ie("alert-fg"),bo=ie("alert-bg"),b3=Wu({container:{bg:bo.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Cr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Cr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function f0(e){const{theme:t,colorScheme:r}=e,n=Cs(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var x3=Wu(e=>{const{colorScheme:t}=e,r=f0(e);return{container:{[Cr.variable]:`colors.${t}.600`,[bo.variable]:r.light,_dark:{[Cr.variable]:`colors.${t}.200`,[bo.variable]:r.dark}}}}),w3=Wu(e=>{const{colorScheme:t}=e,r=f0(e);return{container:{[Cr.variable]:`colors.${t}.600`,[bo.variable]:r.light,_dark:{[Cr.variable]:`colors.${t}.200`,[bo.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Cr.reference}}}),S3=Wu(e=>{const{colorScheme:t}=e,r=f0(e);return{container:{[Cr.variable]:`colors.${t}.600`,[bo.variable]:r.light,_dark:{[Cr.variable]:`colors.${t}.200`,[bo.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Cr.reference}}}),E3=Wu(e=>{const{colorScheme:t}=e;return{container:{[Cr.variable]:"colors.white",[bo.variable]:`colors.${t}.600`,_dark:{[Cr.variable]:"colors.gray.900",[bo.variable]:`colors.${t}.200`},color:Cr.reference}}}),k3={subtle:x3,"left-accent":w3,"top-accent":S3,solid:E3},C3=y3({baseStyle:b3,variants:k3,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:CC,defineMultiStyleConfig:_3}=We(K5.keys),os=ie("avatar-border-color"),Vl=ie("avatar-bg"),bu=ie("avatar-font-size"),_s=ie("avatar-size"),T3={borderRadius:"full",border:"0.2em solid",borderColor:os.reference,[os.variable]:"white",_dark:{[os.variable]:"colors.gray.800"}},P3={bg:Vl.reference,fontSize:bu.reference,width:_s.reference,height:_s.reference,lineHeight:"1",[Vl.variable]:"colors.gray.200",_dark:{[Vl.variable]:"colors.whiteAlpha.400"}},R3=e=>{const{name:t,theme:r}=e,n=t?FM({string:t}):"colors.gray.400",o=MM(n)(r);let i="white";return o||(i="gray.800"),{bg:Vl.reference,fontSize:bu.reference,color:i,borderColor:os.reference,verticalAlign:"top",width:_s.reference,height:_s.reference,"&:not([data-loaded])":{[Vl.variable]:n},[os.variable]:"colors.white",_dark:{[os.variable]:"colors.gray.800"}}},A3={fontSize:bu.reference,lineHeight:"1"},D3=CC(e=>({badge:er(T3,e),excessLabel:er(P3,e),container:er(R3,e),label:A3}));function Mo(e){const t=e!=="100%"?mC[e]:void 0;return CC({container:{[_s.variable]:t??e,[bu.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[_s.variable]:t??e,[bu.variable]:`calc(${t??e} / 2.5)`}})}var O3={"2xs":Mo(4),xs:Mo(6),sm:Mo(8),md:Mo(12),lg:Mo(16),xl:Mo(24),"2xl":Mo(32),full:Mo("100%")},M3=_3({baseStyle:D3,sizes:O3,defaultProps:{size:"md"}}),$3={Accordion:v3,Alert:C3,Avatar:M3,Badge:Il,Breadcrumb:Fz,Button:Wz,Checkbox:of,CloseButton:Jz,Code:r3,Container:o3,Divider:u3,Drawer:az,Editable:hz,Form:bz,FormError:Cz,FormLabel:Tz,Heading:Az,Input:De,Kbd:YF,Link:JF,List:nL,Menu:pL,Modal:CL,NumberInput:$L,PinInput:BL,Popover:QL,Progress:rF,Radio:mF,Select:SF,Skeleton:kF,SkipLink:_F,Slider:zF,Spinner:jF,Stat:qF,Switch:JM,Table:i$,Tabs:x$,Tag:M$,Textarea:H$,Tooltip:q$,Card:Qz,Stepper:W5},F3={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},L3={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},z3="ltr",B3={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},_C={semanticTokens:F3,direction:z3,...N5,components:$3,styles:L3,config:B3};function El(e){return typeof e=="function"}function I3(...e){return t=>e.reduce((r,n)=>n(r),t)}var j3=e=>function(...r){let n=[...r],o=r[r.length-1];return v5(o)&&n.length>1?n=n.slice(0,n.length-1):o=e,I3(...n.map(i=>a=>El(i)?i(a):V3(a,i)))(o)},N3=j3(_C);function V3(...e){return Hr({},...e,TC)}function TC(e,t,r,n){if((El(e)||El(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...o)=>{const i=El(e)?e(...o):e,a=El(t)?t(...o):t;return Hr({},i,a,TC)}}function U3(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function W3(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n<o.length&&e;n+=1)e=e[o[n]];return e===void 0?r:e}var H3=e=>{const t=new WeakMap;return(n,o,i,a)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,i,a);return s.set(o,l),l}},PC=H3(W3);function RC(e,t){const r={};return Object.keys(e).forEach(n=>{const o=e[n];t(o,n,e)&&(r[n]=o)}),r}var AC=e=>RC(e,t=>t!=null);function G3(e){return typeof e=="function"}function DC(e,...t){return G3(e)?e(...t):e}function RH(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}var K3=typeof Element<"u",q3=typeof Map=="function",Q3=typeof Set=="function",Y3=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function bd(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!bd(e[n],t[n]))return!1;return!0}var i;if(q3&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!bd(n.value[1],t.get(n.value[0])))return!1;return!0}if(Q3&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Y3&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(K3&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!bd(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var X3=function(t,r){try{return bd(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const J3=Pf(X3);function OC(e,t={}){var r;const{styleConfig:n,...o}=t,{theme:i,colorMode:a}=qD(),s=e?PC(i,`components.${e}`):void 0,l=n||s,u=Hr({theme:i,colorMode:a},(r=l==null?void 0:l.defaultProps)!=null?r:{},AC(U3(o,["children"]))),c=w.useRef({});if(l){const f=p5(l)(u);J3(c.current,f)||(c.current=f)}return c.current}function wn(e,t={}){return OC(e,t)}function MC(e,t={}){return OC(e,t)}var Z3=new Set([...r5,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),e4=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function t4(e){return e4.has(e)||!Z3.has(e)}function r4(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(o in r&&delete r[o],r[o]=n[o]);return r}function n4(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var o4=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i4=Gk(function(e){return o4.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),a4=!1,s4=i4,l4=function(t){return t!=="theme"},z1=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?s4:l4},B1=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},u4=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return e0(r,n,o),tC(function(){return t0(r,n,o)}),null},c4=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=B1(t,r,n),l=s||z1(o),u=!l("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var h=c.length,v=1;v<h;v++)d.push(c[v],f[v])}var g=r0(function(x,p,m){var b=u&&x.as||o,E="",C=[],S=x;if(x.theme==null){S={};for(var P in x)S[P]=x[P];S.theme=w.useContext(Es)}typeof x.className=="string"?E=Jk(p.registered,C,x.className):x.className!=null&&(E=x.className+" ");var T=nh(d.concat(C),p.registered,S);E+=p.key+"-"+T.name,a!==void 0&&(E+=" "+a);var F=u&&s===void 0?z1(b):l,O={};for(var W in x)u&&W==="as"||F(W)&&(O[W]=x[W]);return O.className=E,m&&(O.ref=m),w.createElement(w.Fragment,null,w.createElement(u4,{cache:p,serialized:T,isStringTag:typeof b=="string"}),w.createElement(b,O))});return g.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_styles=d,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return a===void 0&&a4?"NO_COMPONENT_SELECTOR":"."+a}}),g.withComponent=function(x,p){var m=e(x,ef({},r,p,{shouldForwardProp:B1(g,p,!0)}));return m.apply(void 0,d)},g}},d4=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],sf=c4.bind(null);d4.forEach(function(e){sf[e]=sf(e)});var I1,f4=(I1=sf.default)!=null?I1:sf,h4=({baseStyle:e})=>t=>{const{theme:r,css:n,__css:o,sx:i,...a}=t,s=RC(a,(d,f)=>o5(f)),l=DC(e,t),u=r4({},o,l,AC(s),i),c=fC(u)(t.theme);return n?[c,n]:c};function Fp(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=t4);const o=h4({baseStyle:r}),i=f4(e,n)(o);return y.forwardRef(function(l,u){const{colorMode:c,forced:d}=oh();return y.createElement(i,{ref:u,"data-theme":d?c:void 0,...l})})}function p4(){const e=new Map;return new Proxy(Fp,{apply(t,r,n){return Fp(...n)},get(t,r){return e.has(r)||e.set(r,Fp(r)),e.get(r)}})}var ye=p4();function Ye(e){return w.forwardRef(e)}function m4(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=w.createContext(void 0);o.displayName=n;function i(){var a;const s=w.useContext(o);if(!s&&t){const l=new Error(r);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,i),l}return s}return[o.Provider,i,o]}function g4(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=w.useMemo(()=>e5(r),[r]);return z.jsxs(DD,{theme:o,children:[z.jsx(v4,{root:t}),n]})}function v4({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return z.jsx(Uu,{styles:r=>({[t]:r.__cssVars})})}m4({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function y4(){const{colorMode:e}=oh();return z.jsx(Uu,{styles:t=>{const r=PC(t,"styles.global"),n=DC(r,{theme:t,colorMode:e});return n?fC(n)(t):void 0}})}var $C="chakra-skip-nav";function b4(e){return{userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",padding:"0",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",...e,_focus:{clip:"auto",width:"auto",height:"auto",...e._focus}}}var FC=Ye(function(t,r){const n=wn("SkipLink",t),{id:o=$C,...i}=xn(t);return y.createElement(ye.a,{...i,ref:r,href:`#${o}`,__css:b4(n)})});FC.displayName="SkipNavLink";var x4=Ye(function(t,r){const{id:n=$C,...o}=t;return y.createElement(ye.div,{ref:r,id:n,tabIndex:-1,style:{outline:0},...o})});x4.displayName="SkipNavContent";var ch=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},dh=typeof window>"u"||"Deno"in globalThis;function dn(){}function w4(e,t){return typeof e=="function"?e(t):e}function S4(e){return typeof e=="number"&&e>=0&&e!==1/0}function E4(e,t){return Math.max(e+(t||0)-Date.now(),0)}function j1(e,t){return typeof e=="function"?e(t):e}function k4(e,t){return typeof e=="function"?e(t):e}function N1(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(n){if(t.queryHash!==h0(a,t.options))return!1}else if(!wu(t.queryKey,a))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||o&&o!==t.state.fetchStatus||i&&!i(t))}function V1(e,t){const{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(xu(t.options.mutationKey)!==xu(i))return!1}else if(!wu(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function h0(e,t){return((t==null?void 0:t.queryKeyHashFn)||xu)(e)}function xu(e){return JSON.stringify(e,(t,r)=>hg(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function wu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!wu(e[r],t[r])):!1}function LC(e,t){if(e===t)return e;const r=U1(e)&&U1(t);if(r||hg(e)&&hg(t)){const n=r?e:Object.keys(e),o=n.length,i=r?t:Object.keys(t),a=i.length,s=r?[]:{};let l=0;for(let u=0;u<a;u++){const c=r?u:i[u];(!r&&n.includes(c)||r)&&e[c]===void 0&&t[c]===void 0?(s[c]=void 0,l++):(s[c]=LC(e[c],t[c]),s[c]===e[c]&&e[c]!==void 0&&l++)}return o===a&&l===o?e:s}return t}function AH(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function U1(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function hg(e){if(!W1(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!W1(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function W1(e){return Object.prototype.toString.call(e)==="[object Object]"}function C4(e){return new Promise(t=>{setTimeout(t,e)})}function _4(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?LC(e,t):t}function T4(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function P4(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var p0=Symbol();function zC(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===p0?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Vi,Vo,as,xS,R4=(xS=class extends ch{constructor(){super();$e(this,Vi);$e(this,Vo);$e(this,as);he(this,as,t=>{if(!dh&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){I(this,Vo)||this.setEventListener(I(this,as))}onUnsubscribe(){var t;this.hasListeners()||((t=I(this,Vo))==null||t.call(this),he(this,Vo,void 0))}setEventListener(t){var r;he(this,as,t),(r=I(this,Vo))==null||r.call(this),he(this,Vo,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){I(this,Vi)!==t&&(he(this,Vi,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof I(this,Vi)=="boolean"?I(this,Vi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Vi=new WeakMap,Vo=new WeakMap,as=new WeakMap,xS),BC=new R4,ss,Uo,ls,wS,A4=(wS=class extends ch{constructor(){super();$e(this,ss,!0);$e(this,Uo);$e(this,ls);he(this,ls,t=>{if(!dh&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){I(this,Uo)||this.setEventListener(I(this,ls))}onUnsubscribe(){var t;this.hasListeners()||((t=I(this,Uo))==null||t.call(this),he(this,Uo,void 0))}setEventListener(t){var r;he(this,ls,t),(r=I(this,Uo))==null||r.call(this),he(this,Uo,t(this.setOnline.bind(this)))}setOnline(t){I(this,ss)!==t&&(he(this,ss,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return I(this,ss)}},ss=new WeakMap,Uo=new WeakMap,ls=new WeakMap,wS),lf=new A4;function D4(){let e,t;const r=new Promise((o,i)=>{e=o,t=i});r.status="pending",r.catch(()=>{});function n(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{n({status:"fulfilled",value:o}),e(o)},r.reject=o=>{n({status:"rejected",reason:o}),t(o)},r}function O4(e){return Math.min(1e3*2**e,3e4)}function IC(e){return(e??"online")==="online"?lf.isOnline():!0}var jC=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Lp(e){return e instanceof jC}function NC(e){let t=!1,r=0,n=!1,o;const i=D4(),a=g=>{var x;n||(f(new jC(g)),(x=e.abort)==null||x.call(e))},s=()=>{t=!0},l=()=>{t=!1},u=()=>BC.isFocused()&&(e.networkMode==="always"||lf.isOnline())&&e.canRun(),c=()=>IC(e.networkMode)&&e.canRun(),d=g=>{var x;n||(n=!0,(x=e.onSuccess)==null||x.call(e,g),o==null||o(),i.resolve(g))},f=g=>{var x;n||(n=!0,(x=e.onError)==null||x.call(e,g),o==null||o(),i.reject(g))},h=()=>new Promise(g=>{var x;o=p=>{(n||u())&&g(p)},(x=e.onPause)==null||x.call(e)}).then(()=>{var g;o=void 0,n||(g=e.onContinue)==null||g.call(e)}),v=()=>{if(n)return;let g;const x=r===0?e.initialPromise:void 0;try{g=x??e.fn()}catch(p){g=Promise.reject(p)}Promise.resolve(g).then(d).catch(p=>{var S;if(n)return;const m=e.retry??(dh?0:3),b=e.retryDelay??O4,E=typeof b=="function"?b(r,p):b,C=m===!0||typeof m=="number"&&r<m||typeof m=="function"&&m(r,p);if(t||!C){f(p);return}r++,(S=e.onFail)==null||S.call(e,r,p),C4(E).then(()=>u()?void 0:h()).then(()=>{t?f(p):v()})})};return{promise:i,cancel:a,continue:()=>(o==null||o(),i),cancelRetry:s,continueRetry:l,canStart:c,start:()=>(c()?v():h().then(v),i)}}function M4(){let e=[],t=0,r=s=>{s()},n=s=>{s()},o=s=>setTimeout(s,0);const i=s=>{t?e.push(s):o(()=>{r(s)})},a=()=>{const s=e;e=[],s.length&&o(()=>{n(()=>{s.forEach(l=>{r(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{i(()=>{s(...l)})},schedule:i,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{o=s}}}var Xt=M4(),Ui,SS,VC=(SS=class{constructor(){$e(this,Ui)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),S4(this.gcTime)&&he(this,Ui,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(dh?1/0:5*60*1e3))}clearGcTimeout(){I(this,Ui)&&(clearTimeout(I(this,Ui)),he(this,Ui,void 0))}},Ui=new WeakMap,SS),us,cs,Nr,Vt,$u,Wi,fn,Zn,ES,$4=(ES=class extends VC{constructor(t){super();$e(this,fn);$e(this,us);$e(this,cs);$e(this,Nr);$e(this,Vt);$e(this,$u);$e(this,Wi);he(this,Wi,!1),he(this,$u,t.defaultOptions),this.setOptions(t.options),this.observers=[],he(this,Nr,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,he(this,us,L4(this.options)),this.state=t.state??I(this,us),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=I(this,Vt))==null?void 0:t.promise}setOptions(t){this.options={...I(this,$u),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&I(this,Nr).remove(this)}setData(t,r){const n=_4(this.state.data,t,this.options);return Bt(this,fn,Zn).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){Bt(this,fn,Zn).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,o;const r=(n=I(this,Vt))==null?void 0:n.promise;return(o=I(this,Vt))==null||o.cancel(t),r?r.then(dn).catch(dn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(I(this,us))}isActive(){return this.observers.some(t=>k4(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===p0||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!E4(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=I(this,Vt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=I(this,Vt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),I(this,Nr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(I(this,Vt)&&(I(this,Wi)?I(this,Vt).cancel({revert:!0}):I(this,Vt).cancelRetry()),this.scheduleGc()),I(this,Nr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Bt(this,fn,Zn).call(this,{type:"invalidate"})}fetch(t,r){var l,u,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(I(this,Vt))return I(this,Vt).continueRetry(),I(this,Vt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,o=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(he(this,Wi,!0),n.signal)})},i=()=>{const d=zC(this.options,r),f={queryKey:this.queryKey,meta:this.meta};return o(f),he(this,Wi,!1),this.options.persister?this.options.persister(d,f,this):d(f)},a={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};o(a),(l=this.options.behavior)==null||l.onFetch(a,this),he(this,cs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&Bt(this,fn,Zn).call(this,{type:"fetch",meta:(c=a.fetchOptions)==null?void 0:c.meta});const s=d=>{var f,h,v,g;Lp(d)&&d.silent||Bt(this,fn,Zn).call(this,{type:"error",error:d}),Lp(d)||((h=(f=I(this,Nr).config).onError)==null||h.call(f,d,this),(g=(v=I(this,Nr).config).onSettled)==null||g.call(v,this.state.data,d,this)),this.scheduleGc()};return he(this,Vt,NC({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:d=>{var f,h,v,g;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(x){s(x);return}(h=(f=I(this,Nr).config).onSuccess)==null||h.call(f,d,this),(g=(v=I(this,Nr).config).onSettled)==null||g.call(v,d,this.state.error,this),this.scheduleGc()},onError:s,onFail:(d,f)=>{Bt(this,fn,Zn).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{Bt(this,fn,Zn).call(this,{type:"pause"})},onContinue:()=>{Bt(this,fn,Zn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),I(this,Vt).start()}},us=new WeakMap,cs=new WeakMap,Nr=new WeakMap,Vt=new WeakMap,$u=new WeakMap,Wi=new WeakMap,fn=new WeakSet,Zn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...F4(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Lp(o)&&o.revert&&I(this,cs)?{...I(this,cs),fetchStatus:"idle"}:{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Xt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),I(this,Nr).notify({query:this,type:"updated",action:t})})},ES);function F4(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:IC(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function L4(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var $n,kS,z4=(kS=class extends ch{constructor(t={}){super();$e(this,$n);this.config=t,he(this,$n,new Map)}build(t,r,n){const o=r.queryKey,i=r.queryHash??h0(o,r);let a=this.get(i);return a||(a=new $4({cache:this,queryKey:o,queryHash:i,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){I(this,$n).has(t.queryHash)||(I(this,$n).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=I(this,$n).get(t.queryHash);r&&(t.destroy(),r===t&&I(this,$n).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Xt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return I(this,$n).get(t)}getAll(){return[...I(this,$n).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>N1(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>N1(t,n)):r}notify(t){Xt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Xt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Xt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},$n=new WeakMap,kS),Fn,Qt,Hi,Ln,$o,CS,B4=(CS=class extends VC{constructor(t){super();$e(this,Ln);$e(this,Fn);$e(this,Qt);$e(this,Hi);this.mutationId=t.mutationId,he(this,Qt,t.mutationCache),he(this,Fn,[]),this.state=t.state||I4(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){I(this,Fn).includes(t)||(I(this,Fn).push(t),this.clearGcTimeout(),I(this,Qt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){he(this,Fn,I(this,Fn).filter(r=>r!==t)),this.scheduleGc(),I(this,Qt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){I(this,Fn).length||(this.state.status==="pending"?this.scheduleGc():I(this,Qt).remove(this))}continue(){var t;return((t=I(this,Hi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,a,s,l,u,c,d,f,h,v,g,x,p,m,b,E,C,S,P;he(this,Hi,NC({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(T,F)=>{Bt(this,Ln,$o).call(this,{type:"failed",failureCount:T,error:F})},onPause:()=>{Bt(this,Ln,$o).call(this,{type:"pause"})},onContinue:()=>{Bt(this,Ln,$o).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>I(this,Qt).canRun(this)}));const r=this.state.status==="pending",n=!I(this,Hi).canStart();try{if(!r){Bt(this,Ln,$o).call(this,{type:"pending",variables:t,isPaused:n}),await((i=(o=I(this,Qt).config).onMutate)==null?void 0:i.call(o,t,this));const F=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));F!==this.state.context&&Bt(this,Ln,$o).call(this,{type:"pending",context:F,variables:t,isPaused:n})}const T=await I(this,Hi).start();return await((u=(l=I(this,Qt).config).onSuccess)==null?void 0:u.call(l,T,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,T,t,this.state.context)),await((h=(f=I(this,Qt).config).onSettled)==null?void 0:h.call(f,T,null,this.state.variables,this.state.context,this)),await((g=(v=this.options).onSettled)==null?void 0:g.call(v,T,null,t,this.state.context)),Bt(this,Ln,$o).call(this,{type:"success",data:T}),T}catch(T){try{throw await((p=(x=I(this,Qt).config).onError)==null?void 0:p.call(x,T,t,this.state.context,this)),await((b=(m=this.options).onError)==null?void 0:b.call(m,T,t,this.state.context)),await((C=(E=I(this,Qt).config).onSettled)==null?void 0:C.call(E,void 0,T,this.state.variables,this.state.context,this)),await((P=(S=this.options).onSettled)==null?void 0:P.call(S,void 0,T,t,this.state.context)),T}finally{Bt(this,Ln,$o).call(this,{type:"error",error:T})}}finally{I(this,Qt).runNext(this)}}},Fn=new WeakMap,Qt=new WeakMap,Hi=new WeakMap,Ln=new WeakSet,$o=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Xt.batch(()=>{I(this,Fn).forEach(n=>{n.onMutationUpdate(t)}),I(this,Qt).notify({mutation:this,type:"updated",action:t})})},CS);function I4(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var yr,Fu,_S,j4=(_S=class extends ch{constructor(t={}){super();$e(this,yr);$e(this,Fu);this.config=t,he(this,yr,new Map),he(this,Fu,Date.now())}build(t,r,n){const o=new B4({mutationCache:this,mutationId:++hc(this,Fu)._,options:t.defaultMutationOptions(r),state:n});return this.add(o),o}add(t){const r=Nc(t),n=I(this,yr).get(r)??[];n.push(t),I(this,yr).set(r,n),this.notify({type:"added",mutation:t})}remove(t){var n;const r=Nc(t);if(I(this,yr).has(r)){const o=(n=I(this,yr).get(r))==null?void 0:n.filter(i=>i!==t);o&&(o.length===0?I(this,yr).delete(r):I(this,yr).set(r,o))}this.notify({type:"removed",mutation:t})}canRun(t){var n;const r=(n=I(this,yr).get(Nc(t)))==null?void 0:n.find(o=>o.state.status==="pending");return!r||r===t}runNext(t){var n;const r=(n=I(this,yr).get(Nc(t)))==null?void 0:n.find(o=>o!==t&&o.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){Xt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...I(this,yr).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(n=>V1(r,n))}findAll(t={}){return this.getAll().filter(r=>V1(t,r))}notify(t){Xt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Xt.batch(()=>Promise.all(t.map(r=>r.continue().catch(dn))))}},yr=new WeakMap,Fu=new WeakMap,_S);function Nc(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function H1(e){return{onFetch:(t,r)=>{var c,d,f,h,v;const n=t.options,o=(f=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,i=((h=t.state.data)==null?void 0:h.pages)||[],a=((v=t.state.data)==null?void 0:v.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const x=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},p=zC(t.options,t.fetchOptions),m=async(b,E,C)=>{if(g)return Promise.reject();if(E==null&&b.pages.length)return Promise.resolve(b);const S={queryKey:t.queryKey,pageParam:E,direction:C?"backward":"forward",meta:t.options.meta};x(S);const P=await p(S),{maxPages:T}=t.options,F=C?P4:T4;return{pages:F(b.pages,P,T),pageParams:F(b.pageParams,E,T)}};if(o&&i.length){const b=o==="backward",E=b?N4:G1,C={pages:i,pageParams:a},S=E(n,C);s=await m(C,S,b)}else{const b=e??i.length;do{const E=l===0?a[0]??n.initialPageParam:G1(n,s);if(l>0&&E==null)break;s=await m(s,E),l++}while(l<b)}return s};t.options.persister?t.fetchFn=()=>{var g,x;return(x=(g=t.options).persister)==null?void 0:x.call(g,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function G1(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function N4(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var ct,Wo,Ho,ds,fs,Go,hs,ps,TS,V4=(TS=class{constructor(e={}){$e(this,ct);$e(this,Wo);$e(this,Ho);$e(this,ds);$e(this,fs);$e(this,Go);$e(this,hs);$e(this,ps);he(this,ct,e.queryCache||new z4),he(this,Wo,e.mutationCache||new j4),he(this,Ho,e.defaultOptions||{}),he(this,ds,new Map),he(this,fs,new Map),he(this,Go,0)}mount(){hc(this,Go)._++,I(this,Go)===1&&(he(this,hs,BC.subscribe(async e=>{e&&(await this.resumePausedMutations(),I(this,ct).onFocus())})),he(this,ps,lf.subscribe(async e=>{e&&(await this.resumePausedMutations(),I(this,ct).onOnline())})))}unmount(){var e,t;hc(this,Go)._--,I(this,Go)===0&&((e=I(this,hs))==null||e.call(this),he(this,hs,void 0),(t=I(this,ps))==null||t.call(this),he(this,ps,void 0))}isFetching(e){return I(this,ct).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return I(this,Wo).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=I(this,ct).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=I(this,ct).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(j1(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return I(this,ct).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=I(this,ct).get(n.queryHash),i=o==null?void 0:o.state.data,a=w4(t,i);if(a!==void 0)return I(this,ct).build(this,n).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return Xt.batch(()=>I(this,ct).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=I(this,ct).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=I(this,ct);Xt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=I(this,ct),n={type:"active",...e};return Xt.batch(()=>(r.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(n,t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Xt.batch(()=>I(this,ct).findAll(e).map(o=>o.cancel(r)));return Promise.all(n).then(dn).catch(dn)}invalidateQueries(e,t={}){return Xt.batch(()=>{if(I(this,ct).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const r={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(r,t)})}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Xt.batch(()=>I(this,ct).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,r);return r.throwOnError||(i=i.catch(dn)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(dn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=I(this,ct).build(this,t);return r.isStaleByTime(j1(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(dn).catch(dn)}fetchInfiniteQuery(e){return e.behavior=H1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(dn).catch(dn)}ensureInfiniteQueryData(e){return e.behavior=H1(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return lf.isOnline()?I(this,Wo).resumePausedMutations():Promise.resolve()}getQueryCache(){return I(this,ct)}getMutationCache(){return I(this,Wo)}getDefaultOptions(){return I(this,Ho)}setDefaultOptions(e){he(this,Ho,e)}setQueryDefaults(e,t){I(this,ds).set(xu(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...I(this,ds).values()],r={};return t.forEach(n=>{wu(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){I(this,fs).set(xu(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...I(this,fs).values()];let r={};return t.forEach(n=>{wu(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...I(this,Ho).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=h0(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===p0&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...I(this,Ho).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){I(this,ct).clear(),I(this,Wo).clear()}},ct=new WeakMap,Wo=new WeakMap,Ho=new WeakMap,ds=new WeakMap,fs=new WeakMap,Go=new WeakMap,hs=new WeakMap,ps=new WeakMap,TS),UC=w.createContext(void 0),DH=e=>{const t=w.useContext(UC);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},U4=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),z.jsx(UC.Provider,{value:e,children:t}));const W4="modulepreload",H4=function(e){return"/"+e},K1={},Sn=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.allSettled(r.map(l=>{if(l=H4(l),l in K1)return;K1[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":W4,u||(d.as="script"),d.crossOrigin="",d.href=l,s&&d.setAttribute("nonce",s),document.head.appendChild(d),u)return new Promise((f,h)=>{d.addEventListener("load",f),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return o.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})};var G4=function(){return null};/**
 * @remix-run/router v1.21.0
 *
 * 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 tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tt.apply(this,arguments)}var gt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(gt||(gt={}));const q1="popstate";function K4(e){e===void 0&&(e={});function t(n,o){let{pathname:i,search:a,hash:s}=n.location;return Su("",{pathname:i,search:a,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:ia(o)}return Q4(t,r,null,e)}function me(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ts(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function q4(){return Math.random().toString(36).substr(2,8)}function Q1(e,t){return{usr:e.state,key:e.key,idx:t}}function Su(e,t,r,n){return r===void 0&&(r=null),tt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?hi(t):t,{state:r,key:t&&t.key||n||q4()})}function ia(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function hi(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Q4(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,s=gt.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(tt({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){s=gt.Pop;let x=c(),p=x==null?null:x-u;u=x,l&&l({action:s,location:g.location,delta:p})}function f(x,p){s=gt.Push;let m=Su(g.location,x,p);u=c()+1;let b=Q1(m,u),E=g.createHref(m);try{a.pushState(b,"",E)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(E)}i&&l&&l({action:s,location:g.location,delta:1})}function h(x,p){s=gt.Replace;let m=Su(g.location,x,p);u=c();let b=Q1(m,u),E=g.createHref(m);a.replaceState(b,"",E),i&&l&&l({action:s,location:g.location,delta:0})}function v(x){let p=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof x=="string"?x:ia(x);return m=m.replace(/ $/,"%20"),me(p,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,p)}let g={get action(){return s},get location(){return e(o,a)},listen(x){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(q1,d),l=x,()=>{o.removeEventListener(q1,d),l=null}},createHref(x){return t(o,x)},createURL:v,encodeLocation(x){let p=v(x);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:f,replace:h,go(x){return a.go(x)}};return g}var je;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(je||(je={}));const Y4=new Set(["lazy","caseSensitive","path","id","index","children"]);function X4(e){return e.index===!0}function uf(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((o,i)=>{let a=[...r,String(i)],s=typeof o.id=="string"?o.id:a.join("-");if(me(o.index!==!0||!o.children,"Cannot specify children on an index route"),me(!n[s],'Found a route id collision on id "'+s+`".  Route id's must be globally unique within Data Router usages`),X4(o)){let l=tt({},o,t(o),{id:s});return n[s]=l,l}else{let l=tt({},o,t(o),{id:s,children:void 0});return n[s]=l,o.children&&(l.children=uf(o.children,t,a,n)),l}})}function Oi(e,t,r){return r===void 0&&(r="/"),xd(e,t,r,!1)}function xd(e,t,r,n){let o=typeof t=="string"?hi(t):t,i=Is(o.pathname||"/",r);if(i==null)return null;let a=WC(e);Z4(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let u=cB(i);s=lB(a[l],u,n)}return s}function J4(e,t){let{route:r,pathname:n,params:o}=e;return{id:r.id,pathname:n,params:o,data:t[r.id],handle:r.handle}}function WC(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let o=(i,a,s)=>{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(me(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=fo([n,l.relativePath]),c=r.concat(l);i.children&&i.children.length>0&&(me(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),WC(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:aB(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of HC(i.path))o(i,a,l)}),t}function HC(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let a=HC(n.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Z4(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:sB(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const eB=/^:[\w-]+$/,tB=3,rB=2,nB=1,oB=10,iB=-2,Y1=e=>e==="*";function aB(e,t){let r=e.split("/"),n=r.length;return r.some(Y1)&&(n+=iB),t&&(n+=rB),r.filter(o=>!Y1(o)).reduce((o,i)=>o+(eB.test(i)?tB:i===""?nB:oB),n)}function sB(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function lB(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,o={},i="/",a=[];for(let s=0;s<n.length;++s){let l=n[s],u=s===n.length-1,c=i==="/"?t:t.slice(i.length)||"/",d=X1({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),f=l.route;if(!d&&u&&r&&!n[n.length-1].route.index&&(d=X1({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;Object.assign(o,d.params),a.push({params:o,pathname:fo([i,d.pathname]),pathnameBase:hB(fo([i,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(i=fo([i,d.pathnameBase]))}return a}function X1(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=uB(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce((u,c,d)=>{let{paramName:f,isOptional:h}=c;if(f==="*"){let g=s[d]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const v=s[d];return h&&!v?u[f]=void 0:u[f]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function uB(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Ts(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 n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function cB(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ts(!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 Is(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function dB(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?hi(e):e;return{pathname:r?r.startsWith("/")?r:fB(r,t):t,search:pB(n),hash:mB(o)}}function fB(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function zp(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"].  Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function GC(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function m0(e,t){let r=GC(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function g0(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=hi(e):(o=tt({},e),me(!o.pathname||!o.pathname.includes("?"),zp("?","pathname","search",o)),me(!o.pathname||!o.pathname.includes("#"),zp("#","pathname","hash",o)),me(!o.search||!o.search.includes("#"),zp("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=r;else{let d=t.length-1;if(!n&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=dB(o,s),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const fo=e=>e.join("/").replace(/\/\/+/g,"/"),hB=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),pB=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,mB=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class cf{constructor(t,r,n,o){o===void 0&&(o=!1),this.status=t,this.statusText=r||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function fh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const KC=["post","put","patch","delete"],gB=new Set(KC),vB=["get",...KC],yB=new Set(vB),bB=new Set([301,302,303,307,308]),xB=new Set([307,308]),Bp={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},wB={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},sl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},v0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,SB=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),qC="remix-router-transitions";function EB(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;me(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let _=e.detectErrorBoundary;o=D=>({hasErrorBoundary:_(D)})}else o=SB;let i={},a=uf(e.routes,o,void 0,i),s,l=e.basename||"/",u=e.dataStrategy||TB,c=e.patchRoutesOnNavigation,d=tt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,h=new Set,v=null,g=null,x=null,p=e.hydrationData!=null,m=Oi(a,e.history.location,l),b=null;if(m==null&&!c){let _=or(404,{pathname:e.history.location.pathname}),{matches:D,route:M}=lx(a);m=D,b={[M.id]:_}}m&&!e.hydrationData&&va(m,a,e.history.location.pathname).active&&(m=null);let E;if(m)if(m.some(_=>_.route.lazy))E=!1;else if(!m.some(_=>_.route.loader))E=!0;else if(d.v7_partialHydration){let _=e.hydrationData?e.hydrationData.loaderData:null,D=e.hydrationData?e.hydrationData.errors:null;if(D){let M=m.findIndex(j=>D[j.route.id]!==void 0);E=m.slice(0,M+1).every(j=>!mg(j.route,_,D))}else E=m.every(M=>!mg(M.route,_,D))}else E=e.hydrationData!=null;else if(E=!1,m=[],d.v7_partialHydration){let _=va(null,a,e.history.location.pathname);_.active&&_.matches&&(m=_.matches)}let C,S={historyAction:e.history.action,location:e.history.location,matches:m,initialized:E,navigation:Bp,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},P=gt.Pop,T=!1,F,O=!1,W=new Map,ne=null,re=!1,le=!1,Me=[],be=new Set,B=new Map,V=0,q=-1,Z=new Map,pe=new Set,xe=new Map,te=new Map,fe=new Set,Ne=new Map,Le=new Map,kt;function Ct(){if(f=e.history.listen(_=>{let{action:D,location:M,delta:j}=_;if(kt){kt(),kt=void 0;return}Ts(Le.size===0||j!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let H=lc({currentLocation:S.location,nextLocation:M,historyAction:D});if(H&&j!=null){let X=new Promise(se=>{kt=se});e.history.go(j*-1),bi(H,{state:"blocked",location:M,proceed(){bi(H,{state:"proceeding",proceed:void 0,reset:void 0,location:M}),X.then(()=>e.history.go(j))},reset(){let se=new Map(S.blockers);se.set(H,sl),st({blockers:se})}});return}return Zr(D,M)}),r){NB(t,W);let _=()=>VB(t,W);t.addEventListener("pagehide",_),ne=()=>t.removeEventListener("pagehide",_)}return S.initialized||Zr(gt.Pop,S.location,{initialHydration:!0}),C}function Co(){f&&f(),ne&&ne(),h.clear(),F&&F.abort(),S.fetchers.forEach((_,D)=>yi(D)),S.blockers.forEach((_,D)=>sc(D))}function gi(_){return h.add(_),()=>h.delete(_)}function st(_,D){D===void 0&&(D={}),S=tt({},S,_);let M=[],j=[];d.v7_fetcherPersist&&S.fetchers.forEach((H,X)=>{H.state==="idle"&&(fe.has(X)?j.push(X):M.push(X))}),[...h].forEach(H=>H(S,{deletedFetchers:j,viewTransitionOpts:D.viewTransitionOpts,flushSync:D.flushSync===!0})),d.v7_fetcherPersist&&(M.forEach(H=>S.fetchers.delete(H)),j.forEach(H=>yi(H)))}function Jr(_,D,M){var j,H;let{flushSync:X}=M===void 0?{}:M,se=S.actionData!=null&&S.navigation.formMethod!=null&&pn(S.navigation.formMethod)&&S.navigation.state==="loading"&&((j=_.state)==null?void 0:j._isRedirect)!==!0,Q;D.actionData?Object.keys(D.actionData).length>0?Q=D.actionData:Q=null:se?Q=S.actionData:Q=null;let Y=D.loaderData?ax(S.loaderData,D.loaderData,D.matches||[],D.errors):S.loaderData,G=S.blockers;G.size>0&&(G=new Map(G),G.forEach((we,xt)=>G.set(xt,sl)));let ee=T===!0||S.navigation.formMethod!=null&&pn(S.navigation.formMethod)&&((H=_.state)==null?void 0:H._isRedirect)!==!0;s&&(a=s,s=void 0),re||P===gt.Pop||(P===gt.Push?e.history.push(_,_.state):P===gt.Replace&&e.history.replace(_,_.state));let ue;if(P===gt.Pop){let we=W.get(S.location.pathname);we&&we.has(_.pathname)?ue={currentLocation:S.location,nextLocation:_}:W.has(_.pathname)&&(ue={currentLocation:_,nextLocation:S.location})}else if(O){let we=W.get(S.location.pathname);we?we.add(_.pathname):(we=new Set([_.pathname]),W.set(S.location.pathname,we)),ue={currentLocation:S.location,nextLocation:_}}st(tt({},D,{actionData:Q,loaderData:Y,historyAction:P,location:_,initialized:!0,navigation:Bp,revalidation:"idle",restoreScrollPosition:uc(_,D.matches||S.matches),preventScrollReset:ee,blockers:G}),{viewTransitionOpts:ue,flushSync:X===!0}),P=gt.Pop,T=!1,O=!1,re=!1,le=!1,Me=[]}async function vi(_,D){if(typeof _=="number"){e.history.go(_);return}let M=pg(S.location,S.matches,l,d.v7_prependBasename,_,d.v7_relativeSplatPath,D==null?void 0:D.fromRouteId,D==null?void 0:D.relative),{path:j,submission:H,error:X}=J1(d.v7_normalizeFormMethod,!1,M,D),se=S.location,Q=Su(S.location,j,D&&D.state);Q=tt({},Q,e.history.encodeLocation(Q));let Y=D&&D.replace!=null?D.replace:void 0,G=gt.Push;Y===!0?G=gt.Replace:Y===!1||H!=null&&pn(H.formMethod)&&H.formAction===S.location.pathname+S.location.search&&(G=gt.Replace);let ee=D&&"preventScrollReset"in D?D.preventScrollReset===!0:void 0,ue=(D&&D.flushSync)===!0,we=lc({currentLocation:se,nextLocation:Q,historyAction:G});if(we){bi(we,{state:"blocked",location:Q,proceed(){bi(we,{state:"proceeding",proceed:void 0,reset:void 0,location:Q}),vi(_,D)},reset(){let xt=new Map(S.blockers);xt.set(we,sl),st({blockers:xt})}});return}return await Zr(G,Q,{submission:H,pendingError:X,preventScrollReset:ee,replace:D&&D.replace,enableViewTransition:D&&D.viewTransition,flushSync:ue})}function Ws(){if(To(),st({revalidation:"loading"}),S.navigation.state!=="submitting"){if(S.navigation.state==="idle"){Zr(S.historyAction,S.location,{startUninterruptedRevalidation:!0});return}Zr(P||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation,enableViewTransition:O===!0})}}async function Zr(_,D,M){F&&F.abort(),F=null,P=_,re=(M&&M.startUninterruptedRevalidation)===!0,Mh(S.location,S.matches),T=(M&&M.preventScrollReset)===!0,O=(M&&M.enableViewTransition)===!0;let j=s||a,H=M&&M.overrideNavigation,X=Oi(j,D,l),se=(M&&M.flushSync)===!0,Q=va(X,j,D.pathname);if(Q.active&&Q.matches&&(X=Q.matches),!X){let{error:Ie,notFoundMatches:Ce,route:Xe}=ga(D.pathname);Jr(D,{matches:Ce,loaderData:{},errors:{[Xe.id]:Ie}},{flushSync:se});return}if(S.initialized&&!le&&MB(S.location,D)&&!(M&&M.submission&&pn(M.submission.formMethod))){Jr(D,{matches:X},{flushSync:se});return}F=new AbortController;let Y=Sa(e.history,D,F.signal,M&&M.submission),G;if(M&&M.pendingError)G=[Mi(X).route.id,{type:je.error,error:M.pendingError}];else if(M&&M.submission&&pn(M.submission.formMethod)){let Ie=await fa(Y,D,M.submission,X,Q.active,{replace:M.replace,flushSync:se});if(Ie.shortCircuited)return;if(Ie.pendingActionResult){let[Ce,Xe]=Ie.pendingActionResult;if(xr(Xe)&&fh(Xe.error)&&Xe.error.status===404){F=null,Jr(D,{matches:Ie.matches,loaderData:{},errors:{[Ce]:Xe.error}});return}}X=Ie.matches||X,G=Ie.pendingActionResult,H=Ip(D,M.submission),se=!1,Q.active=!1,Y=Sa(e.history,Y.url,Y.signal)}let{shortCircuited:ee,matches:ue,loaderData:we,errors:xt}=await ha(Y,D,X,Q.active,H,M&&M.submission,M&&M.fetcherSubmission,M&&M.replace,M&&M.initialHydration===!0,se,G);ee||(F=null,Jr(D,tt({matches:ue||X},sx(G),{loaderData:we,errors:xt})))}async function fa(_,D,M,j,H,X){X===void 0&&(X={}),To();let se=IB(D,M);if(st({navigation:se},{flushSync:X.flushSync===!0}),H){let G=await ya(j,D.pathname,_.signal);if(G.type==="aborted")return{shortCircuited:!0};if(G.type==="error"){let ee=Mi(G.partialMatches).route.id;return{matches:G.partialMatches,pendingActionResult:[ee,{type:je.error,error:G.error}]}}else if(G.matches)j=G.matches;else{let{notFoundMatches:ee,error:ue,route:we}=ga(D.pathname);return{matches:ee,pendingActionResult:[we.id,{type:je.error,error:ue}]}}}let Q,Y=kl(j,D);if(!Y.route.action&&!Y.route.lazy)Q={type:je.error,error:or(405,{method:_.method,pathname:D.pathname,routeId:Y.route.id})};else if(Q=(await Fr("action",S,_,[Y],j,null))[Y.route.id],_.signal.aborted)return{shortCircuited:!0};if(Ii(Q)){let G;return X&&X.replace!=null?G=X.replace:G=nx(Q.response.headers.get("Location"),new URL(_.url),l)===S.location.pathname+S.location.search,await bt(_,Q,!0,{submission:M,replace:G}),{shortCircuited:!0}}if(Qo(Q))throw or(400,{type:"defer-action"});if(xr(Q)){let G=Mi(j,Y.route.id);return(X&&X.replace)!==!0&&(P=gt.Push),{matches:j,pendingActionResult:[G.route.id,Q]}}return{matches:j,pendingActionResult:[Y.route.id,Q]}}async function ha(_,D,M,j,H,X,se,Q,Y,G,ee){let ue=H||Ip(D,X),we=X||se||cx(ue),xt=!re&&(!d.v7_partialHydration||!Y);if(j){if(xt){let Je=pa(ee);st(tt({navigation:ue},Je!==void 0?{actionData:Je}:{}),{flushSync:G})}let Ee=await ya(M,D.pathname,_.signal);if(Ee.type==="aborted")return{shortCircuited:!0};if(Ee.type==="error"){let Je=Mi(Ee.partialMatches).route.id;return{matches:Ee.partialMatches,loaderData:{},errors:{[Je]:Ee.error}}}else if(Ee.matches)M=Ee.matches;else{let{error:Je,notFoundMatches:Xn,route:Ei}=ga(D.pathname);return{matches:Xn,loaderData:{},errors:{[Ei.id]:Je}}}}let Ie=s||a,[Ce,Xe]=ex(e.history,S,M,we,D,d.v7_partialHydration&&Y===!0,d.v7_skipActionErrorRevalidation,le,Me,be,fe,xe,pe,Ie,l,ee);if(Qn(Ee=>!(M&&M.some(Je=>Je.route.id===Ee))||Ce&&Ce.some(Je=>Je.route.id===Ee)),q=++V,Ce.length===0&&Xe.length===0){let Ee=ac();return Jr(D,tt({matches:M,loaderData:{},errors:ee&&xr(ee[1])?{[ee[0]]:ee[1].error}:null},sx(ee),Ee?{fetchers:new Map(S.fetchers)}:{}),{flushSync:G}),{shortCircuited:!0}}if(xt){let Ee={};if(!j){Ee.navigation=ue;let Je=pa(ee);Je!==void 0&&(Ee.actionData=Je)}Xe.length>0&&(Ee.fetchers=Hs(Xe)),st(Ee,{flushSync:G})}Xe.forEach(Ee=>{en(Ee.key),Ee.controller&&B.set(Ee.key,Ee.controller)});let Po=()=>Xe.forEach(Ee=>en(Ee.key));F&&F.signal.addEventListener("abort",Po);let{loaderResults:Yn,fetcherResults:rn}=await _o(S,M,Ce,Xe,_);if(_.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener("abort",Po),Xe.forEach(Ee=>B.delete(Ee.key));let qt=Vc(Yn);if(qt)return await bt(_,qt.result,!0,{replace:Q}),{shortCircuited:!0};if(qt=Vc(rn),qt)return pe.add(qt.key),await bt(_,qt.result,!0,{replace:Q}),{shortCircuited:!0};let{loaderData:xi,errors:wi}=ix(S,M,Yn,ee,Xe,rn,Ne);Ne.forEach((Ee,Je)=>{Ee.subscribe(Xn=>{(Xn||Ee.done)&&Ne.delete(Je)})}),d.v7_partialHydration&&Y&&S.errors&&(wi=tt({},S.errors,wi));let Lr=ac(),Si=Cn(q),ba=Lr||Si||Xe.length>0;return tt({matches:M,loaderData:xi,errors:wi},ba?{fetchers:new Map(S.fetchers)}:{})}function pa(_){if(_&&!xr(_[1]))return{[_[0]]:_[1].data};if(S.actionData)return Object.keys(S.actionData).length===0?null:S.actionData}function Hs(_){return _.forEach(D=>{let M=S.fetchers.get(D.key),j=ll(void 0,M?M.data:void 0);S.fetchers.set(D.key,j)}),new Map(S.fetchers)}function nr(_,D,M,j){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");en(_);let H=(j&&j.flushSync)===!0,X=s||a,se=pg(S.location,S.matches,l,d.v7_prependBasename,M,d.v7_relativeSplatPath,D,j==null?void 0:j.relative),Q=Oi(X,se,l),Y=va(Q,X,se);if(Y.active&&Y.matches&&(Q=Y.matches),!Q){At(_,D,or(404,{pathname:se}),{flushSync:H});return}let{path:G,submission:ee,error:ue}=J1(d.v7_normalizeFormMethod,!0,se,j);if(ue){At(_,D,ue,{flushSync:H});return}let we=kl(Q,G),xt=(j&&j.preventScrollReset)===!0;if(ee&&pn(ee.formMethod)){kn(_,D,G,we,Q,Y.active,H,xt,ee);return}xe.set(_,{routeId:D,path:G}),qn(_,D,G,we,Q,Y.active,H,xt,ee)}async function kn(_,D,M,j,H,X,se,Q,Y){To(),xe.delete(_);function G(lt){if(!lt.route.action&&!lt.route.lazy){let Ro=or(405,{method:Y.formMethod,pathname:M,routeId:D});return At(_,D,Ro,{flushSync:se}),!0}return!1}if(!X&&G(j))return;let ee=S.fetchers.get(_);gr(_,jB(Y,ee),{flushSync:se});let ue=new AbortController,we=Sa(e.history,M,ue.signal,Y);if(X){let lt=await ya(H,M,we.signal);if(lt.type==="aborted")return;if(lt.type==="error"){At(_,D,lt.error,{flushSync:se});return}else if(lt.matches){if(H=lt.matches,j=kl(H,M),G(j))return}else{At(_,D,or(404,{pathname:M}),{flushSync:se});return}}B.set(_,ue);let xt=V,Ce=(await Fr("action",S,we,[j],H,_))[j.route.id];if(we.signal.aborted){B.get(_)===ue&&B.delete(_);return}if(d.v7_fetcherPersist&&fe.has(_)){if(Ii(Ce)||xr(Ce)){gr(_,Fo(void 0));return}}else{if(Ii(Ce))if(B.delete(_),q>xt){gr(_,Fo(void 0));return}else return pe.add(_),gr(_,ll(Y)),bt(we,Ce,!1,{fetcherSubmission:Y,preventScrollReset:Q});if(xr(Ce)){At(_,D,Ce.error);return}}if(Qo(Ce))throw or(400,{type:"defer-action"});let Xe=S.navigation.location||S.location,Po=Sa(e.history,Xe,ue.signal),Yn=s||a,rn=S.navigation.state!=="idle"?Oi(Yn,S.navigation.location,l):S.matches;me(rn,"Didn't find any matches after fetcher action");let qt=++V;Z.set(_,qt);let xi=ll(Y,Ce.data);S.fetchers.set(_,xi);let[wi,Lr]=ex(e.history,S,rn,Y,Xe,!1,d.v7_skipActionErrorRevalidation,le,Me,be,fe,xe,pe,Yn,l,[j.route.id,Ce]);Lr.filter(lt=>lt.key!==_).forEach(lt=>{let Ro=lt.key,cc=S.fetchers.get(Ro),Fh=ll(void 0,cc?cc.data:void 0);S.fetchers.set(Ro,Fh),en(Ro),lt.controller&&B.set(Ro,lt.controller)}),st({fetchers:new Map(S.fetchers)});let Si=()=>Lr.forEach(lt=>en(lt.key));ue.signal.addEventListener("abort",Si);let{loaderResults:ba,fetcherResults:Ee}=await _o(S,rn,wi,Lr,Po);if(ue.signal.aborted)return;ue.signal.removeEventListener("abort",Si),Z.delete(_),B.delete(_),Lr.forEach(lt=>B.delete(lt.key));let Je=Vc(ba);if(Je)return bt(Po,Je.result,!1,{preventScrollReset:Q});if(Je=Vc(Ee),Je)return pe.add(Je.key),bt(Po,Je.result,!1,{preventScrollReset:Q});let{loaderData:Xn,errors:Ei}=ix(S,rn,ba,void 0,Lr,Ee,Ne);if(S.fetchers.has(_)){let lt=Fo(Ce.data);S.fetchers.set(_,lt)}Cn(qt),S.navigation.state==="loading"&&qt>q?(me(P,"Expected pending action"),F&&F.abort(),Jr(S.navigation.location,{matches:rn,loaderData:Xn,errors:Ei,fetchers:new Map(S.fetchers)})):(st({errors:Ei,loaderData:ax(S.loaderData,Xn,rn,Ei),fetchers:new Map(S.fetchers)}),le=!1)}async function qn(_,D,M,j,H,X,se,Q,Y){let G=S.fetchers.get(_);gr(_,ll(Y,G?G.data:void 0),{flushSync:se});let ee=new AbortController,ue=Sa(e.history,M,ee.signal);if(X){let Ce=await ya(H,M,ue.signal);if(Ce.type==="aborted")return;if(Ce.type==="error"){At(_,D,Ce.error,{flushSync:se});return}else if(Ce.matches)H=Ce.matches,j=kl(H,M);else{At(_,D,or(404,{pathname:M}),{flushSync:se});return}}B.set(_,ee);let we=V,Ie=(await Fr("loader",S,ue,[j],H,_))[j.route.id];if(Qo(Ie)&&(Ie=await y0(Ie,ue.signal,!0)||Ie),B.get(_)===ee&&B.delete(_),!ue.signal.aborted){if(fe.has(_)){gr(_,Fo(void 0));return}if(Ii(Ie))if(q>we){gr(_,Fo(void 0));return}else{pe.add(_),await bt(ue,Ie,!1,{preventScrollReset:Q});return}if(xr(Ie)){At(_,D,Ie.error);return}me(!Qo(Ie),"Unhandled fetcher deferred data"),gr(_,Fo(Ie.data))}}async function bt(_,D,M,j){let{submission:H,fetcherSubmission:X,preventScrollReset:se,replace:Q}=j===void 0?{}:j;D.response.headers.has("X-Remix-Revalidate")&&(le=!0);let Y=D.response.headers.get("Location");me(Y,"Expected a Location header on the redirect Response"),Y=nx(Y,new URL(_.url),l);let G=Su(S.location,Y,{_isRedirect:!0});if(r){let Ce=!1;if(D.response.headers.has("X-Remix-Reload-Document"))Ce=!0;else if(v0.test(Y)){const Xe=e.history.createURL(Y);Ce=Xe.origin!==t.location.origin||Is(Xe.pathname,l)==null}if(Ce){Q?t.location.replace(Y):t.location.assign(Y);return}}F=null;let ee=Q===!0||D.response.headers.has("X-Remix-Replace")?gt.Replace:gt.Push,{formMethod:ue,formAction:we,formEncType:xt}=S.navigation;!H&&!X&&ue&&we&&xt&&(H=cx(S.navigation));let Ie=H||X;if(xB.has(D.response.status)&&Ie&&pn(Ie.formMethod))await Zr(ee,G,{submission:tt({},Ie,{formAction:Y}),preventScrollReset:se||T,enableViewTransition:M?O:void 0});else{let Ce=Ip(G,H);await Zr(ee,G,{overrideNavigation:Ce,fetcherSubmission:X,preventScrollReset:se||T,enableViewTransition:M?O:void 0})}}async function Fr(_,D,M,j,H,X){let se,Q={};try{se=await PB(u,_,D,M,j,H,X,i,o)}catch(Y){return j.forEach(G=>{Q[G.route.id]={type:je.error,error:Y}}),Q}for(let[Y,G]of Object.entries(se))if($B(G)){let ee=G.result;Q[Y]={type:je.redirect,response:DB(ee,M,Y,H,l,d.v7_relativeSplatPath)}}else Q[Y]=await AB(G);return Q}async function _o(_,D,M,j,H){let X=_.matches,se=Fr("loader",_,H,M,D,null),Q=Promise.all(j.map(async ee=>{if(ee.matches&&ee.match&&ee.controller){let we=(await Fr("loader",_,Sa(e.history,ee.path,ee.controller.signal),[ee.match],ee.matches,ee.key))[ee.match.route.id];return{[ee.key]:we}}else return Promise.resolve({[ee.key]:{type:je.error,error:or(404,{pathname:ee.path})}})})),Y=await se,G=(await Q).reduce((ee,ue)=>Object.assign(ee,ue),{});return await Promise.all([zB(D,Y,H.signal,X,_.loaderData),BB(D,G,j)]),{loaderResults:Y,fetcherResults:G}}function To(){le=!0,Me.push(...Qn()),xe.forEach((_,D)=>{B.has(D)&&be.add(D),en(D)})}function gr(_,D,M){M===void 0&&(M={}),S.fetchers.set(_,D),st({fetchers:new Map(S.fetchers)},{flushSync:(M&&M.flushSync)===!0})}function At(_,D,M,j){j===void 0&&(j={});let H=Mi(S.matches,D);yi(_),st({errors:{[H.route.id]:M},fetchers:new Map(S.fetchers)},{flushSync:(j&&j.flushSync)===!0})}function Gs(_){return d.v7_fetcherPersist&&(te.set(_,(te.get(_)||0)+1),fe.has(_)&&fe.delete(_)),S.fetchers.get(_)||wB}function yi(_){let D=S.fetchers.get(_);B.has(_)&&!(D&&D.state==="loading"&&Z.has(_))&&en(_),xe.delete(_),Z.delete(_),pe.delete(_),fe.delete(_),be.delete(_),S.fetchers.delete(_)}function oc(_){if(d.v7_fetcherPersist){let D=(te.get(_)||0)-1;D<=0?(te.delete(_),fe.add(_)):te.set(_,D)}else yi(_);st({fetchers:new Map(S.fetchers)})}function en(_){let D=B.get(_);D&&(D.abort(),B.delete(_))}function ic(_){for(let D of _){let M=Gs(D),j=Fo(M.data);S.fetchers.set(D,j)}}function ac(){let _=[],D=!1;for(let M of pe){let j=S.fetchers.get(M);me(j,"Expected fetcher: "+M),j.state==="loading"&&(pe.delete(M),_.push(M),D=!0)}return ic(_),D}function Cn(_){let D=[];for(let[M,j]of Z)if(j<_){let H=S.fetchers.get(M);me(H,"Expected fetcher: "+M),H.state==="loading"&&(en(M),Z.delete(M),D.push(M))}return ic(D),D.length>0}function ma(_,D){let M=S.blockers.get(_)||sl;return Le.get(_)!==D&&Le.set(_,D),M}function sc(_){S.blockers.delete(_),Le.delete(_)}function bi(_,D){let M=S.blockers.get(_)||sl;me(M.state==="unblocked"&&D.state==="blocked"||M.state==="blocked"&&D.state==="blocked"||M.state==="blocked"&&D.state==="proceeding"||M.state==="blocked"&&D.state==="unblocked"||M.state==="proceeding"&&D.state==="unblocked","Invalid blocker state transition: "+M.state+" -> "+D.state);let j=new Map(S.blockers);j.set(_,D),st({blockers:j})}function lc(_){let{currentLocation:D,nextLocation:M,historyAction:j}=_;if(Le.size===0)return;Le.size>1&&Ts(!1,"A router only supports one blocker at a time");let H=Array.from(Le.entries()),[X,se]=H[H.length-1],Q=S.blockers.get(X);if(!(Q&&Q.state==="proceeding")&&se({currentLocation:D,nextLocation:M,historyAction:j}))return X}function ga(_){let D=or(404,{pathname:_}),M=s||a,{matches:j,route:H}=lx(M);return Qn(),{notFoundMatches:j,route:H,error:D}}function Qn(_){let D=[];return Ne.forEach((M,j)=>{(!_||_(j))&&(M.cancel(),D.push(j),Ne.delete(j))}),D}function Oh(_,D,M){if(v=_,x=D,g=M||null,!p&&S.navigation===Bp){p=!0;let j=uc(S.location,S.matches);j!=null&&st({restoreScrollPosition:j})}return()=>{v=null,x=null,g=null}}function _n(_,D){return g&&g(_,D.map(j=>J4(j,S.loaderData)))||_.key}function Mh(_,D){if(v&&x){let M=_n(_,D);v[M]=x()}}function uc(_,D){if(v){let M=_n(_,D),j=v[M];if(typeof j=="number")return j}return null}function va(_,D,M){if(c)if(_){if(Object.keys(_[0].params).length>0)return{active:!0,matches:xd(D,M,l,!0)}}else return{active:!0,matches:xd(D,M,l,!0)||[]};return{active:!1,matches:null}}async function ya(_,D,M){if(!c)return{type:"success",matches:_};let j=_;for(;;){let H=s==null,X=s||a,se=i;try{await c({path:D,matches:j,patch:(G,ee)=>{M.aborted||rx(G,ee,X,se,o)}})}catch(G){return{type:"error",error:G,partialMatches:j}}finally{H&&!M.aborted&&(a=[...a])}if(M.aborted)return{type:"aborted"};let Q=Oi(X,D,l);if(Q)return{type:"success",matches:Q};let Y=xd(X,D,l,!0);if(!Y||j.length===Y.length&&j.every((G,ee)=>G.route.id===Y[ee].route.id))return{type:"success",matches:null};j=Y}}function $h(_){i={},s=uf(_,o,void 0,i)}function tn(_,D){let M=s==null;rx(_,D,s||a,i,o),M&&(a=[...a],st({}))}return C={get basename(){return l},get future(){return d},get state(){return S},get routes(){return a},get window(){return t},initialize:Ct,subscribe:gi,enableScrollRestoration:Oh,navigate:vi,fetch:nr,revalidate:Ws,createHref:_=>e.history.createHref(_),encodeLocation:_=>e.history.encodeLocation(_),getFetcher:Gs,deleteFetcher:oc,dispose:Co,getBlocker:ma,deleteBlocker:sc,patchRoutes:tn,_internalFetchControllers:B,_internalActiveDeferreds:Ne,_internalSetRoutes:$h},C}function kB(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function pg(e,t,r,n,o,i,a,s){let l,u;if(a){l=[];for(let d of t)if(l.push(d),d.route.id===a){u=d;break}}else l=t,u=t[t.length-1];let c=g0(o||".",m0(l,i),Is(e.pathname,r)||e.pathname,s==="path");if(o==null&&(c.search=e.search,c.hash=e.hash),(o==null||o===""||o===".")&&u){let d=b0(c.search);if(u.route.index&&!d)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&d){let f=new URLSearchParams(c.search),h=f.getAll("index");f.delete("index"),h.filter(g=>g).forEach(g=>f.append("index",g));let v=f.toString();c.search=v?"?"+v:""}}return n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:fo([r,c.pathname])),ia(c)}function J1(e,t,r,n){if(!n||!kB(n))return{path:r};if(n.formMethod&&!LB(n.formMethod))return{path:r,error:or(405,{method:n.formMethod})};let o=()=>({path:r,error:or(400,{type:"invalid-body"})}),i=n.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=XC(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!pn(a))return o();let f=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((h,v)=>{let[g,x]=v;return""+h+g+"="+x+`
`},""):String(n.body);return{path:r,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:f}}}else if(n.formEncType==="application/json"){if(!pn(a))return o();try{let f=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}me(typeof FormData=="function","FormData is not available in this environment");let l,u;if(n.formData)l=gg(n.formData),u=n.formData;else if(n.body instanceof FormData)l=gg(n.body),u=n.body;else if(n.body instanceof URLSearchParams)l=n.body,u=ox(l);else if(n.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(n.body),u=ox(l)}catch{return o()}let c={formMethod:a,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(pn(c.formMethod))return{path:r,submission:c};let d=hi(r);return t&&d.search&&b0(d.search)&&l.append("index",""),d.search="?"+l,{path:ia(d),submission:c}}function Z1(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(o=>o.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function ex(e,t,r,n,o,i,a,s,l,u,c,d,f,h,v,g){let x=g?xr(g[1])?g[1].error:g[1].data:void 0,p=e.createURL(t.location),m=e.createURL(o),b=r;i&&t.errors?b=Z1(r,Object.keys(t.errors)[0],!0):g&&xr(g[1])&&(b=Z1(r,g[0]));let E=g?g[1].statusCode:void 0,C=a&&E&&E>=400,S=b.filter((T,F)=>{let{route:O}=T;if(O.lazy)return!0;if(O.loader==null)return!1;if(i)return mg(O,t.loaderData,t.errors);if(CB(t.loaderData,t.matches[F],T)||l.some(re=>re===T.route.id))return!0;let W=t.matches[F],ne=T;return tx(T,tt({currentUrl:p,currentParams:W.params,nextUrl:m,nextParams:ne.params},n,{actionResult:x,actionStatus:E,defaultShouldRevalidate:C?!1:s||p.pathname+p.search===m.pathname+m.search||p.search!==m.search||QC(W,ne)}))}),P=[];return d.forEach((T,F)=>{if(i||!r.some(le=>le.route.id===T.routeId)||c.has(F))return;let O=Oi(h,T.path,v);if(!O){P.push({key:F,routeId:T.routeId,path:T.path,matches:null,match:null,controller:null});return}let W=t.fetchers.get(F),ne=kl(O,T.path),re=!1;f.has(F)?re=!1:u.has(F)?(u.delete(F),re=!0):W&&W.state!=="idle"&&W.data===void 0?re=s:re=tx(ne,tt({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:r[r.length-1].params},n,{actionResult:x,actionStatus:E,defaultShouldRevalidate:C?!1:s})),re&&P.push({key:F,routeId:T.routeId,path:T.path,matches:O,match:ne,controller:new AbortController})}),[S,P]}function mg(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,o=r!=null&&r[e.id]!==void 0;return!n&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!o}function CB(e,t,r){let n=!t||r.route.id!==t.route.id,o=e[r.route.id]===void 0;return n||o}function QC(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function tx(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function rx(e,t,r,n,o){var i;let a;if(e){let u=n[e];me(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),a=u.children}else a=r;let s=t.filter(u=>!a.some(c=>YC(u,c))),l=uf(s,o,[e||"_","patch",String(((i=a)==null?void 0:i.length)||"0")],n);a.push(...l)}function YC(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var o;return(o=t.children)==null?void 0:o.some(i=>YC(r,i))}):!1}async function _B(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let o=r[e.id];me(o,"No route found in manifest");let i={};for(let a in n){let l=o[a]!==void 0&&a!=="hasErrorBoundary";Ts(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!Y4.has(a)&&(i[a]=n[a])}Object.assign(o,i),Object.assign(o,tt({},t(o),{lazy:void 0}))}async function TB(e){let{matches:t}=e,r=t.filter(o=>o.shouldLoad);return(await Promise.all(r.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[r[a].route.id]:i}),{})}async function PB(e,t,r,n,o,i,a,s,l,u){let c=i.map(h=>h.route.lazy?_B(h.route,l,s):void 0),d=i.map((h,v)=>{let g=c[v],x=o.some(m=>m.route.id===h.route.id);return tt({},h,{shouldLoad:x,resolve:async m=>(m&&n.method==="GET"&&(h.route.lazy||h.route.loader)&&(x=!0),x?RB(t,n,h,g,m,u):Promise.resolve({type:je.data,result:void 0}))})}),f=await e({matches:d,request:n,params:i[0].params,fetcherKey:a,context:u});try{await Promise.all(c)}catch{}return f}async function RB(e,t,r,n,o,i){let a,s,l=u=>{let c,d=new Promise((v,g)=>c=g);s=()=>c(),t.signal.addEventListener("abort",s);let f=v=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):u({request:t,params:r.params,context:i},...v!==void 0?[v]:[]),h=(async()=>{try{return{type:"data",result:await(o?o(g=>f(g)):f())}}catch(v){return{type:"error",result:v}}})();return Promise.race([h,d])};try{let u=r.route[e];if(n)if(u){let c,[d]=await Promise.all([l(u).catch(f=>{c=f}),n]);if(c!==void 0)throw c;a=d}else if(await n,u=r.route[e],u)a=await l(u);else if(e==="action"){let c=new URL(t.url),d=c.pathname+c.search;throw or(405,{method:t.method,pathname:d,routeId:r.route.id})}else return{type:je.data,result:void 0};else if(u)a=await l(u);else{let c=new URL(t.url),d=c.pathname+c.search;throw or(404,{pathname:d})}me(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:je.error,result:u}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function AB(e){let{result:t,type:r}=e;if(JC(t)){let u;try{let c=t.headers.get("Content-Type");c&&/\bapplication\/json\b/.test(c)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(c){return{type:je.error,error:c}}return r===je.error?{type:je.error,error:new cf(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:je.data,data:u,statusCode:t.status,headers:t.headers}}if(r===je.error){if(ux(t)){var n;if(t.data instanceof Error){var o;return{type:je.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new cf(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:je.error,error:t,statusCode:fh(t)?t.status:void 0}}if(FB(t)){var i,a;return{type:je.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(ux(t)){var s,l;return{type:je.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:je.data,data:t}}function DB(e,t,r,n,o,i){let a=e.headers.get("Location");if(me(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!v0.test(a)){let s=n.slice(0,n.findIndex(l=>l.route.id===r)+1);a=pg(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function nx(e,t,r){if(v0.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n),i=Is(o.pathname,r)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Sa(e,t,r,n){let o=e.createURL(XC(t)).toString(),i={signal:r};if(n&&pn(n.formMethod)){let{formMethod:a,formEncType:s}=n;i.method=a.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(n.json)):s==="text/plain"?i.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?i.body=gg(n.formData):i.body=n.formData}return new Request(o,i)}function gg(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function ox(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function OB(e,t,r,n,o){let i={},a=null,s,l=!1,u={},c=r&&xr(r[1])?r[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let f=d.route.id,h=t[f];if(me(!Ii(h),"Cannot handle redirect results in processLoaderData"),xr(h)){let v=h.error;c!==void 0&&(v=c,c=void 0),a=a||{};{let g=Mi(e,f);a[g.route.id]==null&&(a[g.route.id]=v)}i[f]=void 0,l||(l=!0,s=fh(h.error)?h.error.status:500),h.headers&&(u[f]=h.headers)}else Qo(h)?(n.set(f,h.deferredData),i[f]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!l&&(s=h.statusCode),h.headers&&(u[f]=h.headers)):(i[f]=h.data,h.statusCode&&h.statusCode!==200&&!l&&(s=h.statusCode),h.headers&&(u[f]=h.headers))}),c!==void 0&&r&&(a={[r[0]]:c},i[r[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:u}}function ix(e,t,r,n,o,i,a){let{loaderData:s,errors:l}=OB(t,r,n,a);return o.forEach(u=>{let{key:c,match:d,controller:f}=u,h=i[c];if(me(h,"Did not find corresponding fetcher result"),!(f&&f.signal.aborted))if(xr(h)){let v=Mi(e.matches,d==null?void 0:d.route.id);l&&l[v.route.id]||(l=tt({},l,{[v.route.id]:h.error})),e.fetchers.delete(c)}else if(Ii(h))me(!1,"Unhandled fetcher revalidation redirect");else if(Qo(h))me(!1,"Unhandled fetcher deferred data");else{let v=Fo(h.data);e.fetchers.set(c,v)}}),{loaderData:s,errors:l}}function ax(e,t,r,n){let o=tt({},t);for(let i of r){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),n&&n.hasOwnProperty(a))break}return o}function sx(e){return e?xr(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Mi(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function lx(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function or(e,t){let{pathname:r,routeId:n,method:o,type:i,message:a}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",o&&r&&n?l="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",l='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",o&&r&&n?l="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new cf(e||500,s,new Error(l),!0)}function Vc(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,o]=t[r];if(Ii(o))return{key:n,result:o}}}function XC(e){let t=typeof e=="string"?hi(e):e;return ia(tt({},t,{hash:""}))}function MB(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function $B(e){return JC(e.result)&&bB.has(e.result.status)}function Qo(e){return e.type===je.deferred}function xr(e){return e.type===je.error}function Ii(e){return(e&&e.type)===je.redirect}function ux(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function FB(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function JC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function LB(e){return yB.has(e.toLowerCase())}function pn(e){return gB.has(e.toLowerCase())}async function zB(e,t,r,n,o){let i=Object.entries(t);for(let a=0;a<i.length;a++){let[s,l]=i[a],u=e.find(f=>(f==null?void 0:f.route.id)===s);if(!u)continue;let c=n.find(f=>f.route.id===u.route.id),d=c!=null&&!QC(c,u)&&(o&&o[u.route.id])!==void 0;Qo(l)&&d&&await y0(l,r,!1).then(f=>{f&&(t[s]=f)})}}async function BB(e,t,r){for(let n=0;n<r.length;n++){let{key:o,routeId:i,controller:a}=r[n],s=t[o];e.find(u=>(u==null?void 0:u.route.id)===i)&&Qo(s)&&(me(a,"Expected an AbortController for revalidating fetcher deferred result"),await y0(s,a.signal,!0).then(u=>{u&&(t[o]=u)}))}}async function y0(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:je.data,data:e.deferredData.unwrappedData}}catch(o){return{type:je.error,error:o}}return{type:je.data,data:e.deferredData.data}}}function b0(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function kl(e,t){let r=typeof t=="string"?hi(t).search:t.search;if(e[e.length-1].route.index&&b0(r||""))return e[e.length-1];let n=GC(e);return n[n.length-1]}function cx(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:i,json:a}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}}}function Ip(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function IB(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function ll(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function jB(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Fo(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function NB(e,t){try{let r=e.sessionStorage.getItem(qC);if(r){let n=JSON.parse(r);for(let[o,i]of Object.entries(n||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function VB(e,t){if(t.size>0){let r={};for(let[n,o]of t)r[n]=[...o];try{e.sessionStorage.setItem(qC,JSON.stringify(r))}catch(n){Ts(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/**
 * React Router v6.28.0
 *
 * 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 df(){return df=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},df.apply(this,arguments)}const hh=w.createContext(null),ZC=w.createContext(null),ca=w.createContext(null),x0=w.createContext(null),Eo=w.createContext({outlet:null,matches:[],isDataRoute:!1}),e_=w.createContext(null);function UB(e,t){let{relative:r}=t===void 0?{}:t;Hu()||me(!1);let{basename:n,navigator:o}=w.useContext(ca),{hash:i,pathname:a,search:s}=r_(e,{relative:r}),l=a;return n!=="/"&&(l=a==="/"?n:fo([n,a])),o.createHref({pathname:l,search:s,hash:i})}function Hu(){return w.useContext(x0)!=null}function ph(){return Hu()||me(!1),w.useContext(x0).location}function t_(e){w.useContext(ca).static||w.useLayoutEffect(e)}function WB(){let{isDataRoute:e}=w.useContext(Eo);return e?oI():HB()}function HB(){Hu()||me(!1);let e=w.useContext(hh),{basename:t,future:r,navigator:n}=w.useContext(ca),{matches:o}=w.useContext(Eo),{pathname:i}=ph(),a=JSON.stringify(m0(o,r.v7_relativeSplatPath)),s=w.useRef(!1);return t_(()=>{s.current=!0}),w.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){n.go(u);return}let d=g0(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:fo([t,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[t,n,a,i,e])}const GB=w.createContext(null);function KB(e){let t=w.useContext(Eo).outlet;return t&&w.createElement(GB.Provider,{value:e},t)}function w0(){let{matches:e}=w.useContext(Eo),t=e[e.length-1];return t?t.params:{}}function r_(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=w.useContext(ca),{matches:o}=w.useContext(Eo),{pathname:i}=ph(),a=JSON.stringify(m0(o,n.v7_relativeSplatPath));return w.useMemo(()=>g0(e,JSON.parse(a),i,r==="path"),[e,a,i,r])}function qB(e,t,r,n){Hu()||me(!1);let{navigator:o}=w.useContext(ca),{matches:i}=w.useContext(Eo),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=ph(),c;c=u;let d=c.pathname||"/",f=d;if(l!=="/"){let g=l.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(g.length).join("/")}let h=Oi(e,{pathname:f});return ZB(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:fo([l,o.encodeLocation?o.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:fo([l,o.encodeLocation?o.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,r,n)}function QB(){let e=nI(),t=fh(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),r?w.createElement("pre",{style:o},r):null,null)}const YB=w.createElement(QB,null);class XB extends w.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?w.createElement(Eo.Provider,{value:this.props.routeContext},w.createElement(e_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function JB(e){let{routeContext:t,match:r,children:n}=e,o=w.useContext(hh);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),w.createElement(Eo.Provider,{value:t},n)}function ZB(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,s=(o=r)==null?void 0:o.errors;if(s!=null){let c=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);c>=0||me(!1),a=a.slice(0,Math.min(a.length,c+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c<a.length;c++){let d=a[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:h}=r,v=d.route.loader&&f[d.route.id]===void 0&&(!h||h[d.route.id]===void 0);if(d.route.lazy||v){l=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,d,f)=>{let h,v=!1,g=null,x=null;r&&(h=s&&d.route.id?s[d.route.id]:void 0,g=d.route.errorElement||YB,l&&(u<0&&f===0?(iI("route-fallback"),v=!0,x=null):u===f&&(v=!0,x=d.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,f+1)),m=()=>{let b;return h?b=g:v?b=x:d.route.Component?b=w.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=c,w.createElement(JB,{match:d,routeContext:{outlet:c,matches:p,isDataRoute:r!=null},children:b})};return r&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?w.createElement(XB,{location:r.location,revalidation:r.revalidation,component:g,error:h,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}var n_=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(n_||{}),ff=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ff||{});function eI(e){let t=w.useContext(hh);return t||me(!1),t}function tI(e){let t=w.useContext(ZC);return t||me(!1),t}function rI(e){let t=w.useContext(Eo);return t||me(!1),t}function o_(e){let t=rI(),r=t.matches[t.matches.length-1];return r.route.id||me(!1),r.route.id}function nI(){var e;let t=w.useContext(e_),r=tI(ff.UseRouteError),n=o_(ff.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function oI(){let{router:e}=eI(n_.UseNavigateStable),t=o_(ff.UseNavigateStable),r=w.useRef(!1);return t_(()=>{r.current=!0}),w.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,df({fromRouteId:t},i)))},[e,t])}const dx={};function iI(e,t,r){dx[e]||(dx[e]=!0)}const fx={};function aI(e,t){fx[t]||(fx[t]=!0,console.warn(t))}const Ea=(e,t,r)=>aI(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+r+"."));function sI(e,t){e!=null&&e.v7_startTransition||Ea("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&(!t||!t.v7_relativeSplatPath)&&Ea("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||Ea("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||Ea("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||Ea("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||Ea("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function i_(e){return KB(e.context)}function N(e){me(!1)}function lI(e){let{basename:t="/",children:r=null,location:n,navigationType:o=gt.Pop,navigator:i,static:a=!1,future:s}=e;Hu()&&me(!1);let l=t.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:l,navigator:i,static:a,future:df({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof n=="string"&&(n=hi(n));let{pathname:c="/",search:d="",hash:f="",state:h=null,key:v="default"}=n,g=w.useMemo(()=>{let x=Is(c,l);return x==null?null:{location:{pathname:x,search:d,hash:f,state:h,key:v},navigationType:o}},[l,c,d,f,h,v,o]);return g==null?null:w.createElement(ca.Provider,{value:u},w.createElement(x0.Provider,{children:r,value:g}))}new Promise(()=>{});function vg(e,t){t===void 0&&(t=[]);let r=[];return w.Children.forEach(e,(n,o)=>{if(!w.isValidElement(n))return;let i=[...t,o];if(n.type===w.Fragment){r.push.apply(r,vg(n.props.children,i));return}n.type!==N&&me(!1),!n.props.index||!n.props.children||me(!1);let a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=vg(n.props.children,i)),r.push(a)}),r}function uI(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:w.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:w.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:w.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
 * React Router DOM v6.28.0
 *
 * 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 Eu(){return Eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Eu.apply(this,arguments)}function cI(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function dI(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function fI(e,t){return e.button===0&&(!t||t==="_self")&&!dI(e)}const hI=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],pI="6";try{window.__reactRouterVersion=pI}catch{}function mI(e,t){return EB({basename:void 0,future:Eu({},void 0,{v7_prependBasename:!0}),history:K4({window:void 0}),hydrationData:gI(),routes:e,mapRouteProperties:uI,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function gI(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Eu({},t,{errors:vI(t.errors)})),t}function vI(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,o]of t)if(o&&o.__type==="RouteErrorResponse")r[n]=new cf(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",r[n]=a}catch{}}if(r[n]==null){let i=new Error(o.message);i.stack="",r[n]=i}}else r[n]=o;return r}const yI=w.createContext({isTransitioning:!1}),bI=w.createContext(new Map),xI="startTransition",hx=sm[xI],wI="flushSync",px=$A[wI];function SI(e){hx?hx(e):e()}function ul(e){px?px(e):e()}class EI{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function kI(e){let{fallbackElement:t,router:r,future:n}=e,[o,i]=w.useState(r.state),[a,s]=w.useState(),[l,u]=w.useState({isTransitioning:!1}),[c,d]=w.useState(),[f,h]=w.useState(),[v,g]=w.useState(),x=w.useRef(new Map),{v7_startTransition:p}=n||{},m=w.useCallback(T=>{p?SI(T):T()},[p]),b=w.useCallback((T,F)=>{let{deletedFetchers:O,flushSync:W,viewTransitionOpts:ne}=F;O.forEach(le=>x.current.delete(le)),T.fetchers.forEach((le,Me)=>{le.data!==void 0&&x.current.set(Me,le.data)});let re=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!ne||re){W?ul(()=>i(T)):m(()=>i(T));return}if(W){ul(()=>{f&&(c&&c.resolve(),f.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:ne.currentLocation,nextLocation:ne.nextLocation})});let le=r.window.document.startViewTransition(()=>{ul(()=>i(T))});le.finished.finally(()=>{ul(()=>{d(void 0),h(void 0),s(void 0),u({isTransitioning:!1})})}),ul(()=>h(le));return}f?(c&&c.resolve(),f.skipTransition(),g({state:T,currentLocation:ne.currentLocation,nextLocation:ne.nextLocation})):(s(T),u({isTransitioning:!0,flushSync:!1,currentLocation:ne.currentLocation,nextLocation:ne.nextLocation}))},[r.window,f,c,x,m]);w.useLayoutEffect(()=>r.subscribe(b),[r,b]),w.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new EI)},[l]),w.useEffect(()=>{if(c&&a&&r.window){let T=a,F=c.promise,O=r.window.document.startViewTransition(async()=>{m(()=>i(T)),await F});O.finished.finally(()=>{d(void 0),h(void 0),s(void 0),u({isTransitioning:!1})}),h(O)}},[m,a,c,r.window]),w.useEffect(()=>{c&&a&&o.location.key===a.location.key&&c.resolve()},[c,f,o.location,a]),w.useEffect(()=>{!l.isTransitioning&&v&&(s(v.state),u({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),g(void 0))},[l.isTransitioning,v]),w.useEffect(()=>{},[]);let E=w.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:T=>r.navigate(T),push:(T,F,O)=>r.navigate(T,{state:F,preventScrollReset:O==null?void 0:O.preventScrollReset}),replace:(T,F,O)=>r.navigate(T,{replace:!0,state:F,preventScrollReset:O==null?void 0:O.preventScrollReset})}),[r]),C=r.basename||"/",S=w.useMemo(()=>({router:r,navigator:E,static:!1,basename:C}),[r,E,C]),P=w.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return w.useEffect(()=>sI(n,r.future),[n,r.future]),w.createElement(w.Fragment,null,w.createElement(hh.Provider,{value:S},w.createElement(ZC.Provider,{value:o},w.createElement(bI.Provider,{value:x.current},w.createElement(yI.Provider,{value:l},w.createElement(lI,{basename:C,location:o.location,navigationType:o.historyAction,navigator:E,future:P},o.initialized||r.future.v7_partialHydration?w.createElement(CI,{routes:r.routes,future:r.future,state:o}):t))))),null)}const CI=w.memo(_I);function _I(e){let{routes:t,future:r,state:n}=e;return qB(t,void 0,n,r)}const TI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",PI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,OH=w.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:c,viewTransition:d}=t,f=cI(t,hI),{basename:h}=w.useContext(ca),v,g=!1;if(typeof u=="string"&&PI.test(u)&&(v=u,TI))try{let b=new URL(window.location.href),E=u.startsWith("//")?new URL(b.protocol+u):new URL(u),C=Is(E.pathname,h);E.origin===b.origin&&C!=null?u=C+E.search+E.hash:g=!0}catch{}let x=UB(u,{relative:o}),p=RI(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:o,viewTransition:d});function m(b){n&&n(b),b.defaultPrevented||p(b)}return w.createElement("a",Eu({},f,{href:v||x,onClick:g||i?n:m,ref:r,target:l}))});var mx;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(mx||(mx={}));var gx;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(gx||(gx={}));function RI(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a,viewTransition:s}=t===void 0?{}:t,l=WB(),u=ph(),c=r_(e,{relative:a});return w.useCallback(d=>{if(fI(d,r)){d.preventDefault();let f=n!==void 0?n:ia(u)===ia(c);l(e,{replace:f,state:o,preventScrollReset:i,relative:a,viewTransition:s})}},[u,l,c,n,o,r,e,i,a,s])}var a_=String.raw,s_=a_`
  :root,
  :host {
    --chakra-vh: 100vh;
  }

  @supports (height: -webkit-fill-available) {
    :root,
    :host {
      --chakra-vh: -webkit-fill-available;
    }
  }

  @supports (height: -moz-fill-available) {
    :root,
    :host {
      --chakra-vh: -moz-fill-available;
    }
  }

  @supports (height: 100dvh) {
    :root,
    :host {
      --chakra-vh: 100dvh;
    }
  }
`,AI=()=>z.jsx(Uu,{styles:s_}),DI=({scope:e=""})=>z.jsx(Uu,{styles:a_`
      html {
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        font-family: system-ui, sans-serif;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
        -moz-osx-font-smoothing: grayscale;
        touch-action: manipulation;
      }

      body {
        position: relative;
        min-height: 100%;
        margin: 0;
        font-feature-settings: "kern";
      }

      ${e} :where(*, *::before, *::after) {
        border-width: 0;
        border-style: solid;
        box-sizing: border-box;
        word-wrap: break-word;
      }

      main {
        display: block;
      }

      ${e} hr {
        border-top-width: 1px;
        box-sizing: content-box;
        height: 0;
        overflow: visible;
      }

      ${e} :where(pre, code, kbd,samp) {
        font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        font-size: 1em;
      }

      ${e} a {
        background-color: transparent;
        color: inherit;
        text-decoration: inherit;
      }

      ${e} abbr[title] {
        border-bottom: none;
        text-decoration: underline;
        -webkit-text-decoration: underline dotted;
        text-decoration: underline dotted;
      }

      ${e} :where(b, strong) {
        font-weight: bold;
      }

      ${e} small {
        font-size: 80%;
      }

      ${e} :where(sub,sup) {
        font-size: 75%;
        line-height: 0;
        position: relative;
        vertical-align: baseline;
      }

      ${e} sub {
        bottom: -0.25em;
      }

      ${e} sup {
        top: -0.5em;
      }

      ${e} img {
        border-style: none;
      }

      ${e} :where(button, input, optgroup, select, textarea) {
        font-family: inherit;
        font-size: 100%;
        line-height: 1.15;
        margin: 0;
      }

      ${e} :where(button, input) {
        overflow: visible;
      }

      ${e} :where(button, select) {
        text-transform: none;
      }

      ${e} :where(
          button::-moz-focus-inner,
          [type="button"]::-moz-focus-inner,
          [type="reset"]::-moz-focus-inner,
          [type="submit"]::-moz-focus-inner
        ) {
        border-style: none;
        padding: 0;
      }

      ${e} fieldset {
        padding: 0.35em 0.75em 0.625em;
      }

      ${e} legend {
        box-sizing: border-box;
        color: inherit;
        display: table;
        max-width: 100%;
        padding: 0;
        white-space: normal;
      }

      ${e} progress {
        vertical-align: baseline;
      }

      ${e} textarea {
        overflow: auto;
      }

      ${e} :where([type="checkbox"], [type="radio"]) {
        box-sizing: border-box;
        padding: 0;
      }

      ${e} input[type="number"]::-webkit-inner-spin-button,
      ${e} input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none !important;
      }

      ${e} input[type="number"] {
        -moz-appearance: textfield;
      }

      ${e} input[type="search"] {
        -webkit-appearance: textfield;
        outline-offset: -2px;
      }

      ${e} input[type="search"]::-webkit-search-decoration {
        -webkit-appearance: none !important;
      }

      ${e} ::-webkit-file-upload-button {
        -webkit-appearance: button;
        font: inherit;
      }

      ${e} details {
        display: block;
      }

      ${e} summary {
        display: list-item;
      }

      template {
        display: none;
      }

      [hidden] {
        display: none !important;
      }

      ${e} :where(
          blockquote,
          dl,
          dd,
          h1,
          h2,
          h3,
          h4,
          h5,
          h6,
          hr,
          figure,
          p,
          pre
        ) {
        margin: 0;
      }

      ${e} button {
        background: transparent;
        padding: 0;
      }

      ${e} fieldset {
        margin: 0;
        padding: 0;
      }

      ${e} :where(ol, ul) {
        margin: 0;
        padding: 0;
      }

      ${e} textarea {
        resize: vertical;
      }

      ${e} :where(button, [role="button"]) {
        cursor: pointer;
      }

      ${e} button::-moz-focus-inner {
        border: 0 !important;
      }

      ${e} table {
        border-collapse: collapse;
      }

      ${e} :where(h1, h2, h3, h4, h5, h6) {
        font-size: inherit;
        font-weight: inherit;
      }

      ${e} :where(button, input, optgroup, select, textarea) {
        padding: 0;
        line-height: inherit;
        color: inherit;
      }

      ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
        display: block;
      }

      ${e} :where(img, video) {
        max-width: 100%;
        height: auto;
      }

      [data-js-focus-visible]
        :focus:not([data-focus-visible-added]):not(
          [data-focus-visible-disabled]
        ) {
        outline: none;
        box-shadow: none;
      }

      ${e} select::-ms-expand {
        display: none;
      }

      ${s_}
    `});function OI(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function ko(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=w.createContext(a);s.displayName=t;function l(){var u;const c=w.useContext(s);if(!c&&r){const d=new Error(i??OI(n,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[s.Provider,l,s]}var[MI,$I]=ko({strict:!1,name:"PortalManagerContext"});function l_(e){const{children:t,zIndex:r}=e;return z.jsx(MI,{value:{zIndex:r},children:t})}l_.displayName="PortalManager";var[u_,FI]=ko({strict:!1,name:"PortalContext"}),S0="chakra-portal",LI=".chakra-portal",zI=e=>z.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),BI=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=w.useState(null),i=w.useRef(null),[,a]=w.useState({});w.useEffect(()=>a({}),[]);const s=FI(),l=$I();ks(()=>{if(!n)return;const c=n.ownerDocument,d=t?s??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=S0,d.appendChild(i.current),a({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[n]);const u=l!=null&&l.zIndex?z.jsx(zI,{zIndex:l==null?void 0:l.zIndex,children:r}):r;return i.current?Nu.createPortal(z.jsx(u_,{value:i.current,children:u}),i.current):z.jsx("span",{ref:c=>{c&&o(c)}})},II=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,i=o??(typeof window<"u"?document.body:void 0),a=w.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=S0),l},[o]),[,s]=w.useState({});return ks(()=>s({}),[]),ks(()=>{if(!(!a||!i))return i.appendChild(a),()=>{i.removeChild(a)}},[a,i]),i&&a?Nu.createPortal(z.jsx(u_,{value:n?a:null,children:t}),a):null};function mh(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?z.jsx(II,{containerRef:r,...n}):z.jsx(BI,{...n})}mh.className=S0;mh.selector=LI;mh.displayName="Portal";var E0=w.createContext({getDocument(){return document},getWindow(){return window}});E0.displayName="EnvironmentContext";function jI({defer:e}={}){const[,t]=w.useReducer(r=>r+1,0);return ks(()=>{e&&t()},[e]),w.useContext(E0)}function c_(e){const{children:t,environment:r,disabled:n}=e,o=w.useRef(null),i=w.useMemo(()=>r||{getDocument:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument)!=null?l:document},getWindow:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument.defaultView)!=null?l:window}},[r]),a=!n||!r;return z.jsxs(E0.Provider,{value:i,children:[t,a&&z.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}c_.displayName="EnvironmentProvider";var NI=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:i=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=z.jsx(c_,{environment:s,disabled:u,children:t});return z.jsx(g4,{theme:a,cssVarsRoot:l,children:z.jsxs(iC,{colorModeManager:r,options:a.config,children:[i?z.jsx(DI,{scope:o}):z.jsx(AI,{}),!c&&z.jsx(y4,{}),n?z.jsx(l_,{zIndex:n,children:d}):d]})})},VI=(e,t)=>e.find(r=>r.id===t);function vx(e,t){const r=d_(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function d_(e,t){for(const[r,n]of Object.entries(e))if(VI(n,t))return r}function UI(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function WI(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",a=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:n,bottom:o,right:i,left:a}}function ku(e,t=[]){const r=w.useRef(e);return w.useEffect(()=>{r.current=e}),w.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function HI(e,t){const r=ku(e);w.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function Cu(e,t){const r=w.useRef(!1),n=w.useRef(!1);w.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),w.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}function GI(e,...t){return KI(e)?e(...t):e}var KI=e=>typeof e=="function";function qI(e){if(typeof Proxy>"u")return e;const t=new Map,r=(...n)=>e(...n);return new Proxy(r,{get:(n,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}function gh(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const yg=e=>Array.isArray(e);function f_(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function _u(e){return typeof e=="string"||Array.isArray(e)}function yx(e){const t=[{},{}];return e==null||e.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function k0(e,t,r,n){if(typeof t=="function"){const[o,i]=yx(n);t=t(r!==void 0?r:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=yx(n);t=t(r!==void 0?r:e.custom,o,i)}return t}function vh(e,t,r){const n=e.getProps();return k0(n,t,r!==void 0?r:n.custom,e)}const C0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_0=["initial",...C0],Gu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],da=new Set(Gu),ho=e=>e*1e3,po=e=>e/1e3,QI={type:"spring",stiffness:500,damping:25,restSpeed:10},YI=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),XI={type:"keyframes",duration:.8},JI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ZI=(e,{keyframes:t})=>t.length>2?XI:da.has(e)?e.startsWith("scale")?YI(t[1]):QI:JI;function T0(e,t){return e?e[t]||e.default||e:void 0}const ej={skipAnimations:!1,useManualTiming:!1},tj=e=>e!==null;function yh(e,{repeat:t,repeatType:r="loop"},n){const o=e.filter(tj),i=t&&r!=="loop"&&t%2===1?0:o.length-1;return!i||n===void 0?o[i]:n}const _r=e=>e;let bg=_r;function rj(e){let t=new Set,r=new Set,n=!1,o=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(u){i.has(u)&&(l.schedule(u),e()),u(a)}const l={schedule:(u,c=!1,d=!1)=>{const h=d&&n?t:r;return c&&i.add(u),h.has(u)||h.add(u),u},cancel:u=>{r.delete(u),i.delete(u)},process:u=>{if(a=u,n){o=!0;return}n=!0,[t,r]=[r,t],r.clear(),t.forEach(s),n=!1,o&&(o=!1,l.process(u))}};return l}const Uc=["read","resolveKeyframes","update","preRender","render","postRender"],nj=40;function h_(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,a=Uc.reduce((p,m)=>(p[m]=rj(i),p),{}),{read:s,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=a,h=()=>{const p=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(p-o.timestamp,nj),1),o.timestamp=p,o.isProcessing=!0,s.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(h))},v=()=>{r=!0,n=!0,o.isProcessing||e(h)};return{schedule:Uc.reduce((p,m)=>{const b=a[m];return p[m]=(E,C=!1,S=!1)=>(r||v(),b.schedule(E,C,S)),p},{}),cancel:p=>{for(let m=0;m<Uc.length;m++)a[Uc[m]].cancel(p)},state:o,steps:a}}const{schedule:Qe,cancel:si,state:$t,steps:jp}=h_(typeof requestAnimationFrame<"u"?requestAnimationFrame:_r,!0),p_=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,oj=1e-7,ij=12;function aj(e,t,r,n,o){let i,a,s=0;do a=t+(r-t)/2,i=p_(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>oj&&++s<ij);return a}function Ku(e,t,r,n){if(e===t&&r===n)return _r;const o=i=>aj(i,0,1,e,r);return i=>i===0||i===1?i:p_(o(i),t,n)}const m_=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,g_=e=>t=>1-e(1-t),v_=Ku(.33,1.53,.69,.99),P0=g_(v_),y_=m_(P0),b_=e=>(e*=2)<1?.5*P0(e):.5*(2-Math.pow(2,-10*(e-1))),R0=e=>1-Math.sin(Math.acos(e)),x_=g_(R0),w_=m_(R0),S_=e=>/^0[^.\s]+$/u.test(e);function sj(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||S_(e):!0}const E_=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),k_=e=>t=>typeof t=="string"&&t.startsWith(e),C_=k_("--"),lj=k_("var(--"),A0=e=>lj(e)?uj.test(e.split("/*")[0].trim()):!1,uj=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,cj=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function dj(e){const t=cj.exec(e);if(!t)return[,];const[,r,n,o]=t;return[`--${r??n}`,o]}function __(e,t,r=1){const[n,o]=dj(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const a=i.trim();return E_(a)?parseFloat(a):a}return A0(o)?__(o,t,r+1):o}const xo=(e,t,r)=>r>t?t:r<e?e:r,js={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Tu={...js,transform:e=>xo(0,1,e)},Wc={...js,default:1},qu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Lo=qu("deg"),Wn=qu("%"),ae=qu("px"),fj=qu("vh"),hj=qu("vw"),bx={...Wn,parse:e=>Wn.parse(e)/100,transform:e=>Wn.transform(e*100)},pj=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),xx=e=>e===js||e===ae,wx=(e,t)=>parseFloat(e.split(", ")[t]),Sx=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/u);if(o)return wx(o[1],t);{const i=n.match(/^matrix\((.+)\)$/u);return i?wx(i[1],e):0}},mj=new Set(["x","y","z"]),gj=Gu.filter(e=>!mj.has(e));function vj(e){const t=[];return gj.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const Ps={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:Sx(4,13),y:Sx(5,14)};Ps.translateX=Ps.x;Ps.translateY=Ps.y;const T_=e=>t=>t.test(e),yj={test:e=>e==="auto",parse:e=>e},P_=[js,ae,Wn,Lo,hj,fj,yj],Ex=e=>P_.find(T_(e)),Xi=new Set;let xg=!1,wg=!1;function R_(){if(wg){const e=Array.from(Xi).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const o=vj(n);o.length&&(r.set(n,o),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const o=r.get(n);o&&o.forEach(([i,a])=>{var s;(s=n.getValue(i))===null||s===void 0||s.set(a)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}wg=!1,xg=!1,Xi.forEach(e=>e.complete()),Xi.clear()}function A_(){Xi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(wg=!0)})}function bj(){A_(),R_()}class D0{constructor(t,r,n,o,i,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=o,this.element=i,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Xi.add(this),xg||(xg=!0,Qe.read(A_),Qe.resolveKeyframes(R_))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:o}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const a=o==null?void 0:o.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(n&&r){const l=n.readValue(r,s);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=s),o&&a===void 0&&o.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Xi.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Xi.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ul=e=>Math.round(e*1e5)/1e5,O0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function xj(e){return e==null}const wj=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,M0=(e,t)=>r=>!!(typeof r=="string"&&wj.test(r)&&r.startsWith(e)||t&&!xj(r)&&Object.prototype.hasOwnProperty.call(r,t)),D_=(e,t,r)=>n=>{if(typeof n!="string")return n;const[o,i,a,s]=n.match(O0);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},Sj=e=>xo(0,255,e),Np={...js,transform:e=>Math.round(Sj(e))},ji={test:M0("rgb","red"),parse:D_("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Np.transform(e)+", "+Np.transform(t)+", "+Np.transform(r)+", "+Ul(Tu.transform(n))+")"};function Ej(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const Sg={test:M0("#"),parse:Ej,transform:ji.transform},Ua={test:M0("hsl","hue"),parse:D_("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Wn.transform(Ul(t))+", "+Wn.transform(Ul(r))+", "+Ul(Tu.transform(n))+")"},Ut={test:e=>ji.test(e)||Sg.test(e)||Ua.test(e),parse:e=>ji.test(e)?ji.parse(e):Ua.test(e)?Ua.parse(e):Sg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ji.transform(e):Ua.transform(e)},kj=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Cj(e){var t,r;return isNaN(e)&&typeof e=="string"&&(((t=e.match(O0))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(kj))===null||r===void 0?void 0:r.length)||0)>0}const O_="number",M_="color",_j="var",Tj="var(",kx="${}",Pj=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Pu(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(Pj,l=>(Ut.test(l)?(n.color.push(i),o.push(M_),r.push(Ut.parse(l))):l.startsWith(Tj)?(n.var.push(i),o.push(_j),r.push(l)):(n.number.push(i),o.push(O_),r.push(parseFloat(l))),++i,kx)).split(kx);return{values:r,split:s,indexes:n,types:o}}function $_(e){return Pu(e).values}function F_(e){const{split:t,types:r}=Pu(e),n=t.length;return o=>{let i="";for(let a=0;a<n;a++)if(i+=t[a],o[a]!==void 0){const s=r[a];s===O_?i+=Ul(o[a]):s===M_?i+=Ut.transform(o[a]):i+=o[a]}return i}}const Rj=e=>typeof e=="number"?0:e;function Aj(e){const t=$_(e);return F_(e)(t.map(Rj))}const li={test:Cj,parse:$_,createTransformer:F_,getAnimatableNone:Aj},Dj=new Set(["brightness","contrast","saturate","opacity"]);function Oj(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(O0)||[];if(!n)return e;const o=r.replace(n,"");let i=Dj.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const Mj=/\b([a-z-]*)\(.*?\)/gu,Eg={...li,getAnimatableNone:e=>{const t=e.match(Mj);return t?t.map(Oj).join(" "):e}},$j={borderWidth:ae,borderTopWidth:ae,borderRightWidth:ae,borderBottomWidth:ae,borderLeftWidth:ae,borderRadius:ae,radius:ae,borderTopLeftRadius:ae,borderTopRightRadius:ae,borderBottomRightRadius:ae,borderBottomLeftRadius:ae,width:ae,maxWidth:ae,height:ae,maxHeight:ae,top:ae,right:ae,bottom:ae,left:ae,padding:ae,paddingTop:ae,paddingRight:ae,paddingBottom:ae,paddingLeft:ae,margin:ae,marginTop:ae,marginRight:ae,marginBottom:ae,marginLeft:ae,backgroundPositionX:ae,backgroundPositionY:ae},Fj={rotate:Lo,rotateX:Lo,rotateY:Lo,rotateZ:Lo,scale:Wc,scaleX:Wc,scaleY:Wc,scaleZ:Wc,skew:Lo,skewX:Lo,skewY:Lo,distance:ae,translateX:ae,translateY:ae,translateZ:ae,x:ae,y:ae,z:ae,perspective:ae,transformPerspective:ae,opacity:Tu,originX:bx,originY:bx,originZ:ae},Cx={...js,transform:Math.round},$0={...$j,...Fj,zIndex:Cx,size:ae,fillOpacity:Tu,strokeOpacity:Tu,numOctaves:Cx},Lj={...$0,color:Ut,backgroundColor:Ut,outlineColor:Ut,fill:Ut,stroke:Ut,borderColor:Ut,borderTopColor:Ut,borderRightColor:Ut,borderBottomColor:Ut,borderLeftColor:Ut,filter:Eg,WebkitFilter:Eg},F0=e=>Lj[e];function L_(e,t){let r=F0(e);return r!==Eg&&(r=li),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const zj=new Set(["auto","none","0"]);function Bj(e,t,r){let n=0,o;for(;n<e.length&&!o;){const i=e[n];typeof i=="string"&&!zj.has(i)&&Pu(i).values.length&&(o=e[n]),n++}if(o&&r)for(const i of t)e[i]=L_(r,o)}class z_ extends D0{constructor(t,r,n,o,i){super(t,r,n,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),A0(u))){const c=__(u,r.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!pj.has(n)||t.length!==2)return;const[o,i]=t,a=Ex(o),s=Ex(i);if(a!==s)if(xx(a)&&xx(s))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let o=0;o<t.length;o++)sj(t[o])&&n.push(o);n.length&&Bj(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ps[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const o=r[r.length-1];o!==void 0&&t.getValue(n,o).jump(o,!1)}measureEndState(){var t;const{element:r,name:n,unresolvedKeyframes:o}=this;if(!r||!r.current)return;const i=r.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=o.length-1,s=o[a];o[a]=Ps[n](r.measureViewportBox(),window.getComputedStyle(r.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{r.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function L0(e){return typeof e=="function"}let wd;function Ij(){wd=void 0}const Hn={now:()=>(wd===void 0&&Hn.set($t.isProcessing||ej.useManualTiming?$t.timestamp:performance.now()),wd),set:e=>{wd=e,queueMicrotask(Ij)}},_x=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(li.test(e)||e==="0")&&!e.startsWith("url("));function jj(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function Nj(e,t,r,n){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],a=_x(o,t),s=_x(i,t);return!a||!s?!1:jj(e)||(r==="spring"||L0(r))&&n}const Vj=40;class B_{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Hn.now(),this.options={autoplay:t,delay:r,type:n,repeat:o,repeatDelay:i,repeatType:a,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Vj?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&bj(),this._resolved}onKeyframesResolved(t,r){this.resolvedAt=Hn.now(),this.hasAttemptedResolve=!0;const{name:n,type:o,velocity:i,delay:a,onComplete:s,onUpdate:l,isGenerator:u}=this.options;if(!u&&!Nj(t,n,o,i))if(a)this.options.duration=0;else{l==null||l(yh(t,this.options,r)),s==null||s(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,r);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:r,...c},this.onPostResolved())}onPostResolved(){}then(t,r){return this.currentFinishedPromise.then(t,r)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Rs=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},I_=(e,t,r=10)=>{let n="";const o=Math.max(Math.round(t/r),2);for(let i=0;i<o;i++)n+=e(Rs(0,o-1,i))+", ";return`linear(${n.substring(0,n.length-2)})`};function j_(e,t){return t?e*(1e3/t):0}const Uj=5;function N_(e,t,r){const n=Math.max(t-Uj,0);return j_(r-e(n),t-n)}const dt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Vp=.001;function Wj({duration:e=dt.duration,bounce:t=dt.bounce,velocity:r=dt.velocity,mass:n=dt.mass}){let o,i,a=1-t;a=xo(dt.minDamping,dt.maxDamping,a),e=xo(dt.minDuration,dt.maxDuration,po(e)),a<1?(o=u=>{const c=u*a,d=c*e,f=c-r,h=kg(u,a),v=Math.exp(-d);return Vp-f/h*v},i=u=>{const d=u*a*e,f=d*r+r,h=Math.pow(a,2)*Math.pow(u,2)*e,v=Math.exp(-d),g=kg(Math.pow(u,2),a);return(-o(u)+Vp>0?-1:1)*((f-h)*v)/g}):(o=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-Vp+c*d},i=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const s=5/e,l=Gj(o,i,s);if(e=ho(e),isNaN(l))return{stiffness:dt.stiffness,damping:dt.damping,duration:e};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:a*2*Math.sqrt(n*u),duration:e}}}const Hj=12;function Gj(e,t,r){let n=r;for(let o=1;o<Hj;o++)n=n-e(n)/t(n);return n}function kg(e,t){return e*Math.sqrt(1-t*t)}const Cg=2e4;function V_(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<Cg;)t+=r,n=e.next(t);return t>=Cg?1/0:t}const Kj=["duration","bounce"],qj=["stiffness","damping","mass"];function Tx(e,t){return t.some(r=>e[r]!==void 0)}function Qj(e){let t={velocity:dt.velocity,stiffness:dt.stiffness,damping:dt.damping,mass:dt.mass,isResolvedFromDuration:!1,...e};if(!Tx(e,qj)&&Tx(e,Kj))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(r*1.2),o=n*n,i=2*xo(.05,1,1-e.bounce)*Math.sqrt(o);t={...t,mass:dt.mass,stiffness:o,damping:i}}else{const r=Wj(e);t={...t,...r,mass:dt.mass},t.isResolvedFromDuration=!0}return t}function U_(e=dt.visualDuration,t=dt.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:o}=r;const i=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],s={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=Qj({...r,velocity:-po(r.velocity||0)}),v=f||0,g=u/(2*Math.sqrt(l*c)),x=a-i,p=po(Math.sqrt(l/c)),m=Math.abs(x)<5;n||(n=m?dt.restSpeed.granular:dt.restSpeed.default),o||(o=m?dt.restDelta.granular:dt.restDelta.default);let b;if(g<1){const C=kg(p,g);b=S=>{const P=Math.exp(-g*p*S);return a-P*((v+g*p*x)/C*Math.sin(C*S)+x*Math.cos(C*S))}}else if(g===1)b=C=>a-Math.exp(-p*C)*(x+(v+p*x)*C);else{const C=p*Math.sqrt(g*g-1);b=S=>{const P=Math.exp(-g*p*S),T=Math.min(C*S,300);return a-P*((v+g*p*x)*Math.sinh(T)+C*x*Math.cosh(T))/C}}const E={calculatedDuration:h&&d||null,next:C=>{const S=b(C);if(h)s.done=C>=d;else{let P=0;g<1&&(P=C===0?ho(v):N_(b,C,S));const T=Math.abs(P)<=n,F=Math.abs(a-S)<=o;s.done=T&&F}return s.value=s.done?a:S,s},toString:()=>{const C=Math.min(V_(E),Cg),S=I_(P=>E.next(C*P).value,C,30);return C+"ms "+S}};return E}function Px({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=T=>s!==void 0&&T<s||l!==void 0&&T>l,v=T=>s===void 0?l:l===void 0||Math.abs(s-T)<Math.abs(l-T)?s:l;let g=r*t;const x=d+g,p=a===void 0?x:a(x);p!==x&&(g=p-d);const m=T=>-g*Math.exp(-T/n),b=T=>p+m(T),E=T=>{const F=m(T),O=b(T);f.done=Math.abs(F)<=u,f.value=f.done?p:O};let C,S;const P=T=>{h(f.value)&&(C=T,S=U_({keyframes:[f.value,v(f.value)],velocity:N_(b,T,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:T=>{let F=!1;return!S&&C===void 0&&(F=!0,E(T),P(T)),C!==void 0&&T>=C?S.next(T-C):(!F&&E(T),f)}}}const Yj=Ku(.42,0,1,1),Xj=Ku(0,0,.58,1),W_=Ku(.42,0,.58,1),Jj=e=>Array.isArray(e)&&typeof e[0]!="number",z0=e=>Array.isArray(e)&&typeof e[0]=="number",Rx={linear:_r,easeIn:Yj,easeInOut:W_,easeOut:Xj,circIn:R0,circInOut:w_,circOut:x_,backIn:P0,backInOut:y_,backOut:v_,anticipate:b_},Ax=e=>{if(z0(e)){bg(e.length===4);const[t,r,n,o]=e;return Ku(t,r,n,o)}else if(typeof e=="string")return bg(Rx[e]!==void 0),Rx[e];return e},Zj=(e,t)=>r=>t(e(r)),Qu=(...e)=>e.reduce(Zj),ot=(e,t,r)=>e+(t-e)*r;function Up(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function eN({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=Up(l,s,e+1/3),i=Up(l,s,e),a=Up(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}function hf(e,t){return r=>r>0?t:e}const Wp=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},tN=[Sg,ji,Ua],rN=e=>tN.find(t=>t.test(e));function Dx(e){const t=rN(e);if(!t)return!1;let r=t.parse(e);return t===Ua&&(r=eN(r)),r}const Ox=(e,t)=>{const r=Dx(e),n=Dx(t);if(!r||!n)return hf(e,t);const o={...r};return i=>(o.red=Wp(r.red,n.red,i),o.green=Wp(r.green,n.green,i),o.blue=Wp(r.blue,n.blue,i),o.alpha=ot(r.alpha,n.alpha,i),ji.transform(o))},_g=new Set(["none","hidden"]);function nN(e,t){return _g.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function oN(e,t){return r=>ot(e,t,r)}function B0(e){return typeof e=="number"?oN:typeof e=="string"?A0(e)?hf:Ut.test(e)?Ox:sN:Array.isArray(e)?H_:typeof e=="object"?Ut.test(e)?Ox:iN:hf}function H_(e,t){const r=[...e],n=r.length,o=e.map((i,a)=>B0(i)(i,t[a]));return i=>{for(let a=0;a<n;a++)r[a]=o[a](i);return r}}function iN(e,t){const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=B0(e[o])(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}}function aN(e,t){var r;const n=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=(r=e.values[s])!==null&&r!==void 0?r:0;n[i]=l,o[a]++}return n}const sN=(e,t)=>{const r=li.createTransformer(t),n=Pu(e),o=Pu(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?_g.has(e)&&!o.values.length||_g.has(t)&&!n.values.length?nN(e,t):Qu(H_(aN(n,o),o.values),r):hf(e,t)};function G_(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?ot(e,t,r):B0(e)(e,t)}function lN(e,t,r){const n=[],o=r||G_,i=e.length-1;for(let a=0;a<i;a++){let s=o(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||_r:t;s=Qu(l,s)}n.push(s)}return n}function uN(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;if(bg(i===t.length),i===1)return()=>t[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=lN(t,n,o),s=a.length,l=u=>{let c=0;if(s>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const d=Rs(e[c],e[c+1],u);return a[c](d)};return r?u=>l(xo(e[0],e[i-1],u)):l}function cN(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=Rs(0,t,n);e.push(ot(r,1,o))}}function dN(e){const t=[0];return cN(t,e.length-1),t}function fN(e,t){return e.map(r=>r*t)}function hN(e,t){return e.map(()=>t||W_).splice(0,e.length-1)}function pf({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=Jj(n)?n.map(Ax):Ax(n),i={done:!1,value:t[0]},a=fN(r&&r.length===t.length?r:dN(t),e),s=uN(a,t,{ease:Array.isArray(o)?o:hN(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}const pN=e=>{const t=({timestamp:r})=>e(r);return{start:()=>Qe.update(t,!0),stop:()=>si(t),now:()=>$t.isProcessing?$t.timestamp:Hn.now()}},mN={decay:Px,inertia:Px,tween:pf,keyframes:pf,spring:U_},gN=e=>e/100;class I0 extends B_{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:r,motionValue:n,element:o,keyframes:i}=this.options,a=(o==null?void 0:o.KeyframeResolver)||D0,s=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new a(i,s,r,n,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:r="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:i,velocity:a=0}=this.options,s=L0(r)?r:mN[r]||pf;let l,u;s!==pf&&typeof t[0]!="number"&&(l=Qu(gN,G_(t[0],t[1])),t=[0,100]);const c=s({...this.options,keyframes:t});i==="mirror"&&(u=s({...this.options,keyframes:[...t].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=V_(c));const{calculatedDuration:d}=c,f=d+o,h=f*(n+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,r=!1){const{resolved:n}=this;if(!n){const{keyframes:T}=this.options;return{done:!0,value:T[T.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=n;if(this.startTime===null)return i.next(0);const{delay:f,repeat:h,repeatType:v,repeatDelay:g,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),r?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const p=this.currentTime-f*(this.speed>=0?1:-1),m=this.speed>=0?p<0:p>c;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let b=this.currentTime,E=i;if(h){const T=Math.min(this.currentTime,c)/d;let F=Math.floor(T),O=T%1;!O&&T>=1&&(O=1),O===1&&F--,F=Math.min(F,h+1),!!(F%2)&&(v==="reverse"?(O=1-O,g&&(O-=g/d)):v==="mirror"&&(E=a)),b=xo(0,1,O)*d}const C=m?{done:!1,value:l[0]}:E.next(b);s&&(C.value=s(C.value));let{done:S}=C;!m&&u!==null&&(S=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return P&&o!==void 0&&(C.value=yh(l,this.options,o)),x&&x(C.value),P&&this.finish(),C}get duration(){const{resolved:t}=this;return t?po(t.calculatedDuration):0}get time(){return po(this.currentTime)}set time(t){t=ho(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=po(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=pN,onPlay:r,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),r&&r();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=n??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const vN=new Set(["opacity","clipPath","filter","transform"]);function j0(e){let t;return()=>(t===void 0&&(t=e()),t)}const yN={linearEasing:void 0};function bN(e,t){const r=j0(e);return()=>{var n;return(n=yN[t])!==null&&n!==void 0?n:r()}}const mf=bN(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function K_(e){return!!(typeof e=="function"&&mf()||!e||typeof e=="string"&&(e in Tg||mf())||z0(e)||Array.isArray(e)&&e.every(K_))}const Cl=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Tg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Cl([0,.65,.55,1]),circOut:Cl([.55,0,1,.45]),backIn:Cl([.31,.01,.66,-.59]),backOut:Cl([.33,1.53,.69,.99])};function q_(e,t){if(e)return typeof e=="function"&&mf()?I_(e,t):z0(e)?Cl(e):Array.isArray(e)?e.map(r=>q_(r,t)||Tg.easeOut):Tg[e]}function xN(e,t,r,{delay:n=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s="easeInOut",times:l}={}){const u={[t]:r};l&&(u.offset=l);const c=q_(s,o);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}function Mx(e,t){e.timeline=t,e.onfinish=null}const wN=j0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),gf=10,SN=2e4;function EN(e){return L0(e.type)||e.type==="spring"||!K_(e.ease)}function kN(e,t){const r=new I0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:e[0]};const o=[];let i=0;for(;!n.done&&i<SN;)n=r.sample(i),o.push(n.value),i+=gf;return{times:void 0,keyframes:o,duration:i-gf,ease:"linear"}}const Q_={anticipate:b_,backInOut:y_,circInOut:w_};function CN(e){return e in Q_}class $x extends B_{constructor(t){super(t);const{name:r,motionValue:n,element:o,keyframes:i}=this.options;this.resolver=new z_(i,(a,s)=>this.onKeyframesResolved(a,s),r,n,o),this.resolver.scheduleResolve()}initPlayback(t,r){var n;let{duration:o=300,times:i,ease:a,type:s,motionValue:l,name:u,startTime:c}=this.options;if(!(!((n=l.owner)===null||n===void 0)&&n.current))return!1;if(typeof a=="string"&&mf()&&CN(a)&&(a=Q_[a]),EN(this.options)){const{onComplete:f,onUpdate:h,motionValue:v,element:g,...x}=this.options,p=kN(t,x);t=p.keyframes,t.length===1&&(t[1]=t[0]),o=p.duration,i=p.times,a=p.ease,s="keyframes"}const d=xN(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:a});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(Mx(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(yh(t,this.options,r)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:i,type:s,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:r}=t;return po(r)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:r}=t;return po(r.currentTime||0)}set time(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.currentTime=ho(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:r}=t;return r.playbackRate}set speed(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:r}=t;return r.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:r}=t;return r.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:r}=this;if(!r)return _r;const{animation:n}=r;Mx(n,t)}return _r}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:r,keyframes:n,duration:o,type:i,ease:a,times:s}=t;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,element:f,...h}=this.options,v=new I0({...h,keyframes:n,duration:o,type:i,ease:a,times:s,isGenerator:!0}),g=ho(this.time);u.setWithVelocity(v.sample(g-gf).value,v.sample(g).value,gf)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:r,name:n,repeatDelay:o,repeatType:i,damping:a,type:s}=t;return wN()&&n&&vN.has(n)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!o&&i!=="mirror"&&a!==0&&s!=="inertia"}}const _N=j0(()=>window.ScrollTimeline!==void 0);class TN{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,r){return Promise.all(this.animations).then(t).catch(r)}getAll(t){return this.animations[0][t]}setAll(t,r){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=r}attachTimeline(t,r){const n=this.animations.map(o=>_N()&&o.attachTimeline?o.attachTimeline(t):r(o));return()=>{n.forEach((o,i)=>{o&&o(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let r=0;r<this.animations.length;r++)t=Math.max(t,this.animations[r].duration);return t}runAll(t){this.animations.forEach(r=>r[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function PN({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const N0=(e,t,r,n={},o,i)=>a=>{const s=T0(n,e)||{},l=s.delay||n.delay||0;let{elapsed:u=0}=n;u=u-ho(l);let c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:f=>{t.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};PN(s)||(c={...c,...ZI(e,c)}),c.duration&&(c.duration=ho(c.duration)),c.repeatDelay&&(c.repeatDelay=ho(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=yh(c.keyframes,s);if(f!==void 0)return Qe.update(()=>{c.onUpdate(f),c.onComplete()}),new TN([])}return!i&&$x.supports(c)?new $x(c):new I0(c)},RN=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),AN=e=>yg(e)?e[e.length-1]||0:e;function V0(e,t){e.indexOf(t)===-1&&e.push(t)}function U0(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class W0{constructor(){this.subscriptions=[]}add(t){return V0(this.subscriptions,t),()=>U0(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i<o;i++){const a=this.subscriptions[i];a&&a(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Fx=30,DN=e=>!isNaN(parseFloat(e));class ON{constructor(t,r={}){this.version="11.14.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,o=!0)=>{const i=Hn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=Hn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=DN(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new W0);const n=this.events[t].add(r);return t==="change"?()=>{n(),Qe.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Hn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Fx)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,Fx);return j_(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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 Ru(e,t){return new ON(e,t)}function MN(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Ru(r))}function $N(e,t){const r=vh(e,t);let{transitionEnd:n={},transition:o={},...i}=r||{};i={...i,...n};for(const a in i){const s=AN(i[a]);MN(e,a,s)}}const H0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),FN="framerAppearId",Y_="data-"+H0(FN);function X_(e){return e.props[Y_]}const Gt=e=>!!(e&&e.getVelocity);function LN(e){return!!(Gt(e)&&e.add)}function Pg(e,t){const r=e.getValue("willChange");if(LN(r))return r.add(t)}function zN({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function J_(e,t,{delay:r=0,transitionOverride:n,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;n&&(a=n);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),h=l[d];if(h===void 0||c&&zN(c,d))continue;const v={delay:r,...T0(a||{},d)};let g=!1;if(window.MotionHandoffAnimation){const p=X_(e);if(p){const m=window.MotionHandoffAnimation(p,d,Qe);m!==null&&(v.startTime=m,g=!0)}}Pg(e,d),f.start(N0(d,f,h,e.shouldReduceMotion&&da.has(d)?{type:!1}:v,e,g));const x=f.animation;x&&u.push(x)}return s&&Promise.all(u).then(()=>{Qe.update(()=>{s&&$N(e,s)})}),u}function Rg(e,t,r={}){var n;const o=vh(e,t,r.type==="exit"?(n=e.presenceContext)===null||n===void 0?void 0:n.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(i=r.transitionOverride);const a=o?()=>Promise.all(J_(e,o,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return BN(e,t,c+u,d,f,r)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[a,s]:[s,a];return u().then(()=>c())}else return Promise.all([a(),s(r.delay)])}function BN(e,t,r=0,n=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*n,l=o===1?(u=0)=>u*n:(u=0)=>s-u*n;return Array.from(e.variantChildren).sort(IN).forEach((u,c)=>{u.notify("AnimationStart",t),a.push(Rg(u,t,{...i,delay:r+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function IN(e,t){return e.sortNodePosition(t)}function jN(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>Rg(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=Rg(e,t,r);else{const o=typeof t=="function"?vh(e,t,r.custom):t;n=Promise.all(J_(e,o,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}const NN=_0.length;function Z_(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?Z_(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<NN;r++){const n=_0[r],o=e.props[n];(_u(o)||o===!1)&&(t[n]=o)}return t}const VN=[...C0].reverse(),UN=C0.length;function WN(e){return t=>Promise.all(t.map(({animation:r,options:n})=>jN(e,r,n)))}function HN(e){let t=WN(e),r=Lx(),n=!0;const o=l=>(u,c)=>{var d;const f=vh(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:v,...g}=f;u={...u,...g,...v}}return u};function i(l){t=l(e)}function a(l){const{props:u}=e,c=Z_(e.parent)||{},d=[],f=new Set;let h={},v=1/0;for(let x=0;x<UN;x++){const p=VN[x],m=r[p],b=u[p]!==void 0?u[p]:c[p],E=_u(b),C=p===l?m.isActive:null;C===!1&&(v=x);let S=b===c[p]&&b!==u[p]&&E;if(S&&n&&e.manuallyAnimateOnMount&&(S=!1),m.protectedKeys={...h},!m.isActive&&C===null||!b&&!m.prevProp||gh(b)||typeof b=="boolean")continue;const P=GN(m.prevProp,b);let T=P||p===l&&m.isActive&&!S&&E||x>v&&E,F=!1;const O=Array.isArray(b)?b:[b];let W=O.reduce(o(p),{});C===!1&&(W={});const{prevResolvedValues:ne={}}=m,re={...ne,...W},le=B=>{T=!0,f.has(B)&&(F=!0,f.delete(B)),m.needsAnimating[B]=!0;const V=e.getValue(B);V&&(V.liveStyle=!1)};for(const B in re){const V=W[B],q=ne[B];if(h.hasOwnProperty(B))continue;let Z=!1;yg(V)&&yg(q)?Z=!f_(V,q):Z=V!==q,Z?V!=null?le(B):f.add(B):V!==void 0&&f.has(B)?le(B):m.protectedKeys[B]=!0}m.prevProp=b,m.prevResolvedValues=W,m.isActive&&(h={...h,...W}),n&&e.blockInitialAnimation&&(T=!1),T&&(!(S&&P)||F)&&d.push(...O.map(B=>({animation:B,options:{type:p}})))}if(f.size){const x={};f.forEach(p=>{const m=e.getBaseTarget(p),b=e.getValue(p);b&&(b.liveStyle=!0),x[p]=m??null}),d.push({animation:x})}let g=!!d.length;return n&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),n=!1,g?t(d):Promise.resolve()}function s(l,u){var c;if(r[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var h;return(h=f.animationState)===null||h===void 0?void 0:h.setActive(l,u)}),r[l].isActive=u;const d=a(l);for(const f in r)r[f].protectedKeys={};return d}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>r,reset:()=>{r=Lx(),n=!0}}}function GN(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!f_(t,e):!1}function Ci(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Lx(){return{animate:Ci(!0),whileInView:Ci(),whileHover:Ci(),whileTap:Ci(),whileDrag:Ci(),whileFocus:Ci(),exit:Ci()}}class pi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class KN extends pi{constructor(t){super(t),t.animationState||(t.animationState=HN(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();gh(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let qN=0;class QN extends pi{constructor(){super(...arguments),this.id=qN++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const o=this.node.animationState.setActive("exit",!t);r&&!t&&o.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const YN={animation:{Feature:KN},exit:{Feature:QN}},un={x:!1,y:!1};function eT(){return un.x||un.y}function XN(e,t,r){var n;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const i=(n=void 0)!==null&&n!==void 0?n:o.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function tT(e,t){const r=XN(e),n=new AbortController,o={passive:!0,...t,signal:n.signal};return[r,o,()=>n.abort()]}function zx(e){return t=>{t.pointerType==="touch"||eT()||e(t)}}function JN(e,t,r={}){const[n,o,i]=tT(e,r),a=zx(s=>{const{target:l}=s,u=t(s);if(!u||!l)return;const c=zx(d=>{u(d),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,o)});return n.forEach(s=>{s.addEventListener("pointerenter",a,o)}),i}const G0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,_l=new WeakSet;function Bx(e){return t=>{t.key==="Enter"&&e(t)}}function Hp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const ZN=(e,t)=>{const r=e.currentTarget;if(!r)return;const n=Bx(()=>{if(_l.has(r))return;Hp(r,"down");const o=Bx(()=>{Hp(r,"up")}),i=()=>Hp(r,"cancel");r.addEventListener("keyup",o,t),r.addEventListener("blur",i,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)},e6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function t6(e){return e6.has(e.tagName)||e.tabIndex!==-1}const rT=(e,t)=>t?e===t?!0:rT(e,t.parentElement):!1;function Ix(e){return G0(e)&&!eT()}function r6(e,t,r={}){const[n,o,i]=tT(e,r),a=s=>{const l=s.currentTarget;if(!Ix(s)||_l.has(l))return;_l.add(l);const u=t(s),c=(h,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!Ix(h)||!_l.has(l))&&(_l.delete(l),u&&u(h,{success:v}))},d=h=>{c(h,r.useGlobalTarget||rT(l,h.target))},f=h=>{c(h,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return n.forEach(s=>{t6(s)||(s.tabIndex=0),(r.useGlobalTarget?window:s).addEventListener("pointerdown",a,o),s.addEventListener("focus",u=>ZN(u,o),o)}),i}function n6(e){return e==="x"||e==="y"?un[e]?null:(un[e]=!0,()=>{un[e]=!1}):un.x||un.y?null:(un.x=un.y=!0,()=>{un.x=un.y=!1})}function Yu(e){return{point:{x:e.pageX,y:e.pageY}}}const o6=e=>t=>G0(t)&&e(t,Yu(t));function Au(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function Wl(e,t,r,n){return Au(e,t,o6(r),n)}const jx=(e,t)=>Math.abs(e-t);function i6(e,t){const r=jx(e.x,t.x),n=jx(e.y,t.y);return Math.sqrt(r**2+n**2)}class nT{constructor(t,r,{transformPagePoint:n,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Kp(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=i6(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:v}=d,{timestamp:g}=$t;this.history.push({...v,timestamp:g});const{onStart:x,onMove:p}=this.handlers;f||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Gp(f,this.transformPagePoint),Qe.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:v,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Kp(d.type==="pointercancel"?this.lastMoveEventInfo:Gp(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,x),v&&v(d,x)},!G0(t))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=n,this.contextWindow=o||window;const a=Yu(t),s=Gp(a,this.transformPagePoint),{point:l}=s,{timestamp:u}=$t;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=r;c&&c(t,Kp(s,this.history)),this.removeListeners=Qu(Wl(this.contextWindow,"pointermove",this.handlePointerMove),Wl(this.contextWindow,"pointerup",this.handlePointerUp),Wl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),si(this.updatePoint)}}function Gp(e,t){return t?{point:t(e.point)}:e}function Nx(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Kp({point:e},t){return{point:e,delta:Nx(e,oT(t)),offset:Nx(e,a6(t)),velocity:s6(t,.1)}}function a6(e){return e[0]}function oT(e){return e[e.length-1]}function s6(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=oT(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>ho(t)));)r--;if(!n)return{x:0,y:0};const i=po(o.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Wa(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const iT=1e-4,l6=1-iT,u6=1+iT,aT=.01,c6=0-aT,d6=0+aT;function Rr(e){return e.max-e.min}function f6(e,t,r){return Math.abs(e-t)<=r}function Vx(e,t,r,n=.5){e.origin=n,e.originPoint=ot(t.min,t.max,e.origin),e.scale=Rr(r)/Rr(t),e.translate=ot(r.min,r.max,e.origin)-e.originPoint,(e.scale>=l6&&e.scale<=u6||isNaN(e.scale))&&(e.scale=1),(e.translate>=c6&&e.translate<=d6||isNaN(e.translate))&&(e.translate=0)}function Hl(e,t,r,n){Vx(e.x,t.x,r.x,n?n.originX:void 0),Vx(e.y,t.y,r.y,n?n.originY:void 0)}function Ux(e,t,r){e.min=r.min+t.min,e.max=e.min+Rr(t)}function h6(e,t,r){Ux(e.x,t.x,r.x),Ux(e.y,t.y,r.y)}function Wx(e,t,r){e.min=t.min-r.min,e.max=e.min+Rr(t)}function Gl(e,t,r){Wx(e.x,t.x,r.x),Wx(e.y,t.y,r.y)}function p6(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?ot(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?ot(r,e,n.max):Math.min(e,r)),e}function Hx(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function m6(e,{top:t,left:r,bottom:n,right:o}){return{x:Hx(e.x,r,o),y:Hx(e.y,t,n)}}function Gx(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function g6(e,t){return{x:Gx(e.x,t.x),y:Gx(e.y,t.y)}}function v6(e,t){let r=.5;const n=Rr(e),o=Rr(t);return o>n?r=Rs(t.min,t.max-n,e.min):n>o&&(r=Rs(e.min,e.max-o,t.min)),xo(0,1,r)}function y6(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Ag=.35;function b6(e=Ag){return e===!1?e=0:e===!0&&(e=Ag),{x:Kx(e,"left","right"),y:Kx(e,"top","bottom")}}function Kx(e,t,r){return{min:qx(e,t),max:qx(e,r)}}function qx(e,t){return typeof e=="number"?e:e[t]||0}const Qx=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ha=()=>({x:Qx(),y:Qx()}),Yx=()=>({min:0,max:0}),ht=()=>({x:Yx(),y:Yx()});function jr(e){return[e("x"),e("y")]}function sT({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function x6({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function w6(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function qp(e){return e===void 0||e===1}function Dg({scale:e,scaleX:t,scaleY:r}){return!qp(e)||!qp(t)||!qp(r)}function Pi(e){return Dg(e)||lT(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function lT(e){return Xx(e.x)||Xx(e.y)}function Xx(e){return e&&e!=="0%"}function vf(e,t,r){const n=e-r,o=t*n;return r+o}function Jx(e,t,r,n,o){return o!==void 0&&(e=vf(e,o,n)),vf(e,r,n)+t}function Og(e,t=0,r=1,n,o){e.min=Jx(e.min,t,r,n,o),e.max=Jx(e.max,t,r,n,o)}function uT(e,{x:t,y:r}){Og(e.x,t.translate,t.scale,t.originPoint),Og(e.y,r.translate,r.scale,r.originPoint)}const Zx=.999999999999,ew=1.0000000000001;function S6(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s<o;s++){i=r[s],a=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Ka(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,uT(e,a)),n&&Pi(i.latestValues)&&Ka(e,i.latestValues))}t.x<ew&&t.x>Zx&&(t.x=1),t.y<ew&&t.y>Zx&&(t.y=1)}function Ga(e,t){e.min=e.min+t,e.max=e.max+t}function tw(e,t,r,n,o=.5){const i=ot(e.min,e.max,o);Og(e,t,r,i,n)}function Ka(e,t){tw(e.x,t.x,t.scaleX,t.scale,t.originX),tw(e.y,t.y,t.scaleY,t.scale,t.originY)}function cT(e,t){return sT(w6(e.getBoundingClientRect(),t))}function E6(e,t,r){const n=cT(e,r),{scroll:o}=t;return o&&(Ga(n.x,o.offset.x),Ga(n.y,o.offset.y)),n}const dT=({current:e})=>e?e.ownerDocument.defaultView:null,k6=new WeakMap;class C6{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ht(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Yu(c).point)},i=(c,d)=>{const{drag:f,dragPropagation:h,onDragStart:v}=this.getProps();if(f&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=n6(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),jr(x=>{let p=this.getAxisMotionValue(x).get()||0;if(Wn.test(p)){const{projection:m}=this.visualElement;if(m&&m.layout){const b=m.layout.layoutBox[x];b&&(p=Rr(b)*(parseFloat(p)/100))}}this.originPoint[x]=p}),v&&Qe.postRender(()=>v(c,d)),Pg(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(c,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:v,onDrag:g}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:x}=d;if(h&&this.currentDirection===null){this.currentDirection=_6(x),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),g&&g(c,d)},s=(c,d)=>this.stop(c,d),l=()=>jr(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new nT(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:dT(this.visualElement)})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Qe.postRender(()=>i(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!Hc(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=p6(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:r,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;r&&Wa(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=m6(o.layoutBox,r):this.constraints=!1,this.elastic=b6(n),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&jr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=y6(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Wa(t))return!1;const n=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=E6(n,o.root,this.visualElement.getTransformPagePoint());let a=g6(o.layout.layoutBox,i);if(r){const s=r(x6(a));this.hasMutatedConstraints=!!s,s&&(a=sT(s))}return a}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=jr(c=>{if(!Hc(c,r,this.currentDirection))return;let d=l&&l[c]||{};a&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,v={type:"inertia",velocity:n?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return Pg(this.visualElement,t),n.start(N0(t,n,0,r,this.visualElement,!1))}stopAnimation(){jr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){jr(t=>{var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(t){var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){jr(r=>{const{drag:n}=this.getProps();if(!Hc(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[r];i.set(t[r]-ot(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Wa(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};jr(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const l=s.get();o[a]=v6({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),jr(a=>{if(!Hc(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];s.set(ot(l,u,o[a]))})}addListeners(){if(!this.visualElement.current)return;k6.set(this.visualElement,this);const t=this.visualElement.current,r=Wl(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Wa(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Qe.read(n);const a=Au(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(jr(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),r(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=Ag,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function Hc(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function _6(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class T6 extends pi{constructor(t){super(t),this.removeGroupControls=_r,this.removeListeners=_r,this.controls=new C6(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_r}unmount(){this.removeGroupControls(),this.removeListeners()}}const rw=e=>(t,r)=>{e&&Qe.postRender(()=>e(t,r))};class P6 extends pi{constructor(){super(...arguments),this.removePointerDownListener=_r}onPointerDown(t){this.session=new nT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:dT(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:rw(t),onStart:rw(r),onMove:n,onEnd:(i,a)=>{delete this.session,o&&Qe.postRender(()=>o(i,a))}}}mount(){this.removePointerDownListener=Wl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Xu=w.createContext(null);function R6(){const e=w.useContext(Xu);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=w.useId();w.useEffect(()=>n(o),[]);const i=w.useCallback(()=>r&&r(o),[o,r]);return!t&&r?[!1,i]:[!0]}function A6(){return D6(w.useContext(Xu))}function D6(e){return e===null?!0:e.isPresent}const K0=w.createContext({}),fT=w.createContext({}),Sd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const cl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ae.test(e))e=parseFloat(e);else return e;const r=nw(e,t.target.x),n=nw(e,t.target.y);return`${r}% ${n}%`}},O6={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=li.parse(e);if(o.length>5)return n;const i=li.createTransformer(e),a=typeof o[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const u=ot(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=u),typeof o[3+a]=="number"&&(o[3+a]/=u),i(o)}},yf={};function M6(e){Object.assign(yf,e)}const{schedule:q0,cancel:MH}=h_(queueMicrotask,!1);class $6 extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;M6(F6),i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Sd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,a=n.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Qe.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),q0.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function hT(e){const[t,r]=R6(),n=w.useContext(K0);return z.jsx($6,{...e,layoutGroup:n,switchLayoutGroup:w.useContext(fT),isPresent:t,safeToRemove:r})}const F6={borderRadius:{...cl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:cl,borderTopRightRadius:cl,borderBottomLeftRadius:cl,borderBottomRightRadius:cl,boxShadow:O6},pT=["TopLeft","TopRight","BottomLeft","BottomRight"],L6=pT.length,ow=e=>typeof e=="string"?parseFloat(e):e,iw=e=>typeof e=="number"||ae.test(e);function z6(e,t,r,n,o,i){o?(e.opacity=ot(0,r.opacity!==void 0?r.opacity:1,B6(n)),e.opacityExit=ot(t.opacity!==void 0?t.opacity:1,0,I6(n))):i&&(e.opacity=ot(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let a=0;a<L6;a++){const s=`border${pT[a]}Radius`;let l=aw(t,s),u=aw(r,s);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||iw(l)===iw(u)?(e[s]=Math.max(ot(ow(l),ow(u),n),0),(Wn.test(u)||Wn.test(l))&&(e[s]+="%")):e[s]=u}(t.rotate||r.rotate)&&(e.rotate=ot(t.rotate||0,r.rotate||0,n))}function aw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const B6=mT(0,.5,x_),I6=mT(.5,.95,_r);function mT(e,t,r){return n=>n<e?0:n>t?1:r(Rs(e,t,n))}function sw(e,t){e.min=t.min,e.max=t.max}function Br(e,t){sw(e.x,t.x),sw(e.y,t.y)}function lw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function uw(e,t,r,n,o){return e-=t,e=vf(e,1/r,n),o!==void 0&&(e=vf(e,1/o,n)),e}function j6(e,t=0,r=1,n=.5,o,i=e,a=e){if(Wn.test(t)&&(t=parseFloat(t),t=ot(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=ot(i.min,i.max,n);e===i&&(s-=t),e.min=uw(e.min,t,r,s,o),e.max=uw(e.max,t,r,s,o)}function cw(e,t,[r,n,o],i,a){j6(e,t[r],t[n],t[o],t.scale,i,a)}const N6=["x","scaleX","originX"],V6=["y","scaleY","originY"];function dw(e,t,r,n){cw(e.x,t,N6,r?r.x:void 0,n?n.x:void 0),cw(e.y,t,V6,r?r.y:void 0,n?n.y:void 0)}function fw(e){return e.translate===0&&e.scale===1}function gT(e){return fw(e.x)&&fw(e.y)}function hw(e,t){return e.min===t.min&&e.max===t.max}function U6(e,t){return hw(e.x,t.x)&&hw(e.y,t.y)}function pw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function vT(e,t){return pw(e.x,t.x)&&pw(e.y,t.y)}function mw(e){return Rr(e.x)/Rr(e.y)}function gw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class W6{constructor(){this.members=[]}add(t){V0(this.members,t),t.scheduleRender()}remove(t){if(U0(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function H6(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(r==null?void 0:r.z)||0;if((o||i||a)&&(n=`translate3d(${o}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:h,skewY:v}=r;u&&(n=`perspective(${u}px) ${n}`),c&&(n+=`rotate(${c}deg) `),d&&(n+=`rotateX(${d}deg) `),f&&(n+=`rotateY(${f}deg) `),h&&(n+=`skewX(${h}deg) `),v&&(n+=`skewY(${v}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(n+=`scale(${s}, ${l})`),n||"none"}const G6=(e,t)=>e.depth-t.depth;class K6{constructor(){this.children=[],this.isDirty=!1}add(t){V0(this.children,t),this.isDirty=!0}remove(t){U0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(G6),this.isDirty=!1,this.children.forEach(t)}}function Ed(e){const t=Gt(e)?e.get():e;return RN(t)?t.toValue():t}function q6(e,t){const r=Hn.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(si(n),e(i-t))};return Qe.read(n,!0),()=>si(n)}function Q6(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Y6(e,t,r){const n=Gt(e)?e:Ru(e);return n.start(N0("",n,t,r)),n.animation}const Ri={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Tl=typeof window<"u"&&window.MotionDebug!==void 0,Qp=["","X","Y","Z"],X6={visibility:"hidden"},vw=1e3;let J6=0;function Yp(e,t,r,n){const{latestValues:o}=t;o[e]&&(r[e]=o[e],t.setStaticValue(e,0),n&&(n[e]=0))}function yT(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=X_(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Qe,!(o||i))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&yT(n)}function bT({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=J6++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Tl&&(Ri.totalNodes=Ri.resolvedTargetDeltas=Ri.recalculatedProjection=0),this.nodes.forEach(tV),this.nodes.forEach(aV),this.nodes.forEach(sV),this.nodes.forEach(rV),Tl&&window.MotionDebug.record(Ri)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new K6)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new W0),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const l=this.eventHandlers.get(a);l&&l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Q6(a),this.instance=a;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(u||l)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=q6(f,250),Sd.hasAnimatedSinceResize&&(Sd.hasAnimatedSinceResize=!1,this.nodes.forEach(bw))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||fV,{onLayoutAnimationStart:x,onLayoutAnimationComplete:p}=c.getProps(),m=!this.targetLayout||!vT(this.targetLayout,v)||h,b=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||f&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,b);const E={...T0(g,"layout"),onPlay:x,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else f||bw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,si(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(lV),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&yT(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(yw);return}this.isUpdating||this.nodes.forEach(oV),this.isUpdating=!1,this.nodes.forEach(iV),this.nodes.forEach(Z6),this.nodes.forEach(eV),this.clearAllSnapshots();const s=Hn.now();$t.delta=xo(0,1e3/60,s-$t.timestamp),$t.timestamp=s,$t.isProcessing=!0,jp.update.process($t),jp.preRender.process($t),jp.render.process($t),$t.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,q0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nV),this.sharedNodes.forEach(uV)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qe.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 a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ht(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s){const l=n(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!gT(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;a&&(s||Pi(this.latestValues)||c)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),hV(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:s}=this.options;if(!s)return ht();const l=s.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(pV))){const{scroll:c}=this.root;c&&(Ga(l.x,c.offset.x),Ga(l.y,c.offset.y))}return l}removeElementScroll(a){var s;const l=ht();if(Br(l,a),!((s=this.scroll)===null||s===void 0)&&s.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&Br(l,a),Ga(l.x,d.offset.x),Ga(l.y,d.offset.y))}return l}applyTransform(a,s=!1){const l=ht();Br(l,a);for(let u=0;u<this.path.length;u++){const c=this.path[u];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Ka(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Pi(c.latestValues)&&Ka(l,c.latestValues)}return Pi(this.latestValues)&&Ka(l,this.latestValues),l}removeTransform(a){const s=ht();Br(s,a);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Pi(u.latestValues))continue;Dg(u.latestValues)&&u.updateSnapshot();const c=ht(),d=u.measurePageBox();Br(c,d),dw(s,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Pi(this.latestValues)&&dw(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==$t.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var s;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(!(a||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=$t.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ht(),this.relativeTargetOrigin=ht(),Gl(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),Br(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ht(),this.targetWithTransforms=ht()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),h6(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Br(this.target,this.layout.layoutBox),uT(this.target,this.targetDelta)):Br(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ht(),this.relativeTargetOrigin=ht(),Gl(this.relativeTargetOrigin,this.target,h.target),Br(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Tl&&Ri.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Dg(this.parent.latestValues)||lT(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 a;const s=this.getLead(),l=!!this.resumingFrom||this!==s;let u=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===$t.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;Br(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;S6(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=ht());const{target:v}=s;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(lw(this.prevProjectionDelta.x,this.projectionDelta.x),lw(this.prevProjectionDelta.y,this.projectionDelta.y)),Hl(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!gw(this.projectionDelta.x,this.prevProjectionDelta.x)||!gw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),Tl&&Ri.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var s;if((s=this.options.visualElement)===null||s===void 0||s.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ha(),this.projectionDelta=Ha(),this.projectionDeltaWithTransform=Ha()}setAnimationOrigin(a,s=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=Ha();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const f=ht(),h=l?l.source:void 0,v=this.layout?this.layout.source:void 0,g=h!==v,x=this.getStack(),p=!x||x.members.length<=1,m=!!(g&&!p&&this.options.crossfade===!0&&!this.path.some(dV));this.animationProgress=0;let b;this.mixTargetDelta=E=>{const C=E/1e3;xw(d.x,a.x,C),xw(d.y,a.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Gl(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),cV(this.relativeTarget,this.relativeTargetOrigin,f,C),b&&U6(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=ht()),Br(b,this.relativeTarget)),g&&(this.animationValues=c,z6(c,u,this.latestValues,C,m,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(si(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qe.update(()=>{Sd.hasAnimatedSinceResize=!0,this.currentAnimation=Y6(0,vw,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(vw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:c}=a;if(!(!s||!l||!u)){if(this!==a&&this.layout&&u&&xT(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ht();const d=Rr(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;const f=Rr(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}Br(s,l),Ka(s,c),Hl(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new W6),this.sharedNodes.get(a).add(s);const u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const u={};l.z&&Yp("z",a,u,this.animationValues);for(let c=0;c<Qp.length;c++)Yp(`rotate${Qp[c]}`,a,u,this.animationValues),Yp(`skew${Qp[c]}`,a,u,this.animationValues);a.render();for(const c in u)a.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);a.scheduleRender()}getProjectionStyles(a){var s,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return X6;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Ed(a==null?void 0:a.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=Ed(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Pi(this.latestValues)&&(g.transform=c?c({},""):"none",this.hasProjected=!1),g}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=H6(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:h,y:v}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${v.origin*100}% 0`,d.animationValues?u.opacity=d===this?(l=(s=f.opacity)!==null&&s!==void 0?s: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 g in yf){if(f[g]===void 0)continue;const{correct:x,applyTo:p}=yf[g],m=u.transform==="none"?f[g]:x(f[g],d);if(p){const b=p.length;for(let E=0;E<b;E++)u[p[E]]=m}else u[g]=m}return this.options.layoutId&&(u.pointerEvents=d===this?Ed(a==null?void 0:a.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(yw),this.root.sharedNodes.clear()}}}function Z6(e){e.updateLayout()}function eV(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:i}=e.options,a=r.source!==e.layout.source;i==="size"?jr(d=>{const f=a?r.measuredBox[d]:r.layoutBox[d],h=Rr(f);f.min=n[d].min,f.max=f.min+h}):xT(i,r.layoutBox,n)&&jr(d=>{const f=a?r.measuredBox[d]:r.layoutBox[d],h=Rr(n[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const s=Ha();Hl(s,n,r.layoutBox);const l=Ha();a?Hl(l,e.applyTransform(o,!0),r.measuredBox):Hl(l,n,r.layoutBox);const u=!gT(s);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const v=ht();Gl(v,r.layoutBox,f.layoutBox);const g=ht();Gl(g,n,h.layoutBox),vT(v,g)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function tV(e){Tl&&Ri.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 rV(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nV(e){e.clearSnapshot()}function yw(e){e.clearMeasurements()}function oV(e){e.isLayoutDirty=!1}function iV(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function bw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function aV(e){e.resolveTargetDelta()}function sV(e){e.calcProjection()}function lV(e){e.resetSkewAndRotation()}function uV(e){e.removeLeadSnapshot()}function xw(e,t,r){e.translate=ot(t.translate,0,r),e.scale=ot(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function ww(e,t,r,n){e.min=ot(t.min,r.min,n),e.max=ot(t.max,r.max,n)}function cV(e,t,r,n){ww(e.x,t.x,r.x,n),ww(e.y,t.y,r.y,n)}function dV(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const fV={duration:.45,ease:[.4,0,.1,1]},Sw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ew=Sw("applewebkit/")&&!Sw("chrome/")?Math.round:_r;function kw(e){e.min=Ew(e.min),e.max=Ew(e.max)}function hV(e){kw(e.x),kw(e.y)}function xT(e,t,r){return e==="position"||e==="preserve-aspect"&&!f6(mw(t),mw(r),.2)}function pV(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const mV=bT({attachResizeListener:(e,t)=>Au(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Xp={current:void 0},wT=bT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Xp.current){const e=new mV({});e.mount(window),e.setOptions({layoutScroll:!0}),Xp.current=e}return Xp.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),gV={pan:{Feature:P6},drag:{Feature:T6,ProjectionNode:wT,MeasureLayout:hT}};function Cw(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",r==="Start");const o="onHover"+r,i=n[o];i&&Qe.postRender(()=>i(t,Yu(t)))}class vV extends pi{mount(){const{current:t}=this.node;t&&(this.unmount=JN(t,r=>(Cw(this.node,r,"Start"),n=>Cw(this.node,n,"End"))))}unmount(){}}class yV extends pi{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=Qu(Au(this.node.current,"focus",()=>this.onFocus()),Au(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function _w(e,t,r){const{props:n}=e;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",r==="Start");const o="onTap"+(r==="End"?"":r),i=n[o];i&&Qe.postRender(()=>i(t,Yu(t)))}class bV extends pi{mount(){const{current:t}=this.node;t&&(this.unmount=r6(t,r=>(_w(this.node,r,"Start"),(n,{success:o})=>_w(this.node,n,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Mg=new WeakMap,Jp=new WeakMap,xV=e=>{const t=Mg.get(e.target);t&&t(e)},wV=e=>{e.forEach(xV)};function SV({root:e,...t}){const r=e||document;Jp.has(r)||Jp.set(r,{});const n=Jp.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(wV,{root:e,...t})),n[o]}function EV(e,t,r){const n=SV(t);return Mg.set(e,r),n.observe(e),()=>{Mg.delete(e),n.unobserve(e)}}const kV={some:0,all:1};class CV extends pi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:kV[o]},s=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 EV(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(_V(t,r))&&this.startObserver()}unmount(){}}function _V({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const TV={inView:{Feature:CV},tap:{Feature:bV},focus:{Feature:yV},hover:{Feature:vV}},PV={layout:{ProjectionNode:wT,MeasureLayout:hT}},Q0=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),bh=w.createContext({}),Y0=typeof window<"u",ST=Y0?w.useLayoutEffect:w.useEffect,ET=w.createContext({strict:!1});function RV(e,t,r,n,o){var i,a;const{visualElement:s}=w.useContext(bh),l=w.useContext(ET),u=w.useContext(Xu),c=w.useContext(Q0).reducedMotion,d=w.useRef(null);n=n||l.renderer,!d.current&&n&&(d.current=n(e,{visualState:t,parent:s,props:r,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,h=w.useContext(fT);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&AV(d.current,r,o,h);const v=w.useRef(!1);w.useInsertionEffect(()=>{f&&v.current&&f.update(r,u)});const g=r[Y_],x=w.useRef(!!g&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,g))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,g)));return ST(()=>{f&&(v.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),q0.render(f.render),x.current&&f.animationState&&f.animationState.animateChanges())}),w.useEffect(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)===null||p===void 0||p.call(window,g)}),x.current=!1))}),f}function AV(e,t,r,n){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:kT(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!a||s&&Wa(s),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}function kT(e){if(e)return e.options.allowProjection!==!1?e.projection:kT(e.parent)}function DV(e,t,r){return w.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Wa(r)&&(r.current=n))},[t])}function xh(e){return gh(e.animate)||_0.some(t=>_u(e[t]))}function CT(e){return!!(xh(e)||e.variants)}function OV(e,t){if(xh(e)){const{initial:r,animate:n}=e;return{initial:r===!1||_u(r)?r:void 0,animate:_u(n)?n:void 0}}return e.inherit!==!1?t:{}}function MV(e){const{initial:t,animate:r}=OV(e,w.useContext(bh));return w.useMemo(()=>({initial:t,animate:r}),[Tw(t),Tw(r)])}function Tw(e){return Array.isArray(e)?e.join(" "):e}const Pw={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"]},As={};for(const e in Pw)As[e]={isEnabled:t=>Pw[e].some(r=>!!t[r])};function $V(e){for(const t in e)As[t]={...As[t],...e[t]}}const FV=Symbol.for("motionComponentSymbol");function LV({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&$V(e);function i(s,l){let u;const c={...w.useContext(Q0),...s,layoutId:zV(s)},{isStatic:d}=c,f=MV(s),h=n(s,d);if(!d&&Y0){BV();const v=IV(c);u=v.MeasureLayout,f.visualElement=RV(o,h,c,t,v.ProjectionNode)}return z.jsxs(bh.Provider,{value:f,children:[u&&f.visualElement?z.jsx(u,{visualElement:f.visualElement,...c}):null,r(o,s,DV(h,f.visualElement,l),h,d,f.visualElement)]})}const a=w.forwardRef(i);return a[FV]=o,a}function zV({layoutId:e}){const t=w.useContext(K0).id;return t&&e!==void 0?t+"-"+e:e}function BV(e,t){w.useContext(ET).strict}function IV(e){const{drag:t,layout:r}=As;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t!=null&&t.isEnabled(e)||r!=null&&r.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}const jV=["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 X0(e){return typeof e!="string"||e.includes("-")?!1:!!(jV.indexOf(e)>-1||/[A-Z]/u.test(e))}function _T(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const i in r)e.style.setProperty(i,r[i])}const TT=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 PT(e,t,r,n){_T(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(TT.has(o)?o:H0(o),t.attrs[o])}function RT(e,{layout:t,layoutId:r}){return da.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!yf[e]||e==="opacity")}function J0(e,t,r){var n;const{style:o}=e,i={};for(const a in o)(Gt(o[a])||t.style&&Gt(t.style[a])||RT(a,e)||((n=r==null?void 0:r.getValue(a))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(i[a]=o[a]);return i}function AT(e,t,r){const n=J0(e,t,r);for(const o in e)if(Gt(e[o])||Gt(t[o])){const i=Gu.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;n[i]=e[o]}return n}function Z0(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}function NV({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){const a={latestValues:VV(n,o,i,e),renderState:t()};return r&&(a.mount=s=>r(n,s,a)),a}const DT=e=>(t,r)=>{const n=w.useContext(bh),o=w.useContext(Xu),i=()=>NV(e,t,n,o);return r?i():Z0(i)};function VV(e,t,r,n){const o={},i=n(e,{});for(const f in i)o[f]=Ed(i[f]);let{initial:a,animate:s}=e;const l=xh(e),u=CT(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=r?r.initial===!1:!1;c=c||a===!1;const d=c?s:a;if(d&&typeof d!="boolean"&&!gh(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const v=k0(e,f[h]);if(v){const{transitionEnd:g,transition:x,...p}=v;for(const m in p){let b=p[m];if(Array.isArray(b)){const E=c?b.length-1:0;b=b[E]}b!==null&&(o[m]=b)}for(const m in g)o[m]=g[m]}}}return o}const ey=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),OT=()=>({...ey(),attrs:{}}),MT=(e,t)=>t&&typeof e=="number"?t.transform(e):e,UV={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},WV=Gu.length;function HV(e,t,r){let n="",o=!0;for(let i=0;i<WV;i++){const a=Gu[i],s=e[a];if(s===void 0)continue;let l=!0;if(typeof s=="number"?l=s===(a.startsWith("scale")?1:0):l=parseFloat(s)===0,!l||r){const u=MT(s,$0[a]);if(!l){o=!1;const c=UV[a]||a;n+=`${c}(${u}) `}r&&(t[a]=u)}}return n=n.trim(),r?n=r(t,o?"":n):o&&(n="none"),n}function ty(e,t,r){const{style:n,vars:o,transformOrigin:i}=e;let a=!1,s=!1;for(const l in t){const u=t[l];if(da.has(l)){a=!0;continue}else if(C_(l)){o[l]=u;continue}else{const c=MT(u,$0[l]);l.startsWith("origin")?(s=!0,i[l]=c):n[l]=c}}if(t.transform||(a||r?n.transform=HV(t,e.transform,r):n.transform&&(n.transform="none")),s){const{originX:l="50%",originY:u="50%",originZ:c=0}=i;n.transformOrigin=`${l} ${u} ${c}`}}function Rw(e,t,r){return typeof e=="string"?e:ae.transform(t+r*e)}function GV(e,t,r){const n=Rw(t,e.x,e.width),o=Rw(r,e.y,e.height);return`${n} ${o}`}const KV={offset:"stroke-dashoffset",array:"stroke-dasharray"},qV={offset:"strokeDashoffset",array:"strokeDasharray"};function QV(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?KV:qV;e[i.offset]=ae.transform(-n);const a=ae.transform(t),s=ae.transform(r);e[i.array]=`${a} ${s}`}function ry(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d){if(ty(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:v}=e;f.transform&&(v&&(h.transform=f.transform),delete f.transform),v&&(o!==void 0||i!==void 0||h.transform)&&(h.transformOrigin=GV(v,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),r!==void 0&&(f.y=r),n!==void 0&&(f.scale=n),a!==void 0&&QV(f,a,s,l,!1)}const ny=e=>typeof e=="string"&&e.toLowerCase()==="svg",YV={useVisualState:DT({scrapeMotionValuesFromProps:AT,createRenderState:OT,onMount:(e,t,{renderState:r,latestValues:n})=>{Qe.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Qe.render(()=>{ry(r,n,ny(t.tagName),e.transformTemplate),PT(t,r)})}})},XV={useVisualState:DT({scrapeMotionValuesFromProps:J0,createRenderState:ey})};function $T(e,t,r){for(const n in t)!Gt(t[n])&&!RT(n,r)&&(e[n]=t[n])}function JV({transformTemplate:e},t){return w.useMemo(()=>{const r=ey();return ty(r,t,e),Object.assign({},r.vars,r.style)},[t])}function ZV(e,t){const r=e.style||{},n={};return $T(n,r,e),Object.assign(n,JV(e,t)),n}function e8(e,t){const r={},n=ZV(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.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=n,r}const t8=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function bf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||t8.has(e)}let FT=e=>!bf(e);function r8(e){e&&(FT=t=>t.startsWith("on")?!bf(t):e(t))}try{r8(require("@emotion/is-prop-valid").default)}catch{}function n8(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(FT(o)||r===!0&&bf(o)||!t&&!bf(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function o8(e,t,r,n){const o=w.useMemo(()=>{const i=OT();return ry(i,t,ny(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};$T(i,e.style,e),o.style={...i,...o.style}}return o}function i8(e=!1){return(r,n,o,{latestValues:i},a)=>{const l=(X0(r)?o8:e8)(n,i,a,r),u=n8(n,typeof r=="string",e),c=r!==w.Fragment?{...u,...l,ref:o}:{},{children:d}=n,f=w.useMemo(()=>Gt(d)?d.get():d,[d]);return w.createElement(r,{...c,children:f})}}function a8(e,t){return function(n,{forwardMotionProps:o}={forwardMotionProps:!1}){const a={...X0(n)?YV:XV,preloadedFeatures:e,useRender:i8(o),createVisualElement:t,Component:n};return LV(a)}}const $g={current:null},LT={current:!1};function s8(){if(LT.current=!0,!!Y0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>$g.current=e.matches;e.addListener(t),t()}else $g.current=!1}function l8(e,t,r){for(const n in t){const o=t[n],i=r[n];if(Gt(o))e.addValue(n,o);else if(Gt(i))e.addValue(n,Ru(o,{owner:e}));else if(i!==o)if(e.hasValue(n)){const a=e.getValue(n);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=e.getStaticValue(n);e.addValue(n,Ru(a!==void 0?a:o,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const Aw=new WeakMap,u8=[...P_,Ut,li],c8=e=>u8.find(T_(e)),Dw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class d8{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,blockInitialAnimation:i,visualState:a},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=D0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=Hn.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Qe.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=r.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=xh(r),this.isVariantNode=CT(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(r,{},this);for(const f in d){const h=d[f];l[f]!==void 0&&Gt(h)&&h.set(l[f],!1)}}mount(t){this.current=t,Aw.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((r,n)=>this.bindToMotionValue(n,r)),LT.current||s8(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:$g.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Aw.delete(this.current),this.projection&&this.projection.unmount(),si(this.notifyUpdate),si(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=da.has(t),o=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Qe.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{o(),i(),a&&a(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in As){const r=As[t];if(!r)continue;const{isEnabled:n,Feature:o}=r;if(!this.features[t]&&o&&n(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ht()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<Dw.length;n++){const o=Dw[n];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,a=t[i];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=l8(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),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}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Ru(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){var n;let o=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);return o!=null&&(typeof o=="string"&&(E_(o)||S_(o))?o=parseFloat(o):!c8(o)&&li.test(r)&&(o=L_(t,r)),this.setBaseTarget(t,Gt(o)?o.get():o)),Gt(o)?o.get():o}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props;let o;if(typeof n=="string"||typeof n=="object"){const a=k0(this.props,n,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);a&&(o=a[t])}if(n&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Gt(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new W0),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class zT extends d8{constructor(){super(...arguments),this.KeyframeResolver=z_}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Gt(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function f8(e){return window.getComputedStyle(e)}class h8 extends zT{constructor(){super(...arguments),this.type="html",this.renderInstance=_T}readValueFromInstance(t,r){if(da.has(r)){const n=F0(r);return n&&n.default||0}else{const n=f8(t),o=(C_(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return cT(t,r)}build(t,r,n){ty(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return J0(t,r,n)}}class p8 extends zT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ht}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(da.has(r)){const n=F0(r);return n&&n.default||0}return r=TT.has(r)?r:H0(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return AT(t,r,n)}build(t,r,n){ry(t,r,this.isSVGTag,n.transformTemplate)}renderInstance(t,r,n,o){PT(t,r,n,o)}mount(t){this.isSVGTag=ny(t.tagName),super.mount(t)}}const m8=(e,t)=>X0(e)?new p8(t):new h8(t,{allowProjection:e!==w.Fragment}),g8=a8({...YN,...TV,...gV,...PV},m8),v8=qI(g8);class y8 extends w.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function b8({children:e,isPresent:t}){const r=w.useId(),n=w.useRef(null),o=w.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=w.useContext(Q0);return w.useInsertionEffect(()=>{const{width:a,height:s,top:l,left:u}=o.current;if(t||!n.current||!a||!s)return;n.current.dataset.motionPopId=r;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
          [data-motion-pop-id="${r}"] {
            position: absolute !important;
            width: ${a}px !important;
            height: ${s}px !important;
            top: ${l}px !important;
            left: ${u}px !important;
          }
        `),()=>{document.head.removeChild(c)}},[t]),z.jsx(y8,{isPresent:t,childRef:n,sizeRef:o,children:w.cloneElement(e,{ref:n})})}const x8=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=Z0(w8),l=w.useId(),u=w.useCallback(d=>{s.set(d,!0);for(const f of s.values())if(!f)return;n&&n()},[s,n]),c=w.useMemo(()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:u,register:d=>(s.set(d,!1),()=>s.delete(d))}),i?[Math.random(),u]:[r,u]);return w.useMemo(()=>{s.forEach((d,f)=>s.set(f,!1))},[r]),w.useEffect(()=>{!r&&!s.size&&n&&n()},[r]),a==="popLayout"&&(e=z.jsx(b8,{isPresent:r,children:e})),z.jsx(Xu.Provider,{value:c,children:e})};function w8(){return new Map}const Gc=e=>e.key||"";function Ow(e){const t=[];return w.Children.forEach(e,r=>{w.isValidElement(r)&&t.push(r)}),t}const S8=({children:e,exitBeforeEnter:t,custom:r,initial:n=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{const s=w.useMemo(()=>Ow(e),[e]),l=s.map(Gc),u=w.useRef(!0),c=w.useRef(s),d=Z0(()=>new Map),[f,h]=w.useState(s),[v,g]=w.useState(s);ST(()=>{u.current=!1,c.current=s;for(let m=0;m<v.length;m++){const b=Gc(v[m]);l.includes(b)?d.delete(b):d.get(b)!==!0&&d.set(b,!1)}},[v,l.length,l.join("-")]);const x=[];if(s!==f){let m=[...s];for(let b=0;b<v.length;b++){const E=v[b],C=Gc(E);l.includes(C)||(m.splice(b,0,E),x.push(E))}a==="wait"&&x.length&&(m=x),g(Ow(m)),h(s);return}const{forceRender:p}=w.useContext(K0);return z.jsx(z.Fragment,{children:v.map(m=>{const b=Gc(m),E=s===v||l.includes(b),C=()=>{if(d.has(b))d.set(b,!0);else return;let S=!0;d.forEach(P=>{P||(S=!1)}),S&&(p==null||p(),g(c.current),o&&o())};return z.jsx(x8,{isPresent:E,initial:!u.current||n?void 0:!1,custom:E?void 0:r,presenceAffectsLayout:i,mode:a,onExitComplete:E?void 0:C,children:m},b)})})};var E8={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},BT=w.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:i=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:u=E8,toastSpacing:c="0.5rem"}=e,[d,f]=w.useState(s),h=A6();Cu(()=>{h||n==null||n()},[h]),Cu(()=>{f(s)},[s]);const v=()=>f(null),g=()=>f(s),x=()=>{h&&o()};w.useEffect(()=>{h&&i&&o()},[h,i,o]),HI(x,d);const p=w.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),m=w.useMemo(()=>UI(a),[a]);return z.jsx(v8.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:v,onHoverEnd:g,custom:{position:a},style:m,children:z.jsx(ye.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:p,children:GI(r,{id:t,onClose:x})})})});BT.displayName="ToastComponent";var Ju=(...e)=>e.filter(Boolean).join(" "),Mw={path:z.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[z.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),z.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),z.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},wh=Ye((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:i=!1,children:a,className:s,__css:l,...u}=e,c=Ju("chakra-icon",s),d=wn("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},h={ref:t,focusable:i,className:c,__css:f},v=n??Mw.viewBox;if(r&&typeof r!="string")return z.jsx(ye.svg,{as:r,...h,...u});const g=a??Mw.path;return z.jsx(ye.svg,{verticalAlign:"middle",viewBox:v,...h,...u,children:g})});wh.displayName="Icon";function k8(e){return z.jsx(wh,{viewBox:"0 0 24 24",...e,children:z.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function C8(e){return z.jsx(wh,{viewBox:"0 0 24 24",...e,children:z.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function $w(e){return z.jsx(wh,{viewBox:"0 0 24 24",...e,children:z.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var _8=(...e)=>e.filter(Boolean).join(" "),T8=zD({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Sh=Ye((e,t)=>{const r=wn("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:s,...l}=xn(e),u=_8("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${T8} ${i} linear infinite`,...r};return z.jsx(ye.div,{ref:t,__css:c,className:u,...l,children:n&&z.jsx(ye.span,{srOnly:!0,children:n})})});Sh.displayName="Spinner";var[P8,oy]=ko({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[R8,iy]=ko({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),IT={info:{icon:C8,colorScheme:"blue"},warning:{icon:$w,colorScheme:"orange"},success:{icon:k8,colorScheme:"green"},error:{icon:$w,colorScheme:"red"},loading:{icon:Sh,colorScheme:"blue"}};function A8(e){return IT[e].colorScheme}function D8(e){return IT[e].icon}var jT=Ye(function(t,r){const n=iy(),{status:o}=oy(),i={display:"inline",...n.description};return z.jsx(ye.div,{ref:r,"data-status":o,...t,className:Ju("chakra-alert__desc",t.className),__css:i})});jT.displayName="AlertDescription";function NT(e){const{status:t}=oy(),r=D8(t),n=iy(),o=t==="loading"?n.spinner:n.icon;return z.jsx(ye.span,{display:"inherit","data-status":t,...e,className:Ju("chakra-alert__icon",e.className),__css:o,children:e.children||z.jsx(r,{h:"100%",w:"100%"})})}NT.displayName="AlertIcon";var VT=Ye(function(t,r){const n=iy(),{status:o}=oy();return z.jsx(ye.div,{ref:r,"data-status":o,...t,className:Ju("chakra-alert__title",t.className),__css:n.title})});VT.displayName="AlertTitle";var UT=Ye(function(t,r){var n;const{status:o="info",addRole:i=!0,...a}=xn(t),s=(n=t.colorScheme)!=null?n:A8(o),l=MC("Alert",{...t,colorScheme:s}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return z.jsx(P8,{value:{status:o},children:z.jsx(R8,{value:l,children:z.jsx(ye.div,{"data-status":o,role:i?"alert":void 0,ref:r,...a,className:Ju("chakra-alert",t.className),__css:u})})})});UT.displayName="Alert";var O8=(...e)=>e.filter(Boolean).join(" "),Fw={path:z.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[z.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),z.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),z.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},WT=Ye((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:i=!1,children:a,className:s,__css:l,...u}=e,c=O8("chakra-icon",s),d=wn("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},h={ref:t,focusable:i,className:c,__css:f},v=n??Fw.viewBox;if(r&&typeof r!="string")return z.jsx(ye.svg,{as:r,...h,...u});const g=a??Fw.path;return z.jsx(ye.svg,{verticalAlign:"middle",viewBox:v,...h,...u,children:g})});WT.displayName="Icon";function M8(e){return z.jsx(WT,{focusable:"false","aria-hidden":!0,...e,children:z.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var HT=Ye(function(t,r){const n=wn("CloseButton",t),{children:o,isDisabled:i,__css:a,...s}=xn(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return z.jsx(ye.button,{type:"button","aria-label":"Close",ref:r,disabled:i,__css:{...l,...n,...a},...s,children:o||z.jsx(M8,{width:"1em",height:"1em"})})});HT.displayName="CloseButton";var $8={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Kl=F8($8);function F8(e){let t=e;const r=new Set,n=o=>{t=o(t),r.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{n(()=>e),r.delete(o)}),removeToast:(o,i)=>{n(a=>({...a,[i]:a[i].filter(s=>s.id!=o)}))},notify:(o,i)=>{const a=L8(o,i),{position:s,id:l}=a;return n(u=>{var c,d;const h=s.includes("top")?[a,...(c=u[s])!=null?c:[]]:[...(d=u[s])!=null?d:[],a];return{...u,[s]:h}}),l},update:(o,i)=>{o&&n(a=>{const s={...a},{position:l,index:u}=vx(s,o);return l&&u!==-1&&(s[l][u]={...s[l][u],...i,message:B8(i)}),s})},closeAll:({positions:o}={})=>{n(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=i[u].map(c=>({...c,requestClose:!0})),l),{...i}))},close:o=>{n(i=>{const a=d_(i,o);return a?{...i,[a]:i[a].map(s=>s.id==o?{...s,requestClose:!0}:s)}:i})},isActive:o=>!!vx(Kl.getState(),o).position}}var Lw=0;function L8(e,t={}){var r,n;Lw+=1;const o=(r=t.id)!=null?r:Lw,i=(n=t.position)!=null?n:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Kl.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var z8=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:i,onClose:a,description:s,colorScheme:l,icon:u}=e,c=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return z.jsxs(UT,{addRole:!1,status:t,variant:r,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[z.jsx(NT,{children:u}),z.jsxs(ye.div,{flex:"1",maxWidth:"100%",children:[o&&z.jsx(VT,{id:c==null?void 0:c.title,children:o}),s&&z.jsx(jT,{id:c==null?void 0:c.description,display:"block",children:s})]}),i&&z.jsx(HT,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function B8(e={}){const{render:t,toastComponent:r=z8}=e;return o=>typeof t=="function"?t({...o,...e}):z.jsx(r,{...o,...e})}var[I8,FH]=ko({name:"ToastOptionsContext",strict:!1}),j8=e=>{const t=w.useSyncExternalStore(Kl.subscribe,Kl.getState,Kl.getState),{motionVariants:r,component:n=BT,portalProps:o}=e,a=Object.keys(t).map(s=>{const l=t[s];return z.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${s}`,id:`chakra-toast-manager-${s}`,style:WI(s),children:z.jsx(S8,{initial:!1,children:l.map(u=>z.jsx(n,{motionVariants:r,...u},u.id))})},s)});return z.jsx(mh,{...o,children:a})},N8=e=>function({children:r,theme:n=e,toastOptions:o,...i}){return z.jsxs(NI,{theme:n,...i,children:[z.jsx(I8,{value:o==null?void 0:o.defaultOptions,children:r}),z.jsx(j8,{...o})]})},V8=N8(_C),U8=Object.defineProperty,W8=(e,t,r)=>t in e?U8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ut=(e,t,r)=>(W8(e,typeof t!="symbol"?t+"":t,r),r);function zw(e){return e.sort((t,r)=>{const n=t.compareDocumentPosition(r);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var H8=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function Bw(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function Iw(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}var Fg=typeof window<"u"?w.useLayoutEffect:w.useEffect,xf=e=>e,G8=class{constructor(){ut(this,"descendants",new Map),ut(this,"register",e=>{if(e!=null)return H8(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),ut(this,"unregister",e=>{this.descendants.delete(e);const t=zw(Array.from(this.descendants.keys()));this.assignIndex(t)}),ut(this,"destroy",()=>{this.descendants.clear()}),ut(this,"assignIndex",e=>{this.descendants.forEach(t=>{const r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()})}),ut(this,"count",()=>this.descendants.size),ut(this,"enabledCount",()=>this.enabledValues().length),ut(this,"values",()=>Array.from(this.descendants.values()).sort((t,r)=>t.index-r.index)),ut(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),ut(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),ut(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),ut(this,"first",()=>this.item(0)),ut(this,"firstEnabled",()=>this.enabledItem(0)),ut(this,"last",()=>this.item(this.descendants.size-1)),ut(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),ut(this,"indexOf",e=>{var t,r;return e&&(r=(t=this.descendants.get(e))==null?void 0:t.index)!=null?r:-1}),ut(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),ut(this,"next",(e,t=!0)=>{const r=Bw(e,this.count(),t);return this.item(r)}),ut(this,"nextEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),o=Bw(n,this.enabledCount(),t);return this.enabledItem(o)}),ut(this,"prev",(e,t=!0)=>{const r=Iw(e,this.count()-1,t);return this.item(r)}),ut(this,"prevEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),o=Iw(n,this.enabledCount()-1,t);return this.enabledItem(o)}),ut(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const r=Array.from(this.descendants.keys()).concat(e),n=zw(r);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(n)})}};function K8(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function ui(...e){return t=>{e.forEach(r=>{K8(r,t)})}}function q8(...e){return w.useMemo(()=>ui(...e),e)}function Q8(){const e=w.useRef(new G8);return Fg(()=>()=>e.current.destroy()),e.current}var[Y8,GT]=ko({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function X8(e){const t=GT(),[r,n]=w.useState(-1),o=w.useRef(null);Fg(()=>()=>{o.current&&t.unregister(o.current)},[]),Fg(()=>{if(!o.current)return;const a=Number(o.current.dataset.index);r!=a&&!Number.isNaN(a)&&n(a)});const i=xf(e?t.register(e):t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(o.current),register:ui(i,o)}}function J8(){return[xf(Y8),()=>xf(GT()),()=>Q8(),o=>X8(o)]}var Lg=Ye(function(t,r){const{htmlWidth:n,htmlHeight:o,alt:i,...a}=t;return z.jsx("img",{width:n,height:o,ref:r,alt:i,...a})});Lg.displayName="NativeImage";function Z8(e){const{loading:t,src:r,srcSet:n,onLoad:o,onError:i,crossOrigin:a,sizes:s,ignoreFallback:l}=e,[u,c]=w.useState("pending");w.useEffect(()=>{c(r?"loading":"pending")},[r]);const d=w.useRef(),f=w.useCallback(()=>{if(!r)return;h();const v=new Image;v.src=r,a&&(v.crossOrigin=a),n&&(v.srcset=n),s&&(v.sizes=s),t&&(v.loading=t),v.onload=g=>{h(),c("loaded"),o==null||o(g)},v.onerror=g=>{h(),c("failed"),i==null||i(g)},d.current=v},[r,a,n,s,o,i,t]),h=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return ks(()=>{if(!l)return u==="loading"&&f(),()=>{h()}},[u,f,l]),l?"loaded":u}var e7=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function t7(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var Eh=Ye(function(t,r){const{fallbackSrc:n,fallback:o,src:i,srcSet:a,align:s,fit:l,loading:u,ignoreFallback:c,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:h,...v}=t,g=n!==void 0||o!==void 0,x=u!=null||c||!g,p=Z8({...t,crossOrigin:d,ignoreFallback:x}),m=e7(p,f),b={ref:r,objectFit:l,objectPosition:s,...x?v:t7(v,["onError","onLoad"])};return m?o||z.jsx(ye.img,{as:Lg,className:"chakra-image__placeholder",src:n,...b}):z.jsx(ye.img,{as:Lg,src:i,srcSet:a,crossOrigin:d,loading:u,referrerPolicy:h,className:"chakra-image",...b})});Eh.displayName="Image";function r7(e){return w.Children.toArray(e).filter(t=>w.isValidElement(t))}var[LH,n7]=ko({strict:!1,name:"ButtonGroupContext"}),ay=(...e)=>e.filter(Boolean).join(" "),jw=e=>e?"":void 0;function o7(e){const[t,r]=w.useState(!e);return{ref:w.useCallback(i=>{i&&r(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function zg(e){const{children:t,className:r,...n}=e,o=w.isValidElement(t)?w.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=ay("chakra-button__icon",r);return z.jsx(ye.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:i,children:o})}zg.displayName="ButtonIcon";function Bg(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=z.jsx(Sh,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:a,...s}=e,l=ay("chakra-button__spinner",i),u=r==="start"?"marginEnd":"marginStart",c=w.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?n:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,u,n]);return z.jsx(ye.div,{className:l,...s,__css:c,children:o})}Bg.displayName="ButtonSpinner";var is=Ye((e,t)=>{const r=n7(),n=wn("Button",{...r,...e}),{isDisabled:o=r==null?void 0:r.isDisabled,isLoading:i,isActive:a,children:s,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:h,spinnerPlacement:v="start",className:g,as:x,...p}=xn(e),m=w.useMemo(()=>{const S={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:S}}},[n,r]),{ref:b,type:E}=o7(x),C={rightIcon:u,leftIcon:l,iconSpacing:d,children:s};return z.jsxs(ye.button,{ref:q8(t,b),as:x,type:f??E,"data-active":jw(a),"data-loading":jw(i),__css:m,className:ay("chakra-button",g),...p,disabled:o||i,children:[i&&v==="start"&&z.jsx(Bg,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:h}),i?c||z.jsx(ye.span,{opacity:0,children:z.jsx(Nw,{...C})}):z.jsx(Nw,{...C}),i&&v==="end"&&z.jsx(Bg,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:h})]})});is.displayName="Button";function Nw(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o}=e;return z.jsxs(z.Fragment,{children:[t&&z.jsx(zg,{marginEnd:o,children:t}),n,r&&z.jsx(zg,{marginStart:o,children:r})]})}var KT=Ye((e,t)=>{const{icon:r,children:n,isRound:o,"aria-label":i,...a}=e,s=r||n,l=w.isValidElement(s)?w.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return z.jsx(is,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...a,children:l})});KT.displayName="IconButton";function i7(e,t,r,n){const o=ku(r);return w.useEffect(()=>{const i=typeof e=="function"?e():e??document;if(!(!r||!i))return i.addEventListener(t,o,n),()=>{i.removeEventListener(t,o,n)}},[t,e,n,o,r]),()=>{const i=typeof e=="function"?e():e??document;i==null||i.removeEventListener(t,o,n)}}function qT(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function QT(e){var t;if(!qT(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function a7(e){var t,r;return(r=(t=YT(e))==null?void 0:t.defaultView)!=null?r:window}function YT(e){return qT(e)?e.ownerDocument:document}function s7(e){return YT(e).activeElement}var XT=e=>e.hasAttribute("tabindex"),l7=e=>XT(e)&&e.tabIndex===-1;function u7(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function JT(e){return e.parentElement&&JT(e.parentElement)?!0:e.hidden}function c7(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function d7(e){if(!QT(e)||JT(e)||u7(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():c7(e)?!0:XT(e)}function f7(e){return e?QT(e)&&d7(e)&&!l7(e):!1}var Ns=(...e)=>e.filter(Boolean).join(" "),qe=Ye(function(t,r){const n=wn("Link",t),{className:o,isExternal:i,...a}=xn(t);return z.jsx(ye.a,{target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:r,className:Ns("chakra-link",o),...a,__css:n})});qe.displayName="Link";var sy=Ye(function(t,r){const{templateAreas:n,gap:o,rowGap:i,columnGap:a,column:s,row:l,autoFlow:u,autoRows:c,templateRows:d,autoColumns:f,templateColumns:h,...v}=t,g={display:"grid",gridTemplateAreas:n,gridGap:o,gridRowGap:i,gridColumnGap:a,gridAutoColumns:f,gridColumn:s,gridRow:l,gridAutoFlow:u,gridAutoRows:c,gridTemplateRows:d,gridTemplateColumns:h};return z.jsx(ye.div,{ref:r,__css:g,...v})});sy.displayName="Grid";function h7(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var p7=Object.freeze(["base","sm","md","lg","xl","2xl"]);function m7(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):h7(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}function zH(e,t=p7){const r={};return e.forEach((n,o)=>{const i=t[o];n!=null&&(r[i]=n)}),r}var ZT=ye("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});ZT.displayName="Spacer";var dr=Ye(function(t,r){const n=wn("Text",t),{className:o,align:i,decoration:a,casing:s,...l}=xn(t),u=n4({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return z.jsx(ye.p,{ref:r,className:Ns("chakra-text",t.className),...u,...l,__css:n})});dr.displayName="Text";var eP=e=>z.jsx(ye.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});eP.displayName="StackItem";function g7(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":m7(r,o=>n[o])}}var wf=Ye((e,t)=>{const{isInline:r,direction:n,align:o,justify:i,spacing:a="0.5rem",wrap:s,children:l,divider:u,className:c,shouldWrapChildren:d,...f}=e,h=r?"row":n??"column",v=w.useMemo(()=>g7({spacing:a,direction:h}),[a,h]),g=!!u,x=!d&&!g,p=w.useMemo(()=>{const b=r7(l);return x?b:b.map((E,C)=>{const S=typeof E.key<"u"?E.key:C,P=C+1===b.length,F=d?z.jsx(eP,{children:E},S):E;if(!g)return F;const O=w.cloneElement(u,{__css:v}),W=P?null:O;return z.jsxs(w.Fragment,{children:[F,W]},S)})},[u,v,g,x,d,l]),m=Ns("chakra-stack",c);return z.jsx(ye.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:h,flexWrap:s,gap:g?void 0:a,className:m,...f,children:p})});wf.displayName="Stack";var Ig=Ye(function(t,r){const n=wn("Heading",t),{className:o,...i}=xn(t);return z.jsx(ye.h2,{ref:r,className:Ns("chakra-heading",t.className),...i,__css:n})});Ig.displayName="Heading";var ge=ye("div");ge.displayName="Box";var tP=Ye(function(t,r){const{size:n,centerContent:o=!0,...i}=t,a=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return z.jsx(ge,{ref:r,boxSize:n,__css:{...a,flexShrink:0,flexGrow:0},...i})});tP.displayName="Square";var v7=Ye(function(t,r){const{size:n,...o}=t;return z.jsx(tP,{size:n,ref:r,borderRadius:"9999px",...o})});v7.displayName="Circle";var ly=Ye(function(t,r){const{className:n,centerContent:o,...i}=xn(t),a=wn("Container",t);return z.jsx(ye.div,{ref:r,className:Ns("chakra-container",n),...i,__css:{...a,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});ly.displayName="Container";var jg=Ye(function(t,r){const{borderLeftWidth:n,borderBottomWidth:o,borderTopWidth:i,borderRightWidth:a,borderWidth:s,borderStyle:l,borderColor:u,...c}=wn("Divider",t),{className:d,orientation:f="horizontal",__css:h,...v}=xn(t),g={vertical:{borderLeftWidth:n||a||s||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||s||"1px",width:"100%"}};return z.jsx(ye.hr,{ref:r,"aria-orientation":f,...v,__css:{...c,border:"0",borderColor:u,borderStyle:l,...g[f],...h},className:Ns("chakra-divider",d)})});jg.displayName="Divider";var ce=Ye(function(t,r){const{direction:n,align:o,justify:i,wrap:a,basis:s,grow:l,shrink:u,...c}=t,d={display:"flex",flexDirection:n,alignItems:o,justifyContent:i,flexWrap:a,flexBasis:s,flexGrow:l,flexShrink:u};return z.jsx(ye.div,{ref:r,__css:d,...c})});ce.displayName="Flex";function y7(e,t={}){const{ssr:r=!0,fallback:n}=t,{getWindow:o}=jI(),i=Array.isArray(e)?e:[e];let a=Array.isArray(n)?n:[n];a=a.filter(u=>u!=null);const[s,l]=w.useState(()=>i.map((u,c)=>({media:u,matches:r?!!a[c]:o().matchMedia(u).matches})));return w.useEffect(()=>{const u=o();l(i.map(f=>({media:f,matches:u.matchMedia(f).matches})));const c=i.map(f=>u.matchMedia(f)),d=f=>{l(h=>h.slice().map(v=>v.media===f.media?{...v,matches:f.matches}:v))};return c.forEach(f=>{typeof f.addListener=="function"?f.addListener(d):f.addEventListener("change",d)}),()=>{c.forEach(f=>{typeof f.removeListener=="function"?f.removeListener(d):f.removeEventListener("change",d)})}},[o]),s.map(u=>u.matches)}function rP(e){const{breakpoint:t,hide:r,children:n,ssr:o}=e,[i]=y7(t,{ssr:o});return(r?!i:i)?n:null}var Vw=(e,t)=>{var r,n;return(n=(r=e==null?void 0:e.breakpoints)==null?void 0:r[t])!=null?n:t};function nP(e){const{breakpoint:t="",below:r,above:n}=e,o=$r(),i=Vw(o,r),a=Vw(o,n);let s=t;return i?s=`(max-width: ${i})`:a&&(s=`(min-width: ${a})`),s}function oo(e){const{children:t,ssr:r}=e,n=nP(e);return z.jsx(rP,{breakpoint:n,hide:!0,ssr:r,children:t})}oo.displayName="Hide";function Sf(e){const{children:t,ssr:r}=e,n=nP(e);return z.jsx(rP,{breakpoint:n,ssr:r,children:t})}Sf.displayName="Show";function b7(e){const{key:t}=e;return t.length===1||t.length>1&&/[^a-zA-Z0-9]/.test(t)}function x7(e={}){const{timeout:t=300,preventDefault:r=()=>!0}=e,[n,o]=w.useState([]),i=w.useRef(),a=()=>{i.current&&(clearTimeout(i.current),i.current=null)},s=()=>{a(),i.current=setTimeout(()=>{o([]),i.current=null},t)};w.useEffect(()=>a,[]);function l(u){return c=>{if(c.key==="Backspace"){const d=[...n];d.pop(),o(d);return}if(b7(c)){const d=n.concat(c.key);r(c)&&(c.preventDefault(),c.stopPropagation()),o(d),u(d.join("")),s()}}}return l}function w7(e,t,r,n){if(t==null)return n;if(!n)return e.find(a=>r(a).toLowerCase().startsWith(t.toLowerCase()));const o=e.filter(i=>r(i).toLowerCase().startsWith(t.toLowerCase()));if(o.length>0){let i;return o.includes(n)?(i=o.indexOf(n)+1,i===o.length&&(i=0),o[i]):(i=e.indexOf(o[0]),e[i])}return n}function S7(){const e=w.useRef(new Map),t=e.current,r=w.useCallback((o,i,a,s)=>{e.current.set(a,{type:i,el:o,options:s}),o.addEventListener(i,a,s)},[]),n=w.useCallback((o,i,a,s)=>{o.removeEventListener(i,a,s),e.current.delete(a)},[]);return w.useEffect(()=>()=>{t.forEach((o,i)=>{n(o.el,o.type,i,o.options)})},[n,t]),{add:r,remove:n}}var E7=e=>e?"":void 0;function Zp(e){const t=e.target,{tagName:r,isContentEditable:n}=t;return r!=="INPUT"&&r!=="TEXTAREA"&&n!==!0}function k7(e={}){const{ref:t,isDisabled:r,isFocusable:n,clickOnEnter:o=!0,clickOnSpace:i=!0,onMouseDown:a,onMouseUp:s,onClick:l,onKeyDown:u,onKeyUp:c,tabIndex:d,onMouseOver:f,onMouseLeave:h,...v}=e,[g,x]=w.useState(!0),[p,m]=w.useState(!1),b=S7(),E=B=>{B&&B.tagName!=="BUTTON"&&x(!1)},C=g?d:d||0,S=r&&!n,P=w.useCallback(B=>{if(r){B.stopPropagation(),B.preventDefault();return}B.currentTarget.focus(),l==null||l(B)},[r,l]),T=w.useCallback(B=>{p&&Zp(B)&&(B.preventDefault(),B.stopPropagation(),m(!1),b.remove(document,"keyup",T,!1))},[p,b]),F=w.useCallback(B=>{if(u==null||u(B),r||B.defaultPrevented||B.metaKey||!Zp(B.nativeEvent)||g)return;const V=o&&B.key==="Enter";i&&B.key===" "&&(B.preventDefault(),m(!0)),V&&(B.preventDefault(),B.currentTarget.click()),b.add(document,"keyup",T,!1)},[r,g,u,o,i,b,T]),O=w.useCallback(B=>{if(c==null||c(B),r||B.defaultPrevented||B.metaKey||!Zp(B.nativeEvent)||g)return;i&&B.key===" "&&(B.preventDefault(),m(!1),B.currentTarget.click())},[i,g,r,c]),W=w.useCallback(B=>{B.button===0&&(m(!1),b.remove(document,"mouseup",W,!1))},[b]),ne=w.useCallback(B=>{if(B.button!==0)return;if(r){B.stopPropagation(),B.preventDefault();return}g||m(!0),B.currentTarget.focus({preventScroll:!0}),b.add(document,"mouseup",W,!1),a==null||a(B)},[r,g,a,b,W]),re=w.useCallback(B=>{B.button===0&&(g||m(!1),s==null||s(B))},[s,g]),le=w.useCallback(B=>{if(r){B.preventDefault();return}f==null||f(B)},[r,f]),Me=w.useCallback(B=>{p&&(B.preventDefault(),m(!1)),h==null||h(B)},[p,h]),be=ui(t,E);return g?{...v,ref:be,type:"button","aria-disabled":S?void 0:r,disabled:S,onClick:P,onMouseDown:a,onMouseUp:s,onKeyUp:c,onKeyDown:u,onMouseOver:f,onMouseLeave:h}:{...v,ref:be,role:"button","data-active":E7(p),"aria-disabled":r?"true":void 0,tabIndex:S?void 0:C,onClick:P,onMouseDown:ne,onMouseUp:re,onKeyUp:O,onKeyDown:F,onMouseOver:le,onMouseLeave:Me}}function C7(e){const t=e.current;if(!t)return!1;const r=s7(t);return!r||t.contains(r)?!1:!!f7(r)}function _7(e,t){const{shouldFocus:r,visible:n,focusRef:o}=t,i=r&&!n;Cu(()=>{if(!i||C7(e))return;const a=(o==null?void 0:o.current)||e.current;let s;if(a)return s=requestAnimationFrame(()=>{a.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(s)}},[i,e,o])}var ka=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),wr={arrowShadowColor:ka("--popper-arrow-shadow-color"),arrowSize:ka("--popper-arrow-size","8px"),arrowSizeHalf:ka("--popper-arrow-size-half"),arrowBg:ka("--popper-arrow-bg"),transformOrigin:ka("--popper-transform-origin"),arrowOffset:ka("--popper-arrow-offset")};function T7(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var P7={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},R7=e=>P7[e],Uw={scroll:!0,resize:!0};function A7(e){let t;return typeof e=="object"?t={enabled:!0,options:{...Uw,...e}}:t={enabled:e,options:Uw},t}var D7={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},O7={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Ww(e)},effect:({state:e})=>()=>{Ww(e)}},Ww=e=>{e.elements.popper.style.setProperty(wr.transformOrigin.var,R7(e.placement))},M7={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{$7(e)}},$7=e=>{var t;if(!e.placement)return;const r=F7(e.placement);if((t=e.elements)!=null&&t.arrow&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:wr.arrowSize.varRef,height:wr.arrowSize.varRef,zIndex:-1});const n={[wr.arrowSizeHalf.var]:`calc(${wr.arrowSize.varRef} / 2 - 1px)`,[wr.arrowOffset.var]:`calc(${wr.arrowSizeHalf.varRef} * -1)`};for(const o in n)e.elements.arrow.style.setProperty(o,n[o])}},F7=e=>{if(e.startsWith("top"))return{property:"bottom",value:wr.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:wr.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:wr.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:wr.arrowOffset.varRef}},L7={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Hw(e)},effect:({state:e})=>()=>{Hw(e)}},Hw=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=T7(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:wr.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},z7={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},B7={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function I7(e,t="ltr"){var r,n;const o=((r=z7[e])==null?void 0:r[t])||e;return t==="ltr"?o:(n=B7[e])!=null?n:o}var fr="top",Yr="bottom",Xr="right",hr="left",uy="auto",Zu=[fr,Yr,Xr,hr],Ds="start",Du="end",j7="clippingParents",oP="viewport",dl="popper",N7="reference",Gw=Zu.reduce(function(e,t){return e.concat([t+"-"+Ds,t+"-"+Du])},[]),iP=[].concat(Zu,[uy]).reduce(function(e,t){return e.concat([t,t+"-"+Ds,t+"-"+Du])},[]),V7="beforeRead",U7="read",W7="afterRead",H7="beforeMain",G7="main",K7="afterMain",q7="beforeWrite",Q7="write",Y7="afterWrite",X7=[V7,U7,W7,H7,G7,K7,q7,Q7,Y7];function Kn(e){return e?(e.nodeName||"").toLowerCase():null}function Ar(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function aa(e){var t=Ar(e).Element;return e instanceof t||e instanceof Element}function Kr(e){var t=Ar(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function cy(e){if(typeof ShadowRoot>"u")return!1;var t=Ar(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function J7(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!Kr(i)||!Kn(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function Z7(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(l,u){return l[u]="",l},{});!Kr(o)||!Kn(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const eU={name:"applyStyles",enabled:!0,phase:"write",fn:J7,effect:Z7,requires:["computeStyles"]};function Gn(e){return e.split("-")[0]}var Ji=Math.max,Ef=Math.min,Os=Math.round;function Ng(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function aP(){return!/^((?!chrome|android).)*safari/i.test(Ng())}function Ms(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Kr(e)&&(o=e.offsetWidth>0&&Os(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Os(n.height)/e.offsetHeight||1);var a=aa(e)?Ar(e):window,s=a.visualViewport,l=!aP()&&r,u=(n.left+(l&&s?s.offsetLeft:0))/o,c=(n.top+(l&&s?s.offsetTop:0))/i,d=n.width/o,f=n.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function dy(e){var t=Ms(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function sP(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&cy(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function wo(e){return Ar(e).getComputedStyle(e)}function tU(e){return["table","td","th"].indexOf(Kn(e))>=0}function mi(e){return((aa(e)?e.ownerDocument:e.document)||window.document).documentElement}function kh(e){return Kn(e)==="html"?e:e.assignedSlot||e.parentNode||(cy(e)?e.host:null)||mi(e)}function Kw(e){return!Kr(e)||wo(e).position==="fixed"?null:e.offsetParent}function rU(e){var t=/firefox/i.test(Ng()),r=/Trident/i.test(Ng());if(r&&Kr(e)){var n=wo(e);if(n.position==="fixed")return null}var o=kh(e);for(cy(o)&&(o=o.host);Kr(o)&&["html","body"].indexOf(Kn(o))<0;){var i=wo(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function ec(e){for(var t=Ar(e),r=Kw(e);r&&tU(r)&&wo(r).position==="static";)r=Kw(r);return r&&(Kn(r)==="html"||Kn(r)==="body"&&wo(r).position==="static")?t:r||rU(e)||t}function fy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ql(e,t,r){return Ji(e,Ef(t,r))}function nU(e,t,r){var n=ql(e,t,r);return n>r?r:n}function lP(){return{top:0,right:0,bottom:0,left:0}}function uP(e){return Object.assign({},lP(),e)}function cP(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var oU=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,uP(typeof t!="number"?t:cP(t,Zu))};function iU(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Gn(r.placement),l=fy(s),u=[hr,Xr].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!a)){var d=oU(o.padding,r),f=dy(i),h=l==="y"?fr:hr,v=l==="y"?Yr:Xr,g=r.rects.reference[c]+r.rects.reference[l]-a[l]-r.rects.popper[c],x=a[l]-r.rects.reference[l],p=ec(i),m=p?l==="y"?p.clientHeight||0:p.clientWidth||0:0,b=g/2-x/2,E=d[h],C=m-f[c]-d[v],S=m/2-f[c]/2+b,P=ql(E,S,C),T=l;r.modifiersData[n]=(t={},t[T]=P,t.centerOffset=P-S,t)}}function aU(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||sP(t.elements.popper,o)&&(t.elements.arrow=o))}const sU={name:"arrow",enabled:!0,phase:"main",fn:iU,effect:aU,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $s(e){return e.split("-")[1]}var lU={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uU(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Os(r*o)/o||0,y:Os(n*o)/o||0}}function qw(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,h=f===void 0?0:f,v=a.y,g=v===void 0?0:v,x=typeof c=="function"?c({x:h,y:g}):{x:h,y:g};h=x.x,g=x.y;var p=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),b=hr,E=fr,C=window;if(u){var S=ec(r),P="clientHeight",T="clientWidth";if(S===Ar(r)&&(S=mi(r),wo(S).position!=="static"&&s==="absolute"&&(P="scrollHeight",T="scrollWidth")),S=S,o===fr||(o===hr||o===Xr)&&i===Du){E=Yr;var F=d&&S===C&&C.visualViewport?C.visualViewport.height:S[P];g-=F-n.height,g*=l?1:-1}if(o===hr||(o===fr||o===Yr)&&i===Du){b=Xr;var O=d&&S===C&&C.visualViewport?C.visualViewport.width:S[T];h-=O-n.width,h*=l?1:-1}}var W=Object.assign({position:s},u&&lU),ne=c===!0?uU({x:h,y:g},Ar(r)):{x:h,y:g};if(h=ne.x,g=ne.y,l){var re;return Object.assign({},W,(re={},re[E]=m?"0":"",re[b]=p?"0":"",re.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",re))}return Object.assign({},W,(t={},t[E]=m?g+"px":"",t[b]=p?h+"px":"",t.transform="",t))}function cU(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,a=i===void 0?!0:i,s=r.roundOffsets,l=s===void 0?!0:s,u={placement:Gn(t.placement),variation:$s(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,qw(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,qw(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const dU={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:cU,data:{}};var Kc={passive:!0};function fU(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,a=n.resize,s=a===void 0?!0:a,l=Ar(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",r.update,Kc)}),s&&l.addEventListener("resize",r.update,Kc),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",r.update,Kc)}),s&&l.removeEventListener("resize",r.update,Kc)}}const hU={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fU,data:{}};var pU={left:"right",right:"left",bottom:"top",top:"bottom"};function kd(e){return e.replace(/left|right|bottom|top/g,function(t){return pU[t]})}var mU={start:"end",end:"start"};function Qw(e){return e.replace(/start|end/g,function(t){return mU[t]})}function hy(e){var t=Ar(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function py(e){return Ms(mi(e)).left+hy(e).scrollLeft}function gU(e,t){var r=Ar(e),n=mi(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=aP();(u||!u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+py(e),y:l}}function vU(e){var t,r=mi(e),n=hy(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ji(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Ji(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+py(e),l=-n.scrollTop;return wo(o||r).direction==="rtl"&&(s+=Ji(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function my(e){var t=wo(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function dP(e){return["html","body","#document"].indexOf(Kn(e))>=0?e.ownerDocument.body:Kr(e)&&my(e)?e:dP(kh(e))}function Ql(e,t){var r;t===void 0&&(t=[]);var n=dP(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=Ar(n),a=o?[i].concat(i.visualViewport||[],my(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Ql(kh(a)))}function Vg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function yU(e,t){var r=Ms(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Yw(e,t,r){return t===oP?Vg(gU(e,r)):aa(t)?yU(t,r):Vg(vU(mi(e)))}function bU(e){var t=Ql(kh(e)),r=["absolute","fixed"].indexOf(wo(e).position)>=0,n=r&&Kr(e)?ec(e):e;return aa(n)?t.filter(function(o){return aa(o)&&sP(o,n)&&Kn(o)!=="body"}):[]}function xU(e,t,r,n){var o=t==="clippingParents"?bU(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(l,u){var c=Yw(e,u,n);return l.top=Ji(c.top,l.top),l.right=Ef(c.right,l.right),l.bottom=Ef(c.bottom,l.bottom),l.left=Ji(c.left,l.left),l},Yw(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function fP(e){var t=e.reference,r=e.element,n=e.placement,o=n?Gn(n):null,i=n?$s(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(o){case fr:l={x:a,y:t.y-r.height};break;case Yr:l={x:a,y:t.y+t.height};break;case Xr:l={x:t.x+t.width,y:s};break;case hr:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?fy(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Ds:l[u]=l[u]-(t[c]/2-r[c]/2);break;case Du:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function Ou(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,a=i===void 0?e.strategy:i,s=r.boundary,l=s===void 0?j7:s,u=r.rootBoundary,c=u===void 0?oP:u,d=r.elementContext,f=d===void 0?dl:d,h=r.altBoundary,v=h===void 0?!1:h,g=r.padding,x=g===void 0?0:g,p=uP(typeof x!="number"?x:cP(x,Zu)),m=f===dl?N7:dl,b=e.rects.popper,E=e.elements[v?m:f],C=xU(aa(E)?E:E.contextElement||mi(e.elements.popper),l,c,a),S=Ms(e.elements.reference),P=fP({reference:S,element:b,strategy:"absolute",placement:o}),T=Vg(Object.assign({},b,P)),F=f===dl?T:S,O={top:C.top-F.top+p.top,bottom:F.bottom-C.bottom+p.bottom,left:C.left-F.left+p.left,right:F.right-C.right+p.right},W=e.modifiersData.offset;if(f===dl&&W){var ne=W[o];Object.keys(O).forEach(function(re){var le=[Xr,Yr].indexOf(re)>=0?1:-1,Me=[fr,Yr].indexOf(re)>=0?"y":"x";O[re]+=ne[Me]*le})}return O}function wU(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?iP:l,c=$s(n),d=c?s?Gw:Gw.filter(function(v){return $s(v)===c}):Zu,f=d.filter(function(v){return u.indexOf(v)>=0});f.length===0&&(f=d);var h=f.reduce(function(v,g){return v[g]=Ou(e,{placement:g,boundary:o,rootBoundary:i,padding:a})[Gn(g)],v},{});return Object.keys(h).sort(function(v,g){return h[v]-h[g]})}function SU(e){if(Gn(e)===uy)return[];var t=kd(e);return[Qw(e),t,Qw(t)]}function EU(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!0:a,l=r.fallbackPlacements,u=r.padding,c=r.boundary,d=r.rootBoundary,f=r.altBoundary,h=r.flipVariations,v=h===void 0?!0:h,g=r.allowedAutoPlacements,x=t.options.placement,p=Gn(x),m=p===x,b=l||(m||!v?[kd(x)]:SU(x)),E=[x].concat(b).reduce(function(fe,Ne){return fe.concat(Gn(Ne)===uy?wU(t,{placement:Ne,boundary:c,rootBoundary:d,padding:u,flipVariations:v,allowedAutoPlacements:g}):Ne)},[]),C=t.rects.reference,S=t.rects.popper,P=new Map,T=!0,F=E[0],O=0;O<E.length;O++){var W=E[O],ne=Gn(W),re=$s(W)===Ds,le=[fr,Yr].indexOf(ne)>=0,Me=le?"width":"height",be=Ou(t,{placement:W,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),B=le?re?Xr:hr:re?Yr:fr;C[Me]>S[Me]&&(B=kd(B));var V=kd(B),q=[];if(i&&q.push(be[ne]<=0),s&&q.push(be[B]<=0,be[V]<=0),q.every(function(fe){return fe})){F=W,T=!1;break}P.set(W,q)}if(T)for(var Z=v?3:1,pe=function(Ne){var Le=E.find(function(kt){var Ct=P.get(kt);if(Ct)return Ct.slice(0,Ne).every(function(Co){return Co})});if(Le)return F=Le,"break"},xe=Z;xe>0;xe--){var te=pe(xe);if(te==="break")break}t.placement!==F&&(t.modifiersData[n]._skip=!0,t.placement=F,t.reset=!0)}}const kU={name:"flip",enabled:!0,phase:"main",fn:EU,requiresIfExists:["offset"],data:{_skip:!1}};function Xw(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Jw(e){return[fr,Xr,Yr,hr].some(function(t){return e[t]>=0})}function CU(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ou(t,{elementContext:"reference"}),s=Ou(t,{altBoundary:!0}),l=Xw(a,n),u=Xw(s,o,i),c=Jw(l),d=Jw(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const _U={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:CU};function TU(e,t,r){var n=Gn(e),o=[hr,fr].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[hr,Xr].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function PU(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=iP.reduce(function(c,d){return c[d]=TU(d,t.rects,i),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}const RU={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:PU};function AU(e){var t=e.state,r=e.name;t.modifiersData[r]=fP({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const DU={name:"popperOffsets",enabled:!0,phase:"read",fn:AU,data:{}};function OU(e){return e==="x"?"y":"x"}function MU(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!1:a,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,d=r.padding,f=r.tether,h=f===void 0?!0:f,v=r.tetherOffset,g=v===void 0?0:v,x=Ou(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),p=Gn(t.placement),m=$s(t.placement),b=!m,E=fy(p),C=OU(E),S=t.modifiersData.popperOffsets,P=t.rects.reference,T=t.rects.popper,F=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,O=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ne={x:0,y:0};if(S){if(i){var re,le=E==="y"?fr:hr,Me=E==="y"?Yr:Xr,be=E==="y"?"height":"width",B=S[E],V=B+x[le],q=B-x[Me],Z=h?-T[be]/2:0,pe=m===Ds?P[be]:T[be],xe=m===Ds?-T[be]:-P[be],te=t.elements.arrow,fe=h&&te?dy(te):{width:0,height:0},Ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:lP(),Le=Ne[le],kt=Ne[Me],Ct=ql(0,P[be],fe[be]),Co=b?P[be]/2-Z-Ct-Le-O.mainAxis:pe-Ct-Le-O.mainAxis,gi=b?-P[be]/2+Z+Ct+kt+O.mainAxis:xe+Ct+kt+O.mainAxis,st=t.elements.arrow&&ec(t.elements.arrow),Jr=st?E==="y"?st.clientTop||0:st.clientLeft||0:0,vi=(re=W==null?void 0:W[E])!=null?re:0,Ws=B+Co-vi-Jr,Zr=B+gi-vi,fa=ql(h?Ef(V,Ws):V,B,h?Ji(q,Zr):q);S[E]=fa,ne[E]=fa-B}if(s){var ha,pa=E==="x"?fr:hr,Hs=E==="x"?Yr:Xr,nr=S[C],kn=C==="y"?"height":"width",qn=nr+x[pa],bt=nr-x[Hs],Fr=[fr,hr].indexOf(p)!==-1,_o=(ha=W==null?void 0:W[C])!=null?ha:0,To=Fr?qn:nr-P[kn]-T[kn]-_o+O.altAxis,gr=Fr?nr+P[kn]+T[kn]-_o-O.altAxis:bt,At=h&&Fr?nU(To,nr,gr):ql(h?To:qn,nr,h?gr:bt);S[C]=At,ne[C]=At-nr}t.modifiersData[n]=ne}}const $U={name:"preventOverflow",enabled:!0,phase:"main",fn:MU,requiresIfExists:["offset"]};function FU(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function LU(e){return e===Ar(e)||!Kr(e)?hy(e):FU(e)}function zU(e){var t=e.getBoundingClientRect(),r=Os(t.width)/e.offsetWidth||1,n=Os(t.height)/e.offsetHeight||1;return r!==1||n!==1}function BU(e,t,r){r===void 0&&(r=!1);var n=Kr(t),o=Kr(t)&&zU(t),i=mi(t),a=Ms(e,o,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Kn(t)!=="body"||my(i))&&(s=LU(t)),Kr(t)?(l=Ms(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=py(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function IU(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&o(l)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function jU(e){var t=IU(e);return X7.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function NU(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function VU(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Zw={placement:"bottom",modifiers:[],strategy:"absolute"};function eS(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function UU(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?Zw:o;return function(s,l,u){u===void 0&&(u=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Zw,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],f=!1,h={state:c,setOptions:function(p){var m=typeof p=="function"?p(c.options):p;g(),c.options=Object.assign({},i,c.options,m),c.scrollParents={reference:aa(s)?Ql(s):s.contextElement?Ql(s.contextElement):[],popper:Ql(l)};var b=jU(VU([].concat(n,c.options.modifiers)));return c.orderedModifiers=b.filter(function(E){return E.enabled}),v(),h.update()},forceUpdate:function(){if(!f){var p=c.elements,m=p.reference,b=p.popper;if(eS(m,b)){c.rects={reference:BU(m,ec(b),c.options.strategy==="fixed"),popper:dy(b)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(O){return c.modifiersData[O.name]=Object.assign({},O.data)});for(var E=0;E<c.orderedModifiers.length;E++){if(c.reset===!0){c.reset=!1,E=-1;continue}var C=c.orderedModifiers[E],S=C.fn,P=C.options,T=P===void 0?{}:P,F=C.name;typeof S=="function"&&(c=S({state:c,options:T,name:F,instance:h})||c)}}}},update:NU(function(){return new Promise(function(x){h.forceUpdate(),x(c)})}),destroy:function(){g(),f=!0}};if(!eS(s,l))return h;h.setOptions(u).then(function(x){!f&&u.onFirstUpdate&&u.onFirstUpdate(x)});function v(){c.orderedModifiers.forEach(function(x){var p=x.name,m=x.options,b=m===void 0?{}:m,E=x.effect;if(typeof E=="function"){var C=E({state:c,name:p,instance:h,options:b}),S=function(){};d.push(C||S)}})}function g(){d.forEach(function(x){return x()}),d=[]}return h}}var WU=[hU,DU,dU,eU,RU,kU,$U,sU,_U],HU=UU({defaultModifiers:WU});function GU(e={}){const{enabled:t=!0,modifiers:r,placement:n="bottom",strategy:o="absolute",arrowPadding:i=8,eventListeners:a=!0,offset:s,gutter:l=8,flip:u=!0,boundary:c="clippingParents",preventOverflow:d=!0,matchWidth:f,direction:h="ltr"}=e,v=w.useRef(null),g=w.useRef(null),x=w.useRef(null),p=I7(n,h),m=w.useRef(()=>{}),b=w.useCallback(()=>{var O;!t||!v.current||!g.current||((O=m.current)==null||O.call(m),x.current=HU(v.current,g.current,{placement:p,modifiers:[L7,M7,O7,{...D7,enabled:!!f},{name:"eventListeners",...A7(a)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:s??[0,l]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!d,options:{boundary:c}},...r??[]],strategy:o}),x.current.forceUpdate(),m.current=x.current.destroy)},[p,t,r,f,a,i,s,l,u,d,c,o]);w.useEffect(()=>()=>{var O;!v.current&&!g.current&&((O=x.current)==null||O.destroy(),x.current=null)},[]);const E=w.useCallback(O=>{v.current=O,b()},[b]),C=w.useCallback((O={},W=null)=>({...O,ref:ui(E,W)}),[E]),S=w.useCallback(O=>{g.current=O,b()},[b]),P=w.useCallback((O={},W=null)=>({...O,ref:ui(S,W),style:{...O.style,position:o,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}}),[o,S,f]),T=w.useCallback((O={},W=null)=>{const{size:ne,shadowColor:re,bg:le,style:Me,...be}=O;return{...be,ref:W,"data-popper-arrow":"",style:KU(O)}},[]),F=w.useCallback((O={},W=null)=>({...O,ref:W,"data-popper-arrow-inner":""}),[]);return{update(){var O;(O=x.current)==null||O.update()},forceUpdate(){var O;(O=x.current)==null||O.forceUpdate()},transformOrigin:wr.transformOrigin.varRef,referenceRef:E,popperRef:S,getPopperProps:P,getArrowProps:T,getArrowInnerProps:F,getReferenceProps:C}}function KU(e){const{size:t,shadowColor:r,bg:n,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),r&&(i["--popper-arrow-shadow-color"]=r),n&&(i["--popper-arrow-bg"]=n),i}function qU(e={}){const{onClose:t,onOpen:r,isOpen:n,id:o}=e,i=ku(r),a=ku(t),[s,l]=w.useState(e.defaultIsOpen||!1),u=n!==void 0?n:s,c=n!==void 0,d=w.useId(),f=o??`disclosure-${d}`,h=w.useCallback(()=>{c||l(!1),a==null||a()},[c,a]),v=w.useCallback(()=>{c||l(!0),i==null||i()},[c,i]),g=w.useCallback(()=>{u?h():v()},[u,v,h]);function x(m={}){return{...m,"aria-expanded":u,"aria-controls":f,onClick(b){var E;(E=m.onClick)==null||E.call(m,b),g()}}}function p(m={}){return{...m,hidden:!u,id:f}}return{isOpen:u,onOpen:v,onClose:h,onToggle:g,isControlled:c,getButtonProps:x,getDisclosureProps:p}}function QU(e){const{ref:t,handler:r,enabled:n=!0}=e,o=ku(r),a=w.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;w.useEffect(()=>{if(!n)return;const s=d=>{em(d,t)&&(a.isPointerDown=!0)},l=d=>{if(a.ignoreEmulatedMouseEvents){a.ignoreEmulatedMouseEvents=!1;return}a.isPointerDown&&r&&em(d,t)&&(a.isPointerDown=!1,o(d))},u=d=>{a.ignoreEmulatedMouseEvents=!0,r&&a.isPointerDown&&em(d,t)&&(a.isPointerDown=!1,o(d))},c=hP(t.current);return c.addEventListener("mousedown",s,!0),c.addEventListener("mouseup",l,!0),c.addEventListener("touchstart",s,!0),c.addEventListener("touchend",u,!0),()=>{c.removeEventListener("mousedown",s,!0),c.removeEventListener("mouseup",l,!0),c.removeEventListener("touchstart",s,!0),c.removeEventListener("touchend",u,!0)}},[r,t,o,a,n])}function em(e,t){var r;const n=e.target;return n&&!hP(n).contains(n)?!1:!((r=t.current)!=null&&r.contains(n))}function hP(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function YU(e){const{isOpen:t,ref:r}=e,[n,o]=w.useState(t),[i,a]=w.useState(!1);return w.useEffect(()=>{i||(o(t),a(!0))},[t,i,n]),i7(()=>r.current,"animationend",()=>{o(t)}),{present:!(t?!1:!n),onComplete(){var l;const u=a7(r.current),c=new u.CustomEvent("animationend",{bubbles:!0});(l=r.current)==null||l.dispatchEvent(c)}}}var XU=(...e)=>e.filter(Boolean).join(" ");function JU(e,...t){return ZU(e)?e(...t):e}var ZU=e=>typeof e=="function",e9=e=>e?"":void 0;function Ug(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function BH(...e){return function(r){e.forEach(n=>{n==null||n(r)})}}function t9(e){const{wasSelected:t,enabled:r,isSelected:n,mode:o="unmount"}=e;return!!(!r||n||o==="keepMounted"&&t)}var[r9,n9,o9,i9]=J8(),[a9,Ch]=ko({strict:!1,name:"MenuContext"});function s9(e,...t){const r=w.useId(),n=e||r;return w.useMemo(()=>t.map(o=>`${o}-${n}`),[n,t])}function pP(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function tS(e){return pP(e).activeElement===e}function l9(e={}){const{id:t,closeOnSelect:r=!0,closeOnBlur:n=!0,initialFocusRef:o,autoSelect:i=!0,isLazy:a,isOpen:s,defaultIsOpen:l,onClose:u,onOpen:c,placement:d="bottom-start",lazyBehavior:f="unmount",direction:h,computePositionOnMount:v=!1,...g}=e,x=w.useRef(null),p=w.useRef(null),m=o9(),b=w.useCallback(()=>{requestAnimationFrame(()=>{var te;(te=x.current)==null||te.focus({preventScroll:!1})})},[]),E=w.useCallback(()=>{const te=setTimeout(()=>{var fe;if(o)(fe=o.current)==null||fe.focus();else{const Ne=m.firstEnabled();Ne&&re(Ne.index)}});V.current.add(te)},[m,o]),C=w.useCallback(()=>{const te=setTimeout(()=>{const fe=m.lastEnabled();fe&&re(fe.index)});V.current.add(te)},[m]),S=w.useCallback(()=>{c==null||c(),i?E():b()},[i,E,b,c]),{isOpen:P,onOpen:T,onClose:F,onToggle:O}=qU({isOpen:s,defaultIsOpen:l,onClose:u,onOpen:S});QU({enabled:P&&n,ref:x,handler:te=>{var fe;(fe=p.current)!=null&&fe.contains(te.target)||F()}});const W=GU({...g,enabled:P||v,placement:d,direction:h}),[ne,re]=w.useState(-1);Cu(()=>{P||re(-1)},[P]),_7(x,{focusRef:p,visible:P,shouldFocus:!0});const le=YU({isOpen:P,ref:x}),[Me,be]=s9(t,"menu-button","menu-list"),B=w.useCallback(()=>{T(),b()},[T,b]),V=w.useRef(new Set([]));w.useEffect(()=>{const te=V.current;return()=>{te.forEach(fe=>clearTimeout(fe)),te.clear()}},[]);const q=w.useCallback(()=>{T(),E()},[E,T]),Z=w.useCallback(()=>{T(),C()},[T,C]),pe=w.useCallback(()=>{var te,fe;const Ne=pP(x.current),Le=(te=x.current)==null?void 0:te.contains(Ne.activeElement);if(!(P&&!Le))return;const Ct=(fe=m.item(ne))==null?void 0:fe.node;Ct==null||Ct.focus({preventScroll:!0})},[P,ne,m]),xe=w.useRef(null);return{openAndFocusMenu:B,openAndFocusFirstItem:q,openAndFocusLastItem:Z,onTransitionEnd:pe,unstable__animationState:le,descendants:m,popper:W,buttonId:Me,menuId:be,forceUpdate:W.forceUpdate,orientation:"vertical",isOpen:P,onToggle:O,onOpen:T,onClose:F,menuRef:x,buttonRef:p,focusedIndex:ne,closeOnSelect:r,closeOnBlur:n,autoSelect:i,setFocusedIndex:re,isLazy:a,lazyBehavior:f,initialFocusRef:o,rafId:xe}}function u9(e={},t=null){const r=Ch(),{onToggle:n,popper:o,openAndFocusFirstItem:i,openAndFocusLastItem:a}=r,s=w.useCallback(l=>{const u=l.key,d={Enter:i,ArrowDown:i,ArrowUp:a}[u];d&&(l.preventDefault(),l.stopPropagation(),d(l))},[i,a]);return{...e,ref:ui(r.buttonRef,t,o.referenceRef),id:r.buttonId,"data-active":e9(r.isOpen),"aria-expanded":r.isOpen,"aria-haspopup":"menu","aria-controls":r.menuId,onClick:Ug(e.onClick,n),onKeyDown:Ug(e.onKeyDown,s)}}function Wg(e){var t;return c9(e)&&!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))}function IH(e={},t=null){const r=Ch();if(!r)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");const{focusedIndex:n,setFocusedIndex:o,menuRef:i,isOpen:a,onClose:s,menuId:l,isLazy:u,lazyBehavior:c,unstable__animationState:d}=r,f=n9(),h=x7({preventDefault:p=>p.key!==" "&&Wg(p.target)}),v=w.useCallback(p=>{if(!p.currentTarget.contains(p.target))return;const m=p.key,E={Tab:S=>S.preventDefault(),Escape:s,ArrowDown:()=>{const S=f.nextEnabled(n);S&&o(S.index)},ArrowUp:()=>{const S=f.prevEnabled(n);S&&o(S.index)}}[m];if(E){p.preventDefault(),E(p);return}const C=h(S=>{const P=w7(f.values(),S,T=>{var F,O;return(O=(F=T==null?void 0:T.node)==null?void 0:F.textContent)!=null?O:""},f.item(n));if(P){const T=f.indexOf(P.node);o(T)}});Wg(p.target)&&C(p)},[f,n,h,s,o]),g=w.useRef(!1);a&&(g.current=!0);const x=t9({wasSelected:g.current,enabled:u,mode:c,isSelected:d.present});return{...e,ref:ui(i,t),children:x?e.children:null,tabIndex:-1,role:"menu",id:l,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:Ug(e.onKeyDown,v)}}function jH(e={}){const{popper:t,isOpen:r}=Ch();return t.getPopperProps({...e,style:{visibility:r?"visible":"hidden",...e.style}})}function NH(e={},t=null){const{onMouseEnter:r,onMouseMove:n,onMouseLeave:o,onClick:i,onFocus:a,isDisabled:s,isFocusable:l,closeOnSelect:u,type:c,...d}=e,f=Ch(),{setFocusedIndex:h,focusedIndex:v,closeOnSelect:g,onClose:x,menuRef:p,isOpen:m,menuId:b,rafId:E}=f,C=w.useRef(null),S=`${b}-menuitem-${w.useId()}`,{index:P,register:T}=i9({disabled:s&&!l}),F=w.useCallback(B=>{r==null||r(B),!s&&h(P)},[h,P,s,r]),O=w.useCallback(B=>{n==null||n(B),C.current&&!tS(C.current)&&F(B)},[F,n]),W=w.useCallback(B=>{o==null||o(B),!s&&h(-1)},[h,s,o]),ne=w.useCallback(B=>{i==null||i(B),Wg(B.currentTarget)&&(u??g)&&x()},[x,i,g,u]),re=w.useCallback(B=>{a==null||a(B),h(P)},[h,a,P]),le=P===v,Me=s&&!l;Cu(()=>{if(m)return le&&!Me&&C.current?(E.current&&cancelAnimationFrame(E.current),E.current=requestAnimationFrame(()=>{var B;(B=C.current)==null||B.focus({preventScroll:!0}),E.current=null})):p.current&&!tS(p.current)&&p.current.focus({preventScroll:!0}),()=>{E.current&&cancelAnimationFrame(E.current)}},[le,Me,p,m]);const be=k7({onClick:ne,onFocus:re,onMouseEnter:F,onMouseMove:O,onMouseLeave:W,ref:ui(T,C,t),isDisabled:s,isFocusable:l});return{...d,...be,type:c??be.type,id:S,role:"menuitem",tabIndex:le?0:-1}}function c9(e){var t;if(!d9(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function d9(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}var[f9,h9]=ko({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Menu />" `}),mP=e=>{const{children:t}=e,r=MC("Menu",e),n=xn(e),{direction:o}=$r(),{descendants:i,...a}=l9({...n,direction:o}),s=w.useMemo(()=>a,[a]),{isOpen:l,onClose:u,forceUpdate:c}=s;return z.jsx(r9,{value:i,children:z.jsx(a9,{value:s,children:z.jsx(f9,{value:r,children:JU(t,{isOpen:l,onClose:u,forceUpdate:c})})})})};mP.displayName="Menu";var p9=Ye((e,t)=>{const r=h9();return z.jsx(ye.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...r.button}})}),gP=Ye((e,t)=>{const{children:r,as:n,...o}=e,i=u9(o,t),a=n||p9;return z.jsx(a,{...i,className:XU("chakra-menu__menu-button",e.className),children:z.jsx(ye.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});gP.displayName="MenuButton";const rS={newsArticle:"news_article",newsBlurb:"news_blurb"},VH="resource_entry";function vP(e,t){return function(){return e.apply(t,arguments)}}const{toString:m9}=Object.prototype,{getPrototypeOf:gy}=Object,_h=(e=>t=>{const r=m9.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),En=e=>(e=e.toLowerCase(),t=>_h(t)===e),Th=e=>t=>typeof t===e,{isArray:Vs}=Array,Mu=Th("undefined");function g9(e){return e!==null&&!Mu(e)&&e.constructor!==null&&!Mu(e.constructor)&&Tr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const yP=En("ArrayBuffer");function v9(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&yP(e.buffer),t}const y9=Th("string"),Tr=Th("function"),bP=Th("number"),Ph=e=>e!==null&&typeof e=="object",b9=e=>e===!0||e===!1,Cd=e=>{if(_h(e)!=="object")return!1;const t=gy(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},x9=En("Date"),w9=En("File"),S9=En("Blob"),E9=En("FileList"),k9=e=>Ph(e)&&Tr(e.pipe),C9=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Tr(e.append)&&((t=_h(e))==="formdata"||t==="object"&&Tr(e.toString)&&e.toString()==="[object FormData]"))},_9=En("URLSearchParams"),[T9,P9,R9,A9]=["ReadableStream","Request","Response","Headers"].map(En),D9=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tc(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Vs(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(n=0;n<a;n++)s=i[n],t.call(null,e[s],s,e)}}function xP(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Ni=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,wP=e=>!Mu(e)&&e!==Ni;function Hg(){const{caseless:e}=wP(this)&&this||{},t={},r=(n,o)=>{const i=e&&xP(t,o)||o;Cd(t[i])&&Cd(n)?t[i]=Hg(t[i],n):Cd(n)?t[i]=Hg({},n):Vs(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&tc(arguments[n],r);return t}const O9=(e,t,r,{allOwnKeys:n}={})=>(tc(t,(o,i)=>{r&&Tr(o)?e[i]=vP(o,r):e[i]=o},{allOwnKeys:n}),e),M9=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$9=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},F9=(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&gy(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},L9=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},z9=e=>{if(!e)return null;if(Vs(e))return e;let t=e.length;if(!bP(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},B9=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&gy(Uint8Array)),I9=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},j9=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},N9=En("HTMLFormElement"),V9=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),nS=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),U9=En("RegExp"),SP=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};tc(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},W9=e=>{SP(e,(t,r)=>{if(Tr(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Tr(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},H9=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Vs(e)?n(e):n(String(e).split(t)),r},G9=()=>{},K9=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,tm="abcdefghijklmnopqrstuvwxyz",oS="0123456789",EP={DIGIT:oS,ALPHA:tm,ALPHA_DIGIT:tm+tm.toUpperCase()+oS},q9=(e=16,t=EP.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Q9(e){return!!(e&&Tr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Y9=e=>{const t=new Array(10),r=(n,o)=>{if(Ph(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=Vs(n)?[]:{};return tc(n,(a,s)=>{const l=r(a,o+1);!Mu(l)&&(i[s]=l)}),t[o]=void 0,i}}return n};return r(e,0)},X9=En("AsyncFunction"),J9=e=>e&&(Ph(e)||Tr(e))&&Tr(e.then)&&Tr(e.catch),kP=((e,t)=>e?setImmediate:t?((r,n)=>(Ni.addEventListener("message",({source:o,data:i})=>{o===Ni&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Ni.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Tr(Ni.postMessage)),Z9=typeof queueMicrotask<"u"?queueMicrotask.bind(Ni):typeof process<"u"&&process.nextTick||kP,L={isArray:Vs,isArrayBuffer:yP,isBuffer:g9,isFormData:C9,isArrayBufferView:v9,isString:y9,isNumber:bP,isBoolean:b9,isObject:Ph,isPlainObject:Cd,isReadableStream:T9,isRequest:P9,isResponse:R9,isHeaders:A9,isUndefined:Mu,isDate:x9,isFile:w9,isBlob:S9,isRegExp:U9,isFunction:Tr,isStream:k9,isURLSearchParams:_9,isTypedArray:B9,isFileList:E9,forEach:tc,merge:Hg,extend:O9,trim:D9,stripBOM:M9,inherits:$9,toFlatObject:F9,kindOf:_h,kindOfTest:En,endsWith:L9,toArray:z9,forEachEntry:I9,matchAll:j9,isHTMLForm:N9,hasOwnProperty:nS,hasOwnProp:nS,reduceDescriptors:SP,freezeMethods:W9,toObjectSet:H9,toCamelCase:V9,noop:G9,toFiniteNumber:K9,findKey:xP,global:Ni,isContextDefined:wP,ALPHABET:EP,generateString:q9,isSpecCompliantForm:Q9,toJSONObject:Y9,isAsyncFn:X9,isThenable:J9,setImmediate:kP,asap:Z9};function de(e,t,r,n,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),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}L.inherits(de,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:L.toJSONObject(this.config),code:this.code,status:this.status}}});const CP=de.prototype,_P={};["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=>{_P[e]={value:e}});Object.defineProperties(de,_P);Object.defineProperty(CP,"isAxiosError",{value:!0});de.from=(e,t,r,n,o,i)=>{const a=Object.create(CP);return L.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),de.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const eW=null;function Gg(e){return L.isPlainObject(e)||L.isArray(e)}function TP(e){return L.endsWith(e,"[]")?e.slice(0,-2):e}function iS(e,t,r){return e?e.concat(t).map(function(o,i){return o=TP(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function tW(e){return L.isArray(e)&&!e.some(Gg)}const rW=L.toFlatObject(L,{},null,function(t){return/^is[A-Z]/.test(t)});function Rh(e,t,r){if(!L.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=L.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,x){return!L.isUndefined(x[g])});const n=r.metaTokens,o=r.visitor||c,i=r.dots,a=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(t);if(!L.isFunction(o))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(L.isDate(v))return v.toISOString();if(!l&&L.isBlob(v))throw new de("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(v)||L.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,g,x){let p=v;if(v&&!x&&typeof v=="object"){if(L.endsWith(g,"{}"))g=n?g:g.slice(0,-2),v=JSON.stringify(v);else if(L.isArray(v)&&tW(v)||(L.isFileList(v)||L.endsWith(g,"[]"))&&(p=L.toArray(v)))return g=TP(g),p.forEach(function(b,E){!(L.isUndefined(b)||b===null)&&t.append(a===!0?iS([g],E,i):a===null?g:g+"[]",u(b))}),!1}return Gg(v)?!0:(t.append(iS(x,g,i),u(v)),!1)}const d=[],f=Object.assign(rW,{defaultVisitor:c,convertValue:u,isVisitable:Gg});function h(v,g){if(!L.isUndefined(v)){if(d.indexOf(v)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(v),L.forEach(v,function(p,m){(!(L.isUndefined(p)||p===null)&&o.call(t,p,L.isString(m)?m.trim():m,g,f))===!0&&h(p,g?g.concat(m):[m])}),d.pop()}}if(!L.isObject(e))throw new TypeError("data must be an object");return h(e),t}function aS(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function vy(e,t){this._pairs=[],e&&Rh(e,this,t)}const PP=vy.prototype;PP.append=function(t,r){this._pairs.push([t,r])};PP.toString=function(t){const r=t?function(n){return t.call(this,n,aS)}:aS;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function nW(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function RP(e,t,r){if(!t)return e;const n=r&&r.encode||nW;L.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=L.isURLSearchParams(t)?t.toString():new vy(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class sS{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){L.forEach(this.handlers,function(n){n!==null&&t(n)})}}const AP={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},oW=typeof URLSearchParams<"u"?URLSearchParams:vy,iW=typeof FormData<"u"?FormData:null,aW=typeof Blob<"u"?Blob:null,sW={isBrowser:!0,classes:{URLSearchParams:oW,FormData:iW,Blob:aW},protocols:["http","https","file","blob","url","data"]},yy=typeof window<"u"&&typeof document<"u",Kg=typeof navigator=="object"&&navigator||void 0,lW=yy&&(!Kg||["ReactNative","NativeScript","NS"].indexOf(Kg.product)<0),uW=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",cW=yy&&window.location.href||"http://localhost",dW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:yy,hasStandardBrowserEnv:lW,hasStandardBrowserWebWorkerEnv:uW,navigator:Kg,origin:cW},Symbol.toStringTag,{value:"Module"})),Ht={...dW,...sW};function fW(e,t){return Rh(e,new Ht.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return Ht.isNode&&L.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function hW(e){return L.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function pW(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function DP(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=i>=r.length;return a=!a&&L.isArray(o)?o.length:a,l?(L.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!L.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&L.isArray(o[a])&&(o[a]=pW(o[a])),!s)}if(L.isFormData(e)&&L.isFunction(e.entries)){const r={};return L.forEachEntry(e,(n,o)=>{t(hW(n),o,r,0)}),r}return null}function mW(e,t,r){if(L.isString(e))try{return(t||JSON.parse)(e),L.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const rc={transitional:AP,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=L.isObject(t);if(i&&L.isHTMLForm(t)&&(t=new FormData(t)),L.isFormData(t))return o?JSON.stringify(DP(t)):t;if(L.isArrayBuffer(t)||L.isBuffer(t)||L.isStream(t)||L.isFile(t)||L.isBlob(t)||L.isReadableStream(t))return t;if(L.isArrayBufferView(t))return t.buffer;if(L.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return fW(t,this.formSerializer).toString();if((s=L.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Rh(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),mW(t)):t}],transformResponse:[function(t){const r=this.transitional||rc.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(L.isResponse(t)||L.isReadableStream(t))return t;if(t&&L.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?de.from(s,de.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ht.classes.FormData,Blob:Ht.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],e=>{rc.headers[e]={}});const gW=L.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"]),vW=e=>{const t={};let r,n,o;return e&&e.split(`
`).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&gW[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},lS=Symbol("internals");function fl(e){return e&&String(e).trim().toLowerCase()}function _d(e){return e===!1||e==null?e:L.isArray(e)?e.map(_d):String(e)}function yW(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const bW=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function rm(e,t,r,n,o){if(L.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!L.isString(t)){if(L.isString(n))return t.indexOf(n)!==-1;if(L.isRegExp(n))return n.test(t)}}function xW(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function wW(e,t){const r=L.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,a){return this[n].call(this,t,o,i,a)},configurable:!0})})}class pr{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(s,l,u){const c=fl(l);if(!c)throw new Error("header name must be a non-empty string");const d=L.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=_d(s))}const a=(s,l)=>L.forEach(s,(u,c)=>i(u,c,l));if(L.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(L.isString(t)&&(t=t.trim())&&!bW(t))a(vW(t),r);else if(L.isHeaders(t))for(const[s,l]of t.entries())i(l,s,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=fl(t),t){const n=L.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return yW(o);if(L.isFunction(r))return r.call(this,o,n);if(L.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=fl(t),t){const n=L.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||rm(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=fl(a),a){const s=L.findKey(n,a);s&&(!r||rm(n,n[s],s,r))&&(delete n[s],o=!0)}}return L.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||rm(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return L.forEach(this,(o,i)=>{const a=L.findKey(n,i);if(a){r[a]=_d(o),delete r[i];return}const s=t?xW(i):String(i).trim();s!==i&&delete r[i],r[s]=_d(o),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return L.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&L.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[lS]=this[lS]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=fl(a);n[s]||(wW(o,a),n[s]=!0)}return L.isArray(t)?t.forEach(i):i(t),this}}pr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors(pr.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});L.freezeMethods(pr);function nm(e,t){const r=this||rc,n=t||r,o=pr.from(n.headers);let i=n.data;return L.forEach(e,function(s){i=s.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function OP(e){return!!(e&&e.__CANCEL__)}function Us(e,t,r){de.call(this,e??"canceled",de.ERR_CANCELED,t,r),this.name="CanceledError"}L.inherits(Us,de,{__CANCEL__:!0});function MP(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new de("Request failed with status code "+r.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function SW(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function EW(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=n[i];a||(a=u),r[o]=l,n[o]=u;let d=i,f=0;for(;d!==o;)f+=r[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a<t)return;const h=c&&u-c;return h?Math.round(f*1e3/h):void 0}}function kW(e,t){let r=0,n=1e3/t,o,i;const a=(u,c=Date.now())=>{r=c,o=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),d=c-r;d>=n?a(u,c):(o=u,i||(i=setTimeout(()=>{i=null,a(o)},n-d)))},()=>o&&a(o)]}const kf=(e,t,r=3)=>{let n=0;const o=EW(50,250);return kW(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-n,u=o(l),c=a<=s;n=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-a)/u:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},r)},uS=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},cS=e=>(...t)=>L.asap(()=>e(...t)),CW=Ht.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ht.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ht.origin),Ht.navigator&&/(msie|trident)/i.test(Ht.navigator.userAgent)):()=>!0,_W=Ht.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];L.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),L.isString(n)&&a.push("path="+n),L.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function TW(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function PW(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $P(e,t){return e&&!TW(t)?PW(e,t):t}const dS=e=>e instanceof pr?{...e}:e;function sa(e,t){t=t||{};const r={};function n(u,c,d,f){return L.isPlainObject(u)&&L.isPlainObject(c)?L.merge.call({caseless:f},u,c):L.isPlainObject(c)?L.merge({},c):L.isArray(c)?c.slice():c}function o(u,c,d,f){if(L.isUndefined(c)){if(!L.isUndefined(u))return n(void 0,u,d,f)}else return n(u,c,d,f)}function i(u,c){if(!L.isUndefined(c))return n(void 0,c)}function a(u,c){if(L.isUndefined(c)){if(!L.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function s(u,c,d){if(d in t)return n(u,c);if(d in e)return n(void 0,u)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c,d)=>o(dS(u),dS(c),d,!0)};return L.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||o,f=d(e[c],t[c],c);L.isUndefined(f)&&d!==s||(r[c]=f)}),r}const FP=e=>{const t=sa({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=pr.from(a),t.url=RP($P(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(L.isFormData(r)){if(Ht.hasStandardBrowserEnv||Ht.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Ht.hasStandardBrowserEnv&&(n&&L.isFunction(n)&&(n=n(t)),n||n!==!1&&CW(t.url))){const u=o&&i&&_W.read(i);u&&a.set(o,u)}return t},RW=typeof XMLHttpRequest<"u",AW=RW&&function(e){return new Promise(function(r,n){const o=FP(e);let i=o.data;const a=pr.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=o,c,d,f,h,v;function g(){h&&h(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let x=new XMLHttpRequest;x.open(o.method.toUpperCase(),o.url,!0),x.timeout=o.timeout;function p(){if(!x)return;const b=pr.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:b,config:e,request:x};MP(function(P){r(P),g()},function(P){n(P),g()},C),x=null}"onloadend"in x?x.onloadend=p:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(p)},x.onabort=function(){x&&(n(new de("Request aborted",de.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new de("Network Error",de.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const C=o.transitional||AP;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),n(new de(E,C.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,x)),x=null},i===void 0&&a.setContentType(null),"setRequestHeader"in x&&L.forEach(a.toJSON(),function(E,C){x.setRequestHeader(C,E)}),L.isUndefined(o.withCredentials)||(x.withCredentials=!!o.withCredentials),s&&s!=="json"&&(x.responseType=o.responseType),u&&([f,v]=kf(u,!0),x.addEventListener("progress",f)),l&&x.upload&&([d,h]=kf(l),x.upload.addEventListener("progress",d),x.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(c=b=>{x&&(n(!b||b.type?new Us(null,e,x):b),x.abort(),x=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const m=SW(o.url);if(m&&Ht.protocols.indexOf(m)===-1){n(new de("Unsupported protocol "+m+":",de.ERR_BAD_REQUEST,e));return}x.send(i||null)})},DW=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(u){if(!o){o=!0,s();const c=u instanceof Error?u:this.reason;n.abort(c instanceof de?c:new Us(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,i(new de(`timeout ${t} of ms exceeded`,de.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>L.asap(s),l}},OW=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},MW=async function*(e,t){for await(const r of $W(e))yield*OW(r,t)},$W=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},fS=(e,t,r,n)=>{const o=MW(e,t);let i=0,a,s=l=>{a||(a=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await o.next();if(u){s(),l.close();return}let d=c.byteLength;if(r){let f=i+=d;r(f)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},Ah=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",LP=Ah&&typeof ReadableStream=="function",FW=Ah&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),zP=(e,...t)=>{try{return!!e(...t)}catch{return!1}},LW=LP&&zP(()=>{let e=!1;const t=new Request(Ht.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),hS=64*1024,qg=LP&&zP(()=>L.isReadableStream(new Response("").body)),Cf={stream:qg&&(e=>e.body)};Ah&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Cf[t]&&(Cf[t]=L.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new de(`Response type '${t}' is not supported`,de.ERR_NOT_SUPPORT,n)})})})(new Response);const zW=async e=>{if(e==null)return 0;if(L.isBlob(e))return e.size;if(L.isSpecCompliantForm(e))return(await new Request(Ht.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(L.isArrayBufferView(e)||L.isArrayBuffer(e))return e.byteLength;if(L.isURLSearchParams(e)&&(e=e+""),L.isString(e))return(await FW(e)).byteLength},BW=async(e,t)=>{const r=L.toFiniteNumber(e.getContentLength());return r??zW(t)},IW=Ah&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:f}=FP(e);u=u?(u+"").toLowerCase():"text";let h=DW([o,i&&i.toAbortSignal()],a),v;const g=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let x;try{if(l&&LW&&r!=="get"&&r!=="head"&&(x=await BW(c,n))!==0){let C=new Request(t,{method:"POST",body:n,duplex:"half"}),S;if(L.isFormData(n)&&(S=C.headers.get("content-type"))&&c.setContentType(S),C.body){const[P,T]=uS(x,kf(cS(l)));n=fS(C.body,hS,P,T)}}L.isString(d)||(d=d?"include":"omit");const p="credentials"in Request.prototype;v=new Request(t,{...f,signal:h,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:p?d:void 0});let m=await fetch(v);const b=qg&&(u==="stream"||u==="response");if(qg&&(s||b&&g)){const C={};["status","statusText","headers"].forEach(F=>{C[F]=m[F]});const S=L.toFiniteNumber(m.headers.get("content-length")),[P,T]=s&&uS(S,kf(cS(s),!0))||[];m=new Response(fS(m.body,hS,P,()=>{T&&T(),g&&g()}),C)}u=u||"text";let E=await Cf[L.findKey(Cf,u)||"text"](m,e);return!b&&g&&g(),await new Promise((C,S)=>{MP(C,S,{data:E,headers:pr.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:v})})}catch(p){throw g&&g(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new de("Network Error",de.ERR_NETWORK,e,v),{cause:p.cause||p}):de.from(p,p&&p.code,e,v)}}),Qg={http:eW,xhr:AW,fetch:IW};L.forEach(Qg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const pS=e=>`- ${e}`,jW=e=>L.isFunction(e)||e===null||e===!1,BP={getAdapter:e=>{e=L.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let a;if(n=r,!jW(r)&&(n=Qg[(a=String(r)).toLowerCase()],n===void 0))throw new de(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
`+i.map(pS).join(`
`):" "+pS(i[0]):"as no adapter specified";throw new de("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:Qg};function om(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Us(null,e)}function mS(e){return om(e),e.headers=pr.from(e.headers),e.data=nm.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),BP.getAdapter(e.adapter||rc.adapter)(e).then(function(n){return om(e),n.data=nm.call(e,e.transformResponse,n),n.headers=pr.from(n.headers),n},function(n){return OP(n)||(om(e),n&&n.response&&(n.response.data=nm.call(e,e.transformResponse,n.response),n.response.headers=pr.from(n.response.headers))),Promise.reject(n)})}const IP="1.7.9",Dh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Dh[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const gS={};Dh.transitional=function(t,r,n){function o(i,a){return"[Axios v"+IP+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,s)=>{if(t===!1)throw new de(o(a," has been removed"+(r?" in "+r:"")),de.ERR_DEPRECATED);return r&&!gS[a]&&(gS[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,s):!0}};Dh.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function NW(e,t,r){if(typeof e!="object")throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new de("option "+i+" must be "+l,de.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new de("Unknown option "+i,de.ERR_BAD_OPTION)}}const Td={assertOptions:NW,validators:Dh},Rn=Td.validators;class Zi{constructor(t){this.defaults=t,this.interceptors={request:new sS,response:new sS}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=sa(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Td.assertOptions(n,{silentJSONParsing:Rn.transitional(Rn.boolean),forcedJSONParsing:Rn.transitional(Rn.boolean),clarifyTimeoutError:Rn.transitional(Rn.boolean)},!1),o!=null&&(L.isFunction(o)?r.paramsSerializer={serialize:o}:Td.assertOptions(o,{encode:Rn.function,serialize:Rn.function},!0)),Td.assertOptions(r,{baseUrl:Rn.spelling("baseURL"),withXsrfToken:Rn.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&L.merge(i.common,i[r.method]);i&&L.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),r.headers=pr.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,d=0,f;if(!l){const v=[mS.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),f=v.length,c=Promise.resolve(r);d<f;)c=c.then(v[d++],v[d++]);return c}f=s.length;let h=r;for(d=0;d<f;){const v=s[d++],g=s[d++];try{h=v(h)}catch(x){g.call(this,x);break}}try{c=mS.call(this,h)}catch(v){return Promise.reject(v)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=sa(this.defaults,t);const r=$P(t.baseURL,t.url);return RP(r,t.params,t.paramsSerializer)}}L.forEach(["delete","get","head","options"],function(t){Zi.prototype[t]=function(r,n){return this.request(sa(n||{},{method:t,url:r,data:(n||{}).data}))}});L.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,s){return this.request(sa(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Zi.prototype[t]=r(),Zi.prototype[t+"Form"]=r(!0)});class by{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{n.subscribe(s),i=s}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,s){n.reason||(n.reason=new Us(i,a,s),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new by(function(o){t=o}),cancel:t}}}function VW(e){return function(r){return e.apply(null,r)}}function UW(e){return L.isObject(e)&&e.isAxiosError===!0}const Yg={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(Yg).forEach(([e,t])=>{Yg[t]=e});function jP(e){const t=new Zi(e),r=vP(Zi.prototype.request,t);return L.extend(r,Zi.prototype,t,{allOwnKeys:!0}),L.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return jP(sa(e,o))},r}const Fe=jP(rc);Fe.Axios=Zi;Fe.CanceledError=Us;Fe.CancelToken=by;Fe.isCancel=OP;Fe.VERSION=IP;Fe.toFormData=Rh;Fe.AxiosError=de;Fe.Cancel=Fe.CanceledError;Fe.all=function(t){return Promise.all(t)};Fe.spread=VW;Fe.isAxiosError=UW;Fe.mergeConfig=sa;Fe.AxiosHeaders=pr;Fe.formToJSON=e=>DP(L.isHTMLForm(e)?new FormData(e):e);Fe.getAdapter=BP.getAdapter;Fe.HttpStatusCode=Yg;Fe.default=Fe;const An={log:(...e)=>{},warn:(...e)=>{},error:(...e)=>{console.error(...e)}},Dn="production",sn="https://content.iapp.org",nc={getSpecificEntry:async function(e,t,r="en-us"){return Fe.get(`${sn}/content_types/${e}/entries/${t}?environment=${Dn}&locale=${r}`).then(n=>n.data).catch(n=>{An.error("error getSpecificEntry:",n)})},getSpecificEntryWithRef:async function(e,t,r="en-us",n){return Fe.get(`${sn}/content_types/${e}/entries/${t}?environment=${Dn}&locale=${r}&include[]=${n.replaceAll(",","&include[]=")}`).then(o=>o.data).catch(o=>{An.error(o)})},getAllContentTypes:async function(){return Fe.get(`${sn}/content_types?include_count=false`).then(e=>e.data.content_types).catch(e=>{An.error("ERROR getAllContentTypes: ",e)})},getAllEntries:async function(e,t="en-us"){return Fe.get(`${sn}/content_types/${e}/entries?environment=${Dn}&locale=${t}&include_fallback=true`).then(r=>r.data.entries).catch(r=>{An.error("ERROR getAllEntries: ",r)})},getAllEntriesWithRef:async function(e,t,r="en-us"){return Fe.get(`${sn}/content_types/${e}/entries?environment=${Dn}&locale=${r}&include[]=${t.replaceAll(",","&include[]=")}&include_fallback=true`).then(n=>n.data.entries).catch(n=>{An.error("ERROR getAllEntriesWithRef: ",n)})},getArticle:async function(e,t,r="en-us",n){var d,f,h;const o=t.replace(/\/+$/,""),a=`include[]=${n==null?void 0:n.replaceAll(",","&include[]=")}`,s=`environment=${Dn}`,l=`locale=${r}`,u=`${sn}/content_types/${e}/entries?${s}&${l}&query={"url": "${o}"}&${a}`,c=await Fe.get(u);if(c.status!==200||!((d=c==null?void 0:c.data)!=null&&d.entries)||((h=(f=c==null?void 0:c.data)==null?void 0:f.entries)==null?void 0:h.length)===0)throw new Error(`Error retrieving article. Status: ${c.status}: ${c.statusText}`);return c.data.entries},getLimitedEntries:function(e,t,r,n="en-us"){return Fe.get(`${sn}/content_types/${e}/entries?environment=${Dn}&locale=${n}&limit=${t}&desc=${r}`).then(o=>o.data.entries).catch(o=>{An.error("ERROR getLimitedEntries: ",o)})},getBanner:function(e){return Fe.get(`${sn}/content_types/${e}/entries?environment=${Dn}&query={ "section_header_for_subpages": { "$exists": true } }&only[BASE][]=section_header_for_subpages&include[]=section_header_for_subpages`).then(t=>t.data.entries).catch(t=>{An.error("ERROR getBanner: ",t)})},checkResource:function(e,t){return Fe.get(`${sn}/content_types/${e}/entries?environment=${Dn}&query={"url": "${t}"}&only[BASE][]=uid`).then(r=>r.data.entries).catch(r=>{An.error("ERROR checkResource: ",r)})},getUID:function(e){return Fe.get(`${sn}/content_types?environment=${Dn}&query={"options.url_pattern": "${e}"}&only[BASE][]=uid}`).then(t=>t.data.content_types).catch(t=>{An.error("ERROR getUID: ",t)})},getSchema:function(e){return Fe.get(`${sn}/content_types/${e}?environment=${Dn}`).then(t=>t.data.content_type.schema).catch(t=>{An.error("ERROR getSchema: ",t)})}};function Xg(){return Xg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xg.apply(null,arguments)}const WW=({faIcon:e,variant:t,fasize:r,...n})=>y.createElement(ge,Xg({className:`${t||"fa-solid"} ${e||"fa-question"} ${r}`},n));function NP(e){var u,c;const{setOpen:t,viewBack:r,setSMV:n,setActive:o,setMenuGroup:i}=e,[a,s]=w.useState();w.useEffect(()=>{l()},[]);async function l(){const d=await nc.getAllEntries("utility_nav");s(d)}return y.createElement(ce,{align:"center",justify:"space-between",w:{base:"102%",lg:"80%"},mx:"auto",px:{base:"42px"}},y.createElement(ce,{w:"100%",h:"24px",gap:"1rem",justify:{base:"center",md:"end"}},(u=a==null?void 0:a.utility_links)==null?void 0:u.map((d,f)=>{var h,v,g;return y.createElement(ge,{key:f,fontSize:{base:".875rem"},lineHeight:{base:"1.192rem"},fontWeight:"400",onClick:()=>{t(!1),r(!1),n(!1),o(!1),i(!0)}},((h=d.link)==null?void 0:h.title)&&y.createElement(qe,{href:(v=d.link)==null?void 0:v.href,target:d.new_window?"_blank":"_self"},(g=d.link)==null?void 0:g.title))}),y.createElement(ge,{borderLeft:"solid 1px",borderColor:"inherit",pl:"19px"},y.createElement(qe,{href:(c=a==null?void 0:a.search_link)==null?void 0:c.url_path,"aria-label":"Click to go to the search page"},y.createElement(WW,{faIcon:"fa-magnifying-glass",color:"inherit"})))))}function VP(e){var n;const{data:t}=e,r=$r();return y.createElement(ge,{bg:r.colors.Grey4,maxW:{lg:"324px"}},y.createElement(ce,{direction:{base:"column",md:"row",lg:"column"},height:"100%"},(n=t==null?void 0:t.promo_content)==null?void 0:n.map((o,i)=>{var a,s,l,u,c,d,f,h;return y.createElement(ce,{key:i,flexGrow:1,justify:"center",my:{base:"initial",md:"20px",lg:"initial"},mx:{base:"20px",md:"initial",lg:"20px"},py:{base:"20px",md:"initial",lg:"20px"},px:"40px",borderRight:((a=t==null?void 0:t.promo_content)==null?void 0:a.length)===2&&i===0?{md:`1px solid ${r.colors.Grey3}`,lg:"none"}:"none",borderBottom:((s=t==null?void 0:t.promo_content)==null?void 0:s.length)===2&&i===0?{base:`1px solid ${r.colors.Grey3}`,md:"none",lg:`1px solid ${r.colors.Grey3}`}:"none"},y.createElement(ce,{direction:"column",textAlign:"center",gap:"1rem",my:"10px"},y.createElement(ge,{maxH:((l=t==null?void 0:t.promo_content)==null?void 0:l.length)===2?115:170},y.createElement(Eh,{src:`${(u=o.image)==null?void 0:u.url}?height=${((c=t==null?void 0:t.promo_content)==null?void 0:c.length)===2?115:170}`,alt:o.image_alt,loading:"lazy",mx:"auto"})),y.createElement(qe,{href:(d=o.title)==null?void 0:d.href,fontWeight:"700",fontSize:"1.125rem",lineHeight:"1.532rem"},y.createElement(dr,{noOfLines:3},(f=o.title)==null?void 0:f.title)),((h=t==null?void 0:t.promo_content)==null?void 0:h.length)===1&&y.createElement(y.Fragment,null,y.createElement(dr,{fontWeight:"400",fontSize:".75rem",lineHeight:"1rem",borderTop:`1px solid ${r.colors.Grey3}`,p:"1rem",noOfLines:5},o.description))))})))}function Jg(){return Jg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jg.apply(null,arguments)}function Pd({variant:e,fasize:t,...r}){return y.createElement(ge,Jg({className:`${e||"fa-solid"} fa-arrow-right-long ${t}`},r))}function HW(e){var i,a,s,l,u;const{data:t,setActive:r,setMenu:n}=e,o=$r();return y.createElement(y.Fragment,null,y.createElement(ge,{bg:o.colors.Grey4,borderBottom:`1px solid ${o.colors.Grey5}`},t!=null&&t.title_link.href?y.createElement(ge,{mx:"2%",my:"16px"},y.createElement(qe,{href:(i=t==null?void 0:t.title_link)==null?void 0:i.href,fontWeight:"700",fontSize:"1.375rem",lineHeight:"1.873rem",color:"DarkGreen"},((a=t==null?void 0:t.title_link)==null?void 0:a.title)||(t==null?void 0:t.title))):y.createElement(dr,{fontWeight:"700",fontSize:"1.375rem",lineHeight:"1.873rem",color:"DarkGreen",mx:"2%",my:"16px"},(t==null?void 0:t.title)||((s=t==null?void 0:t.title_link)==null?void 0:s.title))),y.createElement(ce,{bg:"#FBFBFB",maxW:"100%",w:`${25*((l=t==null?void 0:t.link_columns)==null?void 0:l.length)+20}%`},(u=t==null?void 0:t.link_columns)==null?void 0:u.map((c,d)=>{var f,h,v,g,x;return y.createElement(ce,{key:d,flex:1,minW:"20%",direction:"column",gap:"50px",borderRight:d<((f=t==null?void 0:t.link_columns)==null?void 0:f.length)-1?`1px solid ${o.colors.Grey3}`:"none",my:"40px"},(h=c.link_section)==null?void 0:h.map((p,m)=>{var b,E,C,S;return y.createElement(ce,{key:m},y.createElement(ce,{direction:"column",gap:"16px",mx:"10%"},(b=p.section_title_link)!=null&&b.href?y.createElement(qe,{href:(E=p.section_title_link)==null?void 0:E.href,fontWeight:"700",fontSize:"1rem",lineHeight:"1.36rem"},((C=p.section_title_link)==null?void 0:C.title)||p.section_title||""):p.section_title?y.createElement(dr,{fontWeight:"700",fontSize:"1rem",lineHeight:"1.36rem"},p.section_title):"",(S=p.link)==null?void 0:S.map((P,T)=>y.createElement(qe,{key:T,href:P.href,onClick:()=>{r(!1),n()},fontSize:"1rem",lineHeight:"1.363rem",fontWeight:"400"},y.createElement(dr,null,P.title)))))}),((v=c.view_all_link)==null?void 0:v.href)&&y.createElement(ce,{gap:"16px",align:"center",fontFamily:"Lato",fontSize:".75rem",lineHeight:".9rem",fontWeight:"700"},y.createElement(qe,{href:(g=c.view_all_link)==null?void 0:g.href,ml:"10%"},(x=c.view_all_link)==null?void 0:x.title),y.createElement(Pd,null)))}),(t==null?void 0:t.menu_promo[0])&&y.createElement(VP,{data:t==null?void 0:t.menu_promo[0]})))}function GW(e){const t=$r();return y.createElement(ce,{direction:"column",position:"absolute",top:"100%",left:"0",w:"100%",zIndex:1e8,color:t.colors.Black},y.createElement(Sf,{above:"lg"},y.createElement(HW,e)))}const KW=["es","fr","pt","nl","en-us"];function qW(e){return KW.includes(e)?e:"en-us"}function QW(e){var l,u,c,d;const{smd:t,setOpen:r,defOpen:n,viewBack:o,setSMV:i,setMenuGroup:a}=e,s=$r();return y.createElement(ge,{borderRadius:"none",w:"100%",position:"absolute",top:"100%",bg:s.colors.Grey5,zIndex:1e4,color:s.colors.Black},y.createElement(ge,{color:"DarkGreen",my:"20px",px:"16px",onClick:()=>{r(!n)}},(l=t.title_link)!=null&&l.href?y.createElement(ge,{as:qe,href:(u=t.title_link)==null?void 0:u.href,fontWeight:"700",fontSize:"1.25rem",lineHeight:"1.7rem"},((c=t.title_link)==null?void 0:c.title)||t.title):y.createElement(ge,{fontWeight:"700",fontSize:"1.25rem",lineHeight:"1.7rem",px:"16px"},t.title)),y.createElement(jg,null),(d=t.link_columns)==null?void 0:d.map((f,h)=>{var v;return y.createElement(ge,{key:h,px:"16px"},y.createElement(ge,null,(v=f.link_section)==null?void 0:v.map((g,x)=>{var p,m,b,E,C,S;return y.createElement(ge,{key:x},y.createElement(ge,{key:x,my:"30px"},y.createElement(ce,{direction:"column",gap:"1rem"},(p=g.section_title_link)!=null&&p.href?y.createElement(qe,{to:(m=g.section_title_link)==null?void 0:m.href,fontWeight:"700",fontSize:"1.125rem",lineHeight:"1.531rem",onClick:()=>{r(!1),o(!1),i(!1),a(!0)}},(b=g.section_title_link)==null?void 0:b.title):y.createElement(ge,{fontWeight:"700",fontSize:"1.125rem",lineHeight:"1.531rem"},((E=g.section_title_link)==null?void 0:E.title)||g.section_title||""),(C=g.link)==null?void 0:C.map((P,T)=>y.createElement(ge,{key:T,fontWeight:"400",fontSize:"1rem",lineHeight:"1.363rem",onClick:()=>{r(!1),o(!1),i(!1),a(!0)}},y.createElement(qe,{href:P.href},P.title))),((S=f.view_all_link)==null?void 0:S.href)&&y.createElement(ce,{gap:"1rem",align:"center"},y.createElement(qe,{href:f.view_all_link.href,fontFamily:"Lato",fontWeight:"400"},f.view_all_link.title),y.createElement(ge,{className:"fa-solid fa-arrow-right-long"})))),y.createElement(jg,null))})))}),y.createElement(VP,{data:t.menu_promo[0]}))}function Zg(e){var o,i,a,s,l,u;const{data:t,store:r,hideStore:n}=e;return y.createElement(ce,{align:"center",flex:1,justifyContent:r?"center":"end",pr:r?"":{base:"16px",lg:"initial"},gap:"1rem",color:"ContrastGreen"},y.createElement(ce,{align:"center",color:"ContrastGreen",fontSize:"1rem",fontWeight:"600"},!n&&y.createElement(oo,{below:"md"},y.createElement(qe,{href:(o=t==null?void 0:t.store_link)==null?void 0:o.href},(i=t==null?void 0:t.store_link)==null?void 0:i.title)),r&&y.createElement(oo,{above:"sm"},y.createElement(qe,{href:(a=t==null?void 0:t.store_link)==null?void 0:a.href},(s=t==null?void 0:t.store_link)==null?void 0:s.title))),y.createElement(is,{as:qe,size:"md",variant:"secondarygreen",href:(l=t==null?void 0:t.login)==null?void 0:l.href,border:"1.5px solid",borderRadius:"40px"},(u=t==null?void 0:t.login)==null?void 0:u.title))}function YW(e){var f,h;const{data:t,height:r,setOpen:n,defOpen:o,setActive:i,viewBack:a,setSMV:s,setMenuGroup:l,setSMD:u,buttonData:c}=e,d=$r();return y.createElement(ce,{direction:"column",position:"absolute",top:"100%",bg:d.colors.Grey5,borderRadius:"none",m:0,minW:"100%",minH:r-104,zIndex:1e5},y.createElement(oo,{above:"md"},y.createElement(ce,{borderBottom:`1px solid ${d.colors.Grey3}`,py:"20px",w:"100%",color:"black"},y.createElement(NP,{color:"black",setOpen:n,defOpen:o,setActive:i,viewBack:a,setSMV:s,setMenuGroup:l}))),t==null?void 0:t.map((v,g)=>{var x,p,m,b,E;return y.createElement(ge,{key:g,w:"100%",color:d.colors.Grey1,_hover:{color:"DarkGreen"},_focus:{color:"DarkGreen"},_active:{color:"DarkGreen"}},v.menu?y.createElement(ce,{onClick:()=>{s(!0),u(v.menu.menu[0]),a(!0)},px:"30px",borderBottom:`1px solid ${d.colors.Grey3}`,borderTop:g===0?`1px solid ${d.colors.Grey3}`:"none"},y.createElement(ce,{w:"100%",justify:"space-between",fontWeight:"700",fontSize:"1.25rem",lineHeight:"1.7rem",my:"20px",_hover:{color:"DarkGreen"}},y.createElement(dr,{color:"black",_hover:{color:"DarkGreen",textDecoration:"underline"},_focus:{color:"DarkGreen",textDecoration:"underline"},_active:{color:"DarkGreen",textDecoration:"underline"}},(x=v.menu.menu[0])==null?void 0:x.title),y.createElement(Pd,{_hover:{textDecor:"none"},_active:{textDecor:"none"},_focus:{textDecor:"none"}}))):y.createElement(ce,{onClick:()=>n(!o),px:"30px",borderBottom:d.colors.Grey1},y.createElement(ce,{w:"100%",justify:"space-between",fontWeight:"700",fontSize:"1.25rem",lineHeight:"1.7rem",my:"20px",_hover:{color:"DarkGreen"}},y.createElement(dr,{as:qe,href:(m=(p=v.link)==null?void 0:p.link)==null?void 0:m.href,color:"black",onClick:()=>{n(!1),a(!1),s(!1),l(!0)},_hover:{color:"DarkGreen",textDecoration:"underline"},_focus:{color:"DarkGreen",textDecoration:"underline"},_active:{color:"DarkGreen",textDecoration:"underline"}},(E=(b=v.link)==null?void 0:b.link)==null?void 0:E.title),y.createElement(Pd,{_hover:{textDecor:"none"},_active:{textDecor:"none"},_focus:{textDecor:"none"}}))))}),y.createElement(ce,{onClick:()=>n(!o),px:"30px",borderBottom:`1px solid ${d.colors.Grey3}`,color:d.colors.Grey1},y.createElement(ce,{w:"100%",justify:"space-between",fontWeight:"700",fontSize:"1.25rem",lineHeight:"1.7rem",my:"20px",_hover:{color:"DarkGreen"}},y.createElement(dr,{as:qe,href:(f=c==null?void 0:c.store_link)==null?void 0:f.href,color:"black",onClick:()=>{n(!1),a(!1),s(!1),l(!0)},_hover:{color:"DarkGreen",textDecoration:"underline"},_focus:{color:"DarkGreen",textDecoration:"underline"},_active:{color:"DarkGreen",textDecoration:"underline"}},(h=c==null?void 0:c.store_link)==null?void 0:h.title),y.createElement(Pd,{_hover:{textDecor:"none"},_active:{textDecor:"none"},_focus:{textDecor:"none"}}))),y.createElement(ce,{alignSelf:"stretch",flexGrow:2}),y.createElement(ce,{py:"48px",borderTop:`1px solid ${d.colors.Grey3}`},y.createElement(Zg,{data:c,store:!0,hideStore:!0})))}function _f(){return _f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_f.apply(null,arguments)}function vS(e){const{data:t,setOpen:r,icon:n,defOpen:o,direction:i,viewBack:a,smv:s,setSMV:l,setMenuGroup:u}=e,[c,d]=w.useState(),[f,h]=w.useState();w.useLayoutEffect(()=>{v()},[]);function v(){h(window==null?void 0:window.innerHeight)}return window.addEventListener("resize",v),y.createElement(mP,{defaultIsOpen:o,direction:i,onClose:()=>{r(!1),a(!1),l(!1),u(!0)},onOpen:()=>{u(!1)},eventListeners:{resize:!0},isLazy:!0,closeOnBlur:!1},({isOpen:g})=>y.createElement(y.Fragment,null,y.createElement(gP,{as:KT,size:"lg",icon:n,variant:"outline",color:"inherit",border:"none",onClick:()=>{r(!o)}}),g&&!s&&y.createElement(YW,_f({data:t},e,{setSMD:d,height:f})),g&&s&&c&&y.createElement(QW,_f({},e,{smd:c}))))}var UP={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},yS=y.createContext&&y.createContext(UP),oi=function(){return oi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},oi.apply(this,arguments)},XW=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function WP(e){return e&&e.map(function(t,r){return y.createElement(t.tag,oi({key:r},t.attr),WP(t.child))})}function HP(e){return function(t){return y.createElement(JW,oi({attr:oi({},e.attr)},t),WP(e.child))}}function JW(e){var t=function(r){var n=e.attr,o=e.size,i=e.title,a=XW(e,["attr","size","title"]),s=o||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),y.createElement("svg",oi({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:l,style:oi(oi({color:e.color||r.color},r.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&y.createElement("title",null,i),e.children)};return yS!==void 0?y.createElement(yS.Consumer,null,function(r){return t(r)}):t(UP)}function ZW(e){return HP({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"}}]})(e)}function eH(e){return HP({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"}}]})(e)}function tH({variant:e,fasize:t}){return y.createElement(ge,{className:`${e||"fa-solid"} fa-arrow-left-long ${t}`})}function Tf(){return Tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tf.apply(null,arguments)}function rH(e){var m,b,E,C,S,P,T;const{setActive:t,setMenu:r,active:n,menu:o}=e,[i,a]=w.useState(),[s,l]=w.useState(),[u,c]=w.useState(!1),[d,f]=w.useState(!0),[h,v]=w.useState(!1);let{l:g}=w0();g=qW(g);const x=()=>{f(!0)};w.useEffect(()=>{p(g)},[g]),w.useLayoutEffect(()=>{x()},[]),window.addEventListener("resize",x);async function p(F){const O=await nc.getAllEntriesWithRef("main_nav","megamenu.pages.menu.menu.menu_promo",F);a(O[0])}return y.createElement(ce,{mx:"auto",direction:"column",justify:"center",h:"104px",gap:"17%",bg:"inherit",color:"inherit"},y.createElement(oo,{below:"md"},y.createElement(ge,{borderBottom:"1px solid #F5F5F5",py:"18px"},y.createElement(NP,Tf({setOpen:l,defOpen:s,setActive:t,viewBack:c,setSMV:v,setMenuGroup:f,onMouseOver:()=>t(!1)},e)))),y.createElement(ce,null,!s&&y.createElement(oo,{above:"lg"},y.createElement(ce,{flex:1},y.createElement(vS,Tf({data:(m=i==null?void 0:i.megamenu[0])==null?void 0:m.pages,open:s,setOpen:l,icon:y.createElement(ZW,null),defOpen:!1,direction:"ltr",back:u,viewBack:c,smv:h,setSMV:v,menuGroup:d,setMenuGroup:f,setActive:t},e)))),u&&y.createElement(oo,{above:"lg"},y.createElement(ce,{flex:1},y.createElement(is,{onClick:F=>{F.preventDefault(),v(!1),c(!1)},bg:"inherit",color:"inherit",border:"none",size:"md"},y.createElement(ce,{gap:".5rem",align:"center"},y.createElement(tH,null),y.createElement(dr,null,"Back"))))),s&&!u&&y.createElement(ce,{flex:1}),y.createElement(ce,{flex:{base:1,lg:2},justifyContent:{base:"center",lg:"start"}},y.createElement(qe,{href:"/"},y.createElement(Eh,{src:(E=(b=i==null?void 0:i.logo)==null?void 0:b.image)==null?void 0:E.url,alt:(C=i==null?void 0:i.logo)==null?void 0:C.alt_text,h:"39",mx:{lg:"16px"}}))),y.createElement(oo,{below:"lg"},y.createElement(ce,{flexGrow:3,justifyContent:"center",bg:"inherit",h:"117%",onMouseLeave:()=>t(!1)},y.createElement(ce,{flex:1,justify:"center",fontSize:"16px",fontWeight:"500"},(P=(S=i==null?void 0:i.megamenu[0])==null?void 0:S.pages)==null?void 0:P.map((F,O)=>{var W,ne,re,le,Me;return y.createElement(ge,{key:O,mx:"1%"},F.menu&&y.createElement(is,{as:qe,href:(ne=(W=F.menu.menu[0])==null?void 0:W.title_link)==null?void 0:ne.href,px:0,size:"md",bg:"inherit",color:"inherit",_hover:{textDecor:"underline"},onClick:()=>{o?F.menu.menu[0]==o?t(!n):n===!1&&t(!0):t(!n),r(F.menu.menu[0])},onMouseOver:()=>{t(!0),r(F.menu.menu[0])},h:"150%"},(re=F.menu.menu[0])==null?void 0:re.title),F.link&&y.createElement(is,{px:0,size:"md",border:"none",key:O,as:qe,href:(le=F.link.link)==null?void 0:le.href,onClick:()=>{t(!1),r()},bg:"inherit",color:"inherit",_hover:{textDecor:"underline"}},(Me=F.link.link)==null?void 0:Me.title))})),n&&y.createElement(GW,{data:o,setActive:t,setMenu:r}))),y.createElement(Sf,{above:"lg"},y.createElement(ce,{flex:2,justifyContent:"end",mx:{lg:"16px"}},y.createElement(Zg,{data:i}))),d&&y.createElement(Sf,{below:"lg"},y.createElement(ce,{flex:1,justifyContent:"end"},y.createElement(Zg,{data:i}))),s&&y.createElement(oo,{above:"lg"},y.createElement(ce,{flex:1,justifyContent:"end"},y.createElement(vS,{data:(T=i==null?void 0:i.megamenu[0])==null?void 0:T.pages,open:s,setOpen:l,icon:y.createElement(eH,null),defOpen:!0,direction:"rtl",back:u,viewBack:c,smv:h,setSMV:v,menuGroup:d,setMenuGroup:f,buttonData:i,setActive:t})))))}function nH(){const[e,t]=w.useState(),[r,n]=w.useState(!1),o=window.location.pathname,i=o=="/"?!0:o=="/home",a=$r();return y.createElement(y.Fragment,null,y.createElement(ye.header,{id:"header",background:i===!0?{base:a.colors.Black,md:a.colors.Black}:a.colors.White,color:i===!0?{base:a.colors.Black,md:a.colors.White}:a.colors.Black,w:"100%",py:"1.5%",position:"relative"},y.createElement(rH,{active:r,setActive:n,setMenu:t,menu:e})),y.createElement(i_,null))}const oH=y.memo(nH),ln=y.lazy(()=>Sn(()=>import("./Error-B9GTS4IN.js"),__vite__mapDeps([0,1,2]))),Ot=y.lazy(()=>Sn(()=>import("./ContentTypeFilter-B1xB6XzJ.js"),__vite__mapDeps([3,4,5,6,7,8,2,9,1,10,11,12,13,14,15,16]))),bS=y.lazy(()=>Sn(()=>import("./NewsContent-BsAYvTWr.js").then(e=>e.a),__vite__mapDeps([14,2,7,8,9,1,6,13]))),im=y.lazy(()=>Sn(()=>import("./404-Dn1n4CiY.js"),[])),am=y.lazy(()=>Sn(()=>import("./subPage-D9zOw-sK.js"),__vite__mapDeps([5,6,7,8,2,9,1,4,10,11,12]))),hl=y.lazy(()=>Sn(()=>import("./overview-pco8k4BH.js"),__vite__mapDeps([17,8,2,9,6,7,1,10,4]))),qc=y.lazy(()=>Sn(()=>import("./listing-CMIWkB2Q.js"),__vite__mapDeps([18,8,2,9,15,12,4]))),_t=y.lazy(()=>Sn(()=>import("./SearchPage-Cu59_16p.js"),__vite__mapDeps([19,6,7,8,2,9,1,13]))),iH=y.lazy(()=>Sn(()=>import("./index-CP_eCKQ7.js"),__vite__mapDeps([20,8,2,9,7,1,10,4]))),aH=y.lazy(()=>Sn(()=>import("./page-rE_KgHA-.js"),__vite__mapDeps([21,6,7,8,2,9,1,11,12,4]))),sH=y.lazy(()=>Sn(()=>import("./test-DkwSQtkh.js"),__vite__mapDeps([22,8,2,9,6,7,1,10,4]))),lH=(e=[])=>mI(vg(y.createElement(N,{element:y.createElement(oH,null)},y.createElement(N,{index:!0,element:y.createElement(iH,null)}),y.createElement(N,{path:"search"},y.createElement(N,{index:!0,element:y.createElement(_t,null)})),y.createElement(N,{path:"certify"},y.createElement(N,{index:!0,element:y.createElement(hl,{ct:"certification_overview"})}),y.createElement(N,{path:"*",element:y.createElement(Ot,null)})),y.createElement(N,{path:"train"},y.createElement(N,{index:!0,element:y.createElement(hl,{ct:"training_overview"})}),y.createElement(N,{path:"*",element:y.createElement(Ot,null)})),y.createElement(N,{path:"membership"},y.createElement(N,{index:!0,element:y.createElement(hl,{ct:"membership_overview"})}),y.createElement(N,{path:"*",element:y.createElement(Ot,null)})),y.createElement(N,{path:"community"},y.createElement(N,{index:!0,element:y.createElement(hl,{ct:"community_overview"})}),y.createElement(N,{path:"find-your-chapter"},y.createElement(N,{index:!0,element:y.createElement(Ot,null)}),y.createElement(N,{path:"*",element:y.createElement(Ot,null)})),y.createElement(N,{path:"sections"},y.createElement(N,{index:!0,element:y.createElement(Ot,null)}),y.createElement(N,{path:"*",element:y.createElement(Ot,null)})),y.createElement(N,{path:"*",element:y.createElement(Ot,null)})),y.createElement(N,{path:"conferences"},y.createElement(N,{index:!0,element:y.createElement(am,{ct:"conferences_overview"})}),y.createElement(N,{path:"*",element:y.createElement(Ot,null)}),y.createElement(N,{path:"*",element:y.createElement(am,{ct:"conference_microsite"})})),y.createElement(N,{path:"news",errorElement:y.createElement(ln,null)},y.createElement(N,{index:!0,element:y.createElement(_t,{ct:"news_overview"})}),y.createElement(N,{path:"a"},y.createElement(N,{path:"*",element:y.createElement(bS,{contentType:rS.newsArticle})})),y.createElement(N,{path:"b"},y.createElement(N,{path:"*",element:y.createElement(bS,{contentType:rS.newsBlurb})})),y.createElement(N,{path:"daily-dashboard"},y.createElement(N,{index:!0,element:y.createElement(_t,{ct:"news_overview"})}),y.createElement(N,{path:"*",element:y.createElement(ln,null)})),y.createElement(N,{path:"europe-data-protection-digest"},y.createElement(N,{index:!0,element:y.createElement(_t,{ct:"news_overview"})}),y.createElement(N,{path:"*",element:y.createElement(ln,null)})),y.createElement(N,{path:"united-states-dashboard-digest"},y.createElement(N,{index:!0,element:y.createElement(_t,{ct:"news_overview"})}),y.createElement(N,{path:"*",element:y.createElement(ln,null)})),y.createElement(N,{path:"asia-pacific-dashboard-digest"},y.createElement(N,{index:!0,element:y.createElement(_t,{ct:"news_overview"})}),y.createElement(N,{path:"*",element:y.createElement(ln,null)})),y.createElement(N,{path:"canada-dashboard-digest"},y.createElement(N,{index:!0,element:y.createElement(_t,{ct:"news_overview"})}),y.createElement(N,{path:"*",element:y.createElement(ln,null)})),y.createElement(N,{path:"dpo-confessional"},y.createElement(N,{index:!0,element:y.createElement(_t,{ct:"news_overview"})}),y.createElement(N,{path:"*",element:y.createElement(ln,null)})),y.createElement(N,{path:"privacy-tracker"},y.createElement(N,{index:!0,element:y.createElement(_t,{ct:"news_overview"})}),y.createElement(N,{path:"*",element:y.createElement(ln,null)})),y.createElement(N,{path:"privacy-advisor"},y.createElement(N,{index:!0,element:y.createElement(_t,{ct:"news_overview"})}),y.createElement(N,{path:"*",element:y.createElement(ln,null)})),y.createElement(N,{path:"privacy-perspectives"},y.createElement(N,{index:!0,element:y.createElement(_t,{ct:"news_overview"})}),y.createElement(N,{path:"*",element:y.createElement(ln,null)})),y.createElement(N,{path:"privacy-tech"},y.createElement(N,{index:!0,element:y.createElement(_t,{ct:"news_overview"})}),y.createElement(N,{path:"*",element:y.createElement(ln,null)})),y.createElement(N,{path:"*",element:y.createElement(Ot,null)})),y.createElement(N,{path:"resources"},y.createElement(N,{index:!0,element:y.createElement(_t,{ct:"resources_overview"})}),y.createElement(N,{path:"tools-and-trackers"},y.createElement(N,{index:!0,element:y.createElement(qc,{ct:"tools_and_trackers_listing_page"})}),y.createElement(N,{path:"*",element:y.createElement(_t,{parent:"tools-and-trackers",ct:"tools_and_trackers_page"})})),y.createElement(N,{path:"web-conferences"},y.createElement(N,{index:!0,element:y.createElement(qc,{ct:"web_conferences_listing_page"})}),y.createElement(N,{path:"*",element:y.createElement(_t,{parent:"web-conferences",ct:"web_conferences_page"})})),y.createElement(N,{path:"subjects"},y.createElement(N,{index:!0,element:y.createElement(qc,{ct:"subjects_listing_page"})}),y.createElement(N,{path:"*",element:y.createElement(_t,{ct:"subject_page",parent:"subjects"})})),y.createElement(N,{path:"legislation"},y.createElement(N,{index:!0,element:y.createElement(qc,{ct:"legislation_listing_page"})}),y.createElement(N,{path:"*",element:y.createElement(_t,{ct:"legislation_page",parent:"legislation"})})),y.createElement(N,{path:"*",element:y.createElement(Ot,null)})),y.createElement(N,{path:"enterprise-services"},y.createElement(N,{index:!0,element:y.createElement(hl,{ct:"enterprise_overview"})}),y.createElement(N,{path:"*",element:y.createElement(Ot,null)})),y.createElement(N,{path:"about"},y.createElement(N,{index:!0,element:y.createElement(am,{ct:"about_overview"})}),y.createElement(N,{path:"media"},y.createElement(N,{path:"*",element:y.createElement(Ot,null)})),y.createElement(N,{path:"*",element:y.createElement(Ot,null)})),y.createElement(N,{path:"search"},y.createElement(N,{index:!0,element:y.createElement(_t,null)})),y.createElement(N,{path:"c"},y.createElement(N,{path:"*",element:y.createElement(Ot,null)})),y.createElement(N,{path:"l"},y.createElement(N,{path:"*",element:y.createElement(Ot,null)})),y.createElement(N,{path:"lang"},y.createElement(N,{path:"*",element:y.createElement(Ot,null)})),y.createElement(N,{path:"test"},y.createElement(N,{index:!0,element:y.createElement(sH,null)}),y.createElement(N,{path:"*",element:y.createElement(im,null)})),e.map((t,r)=>y.createElement(N,{key:r,path:t.url},y.createElement(N,{index:!0,element:y.createElement(aH,{info:t})}),y.createElement(N,{path:"*",element:y.createElement(im,null)}))),y.createElement(N,{path:"*",element:y.createElement(im,null)})))),uH=()=>{w.useEffect(()=>{const t="a671a8a5-9945-4cf9-81cb-ed0db003921f",r=document.createElement("script");r.type="text/javascript",r.src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",r.setAttribute("data-domain-script",t);const n=document.head;n.children.length>0?n.insertBefore(r,n.children[1]||null):n.appendChild(r);const o=document.createElement("script");return o.type="text/javascript",o.textContent="function OptanonWrapper() { window.dataLayer.push({ event: 'OneTrustGroupsUpdated' }); }",r.parentNode.insertBefore(o,r.nextSibling),()=>{document.head.removeChild(r)}},[])};function cH(){var i,a,s,l,u,c,d,f,h,v,g;const{l:e}=w0(),[t,r]=w.useState(),n=$r();w.useEffect(()=>{o(e)},[e]);async function o(x){const p=await nc.getAllEntriesWithRef("main_footer","social_media",x);r(p[0])}return y.createElement(ge,null,t?y.createElement(ly,{maxW:"8xl",justify:{base:"center",md:"space-between"},align:{base:"center",md:"center"},borderBottom:`1px solid ${n.colors.Black}`,flexWrap:"wrap",spacing:4},y.createElement(ge,{padding:"5px",justifyContent:"start"},y.createElement(qe,{href:"/"},y.createElement(Eh,{alignSelf:"start",height:10,width:20,src:(i=t.logo)==null?void 0:i.url,alt:t.logo_alt_text}))),y.createElement(ZT,null),y.createElement(ge,{as:wf,py:4,direction:{base:"column",md:"row"},spacing:6,justify:{base:"center",md:"space-between"},align:{base:"center",md:"start"}},y.createElement(ge,{as:ce,alignContent:"flex-start",flexFlow:"column wrap",textAlign:"start",gap:5,maxW:{base:"100%",md:"38%"},pl:{base:"0",md:"5px"},pr:{base:"0",md:"5px"}},y.createElement(ce,{alignContent:"flex-start",flexFlow:"column wrap",textAlign:"start",gap:5},y.createElement(Ig,{fontSize:{lg:"24px",md:"16px",sm:"24px"},fontWeight:"700"},(a=t.about_section)==null?void 0:a.title),y.createElement(dr,{fontSize:{lg:"16px",base:"14px"},fontWeight:"400",lineHeight:{lg:"22px",md:"25px",base:"21px"},color:n.colors.White,opacity:"0.8"},(s=t.about_section)==null?void 0:s.about_description_multi)),y.createElement(ce,{alignContent:"flex-start",alignItems:"start",justify:{base:"space-between",md:"space-between"},align:{base:"start",md:"start"}},(u=(l=t.social_media[0])==null?void 0:l.social_link)==null?void 0:u.map((x,p)=>{var m;return y.createElement(ge,{as:"button",key:p,m:"2",w:10,h:10,border:"grey solid 2px",borderRadius:"50%",alignItems:"center",justifyContent:"center","aria-label":"Button to social media"},y.createElement(qe,{target:"_blank",href:(m=x.link)==null?void 0:m.href,"aria-label":`Follow us on ${x.fa_icon}`},y.createElement(ge,{className:`fa-brands fa-${x.fa_icon.toLowerCase()} fa-lg`,color:n.colors.White})))})),y.createElement(ge,null,y.createElement(sy,{templateColumns:"repeat(2, 1fr)",justifyItems:"start"},(d=(c=t.about_links)==null?void 0:c.about_link)==null?void 0:d.map((x,p)=>y.createElement(ge,{key:p,paddingTop:"10px",paddingBottom:"10px"},y.createElement(qe,{fontSize:"sm",style:{textDecoration:"underline"},href:x.href},x.title)))))),y.createElement(ge,{as:ce,alignContent:"flex-start",flexFlow:"column wrap",textAlign:"start",gap:5,maxW:{base:"100%",md:"38%"}},y.createElement(Ig,{justifyContent:"left",fontSize:{lg:"24px",md:"16px",sm:"24px"},fontWeight:"700",spacing:4},(f=t.become_a_member_section)==null?void 0:f.title),y.createElement(dr,{fontSize:{lg:"16px",base:"14px"},fontWeight:"400",lineHeight:{lg:"22px",md:"25px",base:"21px"},color:"#FFFFFF",opacity:"0.8"},(h=t.become_a_member_section)==null?void 0:h.bam_description),y.createElement(ge,{alignSelf:{base:"center",md:"start"},as:"button",textColor:"White",border:"2px",borderRadius:"25px",borderColor:"White",paddingY:"8px",paddingX:"24px",minW:{base:"100%",md:"20%"}},y.createElement(qe,{fontWeight:"600",fontSize:"16px",lineHeight:"20px",href:(v=t.become_a_member_section)==null?void 0:v.url_path},(g=t.become_a_member_section)==null?void 0:g.button_title))))):"")}function dH(){var i,a,s,l;const{l:e}=w0(),[t,r]=w.useState(),n=$r();w.useEffect(()=>{o(e)},[e]);async function o(u){const c=await nc.getAllEntries("utility_footer",u);r(c[0])}return y.createElement(ge,null,t?y.createElement(ly,{as:wf,maxW:"8xl",py:4,direction:{base:"column-reverse",md:"row"},spacing:4,justifyContent:"space-between"},y.createElement(wf,{maxW:{base:"100%",md:"45%"},spacing:6,textAlign:{md:"start",base:"center"}},y.createElement(dr,{fontSize:{lg:"16px",base:"14px"},fontWeight:"400",lineHeight:{lg:"22px",md:"25px",base:"21px"},color:"#FFFFFF",opacity:"0.8"},(i=t.legal_terms_section)==null?void 0:i.copyright_text),y.createElement(dr,{fontSize:{lg:"16px",base:"14px"},fontWeight:"400",lineHeight:{lg:"22px",md:"25px",base:"21px"},color:n.colors.White,opacity:"0.8"},(a=t.legal_terms_section)==null?void 0:a.address_text)),y.createElement(sy,{maxW:{base:"100%",md:"45%"},align:{base:"start",md:"center"},templateColumns:{base:"repeat(2, 1fr)",md:"1fr 1fr 1fr 1fr"},gap:6,textAlign:{base:"start",md:"start"}},(l=(s=t.legal_links_section)==null?void 0:s.legal_link)==null?void 0:l.map((u,c)=>y.createElement(ge,{key:c},y.createElement(qe,{fontSize:{lg:"16px",md:"12px",sm:"14px"},fontWeight:{md:"400",sm:"400"},style:{textDecoration:"underline"},href:u.href},u.title))),y.createElement("div",{fontSize:{lg:"16px",md:"12px",sm:"14px"},fontWeight:{md:"400",sm:"400"},style:{textDecoration:"underline",cursor:"pointer"},className:"ot-sdk-show-settings"},"Manage Cookies"))):"")}function fH(){const e=$r();return y.createElement(y.Fragment,null,y.createElement(ye.footer,{bgColor:e.colors.Black,textColor:e.colors.White,paddingTop:2},y.createElement(cH,null),y.createElement(dH,null)),y.createElement(i_,null))}const hH=y.memo(fH),pH=e=>{const t=window.location;return w.useEffect(()=>{t.hash||window.scrollTo(0,0)},[t]),y.createElement(y.Fragment,null,e.children)},mH=()=>(w.useEffect(()=>{const e=document.createComment("Google Tag Manager (noscript)"),t=document.createComment("End Google Tag Manager (noscript)"),r="GTM-M79VV6",n=document.createElement("noscript"),o=document.createElement("iframe");o.src=`https://www.googletagmanager.com/ns.html?id=${r}`,o.height="0",o.width="0",o.style.display="none",o.style.visibility="hidden",n.appendChild(o),document.body.insertBefore(t,document.body.firstChild),document.body.insertBefore(n,document.body.firstChild),document.body.insertBefore(e,document.body.firstChild)},[]),null),gH=()=>(w.useEffect(()=>{(function(t,r,n,o,i){t[o]=t[o]||[],t[o].push({"gtm.start":new Date().getTime(),event:"gtm.js"});var a=r.createElement(n),s="";a.async=!0,a.src="https://www.googletagmanager.com/gtm.js?id="+i+s;var l=r.head.firstChild;r.head.insertBefore(a,l)})(window,document,"script","dataLayer","GTM-M79VV6")},[]),null);function vH({minH:e="100vh"}){return y.createElement(ce,{minH:e},y.createElement(Sh,{m:"auto",size:"xl",speed:"1s"}))}const yH=()=>y.createElement(Uu,{styles:`
      /* latin */
      @font-face {
        font-family: 'Lato';
        font-style: normal;
        font-weight: 400;
        font-display: swap;
        src: url('./assets/font/Lato/Lato-Regular.ttf');
        unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
      }
      /* latin */
      @font-face {
        font-family: 'Open Sans';
        font-style: normal;
        font-weight: 400;
        font-display: swap;
        src: url('./assets/font/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf') ;
        unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
      }
      `}),bH={baseStyle:{fontSize:"20px"},sizes:{small:{fontSize:".75rem",fontWeight:"700",fontVariantLigatures:"no-common-ligatures",px:"12px",py:"8px",minW:"133px",gap:"4px"},medium:{fontSize:"1rem",fontWeight:"700",fontVariantLigatures:"no-common-ligatures",px:"16px",py:"12px",minW:"188px",gap:"4px"},large:{fontSize:"1.25rem",fontWeight:"700",fontVariantLigatures:"no-common-ligatures",p:"16px",minW:"231px",gap:"8px"}},variants:{primarygreen:{color:"White",borderRadius:"32px",bg:"Green130",boxShadow:"0px 2px 2px 0px rgba(72, 132, 59, 0.25)",_hover:{bg:"Green150",boxShadow:"2px 4px 4px 0px rgba(37, 57, 26, 0.25)",textDecoration:"none"}},primaryblue:{color:"White",borderRadius:"32px",bg:"Blue130",boxShadow:"0px 2px 2px 0px rgba(22, 88, 165, 0.25)",_hover:{bg:"Blue150",boxShadow:"2px 4px 4px 0px rgba(76, 77, 79, 0.25)",textDecoration:"none"}},primaryblack:{color:"White",borderRadius:"32px",bg:"Black",boxShadow:"0px 2px 2px 0px rgba(30, 30, 30, 0.25)",_hover:{bg:"Grey130",boxShadow:"2px 4px 4px 0px rgba(76, 77, 79, 0.25)",textDecoration:"none"}},secondarygreen:{color:"Green130",border:"2px solid #48843B",borderRadius:"32px",bg:"White",boxShadow:"0px 2px 2px 0px rgba(72, 132, 59, 0.25)",_hover:{color:"Black",bg:"Green10",boxShadow:"2px 4px 4px 0px rgba(37, 57, 26, 0.25)",textDecoration:"none"}},secondaryblue:{color:"Blue130",border:"2px solid #1658A5",borderRadius:"32px",bg:"White",boxShadow:"0px 2px 2px 0px rgba(22, 87, 136, 0.25)",_hover:{color:"Black",bg:"Blue10",boxShadow:"2px 4px 4px 0px rgba(30, 30, 30, 0.25)",textDecoration:"none"}},secondaryblack:{color:"Black",border:"2px solid #1E1E1E",borderRadius:"32px",bg:"White",boxShadow:"0px 2px 2px 0px rgba(22, 87, 136, 0.25)",_hover:{color:"Black",bg:"Grey10",boxShadow:"2px 4px 4px 0px rgba(30, 30, 30, 0.25)",textDecoration:"none"}},tertiarygreen:{color:"Green130",borderRadius:"4px",bg:"White",textDecoration:"underline",_hover:{color:"Black",bg:"Green30"}},tertiaryblue:{color:"Blue130",borderRadius:"4px",bg:"White",textDecoration:"underline",_hover:{color:"Black",bg:"Blue30"}}}},xH=N3({fonts:{heading:"'Lato', sans-serif",body:"'Open Sans',  sans-serif"},colors:{Green190:"#11170D",Green170:"#25391A",Green150:"#38602D",Green130:"#48843B",Green100:"#71BF4B",Green70:"#99CC69",Green50:"#B6D994",Green30:"#D3E8BE",Green10:"#F1F7EA",Blue190:"#080C1E",Blue170:"#12284B",Blue150:"#2A3D97",Blue130:"#1658A5",Blue100:"#0078B7",Blue70:"#05B4D7",Blue50:"#97D8E9",Blue30:"#CCEBF3",Blue10:"#E6F8FB",Purple190:"#200515",Purple170:"#31081F",Purple150:"#510D34",Purple130:"#7D194D",Purple100:"#9C1F60",Purple70:"#BA6290",Purple50:"#CE9EB3",Purple30:"#E3CAD4",Purple10:"#F5E9EF",Red190:"#2D0608",Red170:"#5B0C0F",Red150:"#881317",Red130:"#B6191E",Red100:"#E31F26",Red70:"#EC5571",Red50:"#EF90A2",Red30:"#EDCBD2",Red10:"#FCE9E9",Orange190:"#300D07",Orange170:"#601A0E",Orange150:"#8F2615",Orange130:"#BF331C",Orange100:"#EF4023",Orange70:"#F16027",Orange50:"#F58345",Orange30:"#FBBD97",Orange10:"#FDECE9",Yellow190:"#493707",Yellow170:"#926D0F",Yellow150:"#C39214",Yellow130:"#F4B619",Yellow100:"#F9D507",Yellow70:"#FADB51",Yellow50:"#FCE381",Yellow30:"#FCEAA9",Yellow10:"#FEFBE6",Grey190:"#231F20",Grey170:"#262728",Grey150:"#4C4D4F",Grey130:"#707172",Grey100:"#949495",Grey70:"#B7B8B9",Grey50:"#DBDBDC",Grey30:"#EDEDED",Grey10:"#F4F4F4",Black:"#1E1E1E",DarkBlack:"#000000",BlackOpaque:"#00000080",BlackText:"#1E1E1E",ContrastGreen:"#38761E",DarkBlue:"#165788",BlueGreen:"#51A1AA",BlueOpaque:"#1B5F8E80",DarkGreen:"#006955",DarkGreenOpaque:"#00695580",GreenText:"#20390C",GreenStroke:"#69BE28",GreenLink:"#4A851C",Grey1:"#626262",Grey2:"#8F8F8F",Grey3:"#BCBCBC",Grey4:"#E9E9E9",Grey5:"#F4F4F4",IAPPGreen:"#73BE53",LightGreen:"#D2ECBF",MedGreen:"#4A851C",PinkRaspberry:"#8C0A39",PrimaryGreen:"#5E9C44",PrimaryGreenOpaque:"#5E9C4480",Purple:"#5C1D78",Raspberry:"#A51140",ValidGreen:"#355F14",White:"#FFFFFF",WhiteOpaque:"#FFFFFF80",DarkGreentoPrimaryGreen:"linear(to-br,#00695590, #6DB65090 )",GradientWhite:"linear(to-r, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.33), rgba(255, 255, 255, 0))",GradientGreen:"linear(to-r, rgba(94, 156, 68, 0), rgba(94, 156, 68, 0.33), rgba(94, 156, 68, 0))"},breakpoints:{sm:"320px",md:"750px",lg:"960px",xl:"1200px","2xl":"1536px"},styles:{global:{a:{color:"Green130",fontWeight:"700",_hover:{textDecoration:"underline"}},body:{fontSize:"1rem",color:"BlackText"},h1:{color:"BlackText",fontSize:"2.5rem",fontFamily:"Lato",fontWeight:"900",lineHeight:"1.2",fontVariantLigatures:"no-common-ligatures"},h2:{color:"BlackText",fontFamily:"Lato",fontStyle:"normal",fontWeight:"700",fontSize:"2.25rem",lineHeight:"1.2",fontVariantLigatures:"no-common-ligatures"},h3:{color:"BlackText",fontFamily:"Lato",fontStyle:"normal",fontWeight:"700",fontSize:"2rem",lineHeight:"1.2",fontVariantLigatures:"no-common-ligatures"},h4:{color:"BlackText",fontFamily:"Lato",fontStyle:"normal",fontWeight:"700",fontSize:"1.5rem",lineHeight:"1.2",fontVariantLigatures:"no-common-ligatures"},h5:{color:"BlackText",fontFamily:"Lato",fontStyle:"normal",fontWeight:"700",fontSize:"1.25rem",lineHeight:"1.2",fontVariantLigatures:"no-common-ligatures"},h6:{color:"BlackText",fontFamily:"Lato",fontStyle:"normal",fontWeight:"700",fontSize:"1rem",lineHeight:"1.2",fontVariantLigatures:"no-common-ligatures"},blockquote:{display:"block",fontFamily:"Open Sans",fontWeight:"400",fontVariantLigatures:"no-common-ligatures",position:"relative",padding:"0.08em 0em 0.08em .8em",marginLeft:"1.5em"},Heading:{h1:{fontSize:"40px",fontFamily:"Lato",fontWeight:"800",lineHeight:"45px",fontVariantLigatures:"no-common-ligatures"},fontFamily:"Lato",fontStyle:"normal",fontWeight:"700",fontSize:"36px",lineHeight:" 36px",fontVariantLigatures:"no-common-ligatures"},Img:{loading:"lazy"},Image:{loading:"lazy"},th:{border:"lightgray solid 1px",px:".5rem"},td:{border:"lightgray solid 1px",px:".5rem"}}},components:{Button:bH,Input:{defaultProps:{},baseStyle:{field:{}},variants:{outline:{field:{border:"2px solid",borderColor:"#8F8F8F",_hover:{borderColor:"#1E1E1E"},_focus:{boxShadow:"none"},borderRadius:"4px","::placeholder":{color:"#8F8F8F"}}}}},Select:{defaultProps:{focusBorderColor:"#1E1E1E",errorBorderColor:"#A51140"},variants:{outline:{field:{border:"2px solid",borderColor:"#8F8F8F",_hover:{borderColor:"#1E1E1E"},_focus:{boxShadow:"none"},borderRadius:"4px"}}}}}});function wH(){const[e,t]=w.useState([]);uH();async function r(){const n=await nc.getAllEntries("page");t(n)}return w.useEffect(()=>{r()},[]),y.createElement(y.Fragment,null,y.createElement(FC,{color:"white",position:"absolute",style:{padding:".5rem 1rem",border:"solid white 2px",borderRadius:"20px",margin:".5rem",color:"black"}},"Skip to Content"),y.createElement(V8,{theme:xH},y.createElement(yH,null),y.createElement("div",{className:"App"},y.createElement(gH,null),y.createElement(mH,null),y.createElement(pH,null,y.createElement(y.Suspense,{fallback:y.createElement(vH,null)},y.createElement(kI,{router:lH(e)}))),y.createElement(hH,null))))}const SH=new V4({defaultOptions:{queries:{staleTime:1e3*60*30,refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1}}});Ik(document.getElementById("root")).render(y.createElement(w.StrictMode,null,y.createElement(U4,{client:SH},y.createElement(wH,null),y.createElement(G4,{initialIsOpen:!1}))));export{J3 as $,nc as A,ge as B,ye as C,gP as D,tH as E,ce as F,w0 as G,Ig as H,Eh as I,qW as J,Ye as K,qe as L,mP as M,Lg as N,jg as O,WB as P,Sh as Q,y as R,x4 as S,dr as T,ly as U,wf as V,HT as W,pc as X,Pf as Y,uH as Z,KW as _,OH as a,ko as a0,J8 as a1,ku as a2,ui as a3,wn as a4,S8 as a5,v8 as a6,MC as a7,xn as a8,ks as a9,_H as aA,k7 as aB,t9 as aC,qU as aD,GU as aE,i7 as aF,wr as aG,PH as aH,HP as aI,Pd as aJ,KT as aK,CH as aL,An as aM,v7 as aN,kH as aO,Nu as aP,sm as aQ,MA as aR,Fe as aS,Cu as aa,zD as ab,ef as ac,QT as ad,d7 as ae,RH as af,r7 as ag,n4 as ah,sy as ai,m7 as aj,XD as ak,Ns as al,p7 as am,y7 as an,zH as ao,h9 as ap,XU as aq,NH as ar,Ch as as,IH as at,jH as au,BH as av,mh as aw,R6 as ax,TH as ay,ie as az,$r as b,is as c,rS as d,VH as e,ch as f,k4 as g,j1 as h,dh as i,S4 as j,BC as k,F4 as l,_4 as m,dn as n,Xt as o,D4 as p,DH as q,w as r,AH as s,E4 as t,ph as u,WW as v,oo as w,Sf as x,vH as y,z};