mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-03 18:22:57 +00:00
432 lines
650 KiB
JavaScript
432 lines
650 KiB
JavaScript
function NR(e,t){for(var n=0;n<t.length;n++){const o=t[n];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in e)){const a=Object.getOwnPropertyDescriptor(o,s);a&&Object.defineProperty(e,s,a.get?a:{enumerable:!0,get:()=>o[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const u of a.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(s){if(s.ep)return;s.ep=!0;const a=n(s);fetch(s.href,a)}})();function Hu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fp={exports:{}},Bl={},Lp={exports:{}},He={},rS;function DR(){if(rS)return He;rS=1;/**
|
||
* @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 e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.iterator;function v(j){return j===null||typeof j!="object"?null:(j=g&&j[g]||j["@@iterator"],typeof j=="function"?j:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,S={};function w(j,q,Y){this.props=j,this.context=q,this.refs=S,this.updater=Y||k}w.prototype.isReactComponent={},w.prototype.setState=function(j,q){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,q,"setState")},w.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function T(){}T.prototype=w.prototype;function A(j,q,Y){this.props=j,this.context=q,this.refs=S,this.updater=Y||k}var _=A.prototype=new T;_.constructor=A,x(_,w.prototype),_.isPureReactComponent=!0;var N=Array.isArray,R=Object.prototype.hasOwnProperty,F={current:null},D={key:!0,ref:!0,__self:!0,__source:!0};function U(j,q,Y){var ae,le={},Se=null,ze=null;if(q!=null)for(ae in q.ref!==void 0&&(ze=q.ref),q.key!==void 0&&(Se=""+q.key),q)R.call(q,ae)&&!D.hasOwnProperty(ae)&&(le[ae]=q[ae]);var Pe=arguments.length-2;if(Pe===1)le.children=Y;else if(1<Pe){for(var Be=Array(Pe),we=0;we<Pe;we++)Be[we]=arguments[we+2];le.children=Be}if(j&&j.defaultProps)for(ae in Pe=j.defaultProps,Pe)le[ae]===void 0&&(le[ae]=Pe[ae]);return{$$typeof:e,type:j,key:Se,ref:ze,props:le,_owner:F.current}}function X(j,q){return{$$typeof:e,type:j.type,key:q,ref:j.ref,props:j.props,_owner:j._owner}}function ne(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function ee(j){var q={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(Y){return q[Y]})}var Ee=/\/+/g;function Te(j,q){return typeof j=="object"&&j!==null&&j.key!=null?ee(""+j.key):q.toString(36)}function xe(j,q,Y,ae,le){var Se=typeof j;(Se==="undefined"||Se==="boolean")&&(j=null);var ze=!1;if(j===null)ze=!0;else switch(Se){case"string":case"number":ze=!0;break;case"object":switch(j.$$typeof){case e:case t:ze=!0}}if(ze)return ze=j,le=le(ze),j=ae===""?"."+Te(ze,0):ae,N(le)?(Y="",j!=null&&(Y=j.replace(Ee,"$&/")+"/"),xe(le,q,Y,"",function(we){return we})):le!=null&&(ne(le)&&(le=X(le,Y+(!le.key||ze&&ze.key===le.key?"":(""+le.key).replace(Ee,"$&/")+"/")+j)),q.push(le)),1;if(ze=0,ae=ae===""?".":ae+":",N(j))for(var Pe=0;Pe<j.length;Pe++){Se=j[Pe];var Be=ae+Te(Se,Pe);ze+=xe(Se,q,Y,Be,le)}else if(Be=v(j),typeof Be=="function")for(j=Be.call(j),Pe=0;!(Se=j.next()).done;)Se=Se.value,Be=ae+Te(Se,Pe++),ze+=xe(Se,q,Y,Be,le);else if(Se==="object")throw q=String(j),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.");return ze}function ke(j,q,Y){if(j==null)return j;var ae=[],le=0;return xe(j,ae,"","",function(Se){return q.call(Y,Se,le++)}),ae}function _e(j){if(j._status===-1){var q=j._result;q=q(),q.then(function(Y){(j._status===0||j._status===-1)&&(j._status=1,j._result=Y)},function(Y){(j._status===0||j._status===-1)&&(j._status=2,j._result=Y)}),j._status===-1&&(j._status=0,j._result=q)}if(j._status===1)return j._result.default;throw j._result}var ue={current:null},B={transition:null},se={ReactCurrentDispatcher:ue,ReactCurrentBatchConfig:B,ReactCurrentOwner:F};function Q(){throw Error("act(...) is not supported in production builds of React.")}return He.Children={map:ke,forEach:function(j,q,Y){ke(j,function(){q.apply(this,arguments)},Y)},count:function(j){var q=0;return ke(j,function(){q++}),q},toArray:function(j){return ke(j,function(q){return q})||[]},only:function(j){if(!ne(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},He.Component=w,He.Fragment=n,He.Profiler=s,He.PureComponent=A,He.StrictMode=o,He.Suspense=f,He.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=se,He.act=Q,He.cloneElement=function(j,q,Y){if(j==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+j+".");var ae=x({},j.props),le=j.key,Se=j.ref,ze=j._owner;if(q!=null){if(q.ref!==void 0&&(Se=q.ref,ze=F.current),q.key!==void 0&&(le=""+q.key),j.type&&j.type.defaultProps)var Pe=j.type.defaultProps;for(Be in q)R.call(q,Be)&&!D.hasOwnProperty(Be)&&(ae[Be]=q[Be]===void 0&&Pe!==void 0?Pe[Be]:q[Be])}var Be=arguments.length-2;if(Be===1)ae.children=Y;else if(1<Be){Pe=Array(Be);for(var we=0;we<Be;we++)Pe[we]=arguments[we+2];ae.children=Pe}return{$$typeof:e,type:j.type,key:le,ref:Se,props:ae,_owner:ze}},He.createContext=function(j){return j={$$typeof:u,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},j.Provider={$$typeof:a,_context:j},j.Consumer=j},He.createElement=U,He.createFactory=function(j){var q=U.bind(null,j);return q.type=j,q},He.createRef=function(){return{current:null}},He.forwardRef=function(j){return{$$typeof:c,render:j}},He.isValidElement=ne,He.lazy=function(j){return{$$typeof:h,_payload:{_status:-1,_result:j},_init:_e}},He.memo=function(j,q){return{$$typeof:p,type:j,compare:q===void 0?null:q}},He.startTransition=function(j){var q=B.transition;B.transition={};try{j()}finally{B.transition=q}},He.unstable_act=Q,He.useCallback=function(j,q){return ue.current.useCallback(j,q)},He.useContext=function(j){return ue.current.useContext(j)},He.useDebugValue=function(){},He.useDeferredValue=function(j){return ue.current.useDeferredValue(j)},He.useEffect=function(j,q){return ue.current.useEffect(j,q)},He.useId=function(){return ue.current.useId()},He.useImperativeHandle=function(j,q,Y){return ue.current.useImperativeHandle(j,q,Y)},He.useInsertionEffect=function(j,q){return ue.current.useInsertionEffect(j,q)},He.useLayoutEffect=function(j,q){return ue.current.useLayoutEffect(j,q)},He.useMemo=function(j,q){return ue.current.useMemo(j,q)},He.useReducer=function(j,q,Y){return ue.current.useReducer(j,q,Y)},He.useRef=function(j){return ue.current.useRef(j)},He.useState=function(j){return ue.current.useState(j)},He.useSyncExternalStore=function(j,q,Y){return ue.current.useSyncExternalStore(j,q,Y)},He.useTransition=function(){return ue.current.useTransition()},He.version="18.3.1",He}var oS;function Mf(){return oS||(oS=1,Lp.exports=DR()),Lp.exports}/**
|
||
* @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 iS;function FR(){if(iS)return Bl;iS=1;var e=Mf(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(c,f,p){var h,g={},v=null,k=null;p!==void 0&&(v=""+p),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(k=f.ref);for(h in f)o.call(f,h)&&!a.hasOwnProperty(h)&&(g[h]=f[h]);if(c&&c.defaultProps)for(h in f=c.defaultProps,f)g[h]===void 0&&(g[h]=f[h]);return{$$typeof:t,type:c,key:v,ref:k,props:g,_owner:s.current}}return Bl.Fragment=n,Bl.jsx=u,Bl.jsxs=u,Bl}var sS;function LR(){return sS||(sS=1,Fp.exports=FR()),Fp.exports}var b=LR(),C=Mf();const Le=Hu(C),Zm=NR({__proto__:null,default:Le},[C]);var hd={},zp={exports:{}},Yn={},$p={exports:{}},Bp={};/**
|
||
* @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.
|
||
*/var aS;function zR(){return aS||(aS=1,(function(e){function t(B,se){var Q=B.length;B.push(se);e:for(;0<Q;){var j=Q-1>>>1,q=B[j];if(0<s(q,se))B[j]=se,B[Q]=q,Q=j;else break e}}function n(B){return B.length===0?null:B[0]}function o(B){if(B.length===0)return null;var se=B[0],Q=B.pop();if(Q!==se){B[0]=Q;e:for(var j=0,q=B.length,Y=q>>>1;j<Y;){var ae=2*(j+1)-1,le=B[ae],Se=ae+1,ze=B[Se];if(0>s(le,Q))Se<q&&0>s(ze,le)?(B[j]=ze,B[Se]=Q,j=Se):(B[j]=le,B[ae]=Q,j=ae);else if(Se<q&&0>s(ze,Q))B[j]=ze,B[Se]=Q,j=Se;else break e}}return se}function s(B,se){var Q=B.sortIndex-se.sortIndex;return Q!==0?Q:B.id-se.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var u=Date,c=u.now();e.unstable_now=function(){return u.now()-c}}var f=[],p=[],h=1,g=null,v=3,k=!1,x=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,A=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){for(var se=n(p);se!==null;){if(se.callback===null)o(p);else if(se.startTime<=B)o(p),se.sortIndex=se.expirationTime,t(f,se);else break;se=n(p)}}function N(B){if(S=!1,_(B),!x)if(n(f)!==null)x=!0,_e(R);else{var se=n(p);se!==null&&ue(N,se.startTime-B)}}function R(B,se){x=!1,S&&(S=!1,T(U),U=-1),k=!0;var Q=v;try{for(_(se),g=n(f);g!==null&&(!(g.expirationTime>se)||B&&!ee());){var j=g.callback;if(typeof j=="function"){g.callback=null,v=g.priorityLevel;var q=j(g.expirationTime<=se);se=e.unstable_now(),typeof q=="function"?g.callback=q:g===n(f)&&o(f),_(se)}else o(f);g=n(f)}if(g!==null)var Y=!0;else{var ae=n(p);ae!==null&&ue(N,ae.startTime-se),Y=!1}return Y}finally{g=null,v=Q,k=!1}}var F=!1,D=null,U=-1,X=5,ne=-1;function ee(){return!(e.unstable_now()-ne<X)}function Ee(){if(D!==null){var B=e.unstable_now();ne=B;var se=!0;try{se=D(!0,B)}finally{se?Te():(F=!1,D=null)}}else F=!1}var Te;if(typeof A=="function")Te=function(){A(Ee)};else if(typeof MessageChannel<"u"){var xe=new MessageChannel,ke=xe.port2;xe.port1.onmessage=Ee,Te=function(){ke.postMessage(null)}}else Te=function(){w(Ee,0)};function _e(B){D=B,F||(F=!0,Te())}function ue(B,se){U=w(function(){B(e.unstable_now())},se)}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(B){B.callback=null},e.unstable_continueExecution=function(){x||k||(x=!0,_e(R))},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(B){switch(v){case 1:case 2:case 3:var se=3;break;default:se=v}var Q=v;v=se;try{return B()}finally{v=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,se){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var Q=v;v=B;try{return se()}finally{v=Q}},e.unstable_scheduleCallback=function(B,se,Q){var j=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?j+Q:j):Q=j,B){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=Q+q,B={id:h++,callback:se,priorityLevel:B,startTime:Q,expirationTime:q,sortIndex:-1},Q>j?(B.sortIndex=Q,t(p,B),n(f)===null&&B===n(p)&&(S?(T(U),U=-1):S=!0,ue(N,Q-j))):(B.sortIndex=q,t(f,B),x||k||(x=!0,_e(R))),B},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(B){var se=v;return function(){var Q=v;v=se;try{return B.apply(this,arguments)}finally{v=Q}}}})(Bp)),Bp}var lS;function $R(){return lS||(lS=1,$p.exports=zR()),$p.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 uS;function BR(){if(uS)return Yn;uS=1;var e=Mf(),t=$R();function n(r){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+r,l=1;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function a(r,i){u(r,i),u(r+"Capture",i)}function u(r,i){for(s[r]=i,r=0;r<i.length;r++)o.add(i[r])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,p=/^[: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]*$/,h={},g={};function v(r){return f.call(g,r)?!0:f.call(h,r)?!1:p.test(r)?g[r]=!0:(h[r]=!0,!1)}function k(r,i,l,d){if(l!==null&&l.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return d?!1:l!==null?!l.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function x(r,i,l,d){if(i===null||typeof i>"u"||k(r,i,l,d))return!0;if(d)return!1;if(l!==null)switch(l.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function S(r,i,l,d,m,y,E){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=d,this.attributeNamespace=m,this.mustUseProperty=l,this.propertyName=r,this.type=i,this.sanitizeURL=y,this.removeEmptyString=E}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){w[r]=new S(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var i=r[0];w[i]=new S(i,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){w[r]=new S(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){w[r]=new S(r,2,!1,r,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(r){w[r]=new S(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){w[r]=new S(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){w[r]=new S(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){w[r]=new S(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){w[r]=new S(r,5,!1,r.toLowerCase(),null,!1,!1)});var T=/[\-:]([a-z])/g;function A(r){return r[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(r){var i=r.replace(T,A);w[i]=new S(i,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var i=r.replace(T,A);w[i]=new S(i,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var i=r.replace(T,A);w[i]=new S(i,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){w[r]=new S(r,1,!1,r.toLowerCase(),null,!1,!1)}),w.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){w[r]=new S(r,1,!1,r.toLowerCase(),null,!0,!0)});function _(r,i,l,d){var m=w.hasOwnProperty(i)?w[i]:null;(m!==null?m.type!==0:d||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(x(i,l,m,d)&&(l=null),d||m===null?v(i)&&(l===null?r.removeAttribute(i):r.setAttribute(i,""+l)):m.mustUseProperty?r[m.propertyName]=l===null?m.type===3?!1:"":l:(i=m.attributeName,d=m.attributeNamespace,l===null?r.removeAttribute(i):(m=m.type,l=m===3||m===4&&l===!0?"":""+l,d?r.setAttributeNS(d,i,l):r.setAttribute(i,l))))}var N=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,R=Symbol.for("react.element"),F=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),ne=Symbol.for("react.provider"),ee=Symbol.for("react.context"),Ee=Symbol.for("react.forward_ref"),Te=Symbol.for("react.suspense"),xe=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),_e=Symbol.for("react.lazy"),ue=Symbol.for("react.offscreen"),B=Symbol.iterator;function se(r){return r===null||typeof r!="object"?null:(r=B&&r[B]||r["@@iterator"],typeof r=="function"?r:null)}var Q=Object.assign,j;function q(r){if(j===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);j=i&&i[1]||""}return`
|
||
`+j+r}var Y=!1;function ae(r,i){if(!r||Y)return"";Y=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(H){var d=H}Reflect.construct(r,[],i)}else{try{i.call()}catch(H){d=H}r.call(i.prototype)}else{try{throw Error()}catch(H){d=H}r()}}catch(H){if(H&&d&&typeof H.stack=="string"){for(var m=H.stack.split(`
|
||
`),y=d.stack.split(`
|
||
`),E=m.length-1,O=y.length-1;1<=E&&0<=O&&m[E]!==y[O];)O--;for(;1<=E&&0<=O;E--,O--)if(m[E]!==y[O]){if(E!==1||O!==1)do if(E--,O--,0>O||m[E]!==y[O]){var M=`
|
||
`+m[E].replace(" at new "," at ");return r.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",r.displayName)),M}while(1<=E&&0<=O);break}}}finally{Y=!1,Error.prepareStackTrace=l}return(r=r?r.displayName||r.name:"")?q(r):""}function le(r){switch(r.tag){case 5:return q(r.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return r=ae(r.type,!1),r;case 11:return r=ae(r.type.render,!1),r;case 1:return r=ae(r.type,!0),r;default:return""}}function Se(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case D:return"Fragment";case F:return"Portal";case X:return"Profiler";case U:return"StrictMode";case Te:return"Suspense";case xe:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case ee:return(r.displayName||"Context")+".Consumer";case ne:return(r._context.displayName||"Context")+".Provider";case Ee:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case ke:return i=r.displayName||null,i!==null?i:Se(r.type)||"Memo";case _e:i=r._payload,r=r._init;try{return Se(r(i))}catch{}}return null}function ze(r){var i=r.type;switch(r.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=i.render,r=r.displayName||r.name||"",i.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Se(i);case 8:return i===U?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Pe(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Be(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function we(r){var i=Be(r)?"checked":"value",l=Object.getOwnPropertyDescriptor(r.constructor.prototype,i),d=""+r[i];if(!r.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var m=l.get,y=l.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return m.call(this)},set:function(E){d=""+E,y.call(this,E)}}),Object.defineProperty(r,i,{enumerable:l.enumerable}),{getValue:function(){return d},setValue:function(E){d=""+E},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function ut(r){r._valueTracker||(r._valueTracker=we(r))}function Nt(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var l=i.getValue(),d="";return r&&(d=Be(r)?r.checked?"true":"false":r.value),r=d,r!==l?(i.setValue(r),!0):!1}function Dt(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function de(r,i){var l=i.checked;return Q({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??r._wrapperState.initialChecked})}function at(r,i){var l=i.defaultValue==null?"":i.defaultValue,d=i.checked!=null?i.checked:i.defaultChecked;l=Pe(i.value!=null?i.value:l),r._wrapperState={initialChecked:d,initialValue:l,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function Ye(r,i){i=i.checked,i!=null&&_(r,"checked",i,!1)}function St(r,i){Ye(r,i);var l=Pe(i.value),d=i.type;if(l!=null)d==="number"?(l===0&&r.value===""||r.value!=l)&&(r.value=""+l):r.value!==""+l&&(r.value=""+l);else if(d==="submit"||d==="reset"){r.removeAttribute("value");return}i.hasOwnProperty("value")?Lt(r,i.type,l):i.hasOwnProperty("defaultValue")&&Lt(r,i.type,Pe(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(r.defaultChecked=!!i.defaultChecked)}function Ft(r,i,l){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var d=i.type;if(!(d!=="submit"&&d!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+r._wrapperState.initialValue,l||i===r.value||(r.value=i),r.defaultValue=i}l=r.name,l!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,l!==""&&(r.name=l)}function Lt(r,i,l){(i!=="number"||Dt(r.ownerDocument)!==r)&&(l==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+l&&(r.defaultValue=""+l))}var zt=Array.isArray;function vn(r,i,l,d){if(r=r.options,i){i={};for(var m=0;m<l.length;m++)i["$"+l[m]]=!0;for(l=0;l<r.length;l++)m=i.hasOwnProperty("$"+r[l].value),r[l].selected!==m&&(r[l].selected=m),m&&d&&(r[l].defaultSelected=!0)}else{for(l=""+Pe(l),i=null,m=0;m<r.length;m++){if(r[m].value===l){r[m].selected=!0,d&&(r[m].defaultSelected=!0);return}i!==null||r[m].disabled||(i=r[m])}i!==null&&(i.selected=!0)}}function bn(r,i){if(i.dangerouslySetInnerHTML!=null)throw Error(n(91));return Q({},i,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function Sn(r,i){var l=i.value;if(l==null){if(l=i.children,i=i.defaultValue,l!=null){if(i!=null)throw Error(n(92));if(zt(l)){if(1<l.length)throw Error(n(93));l=l[0]}i=l}i==null&&(i=""),l=i}r._wrapperState={initialValue:Pe(l)}}function br(r,i){var l=Pe(i.value),d=Pe(i.defaultValue);l!=null&&(l=""+l,l!==r.value&&(r.value=l),i.defaultValue==null&&r.defaultValue!==l&&(r.defaultValue=l)),d!=null&&(r.defaultValue=""+d)}function ir(r){var i=r.textContent;i===r._wrapperState.initialValue&&i!==""&&i!==null&&(r.value=i)}function sr(r){switch(r){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 rn(r,i){return r==null||r==="http://www.w3.org/1999/xhtml"?sr(i):r==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var ie,Xe=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,l,d,m){MSApp.execUnsafeLocalFunction(function(){return r(i,l,d,m)})}:r})(function(r,i){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=i;else{for(ie=ie||document.createElement("div"),ie.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=ie.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;i.firstChild;)r.appendChild(i.firstChild)}});function gt(r,i){if(i){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=i;return}}r.textContent=i}var At={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},ar=["Webkit","ms","Moz","O"];Object.keys(At).forEach(function(r){ar.forEach(function(i){i=i+r.charAt(0).toUpperCase()+r.substring(1),At[i]=At[r]})});function Sr(r,i,l){return i==null||typeof i=="boolean"||i===""?"":l||typeof i!="number"||i===0||At.hasOwnProperty(r)&&At[r]?(""+i).trim():i+"px"}function Mo(r,i){r=r.style;for(var l in i)if(i.hasOwnProperty(l)){var d=l.indexOf("--")===0,m=Sr(l,i[l],d);l==="float"&&(l="cssFloat"),d?r.setProperty(l,m):r[l]=m}}var Qt=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function jn(r,i){if(i){if(Qt[r]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(n(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(n(61))}if(i.style!=null&&typeof i.style!="object")throw Error(n(62))}}function Io(r,i){if(r.indexOf("-")===-1)return typeof i.is=="string";switch(r){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 uo=null;function $i(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ur=null,un=null,co=null;function xn(r){if(r=Tl(r)){if(typeof Ur!="function")throw Error(n(280));var i=r.stateNode;i&&(i=Pc(i),Ur(r.stateNode,r.type,i))}}function Is(r){un?co?co.push(r):co=[r]:un=r}function Ns(){if(un){var r=un,i=co;if(co=un=null,xn(r),i)for(r=0;r<i.length;r++)xn(i[r])}}function xt(r,i){return r(i)}function Wr(){}var Bi=!1;function Mn(r,i,l){if(Bi)return r(i,l);Bi=!0;try{return xt(r,i,l)}finally{Bi=!1,(un!==null||co!==null)&&(Wr(),Ns())}}function Hr(r,i){var l=r.stateNode;if(l===null)return null;var d=Pc(l);if(d===null)return null;l=d[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(r=r.type,d=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!d;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(n(231,i,typeof l));return l}var ri=!1;if(c)try{var fo={};Object.defineProperty(fo,"passive",{get:function(){ri=!0}}),window.addEventListener("test",fo,fo),window.removeEventListener("test",fo,fo)}catch{ri=!1}function al(r,i,l,d,m,y,E,O,M){var H=Array.prototype.slice.call(arguments,3);try{i.apply(l,H)}catch(J){this.onError(J)}}var on=!1,Yt=null,No=!1,oi=null,Vi={onError:function(r){on=!0,Yt=r}};function Ds(r,i,l,d,m,y,E,O,M){on=!1,Yt=null,al.apply(Vi,arguments)}function lr(r,i,l,d,m,y,E,O,M){if(Ds.apply(this,arguments),on){if(on){var H=Yt;on=!1,Yt=null}else throw Error(n(198));No||(No=!0,oi=H)}}function cn(r){var i=r,l=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(l=i.return),r=i.return;while(r)}return i.tag===3?l:null}function Ui(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function Wi(r){if(cn(r)!==r)throw Error(n(188))}function Fs(r){var i=r.alternate;if(!i){if(i=cn(r),i===null)throw Error(n(188));return i!==r?null:r}for(var l=r,d=i;;){var m=l.return;if(m===null)break;var y=m.alternate;if(y===null){if(d=m.return,d!==null){l=d;continue}break}if(m.child===y.child){for(y=m.child;y;){if(y===l)return Wi(m),r;if(y===d)return Wi(m),i;y=y.sibling}throw Error(n(188))}if(l.return!==d.return)l=m,d=y;else{for(var E=!1,O=m.child;O;){if(O===l){E=!0,l=m,d=y;break}if(O===d){E=!0,d=m,l=y;break}O=O.sibling}if(!E){for(O=y.child;O;){if(O===l){E=!0,l=y,d=m;break}if(O===d){E=!0,d=y,l=m;break}O=O.sibling}if(!E)throw Error(n(189))}}if(l.alternate!==d)throw Error(n(190))}if(l.tag!==3)throw Error(n(188));return l.stateNode.current===l?r:i}function Ls(r){return r=Fs(r),r!==null?ve(r):null}function ve(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var i=ve(r);if(i!==null)return i;r=r.sibling}return null}var I=t.unstable_scheduleCallback,te=t.unstable_cancelCallback,pe=t.unstable_shouldYield,et=t.unstable_requestPaint,$e=t.unstable_now,wt=t.unstable_getCurrentPriorityLevel,Tt=t.unstable_ImmediatePriority,In=t.unstable_UserBlockingPriority,ur=t.unstable_NormalPriority,Hi=t.unstable_LowPriority,Ot=t.unstable_IdlePriority,ho=null,Nn=null;function ih(r){if(Nn&&typeof Nn.onCommitFiberRoot=="function")try{Nn.onCommitFiberRoot(ho,r,void 0,(r.current.flags&128)===128)}catch{}}var cr=Math.clz32?Math.clz32:lh,sh=Math.log,ah=Math.LN2;function lh(r){return r>>>=0,r===0?32:31-(sh(r)/ah|0)|0}var zs=64,$s=4194304;function qi(r){switch(r&-r){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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function Bs(r,i){var l=r.pendingLanes;if(l===0)return 0;var d=0,m=r.suspendedLanes,y=r.pingedLanes,E=l&268435455;if(E!==0){var O=E&~m;O!==0?d=qi(O):(y&=E,y!==0&&(d=qi(y)))}else E=l&~m,E!==0?d=qi(E):y!==0&&(d=qi(y));if(d===0)return 0;if(i!==0&&i!==d&&(i&m)===0&&(m=d&-d,y=i&-i,m>=y||m===16&&(y&4194240)!==0))return i;if((d&4)!==0&&(d|=l&16),i=r.entangledLanes,i!==0)for(r=r.entanglements,i&=d;0<i;)l=31-cr(i),m=1<<l,d|=r[l],i&=~m;return d}function Vs(r,i){switch(r){case 1:case 2:case 4:return i+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 i+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 ll(r,i){for(var l=r.suspendedLanes,d=r.pingedLanes,m=r.expirationTimes,y=r.pendingLanes;0<y;){var E=31-cr(y),O=1<<E,M=m[E];M===-1?((O&l)===0||(O&d)!==0)&&(m[E]=Vs(O,i)):M<=i&&(r.expiredLanes|=O),y&=~O}}function ul(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function pc(){var r=zs;return zs<<=1,(zs&4194240)===0&&(zs=64),r}function Us(r){for(var i=[],l=0;31>l;l++)i.push(r);return i}function Ki(r,i,l){r.pendingLanes|=i,i!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,i=31-cr(i),r[i]=l}function uh(r,i){var l=r.pendingLanes&~i;r.pendingLanes=i,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=i,r.mutableReadLanes&=i,r.entangledLanes&=i,i=r.entanglements;var d=r.eventTimes;for(r=r.expirationTimes;0<l;){var m=31-cr(l),y=1<<m;i[m]=0,d[m]=-1,r[m]=-1,l&=~y}}function cl(r,i){var l=r.entangledLanes|=i;for(r=r.entanglements;l;){var d=31-cr(l),m=1<<d;m&i|r[d]&i&&(r[d]|=i),l&=~m}}var Ze=0;function mc(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var gc,dl,Ws,yc,vc,fl=!1,Do=[],xr=null,wr=null,Cr=null,Gi=new Map,ii=new Map,kr=[],bc="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 po(r,i){switch(r){case"focusin":case"focusout":xr=null;break;case"dragenter":case"dragleave":wr=null;break;case"mouseover":case"mouseout":Cr=null;break;case"pointerover":case"pointerout":Gi.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":ii.delete(i.pointerId)}}function qr(r,i,l,d,m,y){return r===null||r.nativeEvent!==y?(r={blockedOn:i,domEventName:l,eventSystemFlags:d,nativeEvent:y,targetContainers:[m]},i!==null&&(i=Tl(i),i!==null&&dl(i)),r):(r.eventSystemFlags|=d,i=r.targetContainers,m!==null&&i.indexOf(m)===-1&&i.push(m),r)}function ch(r,i,l,d,m){switch(i){case"focusin":return xr=qr(xr,r,i,l,d,m),!0;case"dragenter":return wr=qr(wr,r,i,l,d,m),!0;case"mouseover":return Cr=qr(Cr,r,i,l,d,m),!0;case"pointerover":var y=m.pointerId;return Gi.set(y,qr(Gi.get(y)||null,r,i,l,d,m)),!0;case"gotpointercapture":return y=m.pointerId,ii.set(y,qr(ii.get(y)||null,r,i,l,d,m)),!0}return!1}function hl(r){var i=Yi(r.target);if(i!==null){var l=cn(i);if(l!==null){if(i=l.tag,i===13){if(i=Ui(l),i!==null){r.blockedOn=i,vc(r.priority,function(){Ws(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Hs(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var l=tt(r.domEventName,r.eventSystemFlags,i[0],r.nativeEvent);if(l===null){l=r.nativeEvent;var d=new l.constructor(l.type,l);uo=d,l.target.dispatchEvent(d),uo=null}else return i=Tl(l),i!==null&&dl(i),r.blockedOn=l,!1;i.shift()}return!0}function pl(r,i,l){Hs(r)&&l.delete(i)}function dh(){fl=!1,xr!==null&&Hs(xr)&&(xr=null),wr!==null&&Hs(wr)&&(wr=null),Cr!==null&&Hs(Cr)&&(Cr=null),Gi.forEach(pl),ii.forEach(pl)}function Qi(r,i){r.blockedOn===i&&(r.blockedOn=null,fl||(fl=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,dh)))}function si(r){function i(m){return Qi(m,r)}if(0<Do.length){Qi(Do[0],r);for(var l=1;l<Do.length;l++){var d=Do[l];d.blockedOn===r&&(d.blockedOn=null)}}for(xr!==null&&Qi(xr,r),wr!==null&&Qi(wr,r),Cr!==null&&Qi(Cr,r),Gi.forEach(i),ii.forEach(i),l=0;l<kr.length;l++)d=kr[l],d.blockedOn===r&&(d.blockedOn=null);for(;0<kr.length&&(l=kr[0],l.blockedOn===null);)hl(l),l.blockedOn===null&&kr.shift()}var ai=N.ReactCurrentBatchConfig,P=!0;function $(r,i,l,d){var m=Ze,y=ai.transition;ai.transition=null;try{Ze=1,fe(r,i,l,d)}finally{Ze=m,ai.transition=y}}function G(r,i,l,d){var m=Ze,y=ai.transition;ai.transition=null;try{Ze=4,fe(r,i,l,d)}finally{Ze=m,ai.transition=y}}function fe(r,i,l,d){if(P){var m=tt(r,i,l,d);if(m===null)_h(r,i,d,We,l),po(r,d);else if(ch(m,r,i,l,d))d.stopPropagation();else if(po(r,d),i&4&&-1<bc.indexOf(r)){for(;m!==null;){var y=Tl(m);if(y!==null&&gc(y),y=tt(r,i,l,d),y===null&&_h(r,i,d,We,l),y===m)break;m=y}m!==null&&d.stopPropagation()}else _h(r,i,d,null,l)}}var We=null;function tt(r,i,l,d){if(We=null,r=$i(d),r=Yi(r),r!==null)if(i=cn(r),i===null)r=null;else if(l=i.tag,l===13){if(r=Ui(i),r!==null)return r;r=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null);return We=r,null}function dt(r){switch(r){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(wt()){case Tt:return 1;case In:return 4;case ur:case Hi:return 16;case Ot:return 536870912;default:return 16}default:return 16}}var Ve=null,ct=null,wn=null;function Cn(){if(wn)return wn;var r,i=ct,l=i.length,d,m="value"in Ve?Ve.value:Ve.textContent,y=m.length;for(r=0;r<l&&i[r]===m[r];r++);var E=l-r;for(d=1;d<=E&&i[l-d]===m[y-d];d++);return wn=m.slice(r,1<d?1-d:void 0)}function mo(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function li(){return!0}function qs(){return!1}function kn(r){function i(l,d,m,y,E){this._reactName=l,this._targetInst=m,this.type=d,this.nativeEvent=y,this.target=E,this.currentTarget=null;for(var O in r)r.hasOwnProperty(O)&&(l=r[O],this[O]=l?l(y):y[O]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?li:qs,this.isPropagationStopped=qs,this}return Q(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=li)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=li)},persist:function(){},isPersistent:li}),i}var Ks={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fh=kn(Ks),ml=Q({},Ks,{view:0,detail:0}),lP=kn(ml),hh,ph,gl,Sc=Q({},ml,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gh,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==gl&&(gl&&r.type==="mousemove"?(hh=r.screenX-gl.screenX,ph=r.screenY-gl.screenY):ph=hh=0,gl=r),hh)},movementY:function(r){return"movementY"in r?r.movementY:ph}}),qv=kn(Sc),uP=Q({},Sc,{dataTransfer:0}),cP=kn(uP),dP=Q({},ml,{relatedTarget:0}),mh=kn(dP),fP=Q({},Ks,{animationName:0,elapsedTime:0,pseudoElement:0}),hP=kn(fP),pP=Q({},Ks,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),mP=kn(pP),gP=Q({},Ks,{data:0}),Kv=kn(gP),yP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vP={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"},bP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function SP(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=bP[r])?!!i[r]:!1}function gh(){return SP}var xP=Q({},ml,{key:function(r){if(r.key){var i=yP[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=mo(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?vP[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gh,charCode:function(r){return r.type==="keypress"?mo(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?mo(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),wP=kn(xP),CP=Q({},Sc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gv=kn(CP),kP=Q({},ml,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gh}),EP=kn(kP),TP=Q({},Ks,{propertyName:0,elapsedTime:0,pseudoElement:0}),_P=kn(TP),PP=Q({},Sc,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),RP=kn(PP),AP=[9,13,27,32],yh=c&&"CompositionEvent"in window,yl=null;c&&"documentMode"in document&&(yl=document.documentMode);var OP=c&&"TextEvent"in window&&!yl,Qv=c&&(!yh||yl&&8<yl&&11>=yl),Yv=" ",Xv=!1;function Zv(r,i){switch(r){case"keyup":return AP.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jv(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Gs=!1;function jP(r,i){switch(r){case"compositionend":return Jv(i);case"keypress":return i.which!==32?null:(Xv=!0,Yv);case"textInput":return r=i.data,r===Yv&&Xv?null:r;default:return null}}function MP(r,i){if(Gs)return r==="compositionend"||!yh&&Zv(r,i)?(r=Cn(),wn=ct=Ve=null,Gs=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Qv&&i.locale!=="ko"?null:i.data;default:return null}}var IP={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 e0(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!IP[r.type]:i==="textarea"}function t0(r,i,l,d){Is(d),i=Ec(i,"onChange"),0<i.length&&(l=new fh("onChange","change",null,l,d),r.push({event:l,listeners:i}))}var vl=null,bl=null;function NP(r){b0(r,0)}function xc(r){var i=Js(r);if(Nt(i))return r}function DP(r,i){if(r==="change")return i}var n0=!1;if(c){var vh;if(c){var bh="oninput"in document;if(!bh){var r0=document.createElement("div");r0.setAttribute("oninput","return;"),bh=typeof r0.oninput=="function"}vh=bh}else vh=!1;n0=vh&&(!document.documentMode||9<document.documentMode)}function o0(){vl&&(vl.detachEvent("onpropertychange",i0),bl=vl=null)}function i0(r){if(r.propertyName==="value"&&xc(bl)){var i=[];t0(i,bl,r,$i(r)),Mn(NP,i)}}function FP(r,i,l){r==="focusin"?(o0(),vl=i,bl=l,vl.attachEvent("onpropertychange",i0)):r==="focusout"&&o0()}function LP(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return xc(bl)}function zP(r,i){if(r==="click")return xc(i)}function $P(r,i){if(r==="input"||r==="change")return xc(i)}function BP(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var Kr=typeof Object.is=="function"?Object.is:BP;function Sl(r,i){if(Kr(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var l=Object.keys(r),d=Object.keys(i);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var m=l[d];if(!f.call(i,m)||!Kr(r[m],i[m]))return!1}return!0}function s0(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function a0(r,i){var l=s0(r);r=0;for(var d;l;){if(l.nodeType===3){if(d=r+l.textContent.length,r<=i&&d>=i)return{node:l,offset:i-r};r=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=s0(l)}}function l0(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?l0(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function u0(){for(var r=window,i=Dt();i instanceof r.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)r=i.contentWindow;else break;i=Dt(r.document)}return i}function Sh(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}function VP(r){var i=u0(),l=r.focusedElem,d=r.selectionRange;if(i!==l&&l&&l.ownerDocument&&l0(l.ownerDocument.documentElement,l)){if(d!==null&&Sh(l)){if(i=d.start,r=d.end,r===void 0&&(r=i),"selectionStart"in l)l.selectionStart=i,l.selectionEnd=Math.min(r,l.value.length);else if(r=(i=l.ownerDocument||document)&&i.defaultView||window,r.getSelection){r=r.getSelection();var m=l.textContent.length,y=Math.min(d.start,m);d=d.end===void 0?y:Math.min(d.end,m),!r.extend&&y>d&&(m=d,d=y,y=m),m=a0(l,y);var E=a0(l,d);m&&E&&(r.rangeCount!==1||r.anchorNode!==m.node||r.anchorOffset!==m.offset||r.focusNode!==E.node||r.focusOffset!==E.offset)&&(i=i.createRange(),i.setStart(m.node,m.offset),r.removeAllRanges(),y>d?(r.addRange(i),r.extend(E.node,E.offset)):(i.setEnd(E.node,E.offset),r.addRange(i)))}}for(i=[],r=l;r=r.parentNode;)r.nodeType===1&&i.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<i.length;l++)r=i[l],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var UP=c&&"documentMode"in document&&11>=document.documentMode,Qs=null,xh=null,xl=null,wh=!1;function c0(r,i,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;wh||Qs==null||Qs!==Dt(d)||(d=Qs,"selectionStart"in d&&Sh(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),xl&&Sl(xl,d)||(xl=d,d=Ec(xh,"onSelect"),0<d.length&&(i=new fh("onSelect","select",null,i,l),r.push({event:i,listeners:d}),i.target=Qs)))}function wc(r,i){var l={};return l[r.toLowerCase()]=i.toLowerCase(),l["Webkit"+r]="webkit"+i,l["Moz"+r]="moz"+i,l}var Ys={animationend:wc("Animation","AnimationEnd"),animationiteration:wc("Animation","AnimationIteration"),animationstart:wc("Animation","AnimationStart"),transitionend:wc("Transition","TransitionEnd")},Ch={},d0={};c&&(d0=document.createElement("div").style,"AnimationEvent"in window||(delete Ys.animationend.animation,delete Ys.animationiteration.animation,delete Ys.animationstart.animation),"TransitionEvent"in window||delete Ys.transitionend.transition);function Cc(r){if(Ch[r])return Ch[r];if(!Ys[r])return r;var i=Ys[r],l;for(l in i)if(i.hasOwnProperty(l)&&l in d0)return Ch[r]=i[l];return r}var f0=Cc("animationend"),h0=Cc("animationiteration"),p0=Cc("animationstart"),m0=Cc("transitionend"),g0=new Map,y0="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 ui(r,i){g0.set(r,i),a(i,[r])}for(var kh=0;kh<y0.length;kh++){var Eh=y0[kh],WP=Eh.toLowerCase(),HP=Eh[0].toUpperCase()+Eh.slice(1);ui(WP,"on"+HP)}ui(f0,"onAnimationEnd"),ui(h0,"onAnimationIteration"),ui(p0,"onAnimationStart"),ui("dblclick","onDoubleClick"),ui("focusin","onFocus"),ui("focusout","onBlur"),ui(m0,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wl="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(" "),qP=new Set("cancel close invalid load scroll toggle".split(" ").concat(wl));function v0(r,i,l){var d=r.type||"unknown-event";r.currentTarget=l,lr(d,i,void 0,r),r.currentTarget=null}function b0(r,i){i=(i&4)!==0;for(var l=0;l<r.length;l++){var d=r[l],m=d.event;d=d.listeners;e:{var y=void 0;if(i)for(var E=d.length-1;0<=E;E--){var O=d[E],M=O.instance,H=O.currentTarget;if(O=O.listener,M!==y&&m.isPropagationStopped())break e;v0(m,O,H),y=M}else for(E=0;E<d.length;E++){if(O=d[E],M=O.instance,H=O.currentTarget,O=O.listener,M!==y&&m.isPropagationStopped())break e;v0(m,O,H),y=M}}}if(No)throw r=oi,No=!1,oi=null,r}function yt(r,i){var l=i[Mh];l===void 0&&(l=i[Mh]=new Set);var d=r+"__bubble";l.has(d)||(S0(i,r,2,!1),l.add(d))}function Th(r,i,l){var d=0;i&&(d|=4),S0(l,r,d,i)}var kc="_reactListening"+Math.random().toString(36).slice(2);function Cl(r){if(!r[kc]){r[kc]=!0,o.forEach(function(l){l!=="selectionchange"&&(qP.has(l)||Th(l,!1,r),Th(l,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[kc]||(i[kc]=!0,Th("selectionchange",!1,i))}}function S0(r,i,l,d){switch(dt(i)){case 1:var m=$;break;case 4:m=G;break;default:m=fe}l=m.bind(null,i,l,r),m=void 0,!ri||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(m=!0),d?m!==void 0?r.addEventListener(i,l,{capture:!0,passive:m}):r.addEventListener(i,l,!0):m!==void 0?r.addEventListener(i,l,{passive:m}):r.addEventListener(i,l,!1)}function _h(r,i,l,d,m){var y=d;if((i&1)===0&&(i&2)===0&&d!==null)e:for(;;){if(d===null)return;var E=d.tag;if(E===3||E===4){var O=d.stateNode.containerInfo;if(O===m||O.nodeType===8&&O.parentNode===m)break;if(E===4)for(E=d.return;E!==null;){var M=E.tag;if((M===3||M===4)&&(M=E.stateNode.containerInfo,M===m||M.nodeType===8&&M.parentNode===m))return;E=E.return}for(;O!==null;){if(E=Yi(O),E===null)return;if(M=E.tag,M===5||M===6){d=y=E;continue e}O=O.parentNode}}d=d.return}Mn(function(){var H=y,J=$i(l),re=[];e:{var Z=g0.get(r);if(Z!==void 0){var ce=fh,me=r;switch(r){case"keypress":if(mo(l)===0)break e;case"keydown":case"keyup":ce=wP;break;case"focusin":me="focus",ce=mh;break;case"focusout":me="blur",ce=mh;break;case"beforeblur":case"afterblur":ce=mh;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ce=qv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ce=cP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ce=EP;break;case f0:case h0:case p0:ce=hP;break;case m0:ce=_P;break;case"scroll":ce=lP;break;case"wheel":ce=RP;break;case"copy":case"cut":case"paste":ce=mP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ce=Gv}var ye=(i&4)!==0,$t=!ye&&r==="scroll",V=ye?Z!==null?Z+"Capture":null:Z;ye=[];for(var L=H,W;L!==null;){W=L;var oe=W.stateNode;if(W.tag===5&&oe!==null&&(W=oe,V!==null&&(oe=Hr(L,V),oe!=null&&ye.push(kl(L,oe,W)))),$t)break;L=L.return}0<ye.length&&(Z=new ce(Z,me,null,l,J),re.push({event:Z,listeners:ye}))}}if((i&7)===0){e:{if(Z=r==="mouseover"||r==="pointerover",ce=r==="mouseout"||r==="pointerout",Z&&l!==uo&&(me=l.relatedTarget||l.fromElement)&&(Yi(me)||me[Fo]))break e;if((ce||Z)&&(Z=J.window===J?J:(Z=J.ownerDocument)?Z.defaultView||Z.parentWindow:window,ce?(me=l.relatedTarget||l.toElement,ce=H,me=me?Yi(me):null,me!==null&&($t=cn(me),me!==$t||me.tag!==5&&me.tag!==6)&&(me=null)):(ce=null,me=H),ce!==me)){if(ye=qv,oe="onMouseLeave",V="onMouseEnter",L="mouse",(r==="pointerout"||r==="pointerover")&&(ye=Gv,oe="onPointerLeave",V="onPointerEnter",L="pointer"),$t=ce==null?Z:Js(ce),W=me==null?Z:Js(me),Z=new ye(oe,L+"leave",ce,l,J),Z.target=$t,Z.relatedTarget=W,oe=null,Yi(J)===H&&(ye=new ye(V,L+"enter",me,l,J),ye.target=W,ye.relatedTarget=$t,oe=ye),$t=oe,ce&&me)t:{for(ye=ce,V=me,L=0,W=ye;W;W=Xs(W))L++;for(W=0,oe=V;oe;oe=Xs(oe))W++;for(;0<L-W;)ye=Xs(ye),L--;for(;0<W-L;)V=Xs(V),W--;for(;L--;){if(ye===V||V!==null&&ye===V.alternate)break t;ye=Xs(ye),V=Xs(V)}ye=null}else ye=null;ce!==null&&x0(re,Z,ce,ye,!1),me!==null&&$t!==null&&x0(re,$t,me,ye,!0)}}e:{if(Z=H?Js(H):window,ce=Z.nodeName&&Z.nodeName.toLowerCase(),ce==="select"||ce==="input"&&Z.type==="file")var be=DP;else if(e0(Z))if(n0)be=$P;else{be=LP;var Re=FP}else(ce=Z.nodeName)&&ce.toLowerCase()==="input"&&(Z.type==="checkbox"||Z.type==="radio")&&(be=zP);if(be&&(be=be(r,H))){t0(re,be,l,J);break e}Re&&Re(r,Z,H),r==="focusout"&&(Re=Z._wrapperState)&&Re.controlled&&Z.type==="number"&&Lt(Z,"number",Z.value)}switch(Re=H?Js(H):window,r){case"focusin":(e0(Re)||Re.contentEditable==="true")&&(Qs=Re,xh=H,xl=null);break;case"focusout":xl=xh=Qs=null;break;case"mousedown":wh=!0;break;case"contextmenu":case"mouseup":case"dragend":wh=!1,c0(re,l,J);break;case"selectionchange":if(UP)break;case"keydown":case"keyup":c0(re,l,J)}var Ae;if(yh)e:{switch(r){case"compositionstart":var Fe="onCompositionStart";break e;case"compositionend":Fe="onCompositionEnd";break e;case"compositionupdate":Fe="onCompositionUpdate";break e}Fe=void 0}else Gs?Zv(r,l)&&(Fe="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(Fe="onCompositionStart");Fe&&(Qv&&l.locale!=="ko"&&(Gs||Fe!=="onCompositionStart"?Fe==="onCompositionEnd"&&Gs&&(Ae=Cn()):(Ve=J,ct="value"in Ve?Ve.value:Ve.textContent,Gs=!0)),Re=Ec(H,Fe),0<Re.length&&(Fe=new Kv(Fe,r,null,l,J),re.push({event:Fe,listeners:Re}),Ae?Fe.data=Ae:(Ae=Jv(l),Ae!==null&&(Fe.data=Ae)))),(Ae=OP?jP(r,l):MP(r,l))&&(H=Ec(H,"onBeforeInput"),0<H.length&&(J=new Kv("onBeforeInput","beforeinput",null,l,J),re.push({event:J,listeners:H}),J.data=Ae))}b0(re,i)})}function kl(r,i,l){return{instance:r,listener:i,currentTarget:l}}function Ec(r,i){for(var l=i+"Capture",d=[];r!==null;){var m=r,y=m.stateNode;m.tag===5&&y!==null&&(m=y,y=Hr(r,l),y!=null&&d.unshift(kl(r,y,m)),y=Hr(r,i),y!=null&&d.push(kl(r,y,m))),r=r.return}return d}function Xs(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function x0(r,i,l,d,m){for(var y=i._reactName,E=[];l!==null&&l!==d;){var O=l,M=O.alternate,H=O.stateNode;if(M!==null&&M===d)break;O.tag===5&&H!==null&&(O=H,m?(M=Hr(l,y),M!=null&&E.unshift(kl(l,M,O))):m||(M=Hr(l,y),M!=null&&E.push(kl(l,M,O)))),l=l.return}E.length!==0&&r.push({event:i,listeners:E})}var KP=/\r\n?/g,GP=/\u0000|\uFFFD/g;function w0(r){return(typeof r=="string"?r:""+r).replace(KP,`
|
||
`).replace(GP,"")}function Tc(r,i,l){if(i=w0(i),w0(r)!==i&&l)throw Error(n(425))}function _c(){}var Ph=null,Rh=null;function Ah(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Oh=typeof setTimeout=="function"?setTimeout:void 0,QP=typeof clearTimeout=="function"?clearTimeout:void 0,C0=typeof Promise=="function"?Promise:void 0,YP=typeof queueMicrotask=="function"?queueMicrotask:typeof C0<"u"?function(r){return C0.resolve(null).then(r).catch(XP)}:Oh;function XP(r){setTimeout(function(){throw r})}function jh(r,i){var l=i,d=0;do{var m=l.nextSibling;if(r.removeChild(l),m&&m.nodeType===8)if(l=m.data,l==="/$"){if(d===0){r.removeChild(m),si(i);return}d--}else l!=="$"&&l!=="$?"&&l!=="$!"||d++;l=m}while(l);si(i)}function ci(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return r}function k0(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"){if(i===0)return r;i--}else l==="/$"&&i++}r=r.previousSibling}return null}var Zs=Math.random().toString(36).slice(2),go="__reactFiber$"+Zs,El="__reactProps$"+Zs,Fo="__reactContainer$"+Zs,Mh="__reactEvents$"+Zs,ZP="__reactListeners$"+Zs,JP="__reactHandles$"+Zs;function Yi(r){var i=r[go];if(i)return i;for(var l=r.parentNode;l;){if(i=l[Fo]||l[go]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(r=k0(r);r!==null;){if(l=r[go])return l;r=k0(r)}return i}r=l,l=r.parentNode}return null}function Tl(r){return r=r[go]||r[Fo],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Js(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function Pc(r){return r[El]||null}var Ih=[],ea=-1;function di(r){return{current:r}}function vt(r){0>ea||(r.current=Ih[ea],Ih[ea]=null,ea--)}function pt(r,i){ea++,Ih[ea]=r.current,r.current=i}var fi={},En=di(fi),Hn=di(!1),Xi=fi;function ta(r,i){var l=r.type.contextTypes;if(!l)return fi;var d=r.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===i)return d.__reactInternalMemoizedMaskedChildContext;var m={},y;for(y in l)m[y]=i[y];return d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=i,r.__reactInternalMemoizedMaskedChildContext=m),m}function qn(r){return r=r.childContextTypes,r!=null}function Rc(){vt(Hn),vt(En)}function E0(r,i,l){if(En.current!==fi)throw Error(n(168));pt(En,i),pt(Hn,l)}function T0(r,i,l){var d=r.stateNode;if(i=i.childContextTypes,typeof d.getChildContext!="function")return l;d=d.getChildContext();for(var m in d)if(!(m in i))throw Error(n(108,ze(r)||"Unknown",m));return Q({},l,d)}function Ac(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||fi,Xi=En.current,pt(En,r),pt(Hn,Hn.current),!0}function _0(r,i,l){var d=r.stateNode;if(!d)throw Error(n(169));l?(r=T0(r,i,Xi),d.__reactInternalMemoizedMergedChildContext=r,vt(Hn),vt(En),pt(En,r)):vt(Hn),pt(Hn,l)}var Lo=null,Oc=!1,Nh=!1;function P0(r){Lo===null?Lo=[r]:Lo.push(r)}function eR(r){Oc=!0,P0(r)}function hi(){if(!Nh&&Lo!==null){Nh=!0;var r=0,i=Ze;try{var l=Lo;for(Ze=1;r<l.length;r++){var d=l[r];do d=d(!0);while(d!==null)}Lo=null,Oc=!1}catch(m){throw Lo!==null&&(Lo=Lo.slice(r+1)),I(Tt,hi),m}finally{Ze=i,Nh=!1}}return null}var na=[],ra=0,jc=null,Mc=0,Er=[],Tr=0,Zi=null,zo=1,$o="";function Ji(r,i){na[ra++]=Mc,na[ra++]=jc,jc=r,Mc=i}function R0(r,i,l){Er[Tr++]=zo,Er[Tr++]=$o,Er[Tr++]=Zi,Zi=r;var d=zo;r=$o;var m=32-cr(d)-1;d&=~(1<<m),l+=1;var y=32-cr(i)+m;if(30<y){var E=m-m%5;y=(d&(1<<E)-1).toString(32),d>>=E,m-=E,zo=1<<32-cr(i)+m|l<<m|d,$o=y+r}else zo=1<<y|l<<m|d,$o=r}function Dh(r){r.return!==null&&(Ji(r,1),R0(r,1,0))}function Fh(r){for(;r===jc;)jc=na[--ra],na[ra]=null,Mc=na[--ra],na[ra]=null;for(;r===Zi;)Zi=Er[--Tr],Er[Tr]=null,$o=Er[--Tr],Er[Tr]=null,zo=Er[--Tr],Er[Tr]=null}var dr=null,fr=null,Ct=!1,Gr=null;function A0(r,i){var l=Ar(5,null,null,0);l.elementType="DELETED",l.stateNode=i,l.return=r,i=r.deletions,i===null?(r.deletions=[l],r.flags|=16):i.push(l)}function O0(r,i){switch(r.tag){case 5:var l=r.type;return i=i.nodeType!==1||l.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(r.stateNode=i,dr=r,fr=ci(i.firstChild),!0):!1;case 6:return i=r.pendingProps===""||i.nodeType!==3?null:i,i!==null?(r.stateNode=i,dr=r,fr=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(l=Zi!==null?{id:zo,overflow:$o}:null,r.memoizedState={dehydrated:i,treeContext:l,retryLane:1073741824},l=Ar(18,null,null,0),l.stateNode=i,l.return=r,r.child=l,dr=r,fr=null,!0):!1;default:return!1}}function Lh(r){return(r.mode&1)!==0&&(r.flags&128)===0}function zh(r){if(Ct){var i=fr;if(i){var l=i;if(!O0(r,i)){if(Lh(r))throw Error(n(418));i=ci(l.nextSibling);var d=dr;i&&O0(r,i)?A0(d,l):(r.flags=r.flags&-4097|2,Ct=!1,dr=r)}}else{if(Lh(r))throw Error(n(418));r.flags=r.flags&-4097|2,Ct=!1,dr=r}}}function j0(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;dr=r}function Ic(r){if(r!==dr)return!1;if(!Ct)return j0(r),Ct=!0,!1;var i;if((i=r.tag!==3)&&!(i=r.tag!==5)&&(i=r.type,i=i!=="head"&&i!=="body"&&!Ah(r.type,r.memoizedProps)),i&&(i=fr)){if(Lh(r))throw M0(),Error(n(418));for(;i;)A0(r,i),i=ci(i.nextSibling)}if(j0(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,i=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"){if(i===0){fr=ci(r.nextSibling);break e}i--}else l!=="$"&&l!=="$!"&&l!=="$?"||i++}r=r.nextSibling}fr=null}}else fr=dr?ci(r.stateNode.nextSibling):null;return!0}function M0(){for(var r=fr;r;)r=ci(r.nextSibling)}function oa(){fr=dr=null,Ct=!1}function $h(r){Gr===null?Gr=[r]:Gr.push(r)}var tR=N.ReactCurrentBatchConfig;function _l(r,i,l){if(r=l.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(n(309));var d=l.stateNode}if(!d)throw Error(n(147,r));var m=d,y=""+r;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===y?i.ref:(i=function(E){var O=m.refs;E===null?delete O[y]:O[y]=E},i._stringRef=y,i)}if(typeof r!="string")throw Error(n(284));if(!l._owner)throw Error(n(290,r))}return r}function Nc(r,i){throw r=Object.prototype.toString.call(i),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r))}function I0(r){var i=r._init;return i(r._payload)}function N0(r){function i(V,L){if(r){var W=V.deletions;W===null?(V.deletions=[L],V.flags|=16):W.push(L)}}function l(V,L){if(!r)return null;for(;L!==null;)i(V,L),L=L.sibling;return null}function d(V,L){for(V=new Map;L!==null;)L.key!==null?V.set(L.key,L):V.set(L.index,L),L=L.sibling;return V}function m(V,L){return V=xi(V,L),V.index=0,V.sibling=null,V}function y(V,L,W){return V.index=W,r?(W=V.alternate,W!==null?(W=W.index,W<L?(V.flags|=2,L):W):(V.flags|=2,L)):(V.flags|=1048576,L)}function E(V){return r&&V.alternate===null&&(V.flags|=2),V}function O(V,L,W,oe){return L===null||L.tag!==6?(L=Op(W,V.mode,oe),L.return=V,L):(L=m(L,W),L.return=V,L)}function M(V,L,W,oe){var be=W.type;return be===D?J(V,L,W.props.children,oe,W.key):L!==null&&(L.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===_e&&I0(be)===L.type)?(oe=m(L,W.props),oe.ref=_l(V,L,W),oe.return=V,oe):(oe=id(W.type,W.key,W.props,null,V.mode,oe),oe.ref=_l(V,L,W),oe.return=V,oe)}function H(V,L,W,oe){return L===null||L.tag!==4||L.stateNode.containerInfo!==W.containerInfo||L.stateNode.implementation!==W.implementation?(L=jp(W,V.mode,oe),L.return=V,L):(L=m(L,W.children||[]),L.return=V,L)}function J(V,L,W,oe,be){return L===null||L.tag!==7?(L=as(W,V.mode,oe,be),L.return=V,L):(L=m(L,W),L.return=V,L)}function re(V,L,W){if(typeof L=="string"&&L!==""||typeof L=="number")return L=Op(""+L,V.mode,W),L.return=V,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case R:return W=id(L.type,L.key,L.props,null,V.mode,W),W.ref=_l(V,null,L),W.return=V,W;case F:return L=jp(L,V.mode,W),L.return=V,L;case _e:var oe=L._init;return re(V,oe(L._payload),W)}if(zt(L)||se(L))return L=as(L,V.mode,W,null),L.return=V,L;Nc(V,L)}return null}function Z(V,L,W,oe){var be=L!==null?L.key:null;if(typeof W=="string"&&W!==""||typeof W=="number")return be!==null?null:O(V,L,""+W,oe);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case R:return W.key===be?M(V,L,W,oe):null;case F:return W.key===be?H(V,L,W,oe):null;case _e:return be=W._init,Z(V,L,be(W._payload),oe)}if(zt(W)||se(W))return be!==null?null:J(V,L,W,oe,null);Nc(V,W)}return null}function ce(V,L,W,oe,be){if(typeof oe=="string"&&oe!==""||typeof oe=="number")return V=V.get(W)||null,O(L,V,""+oe,be);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case R:return V=V.get(oe.key===null?W:oe.key)||null,M(L,V,oe,be);case F:return V=V.get(oe.key===null?W:oe.key)||null,H(L,V,oe,be);case _e:var Re=oe._init;return ce(V,L,W,Re(oe._payload),be)}if(zt(oe)||se(oe))return V=V.get(W)||null,J(L,V,oe,be,null);Nc(L,oe)}return null}function me(V,L,W,oe){for(var be=null,Re=null,Ae=L,Fe=L=0,ln=null;Ae!==null&&Fe<W.length;Fe++){Ae.index>Fe?(ln=Ae,Ae=null):ln=Ae.sibling;var Je=Z(V,Ae,W[Fe],oe);if(Je===null){Ae===null&&(Ae=ln);break}r&&Ae&&Je.alternate===null&&i(V,Ae),L=y(Je,L,Fe),Re===null?be=Je:Re.sibling=Je,Re=Je,Ae=ln}if(Fe===W.length)return l(V,Ae),Ct&&Ji(V,Fe),be;if(Ae===null){for(;Fe<W.length;Fe++)Ae=re(V,W[Fe],oe),Ae!==null&&(L=y(Ae,L,Fe),Re===null?be=Ae:Re.sibling=Ae,Re=Ae);return Ct&&Ji(V,Fe),be}for(Ae=d(V,Ae);Fe<W.length;Fe++)ln=ce(Ae,V,Fe,W[Fe],oe),ln!==null&&(r&&ln.alternate!==null&&Ae.delete(ln.key===null?Fe:ln.key),L=y(ln,L,Fe),Re===null?be=ln:Re.sibling=ln,Re=ln);return r&&Ae.forEach(function(wi){return i(V,wi)}),Ct&&Ji(V,Fe),be}function ye(V,L,W,oe){var be=se(W);if(typeof be!="function")throw Error(n(150));if(W=be.call(W),W==null)throw Error(n(151));for(var Re=be=null,Ae=L,Fe=L=0,ln=null,Je=W.next();Ae!==null&&!Je.done;Fe++,Je=W.next()){Ae.index>Fe?(ln=Ae,Ae=null):ln=Ae.sibling;var wi=Z(V,Ae,Je.value,oe);if(wi===null){Ae===null&&(Ae=ln);break}r&&Ae&&wi.alternate===null&&i(V,Ae),L=y(wi,L,Fe),Re===null?be=wi:Re.sibling=wi,Re=wi,Ae=ln}if(Je.done)return l(V,Ae),Ct&&Ji(V,Fe),be;if(Ae===null){for(;!Je.done;Fe++,Je=W.next())Je=re(V,Je.value,oe),Je!==null&&(L=y(Je,L,Fe),Re===null?be=Je:Re.sibling=Je,Re=Je);return Ct&&Ji(V,Fe),be}for(Ae=d(V,Ae);!Je.done;Fe++,Je=W.next())Je=ce(Ae,V,Fe,Je.value,oe),Je!==null&&(r&&Je.alternate!==null&&Ae.delete(Je.key===null?Fe:Je.key),L=y(Je,L,Fe),Re===null?be=Je:Re.sibling=Je,Re=Je);return r&&Ae.forEach(function(IR){return i(V,IR)}),Ct&&Ji(V,Fe),be}function $t(V,L,W,oe){if(typeof W=="object"&&W!==null&&W.type===D&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case R:e:{for(var be=W.key,Re=L;Re!==null;){if(Re.key===be){if(be=W.type,be===D){if(Re.tag===7){l(V,Re.sibling),L=m(Re,W.props.children),L.return=V,V=L;break e}}else if(Re.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===_e&&I0(be)===Re.type){l(V,Re.sibling),L=m(Re,W.props),L.ref=_l(V,Re,W),L.return=V,V=L;break e}l(V,Re);break}else i(V,Re);Re=Re.sibling}W.type===D?(L=as(W.props.children,V.mode,oe,W.key),L.return=V,V=L):(oe=id(W.type,W.key,W.props,null,V.mode,oe),oe.ref=_l(V,L,W),oe.return=V,V=oe)}return E(V);case F:e:{for(Re=W.key;L!==null;){if(L.key===Re)if(L.tag===4&&L.stateNode.containerInfo===W.containerInfo&&L.stateNode.implementation===W.implementation){l(V,L.sibling),L=m(L,W.children||[]),L.return=V,V=L;break e}else{l(V,L);break}else i(V,L);L=L.sibling}L=jp(W,V.mode,oe),L.return=V,V=L}return E(V);case _e:return Re=W._init,$t(V,L,Re(W._payload),oe)}if(zt(W))return me(V,L,W,oe);if(se(W))return ye(V,L,W,oe);Nc(V,W)}return typeof W=="string"&&W!==""||typeof W=="number"?(W=""+W,L!==null&&L.tag===6?(l(V,L.sibling),L=m(L,W),L.return=V,V=L):(l(V,L),L=Op(W,V.mode,oe),L.return=V,V=L),E(V)):l(V,L)}return $t}var ia=N0(!0),D0=N0(!1),Dc=di(null),Fc=null,sa=null,Bh=null;function Vh(){Bh=sa=Fc=null}function Uh(r){var i=Dc.current;vt(Dc),r._currentValue=i}function Wh(r,i,l){for(;r!==null;){var d=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,d!==null&&(d.childLanes|=i)):d!==null&&(d.childLanes&i)!==i&&(d.childLanes|=i),r===l)break;r=r.return}}function aa(r,i){Fc=r,Bh=sa=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&i)!==0&&(Kn=!0),r.firstContext=null)}function _r(r){var i=r._currentValue;if(Bh!==r)if(r={context:r,memoizedValue:i,next:null},sa===null){if(Fc===null)throw Error(n(308));sa=r,Fc.dependencies={lanes:0,firstContext:r}}else sa=sa.next=r;return i}var es=null;function Hh(r){es===null?es=[r]:es.push(r)}function F0(r,i,l,d){var m=i.interleaved;return m===null?(l.next=l,Hh(i)):(l.next=m.next,m.next=l),i.interleaved=l,Bo(r,d)}function Bo(r,i){r.lanes|=i;var l=r.alternate;for(l!==null&&(l.lanes|=i),l=r,r=r.return;r!==null;)r.childLanes|=i,l=r.alternate,l!==null&&(l.childLanes|=i),l=r,r=r.return;return l.tag===3?l.stateNode:null}var pi=!1;function qh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function L0(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Vo(r,i){return{eventTime:r,lane:i,tag:0,payload:null,callback:null,next:null}}function mi(r,i,l){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(Qe&2)!==0){var m=d.pending;return m===null?i.next=i:(i.next=m.next,m.next=i),d.pending=i,Bo(r,l)}return m=d.interleaved,m===null?(i.next=i,Hh(d)):(i.next=m.next,m.next=i),d.interleaved=i,Bo(r,l)}function Lc(r,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194240)!==0)){var d=i.lanes;d&=r.pendingLanes,l|=d,i.lanes=l,cl(r,l)}}function z0(r,i){var l=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var m=null,y=null;if(l=l.firstBaseUpdate,l!==null){do{var E={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};y===null?m=y=E:y=y.next=E,l=l.next}while(l!==null);y===null?m=y=i:y=y.next=i}else m=y=i;l={baseState:d.baseState,firstBaseUpdate:m,lastBaseUpdate:y,shared:d.shared,effects:d.effects},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=i:r.next=i,l.lastBaseUpdate=i}function zc(r,i,l,d){var m=r.updateQueue;pi=!1;var y=m.firstBaseUpdate,E=m.lastBaseUpdate,O=m.shared.pending;if(O!==null){m.shared.pending=null;var M=O,H=M.next;M.next=null,E===null?y=H:E.next=H,E=M;var J=r.alternate;J!==null&&(J=J.updateQueue,O=J.lastBaseUpdate,O!==E&&(O===null?J.firstBaseUpdate=H:O.next=H,J.lastBaseUpdate=M))}if(y!==null){var re=m.baseState;E=0,J=H=M=null,O=y;do{var Z=O.lane,ce=O.eventTime;if((d&Z)===Z){J!==null&&(J=J.next={eventTime:ce,lane:0,tag:O.tag,payload:O.payload,callback:O.callback,next:null});e:{var me=r,ye=O;switch(Z=i,ce=l,ye.tag){case 1:if(me=ye.payload,typeof me=="function"){re=me.call(ce,re,Z);break e}re=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=ye.payload,Z=typeof me=="function"?me.call(ce,re,Z):me,Z==null)break e;re=Q({},re,Z);break e;case 2:pi=!0}}O.callback!==null&&O.lane!==0&&(r.flags|=64,Z=m.effects,Z===null?m.effects=[O]:Z.push(O))}else ce={eventTime:ce,lane:Z,tag:O.tag,payload:O.payload,callback:O.callback,next:null},J===null?(H=J=ce,M=re):J=J.next=ce,E|=Z;if(O=O.next,O===null){if(O=m.shared.pending,O===null)break;Z=O,O=Z.next,Z.next=null,m.lastBaseUpdate=Z,m.shared.pending=null}}while(!0);if(J===null&&(M=re),m.baseState=M,m.firstBaseUpdate=H,m.lastBaseUpdate=J,i=m.shared.interleaved,i!==null){m=i;do E|=m.lane,m=m.next;while(m!==i)}else y===null&&(m.shared.lanes=0);rs|=E,r.lanes=E,r.memoizedState=re}}function $0(r,i,l){if(r=i.effects,i.effects=null,r!==null)for(i=0;i<r.length;i++){var d=r[i],m=d.callback;if(m!==null){if(d.callback=null,d=l,typeof m!="function")throw Error(n(191,m));m.call(d)}}}var Pl={},yo=di(Pl),Rl=di(Pl),Al=di(Pl);function ts(r){if(r===Pl)throw Error(n(174));return r}function Kh(r,i){switch(pt(Al,i),pt(Rl,r),pt(yo,Pl),r=i.nodeType,r){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:rn(null,"");break;default:r=r===8?i.parentNode:i,i=r.namespaceURI||null,r=r.tagName,i=rn(i,r)}vt(yo),pt(yo,i)}function la(){vt(yo),vt(Rl),vt(Al)}function B0(r){ts(Al.current);var i=ts(yo.current),l=rn(i,r.type);i!==l&&(pt(Rl,r),pt(yo,l))}function Gh(r){Rl.current===r&&(vt(yo),vt(Rl))}var _t=di(0);function $c(r){for(var i=r;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Qh=[];function Yh(){for(var r=0;r<Qh.length;r++)Qh[r]._workInProgressVersionPrimary=null;Qh.length=0}var Bc=N.ReactCurrentDispatcher,Xh=N.ReactCurrentBatchConfig,ns=0,Pt=null,Xt=null,sn=null,Vc=!1,Ol=!1,jl=0,nR=0;function Tn(){throw Error(n(321))}function Zh(r,i){if(i===null)return!1;for(var l=0;l<i.length&&l<r.length;l++)if(!Kr(r[l],i[l]))return!1;return!0}function Jh(r,i,l,d,m,y){if(ns=y,Pt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,Bc.current=r===null||r.memoizedState===null?sR:aR,r=l(d,m),Ol){y=0;do{if(Ol=!1,jl=0,25<=y)throw Error(n(301));y+=1,sn=Xt=null,i.updateQueue=null,Bc.current=lR,r=l(d,m)}while(Ol)}if(Bc.current=Hc,i=Xt!==null&&Xt.next!==null,ns=0,sn=Xt=Pt=null,Vc=!1,i)throw Error(n(300));return r}function ep(){var r=jl!==0;return jl=0,r}function vo(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return sn===null?Pt.memoizedState=sn=r:sn=sn.next=r,sn}function Pr(){if(Xt===null){var r=Pt.alternate;r=r!==null?r.memoizedState:null}else r=Xt.next;var i=sn===null?Pt.memoizedState:sn.next;if(i!==null)sn=i,Xt=r;else{if(r===null)throw Error(n(310));Xt=r,r={memoizedState:Xt.memoizedState,baseState:Xt.baseState,baseQueue:Xt.baseQueue,queue:Xt.queue,next:null},sn===null?Pt.memoizedState=sn=r:sn=sn.next=r}return sn}function Ml(r,i){return typeof i=="function"?i(r):i}function tp(r){var i=Pr(),l=i.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=r;var d=Xt,m=d.baseQueue,y=l.pending;if(y!==null){if(m!==null){var E=m.next;m.next=y.next,y.next=E}d.baseQueue=m=y,l.pending=null}if(m!==null){y=m.next,d=d.baseState;var O=E=null,M=null,H=y;do{var J=H.lane;if((ns&J)===J)M!==null&&(M=M.next={lane:0,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),d=H.hasEagerState?H.eagerState:r(d,H.action);else{var re={lane:J,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null};M===null?(O=M=re,E=d):M=M.next=re,Pt.lanes|=J,rs|=J}H=H.next}while(H!==null&&H!==y);M===null?E=d:M.next=O,Kr(d,i.memoizedState)||(Kn=!0),i.memoizedState=d,i.baseState=E,i.baseQueue=M,l.lastRenderedState=d}if(r=l.interleaved,r!==null){m=r;do y=m.lane,Pt.lanes|=y,rs|=y,m=m.next;while(m!==r)}else m===null&&(l.lanes=0);return[i.memoizedState,l.dispatch]}function np(r){var i=Pr(),l=i.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=r;var d=l.dispatch,m=l.pending,y=i.memoizedState;if(m!==null){l.pending=null;var E=m=m.next;do y=r(y,E.action),E=E.next;while(E!==m);Kr(y,i.memoizedState)||(Kn=!0),i.memoizedState=y,i.baseQueue===null&&(i.baseState=y),l.lastRenderedState=y}return[y,d]}function V0(){}function U0(r,i){var l=Pt,d=Pr(),m=i(),y=!Kr(d.memoizedState,m);if(y&&(d.memoizedState=m,Kn=!0),d=d.queue,rp(q0.bind(null,l,d,r),[r]),d.getSnapshot!==i||y||sn!==null&&sn.memoizedState.tag&1){if(l.flags|=2048,Il(9,H0.bind(null,l,d,m,i),void 0,null),an===null)throw Error(n(349));(ns&30)!==0||W0(l,i,m)}return m}function W0(r,i,l){r.flags|=16384,r={getSnapshot:i,value:l},i=Pt.updateQueue,i===null?(i={lastEffect:null,stores:null},Pt.updateQueue=i,i.stores=[r]):(l=i.stores,l===null?i.stores=[r]:l.push(r))}function H0(r,i,l,d){i.value=l,i.getSnapshot=d,K0(i)&&G0(r)}function q0(r,i,l){return l(function(){K0(i)&&G0(r)})}function K0(r){var i=r.getSnapshot;r=r.value;try{var l=i();return!Kr(r,l)}catch{return!0}}function G0(r){var i=Bo(r,1);i!==null&&Zr(i,r,1,-1)}function Q0(r){var i=vo();return typeof r=="function"&&(r=r()),i.memoizedState=i.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ml,lastRenderedState:r},i.queue=r,r=r.dispatch=iR.bind(null,Pt,r),[i.memoizedState,r]}function Il(r,i,l,d){return r={tag:r,create:i,destroy:l,deps:d,next:null},i=Pt.updateQueue,i===null?(i={lastEffect:null,stores:null},Pt.updateQueue=i,i.lastEffect=r.next=r):(l=i.lastEffect,l===null?i.lastEffect=r.next=r:(d=l.next,l.next=r,r.next=d,i.lastEffect=r)),r}function Y0(){return Pr().memoizedState}function Uc(r,i,l,d){var m=vo();Pt.flags|=r,m.memoizedState=Il(1|i,l,void 0,d===void 0?null:d)}function Wc(r,i,l,d){var m=Pr();d=d===void 0?null:d;var y=void 0;if(Xt!==null){var E=Xt.memoizedState;if(y=E.destroy,d!==null&&Zh(d,E.deps)){m.memoizedState=Il(i,l,y,d);return}}Pt.flags|=r,m.memoizedState=Il(1|i,l,y,d)}function X0(r,i){return Uc(8390656,8,r,i)}function rp(r,i){return Wc(2048,8,r,i)}function Z0(r,i){return Wc(4,2,r,i)}function J0(r,i){return Wc(4,4,r,i)}function eb(r,i){if(typeof i=="function")return r=r(),i(r),function(){i(null)};if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function tb(r,i,l){return l=l!=null?l.concat([r]):null,Wc(4,4,eb.bind(null,i,r),l)}function op(){}function nb(r,i){var l=Pr();i=i===void 0?null:i;var d=l.memoizedState;return d!==null&&i!==null&&Zh(i,d[1])?d[0]:(l.memoizedState=[r,i],r)}function rb(r,i){var l=Pr();i=i===void 0?null:i;var d=l.memoizedState;return d!==null&&i!==null&&Zh(i,d[1])?d[0]:(r=r(),l.memoizedState=[r,i],r)}function ob(r,i,l){return(ns&21)===0?(r.baseState&&(r.baseState=!1,Kn=!0),r.memoizedState=l):(Kr(l,i)||(l=pc(),Pt.lanes|=l,rs|=l,r.baseState=!0),i)}function rR(r,i){var l=Ze;Ze=l!==0&&4>l?l:4,r(!0);var d=Xh.transition;Xh.transition={};try{r(!1),i()}finally{Ze=l,Xh.transition=d}}function ib(){return Pr().memoizedState}function oR(r,i,l){var d=bi(r);if(l={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null},sb(r))ab(i,l);else if(l=F0(r,i,l,d),l!==null){var m=Fn();Zr(l,r,d,m),lb(l,i,d)}}function iR(r,i,l){var d=bi(r),m={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null};if(sb(r))ab(i,m);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=i.lastRenderedReducer,y!==null))try{var E=i.lastRenderedState,O=y(E,l);if(m.hasEagerState=!0,m.eagerState=O,Kr(O,E)){var M=i.interleaved;M===null?(m.next=m,Hh(i)):(m.next=M.next,M.next=m),i.interleaved=m;return}}catch{}finally{}l=F0(r,i,m,d),l!==null&&(m=Fn(),Zr(l,r,d,m),lb(l,i,d))}}function sb(r){var i=r.alternate;return r===Pt||i!==null&&i===Pt}function ab(r,i){Ol=Vc=!0;var l=r.pending;l===null?i.next=i:(i.next=l.next,l.next=i),r.pending=i}function lb(r,i,l){if((l&4194240)!==0){var d=i.lanes;d&=r.pendingLanes,l|=d,i.lanes=l,cl(r,l)}}var Hc={readContext:_r,useCallback:Tn,useContext:Tn,useEffect:Tn,useImperativeHandle:Tn,useInsertionEffect:Tn,useLayoutEffect:Tn,useMemo:Tn,useReducer:Tn,useRef:Tn,useState:Tn,useDebugValue:Tn,useDeferredValue:Tn,useTransition:Tn,useMutableSource:Tn,useSyncExternalStore:Tn,useId:Tn,unstable_isNewReconciler:!1},sR={readContext:_r,useCallback:function(r,i){return vo().memoizedState=[r,i===void 0?null:i],r},useContext:_r,useEffect:X0,useImperativeHandle:function(r,i,l){return l=l!=null?l.concat([r]):null,Uc(4194308,4,eb.bind(null,i,r),l)},useLayoutEffect:function(r,i){return Uc(4194308,4,r,i)},useInsertionEffect:function(r,i){return Uc(4,2,r,i)},useMemo:function(r,i){var l=vo();return i=i===void 0?null:i,r=r(),l.memoizedState=[r,i],r},useReducer:function(r,i,l){var d=vo();return i=l!==void 0?l(i):i,d.memoizedState=d.baseState=i,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:i},d.queue=r,r=r.dispatch=oR.bind(null,Pt,r),[d.memoizedState,r]},useRef:function(r){var i=vo();return r={current:r},i.memoizedState=r},useState:Q0,useDebugValue:op,useDeferredValue:function(r){return vo().memoizedState=r},useTransition:function(){var r=Q0(!1),i=r[0];return r=rR.bind(null,r[1]),vo().memoizedState=r,[i,r]},useMutableSource:function(){},useSyncExternalStore:function(r,i,l){var d=Pt,m=vo();if(Ct){if(l===void 0)throw Error(n(407));l=l()}else{if(l=i(),an===null)throw Error(n(349));(ns&30)!==0||W0(d,i,l)}m.memoizedState=l;var y={value:l,getSnapshot:i};return m.queue=y,X0(q0.bind(null,d,y,r),[r]),d.flags|=2048,Il(9,H0.bind(null,d,y,l,i),void 0,null),l},useId:function(){var r=vo(),i=an.identifierPrefix;if(Ct){var l=$o,d=zo;l=(d&~(1<<32-cr(d)-1)).toString(32)+l,i=":"+i+"R"+l,l=jl++,0<l&&(i+="H"+l.toString(32)),i+=":"}else l=nR++,i=":"+i+"r"+l.toString(32)+":";return r.memoizedState=i},unstable_isNewReconciler:!1},aR={readContext:_r,useCallback:nb,useContext:_r,useEffect:rp,useImperativeHandle:tb,useInsertionEffect:Z0,useLayoutEffect:J0,useMemo:rb,useReducer:tp,useRef:Y0,useState:function(){return tp(Ml)},useDebugValue:op,useDeferredValue:function(r){var i=Pr();return ob(i,Xt.memoizedState,r)},useTransition:function(){var r=tp(Ml)[0],i=Pr().memoizedState;return[r,i]},useMutableSource:V0,useSyncExternalStore:U0,useId:ib,unstable_isNewReconciler:!1},lR={readContext:_r,useCallback:nb,useContext:_r,useEffect:rp,useImperativeHandle:tb,useInsertionEffect:Z0,useLayoutEffect:J0,useMemo:rb,useReducer:np,useRef:Y0,useState:function(){return np(Ml)},useDebugValue:op,useDeferredValue:function(r){var i=Pr();return Xt===null?i.memoizedState=r:ob(i,Xt.memoizedState,r)},useTransition:function(){var r=np(Ml)[0],i=Pr().memoizedState;return[r,i]},useMutableSource:V0,useSyncExternalStore:U0,useId:ib,unstable_isNewReconciler:!1};function Qr(r,i){if(r&&r.defaultProps){i=Q({},i),r=r.defaultProps;for(var l in r)i[l]===void 0&&(i[l]=r[l]);return i}return i}function ip(r,i,l,d){i=r.memoizedState,l=l(d,i),l=l==null?i:Q({},i,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var qc={isMounted:function(r){return(r=r._reactInternals)?cn(r)===r:!1},enqueueSetState:function(r,i,l){r=r._reactInternals;var d=Fn(),m=bi(r),y=Vo(d,m);y.payload=i,l!=null&&(y.callback=l),i=mi(r,y,m),i!==null&&(Zr(i,r,m,d),Lc(i,r,m))},enqueueReplaceState:function(r,i,l){r=r._reactInternals;var d=Fn(),m=bi(r),y=Vo(d,m);y.tag=1,y.payload=i,l!=null&&(y.callback=l),i=mi(r,y,m),i!==null&&(Zr(i,r,m,d),Lc(i,r,m))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var l=Fn(),d=bi(r),m=Vo(l,d);m.tag=2,i!=null&&(m.callback=i),i=mi(r,m,d),i!==null&&(Zr(i,r,d,l),Lc(i,r,d))}};function ub(r,i,l,d,m,y,E){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,y,E):i.prototype&&i.prototype.isPureReactComponent?!Sl(l,d)||!Sl(m,y):!0}function cb(r,i,l){var d=!1,m=fi,y=i.contextType;return typeof y=="object"&&y!==null?y=_r(y):(m=qn(i)?Xi:En.current,d=i.contextTypes,y=(d=d!=null)?ta(r,m):fi),i=new i(l,y),r.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=qc,r.stateNode=i,i._reactInternals=r,d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=m,r.__reactInternalMemoizedMaskedChildContext=y),i}function db(r,i,l,d){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,d),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,d),i.state!==r&&qc.enqueueReplaceState(i,i.state,null)}function sp(r,i,l,d){var m=r.stateNode;m.props=l,m.state=r.memoizedState,m.refs={},qh(r);var y=i.contextType;typeof y=="object"&&y!==null?m.context=_r(y):(y=qn(i)?Xi:En.current,m.context=ta(r,y)),m.state=r.memoizedState,y=i.getDerivedStateFromProps,typeof y=="function"&&(ip(r,i,y,l),m.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(i=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),i!==m.state&&qc.enqueueReplaceState(m,m.state,null),zc(r,l,m,d),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308)}function ua(r,i){try{var l="",d=i;do l+=le(d),d=d.return;while(d);var m=l}catch(y){m=`
|
||
Error generating stack: `+y.message+`
|
||
`+y.stack}return{value:r,source:i,stack:m,digest:null}}function ap(r,i,l){return{value:r,source:null,stack:l??null,digest:i??null}}function lp(r,i){try{console.error(i.value)}catch(l){setTimeout(function(){throw l})}}var uR=typeof WeakMap=="function"?WeakMap:Map;function fb(r,i,l){l=Vo(-1,l),l.tag=3,l.payload={element:null};var d=i.value;return l.callback=function(){Jc||(Jc=!0,Cp=d),lp(r,i)},l}function hb(r,i,l){l=Vo(-1,l),l.tag=3;var d=r.type.getDerivedStateFromError;if(typeof d=="function"){var m=i.value;l.payload=function(){return d(m)},l.callback=function(){lp(r,i)}}var y=r.stateNode;return y!==null&&typeof y.componentDidCatch=="function"&&(l.callback=function(){lp(r,i),typeof d!="function"&&(yi===null?yi=new Set([this]):yi.add(this));var E=i.stack;this.componentDidCatch(i.value,{componentStack:E!==null?E:""})}),l}function pb(r,i,l){var d=r.pingCache;if(d===null){d=r.pingCache=new uR;var m=new Set;d.set(i,m)}else m=d.get(i),m===void 0&&(m=new Set,d.set(i,m));m.has(l)||(m.add(l),r=CR.bind(null,r,i,l),i.then(r,r))}function mb(r){do{var i;if((i=r.tag===13)&&(i=r.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return r;r=r.return}while(r!==null);return null}function gb(r,i,l,d,m){return(r.mode&1)===0?(r===i?r.flags|=65536:(r.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(i=Vo(-1,1),i.tag=2,mi(l,i,1))),l.lanes|=1),r):(r.flags|=65536,r.lanes=m,r)}var cR=N.ReactCurrentOwner,Kn=!1;function Dn(r,i,l,d){i.child=r===null?D0(i,null,l,d):ia(i,r.child,l,d)}function yb(r,i,l,d,m){l=l.render;var y=i.ref;return aa(i,m),d=Jh(r,i,l,d,y,m),l=ep(),r!==null&&!Kn?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~m,Uo(r,i,m)):(Ct&&l&&Dh(i),i.flags|=1,Dn(r,i,d,m),i.child)}function vb(r,i,l,d,m){if(r===null){var y=l.type;return typeof y=="function"&&!Ap(y)&&y.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(i.tag=15,i.type=y,bb(r,i,y,d,m)):(r=id(l.type,null,d,i,i.mode,m),r.ref=i.ref,r.return=i,i.child=r)}if(y=r.child,(r.lanes&m)===0){var E=y.memoizedProps;if(l=l.compare,l=l!==null?l:Sl,l(E,d)&&r.ref===i.ref)return Uo(r,i,m)}return i.flags|=1,r=xi(y,d),r.ref=i.ref,r.return=i,i.child=r}function bb(r,i,l,d,m){if(r!==null){var y=r.memoizedProps;if(Sl(y,d)&&r.ref===i.ref)if(Kn=!1,i.pendingProps=d=y,(r.lanes&m)!==0)(r.flags&131072)!==0&&(Kn=!0);else return i.lanes=r.lanes,Uo(r,i,m)}return up(r,i,l,d,m)}function Sb(r,i,l){var d=i.pendingProps,m=d.children,y=r!==null?r.memoizedState:null;if(d.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},pt(da,hr),hr|=l;else{if((l&1073741824)===0)return r=y!==null?y.baseLanes|l:l,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:r,cachePool:null,transitions:null},i.updateQueue=null,pt(da,hr),hr|=r,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=y!==null?y.baseLanes:l,pt(da,hr),hr|=d}else y!==null?(d=y.baseLanes|l,i.memoizedState=null):d=l,pt(da,hr),hr|=d;return Dn(r,i,m,l),i.child}function xb(r,i){var l=i.ref;(r===null&&l!==null||r!==null&&r.ref!==l)&&(i.flags|=512,i.flags|=2097152)}function up(r,i,l,d,m){var y=qn(l)?Xi:En.current;return y=ta(i,y),aa(i,m),l=Jh(r,i,l,d,y,m),d=ep(),r!==null&&!Kn?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~m,Uo(r,i,m)):(Ct&&d&&Dh(i),i.flags|=1,Dn(r,i,l,m),i.child)}function wb(r,i,l,d,m){if(qn(l)){var y=!0;Ac(i)}else y=!1;if(aa(i,m),i.stateNode===null)Gc(r,i),cb(i,l,d),sp(i,l,d,m),d=!0;else if(r===null){var E=i.stateNode,O=i.memoizedProps;E.props=O;var M=E.context,H=l.contextType;typeof H=="object"&&H!==null?H=_r(H):(H=qn(l)?Xi:En.current,H=ta(i,H));var J=l.getDerivedStateFromProps,re=typeof J=="function"||typeof E.getSnapshotBeforeUpdate=="function";re||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(O!==d||M!==H)&&db(i,E,d,H),pi=!1;var Z=i.memoizedState;E.state=Z,zc(i,d,E,m),M=i.memoizedState,O!==d||Z!==M||Hn.current||pi?(typeof J=="function"&&(ip(i,l,J,d),M=i.memoizedState),(O=pi||ub(i,l,O,d,Z,M,H))?(re||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(i.flags|=4194308)):(typeof E.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=d,i.memoizedState=M),E.props=d,E.state=M,E.context=H,d=O):(typeof E.componentDidMount=="function"&&(i.flags|=4194308),d=!1)}else{E=i.stateNode,L0(r,i),O=i.memoizedProps,H=i.type===i.elementType?O:Qr(i.type,O),E.props=H,re=i.pendingProps,Z=E.context,M=l.contextType,typeof M=="object"&&M!==null?M=_r(M):(M=qn(l)?Xi:En.current,M=ta(i,M));var ce=l.getDerivedStateFromProps;(J=typeof ce=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(O!==re||Z!==M)&&db(i,E,d,M),pi=!1,Z=i.memoizedState,E.state=Z,zc(i,d,E,m);var me=i.memoizedState;O!==re||Z!==me||Hn.current||pi?(typeof ce=="function"&&(ip(i,l,ce,d),me=i.memoizedState),(H=pi||ub(i,l,H,d,Z,me,M)||!1)?(J||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(d,me,M),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(d,me,M)),typeof E.componentDidUpdate=="function"&&(i.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof E.componentDidUpdate!="function"||O===r.memoizedProps&&Z===r.memoizedState||(i.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||O===r.memoizedProps&&Z===r.memoizedState||(i.flags|=1024),i.memoizedProps=d,i.memoizedState=me),E.props=d,E.state=me,E.context=M,d=H):(typeof E.componentDidUpdate!="function"||O===r.memoizedProps&&Z===r.memoizedState||(i.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||O===r.memoizedProps&&Z===r.memoizedState||(i.flags|=1024),d=!1)}return cp(r,i,l,d,y,m)}function cp(r,i,l,d,m,y){xb(r,i);var E=(i.flags&128)!==0;if(!d&&!E)return m&&_0(i,l,!1),Uo(r,i,y);d=i.stateNode,cR.current=i;var O=E&&typeof l.getDerivedStateFromError!="function"?null:d.render();return i.flags|=1,r!==null&&E?(i.child=ia(i,r.child,null,y),i.child=ia(i,null,O,y)):Dn(r,i,O,y),i.memoizedState=d.state,m&&_0(i,l,!0),i.child}function Cb(r){var i=r.stateNode;i.pendingContext?E0(r,i.pendingContext,i.pendingContext!==i.context):i.context&&E0(r,i.context,!1),Kh(r,i.containerInfo)}function kb(r,i,l,d,m){return oa(),$h(m),i.flags|=256,Dn(r,i,l,d),i.child}var dp={dehydrated:null,treeContext:null,retryLane:0};function fp(r){return{baseLanes:r,cachePool:null,transitions:null}}function Eb(r,i,l){var d=i.pendingProps,m=_t.current,y=!1,E=(i.flags&128)!==0,O;if((O=E)||(O=r!==null&&r.memoizedState===null?!1:(m&2)!==0),O?(y=!0,i.flags&=-129):(r===null||r.memoizedState!==null)&&(m|=1),pt(_t,m&1),r===null)return zh(i),r=i.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((i.mode&1)===0?i.lanes=1:r.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(E=d.children,r=d.fallback,y?(d=i.mode,y=i.child,E={mode:"hidden",children:E},(d&1)===0&&y!==null?(y.childLanes=0,y.pendingProps=E):y=sd(E,d,0,null),r=as(r,d,l,null),y.return=i,r.return=i,y.sibling=r,i.child=y,i.child.memoizedState=fp(l),i.memoizedState=dp,r):hp(i,E));if(m=r.memoizedState,m!==null&&(O=m.dehydrated,O!==null))return dR(r,i,E,d,O,m,l);if(y){y=d.fallback,E=i.mode,m=r.child,O=m.sibling;var M={mode:"hidden",children:d.children};return(E&1)===0&&i.child!==m?(d=i.child,d.childLanes=0,d.pendingProps=M,i.deletions=null):(d=xi(m,M),d.subtreeFlags=m.subtreeFlags&14680064),O!==null?y=xi(O,y):(y=as(y,E,l,null),y.flags|=2),y.return=i,d.return=i,d.sibling=y,i.child=d,d=y,y=i.child,E=r.child.memoizedState,E=E===null?fp(l):{baseLanes:E.baseLanes|l,cachePool:null,transitions:E.transitions},y.memoizedState=E,y.childLanes=r.childLanes&~l,i.memoizedState=dp,d}return y=r.child,r=y.sibling,d=xi(y,{mode:"visible",children:d.children}),(i.mode&1)===0&&(d.lanes=l),d.return=i,d.sibling=null,r!==null&&(l=i.deletions,l===null?(i.deletions=[r],i.flags|=16):l.push(r)),i.child=d,i.memoizedState=null,d}function hp(r,i){return i=sd({mode:"visible",children:i},r.mode,0,null),i.return=r,r.child=i}function Kc(r,i,l,d){return d!==null&&$h(d),ia(i,r.child,null,l),r=hp(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function dR(r,i,l,d,m,y,E){if(l)return i.flags&256?(i.flags&=-257,d=ap(Error(n(422))),Kc(r,i,E,d)):i.memoizedState!==null?(i.child=r.child,i.flags|=128,null):(y=d.fallback,m=i.mode,d=sd({mode:"visible",children:d.children},m,0,null),y=as(y,m,E,null),y.flags|=2,d.return=i,y.return=i,d.sibling=y,i.child=d,(i.mode&1)!==0&&ia(i,r.child,null,E),i.child.memoizedState=fp(E),i.memoizedState=dp,y);if((i.mode&1)===0)return Kc(r,i,E,null);if(m.data==="$!"){if(d=m.nextSibling&&m.nextSibling.dataset,d)var O=d.dgst;return d=O,y=Error(n(419)),d=ap(y,d,void 0),Kc(r,i,E,d)}if(O=(E&r.childLanes)!==0,Kn||O){if(d=an,d!==null){switch(E&-E){case 4:m=2;break;case 16:m=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:m=32;break;case 536870912:m=268435456;break;default:m=0}m=(m&(d.suspendedLanes|E))!==0?0:m,m!==0&&m!==y.retryLane&&(y.retryLane=m,Bo(r,m),Zr(d,r,m,-1))}return Rp(),d=ap(Error(n(421))),Kc(r,i,E,d)}return m.data==="$?"?(i.flags|=128,i.child=r.child,i=kR.bind(null,r),m._reactRetry=i,null):(r=y.treeContext,fr=ci(m.nextSibling),dr=i,Ct=!0,Gr=null,r!==null&&(Er[Tr++]=zo,Er[Tr++]=$o,Er[Tr++]=Zi,zo=r.id,$o=r.overflow,Zi=i),i=hp(i,d.children),i.flags|=4096,i)}function Tb(r,i,l){r.lanes|=i;var d=r.alternate;d!==null&&(d.lanes|=i),Wh(r.return,i,l)}function pp(r,i,l,d,m){var y=r.memoizedState;y===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:m}:(y.isBackwards=i,y.rendering=null,y.renderingStartTime=0,y.last=d,y.tail=l,y.tailMode=m)}function _b(r,i,l){var d=i.pendingProps,m=d.revealOrder,y=d.tail;if(Dn(r,i,d.children,l),d=_t.current,(d&2)!==0)d=d&1|2,i.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Tb(r,l,i);else if(r.tag===19)Tb(r,l,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}d&=1}if(pt(_t,d),(i.mode&1)===0)i.memoizedState=null;else switch(m){case"forwards":for(l=i.child,m=null;l!==null;)r=l.alternate,r!==null&&$c(r)===null&&(m=l),l=l.sibling;l=m,l===null?(m=i.child,i.child=null):(m=l.sibling,l.sibling=null),pp(i,!1,m,l,y);break;case"backwards":for(l=null,m=i.child,i.child=null;m!==null;){if(r=m.alternate,r!==null&&$c(r)===null){i.child=m;break}r=m.sibling,m.sibling=l,l=m,m=r}pp(i,!0,l,null,y);break;case"together":pp(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Gc(r,i){(i.mode&1)===0&&r!==null&&(r.alternate=null,i.alternate=null,i.flags|=2)}function Uo(r,i,l){if(r!==null&&(i.dependencies=r.dependencies),rs|=i.lanes,(l&i.childLanes)===0)return null;if(r!==null&&i.child!==r.child)throw Error(n(153));if(i.child!==null){for(r=i.child,l=xi(r,r.pendingProps),i.child=l,l.return=i;r.sibling!==null;)r=r.sibling,l=l.sibling=xi(r,r.pendingProps),l.return=i;l.sibling=null}return i.child}function fR(r,i,l){switch(i.tag){case 3:Cb(i),oa();break;case 5:B0(i);break;case 1:qn(i.type)&&Ac(i);break;case 4:Kh(i,i.stateNode.containerInfo);break;case 10:var d=i.type._context,m=i.memoizedProps.value;pt(Dc,d._currentValue),d._currentValue=m;break;case 13:if(d=i.memoizedState,d!==null)return d.dehydrated!==null?(pt(_t,_t.current&1),i.flags|=128,null):(l&i.child.childLanes)!==0?Eb(r,i,l):(pt(_t,_t.current&1),r=Uo(r,i,l),r!==null?r.sibling:null);pt(_t,_t.current&1);break;case 19:if(d=(l&i.childLanes)!==0,(r.flags&128)!==0){if(d)return _b(r,i,l);i.flags|=128}if(m=i.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),pt(_t,_t.current),d)break;return null;case 22:case 23:return i.lanes=0,Sb(r,i,l)}return Uo(r,i,l)}var Pb,mp,Rb,Ab;Pb=function(r,i){for(var l=i.child;l!==null;){if(l.tag===5||l.tag===6)r.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},mp=function(){},Rb=function(r,i,l,d){var m=r.memoizedProps;if(m!==d){r=i.stateNode,ts(yo.current);var y=null;switch(l){case"input":m=de(r,m),d=de(r,d),y=[];break;case"select":m=Q({},m,{value:void 0}),d=Q({},d,{value:void 0}),y=[];break;case"textarea":m=bn(r,m),d=bn(r,d),y=[];break;default:typeof m.onClick!="function"&&typeof d.onClick=="function"&&(r.onclick=_c)}jn(l,d);var E;l=null;for(H in m)if(!d.hasOwnProperty(H)&&m.hasOwnProperty(H)&&m[H]!=null)if(H==="style"){var O=m[H];for(E in O)O.hasOwnProperty(E)&&(l||(l={}),l[E]="")}else H!=="dangerouslySetInnerHTML"&&H!=="children"&&H!=="suppressContentEditableWarning"&&H!=="suppressHydrationWarning"&&H!=="autoFocus"&&(s.hasOwnProperty(H)?y||(y=[]):(y=y||[]).push(H,null));for(H in d){var M=d[H];if(O=m!=null?m[H]:void 0,d.hasOwnProperty(H)&&M!==O&&(M!=null||O!=null))if(H==="style")if(O){for(E in O)!O.hasOwnProperty(E)||M&&M.hasOwnProperty(E)||(l||(l={}),l[E]="");for(E in M)M.hasOwnProperty(E)&&O[E]!==M[E]&&(l||(l={}),l[E]=M[E])}else l||(y||(y=[]),y.push(H,l)),l=M;else H==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,O=O?O.__html:void 0,M!=null&&O!==M&&(y=y||[]).push(H,M)):H==="children"?typeof M!="string"&&typeof M!="number"||(y=y||[]).push(H,""+M):H!=="suppressContentEditableWarning"&&H!=="suppressHydrationWarning"&&(s.hasOwnProperty(H)?(M!=null&&H==="onScroll"&&yt("scroll",r),y||O===M||(y=[])):(y=y||[]).push(H,M))}l&&(y=y||[]).push("style",l);var H=y;(i.updateQueue=H)&&(i.flags|=4)}},Ab=function(r,i,l,d){l!==d&&(i.flags|=4)};function Nl(r,i){if(!Ct)switch(r.tailMode){case"hidden":i=r.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function _n(r){var i=r.alternate!==null&&r.alternate.child===r.child,l=0,d=0;if(i)for(var m=r.child;m!==null;)l|=m.lanes|m.childLanes,d|=m.subtreeFlags&14680064,d|=m.flags&14680064,m.return=r,m=m.sibling;else for(m=r.child;m!==null;)l|=m.lanes|m.childLanes,d|=m.subtreeFlags,d|=m.flags,m.return=r,m=m.sibling;return r.subtreeFlags|=d,r.childLanes=l,i}function hR(r,i,l){var d=i.pendingProps;switch(Fh(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _n(i),null;case 1:return qn(i.type)&&Rc(),_n(i),null;case 3:return d=i.stateNode,la(),vt(Hn),vt(En),Yh(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(r===null||r.child===null)&&(Ic(i)?i.flags|=4:r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Gr!==null&&(Tp(Gr),Gr=null))),mp(r,i),_n(i),null;case 5:Gh(i);var m=ts(Al.current);if(l=i.type,r!==null&&i.stateNode!=null)Rb(r,i,l,d,m),r.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!d){if(i.stateNode===null)throw Error(n(166));return _n(i),null}if(r=ts(yo.current),Ic(i)){d=i.stateNode,l=i.type;var y=i.memoizedProps;switch(d[go]=i,d[El]=y,r=(i.mode&1)!==0,l){case"dialog":yt("cancel",d),yt("close",d);break;case"iframe":case"object":case"embed":yt("load",d);break;case"video":case"audio":for(m=0;m<wl.length;m++)yt(wl[m],d);break;case"source":yt("error",d);break;case"img":case"image":case"link":yt("error",d),yt("load",d);break;case"details":yt("toggle",d);break;case"input":at(d,y),yt("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!y.multiple},yt("invalid",d);break;case"textarea":Sn(d,y),yt("invalid",d)}jn(l,y),m=null;for(var E in y)if(y.hasOwnProperty(E)){var O=y[E];E==="children"?typeof O=="string"?d.textContent!==O&&(y.suppressHydrationWarning!==!0&&Tc(d.textContent,O,r),m=["children",O]):typeof O=="number"&&d.textContent!==""+O&&(y.suppressHydrationWarning!==!0&&Tc(d.textContent,O,r),m=["children",""+O]):s.hasOwnProperty(E)&&O!=null&&E==="onScroll"&&yt("scroll",d)}switch(l){case"input":ut(d),Ft(d,y,!0);break;case"textarea":ut(d),ir(d);break;case"select":case"option":break;default:typeof y.onClick=="function"&&(d.onclick=_c)}d=m,i.updateQueue=d,d!==null&&(i.flags|=4)}else{E=m.nodeType===9?m:m.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=sr(l)),r==="http://www.w3.org/1999/xhtml"?l==="script"?(r=E.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof d.is=="string"?r=E.createElement(l,{is:d.is}):(r=E.createElement(l),l==="select"&&(E=r,d.multiple?E.multiple=!0:d.size&&(E.size=d.size))):r=E.createElementNS(r,l),r[go]=i,r[El]=d,Pb(r,i,!1,!1),i.stateNode=r;e:{switch(E=Io(l,d),l){case"dialog":yt("cancel",r),yt("close",r),m=d;break;case"iframe":case"object":case"embed":yt("load",r),m=d;break;case"video":case"audio":for(m=0;m<wl.length;m++)yt(wl[m],r);m=d;break;case"source":yt("error",r),m=d;break;case"img":case"image":case"link":yt("error",r),yt("load",r),m=d;break;case"details":yt("toggle",r),m=d;break;case"input":at(r,d),m=de(r,d),yt("invalid",r);break;case"option":m=d;break;case"select":r._wrapperState={wasMultiple:!!d.multiple},m=Q({},d,{value:void 0}),yt("invalid",r);break;case"textarea":Sn(r,d),m=bn(r,d),yt("invalid",r);break;default:m=d}jn(l,m),O=m;for(y in O)if(O.hasOwnProperty(y)){var M=O[y];y==="style"?Mo(r,M):y==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,M!=null&&Xe(r,M)):y==="children"?typeof M=="string"?(l!=="textarea"||M!=="")&>(r,M):typeof M=="number"&>(r,""+M):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(s.hasOwnProperty(y)?M!=null&&y==="onScroll"&&yt("scroll",r):M!=null&&_(r,y,M,E))}switch(l){case"input":ut(r),Ft(r,d,!1);break;case"textarea":ut(r),ir(r);break;case"option":d.value!=null&&r.setAttribute("value",""+Pe(d.value));break;case"select":r.multiple=!!d.multiple,y=d.value,y!=null?vn(r,!!d.multiple,y,!1):d.defaultValue!=null&&vn(r,!!d.multiple,d.defaultValue,!0);break;default:typeof m.onClick=="function"&&(r.onclick=_c)}switch(l){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return _n(i),null;case 6:if(r&&i.stateNode!=null)Ab(r,i,r.memoizedProps,d);else{if(typeof d!="string"&&i.stateNode===null)throw Error(n(166));if(l=ts(Al.current),ts(yo.current),Ic(i)){if(d=i.stateNode,l=i.memoizedProps,d[go]=i,(y=d.nodeValue!==l)&&(r=dr,r!==null))switch(r.tag){case 3:Tc(d.nodeValue,l,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Tc(d.nodeValue,l,(r.mode&1)!==0)}y&&(i.flags|=4)}else d=(l.nodeType===9?l:l.ownerDocument).createTextNode(d),d[go]=i,i.stateNode=d}return _n(i),null;case 13:if(vt(_t),d=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(Ct&&fr!==null&&(i.mode&1)!==0&&(i.flags&128)===0)M0(),oa(),i.flags|=98560,y=!1;else if(y=Ic(i),d!==null&&d.dehydrated!==null){if(r===null){if(!y)throw Error(n(318));if(y=i.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(n(317));y[go]=i}else oa(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;_n(i),y=!1}else Gr!==null&&(Tp(Gr),Gr=null),y=!0;if(!y)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=l,i):(d=d!==null,d!==(r!==null&&r.memoizedState!==null)&&d&&(i.child.flags|=8192,(i.mode&1)!==0&&(r===null||(_t.current&1)!==0?Zt===0&&(Zt=3):Rp())),i.updateQueue!==null&&(i.flags|=4),_n(i),null);case 4:return la(),mp(r,i),r===null&&Cl(i.stateNode.containerInfo),_n(i),null;case 10:return Uh(i.type._context),_n(i),null;case 17:return qn(i.type)&&Rc(),_n(i),null;case 19:if(vt(_t),y=i.memoizedState,y===null)return _n(i),null;if(d=(i.flags&128)!==0,E=y.rendering,E===null)if(d)Nl(y,!1);else{if(Zt!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(E=$c(r),E!==null){for(i.flags|=128,Nl(y,!1),d=E.updateQueue,d!==null&&(i.updateQueue=d,i.flags|=4),i.subtreeFlags=0,d=l,l=i.child;l!==null;)y=l,r=d,y.flags&=14680066,E=y.alternate,E===null?(y.childLanes=0,y.lanes=r,y.child=null,y.subtreeFlags=0,y.memoizedProps=null,y.memoizedState=null,y.updateQueue=null,y.dependencies=null,y.stateNode=null):(y.childLanes=E.childLanes,y.lanes=E.lanes,y.child=E.child,y.subtreeFlags=0,y.deletions=null,y.memoizedProps=E.memoizedProps,y.memoizedState=E.memoizedState,y.updateQueue=E.updateQueue,y.type=E.type,r=E.dependencies,y.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),l=l.sibling;return pt(_t,_t.current&1|2),i.child}r=r.sibling}y.tail!==null&&$e()>fa&&(i.flags|=128,d=!0,Nl(y,!1),i.lanes=4194304)}else{if(!d)if(r=$c(E),r!==null){if(i.flags|=128,d=!0,l=r.updateQueue,l!==null&&(i.updateQueue=l,i.flags|=4),Nl(y,!0),y.tail===null&&y.tailMode==="hidden"&&!E.alternate&&!Ct)return _n(i),null}else 2*$e()-y.renderingStartTime>fa&&l!==1073741824&&(i.flags|=128,d=!0,Nl(y,!1),i.lanes=4194304);y.isBackwards?(E.sibling=i.child,i.child=E):(l=y.last,l!==null?l.sibling=E:i.child=E,y.last=E)}return y.tail!==null?(i=y.tail,y.rendering=i,y.tail=i.sibling,y.renderingStartTime=$e(),i.sibling=null,l=_t.current,pt(_t,d?l&1|2:l&1),i):(_n(i),null);case 22:case 23:return Pp(),d=i.memoizedState!==null,r!==null&&r.memoizedState!==null!==d&&(i.flags|=8192),d&&(i.mode&1)!==0?(hr&1073741824)!==0&&(_n(i),i.subtreeFlags&6&&(i.flags|=8192)):_n(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function pR(r,i){switch(Fh(i),i.tag){case 1:return qn(i.type)&&Rc(),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return la(),vt(Hn),vt(En),Yh(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 5:return Gh(i),null;case 13:if(vt(_t),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(n(340));oa()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return vt(_t),null;case 4:return la(),null;case 10:return Uh(i.type._context),null;case 22:case 23:return Pp(),null;case 24:return null;default:return null}}var Qc=!1,Pn=!1,mR=typeof WeakSet=="function"?WeakSet:Set,he=null;function ca(r,i){var l=r.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(d){jt(r,i,d)}else l.current=null}function gp(r,i,l){try{l()}catch(d){jt(r,i,d)}}var Ob=!1;function gR(r,i){if(Ph=P,r=u0(),Sh(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var m=d.anchorOffset,y=d.focusNode;d=d.focusOffset;try{l.nodeType,y.nodeType}catch{l=null;break e}var E=0,O=-1,M=-1,H=0,J=0,re=r,Z=null;t:for(;;){for(var ce;re!==l||m!==0&&re.nodeType!==3||(O=E+m),re!==y||d!==0&&re.nodeType!==3||(M=E+d),re.nodeType===3&&(E+=re.nodeValue.length),(ce=re.firstChild)!==null;)Z=re,re=ce;for(;;){if(re===r)break t;if(Z===l&&++H===m&&(O=E),Z===y&&++J===d&&(M=E),(ce=re.nextSibling)!==null)break;re=Z,Z=re.parentNode}re=ce}l=O===-1||M===-1?null:{start:O,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(Rh={focusedElem:r,selectionRange:l},P=!1,he=i;he!==null;)if(i=he,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,he=r;else for(;he!==null;){i=he;try{var me=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(me!==null){var ye=me.memoizedProps,$t=me.memoizedState,V=i.stateNode,L=V.getSnapshotBeforeUpdate(i.elementType===i.type?ye:Qr(i.type,ye),$t);V.__reactInternalSnapshotBeforeUpdate=L}break;case 3:var W=i.stateNode.containerInfo;W.nodeType===1?W.textContent="":W.nodeType===9&&W.documentElement&&W.removeChild(W.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(oe){jt(i,i.return,oe)}if(r=i.sibling,r!==null){r.return=i.return,he=r;break}he=i.return}return me=Ob,Ob=!1,me}function Dl(r,i,l){var d=i.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var m=d=d.next;do{if((m.tag&r)===r){var y=m.destroy;m.destroy=void 0,y!==void 0&&gp(i,l,y)}m=m.next}while(m!==d)}}function Yc(r,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var l=i=i.next;do{if((l.tag&r)===r){var d=l.create;l.destroy=d()}l=l.next}while(l!==i)}}function yp(r){var i=r.ref;if(i!==null){var l=r.stateNode;switch(r.tag){case 5:r=l;break;default:r=l}typeof i=="function"?i(r):i.current=r}}function jb(r){var i=r.alternate;i!==null&&(r.alternate=null,jb(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&(delete i[go],delete i[El],delete i[Mh],delete i[ZP],delete i[JP])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Mb(r){return r.tag===5||r.tag===3||r.tag===4}function Ib(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Mb(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function vp(r,i,l){var d=r.tag;if(d===5||d===6)r=r.stateNode,i?l.nodeType===8?l.parentNode.insertBefore(r,i):l.insertBefore(r,i):(l.nodeType===8?(i=l.parentNode,i.insertBefore(r,l)):(i=l,i.appendChild(r)),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=_c));else if(d!==4&&(r=r.child,r!==null))for(vp(r,i,l),r=r.sibling;r!==null;)vp(r,i,l),r=r.sibling}function bp(r,i,l){var d=r.tag;if(d===5||d===6)r=r.stateNode,i?l.insertBefore(r,i):l.appendChild(r);else if(d!==4&&(r=r.child,r!==null))for(bp(r,i,l),r=r.sibling;r!==null;)bp(r,i,l),r=r.sibling}var dn=null,Yr=!1;function gi(r,i,l){for(l=l.child;l!==null;)Nb(r,i,l),l=l.sibling}function Nb(r,i,l){if(Nn&&typeof Nn.onCommitFiberUnmount=="function")try{Nn.onCommitFiberUnmount(ho,l)}catch{}switch(l.tag){case 5:Pn||ca(l,i);case 6:var d=dn,m=Yr;dn=null,gi(r,i,l),dn=d,Yr=m,dn!==null&&(Yr?(r=dn,l=l.stateNode,r.nodeType===8?r.parentNode.removeChild(l):r.removeChild(l)):dn.removeChild(l.stateNode));break;case 18:dn!==null&&(Yr?(r=dn,l=l.stateNode,r.nodeType===8?jh(r.parentNode,l):r.nodeType===1&&jh(r,l),si(r)):jh(dn,l.stateNode));break;case 4:d=dn,m=Yr,dn=l.stateNode.containerInfo,Yr=!0,gi(r,i,l),dn=d,Yr=m;break;case 0:case 11:case 14:case 15:if(!Pn&&(d=l.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){m=d=d.next;do{var y=m,E=y.destroy;y=y.tag,E!==void 0&&((y&2)!==0||(y&4)!==0)&&gp(l,i,E),m=m.next}while(m!==d)}gi(r,i,l);break;case 1:if(!Pn&&(ca(l,i),d=l.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=l.memoizedProps,d.state=l.memoizedState,d.componentWillUnmount()}catch(O){jt(l,i,O)}gi(r,i,l);break;case 21:gi(r,i,l);break;case 22:l.mode&1?(Pn=(d=Pn)||l.memoizedState!==null,gi(r,i,l),Pn=d):gi(r,i,l);break;default:gi(r,i,l)}}function Db(r){var i=r.updateQueue;if(i!==null){r.updateQueue=null;var l=r.stateNode;l===null&&(l=r.stateNode=new mR),i.forEach(function(d){var m=ER.bind(null,r,d);l.has(d)||(l.add(d),d.then(m,m))})}}function Xr(r,i){var l=i.deletions;if(l!==null)for(var d=0;d<l.length;d++){var m=l[d];try{var y=r,E=i,O=E;e:for(;O!==null;){switch(O.tag){case 5:dn=O.stateNode,Yr=!1;break e;case 3:dn=O.stateNode.containerInfo,Yr=!0;break e;case 4:dn=O.stateNode.containerInfo,Yr=!0;break e}O=O.return}if(dn===null)throw Error(n(160));Nb(y,E,m),dn=null,Yr=!1;var M=m.alternate;M!==null&&(M.return=null),m.return=null}catch(H){jt(m,i,H)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Fb(i,r),i=i.sibling}function Fb(r,i){var l=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(Xr(i,r),bo(r),d&4){try{Dl(3,r,r.return),Yc(3,r)}catch(ye){jt(r,r.return,ye)}try{Dl(5,r,r.return)}catch(ye){jt(r,r.return,ye)}}break;case 1:Xr(i,r),bo(r),d&512&&l!==null&&ca(l,l.return);break;case 5:if(Xr(i,r),bo(r),d&512&&l!==null&&ca(l,l.return),r.flags&32){var m=r.stateNode;try{gt(m,"")}catch(ye){jt(r,r.return,ye)}}if(d&4&&(m=r.stateNode,m!=null)){var y=r.memoizedProps,E=l!==null?l.memoizedProps:y,O=r.type,M=r.updateQueue;if(r.updateQueue=null,M!==null)try{O==="input"&&y.type==="radio"&&y.name!=null&&Ye(m,y),Io(O,E);var H=Io(O,y);for(E=0;E<M.length;E+=2){var J=M[E],re=M[E+1];J==="style"?Mo(m,re):J==="dangerouslySetInnerHTML"?Xe(m,re):J==="children"?gt(m,re):_(m,J,re,H)}switch(O){case"input":St(m,y);break;case"textarea":br(m,y);break;case"select":var Z=m._wrapperState.wasMultiple;m._wrapperState.wasMultiple=!!y.multiple;var ce=y.value;ce!=null?vn(m,!!y.multiple,ce,!1):Z!==!!y.multiple&&(y.defaultValue!=null?vn(m,!!y.multiple,y.defaultValue,!0):vn(m,!!y.multiple,y.multiple?[]:"",!1))}m[El]=y}catch(ye){jt(r,r.return,ye)}}break;case 6:if(Xr(i,r),bo(r),d&4){if(r.stateNode===null)throw Error(n(162));m=r.stateNode,y=r.memoizedProps;try{m.nodeValue=y}catch(ye){jt(r,r.return,ye)}}break;case 3:if(Xr(i,r),bo(r),d&4&&l!==null&&l.memoizedState.isDehydrated)try{si(i.containerInfo)}catch(ye){jt(r,r.return,ye)}break;case 4:Xr(i,r),bo(r);break;case 13:Xr(i,r),bo(r),m=r.child,m.flags&8192&&(y=m.memoizedState!==null,m.stateNode.isHidden=y,!y||m.alternate!==null&&m.alternate.memoizedState!==null||(wp=$e())),d&4&&Db(r);break;case 22:if(J=l!==null&&l.memoizedState!==null,r.mode&1?(Pn=(H=Pn)||J,Xr(i,r),Pn=H):Xr(i,r),bo(r),d&8192){if(H=r.memoizedState!==null,(r.stateNode.isHidden=H)&&!J&&(r.mode&1)!==0)for(he=r,J=r.child;J!==null;){for(re=he=J;he!==null;){switch(Z=he,ce=Z.child,Z.tag){case 0:case 11:case 14:case 15:Dl(4,Z,Z.return);break;case 1:ca(Z,Z.return);var me=Z.stateNode;if(typeof me.componentWillUnmount=="function"){d=Z,l=Z.return;try{i=d,me.props=i.memoizedProps,me.state=i.memoizedState,me.componentWillUnmount()}catch(ye){jt(d,l,ye)}}break;case 5:ca(Z,Z.return);break;case 22:if(Z.memoizedState!==null){$b(re);continue}}ce!==null?(ce.return=Z,he=ce):$b(re)}J=J.sibling}e:for(J=null,re=r;;){if(re.tag===5){if(J===null){J=re;try{m=re.stateNode,H?(y=m.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none"):(O=re.stateNode,M=re.memoizedProps.style,E=M!=null&&M.hasOwnProperty("display")?M.display:null,O.style.display=Sr("display",E))}catch(ye){jt(r,r.return,ye)}}}else if(re.tag===6){if(J===null)try{re.stateNode.nodeValue=H?"":re.memoizedProps}catch(ye){jt(r,r.return,ye)}}else if((re.tag!==22&&re.tag!==23||re.memoizedState===null||re===r)&&re.child!==null){re.child.return=re,re=re.child;continue}if(re===r)break e;for(;re.sibling===null;){if(re.return===null||re.return===r)break e;J===re&&(J=null),re=re.return}J===re&&(J=null),re.sibling.return=re.return,re=re.sibling}}break;case 19:Xr(i,r),bo(r),d&4&&Db(r);break;case 21:break;default:Xr(i,r),bo(r)}}function bo(r){var i=r.flags;if(i&2){try{e:{for(var l=r.return;l!==null;){if(Mb(l)){var d=l;break e}l=l.return}throw Error(n(160))}switch(d.tag){case 5:var m=d.stateNode;d.flags&32&&(gt(m,""),d.flags&=-33);var y=Ib(r);bp(r,y,m);break;case 3:case 4:var E=d.stateNode.containerInfo,O=Ib(r);vp(r,O,E);break;default:throw Error(n(161))}}catch(M){jt(r,r.return,M)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function yR(r,i,l){he=r,Lb(r)}function Lb(r,i,l){for(var d=(r.mode&1)!==0;he!==null;){var m=he,y=m.child;if(m.tag===22&&d){var E=m.memoizedState!==null||Qc;if(!E){var O=m.alternate,M=O!==null&&O.memoizedState!==null||Pn;O=Qc;var H=Pn;if(Qc=E,(Pn=M)&&!H)for(he=m;he!==null;)E=he,M=E.child,E.tag===22&&E.memoizedState!==null?Bb(m):M!==null?(M.return=E,he=M):Bb(m);for(;y!==null;)he=y,Lb(y),y=y.sibling;he=m,Qc=O,Pn=H}zb(r)}else(m.subtreeFlags&8772)!==0&&y!==null?(y.return=m,he=y):zb(r)}}function zb(r){for(;he!==null;){var i=he;if((i.flags&8772)!==0){var l=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:Pn||Yc(5,i);break;case 1:var d=i.stateNode;if(i.flags&4&&!Pn)if(l===null)d.componentDidMount();else{var m=i.elementType===i.type?l.memoizedProps:Qr(i.type,l.memoizedProps);d.componentDidUpdate(m,l.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var y=i.updateQueue;y!==null&&$0(i,y,d);break;case 3:var E=i.updateQueue;if(E!==null){if(l=null,i.child!==null)switch(i.child.tag){case 5:l=i.child.stateNode;break;case 1:l=i.child.stateNode}$0(i,E,l)}break;case 5:var O=i.stateNode;if(l===null&&i.flags&4){l=O;var M=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":M.autoFocus&&l.focus();break;case"img":M.src&&(l.src=M.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var H=i.alternate;if(H!==null){var J=H.memoizedState;if(J!==null){var re=J.dehydrated;re!==null&&si(re)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Pn||i.flags&512&&yp(i)}catch(Z){jt(i,i.return,Z)}}if(i===r){he=null;break}if(l=i.sibling,l!==null){l.return=i.return,he=l;break}he=i.return}}function $b(r){for(;he!==null;){var i=he;if(i===r){he=null;break}var l=i.sibling;if(l!==null){l.return=i.return,he=l;break}he=i.return}}function Bb(r){for(;he!==null;){var i=he;try{switch(i.tag){case 0:case 11:case 15:var l=i.return;try{Yc(4,i)}catch(M){jt(i,l,M)}break;case 1:var d=i.stateNode;if(typeof d.componentDidMount=="function"){var m=i.return;try{d.componentDidMount()}catch(M){jt(i,m,M)}}var y=i.return;try{yp(i)}catch(M){jt(i,y,M)}break;case 5:var E=i.return;try{yp(i)}catch(M){jt(i,E,M)}}}catch(M){jt(i,i.return,M)}if(i===r){he=null;break}var O=i.sibling;if(O!==null){O.return=i.return,he=O;break}he=i.return}}var vR=Math.ceil,Xc=N.ReactCurrentDispatcher,Sp=N.ReactCurrentOwner,Rr=N.ReactCurrentBatchConfig,Qe=0,an=null,Ut=null,fn=0,hr=0,da=di(0),Zt=0,Fl=null,rs=0,Zc=0,xp=0,Ll=null,Gn=null,wp=0,fa=1/0,Wo=null,Jc=!1,Cp=null,yi=null,ed=!1,vi=null,td=0,zl=0,kp=null,nd=-1,rd=0;function Fn(){return(Qe&6)!==0?$e():nd!==-1?nd:nd=$e()}function bi(r){return(r.mode&1)===0?1:(Qe&2)!==0&&fn!==0?fn&-fn:tR.transition!==null?(rd===0&&(rd=pc()),rd):(r=Ze,r!==0||(r=window.event,r=r===void 0?16:dt(r.type)),r)}function Zr(r,i,l,d){if(50<zl)throw zl=0,kp=null,Error(n(185));Ki(r,l,d),((Qe&2)===0||r!==an)&&(r===an&&((Qe&2)===0&&(Zc|=l),Zt===4&&Si(r,fn)),Qn(r,d),l===1&&Qe===0&&(i.mode&1)===0&&(fa=$e()+500,Oc&&hi()))}function Qn(r,i){var l=r.callbackNode;ll(r,i);var d=Bs(r,r===an?fn:0);if(d===0)l!==null&&te(l),r.callbackNode=null,r.callbackPriority=0;else if(i=d&-d,r.callbackPriority!==i){if(l!=null&&te(l),i===1)r.tag===0?eR(Ub.bind(null,r)):P0(Ub.bind(null,r)),YP(function(){(Qe&6)===0&&hi()}),l=null;else{switch(mc(d)){case 1:l=Tt;break;case 4:l=In;break;case 16:l=ur;break;case 536870912:l=Ot;break;default:l=ur}l=Xb(l,Vb.bind(null,r))}r.callbackPriority=i,r.callbackNode=l}}function Vb(r,i){if(nd=-1,rd=0,(Qe&6)!==0)throw Error(n(327));var l=r.callbackNode;if(ha()&&r.callbackNode!==l)return null;var d=Bs(r,r===an?fn:0);if(d===0)return null;if((d&30)!==0||(d&r.expiredLanes)!==0||i)i=od(r,d);else{i=d;var m=Qe;Qe|=2;var y=Hb();(an!==r||fn!==i)&&(Wo=null,fa=$e()+500,is(r,i));do try{xR();break}catch(O){Wb(r,O)}while(!0);Vh(),Xc.current=y,Qe=m,Ut!==null?i=0:(an=null,fn=0,i=Zt)}if(i!==0){if(i===2&&(m=ul(r),m!==0&&(d=m,i=Ep(r,m))),i===1)throw l=Fl,is(r,0),Si(r,d),Qn(r,$e()),l;if(i===6)Si(r,d);else{if(m=r.current.alternate,(d&30)===0&&!bR(m)&&(i=od(r,d),i===2&&(y=ul(r),y!==0&&(d=y,i=Ep(r,y))),i===1))throw l=Fl,is(r,0),Si(r,d),Qn(r,$e()),l;switch(r.finishedWork=m,r.finishedLanes=d,i){case 0:case 1:throw Error(n(345));case 2:ss(r,Gn,Wo);break;case 3:if(Si(r,d),(d&130023424)===d&&(i=wp+500-$e(),10<i)){if(Bs(r,0)!==0)break;if(m=r.suspendedLanes,(m&d)!==d){Fn(),r.pingedLanes|=r.suspendedLanes&m;break}r.timeoutHandle=Oh(ss.bind(null,r,Gn,Wo),i);break}ss(r,Gn,Wo);break;case 4:if(Si(r,d),(d&4194240)===d)break;for(i=r.eventTimes,m=-1;0<d;){var E=31-cr(d);y=1<<E,E=i[E],E>m&&(m=E),d&=~y}if(d=m,d=$e()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*vR(d/1960))-d,10<d){r.timeoutHandle=Oh(ss.bind(null,r,Gn,Wo),d);break}ss(r,Gn,Wo);break;case 5:ss(r,Gn,Wo);break;default:throw Error(n(329))}}}return Qn(r,$e()),r.callbackNode===l?Vb.bind(null,r):null}function Ep(r,i){var l=Ll;return r.current.memoizedState.isDehydrated&&(is(r,i).flags|=256),r=od(r,i),r!==2&&(i=Gn,Gn=l,i!==null&&Tp(i)),r}function Tp(r){Gn===null?Gn=r:Gn.push.apply(Gn,r)}function bR(r){for(var i=r;;){if(i.flags&16384){var l=i.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var d=0;d<l.length;d++){var m=l[d],y=m.getSnapshot;m=m.value;try{if(!Kr(y(),m))return!1}catch{return!1}}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Si(r,i){for(i&=~xp,i&=~Zc,r.suspendedLanes|=i,r.pingedLanes&=~i,r=r.expirationTimes;0<i;){var l=31-cr(i),d=1<<l;r[l]=-1,i&=~d}}function Ub(r){if((Qe&6)!==0)throw Error(n(327));ha();var i=Bs(r,0);if((i&1)===0)return Qn(r,$e()),null;var l=od(r,i);if(r.tag!==0&&l===2){var d=ul(r);d!==0&&(i=d,l=Ep(r,d))}if(l===1)throw l=Fl,is(r,0),Si(r,i),Qn(r,$e()),l;if(l===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=i,ss(r,Gn,Wo),Qn(r,$e()),null}function _p(r,i){var l=Qe;Qe|=1;try{return r(i)}finally{Qe=l,Qe===0&&(fa=$e()+500,Oc&&hi())}}function os(r){vi!==null&&vi.tag===0&&(Qe&6)===0&&ha();var i=Qe;Qe|=1;var l=Rr.transition,d=Ze;try{if(Rr.transition=null,Ze=1,r)return r()}finally{Ze=d,Rr.transition=l,Qe=i,(Qe&6)===0&&hi()}}function Pp(){hr=da.current,vt(da)}function is(r,i){r.finishedWork=null,r.finishedLanes=0;var l=r.timeoutHandle;if(l!==-1&&(r.timeoutHandle=-1,QP(l)),Ut!==null)for(l=Ut.return;l!==null;){var d=l;switch(Fh(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&Rc();break;case 3:la(),vt(Hn),vt(En),Yh();break;case 5:Gh(d);break;case 4:la();break;case 13:vt(_t);break;case 19:vt(_t);break;case 10:Uh(d.type._context);break;case 22:case 23:Pp()}l=l.return}if(an=r,Ut=r=xi(r.current,null),fn=hr=i,Zt=0,Fl=null,xp=Zc=rs=0,Gn=Ll=null,es!==null){for(i=0;i<es.length;i++)if(l=es[i],d=l.interleaved,d!==null){l.interleaved=null;var m=d.next,y=l.pending;if(y!==null){var E=y.next;y.next=m,d.next=E}l.pending=d}es=null}return r}function Wb(r,i){do{var l=Ut;try{if(Vh(),Bc.current=Hc,Vc){for(var d=Pt.memoizedState;d!==null;){var m=d.queue;m!==null&&(m.pending=null),d=d.next}Vc=!1}if(ns=0,sn=Xt=Pt=null,Ol=!1,jl=0,Sp.current=null,l===null||l.return===null){Zt=1,Fl=i,Ut=null;break}e:{var y=r,E=l.return,O=l,M=i;if(i=fn,O.flags|=32768,M!==null&&typeof M=="object"&&typeof M.then=="function"){var H=M,J=O,re=J.tag;if((J.mode&1)===0&&(re===0||re===11||re===15)){var Z=J.alternate;Z?(J.updateQueue=Z.updateQueue,J.memoizedState=Z.memoizedState,J.lanes=Z.lanes):(J.updateQueue=null,J.memoizedState=null)}var ce=mb(E);if(ce!==null){ce.flags&=-257,gb(ce,E,O,y,i),ce.mode&1&&pb(y,H,i),i=ce,M=H;var me=i.updateQueue;if(me===null){var ye=new Set;ye.add(M),i.updateQueue=ye}else me.add(M);break e}else{if((i&1)===0){pb(y,H,i),Rp();break e}M=Error(n(426))}}else if(Ct&&O.mode&1){var $t=mb(E);if($t!==null){($t.flags&65536)===0&&($t.flags|=256),gb($t,E,O,y,i),$h(ua(M,O));break e}}y=M=ua(M,O),Zt!==4&&(Zt=2),Ll===null?Ll=[y]:Ll.push(y),y=E;do{switch(y.tag){case 3:y.flags|=65536,i&=-i,y.lanes|=i;var V=fb(y,M,i);z0(y,V);break e;case 1:O=M;var L=y.type,W=y.stateNode;if((y.flags&128)===0&&(typeof L.getDerivedStateFromError=="function"||W!==null&&typeof W.componentDidCatch=="function"&&(yi===null||!yi.has(W)))){y.flags|=65536,i&=-i,y.lanes|=i;var oe=hb(y,O,i);z0(y,oe);break e}}y=y.return}while(y!==null)}Kb(l)}catch(be){i=be,Ut===l&&l!==null&&(Ut=l=l.return);continue}break}while(!0)}function Hb(){var r=Xc.current;return Xc.current=Hc,r===null?Hc:r}function Rp(){(Zt===0||Zt===3||Zt===2)&&(Zt=4),an===null||(rs&268435455)===0&&(Zc&268435455)===0||Si(an,fn)}function od(r,i){var l=Qe;Qe|=2;var d=Hb();(an!==r||fn!==i)&&(Wo=null,is(r,i));do try{SR();break}catch(m){Wb(r,m)}while(!0);if(Vh(),Qe=l,Xc.current=d,Ut!==null)throw Error(n(261));return an=null,fn=0,Zt}function SR(){for(;Ut!==null;)qb(Ut)}function xR(){for(;Ut!==null&&!pe();)qb(Ut)}function qb(r){var i=Yb(r.alternate,r,hr);r.memoizedProps=r.pendingProps,i===null?Kb(r):Ut=i,Sp.current=null}function Kb(r){var i=r;do{var l=i.alternate;if(r=i.return,(i.flags&32768)===0){if(l=hR(l,i,hr),l!==null){Ut=l;return}}else{if(l=pR(l,i),l!==null){l.flags&=32767,Ut=l;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{Zt=6,Ut=null;return}}if(i=i.sibling,i!==null){Ut=i;return}Ut=i=r}while(i!==null);Zt===0&&(Zt=5)}function ss(r,i,l){var d=Ze,m=Rr.transition;try{Rr.transition=null,Ze=1,wR(r,i,l,d)}finally{Rr.transition=m,Ze=d}return null}function wR(r,i,l,d){do ha();while(vi!==null);if((Qe&6)!==0)throw Error(n(327));l=r.finishedWork;var m=r.finishedLanes;if(l===null)return null;if(r.finishedWork=null,r.finishedLanes=0,l===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var y=l.lanes|l.childLanes;if(uh(r,y),r===an&&(Ut=an=null,fn=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||ed||(ed=!0,Xb(ur,function(){return ha(),null})),y=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||y){y=Rr.transition,Rr.transition=null;var E=Ze;Ze=1;var O=Qe;Qe|=4,Sp.current=null,gR(r,l),Fb(l,r),VP(Rh),P=!!Ph,Rh=Ph=null,r.current=l,yR(l),et(),Qe=O,Ze=E,Rr.transition=y}else r.current=l;if(ed&&(ed=!1,vi=r,td=m),y=r.pendingLanes,y===0&&(yi=null),ih(l.stateNode),Qn(r,$e()),i!==null)for(d=r.onRecoverableError,l=0;l<i.length;l++)m=i[l],d(m.value,{componentStack:m.stack,digest:m.digest});if(Jc)throw Jc=!1,r=Cp,Cp=null,r;return(td&1)!==0&&r.tag!==0&&ha(),y=r.pendingLanes,(y&1)!==0?r===kp?zl++:(zl=0,kp=r):zl=0,hi(),null}function ha(){if(vi!==null){var r=mc(td),i=Rr.transition,l=Ze;try{if(Rr.transition=null,Ze=16>r?16:r,vi===null)var d=!1;else{if(r=vi,vi=null,td=0,(Qe&6)!==0)throw Error(n(331));var m=Qe;for(Qe|=4,he=r.current;he!==null;){var y=he,E=y.child;if((he.flags&16)!==0){var O=y.deletions;if(O!==null){for(var M=0;M<O.length;M++){var H=O[M];for(he=H;he!==null;){var J=he;switch(J.tag){case 0:case 11:case 15:Dl(8,J,y)}var re=J.child;if(re!==null)re.return=J,he=re;else for(;he!==null;){J=he;var Z=J.sibling,ce=J.return;if(jb(J),J===H){he=null;break}if(Z!==null){Z.return=ce,he=Z;break}he=ce}}}var me=y.alternate;if(me!==null){var ye=me.child;if(ye!==null){me.child=null;do{var $t=ye.sibling;ye.sibling=null,ye=$t}while(ye!==null)}}he=y}}if((y.subtreeFlags&2064)!==0&&E!==null)E.return=y,he=E;else e:for(;he!==null;){if(y=he,(y.flags&2048)!==0)switch(y.tag){case 0:case 11:case 15:Dl(9,y,y.return)}var V=y.sibling;if(V!==null){V.return=y.return,he=V;break e}he=y.return}}var L=r.current;for(he=L;he!==null;){E=he;var W=E.child;if((E.subtreeFlags&2064)!==0&&W!==null)W.return=E,he=W;else e:for(E=L;he!==null;){if(O=he,(O.flags&2048)!==0)try{switch(O.tag){case 0:case 11:case 15:Yc(9,O)}}catch(be){jt(O,O.return,be)}if(O===E){he=null;break e}var oe=O.sibling;if(oe!==null){oe.return=O.return,he=oe;break e}he=O.return}}if(Qe=m,hi(),Nn&&typeof Nn.onPostCommitFiberRoot=="function")try{Nn.onPostCommitFiberRoot(ho,r)}catch{}d=!0}return d}finally{Ze=l,Rr.transition=i}}return!1}function Gb(r,i,l){i=ua(l,i),i=fb(r,i,1),r=mi(r,i,1),i=Fn(),r!==null&&(Ki(r,1,i),Qn(r,i))}function jt(r,i,l){if(r.tag===3)Gb(r,r,l);else for(;i!==null;){if(i.tag===3){Gb(i,r,l);break}else if(i.tag===1){var d=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(yi===null||!yi.has(d))){r=ua(l,r),r=hb(i,r,1),i=mi(i,r,1),r=Fn(),i!==null&&(Ki(i,1,r),Qn(i,r));break}}i=i.return}}function CR(r,i,l){var d=r.pingCache;d!==null&&d.delete(i),i=Fn(),r.pingedLanes|=r.suspendedLanes&l,an===r&&(fn&l)===l&&(Zt===4||Zt===3&&(fn&130023424)===fn&&500>$e()-wp?is(r,0):xp|=l),Qn(r,i)}function Qb(r,i){i===0&&((r.mode&1)===0?i=1:(i=$s,$s<<=1,($s&130023424)===0&&($s=4194304)));var l=Fn();r=Bo(r,i),r!==null&&(Ki(r,i,l),Qn(r,l))}function kR(r){var i=r.memoizedState,l=0;i!==null&&(l=i.retryLane),Qb(r,l)}function ER(r,i){var l=0;switch(r.tag){case 13:var d=r.stateNode,m=r.memoizedState;m!==null&&(l=m.retryLane);break;case 19:d=r.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(i),Qb(r,l)}var Yb;Yb=function(r,i,l){if(r!==null)if(r.memoizedProps!==i.pendingProps||Hn.current)Kn=!0;else{if((r.lanes&l)===0&&(i.flags&128)===0)return Kn=!1,fR(r,i,l);Kn=(r.flags&131072)!==0}else Kn=!1,Ct&&(i.flags&1048576)!==0&&R0(i,Mc,i.index);switch(i.lanes=0,i.tag){case 2:var d=i.type;Gc(r,i),r=i.pendingProps;var m=ta(i,En.current);aa(i,l),m=Jh(null,i,d,r,m,l);var y=ep();return i.flags|=1,typeof m=="object"&&m!==null&&typeof m.render=="function"&&m.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,qn(d)?(y=!0,Ac(i)):y=!1,i.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,qh(i),m.updater=qc,i.stateNode=m,m._reactInternals=i,sp(i,d,r,l),i=cp(null,i,d,!0,y,l)):(i.tag=0,Ct&&y&&Dh(i),Dn(null,i,m,l),i=i.child),i;case 16:d=i.elementType;e:{switch(Gc(r,i),r=i.pendingProps,m=d._init,d=m(d._payload),i.type=d,m=i.tag=_R(d),r=Qr(d,r),m){case 0:i=up(null,i,d,r,l);break e;case 1:i=wb(null,i,d,r,l);break e;case 11:i=yb(null,i,d,r,l);break e;case 14:i=vb(null,i,d,Qr(d.type,r),l);break e}throw Error(n(306,d,""))}return i;case 0:return d=i.type,m=i.pendingProps,m=i.elementType===d?m:Qr(d,m),up(r,i,d,m,l);case 1:return d=i.type,m=i.pendingProps,m=i.elementType===d?m:Qr(d,m),wb(r,i,d,m,l);case 3:e:{if(Cb(i),r===null)throw Error(n(387));d=i.pendingProps,y=i.memoizedState,m=y.element,L0(r,i),zc(i,d,null,l);var E=i.memoizedState;if(d=E.element,y.isDehydrated)if(y={element:d,isDehydrated:!1,cache:E.cache,pendingSuspenseBoundaries:E.pendingSuspenseBoundaries,transitions:E.transitions},i.updateQueue.baseState=y,i.memoizedState=y,i.flags&256){m=ua(Error(n(423)),i),i=kb(r,i,d,l,m);break e}else if(d!==m){m=ua(Error(n(424)),i),i=kb(r,i,d,l,m);break e}else for(fr=ci(i.stateNode.containerInfo.firstChild),dr=i,Ct=!0,Gr=null,l=D0(i,null,d,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(oa(),d===m){i=Uo(r,i,l);break e}Dn(r,i,d,l)}i=i.child}return i;case 5:return B0(i),r===null&&zh(i),d=i.type,m=i.pendingProps,y=r!==null?r.memoizedProps:null,E=m.children,Ah(d,m)?E=null:y!==null&&Ah(d,y)&&(i.flags|=32),xb(r,i),Dn(r,i,E,l),i.child;case 6:return r===null&&zh(i),null;case 13:return Eb(r,i,l);case 4:return Kh(i,i.stateNode.containerInfo),d=i.pendingProps,r===null?i.child=ia(i,null,d,l):Dn(r,i,d,l),i.child;case 11:return d=i.type,m=i.pendingProps,m=i.elementType===d?m:Qr(d,m),yb(r,i,d,m,l);case 7:return Dn(r,i,i.pendingProps,l),i.child;case 8:return Dn(r,i,i.pendingProps.children,l),i.child;case 12:return Dn(r,i,i.pendingProps.children,l),i.child;case 10:e:{if(d=i.type._context,m=i.pendingProps,y=i.memoizedProps,E=m.value,pt(Dc,d._currentValue),d._currentValue=E,y!==null)if(Kr(y.value,E)){if(y.children===m.children&&!Hn.current){i=Uo(r,i,l);break e}}else for(y=i.child,y!==null&&(y.return=i);y!==null;){var O=y.dependencies;if(O!==null){E=y.child;for(var M=O.firstContext;M!==null;){if(M.context===d){if(y.tag===1){M=Vo(-1,l&-l),M.tag=2;var H=y.updateQueue;if(H!==null){H=H.shared;var J=H.pending;J===null?M.next=M:(M.next=J.next,J.next=M),H.pending=M}}y.lanes|=l,M=y.alternate,M!==null&&(M.lanes|=l),Wh(y.return,l,i),O.lanes|=l;break}M=M.next}}else if(y.tag===10)E=y.type===i.type?null:y.child;else if(y.tag===18){if(E=y.return,E===null)throw Error(n(341));E.lanes|=l,O=E.alternate,O!==null&&(O.lanes|=l),Wh(E,l,i),E=y.sibling}else E=y.child;if(E!==null)E.return=y;else for(E=y;E!==null;){if(E===i){E=null;break}if(y=E.sibling,y!==null){y.return=E.return,E=y;break}E=E.return}y=E}Dn(r,i,m.children,l),i=i.child}return i;case 9:return m=i.type,d=i.pendingProps.children,aa(i,l),m=_r(m),d=d(m),i.flags|=1,Dn(r,i,d,l),i.child;case 14:return d=i.type,m=Qr(d,i.pendingProps),m=Qr(d.type,m),vb(r,i,d,m,l);case 15:return bb(r,i,i.type,i.pendingProps,l);case 17:return d=i.type,m=i.pendingProps,m=i.elementType===d?m:Qr(d,m),Gc(r,i),i.tag=1,qn(d)?(r=!0,Ac(i)):r=!1,aa(i,l),cb(i,d,m),sp(i,d,m,l),cp(null,i,d,!0,r,l);case 19:return _b(r,i,l);case 22:return Sb(r,i,l)}throw Error(n(156,i.tag))};function Xb(r,i){return I(r,i)}function TR(r,i,l,d){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ar(r,i,l,d){return new TR(r,i,l,d)}function Ap(r){return r=r.prototype,!(!r||!r.isReactComponent)}function _R(r){if(typeof r=="function")return Ap(r)?1:0;if(r!=null){if(r=r.$$typeof,r===Ee)return 11;if(r===ke)return 14}return 2}function xi(r,i){var l=r.alternate;return l===null?(l=Ar(r.tag,i,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=i,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&14680064,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,i=r.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l}function id(r,i,l,d,m,y){var E=2;if(d=r,typeof r=="function")Ap(r)&&(E=1);else if(typeof r=="string")E=5;else e:switch(r){case D:return as(l.children,m,y,i);case U:E=8,m|=8;break;case X:return r=Ar(12,l,i,m|2),r.elementType=X,r.lanes=y,r;case Te:return r=Ar(13,l,i,m),r.elementType=Te,r.lanes=y,r;case xe:return r=Ar(19,l,i,m),r.elementType=xe,r.lanes=y,r;case ue:return sd(l,m,y,i);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case ne:E=10;break e;case ee:E=9;break e;case Ee:E=11;break e;case ke:E=14;break e;case _e:E=16,d=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return i=Ar(E,l,i,m),i.elementType=r,i.type=d,i.lanes=y,i}function as(r,i,l,d){return r=Ar(7,r,d,i),r.lanes=l,r}function sd(r,i,l,d){return r=Ar(22,r,d,i),r.elementType=ue,r.lanes=l,r.stateNode={isHidden:!1},r}function Op(r,i,l){return r=Ar(6,r,null,i),r.lanes=l,r}function jp(r,i,l){return i=Ar(4,r.children!==null?r.children:[],r.key,i),i.lanes=l,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}function PR(r,i,l,d,m){this.tag=i,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Us(0),this.expirationTimes=Us(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Us(0),this.identifierPrefix=d,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null}function Mp(r,i,l,d,m,y,E,O,M){return r=new PR(r,i,l,O,M),i===1?(i=1,y===!0&&(i|=8)):i=0,y=Ar(3,null,null,i),r.current=y,y.stateNode=r,y.memoizedState={element:d,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},qh(y),r}function RR(r,i,l){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:d==null?null:""+d,children:r,containerInfo:i,implementation:l}}function Zb(r){if(!r)return fi;r=r._reactInternals;e:{if(cn(r)!==r||r.tag!==1)throw Error(n(170));var i=r;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(qn(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(n(171))}if(r.tag===1){var l=r.type;if(qn(l))return T0(r,l,i)}return i}function Jb(r,i,l,d,m,y,E,O,M){return r=Mp(l,d,!0,r,m,y,E,O,M),r.context=Zb(null),l=r.current,d=Fn(),m=bi(l),y=Vo(d,m),y.callback=i??null,mi(l,y,m),r.current.lanes=m,Ki(r,m,d),Qn(r,d),r}function ad(r,i,l,d){var m=i.current,y=Fn(),E=bi(m);return l=Zb(l),i.context===null?i.context=l:i.pendingContext=l,i=Vo(y,E),i.payload={element:r},d=d===void 0?null:d,d!==null&&(i.callback=d),r=mi(m,i,E),r!==null&&(Zr(r,m,E,y),Lc(r,m,E)),E}function ld(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function eS(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<i?l:i}}function Ip(r,i){eS(r,i),(r=r.alternate)&&eS(r,i)}function AR(){return null}var tS=typeof reportError=="function"?reportError:function(r){console.error(r)};function Np(r){this._internalRoot=r}ud.prototype.render=Np.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(n(409));ad(r,i,null,null)},ud.prototype.unmount=Np.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;os(function(){ad(null,r,null,null)}),i[Fo]=null}};function ud(r){this._internalRoot=r}ud.prototype.unstable_scheduleHydration=function(r){if(r){var i=yc();r={blockedOn:null,target:r,priority:i};for(var l=0;l<kr.length&&i!==0&&i<kr[l].priority;l++);kr.splice(l,0,r),l===0&&hl(r)}};function Dp(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function cd(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function nS(){}function OR(r,i,l,d,m){if(m){if(typeof d=="function"){var y=d;d=function(){var H=ld(E);y.call(H)}}var E=Jb(i,d,r,0,null,!1,!1,"",nS);return r._reactRootContainer=E,r[Fo]=E.current,Cl(r.nodeType===8?r.parentNode:r),os(),E}for(;m=r.lastChild;)r.removeChild(m);if(typeof d=="function"){var O=d;d=function(){var H=ld(M);O.call(H)}}var M=Mp(r,0,!1,null,null,!1,!1,"",nS);return r._reactRootContainer=M,r[Fo]=M.current,Cl(r.nodeType===8?r.parentNode:r),os(function(){ad(i,M,l,d)}),M}function dd(r,i,l,d,m){var y=l._reactRootContainer;if(y){var E=y;if(typeof m=="function"){var O=m;m=function(){var M=ld(E);O.call(M)}}ad(i,E,r,m)}else E=OR(l,i,r,m,d);return ld(E)}gc=function(r){switch(r.tag){case 3:var i=r.stateNode;if(i.current.memoizedState.isDehydrated){var l=qi(i.pendingLanes);l!==0&&(cl(i,l|1),Qn(i,$e()),(Qe&6)===0&&(fa=$e()+500,hi()))}break;case 13:os(function(){var d=Bo(r,1);if(d!==null){var m=Fn();Zr(d,r,1,m)}}),Ip(r,1)}},dl=function(r){if(r.tag===13){var i=Bo(r,134217728);if(i!==null){var l=Fn();Zr(i,r,134217728,l)}Ip(r,134217728)}},Ws=function(r){if(r.tag===13){var i=bi(r),l=Bo(r,i);if(l!==null){var d=Fn();Zr(l,r,i,d)}Ip(r,i)}},yc=function(){return Ze},vc=function(r,i){var l=Ze;try{return Ze=r,i()}finally{Ze=l}},Ur=function(r,i,l){switch(i){case"input":if(St(r,l),i=l.name,l.type==="radio"&&i!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<l.length;i++){var d=l[i];if(d!==r&&d.form===r.form){var m=Pc(d);if(!m)throw Error(n(90));Nt(d),St(d,m)}}}break;case"textarea":br(r,l);break;case"select":i=l.value,i!=null&&vn(r,!!l.multiple,i,!1)}},xt=_p,Wr=os;var jR={usingClientEntryPoint:!1,Events:[Tl,Js,Pc,Is,Ns,_p]},$l={findFiberByHostInstance:Yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},MR={bundleType:$l.bundleType,version:$l.version,rendererPackageName:$l.rendererPackageName,rendererConfig:$l.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:N.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=Ls(r),r===null?null:r.stateNode},findFiberByHostInstance:$l.findFiberByHostInstance||AR,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 fd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fd.isDisabled&&fd.supportsFiber)try{ho=fd.inject(MR),Nn=fd}catch{}}return Yn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jR,Yn.createPortal=function(r,i){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Dp(i))throw Error(n(200));return RR(r,i,null,l)},Yn.createRoot=function(r,i){if(!Dp(r))throw Error(n(299));var l=!1,d="",m=tS;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onRecoverableError!==void 0&&(m=i.onRecoverableError)),i=Mp(r,1,!1,null,null,l,!1,d,m),r[Fo]=i.current,Cl(r.nodeType===8?r.parentNode:r),new Np(i)},Yn.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=Ls(i),r=r===null?null:r.stateNode,r},Yn.flushSync=function(r){return os(r)},Yn.hydrate=function(r,i,l){if(!cd(i))throw Error(n(200));return dd(null,r,i,!0,l)},Yn.hydrateRoot=function(r,i,l){if(!Dp(r))throw Error(n(405));var d=l!=null&&l.hydratedSources||null,m=!1,y="",E=tS;if(l!=null&&(l.unstable_strictMode===!0&&(m=!0),l.identifierPrefix!==void 0&&(y=l.identifierPrefix),l.onRecoverableError!==void 0&&(E=l.onRecoverableError)),i=Jb(i,null,r,1,l??null,m,!1,y,E),r[Fo]=i.current,Cl(r),d)for(r=0;r<d.length;r++)l=d[r],m=l._getVersion,m=m(l._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[l,m]:i.mutableSourceEagerHydrationData.push(l,m);return new ud(i)},Yn.render=function(r,i,l){if(!cd(i))throw Error(n(200));return dd(null,r,i,!1,l)},Yn.unmountComponentAtNode=function(r){if(!cd(r))throw Error(n(40));return r._reactRootContainer?(os(function(){dd(null,null,r,!1,function(){r._reactRootContainer=null,r[Fo]=null})}),!0):!1},Yn.unstable_batchedUpdates=_p,Yn.unstable_renderSubtreeIntoContainer=function(r,i,l,d){if(!cd(l))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return dd(r,i,l,!1,d)},Yn.version="18.3.1-next-f1338f8080-20240426",Yn}var cS;function tC(){if(cS)return zp.exports;cS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),zp.exports=BR(),zp.exports}var dS;function VR(){if(dS)return hd;dS=1;var e=tC();return hd.createRoot=e.createRoot,hd.hydrateRoot=e.hydrateRoot,hd}var UR=VR();const WR=Hu(UR);function HR(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function qR(){return!!(globalThis!=null&&globalThis.document)}function nC(e){return e.parentElement&&nC(e.parentElement)?!0:e.hidden}function KR(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function GR(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function QR(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const o of t)if(o!=null)for(const s in o)Object.prototype.hasOwnProperty.call(o,s)&&(s in n&&delete n[s],n[s]=o[s]);return n}const Ie=e=>e?"":void 0,Xo=e=>e?!0:void 0;function Jm(e){return Array.isArray(e)}function gn(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Jm(e)}function YR(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function XR(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function eg(e){if(e==null)return e;const{unitless:t}=XR(e);return t||typeof e=="number"?`${e}px`:e}const rC=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,cy=e=>Object.fromEntries(Object.entries(e).sort(rC));function fS(e){const t=cy(e);return Object.assign(Object.values(t),t)}function ZR(e){const t=Object.keys(cy(e));return new Set(t)}function hS(e){if(!e)return e;e=eg(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function ru(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${eg(e)})`),t&&n.push("and",`(max-width: ${eg(t)})`),n.join(" ")}function JR(e){if(!e)return null;e.base=e.base??"0px";const t=fS(e),n=Object.entries(e).sort(rC).map(([a,u],c,f)=>{let[,p]=f[c+1]??[];return p=parseFloat(p)>0?hS(p):void 0,{_minW:hS(u),breakpoint:a,minW:u,maxW:p,maxWQuery:ru(null,p),minWQuery:ru(u),minMaxQuery:ru(u,p)}}),o=ZR(e),s=Array.from(o.values());return{keys:o,normalized:t,isResponsive(a){const u=Object.keys(a);return u.length>0&&u.every(c=>o.has(c))},asObject:cy(e),asArray:fS(e),details:n,get(a){return n.find(u=>u.breakpoint===a)},media:[null,...t.map(a=>ru(a)).slice(1)],toArrayValue(a){if(!gn(a))throw new Error("toArrayValue: value must be an object");const u=s.map(c=>a[c]??null);for(;YR(u)===null;)u.pop();return u},toObjectValue(a){if(!Array.isArray(a))throw new Error("toObjectValue: value must be an array");return a.reduce((u,c,f)=>{const p=s[f];return p!=null&&c!=null&&(u[p]=c),u},{})}}}function eA(...e){return function(...n){e.forEach(o=>o==null?void 0:o(...n))}}function Ke(...e){return function(n){e.some(o=>(o==null||o(n),n==null?void 0:n.defaultPrevented))}}function tA(e){return C.Children.toArray(e).filter(t=>C.isValidElement(t))}function oC(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function nA(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function yn(e={}){const{name:t,strict:n=!0,hookName:o="useContext",providerName:s="Provider",errorMessage:a,defaultValue:u}=e,c=C.createContext(u);c.displayName=t;function f(){var h;const p=C.useContext(c);if(!p&&n){const g=new Error(a??nA(o,s));throw g.name="ContextError",(h=Error.captureStackTrace)==null||h.call(Error,g,f),g}return p}return[c.Provider,f,c]}const Ue=(...e)=>e.filter(Boolean).join(" "),rA=e=>e.hasAttribute("tabindex");function oA(e){if(!HR(e)||nC(e)||GR(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const o={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in o?o[t]():KR(e)?!0:rA(e)}const iA=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],sA=iA.join(),aA=e=>e.offsetWidth>0&&e.offsetHeight>0;function lA(e){const t=Array.from(e.querySelectorAll(sA));return t.unshift(e),t.filter(n=>oA(n)&&aA(n))}function uA(e,t,n,o){const s=typeof t=="string"?t.split("."):[t];for(o=0;o<s.length&&e;o+=1)e=e[s[o]];return e===void 0?n:e}const cA=e=>{const t=new WeakMap;return(o,s,a,u)=>{if(typeof o>"u")return e(o,s,a);t.has(o)||t.set(o,new Map);const c=t.get(o);if(c.has(s))return c.get(s);const f=e(o,s,a,u);return c.set(s,f),f}},iC=cA(uA),dA=e=>e.default||e;function fA(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function sC(e,t){let n=fA(e);const o=10**(t??10);return n=Math.round(n*o)/o,t?n.toFixed(t):n.toString()}function pS(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function hA(e,t,n){return e==null?e:(n<t&&console.warn("clamp: max cannot be less than min"),Math.min(Math.max(e,t),n))}function dy(e,t=[]){const n=Object.assign({},e);for(const o of t)o in n&&delete n[o];return n}function pA(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function fy(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):gn(e)?Object.keys(e).reduce((n,o)=>(n[o]=t(e[o]),n),{}):e!=null?t(e):null}const mA=e=>typeof e=="function";function Lr(e,...t){return mA(e)?e(...t):e}function aC(e,t){const n={},o={};for(const[s,a]of Object.entries(e))t.includes(s)?n[s]=a:o[s]=a;return[n,o]}function gA(e,...t){const n=Object.getOwnPropertyDescriptors(e),o=Object.keys(n),s=u=>{const c={};for(let f=0;f<u.length;f++){const p=u[f];n[p]&&(Object.defineProperty(c,p,n[p]),delete n[p])}return c},a=u=>s(Array.isArray(u)?u:o.filter(u));return t.map(a).concat(s(o))}function mS(e,t,n={}){const{stop:o,getKey:s}=n;function a(u,c=[]){if(gn(u)||Array.isArray(u)){const f={};for(const[p,h]of Object.entries(u)){const g=(s==null?void 0:s(p))??p,v=[...c,g];if(o!=null&&o(u,v))return t(u,c);f[g]=a(h,v)}return f}return t(u,c)}return a(e)}var ou={exports:{}};ou.exports;var gS;function yA(){return gS||(gS=1,(function(e,t){var n=200,o="__lodash_hash_undefined__",s=800,a=16,u=9007199254740991,c="[object Arguments]",f="[object Array]",p="[object AsyncFunction]",h="[object Boolean]",g="[object Date]",v="[object Error]",k="[object Function]",x="[object GeneratorFunction]",S="[object Map]",w="[object Number]",T="[object Null]",A="[object Object]",_="[object Proxy]",N="[object RegExp]",R="[object Set]",F="[object String]",D="[object Undefined]",U="[object WeakMap]",X="[object ArrayBuffer]",ne="[object DataView]",ee="[object Float32Array]",Ee="[object Float64Array]",Te="[object Int8Array]",xe="[object Int16Array]",ke="[object Int32Array]",_e="[object Uint8Array]",ue="[object Uint8ClampedArray]",B="[object Uint16Array]",se="[object Uint32Array]",Q=/[\\^$.*+?()[\]{}|]/g,j=/^\[object .+?Constructor\]$/,q=/^(?:0|[1-9]\d*)$/,Y={};Y[ee]=Y[Ee]=Y[Te]=Y[xe]=Y[ke]=Y[_e]=Y[ue]=Y[B]=Y[se]=!0,Y[c]=Y[f]=Y[X]=Y[h]=Y[ne]=Y[g]=Y[v]=Y[k]=Y[S]=Y[w]=Y[A]=Y[N]=Y[R]=Y[F]=Y[U]=!1;var ae=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,le=typeof self=="object"&&self&&self.Object===Object&&self,Se=ae||le||Function("return this")(),ze=t&&!t.nodeType&&t,Pe=ze&&!0&&e&&!e.nodeType&&e,Be=Pe&&Pe.exports===ze,we=Be&&ae.process,ut=(function(){try{var P=Pe&&Pe.require&&Pe.require("util").types;return P||we&&we.binding&&we.binding("util")}catch{}})(),Nt=ut&&ut.isTypedArray;function Dt(P,$,G){switch(G.length){case 0:return P.call($);case 1:return P.call($,G[0]);case 2:return P.call($,G[0],G[1]);case 3:return P.call($,G[0],G[1],G[2])}return P.apply($,G)}function de(P,$){for(var G=-1,fe=Array(P);++G<P;)fe[G]=$(G);return fe}function at(P){return function($){return P($)}}function Ye(P,$){return P==null?void 0:P[$]}function St(P,$){return function(G){return P($(G))}}var Ft=Array.prototype,Lt=Function.prototype,zt=Object.prototype,vn=Se["__core-js_shared__"],bn=Lt.toString,Sn=zt.hasOwnProperty,br=(function(){var P=/[^.]+$/.exec(vn&&vn.keys&&vn.keys.IE_PROTO||"");return P?"Symbol(src)_1."+P:""})(),ir=zt.toString,sr=bn.call(Object),rn=RegExp("^"+bn.call(Sn).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ie=Be?Se.Buffer:void 0,Xe=Se.Symbol,gt=Se.Uint8Array;ie&&ie.allocUnsafe;var At=St(Object.getPrototypeOf,Object),ar=Object.create,Sr=zt.propertyIsEnumerable,Mo=Ft.splice,Qt=Xe?Xe.toStringTag:void 0,jn=(function(){try{var P=ll(Object,"defineProperty");return P({},"",{}),P}catch{}})(),Io=ie?ie.isBuffer:void 0,uo=Math.max,$i=Date.now,Ur=ll(Se,"Map"),un=ll(Object,"create"),co=(function(){function P(){}return function($){if(!po($))return{};if(ar)return ar($);P.prototype=$;var G=new P;return P.prototype=void 0,G}})();function xn(P){var $=-1,G=P==null?0:P.length;for(this.clear();++$<G;){var fe=P[$];this.set(fe[0],fe[1])}}function Is(){this.__data__=un?un(null):{},this.size=0}function Ns(P){var $=this.has(P)&&delete this.__data__[P];return this.size-=$?1:0,$}function xt(P){var $=this.__data__;if(un){var G=$[P];return G===o?void 0:G}return Sn.call($,P)?$[P]:void 0}function Wr(P){var $=this.__data__;return un?$[P]!==void 0:Sn.call($,P)}function Bi(P,$){var G=this.__data__;return this.size+=this.has(P)?0:1,G[P]=un&&$===void 0?o:$,this}xn.prototype.clear=Is,xn.prototype.delete=Ns,xn.prototype.get=xt,xn.prototype.has=Wr,xn.prototype.set=Bi;function Mn(P){var $=-1,G=P==null?0:P.length;for(this.clear();++$<G;){var fe=P[$];this.set(fe[0],fe[1])}}function Hr(){this.__data__=[],this.size=0}function ri(P){var $=this.__data__,G=et($,P);if(G<0)return!1;var fe=$.length-1;return G==fe?$.pop():Mo.call($,G,1),--this.size,!0}function fo(P){var $=this.__data__,G=et($,P);return G<0?void 0:$[G][1]}function al(P){return et(this.__data__,P)>-1}function on(P,$){var G=this.__data__,fe=et(G,P);return fe<0?(++this.size,G.push([P,$])):G[fe][1]=$,this}Mn.prototype.clear=Hr,Mn.prototype.delete=ri,Mn.prototype.get=fo,Mn.prototype.has=al,Mn.prototype.set=on;function Yt(P){var $=-1,G=P==null?0:P.length;for(this.clear();++$<G;){var fe=P[$];this.set(fe[0],fe[1])}}function No(){this.size=0,this.__data__={hash:new xn,map:new(Ur||Mn),string:new xn}}function oi(P){var $=Vs(this,P).delete(P);return this.size-=$?1:0,$}function Vi(P){return Vs(this,P).get(P)}function Ds(P){return Vs(this,P).has(P)}function lr(P,$){var G=Vs(this,P),fe=G.size;return G.set(P,$),this.size+=G.size==fe?0:1,this}Yt.prototype.clear=No,Yt.prototype.delete=oi,Yt.prototype.get=Vi,Yt.prototype.has=Ds,Yt.prototype.set=lr;function cn(P){var $=this.__data__=new Mn(P);this.size=$.size}function Ui(){this.__data__=new Mn,this.size=0}function Wi(P){var $=this.__data__,G=$.delete(P);return this.size=$.size,G}function Fs(P){return this.__data__.get(P)}function Ls(P){return this.__data__.has(P)}function ve(P,$){var G=this.__data__;if(G instanceof Mn){var fe=G.__data__;if(!Ur||fe.length<n-1)return fe.push([P,$]),this.size=++G.size,this;G=this.__data__=new Yt(fe)}return G.set(P,$),this.size=G.size,this}cn.prototype.clear=Ui,cn.prototype.delete=Wi,cn.prototype.get=Fs,cn.prototype.has=Ls,cn.prototype.set=ve;function I(P,$){var G=wr(P),fe=!G&&xr(P),We=!G&&!fe&&ii(P),tt=!G&&!fe&&!We&&hl(P),dt=G||fe||We||tt,Ve=dt?de(P.length,String):[],ct=Ve.length;for(var wn in P)dt&&(wn=="length"||We&&(wn=="offset"||wn=="parent")||tt&&(wn=="buffer"||wn=="byteLength"||wn=="byteOffset")||Us(wn,ct))||Ve.push(wn);return Ve}function te(P,$,G){(G!==void 0&&!Do(P[$],G)||G===void 0&&!($ in P))&&$e(P,$,G)}function pe(P,$,G){var fe=P[$];(!(Sn.call(P,$)&&Do(fe,G))||G===void 0&&!($ in P))&&$e(P,$,G)}function et(P,$){for(var G=P.length;G--;)if(Do(P[G][0],$))return G;return-1}function $e(P,$,G){$=="__proto__"&&jn?jn(P,$,{configurable:!0,enumerable:!0,value:G,writable:!0}):P[$]=G}var wt=Bs();function Tt(P){return P==null?P===void 0?D:T:Qt&&Qt in Object(P)?ul(P):gc(P)}function In(P){return qr(P)&&Tt(P)==c}function ur(P){if(!po(P)||cl(P))return!1;var $=kr(P)?rn:j;return $.test(fl(P))}function Hi(P){return qr(P)&&bc(P.length)&&!!Y[Tt(P)]}function Ot(P){if(!po(P))return mc(P);var $=Ze(P),G=[];for(var fe in P)fe=="constructor"&&($||!Sn.call(P,fe))||G.push(fe);return G}function ho(P,$,G,fe,We){P!==$&&wt($,function(tt,dt){if(We||(We=new cn),po(tt))Nn(P,$,dt,G,ho,fe,We);else{var Ve=fe?fe(Ws(P,dt),tt,dt+"",P,$,We):void 0;Ve===void 0&&(Ve=tt),te(P,dt,Ve)}},pl)}function Nn(P,$,G,fe,We,tt,dt){var Ve=Ws(P,G),ct=Ws($,G),wn=dt.get(ct);if(wn){te(P,G,wn);return}var Cn=tt?tt(Ve,ct,G+"",P,$,dt):void 0,mo=Cn===void 0;if(mo){var li=wr(ct),qs=!li&&ii(ct),kn=!li&&!qs&&hl(ct);Cn=ct,li||qs||kn?wr(Ve)?Cn=Ve:Gi(Ve)?Cn=zs(Ve):qs?(mo=!1,Cn=sh(ct)):kn?(mo=!1,Cn=lh(ct)):Cn=[]:ch(ct)||xr(ct)?(Cn=Ve,xr(Ve)?Cn=Hs(Ve):(!po(Ve)||kr(Ve))&&(Cn=pc(ct))):mo=!1}mo&&(dt.set(ct,Cn),We(Cn,ct,fe,tt,dt),dt.delete(ct)),te(P,G,Cn)}function ih(P,$){return yc(dl(P,$,si),P+"")}var cr=jn?function(P,$){return jn(P,"toString",{configurable:!0,enumerable:!1,value:Qi($),writable:!0})}:si;function sh(P,$){return P.slice()}function ah(P){var $=new P.constructor(P.byteLength);return new gt($).set(new gt(P)),$}function lh(P,$){var G=ah(P.buffer);return new P.constructor(G,P.byteOffset,P.length)}function zs(P,$){var G=-1,fe=P.length;for($||($=Array(fe));++G<fe;)$[G]=P[G];return $}function $s(P,$,G,fe){var We=!G;G||(G={});for(var tt=-1,dt=$.length;++tt<dt;){var Ve=$[tt],ct=void 0;ct===void 0&&(ct=P[Ve]),We?$e(G,Ve,ct):pe(G,Ve,ct)}return G}function qi(P){return ih(function($,G){var fe=-1,We=G.length,tt=We>1?G[We-1]:void 0,dt=We>2?G[2]:void 0;for(tt=P.length>3&&typeof tt=="function"?(We--,tt):void 0,dt&&Ki(G[0],G[1],dt)&&(tt=We<3?void 0:tt,We=1),$=Object($);++fe<We;){var Ve=G[fe];Ve&&P($,Ve,fe,tt)}return $})}function Bs(P){return function($,G,fe){for(var We=-1,tt=Object($),dt=fe($),Ve=dt.length;Ve--;){var ct=dt[++We];if(G(tt[ct],ct,tt)===!1)break}return $}}function Vs(P,$){var G=P.__data__;return uh($)?G[typeof $=="string"?"string":"hash"]:G.map}function ll(P,$){var G=Ye(P,$);return ur(G)?G:void 0}function ul(P){var $=Sn.call(P,Qt),G=P[Qt];try{P[Qt]=void 0;var fe=!0}catch{}var We=ir.call(P);return fe&&($?P[Qt]=G:delete P[Qt]),We}function pc(P){return typeof P.constructor=="function"&&!Ze(P)?co(At(P)):{}}function Us(P,$){var G=typeof P;return $=$??u,!!$&&(G=="number"||G!="symbol"&&q.test(P))&&P>-1&&P%1==0&&P<$}function Ki(P,$,G){if(!po(G))return!1;var fe=typeof $;return(fe=="number"?Cr(G)&&Us($,G.length):fe=="string"&&$ in G)?Do(G[$],P):!1}function uh(P){var $=typeof P;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?P!=="__proto__":P===null}function cl(P){return!!br&&br in P}function Ze(P){var $=P&&P.constructor,G=typeof $=="function"&&$.prototype||zt;return P===G}function mc(P){var $=[];if(P!=null)for(var G in Object(P))$.push(G);return $}function gc(P){return ir.call(P)}function dl(P,$,G){return $=uo($===void 0?P.length-1:$,0),function(){for(var fe=arguments,We=-1,tt=uo(fe.length-$,0),dt=Array(tt);++We<tt;)dt[We]=fe[$+We];We=-1;for(var Ve=Array($+1);++We<$;)Ve[We]=fe[We];return Ve[$]=G(dt),Dt(P,this,Ve)}}function Ws(P,$){if(!($==="constructor"&&typeof P[$]=="function")&&$!="__proto__")return P[$]}var yc=vc(cr);function vc(P){var $=0,G=0;return function(){var fe=$i(),We=a-(fe-G);if(G=fe,We>0){if(++$>=s)return arguments[0]}else $=0;return P.apply(void 0,arguments)}}function fl(P){if(P!=null){try{return bn.call(P)}catch{}try{return P+""}catch{}}return""}function Do(P,$){return P===$||P!==P&&$!==$}var xr=In((function(){return arguments})())?In:function(P){return qr(P)&&Sn.call(P,"callee")&&!Sr.call(P,"callee")},wr=Array.isArray;function Cr(P){return P!=null&&bc(P.length)&&!kr(P)}function Gi(P){return qr(P)&&Cr(P)}var ii=Io||ai;function kr(P){if(!po(P))return!1;var $=Tt(P);return $==k||$==x||$==p||$==_}function bc(P){return typeof P=="number"&&P>-1&&P%1==0&&P<=u}function po(P){var $=typeof P;return P!=null&&($=="object"||$=="function")}function qr(P){return P!=null&&typeof P=="object"}function ch(P){if(!qr(P)||Tt(P)!=A)return!1;var $=At(P);if($===null)return!0;var G=Sn.call($,"constructor")&&$.constructor;return typeof G=="function"&&G instanceof G&&bn.call(G)==sr}var hl=Nt?at(Nt):Hi;function Hs(P){return $s(P,pl(P))}function pl(P){return Cr(P)?I(P):Ot(P)}var dh=qi(function(P,$,G,fe){ho(P,$,G,fe)});function Qi(P){return function(){return P}}function si(P){return P}function ai(){return!1}e.exports=dh})(ou,ou.exports)),ou.exports}var vA=yA();const zr=Hu(vA);function Fr(e,t=[]){const n=C.useRef(e);return C.useEffect(()=>{n.current=e}),C.useCallback((...o)=>{var s;return(s=n.current)==null?void 0:s.call(n,...o)},t)}function bA(e,t,n,o){const s=Fr(n);return C.useEffect(()=>{const a=typeof e=="function"?e():e??document;if(!(!n||!a))return a.addEventListener(t,s,o),()=>{a.removeEventListener(t,s,o)}},[t,e,o,s,n]),()=>{const a=typeof e=="function"?e():e??document;a==null||a.removeEventListener(t,s,o)}}function SA(e={}){const{onChange:t,precision:n,defaultValue:o,value:s,step:a=1,min:u=Number.MIN_SAFE_INTEGER,max:c=Number.MAX_SAFE_INTEGER,keepWithinRange:f=!0}=e,p=Fr(t),[h,g]=C.useState(()=>o==null?"":Vp(o,a,n)??""),v=typeof s<"u",k=v?s:h,x=lC(Ei(k),a),S=n??x,w=C.useCallback(ne=>{ne!==k&&(v||g(ne.toString()),p==null||p(ne.toString(),Ei(ne)))},[p,v,k]),T=C.useCallback(ne=>{let ee=ne;return f&&(ee=hA(ee,u,c)),sC(ee,S)},[S,f,c,u]),A=C.useCallback((ne=a)=>{let ee;k===""?ee=Ei(ne):ee=Ei(k)+ne,ee=T(ee),w(ee)},[T,a,w,k]),_=C.useCallback((ne=a)=>{let ee;k===""?ee=Ei(-ne):ee=Ei(k)-ne,ee=T(ee),w(ee)},[T,a,w,k]),N=C.useCallback(()=>{let ne;o==null?ne="":ne=Vp(o,a,n)??u,w(ne)},[o,n,a,w,u]),R=C.useCallback(ne=>{const ee=Vp(ne,a,S)??u;w(ee)},[S,a,w,u]),F=Ei(k);return{isOutOfRange:F>c||F<u,isAtMax:F===c,isAtMin:F===u,precision:S,value:k,valueAsNumber:F,update:w,reset:N,increment:A,decrement:_,clamp:T,cast:R,setValue:g}}function Ei(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function lC(e,t){return Math.max(pS(t),pS(e))}function Vp(e,t,n){const o=Ei(e);if(Number.isNaN(o))return;const s=lC(o,t);return sC(o,n??s)}const ji=globalThis!=null&&globalThis.document?C.useLayoutEffect:C.useEffect,ff=(e,t)=>{const n=C.useRef(!1),o=C.useRef(!1);C.useEffect(()=>{if(n.current&&o.current)return e();o.current=!0},t),C.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function xA(e,t){const n=Fr(e);C.useEffect(()=>{let o=null;const s=()=>n();return t!==null&&(o=window.setInterval(s,t)),()=>{o&&window.clearInterval(o)}},[t,n])}function wA(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 io(...e){return t=>{e.forEach(n=>{wA(n,t)})}}function CA(...e){return C.useMemo(()=>io(...e),e)}function kA(e,t){const n=Fr(e);C.useEffect(()=>{if(t==null)return;let o=null;return o=window.setTimeout(()=>{n()},t),()=>{o&&window.clearTimeout(o)}},[t,n])}const Jt={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,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}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},So=e=>uC(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Ho=e=>uC(t=>e(t,"~ &"),"[data-peer]",".peer"),uC=(e,...t)=>t.map(e).join(", "),ja={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-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, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=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], &[data-state=indeterminate]",_groupOpen:So(Jt.open),_groupClosed:So(Jt.closed),_groupHover:So(Jt.hover),_peerHover:Ho(Jt.hover),_groupFocus:So(Jt.focus),_peerFocus:Ho(Jt.focus),_groupFocusVisible:So(Jt.focusVisible),_peerFocusVisible:Ho(Jt.focusVisible),_groupActive:So(Jt.active),_peerActive:Ho(Jt.active),_groupDisabled:So(Jt.disabled),_peerDisabled:Ho(Jt.disabled),_groupInvalid:So(Jt.invalid),_peerInvalid:Ho(Jt.invalid),_groupChecked:So(Jt.checked),_peerChecked:Ho(Jt.checked),_groupFocusWithin:So(Jt.focusWithin),_peerFocusWithin:Ho(Jt.focusWithin),_peerPlaceholderShown:Ho(Jt.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-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]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},cC=Object.keys(ja),EA=e=>/!(important)?$/.test(e),yS=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,TA=(e,t)=>n=>{const o=String(t),s=EA(o),a=yS(o),u=e?`${e}.${a}`:a;let c=gn(n.__cssMap)&&u in n.__cssMap?n.__cssMap[u].varRef:t;return c=yS(c),s?`${c} !important`:c};function hy(e){const{scale:t,transform:n,compose:o}=e;return(a,u)=>{const c=TA(t,a)(u);let f=(n==null?void 0:n(c,u))??c;return o&&(f=o(f,u)),f}}const pd=(...e)=>t=>e.reduce((n,o)=>o(n),t);function Or(e,t){return n=>{const o={property:n,scale:e};return o.transform=hy({scale:e,transform:t}),o}}const _A=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function PA(e){const{property:t,scale:n,transform:o}=e;return{scale:n,property:_A(t),transform:n?hy({scale:n,compose:o}):o}}const dC=["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 RA(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...dC].join(" ")}function AA(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...dC].join(" ")}const OA={"--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(" ")},jA={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 MA(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(", ")}}const IA={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},tg={"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"},NA=new Set(Object.values(tg)),ng=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),DA=e=>e.trim();function FA(e,t){if(e==null||ng.has(e))return e;if(!(rg(e)||ng.has(e)))return`url('${e}')`;const s=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),a=s==null?void 0:s[1],u=s==null?void 0:s[2];if(!a||!u)return e;const c=a.includes("-gradient")?a:`${a}-gradient`,[f,...p]=u.split(",").map(DA).filter(Boolean);if((p==null?void 0:p.length)===0)return e;const h=f in tg?tg[f]:f;p.unshift(h);const g=p.map(v=>{if(NA.has(v))return v;const k=v.indexOf(" "),[x,S]=k!==-1?[v.substr(0,k),v.substr(k+1)]:[v],w=rg(S)?S:S&&S.split(" "),T=`colors.${x}`,A=T in t.__cssMap?t.__cssMap[T].varRef:x;return w?[A,...Array.isArray(w)?w:[w]].join(" "):A});return`${c}(${g.join(", ")})`}const rg=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),LA=(e,t)=>FA(e,t??{});function zA(e){return/^var\(--.+\)$/.test(e)}const $A=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},xo=e=>t=>`${e}(${t})`,Ge={filter(e){return e!=="auto"?e:OA},backdropFilter(e){return e!=="auto"?e:jA},ring(e){return MA(Ge.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?RA():e==="auto-gpu"?AA():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=$A(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(zA(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:LA,blur:xo("blur"),opacity:xo("opacity"),brightness:xo("brightness"),contrast:xo("contrast"),dropShadow:xo("drop-shadow"),grayscale:xo("grayscale"),hueRotate:e=>xo("hue-rotate")(Ge.degree(e)),invert:xo("invert"),saturate:xo("saturate"),sepia:xo("sepia"),bgImage(e){return e==null||rg(e)||ng.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){const{space:t,divide:n}=IA[e]??{},o={flexDirection:e};return t&&(o[t]=1),n&&(o[n]=1),o}},z={borderWidths:Or("borderWidths"),borderStyles:Or("borderStyles"),colors:Or("colors"),borders:Or("borders"),gradients:Or("gradients",Ge.gradient),radii:Or("radii",Ge.px),space:Or("space",pd(Ge.vh,Ge.px)),spaceT:Or("space",pd(Ge.vh,Ge.px)),degreeT(e){return{property:e,transform:Ge.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:hy({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Or("sizes",pd(Ge.vh,Ge.px)),sizesT:Or("sizes",pd(Ge.vh,Ge.fraction)),shadows:Or("shadows"),logical:PA,blur:Or("blur",Ge.blur)},zd={background:z.colors("background"),backgroundColor:z.colors("backgroundColor"),backgroundImage:z.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Ge.bgClip},bgSize:z.prop("backgroundSize"),bgPosition:z.prop("backgroundPosition"),bg:z.colors("background"),bgColor:z.colors("backgroundColor"),bgPos:z.prop("backgroundPosition"),bgRepeat:z.prop("backgroundRepeat"),bgAttachment:z.prop("backgroundAttachment"),bgGradient:z.gradients("backgroundImage"),bgClip:{transform:Ge.bgClip}};Object.assign(zd,{bgImage:zd.backgroundImage,bgImg:zd.backgroundImage});const nt={border:z.borders("border"),borderWidth:z.borderWidths("borderWidth"),borderStyle:z.borderStyles("borderStyle"),borderColor:z.colors("borderColor"),borderRadius:z.radii("borderRadius"),borderTop:z.borders("borderTop"),borderBlockStart:z.borders("borderBlockStart"),borderTopLeftRadius:z.radii("borderTopLeftRadius"),borderStartStartRadius:z.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:z.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:z.radii("borderTopRightRadius"),borderStartEndRadius:z.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:z.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:z.borders("borderRight"),borderInlineEnd:z.borders("borderInlineEnd"),borderBottom:z.borders("borderBottom"),borderBlockEnd:z.borders("borderBlockEnd"),borderBottomLeftRadius:z.radii("borderBottomLeftRadius"),borderBottomRightRadius:z.radii("borderBottomRightRadius"),borderLeft:z.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:z.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:z.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:z.borders(["borderLeft","borderRight"]),borderInline:z.borders("borderInline"),borderY:z.borders(["borderTop","borderBottom"]),borderBlock:z.borders("borderBlock"),borderTopWidth:z.borderWidths("borderTopWidth"),borderBlockStartWidth:z.borderWidths("borderBlockStartWidth"),borderTopColor:z.colors("borderTopColor"),borderBlockStartColor:z.colors("borderBlockStartColor"),borderTopStyle:z.borderStyles("borderTopStyle"),borderBlockStartStyle:z.borderStyles("borderBlockStartStyle"),borderBottomWidth:z.borderWidths("borderBottomWidth"),borderBlockEndWidth:z.borderWidths("borderBlockEndWidth"),borderBottomColor:z.colors("borderBottomColor"),borderBlockEndColor:z.colors("borderBlockEndColor"),borderBottomStyle:z.borderStyles("borderBottomStyle"),borderBlockEndStyle:z.borderStyles("borderBlockEndStyle"),borderLeftWidth:z.borderWidths("borderLeftWidth"),borderInlineStartWidth:z.borderWidths("borderInlineStartWidth"),borderLeftColor:z.colors("borderLeftColor"),borderInlineStartColor:z.colors("borderInlineStartColor"),borderLeftStyle:z.borderStyles("borderLeftStyle"),borderInlineStartStyle:z.borderStyles("borderInlineStartStyle"),borderRightWidth:z.borderWidths("borderRightWidth"),borderInlineEndWidth:z.borderWidths("borderInlineEndWidth"),borderRightColor:z.colors("borderRightColor"),borderInlineEndColor:z.colors("borderInlineEndColor"),borderRightStyle:z.borderStyles("borderRightStyle"),borderInlineEndStyle:z.borderStyles("borderInlineEndStyle"),borderTopRadius:z.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:z.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:z.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:z.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(nt,{rounded:nt.borderRadius,roundedTop:nt.borderTopRadius,roundedTopLeft:nt.borderTopLeftRadius,roundedTopRight:nt.borderTopRightRadius,roundedTopStart:nt.borderStartStartRadius,roundedTopEnd:nt.borderStartEndRadius,roundedBottom:nt.borderBottomRadius,roundedBottomLeft:nt.borderBottomLeftRadius,roundedBottomRight:nt.borderBottomRightRadius,roundedBottomStart:nt.borderEndStartRadius,roundedBottomEnd:nt.borderEndEndRadius,roundedLeft:nt.borderLeftRadius,roundedRight:nt.borderRightRadius,roundedStart:nt.borderInlineStartRadius,roundedEnd:nt.borderInlineEndRadius,borderStart:nt.borderInlineStart,borderEnd:nt.borderInlineEnd,borderTopStartRadius:nt.borderStartStartRadius,borderTopEndRadius:nt.borderStartEndRadius,borderBottomStartRadius:nt.borderEndStartRadius,borderBottomEndRadius:nt.borderEndEndRadius,borderStartRadius:nt.borderInlineStartRadius,borderEndRadius:nt.borderInlineEndRadius,borderStartWidth:nt.borderInlineStartWidth,borderEndWidth:nt.borderInlineEndWidth,borderStartColor:nt.borderInlineStartColor,borderEndColor:nt.borderInlineEndColor,borderStartStyle:nt.borderInlineStartStyle,borderEndStyle:nt.borderInlineEndStyle});const BA={color:z.colors("color"),textColor:z.colors("color"),fill:z.colors("fill"),stroke:z.colors("stroke"),accentColor:z.colors("accentColor"),textFillColor:z.colors("textFillColor")},hf={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Ge.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:z.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:z.space("gap"),rowGap:z.space("rowGap"),columnGap:z.space("columnGap")};Object.assign(hf,{flexDir:hf.flexDirection});const Mr={width:z.sizesT("width"),inlineSize:z.sizesT("inlineSize"),height:z.sizes("height"),blockSize:z.sizes("blockSize"),boxSize:z.sizes(["width","height"]),minWidth:z.sizes("minWidth"),minInlineSize:z.sizes("minInlineSize"),minHeight:z.sizes("minHeight"),minBlockSize:z.sizes("minBlockSize"),maxWidth:z.sizes("maxWidth"),maxInlineSize:z.sizes("maxInlineSize"),maxHeight:z.sizes("maxHeight"),maxBlockSize:z.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 s,a;return{[`@media screen and (min-width: ${((a=(s=t.__breakpoints)==null?void 0:s.get(e))==null?void 0:a.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var s,a;return{[`@media screen and (max-width: ${((a=(s=t.__breakpoints)==null?void 0:s.get(e))==null?void 0:a._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:z.propT("float",Ge.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Mr,{w:Mr.width,h:Mr.height,minW:Mr.minWidth,maxW:Mr.maxWidth,minH:Mr.minHeight,maxH:Mr.maxHeight,overscroll:Mr.overscrollBehavior,overscrollX:Mr.overscrollBehaviorX,overscrollY:Mr.overscrollBehaviorY});const VA={filter:{transform:Ge.filter},blur:z.blur("--chakra-blur"),brightness:z.propT("--chakra-brightness",Ge.brightness),contrast:z.propT("--chakra-contrast",Ge.contrast),hueRotate:z.propT("--chakra-hue-rotate",Ge.hueRotate),invert:z.propT("--chakra-invert",Ge.invert),saturate:z.propT("--chakra-saturate",Ge.saturate),dropShadow:z.propT("--chakra-drop-shadow",Ge.dropShadow),backdropFilter:{transform:Ge.backdropFilter},backdropBlur:z.blur("--chakra-backdrop-blur"),backdropBrightness:z.propT("--chakra-backdrop-brightness",Ge.brightness),backdropContrast:z.propT("--chakra-backdrop-contrast",Ge.contrast),backdropHueRotate:z.propT("--chakra-backdrop-hue-rotate",Ge.hueRotate),backdropInvert:z.propT("--chakra-backdrop-invert",Ge.invert),backdropSaturate:z.propT("--chakra-backdrop-saturate",Ge.saturate)},UA={ring:{transform:Ge.ring},ringColor:z.colors("--chakra-ring-color"),ringOffset:z.prop("--chakra-ring-offset-width"),ringOffsetColor:z.colors("--chakra-ring-offset-color"),ringInset:z.prop("--chakra-ring-inset")},WA={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Ge.outline},outlineOffset:!0,outlineColor:z.colors("outlineColor")},fC={gridGap:z.space("gridGap"),gridColumnGap:z.space("gridColumnGap"),gridRowGap:z.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};function HA(e,t,n,o){const s=typeof t=="string"?t.split("."):[t];for(o=0;o<s.length&&e;o+=1)e=e[s[o]];return e===void 0?n:e}const qA=e=>{const t=new WeakMap;return(o,s,a,u)=>{if(typeof o>"u")return e(o,s,a);t.has(o)||t.set(o,new Map);const c=t.get(o);if(c.has(s))return c.get(s);const f=e(o,s,a,u);return c.set(s,f),f}},KA=qA(HA),GA={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},QA={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Up=(e,t,n)=>{const o={},s=KA(e,t,{});for(const a in s)a in n&&n[a]!=null||(o[a]=s[a]);return o},YA={srOnly:{transform(e){return e===!0?GA:e==="focusable"?QA:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>Up(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>Up(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>Up(t,e,n)}},pu={position:!0,pos:z.prop("position"),zIndex:z.prop("zIndex","zIndices"),inset:z.spaceT("inset"),insetX:z.spaceT(["left","right"]),insetInline:z.spaceT("insetInline"),insetY:z.spaceT(["top","bottom"]),insetBlock:z.spaceT("insetBlock"),top:z.spaceT("top"),insetBlockStart:z.spaceT("insetBlockStart"),bottom:z.spaceT("bottom"),insetBlockEnd:z.spaceT("insetBlockEnd"),left:z.spaceT("left"),insetInlineStart:z.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:z.spaceT("right"),insetInlineEnd:z.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(pu,{insetStart:pu.insetInlineStart,insetEnd:pu.insetInlineEnd});const og={boxShadow:z.shadows("boxShadow"),mixBlendMode:!0,blendMode:z.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:z.prop("backgroundBlendMode"),opacity:!0};Object.assign(og,{shadow:og.boxShadow});const bt={margin:z.spaceT("margin"),marginTop:z.spaceT("marginTop"),marginBlockStart:z.spaceT("marginBlockStart"),marginRight:z.spaceT("marginRight"),marginInlineEnd:z.spaceT("marginInlineEnd"),marginBottom:z.spaceT("marginBottom"),marginBlockEnd:z.spaceT("marginBlockEnd"),marginLeft:z.spaceT("marginLeft"),marginInlineStart:z.spaceT("marginInlineStart"),marginX:z.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:z.spaceT("marginInline"),marginY:z.spaceT(["marginTop","marginBottom"]),marginBlock:z.spaceT("marginBlock"),padding:z.space("padding"),paddingTop:z.space("paddingTop"),paddingBlockStart:z.space("paddingBlockStart"),paddingRight:z.space("paddingRight"),paddingBottom:z.space("paddingBottom"),paddingBlockEnd:z.space("paddingBlockEnd"),paddingLeft:z.space("paddingLeft"),paddingInlineStart:z.space("paddingInlineStart"),paddingInlineEnd:z.space("paddingInlineEnd"),paddingX:z.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:z.space("paddingInline"),paddingY:z.space(["paddingTop","paddingBottom"]),paddingBlock:z.space("paddingBlock")};Object.assign(bt,{m:bt.margin,mt:bt.marginTop,mr:bt.marginRight,me:bt.marginInlineEnd,marginEnd:bt.marginInlineEnd,mb:bt.marginBottom,ml:bt.marginLeft,ms:bt.marginInlineStart,marginStart:bt.marginInlineStart,mx:bt.marginX,my:bt.marginY,p:bt.padding,pt:bt.paddingTop,py:bt.paddingY,px:bt.paddingX,pb:bt.paddingBottom,pl:bt.paddingLeft,ps:bt.paddingInlineStart,paddingStart:bt.paddingInlineStart,pr:bt.paddingRight,pe:bt.paddingInlineEnd,paddingEnd:bt.paddingInlineEnd});const XA={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:z.spaceT("scrollMargin"),scrollMarginTop:z.spaceT("scrollMarginTop"),scrollMarginBottom:z.spaceT("scrollMarginBottom"),scrollMarginLeft:z.spaceT("scrollMarginLeft"),scrollMarginRight:z.spaceT("scrollMarginRight"),scrollMarginX:z.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:z.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:z.spaceT("scrollPadding"),scrollPaddingTop:z.spaceT("scrollPaddingTop"),scrollPaddingBottom:z.spaceT("scrollPaddingBottom"),scrollPaddingLeft:z.spaceT("scrollPaddingLeft"),scrollPaddingRight:z.spaceT("scrollPaddingRight"),scrollPaddingX:z.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:z.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},ZA={fontFamily:z.prop("fontFamily","fonts"),fontSize:z.prop("fontSize","fontSizes",Ge.px),fontWeight:z.prop("fontWeight","fontWeights"),lineHeight:z.prop("lineHeight","lineHeights"),letterSpacing:z.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"}},JA={textDecorationColor:z.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:z.shadows("textShadow")},e2={clipPath:!0,transform:z.propT("transform",Ge.transform),transformOrigin:!0,translateX:z.spaceT("--chakra-translate-x"),translateY:z.spaceT("--chakra-translate-y"),skewX:z.degreeT("--chakra-skew-x"),skewY:z.degreeT("--chakra-skew-y"),scaleX:z.prop("--chakra-scale-x"),scaleY:z.prop("--chakra-scale-y"),scale:z.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:z.degreeT("--chakra-rotate")},t2={listStyleType:!0,listStylePosition:!0,listStylePos:z.prop("listStylePosition"),listStyleImage:!0,listStyleImg:z.prop("listStyleImage")},n2={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:z.prop("transitionDuration","transition.duration"),transitionProperty:z.prop("transitionProperty","transition.property"),transitionTimingFunction:z.prop("transitionTimingFunction","transition.easing")},py=zr({},zd,nt,BA,hf,Mr,VA,UA,WA,fC,YA,pu,og,bt,XA,ZA,JA,e2,t2,n2),r2=Object.assign({},bt,Mr,hf,fC,pu),hC=Object.keys(r2),o2=[...Object.keys(py),...cC],i2={...py,...ja},s2=e=>e in i2,a2=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:o,media:s}=t.__breakpoints,a={};for(const u in e){let c=Lr(e[u],t);if(c==null)continue;if(c=gn(c)&&n(c)?o(c):c,!Array.isArray(c)){a[u]=c;continue}const f=c.slice(0,s.length).length;for(let p=0;p<f;p+=1){const h=s==null?void 0:s[p];if(!h){a[u]=c[p];continue}a[h]=a[h]||{},c[p]!=null&&(a[h][u]=c[p])}}return a};function l2(e){const t=[];let n="",o=!1;for(let s=0;s<e.length;s++){const a=e[s];a==="("?(o=!0,n+=a):a===")"?(o=!1,n+=a):a===","&&!o?(t.push(n),n=""):n+=a}return n=n.trim(),n&&t.push(n),t}function u2(e){return/^var\(--.+\)$/.test(e)}const c2=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!u2(t),d2=(e,t)=>{if(t==null)return t;const n=u=>{var c,f;return(f=(c=e.__cssMap)==null?void 0:c[u])==null?void 0:f.varRef},o=u=>n(u)??u,[s,a]=l2(t);return t=n(s)??o(a)??o(t),t};function f2(e){const{configs:t={},pseudos:n={},theme:o}=e,s=(a,u=!1)=>{var h;const c=Lr(a,o),f=a2(c)(o);let p={};for(let g in f){const v=f[g];let k=Lr(v,o);g in n&&(g=n[g]),c2(g,k)&&(k=d2(o,k));let x=t[g];if(x===!0&&(x={property:g}),gn(k)){p[g]=p[g]??{},p[g]=zr({},p[g],s(k,!0));continue}let S=((h=x==null?void 0:x.transform)==null?void 0:h.call(x,k,o,c))??k;S=x!=null&&x.processResult?s(S,!0):S;const w=Lr(x==null?void 0:x.property,o);if(!u&&(x!=null&&x.static)){const T=Lr(x.static,o);p=zr({},p,T)}if(w&&Array.isArray(w)){for(const T of w)p[T]=S;continue}if(w){w==="&"&&gn(S)?p=zr({},p,S):p[w]=S;continue}if(gn(S)){p=zr({},p,S);continue}p[g]=S}return p};return s}const pC=e=>t=>f2({theme:t,pseudos:ja,configs:py})(e);function mt(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function h2(e,t){if(Array.isArray(e))return e;if(gn(e))return t(e);if(e!=null)return[e]}function p2(e,t){for(let n=t+1;n<e.length;n++)if(e[n]!=null)return n;return-1}function m2(e){const t=e.__breakpoints;return function(o,s,a,u){var v,k;if(!t)return;const c={},f=h2(a,t.toArrayValue);if(!f)return c;const p=f.length,h=p===1,g=!!o.parts;for(let x=0;x<p;x++){const S=t.details[x],w=t.details[p2(f,x)],T=ru(S.minW,w==null?void 0:w._minW),A=Lr((v=o[s])==null?void 0:v[f[x]],u);if(A){if(g){(k=o.parts)==null||k.forEach(_=>{zr(c,{[_]:h?A[_]:{[T]:A[_]}})});continue}if(!g){h?zr(c,A):c[T]=A;continue}c[T]=A}}return c}}function g2(e){return t=>{const{variant:n,size:o,theme:s}=t,a=m2(s);return zr({},Lr(e.baseStyle??{},t),a(e,"sizes",o,t),a(e,"variants",n,t))}}function Gt(e){return dy(e,["styleConfig","size","variant","colorScheme"])}function mC(e){return gn(e)&&e.reference?e.reference:String(e)}const If=(e,...t)=>t.map(mC).join(` ${e} `).replace(/calc/g,""),vS=(...e)=>`calc(${If("+",...e)})`,bS=(...e)=>`calc(${If("-",...e)})`,ig=(...e)=>`calc(${If("*",...e)})`,SS=(...e)=>`calc(${If("/",...e)})`,xS=e=>{const t=mC(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:ig(t,-1)},qo=Object.assign(e=>({add:(...t)=>qo(vS(e,...t)),subtract:(...t)=>qo(bS(e,...t)),multiply:(...t)=>qo(ig(e,...t)),divide:(...t)=>qo(SS(e,...t)),negate:()=>qo(xS(e)),toString:()=>e.toString()}),{add:vS,subtract:bS,multiply:ig,divide:SS,negate:xS});function y2(e,t="-"){return e.replace(/\s+/g,t)}function v2(e){const t=y2(e.toString());return S2(b2(t))}function b2(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function S2(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function x2(e,t=""){return[t,e].filter(Boolean).join("-")}function w2(e,t){return`var(${e}${t?`, ${t}`:""})`}function C2(e,t=""){return v2(`--${x2(e,t)}`)}function je(e,t,n){const o=C2(e,n);return{variable:o,reference:w2(o,t)}}function k2(e,t){const n={};for(const o of t){if(Array.isArray(o)){const[s,a]=o;n[s]=je(`${e}-${s}`,a);continue}n[o]=je(`${e}-${o}`)}return n}const E2=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function T2(e){return pA(e,E2)}function _2(e){return e.semanticTokens}function P2(e){const{__cssMap:t,__cssVars:n,__breakpoints:o,...s}=e;return s}function R2(e){const t=T2(e),n=_2(e),o=a=>cC.includes(a)||a==="default",s={};return mS(t,(a,u)=>{a!=null&&(s[u.join(".")]={isSemantic:!1,value:a})}),mS(n,(a,u)=>{a!=null&&(s[u.join(".")]={isSemantic:!0,value:a})},{stop:a=>Object.keys(a).every(o)}),s}function wS(e,t){return je(String(e).replace(/\./g,"-"),void 0,t)}function A2(e){var u;const t=R2(e),n=(u=e.config)==null?void 0:u.cssVarPrefix;let o={};const s={};function a(c,f){const h=[String(c).split(".")[0],f].join(".");if(!t[h])return f;const{reference:v}=wS(h,n);return v}for(const[c,f]of Object.entries(t)){const{isSemantic:p,value:h}=f,{variable:g,reference:v}=wS(c,n);if(!p){if(c.startsWith("space")){const x=c.split("."),[S,...w]=x,T=`${S}.-${w.join(".")}`,A=qo.negate(h),_=qo.negate(v);s[T]={value:A,var:g,varRef:_}}o[g]=h,s[c]={value:h,var:g,varRef:v};continue}const k=gn(h)?h:{default:h};o=zr(o,Object.entries(k).reduce((x,[S,w])=>{if(!w)return x;const T=a(c,`${w}`);if(S==="default")return x[g]=T,x;const A=(ja==null?void 0:ja[S])??S;return x[A]={[g]:T},x},{})),s[c]={value:v,var:g,varRef:v}}return{cssVars:o,cssMap:s}}function O2(e){const t=P2(e),{cssMap:n,cssVars:o}=A2(t);return Object.assign(t,{__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"},...o},__cssMap:n,__breakpoints:JR(t.breakpoints)}),t}function st(e,t={}){let n=!1;function o(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function s(...h){o();for(const g of h)t[g]=f(g);return st(e,t)}function a(...h){for(const g of h)g in t||(t[g]=f(g));return st(e,t)}function u(){return Object.fromEntries(Object.entries(t).map(([g,v])=>[g,v.selector]))}function c(){return Object.fromEntries(Object.entries(t).map(([g,v])=>[g,v.className]))}function f(h){const k=`chakra-${(["container","root"].includes(h??"")?[e]:[e,h]).filter(Boolean).join("__")}`;return{className:k,selector:`.${k}`,toString:()=>h}}return{parts:s,toPart:f,extend:a,selectors:u,classnames:c,get keys(){return Object.keys(t)},__type:{}}}const j2=st("accordion").parts("root","container","button","panel","icon"),M2=st("alert").parts("title","description","container","icon","spinner"),I2=st("avatar").parts("label","badge","container","excessLabel","group"),N2=st("breadcrumb").parts("link","item","container","separator");st("button").parts();const D2=st("checkbox").parts("control","icon","container","label");st("progress").parts("track","filledTrack","label");const F2=st("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),L2=st("editable").parts("preview","input","textarea"),z2=st("form").parts("container","requiredIndicator","helperText"),$2=st("formError").parts("text","icon"),B2=st("input").parts("addon","field","element","group"),V2=st("list").parts("container","item","icon"),U2=st("menu").parts("button","list","item","groupTitle","icon","command","divider"),W2=st("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),H2=st("numberinput").parts("root","field","stepperGroup","stepper");st("pininput").parts("field");const q2=st("popover").parts("content","header","body","footer","popper","arrow","closeButton"),K2=st("progress").parts("label","filledTrack","track"),G2=st("radio").parts("container","control","label"),Q2=st("select").parts("field","icon"),Y2=st("slider").parts("container","track","thumb","filledTrack","mark"),X2=st("stat").parts("container","label","helpText","number","icon"),Z2=st("switch").parts("container","track","thumb","label"),J2=st("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),eO=st("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),tO=st("tag").parts("container","label","closeButton"),nO=st("card").parts("container","header","body","footer");st("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:rO,defineMultiStyleConfig:oO}=mt(j2.keys),iO={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},sO={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},aO={pt:"2",px:"4",pb:"5"},lO={fontSize:"1.25em"},uO=rO({container:iO,button:sO,panel:aO,icon:lO}),cO=oO({baseStyle:uO});function ds(e,t,n){return Math.min(Math.max(e,n),t)}class dO extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var iu=dO;function my(e){if(typeof e!="string")throw new iu(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=bO.test(e)?pO(e):e;const n=mO.exec(t);if(n){const u=Array.from(n).slice(1);return[...u.slice(0,3).map(c=>parseInt(Eu(c,2),16)),parseInt(Eu(u[3]||"f",2),16)/255]}const o=gO.exec(t);if(o){const u=Array.from(o).slice(1);return[...u.slice(0,3).map(c=>parseInt(c,16)),parseInt(u[3]||"ff",16)/255]}const s=yO.exec(t);if(s){const u=Array.from(s).slice(1);return[...u.slice(0,3).map(c=>parseInt(c,10)),parseFloat(u[3]||"1")]}const a=vO.exec(t);if(a){const[u,c,f,p]=Array.from(a).slice(1).map(parseFloat);if(ds(0,100,c)!==c)throw new iu(e);if(ds(0,100,f)!==f)throw new iu(e);return[...SO(u,c,f),Number.isNaN(p)?1:p]}throw new iu(e)}function fO(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const CS=e=>parseInt(e.replace(/_/g,""),36),hO="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 n=CS(t.substring(0,3)),o=CS(t.substring(3)).toString(16);let s="";for(let a=0;a<6-o.length;a++)s+="0";return e[n]=`${s}${o}`,e},{});function pO(e){const t=e.toLowerCase().trim(),n=hO[fO(t)];if(!n)throw new iu(e);return`#${n}`}const Eu=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),mO=new RegExp(`^#${Eu("([a-f0-9])",3)}([a-f0-9])?$`,"i"),gO=new RegExp(`^#${Eu("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),yO=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Eu(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),vO=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,bO=/^[a-z]+$/i,kS=e=>Math.round(e*255),SO=(e,t,n)=>{let o=n/100;if(t===0)return[o,o,o].map(kS);const s=(e%360+360)%360/60,a=(1-Math.abs(2*o-1))*(t/100),u=a*(1-Math.abs(s%2-1));let c=0,f=0,p=0;s>=0&&s<1?(c=a,f=u):s>=1&&s<2?(c=u,f=a):s>=2&&s<3?(f=a,p=u):s>=3&&s<4?(f=u,p=a):s>=4&&s<5?(c=u,p=a):s>=5&&s<6&&(c=a,p=u);const h=o-a/2,g=c+h,v=f+h,k=p+h;return[g,v,k].map(kS)};function xO(e,t,n,o){return`rgba(${ds(0,255,e).toFixed()}, ${ds(0,255,t).toFixed()}, ${ds(0,255,n).toFixed()}, ${parseFloat(ds(0,1,o).toFixed(3))})`}function wO(e,t){const[n,o,s,a]=my(e);return xO(n,o,s,a-t)}function CO(e){const[t,n,o,s]=my(e);let a=u=>{const c=ds(0,255,u).toString(16);return c.length===1?`0${c}`:c};return`#${a(t)}${a(n)}${a(o)}${s<1?a(Math.round(s*255)):""}`}const kO=e=>Object.keys(e).length===0;function EO(e,t,n,o,s){for(t=t.split?t.split("."):t,o=0;o<t.length;o++)e=e?e[t[o]]:s;return e===s?n:e}const $n=(e,t,n)=>{const o=EO(e,`colors.${t}`,t);try{return CO(o),o}catch{return"#000000"}},TO=e=>{const[t,n,o]=my(e);return(t*299+n*587+o*114)/1e3},_O=e=>t=>{const n=$n(t,e);return TO(n)<128?"dark":"light"},PO=e=>t=>_O(e)(t)==="dark",Ha=(e,t)=>n=>{const o=$n(n,e);return wO(o,1-t)};function ES(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}`}}const RO=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function AO(e){const t=RO();return!e||kO(e)?t:e.string&&e.colors?jO(e.string,e.colors):e.string&&!e.colors?OO(e.string):e.colors&&!e.string?MO(e.colors):t}function OO(e){let t=0;if(e.length===0)return t.toString();for(let o=0;o<e.length;o+=1)t=e.charCodeAt(o)+((t<<5)-t),t=t&t;let n="#";for(let o=0;o<3;o+=1){const s=t>>o*8&255;n+=`00${s.toString(16)}`.substr(-2)}return n}function jO(e,t){let n=0;if(e.length===0)return t[0];for(let o=0;o<e.length;o+=1)n=e.charCodeAt(o)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function MO(e){return e[Math.floor(Math.random()*e.length)]}function Oe(e,t){return n=>n.colorMode==="dark"?t:e}function gy(e){const{orientation:t,vertical:n,horizontal:o}=e;return t?t==="vertical"?n:o:{}}function gC(e){return gn(e)&&e.reference?e.reference:String(e)}const Nf=(e,...t)=>t.map(gC).join(` ${e} `).replace(/calc/g,""),TS=(...e)=>`calc(${Nf("+",...e)})`,_S=(...e)=>`calc(${Nf("-",...e)})`,sg=(...e)=>`calc(${Nf("*",...e)})`,PS=(...e)=>`calc(${Nf("/",...e)})`,RS=e=>{const t=gC(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:sg(t,-1)},Ko=Object.assign(e=>({add:(...t)=>Ko(TS(e,...t)),subtract:(...t)=>Ko(_S(e,...t)),multiply:(...t)=>Ko(sg(e,...t)),divide:(...t)=>Ko(PS(e,...t)),negate:()=>Ko(RS(e)),toString:()=>e.toString()}),{add:TS,subtract:_S,multiply:sg,divide:PS,negate:RS});function IO(e){return!Number.isInteger(parseFloat(e.toString()))}function NO(e,t="-"){return e.replace(/\s+/g,t)}function yC(e){const t=NO(e.toString());return t.includes("\\.")?e:IO(e)?t.replace(".","\\."):e}function DO(e,t=""){return[t,yC(e)].filter(Boolean).join("-")}function FO(e,t){return`var(${yC(e)}${t?`, ${t}`:""})`}function LO(e,t=""){return`--${DO(e,t)}`}function nn(e,t){const n=LO(e,t==null?void 0:t.prefix);return{variable:n,reference:FO(n,zO(t==null?void 0:t.fallback))}}function zO(e){return e==null?void 0:e.reference}const{definePartsStyle:qu,defineMultiStyleConfig:$O}=mt(M2.keys),gr=je("alert-fg"),ei=je("alert-bg"),BO=qu({container:{bg:ei.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:gr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:gr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function yy(e){const{theme:t,colorScheme:n}=e,o=Ha(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:o}}const VO=qu(e=>{const{colorScheme:t}=e,n=yy(e);return{container:{[gr.variable]:`colors.${t}.600`,[ei.variable]:n.light,_dark:{[gr.variable]:`colors.${t}.200`,[ei.variable]:n.dark}}}}),UO=qu(e=>{const{colorScheme:t}=e,n=yy(e);return{container:{[gr.variable]:`colors.${t}.600`,[ei.variable]:n.light,_dark:{[gr.variable]:`colors.${t}.200`,[ei.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:gr.reference}}}),WO=qu(e=>{const{colorScheme:t}=e,n=yy(e);return{container:{[gr.variable]:`colors.${t}.600`,[ei.variable]:n.light,_dark:{[gr.variable]:`colors.${t}.200`,[ei.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:gr.reference}}}),HO=qu(e=>{const{colorScheme:t}=e;return{container:{[gr.variable]:"colors.white",[ei.variable]:`colors.${t}.600`,_dark:{[gr.variable]:"colors.gray.900",[ei.variable]:`colors.${t}.200`},color:gr.reference}}}),qO={subtle:VO,"left-accent":UO,"top-accent":WO,solid:HO},KO=$O({baseStyle:BO,variants:qO,defaultProps:{variant:"subtle",colorScheme:"blue"}}),vC={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"},GO={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"},QO={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},bC={...vC,...GO,container:QO},YO=e=>typeof e=="function";function Vn(e,...t){return YO(e)?e(...t):e}const{definePartsStyle:SC,defineMultiStyleConfig:XO}=mt(I2.keys),Ma=je("avatar-border-color"),mu=je("avatar-bg"),Tu=je("avatar-font-size"),qa=je("avatar-size"),ZO={borderRadius:"full",border:"0.2em solid",borderColor:Ma.reference,[Ma.variable]:"white",_dark:{[Ma.variable]:"colors.gray.800"}},JO={bg:mu.reference,fontSize:Tu.reference,width:qa.reference,height:qa.reference,lineHeight:"1",[mu.variable]:"colors.gray.200",_dark:{[mu.variable]:"colors.whiteAlpha.400"}},ej=e=>{const{name:t,theme:n}=e,o=t?AO({string:t}):"colors.gray.400",s=PO(o)(n);let a="white";return s||(a="gray.800"),{bg:mu.reference,fontSize:Tu.reference,color:a,borderColor:Ma.reference,verticalAlign:"top",width:qa.reference,height:qa.reference,"&:not([data-loaded])":{[mu.variable]:o},[Ma.variable]:"colors.white",_dark:{[Ma.variable]:"colors.gray.800"}}},tj={fontSize:Tu.reference,lineHeight:"1"},nj=SC(e=>({badge:Vn(ZO,e),excessLabel:Vn(JO,e),container:Vn(ej,e),label:tj}));function Ci(e){const t=e!=="100%"?bC[e]:void 0;return SC({container:{[qa.variable]:t??e,[Tu.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[qa.variable]:t??e,[Tu.variable]:`calc(${t??e} / 2.5)`}})}const rj={"2xs":Ci(4),xs:Ci(6),sm:Ci(8),md:Ci(12),lg:Ci(16),xl:Ci(24),"2xl":Ci(32),full:Ci("100%")},oj=XO({baseStyle:nj,sizes:rj,defaultProps:{size:"md"}}),Bt=k2("badge",["bg","color","shadow"]),ij={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Bt.bg.reference,color:Bt.color.reference,boxShadow:Bt.shadow.reference},sj=e=>{const{colorScheme:t,theme:n}=e,o=Ha(`${t}.500`,.6)(n);return{[Bt.bg.variable]:`colors.${t}.500`,[Bt.color.variable]:"colors.white",_dark:{[Bt.bg.variable]:o,[Bt.color.variable]:"colors.whiteAlpha.800"}}},aj=e=>{const{colorScheme:t,theme:n}=e,o=Ha(`${t}.200`,.16)(n);return{[Bt.bg.variable]:`colors.${t}.100`,[Bt.color.variable]:`colors.${t}.800`,_dark:{[Bt.bg.variable]:o,[Bt.color.variable]:`colors.${t}.200`}}},lj=e=>{const{colorScheme:t,theme:n}=e,o=Ha(`${t}.200`,.8)(n);return{[Bt.color.variable]:`colors.${t}.500`,_dark:{[Bt.color.variable]:o},[Bt.shadow.variable]:`inset 0 0 0px 1px ${Bt.color.reference}`}},uj={solid:sj,subtle:aj,outline:lj},gu={baseStyle:ij,variants:uj,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:cj,definePartsStyle:dj}=mt(N2.keys),Wp=je("breadcrumb-link-decor"),fj={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Wp.reference,[Wp.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Wp.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},hj=dj({link:fj}),pj=cj({baseStyle:hj}),mj={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"}}},xC=e=>{const{colorScheme:t,theme:n}=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 o=Ha(`${t}.200`,.12)(n),s=Ha(`${t}.200`,.24)(n);return{color:Oe(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:Oe(`${t}.50`,o)(e)},_active:{bg:Oe(`${t}.100`,s)(e)}}},gj=e=>{const{colorScheme:t}=e,n=Oe("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"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"},...Vn(xC,e)}},yj={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},vj=e=>{const{colorScheme:t}=e;if(t==="gray"){const c=Oe("gray.100","whiteAlpha.200")(e);return{bg:c,color:Oe("gray.800","whiteAlpha.900")(e),_hover:{bg:Oe("gray.200","whiteAlpha.300")(e),_disabled:{bg:c}},_active:{bg:Oe("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:o="white",hoverBg:s=`${t}.600`,activeBg:a=`${t}.700`}=yj[t]??{},u=Oe(n,`${t}.200`)(e);return{bg:u,color:Oe(o,"gray.800")(e),_hover:{bg:Oe(s,`${t}.300`)(e),_disabled:{bg:u}},_active:{bg:Oe(a,`${t}.400`)(e)}}},bj=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)}}},Sj={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},xj={ghost:xC,outline:gj,solid:vj,link:bj,unstyled:Sj},wj={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"}},Cj={baseStyle:mj,variants:xj,sizes:wj,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:gs,defineMultiStyleConfig:kj}=mt(nO.keys),pf=je("card-bg"),Zo=je("card-padding"),wC=je("card-shadow"),$d=je("card-radius"),CC=je("card-border-width","0"),kC=je("card-border-color"),Ej=gs({container:{[pf.variable]:"colors.chakra-body-bg",backgroundColor:pf.reference,boxShadow:wC.reference,borderRadius:$d.reference,color:"chakra-body-text",borderWidth:CC.reference,borderColor:kC.reference},body:{padding:Zo.reference,flex:"1 1 0%"},header:{padding:Zo.reference},footer:{padding:Zo.reference}}),Tj={sm:gs({container:{[$d.variable]:"radii.base",[Zo.variable]:"space.3"}}),md:gs({container:{[$d.variable]:"radii.md",[Zo.variable]:"space.5"}}),lg:gs({container:{[$d.variable]:"radii.xl",[Zo.variable]:"space.7"}})},_j={elevated:gs({container:{[wC.variable]:"shadows.base",_dark:{[pf.variable]:"colors.gray.700"}}}),outline:gs({container:{[CC.variable]:"1px",[kC.variable]:"colors.chakra-border-color"}}),filled:gs({container:{[pf.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Zo.variable]:0},header:{[Zo.variable]:0},footer:{[Zo.variable]:0}}},Pj=kj({baseStyle:Ej,variants:_j,sizes:Tj,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:Bd,defineMultiStyleConfig:Rj}=mt(D2.keys),yu=je("checkbox-size"),Aj=e=>{const{colorScheme:t}=e;return{w:yu.reference,h:yu.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)}}},Oj={_disabled:{cursor:"not-allowed"}},jj={userSelect:"none",_disabled:{opacity:.4}},Mj={transitionProperty:"transform",transitionDuration:"normal"},Ij=Bd(e=>({icon:Mj,container:Oj,control:Vn(Aj,e),label:jj})),Nj={sm:Bd({control:{[yu.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Bd({control:{[yu.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Bd({control:{[yu.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Pi=Rj({baseStyle:Ij,sizes:Nj,defaultProps:{size:"md",colorScheme:"blue"}}),vu=nn("close-button-size"),Vl=nn("close-button-bg"),Dj={w:[vu.reference],h:[vu.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Vl.variable]:"colors.blackAlpha.100",_dark:{[Vl.variable]:"colors.whiteAlpha.100"}},_active:{[Vl.variable]:"colors.blackAlpha.200",_dark:{[Vl.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Vl.reference},Fj={lg:{[vu.variable]:"sizes.10",fontSize:"md"},md:{[vu.variable]:"sizes.8",fontSize:"xs"},sm:{[vu.variable]:"sizes.6",fontSize:"2xs"}},Lj={baseStyle:Dj,sizes:Fj,defaultProps:{size:"md"}},{variants:zj,defaultProps:$j}=gu,Bj={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Bt.bg.reference,color:Bt.color.reference,boxShadow:Bt.shadow.reference},Vj={baseStyle:Bj,variants:zj,defaultProps:$j},Uj={w:"100%",mx:"auto",maxW:"prose",px:"4"},Wj={baseStyle:Uj},Hj={opacity:.6,borderColor:"inherit"},qj={borderStyle:"solid"},Kj={borderStyle:"dashed"},Gj={solid:qj,dashed:Kj},Qj={baseStyle:Hj,variants:Gj,defaultProps:{variant:"solid"}},{definePartsStyle:ag,defineMultiStyleConfig:Yj}=mt(F2.keys),Hp=je("drawer-bg"),qp=je("drawer-box-shadow");function pa(e){return ag(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const Xj={bg:"blackAlpha.600",zIndex:"modal"},Zj={display:"flex",zIndex:"modal",justifyContent:"center"},Jj=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Hp.variable]:"colors.white",[qp.variable]:"shadows.lg",_dark:{[Hp.variable]:"colors.gray.700",[qp.variable]:"shadows.dark-lg"},bg:Hp.reference,boxShadow:qp.reference}},eM={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},tM={position:"absolute",top:"2",insetEnd:"3"},nM={px:"6",py:"2",flex:"1",overflow:"auto"},rM={px:"6",py:"4"},oM=ag(e=>({overlay:Xj,dialogContainer:Zj,dialog:Vn(Jj,e),header:eM,closeButton:tM,body:nM,footer:rM})),iM={xs:pa("xs"),sm:pa("md"),md:pa("lg"),lg:pa("2xl"),xl:pa("4xl"),full:pa("full")},sM=Yj({baseStyle:oM,sizes:iM,defaultProps:{size:"xs"}}),{definePartsStyle:aM,defineMultiStyleConfig:lM}=mt(L2.keys),uM={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},cM={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},dM={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},fM=aM({preview:uM,input:cM,textarea:dM}),hM=lM({baseStyle:fM}),{definePartsStyle:pM,defineMultiStyleConfig:mM}=mt(z2.keys),Ia=je("form-control-color"),gM={marginStart:"1",[Ia.variable]:"colors.red.500",_dark:{[Ia.variable]:"colors.red.300"},color:Ia.reference},yM={mt:"2",[Ia.variable]:"colors.gray.600",_dark:{[Ia.variable]:"colors.whiteAlpha.600"},color:Ia.reference,lineHeight:"normal",fontSize:"sm"},vM=pM({container:{width:"100%",position:"relative"},requiredIndicator:gM,helperText:yM}),bM=mM({baseStyle:vM}),{definePartsStyle:SM,defineMultiStyleConfig:xM}=mt($2.keys),Na=je("form-error-color"),wM={[Na.variable]:"colors.red.500",_dark:{[Na.variable]:"colors.red.300"},color:Na.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},CM={marginEnd:"0.5em",[Na.variable]:"colors.red.500",_dark:{[Na.variable]:"colors.red.300"},color:Na.reference},kM=SM({text:wM,icon:CM}),EM=xM({baseStyle:kM}),TM={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},_M={baseStyle:TM},PM={fontFamily:"heading",fontWeight:"bold"},RM={"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}},AM={baseStyle:PM,sizes:RM,defaultProps:{size:"xl"}},{definePartsStyle:Qo,defineMultiStyleConfig:OM}=mt(B2.keys),Sa=je("input-height"),xa=je("input-font-size"),wa=je("input-padding"),Ca=je("input-border-radius"),jM=Qo({addon:{height:Sa.reference,fontSize:xa.reference,px:wa.reference,borderRadius:Ca.reference},field:{width:"100%",height:Sa.reference,fontSize:xa.reference,px:wa.reference,borderRadius:Ca.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),ki={lg:{[xa.variable]:"fontSizes.lg",[wa.variable]:"space.4",[Ca.variable]:"radii.md",[Sa.variable]:"sizes.12"},md:{[xa.variable]:"fontSizes.md",[wa.variable]:"space.4",[Ca.variable]:"radii.md",[Sa.variable]:"sizes.10"},sm:{[xa.variable]:"fontSizes.sm",[wa.variable]:"space.3",[Ca.variable]:"radii.sm",[Sa.variable]:"sizes.8"},xs:{[xa.variable]:"fontSizes.xs",[wa.variable]:"space.2",[Ca.variable]:"radii.sm",[Sa.variable]:"sizes.6"}},MM={lg:Qo({field:ki.lg,group:ki.lg}),md:Qo({field:ki.md,group:ki.md}),sm:Qo({field:ki.sm,group:ki.sm}),xs:Qo({field:ki.xs,group:ki.xs})};function vy(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||Oe("blue.500","blue.300")(e),errorBorderColor:n||Oe("red.500","red.300")(e)}}const IM=Qo(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:o}=vy(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:$n(t,o),boxShadow:`0 0 0 1px ${$n(t,o)}`},_focusVisible:{zIndex:1,borderColor:$n(t,n),boxShadow:`0 0 0 1px ${$n(t,n)}`}},addon:{border:"1px solid",borderColor:Oe("inherit","whiteAlpha.50")(e),bg:Oe("gray.100","whiteAlpha.300")(e)}}}),NM=Qo(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:o}=vy(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:$n(t,o)},_focusVisible:{bg:"transparent",borderColor:$n(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:Oe("gray.100","whiteAlpha.50")(e)}}}),DM=Qo(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:o}=vy(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:$n(t,o),boxShadow:`0px 1px 0px 0px ${$n(t,o)}`},_focusVisible:{borderColor:$n(t,n),boxShadow:`0px 1px 0px 0px ${$n(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),FM=Qo({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),LM={outline:IM,filled:NM,flushed:DM,unstyled:FM},it=OM({baseStyle:jM,sizes:MM,variants:LM,defaultProps:{size:"md",variant:"outline"}}),Kp=je("kbd-bg"),zM={[Kp.variable]:"colors.gray.100",_dark:{[Kp.variable]:"colors.whiteAlpha.100"},bg:Kp.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},$M={baseStyle:zM},BM={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},VM={baseStyle:BM},{defineMultiStyleConfig:UM,definePartsStyle:WM}=mt(V2.keys),HM={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},qM=WM({icon:HM}),KM=UM({baseStyle:qM}),{defineMultiStyleConfig:GM,definePartsStyle:QM}=mt(U2.keys),Co=je("menu-bg"),Gp=je("menu-shadow"),YM={[Co.variable]:"#fff",[Gp.variable]:"shadows.sm",_dark:{[Co.variable]:"colors.gray.700",[Gp.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Co.reference,boxShadow:Gp.reference},XM={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Co.variable]:"colors.gray.100",_dark:{[Co.variable]:"colors.whiteAlpha.100"}},_active:{[Co.variable]:"colors.gray.200",_dark:{[Co.variable]:"colors.whiteAlpha.200"}},_expanded:{[Co.variable]:"colors.gray.100",_dark:{[Co.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Co.reference},ZM={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},JM={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},eI={opacity:.6},tI={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},nI={transitionProperty:"common",transitionDuration:"normal"},rI=QM({button:nI,list:YM,item:XM,groupTitle:ZM,icon:JM,command:eI,divider:tI}),oI=GM({baseStyle:rI}),{defineMultiStyleConfig:iI,definePartsStyle:lg}=mt(W2.keys),Qp=je("modal-bg"),Yp=je("modal-shadow"),sI={bg:"blackAlpha.600",zIndex:"modal"},aI=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},lI=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[Qp.variable]:"colors.white",[Yp.variable]:"shadows.lg",_dark:{[Qp.variable]:"colors.gray.700",[Yp.variable]:"shadows.dark-lg"},bg:Qp.reference,boxShadow:Yp.reference}},uI={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},cI={position:"absolute",top:"2",insetEnd:"3"},dI=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},fI={px:"6",py:"4"},hI=lg(e=>({overlay:sI,dialogContainer:Vn(aI,e),dialog:Vn(lI,e),header:uI,closeButton:cI,body:Vn(dI,e),footer:fI}));function Jr(e){return lg(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const pI={xs:Jr("xs"),sm:Jr("sm"),md:Jr("md"),lg:Jr("lg"),xl:Jr("xl"),"2xl":Jr("2xl"),"3xl":Jr("3xl"),"4xl":Jr("4xl"),"5xl":Jr("5xl"),"6xl":Jr("6xl"),full:Jr("full")},mI=iI({baseStyle:hI,sizes:pI,defaultProps:{size:"md"}}),EC={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"}},{defineMultiStyleConfig:gI,definePartsStyle:TC}=mt(H2.keys),by=nn("number-input-stepper-width"),_C=nn("number-input-input-padding"),yI=Ko(by).add("0.5rem").toString(),Xp=nn("number-input-bg"),Zp=nn("number-input-color"),Jp=nn("number-input-border-color"),vI={[by.variable]:"sizes.6",[_C.variable]:yI},bI=e=>{var t;return((t=Vn(it.baseStyle,e))==null?void 0:t.field)??{}},SI={width:by.reference},xI={borderStart:"1px solid",borderStartColor:Jp.reference,color:Zp.reference,bg:Xp.reference,[Zp.variable]:"colors.chakra-body-text",[Jp.variable]:"colors.chakra-border-color",_dark:{[Zp.variable]:"colors.whiteAlpha.800",[Jp.variable]:"colors.whiteAlpha.300"},_active:{[Xp.variable]:"colors.gray.200",_dark:{[Xp.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},wI=TC(e=>({root:vI,field:Vn(bI,e)??{},stepperGroup:SI,stepper:xI}));function md(e){var a,u;const t=(a=it.sizes)==null?void 0:a[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},o=((u=t.field)==null?void 0:u.fontSize)??"md",s=EC.fontSizes[o];return TC({field:{...t.field,paddingInlineEnd:_C.reference,verticalAlign:"top"},stepper:{fontSize:Ko(s).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const CI={xs:md("xs"),sm:md("sm"),md:md("md"),lg:md("lg")},kI=gI({baseStyle:wI,sizes:CI,variants:it.variants,defaultProps:it.defaultProps});var Lw;const EI={...(Lw=it.baseStyle)==null?void 0:Lw.field,textAlign:"center"},TI={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"}};var zw;const _I={outline:e=>{var t,n;return((n=Vn((t=it.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=Vn((t=it.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=Vn((t=it.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((zw=it.variants)==null?void 0:zw.unstyled.field)??{}},PI={baseStyle:EI,sizes:TI,variants:_I,defaultProps:it.defaultProps},{defineMultiStyleConfig:RI,definePartsStyle:AI}=mt(q2.keys),gd=nn("popper-bg"),OI=nn("popper-arrow-bg"),AS=nn("popper-arrow-shadow-color"),jI={zIndex:"popover"},MI={[gd.variable]:"colors.white",bg:gd.reference,[OI.variable]:gd.reference,[AS.variable]:"colors.gray.200",_dark:{[gd.variable]:"colors.gray.700",[AS.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},II={px:3,py:2,borderBottomWidth:"1px"},NI={px:3,py:2},DI={px:3,py:2,borderTopWidth:"1px"},FI={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},LI=AI({popper:jI,content:MI,header:II,body:NI,footer:DI,closeButton:FI}),zI=RI({baseStyle:LI}),{defineMultiStyleConfig:$I,definePartsStyle:su}=mt(K2.keys),BI=e=>{const{colorScheme:t,theme:n,isIndeterminate:o,hasStripe:s}=e,a=Oe(ES(),ES("1rem","rgba(0,0,0,0.1)"))(e),u=Oe(`${t}.500`,`${t}.200`)(e),c=`linear-gradient(
|
||
to right,
|
||
transparent 0%,
|
||
${$n(n,u)} 50%,
|
||
transparent 100%
|
||
)`;return{...!o&&s&&a,...o?{bgImage:c}:{bgColor:u}}},VI={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},UI=e=>({bg:Oe("gray.100","whiteAlpha.300")(e)}),WI=e=>({transitionProperty:"common",transitionDuration:"slow",...BI(e)}),HI=su(e=>({label:VI,filledTrack:WI(e),track:UI(e)})),qI={xs:su({track:{h:"1"}}),sm:su({track:{h:"2"}}),md:su({track:{h:"3"}}),lg:su({track:{h:"4"}})},KI=$I({sizes:qI,baseStyle:HI,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:GI,definePartsStyle:Vd}=mt(G2.keys),QI=e=>{var n;const t=(n=Vn(Pi.baseStyle,e))==null?void 0:n.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},YI=Vd(e=>{var t,n;return{label:(t=Pi.baseStyle)==null?void 0:t.call(Pi,e).label,container:(n=Pi.baseStyle)==null?void 0:n.call(Pi,e).container,control:QI(e)}}),XI={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"}})},ZI=GI({baseStyle:YI,sizes:XI,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:JI,definePartsStyle:eN}=mt(Q2.keys),yd=je("select-bg");var $w;const tN={...($w=it.baseStyle)==null?void 0:$w.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:yd.reference,[yd.variable]:"colors.white",_dark:{[yd.variable]:"colors.gray.700"},"> option, > optgroup":{bg:yd.reference}},nN={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},rN=eN({field:tN,icon:nN}),vd={paddingInlineEnd:"8"};var Bw,Vw,Uw,Ww,Hw,qw,Kw,Gw;const oN={lg:{...(Bw=it.sizes)==null?void 0:Bw.lg,field:{...(Vw=it.sizes)==null?void 0:Vw.lg.field,...vd}},md:{...(Uw=it.sizes)==null?void 0:Uw.md,field:{...(Ww=it.sizes)==null?void 0:Ww.md.field,...vd}},sm:{...(Hw=it.sizes)==null?void 0:Hw.sm,field:{...(qw=it.sizes)==null?void 0:qw.sm.field,...vd}},xs:{...(Kw=it.sizes)==null?void 0:Kw.xs,field:{...(Gw=it.sizes)==null?void 0:Gw.xs.field,...vd},icon:{insetEnd:"1"}}},iN=JI({baseStyle:rN,sizes:oN,variants:it.variants,defaultProps:it.defaultProps}),em=je("skeleton-start-color"),tm=je("skeleton-end-color"),sN={[em.variable]:"colors.gray.100",[tm.variable]:"colors.gray.400",_dark:{[em.variable]:"colors.gray.800",[tm.variable]:"colors.gray.600"},background:em.reference,borderColor:tm.reference,opacity:.7,borderRadius:"sm"},aN={baseStyle:sN},nm=je("skip-link-bg"),lN={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[nm.variable]:"colors.white",_dark:{[nm.variable]:"colors.gray.700"},bg:nm.reference}},uN={baseStyle:lN},{defineMultiStyleConfig:cN,definePartsStyle:Df}=mt(Y2.keys),ks=je("slider-thumb-size"),_u=je("slider-track-size"),Ai=je("slider-bg"),dN=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...gy({orientation:t,vertical:{h:"100%",px:qo(ks.reference).divide(2).toString()},horizontal:{w:"100%",py:qo(ks.reference).divide(2).toString()}})}},fN=e=>({...gy({orientation:e.orientation,horizontal:{h:_u.reference},vertical:{w:_u.reference}}),overflow:"hidden",borderRadius:"sm",[Ai.variable]:"colors.gray.200",_dark:{[Ai.variable]:"colors.whiteAlpha.200"},_disabled:{[Ai.variable]:"colors.gray.300",_dark:{[Ai.variable]:"colors.whiteAlpha.300"}},bg:Ai.reference}),hN=e=>{const{orientation:t}=e;return{...gy({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:ks.reference,h:ks.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"},_active:{"--slider-thumb-scale":"1.15"},_disabled:{bg:"gray.300"}}},pN=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Ai.variable]:`colors.${t}.500`,_dark:{[Ai.variable]:`colors.${t}.200`},bg:Ai.reference}},mN=Df(e=>({container:dN(e),track:fN(e),thumb:hN(e),filledTrack:pN(e)})),gN=Df({container:{[ks.variable]:"sizes.4",[_u.variable]:"sizes.1"}}),yN=Df({container:{[ks.variable]:"sizes.3.5",[_u.variable]:"sizes.1"}}),vN=Df({container:{[ks.variable]:"sizes.2.5",[_u.variable]:"sizes.0.5"}}),bN={lg:gN,md:yN,sm:vN},SN=cN({baseStyle:mN,sizes:bN,defaultProps:{size:"md",colorScheme:"blue"}}),cs=nn("spinner-size"),xN={width:[cs.reference],height:[cs.reference]},wN={xs:{[cs.variable]:"sizes.3"},sm:{[cs.variable]:"sizes.4"},md:{[cs.variable]:"sizes.6"},lg:{[cs.variable]:"sizes.8"},xl:{[cs.variable]:"sizes.12"}},CN={baseStyle:xN,sizes:wN,defaultProps:{size:"md"}},{defineMultiStyleConfig:kN,definePartsStyle:PC}=mt(X2.keys),EN={fontWeight:"medium"},TN={opacity:.8,marginBottom:"2"},_N={verticalAlign:"baseline",fontWeight:"semibold"},PN={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},RN=PC({container:{},label:EN,helpText:TN,number:_N,icon:PN}),AN={md:PC({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},ON=kN({baseStyle:RN,sizes:AN,defaultProps:{size:"md"}}),{defineMultiStyleConfig:jN,definePartsStyle:au}=mt(["stepper","step","title","description","indicator","separator","icon","number"]),Go=je("stepper-indicator-size"),ka=je("stepper-icon-size"),Ea=je("stepper-title-font-size"),lu=je("stepper-description-font-size"),Ul=je("stepper-accent-color"),MN=au(({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"},[Ul.variable]:`colors.${e}.500`,_dark:{[Ul.variable]:`colors.${e}.200`}},title:{fontSize:Ea.reference,fontWeight:"medium"},description:{fontSize:lu.reference,color:"chakra-subtle-text"},number:{fontSize:Ea.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:ka.reference,height:ka.reference},indicator:{flexShrink:0,borderRadius:"full",width:Go.reference,height:Go.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Ul.reference},"&[data-status=complete]":{bg:Ul.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Ul.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Go.reference} - 8px)`,top:`calc(${Go.reference} + 4px)`,insetStart:`calc(${Go.reference} / 2 - 1px)`}}})),IN=jN({baseStyle:MN,sizes:{xs:au({stepper:{[Go.variable]:"sizes.4",[ka.variable]:"sizes.3",[Ea.variable]:"fontSizes.xs",[lu.variable]:"fontSizes.xs"}}),sm:au({stepper:{[Go.variable]:"sizes.6",[ka.variable]:"sizes.4",[Ea.variable]:"fontSizes.sm",[lu.variable]:"fontSizes.xs"}}),md:au({stepper:{[Go.variable]:"sizes.8",[ka.variable]:"sizes.5",[Ea.variable]:"fontSizes.md",[lu.variable]:"fontSizes.sm"}}),lg:au({stepper:{[Go.variable]:"sizes.10",[ka.variable]:"sizes.6",[Ea.variable]:"fontSizes.lg",[lu.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:NN,definePartsStyle:Ud}=mt(Z2.keys),bu=nn("switch-track-width"),ys=nn("switch-track-height"),rm=nn("switch-track-diff"),DN=Ko.subtract(bu,ys),ug=nn("switch-thumb-x"),Wl=nn("switch-bg"),FN=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[bu.reference],height:[ys.reference],transitionProperty:"common",transitionDuration:"fast",[Wl.variable]:"colors.gray.300",_dark:{[Wl.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Wl.variable]:`colors.${t}.500`,_dark:{[Wl.variable]:`colors.${t}.200`}},bg:Wl.reference}},LN={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[ys.reference],height:[ys.reference],_checked:{transform:`translateX(${ug.reference})`}},zN=Ud(e=>({container:{[rm.variable]:DN,[ug.variable]:rm.reference,_rtl:{[ug.variable]:Ko(rm).negate().toString()}},track:FN(e),thumb:LN})),$N={sm:Ud({container:{[bu.variable]:"1.375rem",[ys.variable]:"sizes.3"}}),md:Ud({container:{[bu.variable]:"1.875rem",[ys.variable]:"sizes.4"}}),lg:Ud({container:{[bu.variable]:"2.875rem",[ys.variable]:"sizes.6"}})},BN=NN({baseStyle:zN,sizes:$N,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:VN,definePartsStyle:Da}=mt(J2.keys),UN=Da({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"}}),mf={"&[data-is-numeric=true]":{textAlign:"end"}},WN=Da(e=>{const{colorScheme:t}=e;return{th:{color:Oe("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Oe(`${t}.100`,`${t}.700`)(e),...mf},td:{borderBottom:"1px",borderColor:Oe(`${t}.100`,`${t}.700`)(e),...mf},caption:{color:Oe("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),HN=Da(e=>{const{colorScheme:t}=e;return{th:{color:Oe("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Oe(`${t}.100`,`${t}.700`)(e),...mf},td:{borderBottom:"1px",borderColor:Oe(`${t}.100`,`${t}.700`)(e),...mf},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}}}}}}),qN={simple:WN,striped:HN,unstyled:{}},KN={sm:Da({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:Da({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Da({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},GN=VN({baseStyle:UN,variants:qN,sizes:KN,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Zn=je("tabs-color"),no=je("tabs-bg"),bd=je("tabs-border-color"),{defineMultiStyleConfig:QN,definePartsStyle:Po}=mt(eO.keys),YN=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},XN=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}}},ZN=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},JN={p:4},eD=Po(e=>({root:YN(e),tab:XN(e),tablist:ZN(e),tabpanel:JN})),tD={sm:Po({tab:{py:1,px:4,fontSize:"sm"}}),md:Po({tab:{fontSize:"md",py:2,px:4}}),lg:Po({tab:{fontSize:"lg",py:3,px:4}})},nD=Po(e=>{const{colorScheme:t,orientation:n}=e,o=n==="vertical",s=o?"borderStart":"borderBottom",a=o?"marginStart":"marginBottom";return{tablist:{[s]:"2px solid",borderColor:"inherit"},tab:{[s]:"2px solid",borderColor:"transparent",[a]:"-2px",_selected:{[Zn.variable]:`colors.${t}.600`,_dark:{[Zn.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[no.variable]:"colors.gray.200",_dark:{[no.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Zn.reference,bg:no.reference}}}),rD=Po(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[bd.variable]:"transparent",_selected:{[Zn.variable]:`colors.${t}.600`,[bd.variable]:"colors.white",_dark:{[Zn.variable]:`colors.${t}.300`,[bd.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:bd.reference},color:Zn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),oD=Po(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[no.variable]:"colors.gray.50",_dark:{[no.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[no.variable]:"colors.white",[Zn.variable]:`colors.${t}.600`,_dark:{[no.variable]:"colors.gray.800",[Zn.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Zn.reference,bg:no.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),iD=Po(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:$n(n,`${t}.700`),bg:$n(n,`${t}.100`)}}}}),sD=Po(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Zn.variable]:"colors.gray.600",_dark:{[Zn.variable]:"inherit"},_selected:{[Zn.variable]:"colors.white",[no.variable]:`colors.${t}.600`,_dark:{[Zn.variable]:"colors.gray.800",[no.variable]:`colors.${t}.300`}},color:Zn.reference,bg:no.reference}}}),aD=Po({}),lD={line:nD,enclosed:rD,"enclosed-colored":oD,"soft-rounded":iD,"solid-rounded":sD,unstyled:aD},uD=QN({baseStyle:eD,sizes:tD,variants:lD,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:cD,definePartsStyle:vs}=mt(tO.keys),OS=je("tag-bg"),jS=je("tag-color"),om=je("tag-shadow"),Wd=je("tag-min-height"),Hd=je("tag-min-width"),qd=je("tag-font-size"),Kd=je("tag-padding-inline"),dD={fontWeight:"medium",lineHeight:1.2,outline:0,[jS.variable]:Bt.color.reference,[OS.variable]:Bt.bg.reference,[om.variable]:Bt.shadow.reference,color:jS.reference,bg:OS.reference,boxShadow:om.reference,borderRadius:"md",minH:Wd.reference,minW:Hd.reference,fontSize:qd.reference,px:Kd.reference,_focusVisible:{[om.variable]:"shadows.outline"}},fD={lineHeight:1.2,overflow:"visible"},hD={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}},pD=vs({container:dD,label:fD,closeButton:hD}),mD={sm:vs({container:{[Wd.variable]:"sizes.5",[Hd.variable]:"sizes.5",[qd.variable]:"fontSizes.xs",[Kd.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:vs({container:{[Wd.variable]:"sizes.6",[Hd.variable]:"sizes.6",[qd.variable]:"fontSizes.sm",[Kd.variable]:"space.2"}}),lg:vs({container:{[Wd.variable]:"sizes.8",[Hd.variable]:"sizes.8",[qd.variable]:"fontSizes.md",[Kd.variable]:"space.3"}})},gD={subtle:vs(e=>{var t;return{container:(t=gu.variants)==null?void 0:t.subtle(e)}}),solid:vs(e=>{var t;return{container:(t=gu.variants)==null?void 0:t.solid(e)}}),outline:vs(e=>{var t;return{container:(t=gu.variants)==null?void 0:t.outline(e)}})},yD=cD({variants:gD,baseStyle:pD,sizes:mD,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var Qw;const vD={...(Qw=it.baseStyle)==null?void 0:Qw.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var Yw;const bD={outline:e=>{var t;return((t=it.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=it.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=it.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((Yw=it.variants)==null?void 0:Yw.unstyled.field)??{}};var Xw,Zw,Jw,eC;const SD={xs:((Xw=it.sizes)==null?void 0:Xw.xs.field)??{},sm:((Zw=it.sizes)==null?void 0:Zw.sm.field)??{},md:((Jw=it.sizes)==null?void 0:Jw.md.field)??{},lg:((eC=it.sizes)==null?void 0:eC.lg.field)??{}},xD={baseStyle:vD,sizes:SD,variants:bD,defaultProps:{size:"md",variant:"outline"}},Sd=nn("tooltip-bg"),im=nn("tooltip-fg"),wD=nn("popper-arrow-bg"),CD={bg:Sd.reference,color:im.reference,[Sd.variable]:"colors.gray.700",[im.variable]:"colors.whiteAlpha.900",_dark:{[Sd.variable]:"colors.gray.300",[im.variable]:"colors.gray.900"},[wD.variable]:Sd.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},kD={baseStyle:CD},ED={Accordion:cO,Alert:KO,Avatar:oj,Badge:gu,Breadcrumb:pj,Button:Cj,Checkbox:Pi,CloseButton:Lj,Code:Vj,Container:Wj,Divider:Qj,Drawer:sM,Editable:hM,Form:bM,FormError:EM,FormLabel:_M,Heading:AM,Input:it,Kbd:$M,Link:VM,List:KM,Menu:oI,Modal:mI,NumberInput:kI,PinInput:PI,Popover:zI,Progress:KI,Radio:ZI,Select:iN,Skeleton:aN,SkipLink:uN,Slider:SN,Spinner:CN,Stat:ON,Switch:BN,Table:GN,Tabs:uD,Tag:yD,Textarea:xD,Tooltip:kD,Card:Pj,Stepper:IN},TD={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},_D={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},PD={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"}},RD={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},AD={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"},OD={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"},jD={"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)"},MD={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},ID={property:OD,easing:jD,duration:MD},ND={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},DD={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},FD={breakpoints:_D,zIndices:ND,radii:RD,blur:DD,colors:PD,...EC,sizes:bC,shadows:AD,space:vC,borders:TD,transition:ID},LD={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"}}},zD={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"}}},$D=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function BD(e){return gn(e)?$D.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}const VD="ltr",UD={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},RC={semanticTokens:LD,direction:VD,...FD,components:ED,styles:zD,config:UD};function WD(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 HD(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 qD=(function(){function e(n){var o=this;this._insertTag=function(s){var a;o.tags.length===0?o.insertionPoint?a=o.insertionPoint.nextSibling:o.prepend?a=o.container.firstChild:a=o.before:a=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(s,a),o.tags.push(s)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(HD(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var a=WD(s);try{a.insertRule(o,a.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){var s;return(s=o.parentNode)==null?void 0:s.removeChild(o)}),this.tags=[],this.ctr=0},e})(),Rn="-ms-",gf="-moz-",rt="-webkit-",AC="comm",Sy="rule",xy="decl",KD="@import",OC="@keyframes",GD="@layer",QD=Math.abs,Ff=String.fromCharCode,YD=Object.assign;function XD(e,t){return pn(e,0)^45?(((t<<2^pn(e,0))<<2^pn(e,1))<<2^pn(e,2))<<2^pn(e,3):0}function jC(e){return e.trim()}function ZD(e,t){return(e=t.exec(e))?e[0]:e}function ot(e,t,n){return e.replace(t,n)}function cg(e,t){return e.indexOf(t)}function pn(e,t){return e.charCodeAt(t)|0}function Pu(e,t,n){return e.slice(t,n)}function ko(e){return e.length}function wy(e){return e.length}function xd(e,t){return t.push(e),e}function JD(e,t){return e.map(t).join("")}var Lf=1,Ka=1,MC=0,nr=0,Ht=0,el="";function zf(e,t,n,o,s,a,u){return{value:e,root:t,parent:n,type:o,props:s,children:a,line:Lf,column:Ka,length:u,return:""}}function Hl(e,t){return YD(zf("",null,null,"",null,null,0),e,{length:-e.length},t)}function eF(){return Ht}function tF(){return Ht=nr>0?pn(el,--nr):0,Ka--,Ht===10&&(Ka=1,Lf--),Ht}function yr(){return Ht=nr<MC?pn(el,nr++):0,Ka++,Ht===10&&(Ka=1,Lf++),Ht}function Ro(){return pn(el,nr)}function Gd(){return nr}function Ku(e,t){return Pu(el,e,t)}function Ru(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 IC(e){return Lf=Ka=1,MC=ko(el=e),nr=0,[]}function NC(e){return el="",e}function Qd(e){return jC(Ku(nr-1,dg(e===91?e+2:e===40?e+1:e)))}function nF(e){for(;(Ht=Ro())&&Ht<33;)yr();return Ru(e)>2||Ru(Ht)>3?"":" "}function rF(e,t){for(;--t&&yr()&&!(Ht<48||Ht>102||Ht>57&&Ht<65||Ht>70&&Ht<97););return Ku(e,Gd()+(t<6&&Ro()==32&&yr()==32))}function dg(e){for(;yr();)switch(Ht){case e:return nr;case 34:case 39:e!==34&&e!==39&&dg(Ht);break;case 40:e===41&&dg(e);break;case 92:yr();break}return nr}function oF(e,t){for(;yr()&&e+Ht!==57;)if(e+Ht===84&&Ro()===47)break;return"/*"+Ku(t,nr-1)+"*"+Ff(e===47?e:yr())}function iF(e){for(;!Ru(Ro());)yr();return Ku(e,nr)}function sF(e){return NC(Yd("",null,null,null,[""],e=IC(e),0,[0],e))}function Yd(e,t,n,o,s,a,u,c,f){for(var p=0,h=0,g=u,v=0,k=0,x=0,S=1,w=1,T=1,A=0,_="",N=s,R=a,F=o,D=_;w;)switch(x=A,A=yr()){case 40:if(x!=108&&pn(D,g-1)==58){cg(D+=ot(Qd(A),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:D+=Qd(A);break;case 9:case 10:case 13:case 32:D+=nF(x);break;case 92:D+=rF(Gd()-1,7);continue;case 47:switch(Ro()){case 42:case 47:xd(aF(oF(yr(),Gd()),t,n),f);break;default:D+="/"}break;case 123*S:c[p++]=ko(D)*T;case 125*S:case 59:case 0:switch(A){case 0:case 125:w=0;case 59+h:T==-1&&(D=ot(D,/\f/g,"")),k>0&&ko(D)-g&&xd(k>32?IS(D+";",o,n,g-1):IS(ot(D," ","")+";",o,n,g-2),f);break;case 59:D+=";";default:if(xd(F=MS(D,t,n,p,h,s,c,_,N=[],R=[],g),a),A===123)if(h===0)Yd(D,t,F,F,N,a,g,c,R);else switch(v===99&&pn(D,3)===110?100:v){case 100:case 108:case 109:case 115:Yd(e,F,F,o&&xd(MS(e,F,F,0,0,s,c,_,s,N=[],g),R),s,R,g,c,o?N:R);break;default:Yd(D,F,F,F,[""],R,0,c,R)}}p=h=k=0,S=T=1,_=D="",g=u;break;case 58:g=1+ko(D),k=x;default:if(S<1){if(A==123)--S;else if(A==125&&S++==0&&tF()==125)continue}switch(D+=Ff(A),A*S){case 38:T=h>0?1:(D+="\f",-1);break;case 44:c[p++]=(ko(D)-1)*T,T=1;break;case 64:Ro()===45&&(D+=Qd(yr())),v=Ro(),h=g=ko(_=D+=iF(Gd())),A++;break;case 45:x===45&&ko(D)==2&&(S=0)}}return a}function MS(e,t,n,o,s,a,u,c,f,p,h){for(var g=s-1,v=s===0?a:[""],k=wy(v),x=0,S=0,w=0;x<o;++x)for(var T=0,A=Pu(e,g+1,g=QD(S=u[x])),_=e;T<k;++T)(_=jC(S>0?v[T]+" "+A:ot(A,/&\f/g,v[T])))&&(f[w++]=_);return zf(e,t,n,s===0?Sy:c,f,p,h)}function aF(e,t,n){return zf(e,t,n,AC,Ff(eF()),Pu(e,2,-2),0)}function IS(e,t,n,o){return zf(e,t,n,xy,Pu(e,0,o),Pu(e,o+1,-1),o)}function Fa(e,t){for(var n="",o=wy(e),s=0;s<o;s++)n+=t(e[s],s,e,t)||"";return n}function lF(e,t,n,o){switch(e.type){case GD:if(e.children.length)break;case KD:case xy:return e.return=e.return||e.value;case AC:return"";case OC:return e.return=e.value+"{"+Fa(e.children,o)+"}";case Sy:e.value=e.props.join(",")}return ko(n=Fa(e.children,o))?e.return=e.value+"{"+n+"}":""}function uF(e){var t=wy(e);return function(n,o,s,a){for(var u="",c=0;c<t;c++)u+=e[c](n,o,s,a)||"";return u}}function cF(e){return function(t){t.root||(t=t.return)&&e(t)}}var NS=function(t){var n=new WeakMap;return function(o){if(n.has(o))return n.get(o);var s=t(o);return n.set(o,s),s}};function DC(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var dF=function(t,n,o){for(var s=0,a=0;s=a,a=Ro(),s===38&&a===12&&(n[o]=1),!Ru(a);)yr();return Ku(t,nr)},fF=function(t,n){var o=-1,s=44;do switch(Ru(s)){case 0:s===38&&Ro()===12&&(n[o]=1),t[o]+=dF(nr-1,n,o);break;case 2:t[o]+=Qd(s);break;case 4:if(s===44){t[++o]=Ro()===58?"&\f":"",n[o]=t[o].length;break}default:t[o]+=Ff(s)}while(s=yr());return t},hF=function(t,n){return NC(fF(IC(t),n))},DS=new WeakMap,pF=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,o=t.parent,s=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!DS.get(o))&&!s){DS.set(t,!0);for(var a=[],u=hF(n,a),c=o.props,f=0,p=0;f<u.length;f++)for(var h=0;h<c.length;h++,p++)t.props[p]=a[f]?u[f].replace(/&\f/g,c[h]):c[h]+" "+u[f]}}},mF=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function FC(e,t){switch(XD(e,t)){case 5103:return rt+"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 rt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return rt+e+gf+e+Rn+e+e;case 6828:case 4268:return rt+e+Rn+e+e;case 6165:return rt+e+Rn+"flex-"+e+e;case 5187:return rt+e+ot(e,/(\w+).+(:[^]+)/,rt+"box-$1$2"+Rn+"flex-$1$2")+e;case 5443:return rt+e+Rn+"flex-item-"+ot(e,/flex-|-self/,"")+e;case 4675:return rt+e+Rn+"flex-line-pack"+ot(e,/align-content|flex-|-self/,"")+e;case 5548:return rt+e+Rn+ot(e,"shrink","negative")+e;case 5292:return rt+e+Rn+ot(e,"basis","preferred-size")+e;case 6060:return rt+"box-"+ot(e,"-grow","")+rt+e+Rn+ot(e,"grow","positive")+e;case 4554:return rt+ot(e,/([^-])(transform)/g,"$1"+rt+"$2")+e;case 6187:return ot(ot(ot(e,/(zoom-|grab)/,rt+"$1"),/(image-set)/,rt+"$1"),e,"")+e;case 5495:case 3959:return ot(e,/(image-set\([^]*)/,rt+"$1$`$1");case 4968:return ot(ot(e,/(.+:)(flex-)?(.*)/,rt+"box-pack:$3"+Rn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+rt+e+e;case 4095:case 3583:case 4068:case 2532:return ot(e,/(.+)-inline(.+)/,rt+"$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(ko(e)-1-t>6)switch(pn(e,t+1)){case 109:if(pn(e,t+4)!==45)break;case 102:return ot(e,/(.+:)(.+)-([^]+)/,"$1"+rt+"$2-$3$1"+gf+(pn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cg(e,"stretch")?FC(ot(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(pn(e,t+1)!==115)break;case 6444:switch(pn(e,ko(e)-3-(~cg(e,"!important")&&10))){case 107:return ot(e,":",":"+rt)+e;case 101:return ot(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+rt+(pn(e,14)===45?"inline-":"")+"box$3$1"+rt+"$2$3$1"+Rn+"$2box$3")+e}break;case 5936:switch(pn(e,t+11)){case 114:return rt+e+Rn+ot(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return rt+e+Rn+ot(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return rt+e+Rn+ot(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return rt+e+Rn+e+e}return e}var gF=function(t,n,o,s){if(t.length>-1&&!t.return)switch(t.type){case xy:t.return=FC(t.value,t.length);break;case OC:return Fa([Hl(t,{value:ot(t.value,"@","@"+rt)})],s);case Sy:if(t.length)return JD(t.props,function(a){switch(ZD(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fa([Hl(t,{props:[ot(a,/:(read-\w+)/,":"+gf+"$1")]})],s);case"::placeholder":return Fa([Hl(t,{props:[ot(a,/:(plac\w+)/,":"+rt+"input-$1")]}),Hl(t,{props:[ot(a,/:(plac\w+)/,":"+gf+"$1")]}),Hl(t,{props:[ot(a,/:(plac\w+)/,Rn+"input-$1")]})],s)}return""})}},yF=[gF],vF=function(t){var n=t.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(S){var w=S.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var s=t.stylisPlugins||yF,a={},u,c=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var w=S.getAttribute("data-emotion").split(" "),T=1;T<w.length;T++)a[w[T]]=!0;c.push(S)});var f,p=[pF,mF];{var h,g=[lF,cF(function(S){h.insert(S)})],v=uF(p.concat(s,g)),k=function(w){return Fa(sF(w),v)};f=function(w,T,A,_){h=A,k(w?w+"{"+T.styles+"}":T.styles),_&&(x.inserted[T.name]=!0)}}var x={key:n,sheet:new qD({key:n,container:u,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:f};return x.sheet.hydrate(c),x};function Es(){return Es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Es.apply(null,arguments)}var sm={exports:{}},lt={};/** @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 FS;function bF(){if(FS)return lt;FS=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,k=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function _(R){if(typeof R=="object"&&R!==null){var F=R.$$typeof;switch(F){case t:switch(R=R.type,R){case f:case p:case o:case a:case s:case g:return R;default:switch(R=R&&R.$$typeof,R){case c:case h:case x:case k:case u:return R;default:return F}}case n:return F}}}function N(R){return _(R)===p}return lt.AsyncMode=f,lt.ConcurrentMode=p,lt.ContextConsumer=c,lt.ContextProvider=u,lt.Element=t,lt.ForwardRef=h,lt.Fragment=o,lt.Lazy=x,lt.Memo=k,lt.Portal=n,lt.Profiler=a,lt.StrictMode=s,lt.Suspense=g,lt.isAsyncMode=function(R){return N(R)||_(R)===f},lt.isConcurrentMode=N,lt.isContextConsumer=function(R){return _(R)===c},lt.isContextProvider=function(R){return _(R)===u},lt.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===t},lt.isForwardRef=function(R){return _(R)===h},lt.isFragment=function(R){return _(R)===o},lt.isLazy=function(R){return _(R)===x},lt.isMemo=function(R){return _(R)===k},lt.isPortal=function(R){return _(R)===n},lt.isProfiler=function(R){return _(R)===a},lt.isStrictMode=function(R){return _(R)===s},lt.isSuspense=function(R){return _(R)===g},lt.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===o||R===p||R===a||R===s||R===g||R===v||typeof R=="object"&&R!==null&&(R.$$typeof===x||R.$$typeof===k||R.$$typeof===u||R.$$typeof===c||R.$$typeof===h||R.$$typeof===w||R.$$typeof===T||R.$$typeof===A||R.$$typeof===S)},lt.typeOf=_,lt}var LS;function SF(){return LS||(LS=1,sm.exports=bF()),sm.exports}var am,zS;function xF(){if(zS)return am;zS=1;var e=SF(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=o,a[e.Memo]=s;function u(x){return e.isMemo(x)?s:a[x.$$typeof]||t}var c=Object.defineProperty,f=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,v=Object.prototype;function k(x,S,w){if(typeof S!="string"){if(v){var T=g(S);T&&T!==v&&k(x,T,w)}var A=f(S);p&&(A=A.concat(p(S)));for(var _=u(x),N=u(S),R=0;R<A.length;++R){var F=A[R];if(!n[F]&&!(w&&w[F])&&!(N&&N[F])&&!(_&&_[F])){var D=h(S,F);try{c(x,F,D)}catch{}}}}return x}return am=k,am}xF();var wF=!0;function LC(e,t,n){var o="";return n.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(o+=s+" ")}),o}var Cy=function(t,n,o){var s=t.key+"-"+n.name;(o===!1||wF===!1)&&t.registered[s]===void 0&&(t.registered[s]=n.styles)},ky=function(t,n,o){Cy(t,n,o);var s=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+s:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function CF(e){for(var t=0,n,o=0,s=e.length;s>=4;++o,s-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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 kF={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},EF=/[A-Z]|^ms/g,TF=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zC=function(t){return t.charCodeAt(1)===45},$S=function(t){return t!=null&&typeof t!="boolean"},lm=DC(function(e){return zC(e)?e:e.replace(EF,"-$&").toLowerCase()}),BS=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(TF,function(o,s,a){return Eo={name:s,styles:a,next:Eo},s})}return kF[t]!==1&&!zC(t)&&typeof n=="number"&&n!==0?n+"px":n};function Au(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return Eo={name:s.name,styles:s.styles,next:Eo},s.name;var a=n;if(a.styles!==void 0){var u=a.next;if(u!==void 0)for(;u!==void 0;)Eo={name:u.name,styles:u.styles,next:Eo},u=u.next;var c=a.styles+";";return c}return _F(e,t,n)}case"function":{if(e!==void 0){var f=Eo,p=n(e);return Eo=f,Au(e,t,p)}break}}var h=n;if(t==null)return h;var g=t[h];return g!==void 0?g:h}function _F(e,t,n){var o="";if(Array.isArray(n))for(var s=0;s<n.length;s++)o+=Au(e,t,n[s])+";";else for(var a in n){var u=n[a];if(typeof u!="object"){var c=u;t!=null&&t[c]!==void 0?o+=a+"{"+t[c]+"}":$S(c)&&(o+=lm(a)+":"+BS(a,c)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var f=0;f<u.length;f++)$S(u[f])&&(o+=lm(a)+":"+BS(a,u[f])+";");else{var p=Au(e,t,u);switch(a){case"animation":case"animationName":{o+=lm(a)+":"+p+";";break}default:o+=a+"{"+p+"}"}}}return o}var VS=/label:\s*([^\s;{]+)\s*(;|$)/g,Eo;function $f(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,s="";Eo=void 0;var a=e[0];if(a==null||a.raw===void 0)o=!1,s+=Au(n,t,a);else{var u=a;s+=u[0]}for(var c=1;c<e.length;c++)if(s+=Au(n,t,e[c]),o){var f=a;s+=f[c]}VS.lastIndex=0;for(var p="",h;(h=VS.exec(s))!==null;)p+="-"+h[1];var g=CF(s)+p;return{name:g,styles:s,next:Eo}}var PF=function(t){return t()},$C=Zm.useInsertionEffect?Zm.useInsertionEffect:!1,BC=$C||PF,US=$C||C.useLayoutEffect,Ey=C.createContext(typeof HTMLElement<"u"?vF({key:"css"}):null);Ey.Provider;var RF=function(){return C.useContext(Ey)},Ty=function(t){return C.forwardRef(function(n,o){var s=C.useContext(Ey);return t(n,s,o)})},Ga=C.createContext({}),AF=function(t,n){if(typeof n=="function"){var o=n(t);return o}return Es({},t,n)},OF=NS(function(e){return NS(function(t){return AF(e,t)})}),jF=function(t){var n=C.useContext(Ga);return t.theme!==n&&(n=OF(n)(t.theme)),C.createElement(Ga.Provider,{value:n},t.children)},_y={}.hasOwnProperty,fg="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",MF=function(t,n){var o={};for(var s in n)_y.call(n,s)&&(o[s]=n[s]);return o[fg]=t,o},IF=function(t){var n=t.cache,o=t.serialized,s=t.isStringTag;return Cy(n,o,s),BC(function(){return ky(n,o,s)}),null},NF=Ty(function(e,t,n){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var s=e[fg],a=[o],u="";typeof e.className=="string"?u=LC(t.registered,a,e.className):e.className!=null&&(u=e.className+" ");var c=$f(a,void 0,C.useContext(Ga));u+=t.key+"-"+c.name;var f={};for(var p in e)_y.call(e,p)&&p!=="css"&&p!==fg&&(f[p]=e[p]);return f.className=u,n&&(f.ref=n),C.createElement(C.Fragment,null,C.createElement(IF,{cache:t,serialized:c,isStringTag:typeof s=="string"}),C.createElement(s,f))}),DF=NF,WS=function(t,n){var o=arguments;if(n==null||!_y.call(n,"css"))return C.createElement.apply(void 0,o);var s=o.length,a=new Array(s);a[0]=DF,a[1]=MF(t,n);for(var u=2;u<s;u++)a[u]=o[u];return C.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(WS||(WS={}));var Bf=Ty(function(e,t){var n=e.styles,o=$f([n],void 0,C.useContext(Ga)),s=C.useRef();return US(function(){var a=t.key+"-global",u=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,f=document.querySelector('style[data-emotion="'+a+" "+o.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),f!==null&&(c=!0,f.setAttribute("data-emotion",a),u.hydrate([f])),s.current=[u,c],function(){u.flush()}},[t]),US(function(){var a=s.current,u=a[0],c=a[1];if(c){a[1]=!1;return}if(o.next!==void 0&&ky(t,o.next,!0),u.tags.length){var f=u.tags[u.tags.length-1].nextElementSibling;u.before=f,u.flush()}t.insert("",o,u,!1)},[t,o.name]),null});function FF(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $f(t)}function LF(){var e=FF.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_"}}}const Py=C.createContext({});Py.displayName="ColorModeContext";function Vf(){const e=C.useContext(Py);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function um(e,t){const{colorMode:n}=Vf();return n==="dark"?t:e}const wd={light:"chakra-ui-light",dark:"chakra-ui-dark"};function zF(e={}){const{preventTransition:t=!0,nonce:n}=e,o={setDataset:s=>{const a=t?o.preventTransition():void 0;document.documentElement.dataset.theme=s,document.documentElement.style.colorScheme=s,a==null||a()},setClassName(s){document.body.classList.add(s?wd.dark:wd.light),document.body.classList.remove(s?wd.light:wd.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(s){return o.query().matches??s==="dark"?"dark":"light"},addListener(s){const a=o.query(),u=c=>{s(c.matches?"dark":"light")};return typeof a.addListener=="function"?a.addListener(u):a.addEventListener("change",u),()=>{typeof a.removeListener=="function"?a.removeListener(u):a.removeEventListener("change",u)}},preventTransition(){const s=document.createElement("style");return s.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n!==void 0&&(s.nonce=n),document.head.appendChild(s),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(s)})})}}};return o}const $F="chakra-ui-color-mode";function BF(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const VF=BF($F),HS=()=>{},UF=qR()?C.useLayoutEffect:C.useEffect;function qS(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const VC=function(t){const{value:n,children:o,options:{useSystemColorMode:s,initialColorMode:a,disableTransitionOnChange:u}={},colorModeManager:c=VF}=t,f=RF(),p=a==="dark"?"dark":"light",[h,g]=C.useState(()=>qS(c,p)),[v,k]=C.useState(()=>qS(c)),{getSystemTheme:x,setClassName:S,setDataset:w,addListener:T}=C.useMemo(()=>zF({preventTransition:u,nonce:f==null?void 0:f.nonce}),[u,f==null?void 0:f.nonce]),A=a==="system"&&!h?v:h,_=C.useCallback(F=>{const D=F==="system"?x():F;g(D),S(D==="dark"),w(D),c.set(D)},[c,x,S,w]);UF(()=>{a==="system"&&k(x())},[]),C.useEffect(()=>{const F=c.get();if(F){_(F);return}if(a==="system"){_("system");return}_(p)},[c,p,a,_]);const N=C.useCallback(()=>{_(A==="dark"?"light":"dark")},[A,_]);C.useEffect(()=>{if(s)return T(_)},[s,T,_]);const R=C.useMemo(()=>({colorMode:n??A,toggleColorMode:n?HS:N,setColorMode:n?HS:_,forced:n!==void 0}),[A,N,_,n]);return b.jsx(Py.Provider,{value:R,children:o})};VC.displayName="ColorModeProvider";const UC=String.raw,WC=UC`
|
||
: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;
|
||
}
|
||
}
|
||
`,WF=()=>b.jsx(Bf,{styles:WC}),HF=({scope:e=""})=>b.jsx(Bf,{styles:UC`
|
||
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;
|
||
}
|
||
|
||
${WC}
|
||
`});function qF(e){const{cssVarsRoot:t,theme:n,children:o}=e,s=C.useMemo(()=>O2(n),[n]);return b.jsxs(jF,{theme:s,children:[b.jsx(KF,{root:t}),o]})}function KF({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return b.jsx(Bf,{styles:n=>({[t]:n.__cssVars})})}yn({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function GF(e){return yn({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function QF(){const{colorMode:e}=Vf();return b.jsx(Bf,{styles:t=>{const n=iC(t,"styles.global"),o=Lr(n,{theme:t,colorMode:e});return o?pC(o)(t):void 0}})}const[YF,XF]=yn({strict:!1,name:"PortalManagerContext"});function HC(e){const{children:t,zIndex:n}=e;return b.jsx(YF,{value:{zIndex:n},children:t})}HC.displayName="PortalManager";const qC=C.createContext({getDocument(){return document},getWindow(){return window}});qC.displayName="EnvironmentContext";function KC(e){const{children:t,environment:n,disabled:o}=e,s=C.useRef(null),a=C.useMemo(()=>n||{getDocument:()=>{var c;return((c=s.current)==null?void 0:c.ownerDocument)??document},getWindow:()=>{var c;return((c=s.current)==null?void 0:c.ownerDocument.defaultView)??window}},[n]),u=!o||!n;return b.jsxs(qC.Provider,{value:a,children:[t,u&&b.jsx("span",{id:"__chakra_env",hidden:!0,ref:s})]})}KC.displayName="EnvironmentProvider";const ZF=e=>{const{children:t,colorModeManager:n,portalZIndex:o,resetScope:s,resetCSS:a=!0,theme:u={},environment:c,cssVarsRoot:f,disableEnvironment:p,disableGlobalStyle:h}=e,g=b.jsx(KC,{environment:c,disabled:p,children:t});return b.jsx(qF,{theme:u,cssVarsRoot:f,children:b.jsxs(VC,{colorModeManager:n,options:u.config,children:[a?b.jsx(HF,{scope:s}):b.jsx(WF,{}),!h&&b.jsx(QF,{}),o?b.jsx(HC,{zIndex:o,children:g}):g]})})},Ry=C.createContext({});function Ay(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const Oy=typeof window<"u",GC=Oy?C.useLayoutEffect:C.useEffect,Gu=C.createContext(null);function jy(e,t){e.indexOf(t)===-1&&e.push(t)}function My(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ti=(e,t,n)=>n>t?t:n<e?e:n;let Iy=()=>{};const ni={},QC=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function YC(e){return typeof e=="object"&&e!==null}const XC=e=>/^0[^.\s]+$/u.test(e);function Ny(e){let t;return()=>(t===void 0&&(t=e()),t)}const Br=e=>e,JF=(e,t)=>n=>t(e(n)),Qu=(...e)=>e.reduce(JF),Ou=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o};class Dy{constructor(){this.subscriptions=[]}add(t){return jy(this.subscriptions,t),()=>My(this.subscriptions,t)}notify(t,n,o){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,o);else for(let a=0;a<s;a++){const u=this.subscriptions[a];u&&u(t,n,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ao=e=>e*1e3,$r=e=>e/1e3;function ZC(e,t){return t?e*(1e3/t):0}const JC=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,eL=1e-7,tL=12;function nL(e,t,n,o,s){let a,u,c=0;do u=t+(n-t)/2,a=JC(u,o,s)-e,a>0?n=u:t=u;while(Math.abs(a)>eL&&++c<tL);return u}function Yu(e,t,n,o){if(e===t&&n===o)return Br;const s=a=>nL(a,0,1,e,n);return a=>a===0||a===1?a:JC(s(a),t,o)}const ek=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tk=e=>t=>1-e(1-t),nk=Yu(.33,1.53,.69,.99),Fy=tk(nk),rk=ek(Fy),ok=e=>(e*=2)<1?.5*Fy(e):.5*(2-Math.pow(2,-10*(e-1))),Ly=e=>1-Math.sin(Math.acos(e)),ik=tk(Ly),sk=ek(Ly),rL=Yu(.42,0,1,1),oL=Yu(0,0,.58,1),ak=Yu(.42,0,.58,1),iL=e=>Array.isArray(e)&&typeof e[0]!="number",lk=e=>Array.isArray(e)&&typeof e[0]=="number",sL={linear:Br,easeIn:rL,easeInOut:ak,easeOut:oL,circIn:Ly,circInOut:sk,circOut:ik,backIn:Fy,backInOut:rk,backOut:nk,anticipate:ok},aL=e=>typeof e=="string",KS=e=>{if(lk(e)){Iy(e.length===4);const[t,n,o,s]=e;return Yu(t,n,o,s)}else if(aL(e))return sL[e];return e},Cd=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function lL(e,t){let n=new Set,o=new Set,s=!1,a=!1;const u=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function f(h){u.has(h)&&(p.schedule(h),e()),h(c)}const p={schedule:(h,g=!1,v=!1)=>{const x=v&&s?n:o;return g&&u.add(h),x.has(h)||x.add(h),h},cancel:h=>{o.delete(h),u.delete(h)},process:h=>{if(c=h,s){a=!0;return}s=!0,[n,o]=[o,n],n.forEach(f),n.clear(),s=!1,a&&(a=!1,p.process(h))}};return p}const uL=40;function uk(e,t){let n=!1,o=!0;const s={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,u=Cd.reduce((_,N)=>(_[N]=lL(a),_),{}),{setup:c,read:f,resolveKeyframes:p,preUpdate:h,update:g,preRender:v,render:k,postRender:x}=u,S=()=>{const _=ni.useManualTiming?s.timestamp:performance.now();n=!1,ni.useManualTiming||(s.delta=o?1e3/60:Math.max(Math.min(_-s.timestamp,uL),1)),s.timestamp=_,s.isProcessing=!0,c.process(s),f.process(s),p.process(s),h.process(s),g.process(s),v.process(s),k.process(s),x.process(s),s.isProcessing=!1,n&&t&&(o=!1,e(S))},w=()=>{n=!0,o=!0,s.isProcessing||e(S)};return{schedule:Cd.reduce((_,N)=>{const R=u[N];return _[N]=(F,D=!1,U=!1)=>(n||w(),R.schedule(F,D,U)),_},{}),cancel:_=>{for(let N=0;N<Cd.length;N++)u[Cd[N]].cancel(_)},state:s,steps:u}}const{schedule:Et,cancel:Ii,state:hn,steps:cm}=uk(typeof requestAnimationFrame<"u"?requestAnimationFrame:Br,!0);let Xd;function cL(){Xd=void 0}const Jn={now:()=>(Xd===void 0&&Jn.set(hn.isProcessing||ni.useManualTiming?hn.timestamp:performance.now()),Xd),set:e=>{Xd=e,queueMicrotask(cL)}},ck=e=>t=>typeof t=="string"&&t.startsWith(e),zy=ck("--"),dL=ck("var(--"),$y=e=>dL(e)?fL.test(e.split("/*")[0].trim()):!1,fL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,tl={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ju={...tl,transform:e=>ti(0,1,e)},kd={...tl,default:1},Su=e=>Math.round(e*1e5)/1e5,By=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function hL(e){return e==null}const pL=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Vy=(e,t)=>n=>!!(typeof n=="string"&&pL.test(n)&&n.startsWith(e)||t&&!hL(n)&&Object.prototype.hasOwnProperty.call(n,t)),dk=(e,t,n)=>o=>{if(typeof o!="string")return o;const[s,a,u,c]=o.match(By);return{[e]:parseFloat(s),[t]:parseFloat(a),[n]:parseFloat(u),alpha:c!==void 0?parseFloat(c):1}},mL=e=>ti(0,255,e),dm={...tl,transform:e=>Math.round(mL(e))},fs={test:Vy("rgb","red"),parse:dk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+dm.transform(e)+", "+dm.transform(t)+", "+dm.transform(n)+", "+Su(ju.transform(o))+")"};function gL(e){let t="",n="",o="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,o+=o,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:s?parseInt(s,16)/255:1}}const hg={test:Vy("#"),parse:gL,transform:fs.transform},Xu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ti=Xu("deg"),Oo=Xu("%"),Ne=Xu("px"),yL=Xu("vh"),vL=Xu("vw"),GS={...Oo,parse:e=>Oo.parse(e)/100,transform:e=>Oo.transform(e*100)},Ta={test:Vy("hsl","hue"),parse:dk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Oo.transform(Su(t))+", "+Oo.transform(Su(n))+", "+Su(ju.transform(o))+")"},Wt={test:e=>fs.test(e)||hg.test(e)||Ta.test(e),parse:e=>fs.test(e)?fs.parse(e):Ta.test(e)?Ta.parse(e):hg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?fs.transform(e):Ta.transform(e),getAnimatableNone:e=>{const t=Wt.parse(e);return t.alpha=0,Wt.transform(t)}},bL=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function SL(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(By))==null?void 0:t.length)||0)+(((n=e.match(bL))==null?void 0:n.length)||0)>0}const fk="number",hk="color",xL="var",wL="var(",QS="${}",CL=/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 Mu(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},s=[];let a=0;const c=t.replace(CL,f=>(Wt.test(f)?(o.color.push(a),s.push(hk),n.push(Wt.parse(f))):f.startsWith(wL)?(o.var.push(a),s.push(xL),n.push(f)):(o.number.push(a),s.push(fk),n.push(parseFloat(f))),++a,QS)).split(QS);return{values:n,split:c,indexes:o,types:s}}function pk(e){return Mu(e).values}function mk(e){const{split:t,types:n}=Mu(e),o=t.length;return s=>{let a="";for(let u=0;u<o;u++)if(a+=t[u],s[u]!==void 0){const c=n[u];c===fk?a+=Su(s[u]):c===hk?a+=Wt.transform(s[u]):a+=s[u]}return a}}const kL=e=>typeof e=="number"?0:Wt.test(e)?Wt.getAnimatableNone(e):e;function EL(e){const t=pk(e);return mk(e)(t.map(kL))}const Ni={test:SL,parse:pk,createTransformer:mk,getAnimatableNone:EL};function fm(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function TL({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,t/=100,n/=100;let s=0,a=0,u=0;if(!t)s=a=u=n;else{const c=n<.5?n*(1+t):n+t-n*t,f=2*n-c;s=fm(f,c,e+1/3),a=fm(f,c,e),u=fm(f,c,e-1/3)}return{red:Math.round(s*255),green:Math.round(a*255),blue:Math.round(u*255),alpha:o}}function yf(e,t){return n=>n>0?t:e}const Rt=(e,t,n)=>e+(t-e)*n,hm=(e,t,n)=>{const o=e*e,s=n*(t*t-o)+o;return s<0?0:Math.sqrt(s)},_L=[hg,fs,Ta],PL=e=>_L.find(t=>t.test(e));function YS(e){const t=PL(e);if(!t)return!1;let n=t.parse(e);return t===Ta&&(n=TL(n)),n}const XS=(e,t)=>{const n=YS(e),o=YS(t);if(!n||!o)return yf(e,t);const s={...n};return a=>(s.red=hm(n.red,o.red,a),s.green=hm(n.green,o.green,a),s.blue=hm(n.blue,o.blue,a),s.alpha=Rt(n.alpha,o.alpha,a),fs.transform(s))},pg=new Set(["none","hidden"]);function RL(e,t){return pg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function AL(e,t){return n=>Rt(e,t,n)}function Uy(e){return typeof e=="number"?AL:typeof e=="string"?$y(e)?yf:Wt.test(e)?XS:ML:Array.isArray(e)?gk:typeof e=="object"?Wt.test(e)?XS:OL:yf}function gk(e,t){const n=[...e],o=n.length,s=e.map((a,u)=>Uy(a)(a,t[u]));return a=>{for(let u=0;u<o;u++)n[u]=s[u](a);return n}}function OL(e,t){const n={...e,...t},o={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(o[s]=Uy(e[s])(e[s],t[s]));return s=>{for(const a in o)n[a]=o[a](s);return n}}function jL(e,t){const n=[],o={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const a=t.types[s],u=e.indexes[a][o[a]],c=e.values[u]??0;n[s]=c,o[a]++}return n}const ML=(e,t)=>{const n=Ni.createTransformer(t),o=Mu(e),s=Mu(t);return o.indexes.var.length===s.indexes.var.length&&o.indexes.color.length===s.indexes.color.length&&o.indexes.number.length>=s.indexes.number.length?pg.has(e)&&!s.values.length||pg.has(t)&&!o.values.length?RL(e,t):Qu(gk(jL(o,s),s.values),n):yf(e,t)};function yk(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Rt(e,t,n):Uy(e)(e,t)}const IL=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Et.update(t,n),stop:()=>Ii(t),now:()=>hn.isProcessing?hn.timestamp:Jn.now()}},vk=(e,t,n=10)=>{let o="";const s=Math.max(Math.round(t/n),2);for(let a=0;a<s;a++)o+=Math.round(e(a/(s-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},vf=2e4;function Wy(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<vf;)t+=n,o=e.next(t);return t>=vf?1/0:t}function NL(e,t=100,n){const o=n({...e,keyframes:[0,t]}),s=Math.min(Wy(o),vf);return{type:"keyframes",ease:a=>o.next(s*a).value/t,duration:$r(s)}}const DL=5;function bk(e,t,n){const o=Math.max(t-DL,0);return ZC(n-e(o),t-o)}const Mt={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},pm=.001;function FL({duration:e=Mt.duration,bounce:t=Mt.bounce,velocity:n=Mt.velocity,mass:o=Mt.mass}){let s,a,u=1-t;u=ti(Mt.minDamping,Mt.maxDamping,u),e=ti(Mt.minDuration,Mt.maxDuration,$r(e)),u<1?(s=p=>{const h=p*u,g=h*e,v=h-n,k=mg(p,u),x=Math.exp(-g);return pm-v/k*x},a=p=>{const g=p*u*e,v=g*n+n,k=Math.pow(u,2)*Math.pow(p,2)*e,x=Math.exp(-g),S=mg(Math.pow(p,2),u);return(-s(p)+pm>0?-1:1)*((v-k)*x)/S}):(s=p=>{const h=Math.exp(-p*e),g=(p-n)*e+1;return-pm+h*g},a=p=>{const h=Math.exp(-p*e),g=(n-p)*(e*e);return h*g});const c=5/e,f=zL(s,a,c);if(e=Ao(e),isNaN(f))return{stiffness:Mt.stiffness,damping:Mt.damping,duration:e};{const p=Math.pow(f,2)*o;return{stiffness:p,damping:u*2*Math.sqrt(o*p),duration:e}}}const LL=12;function zL(e,t,n){let o=n;for(let s=1;s<LL;s++)o=o-e(o)/t(o);return o}function mg(e,t){return e*Math.sqrt(1-t*t)}const $L=["duration","bounce"],BL=["stiffness","damping","mass"];function ZS(e,t){return t.some(n=>e[n]!==void 0)}function VL(e){let t={velocity:Mt.velocity,stiffness:Mt.stiffness,damping:Mt.damping,mass:Mt.mass,isResolvedFromDuration:!1,...e};if(!ZS(e,BL)&&ZS(e,$L))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),s=o*o,a=2*ti(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:Mt.mass,stiffness:s,damping:a}}else{const n=FL(e);t={...t,...n,mass:Mt.mass},t.isResolvedFromDuration=!0}return t}function bf(e=Mt.visualDuration,t=Mt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:s}=n;const a=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],c={done:!1,value:a},{stiffness:f,damping:p,mass:h,duration:g,velocity:v,isResolvedFromDuration:k}=VL({...n,velocity:-$r(n.velocity||0)}),x=v||0,S=p/(2*Math.sqrt(f*h)),w=u-a,T=$r(Math.sqrt(f/h)),A=Math.abs(w)<5;o||(o=A?Mt.restSpeed.granular:Mt.restSpeed.default),s||(s=A?Mt.restDelta.granular:Mt.restDelta.default);let _;if(S<1){const R=mg(T,S);_=F=>{const D=Math.exp(-S*T*F);return u-D*((x+S*T*w)/R*Math.sin(R*F)+w*Math.cos(R*F))}}else if(S===1)_=R=>u-Math.exp(-T*R)*(w+(x+T*w)*R);else{const R=T*Math.sqrt(S*S-1);_=F=>{const D=Math.exp(-S*T*F),U=Math.min(R*F,300);return u-D*((x+S*T*w)*Math.sinh(U)+R*w*Math.cosh(U))/R}}const N={calculatedDuration:k&&g||null,next:R=>{const F=_(R);if(k)c.done=R>=g;else{let D=R===0?x:0;S<1&&(D=R===0?Ao(x):bk(_,R,F));const U=Math.abs(D)<=o,X=Math.abs(u-F)<=s;c.done=U&&X}return c.value=c.done?u:F,c},toString:()=>{const R=Math.min(Wy(N),vf),F=vk(D=>N.next(R*D).value,R,30);return R+"ms "+F},toTransition:()=>{}};return N}bf.applyToOptions=e=>{const t=NL(e,100,bf);return e.ease=t.ease,e.duration=Ao(t.duration),e.type="keyframes",e};function gg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:s=10,bounceStiffness:a=500,modifyTarget:u,min:c,max:f,restDelta:p=.5,restSpeed:h}){const g=e[0],v={done:!1,value:g},k=U=>c!==void 0&&U<c||f!==void 0&&U>f,x=U=>c===void 0?f:f===void 0||Math.abs(c-U)<Math.abs(f-U)?c:f;let S=n*t;const w=g+S,T=u===void 0?w:u(w);T!==w&&(S=T-g);const A=U=>-S*Math.exp(-U/o),_=U=>T+A(U),N=U=>{const X=A(U),ne=_(U);v.done=Math.abs(X)<=p,v.value=v.done?T:ne};let R,F;const D=U=>{k(v.value)&&(R=U,F=bf({keyframes:[v.value,x(v.value)],velocity:bk(_,U,v.value),damping:s,stiffness:a,restDelta:p,restSpeed:h}))};return D(0),{calculatedDuration:null,next:U=>{let X=!1;return!F&&R===void 0&&(X=!0,N(U),D(U)),R!==void 0&&U>=R?F.next(U-R):(!X&&N(U),v)}}}function UL(e,t,n){const o=[],s=n||ni.mix||yk,a=e.length-1;for(let u=0;u<a;u++){let c=s(e[u],e[u+1]);if(t){const f=Array.isArray(t)?t[u]||Br:t;c=Qu(f,c)}o.push(c)}return o}function WL(e,t,{clamp:n=!0,ease:o,mixer:s}={}){const a=e.length;if(Iy(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=UL(t,o,s),f=c.length,p=h=>{if(u&&h<e[0])return t[0];let g=0;if(f>1)for(;g<e.length-2&&!(h<e[g+1]);g++);const v=Ou(e[g],e[g+1],h);return c[g](v)};return n?h=>p(ti(e[0],e[a-1],h)):p}function HL(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const s=Ou(0,t,o);e.push(Rt(n,1,s))}}function qL(e){const t=[0];return HL(t,e.length-1),t}function KL(e,t){return e.map(n=>n*t)}function GL(e,t){return e.map(()=>t||ak).splice(0,e.length-1)}function xu({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const s=iL(o)?o.map(KS):KS(o),a={done:!1,value:t[0]},u=KL(n&&n.length===t.length?n:qL(t),e),c=WL(u,t,{ease:Array.isArray(s)?s:GL(t,s)});return{calculatedDuration:e,next:f=>(a.value=c(f),a.done=f>=e,a)}}const QL=e=>e!==null;function Hy(e,{repeat:t,repeatType:n="loop"},o,s=1){const a=e.filter(QL),c=s<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!c||o===void 0?a[c]:o}const YL={decay:gg,inertia:gg,tween:xu,keyframes:xu,spring:bf};function Sk(e){typeof e.type=="string"&&(e.type=YL[e.type])}class qy{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const XL=e=>e/100;class Ky extends qy{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var o,s;const{motionValue:n}=this.options;n&&n.updatedAt!==Jn.now()&&this.tick(Jn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(o=this.options).onStop)==null||s.call(o))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Sk(t);const{type:n=xu,repeat:o=0,repeatDelay:s=0,repeatType:a,velocity:u=0}=t;let{keyframes:c}=t;const f=n||xu;f!==xu&&typeof c[0]!="number"&&(this.mixKeyframes=Qu(XL,yk(c[0],c[1])),c=[0,100]);const p=f({...t,keyframes:c});a==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...c].reverse(),velocity:-u})),p.calculatedDuration===null&&(p.calculatedDuration=Wy(p));const{calculatedDuration:h}=p;this.calculatedDuration=h,this.resolvedDuration=h+s,this.totalDuration=this.resolvedDuration*(o+1)-s,this.generator=p}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:o,totalDuration:s,mixKeyframes:a,mirroredGenerator:u,resolvedDuration:c,calculatedDuration:f}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:h,repeat:g,repeatType:v,repeatDelay:k,type:x,onUpdate:S,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const T=this.currentTime-p*(this.playbackSpeed>=0?1:-1),A=this.playbackSpeed>=0?T<0:T>s;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let _=this.currentTime,N=o;if(g){const U=Math.min(this.currentTime,s)/c;let X=Math.floor(U),ne=U%1;!ne&&U>=1&&(ne=1),ne===1&&X--,X=Math.min(X,g+1),!!(X%2)&&(v==="reverse"?(ne=1-ne,k&&(ne-=k/c)):v==="mirror"&&(N=u)),_=ti(0,1,ne)*c}const R=A?{done:!1,value:h[0]}:N.next(_);a&&(R.value=a(R.value));let{done:F}=R;!A&&f!==null&&(F=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return D&&x!==gg&&(R.value=Hy(h,this.options,w,this.speed)),S&&S(R.value),D&&this.finish(),R}then(t,n){return this.finished.then(t,n)}get duration(){return $r(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+$r(t)}get time(){return $r(this.currentTime)}set time(t){var n;t=Ao(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Jn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=$r(this.currentTime))}play(){var s,a;if(this.isStopped)return;const{driver:t=IL,startTime:n}=this.options;this.driver||(this.driver=t(u=>this.tick(u))),(a=(s=this.options).onPlay)==null||a.call(s);const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=n??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Jn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function ZL(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const hs=e=>e*180/Math.PI,yg=e=>{const t=hs(Math.atan2(e[1],e[0]));return vg(t)},JL={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:yg,rotateZ:yg,skewX:e=>hs(Math.atan(e[1])),skewY:e=>hs(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},vg=e=>(e=e%360,e<0&&(e+=360),e),JS=yg,ex=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),tx=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),e5={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ex,scaleY:tx,scale:e=>(ex(e)+tx(e))/2,rotateX:e=>vg(hs(Math.atan2(e[6],e[5]))),rotateY:e=>vg(hs(Math.atan2(-e[2],e[0]))),rotateZ:JS,rotate:JS,skewX:e=>hs(Math.atan(e[4])),skewY:e=>hs(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function bg(e){return e.includes("scale")?1:0}function Sg(e,t){if(!e||e==="none")return bg(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,s;if(n)o=e5,s=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=JL,s=c}if(!s)return bg(t);const a=o[t],u=s[1].split(",").map(n5);return typeof a=="function"?a(u):u[a]}const t5=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Sg(n,t)};function n5(e){return parseFloat(e.trim())}const nl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],rl=new Set(nl),nx=e=>e===tl||e===Ne,r5=new Set(["x","y","z"]),o5=nl.filter(e=>!r5.has(e));function i5(e){const t=[];return o5.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const bs={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Sg(t,"x"),y:(e,{transform:t})=>Sg(t,"y")};bs.translateX=bs.x;bs.translateY=bs.y;const Ss=new Set;let xg=!1,wg=!1,Cg=!1;function xk(){if(wg){const e=Array.from(Ss).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const s=i5(o);s.length&&(n.set(o,s),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const s=n.get(o);s&&s.forEach(([a,u])=>{var c;(c=o.getValue(a))==null||c.set(u)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}wg=!1,xg=!1,Ss.forEach(e=>e.complete(Cg)),Ss.clear()}function wk(){Ss.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(wg=!0)})}function s5(){Cg=!0,wk(),xk(),Cg=!1}class Gy{constructor(t,n,o,s,a,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=o,this.motionValue=s,this.element=a,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(Ss.add(this),xg||(xg=!0,Et.read(wk),Et.resolveKeyframes(xk))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:o,motionValue:s}=this;if(t[0]===null){const a=s==null?void 0:s.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(o&&n){const c=o.readValue(n,u);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=u),s&&a===void 0&&s.set(t[0])}ZL(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ss.delete(this)}cancel(){this.state==="scheduled"&&(Ss.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const a5=e=>e.startsWith("--");function l5(e,t,n){a5(t)?e.style.setProperty(t,n):e.style[t]=n}const u5=Ny(()=>window.ScrollTimeline!==void 0),c5={};function d5(e,t){const n=Ny(e);return()=>c5[t]??n()}const Ck=d5(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),uu=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,rx={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:uu([0,.65,.55,1]),circOut:uu([.55,0,1,.45]),backIn:uu([.31,.01,.66,-.59]),backOut:uu([.33,1.53,.69,.99])};function kk(e,t){if(e)return typeof e=="function"?Ck()?vk(e,t):"ease-out":lk(e)?uu(e):Array.isArray(e)?e.map(n=>kk(n,t)||rx.easeOut):rx[e]}function f5(e,t,n,{delay:o=0,duration:s=300,repeat:a=0,repeatType:u="loop",ease:c="easeOut",times:f}={},p=void 0){const h={[t]:n};f&&(h.offset=f);const g=kk(c,s);Array.isArray(g)&&(h.easing=g);const v={delay:o,duration:s,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:a+1,direction:u==="reverse"?"alternate":"normal"};return p&&(v.pseudoElement=p),e.animate(h,v)}function Ek(e){return typeof e=="function"&&"applyToOptions"in e}function h5({type:e,...t}){return Ek(e)&&Ck()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class p5 extends qy{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:o,keyframes:s,pseudoElement:a,allowFlatten:u=!1,finalKeyframe:c,onComplete:f}=t;this.isPseudoElement=!!a,this.allowFlatten=u,this.options=t,Iy(typeof t.type!="string");const p=h5(t);this.animation=f5(n,o,s,p,a),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=Hy(s,this.options,c,this.speed);this.updateMotionValue?this.updateMotionValue(h):l5(n,o,h),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,o;const t=((o=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:o.call(n).duration)||0;return $r(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+$r(t)}get time(){return $r(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ao(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&u5()?(this.animation.timeline=t,Br):n(this)}}const Tk={anticipate:ok,backInOut:rk,circInOut:sk};function m5(e){return e in Tk}function g5(e){typeof e.ease=="string"&&m5(e.ease)&&(e.ease=Tk[e.ease])}const ox=10;class y5 extends p5{constructor(t){g5(t),Sk(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:o,onComplete:s,element:a,...u}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new Ky({...u,autoplay:!1}),f=Ao(this.finishedTime??this.time);n.setWithVelocity(c.sample(f-ox).value,c.sample(f).value,ox),c.stop()}}const ix=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ni.test(e)||e==="0")&&!e.startsWith("url("));function v5(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function b5(e,t,n,o){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],u=ix(s,t),c=ix(a,t);return!u||!c?!1:v5(e)||(n==="spring"||Ek(n))&&o}function kg(e){e.duration=0,e.type="keyframes"}const S5=new Set(["opacity","clipPath","filter","transform"]),x5=Ny(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function w5(e){var h;const{motionValue:t,name:n,repeatDelay:o,repeatType:s,damping:a,type:u}=e;if(!(((h=t==null?void 0:t.owner)==null?void 0:h.current)instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:p}=t.owner.getProps();return x5()&&n&&S5.has(n)&&(n!=="transform"||!p)&&!f&&!o&&s!=="mirror"&&a!==0&&u!=="inertia"}const C5=40;class k5 extends qy{constructor({autoplay:t=!0,delay:n=0,type:o="keyframes",repeat:s=0,repeatDelay:a=0,repeatType:u="loop",keyframes:c,name:f,motionValue:p,element:h,...g}){var x;super(),this.stop=()=>{var S,w;this._animation&&(this._animation.stop(),(S=this.stopTimeline)==null||S.call(this)),(w=this.keyframeResolver)==null||w.cancel()},this.createdAt=Jn.now();const v={autoplay:t,delay:n,type:o,repeat:s,repeatDelay:a,repeatType:u,name:f,motionValue:p,element:h,...g},k=(h==null?void 0:h.KeyframeResolver)||Gy;this.keyframeResolver=new k(c,(S,w,T)=>this.onKeyframesResolved(S,w,v,!T),f,p,h),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,o,s){this.keyframeResolver=void 0;const{name:a,type:u,velocity:c,delay:f,isHandoff:p,onUpdate:h}=o;this.resolvedAt=Jn.now(),b5(t,a,u,c)||((ni.instantAnimations||!f)&&(h==null||h(Hy(t,o,n))),t[0]=t[t.length-1],kg(o),o.repeat=0);const v={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>C5?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:t},k=!p&&w5(v)?new y5({...v,element:v.motionValue.owner.current}):new Ky(v);k.finished.then(()=>this.notifyFinished()).catch(Br),this.pendingTimeline&&(this.stopTimeline=k.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=k}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),s5()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const E5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function T5(e){const t=E5.exec(e);if(!t)return[,];const[,n,o,s]=t;return[`--${n??o}`,s]}function _k(e,t,n=1){const[o,s]=T5(e);if(!o)return;const a=window.getComputedStyle(t).getPropertyValue(o);if(a){const u=a.trim();return QC(u)?parseFloat(u):u}return $y(s)?_k(s,t,n+1):s}function Qy(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Pk=new Set(["width","height","top","left","right","bottom",...nl]),_5={test:e=>e==="auto",parse:e=>e},Rk=e=>t=>t.test(e),Ak=[tl,Ne,Oo,Ti,vL,yL,_5],sx=e=>Ak.find(Rk(e));function P5(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||XC(e):!0}const R5=new Set(["brightness","contrast","saturate","opacity"]);function A5(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(By)||[];if(!o)return e;const s=n.replace(o,"");let a=R5.has(t)?1:0;return o!==n&&(a*=100),t+"("+a+s+")"}const O5=/\b([a-z-]*)\(.*?\)/gu,Eg={...Ni,getAnimatableNone:e=>{const t=e.match(O5);return t?t.map(A5).join(" "):e}},ax={...tl,transform:Math.round},j5={rotate:Ti,rotateX:Ti,rotateY:Ti,rotateZ:Ti,scale:kd,scaleX:kd,scaleY:kd,scaleZ:kd,skew:Ti,skewX:Ti,skewY:Ti,distance:Ne,translateX:Ne,translateY:Ne,translateZ:Ne,x:Ne,y:Ne,z:Ne,perspective:Ne,transformPerspective:Ne,opacity:ju,originX:GS,originY:GS,originZ:Ne},Yy={borderWidth:Ne,borderTopWidth:Ne,borderRightWidth:Ne,borderBottomWidth:Ne,borderLeftWidth:Ne,borderRadius:Ne,radius:Ne,borderTopLeftRadius:Ne,borderTopRightRadius:Ne,borderBottomRightRadius:Ne,borderBottomLeftRadius:Ne,width:Ne,maxWidth:Ne,height:Ne,maxHeight:Ne,top:Ne,right:Ne,bottom:Ne,left:Ne,padding:Ne,paddingTop:Ne,paddingRight:Ne,paddingBottom:Ne,paddingLeft:Ne,margin:Ne,marginTop:Ne,marginRight:Ne,marginBottom:Ne,marginLeft:Ne,backgroundPositionX:Ne,backgroundPositionY:Ne,...j5,zIndex:ax,fillOpacity:ju,strokeOpacity:ju,numOctaves:ax},M5={...Yy,color:Wt,backgroundColor:Wt,outlineColor:Wt,fill:Wt,stroke:Wt,borderColor:Wt,borderTopColor:Wt,borderRightColor:Wt,borderBottomColor:Wt,borderLeftColor:Wt,filter:Eg,WebkitFilter:Eg},Ok=e=>M5[e];function jk(e,t){let n=Ok(e);return n!==Eg&&(n=Ni),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const I5=new Set(["auto","none","0"]);function N5(e,t,n){let o=0,s;for(;o<e.length&&!s;){const a=e[o];typeof a=="string"&&!I5.has(a)&&Mu(a).values.length&&(s=e[o]),o++}if(s&&n)for(const a of t)e[a]=jk(n,s)}class D5 extends Gy{constructor(t,n,o,s,a){super(t,n,o,s,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:o}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let p=t[f];if(typeof p=="string"&&(p=p.trim(),$y(p))){const h=_k(p,n.current);h!==void 0&&(t[f]=h),f===t.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!Pk.has(o)||t.length!==2)return;const[s,a]=t,u=sx(s),c=sx(a);if(u!==c)if(nx(u)&&nx(c))for(let f=0;f<t.length;f++){const p=t[f];typeof p=="string"&&(t[f]=parseFloat(p))}else bs[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let s=0;s<t.length;s++)(t[s]===null||P5(t[s]))&&o.push(s);o.length&&N5(t,o,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=bs[o](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(o,s).jump(s,!1)}measureEndState(){var c;const{element:t,name:n,unresolvedKeyframes:o}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const a=o.length-1,u=o[a];o[a]=bs[n](t.measureViewportBox(),window.getComputedStyle(t.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),(c=this.removedTransforms)!=null&&c.length&&this.removedTransforms.forEach(([f,p])=>{t.getValue(f).set(p)}),this.resolveNoneKeyframes()}}function F5(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;const s=(n==null?void 0:n[e])??o.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}const Mk=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Ik(e){return YC(e)&&"offsetHeight"in e}const lx=30,L5=e=>!isNaN(parseFloat(e));class z5{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var a;const s=Jn.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Jn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=L5(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Dy);const o=this.events[t].add(n);return t==="change"?()=>{o(),Et.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,o){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Jn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>lx)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,lx);return ZC(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Qa(e,t){return new z5(e,t)}const{schedule:Xy}=uk(queueMicrotask,!1),to={x:!1,y:!1};function Nk(){return to.x||to.y}function $5(e){return e==="x"||e==="y"?to[e]?null:(to[e]=!0,()=>{to[e]=!1}):to.x||to.y?null:(to.x=to.y=!0,()=>{to.x=to.y=!1})}function Dk(e,t){const n=F5(e),o=new AbortController,s={passive:!0,...t,signal:o.signal};return[n,s,()=>o.abort()]}function ux(e){return!(e.pointerType==="touch"||Nk())}function B5(e,t,n={}){const[o,s,a]=Dk(e,n),u=c=>{if(!ux(c))return;const{target:f}=c,p=t(f,c);if(typeof p!="function"||!f)return;const h=g=>{ux(g)&&(p(g),f.removeEventListener("pointerleave",h))};f.addEventListener("pointerleave",h,s)};return o.forEach(c=>{c.addEventListener("pointerenter",u,s)}),a}const Fk=(e,t)=>t?e===t?!0:Fk(e,t.parentElement):!1,Zy=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,V5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function U5(e){return V5.has(e.tagName)||e.tabIndex!==-1}const Zd=new WeakSet;function cx(e){return t=>{t.key==="Enter"&&e(t)}}function mm(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const W5=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=cx(()=>{if(Zd.has(n))return;mm(n,"down");const s=cx(()=>{mm(n,"up")}),a=()=>mm(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",o,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),t)};function dx(e){return Zy(e)&&!Nk()}function H5(e,t,n={}){const[o,s,a]=Dk(e,n),u=c=>{const f=c.currentTarget;if(!dx(c))return;Zd.add(f);const p=t(f,c),h=(k,x)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",v),Zd.has(f)&&Zd.delete(f),dx(k)&&typeof p=="function"&&p(k,{success:x})},g=k=>{h(k,f===window||f===document||n.useGlobalTarget||Fk(f,k.target))},v=k=>{h(k,!1)};window.addEventListener("pointerup",g,s),window.addEventListener("pointercancel",v,s)};return o.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",u,s),Ik(c)&&(c.addEventListener("focus",p=>W5(p,s)),!U5(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),a}function Lk(e){return YC(e)&&"ownerSVGElement"in e}function q5(e){return Lk(e)&&e.tagName==="svg"}const On=e=>!!(e&&e.getVelocity),K5=[...Ak,Wt,Ni],G5=e=>K5.find(Rk(e)),Jy=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function fx(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Q5(...e){return t=>{let n=!1;const o=e.map(s=>{const a=fx(s,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let s=0;s<o.length;s++){const a=o[s];typeof a=="function"?a():fx(e[s],null)}}}}function Y5(...e){return C.useCallback(Q5(...e),e)}class X5 extends C.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const o=n.offsetParent,s=Ik(o)&&o.offsetWidth||0,a=this.props.sizeRef.current;a.height=n.offsetHeight||0,a.width=n.offsetWidth||0,a.top=n.offsetTop,a.left=n.offsetLeft,a.right=s-a.width-a.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Z5({children:e,isPresent:t,anchorX:n,root:o}){const s=C.useId(),a=C.useRef(null),u=C.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=C.useContext(Jy),f=Y5(a,e==null?void 0:e.ref);return C.useInsertionEffect(()=>{const{width:p,height:h,top:g,left:v,right:k}=u.current;if(t||!a.current||!p||!h)return;const x=n==="left"?`left: ${v}`:`right: ${k}`;a.current.dataset.motionPopId=s;const S=document.createElement("style");c&&(S.nonce=c);const w=o??document.head;return w.appendChild(S),S.sheet&&S.sheet.insertRule(`
|
||
[data-motion-pop-id="${s}"] {
|
||
position: absolute !important;
|
||
width: ${p}px !important;
|
||
height: ${h}px !important;
|
||
${x}px !important;
|
||
top: ${g}px !important;
|
||
}
|
||
`),()=>{w.contains(S)&&w.removeChild(S)}},[t]),b.jsx(X5,{isPresent:t,childRef:a,sizeRef:u,children:C.cloneElement(e,{ref:f})})}const J5=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:s,presenceAffectsLayout:a,mode:u,anchorX:c,root:f})=>{const p=Ay(ez),h=C.useId();let g=!0,v=C.useMemo(()=>(g=!1,{id:h,initial:t,isPresent:n,custom:s,onExitComplete:k=>{p.set(k,!0);for(const x of p.values())if(!x)return;o&&o()},register:k=>(p.set(k,!1),()=>p.delete(k))}),[n,p,o]);return a&&g&&(v={...v}),C.useMemo(()=>{p.forEach((k,x)=>p.set(x,!1))},[n]),C.useEffect(()=>{!n&&!p.size&&o&&o()},[n]),u==="popLayout"&&(e=b.jsx(Z5,{isPresent:n,anchorX:c,root:f,children:e})),b.jsx(Gu.Provider,{value:v,children:e})};function ez(){return new Map}function ev(e=!0){const t=C.useContext(Gu);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:s}=t,a=C.useId();C.useEffect(()=>{if(e)return s(a)},[e]);const u=C.useCallback(()=>e&&o&&o(a),[a,o,e]);return!n&&o?[!1,u]:[!0]}function tz(){return nz(C.useContext(Gu))}function nz(e){return e===null?!0:e.isPresent}const Ed=e=>e.key||"";function hx(e){const t=[];return C.Children.forEach(e,n=>{C.isValidElement(n)&&t.push(n)}),t}const ol=({children:e,custom:t,initial:n=!0,onExitComplete:o,presenceAffectsLayout:s=!0,mode:a="sync",propagate:u=!1,anchorX:c="left",root:f})=>{const[p,h]=ev(u),g=C.useMemo(()=>hx(e),[e]),v=u&&!p?[]:g.map(Ed),k=C.useRef(!0),x=C.useRef(g),S=Ay(()=>new Map),[w,T]=C.useState(g),[A,_]=C.useState(g);GC(()=>{k.current=!1,x.current=g;for(let F=0;F<A.length;F++){const D=Ed(A[F]);v.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[A,v.length,v.join("-")]);const N=[];if(g!==w){let F=[...g];for(let D=0;D<A.length;D++){const U=A[D],X=Ed(U);v.includes(X)||(F.splice(D,0,U),N.push(U))}return a==="wait"&&N.length&&(F=N),_(hx(F)),T(g),null}const{forceRender:R}=C.useContext(Ry);return b.jsx(b.Fragment,{children:A.map(F=>{const D=Ed(F),U=u&&!p?!1:g===A||v.includes(D),X=()=>{if(S.has(D))S.set(D,!0);else return;let ne=!0;S.forEach(ee=>{ee||(ne=!1)}),ne&&(R==null||R(),_(x.current),u&&(h==null||h()),o&&o())};return b.jsx(J5,{isPresent:U,initial:!k.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:a,root:f,onExitComplete:U?void 0:X,anchorX:c,children:F},D)})})},zk=C.createContext({strict:!1}),px={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"]},Ya={};for(const e in px)Ya[e]={isEnabled:t=>px[e].some(n=>!!t[n])};function rz(e){for(const t in e)Ya[t]={...Ya[t],...e[t]}}const oz=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 Sf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||oz.has(e)}let $k=e=>!Sf(e);function iz(e){typeof e=="function"&&($k=t=>t.startsWith("on")?!Sf(t):e(t))}try{iz(require("@emotion/is-prop-valid").default)}catch{}function sz(e,t,n){const o={};for(const s in e)s==="values"&&typeof e.values=="object"||($k(s)||n===!0&&Sf(s)||!t&&!Sf(s)||e.draggable&&s.startsWith("onDrag"))&&(o[s]=e[s]);return o}const Uf=C.createContext({});function Wf(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Iu(e){return typeof e=="string"||Array.isArray(e)}const tv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],nv=["initial",...tv];function Hf(e){return Wf(e.animate)||nv.some(t=>Iu(e[t]))}function Bk(e){return!!(Hf(e)||e.variants)}function az(e,t){if(Hf(e)){const{initial:n,animate:o}=e;return{initial:n===!1||Iu(n)?n:void 0,animate:Iu(o)?o:void 0}}return e.inherit!==!1?t:{}}function lz(e){const{initial:t,animate:n}=az(e,C.useContext(Uf));return C.useMemo(()=>({initial:t,animate:n}),[mx(t),mx(n)])}function mx(e){return Array.isArray(e)?e.join(" "):e}const Nu={};function uz(e){for(const t in e)Nu[t]=e[t],zy(t)&&(Nu[t].isCSSVariable=!0)}function Vk(e,{layout:t,layoutId:n}){return rl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Nu[e]||e==="opacity")}const cz={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},dz=nl.length;function fz(e,t,n){let o="",s=!0;for(let a=0;a<dz;a++){const u=nl[a],c=e[u];if(c===void 0)continue;let f=!0;if(typeof c=="number"?f=c===(u.startsWith("scale")?1:0):f=parseFloat(c)===0,!f||n){const p=Mk(c,Yy[u]);if(!f){s=!1;const h=cz[u]||u;o+=`${h}(${p}) `}n&&(t[u]=p)}}return o=o.trim(),n?o=n(t,s?"":o):s&&(o="none"),o}function rv(e,t,n){const{style:o,vars:s,transformOrigin:a}=e;let u=!1,c=!1;for(const f in t){const p=t[f];if(rl.has(f)){u=!0;continue}else if(zy(f)){s[f]=p;continue}else{const h=Mk(p,Yy[f]);f.startsWith("origin")?(c=!0,a[f]=h):o[f]=h}}if(t.transform||(u||n?o.transform=fz(t,e.transform,n):o.transform&&(o.transform="none")),c){const{originX:f="50%",originY:p="50%",originZ:h=0}=a;o.transformOrigin=`${f} ${p} ${h}`}}const ov=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Uk(e,t,n){for(const o in t)!On(t[o])&&!Vk(o,n)&&(e[o]=t[o])}function hz({transformTemplate:e},t){return C.useMemo(()=>{const n=ov();return rv(n,t,e),Object.assign({},n.vars,n.style)},[t])}function pz(e,t){const n=e.style||{},o={};return Uk(o,n,e),Object.assign(o,hz(e,t)),o}function mz(e,t){const n={},o=pz(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const gz={offset:"stroke-dashoffset",array:"stroke-dasharray"},yz={offset:"strokeDashoffset",array:"strokeDasharray"};function vz(e,t,n=1,o=0,s=!0){e.pathLength=1;const a=s?gz:yz;e[a.offset]=Ne.transform(-o);const u=Ne.transform(t),c=Ne.transform(n);e[a.array]=`${u} ${c}`}function Wk(e,{attrX:t,attrY:n,attrScale:o,pathLength:s,pathSpacing:a=1,pathOffset:u=0,...c},f,p,h){if(rv(e,c,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:v}=e;g.transform&&(v.transform=g.transform,delete g.transform),(v.transform||g.transformOrigin)&&(v.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),v.transform&&(v.transformBox=(h==null?void 0:h.transformBox)??"fill-box",delete g.transformBox),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),o!==void 0&&(g.scale=o),s!==void 0&&vz(g,s,a,u,!1)}const Hk=()=>({...ov(),attrs:{}}),qk=e=>typeof e=="string"&&e.toLowerCase()==="svg";function bz(e,t,n,o){const s=C.useMemo(()=>{const a=Hk();return Wk(a,t,qk(o),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Uk(a,e.style,e),s.style={...a,...s.style}}return s}const Sz=["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 iv(e){return typeof e!="string"||e.includes("-")?!1:!!(Sz.indexOf(e)>-1||/[A-Z]/u.test(e))}function xz(e,t,n,{latestValues:o},s,a=!1){const c=(iv(e)?bz:mz)(t,o,s,e),f=sz(t,typeof e=="string",a),p=e!==C.Fragment?{...f,...c,ref:n}:{},{children:h}=t,g=C.useMemo(()=>On(h)?h.get():h,[h]);return C.createElement(e,{...p,children:g})}function gx(e){const t=[{},{}];return e==null||e.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function sv(e,t,n,o){if(typeof t=="function"){const[s,a]=gx(o);t=t(n!==void 0?n:e.custom,s,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,a]=gx(o);t=t(n!==void 0?n:e.custom,s,a)}return t}function Jd(e){return On(e)?e.get():e}function wz({scrapeMotionValuesFromProps:e,createRenderState:t},n,o,s){return{latestValues:Cz(n,o,s,e),renderState:t()}}function Cz(e,t,n,o){const s={},a=o(e,{});for(const v in a)s[v]=Jd(a[v]);let{initial:u,animate:c}=e;const f=Hf(e),p=Bk(e);t&&p&&!f&&e.inherit!==!1&&(u===void 0&&(u=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||u===!1;const g=h?c:u;if(g&&typeof g!="boolean"&&!Wf(g)){const v=Array.isArray(g)?g:[g];for(let k=0;k<v.length;k++){const x=sv(e,v[k]);if(x){const{transitionEnd:S,transition:w,...T}=x;for(const A in T){let _=T[A];if(Array.isArray(_)){const N=h?_.length-1:0;_=_[N]}_!==null&&(s[A]=_)}for(const A in S)s[A]=S[A]}}}return s}const Kk=e=>(t,n)=>{const o=C.useContext(Uf),s=C.useContext(Gu),a=()=>wz(e,t,o,s);return n?a():Ay(a)};function av(e,t,n){var a;const{style:o}=e,s={};for(const u in o)(On(o[u])||t.style&&On(t.style[u])||Vk(u,e)||((a=n==null?void 0:n.getValue(u))==null?void 0:a.liveStyle)!==void 0)&&(s[u]=o[u]);return s}const kz=Kk({scrapeMotionValuesFromProps:av,createRenderState:ov});function Gk(e,t,n){const o=av(e,t,n);for(const s in e)if(On(e[s])||On(t[s])){const a=nl.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;o[a]=e[s]}return o}const Ez=Kk({scrapeMotionValuesFromProps:Gk,createRenderState:Hk}),Tz=Symbol.for("motionComponentSymbol");function _a(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function _z(e,t,n){return C.useCallback(o=>{o&&e.onMount&&e.onMount(o),t&&(o?t.mount(o):t.unmount()),n&&(typeof n=="function"?n(o):_a(n)&&(n.current=o))},[t])}const lv=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Pz="framerAppearId",Qk="data-"+lv(Pz),Yk=C.createContext({});function Rz(e,t,n,o,s){var S,w;const{visualElement:a}=C.useContext(Uf),u=C.useContext(zk),c=C.useContext(Gu),f=C.useContext(Jy).reducedMotion,p=C.useRef(null);o=o||u.renderer,!p.current&&o&&(p.current=o(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:f}));const h=p.current,g=C.useContext(Yk);h&&!h.projection&&s&&(h.type==="html"||h.type==="svg")&&Az(p.current,n,s,g);const v=C.useRef(!1);C.useInsertionEffect(()=>{h&&v.current&&h.update(n,c)});const k=n[Qk],x=C.useRef(!!k&&!((S=window.MotionHandoffIsComplete)!=null&&S.call(window,k))&&((w=window.MotionHasOptimisedAnimation)==null?void 0:w.call(window,k)));return GC(()=>{h&&(v.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),x.current&&h.animationState&&h.animationState.animateChanges())}),C.useEffect(()=>{h&&(!x.current&&h.animationState&&h.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,k)}),x.current=!1),h.enteringChildren=void 0)}),h}function Az(e,t,n,o){const{layoutId:s,layout:a,drag:u,dragConstraints:c,layoutScroll:f,layoutRoot:p,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Xk(e.parent)),e.projection.setOptions({layoutId:s,layout:a,alwaysMeasureLayout:!!u||c&&_a(c),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:o,crossfade:h,layoutScroll:f,layoutRoot:p})}function Xk(e){if(e)return e.options.allowProjection!==!1?e.projection:Xk(e.parent)}function gm(e,{forwardMotionProps:t=!1}={},n,o){n&&rz(n);const s=iv(e)?Ez:kz;function a(c,f){let p;const h={...C.useContext(Jy),...c,layoutId:Oz(c)},{isStatic:g}=h,v=lz(c),k=s(c,g);if(!g&&Oy){jz();const x=Mz(h);p=x.MeasureLayout,v.visualElement=Rz(e,k,h,o,x.ProjectionNode)}return b.jsxs(Uf.Provider,{value:v,children:[p&&v.visualElement?b.jsx(p,{visualElement:v.visualElement,...h}):null,xz(e,c,_z(k,v.visualElement,f),k,g,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=C.forwardRef(a);return u[Tz]=e,u}function Oz({layoutId:e}){const t=C.useContext(Ry).id;return t&&e!==void 0?t+"-"+e:e}function jz(e,t){C.useContext(zk).strict}function Mz(e){const{drag:t,layout:n}=Ya;if(!t&&!n)return{};const o={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function Iz(e,t){if(typeof Proxy>"u")return gm;const n=new Map,o=(a,u)=>gm(a,u,e,t),s=(a,u)=>o(a,u);return new Proxy(s,{get:(a,u)=>u==="create"?o:(n.has(u)||n.set(u,gm(u,void 0,e,t)),n.get(u))})}function Zk({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function Nz({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Dz(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function ym(e){return e===void 0||e===1}function Tg({scale:e,scaleX:t,scaleY:n}){return!ym(e)||!ym(t)||!ym(n)}function us(e){return Tg(e)||Jk(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Jk(e){return yx(e.x)||yx(e.y)}function yx(e){return e&&e!=="0%"}function xf(e,t,n){const o=e-n,s=t*o;return n+s}function vx(e,t,n,o,s){return s!==void 0&&(e=xf(e,s,o)),xf(e,n,o)+t}function _g(e,t=0,n=1,o,s){e.min=vx(e.min,t,n,o,s),e.max=vx(e.max,t,n,o,s)}function eE(e,{x:t,y:n}){_g(e.x,t.translate,t.scale,t.originPoint),_g(e.y,n.translate,n.scale,n.originPoint)}const bx=.999999999999,Sx=1.0000000000001;function Fz(e,t,n,o=!1){const s=n.length;if(!s)return;t.x=t.y=1;let a,u;for(let c=0;c<s;c++){a=n[c],u=a.projectionDelta;const{visualElement:f}=a.options;f&&f.props.style&&f.props.style.display==="contents"||(o&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Ra(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,eE(e,u)),o&&us(a.latestValues)&&Ra(e,a.latestValues))}t.x<Sx&&t.x>bx&&(t.x=1),t.y<Sx&&t.y>bx&&(t.y=1)}function Pa(e,t){e.min=e.min+t,e.max=e.max+t}function xx(e,t,n,o,s=.5){const a=Rt(e.min,e.max,s);_g(e,t,n,a,o)}function Ra(e,t){xx(e.x,t.x,t.scaleX,t.scale,t.originX),xx(e.y,t.y,t.scaleY,t.scale,t.originY)}function tE(e,t){return Zk(Dz(e.getBoundingClientRect(),t))}function Lz(e,t,n){const o=tE(e,n),{scroll:s}=t;return s&&(Pa(o.x,s.offset.x),Pa(o.y,s.offset.y)),o}const wx=()=>({translate:0,scale:1,origin:0,originPoint:0}),Aa=()=>({x:wx(),y:wx()}),Cx=()=>({min:0,max:0}),en=()=>({x:Cx(),y:Cx()}),Pg={current:null},nE={current:!1};function zz(){if(nE.current=!0,!!Oy)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Pg.current=e.matches;e.addEventListener("change",t),t()}else Pg.current=!1}const $z=new WeakMap;function Bz(e,t,n){for(const o in t){const s=t[o],a=n[o];if(On(s))e.addValue(o,s);else if(On(a))e.addValue(o,Qa(s,{owner:e}));else if(a!==s)if(e.hasValue(o)){const u=e.getValue(o);u.liveStyle===!0?u.jump(s):u.hasAnimated||u.set(s)}else{const u=e.getStaticValue(o);e.addValue(o,Qa(u!==void 0?u:s,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const kx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Vz{scrapeMotionValuesFromProps(t,n,o){return{}}constructor({parent:t,props:n,presenceContext:o,reducedMotionConfig:s,blockInitialAnimation:a,visualState:u},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Gy,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 v=Jn.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,Et.render(this.render,!1,!0))};const{latestValues:f,renderState:p}=u;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=p,this.parent=t,this.props=n,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=Hf(n),this.isVariantNode=Bk(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in g){const k=g[v];f[v]!==void 0&&On(k)&&k.set(f[v])}}mount(t){var n;this.current=t,$z.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((o,s)=>this.bindToMotionValue(s,o)),nE.current||zz(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Pg.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Ii(this.notifyUpdate),Ii(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const o=this.features[n];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const o=rl.has(t);o&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Et.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ya){const n=Ya[t];if(!n)continue;const{isEnabled:o,Feature:s}=n;if(!this.features[t]&&s&&o(this.props)&&(this.features[t]=new s(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):en()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let o=0;o<kx.length;o++){const s=kx[o];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const a="on"+s,u=t[a];u&&(this.propEventSubscriptions[s]=this.on(s,u))}this.prevMotionValues=Bz(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 n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const o=this.values.get(t);n!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&n!==void 0&&(o=Qa(n===null?void 0:n,{owner:this}),this.addValue(t,o)),o}readValue(t,n){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(QC(o)||XC(o))?o=parseFloat(o):!G5(o)&&Ni.test(n)&&(o=jk(t,n)),this.setBaseTarget(t,On(o)?o.get():o)),On(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var a;const{initial:n}=this.props;let o;if(typeof n=="string"||typeof n=="object"){const u=sv(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);u&&(o=u[t])}if(n&&o!==void 0)return o;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!On(s)?s:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Dy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Xy.render(this.render)}}class rE extends Vz{constructor(){super(...arguments),this.KeyframeResolver=D5}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:o}){delete n[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;On(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function oE(e,{style:t,vars:n},o,s){const a=e.style;let u;for(u in t)a[u]=t[u];s==null||s.applyProjectionStyles(a,o);for(u in n)a.setProperty(u,n[u])}function Uz(e){return window.getComputedStyle(e)}class Wz extends rE{constructor(){super(...arguments),this.type="html",this.renderInstance=oE}readValueFromInstance(t,n){var o;if(rl.has(n))return(o=this.projection)!=null&&o.isProjecting?bg(n):t5(t,n);{const s=Uz(t),a=(zy(n)?s.getPropertyValue(n):s[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return tE(t,n)}build(t,n,o){rv(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return av(t,n,o)}}const iE=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 Hz(e,t,n,o){oE(e,t,void 0,o);for(const s in t.attrs)e.setAttribute(iE.has(s)?s:lv(s),t.attrs[s])}class qz extends rE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=en}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(rl.has(n)){const o=Ok(n);return o&&o.default||0}return n=iE.has(n)?n:lv(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return Gk(t,n,o)}build(t,n,o){Wk(t,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,n,o,s){Hz(t,n,o,s)}mount(t){this.isSVGTag=qk(t.tagName),super.mount(t)}}const Kz=(e,t)=>iv(e)?new qz(t):new Wz(t,{allowProjection:e!==C.Fragment});function La(e,t,n){const o=e.getProps();return sv(o,t,n!==void 0?n:o.custom,e)}const Rg=e=>Array.isArray(e);function Gz(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Qa(n))}function Qz(e){return Rg(e)?e[e.length-1]||0:e}function Yz(e,t){const n=La(e,t);let{transitionEnd:o={},transition:s={},...a}=n||{};a={...a,...o};for(const u in a){const c=Qz(a[u]);Gz(e,u,c)}}function Xz(e){return!!(On(e)&&e.add)}function Ag(e,t){const n=e.getValue("willChange");if(Xz(n))return n.add(t);if(!n&&ni.WillChange){const o=new ni.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function sE(e){return e.props[Qk]}const Zz=e=>e!==null;function Jz(e,{repeat:t,repeatType:n="loop"},o){const s=e.filter(Zz),a=t&&n!=="loop"&&t%2===1?0:s.length-1;return s[a]}const e4={type:"spring",stiffness:500,damping:25,restSpeed:10},t4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),n4={type:"keyframes",duration:.8},r4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},o4=(e,{keyframes:t})=>t.length>2?n4:rl.has(e)?e.startsWith("scale")?t4(t[1]):e4:r4;function i4({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:s,repeat:a,repeatType:u,repeatDelay:c,from:f,elapsed:p,...h}){return!!Object.keys(h).length}const uv=(e,t,n,o={},s,a)=>u=>{const c=Qy(o,e)||{},f=c.delay||o.delay||0;let{elapsed:p=0}=o;p=p-Ao(f);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-p,onUpdate:v=>{t.set(v),c.onUpdate&&c.onUpdate(v)},onComplete:()=>{u(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?void 0:s};i4(c)||Object.assign(h,o4(e,h)),h.duration&&(h.duration=Ao(h.duration)),h.repeatDelay&&(h.repeatDelay=Ao(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let g=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(kg(h),h.delay===0&&(g=!0)),(ni.instantAnimations||ni.skipAnimations)&&(g=!0,kg(h),h.delay=0),h.allowFlatten=!c.type&&!c.ease,g&&!a&&t.get()!==void 0){const v=Jz(h.keyframes,c);if(v!==void 0){Et.update(()=>{h.onUpdate(v),h.onComplete()});return}}return c.isSync?new Ky(h):new k5(h)};function s4({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function aE(e,t,{delay:n=0,transitionOverride:o,type:s}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:u,...c}=t;o&&(a=o);const f=[],p=s&&e.animationState&&e.animationState.getState()[s];for(const h in c){const g=e.getValue(h,e.latestValues[h]??null),v=c[h];if(v===void 0||p&&s4(p,h))continue;const k={delay:n,...Qy(a||{},h)},x=g.get();if(x!==void 0&&!g.isAnimating&&!Array.isArray(v)&&v===x&&!k.velocity)continue;let S=!1;if(window.MotionHandoffAnimation){const T=sE(e);if(T){const A=window.MotionHandoffAnimation(T,h,Et);A!==null&&(k.startTime=A,S=!0)}}Ag(e,h),g.start(uv(h,g,v,e.shouldReduceMotion&&Pk.has(h)?{type:!1}:k,e,S));const w=g.animation;w&&f.push(w)}return u&&Promise.all(f).then(()=>{Et.update(()=>{u&&Yz(e,u)})}),f}function lE(e,t,n,o=0,s=1){const a=Array.from(e).sort((p,h)=>p.sortNodePosition(h)).indexOf(t),u=e.size,c=(u-1)*o;return typeof n=="function"?n(a,u):s===1?a*o:c-a*o}function Og(e,t,n={}){var f;const o=La(e,t,n.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const a=o?()=>Promise.all(aE(e,o,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(p=0)=>{const{delayChildren:h=0,staggerChildren:g,staggerDirection:v}=s;return a4(e,t,p,h,g,v,n)}:()=>Promise.resolve(),{when:c}=s;if(c){const[p,h]=c==="beforeChildren"?[a,u]:[u,a];return p().then(()=>h())}else return Promise.all([a(),u(n.delay)])}function a4(e,t,n=0,o=0,s=0,a=1,u){const c=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),c.push(Og(f,t,{...u,delay:n+(typeof o=="function"?0:o)+lE(e.variantChildren,f,o,s,a)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(c)}function l4(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const s=t.map(a=>Og(e,a,n));o=Promise.all(s)}else if(typeof t=="string")o=Og(e,t,n);else{const s=typeof t=="function"?La(e,t,n.custom):t;o=Promise.all(aE(e,s,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}function uE(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}const u4=nv.length;function cE(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?cE(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<u4;n++){const o=nv[n],s=e.props[o];(Iu(s)||s===!1)&&(t[o]=s)}return t}const c4=[...tv].reverse(),d4=tv.length;function f4(e){return t=>Promise.all(t.map(({animation:n,options:o})=>l4(e,n,o)))}function h4(e){let t=f4(e),n=Ex(),o=!0;const s=f=>(p,h)=>{var v;const g=La(e,h,f==="exit"?(v=e.presenceContext)==null?void 0:v.custom:void 0);if(g){const{transition:k,transitionEnd:x,...S}=g;p={...p,...S,...x}}return p};function a(f){t=f(e)}function u(f){const{props:p}=e,h=cE(e.parent)||{},g=[],v=new Set;let k={},x=1/0;for(let w=0;w<d4;w++){const T=c4[w],A=n[T],_=p[T]!==void 0?p[T]:h[T],N=Iu(_),R=T===f?A.isActive:null;R===!1&&(x=w);let F=_===h[T]&&_!==p[T]&&N;if(F&&o&&e.manuallyAnimateOnMount&&(F=!1),A.protectedKeys={...k},!A.isActive&&R===null||!_&&!A.prevProp||Wf(_)||typeof _=="boolean")continue;const D=p4(A.prevProp,_);let U=D||T===f&&A.isActive&&!F&&N||w>x&&N,X=!1;const ne=Array.isArray(_)?_:[_];let ee=ne.reduce(s(T),{});R===!1&&(ee={});const{prevResolvedValues:Ee={}}=A,Te={...Ee,...ee},xe=ue=>{U=!0,v.has(ue)&&(X=!0,v.delete(ue)),A.needsAnimating[ue]=!0;const B=e.getValue(ue);B&&(B.liveStyle=!1)};for(const ue in Te){const B=ee[ue],se=Ee[ue];if(k.hasOwnProperty(ue))continue;let Q=!1;Rg(B)&&Rg(se)?Q=!uE(B,se):Q=B!==se,Q?B!=null?xe(ue):v.add(ue):B!==void 0&&v.has(ue)?xe(ue):A.protectedKeys[ue]=!0}A.prevProp=_,A.prevResolvedValues=ee,A.isActive&&(k={...k,...ee}),o&&e.blockInitialAnimation&&(U=!1);const ke=F&&D;U&&(!ke||X)&&g.push(...ne.map(ue=>{const B={type:T};if(typeof ue=="string"&&o&&!ke&&e.manuallyAnimateOnMount&&e.parent){const{parent:se}=e,Q=La(se,ue);if(se.enteringChildren&&Q){const{delayChildren:j}=Q.transition||{};B.delay=lE(se.enteringChildren,e,j)}}return{animation:ue,options:B}}))}if(v.size){const w={};if(typeof p.initial!="boolean"){const T=La(e,Array.isArray(p.initial)?p.initial[0]:p.initial);T&&T.transition&&(w.transition=T.transition)}v.forEach(T=>{const A=e.getBaseTarget(T),_=e.getValue(T);_&&(_.liveStyle=!0),w[T]=A??null}),g.push({animation:w})}let S=!!g.length;return o&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(S=!1),o=!1,S?t(g):Promise.resolve()}function c(f,p){var g;if(n[f].isActive===p)return Promise.resolve();(g=e.variantChildren)==null||g.forEach(v=>{var k;return(k=v.animationState)==null?void 0:k.setActive(f,p)}),n[f].isActive=p;const h=u(f);for(const v in n)n[v].protectedKeys={};return h}return{animateChanges:u,setActive:c,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Ex()}}}function p4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!uE(t,e):!1}function ls(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ex(){return{animate:ls(!0),whileInView:ls(),whileHover:ls(),whileTap:ls(),whileDrag:ls(),whileFocus:ls(),exit:ls()}}class Fi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class m4 extends Fi{constructor(t){super(t),t.animationState||(t.animationState=h4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Wf(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let g4=0;class y4 extends Fi{constructor(){super(...arguments),this.id=g4++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const v4={animation:{Feature:m4},exit:{Feature:y4}};function Du(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}function Zu(e){return{point:{x:e.pageX,y:e.pageY}}}const b4=e=>t=>Zy(t)&&e(t,Zu(t));function wu(e,t,n,o){return Du(e,t,b4(n),o)}const dE=1e-4,S4=1-dE,x4=1+dE,fE=.01,w4=0-fE,C4=0+fE;function Bn(e){return e.max-e.min}function k4(e,t,n){return Math.abs(e-t)<=n}function Tx(e,t,n,o=.5){e.origin=o,e.originPoint=Rt(t.min,t.max,e.origin),e.scale=Bn(n)/Bn(t),e.translate=Rt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=S4&&e.scale<=x4||isNaN(e.scale))&&(e.scale=1),(e.translate>=w4&&e.translate<=C4||isNaN(e.translate))&&(e.translate=0)}function Cu(e,t,n,o){Tx(e.x,t.x,n.x,o?o.originX:void 0),Tx(e.y,t.y,n.y,o?o.originY:void 0)}function _x(e,t,n){e.min=n.min+t.min,e.max=e.min+Bn(t)}function E4(e,t,n){_x(e.x,t.x,n.x),_x(e.y,t.y,n.y)}function Px(e,t,n){e.min=t.min-n.min,e.max=e.min+Bn(t)}function wf(e,t,n){Px(e.x,t.x,n.x),Px(e.y,t.y,n.y)}function Ir(e){return[e("x"),e("y")]}const hE=({current:e})=>e?e.ownerDocument.defaultView:null,Rx=(e,t)=>Math.abs(e-t);function T4(e,t){const n=Rx(e.x,t.x),o=Rx(e.y,t.y);return Math.sqrt(n**2+o**2)}class pE{constructor(t,n,{transformPagePoint:o,contextWindow:s=window,dragSnapToOrigin:a=!1,distanceThreshold:u=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=bm(this.lastMoveEventInfo,this.history),k=this.startEvent!==null,x=T4(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!k&&!x)return;const{point:S}=v,{timestamp:w}=hn;this.history.push({...S,timestamp:w});const{onStart:T,onMove:A}=this.handlers;k||(T&&T(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,v)},this.handlePointerMove=(v,k)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=vm(k,this.transformPagePoint),Et.update(this.updatePoint,!0)},this.handlePointerUp=(v,k)=>{this.end();const{onEnd:x,onSessionEnd:S,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=bm(v.type==="pointercancel"?this.lastMoveEventInfo:vm(k,this.transformPagePoint),this.history);this.startEvent&&x&&x(v,T),S&&S(v,T)},!Zy(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=u,this.contextWindow=s||window;const c=Zu(t),f=vm(c,this.transformPagePoint),{point:p}=f,{timestamp:h}=hn;this.history=[{...p,timestamp:h}];const{onSessionStart:g}=n;g&&g(t,bm(f,this.history)),this.removeListeners=Qu(wu(this.contextWindow,"pointermove",this.handlePointerMove),wu(this.contextWindow,"pointerup",this.handlePointerUp),wu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ii(this.updatePoint)}}function vm(e,t){return t?{point:t(e.point)}:e}function Ax(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bm({point:e},t){return{point:e,delta:Ax(e,mE(t)),offset:Ax(e,_4(t)),velocity:P4(t,.1)}}function _4(e){return e[0]}function mE(e){return e[e.length-1]}function P4(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const s=mE(e);for(;n>=0&&(o=e[n],!(s.timestamp-o.timestamp>Ao(t)));)n--;if(!o)return{x:0,y:0};const a=$r(s.timestamp-o.timestamp);if(a===0)return{x:0,y:0};const u={x:(s.x-o.x)/a,y:(s.y-o.y)/a};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function R4(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?Rt(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?Rt(n,e,o.max):Math.min(e,n)),e}function Ox(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function A4(e,{top:t,left:n,bottom:o,right:s}){return{x:Ox(e.x,n,s),y:Ox(e.y,t,o)}}function jx(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}function O4(e,t){return{x:jx(e.x,t.x),y:jx(e.y,t.y)}}function j4(e,t){let n=.5;const o=Bn(e),s=Bn(t);return s>o?n=Ou(t.min,t.max-o,e.min):o>s&&(n=Ou(e.min,e.max-s,t.min)),ti(0,1,n)}function M4(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const jg=.35;function I4(e=jg){return e===!1?e=0:e===!0&&(e=jg),{x:Mx(e,"left","right"),y:Mx(e,"top","bottom")}}function Mx(e,t,n){return{min:Ix(e,t),max:Ix(e,n)}}function Ix(e,t){return typeof e=="number"?e:e[t]||0}const N4=new WeakMap;class D4{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=en(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:o}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const a=g=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Zu(g).point)},u=(g,v)=>{const{drag:k,dragPropagation:x,onDragStart:S}=this.getProps();if(k&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=$5(k),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ir(T=>{let A=this.getAxisMotionValue(T).get()||0;if(Oo.test(A)){const{projection:_}=this.visualElement;if(_&&_.layout){const N=_.layout.layoutBox[T];N&&(A=Bn(N)*(parseFloat(A)/100))}}this.originPoint[T]=A}),S&&Et.postRender(()=>S(g,v)),Ag(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},c=(g,v)=>{this.latestPointerEvent=g,this.latestPanInfo=v;const{dragPropagation:k,dragDirectionLock:x,onDirectionLock:S,onDrag:w}=this.getProps();if(!k&&!this.openDragLock)return;const{offset:T}=v;if(x&&this.currentDirection===null){this.currentDirection=F4(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",v.point,T),this.updateAxis("y",v.point,T),this.visualElement.render(),w&&w(g,v)},f=(g,v)=>{this.latestPointerEvent=g,this.latestPanInfo=v,this.stop(g,v),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>Ir(g=>{var v;return this.getAnimationState(g)==="paused"&&((v=this.getAxisMotionValue(g).animation)==null?void 0:v.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new pE(t,{onSessionStart:a,onStart:u,onMove:c,onSessionEnd:f,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:o,contextWindow:hE(this.visualElement)})}stop(t,n){const o=t||this.latestPointerEvent,s=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!s||!o)return;const{velocity:u}=s;this.startAnimation(u);const{onDragEnd:c}=this.getProps();c&&Et.postRender(()=>c(o,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,o){const{drag:s}=this.getProps();if(!o||!Td(t,s,this.currentDirection))return;const a=this.getAxisMotionValue(t);let u=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(u=R4(u,this.constraints[t],this.elastic[t])),a.set(u)}resolveConstraints(){var a;const{dragConstraints:t,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(a=this.visualElement.projection)==null?void 0:a.layout,s=this.constraints;t&&_a(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=A4(o.layoutBox,t):this.constraints=!1,this.elastic=I4(n),s!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ir(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=M4(o.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!_a(t))return!1;const o=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const a=Lz(o,s.root,this.visualElement.getTransformPagePoint());let u=O4(s.layout.layoutBox,a);if(n){const c=n(Nz(u));this.hasMutatedConstraints=!!c,c&&(u=Zk(c))}return u}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:s,dragTransition:a,dragSnapToOrigin:u,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},p=Ir(h=>{if(!Td(h,n,this.currentDirection))return;let g=f&&f[h]||{};u&&(g={min:0,max:0});const v=s?200:1e6,k=s?40:1e7,x={type:"inertia",velocity:o?t[h]:0,bounceStiffness:v,bounceDamping:k,timeConstant:750,restDelta:1,restSpeed:10,...a,...g};return this.startAxisValueAnimation(h,x)});return Promise.all(p).then(c)}startAxisValueAnimation(t,n){const o=this.getAxisMotionValue(t);return Ag(this.visualElement,t),o.start(uv(t,o,0,n,this.visualElement,!1))}stopAnimation(){Ir(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ir(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),s=o[n];return s||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){Ir(n=>{const{drag:o}=this.getProps();if(!Td(n,o,this.currentDirection))return;const{projection:s}=this.visualElement,a=this.getAxisMotionValue(n);if(s&&s.layout){const{min:u,max:c}=s.layout.layoutBox[n];a.set(t[n]-Rt(u,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!_a(n)||!o||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Ir(u=>{const c=this.getAxisMotionValue(u);if(c&&this.constraints!==!1){const f=c.get();s[u]=j4({min:f,max:f},this.constraints[u])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Ir(u=>{if(!Td(u,t,null))return;const c=this.getAxisMotionValue(u),{min:f,max:p}=this.constraints[u];c.set(Rt(f,p,s[u]))})}addListeners(){if(!this.visualElement.current)return;N4.set(this.visualElement,this);const t=this.visualElement.current,n=wu(t,"pointerdown",f=>{const{drag:p,dragListener:h=!0}=this.getProps();p&&h&&this.start(f)}),o=()=>{const{dragConstraints:f}=this.getProps();_a(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,a=s.addEventListener("measure",o);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Et.read(o);const u=Du(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(Ir(h=>{const g=this.getAxisMotionValue(h);g&&(this.originPoint[h]+=f[h].translate,g.set(g.get()+f[h].translate))}),this.visualElement.render())}));return()=>{u(),n(),a(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:s=!1,dragConstraints:a=!1,dragElastic:u=jg,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:s,dragConstraints:a,dragElastic:u,dragMomentum:c}}}function Td(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function F4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class L4 extends Fi{constructor(t){super(t),this.removeGroupControls=Br,this.removeListeners=Br,this.controls=new D4(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Br}unmount(){this.removeGroupControls(),this.removeListeners()}}const Nx=e=>(t,n)=>{e&&Et.postRender(()=>e(t,n))};class z4 extends Fi{constructor(){super(...arguments),this.removePointerDownListener=Br}onPointerDown(t){this.session=new pE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:hE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:s}=this.node.getProps();return{onSessionStart:Nx(t),onStart:Nx(n),onMove:o,onEnd:(a,u)=>{delete this.session,s&&Et.postRender(()=>s(a,u))}}}mount(){this.removePointerDownListener=wu(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 ef={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Dx(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ql={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ne.test(e))e=parseFloat(e);else return e;const n=Dx(e,t.target.x),o=Dx(e,t.target.y);return`${n}% ${o}%`}},$4={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,s=Ni.parse(e);if(s.length>5)return o;const a=Ni.createTransformer(e),u=typeof s[0]!="number"?1:0,c=n.x.scale*t.x,f=n.y.scale*t.y;s[0+u]/=c,s[1+u]/=f;const p=Rt(c,f,.5);return typeof s[2+u]=="number"&&(s[2+u]/=p),typeof s[3+u]=="number"&&(s[3+u]/=p),a(s)}};let Sm=!1;class B4 extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o,layoutId:s}=this.props,{projection:a}=t;uz(V4),a&&(n.group&&n.group.add(a),o&&o.register&&s&&o.register(a),Sm&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),ef.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:o,drag:s,isPresent:a}=this.props,{projection:u}=o;return u&&(u.isPresent=a,Sm=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==a?u.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?u.promote():u.relegate()||Et.postRender(()=>{const c=u.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Xy.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:s}=t;Sm=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),o&&o.deregister&&o.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function gE(e){const[t,n]=ev(),o=C.useContext(Ry);return b.jsx(B4,{...e,layoutGroup:o,switchLayoutGroup:C.useContext(Yk),isPresent:t,safeToRemove:n})}const V4={borderRadius:{...ql,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ql,borderTopRightRadius:ql,borderBottomLeftRadius:ql,borderBottomRightRadius:ql,boxShadow:$4};function U4(e,t,n){const o=On(e)?e:Qa(e);return o.start(uv("",o,t,n)),o.animation}const W4=(e,t)=>e.depth-t.depth;class H4{constructor(){this.children=[],this.isDirty=!1}add(t){jy(this.children,t),this.isDirty=!0}remove(t){My(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(W4),this.isDirty=!1,this.children.forEach(t)}}function q4(e,t){const n=Jn.now(),o=({timestamp:s})=>{const a=s-n;a>=t&&(Ii(o),e(a-t))};return Et.setup(o,!0),()=>Ii(o)}const yE=["TopLeft","TopRight","BottomLeft","BottomRight"],K4=yE.length,Fx=e=>typeof e=="string"?parseFloat(e):e,Lx=e=>typeof e=="number"||Ne.test(e);function G4(e,t,n,o,s,a){s?(e.opacity=Rt(0,n.opacity??1,Q4(o)),e.opacityExit=Rt(t.opacity??1,0,Y4(o))):a&&(e.opacity=Rt(t.opacity??1,n.opacity??1,o));for(let u=0;u<K4;u++){const c=`border${yE[u]}Radius`;let f=zx(t,c),p=zx(n,c);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||Lx(f)===Lx(p)?(e[c]=Math.max(Rt(Fx(f),Fx(p),o),0),(Oo.test(p)||Oo.test(f))&&(e[c]+="%")):e[c]=p}(t.rotate||n.rotate)&&(e.rotate=Rt(t.rotate||0,n.rotate||0,o))}function zx(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Q4=vE(0,.5,ik),Y4=vE(.5,.95,Br);function vE(e,t,n){return o=>o<e?0:o>t?1:n(Ou(e,t,o))}function $x(e,t){e.min=t.min,e.max=t.max}function eo(e,t){$x(e.x,t.x),$x(e.y,t.y)}function Bx(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Vx(e,t,n,o,s){return e-=t,e=xf(e,1/n,o),s!==void 0&&(e=xf(e,1/s,o)),e}function X4(e,t=0,n=1,o=.5,s,a=e,u=e){if(Oo.test(t)&&(t=parseFloat(t),t=Rt(u.min,u.max,t/100)-u.min),typeof t!="number")return;let c=Rt(a.min,a.max,o);e===a&&(c-=t),e.min=Vx(e.min,t,n,c,s),e.max=Vx(e.max,t,n,c,s)}function Ux(e,t,[n,o,s],a,u){X4(e,t[n],t[o],t[s],t.scale,a,u)}const Z4=["x","scaleX","originX"],J4=["y","scaleY","originY"];function Wx(e,t,n,o){Ux(e.x,t,Z4,n?n.x:void 0,o?o.x:void 0),Ux(e.y,t,J4,n?n.y:void 0,o?o.y:void 0)}function Hx(e){return e.translate===0&&e.scale===1}function bE(e){return Hx(e.x)&&Hx(e.y)}function qx(e,t){return e.min===t.min&&e.max===t.max}function e$(e,t){return qx(e.x,t.x)&&qx(e.y,t.y)}function Kx(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function SE(e,t){return Kx(e.x,t.x)&&Kx(e.y,t.y)}function Gx(e){return Bn(e.x)/Bn(e.y)}function Qx(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class t${constructor(){this.members=[]}add(t){jy(this.members,t),t.scheduleRender()}remove(t){if(My(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let o;for(let s=n;s>=0;s--){const a=this.members[s];if(a.isPresent!==!1){o=a;break}}return o?(this.promote(o),!0):!1}promote(t,n){const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:o}=t;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function n$(e,t,n){let o="";const s=e.x.translate/t.x,a=e.y.translate/t.y,u=(n==null?void 0:n.z)||0;if((s||a||u)&&(o=`translate3d(${s}px, ${a}px, ${u}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:p,rotate:h,rotateX:g,rotateY:v,skewX:k,skewY:x}=n;p&&(o=`perspective(${p}px) ${o}`),h&&(o+=`rotate(${h}deg) `),g&&(o+=`rotateX(${g}deg) `),v&&(o+=`rotateY(${v}deg) `),k&&(o+=`skewX(${k}deg) `),x&&(o+=`skewY(${x}deg) `)}const c=e.x.scale*t.x,f=e.y.scale*t.y;return(c!==1||f!==1)&&(o+=`scale(${c}, ${f})`),o||"none"}const xm=["","X","Y","Z"],r$=1e3;let o$=0;function wm(e,t,n,o){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),o&&(o[e]=0))}function xE(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=sE(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Et,!(s||a))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&xE(o)}function wE({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:s}){return class{constructor(u={},c=t==null?void 0:t()){this.id=o$++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(a$),this.nodes.forEach(d$),this.nodes.forEach(f$),this.nodes.forEach(l$)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new H4)}addEventListener(u,c){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new Dy),this.eventHandlers.get(u).add(c)}notifyListeners(u,...c){const f=this.eventHandlers.get(u);f&&f.notify(...c)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=Lk(u)&&!q5(u),this.instance=u;const{layoutId:c,layout:f,visualElement:p}=this.options;if(p&&!p.current&&p.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||c)&&(this.isLayoutDirty=!0),e){let h,g=0;const v=()=>this.root.updateBlockedByResize=!1;Et.read(()=>{g=window.innerWidth}),e(u,()=>{const k=window.innerWidth;k!==g&&(g=k,this.root.updateBlockedByResize=!0,h&&h(),h=q4(v,250),ef.hasAnimatedSinceResize&&(ef.hasAnimatedSinceResize=!1,this.nodes.forEach(Zx)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&p&&(c||f)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:g,hasRelativeLayoutChanged:v,layout:k})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||p.getDefaultTransition()||y$,{onLayoutAnimationStart:S,onLayoutAnimationComplete:w}=p.getProps(),T=!this.targetLayout||!SE(this.targetLayout,k),A=!g&&v;if(this.options.layoutRoot||this.resumeFrom||A||g&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const _={...Qy(x,"layout"),onPlay:S,onComplete:w};(p.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_),this.setAnimationOrigin(h,A)}else g||Zx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=k})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ii(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(h$),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&xE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const g=this.path[h];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Yx);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Xx);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(c$),this.nodes.forEach(i$),this.nodes.forEach(s$)):this.nodes.forEach(Xx),this.clearAllSnapshots();const c=Jn.now();hn.delta=ti(0,1e3/60,c-hn.timestamp),hn.timestamp=c,hn.isProcessing=!0,cm.update.process(hn),cm.preRender.process(hn),cm.render.process(hn),hn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Xy.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(u$),this.sharedNodes.forEach(p$)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Et.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Et.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Bn(this.snapshot.measuredBox.x)&&!Bn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=en(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(c=!1),c&&this.instance){const f=o(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!s)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!bE(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,h=p!==this.prevTransformTemplateValue;u&&this.instance&&(c||us(this.latestValues)||h)&&(s(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return u&&(f=this.removeTransform(f)),v$(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var p;const{visualElement:u}=this.options;if(!u)return en();const c=u.measureViewportBox();if(!(((p=this.scroll)==null?void 0:p.wasRoot)||this.path.some(b$))){const{scroll:h}=this.root;h&&(Pa(c.x,h.offset.x),Pa(c.y,h.offset.y))}return c}removeElementScroll(u){var f;const c=en();if(eo(c,u),(f=this.scroll)!=null&&f.wasRoot)return c;for(let p=0;p<this.path.length;p++){const h=this.path[p],{scroll:g,options:v}=h;h!==this.root&&g&&v.layoutScroll&&(g.wasRoot&&eo(c,u),Pa(c.x,g.offset.x),Pa(c.y,g.offset.y))}return c}applyTransform(u,c=!1){const f=en();eo(f,u);for(let p=0;p<this.path.length;p++){const h=this.path[p];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Ra(f,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),us(h.latestValues)&&Ra(f,h.latestValues)}return us(this.latestValues)&&Ra(f,this.latestValues),f}removeTransform(u){const c=en();eo(c,u);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!us(p.latestValues))continue;Tg(p.latestValues)&&p.updateSnapshot();const h=en(),g=p.measurePageBox();eo(h,g),Wx(c,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,h)}return us(this.latestValues)&&Wx(c,this.latestValues),c}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.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!==hn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var k;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==c;if(!(u||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(k=this.parent)!=null&&k.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:g}=this.options;if(!this.layout||!(h||g))return;this.resolvedRelativeTargetAt=hn.timestamp;const v=this.getClosestProjectingParent();v&&this.linkedParentVersion!==v.layoutVersion&&!v.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(v&&v.layout?this.createRelativeTarget(v,this.layout.layoutBox,v.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=en(),this.targetWithTransforms=en()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),E4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):eo(this.target,this.layout.layoutBox),eE(this.target,this.targetDelta)):eo(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?this.createRelativeTarget(v,this.target,v.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Tg(this.parent.latestValues)||Jk(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(u,c,f){this.relativeParent=u,this.linkedParentVersion=u.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=en(),this.relativeTargetOrigin=en(),wf(this.relativeTargetOrigin,c,f),eo(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var x;const u=this.getLead(),c=!!this.resumingFrom||this!==u;let f=!0;if((this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty)&&(f=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===hn.timestamp&&(f=!1),f)return;const{layout:p,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||h))return;eo(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,v=this.treeScale.y;Fz(this.layoutCorrected,this.treeScale,this.path,c),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=en());const{target:k}=u;if(!k){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Bx(this.prevProjectionDelta.x,this.projectionDelta.x),Bx(this.prevProjectionDelta.y,this.projectionDelta.y)),Cu(this.projectionDelta,this.layoutCorrected,k,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==v||!Qx(this.projectionDelta.x,this.prevProjectionDelta.x)||!Qx(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",k))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var c;if((c=this.options.visualElement)==null||c.scheduleRender(),u){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Aa(),this.projectionDelta=Aa(),this.projectionDeltaWithTransform=Aa()}setAnimationOrigin(u,c=!1){const f=this.snapshot,p=f?f.latestValues:{},h={...this.latestValues},g=Aa();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const v=en(),k=f?f.source:void 0,x=this.layout?this.layout.source:void 0,S=k!==x,w=this.getStack(),T=!w||w.members.length<=1,A=!!(S&&!T&&this.options.crossfade===!0&&!this.path.some(g$));this.animationProgress=0;let _;this.mixTargetDelta=N=>{const R=N/1e3;Jx(g.x,u.x,R),Jx(g.y,u.y,R),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wf(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m$(this.relativeTarget,this.relativeTargetOrigin,v,R),_&&e$(this.relativeTarget,_)&&(this.isProjectionDirty=!1),_||(_=en()),eo(_,this.relativeTarget)),S&&(this.animationValues=h,G4(h,p,this.latestValues,R,A,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){var c,f,p;this.notifyListeners("animationStart"),(c=this.currentAnimation)==null||c.stop(),(p=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||p.stop(),this.pendingAnimation&&(Ii(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Et.update(()=>{ef.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Qa(0)),this.currentAnimation=U4(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),u.onUpdate&&u.onUpdate(h)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.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 u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(r$),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:c,target:f,layout:p,latestValues:h}=u;if(!(!c||!f||!p)){if(this!==u&&this.layout&&p&&CE(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||en();const g=Bn(this.layout.layoutBox.x);f.x.min=u.target.x.min,f.x.max=f.x.min+g;const v=Bn(this.layout.layoutBox.y);f.y.min=u.target.y.min,f.y.max=f.y.min+v}eo(c,f),Ra(c,h),Cu(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(u,c){this.sharedNodes.has(u)||this.sharedNodes.set(u,new t$),this.sharedNodes.get(u).add(c);const p=c.options.initialPromotionConfig;c.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(c):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var c;const{layoutId:u}=this.options;return u?((c=this.getStack())==null?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:u}=this.options;return u?(c=this.getStack())==null?void 0:c.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:c,preserveFollowOpacity:f}={}){const p=this.getStack();p&&p.promote(this,f),u&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let c=!1;const{latestValues:f}=u;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const p={};f.z&&wm("z",u,p,this.animationValues);for(let h=0;h<xm.length;h++)wm(`rotate${xm[h]}`,u,p,this.animationValues),wm(`skew${xm[h]}`,u,p,this.animationValues);u.render();for(const h in p)u.setStaticValue(h,p[h]),this.animationValues&&(this.animationValues[h]=p[h]);u.scheduleRender()}applyProjectionStyles(u,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=Jd(c==null?void 0:c.pointerEvents)||"",u.transform=f?f(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=Jd(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!us(this.latestValues)&&(u.transform=f?f({},""):"none",this.hasProjected=!1);return}u.visibility="";const h=p.animationValues||p.latestValues;this.applyTransformsToTarget();let g=n$(this.projectionDeltaWithTransform,this.treeScale,h);f&&(g=f(h,g)),u.transform=g;const{x:v,y:k}=this.projectionDelta;u.transformOrigin=`${v.origin*100}% ${k.origin*100}% 0`,p.animationValues?u.opacity=p===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=p===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const x in Nu){if(h[x]===void 0)continue;const{correct:S,applyTo:w,isCSSVariable:T}=Nu[x],A=g==="none"?h[x]:S(h[x],p);if(w){const _=w.length;for(let N=0;N<_;N++)u[w[N]]=A}else T?this.options.visualElement.renderState.vars[x]=A:u[x]=A}this.options.layoutId&&(u.pointerEvents=p===this?Jd(c==null?void 0:c.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var c;return(c=u.currentAnimation)==null?void 0:c.stop()}),this.root.nodes.forEach(Yx),this.root.sharedNodes.clear()}}}function i$(e){e.updateLayout()}function s$(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:s}=e.layout,{animationType:a}=e.options,u=t.source!==e.layout.source;a==="size"?Ir(g=>{const v=u?t.measuredBox[g]:t.layoutBox[g],k=Bn(v);v.min=o[g].min,v.max=v.min+k}):CE(a,t.layoutBox,o)&&Ir(g=>{const v=u?t.measuredBox[g]:t.layoutBox[g],k=Bn(o[g]);v.max=v.min+k,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+k)});const c=Aa();Cu(c,o,t.layoutBox);const f=Aa();u?Cu(f,e.applyTransform(s,!0),t.measuredBox):Cu(f,o,t.layoutBox);const p=!bE(c);let h=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:v,layout:k}=g;if(v&&k){const x=en();wf(x,t.layoutBox,v.layoutBox);const S=en();wf(S,o,k.layoutBox),SE(x,S)||(h=!0),g.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=x,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:t,delta:f,layoutDelta:c,hasLayoutChanged:p,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function a$(e){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 l$(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function u$(e){e.clearSnapshot()}function Yx(e){e.clearMeasurements()}function Xx(e){e.isLayoutDirty=!1}function c$(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Zx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function d$(e){e.resolveTargetDelta()}function f$(e){e.calcProjection()}function h$(e){e.resetSkewAndRotation()}function p$(e){e.removeLeadSnapshot()}function Jx(e,t,n){e.translate=Rt(t.translate,0,n),e.scale=Rt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function e1(e,t,n,o){e.min=Rt(t.min,n.min,o),e.max=Rt(t.max,n.max,o)}function m$(e,t,n,o){e1(e.x,t.x,n.x,o),e1(e.y,t.y,n.y,o)}function g$(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const y$={duration:.45,ease:[.4,0,.1,1]},t1=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),n1=t1("applewebkit/")&&!t1("chrome/")?Math.round:Br;function r1(e){e.min=n1(e.min),e.max=n1(e.max)}function v$(e){r1(e.x),r1(e.y)}function CE(e,t,n){return e==="position"||e==="preserve-aspect"&&!k4(Gx(t),Gx(n),.2)}function b$(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const S$=wE({attachResizeListener:(e,t)=>Du(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Cm={current:void 0},kE=wE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Cm.current){const e=new S$({});e.mount(window),e.setOptions({layoutScroll:!0}),Cm.current=e}return Cm.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),x$={pan:{Feature:z4},drag:{Feature:L4,ProjectionNode:kE,MeasureLayout:gE}};function o1(e,t,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,a=o[s];a&&Et.postRender(()=>a(t,Zu(t)))}class w$ extends Fi{mount(){const{current:t}=this.node;t&&(this.unmount=B5(t,(n,o)=>(o1(this.node,o,"Start"),s=>o1(this.node,s,"End"))))}unmount(){}}class C$ extends Fi{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(Du(this.node.current,"focus",()=>this.onFocus()),Du(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function i1(e,t,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),a=o[s];a&&Et.postRender(()=>a(t,Zu(t)))}class k$ extends Fi{mount(){const{current:t}=this.node;t&&(this.unmount=H5(t,(n,o)=>(i1(this.node,o,"Start"),(s,{success:a})=>i1(this.node,s,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Mg=new WeakMap,km=new WeakMap,E$=e=>{const t=Mg.get(e.target);t&&t(e)},T$=e=>{e.forEach(E$)};function _$({root:e,...t}){const n=e||document;km.has(n)||km.set(n,{});const o=km.get(n),s=JSON.stringify(t);return o[s]||(o[s]=new IntersectionObserver(T$,{root:e,...t})),o[s]}function P$(e,t,n){const o=_$(t);return Mg.set(e,n),o.observe(e),()=>{Mg.delete(e),o.unobserve(e)}}const R$={some:0,all:1};class A$ extends Fi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:o,amount:s="some",once:a}=t,u={root:n?n.current:void 0,rootMargin:o,threshold:typeof s=="number"?s:R$[s]},c=f=>{const{isIntersecting:p}=f;if(this.isInView===p||(this.isInView=p,a&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:h,onViewportLeave:g}=this.node.getProps(),v=p?h:g;v&&v(f)};return P$(this.node.current,u,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(O$(t,n))&&this.startObserver()}unmount(){}}function O$({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const j$={inView:{Feature:A$},tap:{Feature:k$},focus:{Feature:C$},hover:{Feature:w$}},M$={layout:{ProjectionNode:kE,MeasureLayout:gE}},I$={...v4,...j$,...x$,...M$},Os=Iz(I$,Kz),N$=(e,t)=>e.find(n=>n.id===t);function s1(e,t){const n=EE(e,t),o=n?e[n].findIndex(s=>s.id===t):-1;return{position:n,index:o}}function EE(e,t){for(const[n,o]of Object.entries(e))if(N$(o,t))return n}function D$(e){const t=e.includes("right"),n=e.includes("left");let o="center";return t&&(o="flex-end"),n&&(o="flex-start"),{display:"flex",flexDirection:"column",alignItems:o}}function F$(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,o=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,s=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,a=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",u=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:n,top:o,bottom:s,right:a,left:u}}var L$=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,z$=DC(function(e){return L$.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),$$=z$,B$=function(t){return t!=="theme"},a1=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?$$:B$},l1=function(t,n,o){var s;if(n){var a=n.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(u){return t.__emotion_forwardProp(u)&&a(u)}:a}return typeof s!="function"&&o&&(s=t.__emotion_forwardProp),s},V$=function(t){var n=t.cache,o=t.serialized,s=t.isStringTag;return Cy(n,o,s),BC(function(){return ky(n,o,s)}),null},U$=function e(t,n){var o=t.__emotion_real===t,s=o&&t.__emotion_base||t,a,u;n!==void 0&&(a=n.label,u=n.target);var c=l1(t,n,o),f=c||a1(s),p=!f("as");return function(){var h=arguments,g=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&g.push("label:"+a+";"),h[0]==null||h[0].raw===void 0)g.push.apply(g,h);else{var v=h[0];g.push(v[0]);for(var k=h.length,x=1;x<k;x++)g.push(h[x],v[x])}var S=Ty(function(w,T,A){var _=p&&w.as||s,N="",R=[],F=w;if(w.theme==null){F={};for(var D in w)F[D]=w[D];F.theme=C.useContext(Ga)}typeof w.className=="string"?N=LC(T.registered,R,w.className):w.className!=null&&(N=w.className+" ");var U=$f(g.concat(R),T.registered,F);N+=T.key+"-"+U.name,u!==void 0&&(N+=" "+u);var X=p&&c===void 0?a1(_):f,ne={};for(var ee in w)p&&ee==="as"||X(ee)&&(ne[ee]=w[ee]);return ne.className=N,A&&(ne.ref=A),C.createElement(C.Fragment,null,C.createElement(V$,{cache:T,serialized:U,isStringTag:typeof _=="string"}),C.createElement(_,ne))});return S.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=s,S.__emotion_styles=g,S.__emotion_forwardProp=c,Object.defineProperty(S,"toString",{value:function(){return"."+u}}),S.withComponent=function(w,T){var A=e(w,Es({},n,T,{shouldForwardProp:l1(S,T,!0)}));return A.apply(void 0,g)},S}},W$=["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"],Ig=U$.bind(null);W$.forEach(function(e){Ig[e]=Ig(e)});const H$=new Set([...o2,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),q$=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function K$(e){return(q$.has(e)||!H$.has(e))&&e[0]!=="_"}const G$=dA(Ig),Q$=({baseStyle:e})=>t=>{const{theme:n,css:o,__css:s,sx:a,...u}=t,[c]=gA(u,s2),f=Lr(e,t),p=QR({},s,f,oC(c),a),h=pC(p)(t.theme);return o?[h,o]:h};function Em(e,t){const{baseStyle:n,...o}=t??{};o.shouldForwardProp||(o.shouldForwardProp=K$);const s=Q$({baseStyle:n}),a=G$(e,o)(s);return C.forwardRef(function(f,p){const{children:h,...g}=f,{colorMode:v,forced:k}=Vf(),x=k?v:void 0;return C.createElement(a,{ref:p,"data-theme":x,...g},h)})}function Y$(){const e=new Map;return new Proxy(Em,{apply(t,n,o){return Em(...o)},get(t,n){return e.has(n)||e.set(n,Em(n)),e.get(n)}})}const ge=Y$(),X$={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let o=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(o=1),{opacity:0,[n]:o*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]}}},TE=C.memo(e=>{const{id:t,message:n,onCloseComplete:o,onRequestRemove:s,requestClose:a=!1,position:u="bottom",duration:c=5e3,containerStyle:f,motionVariants:p=X$,toastSpacing:h="0.5rem"}=e,[g,v]=C.useState(c),k=tz();ff(()=>{k||o==null||o()},[k]),ff(()=>{v(c)},[c]);const x=()=>v(null),S=()=>v(c),w=()=>{k&&s()};C.useEffect(()=>{k&&a&&s()},[k,a,s]),kA(w,g);const T=C.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:h,...f}),[f,h]),A=C.useMemo(()=>D$(u),[u]);return b.jsx(Os.div,{layout:!0,className:"chakra-toast",variants:p,initial:"initial",animate:"animate",exit:"exit",onHoverStart:x,onHoverEnd:S,custom:{position:u},style:A,children:b.jsx(ge.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:T,children:Lr(n,{id:t,onClose:w})})})});TE.displayName="ToastComponent";function Me(e){return C.forwardRef(e)}var Tm,u1;function Z$(){if(u1)return Tm;u1=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",o=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(a,u){if(a===u)return!0;if(a&&u&&typeof a=="object"&&typeof u=="object"){if(a.constructor!==u.constructor)return!1;var c,f,p;if(Array.isArray(a)){if(c=a.length,c!=u.length)return!1;for(f=c;f--!==0;)if(!s(a[f],u[f]))return!1;return!0}var h;if(t&&a instanceof Map&&u instanceof Map){if(a.size!==u.size)return!1;for(h=a.entries();!(f=h.next()).done;)if(!u.has(f.value[0]))return!1;for(h=a.entries();!(f=h.next()).done;)if(!s(f.value[1],u.get(f.value[0])))return!1;return!0}if(n&&a instanceof Set&&u instanceof Set){if(a.size!==u.size)return!1;for(h=a.entries();!(f=h.next()).done;)if(!u.has(f.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(u)){if(c=a.length,c!=u.length)return!1;for(f=c;f--!==0;)if(a[f]!==u[f])return!1;return!0}if(a.constructor===RegExp)return a.source===u.source&&a.flags===u.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof u.valueOf=="function")return a.valueOf()===u.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof u.toString=="function")return a.toString()===u.toString();if(p=Object.keys(a),c=p.length,c!==Object.keys(u).length)return!1;for(f=c;f--!==0;)if(!Object.prototype.hasOwnProperty.call(u,p[f]))return!1;if(e&&a instanceof Element)return!1;for(f=c;f--!==0;)if(!((p[f]==="_owner"||p[f]==="__v"||p[f]==="__o")&&a.$$typeof)&&!s(a[p[f]],u[p[f]]))return!1;return!0}return a!==a&&u!==u}return Tm=function(u,c){try{return s(u,c)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},Tm}var J$=Z$();const e3=Hu(J$);function _E(){const e=C.useContext(Ga);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function PE(){const e=Vf(),t=_E();return{...e,theme:t}}function t3(e,t,n){if(t==null)return t;const o=s=>{var a,u;return(u=(a=e.__cssMap)==null?void 0:a[s])==null?void 0:u.value};return o(t)??o(n)??n}function n3(e,t,n){const o=Array.isArray(t)?t:[t],s=Array.isArray(n)?n:[n];return a=>{const u=s.filter(Boolean),c=o.map((f,p)=>{const h=`${e}.${f}`;return t3(a,h,u[p]??f)});return Array.isArray(t)?c:c[0]}}function r3(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0&&t!=="children"&&!C.isValidElement(n)))}function RE(e,t={}){const{styleConfig:n,...o}=t,{theme:s,colorMode:a}=PE(),u=e?iC(s,`components.${e}`):void 0,c=n||u,f=zr({theme:s,colorMode:a},(c==null?void 0:c.defaultProps)??{},r3(o),(h,g)=>h?void 0:g),p=C.useRef({});if(c){const g=g2(c)(f);e3(p.current,g)||(p.current=g)}return p.current}function so(e,t={}){return RE(e,t)}function ao(e,t={}){return RE(e,t)}const c1={path:b.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[b.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"}),b.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"}),b.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Li=Me((e,t)=>{const{as:n,viewBox:o,color:s="currentColor",focusable:a=!1,children:u,className:c,__css:f,...p}=e,h=Ue("chakra-icon",c),g=so("Icon",e),v={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:s,...f,...g},k={ref:t,focusable:a,className:h,__css:v},x=o??c1.viewBox;if(n&&typeof n!="string")return b.jsx(ge.svg,{as:n,...k,...p});const S=u??c1.path;return b.jsx(ge.svg,{verticalAlign:"middle",viewBox:x,...k,...p,children:S})});Li.displayName="Icon";function o3(e){return b.jsx(Li,{viewBox:"0 0 24 24",...e,children:b.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 i3(e){return b.jsx(Li,{viewBox:"0 0 24 24",...e,children:b.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 d1(e){return b.jsx(Li,{viewBox:"0 0 24 24",...e,children:b.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"})})}const s3=LF({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Di=Me((e,t)=>{const n=so("Spinner",e),{label:o="Loading...",thickness:s="2px",speed:a="0.45s",emptyColor:u="transparent",className:c,...f}=Gt(e),p=Ue("chakra-spinner",c),h={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:s,borderBottomColor:u,borderLeftColor:u,animation:`${s3} ${a} linear infinite`,...n};return b.jsx(ge.div,{ref:t,__css:h,className:p,...f,children:o&&b.jsx(ge.span,{srOnly:!0,children:o})})});Di.displayName="Spinner";const[a3,cv]=yn({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[l3,dv]=yn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),AE={info:{icon:i3,colorScheme:"blue"},warning:{icon:d1,colorScheme:"orange"},success:{icon:o3,colorScheme:"green"},error:{icon:d1,colorScheme:"red"},loading:{icon:Di,colorScheme:"blue"}};function u3(e){return AE[e].colorScheme}function c3(e){return AE[e].icon}const fv=Me(function(t,n){const{status:o="info",addRole:s=!0,...a}=Gt(t),u=t.colorScheme??u3(o),c=ao("Alert",{...t,colorScheme:u}),f={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...c.container};return b.jsx(a3,{value:{status:o},children:b.jsx(l3,{value:c,children:b.jsx(ge.div,{"data-status":o,role:s?"alert":void 0,ref:n,...a,className:Ue("chakra-alert",t.className),__css:f})})})});fv.displayName="Alert";function hv(e){const{status:t}=cv(),n=c3(t),o=dv(),s=t==="loading"?o.spinner:o.icon;return b.jsx(ge.span,{display:"inherit","data-status":t,...e,className:Ue("chakra-alert__icon",e.className),__css:s,children:e.children||b.jsx(n,{h:"100%",w:"100%"})})}hv.displayName="AlertIcon";const pv=Me(function(t,n){const o=dv(),{status:s}=cv();return b.jsx(ge.div,{ref:n,"data-status":s,...t,className:Ue("chakra-alert__title",t.className),__css:o.title})});pv.displayName="AlertTitle";const mv=Me(function(t,n){const{status:o}=cv(),s=dv(),a={display:"inline",...s.description};return b.jsx(ge.div,{ref:n,"data-status":o,...t,className:Ue("chakra-alert__desc",t.className),__css:a})});mv.displayName="AlertDescription";function d3(e){return b.jsx(Li,{focusable:"false","aria-hidden":!0,...e,children:b.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"})})}const gv=Me(function(t,n){const o=so("CloseButton",t),{children:s,isDisabled:a,__css:u,...c}=Gt(t),f={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return b.jsx(ge.button,{type:"button","aria-label":"Close",ref:n,disabled:a,__css:{...f,...o,...u},...c,children:s||b.jsx(d3,{width:"1em",height:"1em"})})});gv.displayName="CloseButton";const f3=e=>{const{status:t,variant:n="solid",id:o,title:s,isClosable:a,onClose:u,description:c,colorScheme:f,icon:p}=e,h=o?{root:`toast-${o}`,title:`toast-${o}-title`,description:`toast-${o}-description`}:void 0;return b.jsxs(fv,{addRole:!1,status:t,variant:n,id:h==null?void 0:h.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:f,children:[b.jsx(hv,{children:p}),b.jsxs(ge.div,{flex:"1",maxWidth:"100%",children:[s&&b.jsx(pv,{id:h==null?void 0:h.title,children:s}),c&&b.jsx(mv,{id:h==null?void 0:h.description,display:"block",children:c})]}),a&&b.jsx(gv,{size:"sm",onClick:u,position:"absolute",insetEnd:1,top:1})]})};function OE(e={}){const{render:t,toastComponent:n=f3}=e;return s=>typeof t=="function"?t({...s,...e}):b.jsx(n,{...s,...e})}const h3={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},To=p3(h3);function p3(e){let t=e;const n=new Set,o=s=>{t=s(t),n.forEach(a=>a())};return{getState:()=>t,subscribe:s=>(n.add(s),()=>{o(()=>e),n.delete(s)}),removeToast:(s,a)=>{o(u=>({...u,[a]:u[a].filter(c=>c.id!=s)}))},notify:(s,a)=>{const u=m3(s,a),{position:c,id:f}=u;return o(p=>{const g=c.includes("top")?[u,...p[c]??[]]:[...p[c]??[],u];return{...p,[c]:g}}),f},update:(s,a)=>{s&&o(u=>{const c={...u},{position:f,index:p}=s1(c,s);return f&&p!==-1&&(c[f][p]={...c[f][p],...a,message:OE(a)}),c})},closeAll:({positions:s}={})=>{o(a=>(s??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((f,p)=>(f[p]=a[p].map(h=>({...h,requestClose:!0})),f),{...a}))},close:s=>{o(a=>{const u=EE(a,s);return u?{...a,[u]:a[u].map(c=>c.id==s?{...c,requestClose:!0}:c)}:a})},isActive:s=>!!s1(To.getState(),s).position}}let f1=0;function m3(e,t={}){f1+=1;const n=t.id??f1,o=t.position??"bottom";return{id:n,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>To.removeToast(String(n),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var jE=tC();const[ME,g3]=yn({strict:!1,name:"PortalContext"}),yv="chakra-portal",y3=".chakra-portal",v3=e=>b.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),b3=e=>{const{appendToParentPortal:t,children:n}=e,[o,s]=C.useState(null),a=C.useRef(null),[,u]=C.useState({});C.useEffect(()=>u({}),[]);const c=g3(),f=XF();ji(()=>{if(!o)return;const h=o.ownerDocument,g=t?c??h.body:h.body;if(!g)return;a.current=h.createElement("div"),a.current.className=yv,g.appendChild(a.current),u({});const v=a.current;return()=>{g.contains(v)&&g.removeChild(v)}},[o]);const p=f!=null&&f.zIndex?b.jsx(v3,{zIndex:f==null?void 0:f.zIndex,children:n}):n;return a.current?jE.createPortal(b.jsx(ME,{value:a.current,children:p}),a.current):b.jsx("span",{ref:h=>{h&&s(h)}})},S3=e=>{const{children:t,containerRef:n,appendToParentPortal:o}=e,s=n.current,a=s??(typeof window<"u"?document.body:void 0),u=C.useMemo(()=>{const f=s==null?void 0:s.ownerDocument.createElement("div");return f&&(f.className=yv),f},[s]),[,c]=C.useState({});return ji(()=>c({}),[]),ji(()=>{if(!(!u||!a))return a.appendChild(u),()=>{a.removeChild(u)}},[u,a]),a&&u?jE.createPortal(b.jsx(ME,{value:o?u:null,children:t}),u):null};function Ju(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...o}=t;return n?b.jsx(S3,{containerRef:n,...o}):b.jsx(b3,{...o})}Ju.className=yv;Ju.selector=y3;Ju.displayName="Portal";const[x3,w3]=yn({name:"ToastOptionsContext",strict:!1}),C3=e=>{const t=C.useSyncExternalStore(To.subscribe,To.getState,To.getState),{motionVariants:n,component:o=TE,portalProps:s,animatePresenceProps:a}=e,c=Object.keys(t).map(f=>{const p=t[f];return b.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${f}`,id:`chakra-toast-manager-${f}`,style:F$(f),children:b.jsx(ol,{...a,initial:!1,children:p.map(h=>b.jsx(o,{motionVariants:n,...h},h.id))})},f)});return b.jsx(Ju,{...s,children:c})},k3=e=>function({children:n,theme:o=e,toastOptions:s,...a}){return b.jsxs(ZF,{theme:o,...a,children:[b.jsx(x3,{value:s==null?void 0:s.defaultOptions,children:n}),b.jsx(C3,{...s})]})},E3=k3(RC),Oa={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1]},xs={enter:{duration:.2,ease:Oa.easeOut},exit:{duration:.1,ease:Oa.easeIn}},Jo={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},T3=e=>e!=null&&parseInt(e.toString(),10)>0,h1={exit:{height:{duration:.2,ease:Oa.ease},opacity:{duration:.3,ease:Oa.ease}},enter:{height:{duration:.3,ease:Oa.ease},opacity:{duration:.4,ease:Oa.ease}}},_3={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:o,delay:s})=>({...e&&{opacity:T3(t)?1:0},height:t,transitionEnd:o==null?void 0:o.exit,transition:(n==null?void 0:n.exit)??Jo.exit(h1.exit,s)}),enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:o,delay:s})=>({...e&&{opacity:1},height:t,transitionEnd:o==null?void 0:o.enter,transition:(n==null?void 0:n.enter)??Jo.enter(h1.enter,s)})},IE=C.forwardRef((e,t)=>{const{in:n,unmountOnExit:o,animateOpacity:s=!0,startingHeight:a=0,endingHeight:u="auto",style:c,className:f,transition:p,transitionEnd:h,animatePresenceProps:g,...v}=e,[k,x]=C.useState(!1);C.useEffect(()=>{const _=setTimeout(()=>{x(!0)});return()=>clearTimeout(_)},[]);const S=parseFloat(a.toString())>0,w={startingHeight:a,endingHeight:u,animateOpacity:s,transition:k?p:{enter:{duration:0}},transitionEnd:{enter:h==null?void 0:h.enter,exit:o?h==null?void 0:h.exit:{...h==null?void 0:h.exit,display:S?"block":"none"}}},T=o?n:!0,A=n||o?"enter":"exit";return b.jsx(ol,{...g,initial:!1,custom:w,children:T&&b.jsx(Os.div,{ref:t,...v,className:Ue("chakra-collapse",f),style:{overflow:"hidden",display:"block",...c},custom:w,variants:_3,initial:o?"exit":!1,animate:A,exit:"exit"})})});IE.displayName="Collapse";function P3(e){const{loading:t,src:n,srcSet:o,onLoad:s,onError:a,crossOrigin:u,sizes:c,ignoreFallback:f}=e,[p,h]=C.useState("pending");C.useEffect(()=>{h(n?"loading":"pending")},[n]);const g=C.useRef(null),v=C.useCallback(()=>{if(!n)return;k();const x=new Image;x.src=n,u&&(x.crossOrigin=u),o&&(x.srcset=o),c&&(x.sizes=c),t&&(x.loading=t),x.onload=S=>{k(),h("loaded"),s==null||s(S)},x.onerror=S=>{k(),h("failed"),a==null||a(S)},g.current=x},[n,u,o,c,s,a,t]),k=()=>{g.current&&(g.current.onload=null,g.current.onerror=null,g.current=null)};return ji(()=>{if(!f)return p==="loading"&&v(),()=>{k()}},[p,v,f]),f?"loaded":p}const R3=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError",qf=Me(function(t,n){const o=so("Badge",t),{className:s,...a}=Gt(t);return b.jsx(ge.span,{ref:n,className:Ue("chakra-badge",t.className),...a,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...o}})});qf.displayName="Badge";const ht=ge("div");ht.displayName="Box";const[lH,A3]=yn({strict:!1,name:"ButtonGroupContext"});function cu(e){const{children:t,className:n,...o}=e,s=C.isValidElement(t)?C.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,a=Ue("chakra-button__icon",n);return b.jsx(ge.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...o,className:a,children:s})}cu.displayName="ButtonIcon";function Ng(e){const{label:t,placement:n,spacing:o="0.5rem",children:s=b.jsx(Di,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:u,...c}=e,f=Ue("chakra-button__spinner",a),p=n==="start"?"marginEnd":"marginStart",h=C.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[p]:t?o:0,fontSize:"1em",lineHeight:"normal",...u}),[u,t,p,o]);return b.jsx(ge.div,{className:f,...c,__css:h,children:s})}Ng.displayName="ButtonSpinner";function O3(e){const[t,n]=C.useState(!e);return{ref:C.useCallback(a=>{a&&n(a.tagName==="BUTTON")},[]),type:t?"button":void 0}}const mn=Me((e,t)=>{const n=A3(),o=so("Button",{...n,...e}),{isDisabled:s=n==null?void 0:n.isDisabled,isLoading:a,isActive:u,children:c,leftIcon:f,rightIcon:p,loadingText:h,iconSpacing:g="0.5rem",type:v,spinner:k,spinnerPlacement:x="start",className:S,as:w,shouldWrapChildren:T,...A}=Gt(e),_=C.useMemo(()=>{const D={...o==null?void 0:o._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...o,...!!n&&{_focus:D}}},[o,n]),{ref:N,type:R}=O3(w),F={rightIcon:p,leftIcon:f,iconSpacing:g,children:c,shouldWrapChildren:T};return b.jsxs(ge.button,{disabled:s||a,ref:CA(t,N),as:w,type:v??R,"data-active":Ie(u),"data-loading":Ie(a),__css:_,className:Ue("chakra-button",S),...A,children:[a&&x==="start"&&b.jsx(Ng,{className:"chakra-button__spinner--start",label:h,placement:"start",spacing:g,children:k}),a?h||b.jsx(ge.span,{opacity:0,children:b.jsx(p1,{...F})}):b.jsx(p1,{...F}),a&&x==="end"&&b.jsx(Ng,{className:"chakra-button__spinner--end",label:h,placement:"end",spacing:g,children:k})]})});mn.displayName="Button";function p1(e){const{leftIcon:t,rightIcon:n,children:o,iconSpacing:s,shouldWrapChildren:a}=e;return a?b.jsxs("span",{style:{display:"contents"},children:[t&&b.jsx(cu,{marginEnd:s,children:t}),o,n&&b.jsx(cu,{marginStart:s,children:n})]}):b.jsxs(b.Fragment,{children:[t&&b.jsx(cu,{marginEnd:s,children:t}),o,n&&b.jsx(cu,{marginStart:s,children:n})]})}const Cf=Me((e,t)=>{const{icon:n,children:o,isRound:s,"aria-label":a,...u}=e,c=n||o,f=C.isValidElement(c)?C.cloneElement(c,{"aria-hidden":!0,focusable:!1}):null;return b.jsx(mn,{px:"0",py:"0",borderRadius:s?"full":void 0,ref:t,"aria-label":a,...u,children:f})});Cf.displayName="IconButton";const[j3,M3]=GF("Card"),za=Me(function(t,n){const{className:o,children:s,direction:a="column",justify:u,align:c,...f}=Gt(t),p=ao("Card",t);return b.jsx(ge.div,{ref:n,className:Ue("chakra-card",o),__css:{display:"flex",flexDirection:a,justifyContent:u,alignItems:c,position:"relative",minWidth:0,wordWrap:"break-word",...p.container},...f,children:b.jsx(j3,{value:p,children:s})})}),$a=Me(function(t,n){const{className:o,...s}=t,a=M3();return b.jsx(ge.div,{ref:n,className:Ue("chakra-card__body",o),__css:a.body,...s})});var I3=()=>typeof document<"u",m1=!1,ec=null,Ts=!1,Dg=!1,Fg=new Set;function vv(e,t){Fg.forEach(n=>n(e,t))}var N3=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function D3(e){return!(e.metaKey||!N3&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function g1(e){Ts=!0,D3(e)&&(ec="keyboard",vv("keyboard",e))}function ma(e){if(ec="pointer",e.type==="mousedown"||e.type==="pointerdown"){Ts=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;vv("pointer",e)}}function F3(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function L3(e){F3(e)&&(Ts=!0,ec="virtual")}function z3(e){e.target===window||e.target===document||e.target instanceof Element&&e.target.hasAttribute("tabindex")||(!Ts&&!Dg&&(ec="virtual",vv("virtual",e)),Ts=!1,Dg=!1)}function $3(){Ts=!1,Dg=!0}function y1(){return ec!=="pointer"}function B3(){if(!I3()||m1)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){Ts=!0,e.apply(this,n)},document.addEventListener("keydown",g1,!0),document.addEventListener("keyup",g1,!0),document.addEventListener("click",L3,!0),window.addEventListener("focus",z3,!0),window.addEventListener("blur",$3,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",ma,!0),document.addEventListener("pointermove",ma,!0),document.addEventListener("pointerup",ma,!0)):(document.addEventListener("mousedown",ma,!0),document.addEventListener("mousemove",ma,!0),document.addEventListener("mouseup",ma,!0)),m1=!0}function NE(e){B3(),e(y1());const t=()=>e(y1());return Fg.add(t),()=>{Fg.delete(t)}}const[V3,DE]=yn({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[U3,js]=yn({strict:!1,name:"FormControlContext"});function W3(e){const{id:t,isRequired:n,isInvalid:o,isDisabled:s,isReadOnly:a,...u}=e,c=C.useId(),f=t||`field-${c}`,p=`${f}-label`,h=`${f}-feedback`,g=`${f}-helptext`,[v,k]=C.useState(!1),[x,S]=C.useState(!1),[w,T]=C.useState(!1),A=C.useCallback((D={},U=null)=>({id:g,...D,ref:io(U,X=>{X&&S(!0)})}),[g]),_=C.useCallback((D={},U=null)=>({...D,ref:U,"data-focus":Ie(w),"data-disabled":Ie(s),"data-invalid":Ie(o),"data-readonly":Ie(a),id:D.id!==void 0?D.id:p,htmlFor:D.htmlFor!==void 0?D.htmlFor:f}),[f,s,w,o,a,p]),N=C.useCallback((D={},U=null)=>({id:h,...D,ref:io(U,X=>{X&&k(!0)}),"aria-live":"polite"}),[h]),R=C.useCallback((D={},U=null)=>({...D,...u,ref:U,role:"group","data-focus":Ie(w),"data-disabled":Ie(s),"data-invalid":Ie(o),"data-readonly":Ie(a)}),[u,s,w,o,a]),F=C.useCallback((D={},U=null)=>({...D,ref:U,role:"presentation","aria-hidden":!0,children:D.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!o,isReadOnly:!!a,isDisabled:!!s,isFocused:!!w,onFocus:()=>T(!0),onBlur:()=>T(!1),hasFeedbackText:v,setHasFeedbackText:k,hasHelpText:x,setHasHelpText:S,id:f,labelId:p,feedbackId:h,helpTextId:g,htmlProps:u,getHelpTextProps:A,getErrorMessageProps:N,getRootProps:R,getLabelProps:_,getRequiredIndicatorProps:F}}const mr=Me(function(t,n){const o=ao("Form",t),s=Gt(t),{getRootProps:a,htmlProps:u,...c}=W3(s),f=Ue("chakra-form-control",t.className);return b.jsx(U3,{value:c,children:b.jsx(V3,{value:o,children:b.jsx(ge.div,{...a({},n),className:f,__css:o.container})})})});mr.displayName="FormControl";const H3=Me(function(t,n){const o=js(),s=DE(),a=Ue("chakra-form__helper-text",t.className);return b.jsx(ge.div,{...o==null?void 0:o.getHelpTextProps(t,n),__css:s.helperText,className:a})});H3.displayName="FormHelperText";function FE(e){const{isDisabled:t,isInvalid:n,isReadOnly:o,isRequired:s,...a}=bv(e);return{...a,disabled:t,readOnly:o,required:s,"aria-invalid":Xo(n),"aria-required":Xo(s),"aria-readonly":Xo(o)}}function bv(e){const t=js(),{id:n,disabled:o,readOnly:s,required:a,isRequired:u,isInvalid:c,isReadOnly:f,isDisabled:p,onFocus:h,onBlur:g,...v}=e,k=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.hasFeedbackText&&(t!=null&&t.isInvalid)&&k.push(t.feedbackId),t!=null&&t.hasHelpText&&k.push(t.helpTextId),{...v,"aria-describedby":k.join(" ")||void 0,id:n??(t==null?void 0:t.id),isDisabled:o??p??(t==null?void 0:t.isDisabled),isReadOnly:s??f??(t==null?void 0:t.isReadOnly),isRequired:a??u??(t==null?void 0:t.isRequired),isInvalid:c??(t==null?void 0:t.isInvalid),onFocus:Ke(t==null?void 0:t.onFocus,h),onBlur:Ke(t==null?void 0:t.onBlur,g)}}const LE={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function q3(e={}){const t=bv(e),{isDisabled:n,isReadOnly:o,isRequired:s,isInvalid:a,id:u,onBlur:c,onFocus:f,"aria-describedby":p}=t,{defaultChecked:h,isChecked:g,isFocusable:v,onChange:k,isIndeterminate:x,name:S,value:w,tabIndex:T=void 0,"aria-label":A,"aria-labelledby":_,"aria-invalid":N,...R}=e,F=dy(R,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),D=Fr(k),U=Fr(c),X=Fr(f),[ne,ee]=C.useState(!1),[Ee,Te]=C.useState(!1),[xe,ke]=C.useState(!1),_e=C.useRef(!1);C.useEffect(()=>NE(de=>{_e.current=de}),[]);const ue=C.useRef(null),[B,se]=C.useState(!0),[Q,j]=C.useState(!!h),q=g!==void 0,Y=q?g:Q,ae=C.useCallback(de=>{if(o||n){de.preventDefault();return}q||j(Y?de.currentTarget.checked:x?!0:de.currentTarget.checked),D==null||D(de)},[o,n,Y,q,x,D]);ji(()=>{ue.current&&(ue.current.indeterminate=!!x)},[x]),ff(()=>{n&&ee(!1)},[n,ee]),ji(()=>{const de=ue.current;if(!(de!=null&&de.form))return;const at=()=>{j(!!h)};return de.form.addEventListener("reset",at),()=>{var Ye;return(Ye=de.form)==null?void 0:Ye.removeEventListener("reset",at)}},[]);const le=n&&!v,Se=C.useCallback(de=>{de.key===" "&&ke(!0)},[ke]),ze=C.useCallback(de=>{de.key===" "&&ke(!1)},[ke]);ji(()=>{if(!ue.current)return;ue.current.checked!==Y&&j(ue.current.checked)},[ue.current]);const Pe=C.useCallback((de={},at=null)=>{const Ye=St=>{ne&&St.preventDefault(),ke(!0)};return{...de,ref:at,"data-active":Ie(xe),"data-hover":Ie(Ee),"data-checked":Ie(Y),"data-focus":Ie(ne),"data-focus-visible":Ie(ne&&_e.current),"data-indeterminate":Ie(x),"data-disabled":Ie(n),"data-invalid":Ie(a),"data-readonly":Ie(o),"aria-hidden":!0,onMouseDown:Ke(de.onMouseDown,Ye),onMouseUp:Ke(de.onMouseUp,()=>ke(!1)),onMouseEnter:Ke(de.onMouseEnter,()=>Te(!0)),onMouseLeave:Ke(de.onMouseLeave,()=>Te(!1))}},[xe,Y,n,ne,Ee,x,a,o]),Be=C.useCallback((de={},at=null)=>({...de,ref:at,"data-active":Ie(xe),"data-hover":Ie(Ee),"data-checked":Ie(Y),"data-focus":Ie(ne),"data-focus-visible":Ie(ne&&_e.current),"data-indeterminate":Ie(x),"data-disabled":Ie(n),"data-invalid":Ie(a),"data-readonly":Ie(o)}),[xe,Y,n,ne,Ee,x,a,o]),we=C.useCallback((de={},at=null)=>({...F,...de,ref:io(at,Ye=>{Ye&&se(Ye.tagName==="LABEL")}),onClick:Ke(de.onClick,()=>{var Ye;B||((Ye=ue.current)==null||Ye.click(),requestAnimationFrame(()=>{var St;(St=ue.current)==null||St.focus({preventScroll:!0})}))}),"data-disabled":Ie(n),"data-checked":Ie(Y),"data-invalid":Ie(a)}),[F,n,Y,a,B]),ut=C.useCallback((de={},at=null)=>({...de,ref:io(ue,at),type:"checkbox",name:S,value:w,id:u,tabIndex:T,onChange:Ke(de.onChange,ae),onBlur:Ke(de.onBlur,U,()=>ee(!1)),onFocus:Ke(de.onFocus,X,()=>ee(!0)),onKeyDown:Ke(de.onKeyDown,Se),onKeyUp:Ke(de.onKeyUp,ze),required:s,checked:Y,disabled:le,readOnly:o,"aria-label":A,"aria-labelledby":_,"aria-invalid":N?!!N:a,"aria-describedby":p,"aria-disabled":n,"aria-checked":x?"mixed":Y,style:LE}),[S,w,u,T,ae,U,X,Se,ze,s,Y,le,o,A,_,N,a,p,n,x]),Nt=C.useCallback((de={},at=null)=>({...de,ref:at,onMouseDown:Ke(de.onMouseDown,K3),"data-disabled":Ie(n),"data-checked":Ie(Y),"data-invalid":Ie(a)}),[Y,n,a]);return{state:{isInvalid:a,isFocused:ne,isChecked:Y,isActive:xe,isHovered:Ee,isIndeterminate:x,isDisabled:n,isReadOnly:o,isRequired:s},getRootProps:we,getCheckboxProps:Pe,getIndicatorProps:Be,getInputProps:ut,getLabelProps:Nt,htmlProps:F}}function K3(e){e.preventDefault(),e.stopPropagation()}const ro=Me(function(t,n){const{className:o,centerContent:s,...a}=Gt(t),u=so("Container",t);return b.jsx(ge.div,{ref:n,className:Ue("chakra-container",o),...a,__css:{...u,...s&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});ro.displayName="Container";const Fu=Me(function(t,n){const{borderLeftWidth:o,borderBottomWidth:s,borderTopWidth:a,borderRightWidth:u,borderWidth:c,borderStyle:f,borderColor:p,...h}=so("Divider",t),{className:g,orientation:v="horizontal",__css:k,...x}=Gt(t),S={vertical:{borderLeftWidth:o||u||c||"1px",height:"100%"},horizontal:{borderBottomWidth:s||a||c||"1px",width:"100%"}};return b.jsx(ge.hr,{ref:n,"aria-orientation":v,...x,__css:{...h,border:"0",borderColor:p,borderStyle:f,...S[v],...k},className:Ue("chakra-divider",g)})});Fu.displayName="Divider";function du(e){return typeof e=="function"}function G3(...e){return t=>e.reduce((n,o)=>o(n),t)}const Q3=e=>function(...n){let o=[...n],s=n[n.length-1];return BD(s)&&o.length>1?o=o.slice(0,o.length-1):s=e,G3(...o.map(a=>u=>du(a)?a(u):X3(u,a)))(s)},Y3=Q3(RC);function X3(...e){return zr({},...e,zE)}function zE(e,t,n,o){if((du(e)||du(t))&&Object.prototype.hasOwnProperty.call(o,n))return(...s)=>{const a=du(e)?e(...s):e,u=du(t)?t(...s):t;return zr({},a,u,zE)};if(gn(e)&&Jm(t)||Jm(e)&&gn(t))return t}const ku=Me(function(t,n){const{direction:o,align:s,justify:a,wrap:u,basis:c,grow:f,shrink:p,...h}=t,g={display:"flex",flexDirection:o,alignItems:s,justifyContent:a,flexWrap:u,flexBasis:c,flexGrow:f,flexShrink:p};return b.jsx(ge.div,{ref:n,__css:g,...h})});ku.displayName="Flex";function Z3(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}var _m={exports:{}},Pm,v1;function J3(){if(v1)return Pm;v1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Pm=e,Pm}var Rm,b1;function eB(){if(b1)return Rm;b1=1;var e=J3();function t(){}function n(){}return n.resetWarningCache=t,Rm=function(){function o(u,c,f,p,h,g){if(g!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}o.isRequired=o;function s(){return o}var a={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Rm}var S1;function tB(){return S1||(S1=1,_m.exports=eB()()),_m.exports}var nB=tB();const ft=Hu(nB);var Lg="data-focus-lock",$E="data-focus-lock-disabled",rB="data-no-focus-lock",oB="data-autofocus-inside",iB="data-no-autofocus";function Am(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function sB(e,t){var n=C.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var s=n.value;s!==o&&(n.value=o,n.callback(o,s))}}}})[0];return n.callback=t,n.facade}var aB=typeof window<"u"?C.useLayoutEffect:C.useEffect,x1=new WeakMap;function BE(e,t){var n=sB(null,function(o){return e.forEach(function(s){return Am(s,o)})});return aB(function(){var o=x1.get(n);if(o){var s=new Set(o),a=new Set(e),u=n.current;s.forEach(function(c){a.has(c)||Am(c,null)}),a.forEach(function(c){s.has(c)||Am(c,u)})}x1.set(n,e)},[e]),n}var Om={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},_o=function(){return _o=Object.assign||function(t){for(var n,o=1,s=arguments.length;o<s;o++){n=arguments[o];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},_o.apply(this,arguments)};function VE(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(n[o[s]]=e[o[s]]);return n}function lB(e,t,n){if(n||arguments.length===2)for(var o=0,s=t.length,a;o<s;o++)(a||!(o in t))&&(a||(a=Array.prototype.slice.call(t,0,o)),a[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))}function UE(e){return e}function WE(e,t){t===void 0&&(t=UE);var n=[],o=!1,s={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var u=t(a,o);return n.push(u),function(){n=n.filter(function(c){return c!==u})}},assignSyncMedium:function(a){for(o=!0;n.length;){var u=n;n=[],u.forEach(a)}n={push:function(c){return a(c)},filter:function(){return n}}},assignMedium:function(a){o=!0;var u=[];if(n.length){var c=n;n=[],c.forEach(a),u=n}var f=function(){var h=u;u=[],h.forEach(a)},p=function(){return Promise.resolve().then(f)};p(),n={push:function(h){u.push(h),p()},filter:function(h){return u=u.filter(h),n}}}};return s}function Sv(e,t){return t===void 0&&(t=UE),WE(e,t)}function HE(e){e===void 0&&(e={});var t=WE(null);return t.options=_o({async:!0,ssr:!1},e),t}var qE=function(e){var t=e.sideCar,n=VE(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return C.createElement(o,_o({},n))};qE.isSideCarExport=!0;function uB(e,t){return e.useMedium(t),qE}var KE=Sv({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),GE=Sv(),cB=Sv(),dB=HE({async:!0,ssr:typeof document<"u"}),fB=C.createContext(void 0),hB=[],xv=C.forwardRef(function(t,n){var o,s=C.useState(),a=s[0],u=s[1],c=C.useRef(),f=C.useRef(!1),p=C.useRef(null),h=C.useState({}),g=h[1],v=t.children,k=t.disabled,x=k===void 0?!1:k,S=t.noFocusGuards,w=S===void 0?!1:S,T=t.persistentFocus,A=T===void 0?!1:T,_=t.crossFrame,N=_===void 0?!0:_,R=t.autoFocus,F=R===void 0?!0:R;t.allowTextSelection;var D=t.group,U=t.className,X=t.whiteList,ne=t.hasPositiveIndices,ee=t.shards,Ee=ee===void 0?hB:ee,Te=t.as,xe=Te===void 0?"div":Te,ke=t.lockProps,_e=ke===void 0?{}:ke,ue=t.sideCar,B=t.returnFocus,se=B===void 0?!1:B,Q=t.focusOptions,j=t.onActivation,q=t.onDeactivation,Y=C.useState({}),ae=Y[0],le=C.useCallback(function(Ye){var St=Ye.captureFocusRestore;if(!p.current){var Ft,Lt=(Ft=document)==null?void 0:Ft.activeElement;p.current=Lt,Lt!==document.body&&(p.current=St(Lt))}c.current&&j&&j(c.current),f.current=!0,g()},[j]),Se=C.useCallback(function(){f.current=!1,q&&q(c.current),g()},[q]),ze=C.useCallback(function(Ye){var St=p.current;if(St){var Ft=(typeof St=="function"?St():St)||document.body,Lt=typeof se=="function"?se(Ft):se;if(Lt){var zt=typeof Lt=="object"?Lt:void 0;p.current=null,Ye?Promise.resolve().then(function(){return Ft.focus(zt)}):Ft.focus(zt)}}},[se]),Pe=C.useCallback(function(Ye){f.current&&KE.useMedium(Ye)},[]),Be=GE.useMedium,we=C.useCallback(function(Ye){c.current!==Ye&&(c.current=Ye,u(Ye))},[]),ut=Es((o={},o[$E]=x&&"disabled",o[Lg]=D,o),_e),Nt=w!==!0,Dt=Nt&&w!=="tail",de=BE([n,we]),at=C.useMemo(function(){return{observed:c,shards:Ee,enabled:!x,get active(){return f.current}}},[x,f,Ee,c]);return Le.createElement(C.Fragment,null,Nt&&[Le.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:x?-1:0,style:Om}),ne?Le.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:x?-1:1,style:Om}):null],!x&&Le.createElement(ue,{id:ae,sideCar:dB,observed:a,disabled:x,persistentFocus:A,crossFrame:N,autoFocus:F,whiteList:X,shards:Ee,onActivation:le,onDeactivation:Se,returnFocus:ze,focusOptions:Q,noFocusGuards:w}),Le.createElement(xe,Es({ref:de},ut,{className:U,onBlur:Be,onFocus:Pe}),Le.createElement(fB.Provider,{value:at},v)),Dt&&Le.createElement("div",{"data-focus-guard":!0,tabIndex:x?-1:0,style:Om}))});xv.propTypes={};function zg(e,t){return zg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},zg(e,t)}function pB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zg(e,t)}function Lu(e){"@babel/helpers - typeof";return Lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lu(e)}function mB(e,t){if(Lu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t);if(Lu(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gB(e){var t=mB(e,"string");return Lu(t)=="symbol"?t:t+""}function yB(e,t,n){return(t=gB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vB(e,t){function n(o){return o.displayName||o.name||"Component"}return function(s){var a=[],u;function c(){u=e(a.map(function(p){return p.props})),t(u)}var f=(function(p){pB(h,p);function h(){return p.apply(this,arguments)||this}h.peek=function(){return u};var g=h.prototype;return g.componentDidMount=function(){a.push(this),c()},g.componentDidUpdate=function(){c()},g.componentWillUnmount=function(){var k=a.indexOf(this);a.splice(k,1),c()},g.render=function(){return Le.createElement(s,this.props)},h})(C.PureComponent);return yB(f,"displayName","SideEffect("+n(s)+")"),f}}var jo=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},_s=function(e){return Array.isArray(e)?e:[e]},QE=function(e){return Array.isArray(e)?e[0]:e},bB=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},YE=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},XE=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},SB=function(e){return e.hasAttribute("inert")},xB=function(e,t){return!e||XE(e)||!bB(e)&&!SB(e)&&t(YE(e))},ZE=function(e,t){var n=e.get(t);if(n!==void 0)return n;var o=xB(t,ZE.bind(void 0,e));return e.set(t,o),o},wB=function(e,t){return e&&!XE(e)?EB(e)?t(YE(e)):!1:!0},JE=function(e,t){var n=e.get(t);if(n!==void 0)return n;var o=wB(t,JE.bind(void 0,e));return e.set(t,o),o},eT=function(e){return e.dataset},CB=function(e){return e.tagName==="BUTTON"},tT=function(e){return e.tagName==="INPUT"},nT=function(e){return tT(e)&&e.type==="radio"},kB=function(e){return!((tT(e)||CB(e))&&(e.type==="hidden"||e.disabled))},EB=function(e){var t=e.getAttribute(iB);return![!0,"true",""].includes(t)},wv=function(e){var t;return!!(e&&(!((t=eT(e))===null||t===void 0)&&t.focusGuard))},$g=function(e){return!wv(e)},TB=function(e){return!!e},_B=function(e,t){var n=Math.max(0,e.tabIndex),o=Math.max(0,t.tabIndex),s=n-o,a=e.index-t.index;if(s){if(!n)return 1;if(!o)return-1}return s||a},PB=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex},Cv=function(e,t,n){return jo(e).map(function(o,s){var a=PB(o);return{node:o,index:s,tabIndex:n&&a===-1?(o.dataset||{}).focusGuard?0:-1:a}}).filter(function(o){return!t||o.tabIndex>=0}).sort(_B)},RB=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],kv=RB.join(","),AB="".concat(kv,", [data-focus-guard]"),rT=function(e,t){return jo((e.shadowRoot||e).children).reduce(function(n,o){return n.concat(o.matches(t?AB:kv)?[o]:[],rT(o))},[])},OB=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?Xa([e.contentDocument.body],t):[e]},Xa=function(e,t){return e.reduce(function(n,o){var s,a=rT(o,t),u=(s=[]).concat.apply(s,a.map(function(c){return OB(c,t)}));return n.concat(u,o.parentNode?jo(o.parentNode.querySelectorAll(kv)).filter(function(c){return c===o}):[])},[])},jB=function(e){var t=e.querySelectorAll("[".concat(oB,"]"));return jo(t).map(function(n){return Xa([n])}).reduce(function(n,o){return n.concat(o)},[])},Ev=function(e,t){return jo(e).filter(function(n){return ZE(t,n)}).filter(function(n){return kB(n)})},w1=function(e,t){return t===void 0&&(t=new Map),jo(e).filter(function(n){return JE(t,n)})},Tv=function(e,t,n){return Cv(Ev(Xa(e,n),t),!0,n)},zu=function(e,t){return Cv(Ev(Xa(e),t),!1)},MB=function(e,t){return Ev(jB(e),t)},ws=function(e,t){return e.shadowRoot?ws(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:jo(e.children).some(function(n){var o;if(n instanceof HTMLIFrameElement){var s=(o=n.contentDocument)===null||o===void 0?void 0:o.body;return s?ws(s,t):!1}return ws(n,t)})},IB=function(e){for(var t=new Set,n=e.length,o=0;o<n;o+=1)for(var s=o+1;s<n;s+=1){var a=e[o].compareDocumentPosition(e[s]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(s),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(o)}return e.filter(function(u,c){return!t.has(c)})},oT=function(e){return e.parentNode?oT(e.parentNode):e},_v=function(e){var t=_s(e);return t.filter(Boolean).reduce(function(n,o){var s=o.getAttribute(Lg);return n.push.apply(n,s?IB(jo(oT(o).querySelectorAll("[".concat(Lg,'="').concat(s,'"]:not([').concat($E,'="disabled"])')))):[o]),n},[])},NB=function(e){try{return e()}catch{return}},$u=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?$u(t.shadowRoot):t instanceof HTMLIFrameElement&&NB(function(){return t.contentWindow.document})?$u(t.contentWindow.document):t}},DB=function(e,t){return e===t},FB=function(e,t){return!!jo(e.querySelectorAll("iframe")).some(function(n){return DB(n,t)})},iT=function(e,t){return t===void 0&&(t=$u(QE(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:_v(e).some(function(n){return ws(n,t)||FB(n,t)})},LB=function(e){e===void 0&&(e=document);var t=$u(e);return t?jo(e.querySelectorAll("[".concat(rB,"]"))).some(function(n){return ws(n,t)}):!1},zB=function(e,t){return t.filter(nT).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},Pv=function(e,t){return nT(e)&&e.name?zB(e,t):e},$B=function(e){var t=new Set;return e.forEach(function(n){return t.add(Pv(n,e))}),e.filter(function(n){return t.has(n)})},C1=function(e){return e[0]&&e.length>1?Pv(e[0],e):e[0]},k1=function(e,t){return e.indexOf(Pv(t,e))},Bg="NEW_FOCUS",BB=function(e,t,n,o,s){var a=e.length,u=e[0],c=e[a-1],f=wv(o);if(!(o&&e.indexOf(o)>=0)){var p=o!==void 0?n.indexOf(o):-1,h=s?n.indexOf(s):p,g=s?e.indexOf(s):-1;if(p===-1)return g!==-1?g:Bg;if(g===-1)return Bg;var v=p-h,k=n.indexOf(u),x=n.indexOf(c),S=$B(n),w=o!==void 0?S.indexOf(o):-1,T=s?S.indexOf(s):w,A=S.filter(function(U){return U.tabIndex>=0}),_=o!==void 0?A.indexOf(o):-1,N=s?A.indexOf(s):_,R=_>=0&&N>=0?N-_:T-w;if(!v&&g>=0||t.length===0)return g;var F=k1(e,t[0]),D=k1(e,t[t.length-1]);if(p<=k&&f&&Math.abs(v)>1)return D;if(p>=x&&f&&Math.abs(v)>1)return F;if(v&&Math.abs(R)>1)return g;if(p<=k)return D;if(p>x)return F;if(v)return Math.abs(v)>1?g:(a+g+v)%a}},VB=function(e){return function(t){var n,o=(n=eT(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||o!==void 0&&o!=="false"||e.indexOf(t)>=0}},E1=function(e,t,n){var o=e.map(function(a){var u=a.node;return u}),s=w1(o.filter(VB(n)));return s&&s.length?C1(s):C1(w1(t))},Vg=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Vg(e.parentNode.host||e.parentNode,t),t},jm=function(e,t){for(var n=Vg(e),o=Vg(t),s=0;s<n.length;s+=1){var a=n[s];if(o.indexOf(a)>=0)return a}return!1},sT=function(e,t,n){var o=_s(e),s=_s(t),a=o[0],u=!1;return s.filter(Boolean).forEach(function(c){u=jm(u||c,c)||u,n.filter(Boolean).forEach(function(f){var p=jm(a,f);p&&(!u||ws(p,u)?u=p:u=jm(p,u))})}),u},T1=function(e,t){return e.reduce(function(n,o){return n.concat(MB(o,t))},[])},UB=function(e,t){var n=new Map;return t.forEach(function(o){return n.set(o.node,o)}),e.map(function(o){return n.get(o)}).filter(TB)},WB=function(e,t){var n=$u(_s(e).length>0?document:QE(e).ownerDocument),o=_v(e).filter($g),s=sT(n||e,e,o),a=new Map,u=zu(o,a),c=u.filter(function(x){var S=x.node;return $g(S)});if(c[0]){var f=zu([s],a).map(function(x){var S=x.node;return S}),p=UB(f,c),h=p.map(function(x){var S=x.node;return S}),g=p.filter(function(x){var S=x.tabIndex;return S>=0}).map(function(x){var S=x.node;return S}),v=BB(h,g,f,n,t);if(v===Bg){var k=E1(u,g,T1(o,a))||E1(u,h,T1(o,a));if(k)return{node:k};console.warn("focus-lock: cannot find any node to move focus into");return}return v===void 0?v:p[v]}},HB=function(e){var t=_v(e).filter($g),n=sT(e,e,t),o=Cv(Xa([n],!0),!0,!0),s=Xa(t,!1);return o.map(function(a){var u=a.node,c=a.index;return{node:u,index:c,lockItem:s.indexOf(u)>=0,guard:wv(u)}})},Rv=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Mm=0,Im=!1,aT=function(e,t,n){n===void 0&&(n={});var o=WB(e,t);if(!Im&&o){if(Mm>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Im=!0,setTimeout(function(){Im=!1},1);return}Mm++,Rv(o.node,n.focusOptions),Mm--}};function Kl(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var qB=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Kl(n),parent:Kl(n.parentElement),left:Kl(n.previousElementSibling),right:Kl(n.nextElementSibling)}),n=n.parentElement;return{element:Kl(e),stack:t,ownerDocument:e.ownerDocument}},KB=function(e){var t,n,o,s,a;if(e)for(var u=e.stack,c=e.ownerDocument,f=new Map,p=0,h=u;p<h.length;p++){var g=h[p],v=(t=g.parent)===null||t===void 0?void 0:t.call(g);if(v&&c.contains(v)){for(var k=(n=g.left)===null||n===void 0?void 0:n.call(g),x=g.current(),S=v.contains(x)?x:void 0,w=(o=g.right)===null||o===void 0?void 0:o.call(g),T=Tv([v],f),A=(a=(s=S??(k==null?void 0:k.nextElementSibling))!==null&&s!==void 0?s:w)!==null&&a!==void 0?a:k;A;){for(var _=0,N=T;_<N.length;_++){var R=N[_];if(A!=null&&A.contains(R.node))return R.node}A=A.nextElementSibling}if(T.length)return T[0].node}}},lT=function(e){var t=qB(e);return function(){return KB(t)}},GB=function(e,t,n){if(!e||!t)return console.error("no element or scope given"),{};var o=_s(t);if(o.every(function(u){return!ws(u,e)}))return console.error("Active element is not contained in the scope"),{};var s=n?Tv(o,new Map):zu(o,new Map),a=s.findIndex(function(u){var c=u.node;return c===e});if(a!==-1)return{prev:s[a-1],next:s[a+1],first:s[0],last:s[s.length-1]}},QB=function(e,t){var n=t?Tv(_s(e),new Map):zu(_s(e),new Map);return{first:n[0],last:n[n.length-1]}},YB=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)},uT=function(e,t,n){t===void 0&&(t={});var o=YB(t),s=GB(e,o.scope,o.onlyTabbable);if(s){var a=n(s,o.cycle);a&&Rv(a.node,o.focusOptions)}},XB=function(e,t){t===void 0&&(t={}),uT(e,t,function(n,o){var s=n.next,a=n.first;return s||o&&a})},ZB=function(e,t){t===void 0&&(t={}),uT(e,t,function(n,o){var s=n.prev,a=n.last;return s||o&&a})},cT=function(e,t,n){var o,s=QB(e,(o=t.onlyTabbable)!==null&&o!==void 0?o:!0),a=s[n];a&&Rv(a.node,t.focusOptions)},JB=function(e,t){t===void 0&&(t={}),cT(e,t,"first")},e6=function(e,t){t===void 0&&(t={}),cT(e,t,"last")};function Av(e){setTimeout(e,1)}var t6=function(t){return t&&"current"in t?t.current:t},dT=function(){return document&&document.activeElement===document.body},n6=function(){return dT()||LB()},Ba=null,Xn=null,_1=function(){return null},Va=null,Bu=!1,Ov=!1,r6=function(){return!0},o6=function(t){return(Ba.whiteList||r6)(t)},i6=function(t,n){Va={observerNode:t,portaledElement:n}},s6=function(t){return Va&&Va.portaledElement===t};function P1(e,t,n,o){var s=null,a=e;do{var u=o[a];if(u.guard)u.node.dataset.focusAutoGuard&&(s=u);else if(u.lockItem){if(a!==e)return;s=null}else break}while((a+=n)!==t);s&&(s.node.tabIndex=0)}var a6=function(t){return t?!!Bu:Bu==="meanwhile"},l6=function e(t,n,o){return n&&(n.host===t&&(!n.activeElement||o.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,o))},u6=function(t,n){return n.some(function(o){return l6(t,o,o)})},fT=function(t){return zu(t,new Map)},c6=function(t){return!fT([t.parentNode]).some(function(n){return n.node===t})},kf=function(){var t=!1;if(Ba){var n=Ba,o=n.observed,s=n.persistentFocus,a=n.autoFocus,u=n.shards,c=n.crossFrame,f=n.focusOptions,p=n.noFocusGuards,h=o||Va&&Va.portaledElement;if(dT()&&Xn&&Xn!==document.body&&(!document.body.contains(Xn)||c6(Xn))){var g=_1();g&&g.focus()}var v=document&&document.activeElement;if(h){var k=[h].concat(u.map(t6).filter(Boolean)),x=function(){if(!a6(c)||!p||!Xn||Ov)return!1;var _=fT(k),N=_.findIndex(function(R){var F=R.node;return F===Xn});return N===0||N===_.length-1};if((!v||o6(v))&&(s||x()||!n6()||!Xn&&a)&&(h&&!(iT(k)||v&&u6(v,k)||s6(v))&&(document&&!Xn&&v&&!a?(v.blur&&v.blur(),document.body.focus()):(t=aT(k,Xn,{focusOptions:f}),Va={})),Xn=document&&document.activeElement,Xn!==document.body&&(_1=lT(Xn)),Bu=!1),document&&v!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var S=document&&document.activeElement,w=HB(k),T=w.map(function(A){var _=A.node;return _}).indexOf(S);T>-1&&(w.filter(function(A){var _=A.guard,N=A.node;return _&&N.dataset.focusAutoGuard}).forEach(function(A){var _=A.node;return _.removeAttribute("tabIndex")}),P1(T,w.length,1,w),P1(T,-1,-1,w))}}}return t},hT=function(t){kf()&&t&&(t.stopPropagation(),t.preventDefault())},jv=function(){return Av(kf)},d6=function(t){var n=t.target,o=t.currentTarget;o.contains(n)||i6(o,n)},f6=function(){return null},pT=function(){Ov=!0},mT=function(){Ov=!1,Bu="just",Av(function(){Bu="meanwhile"})},h6=function(){document.addEventListener("focusin",hT),document.addEventListener("focusout",jv),window.addEventListener("focus",pT),window.addEventListener("blur",mT)},p6=function(){document.removeEventListener("focusin",hT),document.removeEventListener("focusout",jv),window.removeEventListener("focus",pT),window.removeEventListener("blur",mT)};function m6(e){return e.filter(function(t){var n=t.disabled;return!n})}var gT={moveFocusInside:aT,focusInside:iT,focusNextElement:XB,focusPrevElement:ZB,focusFirstElement:JB,focusLastElement:e6,captureFocusRestore:lT};function g6(e){var t=e.slice(-1)[0];t&&!Ba&&h6();var n=Ba,o=n&&t&&t.id===n.id;Ba=t,n&&!o&&(n.onDeactivation(),e.filter(function(s){var a=s.id;return a===n.id}).length||n.returnFocus(!t)),t?(Xn=null,(!o||n.observed!==t.observed)&&t.onActivation(gT),kf(),Av(kf)):(p6(),Xn=null)}KE.assignSyncMedium(d6);GE.assignMedium(jv);cB.assignMedium(function(e){return e(gT)});const y6=vB(m6,g6)(f6);var Ug=C.forwardRef(function(t,n){return Le.createElement(xv,Es({sideCar:y6,ref:n},t))}),yT=xv.propTypes||{};yT.sideCar;Z3(yT,["sideCar"]);Ug.propTypes={};const v6=Ug.default??Ug,vT=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:o,restoreFocus:s,children:a,isDisabled:u,autoFocus:c,persistentFocus:f,lockFocusAcrossFrames:p}=e,h=C.useCallback(()=>{t!=null&&t.current?t.current.focus():o!=null&&o.current&&lA(o.current).length===0&&requestAnimationFrame(()=>{var x;(x=o.current)==null||x.focus()})},[t,o]),g=C.useCallback(()=>{var k;(k=n==null?void 0:n.current)==null||k.focus()},[n]),v=s&&!n;return b.jsx(v6,{crossFrame:p,persistentFocus:f,autoFocus:c,disabled:u,onActivation:h,onDeactivation:g,returnFocus:v,children:a})};vT.displayName="FocusLock";const[b6,S6]=yn({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormError />" `}),ba=Me((e,t)=>{const n=ao("FormError",e),o=Gt(e),s=js();return s!=null&&s.isInvalid?b.jsx(b6,{value:n,children:b.jsx(ge.div,{...s==null?void 0:s.getErrorMessageProps(o,t),className:Ue("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})}):null});ba.displayName="FormErrorMessage";const x6=Me((e,t)=>{const n=S6(),o=js();if(!(o!=null&&o.isInvalid))return null;const s=Ue("chakra-form__error-icon",e.className);return b.jsx(Li,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:s,children:b.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"})})});x6.displayName="FormErrorIcon";const Dr=Me(function(t,n){const o=so("FormLabel",t),s=Gt(t),{className:a,children:u,requiredIndicator:c=b.jsx(bT,{}),optionalIndicator:f=null,...p}=s,h=js(),g=(h==null?void 0:h.getLabelProps(p,n))??{ref:n,...p};return b.jsxs(ge.label,{...g,className:Ue("chakra-form__label",s.className),__css:{display:"block",textAlign:"start",...o},children:[u,h!=null&&h.isRequired?c:f]})});Dr.displayName="FormLabel";const bT=Me(function(t,n){const o=js(),s=DE();if(!(o!=null&&o.isRequired))return null;const a=Ue("chakra-form__required-indicator",t.className);return b.jsx(ge.span,{...o==null?void 0:o.getRequiredIndicatorProps(t,n),__css:s.requiredIndicator,className:a})});bT.displayName="RequiredIndicator";const ST=Me(function(t,n){const{templateAreas:o,gap:s,rowGap:a,columnGap:u,column:c,row:f,autoFlow:p,autoRows:h,templateRows:g,autoColumns:v,templateColumns:k,...x}=t,S={display:"grid",gridTemplateAreas:o,gridGap:s,gridRowGap:a,gridColumnGap:u,gridAutoColumns:v,gridColumn:c,gridRow:f,gridAutoFlow:p,gridAutoRows:h,gridTemplateRows:g,gridTemplateColumns:k};return b.jsx(ge.div,{ref:n,__css:S,...x})});ST.displayName="Grid";const xT=Me(function(t,n){const{columns:o,spacingX:s,spacingY:a,spacing:u,minChildWidth:c,...f}=t,p=_E(),h=c?C6(c,p):k6(o);return b.jsx(ST,{ref:n,gap:u,columnGap:s,rowGap:a,templateColumns:h,...f})});xT.displayName="SimpleGrid";function w6(e){return typeof e=="number"?`${e}px`:e}function C6(e,t){return fy(e,n=>{const o=n3("sizes",n,w6(n))(t);return n===null?null:`repeat(auto-fit, minmax(${o}, 1fr))`})}function k6(e){return fy(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}const Wg=Me(function(t,n){const{htmlWidth:o,htmlHeight:s,alt:a,...u}=t;return b.jsx("img",{width:o,height:s,ref:n,alt:a,...u})});Wg.displayName="NativeImage";const Mv=Me(function(t,n){const{fallbackSrc:o,fallback:s,src:a,srcSet:u,align:c,fit:f,loading:p,ignoreFallback:h,crossOrigin:g,fallbackStrategy:v="beforeLoadOrError",referrerPolicy:k,...x}=t,S=o!==void 0||s!==void 0,w=p!=null||h||!S,T=P3({...t,crossOrigin:g,ignoreFallback:w}),A=R3(T,v),_={ref:n,objectFit:f,objectPosition:c,...w?x:dy(x,["onError","onLoad"])};return A?s||b.jsx(ge.img,{as:Wg,className:"chakra-image__placeholder",src:o,..._}):b.jsx(ge.img,{as:Wg,src:a,srcSet:u,crossOrigin:g,loading:p,referrerPolicy:k,className:"chakra-image",..._})});Mv.displayName="Image";const oo=Me(function(t,n){const{htmlSize:o,...s}=t,a=ao("Input",s),u=Gt(s),c=FE(u),f=Ue("chakra-input",t.className);return b.jsx(ge.input,{size:o,...c,__css:a.field,ref:n,className:f})});oo.displayName="Input";oo.id="Input";const Ua=Me(function(t,n){const o=so("Link",t),{className:s,isExternal:a,...u}=Gt(t);return b.jsx(ge.a,{target:a?"_blank":void 0,rel:a?"noopener":void 0,ref:n,className:Ue("chakra-link",s),...u,__css:o})});Ua.displayName="Link";var E6=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ga=new WeakMap,_d=new WeakMap,Pd={},Nm=0,wT=function(e){return e&&(e.host||wT(e.parentNode))},T6=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=wT(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},_6=function(e,t,n,o){var s=T6(t,Array.isArray(e)?e:[e]);Pd[n]||(Pd[n]=new WeakMap);var a=Pd[n],u=[],c=new Set,f=new Set(s),p=function(g){!g||c.has(g)||(c.add(g),p(g.parentNode))};s.forEach(p);var h=function(g){!g||f.has(g)||Array.prototype.forEach.call(g.children,function(v){if(c.has(v))h(v);else try{var k=v.getAttribute(o),x=k!==null&&k!=="false",S=(ga.get(v)||0)+1,w=(a.get(v)||0)+1;ga.set(v,S),a.set(v,w),u.push(v),S===1&&x&&_d.set(v,!0),w===1&&v.setAttribute(n,"true"),x||v.setAttribute(o,"true")}catch(T){console.error("aria-hidden: cannot operate on ",v,T)}})};return h(t),c.clear(),Nm++,function(){u.forEach(function(g){var v=ga.get(g)-1,k=a.get(g)-1;ga.set(g,v),a.set(g,k),v||(_d.has(g)||g.removeAttribute(o),_d.delete(g)),k||g.removeAttribute(n)}),Nm--,Nm||(ga=new WeakMap,ga=new WeakMap,_d=new WeakMap,Pd={})}},P6=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),s=E6(e);return s?(o.push.apply(o,Array.from(s.querySelectorAll("[aria-live], script"))),_6(o,s,n,"aria-hidden")):function(){return null}},R6=Object.defineProperty,A6=(e,t,n)=>t in e?R6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O6=(e,t,n)=>(A6(e,t+"",n),n);class j6{constructor(){O6(this,"modals"),this.modals=new Set}add(t){return this.modals.add(t),this.modals.size}remove(t){this.modals.delete(t)}isTopModal(t){if(!t)return!1;const n=Array.from(this.modals)[this.modals.size-1];return t===n}}const Hg=new j6;function CT(e,t){const[n,o]=C.useState(0);return C.useEffect(()=>{const s=e.current;if(s){if(t){const a=Hg.add(s);o(a)}return()=>{Hg.remove(s),o(0)}}},[t,e]),n}function M6(e){const{isOpen:t,onClose:n,id:o,closeOnOverlayClick:s=!0,closeOnEsc:a=!0,useInert:u=!0,onOverlayClick:c,onEsc:f}=e,p=C.useRef(null),h=C.useRef(null),[g,v,k]=N6(o,"chakra-modal","chakra-modal--header","chakra-modal--body");I6(p,t&&u);const x=CT(p,t),S=C.useRef(null),w=C.useCallback(X=>{S.current=X.target},[]),T=C.useCallback(X=>{X.key==="Escape"&&(X.stopPropagation(),a&&(n==null||n()),f==null||f())},[a,n,f]),[A,_]=C.useState(!1),[N,R]=C.useState(!1),F=C.useCallback((X={},ne=null)=>({role:"dialog",...X,ref:io(ne,p),id:g,tabIndex:-1,"aria-modal":!0,"aria-labelledby":A?v:void 0,"aria-describedby":N?k:void 0,onClick:Ke(X.onClick,ee=>ee.stopPropagation())}),[k,N,g,v,A]),D=C.useCallback(X=>{X.stopPropagation(),S.current===X.target&&Hg.isTopModal(p.current)&&(s&&(n==null||n()),c==null||c())},[n,s,c]),U=C.useCallback((X={},ne=null)=>({...X,ref:io(ne,h),onClick:Ke(X.onClick,D),onKeyDown:Ke(X.onKeyDown,T),onMouseDown:Ke(X.onMouseDown,w)}),[T,w,D]);return{isOpen:t,onClose:n,headerId:v,bodyId:k,setBodyMounted:R,setHeaderMounted:_,dialogRef:p,overlayRef:h,getDialogProps:F,getDialogContainerProps:U,index:x}}function I6(e,t){const n=e.current;C.useEffect(()=>{if(!(!e.current||!t))return P6(e.current)},[t,e,n])}function N6(e,...t){const n=C.useId(),o=e||n;return C.useMemo(()=>t.map(s=>`${s}-${o}`),[o,t])}const[D6,tc]=yn({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[F6,Ps]=yn({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),kT=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:e.lockFocusAcrossFrames??!0},{portalProps:n,children:o,autoFocus:s,trapFocus:a,initialFocusRef:u,finalFocusRef:c,returnFocusOnClose:f,blockScrollOnMount:p,allowPinchZoom:h,preserveScrollBarGap:g,motionPreset:v,lockFocusAcrossFrames:k,animatePresenceProps:x,onCloseComplete:S}=t,w=ao("Modal",t),A={...M6(t),autoFocus:s,trapFocus:a,initialFocusRef:u,finalFocusRef:c,returnFocusOnClose:f,blockScrollOnMount:p,allowPinchZoom:h,preserveScrollBarGap:g,motionPreset:v,lockFocusAcrossFrames:k};return b.jsx(F6,{value:A,children:b.jsx(D6,{value:w,children:b.jsx(ol,{...x,onExitComplete:S,children:A.isOpen&&b.jsx(Ju,{...n,children:o})})})})};kT.displayName="Modal";var tf="right-scroll-bar-position",nf="width-before-scroll-bar",L6="with-scroll-bars-hidden",z6="--removed-body-scroll-bar-size",ET=HE(),Dm=function(){},Kf=C.forwardRef(function(e,t){var n=C.useRef(null),o=C.useState({onScrollCapture:Dm,onWheelCapture:Dm,onTouchMoveCapture:Dm}),s=o[0],a=o[1],u=e.forwardProps,c=e.children,f=e.className,p=e.removeScrollBar,h=e.enabled,g=e.shards,v=e.sideCar,k=e.noRelative,x=e.noIsolation,S=e.inert,w=e.allowPinchZoom,T=e.as,A=T===void 0?"div":T,_=e.gapMode,N=VE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=v,F=BE([n,t]),D=_o(_o({},N),s);return C.createElement(C.Fragment,null,h&&C.createElement(R,{sideCar:ET,removeScrollBar:p,shards:g,noRelative:k,noIsolation:x,inert:S,setCallbacks:a,allowPinchZoom:!!w,lockRef:n,gapMode:_}),u?C.cloneElement(C.Children.only(c),_o(_o({},D),{ref:F})):C.createElement(A,_o({},D,{className:f,ref:F}),c))});Kf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Kf.classNames={fullWidth:nf,zeroRight:tf};var $6=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function B6(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=$6();return t&&e.setAttribute("nonce",t),e}function V6(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function U6(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var W6=function(){var e=0,t=null;return{add:function(n){e==0&&(t=B6())&&(V6(t,n),U6(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},H6=function(){var e=W6();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},TT=function(){var e=H6(),t=function(n){var o=n.styles,s=n.dynamic;return e(o,s),null};return t},q6={left:0,top:0,right:0,gap:0},Fm=function(e){return parseInt(e||"",10)||0},K6=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Fm(n),Fm(o),Fm(s)]},G6=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return q6;var t=K6(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Q6=TT(),Wa="data-scroll-locked",Y6=function(e,t,n,o){var s=e.left,a=e.top,u=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
||
.`.concat(L6,` {
|
||
overflow: hidden `).concat(o,`;
|
||
padding-right: `).concat(c,"px ").concat(o,`;
|
||
}
|
||
body[`).concat(Wa,`] {
|
||
overflow: hidden `).concat(o,`;
|
||
overscroll-behavior: contain;
|
||
`).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
|
||
padding-left: `.concat(s,`px;
|
||
padding-top: `).concat(a,`px;
|
||
padding-right: `).concat(u,`px;
|
||
margin-left:0;
|
||
margin-top:0;
|
||
margin-right: `).concat(c,"px ").concat(o,`;
|
||
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(o,";")].filter(Boolean).join(""),`
|
||
}
|
||
|
||
.`).concat(tf,` {
|
||
right: `).concat(c,"px ").concat(o,`;
|
||
}
|
||
|
||
.`).concat(nf,` {
|
||
margin-right: `).concat(c,"px ").concat(o,`;
|
||
}
|
||
|
||
.`).concat(tf," .").concat(tf,` {
|
||
right: 0 `).concat(o,`;
|
||
}
|
||
|
||
.`).concat(nf," .").concat(nf,` {
|
||
margin-right: 0 `).concat(o,`;
|
||
}
|
||
|
||
body[`).concat(Wa,`] {
|
||
`).concat(z6,": ").concat(c,`px;
|
||
}
|
||
`)},R1=function(){var e=parseInt(document.body.getAttribute(Wa)||"0",10);return isFinite(e)?e:0},X6=function(){C.useEffect(function(){return document.body.setAttribute(Wa,(R1()+1).toString()),function(){var e=R1()-1;e<=0?document.body.removeAttribute(Wa):document.body.setAttribute(Wa,e.toString())}},[])},Z6=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,s=o===void 0?"margin":o;X6();var a=C.useMemo(function(){return G6(s)},[s]);return C.createElement(Q6,{styles:Y6(a,!t,s,n?"":"!important")})},qg=!1;if(typeof window<"u")try{var Rd=Object.defineProperty({},"passive",{get:function(){return qg=!0,!0}});window.addEventListener("test",Rd,Rd),window.removeEventListener("test",Rd,Rd)}catch{qg=!1}var ya=qg?{passive:!1}:!1,J6=function(e){return e.tagName==="TEXTAREA"},_T=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!J6(e)&&n[t]==="visible")},eV=function(e){return _T(e,"overflowY")},tV=function(e){return _T(e,"overflowX")},A1=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var s=PT(e,o);if(s){var a=RT(e,o),u=a[1],c=a[2];if(u>c)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},nV=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},rV=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},PT=function(e,t){return e==="v"?eV(t):tV(t)},RT=function(e,t){return e==="v"?nV(t):rV(t)},oV=function(e,t){return e==="h"&&t==="rtl"?-1:1},iV=function(e,t,n,o,s){var a=oV(e,window.getComputedStyle(t).direction),u=a*o,c=n.target,f=t.contains(c),p=!1,h=u>0,g=0,v=0;do{if(!c)break;var k=RT(e,c),x=k[0],S=k[1],w=k[2],T=S-w-a*x;(x||T)&&PT(e,c)&&(g+=T,v+=x);var A=c.parentNode;c=A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE?A.host:A}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(h&&Math.abs(g)<1||!h&&Math.abs(v)<1)&&(p=!0),p},Ad=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},O1=function(e){return[e.deltaX,e.deltaY]},j1=function(e){return e&&"current"in e?e.current:e},sV=function(e,t){return e[0]===t[0]&&e[1]===t[1]},aV=function(e){return`
|
||
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
`)},lV=0,va=[];function uV(e){var t=C.useRef([]),n=C.useRef([0,0]),o=C.useRef(),s=C.useState(lV++)[0],a=C.useState(TT)[0],u=C.useRef(e);C.useEffect(function(){u.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var S=lB([e.lockRef.current],(e.shards||[]).map(j1),!0).filter(Boolean);return S.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),S.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=C.useCallback(function(S,w){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!u.current.allowPinchZoom;var T=Ad(S),A=n.current,_="deltaX"in S?S.deltaX:A[0]-T[0],N="deltaY"in S?S.deltaY:A[1]-T[1],R,F=S.target,D=Math.abs(_)>Math.abs(N)?"h":"v";if("touches"in S&&D==="h"&&F.type==="range")return!1;var U=window.getSelection(),X=U&&U.anchorNode,ne=X?X===F||X.contains(F):!1;if(ne)return!1;var ee=A1(D,F);if(!ee)return!0;if(ee?R=D:(R=D==="v"?"h":"v",ee=A1(D,F)),!ee)return!1;if(!o.current&&"changedTouches"in S&&(_||N)&&(o.current=R),!R)return!0;var Ee=o.current||R;return iV(Ee,w,S,Ee==="h"?_:N)},[]),f=C.useCallback(function(S){var w=S;if(!(!va.length||va[va.length-1]!==a)){var T="deltaY"in w?O1(w):Ad(w),A=t.current.filter(function(R){return R.name===w.type&&(R.target===w.target||w.target===R.shadowParent)&&sV(R.delta,T)})[0];if(A&&A.should){w.cancelable&&w.preventDefault();return}if(!A){var _=(u.current.shards||[]).map(j1).filter(Boolean).filter(function(R){return R.contains(w.target)}),N=_.length>0?c(w,_[0]):!u.current.noIsolation;N&&w.cancelable&&w.preventDefault()}}},[]),p=C.useCallback(function(S,w,T,A){var _={name:S,delta:w,target:T,should:A,shadowParent:cV(T)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(N){return N!==_})},1)},[]),h=C.useCallback(function(S){n.current=Ad(S),o.current=void 0},[]),g=C.useCallback(function(S){p(S.type,O1(S),S.target,c(S,e.lockRef.current))},[]),v=C.useCallback(function(S){p(S.type,Ad(S),S.target,c(S,e.lockRef.current))},[]);C.useEffect(function(){return va.push(a),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",f,ya),document.addEventListener("touchmove",f,ya),document.addEventListener("touchstart",h,ya),function(){va=va.filter(function(S){return S!==a}),document.removeEventListener("wheel",f,ya),document.removeEventListener("touchmove",f,ya),document.removeEventListener("touchstart",h,ya)}},[]);var k=e.removeScrollBar,x=e.inert;return C.createElement(C.Fragment,null,x?C.createElement(a,{styles:aV(s)}):null,k?C.createElement(Z6,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function cV(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const dV=uB(ET,uV);var AT=C.forwardRef(function(e,t){return C.createElement(Kf,_o({},e,{ref:t,sideCar:dV}))});AT.classNames=Kf.classNames;function fV(e){const{autoFocus:t,trapFocus:n,dialogRef:o,initialFocusRef:s,blockScrollOnMount:a,allowPinchZoom:u,finalFocusRef:c,returnFocusOnClose:f,preserveScrollBarGap:p,lockFocusAcrossFrames:h,isOpen:g}=Ps(),[v,k]=ev();C.useEffect(()=>{!v&&k&&setTimeout(k)},[v,k]);const x=CT(o,g);return b.jsx(vT,{autoFocus:t,isDisabled:!n,initialFocusRef:s,finalFocusRef:c,restoreFocus:f,contentRef:o,lockFocusAcrossFrames:h,children:b.jsx(AT,{removeScrollBar:!p,allowPinchZoom:u,enabled:x===1&&a,forwardProps:!0,children:e.children})})}const hV={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:o,delay:s})=>({opacity:0,x:e,y:t,transition:(n==null?void 0:n.exit)??Jo.exit(xs.exit,s),transitionEnd:o==null?void 0:o.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:(e==null?void 0:e.enter)??Jo.enter(xs.enter,n),transitionEnd:t==null?void 0:t.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:o,reverse:s,delay:a})=>{const u={x:t,y:e};return{opacity:0,transition:(n==null?void 0:n.exit)??Jo.exit(xs.exit,a),...s?{...u,transitionEnd:o==null?void 0:o.exit}:{transitionEnd:{...u,...o==null?void 0:o.exit}}}}},fu={initial:"initial",animate:"enter",exit:"exit",variants:hV},pV=C.forwardRef(function(t,n){const{unmountOnExit:o,in:s,reverse:a=!0,className:u,offsetX:c=0,offsetY:f=8,transition:p,transitionEnd:h,delay:g,animatePresenceProps:v,...k}=t,x=o?s&&o:!0,S=s||o?"enter":"exit",w={offsetX:c,offsetY:f,reverse:a,transition:p,transitionEnd:h,delay:g};return b.jsx(ol,{...v,custom:w,children:x&&b.jsx(Os.div,{ref:n,className:Ue("chakra-offset-slide",u),custom:w,...fu,animate:S,...k})})});pV.displayName="SlideFade";const mV={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:o,delay:s})=>({opacity:0,...e?{scale:t,transitionEnd:o==null?void 0:o.exit}:{transitionEnd:{scale:t,...o==null?void 0:o.exit}},transition:(n==null?void 0:n.exit)??Jo.exit(xs.exit,s)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:(t==null?void 0:t.enter)??Jo.enter(xs.enter,n),transitionEnd:e==null?void 0:e.enter})},OT={initial:"exit",animate:"enter",exit:"exit",variants:mV},gV=C.forwardRef(function(t,n){const{unmountOnExit:o,in:s,reverse:a=!0,initialScale:u=.95,className:c,transition:f,transitionEnd:p,delay:h,animatePresenceProps:g,...v}=t,k=o?s&&o:!0,x=s||o?"enter":"exit",S={initialScale:u,reverse:a,transition:f,transitionEnd:p,delay:h};return b.jsx(ol,{...g,custom:S,children:k&&b.jsx(Os.div,{ref:n,className:Ue("chakra-offset-slide",c),...OT,animate:x,custom:S,...v})})});gV.displayName="ScaleFade";const yV={slideInBottom:{...fu,custom:{offsetY:16,reverse:!0}},slideInRight:{...fu,custom:{offsetX:16,reverse:!0}},slideInTop:{...fu,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...fu,custom:{offsetX:-16,reverse:!0}},scale:{...OT,custom:{initialScale:.95,reverse:!0}},none:{}},vV=ge(Os.section),bV=e=>yV[e||"none"],jT=C.forwardRef((e,t)=>{const{preset:n,motionProps:o=bV(n),...s}=e;return b.jsx(vV,{ref:t,...o,...s})});jT.displayName="ModalTransition";const MT=Me((e,t)=>{const{className:n,children:o,containerProps:s,motionProps:a,...u}=e,{getDialogProps:c,getDialogContainerProps:f}=Ps(),p=c(u,t),h=f(s),g=Ue("chakra-modal__content",n),v=tc(),k={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...v.dialog},x={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...v.dialogContainer},{motionPreset:S}=Ps();return b.jsx(fV,{children:b.jsx(ge.div,{...h,className:"chakra-modal__content-container",tabIndex:-1,__css:x,children:b.jsx(jT,{preset:S,motionProps:a,className:g,...p,__css:k,children:o})})})});MT.displayName="ModalContent";const IT=Me((e,t)=>{const{className:n,...o}=e,{bodyId:s,setBodyMounted:a}=Ps();C.useEffect(()=>(a(!0),()=>a(!1)),[a]);const u=Ue("chakra-modal__body",n),c=tc();return b.jsx(ge.div,{ref:t,className:u,id:s,...o,__css:c.body})});IT.displayName="ModalBody";const NT=Me((e,t)=>{const{onClick:n,className:o,...s}=e,{onClose:a}=Ps(),u=Ue("chakra-modal__close-btn",o),c=tc();return b.jsx(gv,{ref:t,__css:c.closeButton,className:u,onClick:Ke(n,f=>{f.stopPropagation(),a()}),...s})});NT.displayName="ModalCloseButton";const DT=Me((e,t)=>{const{className:n,...o}=e,{headerId:s,setHeaderMounted:a}=Ps();C.useEffect(()=>(a(!0),()=>a(!1)),[a]);const u=Ue("chakra-modal__header",n),c=tc(),f={flex:0,...c.header};return b.jsx(ge.header,{ref:t,className:u,id:s,...o,__css:f})});DT.displayName="ModalHeader";const SV={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:(e==null?void 0:e.enter)??Jo.enter(xs.enter,n),transitionEnd:t==null?void 0:t.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:(e==null?void 0:e.exit)??Jo.exit(xs.exit,n),transitionEnd:t==null?void 0:t.exit})},FT={initial:"exit",animate:"enter",exit:"exit",variants:SV},xV=C.forwardRef(function(t,n){const{unmountOnExit:o,in:s,className:a,transition:u,transitionEnd:c,delay:f,animatePresenceProps:p,...h}=t,g=s||o?"enter":"exit",v=o?s&&o:!0,k={transition:u,transitionEnd:c,delay:f};return b.jsx(ol,{...p,custom:k,children:v&&b.jsx(Os.div,{ref:n,className:Ue("chakra-fade",a),custom:k,...FT,animate:g,...h})})});xV.displayName="Fade";const wV=ge(Os.div),LT=Me((e,t)=>{const{className:n,transition:o,motionProps:s,...a}=e,u=Ue("chakra-modal__overlay",n),f={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...tc().overlay},{motionPreset:p}=Ps(),g=s||(p==="none"?{}:FT);return b.jsx(wV,{...g,__css:f,ref:t,className:u,...a})});LT.displayName="ModalOverlay";const CV=e=>b.jsx(Li,{viewBox:"0 0 24 24",...e,children:b.jsx("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),kV=e=>b.jsx(Li,{viewBox:"0 0 24 24",...e,children:b.jsx("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function M1(e,t,n,o){C.useEffect(()=>{if(!e.current||!o)return;const s=e.current.ownerDocument.defaultView??window,a=Array.isArray(t)?t:[t],u=new s.MutationObserver(c=>{for(const f of c)f.type==="attributes"&&f.attributeName&&a.includes(f.attributeName)&&n(f)});return u.observe(e.current,{attributes:!0,attributeFilter:a}),()=>u.disconnect()})}const EV=50,I1=300;function TV(e,t){const[n,o]=C.useState(!1),[s,a]=C.useState(null),[u,c]=C.useState(!0),f=C.useRef(null),p=()=>clearTimeout(f.current);xA(()=>{s==="increment"&&e(),s==="decrement"&&t()},n?EV:null);const h=C.useCallback(()=>{u&&e(),f.current=setTimeout(()=>{c(!1),o(!0),a("increment")},I1)},[e,u]),g=C.useCallback(()=>{u&&t(),f.current=setTimeout(()=>{c(!1),o(!0),a("decrement")},I1)},[t,u]),v=C.useCallback(()=>{c(!0),o(!1),p()},[]);return C.useEffect(()=>()=>p(),[]),{up:h,down:g,stop:v,isSpinning:n}}const _V=/^[Ee0-9+\-.]$/;function PV(e){return _V.test(e)}function RV(e,t){if(e.key==null)return!0;const n=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||n?!0:t(e.key)}function AV(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:o=!0,min:s=Number.MIN_SAFE_INTEGER,max:a=Number.MAX_SAFE_INTEGER,step:u=1,isReadOnly:c,isDisabled:f,isRequired:p,isInvalid:h,pattern:g="[0-9]*(.[0-9]+)?",inputMode:v="decimal",allowMouseWheel:k,id:x,onChange:S,precision:w,name:T,"aria-describedby":A,"aria-label":_,"aria-labelledby":N,onFocus:R,onBlur:F,onInvalid:D,getAriaValueText:U,isValidCharacter:X,format:ne,parse:ee,...Ee}=e,Te=Fr(R),xe=Fr(F),ke=Fr(D),_e=Fr(X??PV),ue=Fr(U),B=SA(e),{update:se,increment:Q,decrement:j}=B,[q,Y]=C.useState(!1),ae=!(c||f),le=C.useRef(null),Se=C.useRef(null),ze=C.useRef(null),Pe=C.useRef(null),Be=C.useCallback(ie=>ie.split("").filter(_e).join(""),[_e]),we=C.useCallback(ie=>(ee==null?void 0:ee(ie))??ie,[ee]),ut=C.useCallback(ie=>((ne==null?void 0:ne(ie))??ie).toString(),[ne]);ff(()=>{(B.valueAsNumber>a||B.valueAsNumber<s)&&(ke==null||ke("rangeOverflow",ut(B.value),B.valueAsNumber))},[B.valueAsNumber,B.value,ut,ke]),ji(()=>{if(!le.current)return;if(le.current.value!=B.value){const Xe=we(le.current.value);B.setValue(Be(Xe))}},[we,Be]);const Nt=C.useCallback((ie=u)=>{ae&&Q(ie)},[Q,ae,u]),Dt=C.useCallback((ie=u)=>{ae&&j(ie)},[j,ae,u]),de=TV(Nt,Dt);M1(ze,"disabled",de.stop,de.isSpinning),M1(Pe,"disabled",de.stop,de.isSpinning);const at=C.useCallback(ie=>{if(ie.nativeEvent.isComposing)return;const gt=we(ie.currentTarget.value);se(Be(gt)),Se.current={start:ie.currentTarget.selectionStart,end:ie.currentTarget.selectionEnd}},[se,Be,we]),Ye=C.useCallback(ie=>{var Xe;Te==null||Te(ie),Se.current&&(ie.currentTarget.selectionStart=Se.current.start??((Xe=ie.currentTarget.value)==null?void 0:Xe.length),ie.currentTarget.selectionEnd=Se.current.end??ie.currentTarget.selectionStart)},[Te]),St=C.useCallback(ie=>{if(ie.nativeEvent.isComposing)return;RV(ie,_e)||ie.preventDefault();const Xe=Ft(ie)*u,gt=ie.key,ar={ArrowUp:()=>Nt(Xe),ArrowDown:()=>Dt(Xe),Home:()=>se(s),End:()=>se(a)}[gt];ar&&(ie.preventDefault(),ar(ie))},[_e,u,Nt,Dt,se,s,a]),Ft=ie=>{let Xe=1;return(ie.metaKey||ie.ctrlKey)&&(Xe=.1),ie.shiftKey&&(Xe=10),Xe},Lt=C.useMemo(()=>{const ie=ue==null?void 0:ue(B.value);if(ie!=null)return ie;const Xe=B.value.toString();return Xe||void 0},[B.value,ue]),zt=C.useCallback(()=>{let ie=B.value;if(B.value==="")return;/^[eE]/.test(B.value.toString())?B.setValue(""):(B.valueAsNumber<s&&(ie=s),B.valueAsNumber>a&&(ie=a),B.cast(ie))},[B,a,s]),vn=C.useCallback(()=>{Y(!1),n&&zt()},[n,Y,zt]),bn=C.useCallback(()=>{t&&requestAnimationFrame(()=>{var ie;(ie=le.current)==null||ie.focus()})},[t]),Sn=C.useCallback(ie=>{ie.preventDefault(),de.up(),bn()},[bn,de]),br=C.useCallback(ie=>{ie.preventDefault(),de.down(),bn()},[bn,de]);bA(()=>le.current,"wheel",ie=>{var Sr;const gt=(((Sr=le.current)==null?void 0:Sr.ownerDocument)??document).activeElement===le.current;if(!k||!gt)return;ie.preventDefault();const At=Ft(ie)*u,ar=Math.sign(ie.deltaY);ar===-1?Nt(At):ar===1&&Dt(At)},{passive:!1});const ir=C.useCallback((ie={},Xe=null)=>{const gt=f||o&&B.isAtMax;return{...ie,ref:io(Xe,ze),role:"button",tabIndex:-1,onPointerDown:Ke(ie.onPointerDown,At=>{At.button!==0||gt||Sn(At)}),onPointerLeave:Ke(ie.onPointerLeave,de.stop),onPointerUp:Ke(ie.onPointerUp,de.stop),disabled:gt,"aria-disabled":Xo(gt)}},[B.isAtMax,o,Sn,de.stop,f]),sr=C.useCallback((ie={},Xe=null)=>{const gt=f||o&&B.isAtMin;return{...ie,ref:io(Xe,Pe),role:"button",tabIndex:-1,onPointerDown:Ke(ie.onPointerDown,At=>{At.button!==0||gt||br(At)}),onPointerLeave:Ke(ie.onPointerLeave,de.stop),onPointerUp:Ke(ie.onPointerUp,de.stop),disabled:gt,"aria-disabled":Xo(gt)}},[B.isAtMin,o,br,de.stop,f]),rn=C.useCallback((ie={},Xe=null)=>({name:T,inputMode:v,type:"text",pattern:g,"aria-labelledby":N,"aria-label":_,"aria-describedby":A,id:x,disabled:f,role:"spinbutton",...ie,readOnly:ie.readOnly??c,"aria-readonly":ie.readOnly??c,"aria-required":ie.required??p,required:ie.required??p,ref:io(le,Xe),value:ut(B.value),"aria-valuemin":s,"aria-valuemax":a,"aria-valuenow":Number.isNaN(B.valueAsNumber)?void 0:B.valueAsNumber,"aria-invalid":Xo(h??B.isOutOfRange),"aria-valuetext":Lt,autoComplete:"off",autoCorrect:"off",onChange:Ke(ie.onChange,at),onKeyDown:Ke(ie.onKeyDown,St),onFocus:Ke(ie.onFocus,Ye,()=>Y(!0)),onBlur:Ke(ie.onBlur,xe,vn)}),[T,v,g,N,_,ut,A,x,f,p,c,h,B.value,B.valueAsNumber,B.isOutOfRange,s,a,Lt,at,St,Ye,xe,vn]);return{value:ut(B.value),valueAsNumber:B.valueAsNumber,isFocused:q,isDisabled:f,isReadOnly:c,getIncrementButtonProps:ir,getDecrementButtonProps:sr,getInputProps:rn,htmlProps:Ee}}const[OV,Gf]=yn({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "<NumberInput />" `}),[jV,Iv]=yn({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),zT=Me(function(t,n){const o=ao("NumberInput",t),s=Gt(t),a=bv(s),{htmlProps:u,...c}=AV(a),f=C.useMemo(()=>c,[c]);return b.jsx(jV,{value:f,children:b.jsx(OV,{value:o,children:b.jsx(ge.div,{...u,ref:n,className:Ue("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...o.root}})})})});zT.displayName="NumberInput";const MV=Me(function(t,n){const o=Gf();return b.jsx(ge.div,{"aria-hidden":!0,ref:n,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...o.stepperGroup}})});MV.displayName="NumberInputStepper";const $T=Me(function(t,n){const{getInputProps:o}=Iv(),s=o(t,n),a=Gf();return b.jsx(ge.input,{...s,className:Ue("chakra-numberinput__field",t.className),__css:{width:"100%",...a.field}})});$T.displayName="NumberInputField";const BT=ge("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),IV=Me(function(t,n){const o=Gf(),{getDecrementButtonProps:s}=Iv(),a=s(t,n);return b.jsx(BT,{...a,__css:o.stepper,children:t.children??b.jsx(CV,{})})});IV.displayName="NumberDecrementStepper";const NV=Me(function(t,n){const{getIncrementButtonProps:o}=Iv(),s=o(t,n),a=Gf();return b.jsx(BT,{...s,__css:a.stepper,children:t.children??b.jsx(kV,{})})});NV.displayName="NumberIncrementStepper";function DV(e){return e&&gn(e)&&gn(e.target)}function FV(e={}){const{onChange:t,value:n,defaultValue:o,name:s,isDisabled:a,isFocusable:u,isNative:c,...f}=e,[p,h]=C.useState(o||""),g=typeof n<"u",v=g?n:p,k=C.useRef(null),x=C.useCallback(()=>{const R=k.current;if(!R)return;let F="input:not(:disabled):checked";const D=R.querySelector(F);if(D){D.focus();return}F="input:not(:disabled)";const U=R.querySelector(F);U==null||U.focus()},[]),w=`radio-${C.useId()}`,T=s||w,A=C.useCallback(R=>{const F=DV(R)?R.target.value:R;g||h(F),t==null||t(String(F))},[t,g]),_=C.useCallback((R={},F=null)=>({...R,ref:io(F,k),role:"radiogroup"}),[]),N=C.useCallback((R={},F=null)=>({...R,ref:F,name:T,[c?"checked":"isChecked"]:v!=null?R.value===v:void 0,onChange(U){A(U)},"data-radiogroup":!0}),[c,T,A,v]);return{getRootProps:_,getRadioProps:N,name:T,ref:k,focus:x,setValue:h,value:v,onChange:A,isDisabled:a,isFocusable:u,htmlProps:f}}const[LV,VT]=yn({name:"RadioGroupContext",strict:!1}),UT=Me((e,t)=>{const{colorScheme:n,size:o,variant:s,children:a,className:u,isDisabled:c,isFocusable:f,...p}=e,{value:h,onChange:g,getRootProps:v,name:k,htmlProps:x}=FV(p),S=C.useMemo(()=>({name:k,size:o,onChange:g,colorScheme:n,value:h,variant:s,isDisabled:c,isFocusable:f}),[k,o,g,n,h,s,c,f]);return b.jsx(LV,{value:S,children:b.jsx(ge.div,{...v(x,t),className:Ue("chakra-radio-group",u),children:a})})});UT.displayName="RadioGroup";function zV(e={}){const{defaultChecked:t,isChecked:n,isFocusable:o,isDisabled:s,isReadOnly:a,isRequired:u,onChange:c,isInvalid:f,name:p,value:h,id:g,"data-radiogroup":v,"aria-describedby":k,...x}=e,S=`radio-${C.useId()}`,w=js(),A=!!VT()||!!v;let N=!!w&&!A?w.id:S;N=g??N;const R=s??(w==null?void 0:w.isDisabled),F=a??(w==null?void 0:w.isReadOnly),D=u??(w==null?void 0:w.isRequired),U=f??(w==null?void 0:w.isInvalid),[X,ne]=C.useState(!1),[ee,Ee]=C.useState(!1),[Te,xe]=C.useState(!1),[ke,_e]=C.useState(!!t),ue=typeof n<"u",B=ue?n:ke,se=C.useRef(!1);C.useEffect(()=>NE(we=>{se.current=we}),[]);const Q=C.useCallback(we=>{if(F||R){we.preventDefault();return}ue||_e(we.currentTarget.checked),c==null||c(we)},[ue,R,F,c]),j=C.useCallback(we=>{we.key===" "&&xe(!0)},[xe]),q=C.useCallback(we=>{we.key===" "&&xe(!1)},[xe]),Y=C.useCallback((we={},ut=null)=>({...we,ref:ut,"data-active":Ie(Te),"data-hover":Ie(ee),"data-disabled":Ie(R),"data-invalid":Ie(U),"data-checked":Ie(B),"data-focus":Ie(X),"data-focus-visible":Ie(X&&se.current),"data-readonly":Ie(F),"aria-hidden":!0,onMouseDown:Ke(we.onMouseDown,()=>xe(!0)),onMouseUp:Ke(we.onMouseUp,()=>xe(!1)),onMouseEnter:Ke(we.onMouseEnter,()=>Ee(!0)),onMouseLeave:Ke(we.onMouseLeave,()=>Ee(!1))}),[Te,ee,R,U,B,X,F]),{onFocus:ae,onBlur:le}=w??{},Se=C.useCallback((we={},ut=null)=>{const Nt=R&&!o;return{...we,id:N,ref:ut,type:"radio",name:p,value:h,onChange:Ke(we.onChange,Q),onBlur:Ke(le,we.onBlur,()=>ne(!1)),onFocus:Ke(ae,we.onFocus,()=>ne(!0)),onKeyDown:Ke(we.onKeyDown,j),onKeyUp:Ke(we.onKeyUp,q),checked:B,disabled:Nt,readOnly:F,required:D,"aria-invalid":Xo(U),"aria-disabled":Xo(Nt),"aria-required":Xo(D),"data-readonly":Ie(F),"aria-describedby":k,style:LE}},[R,o,N,p,h,Q,le,ae,j,q,B,F,D,U,k]);return{state:{isInvalid:U,isFocused:X,isChecked:B,isActive:Te,isHovered:ee,isDisabled:R,isReadOnly:F,isRequired:D},getRadioProps:Y,getInputProps:Se,getLabelProps:(we={},ut=null)=>({...we,ref:ut,onMouseDown:Ke(we.onMouseDown,$V),"data-disabled":Ie(R),"data-checked":Ie(B),"data-invalid":Ie(U)}),getRootProps:(we,ut=null)=>({htmlFor:N,...we,ref:ut,"data-disabled":Ie(R),"data-checked":Ie(B),"data-invalid":Ie(U)}),htmlProps:x}}function $V(e){e.preventDefault(),e.stopPropagation()}const WT=Me((e,t)=>{const n=VT(),{onChange:o,value:s}=e,a=ao("Radio",{...n,...e}),u=Gt(e),{spacing:c="0.5rem",children:f,isDisabled:p=n==null?void 0:n.isDisabled,isFocusable:h=n==null?void 0:n.isFocusable,inputProps:g,...v}=u;let k=e.isChecked;(n==null?void 0:n.value)!=null&&s!=null&&(k=n.value===s);let x=o;n!=null&&n.onChange&&s!=null&&(x=eA(n.onChange,o));const S=(e==null?void 0:e.name)??(n==null?void 0:n.name),{getInputProps:w,getRadioProps:T,getLabelProps:A,getRootProps:_,htmlProps:N}=zV({...v,isChecked:k,isFocusable:h,isDisabled:p,onChange:x,name:S}),[R,F]=aC(N,hC),D=T(F),U=w(g,t),X=A(),ne=Object.assign({},R,_()),ee={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...a.container},Ee={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...a.control},Te={userSelect:"none",marginStart:c,...a.label};return b.jsxs(ge.label,{className:"chakra-radio",...ne,__css:ee,children:[b.jsx("input",{className:"chakra-radio__input",...U}),b.jsx(ge.span,{className:"chakra-radio__control",...D,__css:Ee}),f&&b.jsx(ge.span,{className:"chakra-radio__label",...X,__css:Te,children:f})]})});WT.displayName="Radio";const HT=Me(function(t,n){const{children:o,placeholder:s,className:a,...u}=t;return b.jsxs(ge.select,{...u,ref:n,className:Ue("chakra-select",a),children:[s&&b.jsx("option",{value:"",children:s}),o]})});HT.displayName="SelectField";const Ef=Me((e,t)=>{var _;const n=ao("Select",e),{rootProps:o,placeholder:s,icon:a,color:u,height:c,h:f,minH:p,minHeight:h,iconColor:g,iconSize:v,...k}=Gt(e),[x,S]=aC(k,hC),w=FE(S),T={width:"100%",height:"fit-content",position:"relative",color:u},A={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...(_=n.field)==null?void 0:_._focus}};return b.jsxs(ge.div,{className:"chakra-select__wrapper",__css:T,...x,...o,children:[b.jsx(HT,{ref:t,height:f??c,minH:p??h,placeholder:s,...w,__css:A,children:e.children}),b.jsx(qT,{"data-disabled":Ie(w.disabled),...(g||u)&&{color:g||u},__css:n.icon,...v&&{fontSize:v},children:a})]})});Ef.displayName="Select";const BV=e=>b.jsx("svg",{viewBox:"0 0 24 24",...e,children:b.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),VV=ge("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),qT=e=>{const{children:t=b.jsx(BV,{}),...n}=e,o=C.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return b.jsx(VV,{...n,className:"chakra-select__icon-wrapper",children:C.isValidElement(t)?o:null})};qT.displayName="SelectIcon";const KT=ge("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});KT.displayName="Spacer";const GT=e=>b.jsx(ge.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});GT.displayName="StackItem";function UV(e){const{spacing:t,direction:n}=e,o={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{"&":fy(n,s=>o[s])}}const Qf=Me((e,t)=>{const{isInline:n,direction:o,align:s,justify:a,spacing:u="0.5rem",wrap:c,children:f,divider:p,className:h,shouldWrapChildren:g,...v}=e,k=n?"row":o??"column",x=C.useMemo(()=>UV({spacing:u,direction:k}),[u,k]),S=!!p,w=!g&&!S,T=C.useMemo(()=>{const _=tA(f);return w?_:_.map((N,R)=>{const F=typeof N.key<"u"?N.key:R,D=R+1===_.length,X=g?b.jsx(GT,{children:N},F):N;if(!S)return X;const ne=C.cloneElement(p,{__css:x}),ee=D?null:ne;return b.jsxs(C.Fragment,{children:[X,ee]},F)})},[p,x,S,w,g,f]),A=Ue("chakra-stack",h);return b.jsx(ge.div,{ref:t,display:"flex",alignItems:s,justifyContent:a,flexDirection:k,flexWrap:c,gap:S?void 0:u,className:A,...v,children:T})});Qf.displayName="Stack";const It=Me((e,t)=>b.jsx(Qf,{align:"center",...e,direction:"row",ref:t}));It.displayName="HStack";const tn=Me((e,t)=>b.jsx(Qf,{align:"center",...e,direction:"column",ref:t}));tn.displayName="VStack";const QT=Me(function(t,n){const o=ao("Switch",t),{spacing:s="0.5rem",children:a,...u}=Gt(t),{getIndicatorProps:c,getInputProps:f,getCheckboxProps:p,getRootProps:h,getLabelProps:g}=q3(u),v=C.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...o.container}),[o.container]),k=C.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...o.track}),[o.track]),x=C.useMemo(()=>({userSelect:"none",marginStart:s,...o.label}),[s,o.label]);return b.jsxs(ge.label,{...h(),className:Ue("chakra-switch",t.className),__css:v,children:[b.jsx("input",{className:"chakra-switch__input",...f({},n)}),b.jsx(ge.span,{...p(),className:"chakra-switch__track",__css:k,children:b.jsx(ge.span,{__css:o.thumb,className:"chakra-switch__thumb",...c()})}),a&&b.jsx(ge.span,{className:"chakra-switch__label",...g(),__css:x,children:a})]})});QT.displayName="Switch";const[WV,nc]=yn({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Table />" `}),YT=Me((e,t)=>{const n=ao("Table",e),{className:o,layout:s,...a}=Gt(e);return b.jsx(WV,{value:n,children:b.jsx(ge.table,{ref:t,__css:{tableLayout:s,...n.table},className:Ue("chakra-table",o),...a})})});YT.displayName="Table";const HV=Me((e,t)=>{const n=nc();return b.jsx(ge.tbody,{...e,ref:t,__css:n.tbody})}),Od=Me(({isNumeric:e,...t},n)=>{const o=nc();return b.jsx(ge.td,{...t,ref:n,__css:o.td,"data-is-numeric":e})}),jd=Me(({isNumeric:e,...t},n)=>{const o=nc();return b.jsx(ge.th,{...t,ref:n,__css:o.th,"data-is-numeric":e})}),qV=Me((e,t)=>{const n=nc();return b.jsx(ge.thead,{...e,ref:t,__css:n.thead})}),N1=Me((e,t)=>{const n=nc();return b.jsx(ge.tr,{...e,ref:t,__css:n.tr})});function KV(e,t){const n=e??"bottom",s={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return(s==null?void 0:s[t])??n}function GV(e,t){const n=s=>({...t,...s,position:KV((s==null?void 0:s.position)??(t==null?void 0:t.position),e)}),o=s=>{const a=n(s),u=OE(a);return To.notify(u,a)};return o.update=(s,a)=>{To.update(s,n(a))},o.promise=(s,a)=>{const u=o({...a.loading,status:"loading",duration:null});s.then(c=>o.update(u,{status:"success",duration:5e3,...Lr(a.success,c)})).catch(c=>o.update(u,{status:"error",duration:5e3,...Lr(a.error,c)}))},o.closeAll=To.closeAll,o.close=To.close,o.isActive=To.isActive,o}function rc(e){const{theme:t}=PE(),n=w3();return C.useMemo(()=>GV(t.direction,{...n,...e}),[e,t.direction,n])}const kt=Me(function(t,n){const o=so("Heading",t),{className:s,...a}=Gt(t);return b.jsx(ge.h2,{ref:n,className:Ue("chakra-heading",t.className),...a,__css:o})});kt.displayName="Heading";const Ce=Me(function(t,n){const o=so("Text",t),{className:s,align:a,decoration:u,casing:c,...f}=Gt(t),p=oC({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return b.jsx(ge.p,{ref:n,className:Ue("chakra-text",t.className),...p,...f,__css:o})});Ce.displayName="Text";/**
|
||
* @remix-run/router v1.23.2
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function Vu(){return Vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Vu.apply(this,arguments)}var Oi;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Oi||(Oi={}));const D1="popstate";function QV(e){e===void 0&&(e={});function t(o,s){let{pathname:a,search:u,hash:c}=o.location;return Kg("",{pathname:a,search:u,hash:c},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(o,s){return typeof s=="string"?s:Tf(s)}return XV(t,n,null,e)}function Kt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Nv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function YV(){return Math.random().toString(36).substr(2,8)}function F1(e,t){return{usr:e.state,key:e.key,idx:t}}function Kg(e,t,n,o){return n===void 0&&(n=null),Vu({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?il(t):t,{state:n,key:t&&t.key||o||YV()})}function Tf(e){let{pathname:t="/",search:n="",hash:o=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),o&&o!=="#"&&(t+=o.charAt(0)==="#"?o:"#"+o),t}function il(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}function XV(e,t,n,o){o===void 0&&(o={});let{window:s=document.defaultView,v5Compat:a=!1}=o,u=s.history,c=Oi.Pop,f=null,p=h();p==null&&(p=0,u.replaceState(Vu({},u.state,{idx:p}),""));function h(){return(u.state||{idx:null}).idx}function g(){c=Oi.Pop;let w=h(),T=w==null?null:w-p;p=w,f&&f({action:c,location:S.location,delta:T})}function v(w,T){c=Oi.Push;let A=Kg(S.location,w,T);p=h()+1;let _=F1(A,p),N=S.createHref(A);try{u.pushState(_,"",N)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;s.location.assign(N)}a&&f&&f({action:c,location:S.location,delta:1})}function k(w,T){c=Oi.Replace;let A=Kg(S.location,w,T);p=h();let _=F1(A,p),N=S.createHref(A);u.replaceState(_,"",N),a&&f&&f({action:c,location:S.location,delta:0})}function x(w){let T=s.location.origin!=="null"?s.location.origin:s.location.href,A=typeof w=="string"?w:Tf(w);return A=A.replace(/ $/,"%20"),Kt(T,"No window.location.(origin|href) available to create URL for href: "+A),new URL(A,T)}let S={get action(){return c},get location(){return e(s,u)},listen(w){if(f)throw new Error("A history only accepts one active listener");return s.addEventListener(D1,g),f=w,()=>{s.removeEventListener(D1,g),f=null}},createHref(w){return t(s,w)},createURL:x,encodeLocation(w){let T=x(w);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:v,replace:k,go(w){return u.go(w)}};return S}var L1;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(L1||(L1={}));function ZV(e,t,n){return n===void 0&&(n="/"),JV(e,t,n)}function JV(e,t,n,o){let s=typeof t=="string"?il(t):t,a=Dv(s.pathname||"/",n);if(a==null)return null;let u=XT(e);eU(u);let c=null;for(let f=0;c==null&&f<u.length;++f){let p=fU(a);c=uU(u[f],p)}return c}function XT(e,t,n,o){t===void 0&&(t=[]),n===void 0&&(n=[]),o===void 0&&(o="");let s=(a,u,c)=>{let f={relativePath:c===void 0?a.path||"":c,caseSensitive:a.caseSensitive===!0,childrenIndex:u,route:a};f.relativePath.startsWith("/")&&(Kt(f.relativePath.startsWith(o),'Absolute route path "'+f.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),f.relativePath=f.relativePath.slice(o.length));let p=Mi([o,f.relativePath]),h=n.concat(f);a.children&&a.children.length>0&&(Kt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),XT(a.children,t,h,p)),!(a.path==null&&!a.index)&&t.push({path:p,score:aU(p,a.index),routesMeta:h})};return e.forEach((a,u)=>{var c;if(a.path===""||!((c=a.path)!=null&&c.includes("?")))s(a,u);else for(let f of ZT(a.path))s(a,u,f)}),t}function ZT(e){let t=e.split("/");if(t.length===0)return[];let[n,...o]=t,s=n.endsWith("?"),a=n.replace(/\?$/,"");if(o.length===0)return s?[a,""]:[a];let u=ZT(o.join("/")),c=[];return c.push(...u.map(f=>f===""?a:[a,f].join("/"))),s&&c.push(...u),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function eU(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:lU(t.routesMeta.map(o=>o.childrenIndex),n.routesMeta.map(o=>o.childrenIndex)))}const tU=/^:[\w-]+$/,nU=3,rU=2,oU=1,iU=10,sU=-2,z1=e=>e==="*";function aU(e,t){let n=e.split("/"),o=n.length;return n.some(z1)&&(o+=sU),t&&(o+=rU),n.filter(s=>!z1(s)).reduce((s,a)=>s+(tU.test(a)?nU:a===""?oU:iU),o)}function lU(e,t){return e.length===t.length&&e.slice(0,-1).every((o,s)=>o===t[s])?e[e.length-1]-t[t.length-1]:0}function uU(e,t,n){let{routesMeta:o}=e,s={},a="/",u=[];for(let c=0;c<o.length;++c){let f=o[c],p=c===o.length-1,h=a==="/"?t:t.slice(a.length)||"/",g=cU({path:f.relativePath,caseSensitive:f.caseSensitive,end:p},h),v=f.route;if(!g)return null;Object.assign(s,g.params),u.push({params:s,pathname:Mi([a,g.pathname]),pathnameBase:yU(Mi([a,g.pathnameBase])),route:v}),g.pathnameBase!=="/"&&(a=Mi([a,g.pathnameBase]))}return u}function cU(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,o]=dU(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let a=s[0],u=a.replace(/(.)\/+$/,"$1"),c=s.slice(1);return{params:o.reduce((p,h,g)=>{let{paramName:v,isOptional:k}=h;if(v==="*"){let S=c[g]||"";u=a.slice(0,a.length-S.length).replace(/(.)\/+$/,"$1")}const x=c[g];return k&&!x?p[v]=void 0:p[v]=(x||"").replace(/%2F/g,"/"),p},{}),pathname:a,pathnameBase:u,pattern:e}}function dU(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Nv(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 o=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,c,f)=>(o.push({paramName:c,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(o.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),o]}function fU(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Nv(!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 Dv(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,o=e.charAt(n);return o&&o!=="/"?null:e.slice(n)||"/"}const hU=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pU=e=>hU.test(e);function mU(e,t){t===void 0&&(t="/");let{pathname:n,search:o="",hash:s=""}=typeof e=="string"?il(e):e,a;if(n)if(pU(n))a=n;else{if(n.includes("//")){let u=n;n=n.replace(/\/\/+/g,"/"),Nv(!1,"Pathnames cannot have embedded double slashes - normalizing "+(u+" -> "+n))}n.startsWith("/")?a=$1(n.substring(1),"/"):a=$1(n,t)}else a=t;return{pathname:a,search:vU(o),hash:bU(s)}}function $1(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Lm(e,t,n,o){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(o)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function gU(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function JT(e,t){let n=gU(e);return t?n.map((o,s)=>s===n.length-1?o.pathname:o.pathnameBase):n.map(o=>o.pathnameBase)}function e_(e,t,n,o){o===void 0&&(o=!1);let s;typeof e=="string"?s=il(e):(s=Vu({},e),Kt(!s.pathname||!s.pathname.includes("?"),Lm("?","pathname","search",s)),Kt(!s.pathname||!s.pathname.includes("#"),Lm("#","pathname","hash",s)),Kt(!s.search||!s.search.includes("#"),Lm("#","search","hash",s)));let a=e===""||s.pathname==="",u=a?"/":s.pathname,c;if(u==null)c=n;else{let g=t.length-1;if(!o&&u.startsWith("..")){let v=u.split("/");for(;v[0]==="..";)v.shift(),g-=1;s.pathname=v.join("/")}c=g>=0?t[g]:"/"}let f=mU(s,c),p=u&&u!=="/"&&u.endsWith("/"),h=(a||u===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(p||h)&&(f.pathname+="/"),f}const Mi=e=>e.join("/").replace(/\/\/+/g,"/"),yU=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),vU=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bU=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function SU(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const t_=["post","put","patch","delete"];new Set(t_);const xU=["get",...t_];new Set(xU);/**
|
||
* React Router v6.30.3
|
||
*
|
||
* 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 Uu(){return Uu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Uu.apply(this,arguments)}const Fv=C.createContext(null),wU=C.createContext(null),Ms=C.createContext(null),Yf=C.createContext(null),zi=C.createContext({outlet:null,matches:[],isDataRoute:!1}),n_=C.createContext(null);function CU(e,t){let{relative:n}=t===void 0?{}:t;oc()||Kt(!1);let{basename:o,navigator:s}=C.useContext(Ms),{hash:a,pathname:u,search:c}=o_(e,{relative:n}),f=u;return o!=="/"&&(f=u==="/"?o:Mi([o,u])),s.createHref({pathname:f,search:c,hash:a})}function oc(){return C.useContext(Yf)!=null}function ic(){return oc()||Kt(!1),C.useContext(Yf).location}function r_(e){C.useContext(Ms).static||C.useLayoutEffect(e)}function sc(){let{isDataRoute:e}=C.useContext(zi);return e?FU():kU()}function kU(){oc()||Kt(!1);let e=C.useContext(Fv),{basename:t,future:n,navigator:o}=C.useContext(Ms),{matches:s}=C.useContext(zi),{pathname:a}=ic(),u=JSON.stringify(JT(s,n.v7_relativeSplatPath)),c=C.useRef(!1);return r_(()=>{c.current=!0}),C.useCallback(function(p,h){if(h===void 0&&(h={}),!c.current)return;if(typeof p=="number"){o.go(p);return}let g=e_(p,JSON.parse(u),a,h.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:Mi([t,g.pathname])),(h.replace?o.replace:o.push)(g,h.state,h)},[t,o,u,a,e])}function EU(){let{matches:e}=C.useContext(zi),t=e[e.length-1];return t?t.params:{}}function o_(e,t){let{relative:n}=t===void 0?{}:t,{future:o}=C.useContext(Ms),{matches:s}=C.useContext(zi),{pathname:a}=ic(),u=JSON.stringify(JT(s,o.v7_relativeSplatPath));return C.useMemo(()=>e_(e,JSON.parse(u),a,n==="path"),[e,u,a,n])}function TU(e,t){return _U(e,t)}function _U(e,t,n,o){oc()||Kt(!1);let{navigator:s}=C.useContext(Ms),{matches:a}=C.useContext(zi),u=a[a.length-1],c=u?u.params:{};u&&u.pathname;let f=u?u.pathnameBase:"/";u&&u.route;let p=ic(),h;if(t){var g;let w=typeof t=="string"?il(t):t;f==="/"||(g=w.pathname)!=null&&g.startsWith(f)||Kt(!1),h=w}else h=p;let v=h.pathname||"/",k=v;if(f!=="/"){let w=f.replace(/^\//,"").split("/");k="/"+v.replace(/^\//,"").split("/").slice(w.length).join("/")}let x=ZV(e,{pathname:k}),S=jU(x&&x.map(w=>Object.assign({},w,{params:Object.assign({},c,w.params),pathname:Mi([f,s.encodeLocation?s.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?f:Mi([f,s.encodeLocation?s.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),a,n,o);return t&&S?C.createElement(Yf.Provider,{value:{location:Uu({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:Oi.Pop}},S):S}function PU(){let e=DU(),t=SU(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:s},n):null,null)}const RU=C.createElement(PU,null);class AU extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?C.createElement(zi.Provider,{value:this.props.routeContext},C.createElement(n_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function OU(e){let{routeContext:t,match:n,children:o}=e,s=C.useContext(Fv);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(zi.Provider,{value:t},o)}function jU(e,t,n,o){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),o===void 0&&(o=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=o)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let u=e,c=(s=n)==null?void 0:s.errors;if(c!=null){let h=u.findIndex(g=>g.route.id&&(c==null?void 0:c[g.route.id])!==void 0);h>=0||Kt(!1),u=u.slice(0,Math.min(u.length,h+1))}let f=!1,p=-1;if(n&&o&&o.v7_partialHydration)for(let h=0;h<u.length;h++){let g=u[h];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(p=h),g.route.id){let{loaderData:v,errors:k}=n,x=g.route.loader&&v[g.route.id]===void 0&&(!k||k[g.route.id]===void 0);if(g.route.lazy||x){f=!0,p>=0?u=u.slice(0,p+1):u=[u[0]];break}}}return u.reduceRight((h,g,v)=>{let k,x=!1,S=null,w=null;n&&(k=c&&g.route.id?c[g.route.id]:void 0,S=g.route.errorElement||RU,f&&(p<0&&v===0?(LU("route-fallback"),x=!0,w=null):p===v&&(x=!0,w=g.route.hydrateFallbackElement||null)));let T=t.concat(u.slice(0,v+1)),A=()=>{let _;return k?_=S:x?_=w:g.route.Component?_=C.createElement(g.route.Component,null):g.route.element?_=g.route.element:_=h,C.createElement(OU,{match:g,routeContext:{outlet:h,matches:T,isDataRoute:n!=null},children:_})};return n&&(g.route.ErrorBoundary||g.route.errorElement||v===0)?C.createElement(AU,{location:n.location,revalidation:n.revalidation,component:S,error:k,children:A(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):A()},null)}var i_=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(i_||{}),s_=(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})(s_||{});function MU(e){let t=C.useContext(Fv);return t||Kt(!1),t}function IU(e){let t=C.useContext(wU);return t||Kt(!1),t}function NU(e){let t=C.useContext(zi);return t||Kt(!1),t}function a_(e){let t=NU(),n=t.matches[t.matches.length-1];return n.route.id||Kt(!1),n.route.id}function DU(){var e;let t=C.useContext(n_),n=IU(),o=a_();return t!==void 0?t:(e=n.errors)==null?void 0:e[o]}function FU(){let{router:e}=MU(i_.UseNavigateStable),t=a_(s_.UseNavigateStable),n=C.useRef(!1);return r_(()=>{n.current=!0}),C.useCallback(function(s,a){a===void 0&&(a={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Uu({fromRouteId:t},a)))},[e,t])}const B1={};function LU(e,t,n){B1[e]||(B1[e]=!0)}function zU(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function _i(e){Kt(!1)}function $U(e){let{basename:t="/",children:n=null,location:o,navigationType:s=Oi.Pop,navigator:a,static:u=!1,future:c}=e;oc()&&Kt(!1);let f=t.replace(/^\/*/,"/"),p=C.useMemo(()=>({basename:f,navigator:a,static:u,future:Uu({v7_relativeSplatPath:!1},c)}),[f,c,a,u]);typeof o=="string"&&(o=il(o));let{pathname:h="/",search:g="",hash:v="",state:k=null,key:x="default"}=o,S=C.useMemo(()=>{let w=Dv(h,f);return w==null?null:{location:{pathname:w,search:g,hash:v,state:k,key:x},navigationType:s}},[f,h,g,v,k,x,s]);return S==null?null:C.createElement(Ms.Provider,{value:p},C.createElement(Yf.Provider,{children:n,value:S}))}function BU(e){let{children:t,location:n}=e;return TU(Gg(t),n)}new Promise(()=>{});function Gg(e,t){t===void 0&&(t=[]);let n=[];return C.Children.forEach(e,(o,s)=>{if(!C.isValidElement(o))return;let a=[...t,s];if(o.type===C.Fragment){n.push.apply(n,Gg(o.props.children,a));return}o.type!==_i&&Kt(!1),!o.props.index||!o.props.children||Kt(!1);let u={id:o.props.id||a.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(u.children=Gg(o.props.children,a)),n.push(u)}),n}/**
|
||
* React Router DOM v6.30.3
|
||
*
|
||
* 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 Qg(){return Qg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Qg.apply(this,arguments)}function VU(e,t){if(e==null)return{};var n={},o=Object.keys(e),s,a;for(a=0;a<o.length;a++)s=o[a],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function UU(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function WU(e,t){return e.button===0&&(!t||t==="_self")&&!UU(e)}function Yg(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let o=e[n];return t.concat(Array.isArray(o)?o.map(s=>[n,s]):[[n,o]])},[]))}function HU(e,t){let n=Yg(e);return t&&t.forEach((o,s)=>{n.has(s)||t.getAll(s).forEach(a=>{n.append(s,a)})}),n}const qU=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],KU="6";try{window.__reactRouterVersion=KU}catch{}const GU="startTransition",V1=Zm[GU];function QU(e){let{basename:t,children:n,future:o,window:s}=e,a=C.useRef();a.current==null&&(a.current=QV({window:s,v5Compat:!0}));let u=a.current,[c,f]=C.useState({action:u.action,location:u.location}),{v7_startTransition:p}=o||{},h=C.useCallback(g=>{p&&V1?V1(()=>f(g)):f(g)},[f,p]);return C.useLayoutEffect(()=>u.listen(h),[u,h]),C.useEffect(()=>zU(o),[o]),C.createElement($U,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:u,future:o})}const YU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",XU=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yo=C.forwardRef(function(t,n){let{onClick:o,relative:s,reloadDocument:a,replace:u,state:c,target:f,to:p,preventScrollReset:h,viewTransition:g}=t,v=VU(t,qU),{basename:k}=C.useContext(Ms),x,S=!1;if(typeof p=="string"&&XU.test(p)&&(x=p,YU))try{let _=new URL(window.location.href),N=p.startsWith("//")?new URL(_.protocol+p):new URL(p),R=Dv(N.pathname,k);N.origin===_.origin&&R!=null?p=R+N.search+N.hash:S=!0}catch{}let w=CU(p,{relative:s}),T=ZU(p,{replace:u,state:c,target:f,preventScrollReset:h,relative:s,viewTransition:g});function A(_){o&&o(_),_.defaultPrevented||T(_)}return C.createElement("a",Qg({},v,{href:x||w,onClick:S||a?o:A,ref:n,target:f}))});var U1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(U1||(U1={}));var W1;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(W1||(W1={}));function ZU(e,t){let{target:n,replace:o,state:s,preventScrollReset:a,relative:u,viewTransition:c}=t===void 0?{}:t,f=sc(),p=ic(),h=o_(e,{relative:u});return C.useCallback(g=>{if(WU(g,n)){g.preventDefault();let v=o!==void 0?o:Tf(p)===Tf(h);f(e,{replace:v,state:s,preventScrollReset:a,relative:u,viewTransition:c})}},[p,f,h,o,s,n,e,a,u,c])}function JU(e){let t=C.useRef(Yg(e)),n=C.useRef(!1),o=ic(),s=C.useMemo(()=>HU(o.search,n.current?null:t.current),[o.search]),a=sc(),u=C.useCallback((c,f)=>{const p=Yg(typeof c=="function"?c(s):c);n.current=!0,a("?"+p,f)},[a,s]);return[s,u]}class ac{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Wu=typeof window>"u"||"Deno"in window;function Nr(){}function e8(e,t){return typeof e=="function"?e(t):e}function Xg(e){return typeof e=="number"&&e>=0&&e!==1/0}function l_(e,t){return Math.max(e+(t||0)-Date.now(),0)}function hu(e,t,n){return Xf(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Ri(e,t,n){return Xf(e)?[{...t,queryKey:e},n]:[e||{},t]}function H1(e,t){const{type:n="all",exact:o,fetchStatus:s,predicate:a,queryKey:u,stale:c}=e;if(Xf(u)){if(o){if(t.queryHash!==Lv(u,t.options))return!1}else if(!_f(t.queryKey,u))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||typeof s<"u"&&s!==t.state.fetchStatus||a&&!a(t))}function q1(e,t){const{exact:n,fetching:o,predicate:s,mutationKey:a}=e;if(Xf(a)){if(!t.options.mutationKey)return!1;if(n){if(ps(t.options.mutationKey)!==ps(a))return!1}else if(!_f(t.options.mutationKey,a))return!1}return!(typeof o=="boolean"&&t.state.status==="loading"!==o||s&&!s(t))}function Lv(e,t){return((t==null?void 0:t.queryKeyHashFn)||ps)(e)}function ps(e){return JSON.stringify(e,(t,n)=>Jg(n)?Object.keys(n).sort().reduce((o,s)=>(o[s]=n[s],o),{}):n)}function _f(e,t){return u_(e,t)}function u_(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!u_(e[n],t[n])):!1}function c_(e,t,n=0){if(e===t)return e;if(n>500)return t;const o=K1(e)&&K1(t);if(o||Jg(e)&&Jg(t)){const s=o?e.length:Object.keys(e).length,a=o?t:Object.keys(t),u=a.length,c=o?[]:{};let f=0;for(let p=0;p<u;p++){const h=o?p:a[p];c[h]=c_(e[h],t[h],n+1),c[h]===e[h]&&f++}return s===u&&f===s?e:c}return t}function Zg(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function K1(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Jg(e){if(!G1(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!G1(n)||!n.hasOwnProperty("isPrototypeOf"))}function G1(e){return Object.prototype.toString.call(e)==="[object Object]"}function Xf(e){return Array.isArray(e)}function d_(e){return new Promise(t=>{setTimeout(t,e)})}function Q1(e){d_(0).then(e)}function t8(){if(typeof AbortController=="function")return new AbortController}function ey(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?c_(e,t):t}class n8 extends ac{constructor(){super(),this.setup=t=>{if(!Wu&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(o=>{typeof o=="boolean"?this.setFocused(o):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Pf=new n8,Y1=["online","offline"];class r8 extends ac{constructor(){super(),this.setup=t=>{if(!Wu&&window.addEventListener){const n=()=>t();return Y1.forEach(o=>{window.addEventListener(o,n,!1)}),()=>{Y1.forEach(o=>{window.removeEventListener(o,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(o=>{typeof o=="boolean"?this.setOnline(o):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Rf=new r8;function o8(e){return Math.min(1e3*2**e,3e4)}function Zf(e){return(e??"online")==="online"?Rf.isOnline():!0}class f_{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function rf(e){return e instanceof f_}function h_(e){let t=!1,n=0,o=!1,s,a,u;const c=new Promise((w,T)=>{a=w,u=T}),f=w=>{o||(k(new f_(w)),e.abort==null||e.abort())},p=()=>{t=!0},h=()=>{t=!1},g=()=>!Pf.isFocused()||e.networkMode!=="always"&&!Rf.isOnline(),v=w=>{o||(o=!0,e.onSuccess==null||e.onSuccess(w),s==null||s(),a(w))},k=w=>{o||(o=!0,e.onError==null||e.onError(w),s==null||s(),u(w))},x=()=>new Promise(w=>{s=T=>{const A=o||!g();return A&&w(T),A},e.onPause==null||e.onPause()}).then(()=>{s=void 0,o||e.onContinue==null||e.onContinue()}),S=()=>{if(o)return;let w;try{w=e.fn()}catch(T){w=Promise.reject(T)}Promise.resolve(w).then(v).catch(T=>{var A,_;if(o)return;const N=(A=e.retry)!=null?A:3,R=(_=e.retryDelay)!=null?_:o8,F=typeof R=="function"?R(n,T):R,D=N===!0||typeof N=="number"&&n<N||typeof N=="function"&&N(n,T);if(t||!D){k(T);return}n++,e.onFail==null||e.onFail(n,T),d_(F).then(()=>{if(g())return x()}).then(()=>{t?k(T):S()})})};return Zf(e.networkMode)?S():x().then(S),{promise:c,cancel:f,continue:()=>(s==null?void 0:s())?c:Promise.resolve(),cancelRetry:p,continueRetry:h}}const zv=console;function i8(){let e=[],t=0,n=h=>{h()},o=h=>{h()};const s=h=>{let g;t++;try{g=h()}finally{t--,t||c()}return g},a=h=>{t?e.push(h):Q1(()=>{n(h)})},u=h=>(...g)=>{a(()=>{h(...g)})},c=()=>{const h=e;e=[],h.length&&Q1(()=>{o(()=>{h.forEach(g=>{n(g)})})})};return{batch:s,batchCalls:u,schedule:a,setNotifyFunction:h=>{n=h},setBatchNotifyFunction:h=>{o=h}}}const qt=i8();class p_{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Xg(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Wu?1/0:300*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class s8 extends p_{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||zv,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||a8(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const o=ey(this.state.data,t,this.options);return this.dispatch({data:o,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),o}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const o=this.promise;return(n=this.retryer)==null||n.cancel(t),o?o.then(Nr).catch(Nr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!l_(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(o=>o.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(o=>o.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var o,s;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return(a=this.retryer)==null||a.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const k=this.observers.find(x=>x.options.queryFn);k&&this.setOptions(k.options)}const u=t8(),c={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},f=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>{if(u)return this.abortSignalConsumed=!0,u.signal}})};f(c);const p=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(c)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),h={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:p};if(f(h),(o=this.options.behavior)==null||o.onFetch(h),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((s=h.fetchOptions)==null?void 0:s.meta)){var g;this.dispatch({type:"fetch",meta:(g=h.fetchOptions)==null?void 0:g.meta})}const v=k=>{if(rf(k)&&k.silent||this.dispatch({type:"error",error:k}),!rf(k)){var x,S,w,T;(x=(S=this.cache.config).onError)==null||x.call(S,k,this),(w=(T=this.cache.config).onSettled)==null||w.call(T,this.state.data,k,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=h_({fn:h.fetchFn,abort:u==null?void 0:u.abort.bind(u),onSuccess:k=>{var x,S,w,T;if(typeof k>"u"){v(new Error(this.queryHash+" data is undefined"));return}this.setData(k),(x=(S=this.cache.config).onSuccess)==null||x.call(S,k,this),(w=(T=this.cache.config).onSettled)==null||w.call(T,k,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:v,onFail:(k,x)=>{this.dispatch({type:"failed",failureCount:k,error:x})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=o=>{var s,a;switch(t.type){case"failed":return{...o,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(s=t.meta)!=null?s:null,fetchStatus:Zf(this.options.networkMode)?"fetching":"paused",...!o.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...o,data:t.data,dataUpdateCount:o.dataUpdateCount+1,dataUpdatedAt:(a=t.dataUpdatedAt)!=null?a:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const u=t.error;return rf(u)&&u.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...o,error:u,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error"};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...t.state}}};this.state=n(this.state),qt.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function a8(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",o=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class l8 extends ac{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,o){var s;const a=n.queryKey,u=(s=n.queryHash)!=null?s:Lv(a,n);let c=this.get(u);return c||(c=new s8({cache:this,logger:t.getLogger(),queryKey:a,queryHash:u,options:t.defaultQueryOptions(n),state:o,defaultOptions:t.getQueryDefaults(a)}),this.add(c)),c}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(o=>o!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){qt.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[o]=Ri(t,n);return typeof o.exact>"u"&&(o.exact=!0),this.queries.find(s=>H1(o,s))}findAll(t,n){const[o]=Ri(t,n);return Object.keys(o).length>0?this.queries.filter(s=>H1(o,s)):this.queries}notify(t){qt.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){qt.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){qt.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class u8 extends p_{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||zv,this.observers=[],this.state=t.state||c8(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var D;return this.retryer=h_({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(U,X)=>{this.dispatch({type:"failed",failureCount:U,error:X})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(D=this.options.retry)!=null?D:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var o,s,a,u,c,f,p,h;if(!n){var g,v,k,x;this.dispatch({type:"loading",variables:this.options.variables}),await((g=(v=this.mutationCache.config).onMutate)==null?void 0:g.call(v,this.state.variables,this));const U=await((k=(x=this.options).onMutate)==null?void 0:k.call(x,this.state.variables));U!==this.state.context&&this.dispatch({type:"loading",context:U,variables:this.state.variables})}const D=await t();return await((o=(s=this.mutationCache.config).onSuccess)==null?void 0:o.call(s,D,this.state.variables,this.state.context,this)),await((a=(u=this.options).onSuccess)==null?void 0:a.call(u,D,this.state.variables,this.state.context)),await((c=(f=this.mutationCache.config).onSettled)==null?void 0:c.call(f,D,null,this.state.variables,this.state.context,this)),await((p=(h=this.options).onSettled)==null?void 0:p.call(h,D,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:D}),D}catch(D){try{var S,w,T,A,_,N,R,F;throw await((S=(w=this.mutationCache.config).onError)==null?void 0:S.call(w,D,this.state.variables,this.state.context,this)),await((T=(A=this.options).onError)==null?void 0:T.call(A,D,this.state.variables,this.state.context)),await((_=(N=this.mutationCache.config).onSettled)==null?void 0:_.call(N,void 0,D,this.state.variables,this.state.context,this)),await((R=(F=this.options).onSettled)==null?void 0:R.call(F,void 0,D,this.state.variables,this.state.context)),D}finally{this.dispatch({type:"error",error:D})}}}dispatch(t){const n=o=>{switch(t.type){case"failed":return{...o,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"loading":return{...o,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Zf(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...o,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:t.error,failureCount:o.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...o,...t.state}}};this.state=n(this.state),qt.batch(()=>{this.observers.forEach(o=>{o.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function c8(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class d8 extends ac{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,o){const s=new u8({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:o,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(s),s}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){qt.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>q1(t,n))}findAll(t){return this.mutations.filter(n=>q1(t,n))}notify(t){qt.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(o=>o.state.isPaused);return qt.batch(()=>n.reduce((o,s)=>o.then(()=>s.continue().catch(Nr)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function f8(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,o,s,a,u;const c=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,f=(o=e.fetchOptions)==null||(s=o.meta)==null?void 0:s.fetchMore,p=f==null?void 0:f.pageParam,h=(f==null?void 0:f.direction)==="forward",g=(f==null?void 0:f.direction)==="backward",v=((a=e.state.data)==null?void 0:a.pages)||[],k=((u=e.state.data)==null?void 0:u.pageParams)||[];let x=k,S=!1;const w=F=>{Object.defineProperty(F,"signal",{enumerable:!0,get:()=>{var D;if((D=e.signal)!=null&&D.aborted)S=!0;else{var U;(U=e.signal)==null||U.addEventListener("abort",()=>{S=!0})}return e.signal}})},T=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),A=(F,D,U,X)=>(x=X?[D,...x]:[...x,D],X?[U,...F]:[...F,U]),_=(F,D,U,X)=>{if(S)return Promise.reject("Cancelled");if(typeof U>"u"&&!D&&F.length)return Promise.resolve(F);const ne={queryKey:e.queryKey,pageParam:U,meta:e.options.meta};w(ne);const ee=T(ne);return Promise.resolve(ee).then(Te=>A(F,U,Te,X))};let N;if(!v.length)N=_([]);else if(h){const F=typeof p<"u",D=F?p:X1(e.options,v);N=_(v,F,D)}else if(g){const F=typeof p<"u",D=F?p:h8(e.options,v);N=_(v,F,D,!0)}else{x=[];const F=typeof e.options.getNextPageParam>"u";N=(c&&v[0]?c(v[0],0,v):!0)?_([],F,k[0]):Promise.resolve(A([],k[0],v[0]));for(let U=1;U<v.length;U++)N=N.then(X=>{if(c&&v[U]?c(v[U],U,v):!0){const ee=F?k[U]:X1(e.options,X);return _(X,F,ee)}return Promise.resolve(A(X,k[U],v[U]))})}return N.then(F=>({pages:F,pageParams:x}))}}}}function X1(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function h8(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class p8{constructor(t={}){this.queryCache=t.queryCache||new l8,this.mutationCache=t.mutationCache||new d8,this.logger=t.logger||zv,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Pf.subscribe(()=>{Pf.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Rf.subscribe(()=>{Rf.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[o]=Ri(t,n);return o.fetchStatus="fetching",this.queryCache.findAll(o).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var o;return(o=this.queryCache.find(t,n))==null?void 0:o.state.data}ensureQueryData(t,n,o){const s=hu(t,n,o),a=this.getQueryData(s.queryKey);return a?Promise.resolve(a):this.fetchQuery(s)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:o})=>{const s=o.data;return[n,s]})}setQueryData(t,n,o){const s=this.queryCache.find(t),a=s==null?void 0:s.state.data,u=e8(n,a);if(typeof u>"u")return;const c=hu(t),f=this.defaultQueryOptions(c);return this.queryCache.build(this,f).setData(u,{...o,manual:!0})}setQueriesData(t,n,o){return qt.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,n,o)]))}getQueryState(t,n){var o;return(o=this.queryCache.find(t,n))==null?void 0:o.state}removeQueries(t,n){const[o]=Ri(t,n),s=this.queryCache;qt.batch(()=>{s.findAll(o).forEach(a=>{s.remove(a)})})}resetQueries(t,n,o){const[s,a]=Ri(t,n,o),u=this.queryCache,c={type:"active",...s};return qt.batch(()=>(u.findAll(s).forEach(f=>{f.reset()}),this.refetchQueries(c,a)))}cancelQueries(t,n,o){const[s,a={}]=Ri(t,n,o);typeof a.revert>"u"&&(a.revert=!0);const u=qt.batch(()=>this.queryCache.findAll(s).map(c=>c.cancel(a)));return Promise.all(u).then(Nr).catch(Nr)}invalidateQueries(t,n,o){const[s,a]=Ri(t,n,o);return qt.batch(()=>{var u,c;if(this.queryCache.findAll(s).forEach(p=>{p.invalidate()}),s.refetchType==="none")return Promise.resolve();const f={...s,type:(u=(c=s.refetchType)!=null?c:s.type)!=null?u:"active"};return this.refetchQueries(f,a)})}refetchQueries(t,n,o){const[s,a]=Ri(t,n,o),u=qt.batch(()=>this.queryCache.findAll(s).filter(f=>!f.isDisabled()).map(f=>{var p;return f.fetch(void 0,{...a,cancelRefetch:(p=a==null?void 0:a.cancelRefetch)!=null?p:!0,meta:{refetchPage:s.refetchPage}})}));let c=Promise.all(u).then(Nr);return a!=null&&a.throwOnError||(c=c.catch(Nr)),c}fetchQuery(t,n,o){const s=hu(t,n,o),a=this.defaultQueryOptions(s);typeof a.retry>"u"&&(a.retry=!1);const u=this.queryCache.build(this,a);return u.isStaleByTime(a.staleTime)?u.fetch(a):Promise.resolve(u.state.data)}prefetchQuery(t,n,o){return this.fetchQuery(t,n,o).then(Nr).catch(Nr)}fetchInfiniteQuery(t,n,o){const s=hu(t,n,o);return s.behavior=f8(),this.fetchQuery(s)}prefetchInfiniteQuery(t,n,o){return this.fetchInfiniteQuery(t,n,o).then(Nr).catch(Nr)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const o=this.queryDefaults.find(s=>ps(t)===ps(s.queryKey));o?o.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(o=>_f(t,o.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const o=this.mutationDefaults.find(s=>ps(t)===ps(s.mutationKey));o?o.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(o=>_f(t,o.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=Lv(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class m8 extends ac{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),Z1(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ty(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ty(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const o=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Zg(o,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=o.queryKey),this.updateQuery();const a=this.hasListeners();a&&J1(this.currentQuery,s,this.options,o)&&this.executeFetch(),this.updateResult(n),a&&(this.currentQuery!==s||this.options.enabled!==o.enabled||this.options.staleTime!==o.staleTime)&&this.updateStaleTimeout();const u=this.computeRefetchInterval();a&&(this.currentQuery!==s||this.options.enabled!==o.enabled||u!==this.currentRefetchInterval)&&this.updateRefetchInterval(u)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),o=this.createResult(n,t);return y8(this,o,t)&&(this.currentResult=o,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),o}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(o=>{Object.defineProperty(n,o,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(o),t[o])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),o=this.client.getQueryCache().build(this.client,n);return o.isFetchingOptimistic=!0,o.fetch().then(()=>this.createResult(o,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Nr)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),Wu||this.currentResult.isStale||!Xg(this.options.staleTime))return;const n=l_(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Wu||this.options.enabled===!1||!Xg(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Pf.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const o=this.currentQuery,s=this.options,a=this.currentResult,u=this.currentResultState,c=this.currentResultOptions,f=t!==o,p=f?t.state:this.currentQueryInitialState,h=f?this.currentResult:this.previousQueryResult,{state:g}=t;let{dataUpdatedAt:v,error:k,errorUpdatedAt:x,fetchStatus:S,status:w}=g,T=!1,A=!1,_;if(n._optimisticResults){const U=this.hasListeners(),X=!U&&Z1(t,n),ne=U&&J1(t,o,n,s);(X||ne)&&(S=Zf(t.options.networkMode)?"fetching":"paused",v||(w="loading")),n._optimisticResults==="isRestoring"&&(S="idle")}if(n.keepPreviousData&&!g.dataUpdatedAt&&h!=null&&h.isSuccess&&w!=="error")_=h.data,v=h.dataUpdatedAt,w=h.status,T=!0;else if(n.select&&typeof g.data<"u")if(a&&g.data===(u==null?void 0:u.data)&&n.select===this.selectFn)_=this.selectResult;else try{this.selectFn=n.select,_=n.select(g.data),_=ey(a==null?void 0:a.data,_,n),this.selectResult=_,this.selectError=null}catch(U){this.selectError=U}else _=g.data;if(typeof n.placeholderData<"u"&&typeof _>"u"&&w==="loading"){let U;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData))U=a.data;else if(U=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof U<"u")try{U=n.select(U),this.selectError=null}catch(X){this.selectError=X}typeof U<"u"&&(w="success",_=ey(a==null?void 0:a.data,U,n),A=!0)}this.selectError&&(k=this.selectError,_=this.selectResult,x=Date.now(),w="error");const N=S==="fetching",R=w==="loading",F=w==="error";return{status:w,fetchStatus:S,isLoading:R,isSuccess:w==="success",isError:F,isInitialLoading:R&&N,data:_,dataUpdatedAt:v,error:k,errorUpdatedAt:x,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:N,isRefetching:N&&!R,isLoadingError:F&&g.dataUpdatedAt===0,isPaused:S==="paused",isPlaceholderData:A,isPreviousData:T,isRefetchError:F&&g.dataUpdatedAt!==0,isStale:$v(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,o=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Zg(o,n))return;this.currentResult=o;const s={cache:!0},a=()=>{if(!n)return!0;const{notifyOnChangeProps:u}=this.options,c=typeof u=="function"?u():u;if(c==="all"||!c&&!this.trackedProps.size)return!0;const f=new Set(c??this.trackedProps);return this.options.useErrorBoundary&&f.add("error"),Object.keys(this.currentResult).some(p=>{const h=p;return this.currentResult[h]!==n[h]&&f.has(h)})};(t==null?void 0:t.listeners)!==!1&&a()&&(s.listeners=!0),this.notify({...s,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!rf(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){qt.batch(()=>{if(t.onSuccess){var n,o,s,a;(n=(o=this.options).onSuccess)==null||n.call(o,this.currentResult.data),(s=(a=this.options).onSettled)==null||s.call(a,this.currentResult.data,null)}else if(t.onError){var u,c,f,p;(u=(c=this.options).onError)==null||u.call(c,this.currentResult.error),(f=(p=this.options).onSettled)==null||f.call(p,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:h})=>{h(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function g8(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Z1(e,t){return g8(e,t)||e.state.dataUpdatedAt>0&&ty(e,t,t.refetchOnMount)}function ty(e,t,n){if(t.enabled!==!1){const o=typeof n=="function"?n(e):n;return o==="always"||o!==!1&&$v(e,t)}return!1}function J1(e,t,n,o){return n.enabled!==!1&&(e!==t||o.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&$v(e,n)}function $v(e,t){return e.isStaleByTime(t.staleTime)}function y8(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!Zg(e.getCurrentResult(),t)}var zm={exports:{}},$m={};/**
|
||
* @license React
|
||
* use-sync-external-store-shim.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var ew;function v8(){if(ew)return $m;ew=1;var e=Mf();function t(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}var n=typeof Object.is=="function"?Object.is:t,o=e.useState,s=e.useEffect,a=e.useLayoutEffect,u=e.useDebugValue;function c(g,v){var k=v(),x=o({inst:{value:k,getSnapshot:v}}),S=x[0].inst,w=x[1];return a(function(){S.value=k,S.getSnapshot=v,f(S)&&w({inst:S})},[g,k,v]),s(function(){return f(S)&&w({inst:S}),g(function(){f(S)&&w({inst:S})})},[g]),u(k),k}function f(g){var v=g.getSnapshot;g=g.value;try{var k=v();return!n(g,k)}catch{return!0}}function p(g,v){return v()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:c;return $m.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,$m}var tw;function b8(){return tw||(tw=1,zm.exports=v8()),zm.exports}var S8=b8();const x8=S8.useSyncExternalStore,nw=C.createContext(void 0),m_=C.createContext(!1);function g_(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=nw),window.ReactQueryClientContext):nw)}const y_=({context:e}={})=>{const t=C.useContext(g_(e,C.useContext(m_)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},w8=({client:e,children:t,context:n,contextSharing:o=!1})=>{C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const s=g_(n,o);return C.createElement(m_.Provider,{value:!n&&o},C.createElement(s.Provider,{value:e},t))},v_=C.createContext(!1),C8=()=>C.useContext(v_);v_.Provider;function k8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const E8=C.createContext(k8()),T8=()=>C.useContext(E8);function _8(e,t){return typeof e=="function"?e(...t):!!e}const P8=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},R8=e=>{C.useEffect(()=>{e.clearReset()},[e])},A8=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&_8(n,[e.error,o]),O8=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.cacheTime=="number"&&(e.cacheTime=Math.max(e.cacheTime,1e3)))},j8=(e,t)=>e.isLoading&&e.isFetching&&!t,M8=(e,t,n)=>(e==null?void 0:e.suspense)&&j8(t,n),I8=(e,t,n)=>t.fetchOptimistic(e).then(({data:o})=>{e.onSuccess==null||e.onSuccess(o),e.onSettled==null||e.onSettled(o,null)}).catch(o=>{n.clearReset(),e.onError==null||e.onError(o),e.onSettled==null||e.onSettled(void 0,o)});function N8(e,t){const n=y_({context:e.context}),o=C8(),s=T8(),a=n.defaultQueryOptions(e);a._optimisticResults=o?"isRestoring":"optimistic",a.onError&&(a.onError=qt.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=qt.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=qt.batchCalls(a.onSettled)),O8(a),P8(a,s),R8(s);const[u]=C.useState(()=>new t(n,a)),c=u.getOptimisticResult(a);if(x8(C.useCallback(f=>{const p=o?()=>{}:u.subscribe(qt.batchCalls(f));return u.updateResult(),p},[u,o]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),C.useEffect(()=>{u.setOptions(a,{listeners:!1})},[a,u]),M8(a,c,o))throw I8(a,u,s);if(A8({result:c,errorResetBoundary:s,useErrorBoundary:a.useErrorBoundary,query:u.getCurrentQuery()}))throw c.error;return a.notifyOnChangeProps?c:u.trackResult(c)}function Rs(e,t,n){const o=hu(e,t,n);return N8(o,m8)}function b_(e,t){return function(){return e.apply(t,arguments)}}const{toString:D8}=Object.prototype,{getPrototypeOf:Bv}=Object,{iterator:Jf,toStringTag:S_}=Symbol,eh=(e=>t=>{const n=D8.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),lo=e=>(e=e.toLowerCase(),t=>eh(t)===e),th=e=>t=>typeof t===e,{isArray:sl}=Array,Za=th("undefined");function lc(e){return e!==null&&!Za(e)&&e.constructor!==null&&!Za(e.constructor)&&er(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const x_=lo("ArrayBuffer");function F8(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&x_(e.buffer),t}const L8=th("string"),er=th("function"),w_=th("number"),uc=e=>e!==null&&typeof e=="object",z8=e=>e===!0||e===!1,of=e=>{if(eh(e)!=="object")return!1;const t=Bv(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(S_ in e)&&!(Jf in e)},$8=e=>{if(!uc(e)||lc(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},B8=lo("Date"),V8=lo("File"),U8=e=>!!(e&&typeof e.uri<"u"),W8=e=>e&&typeof e.getParts<"u",H8=lo("Blob"),q8=lo("FileList"),K8=e=>uc(e)&&er(e.pipe);function G8(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const rw=G8(),ow=typeof rw.FormData<"u"?rw.FormData:void 0,Q8=e=>{let t;return e&&(ow&&e instanceof ow||er(e.append)&&((t=eh(e))==="formdata"||t==="object"&&er(e.toString)&&e.toString()==="[object FormData]"))},Y8=lo("URLSearchParams"),[X8,Z8,J8,eW]=["ReadableStream","Request","Response","Headers"].map(lo),tW=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,s;if(typeof e!="object"&&(e=[e]),sl(e))for(o=0,s=e.length;o<s;o++)t.call(null,e[o],o,e);else{if(lc(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;let c;for(o=0;o<u;o++)c=a[o],t.call(null,e[c],c,e)}}function C_(e,t){if(lc(e))return null;t=t.toLowerCase();const n=Object.keys(e);let o=n.length,s;for(;o-- >0;)if(s=n[o],t===s.toLowerCase())return s;return null}const ms=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,k_=e=>!Za(e)&&e!==ms;function ny(){const{caseless:e,skipUndefined:t}=k_(this)&&this||{},n={},o=(s,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const u=e&&C_(n,a)||a;of(n[u])&&of(s)?n[u]=ny(n[u],s):of(s)?n[u]=ny({},s):sl(s)?n[u]=s.slice():(!t||!Za(s))&&(n[u]=s)};for(let s=0,a=arguments.length;s<a;s++)arguments[s]&&cc(arguments[s],o);return n}const nW=(e,t,n,{allOwnKeys:o}={})=>(cc(t,(s,a)=>{n&&er(s)?Object.defineProperty(e,a,{value:b_(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),rW=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),oW=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},iW=(e,t,n,o)=>{let s,a,u;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),a=s.length;a-- >0;)u=s[a],(!o||o(u,e,t))&&!c[u]&&(t[u]=e[u],c[u]=!0);e=n!==!1&&Bv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},sW=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},aW=e=>{if(!e)return null;if(sl(e))return e;let t=e.length;if(!w_(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},lW=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Bv(Uint8Array)),uW=(e,t)=>{const o=(e&&e[Jf]).call(e);let s;for(;(s=o.next())&&!s.done;){const a=s.value;t.call(e,a[0],a[1])}},cW=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},dW=lo("HTMLFormElement"),fW=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,s){return o.toUpperCase()+s}),iw=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),hW=lo("RegExp"),E_=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};cc(n,(s,a)=>{let u;(u=t(s,a,e))!==!1&&(o[a]=u||s)}),Object.defineProperties(e,o)},pW=e=>{E_(e,(t,n)=>{if(er(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(er(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},mW=(e,t)=>{const n={},o=s=>{s.forEach(a=>{n[a]=!0})};return sl(e)?o(e):o(String(e).split(t)),n},gW=()=>{},yW=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function vW(e){return!!(e&&er(e.append)&&e[S_]==="FormData"&&e[Jf])}const bW=e=>{const t=new Array(10),n=(o,s)=>{if(uc(o)){if(t.indexOf(o)>=0)return;if(lc(o))return o;if(!("toJSON"in o)){t[s]=o;const a=sl(o)?[]:{};return cc(o,(u,c)=>{const f=n(u,s+1);!Za(f)&&(a[c]=f)}),t[s]=void 0,a}}return o};return n(e,0)},SW=lo("AsyncFunction"),xW=e=>e&&(uc(e)||er(e))&&er(e.then)&&er(e.catch),T_=((e,t)=>e?setImmediate:t?((n,o)=>(ms.addEventListener("message",({source:s,data:a})=>{s===ms&&a===n&&o.length&&o.shift()()},!1),s=>{o.push(s),ms.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",er(ms.postMessage)),wW=typeof queueMicrotask<"u"?queueMicrotask.bind(ms):typeof process<"u"&&process.nextTick||T_,CW=e=>e!=null&&er(e[Jf]),K={isArray:sl,isArrayBuffer:x_,isBuffer:lc,isFormData:Q8,isArrayBufferView:F8,isString:L8,isNumber:w_,isBoolean:z8,isObject:uc,isPlainObject:of,isEmptyObject:$8,isReadableStream:X8,isRequest:Z8,isResponse:J8,isHeaders:eW,isUndefined:Za,isDate:B8,isFile:V8,isReactNativeBlob:U8,isReactNative:W8,isBlob:H8,isRegExp:hW,isFunction:er,isStream:K8,isURLSearchParams:Y8,isTypedArray:lW,isFileList:q8,forEach:cc,merge:ny,extend:nW,trim:tW,stripBOM:rW,inherits:oW,toFlatObject:iW,kindOf:eh,kindOfTest:lo,endsWith:sW,toArray:aW,forEachEntry:uW,matchAll:cW,isHTMLForm:dW,hasOwnProperty:iw,hasOwnProp:iw,reduceDescriptors:E_,freezeMethods:pW,toObjectSet:mW,toCamelCase:fW,noop:gW,toFiniteNumber:yW,findKey:C_,global:ms,isContextDefined:k_,isSpecCompliantForm:vW,toJSONObject:bW,isAsyncFn:SW,isThenable:xW,setImmediate:T_,asap:wW,isIterable:CW};let De=class __ extends Error{static from(t,n,o,s,a,u){const c=new __(t.message,n||t.code,o,s,a);return c.cause=t,c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),u&&Object.assign(c,u),c}constructor(t,n,o,s,a){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),o&&(this.config=o),s&&(this.request=s),a&&(this.response=a,this.status=a.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:K.toJSONObject(this.config),code:this.code,status:this.status}}};De.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";De.ERR_BAD_OPTION="ERR_BAD_OPTION";De.ECONNABORTED="ECONNABORTED";De.ETIMEDOUT="ETIMEDOUT";De.ERR_NETWORK="ERR_NETWORK";De.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";De.ERR_DEPRECATED="ERR_DEPRECATED";De.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";De.ERR_BAD_REQUEST="ERR_BAD_REQUEST";De.ERR_CANCELED="ERR_CANCELED";De.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";De.ERR_INVALID_URL="ERR_INVALID_URL";const kW=null;function ry(e){return K.isPlainObject(e)||K.isArray(e)}function P_(e){return K.endsWith(e,"[]")?e.slice(0,-2):e}function Bm(e,t,n){return e?e.concat(t).map(function(s,a){return s=P_(s),!n&&a?"["+s+"]":s}).join(n?".":""):t}function EW(e){return K.isArray(e)&&!e.some(ry)}const TW=K.toFlatObject(K,{},null,function(t){return/^is[A-Z]/.test(t)});function nh(e,t,n){if(!K.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=K.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,w){return!K.isUndefined(w[S])});const o=n.metaTokens,s=n.visitor||h,a=n.dots,u=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&K.isSpecCompliantForm(t);if(!K.isFunction(s))throw new TypeError("visitor must be a function");function p(x){if(x===null)return"";if(K.isDate(x))return x.toISOString();if(K.isBoolean(x))return x.toString();if(!f&&K.isBlob(x))throw new De("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(x)||K.isTypedArray(x)?f&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function h(x,S,w){let T=x;if(K.isReactNative(t)&&K.isReactNativeBlob(x))return t.append(Bm(w,S,a),p(x)),!1;if(x&&!w&&typeof x=="object"){if(K.endsWith(S,"{}"))S=o?S:S.slice(0,-2),x=JSON.stringify(x);else if(K.isArray(x)&&EW(x)||(K.isFileList(x)||K.endsWith(S,"[]"))&&(T=K.toArray(x)))return S=P_(S),T.forEach(function(_,N){!(K.isUndefined(_)||_===null)&&t.append(u===!0?Bm([S],N,a):u===null?S:S+"[]",p(_))}),!1}return ry(x)?!0:(t.append(Bm(w,S,a),p(x)),!1)}const g=[],v=Object.assign(TW,{defaultVisitor:h,convertValue:p,isVisitable:ry});function k(x,S){if(!K.isUndefined(x)){if(g.indexOf(x)!==-1)throw Error("Circular reference detected in "+S.join("."));g.push(x),K.forEach(x,function(T,A){(!(K.isUndefined(T)||T===null)&&s.call(t,T,K.isString(A)?A.trim():A,S,v))===!0&&k(T,S?S.concat(A):[A])}),g.pop()}}if(!K.isObject(e))throw new TypeError("data must be an object");return k(e),t}function sw(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Vv(e,t){this._pairs=[],e&&nh(e,this,t)}const R_=Vv.prototype;R_.append=function(t,n){this._pairs.push([t,n])};R_.toString=function(t){const n=t?function(o){return t.call(this,o,sw)}:sw;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function _W(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function A_(e,t,n){if(!t)return e;const o=n&&n.encode||_W,s=K.isFunction(n)?{serialize:n}:n,a=s&&s.serialize;let u;if(a?u=a(t,s):u=K.isURLSearchParams(t)?t.toString():new Vv(t,s).toString(o),u){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class aw{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){K.forEach(this.handlers,function(o){o!==null&&t(o)})}}const Uv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},PW=typeof URLSearchParams<"u"?URLSearchParams:Vv,RW=typeof FormData<"u"?FormData:null,AW=typeof Blob<"u"?Blob:null,OW={isBrowser:!0,classes:{URLSearchParams:PW,FormData:RW,Blob:AW},protocols:["http","https","file","blob","url","data"]},Wv=typeof window<"u"&&typeof document<"u",oy=typeof navigator=="object"&&navigator||void 0,jW=Wv&&(!oy||["ReactNative","NativeScript","NS"].indexOf(oy.product)<0),MW=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",IW=Wv&&window.location.href||"http://localhost",NW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Wv,hasStandardBrowserEnv:jW,hasStandardBrowserWebWorkerEnv:MW,navigator:oy,origin:IW},Symbol.toStringTag,{value:"Module"})),An={...NW,...OW};function DW(e,t){return nh(e,new An.classes.URLSearchParams,{visitor:function(n,o,s,a){return An.isNode&&K.isBuffer(n)?(this.append(o,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function FW(e){return K.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function LW(e){const t={},n=Object.keys(e);let o;const s=n.length;let a;for(o=0;o<s;o++)a=n[o],t[a]=e[a];return t}function O_(e){function t(n,o,s,a){let u=n[a++];if(u==="__proto__")return!0;const c=Number.isFinite(+u),f=a>=n.length;return u=!u&&K.isArray(s)?s.length:u,f?(K.hasOwnProp(s,u)?s[u]=[s[u],o]:s[u]=o,!c):((!s[u]||!K.isObject(s[u]))&&(s[u]=[]),t(n,o,s[u],a)&&K.isArray(s[u])&&(s[u]=LW(s[u])),!c)}if(K.isFormData(e)&&K.isFunction(e.entries)){const n={};return K.forEachEntry(e,(o,s)=>{t(FW(o),s,n,0)}),n}return null}function zW(e,t,n){if(K.isString(e))try{return(t||JSON.parse)(e),K.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const dc={transitional:Uv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",s=o.indexOf("application/json")>-1,a=K.isObject(t);if(a&&K.isHTMLForm(t)&&(t=new FormData(t)),K.isFormData(t))return s?JSON.stringify(O_(t)):t;if(K.isArrayBuffer(t)||K.isBuffer(t)||K.isStream(t)||K.isFile(t)||K.isBlob(t)||K.isReadableStream(t))return t;if(K.isArrayBufferView(t))return t.buffer;if(K.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(a){if(o.indexOf("application/x-www-form-urlencoded")>-1)return DW(t,this.formSerializer).toString();if((c=K.isFileList(t))||o.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return nh(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||s?(n.setContentType("application/json",!1),zW(t)):t}],transformResponse:[function(t){const n=this.transitional||dc.transitional,o=n&&n.forcedJSONParsing,s=this.responseType==="json";if(K.isResponse(t)||K.isReadableStream(t))return t;if(t&&K.isString(t)&&(o&&!this.responseType||s)){const u=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(c){if(u)throw c.name==="SyntaxError"?De.from(c,De.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:An.classes.FormData,Blob:An.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};K.forEach(["delete","get","head","post","put","patch"],e=>{dc.headers[e]={}});const $W=K.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"]),BW=e=>{const t={};let n,o,s;return e&&e.split(`
|
||
`).forEach(function(u){s=u.indexOf(":"),n=u.substring(0,s).trim().toLowerCase(),o=u.substring(s+1).trim(),!(!n||t[n]&&$W[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},lw=Symbol("internals");function Gl(e){return e&&String(e).trim().toLowerCase()}function sf(e){return e===!1||e==null?e:K.isArray(e)?e.map(sf):String(e)}function VW(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const UW=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vm(e,t,n,o,s){if(K.isFunction(o))return o.call(this,t,n);if(s&&(t=n),!!K.isString(t)){if(K.isString(o))return t.indexOf(o)!==-1;if(K.isRegExp(o))return o.test(t)}}function WW(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function HW(e,t){const n=K.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(s,a,u){return this[o].call(this,t,s,a,u)},configurable:!0})})}let tr=class{constructor(t){t&&this.set(t)}set(t,n,o){const s=this;function a(c,f,p){const h=Gl(f);if(!h)throw new Error("header name must be a non-empty string");const g=K.findKey(s,h);(!g||s[g]===void 0||p===!0||p===void 0&&s[g]!==!1)&&(s[g||f]=sf(c))}const u=(c,f)=>K.forEach(c,(p,h)=>a(p,h,f));if(K.isPlainObject(t)||t instanceof this.constructor)u(t,n);else if(K.isString(t)&&(t=t.trim())&&!UW(t))u(BW(t),n);else if(K.isObject(t)&&K.isIterable(t)){let c={},f,p;for(const h of t){if(!K.isArray(h))throw TypeError("Object iterator must return a key-value pair");c[p=h[0]]=(f=c[p])?K.isArray(f)?[...f,h[1]]:[f,h[1]]:h[1]}u(c,n)}else t!=null&&a(n,t,o);return this}get(t,n){if(t=Gl(t),t){const o=K.findKey(this,t);if(o){const s=this[o];if(!n)return s;if(n===!0)return VW(s);if(K.isFunction(n))return n.call(this,s,o);if(K.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Gl(t),t){const o=K.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Vm(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let s=!1;function a(u){if(u=Gl(u),u){const c=K.findKey(o,u);c&&(!n||Vm(o,o[c],c,n))&&(delete o[c],s=!0)}}return K.isArray(t)?t.forEach(a):a(t),s}clear(t){const n=Object.keys(this);let o=n.length,s=!1;for(;o--;){const a=n[o];(!t||Vm(this,this[a],a,t,!0))&&(delete this[a],s=!0)}return s}normalize(t){const n=this,o={};return K.forEach(this,(s,a)=>{const u=K.findKey(o,a);if(u){n[u]=sf(s),delete n[a];return}const c=t?WW(a):String(a).trim();c!==a&&delete n[a],n[c]=sf(s),o[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return K.forEach(this,(o,s)=>{o!=null&&o!==!1&&(n[s]=t&&K.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(s=>o.set(s)),o}static accessor(t){const o=(this[lw]=this[lw]={accessors:{}}).accessors,s=this.prototype;function a(u){const c=Gl(u);o[c]||(HW(s,u),o[c]=!0)}return K.isArray(t)?t.forEach(a):a(t),this}};tr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);K.reduceDescriptors(tr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}});K.freezeMethods(tr);function Um(e,t){const n=this||dc,o=t||n,s=tr.from(o.headers);let a=o.data;return K.forEach(e,function(c){a=c.call(n,a,s.normalize(),t?t.status:void 0)}),s.normalize(),a}function j_(e){return!!(e&&e.__CANCEL__)}let fc=class extends De{constructor(t,n,o){super(t??"canceled",De.ERR_CANCELED,n,o),this.name="CanceledError",this.__CANCEL__=!0}};function M_(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new De("Request failed with status code "+n.status,[De.ERR_BAD_REQUEST,De.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function qW(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function KW(e,t){e=e||10;const n=new Array(e),o=new Array(e);let s=0,a=0,u;return t=t!==void 0?t:1e3,function(f){const p=Date.now(),h=o[a];u||(u=p),n[s]=f,o[s]=p;let g=a,v=0;for(;g!==s;)v+=n[g++],g=g%e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),p-u<t)return;const k=h&&p-h;return k?Math.round(v*1e3/k):void 0}}function GW(e,t){let n=0,o=1e3/t,s,a;const u=(p,h=Date.now())=>{n=h,s=null,a&&(clearTimeout(a),a=null),e(...p)};return[(...p)=>{const h=Date.now(),g=h-n;g>=o?u(p,h):(s=p,a||(a=setTimeout(()=>{a=null,u(s)},o-g)))},()=>s&&u(s)]}const Af=(e,t,n=3)=>{let o=0;const s=KW(50,250);return GW(a=>{const u=a.loaded,c=a.lengthComputable?a.total:void 0,f=u-o,p=s(f),h=u<=c;o=u;const g={loaded:u,total:c,progress:c?u/c:void 0,bytes:f,rate:p||void 0,estimated:p&&c&&h?(c-u)/p:void 0,event:a,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(g)},n)},uw=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},cw=e=>(...t)=>K.asap(()=>e(...t)),QW=An.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,An.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(An.origin),An.navigator&&/(msie|trident)/i.test(An.navigator.userAgent)):()=>!0,YW=An.hasStandardBrowserEnv?{write(e,t,n,o,s,a,u){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];K.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),K.isString(o)&&c.push(`path=${o}`),K.isString(s)&&c.push(`domain=${s}`),a===!0&&c.push("secure"),K.isString(u)&&c.push(`SameSite=${u}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function XW(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ZW(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function I_(e,t,n){let o=!XW(t);return e&&(o||n==!1)?ZW(e,t):t}const dw=e=>e instanceof tr?{...e}:e;function As(e,t){t=t||{};const n={};function o(p,h,g,v){return K.isPlainObject(p)&&K.isPlainObject(h)?K.merge.call({caseless:v},p,h):K.isPlainObject(h)?K.merge({},h):K.isArray(h)?h.slice():h}function s(p,h,g,v){if(K.isUndefined(h)){if(!K.isUndefined(p))return o(void 0,p,g,v)}else return o(p,h,g,v)}function a(p,h){if(!K.isUndefined(h))return o(void 0,h)}function u(p,h){if(K.isUndefined(h)){if(!K.isUndefined(p))return o(void 0,p)}else return o(void 0,h)}function c(p,h,g){if(g in t)return o(p,h);if(g in e)return o(void 0,p)}const f={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:c,headers:(p,h,g)=>s(dw(p),dw(h),g,!0)};return K.forEach(Object.keys({...e,...t}),function(h){if(h==="__proto__"||h==="constructor"||h==="prototype")return;const g=K.hasOwnProp(f,h)?f[h]:s,v=g(e[h],t[h],h);K.isUndefined(v)&&g!==c||(n[h]=v)}),n}const N_=e=>{const t=As({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:a,headers:u,auth:c}=t;if(t.headers=u=tr.from(u),t.url=A_(I_(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&u.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),K.isFormData(n)){if(An.hasStandardBrowserEnv||An.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if(K.isFunction(n.getHeaders)){const f=n.getHeaders(),p=["content-type","content-length"];Object.entries(f).forEach(([h,g])=>{p.includes(h.toLowerCase())&&u.set(h,g)})}}if(An.hasStandardBrowserEnv&&(o&&K.isFunction(o)&&(o=o(t)),o||o!==!1&&QW(t.url))){const f=s&&a&&YW.read(a);f&&u.set(s,f)}return t},JW=typeof XMLHttpRequest<"u",e9=JW&&function(e){return new Promise(function(n,o){const s=N_(e);let a=s.data;const u=tr.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:p}=s,h,g,v,k,x;function S(){k&&k(),x&&x(),s.cancelToken&&s.cancelToken.unsubscribe(h),s.signal&&s.signal.removeEventListener("abort",h)}let w=new XMLHttpRequest;w.open(s.method.toUpperCase(),s.url,!0),w.timeout=s.timeout;function T(){if(!w)return;const _=tr.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),R={data:!c||c==="text"||c==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:_,config:e,request:w};M_(function(D){n(D),S()},function(D){o(D),S()},R),w=null}"onloadend"in w?w.onloadend=T:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(T)},w.onabort=function(){w&&(o(new De("Request aborted",De.ECONNABORTED,e,w)),w=null)},w.onerror=function(N){const R=N&&N.message?N.message:"Network Error",F=new De(R,De.ERR_NETWORK,e,w);F.event=N||null,o(F),w=null},w.ontimeout=function(){let N=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const R=s.transitional||Uv;s.timeoutErrorMessage&&(N=s.timeoutErrorMessage),o(new De(N,R.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,e,w)),w=null},a===void 0&&u.setContentType(null),"setRequestHeader"in w&&K.forEach(u.toJSON(),function(N,R){w.setRequestHeader(R,N)}),K.isUndefined(s.withCredentials)||(w.withCredentials=!!s.withCredentials),c&&c!=="json"&&(w.responseType=s.responseType),p&&([v,x]=Af(p,!0),w.addEventListener("progress",v)),f&&w.upload&&([g,k]=Af(f),w.upload.addEventListener("progress",g),w.upload.addEventListener("loadend",k)),(s.cancelToken||s.signal)&&(h=_=>{w&&(o(!_||_.type?new fc(null,e,w):_),w.abort(),w=null)},s.cancelToken&&s.cancelToken.subscribe(h),s.signal&&(s.signal.aborted?h():s.signal.addEventListener("abort",h)));const A=qW(s.url);if(A&&An.protocols.indexOf(A)===-1){o(new De("Unsupported protocol "+A+":",De.ERR_BAD_REQUEST,e));return}w.send(a||null)})},t9=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let o=new AbortController,s;const a=function(p){if(!s){s=!0,c();const h=p instanceof Error?p:this.reason;o.abort(h instanceof De?h:new fc(h instanceof Error?h.message:h))}};let u=t&&setTimeout(()=>{u=null,a(new De(`timeout of ${t}ms exceeded`,De.ETIMEDOUT))},t);const c=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(a):p.removeEventListener("abort",a)}),e=null)};e.forEach(p=>p.addEventListener("abort",a));const{signal:f}=o;return f.unsubscribe=()=>K.asap(c),f}},n9=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let o=0,s;for(;o<n;)s=o+t,yield e.slice(o,s),o=s},r9=async function*(e,t){for await(const n of o9(e))yield*n9(n,t)},o9=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:o}=await t.read();if(n)break;yield o}}finally{await t.cancel()}},fw=(e,t,n,o)=>{const s=r9(e,t);let a=0,u,c=f=>{u||(u=!0,o&&o(f))};return new ReadableStream({async pull(f){try{const{done:p,value:h}=await s.next();if(p){c(),f.close();return}let g=h.byteLength;if(n){let v=a+=g;n(v)}f.enqueue(new Uint8Array(h))}catch(p){throw c(p),p}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},hw=64*1024,{isFunction:Md}=K,i9=(({Request:e,Response:t})=>({Request:e,Response:t}))(K.global),{ReadableStream:pw,TextEncoder:mw}=K.global,gw=(e,...t)=>{try{return!!e(...t)}catch{return!1}},s9=e=>{e=K.merge.call({skipUndefined:!0},i9,e);const{fetch:t,Request:n,Response:o}=e,s=t?Md(t):typeof fetch=="function",a=Md(n),u=Md(o);if(!s)return!1;const c=s&&Md(pw),f=s&&(typeof mw=="function"?(x=>S=>x.encode(S))(new mw):async x=>new Uint8Array(await new n(x).arrayBuffer())),p=a&&c&&gw(()=>{let x=!1;const S=new n(An.origin,{body:new pw,method:"POST",get duplex(){return x=!0,"half"}}).headers.has("Content-Type");return x&&!S}),h=u&&c&&gw(()=>K.isReadableStream(new o("").body)),g={stream:h&&(x=>x.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(x=>{!g[x]&&(g[x]=(S,w)=>{let T=S&&S[x];if(T)return T.call(S);throw new De(`Response type '${x}' is not supported`,De.ERR_NOT_SUPPORT,w)})});const v=async x=>{if(x==null)return 0;if(K.isBlob(x))return x.size;if(K.isSpecCompliantForm(x))return(await new n(An.origin,{method:"POST",body:x}).arrayBuffer()).byteLength;if(K.isArrayBufferView(x)||K.isArrayBuffer(x))return x.byteLength;if(K.isURLSearchParams(x)&&(x=x+""),K.isString(x))return(await f(x)).byteLength},k=async(x,S)=>{const w=K.toFiniteNumber(x.getContentLength());return w??v(S)};return async x=>{let{url:S,method:w,data:T,signal:A,cancelToken:_,timeout:N,onDownloadProgress:R,onUploadProgress:F,responseType:D,headers:U,withCredentials:X="same-origin",fetchOptions:ne}=N_(x),ee=t||fetch;D=D?(D+"").toLowerCase():"text";let Ee=t9([A,_&&_.toAbortSignal()],N),Te=null;const xe=Ee&&Ee.unsubscribe&&(()=>{Ee.unsubscribe()});let ke;try{if(F&&p&&w!=="get"&&w!=="head"&&(ke=await k(U,T))!==0){let j=new n(S,{method:"POST",body:T,duplex:"half"}),q;if(K.isFormData(T)&&(q=j.headers.get("content-type"))&&U.setContentType(q),j.body){const[Y,ae]=uw(ke,Af(cw(F)));T=fw(j.body,hw,Y,ae)}}K.isString(X)||(X=X?"include":"omit");const _e=a&&"credentials"in n.prototype,ue={...ne,signal:Ee,method:w.toUpperCase(),headers:U.normalize().toJSON(),body:T,duplex:"half",credentials:_e?X:void 0};Te=a&&new n(S,ue);let B=await(a?ee(Te,ne):ee(S,ue));const se=h&&(D==="stream"||D==="response");if(h&&(R||se&&xe)){const j={};["status","statusText","headers"].forEach(le=>{j[le]=B[le]});const q=K.toFiniteNumber(B.headers.get("content-length")),[Y,ae]=R&&uw(q,Af(cw(R),!0))||[];B=new o(fw(B.body,hw,Y,()=>{ae&&ae(),xe&&xe()}),j)}D=D||"text";let Q=await g[K.findKey(g,D)||"text"](B,x);return!se&&xe&&xe(),await new Promise((j,q)=>{M_(j,q,{data:Q,headers:tr.from(B.headers),status:B.status,statusText:B.statusText,config:x,request:Te})})}catch(_e){throw xe&&xe(),_e&&_e.name==="TypeError"&&/Load failed|fetch/i.test(_e.message)?Object.assign(new De("Network Error",De.ERR_NETWORK,x,Te,_e&&_e.response),{cause:_e.cause||_e}):De.from(_e,_e&&_e.code,x,Te,_e&&_e.response)}}},a9=new Map,D_=e=>{let t=e&&e.env||{};const{fetch:n,Request:o,Response:s}=t,a=[o,s,n];let u=a.length,c=u,f,p,h=a9;for(;c--;)f=a[c],p=h.get(f),p===void 0&&h.set(f,p=c?new Map:s9(t)),h=p;return p};D_();const Hv={http:kW,xhr:e9,fetch:{get:D_}};K.forEach(Hv,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const yw=e=>`- ${e}`,l9=e=>K.isFunction(e)||e===null||e===!1;function u9(e,t){e=K.isArray(e)?e:[e];const{length:n}=e;let o,s;const a={};for(let u=0;u<n;u++){o=e[u];let c;if(s=o,!l9(o)&&(s=Hv[(c=String(o)).toLowerCase()],s===void 0))throw new De(`Unknown adapter '${c}'`);if(s&&(K.isFunction(s)||(s=s.get(t))))break;a[c||"#"+u]=s}if(!s){const u=Object.entries(a).map(([f,p])=>`adapter ${f} `+(p===!1?"is not supported by the environment":"is not available in the build"));let c=n?u.length>1?`since :
|
||
`+u.map(yw).join(`
|
||
`):" "+yw(u[0]):"as no adapter specified";throw new De("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const F_={getAdapter:u9,adapters:Hv};function Wm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fc(null,e)}function vw(e){return Wm(e),e.headers=tr.from(e.headers),e.data=Um.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),F_.getAdapter(e.adapter||dc.adapter,e)(e).then(function(o){return Wm(e),o.data=Um.call(e,e.transformResponse,o),o.headers=tr.from(o.headers),o},function(o){return j_(o)||(Wm(e),o&&o.response&&(o.response.data=Um.call(e,e.transformResponse,o.response),o.response.headers=tr.from(o.response.headers))),Promise.reject(o)})}const L_="1.13.6",rh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{rh[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const bw={};rh.transitional=function(t,n,o){function s(a,u){return"[Axios v"+L_+"] Transitional option '"+a+"'"+u+(o?". "+o:"")}return(a,u,c)=>{if(t===!1)throw new De(s(u," has been removed"+(n?" in "+n:"")),De.ERR_DEPRECATED);return n&&!bw[u]&&(bw[u]=!0,console.warn(s(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,u,c):!0}};rh.spelling=function(t){return(n,o)=>(console.warn(`${o} is likely a misspelling of ${t}`),!0)};function c9(e,t,n){if(typeof e!="object")throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let s=o.length;for(;s-- >0;){const a=o[s],u=t[a];if(u){const c=e[a],f=c===void 0||u(c,a,e);if(f!==!0)throw new De("option "+a+" must be "+f,De.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new De("Unknown option "+a,De.ERR_BAD_OPTION)}}const af={assertOptions:c9,validators:rh},jr=af.validators;let Cs=class{constructor(t){this.defaults=t||{},this.interceptors={request:new aw,response:new aw}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const a=s.stack?s.stack.replace(/^.+\n/,""):"";try{o.stack?a&&!String(o.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(o.stack+=`
|
||
`+a):o.stack=a}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=As(this.defaults,n);const{transitional:o,paramsSerializer:s,headers:a}=n;o!==void 0&&af.assertOptions(o,{silentJSONParsing:jr.transitional(jr.boolean),forcedJSONParsing:jr.transitional(jr.boolean),clarifyTimeoutError:jr.transitional(jr.boolean),legacyInterceptorReqResOrdering:jr.transitional(jr.boolean)},!1),s!=null&&(K.isFunction(s)?n.paramsSerializer={serialize:s}:af.assertOptions(s,{encode:jr.function,serialize:jr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),af.assertOptions(n,{baseUrl:jr.spelling("baseURL"),withXsrfToken:jr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=a&&K.merge(a.common,a[n.method]);a&&K.forEach(["delete","get","head","post","put","patch","common"],x=>{delete a[x]}),n.headers=tr.concat(u,a);const c=[];let f=!0;this.interceptors.request.forEach(function(S){if(typeof S.runWhen=="function"&&S.runWhen(n)===!1)return;f=f&&S.synchronous;const w=n.transitional||Uv;w&&w.legacyInterceptorReqResOrdering?c.unshift(S.fulfilled,S.rejected):c.push(S.fulfilled,S.rejected)});const p=[];this.interceptors.response.forEach(function(S){p.push(S.fulfilled,S.rejected)});let h,g=0,v;if(!f){const x=[vw.bind(this),void 0];for(x.unshift(...c),x.push(...p),v=x.length,h=Promise.resolve(n);g<v;)h=h.then(x[g++],x[g++]);return h}v=c.length;let k=n;for(;g<v;){const x=c[g++],S=c[g++];try{k=x(k)}catch(w){S.call(this,w);break}}try{h=vw.call(this,k)}catch(x){return Promise.reject(x)}for(g=0,v=p.length;g<v;)h=h.then(p[g++],p[g++]);return h}getUri(t){t=As(this.defaults,t);const n=I_(t.baseURL,t.url,t.allowAbsoluteUrls);return A_(n,t.params,t.paramsSerializer)}};K.forEach(["delete","get","head","options"],function(t){Cs.prototype[t]=function(n,o){return this.request(As(o||{},{method:t,url:n,data:(o||{}).data}))}});K.forEach(["post","put","patch"],function(t){function n(o){return function(a,u,c){return this.request(As(c||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}Cs.prototype[t]=n(),Cs.prototype[t+"Form"]=n(!0)});let d9=class z_{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const o=this;this.promise.then(s=>{if(!o._listeners)return;let a=o._listeners.length;for(;a-- >0;)o._listeners[a](s);o._listeners=null}),this.promise.then=s=>{let a;const u=new Promise(c=>{o.subscribe(c),a=c}).then(s);return u.cancel=function(){o.unsubscribe(a)},u},t(function(a,u,c){o.reason||(o.reason=new fc(a,u,c),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=o=>{t.abort(o)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new z_(function(s){t=s}),cancel:t}}};function f9(e){return function(n){return e.apply(null,n)}}function h9(e){return K.isObject(e)&&e.isAxiosError===!0}const iy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(iy).forEach(([e,t])=>{iy[t]=e});function $_(e){const t=new Cs(e),n=b_(Cs.prototype.request,t);return K.extend(n,Cs.prototype,t,{allOwnKeys:!0}),K.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return $_(As(e,s))},n}const Vt=$_(dc);Vt.Axios=Cs;Vt.CanceledError=fc;Vt.CancelToken=d9;Vt.isCancel=j_;Vt.VERSION=L_;Vt.toFormData=nh;Vt.AxiosError=De;Vt.Cancel=Vt.CanceledError;Vt.all=function(t){return Promise.all(t)};Vt.spread=f9;Vt.isAxiosError=h9;Vt.mergeConfig=As;Vt.AxiosHeaders=tr;Vt.formToJSON=e=>O_(K.isHTMLForm(e)?new FormData(e):e);Vt.getAdapter=F_.getAdapter;Vt.HttpStatusCode=iy;Vt.default=Vt;const{Axios:fH,AxiosError:hH,CanceledError:pH,isCancel:mH,CancelToken:gH,VERSION:yH,all:vH,Cancel:bH,isAxiosError:SH,spread:xH,toFormData:wH,AxiosHeaders:CH,HttpStatusCode:kH,formToJSON:EH,getAdapter:TH,mergeConfig:_H}=Vt;var p9={REACT_APP_API_URL:"/api/v1/eshop"};const m9=p9.REACT_APP_API_URL,vr=Vt.create({baseURL:m9,withCredentials:!0,timeout:2e4});let Ql=null;function B_(){if(Ql)return Ql;if(typeof window>"u")return Ql=`eshop-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`,Ql;const e="eshop_session_token",t=window.localStorage.getItem(e);let n;t?n=t:(window.crypto&&typeof window.crypto.randomUUID=="function"?n=window.crypto.randomUUID():n=`eshop-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`,window.localStorage.setItem(e,n));try{document.cookie=`eshop_session_token=${n}; path=/; max-age=31536000`}catch{}return Ql=n,n}vr.interceptors.request.use(e=>{const t=B_(),n=e.headers||{};return"X-Session-Token"in n||(n["X-Session-Token"]=t),e.headers=n,e});async function g9(){return(await vr.get("/products")).data.data}async function y9(e){return(await vr.get(`/products/${encodeURIComponent(e)}`)).data}async function V_(){return(await vr.get("/cart")).data}async function U_(e,t,n){await vr.post("/cart/items",{product_id:e,variant_id:t??void 0,quantity:n})}async function v9(e,t){await vr.patch(`/cart/items/${e}`,{quantity:t})}const b9=async e=>{await vr.delete(`/cart/items/${e}`)};async function S9(e){return(await vr.post("/checkout",e)).data}const x9=async()=>(await vr.get("/shipping/packeta-widget-config")).data;async function w9(e){return(await vr.get(`/orders/${e}`)).data}async function C9(){return(await vr.get("/admin/settings")).data}async function k9(e){return(await vr.put("/admin/settings",e)).data}async function W_(){return(await vr.get("/admin/club-info")).data}const E9=(e,t)=>{const n=e/100;return new Intl.NumberFormat("cs-CZ",{style:"currency",currency:t,minimumFractionDigits:0}).format(n)},T9=()=>{const e=rc(),{data:t,isLoading:n,isError:o}=Rs(["eshop-products"],g9),s=async a=>{try{const u=a.variants&&a.variants.length>0?a.variants[0]:void 0;await U_(a.id,u==null?void 0:u.id,1),e({status:"success",title:"Přidáno do košíku",description:a.name,duration:2e3})}catch{e({status:"error",title:"Chyba",description:"Nepodařilo se přidat do košíku."})}};return n?b.jsx(Ce,{children:"Načítání produktů…"}):o||!t?b.jsx(Ce,{children:"Došlo k chybě při načítání produktů."}):t.length===0?b.jsxs(ht,{children:[b.jsx(kt,{size:"lg",mb:2,children:"E-shop bude brzy spuštěn"}),b.jsx(Ce,{color:"gray.600",children:"Zatím zde nejsou žádné produkty. Ověřte nastavení e-shopu v administraci."})]}):b.jsxs(ht,{children:[b.jsx(kt,{size:"lg",mb:4,children:"Produkty"}),b.jsx(xT,{columns:{base:1,sm:2,md:3},spacing:6,children:t.map(a=>b.jsxs(ht,{borderWidth:"1px",borderRadius:"md",overflow:"hidden",bg:"white",_hover:{boxShadow:"md"},children:[b.jsx(ht,{position:"relative",paddingTop:"70%",overflow:"hidden",children:b.jsx(Mv,{src:a.default_image_url||"/images/placeholder-clothing.jpg",alt:a.name,position:"absolute",top:0,left:0,w:"100%",h:"100%",objectFit:"cover"})}),b.jsxs(tn,{align:"stretch",p:4,spacing:2,children:[b.jsx(Ua,{as:Yo,to:`/produkt/${a.slug}`,fontWeight:"semibold",noOfLines:2,children:a.name}),a.short_description&&b.jsx(Ce,{fontSize:"sm",color:"gray.600",noOfLines:2,children:a.short_description}),b.jsxs(It,{justify:"space-between",mt:1,children:[b.jsx(qf,{colorScheme:"blue",children:E9(a.price_cents,a.currency||"CZK")}),b.jsx(mn,{size:"sm",colorScheme:"blue",onClick:()=>s(a),children:"Do košíku"})]})]})]},a.id))})]})};/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:H_,setPrototypeOf:Sw,isFrozen:_9,getPrototypeOf:P9,getOwnPropertyDescriptor:R9}=Object;let{freeze:Un,seal:Vr,create:lf}=Object,{apply:sy,construct:ay}=typeof Reflect<"u"&&Reflect;Un||(Un=function(t){return t});Vr||(Vr=function(t){return t});sy||(sy=function(t,n){for(var o=arguments.length,s=new Array(o>2?o-2:0),a=2;a<o;a++)s[a-2]=arguments[a];return t.apply(n,s)});ay||(ay=function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return new t(...o)});const Id=Wn(Array.prototype.forEach),A9=Wn(Array.prototype.lastIndexOf),xw=Wn(Array.prototype.pop),Yl=Wn(Array.prototype.push),O9=Wn(Array.prototype.splice),uf=Wn(String.prototype.toLowerCase),Hm=Wn(String.prototype.toString),qm=Wn(String.prototype.match),Xl=Wn(String.prototype.replace),j9=Wn(String.prototype.indexOf),M9=Wn(String.prototype.trim),pr=Wn(Object.prototype.hasOwnProperty),Ln=Wn(RegExp.prototype.test),Zl=I9(TypeError);function Wn(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return sy(e,t,o)}}function I9(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return ay(e,n)}}function qe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:uf;Sw&&Sw(e,null);let o=t.length;for(;o--;){let s=t[o];if(typeof s=="string"){const a=n(s);a!==s&&(_9(t)||(t[o]=a),s=a)}e[s]=!0}return e}function N9(e){for(let t=0;t<e.length;t++)pr(e,t)||(e[t]=null);return e}function wo(e){const t=lf(null);for(const[n,o]of H_(e))pr(e,n)&&(Array.isArray(o)?t[n]=N9(o):o&&typeof o=="object"&&o.constructor===Object?t[n]=wo(o):t[n]=o);return t}function Jl(e,t){for(;e!==null;){const o=R9(e,t);if(o){if(o.get)return Wn(o.get);if(typeof o.value=="function")return Wn(o.value)}e=P9(e)}function n(){return null}return n}const ww=Un(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Km=Un(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Gm=Un(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D9=Un(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Qm=Un(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),F9=Un(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Cw=Un(["#text"]),kw=Un(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ym=Un(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ew=Un(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Nd=Un(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L9=Vr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z9=Vr(/<%[\w\W]*|[\w\W]*%>/gm),$9=Vr(/\$\{[\w\W]*/gm),B9=Vr(/^data-[\-\w.\u00B7-\uFFFF]+$/),V9=Vr(/^aria-[\-\w]+$/),q_=Vr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U9=Vr(/^(?:\w+script|data):/i),W9=Vr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K_=Vr(/^html$/i),H9=Vr(/^[a-z][.\w]*(-[.\w]+)+$/i);var Tw=Object.freeze({__proto__:null,ARIA_ATTR:V9,ATTR_WHITESPACE:W9,CUSTOM_ELEMENT:H9,DATA_ATTR:B9,DOCTYPE_NAME:K_,ERB_EXPR:z9,IS_ALLOWED_URI:q_,IS_SCRIPT_OR_DATA:U9,MUSTACHE_EXPR:L9,TMPLIT_EXPR:$9});const eu={element:1,text:3,progressingInstruction:7,comment:8,document:9},q9=function(){return typeof window>"u"?null:window},K9=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let o=null;const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(o=n.getAttribute(s));const a="dompurify"+(o?"#"+o:"");try{return t.createPolicy(a,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},_w=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function G_(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q9();const t=ve=>G_(ve);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==eu.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const o=n,s=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:u,Node:c,Element:f,NodeFilter:p,NamedNodeMap:h=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:g,DOMParser:v,trustedTypes:k}=e,x=f.prototype,S=Jl(x,"cloneNode"),w=Jl(x,"remove"),T=Jl(x,"nextSibling"),A=Jl(x,"childNodes"),_=Jl(x,"parentNode");if(typeof u=="function"){const ve=n.createElement("template");ve.content&&ve.content.ownerDocument&&(n=ve.content.ownerDocument)}let N,R="";const{implementation:F,createNodeIterator:D,createDocumentFragment:U,getElementsByTagName:X}=n,{importNode:ne}=o;let ee=_w();t.isSupported=typeof H_=="function"&&typeof _=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ee,ERB_EXPR:Te,TMPLIT_EXPR:xe,DATA_ATTR:ke,ARIA_ATTR:_e,IS_SCRIPT_OR_DATA:ue,ATTR_WHITESPACE:B,CUSTOM_ELEMENT:se}=Tw;let{IS_ALLOWED_URI:Q}=Tw,j=null;const q=qe({},[...ww,...Km,...Gm,...Qm,...Cw]);let Y=null;const ae=qe({},[...kw,...Ym,...Ew,...Nd]);let le=Object.seal(lf(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Se=null,ze=null;const Pe=Object.seal(lf(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Be=!0,we=!0,ut=!1,Nt=!0,Dt=!1,de=!0,at=!1,Ye=!1,St=!1,Ft=!1,Lt=!1,zt=!1,vn=!0,bn=!1;const Sn="user-content-";let br=!0,ir=!1,sr={},rn=null;const ie=qe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Xe=null;const gt=qe({},["audio","video","img","source","image","track"]);let At=null;const ar=qe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Sr="http://www.w3.org/1998/Math/MathML",Mo="http://www.w3.org/2000/svg",Qt="http://www.w3.org/1999/xhtml";let jn=Qt,Io=!1,uo=null;const $i=qe({},[Sr,Mo,Qt],Hm);let Ur=qe({},["mi","mo","mn","ms","mtext"]),un=qe({},["annotation-xml"]);const co=qe({},["title","style","font","a","script"]);let xn=null;const Is=["application/xhtml+xml","text/html"],Ns="text/html";let xt=null,Wr=null;const Bi=n.createElement("form"),Mn=function(I){return I instanceof RegExp||I instanceof Function},Hr=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Wr&&Wr===I)){if((!I||typeof I!="object")&&(I={}),I=wo(I),xn=Is.indexOf(I.PARSER_MEDIA_TYPE)===-1?Ns:I.PARSER_MEDIA_TYPE,xt=xn==="application/xhtml+xml"?Hm:uf,j=pr(I,"ALLOWED_TAGS")?qe({},I.ALLOWED_TAGS,xt):q,Y=pr(I,"ALLOWED_ATTR")?qe({},I.ALLOWED_ATTR,xt):ae,uo=pr(I,"ALLOWED_NAMESPACES")?qe({},I.ALLOWED_NAMESPACES,Hm):$i,At=pr(I,"ADD_URI_SAFE_ATTR")?qe(wo(ar),I.ADD_URI_SAFE_ATTR,xt):ar,Xe=pr(I,"ADD_DATA_URI_TAGS")?qe(wo(gt),I.ADD_DATA_URI_TAGS,xt):gt,rn=pr(I,"FORBID_CONTENTS")?qe({},I.FORBID_CONTENTS,xt):ie,Se=pr(I,"FORBID_TAGS")?qe({},I.FORBID_TAGS,xt):wo({}),ze=pr(I,"FORBID_ATTR")?qe({},I.FORBID_ATTR,xt):wo({}),sr=pr(I,"USE_PROFILES")?I.USE_PROFILES:!1,Be=I.ALLOW_ARIA_ATTR!==!1,we=I.ALLOW_DATA_ATTR!==!1,ut=I.ALLOW_UNKNOWN_PROTOCOLS||!1,Nt=I.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Dt=I.SAFE_FOR_TEMPLATES||!1,de=I.SAFE_FOR_XML!==!1,at=I.WHOLE_DOCUMENT||!1,Ft=I.RETURN_DOM||!1,Lt=I.RETURN_DOM_FRAGMENT||!1,zt=I.RETURN_TRUSTED_TYPE||!1,St=I.FORCE_BODY||!1,vn=I.SANITIZE_DOM!==!1,bn=I.SANITIZE_NAMED_PROPS||!1,br=I.KEEP_CONTENT!==!1,ir=I.IN_PLACE||!1,Q=I.ALLOWED_URI_REGEXP||q_,jn=I.NAMESPACE||Qt,Ur=I.MATHML_TEXT_INTEGRATION_POINTS||Ur,un=I.HTML_INTEGRATION_POINTS||un,le=I.CUSTOM_ELEMENT_HANDLING||{},I.CUSTOM_ELEMENT_HANDLING&&Mn(I.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(le.tagNameCheck=I.CUSTOM_ELEMENT_HANDLING.tagNameCheck),I.CUSTOM_ELEMENT_HANDLING&&Mn(I.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(le.attributeNameCheck=I.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),I.CUSTOM_ELEMENT_HANDLING&&typeof I.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(le.allowCustomizedBuiltInElements=I.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Dt&&(we=!1),Lt&&(Ft=!0),sr&&(j=qe({},Cw),Y=lf(null),sr.html===!0&&(qe(j,ww),qe(Y,kw)),sr.svg===!0&&(qe(j,Km),qe(Y,Ym),qe(Y,Nd)),sr.svgFilters===!0&&(qe(j,Gm),qe(Y,Ym),qe(Y,Nd)),sr.mathMl===!0&&(qe(j,Qm),qe(Y,Ew),qe(Y,Nd))),pr(I,"ADD_TAGS")||(Pe.tagCheck=null),pr(I,"ADD_ATTR")||(Pe.attributeCheck=null),I.ADD_TAGS&&(typeof I.ADD_TAGS=="function"?Pe.tagCheck=I.ADD_TAGS:(j===q&&(j=wo(j)),qe(j,I.ADD_TAGS,xt))),I.ADD_ATTR&&(typeof I.ADD_ATTR=="function"?Pe.attributeCheck=I.ADD_ATTR:(Y===ae&&(Y=wo(Y)),qe(Y,I.ADD_ATTR,xt))),I.ADD_URI_SAFE_ATTR&&qe(At,I.ADD_URI_SAFE_ATTR,xt),I.FORBID_CONTENTS&&(rn===ie&&(rn=wo(rn)),qe(rn,I.FORBID_CONTENTS,xt)),I.ADD_FORBID_CONTENTS&&(rn===ie&&(rn=wo(rn)),qe(rn,I.ADD_FORBID_CONTENTS,xt)),br&&(j["#text"]=!0),at&&qe(j,["html","head","body"]),j.table&&(qe(j,["tbody"]),delete Se.tbody),I.TRUSTED_TYPES_POLICY){if(typeof I.TRUSTED_TYPES_POLICY.createHTML!="function")throw Zl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof I.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Zl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');N=I.TRUSTED_TYPES_POLICY,R=N.createHTML("")}else N===void 0&&(N=K9(k,s)),N!==null&&typeof R=="string"&&(R=N.createHTML(""));Un&&Un(I),Wr=I}},ri=qe({},[...Km,...Gm,...D9]),fo=qe({},[...Qm,...F9]),al=function(I){let te=_(I);(!te||!te.tagName)&&(te={namespaceURI:jn,tagName:"template"});const pe=uf(I.tagName),et=uf(te.tagName);return uo[I.namespaceURI]?I.namespaceURI===Mo?te.namespaceURI===Qt?pe==="svg":te.namespaceURI===Sr?pe==="svg"&&(et==="annotation-xml"||Ur[et]):!!ri[pe]:I.namespaceURI===Sr?te.namespaceURI===Qt?pe==="math":te.namespaceURI===Mo?pe==="math"&&un[et]:!!fo[pe]:I.namespaceURI===Qt?te.namespaceURI===Mo&&!un[et]||te.namespaceURI===Sr&&!Ur[et]?!1:!fo[pe]&&(co[pe]||!ri[pe]):!!(xn==="application/xhtml+xml"&&uo[I.namespaceURI]):!1},on=function(I){Yl(t.removed,{element:I});try{_(I).removeChild(I)}catch{w(I)}},Yt=function(I,te){try{Yl(t.removed,{attribute:te.getAttributeNode(I),from:te})}catch{Yl(t.removed,{attribute:null,from:te})}if(te.removeAttribute(I),I==="is")if(Ft||Lt)try{on(te)}catch{}else try{te.setAttribute(I,"")}catch{}},No=function(I){let te=null,pe=null;if(St)I="<remove></remove>"+I;else{const wt=qm(I,/^[\r\n\t ]+/);pe=wt&&wt[0]}xn==="application/xhtml+xml"&&jn===Qt&&(I='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+I+"</body></html>");const et=N?N.createHTML(I):I;if(jn===Qt)try{te=new v().parseFromString(et,xn)}catch{}if(!te||!te.documentElement){te=F.createDocument(jn,"template",null);try{te.documentElement.innerHTML=Io?R:et}catch{}}const $e=te.body||te.documentElement;return I&&pe&&$e.insertBefore(n.createTextNode(pe),$e.childNodes[0]||null),jn===Qt?X.call(te,at?"html":"body")[0]:at?te.documentElement:$e},oi=function(I){return D.call(I.ownerDocument||I,I,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},Vi=function(I){return I instanceof g&&(typeof I.nodeName!="string"||typeof I.textContent!="string"||typeof I.removeChild!="function"||!(I.attributes instanceof h)||typeof I.removeAttribute!="function"||typeof I.setAttribute!="function"||typeof I.namespaceURI!="string"||typeof I.insertBefore!="function"||typeof I.hasChildNodes!="function")},Ds=function(I){return typeof c=="function"&&I instanceof c};function lr(ve,I,te){Id(ve,pe=>{pe.call(t,I,te,Wr)})}const cn=function(I){let te=null;if(lr(ee.beforeSanitizeElements,I,null),Vi(I))return on(I),!0;const pe=xt(I.nodeName);if(lr(ee.uponSanitizeElement,I,{tagName:pe,allowedTags:j}),de&&I.hasChildNodes()&&!Ds(I.firstElementChild)&&Ln(/<[/\w!]/g,I.innerHTML)&&Ln(/<[/\w!]/g,I.textContent)||I.nodeType===eu.progressingInstruction||de&&I.nodeType===eu.comment&&Ln(/<[/\w]/g,I.data))return on(I),!0;if(!(Pe.tagCheck instanceof Function&&Pe.tagCheck(pe))&&(!j[pe]||Se[pe])){if(!Se[pe]&&Wi(pe)&&(le.tagNameCheck instanceof RegExp&&Ln(le.tagNameCheck,pe)||le.tagNameCheck instanceof Function&&le.tagNameCheck(pe)))return!1;if(br&&!rn[pe]){const et=_(I)||I.parentNode,$e=A(I)||I.childNodes;if($e&&et){const wt=$e.length;for(let Tt=wt-1;Tt>=0;--Tt){const In=S($e[Tt],!0);In.__removalCount=(I.__removalCount||0)+1,et.insertBefore(In,T(I))}}}return on(I),!0}return I instanceof f&&!al(I)||(pe==="noscript"||pe==="noembed"||pe==="noframes")&&Ln(/<\/no(script|embed|frames)/i,I.innerHTML)?(on(I),!0):(Dt&&I.nodeType===eu.text&&(te=I.textContent,Id([Ee,Te,xe],et=>{te=Xl(te,et," ")}),I.textContent!==te&&(Yl(t.removed,{element:I.cloneNode()}),I.textContent=te)),lr(ee.afterSanitizeElements,I,null),!1)},Ui=function(I,te,pe){if(ze[te]||vn&&(te==="id"||te==="name")&&(pe in n||pe in Bi))return!1;if(!(we&&!ze[te]&&Ln(ke,te))){if(!(Be&&Ln(_e,te))){if(!(Pe.attributeCheck instanceof Function&&Pe.attributeCheck(te,I))){if(!Y[te]||ze[te]){if(!(Wi(I)&&(le.tagNameCheck instanceof RegExp&&Ln(le.tagNameCheck,I)||le.tagNameCheck instanceof Function&&le.tagNameCheck(I))&&(le.attributeNameCheck instanceof RegExp&&Ln(le.attributeNameCheck,te)||le.attributeNameCheck instanceof Function&&le.attributeNameCheck(te,I))||te==="is"&&le.allowCustomizedBuiltInElements&&(le.tagNameCheck instanceof RegExp&&Ln(le.tagNameCheck,pe)||le.tagNameCheck instanceof Function&&le.tagNameCheck(pe))))return!1}else if(!At[te]){if(!Ln(Q,Xl(pe,B,""))){if(!((te==="src"||te==="xlink:href"||te==="href")&&I!=="script"&&j9(pe,"data:")===0&&Xe[I])){if(!(ut&&!Ln(ue,Xl(pe,B,"")))){if(pe)return!1}}}}}}}return!0},Wi=function(I){return I!=="annotation-xml"&&qm(I,se)},Fs=function(I){lr(ee.beforeSanitizeAttributes,I,null);const{attributes:te}=I;if(!te||Vi(I))return;const pe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let et=te.length;for(;et--;){const $e=te[et],{name:wt,namespaceURI:Tt,value:In}=$e,ur=xt(wt),Hi=In;let Ot=wt==="value"?Hi:M9(Hi);if(pe.attrName=ur,pe.attrValue=Ot,pe.keepAttr=!0,pe.forceKeepAttr=void 0,lr(ee.uponSanitizeAttribute,I,pe),Ot=pe.attrValue,bn&&(ur==="id"||ur==="name")&&(Yt(wt,I),Ot=Sn+Ot),de&&Ln(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ot)){Yt(wt,I);continue}if(ur==="attributename"&&qm(Ot,"href")){Yt(wt,I);continue}if(pe.forceKeepAttr)continue;if(!pe.keepAttr){Yt(wt,I);continue}if(!Nt&&Ln(/\/>/i,Ot)){Yt(wt,I);continue}Dt&&Id([Ee,Te,xe],Nn=>{Ot=Xl(Ot,Nn," ")});const ho=xt(I.nodeName);if(!Ui(ho,ur,Ot)){Yt(wt,I);continue}if(N&&typeof k=="object"&&typeof k.getAttributeType=="function"&&!Tt)switch(k.getAttributeType(ho,ur)){case"TrustedHTML":{Ot=N.createHTML(Ot);break}case"TrustedScriptURL":{Ot=N.createScriptURL(Ot);break}}if(Ot!==Hi)try{Tt?I.setAttributeNS(Tt,wt,Ot):I.setAttribute(wt,Ot),Vi(I)?on(I):xw(t.removed)}catch{Yt(wt,I)}}lr(ee.afterSanitizeAttributes,I,null)},Ls=function ve(I){let te=null;const pe=oi(I);for(lr(ee.beforeSanitizeShadowDOM,I,null);te=pe.nextNode();)lr(ee.uponSanitizeShadowNode,te,null),cn(te),Fs(te),te.content instanceof a&&ve(te.content);lr(ee.afterSanitizeShadowDOM,I,null)};return t.sanitize=function(ve){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=null,pe=null,et=null,$e=null;if(Io=!ve,Io&&(ve="<!-->"),typeof ve!="string"&&!Ds(ve))if(typeof ve.toString=="function"){if(ve=ve.toString(),typeof ve!="string")throw Zl("dirty is not a string, aborting")}else throw Zl("toString is not a function");if(!t.isSupported)return ve;if(Ye||Hr(I),t.removed=[],typeof ve=="string"&&(ir=!1),ir){if(ve.nodeName){const In=xt(ve.nodeName);if(!j[In]||Se[In])throw Zl("root node is forbidden and cannot be sanitized in-place")}}else if(ve instanceof c)te=No("<!---->"),pe=te.ownerDocument.importNode(ve,!0),pe.nodeType===eu.element&&pe.nodeName==="BODY"||pe.nodeName==="HTML"?te=pe:te.appendChild(pe);else{if(!Ft&&!Dt&&!at&&ve.indexOf("<")===-1)return N&&zt?N.createHTML(ve):ve;if(te=No(ve),!te)return Ft?null:zt?R:""}te&&St&&on(te.firstChild);const wt=oi(ir?ve:te);for(;et=wt.nextNode();)cn(et),Fs(et),et.content instanceof a&&Ls(et.content);if(ir)return ve;if(Ft){if(Lt)for($e=U.call(te.ownerDocument);te.firstChild;)$e.appendChild(te.firstChild);else $e=te;return(Y.shadowroot||Y.shadowrootmode)&&($e=ne.call(o,$e,!0)),$e}let Tt=at?te.outerHTML:te.innerHTML;return at&&j["!doctype"]&&te.ownerDocument&&te.ownerDocument.doctype&&te.ownerDocument.doctype.name&&Ln(K_,te.ownerDocument.doctype.name)&&(Tt="<!DOCTYPE "+te.ownerDocument.doctype.name+`>
|
||
`+Tt),Dt&&Id([Ee,Te,xe],In=>{Tt=Xl(Tt,In," ")}),N&&zt?N.createHTML(Tt):Tt},t.setConfig=function(){let ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Hr(ve),Ye=!0},t.clearConfig=function(){Wr=null,Ye=!1},t.isValidAttribute=function(ve,I,te){Wr||Hr({});const pe=xt(ve),et=xt(I);return Ui(pe,et,te)},t.addHook=function(ve,I){typeof I=="function"&&Yl(ee[ve],I)},t.removeHook=function(ve,I){if(I!==void 0){const te=A9(ee[ve],I);return te===-1?void 0:O9(ee[ve],te,1)[0]}return xw(ee[ve])},t.removeHooks=function(ve){ee[ve]=[]},t.removeAllHooks=function(){ee=_w()},t}var G9=G_();const Q9=["iframe"],Y9=["allow","allowfullscreen","class","rel","style","target"];function X9(e){const t=G9.sanitize(e??"",{USE_PROFILES:{html:!0},ADD_TAGS:Q9,ADD_ATTR:Y9});if(typeof window>"u"||!t)return t;const n=window.document.createElement("template");return n.innerHTML=t,n.content.querySelectorAll('a[target="_blank"]').forEach(o=>{const s=new Set((o.getAttribute("rel")??"").split(/\s+/).filter(Boolean));s.add("noopener"),s.add("noreferrer"),o.setAttribute("rel",Array.from(s).join(" "))}),n.innerHTML}const Z9=(e,t)=>{const n=e/100;return new Intl.NumberFormat("cs-CZ",{style:"currency",currency:t,minimumFractionDigits:0}).format(n)},J9=()=>{const{slug:e}=EU(),t=rc(),{data:n,isLoading:o,isError:s}=Rs(["eshop-product",e],()=>y9(e||""),{enabled:!!e}),[a,u]=C.useState(void 0),c=Le.useMemo(()=>X9(n==null?void 0:n.description_html),[n==null?void 0:n.description_html]);if(o)return b.jsx(Ce,{children:"Načítání produktu…"});if(s||!n)return b.jsx(Ce,{children:"Produkt nebyl nalezen."});const f=n.variants||[],p=async()=>{try{const h=f.find(g=>g.id===a);await U_(n.id,h==null?void 0:h.id,1),t({status:"success",title:"Přidáno do košíku",description:n.name,duration:2e3})}catch{t({status:"error",title:"Chyba",description:"Nepodařilo se přidat do košíku."})}};return b.jsx(ht,{children:b.jsxs(It,{align:"flex-start",spacing:8,flexWrap:"wrap",children:[b.jsx(ht,{flex:"0 0 320px",maxW:"100%",children:b.jsx(Mv,{src:n.default_image_url||"/images/placeholder-clothing.jpg",alt:n.name,w:"100%",borderRadius:"md",mb:4})}),b.jsxs(tn,{align:"stretch",spacing:4,flex:"1",children:[b.jsx(kt,{size:"lg",children:n.name}),b.jsx(qf,{colorScheme:"blue",fontSize:"md",alignSelf:"flex-start",children:Z9(n.price_cents,n.currency||"CZK")}),n.short_description&&b.jsx(Ce,{color:"gray.700",children:n.short_description}),f.length>0&&b.jsxs(ht,{children:[b.jsx(Ce,{fontWeight:"medium",mb:1,children:"Varianta"}),b.jsx(Ef,{placeholder:"Vyberte variantu",value:a??"",onChange:h=>u(h.target.value?Number(h.target.value):void 0),maxW:"260px",children:f.map(h=>b.jsx("option",{value:h.id,children:h.name||h.sku||`Varianta #${h.id}`},h.id))})]}),b.jsx(mn,{colorScheme:"blue",onClick:p,maxW:"260px",children:"Přidat do košíku"}),c&&b.jsx(ht,{mt:4,fontSize:"sm",color:"gray.700",children:b.jsx("div",{dangerouslySetInnerHTML:{__html:c}})})]})]})})};var Q_={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Pw=Le.createContext&&Le.createContext(Q_),e7=["attr","size","title"];function t7(e,t){if(e==null)return{};var n,o,s=n7(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function n7(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function Of(){return Of=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Of.apply(null,arguments)}function Rw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,o)}return n}function jf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rw(Object(n),!0).forEach(function(o){r7(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rw(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function r7(e,t,n){return(t=o7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o7(e){var t=i7(e,"string");return typeof t=="symbol"?t:t+""}function i7(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Y_(e){return e&&e.map((t,n)=>Le.createElement(t.tag,jf({key:n},t.attr),Y_(t.child)))}function hc(e){return t=>Le.createElement(s7,Of({attr:jf({},e.attr)},t),Y_(e.child))}function s7(e){var t=n=>{var{attr:o,size:s,title:a}=e,u=t7(e,e7),c=s||n.size||"1em",f;return n.className&&(f=n.className),e.className&&(f=(f?f+" ":"")+e.className),Le.createElement("svg",Of({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,u,{className:f,style:jf(jf({color:e.color||n.color},n.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),a&&Le.createElement("title",null,a),e.children)};return Pw!==void 0?Le.createElement(Pw.Consumer,null,n=>t(n)):t(Q_)}function a7(e){return hc({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"3 6 5 6 21 6"},child:[]},{tag:"path",attr:{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"},child:[]},{tag:"line",attr:{x1:"10",y1:"11",x2:"10",y2:"17"},child:[]},{tag:"line",attr:{x1:"14",y1:"11",x2:"14",y2:"17"},child:[]}]})(e)}const l7=a7,Aw=(e,t)=>{const n=e/100;return new Intl.NumberFormat("cs-CZ",{style:"currency",currency:t,minimumFractionDigits:0}).format(n)},u7=()=>{var p;const e=sc(),t=rc(),n=y_(),{data:o,isLoading:s,isError:a}=Rs(["eshop-cart"],V_),u=async(h,g)=>{try{await v9(h,g),n.invalidateQueries(["eshop-cart"])}catch{t({status:"error",title:"Chyba",description:"Nepodařilo se upravit košík."})}},c=async h=>{try{await b9(h),n.invalidateQueries(["eshop-cart"])}catch{t({status:"error",title:"Chyba",description:"Nepodařilo se odebrat položku."})}};if(s)return b.jsx(Ce,{children:"Načítání košíku…"});if(a||!o)return b.jsx(Ce,{children:"Košík nelze načíst."});const f=((p=o.items)==null?void 0:p.reduce((h,g)=>h+g.unit_price_cents*g.quantity,0))||0;return!o.items||o.items.length===0?b.jsxs(ht,{children:[b.jsx(kt,{size:"lg",mb:2,children:"Košík je prázdný"}),b.jsx(Ce,{color:"gray.600",children:"Přidejte produkty z katalogu a vraťte se sem."})]}):b.jsxs(ht,{children:[b.jsx(kt,{size:"lg",mb:4,children:"Košík"}),b.jsxs(YT,{size:"sm",variant:"simple",mb:4,children:[b.jsx(qV,{children:b.jsxs(N1,{children:[b.jsx(jd,{children:"Produkt"}),b.jsx(jd,{isNumeric:!0,children:"Množství"}),b.jsx(jd,{isNumeric:!0,children:"Cena"}),b.jsx(jd,{})]})}),b.jsx(HV,{children:o.items.map(h=>{var g;return b.jsxs(N1,{children:[b.jsx(Od,{children:b.jsx(Ce,{fontWeight:"medium",children:((g=h.product)==null?void 0:g.name)||`Produkt #${h.product_id}`})}),b.jsx(Od,{isNumeric:!0,children:b.jsx(It,{justify:"flex-end",children:b.jsx(zT,{size:"sm",min:0,value:h.quantity,onChange:(v,k)=>u(h.id,k),maxW:"90px",children:b.jsx($T,{})})})}),b.jsx(Od,{isNumeric:!0,children:Aw(h.unit_price_cents*h.quantity,h.currency||o.currency)}),b.jsx(Od,{isNumeric:!0,children:b.jsx(Cf,{"aria-label":"Odebrat",icon:b.jsx(l7,{}),size:"sm",variant:"ghost",onClick:()=>c(h.id)})})]},h.id)})})]}),b.jsxs(It,{justify:"space-between",mb:4,children:[b.jsx(Ce,{fontWeight:"bold",children:"Celkem:"}),b.jsx(Ce,{fontWeight:"bold",children:Aw(f,o.currency||"CZK")})]}),b.jsx(mn,{colorScheme:"blue",onClick:()=>e("/checkout"),children:"Pokračovat k pokladně"})]})};function cf(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?cf=function(t){return typeof t}:cf=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cf(e)}var X_="clover",c7=function(t){return t===3?"v3":t},Z_="https://js.stripe.com",d7="".concat(Z_,"/").concat(X_,"/stripe.js"),f7=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,h7=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/;var p7=function(t){return f7.test(t)||h7.test(t)},m7=function(){for(var t=document.querySelectorAll('script[src^="'.concat(Z_,'"]')),n=0;n<t.length;n++){var o=t[n];if(p7(o.src))return o}return null},Ow=function(t){var n="",o=document.createElement("script");o.src="".concat(d7).concat(n);var s=document.head||document.body;if(!s)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return s.appendChild(o),o},g7=function(t,n){!t||!t._registerWrapper||t._registerWrapper({name:"stripe-js",version:"8.9.0",startTime:n})},tu=null,Dd=null,Fd=null,y7=function(t){return function(n){t(new Error("Failed to load Stripe.js",{cause:n}))}},v7=function(t,n){return function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))}},b7=function(t){return tu!==null?tu:(tu=new Promise(function(n,o){if(typeof window>"u"||typeof document>"u"){n(null);return}if(window.Stripe){n(window.Stripe);return}try{var s=m7();if(!(s&&t)){if(!s)s=Ow(t);else if(s&&Fd!==null&&Dd!==null){var a;s.removeEventListener("load",Fd),s.removeEventListener("error",Dd),(a=s.parentNode)===null||a===void 0||a.removeChild(s),s=Ow(t)}}Fd=v7(n,o),Dd=y7(o),s.addEventListener("load",Fd),s.addEventListener("error",Dd)}catch(u){o(u);return}}),tu.catch(function(n){return tu=null,Promise.reject(n)}))},S7=function(t,n,o){if(t===null)return null;var s=n[0];if(typeof s!="string")throw new Error("Expected publishable key to be of type string, got type ".concat(cf(s)," instead."));var a=s.match(/^pk_test/),u=c7(t.version),c=X_;a&&u!==c&&console.warn("Stripe.js@".concat(u," was loaded on the page, but @stripe/stripe-js@").concat("8.9.0"," expected Stripe.js@").concat(c,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var f=t.apply(void 0,n);return g7(f,o),f},nu,J_=!1,eP=function(){return nu||(nu=b7(null).catch(function(t){return nu=null,Promise.reject(t)}),nu)};Promise.resolve().then(function(){return eP()}).catch(function(e){J_||console.warn(e)});var x7=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];J_=!0;var s=Date.now();return eP().then(function(a){return S7(a,n,s)})};function jw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,o)}return n}function Mw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jw(Object(n),!0).forEach(function(o){tP(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jw(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function df(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?df=function(t){return typeof t}:df=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},df(e)}function tP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w7(e,t){if(e==null)return{};var n={},o=Object.keys(e),s,a;for(a=0;a<o.length;a++)s=o[a],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function C7(e,t){if(e==null)return{};var n=w7(e,t),o,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)o=a[s],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function nP(e,t){return k7(e)||E7(e,t)||T7(e,t)||_7()}function k7(e){if(Array.isArray(e))return e}function E7(e,t){var n=e&&(typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"]);if(n!=null){var o=[],s=!0,a=!1,u,c;try{for(n=n.call(e);!(s=(u=n.next()).done)&&(o.push(u.value),!(t&&o.length===t));s=!0);}catch(f){a=!0,c=f}finally{try{!s&&n.return!=null&&n.return()}finally{if(a)throw c}}return o}}function T7(e,t){if(e){if(typeof e=="string")return Iw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Iw(e,t)}}function Iw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function _7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var zn=function(t,n,o){var s=!!o,a=Le.useRef(o);Le.useEffect(function(){a.current=o},[o]),Le.useEffect(function(){if(!s||!t)return function(){};var u=function(){a.current&&a.current.apply(a,arguments)};return t.on(n,u),function(){t.off(n,u)}},[s,n,t,a])},ly=function(t){var n=Le.useRef(t);return Le.useEffect(function(){n.current=t},[t]),n.current},Ja=function(t){return t!==null&&df(t)==="object"},P7=function(t){return Ja(t)&&typeof t.then=="function"},R7=function(t){return Ja(t)&&typeof t.elements=="function"&&typeof t.createToken=="function"&&typeof t.createPaymentMethod=="function"&&typeof t.confirmCardPayment=="function"},Nw="[object Object]",A7=function e(t,n){if(!Ja(t)||!Ja(n))return t===n;var o=Array.isArray(t),s=Array.isArray(n);if(o!==s)return!1;var a=Object.prototype.toString.call(t)===Nw,u=Object.prototype.toString.call(n)===Nw;if(a!==u)return!1;if(!a&&!o)return t===n;var c=Object.keys(t),f=Object.keys(n);if(c.length!==f.length)return!1;for(var p={},h=0;h<c.length;h+=1)p[c[h]]=!0;for(var g=0;g<f.length;g+=1)p[f[g]]=!0;var v=Object.keys(p);if(v.length!==c.length)return!1;var k=t,x=n,S=function(T){return e(k[T],x[T])};return v.every(S)},rP=function(t,n,o){return Ja(t)?Object.keys(t).reduce(function(s,a){var u=!Ja(n)||!A7(t[a],n[a]);return o.includes(a)?(u&&console.warn("Unsupported prop change: options.".concat(a," is not a mutable property.")),s):u?Mw(Mw({},s||{}),{},tP({},a,t[a])):s},null):null},oP="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",Dw=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:oP;if(t===null||R7(t))return t;throw new Error(n)},O7=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:oP;if(P7(t))return{tag:"async",stripePromise:Promise.resolve(t).then(function(s){return Dw(s,n)})};var o=Dw(t,n);return o===null?{tag:"empty"}:{tag:"sync",stripe:o}},j7=function(t){!t||!t._registerWrapper||!t.registerAppInfo||(t._registerWrapper({name:"react-stripe-js",version:"5.6.1"}),t.registerAppInfo({name:"react-stripe-js",version:"5.6.1",url:"https://stripe.com/docs/stripe-js/react"}))},oh=Le.createContext(null);oh.displayName="ElementsContext";var iP=function(t,n){if(!t)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(n," in an <Elements> provider."));return t},sP=function(t){var n=t.stripe,o=t.options,s=t.children,a=Le.useMemo(function(){return O7(n)},[n]),u=Le.useState(function(){return{stripe:a.tag==="sync"?a.stripe:null,elements:a.tag==="sync"?a.stripe.elements(o):null}}),c=nP(u,2),f=c[0],p=c[1];Le.useEffect(function(){var v=!0,k=function(S){p(function(w){return w.stripe?w:{stripe:S,elements:S.elements(o)}})};return a.tag==="async"&&!f.stripe?a.stripePromise.then(function(x){x&&v&&k(x)}):a.tag==="sync"&&!f.stripe&&k(a.stripe),function(){v=!1}},[a,f,o]);var h=ly(n);Le.useEffect(function(){h!==null&&h!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[h,n]);var g=ly(o);return Le.useEffect(function(){if(f.elements){var v=rP(o,g,["clientSecret","fonts"]);v&&f.elements.update(v)}},[o,g,f.elements]),Le.useEffect(function(){j7(f.stripe)},[f.stripe]),Le.createElement(oh.Provider,{value:f},s)};sP.propTypes={stripe:ft.any,options:ft.object};var M7=function(t){var n=Le.useContext(oh);return iP(n,t)},I7=function(){var t=M7("calls useElements()"),n=t.elements;return n};ft.func.isRequired;var aP=Le.createContext(null);aP.displayName="CheckoutContext";ft.any,ft.shape({clientSecret:ft.oneOfType([ft.string,ft.instanceOf(Promise)]).isRequired,elementsOptions:ft.object}).isRequired;var uy=function(t){var n=Le.useContext(aP),o=Le.useContext(oh);if(n){if(o)throw new Error("You cannot wrap the part of your app that ".concat(t," in both <CheckoutProvider> and <Elements> providers."));return n}else return iP(o,t)},N7=["mode"],D7=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},rr=function(t,n){var o="".concat(D7(t),"Element"),s=function(f){var p=f.id,h=f.className,g=f.options,v=g===void 0?{}:g,k=f.onBlur,x=f.onFocus,S=f.onReady,w=f.onChange,T=f.onEscape,A=f.onClick,_=f.onLoadError,N=f.onLoaderStart,R=f.onNetworksChange,F=f.onConfirm,D=f.onCancel,U=f.onShippingAddressChange,X=f.onShippingRateChange,ne=f.onSavedPaymentMethodRemove,ee=f.onSavedPaymentMethodUpdate,Ee=uy("mounts <".concat(o,">")),Te="elements"in Ee?Ee.elements:null,xe="checkoutState"in Ee?Ee.checkoutState:null,ke=(xe==null?void 0:xe.type)==="success"||(xe==null?void 0:xe.type)==="loading"?xe.sdk:null,_e=Le.useState(null),ue=nP(_e,2),B=ue[0],se=ue[1],Q=Le.useRef(null),j=Le.useRef(null);zn(B,"blur",k),zn(B,"focus",x),zn(B,"escape",T),zn(B,"click",A),zn(B,"loaderror",_),zn(B,"loaderstart",N),zn(B,"networkschange",R),zn(B,"confirm",F),zn(B,"cancel",D),zn(B,"shippingaddresschange",U),zn(B,"shippingratechange",X),zn(B,"savedpaymentmethodremove",ne),zn(B,"savedpaymentmethodupdate",ee),zn(B,"change",w);var q;S&&(t==="expressCheckout"?q=S:q=function(){S(B)}),zn(B,"ready",q),Le.useLayoutEffect(function(){if(Q.current===null&&j.current!==null&&(Te||ke)){var ae=null;if(ke)switch(t){case"paymentForm":ae=ke.createPaymentFormElement(v);break;case"payment":ae=ke.createPaymentElement(v);break;case"address":if("mode"in v){var le=v.mode,Se=C7(v,N7);if(le==="shipping")ae=ke.createShippingAddressElement(Se);else if(le==="billing")ae=ke.createBillingAddressElement(Se);else throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.")}else throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");break;case"expressCheckout":ae=ke.createExpressCheckoutElement(v);break;case"currencySelector":ae=ke.createCurrencySelectorElement();break;case"taxId":ae=ke.createTaxIdElement(v);break;default:throw new Error("Invalid Element type ".concat(o,". You must use either the <PaymentElement />, <AddressElement options={{mode: 'shipping'}} />, <AddressElement options={{mode: 'billing'}} />, or <ExpressCheckoutElement />."))}else Te&&(ae=Te.create(t,v));Q.current=ae,se(ae),ae&&ae.mount(j.current)}},[Te,ke,v]);var Y=ly(v);return Le.useEffect(function(){if(Q.current){var ae=rP(v,Y,["paymentRequest"]);ae&&"update"in Q.current&&Q.current.update(ae)}},[v,Y]),Le.useLayoutEffect(function(){return function(){if(Q.current&&typeof Q.current.destroy=="function")try{Q.current.destroy(),Q.current=null}catch{}}},[]),Le.createElement("div",{id:p,className:h,ref:j})},a=function(f){uy("mounts <".concat(o,">"));var p=f.id,h=f.className;return Le.createElement("div",{id:p,className:h})},u=n?a:s;return u.propTypes={id:ft.string,className:ft.string,onChange:ft.func,onBlur:ft.func,onFocus:ft.func,onReady:ft.func,onEscape:ft.func,onClick:ft.func,onLoadError:ft.func,onLoaderStart:ft.func,onNetworksChange:ft.func,onConfirm:ft.func,onCancel:ft.func,onShippingAddressChange:ft.func,onShippingRateChange:ft.func,onSavedPaymentMethodRemove:ft.func,onSavedPaymentMethodUpdate:ft.func,options:ft.object},u.displayName=o,u.__elementType=t,u},or=typeof window>"u",F7=Le.createContext(null);F7.displayName="EmbeddedCheckoutProviderContext";var L7=function(){var t=uy("calls useStripe()"),n=t.stripe;return n};rr("auBankAccount",or);rr("card",or);rr("cardNumber",or);rr("cardExpiry",or);rr("cardCvc",or);rr("iban",or);var z7=rr("payment",or);rr("expressCheckout",or);rr("paymentRequestButton",or);rr("linkAuthentication",or);rr("address",or);rr("shippingAddress",or);rr("paymentMethodMessaging",or);rr("taxId",or);var $7={REACT_APP_STRIPE_PUBLISHABLE_KEY:"pk_test_TYooMQauvdEDq54NiTphI7jx"};const Ld=(e,t)=>{const n=e/100;return new Intl.NumberFormat("cs-CZ",{style:"currency",currency:t,minimumFractionDigits:0}).format(n)},B7=({clientSecret:e,onSuccess:t,onCancel:n})=>{const o=L7(),s=I7(),[a,u]=C.useState(!1),[c,f]=C.useState(""),p=async h=>{if(h.preventDefault(),!o||!s)return;u(!0),f("");const{error:g}=await o.confirmPayment({elements:s,confirmParams:{return_url:`${window.location.origin}/objednavka/dekujeme`}});g?f(g.message||"Došlo k chybě při zpracování platby."):t(),u(!1)};return b.jsxs(tn,{spacing:4,as:"form",onSubmit:p,children:[b.jsx(z7,{}),c&&b.jsx(Ce,{color:"red.500",fontSize:"sm",children:c}),b.jsxs(It,{spacing:4,width:"100%",children:[b.jsx(mn,{variant:"outline",onClick:n,isDisabled:a,flex:1,children:"Zrušit"}),b.jsx(mn,{colorScheme:"blue",type:"submit",isLoading:a,isDisabled:!o||!s,flex:1,children:"Zaplatit"})]})]})},V7=()=>{const e=sc(),t=rc(),{data:n,isLoading:o}=Rs(["eshop-cart"],V_),{data:s,isLoading:a,isError:u}=Rs(["packeta-config"],x9),[c,f]=C.useState(""),[p,h]=C.useState(""),[g,v]=C.useState(""),[k,x]=C.useState(""),[S,w]=C.useState("packeta"),[T,A]=C.useState(null),[_,N]=C.useState(!1),[R,F]=C.useState(!1),[D,U]=C.useState(!1),[X,ne]=C.useState(""),[ee,Ee]=C.useState(null),[Te,xe]=C.useState(null);C.useEffect(()=>{const Q=document.createElement("script");return Q.src="https://widget.packeta.com/v6/www/js/library.js",Q.async=!0,document.body.appendChild(Q),()=>{document.body.removeChild(Q)}},[]),C.useEffect(()=>{D&&X&&(async()=>{const j=$7.REACT_APP_STRIPE_PUBLISHABLE_KEY,q=await x7(j);if(!q){t({status:"error",title:"Chyba",description:"Nepodařilo se načíst Stripe"});return}Ee(q)})()},[D,X,t]);const ke=()=>{if(!window.Packeta||!s){t({status:"error",title:"Chyba",description:"Widget Zásilkovny není připraven."});return}window.Packeta.Widget.pick(s.api_key,Q=>{Q&&A(Q)},{country:"cz,sk",language:"cs"})},_e=async()=>{if(F(!0),!c||!p||!g||!k){t({status:"warning",title:"Chybějící údaje",description:"Vyplňte prosím všechny kontaktní údaje."});return}if(S==="packeta"&&!T){t({status:"warning",title:"Doprava",description:"Vyberte prosím výdejní místo."});return}N(!0);try{const Q={firstName:p,lastName:g,email:c,phone:k},q=await S9({email:c,first_name:p,last_name:g,phone:k,billing_address:Q,shipping_address:S==="packeta"?T:Q,shipping_method:S});if(q.manual_payment&&q.contact_email){t({status:"info",title:"Dokončení objednávky",description:`Online platba není aktuálně dostupná. Objednávku prosím pošlete na tento e-mail: ${q.contact_email}`,duration:15e3,isClosable:!0}),q.order_id&&e(`/objednavka/dekujeme?order_id=${q.order_id}`);return}if(q.payment_redirect_url){window.location.href=q.payment_redirect_url;return}if(q.client_secret){ne(q.client_secret),U(!0);return}t({status:"error",title:"Platba",description:"Platební brána není aktuálně dostupná. Zkuste to prosím později nebo kontaktujte podporu."})}catch(Q){t({status:"error",title:"Chyba",description:"Nepodařilo se vytvořit objednávku."}),console.error(Q)}finally{N(!1)}};if(o)return b.jsx(Di,{});if(!n||!n.items||n.items.length===0)return b.jsxs(ro,{maxW:"3xl",py:10,children:[b.jsx(kt,{size:"lg",mb:4,children:"Košík je prázdný"}),b.jsx(mn,{onClick:()=>e("/"),children:"Zpět do obchodu"})]});const ue=n.items.reduce((Q,j)=>Q+j.unit_price_cents*j.quantity,0),B=S==="packeta"?7900:0,se=ue+B;return b.jsxs(ro,{maxW:"3xl",py:8,children:[b.jsx(kt,{mb:6,children:"Pokladna"}),b.jsxs(tn,{spacing:8,align:"stretch",children:[b.jsx(za,{variant:"outline",children:b.jsxs($a,{children:[b.jsx(kt,{size:"md",mb:4,children:"1. Kontaktní údaje"}),b.jsxs(tn,{spacing:4,children:[b.jsxs(mr,{isRequired:!0,isInvalid:R&&!c,children:[b.jsx(Dr,{children:"Email"}),b.jsx(oo,{type:"email",value:c,onChange:Q=>f(Q.target.value)}),b.jsx(ba,{children:"Zadejte prosím e-mail."})]}),b.jsxs(It,{width:"100%",children:[b.jsxs(mr,{isRequired:!0,isInvalid:R&&!p,children:[b.jsx(Dr,{children:"Jméno"}),b.jsx(oo,{value:p,onChange:Q=>h(Q.target.value)}),b.jsx(ba,{children:"Zadejte prosím jméno."})]}),b.jsxs(mr,{isRequired:!0,isInvalid:R&&!g,children:[b.jsx(Dr,{children:"Příjmení"}),b.jsx(oo,{value:g,onChange:Q=>v(Q.target.value)}),b.jsx(ba,{children:"Zadejte prosím příjmení."})]})]}),b.jsxs(mr,{isRequired:!0,isInvalid:R&&!k,children:[b.jsx(Dr,{children:"Telefon"}),b.jsx(oo,{type:"tel",value:k,onChange:Q=>x(Q.target.value)}),b.jsx(ba,{children:"Zadejte prosím telefon."})]})]})]})}),b.jsx(za,{variant:"outline",children:b.jsxs($a,{children:[b.jsx(kt,{size:"md",mb:4,children:"2. Doprava"}),b.jsxs(mr,{isRequired:!0,isInvalid:R&&S==="packeta"&&!T,children:[b.jsx(UT,{value:S,onChange:w,children:b.jsx(Qf,{direction:"column",children:b.jsx(WT,{value:"packeta",children:"Zásilkovna (výdejní místa)"})})}),S==="packeta"&&b.jsxs(ht,{mt:4,p:4,borderWidth:"1px",borderRadius:"md",bg:"gray.50",children:[a&&b.jsx(Ce,{fontSize:"sm",color:"gray.600",mb:2,children:"Načítání widgetu Zásilkovny..."}),u&&b.jsx(Ce,{fontSize:"sm",color:"red.500",mb:2,children:"Nepodařilo se načíst konfiguraci Zásilkovny. Zkuste to prosím později."}),T?b.jsxs(tn,{align:"start",children:[b.jsx(Ce,{fontWeight:"bold",children:"Vybrané místo:"}),b.jsx(Ce,{children:T.name}),b.jsxs(Ce,{fontSize:"sm",color:"gray.600",children:[T.street,", ",T.city]}),b.jsx(mn,{size:"sm",onClick:ke,variant:"outline",mt:2,isDisabled:!!u,children:"Změnit místo"})]}):b.jsx(mn,{onClick:ke,colorScheme:"red",isDisabled:a||!!u,children:"Vybrat výdejní místo"})]}),b.jsx(ba,{children:"Vyberte prosím výdejní místo."})]})]})}),b.jsx(za,{variant:"outline",children:b.jsxs($a,{children:[b.jsx(kt,{size:"md",mb:4,children:"3. Shrnutí objednávky"}),b.jsxs(tn,{align:"stretch",spacing:2,mb:4,children:[n.items.map(Q=>{var j;return b.jsxs(It,{justify:"space-between",children:[b.jsxs(Ce,{children:[((j=Q.product)==null?void 0:j.name)||"Produkt"," x ",Q.quantity]}),b.jsx(Ce,{children:Ld(Q.unit_price_cents*Q.quantity,Q.currency||n.currency)})]},Q.id)}),b.jsx(Fu,{my:2}),b.jsxs(It,{justify:"space-between",fontWeight:"bold",children:[b.jsx(Ce,{children:"Celkem zboží"}),b.jsx(Ce,{children:Ld(ue,n.currency)})]}),b.jsxs(It,{justify:"space-between",children:[b.jsx(Ce,{children:"Doprava"}),b.jsx(Ce,{children:B>0?Ld(B,n.currency):"Bude upřesněno"})]}),b.jsx(Fu,{my:2}),b.jsxs(It,{justify:"space-between",fontWeight:"bold",children:[b.jsx(Ce,{children:"Celkem k úhradě"}),b.jsx(Ce,{children:Ld(se,n.currency)})]})]}),b.jsx(mn,{colorScheme:"blue",size:"lg",width:"100%",onClick:_e,isLoading:_,children:"Pokračovat k platbě"})]})})]}),b.jsxs(kT,{isOpen:D,onClose:()=>U(!1),size:"md",children:[b.jsx(LT,{}),b.jsxs(MT,{children:[b.jsx(DT,{children:"Platba kartou"}),b.jsx(NT,{}),b.jsx(IT,{pb:6,children:ee&&X?b.jsx(sP,{stripe:ee,options:{clientSecret:X,appearance:{theme:"stripe"}},children:b.jsx(B7,{clientSecret:X,onSuccess:()=>{U(!1),t({status:"success",title:"Platba úspěšná",description:"Objednávka byla zaplacena."}),e("/objednavka/dekujeme")},onCancel:()=>U(!1)})}):b.jsxs(tn,{spacing:4,children:[b.jsx(Ce,{children:"Načítání platební brány..."}),b.jsx(Di,{})]})})]})]})]})},U7=()=>b.jsxs(ht,{children:[b.jsx(kt,{size:"lg",mb:4,children:"E-shop administrace"}),b.jsxs(fv,{status:"info",borderRadius:"md",mb:4,children:[b.jsx(hv,{}),b.jsxs(ht,{children:[b.jsx(pv,{children:"Samostatná administrace e-shopu"}),b.jsx(mv,{fontSize:"sm",children:"Toto je základní rozhraní pro budoucí správu produktů, objednávek a dopravy. V této fázi doporučujeme produkty zakládat přes hlavní MyClub administraci nebo přímo v databázi."})]})]}),b.jsx(Ce,{color:"gray.600",children:"V dalších krocích zde přibudou přehledy objednávek, správa produktů, nastavení Stripe a Packeta integrace a nástroje pro zákaznickou podporu (DeepSeek AI chat)."})]}),W7=()=>{const e=sc(),t=rc(),[n,o]=C.useState(!0),[s,a]=C.useState(!1),[u,c]=C.useState(null),[f,p]=C.useState({default_currency:"CZK",default_country:"CZ",support_email:"",support_phone:"",terms_url:"",returns_policy_url:""}),[h,g]=C.useState(!1);C.useEffect(()=>{(async()=>{try{o(!0);const S=await W_();c(S);const w=await C9();if(p(T=>({...T,...w,support_email:w.support_email||S.contact_email||"",support_phone:w.support_phone||S.contact_phone||"",default_country:w.default_country||S.contact_country||"CZ"})),w.shipping_options_json)try{JSON.parse(w.shipping_options_json).packeta_enabled&&g(!0)}catch(T){console.error("Failed to parse shipping options",T)}}catch(S){console.error("Setup init failed",S),t({title:"Chyba načítání dat",description:"Nepodařilo se načíst informace o klubu nebo nastavení.",status:"error",duration:5e3,isClosable:!0})}finally{o(!1)}})()},[t]);const v=x=>{const{name:S,value:w}=x.target;p(T=>({...T,[S]:w}))},k=async()=>{try{a(!0);const S={...f,shipping_options_json:JSON.stringify({packeta_enabled:h})};await k9(S),t({title:"Nastavení uloženo",description:"E-shop je připraven k použití.",status:"success",duration:3e3,isClosable:!0}),e("/admin")}catch(x){console.error("Save failed",x),t({title:"Chyba ukládání",description:"Nastavení se nepodařilo uložit.",status:"error",duration:5e3,isClosable:!0})}finally{a(!1)}};return n?b.jsxs(ht,{py:10,textAlign:"center",children:[b.jsx(Di,{size:"xl"}),b.jsx(Ce,{mt:4,children:"Načítám konfiguraci..."})]}):b.jsx(ro,{maxW:"2xl",py:8,children:b.jsxs(tn,{spacing:6,align:"stretch",bg:"white",p:8,borderRadius:"lg",boxShadow:"md",children:[b.jsxs(ht,{children:[b.jsx(kt,{size:"lg",mb:2,children:"E-shop Setup Wizard"}),b.jsxs(Ce,{color:"gray.600",children:["Základní nastavení vašeho e-shopu. Některé údaje jsme předvyplnili z nastavení klubu",b.jsxs("strong",{children:[" ",u==null?void 0:u.club_name]}),"."]})]}),b.jsx(Fu,{}),b.jsx(kt,{size:"md",children:"1. Lokalizace a měna"}),b.jsxs(It,{spacing:4,children:[b.jsxs(mr,{id:"default_country",children:[b.jsx(Dr,{children:"Výchozí země"}),b.jsxs(Ef,{name:"default_country",value:f.default_country,onChange:v,children:[b.jsx("option",{value:"CZ",children:"Česká republika"}),b.jsx("option",{value:"SK",children:"Slovensko"})]})]}),b.jsxs(mr,{id:"default_currency",children:[b.jsx(Dr,{children:"Měna"}),b.jsxs(Ef,{name:"default_currency",value:f.default_currency,onChange:v,children:[b.jsx("option",{value:"CZK",children:"CZK (Kč)"}),b.jsx("option",{value:"EUR",children:"EUR (€)"})]})]})]}),b.jsx(kt,{size:"md",mt:4,children:"2. Zákaznická podpora"}),b.jsx(Ce,{fontSize:"sm",color:"gray.500",children:"Tyto údaje se zobrazí v patičce a emailech zákazníkům."}),b.jsxs(mr,{id:"support_email",isRequired:!0,children:[b.jsx(Dr,{children:"Email podpory"}),b.jsx(oo,{name:"support_email",type:"email",value:f.support_email,onChange:v,placeholder:"eshop@mojklub.cz"})]}),b.jsxs(mr,{id:"support_phone",children:[b.jsx(Dr,{children:"Telefon podpory"}),b.jsx(oo,{name:"support_phone",type:"tel",value:f.support_phone,onChange:v,placeholder:"+420 123 456 789"})]}),b.jsx(kt,{size:"md",mt:4,children:"3. Obchodní podmínky"}),b.jsxs(mr,{id:"terms_url",children:[b.jsx(Dr,{children:"Odkaz na VOP"}),b.jsx(oo,{name:"terms_url",value:f.terms_url,onChange:v,placeholder:"https://www.mojklub.cz/obchodni-podminky"})]}),b.jsxs(mr,{id:"returns_policy_url",children:[b.jsx(Dr,{children:"Odkaz na Reklamační řád"}),b.jsx(oo,{name:"returns_policy_url",value:f.returns_policy_url,onChange:v,placeholder:"https://www.mojklub.cz/reklamace"})]}),b.jsx(kt,{size:"md",mt:4,children:"4. Doprava"}),b.jsxs(mr,{display:"flex",alignItems:"center",children:[b.jsx(Dr,{htmlFor:"packeta-switch",mb:"0",children:"Povolit Zásilkovnu (Packeta)"}),b.jsx(QT,{id:"packeta-switch",isChecked:h,onChange:x=>g(x.target.checked)})]}),h&&b.jsx(Ce,{fontSize:"xs",color:"blue.500",children:"Packeta widget bude aktivní v košíku. Ujistěte se, že máte nastavené PACKETA_ API klíče v .env."}),b.jsx(Fu,{my:4}),b.jsx(mn,{colorScheme:"blue",size:"lg",onClick:k,isLoading:s,loadingText:"Ukládám...",children:"Dokončit nastavení"})]})})},Xm=(e,t)=>{const n=e/100;return new Intl.NumberFormat("cs-CZ",{style:"currency",currency:t,minimumFractionDigits:0}).format(n)},H7=e=>{switch(e.toLowerCase()){case"paid":return"green";case"awaiting_payment":return"orange";case"processing":return"blue";case"shipped":return"purple";case"cancelled":return"red";default:return"gray"}},q7=e=>{switch(e.toLowerCase()){case"paid":return"Zaplaceno";case"awaiting_payment":return"Čeká na platbu";case"processing":return"Zpracovává se";case"shipped":return"Odesláno";case"cancelled":return"Zrušeno";default:return e}},K7=()=>{const[e]=JU(),t=e.get("order_id"),n=t?Number(t):NaN,o=!Number.isNaN(n)&&n>0,{data:s,isLoading:a,isError:u}=Rs(["eshop-order",n],()=>w9(n),{enabled:o});if(!o)return b.jsx(ro,{maxW:"3xl",py:10,children:b.jsxs(tn,{spacing:6,align:"center",textAlign:"center",children:[b.jsx(kt,{size:"lg",color:"green.600",children:"✓ Děkujeme za vaši objednávku!"}),b.jsx(Ce,{color:"gray.600",children:"Platba proběhla úspěšně. Shrnutí objednávky momentálně nemáme k dispozici."}),b.jsx(mn,{as:Yo,to:"/",colorScheme:"blue",size:"lg",children:"Zpět do obchodu"})]})});if(a)return b.jsx(ro,{maxW:"3xl",py:10,children:b.jsxs(tn,{spacing:4,align:"center",children:[b.jsx(Di,{size:"lg"}),b.jsx(Ce,{children:"Načítám vaši objednávku…"})]})});if(u||!s)return b.jsx(ro,{maxW:"3xl",py:10,children:b.jsxs(tn,{spacing:6,align:"center",textAlign:"center",children:[b.jsx(kt,{size:"lg",color:"orange.600",children:"✓ Děkujeme za vaši objednávku!"}),b.jsx(Ce,{color:"gray.600",children:"Platba proběhla, ale nepodařilo se načíst detail objednávky."}),b.jsx(Ce,{color:"gray.500",fontSize:"sm",children:"Zkontrolujte prosím potvrzovací email nebo se vraťte zpět do obchodu."}),b.jsx(mn,{as:Yo,to:"/",colorScheme:"blue",size:"lg",children:"Zpět do obchodu"})]})});const c=s.total_amount_cents||0;return b.jsx(ro,{maxW:"3xl",py:10,children:b.jsxs(tn,{spacing:8,align:"stretch",children:[b.jsxs(ht,{textAlign:"center",children:[b.jsx(kt,{size:"lg",color:"green.600",mb:2,children:"✓ Děkujeme za vaši objednávku!"}),b.jsx(Ce,{color:"gray.600",children:"Potvrzení objednávky bylo odesláno na vaši emailovou adresu."})]}),b.jsx(za,{variant:"outline",children:b.jsx($a,{children:b.jsxs(tn,{align:"stretch",spacing:4,children:[b.jsx(kt,{size:"md",children:"Detail objednávky"}),b.jsxs(It,{justify:"space-between",wrap:"wrap",children:[b.jsx(Ce,{fontWeight:"medium",children:"Číslo objednávky:"}),b.jsx(Ce,{fontFamily:"mono",children:s.order_number})]}),b.jsxs(It,{justify:"space-between",wrap:"wrap",children:[b.jsx(Ce,{fontWeight:"medium",children:"Stav:"}),b.jsx(qf,{colorScheme:H7(s.status),children:q7(s.status)})]}),b.jsxs(It,{justify:"space-between",wrap:"wrap",children:[b.jsx(Ce,{fontWeight:"medium",children:"Celková částka:"}),b.jsx(Ce,{fontSize:"lg",fontWeight:"bold",color:"blue.600",children:Xm(c,s.currency||"CZK")})]}),s.shipping_method&&b.jsxs(It,{justify:"space-between",wrap:"wrap",children:[b.jsx(Ce,{fontWeight:"medium",children:"Způsob dopravy:"}),b.jsxs(Ce,{children:[s.shipping_method==="packeta"?"Zásilkovna":s.shipping_method,s.shipping_price_cents&&s.shipping_price_cents>0&&b.jsxs(Ce,{as:"span",ml:2,color:"gray.500",children:["(",Xm(s.shipping_price_cents,s.currency||"CZK"),")"]})]})]})]})})}),s.items&&s.items.length>0&&b.jsx(za,{variant:"outline",children:b.jsxs($a,{children:[b.jsx(kt,{size:"md",mb:4,children:"Přehled položek"}),b.jsx(tn,{align:"stretch",spacing:3,children:s.items.map(f=>b.jsxs(It,{justify:"space-between",py:2,borderBottom:"1px",borderColor:"gray.100",children:[b.jsxs(tn,{align:"start",spacing:1,children:[b.jsx(Ce,{fontWeight:"medium",children:f.name}),b.jsxs(Ce,{fontSize:"sm",color:"gray.500",children:["Počet: ",f.quantity]})]}),b.jsx(Ce,{fontWeight:"bold",children:Xm(f.unit_price_cents*f.quantity,f.currency||s.currency||"CZK")})]},f.id))})]})}),b.jsx(za,{variant:"outline",bg:"blue.50",children:b.jsxs($a,{children:[b.jsx(kt,{size:"md",mb:3,color:"blue.700",children:"Co se stane dál?"}),b.jsxs(tn,{align:"start",spacing:2,color:"blue.600",children:[b.jsxs(Ce,{children:["• 📧 Potvrzení objednávky bylo odesláno na ",s.email]}),b.jsx(Ce,{children:"• 📦 Zpracování objednávky obvykle trvá 1-2 pracovní dny"}),b.jsx(Ce,{children:"• 🚀 O odeslání budete informováni emailem"})]})]})}),b.jsxs(It,{spacing:4,justify:"center",children:[b.jsx(mn,{as:Yo,to:"/",colorScheme:"blue",size:"lg",children:"Pokračovat v nákupu"}),b.jsx(Ua,{as:Yo,to:"/cart",fontSize:"sm",color:"blue.500",alignSelf:"center",children:"Zobrazit košík"})]})]})})};function G7(e){return hc({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(e)}function Q7(e){return hc({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M32,224H64V416H32A31.96166,31.96166,0,0,1,0,384V256A31.96166,31.96166,0,0,1,32,224Zm512-48V448a64.06328,64.06328,0,0,1-64,64H160a64.06328,64.06328,0,0,1-64-64V176a79.974,79.974,0,0,1,80-80H288V32a32,32,0,0,1,64,0V96H464A79.974,79.974,0,0,1,544,176ZM264,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,264,256Zm-8,128H192v32h64Zm96,0H288v32h64ZM456,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,456,256Zm-8,128H384v32h64ZM640,256V384a31.96166,31.96166,0,0,1-32,32H576V224h32A31.96166,31.96166,0,0,1,640,256Z"},child:[]}]})(e)}function Y7(e){return hc({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z"},child:[]}]})(e)}function X7(e){return hc({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z"},child:[]}]})(e)}const Fw=Q7,Z7=G7,J7=Y7,eH=X7,tH=()=>{const[e,t]=C.useState(!1),[n,o]=C.useState([]),[s,a]=C.useState(""),[u,c]=C.useState(!1),f=C.useRef(null),p=um("white","gray.800"),h=um("gray.200","gray.600"),g=um("gray.50","gray.900"),v=()=>{var S;(S=f.current)==null||S.scrollIntoView({behavior:"smooth"})};C.useEffect(()=>{v()},[n,e]);const k=async()=>{var w,T,A;if(!s.trim()||u)return;const S=s.trim();a(""),o(_=>[..._,{role:"user",content:S}]),c(!0);try{const _=await fetch("/api/v1/eshop/support/chat/stream",{method:"POST",headers:{"Content-Type":"application/json","X-Session-Token":B_()},body:JSON.stringify({message:S,history:n.filter(D=>D.role!=="system").slice(-10)})});if(!_.ok)throw new Error("Network response was not ok");if(!_.body)return;const N=_.body.getReader(),R=new TextDecoder;let F="";for(o(D=>[...D,{role:"assistant",content:""}]);;){const{done:D,value:U}=await N.read();if(D)break;const ne=R.decode(U).split(`
|
||
`);for(const ee of ne)if(ee.startsWith("data: ")){const Ee=ee.slice(6);if(Ee==="[DONE]")break;try{const xe=((A=(T=(w=JSON.parse(Ee).choices)==null?void 0:w[0])==null?void 0:T.delta)==null?void 0:A.content)||"";xe&&(F+=xe,o(ke=>{const _e=[...ke];return _e[_e.length-1].content=F,_e}))}catch(Te){console.error("Error parsing stream chunk",Te)}}}}catch(_){console.error("Chat error:",_),o(N=>[...N,{role:"system",content:"Omlouvám se, ale došlo k chybě při komunikaci s asistentem. Zkuste to prosím později nebo napište na klubový e‑mail."}])}finally{c(!1)}},x=S=>{S.key==="Enter"&&!S.shiftKey&&(S.preventDefault(),k())};return b.jsxs(ht,{position:"fixed",bottom:"20px",right:"20px",zIndex:1e3,children:[b.jsx(IE,{in:e,animateOpacity:!0,children:b.jsxs(ht,{bg:p,border:"1px solid",borderColor:h,borderRadius:"lg",boxShadow:"xl",w:"350px",h:"500px",mb:4,display:"flex",flexDirection:"column",overflow:"hidden",children:[b.jsxs(ku,{bg:"blue.600",color:"white",p:3,justify:"space-between",align:"center",children:[b.jsxs(It,{children:[b.jsx(Fw,{}),b.jsx(Ce,{fontWeight:"bold",children:"MyClub Asistent"})]}),b.jsx(Cf,{"aria-label":"Close chat",icon:b.jsx(Z7,{}),size:"sm",variant:"ghost",colorScheme:"whiteAlpha",onClick:()=>t(!1)})]}),b.jsxs(tn,{flex:1,overflowY:"auto",p:3,spacing:3,align:"stretch",bg:g,children:[n.length===0&&b.jsxs(ht,{textAlign:"center",color:"gray.500",mt:10,children:[b.jsx(ht,{as:Fw,fontSize:"40px",mb:2}),b.jsxs(Ce,{fontSize:"sm",children:["Ahoj! Jsem virtuální asistent MyClub e‑shopu. ",b.jsx("br",{}),"Mohu poradit s produkty, dostupností, dopravou nebo stavem objednávky."]})]}),n.map((S,w)=>{const T=S.role==="user",A=S.role==="system",_=T?"blue.500":A?"red.500":"white",N=T||A?"white":"black";return b.jsx(ku,{justify:T?"flex-end":"flex-start",children:b.jsx(ht,{maxW:"80%",bg:_,color:N,px:3,py:2,borderRadius:"lg",boxShadow:"sm",borderTopRightRadius:T?0:"lg",borderTopLeftRadius:T?"lg":0,children:b.jsx(Ce,{fontSize:"sm",whiteSpace:"pre-wrap",children:S.content})})},w)}),u&&b.jsx(ku,{justify:"flex-start",children:b.jsx(ht,{bg:"white",px:3,py:2,borderRadius:"lg",boxShadow:"sm",children:b.jsx(Di,{size:"xs",color:"gray.500"})})}),b.jsx("div",{ref:f})]}),b.jsx(ht,{p:3,borderTop:"1px solid",borderColor:h,children:b.jsxs(It,{children:[b.jsx(oo,{placeholder:"Napište zprávu...",value:s,onChange:S=>a(S.target.value),onKeyDown:x,size:"sm",borderRadius:"full"}),b.jsx(Cf,{"aria-label":"Send",icon:b.jsx(J7,{}),size:"sm",colorScheme:"blue",borderRadius:"full",onClick:k,isLoading:u})]})})]})}),!e&&b.jsx(mn,{leftIcon:b.jsx(eH,{}),colorScheme:"blue",size:"lg",borderRadius:"full",boxShadow:"lg",onClick:()=>t(!0),children:"Podpora"})]})},nH=()=>{const{data:e}=Rs(["eshop-club-info"],W_),t=e!=null&&e.club_name?`${e.club_name} E-shop`:"MyClub E-shop",n=(e==null?void 0:e.primary_color)||"gray.900";return b.jsxs(ku,{direction:"column",minH:"100vh",children:[b.jsx(ht,{as:"header",borderBottomWidth:"1px",py:3,bg:n,color:"white",children:b.jsx(ro,{maxW:"6xl",children:b.jsxs(It,{spacing:4,align:"center",children:[b.jsx(kt,{size:"md",children:b.jsx(Ua,{as:Yo,to:"/",_hover:{textDecoration:"none",opacity:.9},children:t})}),b.jsxs(It,{as:"nav",spacing:4,fontSize:"sm",children:[b.jsx(Ua,{as:Yo,to:"/",_hover:{opacity:.85},children:"Produkty"}),b.jsx(Ua,{as:Yo,to:"/cart",_hover:{opacity:.85},children:"Košík"})]}),b.jsx(KT,{}),b.jsx(mn,{as:Yo,to:"/admin",size:"sm",variant:"outline",colorScheme:"whiteAlpha",children:"E-shop admin"})]})})}),b.jsx(ht,{as:"main",flex:"1",py:6,bg:"gray.50",children:b.jsx(ro,{maxW:"6xl",children:b.jsxs(BU,{children:[b.jsx(_i,{path:"/",element:b.jsx(T9,{})}),b.jsx(_i,{path:"/produkt/:slug",element:b.jsx(J9,{})}),b.jsx(_i,{path:"/cart",element:b.jsx(u7,{})}),b.jsx(_i,{path:"/checkout",element:b.jsx(V7,{})}),b.jsx(_i,{path:"/objednavka/dekujeme",element:b.jsx(K7,{})}),b.jsx(_i,{path:"/admin",element:b.jsx(U7,{})}),b.jsx(_i,{path:"/setup",element:b.jsx(W7,{})})]})})}),b.jsx(tH,{}),b.jsx(ht,{as:"footer",borderTopWidth:"1px",py:4,bg:"white",fontSize:"sm",color:"gray.500",children:b.jsxs(ro,{maxW:"6xl",children:["© ",new Date().getFullYear()," MyClub E-shop."]})})]})},rH={initialColorMode:"light",useSystemColorMode:!1},oH=Y3({config:rH,colors:{brand:{50:"#e3f2ff",100:"#b9d4ff",200:"#8fb7ff",300:"#6599ff",400:"#3b7cff",500:"#1a5fe6",600:"#1449b4",700:"#0e3382",800:"#071d51",900:"#020720"}},styles:{global:{body:{bg:"gray.50"}}}}),iH=new p8({defaultOptions:{queries:{staleTime:300*1e3,refetchOnWindowFocus:!1,retry:1}}}),sH=WR.createRoot(document.getElementById("root"));sH.render(b.jsx(Le.StrictMode,{children:b.jsx(E3,{theme:oH,children:b.jsx(w8,{client:iH,children:b.jsx(QU,{children:b.jsx(nH,{})})})})}));
|