Files
omnex/web/dist/assets/index-DyH0C5cq.js
T
Xor290 ef303951a3
ci-web / test (push) Successful in 14m43s
chore: update
2026-08-08 12:20:56 +02:00

1511 lines
865 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var qE=Object.defineProperty;var Wx=e=>{throw TypeError(e)};var XE=(e,t,n)=>t in e?qE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ux=(e,t,n)=>XE(e,typeof t!="symbol"?t+"":t,n),Hx=(e,t,n)=>t.has(e)||Wx("Cannot "+n);var Gx=(e,t,n)=>(Hx(e,t,"read from private field"),n?n.call(e):t.get(e)),Kx=(e,t,n)=>t.has(e)?Wx("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),rh=(e,t,n,r)=>(Hx(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);function YE(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var nd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dk={exports:{}},Rp={},Ok={exports:{}},ke={};/**
* @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 bu=Symbol.for("react.element"),QE=Symbol.for("react.portal"),ZE=Symbol.for("react.fragment"),JE=Symbol.for("react.strict_mode"),eA=Symbol.for("react.profiler"),tA=Symbol.for("react.provider"),nA=Symbol.for("react.context"),rA=Symbol.for("react.forward_ref"),iA=Symbol.for("react.suspense"),oA=Symbol.for("react.memo"),aA=Symbol.for("react.lazy"),qx=Symbol.iterator;function sA(e){return e===null||typeof e!="object"?null:(e=qx&&e[qx]||e["@@iterator"],typeof e=="function"?e:null)}var Fk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Bk=Object.assign,Vk={};function cl(e,t,n){this.props=e,this.context=t,this.refs=Vk,this.updater=n||Fk}cl.prototype.isReactComponent={};cl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};cl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wk(){}Wk.prototype=cl.prototype;function Jv(e,t,n){this.props=e,this.context=t,this.refs=Vk,this.updater=n||Fk}var e1=Jv.prototype=new Wk;e1.constructor=Jv;Bk(e1,cl.prototype);e1.isPureReactComponent=!0;var Xx=Array.isArray,Uk=Object.prototype.hasOwnProperty,t1={current:null},Hk={key:!0,ref:!0,__self:!0,__source:!0};function Gk(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Uk.call(t,r)&&!Hk.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:bu,type:e,key:o,ref:a,props:i,_owner:t1.current}}function lA(e,t){return{$$typeof:bu,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function n1(e){return typeof e=="object"&&e!==null&&e.$$typeof===bu}function cA(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Yx=/\/+/g;function ih(e,t){return typeof e=="object"&&e!==null&&e.key!=null?cA(""+e.key):t.toString(36)}function Qd(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case bu:case QE:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+ih(a,0):r,Xx(i)?(n="",e!=null&&(n=e.replace(Yx,"$&/")+"/"),Qd(i,t,n,"",function(u){return u})):i!=null&&(n1(i)&&(i=lA(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(Yx,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",Xx(e))for(var l=0;l<e.length;l++){o=e[l];var c=r+ih(o,l);a+=Qd(o,t,n,c,i)}else if(c=sA(e),typeof c=="function")for(e=c.call(e),l=0;!(o=e.next()).done;)o=o.value,c=r+ih(o,l++),a+=Qd(o,t,n,c,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function rd(e,t,n){if(e==null)return e;var r=[],i=0;return Qd(e,r,"","",function(o){return t.call(n,o,i++)}),r}function uA(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var vn={current:null},Zd={transition:null},dA={ReactCurrentDispatcher:vn,ReactCurrentBatchConfig:Zd,ReactCurrentOwner:t1};function Kk(){throw Error("act(...) is not supported in production builds of React.")}ke.Children={map:rd,forEach:function(e,t,n){rd(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return rd(e,function(){t++}),t},toArray:function(e){return rd(e,function(t){return t})||[]},only:function(e){if(!n1(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ke.Component=cl;ke.Fragment=ZE;ke.Profiler=eA;ke.PureComponent=Jv;ke.StrictMode=JE;ke.Suspense=iA;ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dA;ke.act=Kk;ke.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Bk({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=t1.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)Uk.call(t,c)&&!Hk.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:bu,type:e.type,key:i,ref:o,props:r,_owner:a}};ke.createContext=function(e){return e={$$typeof:nA,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:tA,_context:e},e.Consumer=e};ke.createElement=Gk;ke.createFactory=function(e){var t=Gk.bind(null,e);return t.type=e,t};ke.createRef=function(){return{current:null}};ke.forwardRef=function(e){return{$$typeof:rA,render:e}};ke.isValidElement=n1;ke.lazy=function(e){return{$$typeof:aA,_payload:{_status:-1,_result:e},_init:uA}};ke.memo=function(e,t){return{$$typeof:oA,type:e,compare:t===void 0?null:t}};ke.startTransition=function(e){var t=Zd.transition;Zd.transition={};try{e()}finally{Zd.transition=t}};ke.unstable_act=Kk;ke.useCallback=function(e,t){return vn.current.useCallback(e,t)};ke.useContext=function(e){return vn.current.useContext(e)};ke.useDebugValue=function(){};ke.useDeferredValue=function(e){return vn.current.useDeferredValue(e)};ke.useEffect=function(e,t){return vn.current.useEffect(e,t)};ke.useId=function(){return vn.current.useId()};ke.useImperativeHandle=function(e,t,n){return vn.current.useImperativeHandle(e,t,n)};ke.useInsertionEffect=function(e,t){return vn.current.useInsertionEffect(e,t)};ke.useLayoutEffect=function(e,t){return vn.current.useLayoutEffect(e,t)};ke.useMemo=function(e,t){return vn.current.useMemo(e,t)};ke.useReducer=function(e,t,n){return vn.current.useReducer(e,t,n)};ke.useRef=function(e){return vn.current.useRef(e)};ke.useState=function(e){return vn.current.useState(e)};ke.useSyncExternalStore=function(e,t,n){return vn.current.useSyncExternalStore(e,t,n)};ke.useTransition=function(){return vn.current.useTransition()};ke.version="18.3.1";Ok.exports=ke;var m=Ok.exports;const Gt=Zv(m),D0=YE({__proto__:null,default:Gt},[m]);/**
* @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 fA=m,pA=Symbol.for("react.element"),mA=Symbol.for("react.fragment"),hA=Object.prototype.hasOwnProperty,gA=fA.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vA={key:!0,ref:!0,__self:!0,__source:!0};function qk(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)hA.call(t,r)&&!vA.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:pA,type:e,key:o,ref:a,props:i,_owner:gA.current}}Rp.Fragment=mA;Rp.jsx=qk;Rp.jsxs=qk;Dk.exports=Rp;var s=Dk.exports,O0={},Xk={exports:{}},Hn={},Yk={exports:{}},Qk={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(D,R){var F=D.length;D.push(R);e:for(;0<F;){var G=F-1>>>1,K=D[G];if(0<i(K,R))D[G]=R,D[F]=K,F=G;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var R=D[0],F=D.pop();if(F!==R){D[0]=F;e:for(var G=0,K=D.length,ee=K>>>1;G<ee;){var Pe=2*(G+1)-1,we=D[Pe],Te=Pe+1,Ge=D[Te];if(0>i(we,F))Te<K&&0>i(Ge,we)?(D[G]=Ge,D[Te]=F,G=Te):(D[G]=we,D[Pe]=F,G=Pe);else if(Te<K&&0>i(Ge,F))D[G]=Ge,D[Te]=F,G=Te;else break e}}return R}function i(D,R){var F=D.sortIndex-R.sortIndex;return F!==0?F:D.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,v=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(D){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=D)r(u),R.sortIndex=R.expirationTime,t(c,R);else break;R=n(u)}}function w(D){if(y=!1,S(D),!v)if(n(c)!==null)v=!0,V(k);else{var R=n(u);R!==null&&I(w,R.startTime-D)}}function k(D,R){v=!1,y&&(y=!1,b(_),_=-1),h=!0;var F=p;try{for(S(R),f=n(c);f!==null&&(!(f.expirationTime>R)||D&&!O());){var G=f.callback;if(typeof G=="function"){f.callback=null,p=f.priorityLevel;var K=G(f.expirationTime<=R);R=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(c)&&r(c),S(R)}else r(c);f=n(c)}if(f!==null)var ee=!0;else{var Pe=n(u);Pe!==null&&I(w,Pe.startTime-R),ee=!1}return ee}finally{f=null,p=F,h=!1}}var P=!1,j=null,_=-1,M=5,T=-1;function O(){return!(e.unstable_now()-T<M)}function q(){if(j!==null){var D=e.unstable_now();T=D;var R=!0;try{R=j(!0,D)}finally{R?ne():(P=!1,j=null)}}else P=!1}var ne;if(typeof g=="function")ne=function(){g(q)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,X=z.port2;z.port1.onmessage=q,ne=function(){X.postMessage(null)}}else ne=function(){x(q,0)};function V(D){j=D,P||(P=!0,ne())}function I(D,R){_=x(function(){D(e.unstable_now())},R)}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(D){D.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,V(k))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(D){switch(p){case 1:case 2:case 3:var R=3;break;default:R=p}var F=p;p=R;try{return D()}finally{p=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,R){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var F=p;p=D;try{return R()}finally{p=F}},e.unstable_scheduleCallback=function(D,R,F){var G=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?G+F:G):F=G,D){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=F+K,D={id:d++,callback:R,priorityLevel:D,startTime:F,expirationTime:K,sortIndex:-1},F>G?(D.sortIndex=F,t(u,D),n(c)===null&&D===n(u)&&(y?(b(_),_=-1):y=!0,I(w,F-G))):(D.sortIndex=K,t(c,D),v||h||(v=!0,V(k))),D},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(D){var R=p;return function(){var F=p;p=R;try{return D.apply(this,arguments)}finally{p=F}}}})(Qk);Yk.exports=Qk;var yA=Yk.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 bA=m,Fn=yA;function U(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Zk=new Set,zc={};function Aa(e,t){Bs(e,t),Bs(e+"Capture",t)}function Bs(e,t){for(zc[e]=t,e=0;e<t.length;e++)Zk.add(t[e])}var xi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),F0=Object.prototype.hasOwnProperty,xA=/^[: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]*$/,Qx={},Zx={};function SA(e){return F0.call(Zx,e)?!0:F0.call(Qx,e)?!1:xA.test(e)?Zx[e]=!0:(Qx[e]=!0,!1)}function wA(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function kA(e,t,n,r){if(t===null||typeof t>"u"||wA(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function yn(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Zt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Zt[e]=new yn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Zt[t]=new yn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Zt[e]=new yn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Zt[e]=new yn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Zt[e]=new yn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Zt[e]=new yn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Zt[e]=new yn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Zt[e]=new yn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Zt[e]=new yn(e,5,!1,e.toLowerCase(),null,!1,!1)});var r1=/[\-:]([a-z])/g;function i1(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(r1,i1);Zt[t]=new yn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(r1,i1);Zt[t]=new yn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(r1,i1);Zt[t]=new yn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Zt[e]=new yn(e,1,!1,e.toLowerCase(),null,!1,!1)});Zt.xlinkHref=new yn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Zt[e]=new yn(e,1,!1,e.toLowerCase(),null,!0,!0)});function o1(e,t,n,r){var i=Zt.hasOwnProperty(t)?Zt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(kA(t,n,i,r)&&(n=null),r||i===null?SA(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ei=bA.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,id=Symbol.for("react.element"),Xa=Symbol.for("react.portal"),Ya=Symbol.for("react.fragment"),a1=Symbol.for("react.strict_mode"),B0=Symbol.for("react.profiler"),Jk=Symbol.for("react.provider"),e5=Symbol.for("react.context"),s1=Symbol.for("react.forward_ref"),V0=Symbol.for("react.suspense"),W0=Symbol.for("react.suspense_list"),l1=Symbol.for("react.memo"),Vi=Symbol.for("react.lazy"),t5=Symbol.for("react.offscreen"),Jx=Symbol.iterator;function jl(e){return e===null||typeof e!="object"?null:(e=Jx&&e[Jx]||e["@@iterator"],typeof e=="function"?e:null)}var mt=Object.assign,oh;function Vl(e){if(oh===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);oh=t&&t[1]||""}return`
`+oh+e}var ah=!1;function sh(e,t){if(!e||ah)return"";ah=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),o=r.stack.split(`
`),a=i.length-1,l=o.length-1;1<=a&&0<=l&&i[a]!==o[l];)l--;for(;1<=a&&0<=l;a--,l--)if(i[a]!==o[l]){if(a!==1||l!==1)do if(a--,l--,0>l||i[a]!==o[l]){var c=`
`+i[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=a&&0<=l);break}}}finally{ah=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Vl(e):""}function CA(e){switch(e.tag){case 5:return Vl(e.type);case 16:return Vl("Lazy");case 13:return Vl("Suspense");case 19:return Vl("SuspenseList");case 0:case 2:case 15:return e=sh(e.type,!1),e;case 11:return e=sh(e.type.render,!1),e;case 1:return e=sh(e.type,!0),e;default:return""}}function U0(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ya:return"Fragment";case Xa:return"Portal";case B0:return"Profiler";case a1:return"StrictMode";case V0:return"Suspense";case W0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case e5:return(e.displayName||"Context")+".Consumer";case Jk:return(e._context.displayName||"Context")+".Provider";case s1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case l1:return t=e.displayName||null,t!==null?t:U0(e.type)||"Memo";case Vi:t=e._payload,e=e._init;try{return U0(e(t))}catch{}}return null}function jA(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U0(t);case 8:return t===a1?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function mo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function n5(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function PA(e){var t=n5(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function od(e){e._valueTracker||(e._valueTracker=PA(e))}function r5(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=n5(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Nf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function H0(e,t){var n=t.checked;return mt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function e2(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=mo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function i5(e,t){t=t.checked,t!=null&&o1(e,"checked",t,!1)}function G0(e,t){i5(e,t);var n=mo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?K0(e,t.type,n):t.hasOwnProperty("defaultValue")&&K0(e,t.type,mo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function t2(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function K0(e,t,n){(t!=="number"||Nf(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wl=Array.isArray;function Cs(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+mo(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function q0(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(U(91));return mt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function n2(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(U(92));if(Wl(n)){if(1<n.length)throw Error(U(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:mo(n)}}function o5(e,t){var n=mo(t.value),r=mo(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function r2(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function a5(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function X0(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?a5(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ad,s5=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ad=ad||document.createElement("div"),ad.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ad.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Rc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var sc={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},_A=["Webkit","ms","Moz","O"];Object.keys(sc).forEach(function(e){_A.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),sc[t]=sc[e]})});function l5(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||sc.hasOwnProperty(e)&&sc[e]?(""+t).trim():t+"px"}function c5(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=l5(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var TA=mt({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 Y0(e,t){if(t){if(TA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function Q0(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Z0=null;function c1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var J0=null,js=null,Ps=null;function i2(e){if(e=wu(e)){if(typeof J0!="function")throw Error(U(280));var t=e.stateNode;t&&(t=Dp(t),J0(e.stateNode,e.type,t))}}function u5(e){js?Ps?Ps.push(e):Ps=[e]:js=e}function d5(){if(js){var e=js,t=Ps;if(Ps=js=null,i2(e),t)for(e=0;e<t.length;e++)i2(t[e])}}function f5(e,t){return e(t)}function p5(){}var lh=!1;function m5(e,t,n){if(lh)return e(t,n);lh=!0;try{return f5(e,t,n)}finally{lh=!1,(js!==null||Ps!==null)&&(p5(),d5())}}function Mc(e,t){var n=e.stateNode;if(n===null)return null;var r=Dp(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(U(231,t,typeof n));return n}var eg=!1;if(xi)try{var Pl={};Object.defineProperty(Pl,"passive",{get:function(){eg=!0}}),window.addEventListener("test",Pl,Pl),window.removeEventListener("test",Pl,Pl)}catch{eg=!1}function EA(e,t,n,r,i,o,a,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var lc=!1,Df=null,Of=!1,tg=null,AA={onError:function(e){lc=!0,Df=e}};function $A(e,t,n,r,i,o,a,l,c){lc=!1,Df=null,EA.apply(AA,arguments)}function zA(e,t,n,r,i,o,a,l,c){if($A.apply(this,arguments),lc){if(lc){var u=Df;lc=!1,Df=null}else throw Error(U(198));Of||(Of=!0,tg=u)}}function $a(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h5(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function o2(e){if($a(e)!==e)throw Error(U(188))}function RA(e){var t=e.alternate;if(!t){if(t=$a(e),t===null)throw Error(U(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return o2(i),e;if(o===r)return o2(i),t;o=o.sibling}throw Error(U(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a)throw Error(U(189))}}if(n.alternate!==r)throw Error(U(190))}if(n.tag!==3)throw Error(U(188));return n.stateNode.current===n?e:t}function g5(e){return e=RA(e),e!==null?v5(e):null}function v5(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=v5(e);if(t!==null)return t;e=e.sibling}return null}var y5=Fn.unstable_scheduleCallback,a2=Fn.unstable_cancelCallback,MA=Fn.unstable_shouldYield,IA=Fn.unstable_requestPaint,St=Fn.unstable_now,LA=Fn.unstable_getCurrentPriorityLevel,u1=Fn.unstable_ImmediatePriority,b5=Fn.unstable_UserBlockingPriority,Ff=Fn.unstable_NormalPriority,NA=Fn.unstable_LowPriority,x5=Fn.unstable_IdlePriority,Mp=null,Wr=null;function DA(e){if(Wr&&typeof Wr.onCommitFiberRoot=="function")try{Wr.onCommitFiberRoot(Mp,e,void 0,(e.current.flags&128)===128)}catch{}}var wr=Math.clz32?Math.clz32:BA,OA=Math.log,FA=Math.LN2;function BA(e){return e>>>=0,e===0?32:31-(OA(e)/FA|0)|0}var sd=64,ld=4194304;function Ul(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Bf(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~i;l!==0?r=Ul(l):(o&=a,o!==0&&(r=Ul(o)))}else a=n&~i,a!==0?r=Ul(a):o!==0&&(r=Ul(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-wr(t),i=1<<n,r|=e[n],t&=~i;return r}function VA(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function WA(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-wr(o),l=1<<a,c=i[a];c===-1?(!(l&n)||l&r)&&(i[a]=VA(l,t)):c<=t&&(e.expiredLanes|=l),o&=~l}}function ng(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function S5(){var e=sd;return sd<<=1,!(sd&4194240)&&(sd=64),e}function ch(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function xu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wr(t),e[t]=n}function UA(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-wr(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function d1(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-wr(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Ve=0;function w5(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var k5,f1,C5,j5,P5,rg=!1,cd=[],ro=null,io=null,oo=null,Ic=new Map,Lc=new Map,Hi=[],HA="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 s2(e,t){switch(e){case"focusin":case"focusout":ro=null;break;case"dragenter":case"dragleave":io=null;break;case"mouseover":case"mouseout":oo=null;break;case"pointerover":case"pointerout":Ic.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lc.delete(t.pointerId)}}function _l(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=wu(t),t!==null&&f1(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function GA(e,t,n,r,i){switch(t){case"focusin":return ro=_l(ro,e,t,n,r,i),!0;case"dragenter":return io=_l(io,e,t,n,r,i),!0;case"mouseover":return oo=_l(oo,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ic.set(o,_l(Ic.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Lc.set(o,_l(Lc.get(o)||null,e,t,n,r,i)),!0}return!1}function _5(e){var t=qo(e.target);if(t!==null){var n=$a(t);if(n!==null){if(t=n.tag,t===13){if(t=h5(n),t!==null){e.blockedOn=t,P5(e.priority,function(){C5(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Jd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ig(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Z0=r,n.target.dispatchEvent(r),Z0=null}else return t=wu(n),t!==null&&f1(t),e.blockedOn=n,!1;t.shift()}return!0}function l2(e,t,n){Jd(e)&&n.delete(t)}function KA(){rg=!1,ro!==null&&Jd(ro)&&(ro=null),io!==null&&Jd(io)&&(io=null),oo!==null&&Jd(oo)&&(oo=null),Ic.forEach(l2),Lc.forEach(l2)}function Tl(e,t){e.blockedOn===t&&(e.blockedOn=null,rg||(rg=!0,Fn.unstable_scheduleCallback(Fn.unstable_NormalPriority,KA)))}function Nc(e){function t(i){return Tl(i,e)}if(0<cd.length){Tl(cd[0],e);for(var n=1;n<cd.length;n++){var r=cd[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ro!==null&&Tl(ro,e),io!==null&&Tl(io,e),oo!==null&&Tl(oo,e),Ic.forEach(t),Lc.forEach(t),n=0;n<Hi.length;n++)r=Hi[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Hi.length&&(n=Hi[0],n.blockedOn===null);)_5(n),n.blockedOn===null&&Hi.shift()}var _s=Ei.ReactCurrentBatchConfig,Vf=!0;function qA(e,t,n,r){var i=Ve,o=_s.transition;_s.transition=null;try{Ve=1,p1(e,t,n,r)}finally{Ve=i,_s.transition=o}}function XA(e,t,n,r){var i=Ve,o=_s.transition;_s.transition=null;try{Ve=4,p1(e,t,n,r)}finally{Ve=i,_s.transition=o}}function p1(e,t,n,r){if(Vf){var i=ig(e,t,n,r);if(i===null)bh(e,t,r,Wf,n),s2(e,r);else if(GA(i,e,t,n,r))r.stopPropagation();else if(s2(e,r),t&4&&-1<HA.indexOf(e)){for(;i!==null;){var o=wu(i);if(o!==null&&k5(o),o=ig(e,t,n,r),o===null&&bh(e,t,r,Wf,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else bh(e,t,r,null,n)}}var Wf=null;function ig(e,t,n,r){if(Wf=null,e=c1(r),e=qo(e),e!==null)if(t=$a(e),t===null)e=null;else if(n=t.tag,n===13){if(e=h5(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wf=e,null}function T5(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(LA()){case u1:return 1;case b5:return 4;case Ff:case NA:return 16;case x5:return 536870912;default:return 16}default:return 16}}var Xi=null,m1=null,ef=null;function E5(){if(ef)return ef;var e,t=m1,n=t.length,r,i="value"in Xi?Xi.value:Xi.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return ef=i.slice(e,1<r?1-r:void 0)}function tf(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ud(){return!0}function c2(){return!1}function Gn(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ud:c2,this.isPropagationStopped=c2,this}return mt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ud)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ud)},persist:function(){},isPersistent:ud}),t}var ul={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},h1=Gn(ul),Su=mt({},ul,{view:0,detail:0}),YA=Gn(Su),uh,dh,El,Ip=mt({},Su,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:g1,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==El&&(El&&e.type==="mousemove"?(uh=e.screenX-El.screenX,dh=e.screenY-El.screenY):dh=uh=0,El=e),uh)},movementY:function(e){return"movementY"in e?e.movementY:dh}}),u2=Gn(Ip),QA=mt({},Ip,{dataTransfer:0}),ZA=Gn(QA),JA=mt({},Su,{relatedTarget:0}),fh=Gn(JA),e9=mt({},ul,{animationName:0,elapsedTime:0,pseudoElement:0}),t9=Gn(e9),n9=mt({},ul,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),r9=Gn(n9),i9=mt({},ul,{data:0}),d2=Gn(i9),o9={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a9={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"},s9={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function l9(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=s9[e])?!!t[e]:!1}function g1(){return l9}var c9=mt({},Su,{key:function(e){if(e.key){var t=o9[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?a9[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:g1,charCode:function(e){return e.type==="keypress"?tf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),u9=Gn(c9),d9=mt({},Ip,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),f2=Gn(d9),f9=mt({},Su,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:g1}),p9=Gn(f9),m9=mt({},ul,{propertyName:0,elapsedTime:0,pseudoElement:0}),h9=Gn(m9),g9=mt({},Ip,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),v9=Gn(g9),y9=[9,13,27,32],v1=xi&&"CompositionEvent"in window,cc=null;xi&&"documentMode"in document&&(cc=document.documentMode);var b9=xi&&"TextEvent"in window&&!cc,A5=xi&&(!v1||cc&&8<cc&&11>=cc),p2=" ",m2=!1;function $5(e,t){switch(e){case"keyup":return y9.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function z5(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qa=!1;function x9(e,t){switch(e){case"compositionend":return z5(t);case"keypress":return t.which!==32?null:(m2=!0,p2);case"textInput":return e=t.data,e===p2&&m2?null:e;default:return null}}function S9(e,t){if(Qa)return e==="compositionend"||!v1&&$5(e,t)?(e=E5(),ef=m1=Xi=null,Qa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return A5&&t.locale!=="ko"?null:t.data;default:return null}}var w9={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 h2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!w9[e.type]:t==="textarea"}function R5(e,t,n,r){u5(r),t=Uf(t,"onChange"),0<t.length&&(n=new h1("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var uc=null,Dc=null;function k9(e){U5(e,0)}function Lp(e){var t=es(e);if(r5(t))return e}function C9(e,t){if(e==="change")return t}var M5=!1;if(xi){var ph;if(xi){var mh="oninput"in document;if(!mh){var g2=document.createElement("div");g2.setAttribute("oninput","return;"),mh=typeof g2.oninput=="function"}ph=mh}else ph=!1;M5=ph&&(!document.documentMode||9<document.documentMode)}function v2(){uc&&(uc.detachEvent("onpropertychange",I5),Dc=uc=null)}function I5(e){if(e.propertyName==="value"&&Lp(Dc)){var t=[];R5(t,Dc,e,c1(e)),m5(k9,t)}}function j9(e,t,n){e==="focusin"?(v2(),uc=t,Dc=n,uc.attachEvent("onpropertychange",I5)):e==="focusout"&&v2()}function P9(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Lp(Dc)}function _9(e,t){if(e==="click")return Lp(t)}function T9(e,t){if(e==="input"||e==="change")return Lp(t)}function E9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pr=typeof Object.is=="function"?Object.is:E9;function Oc(e,t){if(Pr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!F0.call(t,i)||!Pr(e[i],t[i]))return!1}return!0}function y2(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function b2(e,t){var n=y2(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=y2(n)}}function L5(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?L5(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function N5(){for(var e=window,t=Nf();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Nf(e.document)}return t}function y1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function A9(e){var t=N5(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&L5(n.ownerDocument.documentElement,n)){if(r!==null&&y1(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=b2(n,o);var a=b2(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var $9=xi&&"documentMode"in document&&11>=document.documentMode,Za=null,og=null,dc=null,ag=!1;function x2(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ag||Za==null||Za!==Nf(r)||(r=Za,"selectionStart"in r&&y1(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),dc&&Oc(dc,r)||(dc=r,r=Uf(og,"onSelect"),0<r.length&&(t=new h1("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Za)))}function dd(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ja={animationend:dd("Animation","AnimationEnd"),animationiteration:dd("Animation","AnimationIteration"),animationstart:dd("Animation","AnimationStart"),transitionend:dd("Transition","TransitionEnd")},hh={},D5={};xi&&(D5=document.createElement("div").style,"AnimationEvent"in window||(delete Ja.animationend.animation,delete Ja.animationiteration.animation,delete Ja.animationstart.animation),"TransitionEvent"in window||delete Ja.transitionend.transition);function Np(e){if(hh[e])return hh[e];if(!Ja[e])return e;var t=Ja[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in D5)return hh[e]=t[n];return e}var O5=Np("animationend"),F5=Np("animationiteration"),B5=Np("animationstart"),V5=Np("transitionend"),W5=new Map,S2="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 ko(e,t){W5.set(e,t),Aa(t,[e])}for(var gh=0;gh<S2.length;gh++){var vh=S2[gh],z9=vh.toLowerCase(),R9=vh[0].toUpperCase()+vh.slice(1);ko(z9,"on"+R9)}ko(O5,"onAnimationEnd");ko(F5,"onAnimationIteration");ko(B5,"onAnimationStart");ko("dblclick","onDoubleClick");ko("focusin","onFocus");ko("focusout","onBlur");ko(V5,"onTransitionEnd");Bs("onMouseEnter",["mouseout","mouseover"]);Bs("onMouseLeave",["mouseout","mouseover"]);Bs("onPointerEnter",["pointerout","pointerover"]);Bs("onPointerLeave",["pointerout","pointerover"]);Aa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Aa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Aa("onBeforeInput",["compositionend","keypress","textInput","paste"]);Aa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Aa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Aa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hl="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(" "),M9=new Set("cancel close invalid load scroll toggle".split(" ").concat(Hl));function w2(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,zA(r,t,void 0,e),e.currentTarget=null}function U5(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==o&&i.isPropagationStopped())break e;w2(i,l,u),o=c}else for(a=0;a<r.length;a++){if(l=r[a],c=l.instance,u=l.currentTarget,l=l.listener,c!==o&&i.isPropagationStopped())break e;w2(i,l,u),o=c}}}if(Of)throw e=tg,Of=!1,tg=null,e}function Qe(e,t){var n=t[dg];n===void 0&&(n=t[dg]=new Set);var r=e+"__bubble";n.has(r)||(H5(t,e,2,!1),n.add(r))}function yh(e,t,n){var r=0;t&&(r|=4),H5(n,e,r,t)}var fd="_reactListening"+Math.random().toString(36).slice(2);function Fc(e){if(!e[fd]){e[fd]=!0,Zk.forEach(function(n){n!=="selectionchange"&&(M9.has(n)||yh(n,!1,e),yh(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fd]||(t[fd]=!0,yh("selectionchange",!1,t))}}function H5(e,t,n,r){switch(T5(t)){case 1:var i=qA;break;case 4:i=XA;break;default:i=p1}n=i.bind(null,t,n,e),i=void 0,!eg||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function bh(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;a=a.return}for(;l!==null;){if(a=qo(l),a===null)return;if(c=a.tag,c===5||c===6){r=o=a;continue e}l=l.parentNode}}r=r.return}m5(function(){var u=o,d=c1(n),f=[];e:{var p=W5.get(e);if(p!==void 0){var h=h1,v=e;switch(e){case"keypress":if(tf(n)===0)break e;case"keydown":case"keyup":h=u9;break;case"focusin":v="focus",h=fh;break;case"focusout":v="blur",h=fh;break;case"beforeblur":case"afterblur":h=fh;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=u2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=ZA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=p9;break;case O5:case F5:case B5:h=t9;break;case V5:h=h9;break;case"scroll":h=YA;break;case"wheel":h=v9;break;case"copy":case"cut":case"paste":h=r9;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=f2}var y=(t&4)!==0,x=!y&&e==="scroll",b=y?p!==null?p+"Capture":null:p;y=[];for(var g=u,S;g!==null;){S=g;var w=S.stateNode;if(S.tag===5&&w!==null&&(S=w,b!==null&&(w=Mc(g,b),w!=null&&y.push(Bc(g,w,S)))),x)break;g=g.return}0<y.length&&(p=new h(p,v,null,n,d),f.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&n!==Z0&&(v=n.relatedTarget||n.fromElement)&&(qo(v)||v[Si]))break e;if((h||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,h?(v=n.relatedTarget||n.toElement,h=u,v=v?qo(v):null,v!==null&&(x=$a(v),v!==x||v.tag!==5&&v.tag!==6)&&(v=null)):(h=null,v=u),h!==v)){if(y=u2,w="onMouseLeave",b="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(y=f2,w="onPointerLeave",b="onPointerEnter",g="pointer"),x=h==null?p:es(h),S=v==null?p:es(v),p=new y(w,g+"leave",h,n,d),p.target=x,p.relatedTarget=S,w=null,qo(d)===u&&(y=new y(b,g+"enter",v,n,d),y.target=S,y.relatedTarget=x,w=y),x=w,h&&v)t:{for(y=h,b=v,g=0,S=y;S;S=Da(S))g++;for(S=0,w=b;w;w=Da(w))S++;for(;0<g-S;)y=Da(y),g--;for(;0<S-g;)b=Da(b),S--;for(;g--;){if(y===b||b!==null&&y===b.alternate)break t;y=Da(y),b=Da(b)}y=null}else y=null;h!==null&&k2(f,p,h,y,!1),v!==null&&x!==null&&k2(f,x,v,y,!0)}}e:{if(p=u?es(u):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var k=C9;else if(h2(p))if(M5)k=T9;else{k=P9;var P=j9}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(k=_9);if(k&&(k=k(e,u))){R5(f,k,n,d);break e}P&&P(e,p,u),e==="focusout"&&(P=p._wrapperState)&&P.controlled&&p.type==="number"&&K0(p,"number",p.value)}switch(P=u?es(u):window,e){case"focusin":(h2(P)||P.contentEditable==="true")&&(Za=P,og=u,dc=null);break;case"focusout":dc=og=Za=null;break;case"mousedown":ag=!0;break;case"contextmenu":case"mouseup":case"dragend":ag=!1,x2(f,n,d);break;case"selectionchange":if($9)break;case"keydown":case"keyup":x2(f,n,d)}var j;if(v1)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else Qa?$5(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(A5&&n.locale!=="ko"&&(Qa||_!=="onCompositionStart"?_==="onCompositionEnd"&&Qa&&(j=E5()):(Xi=d,m1="value"in Xi?Xi.value:Xi.textContent,Qa=!0)),P=Uf(u,_),0<P.length&&(_=new d2(_,e,null,n,d),f.push({event:_,listeners:P}),j?_.data=j:(j=z5(n),j!==null&&(_.data=j)))),(j=b9?x9(e,n):S9(e,n))&&(u=Uf(u,"onBeforeInput"),0<u.length&&(d=new d2("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=j))}U5(f,t)})}function Bc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Uf(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Mc(e,n),o!=null&&r.unshift(Bc(e,o,i)),o=Mc(e,t),o!=null&&r.push(Bc(e,o,i))),e=e.return}return r}function Da(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function k2(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&u!==null&&(l=u,i?(c=Mc(n,o),c!=null&&a.unshift(Bc(n,c,l))):i||(c=Mc(n,o),c!=null&&a.push(Bc(n,c,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var I9=/\r\n?/g,L9=/\u0000|\uFFFD/g;function C2(e){return(typeof e=="string"?e:""+e).replace(I9,`
`).replace(L9,"")}function pd(e,t,n){if(t=C2(t),C2(e)!==t&&n)throw Error(U(425))}function Hf(){}var sg=null,lg=null;function cg(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ug=typeof setTimeout=="function"?setTimeout:void 0,N9=typeof clearTimeout=="function"?clearTimeout:void 0,j2=typeof Promise=="function"?Promise:void 0,D9=typeof queueMicrotask=="function"?queueMicrotask:typeof j2<"u"?function(e){return j2.resolve(null).then(e).catch(O9)}:ug;function O9(e){setTimeout(function(){throw e})}function xh(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Nc(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Nc(t)}function ao(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function P2(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var dl=Math.random().toString(36).slice(2),Or="__reactFiber$"+dl,Vc="__reactProps$"+dl,Si="__reactContainer$"+dl,dg="__reactEvents$"+dl,F9="__reactListeners$"+dl,B9="__reactHandles$"+dl;function qo(e){var t=e[Or];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Si]||n[Or]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=P2(e);e!==null;){if(n=e[Or])return n;e=P2(e)}return t}e=n,n=e.parentNode}return null}function wu(e){return e=e[Or]||e[Si],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function es(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(U(33))}function Dp(e){return e[Vc]||null}var fg=[],ts=-1;function Co(e){return{current:e}}function et(e){0>ts||(e.current=fg[ts],fg[ts]=null,ts--)}function qe(e,t){ts++,fg[ts]=e.current,e.current=t}var ho={},cn=Co(ho),jn=Co(!1),ha=ho;function Vs(e,t){var n=e.type.contextTypes;if(!n)return ho;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Pn(e){return e=e.childContextTypes,e!=null}function Gf(){et(jn),et(cn)}function _2(e,t,n){if(cn.current!==ho)throw Error(U(168));qe(cn,t),qe(jn,n)}function G5(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(U(108,jA(e)||"Unknown",i));return mt({},n,r)}function Kf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ho,ha=cn.current,qe(cn,e),qe(jn,jn.current),!0}function T2(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=G5(e,t,ha),r.__reactInternalMemoizedMergedChildContext=e,et(jn),et(cn),qe(cn,e)):et(jn),qe(jn,n)}var ii=null,Op=!1,Sh=!1;function K5(e){ii===null?ii=[e]:ii.push(e)}function V9(e){Op=!0,K5(e)}function jo(){if(!Sh&&ii!==null){Sh=!0;var e=0,t=Ve;try{var n=ii;for(Ve=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ii=null,Op=!1}catch(i){throw ii!==null&&(ii=ii.slice(e+1)),y5(u1,jo),i}finally{Ve=t,Sh=!1}}return null}var ns=[],rs=0,qf=null,Xf=0,tr=[],nr=0,ga=null,ci=1,ui="";function Bo(e,t){ns[rs++]=Xf,ns[rs++]=qf,qf=e,Xf=t}function q5(e,t,n){tr[nr++]=ci,tr[nr++]=ui,tr[nr++]=ga,ga=e;var r=ci;e=ui;var i=32-wr(r)-1;r&=~(1<<i),n+=1;var o=32-wr(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,ci=1<<32-wr(t)+i|n<<i|r,ui=o+e}else ci=1<<o|n<<i|r,ui=e}function b1(e){e.return!==null&&(Bo(e,1),q5(e,1,0))}function x1(e){for(;e===qf;)qf=ns[--rs],ns[rs]=null,Xf=ns[--rs],ns[rs]=null;for(;e===ga;)ga=tr[--nr],tr[nr]=null,ui=tr[--nr],tr[nr]=null,ci=tr[--nr],tr[nr]=null}var In=null,Mn=null,st=!1,br=null;function X5(e,t){var n=rr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function E2(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,In=e,Mn=ao(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,In=e,Mn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ga!==null?{id:ci,overflow:ui}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=rr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,In=e,Mn=null,!0):!1;default:return!1}}function pg(e){return(e.mode&1)!==0&&(e.flags&128)===0}function mg(e){if(st){var t=Mn;if(t){var n=t;if(!E2(e,t)){if(pg(e))throw Error(U(418));t=ao(n.nextSibling);var r=In;t&&E2(e,t)?X5(r,n):(e.flags=e.flags&-4097|2,st=!1,In=e)}}else{if(pg(e))throw Error(U(418));e.flags=e.flags&-4097|2,st=!1,In=e}}}function A2(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;In=e}function md(e){if(e!==In)return!1;if(!st)return A2(e),st=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!cg(e.type,e.memoizedProps)),t&&(t=Mn)){if(pg(e))throw Y5(),Error(U(418));for(;t;)X5(e,t),t=ao(t.nextSibling)}if(A2(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Mn=ao(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Mn=null}}else Mn=In?ao(e.stateNode.nextSibling):null;return!0}function Y5(){for(var e=Mn;e;)e=ao(e.nextSibling)}function Ws(){Mn=In=null,st=!1}function S1(e){br===null?br=[e]:br.push(e)}var W9=Ei.ReactCurrentBatchConfig;function Al(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(U(309));var r=n.stateNode}if(!r)throw Error(U(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var l=i.refs;a===null?delete l[o]:l[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(U(284));if(!n._owner)throw Error(U(290,e))}return e}function hd(e,t){throw e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function $2(e){var t=e._init;return t(e._payload)}function Q5(e){function t(b,g){if(e){var S=b.deletions;S===null?(b.deletions=[g],b.flags|=16):S.push(g)}}function n(b,g){if(!e)return null;for(;g!==null;)t(b,g),g=g.sibling;return null}function r(b,g){for(b=new Map;g!==null;)g.key!==null?b.set(g.key,g):b.set(g.index,g),g=g.sibling;return b}function i(b,g){return b=uo(b,g),b.index=0,b.sibling=null,b}function o(b,g,S){return b.index=S,e?(S=b.alternate,S!==null?(S=S.index,S<g?(b.flags|=2,g):S):(b.flags|=2,g)):(b.flags|=1048576,g)}function a(b){return e&&b.alternate===null&&(b.flags|=2),b}function l(b,g,S,w){return g===null||g.tag!==6?(g=Th(S,b.mode,w),g.return=b,g):(g=i(g,S),g.return=b,g)}function c(b,g,S,w){var k=S.type;return k===Ya?d(b,g,S.props.children,w,S.key):g!==null&&(g.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Vi&&$2(k)===g.type)?(w=i(g,S.props),w.ref=Al(b,g,S),w.return=b,w):(w=cf(S.type,S.key,S.props,null,b.mode,w),w.ref=Al(b,g,S),w.return=b,w)}function u(b,g,S,w){return g===null||g.tag!==4||g.stateNode.containerInfo!==S.containerInfo||g.stateNode.implementation!==S.implementation?(g=Eh(S,b.mode,w),g.return=b,g):(g=i(g,S.children||[]),g.return=b,g)}function d(b,g,S,w,k){return g===null||g.tag!==7?(g=ia(S,b.mode,w,k),g.return=b,g):(g=i(g,S),g.return=b,g)}function f(b,g,S){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Th(""+g,b.mode,S),g.return=b,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case id:return S=cf(g.type,g.key,g.props,null,b.mode,S),S.ref=Al(b,null,g),S.return=b,S;case Xa:return g=Eh(g,b.mode,S),g.return=b,g;case Vi:var w=g._init;return f(b,w(g._payload),S)}if(Wl(g)||jl(g))return g=ia(g,b.mode,S,null),g.return=b,g;hd(b,g)}return null}function p(b,g,S,w){var k=g!==null?g.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return k!==null?null:l(b,g,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case id:return S.key===k?c(b,g,S,w):null;case Xa:return S.key===k?u(b,g,S,w):null;case Vi:return k=S._init,p(b,g,k(S._payload),w)}if(Wl(S)||jl(S))return k!==null?null:d(b,g,S,w,null);hd(b,S)}return null}function h(b,g,S,w,k){if(typeof w=="string"&&w!==""||typeof w=="number")return b=b.get(S)||null,l(g,b,""+w,k);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case id:return b=b.get(w.key===null?S:w.key)||null,c(g,b,w,k);case Xa:return b=b.get(w.key===null?S:w.key)||null,u(g,b,w,k);case Vi:var P=w._init;return h(b,g,S,P(w._payload),k)}if(Wl(w)||jl(w))return b=b.get(S)||null,d(g,b,w,k,null);hd(g,w)}return null}function v(b,g,S,w){for(var k=null,P=null,j=g,_=g=0,M=null;j!==null&&_<S.length;_++){j.index>_?(M=j,j=null):M=j.sibling;var T=p(b,j,S[_],w);if(T===null){j===null&&(j=M);break}e&&j&&T.alternate===null&&t(b,j),g=o(T,g,_),P===null?k=T:P.sibling=T,P=T,j=M}if(_===S.length)return n(b,j),st&&Bo(b,_),k;if(j===null){for(;_<S.length;_++)j=f(b,S[_],w),j!==null&&(g=o(j,g,_),P===null?k=j:P.sibling=j,P=j);return st&&Bo(b,_),k}for(j=r(b,j);_<S.length;_++)M=h(j,b,_,S[_],w),M!==null&&(e&&M.alternate!==null&&j.delete(M.key===null?_:M.key),g=o(M,g,_),P===null?k=M:P.sibling=M,P=M);return e&&j.forEach(function(O){return t(b,O)}),st&&Bo(b,_),k}function y(b,g,S,w){var k=jl(S);if(typeof k!="function")throw Error(U(150));if(S=k.call(S),S==null)throw Error(U(151));for(var P=k=null,j=g,_=g=0,M=null,T=S.next();j!==null&&!T.done;_++,T=S.next()){j.index>_?(M=j,j=null):M=j.sibling;var O=p(b,j,T.value,w);if(O===null){j===null&&(j=M);break}e&&j&&O.alternate===null&&t(b,j),g=o(O,g,_),P===null?k=O:P.sibling=O,P=O,j=M}if(T.done)return n(b,j),st&&Bo(b,_),k;if(j===null){for(;!T.done;_++,T=S.next())T=f(b,T.value,w),T!==null&&(g=o(T,g,_),P===null?k=T:P.sibling=T,P=T);return st&&Bo(b,_),k}for(j=r(b,j);!T.done;_++,T=S.next())T=h(j,b,_,T.value,w),T!==null&&(e&&T.alternate!==null&&j.delete(T.key===null?_:T.key),g=o(T,g,_),P===null?k=T:P.sibling=T,P=T);return e&&j.forEach(function(q){return t(b,q)}),st&&Bo(b,_),k}function x(b,g,S,w){if(typeof S=="object"&&S!==null&&S.type===Ya&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case id:e:{for(var k=S.key,P=g;P!==null;){if(P.key===k){if(k=S.type,k===Ya){if(P.tag===7){n(b,P.sibling),g=i(P,S.props.children),g.return=b,b=g;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Vi&&$2(k)===P.type){n(b,P.sibling),g=i(P,S.props),g.ref=Al(b,P,S),g.return=b,b=g;break e}n(b,P);break}else t(b,P);P=P.sibling}S.type===Ya?(g=ia(S.props.children,b.mode,w,S.key),g.return=b,b=g):(w=cf(S.type,S.key,S.props,null,b.mode,w),w.ref=Al(b,g,S),w.return=b,b=w)}return a(b);case Xa:e:{for(P=S.key;g!==null;){if(g.key===P)if(g.tag===4&&g.stateNode.containerInfo===S.containerInfo&&g.stateNode.implementation===S.implementation){n(b,g.sibling),g=i(g,S.children||[]),g.return=b,b=g;break e}else{n(b,g);break}else t(b,g);g=g.sibling}g=Eh(S,b.mode,w),g.return=b,b=g}return a(b);case Vi:return P=S._init,x(b,g,P(S._payload),w)}if(Wl(S))return v(b,g,S,w);if(jl(S))return y(b,g,S,w);hd(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,g!==null&&g.tag===6?(n(b,g.sibling),g=i(g,S),g.return=b,b=g):(n(b,g),g=Th(S,b.mode,w),g.return=b,b=g),a(b)):n(b,g)}return x}var Us=Q5(!0),Z5=Q5(!1),Yf=Co(null),Qf=null,is=null,w1=null;function k1(){w1=is=Qf=null}function C1(e){var t=Yf.current;et(Yf),e._currentValue=t}function hg(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ts(e,t){Qf=e,w1=is=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Cn=!0),e.firstContext=null)}function sr(e){var t=e._currentValue;if(w1!==e)if(e={context:e,memoizedValue:t,next:null},is===null){if(Qf===null)throw Error(U(308));is=e,Qf.dependencies={lanes:0,firstContext:e}}else is=is.next=e;return t}var Xo=null;function j1(e){Xo===null?Xo=[e]:Xo.push(e)}function J5(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,j1(t)):(n.next=i.next,i.next=n),t.interleaved=n,wi(e,r)}function wi(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Wi=!1;function P1(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function eC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function so(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ze&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,wi(e,n)}return i=r.interleaved,i===null?(t.next=t,j1(r)):(t.next=i.next,i.next=t),r.interleaved=t,wi(e,n)}function nf(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,d1(e,n)}}function z2(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Zf(e,t,n,r){var i=e.updateQueue;Wi=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,u=c.next;c.next=null,a===null?o=u:a.next=u,a=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(o!==null){var f=i.baseState;a=0,d=u=c=null,l=o;do{var p=l.lane,h=l.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,y=l;switch(p=t,h=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){f=v.call(h,f,p);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,p=typeof v=="function"?v.call(h,f,p):v,p==null)break e;f=mt({},f,p);break e;case 2:Wi=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[l]:p.push(l))}else h={eventTime:h,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=h,c=f):d=d.next=h,a|=p;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;p=l,l=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(d===null&&(c=f),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);ya|=a,e.lanes=a,e.memoizedState=f}}function R2(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(U(191,i));i.call(r)}}}var ku={},Ur=Co(ku),Wc=Co(ku),Uc=Co(ku);function Yo(e){if(e===ku)throw Error(U(174));return e}function _1(e,t){switch(qe(Uc,t),qe(Wc,e),qe(Ur,ku),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:X0(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=X0(t,e)}et(Ur),qe(Ur,t)}function Hs(){et(Ur),et(Wc),et(Uc)}function tC(e){Yo(Uc.current);var t=Yo(Ur.current),n=X0(t,e.type);t!==n&&(qe(Wc,e),qe(Ur,n))}function T1(e){Wc.current===e&&(et(Ur),et(Wc))}var ut=Co(0);function Jf(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var wh=[];function E1(){for(var e=0;e<wh.length;e++)wh[e]._workInProgressVersionPrimary=null;wh.length=0}var rf=Ei.ReactCurrentDispatcher,kh=Ei.ReactCurrentBatchConfig,va=0,ft=null,$t=null,Ot=null,ep=!1,fc=!1,Hc=0,U9=0;function en(){throw Error(U(321))}function A1(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pr(e[n],t[n]))return!1;return!0}function $1(e,t,n,r,i,o){if(va=o,ft=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,rf.current=e===null||e.memoizedState===null?q9:X9,e=n(r,i),fc){o=0;do{if(fc=!1,Hc=0,25<=o)throw Error(U(301));o+=1,Ot=$t=null,t.updateQueue=null,rf.current=Y9,e=n(r,i)}while(fc)}if(rf.current=tp,t=$t!==null&&$t.next!==null,va=0,Ot=$t=ft=null,ep=!1,t)throw Error(U(300));return e}function z1(){var e=Hc!==0;return Hc=0,e}function Ir(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ot===null?ft.memoizedState=Ot=e:Ot=Ot.next=e,Ot}function lr(){if($t===null){var e=ft.alternate;e=e!==null?e.memoizedState:null}else e=$t.next;var t=Ot===null?ft.memoizedState:Ot.next;if(t!==null)Ot=t,$t=e;else{if(e===null)throw Error(U(310));$t=e,e={memoizedState:$t.memoizedState,baseState:$t.baseState,baseQueue:$t.baseQueue,queue:$t.queue,next:null},Ot===null?ft.memoizedState=Ot=e:Ot=Ot.next=e}return Ot}function Gc(e,t){return typeof t=="function"?t(e):t}function Ch(e){var t=lr(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var r=$t,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=a=null,c=null,u=o;do{var d=u.lane;if((va&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=f,a=r):c=c.next=f,ft.lanes|=d,ya|=d}u=u.next}while(u!==null&&u!==o);c===null?a=r:c.next=l,Pr(r,t.memoizedState)||(Cn=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,ft.lanes|=o,ya|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function jh(e){var t=lr(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Pr(o,t.memoizedState)||(Cn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function nC(){}function rC(e,t){var n=ft,r=lr(),i=t(),o=!Pr(r.memoizedState,i);if(o&&(r.memoizedState=i,Cn=!0),r=r.queue,R1(aC.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Ot!==null&&Ot.memoizedState.tag&1){if(n.flags|=2048,Kc(9,oC.bind(null,n,r,i,t),void 0,null),Ft===null)throw Error(U(349));va&30||iC(n,t,i)}return i}function iC(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ft.updateQueue,t===null?(t={lastEffect:null,stores:null},ft.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function oC(e,t,n,r){t.value=n,t.getSnapshot=r,sC(t)&&lC(e)}function aC(e,t,n){return n(function(){sC(t)&&lC(e)})}function sC(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pr(e,n)}catch{return!0}}function lC(e){var t=wi(e,1);t!==null&&kr(t,e,1,-1)}function M2(e){var t=Ir();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Gc,lastRenderedState:e},t.queue=e,e=e.dispatch=K9.bind(null,ft,e),[t.memoizedState,e]}function Kc(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ft.updateQueue,t===null?(t={lastEffect:null,stores:null},ft.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function cC(){return lr().memoizedState}function of(e,t,n,r){var i=Ir();ft.flags|=e,i.memoizedState=Kc(1|t,n,void 0,r===void 0?null:r)}function Fp(e,t,n,r){var i=lr();r=r===void 0?null:r;var o=void 0;if($t!==null){var a=$t.memoizedState;if(o=a.destroy,r!==null&&A1(r,a.deps)){i.memoizedState=Kc(t,n,o,r);return}}ft.flags|=e,i.memoizedState=Kc(1|t,n,o,r)}function I2(e,t){return of(8390656,8,e,t)}function R1(e,t){return Fp(2048,8,e,t)}function uC(e,t){return Fp(4,2,e,t)}function dC(e,t){return Fp(4,4,e,t)}function fC(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function pC(e,t,n){return n=n!=null?n.concat([e]):null,Fp(4,4,fC.bind(null,t,e),n)}function M1(){}function mC(e,t){var n=lr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&A1(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function hC(e,t){var n=lr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&A1(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function gC(e,t,n){return va&21?(Pr(n,t)||(n=S5(),ft.lanes|=n,ya|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Cn=!0),e.memoizedState=n)}function H9(e,t){var n=Ve;Ve=n!==0&&4>n?n:4,e(!0);var r=kh.transition;kh.transition={};try{e(!1),t()}finally{Ve=n,kh.transition=r}}function vC(){return lr().memoizedState}function G9(e,t,n){var r=co(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},yC(e))bC(t,n);else if(n=J5(e,t,n,r),n!==null){var i=mn();kr(n,e,r,i),xC(n,t,r)}}function K9(e,t,n){var r=co(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(yC(e))bC(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,Pr(l,a)){var c=t.interleaved;c===null?(i.next=i,j1(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=J5(e,t,i,r),n!==null&&(i=mn(),kr(n,e,r,i),xC(n,t,r))}}function yC(e){var t=e.alternate;return e===ft||t!==null&&t===ft}function bC(e,t){fc=ep=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,d1(e,n)}}var tp={readContext:sr,useCallback:en,useContext:en,useEffect:en,useImperativeHandle:en,useInsertionEffect:en,useLayoutEffect:en,useMemo:en,useReducer:en,useRef:en,useState:en,useDebugValue:en,useDeferredValue:en,useTransition:en,useMutableSource:en,useSyncExternalStore:en,useId:en,unstable_isNewReconciler:!1},q9={readContext:sr,useCallback:function(e,t){return Ir().memoizedState=[e,t===void 0?null:t],e},useContext:sr,useEffect:I2,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,of(4194308,4,fC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return of(4194308,4,e,t)},useInsertionEffect:function(e,t){return of(4,2,e,t)},useMemo:function(e,t){var n=Ir();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ir();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=G9.bind(null,ft,e),[r.memoizedState,e]},useRef:function(e){var t=Ir();return e={current:e},t.memoizedState=e},useState:M2,useDebugValue:M1,useDeferredValue:function(e){return Ir().memoizedState=e},useTransition:function(){var e=M2(!1),t=e[0];return e=H9.bind(null,e[1]),Ir().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ft,i=Ir();if(st){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Ft===null)throw Error(U(349));va&30||iC(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,I2(aC.bind(null,r,o,e),[e]),r.flags|=2048,Kc(9,oC.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ir(),t=Ft.identifierPrefix;if(st){var n=ui,r=ci;n=(r&~(1<<32-wr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Hc++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=U9++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},X9={readContext:sr,useCallback:mC,useContext:sr,useEffect:R1,useImperativeHandle:pC,useInsertionEffect:uC,useLayoutEffect:dC,useMemo:hC,useReducer:Ch,useRef:cC,useState:function(){return Ch(Gc)},useDebugValue:M1,useDeferredValue:function(e){var t=lr();return gC(t,$t.memoizedState,e)},useTransition:function(){var e=Ch(Gc)[0],t=lr().memoizedState;return[e,t]},useMutableSource:nC,useSyncExternalStore:rC,useId:vC,unstable_isNewReconciler:!1},Y9={readContext:sr,useCallback:mC,useContext:sr,useEffect:R1,useImperativeHandle:pC,useInsertionEffect:uC,useLayoutEffect:dC,useMemo:hC,useReducer:jh,useRef:cC,useState:function(){return jh(Gc)},useDebugValue:M1,useDeferredValue:function(e){var t=lr();return $t===null?t.memoizedState=e:gC(t,$t.memoizedState,e)},useTransition:function(){var e=jh(Gc)[0],t=lr().memoizedState;return[e,t]},useMutableSource:nC,useSyncExternalStore:rC,useId:vC,unstable_isNewReconciler:!1};function vr(e,t){if(e&&e.defaultProps){t=mt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function gg(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:mt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Bp={isMounted:function(e){return(e=e._reactInternals)?$a(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=mn(),i=co(e),o=mi(r,i);o.payload=t,n!=null&&(o.callback=n),t=so(e,o,i),t!==null&&(kr(t,e,i,r),nf(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=mn(),i=co(e),o=mi(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=so(e,o,i),t!==null&&(kr(t,e,i,r),nf(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mn(),r=co(e),i=mi(n,r);i.tag=2,t!=null&&(i.callback=t),t=so(e,i,r),t!==null&&(kr(t,e,r,n),nf(t,e,r))}};function L2(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!Oc(n,r)||!Oc(i,o):!0}function SC(e,t,n){var r=!1,i=ho,o=t.contextType;return typeof o=="object"&&o!==null?o=sr(o):(i=Pn(t)?ha:cn.current,r=t.contextTypes,o=(r=r!=null)?Vs(e,i):ho),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Bp,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function N2(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Bp.enqueueReplaceState(t,t.state,null)}function vg(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},P1(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=sr(o):(o=Pn(t)?ha:cn.current,i.context=Vs(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(gg(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Bp.enqueueReplaceState(i,i.state,null),Zf(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Gs(e,t){try{var n="",r=t;do n+=CA(r),r=r.return;while(r);var i=n}catch(o){i=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Ph(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function yg(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Q9=typeof WeakMap=="function"?WeakMap:Map;function wC(e,t,n){n=mi(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){rp||(rp=!0,Tg=r),yg(e,t)},n}function kC(e,t,n){n=mi(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){yg(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){yg(e,t),typeof r!="function"&&(lo===null?lo=new Set([this]):lo.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function D2(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Q9;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=d$.bind(null,e,t,n),t.then(e,e))}function O2(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function F2(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=mi(-1,1),t.tag=2,so(n,t,1))),n.lanes|=1),e)}var Z9=Ei.ReactCurrentOwner,Cn=!1;function dn(e,t,n,r){t.child=e===null?Z5(t,null,n,r):Us(t,e.child,n,r)}function B2(e,t,n,r,i){n=n.render;var o=t.ref;return Ts(t,i),r=$1(e,t,n,r,o,i),n=z1(),e!==null&&!Cn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ki(e,t,i)):(st&&n&&b1(t),t.flags|=1,dn(e,t,r,i),t.child)}function V2(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!V1(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,CC(e,t,o,r,i)):(e=cf(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Oc,n(a,r)&&e.ref===t.ref)return ki(e,t,i)}return t.flags|=1,e=uo(o,r),e.ref=t.ref,e.return=t,t.child=e}function CC(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Oc(o,r)&&e.ref===t.ref)if(Cn=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Cn=!0);else return t.lanes=e.lanes,ki(e,t,i)}return bg(e,t,n,r,i)}function jC(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},qe(as,Rn),Rn|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,qe(as,Rn),Rn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,qe(as,Rn),Rn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,qe(as,Rn),Rn|=r;return dn(e,t,i,n),t.child}function PC(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function bg(e,t,n,r,i){var o=Pn(n)?ha:cn.current;return o=Vs(t,o),Ts(t,i),n=$1(e,t,n,r,o,i),r=z1(),e!==null&&!Cn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ki(e,t,i)):(st&&r&&b1(t),t.flags|=1,dn(e,t,n,i),t.child)}function W2(e,t,n,r,i){if(Pn(n)){var o=!0;Kf(t)}else o=!1;if(Ts(t,i),t.stateNode===null)af(e,t),SC(t,n,r),vg(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var c=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=sr(u):(u=Pn(n)?ha:cn.current,u=Vs(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||c!==u)&&N2(t,a,r,u),Wi=!1;var p=t.memoizedState;a.state=p,Zf(t,r,a,i),c=t.memoizedState,l!==r||p!==c||jn.current||Wi?(typeof d=="function"&&(gg(t,n,d,r),c=t.memoizedState),(l=Wi||L2(t,n,l,r,p,c,u))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,eC(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:vr(t.type,l),a.props=u,f=t.pendingProps,p=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=sr(c):(c=Pn(n)?ha:cn.current,c=Vs(t,c));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==f||p!==c)&&N2(t,a,r,c),Wi=!1,p=t.memoizedState,a.state=p,Zf(t,r,a,i);var v=t.memoizedState;l!==f||p!==v||jn.current||Wi?(typeof h=="function"&&(gg(t,n,h,r),v=t.memoizedState),(u=Wi||L2(t,n,u,r,p,v,c)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.context=c,r=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return xg(e,t,n,r,o,i)}function xg(e,t,n,r,i,o){PC(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&T2(t,n,!1),ki(e,t,o);r=t.stateNode,Z9.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Us(t,e.child,null,o),t.child=Us(t,null,l,o)):dn(e,t,l,o),t.memoizedState=r.state,i&&T2(t,n,!0),t.child}function _C(e){var t=e.stateNode;t.pendingContext?_2(e,t.pendingContext,t.pendingContext!==t.context):t.context&&_2(e,t.context,!1),_1(e,t.containerInfo)}function U2(e,t,n,r,i){return Ws(),S1(i),t.flags|=256,dn(e,t,n,r),t.child}var Sg={dehydrated:null,treeContext:null,retryLane:0};function wg(e){return{baseLanes:e,cachePool:null,transitions:null}}function TC(e,t,n){var r=t.pendingProps,i=ut.current,o=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),qe(ut,i&1),e===null)return mg(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=Up(a,r,0,null),e=ia(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=wg(n),t.memoizedState=Sg,e):I1(t,a));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return J9(e,t,a,r,l,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,l=i.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=uo(i,c),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=uo(l,o):(o=ia(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?wg(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=Sg,r}return o=e.child,e=o.sibling,r=uo(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function I1(e,t){return t=Up({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function gd(e,t,n,r){return r!==null&&S1(r),Us(t,e.child,null,n),e=I1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function J9(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=Ph(Error(U(422))),gd(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Up({mode:"visible",children:r.children},i,0,null),o=ia(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Us(t,e.child,null,a),t.child.memoizedState=wg(a),t.memoizedState=Sg,o);if(!(t.mode&1))return gd(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(U(419)),r=Ph(o,r,void 0),gd(e,t,a,r)}if(l=(a&e.childLanes)!==0,Cn||l){if(r=Ft,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,wi(e,i),kr(r,e,i,-1))}return B1(),r=Ph(Error(U(421))),gd(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=f$.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Mn=ao(i.nextSibling),In=t,st=!0,br=null,e!==null&&(tr[nr++]=ci,tr[nr++]=ui,tr[nr++]=ga,ci=e.id,ui=e.overflow,ga=t),t=I1(t,r.children),t.flags|=4096,t)}function H2(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),hg(e.return,t,n)}function _h(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function EC(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(dn(e,t,r.children,n),r=ut.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&H2(e,n,t);else if(e.tag===19)H2(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(qe(ut,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Jf(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),_h(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Jf(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}_h(t,!0,n,null,o);break;case"together":_h(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function af(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ki(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ya|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,n=uo(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=uo(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function e$(e,t,n){switch(t.tag){case 3:_C(t),Ws();break;case 5:tC(t);break;case 1:Pn(t.type)&&Kf(t);break;case 4:_1(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;qe(Yf,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(qe(ut,ut.current&1),t.flags|=128,null):n&t.child.childLanes?TC(e,t,n):(qe(ut,ut.current&1),e=ki(e,t,n),e!==null?e.sibling:null);qe(ut,ut.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return EC(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),qe(ut,ut.current),r)break;return null;case 22:case 23:return t.lanes=0,jC(e,t,n)}return ki(e,t,n)}var AC,kg,$C,zC;AC=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};kg=function(){};$C=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Yo(Ur.current);var o=null;switch(n){case"input":i=H0(e,i),r=H0(e,r),o=[];break;case"select":i=mt({},i,{value:void 0}),r=mt({},r,{value:void 0}),o=[];break;case"textarea":i=q0(e,i),r=q0(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Hf)}Y0(n,r);var a;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(zc.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var c=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(o||(o=[]),o.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(o=o||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(zc.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Qe("scroll",e),o||l===c||(o=[])):(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};zC=function(e,t,n,r){n!==r&&(t.flags|=4)};function $l(e,t){if(!st)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function tn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function t$(e,t,n){var r=t.pendingProps;switch(x1(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tn(t),null;case 1:return Pn(t.type)&&Gf(),tn(t),null;case 3:return r=t.stateNode,Hs(),et(jn),et(cn),E1(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(md(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,br!==null&&($g(br),br=null))),kg(e,t),tn(t),null;case 5:T1(t);var i=Yo(Uc.current);if(n=t.type,e!==null&&t.stateNode!=null)$C(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(U(166));return tn(t),null}if(e=Yo(Ur.current),md(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Or]=t,r[Vc]=o,e=(t.mode&1)!==0,n){case"dialog":Qe("cancel",r),Qe("close",r);break;case"iframe":case"object":case"embed":Qe("load",r);break;case"video":case"audio":for(i=0;i<Hl.length;i++)Qe(Hl[i],r);break;case"source":Qe("error",r);break;case"img":case"image":case"link":Qe("error",r),Qe("load",r);break;case"details":Qe("toggle",r);break;case"input":e2(r,o),Qe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Qe("invalid",r);break;case"textarea":n2(r,o),Qe("invalid",r)}Y0(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a];a==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&pd(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&pd(r.textContent,l,e),i=["children",""+l]):zc.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&Qe("scroll",r)}switch(n){case"input":od(r),t2(r,o,!0);break;case"textarea":od(r),r2(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Hf)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=a5(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Or]=t,e[Vc]=r,AC(e,t,!1,!1),t.stateNode=e;e:{switch(a=Q0(n,r),n){case"dialog":Qe("cancel",e),Qe("close",e),i=r;break;case"iframe":case"object":case"embed":Qe("load",e),i=r;break;case"video":case"audio":for(i=0;i<Hl.length;i++)Qe(Hl[i],e);i=r;break;case"source":Qe("error",e),i=r;break;case"img":case"image":case"link":Qe("error",e),Qe("load",e),i=r;break;case"details":Qe("toggle",e),i=r;break;case"input":e2(e,r),i=H0(e,r),Qe("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=mt({},r,{value:void 0}),Qe("invalid",e);break;case"textarea":n2(e,r),i=q0(e,r),Qe("invalid",e);break;default:i=r}Y0(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var c=l[o];o==="style"?c5(e,c):o==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&s5(e,c)):o==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Rc(e,c):typeof c=="number"&&Rc(e,""+c):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(zc.hasOwnProperty(o)?c!=null&&o==="onScroll"&&Qe("scroll",e):c!=null&&o1(e,o,c,a))}switch(n){case"input":od(e),t2(e,r,!1);break;case"textarea":od(e),r2(e);break;case"option":r.value!=null&&e.setAttribute("value",""+mo(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Cs(e,!!r.multiple,o,!1):r.defaultValue!=null&&Cs(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Hf)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return tn(t),null;case 6:if(e&&t.stateNode!=null)zC(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(U(166));if(n=Yo(Uc.current),Yo(Ur.current),md(t)){if(r=t.stateNode,n=t.memoizedProps,r[Or]=t,(o=r.nodeValue!==n)&&(e=In,e!==null))switch(e.tag){case 3:pd(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&pd(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Or]=t,t.stateNode=r}return tn(t),null;case 13:if(et(ut),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(st&&Mn!==null&&t.mode&1&&!(t.flags&128))Y5(),Ws(),t.flags|=98560,o=!1;else if(o=md(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(U(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(U(317));o[Or]=t}else Ws(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;tn(t),o=!1}else br!==null&&($g(br),br=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ut.current&1?Rt===0&&(Rt=3):B1())),t.updateQueue!==null&&(t.flags|=4),tn(t),null);case 4:return Hs(),kg(e,t),e===null&&Fc(t.stateNode.containerInfo),tn(t),null;case 10:return C1(t.type._context),tn(t),null;case 17:return Pn(t.type)&&Gf(),tn(t),null;case 19:if(et(ut),o=t.memoizedState,o===null)return tn(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)$l(o,!1);else{if(Rt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Jf(e),a!==null){for(t.flags|=128,$l(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return qe(ut,ut.current&1|2),t.child}e=e.sibling}o.tail!==null&&St()>Ks&&(t.flags|=128,r=!0,$l(o,!1),t.lanes=4194304)}else{if(!r)if(e=Jf(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$l(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!st)return tn(t),null}else 2*St()-o.renderingStartTime>Ks&&n!==1073741824&&(t.flags|=128,r=!0,$l(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=St(),t.sibling=null,n=ut.current,qe(ut,r?n&1|2:n&1),t):(tn(t),null);case 22:case 23:return F1(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Rn&1073741824&&(tn(t),t.subtreeFlags&6&&(t.flags|=8192)):tn(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function n$(e,t){switch(x1(t),t.tag){case 1:return Pn(t.type)&&Gf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hs(),et(jn),et(cn),E1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return T1(t),null;case 13:if(et(ut),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Ws()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return et(ut),null;case 4:return Hs(),null;case 10:return C1(t.type._context),null;case 22:case 23:return F1(),null;case 24:return null;default:return null}}var vd=!1,an=!1,r$=typeof WeakSet=="function"?WeakSet:Set,ie=null;function os(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){vt(e,t,r)}else n.current=null}function Cg(e,t,n){try{n()}catch(r){vt(e,t,r)}}var G2=!1;function i$(e,t){if(sg=Vf,e=N5(),y1(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(l=a+i),f!==o||r!==0&&f.nodeType!==3||(c=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(l=a),p===o&&++d===r&&(c=a),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(lg={focusedElem:e,selectionRange:n},Vf=!1,ie=t;ie!==null;)if(t=ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ie=e;else for(;ie!==null;){t=ie;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,x=v.memoizedState,b=t.stateNode,g=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:vr(t.type,y),x);b.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(w){vt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,ie=e;break}ie=t.return}return v=G2,G2=!1,v}function pc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Cg(t,n,o)}i=i.next}while(i!==r)}}function Vp(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function jg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function RC(e){var t=e.alternate;t!==null&&(e.alternate=null,RC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Or],delete t[Vc],delete t[dg],delete t[F9],delete t[B9])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function MC(e){return e.tag===5||e.tag===3||e.tag===4}function K2(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||MC(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Pg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Hf));else if(r!==4&&(e=e.child,e!==null))for(Pg(e,t,n),e=e.sibling;e!==null;)Pg(e,t,n),e=e.sibling}function _g(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(_g(e,t,n),e=e.sibling;e!==null;)_g(e,t,n),e=e.sibling}var Ut=null,yr=!1;function Ii(e,t,n){for(n=n.child;n!==null;)IC(e,t,n),n=n.sibling}function IC(e,t,n){if(Wr&&typeof Wr.onCommitFiberUnmount=="function")try{Wr.onCommitFiberUnmount(Mp,n)}catch{}switch(n.tag){case 5:an||os(n,t);case 6:var r=Ut,i=yr;Ut=null,Ii(e,t,n),Ut=r,yr=i,Ut!==null&&(yr?(e=Ut,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ut.removeChild(n.stateNode));break;case 18:Ut!==null&&(yr?(e=Ut,n=n.stateNode,e.nodeType===8?xh(e.parentNode,n):e.nodeType===1&&xh(e,n),Nc(e)):xh(Ut,n.stateNode));break;case 4:r=Ut,i=yr,Ut=n.stateNode.containerInfo,yr=!0,Ii(e,t,n),Ut=r,yr=i;break;case 0:case 11:case 14:case 15:if(!an&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Cg(n,t,a),i=i.next}while(i!==r)}Ii(e,t,n);break;case 1:if(!an&&(os(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){vt(n,t,l)}Ii(e,t,n);break;case 21:Ii(e,t,n);break;case 22:n.mode&1?(an=(r=an)||n.memoizedState!==null,Ii(e,t,n),an=r):Ii(e,t,n);break;default:Ii(e,t,n)}}function q2(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new r$),t.forEach(function(r){var i=p$.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function pr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:Ut=l.stateNode,yr=!1;break e;case 3:Ut=l.stateNode.containerInfo,yr=!0;break e;case 4:Ut=l.stateNode.containerInfo,yr=!0;break e}l=l.return}if(Ut===null)throw Error(U(160));IC(o,a,i),Ut=null,yr=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(u){vt(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)LC(t,e),t=t.sibling}function LC(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pr(t,e),Ar(e),r&4){try{pc(3,e,e.return),Vp(3,e)}catch(y){vt(e,e.return,y)}try{pc(5,e,e.return)}catch(y){vt(e,e.return,y)}}break;case 1:pr(t,e),Ar(e),r&512&&n!==null&&os(n,n.return);break;case 5:if(pr(t,e),Ar(e),r&512&&n!==null&&os(n,n.return),e.flags&32){var i=e.stateNode;try{Rc(i,"")}catch(y){vt(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&i5(i,o),Q0(l,a);var u=Q0(l,o);for(a=0;a<c.length;a+=2){var d=c[a],f=c[a+1];d==="style"?c5(i,f):d==="dangerouslySetInnerHTML"?s5(i,f):d==="children"?Rc(i,f):o1(i,d,f,u)}switch(l){case"input":G0(i,o);break;case"textarea":o5(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?Cs(i,!!o.multiple,h,!1):p!==!!o.multiple&&(o.defaultValue!=null?Cs(i,!!o.multiple,o.defaultValue,!0):Cs(i,!!o.multiple,o.multiple?[]:"",!1))}i[Vc]=o}catch(y){vt(e,e.return,y)}}break;case 6:if(pr(t,e),Ar(e),r&4){if(e.stateNode===null)throw Error(U(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){vt(e,e.return,y)}}break;case 3:if(pr(t,e),Ar(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Nc(t.containerInfo)}catch(y){vt(e,e.return,y)}break;case 4:pr(t,e),Ar(e);break;case 13:pr(t,e),Ar(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(D1=St())),r&4&&q2(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(an=(u=an)||d,pr(t,e),an=u):pr(t,e),Ar(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(ie=e,d=e.child;d!==null;){for(f=ie=d;ie!==null;){switch(p=ie,h=p.child,p.tag){case 0:case 11:case 14:case 15:pc(4,p,p.return);break;case 1:os(p,p.return);var v=p.stateNode;if(typeof v.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(y){vt(r,n,y)}}break;case 5:os(p,p.return);break;case 22:if(p.memoizedState!==null){Y2(f);continue}}h!==null?(h.return=p,ie=h):Y2(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{i=f.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=f.stateNode,c=f.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=l5("display",a))}catch(y){vt(e,e.return,y)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(y){vt(e,e.return,y)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:pr(t,e),Ar(e),r&4&&q2(e);break;case 21:break;default:pr(t,e),Ar(e)}}function Ar(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(MC(n)){var r=n;break e}n=n.return}throw Error(U(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Rc(i,""),r.flags&=-33);var o=K2(e);_g(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,l=K2(e);Pg(e,l,a);break;default:throw Error(U(161))}}catch(c){vt(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function o$(e,t,n){ie=e,NC(e)}function NC(e,t,n){for(var r=(e.mode&1)!==0;ie!==null;){var i=ie,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||vd;if(!a){var l=i.alternate,c=l!==null&&l.memoizedState!==null||an;l=vd;var u=an;if(vd=a,(an=c)&&!u)for(ie=i;ie!==null;)a=ie,c=a.child,a.tag===22&&a.memoizedState!==null?Q2(i):c!==null?(c.return=a,ie=c):Q2(i);for(;o!==null;)ie=o,NC(o),o=o.sibling;ie=i,vd=l,an=u}X2(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,ie=o):X2(e)}}function X2(e){for(;ie!==null;){var t=ie;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:an||Vp(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!an)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:vr(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&R2(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}R2(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Nc(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(U(163))}an||t.flags&512&&jg(t)}catch(p){vt(t,t.return,p)}}if(t===e){ie=null;break}if(n=t.sibling,n!==null){n.return=t.return,ie=n;break}ie=t.return}}function Y2(e){for(;ie!==null;){var t=ie;if(t===e){ie=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ie=n;break}ie=t.return}}function Q2(e){for(;ie!==null;){var t=ie;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Vp(4,t)}catch(c){vt(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(c){vt(t,i,c)}}var o=t.return;try{jg(t)}catch(c){vt(t,o,c)}break;case 5:var a=t.return;try{jg(t)}catch(c){vt(t,a,c)}}}catch(c){vt(t,t.return,c)}if(t===e){ie=null;break}var l=t.sibling;if(l!==null){l.return=t.return,ie=l;break}ie=t.return}}var a$=Math.ceil,np=Ei.ReactCurrentDispatcher,L1=Ei.ReactCurrentOwner,or=Ei.ReactCurrentBatchConfig,ze=0,Ft=null,Pt=null,Qt=0,Rn=0,as=Co(0),Rt=0,qc=null,ya=0,Wp=0,N1=0,mc=null,wn=null,D1=0,Ks=1/0,ri=null,rp=!1,Tg=null,lo=null,yd=!1,Yi=null,ip=0,hc=0,Eg=null,sf=-1,lf=0;function mn(){return ze&6?St():sf!==-1?sf:sf=St()}function co(e){return e.mode&1?ze&2&&Qt!==0?Qt&-Qt:W9.transition!==null?(lf===0&&(lf=S5()),lf):(e=Ve,e!==0||(e=window.event,e=e===void 0?16:T5(e.type)),e):1}function kr(e,t,n,r){if(50<hc)throw hc=0,Eg=null,Error(U(185));xu(e,n,r),(!(ze&2)||e!==Ft)&&(e===Ft&&(!(ze&2)&&(Wp|=n),Rt===4&&Gi(e,Qt)),_n(e,r),n===1&&ze===0&&!(t.mode&1)&&(Ks=St()+500,Op&&jo()))}function _n(e,t){var n=e.callbackNode;WA(e,t);var r=Bf(e,e===Ft?Qt:0);if(r===0)n!==null&&a2(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&a2(n),t===1)e.tag===0?V9(Z2.bind(null,e)):K5(Z2.bind(null,e)),D9(function(){!(ze&6)&&jo()}),n=null;else{switch(w5(r)){case 1:n=u1;break;case 4:n=b5;break;case 16:n=Ff;break;case 536870912:n=x5;break;default:n=Ff}n=HC(n,DC.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function DC(e,t){if(sf=-1,lf=0,ze&6)throw Error(U(327));var n=e.callbackNode;if(Es()&&e.callbackNode!==n)return null;var r=Bf(e,e===Ft?Qt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=op(e,r);else{t=r;var i=ze;ze|=2;var o=FC();(Ft!==e||Qt!==t)&&(ri=null,Ks=St()+500,ra(e,t));do try{c$();break}catch(l){OC(e,l)}while(!0);k1(),np.current=o,ze=i,Pt!==null?t=0:(Ft=null,Qt=0,t=Rt)}if(t!==0){if(t===2&&(i=ng(e),i!==0&&(r=i,t=Ag(e,i))),t===1)throw n=qc,ra(e,0),Gi(e,r),_n(e,St()),n;if(t===6)Gi(e,r);else{if(i=e.current.alternate,!(r&30)&&!s$(i)&&(t=op(e,r),t===2&&(o=ng(e),o!==0&&(r=o,t=Ag(e,o))),t===1))throw n=qc,ra(e,0),Gi(e,r),_n(e,St()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(U(345));case 2:Vo(e,wn,ri);break;case 3:if(Gi(e,r),(r&130023424)===r&&(t=D1+500-St(),10<t)){if(Bf(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){mn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ug(Vo.bind(null,e,wn,ri),t);break}Vo(e,wn,ri);break;case 4:if(Gi(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-wr(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=St()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*a$(r/1960))-r,10<r){e.timeoutHandle=ug(Vo.bind(null,e,wn,ri),r);break}Vo(e,wn,ri);break;case 5:Vo(e,wn,ri);break;default:throw Error(U(329))}}}return _n(e,St()),e.callbackNode===n?DC.bind(null,e):null}function Ag(e,t){var n=mc;return e.current.memoizedState.isDehydrated&&(ra(e,t).flags|=256),e=op(e,t),e!==2&&(t=wn,wn=n,t!==null&&$g(t)),e}function $g(e){wn===null?wn=e:wn.push.apply(wn,e)}function s$(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Pr(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Gi(e,t){for(t&=~N1,t&=~Wp,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-wr(t),r=1<<n;e[n]=-1,t&=~r}}function Z2(e){if(ze&6)throw Error(U(327));Es();var t=Bf(e,0);if(!(t&1))return _n(e,St()),null;var n=op(e,t);if(e.tag!==0&&n===2){var r=ng(e);r!==0&&(t=r,n=Ag(e,r))}if(n===1)throw n=qc,ra(e,0),Gi(e,t),_n(e,St()),n;if(n===6)throw Error(U(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Vo(e,wn,ri),_n(e,St()),null}function O1(e,t){var n=ze;ze|=1;try{return e(t)}finally{ze=n,ze===0&&(Ks=St()+500,Op&&jo())}}function ba(e){Yi!==null&&Yi.tag===0&&!(ze&6)&&Es();var t=ze;ze|=1;var n=or.transition,r=Ve;try{if(or.transition=null,Ve=1,e)return e()}finally{Ve=r,or.transition=n,ze=t,!(ze&6)&&jo()}}function F1(){Rn=as.current,et(as)}function ra(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,N9(n)),Pt!==null)for(n=Pt.return;n!==null;){var r=n;switch(x1(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Gf();break;case 3:Hs(),et(jn),et(cn),E1();break;case 5:T1(r);break;case 4:Hs();break;case 13:et(ut);break;case 19:et(ut);break;case 10:C1(r.type._context);break;case 22:case 23:F1()}n=n.return}if(Ft=e,Pt=e=uo(e.current,null),Qt=Rn=t,Rt=0,qc=null,N1=Wp=ya=0,wn=mc=null,Xo!==null){for(t=0;t<Xo.length;t++)if(n=Xo[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}Xo=null}return e}function OC(e,t){do{var n=Pt;try{if(k1(),rf.current=tp,ep){for(var r=ft.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ep=!1}if(va=0,Ot=$t=ft=null,fc=!1,Hc=0,L1.current=null,n===null||n.return===null){Rt=1,qc=t,Pt=null;break}e:{var o=e,a=n.return,l=n,c=t;if(t=Qt,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=O2(a);if(h!==null){h.flags&=-257,F2(h,a,l,o,t),h.mode&1&&D2(o,u,t),t=h,c=u;var v=t.updateQueue;if(v===null){var y=new Set;y.add(c),t.updateQueue=y}else v.add(c);break e}else{if(!(t&1)){D2(o,u,t),B1();break e}c=Error(U(426))}}else if(st&&l.mode&1){var x=O2(a);if(x!==null){!(x.flags&65536)&&(x.flags|=256),F2(x,a,l,o,t),S1(Gs(c,l));break e}}o=c=Gs(c,l),Rt!==4&&(Rt=2),mc===null?mc=[o]:mc.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var b=wC(o,c,t);z2(o,b);break e;case 1:l=c;var g=o.type,S=o.stateNode;if(!(o.flags&128)&&(typeof g.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(lo===null||!lo.has(S)))){o.flags|=65536,t&=-t,o.lanes|=t;var w=kC(o,l,t);z2(o,w);break e}}o=o.return}while(o!==null)}VC(n)}catch(k){t=k,Pt===n&&n!==null&&(Pt=n=n.return);continue}break}while(!0)}function FC(){var e=np.current;return np.current=tp,e===null?tp:e}function B1(){(Rt===0||Rt===3||Rt===2)&&(Rt=4),Ft===null||!(ya&268435455)&&!(Wp&268435455)||Gi(Ft,Qt)}function op(e,t){var n=ze;ze|=2;var r=FC();(Ft!==e||Qt!==t)&&(ri=null,ra(e,t));do try{l$();break}catch(i){OC(e,i)}while(!0);if(k1(),ze=n,np.current=r,Pt!==null)throw Error(U(261));return Ft=null,Qt=0,Rt}function l$(){for(;Pt!==null;)BC(Pt)}function c$(){for(;Pt!==null&&!MA();)BC(Pt)}function BC(e){var t=UC(e.alternate,e,Rn);e.memoizedProps=e.pendingProps,t===null?VC(e):Pt=t,L1.current=null}function VC(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=n$(n,t),n!==null){n.flags&=32767,Pt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Rt=6,Pt=null;return}}else if(n=t$(n,t,Rn),n!==null){Pt=n;return}if(t=t.sibling,t!==null){Pt=t;return}Pt=t=e}while(t!==null);Rt===0&&(Rt=5)}function Vo(e,t,n){var r=Ve,i=or.transition;try{or.transition=null,Ve=1,u$(e,t,n,r)}finally{or.transition=i,Ve=r}return null}function u$(e,t,n,r){do Es();while(Yi!==null);if(ze&6)throw Error(U(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(U(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(UA(e,o),e===Ft&&(Pt=Ft=null,Qt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||yd||(yd=!0,HC(Ff,function(){return Es(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=or.transition,or.transition=null;var a=Ve;Ve=1;var l=ze;ze|=4,L1.current=null,i$(e,n),LC(n,e),A9(lg),Vf=!!sg,lg=sg=null,e.current=n,o$(n),IA(),ze=l,Ve=a,or.transition=o}else e.current=n;if(yd&&(yd=!1,Yi=e,ip=i),o=e.pendingLanes,o===0&&(lo=null),DA(n.stateNode),_n(e,St()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(rp)throw rp=!1,e=Tg,Tg=null,e;return ip&1&&e.tag!==0&&Es(),o=e.pendingLanes,o&1?e===Eg?hc++:(hc=0,Eg=e):hc=0,jo(),null}function Es(){if(Yi!==null){var e=w5(ip),t=or.transition,n=Ve;try{if(or.transition=null,Ve=16>e?16:e,Yi===null)var r=!1;else{if(e=Yi,Yi=null,ip=0,ze&6)throw Error(U(331));var i=ze;for(ze|=4,ie=e.current;ie!==null;){var o=ie,a=o.child;if(ie.flags&16){var l=o.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(ie=u;ie!==null;){var d=ie;switch(d.tag){case 0:case 11:case 15:pc(8,d,o)}var f=d.child;if(f!==null)f.return=d,ie=f;else for(;ie!==null;){d=ie;var p=d.sibling,h=d.return;if(RC(d),d===u){ie=null;break}if(p!==null){p.return=h,ie=p;break}ie=h}}}var v=o.alternate;if(v!==null){var y=v.child;if(y!==null){v.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}ie=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,ie=a;else e:for(;ie!==null;){if(o=ie,o.flags&2048)switch(o.tag){case 0:case 11:case 15:pc(9,o,o.return)}var b=o.sibling;if(b!==null){b.return=o.return,ie=b;break e}ie=o.return}}var g=e.current;for(ie=g;ie!==null;){a=ie;var S=a.child;if(a.subtreeFlags&2064&&S!==null)S.return=a,ie=S;else e:for(a=g;ie!==null;){if(l=ie,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Vp(9,l)}}catch(k){vt(l,l.return,k)}if(l===a){ie=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,ie=w;break e}ie=l.return}}if(ze=i,jo(),Wr&&typeof Wr.onPostCommitFiberRoot=="function")try{Wr.onPostCommitFiberRoot(Mp,e)}catch{}r=!0}return r}finally{Ve=n,or.transition=t}}return!1}function J2(e,t,n){t=Gs(n,t),t=wC(e,t,1),e=so(e,t,1),t=mn(),e!==null&&(xu(e,1,t),_n(e,t))}function vt(e,t,n){if(e.tag===3)J2(e,e,n);else for(;t!==null;){if(t.tag===3){J2(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(lo===null||!lo.has(r))){e=Gs(n,e),e=kC(t,e,1),t=so(t,e,1),e=mn(),t!==null&&(xu(t,1,e),_n(t,e));break}}t=t.return}}function d$(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=mn(),e.pingedLanes|=e.suspendedLanes&n,Ft===e&&(Qt&n)===n&&(Rt===4||Rt===3&&(Qt&130023424)===Qt&&500>St()-D1?ra(e,0):N1|=n),_n(e,t)}function WC(e,t){t===0&&(e.mode&1?(t=ld,ld<<=1,!(ld&130023424)&&(ld=4194304)):t=1);var n=mn();e=wi(e,t),e!==null&&(xu(e,t,n),_n(e,n))}function f$(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),WC(e,n)}function p$(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),WC(e,n)}var UC;UC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||jn.current)Cn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Cn=!1,e$(e,t,n);Cn=!!(e.flags&131072)}else Cn=!1,st&&t.flags&1048576&&q5(t,Xf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;af(e,t),e=t.pendingProps;var i=Vs(t,cn.current);Ts(t,n),i=$1(null,t,r,e,i,n);var o=z1();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pn(r)?(o=!0,Kf(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,P1(t),i.updater=Bp,t.stateNode=i,i._reactInternals=t,vg(t,r,e,n),t=xg(null,t,r,!0,o,n)):(t.tag=0,st&&o&&b1(t),dn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(af(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=h$(r),e=vr(r,e),i){case 0:t=bg(null,t,r,e,n);break e;case 1:t=W2(null,t,r,e,n);break e;case 11:t=B2(null,t,r,e,n);break e;case 14:t=V2(null,t,r,vr(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:vr(r,i),bg(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:vr(r,i),W2(e,t,r,i,n);case 3:e:{if(_C(t),e===null)throw Error(U(387));r=t.pendingProps,o=t.memoizedState,i=o.element,eC(e,t),Zf(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Gs(Error(U(423)),t),t=U2(e,t,r,n,i);break e}else if(r!==i){i=Gs(Error(U(424)),t),t=U2(e,t,r,n,i);break e}else for(Mn=ao(t.stateNode.containerInfo.firstChild),In=t,st=!0,br=null,n=Z5(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ws(),r===i){t=ki(e,t,n);break e}dn(e,t,r,n)}t=t.child}return t;case 5:return tC(t),e===null&&mg(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,cg(r,i)?a=null:o!==null&&cg(r,o)&&(t.flags|=32),PC(e,t),dn(e,t,a,n),t.child;case 6:return e===null&&mg(t),null;case 13:return TC(e,t,n);case 4:return _1(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Us(t,null,r,n):dn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:vr(r,i),B2(e,t,r,i,n);case 7:return dn(e,t,t.pendingProps,n),t.child;case 8:return dn(e,t,t.pendingProps.children,n),t.child;case 12:return dn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,qe(Yf,r._currentValue),r._currentValue=a,o!==null)if(Pr(o.value,a)){if(o.children===i.children&&!jn.current){t=ki(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){a=o.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=mi(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),hg(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(U(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),hg(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}dn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ts(t,n),i=sr(i),r=r(i),t.flags|=1,dn(e,t,r,n),t.child;case 14:return r=t.type,i=vr(r,t.pendingProps),i=vr(r.type,i),V2(e,t,r,i,n);case 15:return CC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:vr(r,i),af(e,t),t.tag=1,Pn(r)?(e=!0,Kf(t)):e=!1,Ts(t,n),SC(t,r,i),vg(t,r,i,n),xg(null,t,r,!0,e,n);case 19:return EC(e,t,n);case 22:return jC(e,t,n)}throw Error(U(156,t.tag))};function HC(e,t){return y5(e,t)}function m$(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rr(e,t,n,r){return new m$(e,t,n,r)}function V1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function h$(e){if(typeof e=="function")return V1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===s1)return 11;if(e===l1)return 14}return 2}function uo(e,t){var n=e.alternate;return n===null?(n=rr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function cf(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")V1(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ya:return ia(n.children,i,o,t);case a1:a=8,i|=8;break;case B0:return e=rr(12,n,t,i|2),e.elementType=B0,e.lanes=o,e;case V0:return e=rr(13,n,t,i),e.elementType=V0,e.lanes=o,e;case W0:return e=rr(19,n,t,i),e.elementType=W0,e.lanes=o,e;case t5:return Up(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Jk:a=10;break e;case e5:a=9;break e;case s1:a=11;break e;case l1:a=14;break e;case Vi:a=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=rr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ia(e,t,n,r){return e=rr(7,e,r,t),e.lanes=n,e}function Up(e,t,n,r){return e=rr(22,e,r,t),e.elementType=t5,e.lanes=n,e.stateNode={isHidden:!1},e}function Th(e,t,n){return e=rr(6,e,null,t),e.lanes=n,e}function Eh(e,t,n){return t=rr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function g$(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ch(0),this.expirationTimes=ch(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ch(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function W1(e,t,n,r,i,o,a,l,c){return e=new g$(e,t,n,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=rr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},P1(o),e}function v$(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xa,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function GC(e){if(!e)return ho;e=e._reactInternals;e:{if($a(e)!==e||e.tag!==1)throw Error(U(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Pn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(U(171))}if(e.tag===1){var n=e.type;if(Pn(n))return G5(e,n,t)}return t}function KC(e,t,n,r,i,o,a,l,c){return e=W1(n,r,!0,e,i,o,a,l,c),e.context=GC(null),n=e.current,r=mn(),i=co(n),o=mi(r,i),o.callback=t??null,so(n,o,i),e.current.lanes=i,xu(e,i,r),_n(e,r),e}function Hp(e,t,n,r){var i=t.current,o=mn(),a=co(i);return n=GC(n),t.context===null?t.context=n:t.pendingContext=n,t=mi(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=so(i,t,a),e!==null&&(kr(e,i,a,o),nf(e,i,a)),a}function ap(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function eS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function U1(e,t){eS(e,t),(e=e.alternate)&&eS(e,t)}function y$(){return null}var qC=typeof reportError=="function"?reportError:function(e){console.error(e)};function H1(e){this._internalRoot=e}Gp.prototype.render=H1.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));Hp(e,t,null,null)};Gp.prototype.unmount=H1.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ba(function(){Hp(null,e,null,null)}),t[Si]=null}};function Gp(e){this._internalRoot=e}Gp.prototype.unstable_scheduleHydration=function(e){if(e){var t=j5();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Hi.length&&t!==0&&t<Hi[n].priority;n++);Hi.splice(n,0,e),n===0&&_5(e)}};function G1(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Kp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function tS(){}function b$(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=ap(a);o.call(u)}}var a=KC(t,r,e,0,null,!1,!1,"",tS);return e._reactRootContainer=a,e[Si]=a.current,Fc(e.nodeType===8?e.parentNode:e),ba(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=ap(c);l.call(u)}}var c=W1(e,0,!1,null,null,!1,!1,"",tS);return e._reactRootContainer=c,e[Si]=c.current,Fc(e.nodeType===8?e.parentNode:e),ba(function(){Hp(t,c,n,r)}),c}function qp(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var l=i;i=function(){var c=ap(a);l.call(c)}}Hp(t,a,e,i)}else a=b$(n,t,e,i,r);return ap(a)}k5=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ul(t.pendingLanes);n!==0&&(d1(t,n|1),_n(t,St()),!(ze&6)&&(Ks=St()+500,jo()))}break;case 13:ba(function(){var r=wi(e,1);if(r!==null){var i=mn();kr(r,e,1,i)}}),U1(e,1)}};f1=function(e){if(e.tag===13){var t=wi(e,134217728);if(t!==null){var n=mn();kr(t,e,134217728,n)}U1(e,134217728)}};C5=function(e){if(e.tag===13){var t=co(e),n=wi(e,t);if(n!==null){var r=mn();kr(n,e,t,r)}U1(e,t)}};j5=function(){return Ve};P5=function(e,t){var n=Ve;try{return Ve=e,t()}finally{Ve=n}};J0=function(e,t,n){switch(t){case"input":if(G0(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Dp(r);if(!i)throw Error(U(90));r5(r),G0(r,i)}}}break;case"textarea":o5(e,n);break;case"select":t=n.value,t!=null&&Cs(e,!!n.multiple,t,!1)}};f5=O1;p5=ba;var x$={usingClientEntryPoint:!1,Events:[wu,es,Dp,u5,d5,O1]},zl={findFiberByHostInstance:qo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},S$={bundleType:zl.bundleType,version:zl.version,rendererPackageName:zl.rendererPackageName,rendererConfig:zl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ei.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=g5(e),e===null?null:e.stateNode},findFiberByHostInstance:zl.findFiberByHostInstance||y$,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 bd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bd.isDisabled&&bd.supportsFiber)try{Mp=bd.inject(S$),Wr=bd}catch{}}Hn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x$;Hn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!G1(t))throw Error(U(200));return v$(e,t,null,n)};Hn.createRoot=function(e,t){if(!G1(e))throw Error(U(299));var n=!1,r="",i=qC;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=W1(e,1,!1,null,null,n,!1,r,i),e[Si]=t.current,Fc(e.nodeType===8?e.parentNode:e),new H1(t)};Hn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=g5(t),e=e===null?null:e.stateNode,e};Hn.flushSync=function(e){return ba(e)};Hn.hydrate=function(e,t,n){if(!Kp(t))throw Error(U(200));return qp(null,e,t,!0,n)};Hn.hydrateRoot=function(e,t,n){if(!G1(e))throw Error(U(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=qC;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=KC(t,null,e,1,n??null,i,!1,o,a),e[Si]=t.current,Fc(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Gp(t)};Hn.render=function(e,t,n){if(!Kp(t))throw Error(U(200));return qp(null,e,t,!1,n)};Hn.unmountComponentAtNode=function(e){if(!Kp(e))throw Error(U(40));return e._reactRootContainer?(ba(function(){qp(null,null,e,!1,function(){e._reactRootContainer=null,e[Si]=null})}),!0):!1};Hn.unstable_batchedUpdates=O1;Hn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Kp(n))throw Error(U(200));if(e==null||e._reactInternals===void 0)throw Error(U(38));return qp(e,t,n,!1,r)};Hn.version="18.3.1-next-f1338f8080-20240426";function XC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(XC)}catch(e){console.error(e)}}XC(),Xk.exports=Hn;var K1=Xk.exports,nS=K1;O0.createRoot=nS.createRoot,O0.hydrateRoot=nS.hydrateRoot;function YC(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function w$(){return!!(globalThis!=null&&globalThis.document)}function QC(e){return e.parentElement&&QC(e.parentElement)?!0:e.hidden}function k$(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function C$(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function j$(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&(i in n&&delete n[i],n[i]=r[i]);return n}const le=e=>e?"":void 0,hi=e=>e?!0:void 0;function zg(e){return Array.isArray(e)}function Mt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!zg(e)}function P$(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function _$(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Rg(e){if(e==null)return e;const{unitless:t}=_$(e);return t||typeof e=="number"?`${e}px`:e}const ZC=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,q1=e=>Object.fromEntries(Object.entries(e).sort(ZC));function rS(e){const t=q1(e);return Object.assign(Object.values(t),t)}function T$(e){const t=Object.keys(q1(e));return new Set(t)}function iS(e){if(!e)return e;e=Rg(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function Gl(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Rg(e)})`),t&&n.push("and",`(max-width: ${Rg(t)})`),n.join(" ")}function E$(e){if(!e)return null;e.base=e.base??"0px";const t=rS(e),n=Object.entries(e).sort(ZC).map(([o,a],l,c)=>{let[,u]=c[l+1]??[];return u=parseFloat(u)>0?iS(u):void 0,{_minW:iS(a),breakpoint:o,minW:a,maxW:u,maxWQuery:Gl(null,u),minWQuery:Gl(a),minMaxQuery:Gl(a,u)}}),r=T$(e),i=Array.from(r.values());return{keys:r,normalized:t,isResponsive(o){const a=Object.keys(o);return a.length>0&&a.every(l=>r.has(l))},asObject:q1(e),asArray:rS(e),details:n,get(o){return n.find(a=>a.breakpoint===o)},media:[null,...t.map(o=>Gl(o)).slice(1)],toArrayValue(o){if(!Mt(o))throw new Error("toArrayValue: value must be an object");const a=i.map(l=>o[l]??null);for(;P$(a)===null;)a.pop();return a},toObjectValue(o){if(!Array.isArray(o))throw new Error("toObjectValue: value must be an array");return o.reduce((a,l,c)=>{const u=i[c];return u!=null&&l!=null&&(a[u]=l),a},{})}}}function A$(...e){return function(...n){e.forEach(r=>r==null?void 0:r(...n))}}function fe(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function X1(e){return m.Children.toArray(e).filter(t=>m.isValidElement(t))}function Y1(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function $$(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Ce(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o,defaultValue:a}=e,l=m.createContext(a);l.displayName=t;function c(){var d;const u=m.useContext(l);if(!u&&n){const f=new Error(o??$$(r,i));throw f.name="ContextError",(d=Error.captureStackTrace)==null||d.call(Error,f,c),f}return u}return[l.Provider,c,l]}const W=(...e)=>e.filter(Boolean).join(" "),z$=e=>e.hasAttribute("tabindex");function R$(e){if(!YC(e)||QC(e)||C$(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():k$(e)?!0:z$(e)}const M$=["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]"],I$=M$.join(),L$=e=>e.offsetWidth>0&&e.offsetHeight>0;function N$(e){const t=Array.from(e.querySelectorAll(I$));return t.unshift(e),t.filter(n=>R$(n)&&L$(n))}function D$(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return e===void 0?n:e}const O$=e=>{const t=new WeakMap;return(r,i,o,a)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const l=t.get(r);if(l.has(i))return l.get(i);const c=e(r,i,o,a);return l.set(i,c),c}},JC=O$(D$),F$=e=>e.default||e;function Q1(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function e6(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}const t6=Object.freeze(["base","sm","md","lg","xl","2xl"]);function Z1(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Mt(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function B$(e,t=t6){const n={};return e.forEach((r,i)=>{const o=t[i];r!=null&&(n[o]=r)}),n}const V$=e=>typeof e=="function";function sn(e,...t){return V$(e)?e(...t):e}function W$(e){const t=e.ownerDocument.defaultView||window,{overflow:n,overflowX:r,overflowY:i}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(n+i+r)}function U$(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function n6(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:YC(e)&&W$(e)?e:n6(U$(e))}function r6(e,t){const n={},r={};for(const[i,o]of Object.entries(e))t.includes(i)?n[i]=o:r[i]=o;return[n,r]}function H$(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),i=a=>{const l={};for(let c=0;c<a.length;c++){const u=a[c];n[u]&&(Object.defineProperty(l,u,n[u]),delete n[u])}return l},o=a=>i(Array.isArray(a)?a:r.filter(a));return t.map(o).concat(i(r))}function oS(e,t,n={}){const{stop:r,getKey:i}=n;function o(a,l=[]){if(Mt(a)||Array.isArray(a)){const c={};for(const[u,d]of Object.entries(a)){const f=(i==null?void 0:i(u))??u,p=[...l,f];if(r!=null&&r(a,p))return t(a,l);c[f]=o(d,p)}return c}return t(a,l)}return o(e)}var sp={exports:{}};sp.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",p="[object Error]",h="[object Function]",v="[object GeneratorFunction]",y="[object Map]",x="[object Number]",b="[object Null]",g="[object Object]",S="[object Proxy]",w="[object RegExp]",k="[object Set]",P="[object String]",j="[object Undefined]",_="[object WeakMap]",M="[object ArrayBuffer]",T="[object DataView]",O="[object Float32Array]",q="[object Float64Array]",ne="[object Int8Array]",z="[object Int16Array]",X="[object Int32Array]",V="[object Uint8Array]",I="[object Uint8ClampedArray]",D="[object Uint16Array]",R="[object Uint32Array]",F=/[\\^$.*+?()[\]{}|]/g,G=/^\[object .+?Constructor\]$/,K=/^(?:0|[1-9]\d*)$/,ee={};ee[O]=ee[q]=ee[ne]=ee[z]=ee[X]=ee[V]=ee[I]=ee[D]=ee[R]=!0,ee[l]=ee[c]=ee[M]=ee[d]=ee[T]=ee[f]=ee[p]=ee[h]=ee[y]=ee[x]=ee[g]=ee[w]=ee[k]=ee[P]=ee[_]=!1;var Pe=typeof nd=="object"&&nd&&nd.Object===Object&&nd,we=typeof self=="object"&&self&&self.Object===Object&&self,Te=Pe||we||Function("return this")(),Ge=t&&!t.nodeType&&t,Ye=Ge&&!0&&e&&!e.nodeType&&e,te=Ye&&Ye.exports===Ge,re=te&&Pe.process,$e=function(){try{var C=Ye&&Ye.require&&Ye.require("util").types;return C||re&&re.binding&&re.binding("util")}catch{}}(),me=$e&&$e.isTypedArray;function it(C,A,L){switch(L.length){case 0:return C.call(A);case 1:return C.call(A,L[0]);case 2:return C.call(A,L[0],L[1]);case 3:return C.call(A,L[0],L[1],L[2])}return C.apply(A,L)}function pe(C,A){for(var L=-1,ae=Array(C);++L<C;)ae[L]=A(L);return ae}function lt(C){return function(A){return C(A)}}function Be(C,A){return C==null?void 0:C[A]}function Et(C,A){return function(L){return C(A(L))}}var ye=Array.prototype,xn=Function.prototype,Lt=Object.prototype,dr=Te["__core-js_shared__"],Jr=xn.toString,oe=Lt.hasOwnProperty,ei=function(){var C=/[^.]+$/.exec(dr&&dr.keys&&dr.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}(),zo=Lt.toString,Xu=Jr.call(Object),Yu=RegExp("^"+Jr.call(oe).replace(F,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ro=te?Te.Buffer:void 0,_x=Te.Symbol,Tx=Te.Uint8Array;Ro&&Ro.allocUnsafe;var Ex=Et(Object.getPrototypeOf,Object),Ax=Object.create,U7=Lt.propertyIsEnumerable,H7=ye.splice,Mo=_x?_x.toStringTag:void 0,Qu=function(){try{var C=Xm(Object,"defineProperty");return C({},"",{}),C}catch{}}(),G7=Ro?Ro.isBuffer:void 0,$x=Math.max,K7=Date.now,zx=Xm(Te,"Map"),wl=Xm(Object,"create"),q7=function(){function C(){}return function(A){if(!Lo(A))return{};if(Ax)return Ax(A);C.prototype=A;var L=new C;return C.prototype=void 0,L}}();function Io(C){var A=-1,L=C==null?0:C.length;for(this.clear();++A<L;){var ae=C[A];this.set(ae[0],ae[1])}}function X7(){this.__data__=wl?wl(null):{},this.size=0}function Y7(C){var A=this.has(C)&&delete this.__data__[C];return this.size-=A?1:0,A}function Q7(C){var A=this.__data__;if(wl){var L=A[C];return L===r?void 0:L}return oe.call(A,C)?A[C]:void 0}function Z7(C){var A=this.__data__;return wl?A[C]!==void 0:oe.call(A,C)}function J7(C,A){var L=this.__data__;return this.size+=this.has(C)?0:1,L[C]=wl&&A===void 0?r:A,this}Io.prototype.clear=X7,Io.prototype.delete=Y7,Io.prototype.get=Q7,Io.prototype.has=Z7,Io.prototype.set=J7;function ti(C){var A=-1,L=C==null?0:C.length;for(this.clear();++A<L;){var ae=C[A];this.set(ae[0],ae[1])}}function eE(){this.__data__=[],this.size=0}function tE(C){var A=this.__data__,L=Zu(A,C);if(L<0)return!1;var ae=A.length-1;return L==ae?A.pop():H7.call(A,L,1),--this.size,!0}function nE(C){var A=this.__data__,L=Zu(A,C);return L<0?void 0:A[L][1]}function rE(C){return Zu(this.__data__,C)>-1}function iE(C,A){var L=this.__data__,ae=Zu(L,C);return ae<0?(++this.size,L.push([C,A])):L[ae][1]=A,this}ti.prototype.clear=eE,ti.prototype.delete=tE,ti.prototype.get=nE,ti.prototype.has=rE,ti.prototype.set=iE;function La(C){var A=-1,L=C==null?0:C.length;for(this.clear();++A<L;){var ae=C[A];this.set(ae[0],ae[1])}}function oE(){this.size=0,this.__data__={hash:new Io,map:new(zx||ti),string:new Io}}function aE(C){var A=ed(this,C).delete(C);return this.size-=A?1:0,A}function sE(C){return ed(this,C).get(C)}function lE(C){return ed(this,C).has(C)}function cE(C,A){var L=ed(this,C),ae=L.size;return L.set(C,A),this.size+=L.size==ae?0:1,this}La.prototype.clear=oE,La.prototype.delete=aE,La.prototype.get=sE,La.prototype.has=lE,La.prototype.set=cE;function Na(C){var A=this.__data__=new ti(C);this.size=A.size}function uE(){this.__data__=new ti,this.size=0}function dE(C){var A=this.__data__,L=A.delete(C);return this.size=A.size,L}function fE(C){return this.__data__.get(C)}function pE(C){return this.__data__.has(C)}function mE(C,A){var L=this.__data__;if(L instanceof ti){var ae=L.__data__;if(!zx||ae.length<n-1)return ae.push([C,A]),this.size=++L.size,this;L=this.__data__=new La(ae)}return L.set(C,A),this.size=L.size,this}Na.prototype.clear=uE,Na.prototype.delete=dE,Na.prototype.get=fE,Na.prototype.has=pE,Na.prototype.set=mE;function hE(C,A){var L=Zm(C),ae=!L&&Qm(C),Ee=!L&&!ae&&Nx(C),He=!L&&!ae&&!Ee&&Ox(C),ot=L||ae||Ee||He,Me=ot?pe(C.length,String):[],at=Me.length;for(var fr in C)ot&&(fr=="length"||Ee&&(fr=="offset"||fr=="parent")||He&&(fr=="buffer"||fr=="byteLength"||fr=="byteOffset")||Ix(fr,at))||Me.push(fr);return Me}function Km(C,A,L){(L!==void 0&&!td(C[A],L)||L===void 0&&!(A in C))&&qm(C,A,L)}function gE(C,A,L){var ae=C[A];(!(oe.call(C,A)&&td(ae,L))||L===void 0&&!(A in C))&&qm(C,A,L)}function Zu(C,A){for(var L=C.length;L--;)if(td(C[L][0],A))return L;return-1}function qm(C,A,L){A=="__proto__"&&Qu?Qu(C,A,{configurable:!0,enumerable:!0,value:L,writable:!0}):C[A]=L}var vE=AE();function Ju(C){return C==null?C===void 0?j:b:Mo&&Mo in Object(C)?$E(C):NE(C)}function Rx(C){return kl(C)&&Ju(C)==l}function yE(C){if(!Lo(C)||IE(C))return!1;var A=eh(C)?Yu:G;return A.test(BE(C))}function bE(C){return kl(C)&&Dx(C.length)&&!!ee[Ju(C)]}function xE(C){if(!Lo(C))return LE(C);var A=Lx(C),L=[];for(var ae in C)ae=="constructor"&&(A||!oe.call(C,ae))||L.push(ae);return L}function Mx(C,A,L,ae,Ee){C!==A&&vE(A,function(He,ot){if(Ee||(Ee=new Na),Lo(He))SE(C,A,ot,L,Mx,ae,Ee);else{var Me=ae?ae(Ym(C,ot),He,ot+"",C,A,Ee):void 0;Me===void 0&&(Me=He),Km(C,ot,Me)}},Fx)}function SE(C,A,L,ae,Ee,He,ot){var Me=Ym(C,L),at=Ym(A,L),fr=ot.get(at);if(fr){Km(C,L,fr);return}var zn=He?He(Me,at,L+"",C,A,ot):void 0,Cl=zn===void 0;if(Cl){var th=Zm(at),nh=!th&&Nx(at),Vx=!th&&!nh&&Ox(at);zn=at,th||nh||Vx?Zm(Me)?zn=Me:VE(Me)?zn=_E(Me):nh?(Cl=!1,zn=CE(at)):Vx?(Cl=!1,zn=PE(at)):zn=[]:WE(at)||Qm(at)?(zn=Me,Qm(Me)?zn=UE(Me):(!Lo(Me)||eh(Me))&&(zn=zE(at))):Cl=!1}Cl&&(ot.set(at,zn),Ee(zn,at,ae,He,ot),ot.delete(at)),Km(C,L,zn)}function wE(C,A){return OE(DE(C,A,Bx),C+"")}var kE=Qu?function(C,A){return Qu(C,"toString",{configurable:!0,enumerable:!1,value:GE(A),writable:!0})}:Bx;function CE(C,A){return C.slice()}function jE(C){var A=new C.constructor(C.byteLength);return new Tx(A).set(new Tx(C)),A}function PE(C,A){var L=jE(C.buffer);return new C.constructor(L,C.byteOffset,C.length)}function _E(C,A){var L=-1,ae=C.length;for(A||(A=Array(ae));++L<ae;)A[L]=C[L];return A}function TE(C,A,L,ae){var Ee=!L;L||(L={});for(var He=-1,ot=A.length;++He<ot;){var Me=A[He],at=void 0;at===void 0&&(at=C[Me]),Ee?qm(L,Me,at):gE(L,Me,at)}return L}function EE(C){return wE(function(A,L){var ae=-1,Ee=L.length,He=Ee>1?L[Ee-1]:void 0,ot=Ee>2?L[2]:void 0;for(He=C.length>3&&typeof He=="function"?(Ee--,He):void 0,ot&&RE(L[0],L[1],ot)&&(He=Ee<3?void 0:He,Ee=1),A=Object(A);++ae<Ee;){var Me=L[ae];Me&&C(A,Me,ae,He)}return A})}function AE(C){return function(A,L,ae){for(var Ee=-1,He=Object(A),ot=ae(A),Me=ot.length;Me--;){var at=ot[++Ee];if(L(He[at],at,He)===!1)break}return A}}function ed(C,A){var L=C.__data__;return ME(A)?L[typeof A=="string"?"string":"hash"]:L.map}function Xm(C,A){var L=Be(C,A);return yE(L)?L:void 0}function $E(C){var A=oe.call(C,Mo),L=C[Mo];try{C[Mo]=void 0;var ae=!0}catch{}var Ee=zo.call(C);return ae&&(A?C[Mo]=L:delete C[Mo]),Ee}function zE(C){return typeof C.constructor=="function"&&!Lx(C)?q7(Ex(C)):{}}function Ix(C,A){var L=typeof C;return A=A??a,!!A&&(L=="number"||L!="symbol"&&K.test(C))&&C>-1&&C%1==0&&C<A}function RE(C,A,L){if(!Lo(L))return!1;var ae=typeof A;return(ae=="number"?Jm(L)&&Ix(A,L.length):ae=="string"&&A in L)?td(L[A],C):!1}function ME(C){var A=typeof C;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?C!=="__proto__":C===null}function IE(C){return!!ei&&ei in C}function Lx(C){var A=C&&C.constructor,L=typeof A=="function"&&A.prototype||Lt;return C===L}function LE(C){var A=[];if(C!=null)for(var L in Object(C))A.push(L);return A}function NE(C){return zo.call(C)}function DE(C,A,L){return A=$x(A===void 0?C.length-1:A,0),function(){for(var ae=arguments,Ee=-1,He=$x(ae.length-A,0),ot=Array(He);++Ee<He;)ot[Ee]=ae[A+Ee];Ee=-1;for(var Me=Array(A+1);++Ee<A;)Me[Ee]=ae[Ee];return Me[A]=L(ot),it(C,this,Me)}}function Ym(C,A){if(!(A==="constructor"&&typeof C[A]=="function")&&A!="__proto__")return C[A]}var OE=FE(kE);function FE(C){var A=0,L=0;return function(){var ae=K7(),Ee=o-(ae-L);if(L=ae,Ee>0){if(++A>=i)return arguments[0]}else A=0;return C.apply(void 0,arguments)}}function BE(C){if(C!=null){try{return Jr.call(C)}catch{}try{return C+""}catch{}}return""}function td(C,A){return C===A||C!==C&&A!==A}var Qm=Rx(function(){return arguments}())?Rx:function(C){return kl(C)&&oe.call(C,"callee")&&!U7.call(C,"callee")},Zm=Array.isArray;function Jm(C){return C!=null&&Dx(C.length)&&!eh(C)}function VE(C){return kl(C)&&Jm(C)}var Nx=G7||KE;function eh(C){if(!Lo(C))return!1;var A=Ju(C);return A==h||A==v||A==u||A==S}function Dx(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=a}function Lo(C){var A=typeof C;return C!=null&&(A=="object"||A=="function")}function kl(C){return C!=null&&typeof C=="object"}function WE(C){if(!kl(C)||Ju(C)!=g)return!1;var A=Ex(C);if(A===null)return!0;var L=oe.call(A,"constructor")&&A.constructor;return typeof L=="function"&&L instanceof L&&Jr.call(L)==Xu}var Ox=me?lt(me):bE;function UE(C){return TE(C,Fx(C))}function Fx(C){return Jm(C)?hE(C):xE(C)}var HE=EE(function(C,A,L,ae){Mx(C,A,L,ae)});function GE(C){return function(){return C}}function Bx(C){return C}function KE(){return!1}e.exports=HE})(sp,sp.exports);var G$=sp.exports;const ir=Zv(G$);function Cr(e,t=[]){const n=m.useRef(e);return m.useEffect(()=>{n.current=e}),m.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function uf(e,t,n,r){const i=Cr(n);return m.useEffect(()=>{const o=typeof e=="function"?e():e??document;if(!(!n||!o))return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const o=typeof e=="function"?e():e??document;o==null||o.removeEventListener(t,i,r)}}function i6(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:i=(p,h)=>p!==h}=e,o=Cr(r),a=Cr(i),[l,c]=m.useState(n),u=t!==void 0,d=u?t:l,f=Cr(p=>{const v=typeof p=="function"?p(d):p;a(d,v)&&(u||c(v),o(v))},[u,o,d,a]);return[d,f]}function Cu(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=Cr(n),a=Cr(t),[l,c]=m.useState(e.defaultIsOpen||!1),u=r!==void 0?r:l,d=r!==void 0,f=m.useId(),p=i??`disclosure-${f}`,h=m.useCallback(()=>{d||c(!1),a==null||a()},[d,a]),v=m.useCallback(()=>{d||c(!0),o==null||o()},[d,o]),y=m.useCallback(()=>{u?h():v()},[u,v,h]);function x(g={}){return{...g,"aria-expanded":u,"aria-controls":p,onClick(S){var w;(w=g.onClick)==null||w.call(g,S),y()}}}function b(g={}){return{...g,hidden:!u,id:p}}return{isOpen:u,onOpen:v,onClose:h,onToggle:y,isControlled:d,getButtonProps:x,getDisclosureProps:b}}const gi=globalThis!=null&&globalThis.document?m.useLayoutEffect:m.useEffect,lp=(e,t)=>{const n=m.useRef(!1),r=m.useRef(!1);m.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),m.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function K$(e){return"current"in e}const o6=()=>typeof window<"u";function q$(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}const X$=e=>o6()&&e.test(navigator.vendor),Y$=e=>o6()&&e.test(q$()),Q$=()=>Y$(/mac|iphone|ipad|ipod/i),Z$=()=>Q$()&&X$(/apple/i);function J$(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var o;return((o=t.current)==null?void 0:o.ownerDocument)??document};uf(i,"pointerdown",o=>{var u,d;if(!Z$()||!r)return;const a=((d=(u=o.composedPath)==null?void 0:u.call(o))==null?void 0:d[0])??o.target,c=(n??[t]).some(f=>{const p=K$(f)?f.current:f;return(p==null?void 0:p.contains(a))||p===a});i().activeElement!==a&&c&&(o.preventDefault(),a.focus())})}function ez(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 zt(...e){return t=>{e.forEach(n=>{ez(n,t)})}}function J1(...e){return m.useMemo(()=>zt(...e),e)}function tz(e,t){const n=Cr(e);m.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const At={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}`},$r=e=>a6(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ni=e=>a6(t=>e(t,"~ &"),"[data-peer]",".peer"),a6=(e,...t)=>t.map(e).join(", "),As={_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:$r(At.open),_groupClosed:$r(At.closed),_groupHover:$r(At.hover),_peerHover:ni(At.hover),_groupFocus:$r(At.focus),_peerFocus:ni(At.focus),_groupFocusVisible:$r(At.focusVisible),_peerFocusVisible:ni(At.focusVisible),_groupActive:$r(At.active),_peerActive:ni(At.active),_groupDisabled:$r(At.disabled),_peerDisabled:ni(At.disabled),_groupInvalid:$r(At.invalid),_peerInvalid:ni(At.invalid),_groupChecked:$r(At.checked),_peerChecked:ni(At.checked),_groupFocusWithin:$r(At.focusWithin),_peerFocusWithin:ni(At.focusWithin),_peerPlaceholderShown:ni(At.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]"},s6=Object.keys(As),nz=e=>/!(important)?$/.test(e),aS=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,rz=(e,t)=>n=>{const r=String(t),i=nz(r),o=aS(r),a=e?`${e}.${o}`:o;let l=Mt(n.__cssMap)&&a in n.__cssMap?n.__cssMap[a].varRef:t;return l=aS(l),i?`${l} !important`:l};function ey(e){const{scale:t,transform:n,compose:r}=e;return(o,a)=>{const l=rz(t,o)(a);let c=(n==null?void 0:n(l,a))??l;return r&&(c=r(c,a)),c}}const xd=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Qn(e,t){return n=>{const r={property:n,scale:e};return r.transform=ey({scale:e,transform:t}),r}}const iz=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function oz(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:iz(t),transform:n?ey({scale:n,compose:r}):r}}const l6=["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 az(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...l6].join(" ")}function sz(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...l6].join(" ")}const lz={"--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(" ")},cz={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 uz(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 dz={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Mg={"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"},fz=new Set(Object.values(Mg)),Ig=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),pz=e=>e.trim();function mz(e,t){if(e==null||Ig.has(e))return e;if(!(Lg(e)||Ig.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),o=i==null?void 0:i[1],a=i==null?void 0:i[2];if(!o||!a)return e;const l=o.includes("-gradient")?o:`${o}-gradient`,[c,...u]=a.split(",").map(pz).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const d=c in Mg?Mg[c]:c;u.unshift(d);const f=u.map(p=>{if(fz.has(p))return p;const h=p.indexOf(" "),[v,y]=h!==-1?[p.substr(0,h),p.substr(h+1)]:[p],x=Lg(y)?y:y&&y.split(" "),b=`colors.${v}`,g=b in t.__cssMap?t.__cssMap[b].varRef:v;return x?[g,...Array.isArray(x)?x:[x]].join(" "):g});return`${l}(${f.join(", ")})`}const Lg=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),hz=(e,t)=>mz(e,t??{});function gz(e){return/^var\(--.+\)$/.test(e)}const vz=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},zr=e=>t=>`${e}(${t})`,_e={filter(e){return e!=="auto"?e:lz},backdropFilter(e){return e!=="auto"?e:cz},ring(e){return uz(_e.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?az():e==="auto-gpu"?sz():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=vz(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(gz(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:hz,blur:zr("blur"),opacity:zr("opacity"),brightness:zr("brightness"),contrast:zr("contrast"),dropShadow:zr("drop-shadow"),grayscale:zr("grayscale"),hueRotate:e=>zr("hue-rotate")(_e.degree(e)),invert:zr("invert"),saturate:zr("saturate"),sepia:zr("sepia"),bgImage(e){return e==null||Lg(e)||Ig.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}=dz[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},E={borderWidths:Qn("borderWidths"),borderStyles:Qn("borderStyles"),colors:Qn("colors"),borders:Qn("borders"),gradients:Qn("gradients",_e.gradient),radii:Qn("radii",_e.px),space:Qn("space",xd(_e.vh,_e.px)),spaceT:Qn("space",xd(_e.vh,_e.px)),degreeT(e){return{property:e,transform:_e.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:ey({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Qn("sizes",xd(_e.vh,_e.px)),sizesT:Qn("sizes",xd(_e.vh,_e.fraction)),shadows:Qn("shadows"),logical:oz,blur:Qn("blur",_e.blur)},df={background:E.colors("background"),backgroundColor:E.colors("backgroundColor"),backgroundImage:E.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:_e.bgClip},bgSize:E.prop("backgroundSize"),bgPosition:E.prop("backgroundPosition"),bg:E.colors("background"),bgColor:E.colors("backgroundColor"),bgPos:E.prop("backgroundPosition"),bgRepeat:E.prop("backgroundRepeat"),bgAttachment:E.prop("backgroundAttachment"),bgGradient:E.gradients("backgroundImage"),bgClip:{transform:_e.bgClip}};Object.assign(df,{bgImage:df.backgroundImage,bgImg:df.backgroundImage});const Ie={border:E.borders("border"),borderWidth:E.borderWidths("borderWidth"),borderStyle:E.borderStyles("borderStyle"),borderColor:E.colors("borderColor"),borderRadius:E.radii("borderRadius"),borderTop:E.borders("borderTop"),borderBlockStart:E.borders("borderBlockStart"),borderTopLeftRadius:E.radii("borderTopLeftRadius"),borderStartStartRadius:E.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:E.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:E.radii("borderTopRightRadius"),borderStartEndRadius:E.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:E.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:E.borders("borderRight"),borderInlineEnd:E.borders("borderInlineEnd"),borderBottom:E.borders("borderBottom"),borderBlockEnd:E.borders("borderBlockEnd"),borderBottomLeftRadius:E.radii("borderBottomLeftRadius"),borderBottomRightRadius:E.radii("borderBottomRightRadius"),borderLeft:E.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:E.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:E.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:E.borders(["borderLeft","borderRight"]),borderInline:E.borders("borderInline"),borderY:E.borders(["borderTop","borderBottom"]),borderBlock:E.borders("borderBlock"),borderTopWidth:E.borderWidths("borderTopWidth"),borderBlockStartWidth:E.borderWidths("borderBlockStartWidth"),borderTopColor:E.colors("borderTopColor"),borderBlockStartColor:E.colors("borderBlockStartColor"),borderTopStyle:E.borderStyles("borderTopStyle"),borderBlockStartStyle:E.borderStyles("borderBlockStartStyle"),borderBottomWidth:E.borderWidths("borderBottomWidth"),borderBlockEndWidth:E.borderWidths("borderBlockEndWidth"),borderBottomColor:E.colors("borderBottomColor"),borderBlockEndColor:E.colors("borderBlockEndColor"),borderBottomStyle:E.borderStyles("borderBottomStyle"),borderBlockEndStyle:E.borderStyles("borderBlockEndStyle"),borderLeftWidth:E.borderWidths("borderLeftWidth"),borderInlineStartWidth:E.borderWidths("borderInlineStartWidth"),borderLeftColor:E.colors("borderLeftColor"),borderInlineStartColor:E.colors("borderInlineStartColor"),borderLeftStyle:E.borderStyles("borderLeftStyle"),borderInlineStartStyle:E.borderStyles("borderInlineStartStyle"),borderRightWidth:E.borderWidths("borderRightWidth"),borderInlineEndWidth:E.borderWidths("borderInlineEndWidth"),borderRightColor:E.colors("borderRightColor"),borderInlineEndColor:E.colors("borderInlineEndColor"),borderRightStyle:E.borderStyles("borderRightStyle"),borderInlineEndStyle:E.borderStyles("borderInlineEndStyle"),borderTopRadius:E.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:E.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:E.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:E.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Ie,{rounded:Ie.borderRadius,roundedTop:Ie.borderTopRadius,roundedTopLeft:Ie.borderTopLeftRadius,roundedTopRight:Ie.borderTopRightRadius,roundedTopStart:Ie.borderStartStartRadius,roundedTopEnd:Ie.borderStartEndRadius,roundedBottom:Ie.borderBottomRadius,roundedBottomLeft:Ie.borderBottomLeftRadius,roundedBottomRight:Ie.borderBottomRightRadius,roundedBottomStart:Ie.borderEndStartRadius,roundedBottomEnd:Ie.borderEndEndRadius,roundedLeft:Ie.borderLeftRadius,roundedRight:Ie.borderRightRadius,roundedStart:Ie.borderInlineStartRadius,roundedEnd:Ie.borderInlineEndRadius,borderStart:Ie.borderInlineStart,borderEnd:Ie.borderInlineEnd,borderTopStartRadius:Ie.borderStartStartRadius,borderTopEndRadius:Ie.borderStartEndRadius,borderBottomStartRadius:Ie.borderEndStartRadius,borderBottomEndRadius:Ie.borderEndEndRadius,borderStartRadius:Ie.borderInlineStartRadius,borderEndRadius:Ie.borderInlineEndRadius,borderStartWidth:Ie.borderInlineStartWidth,borderEndWidth:Ie.borderInlineEndWidth,borderStartColor:Ie.borderInlineStartColor,borderEndColor:Ie.borderInlineEndColor,borderStartStyle:Ie.borderInlineStartStyle,borderEndStyle:Ie.borderInlineEndStyle});const yz={color:E.colors("color"),textColor:E.colors("color"),fill:E.colors("fill"),stroke:E.colors("stroke"),accentColor:E.colors("accentColor"),textFillColor:E.colors("textFillColor")},cp={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:_e.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:E.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:E.space("gap"),rowGap:E.space("rowGap"),columnGap:E.space("columnGap")};Object.assign(cp,{flexDir:cp.flexDirection});const Jn={width:E.sizesT("width"),inlineSize:E.sizesT("inlineSize"),height:E.sizes("height"),blockSize:E.sizes("blockSize"),boxSize:E.sizes(["width","height"]),minWidth:E.sizes("minWidth"),minInlineSize:E.sizes("minInlineSize"),minHeight:E.sizes("minHeight"),minBlockSize:E.sizes("minBlockSize"),maxWidth:E.sizes("maxWidth"),maxInlineSize:E.sizes("maxInlineSize"),maxHeight:E.sizes("maxHeight"),maxBlockSize:E.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 i,o;return{[`@media screen and (min-width: ${((o=(i=t.__breakpoints)==null?void 0:i.get(e))==null?void 0:o.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var i,o;return{[`@media screen and (max-width: ${((o=(i=t.__breakpoints)==null?void 0:i.get(e))==null?void 0:o._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:E.propT("float",_e.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Jn,{w:Jn.width,h:Jn.height,minW:Jn.minWidth,maxW:Jn.maxWidth,minH:Jn.minHeight,maxH:Jn.maxHeight,overscroll:Jn.overscrollBehavior,overscrollX:Jn.overscrollBehaviorX,overscrollY:Jn.overscrollBehaviorY});const bz={filter:{transform:_e.filter},blur:E.blur("--chakra-blur"),brightness:E.propT("--chakra-brightness",_e.brightness),contrast:E.propT("--chakra-contrast",_e.contrast),hueRotate:E.propT("--chakra-hue-rotate",_e.hueRotate),invert:E.propT("--chakra-invert",_e.invert),saturate:E.propT("--chakra-saturate",_e.saturate),dropShadow:E.propT("--chakra-drop-shadow",_e.dropShadow),backdropFilter:{transform:_e.backdropFilter},backdropBlur:E.blur("--chakra-backdrop-blur"),backdropBrightness:E.propT("--chakra-backdrop-brightness",_e.brightness),backdropContrast:E.propT("--chakra-backdrop-contrast",_e.contrast),backdropHueRotate:E.propT("--chakra-backdrop-hue-rotate",_e.hueRotate),backdropInvert:E.propT("--chakra-backdrop-invert",_e.invert),backdropSaturate:E.propT("--chakra-backdrop-saturate",_e.saturate)},xz={ring:{transform:_e.ring},ringColor:E.colors("--chakra-ring-color"),ringOffset:E.prop("--chakra-ring-offset-width"),ringOffsetColor:E.colors("--chakra-ring-offset-color"),ringInset:E.prop("--chakra-ring-inset")},Sz={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:_e.outline},outlineOffset:!0,outlineColor:E.colors("outlineColor")},c6={gridGap:E.space("gridGap"),gridColumnGap:E.space("gridColumnGap"),gridRowGap:E.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 wz(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return e===void 0?n:e}const kz=e=>{const t=new WeakMap;return(r,i,o,a)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const l=t.get(r);if(l.has(i))return l.get(i);const c=e(r,i,o,a);return l.set(i,c),c}},Cz=kz(wz),jz={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Pz={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Ah=(e,t,n)=>{const r={},i=Cz(e,t,{});for(const o in i)o in n&&n[o]!=null||(r[o]=i[o]);return r},_z={srOnly:{transform(e){return e===!0?jz:e==="focusable"?Pz:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>Ah(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>Ah(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>Ah(t,e,n)}},gc={position:!0,pos:E.prop("position"),zIndex:E.prop("zIndex","zIndices"),inset:E.spaceT("inset"),insetX:E.spaceT(["left","right"]),insetInline:E.spaceT("insetInline"),insetY:E.spaceT(["top","bottom"]),insetBlock:E.spaceT("insetBlock"),top:E.spaceT("top"),insetBlockStart:E.spaceT("insetBlockStart"),bottom:E.spaceT("bottom"),insetBlockEnd:E.spaceT("insetBlockEnd"),left:E.spaceT("left"),insetInlineStart:E.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:E.spaceT("right"),insetInlineEnd:E.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(gc,{insetStart:gc.insetInlineStart,insetEnd:gc.insetInlineEnd});const Ng={boxShadow:E.shadows("boxShadow"),mixBlendMode:!0,blendMode:E.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:E.prop("backgroundBlendMode"),opacity:!0};Object.assign(Ng,{shadow:Ng.boxShadow});const Ze={margin:E.spaceT("margin"),marginTop:E.spaceT("marginTop"),marginBlockStart:E.spaceT("marginBlockStart"),marginRight:E.spaceT("marginRight"),marginInlineEnd:E.spaceT("marginInlineEnd"),marginBottom:E.spaceT("marginBottom"),marginBlockEnd:E.spaceT("marginBlockEnd"),marginLeft:E.spaceT("marginLeft"),marginInlineStart:E.spaceT("marginInlineStart"),marginX:E.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:E.spaceT("marginInline"),marginY:E.spaceT(["marginTop","marginBottom"]),marginBlock:E.spaceT("marginBlock"),padding:E.space("padding"),paddingTop:E.space("paddingTop"),paddingBlockStart:E.space("paddingBlockStart"),paddingRight:E.space("paddingRight"),paddingBottom:E.space("paddingBottom"),paddingBlockEnd:E.space("paddingBlockEnd"),paddingLeft:E.space("paddingLeft"),paddingInlineStart:E.space("paddingInlineStart"),paddingInlineEnd:E.space("paddingInlineEnd"),paddingX:E.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:E.space("paddingInline"),paddingY:E.space(["paddingTop","paddingBottom"]),paddingBlock:E.space("paddingBlock")};Object.assign(Ze,{m:Ze.margin,mt:Ze.marginTop,mr:Ze.marginRight,me:Ze.marginInlineEnd,marginEnd:Ze.marginInlineEnd,mb:Ze.marginBottom,ml:Ze.marginLeft,ms:Ze.marginInlineStart,marginStart:Ze.marginInlineStart,mx:Ze.marginX,my:Ze.marginY,p:Ze.padding,pt:Ze.paddingTop,py:Ze.paddingY,px:Ze.paddingX,pb:Ze.paddingBottom,pl:Ze.paddingLeft,ps:Ze.paddingInlineStart,paddingStart:Ze.paddingInlineStart,pr:Ze.paddingRight,pe:Ze.paddingInlineEnd,paddingEnd:Ze.paddingInlineEnd});const Tz={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:E.spaceT("scrollMargin"),scrollMarginTop:E.spaceT("scrollMarginTop"),scrollMarginBottom:E.spaceT("scrollMarginBottom"),scrollMarginLeft:E.spaceT("scrollMarginLeft"),scrollMarginRight:E.spaceT("scrollMarginRight"),scrollMarginX:E.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:E.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:E.spaceT("scrollPadding"),scrollPaddingTop:E.spaceT("scrollPaddingTop"),scrollPaddingBottom:E.spaceT("scrollPaddingBottom"),scrollPaddingLeft:E.spaceT("scrollPaddingLeft"),scrollPaddingRight:E.spaceT("scrollPaddingRight"),scrollPaddingX:E.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:E.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},Ez={fontFamily:E.prop("fontFamily","fonts"),fontSize:E.prop("fontSize","fontSizes",_e.px),fontWeight:E.prop("fontWeight","fontWeights"),lineHeight:E.prop("lineHeight","lineHeights"),letterSpacing:E.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"}},Az={textDecorationColor:E.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:E.shadows("textShadow")},$z={clipPath:!0,transform:E.propT("transform",_e.transform),transformOrigin:!0,translateX:E.spaceT("--chakra-translate-x"),translateY:E.spaceT("--chakra-translate-y"),skewX:E.degreeT("--chakra-skew-x"),skewY:E.degreeT("--chakra-skew-y"),scaleX:E.prop("--chakra-scale-x"),scaleY:E.prop("--chakra-scale-y"),scale:E.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:E.degreeT("--chakra-rotate")},zz={listStyleType:!0,listStylePosition:!0,listStylePos:E.prop("listStylePosition"),listStyleImage:!0,listStyleImg:E.prop("listStyleImage")},Rz={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:E.prop("transitionDuration","transition.duration"),transitionProperty:E.prop("transitionProperty","transition.property"),transitionTimingFunction:E.prop("transitionTimingFunction","transition.easing")},ty=ir({},df,Ie,yz,cp,Jn,bz,xz,Sz,c6,_z,gc,Ng,Ze,Tz,Ez,Az,$z,zz,Rz),Mz=Object.assign({},Ze,Jn,cp,c6,gc),u6=Object.keys(Mz),Iz=[...Object.keys(ty),...s6],Lz={...ty,...As},Nz=e=>e in Lz,Dz=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:i}=t.__breakpoints,o={};for(const a in e){let l=sn(e[a],t);if(l==null)continue;if(l=Mt(l)&&n(l)?r(l):l,!Array.isArray(l)){o[a]=l;continue}const c=l.slice(0,i.length).length;for(let u=0;u<c;u+=1){const d=i==null?void 0:i[u];if(!d){o[a]=l[u];continue}o[d]=o[d]||{},l[u]!=null&&(o[d][a]=l[u])}}return o};function Oz(e){const t=[];let n="",r=!1;for(let i=0;i<e.length;i++){const o=e[i];o==="("?(r=!0,n+=o):o===")"?(r=!1,n+=o):o===","&&!r?(t.push(n),n=""):n+=o}return n=n.trim(),n&&t.push(n),t}function Fz(e){return/^var\(--.+\)$/.test(e)}const Bz=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!Fz(t),Vz=(e,t)=>{if(t==null)return t;const n=a=>{var l,c;return(c=(l=e.__cssMap)==null?void 0:l[a])==null?void 0:c.varRef},r=a=>n(a)??a,[i,o]=Oz(t);return t=n(i)??r(o)??r(t),t};function Wz(e){const{configs:t={},pseudos:n={},theme:r}=e,i=(o,a=!1)=>{var d;const l=sn(o,r),c=Dz(l)(r);let u={};for(let f in c){const p=c[f];let h=sn(p,r);f in n&&(f=n[f]),Bz(f,h)&&(h=Vz(r,h));let v=t[f];if(v===!0&&(v={property:f}),Mt(h)){u[f]=u[f]??{},u[f]=ir({},u[f],i(h,!0));continue}let y=((d=v==null?void 0:v.transform)==null?void 0:d.call(v,h,r,l))??h;y=v!=null&&v.processResult?i(y,!0):y;const x=sn(v==null?void 0:v.property,r);if(!a&&(v!=null&&v.static)){const b=sn(v.static,r);u=ir({},u,b)}if(x&&Array.isArray(x)){for(const b of x)u[b]=y;continue}if(x){x==="&"&&Mt(y)?u=ir({},u,y):u[x]=y;continue}if(Mt(y)){u=ir({},u,y);continue}u[f]=y}return u};return i}const d6=e=>t=>Wz({theme:t,pseudos:As,configs:ty})(e);function ce(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function Uz(e,t,n){var r,i;return((i=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:i.varRef)??n}function Hz(e,t){if(Array.isArray(e))return e;if(Mt(e))return t(e);if(e!=null)return[e]}function Gz(e,t){for(let n=t+1;n<e.length;n++)if(e[n]!=null)return n;return-1}function Kz(e){const t=e.__breakpoints;return function(r,i,o,a){var p,h;if(!t)return;const l={},c=Hz(o,t.toArrayValue);if(!c)return l;const u=c.length,d=u===1,f=!!r.parts;for(let v=0;v<u;v++){const y=t.details[v],x=t.details[Gz(c,v)],b=Gl(y.minW,x==null?void 0:x._minW),g=sn((p=r[i])==null?void 0:p[c[v]],a);if(g){if(f){(h=r.parts)==null||h.forEach(S=>{ir(l,{[S]:d?g[S]:{[b]:g[S]}})});continue}if(!f){d?ir(l,g):l[b]=g;continue}l[b]=g}}return l}}function qz(e){return t=>{const{variant:n,size:r,theme:i}=t,o=Kz(i);return ir({},sn(e.baseStyle??{},t),o(e,"sizes",r,t),o(e,"variants",n,t))}}function Ae(e){return Q1(e,["styleConfig","size","variant","colorScheme"])}function f6(e){return Mt(e)&&e.reference?e.reference:String(e)}const Xp=(e,...t)=>t.map(f6).join(` ${e} `).replace(/calc/g,""),sS=(...e)=>`calc(${Xp("+",...e)})`,lS=(...e)=>`calc(${Xp("-",...e)})`,Dg=(...e)=>`calc(${Xp("*",...e)})`,cS=(...e)=>`calc(${Xp("/",...e)})`,uS=e=>{const t=f6(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Dg(t,-1)},oi=Object.assign(e=>({add:(...t)=>oi(sS(e,...t)),subtract:(...t)=>oi(lS(e,...t)),multiply:(...t)=>oi(Dg(e,...t)),divide:(...t)=>oi(cS(e,...t)),negate:()=>oi(uS(e)),toString:()=>e.toString()}),{add:sS,subtract:lS,multiply:Dg,divide:cS,negate:uS});function Xz(e,t="-"){return e.replace(/\s+/g,t)}function Yz(e){const t=Xz(e.toString());return Zz(Qz(t))}function Qz(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function Zz(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function Jz(e,t=""){return[t,e].filter(Boolean).join("-")}function eR(e,t){return`var(${e}${t?`, ${t}`:""})`}function tR(e,t=""){return Yz(`--${Jz(e,t)}`)}function Q(e,t,n){const r=tR(e,n);return{variable:r,reference:eR(r,t)}}function p6(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[i,o]=r;n[i]=Q(`${e}-${i}`,o);continue}n[r]=Q(`${e}-${r}`)}return n}const nR=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function rR(e){return e6(e,nR)}function iR(e){return e.semanticTokens}function oR(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}function aR(e){const t=rR(e),n=iR(e),r=o=>s6.includes(o)||o==="default",i={};return oS(t,(o,a)=>{o!=null&&(i[a.join(".")]={isSemantic:!1,value:o})}),oS(n,(o,a)=>{o!=null&&(i[a.join(".")]={isSemantic:!0,value:o})},{stop:o=>Object.keys(o).every(r)}),i}function dS(e,t){return Q(String(e).replace(/\./g,"-"),void 0,t)}function sR(e){var a;const t=aR(e),n=(a=e.config)==null?void 0:a.cssVarPrefix;let r={};const i={};function o(l,c){const d=[String(l).split(".")[0],c].join(".");if(!t[d])return c;const{reference:p}=dS(d,n);return p}for(const[l,c]of Object.entries(t)){const{isSemantic:u,value:d}=c,{variable:f,reference:p}=dS(l,n);if(!u){if(l.startsWith("space")){const v=l.split("."),[y,...x]=v,b=`${y}.-${x.join(".")}`,g=oi.negate(d),S=oi.negate(p);i[b]={value:g,var:f,varRef:S}}r[f]=d,i[l]={value:d,var:f,varRef:p};continue}const h=Mt(d)?d:{default:d};r=ir(r,Object.entries(h).reduce((v,[y,x])=>{if(!x)return v;const b=o(l,`${x}`);if(y==="default")return v[f]=b,v;const g=(As==null?void 0:As[y])??y;return v[g]={[f]:b},v},{})),i[l]={value:p,var:f,varRef:p}}return{cssVars:r,cssMap:i}}function lR(e){const t=oR(e),{cssMap:n,cssVars:r}=sR(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"},...r},__cssMap:n,__breakpoints:E$(t.breakpoints)}),t}function Re(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...d){r();for(const f of d)t[f]=c(f);return Re(e,t)}function o(...d){for(const f of d)f in t||(t[f]=c(f));return Re(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.selector]))}function l(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.className]))}function c(d){const h=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>d}}return{parts:i,toPart:c,extend:o,selectors:a,classnames:l,get keys(){return Object.keys(t)},__type:{}}}const cR=Re("accordion").parts("root","container","button","panel","icon"),m6=Re("alert").parts("title","description","container","icon","spinner"),uR=Re("avatar").parts("label","badge","container","excessLabel","group"),dR=Re("breadcrumb").parts("link","item","container","separator");Re("button").parts();const h6=Re("checkbox").parts("control","icon","container","label");Re("progress").parts("track","filledTrack","label");const fR=Re("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),pR=Re("editable").parts("preview","input","textarea"),g6=Re("form").parts("container","requiredIndicator","helperText"),mR=Re("formError").parts("text","icon"),ny=Re("input").parts("addon","field","element","group"),hR=Re("list").parts("container","item","icon"),v6=Re("menu").parts("button","list","item","groupTitle","icon","command","divider"),y6=Re("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),gR=Re("numberinput").parts("root","field","stepperGroup","stepper");Re("pininput").parts("field");const vR=Re("popover").parts("content","header","body","footer","popper","arrow","closeButton"),b6=Re("progress").parts("label","filledTrack","track"),x6=Re("radio").parts("container","control","label"),yR=Re("select").parts("field","icon"),S6=Re("slider").parts("container","track","thumb","filledTrack","mark"),bR=Re("stat").parts("container","label","helpText","number","icon"),w6=Re("switch").parts("container","track","thumb","label"),xR=Re("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),SR=Re("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),wR=Re("tag").parts("container","label","closeButton"),k6=Re("card").parts("container","header","body","footer");Re("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:kR,defineMultiStyleConfig:CR}=ce(cR.keys),jR={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},PR={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},_R={pt:"2",px:"4",pb:"5"},TR={fontSize:"1.25em"},ER=kR({container:jR,button:PR,panel:_R,icon:TR}),AR=CR({baseStyle:ER});function Qo(e,t,n){return Math.min(Math.max(e,n),t)}class Kl extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}function ry(e){if(typeof e!="string")throw new Kl(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=DR.test(e)?RR(e):e;const n=MR.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(l=>parseInt(Xc(l,2),16)),parseInt(Xc(a[3]||"f",2),16)/255]}const r=IR.exec(t);if(r){const a=Array.from(r).slice(1);return[...a.slice(0,3).map(l=>parseInt(l,16)),parseInt(a[3]||"ff",16)/255]}const i=LR.exec(t);if(i){const a=Array.from(i).slice(1);return[...a.slice(0,3).map(l=>parseInt(l,10)),parseFloat(a[3]||"1")]}const o=NR.exec(t);if(o){const[a,l,c,u]=Array.from(o).slice(1).map(parseFloat);if(Qo(0,100,l)!==l)throw new Kl(e);if(Qo(0,100,c)!==c)throw new Kl(e);return[...OR(a,l,c),Number.isNaN(u)?1:u]}throw new Kl(e)}function $R(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const fS=e=>parseInt(e.replace(/_/g,""),36),zR="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=fS(t.substring(0,3)),r=fS(t.substring(3)).toString(16);let i="";for(let o=0;o<6-r.length;o++)i+="0";return e[n]=`${i}${r}`,e},{});function RR(e){const t=e.toLowerCase().trim(),n=zR[$R(t)];if(!n)throw new Kl(e);return`#${n}`}const Xc=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),MR=new RegExp(`^#${Xc("([a-f0-9])",3)}([a-f0-9])?$`,"i"),IR=new RegExp(`^#${Xc("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),LR=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Xc(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),NR=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,DR=/^[a-z]+$/i,pS=e=>Math.round(e*255),OR=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(pS);const i=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*(t/100),a=o*(1-Math.abs(i%2-1));let l=0,c=0,u=0;i>=0&&i<1?(l=o,c=a):i>=1&&i<2?(l=a,c=o):i>=2&&i<3?(c=o,u=a):i>=3&&i<4?(c=a,u=o):i>=4&&i<5?(l=a,u=o):i>=5&&i<6&&(l=o,u=a);const d=r-o/2,f=l+d,p=c+d,h=u+d;return[f,p,h].map(pS)};function FR(e,t,n,r){return`rgba(${Qo(0,255,e).toFixed()}, ${Qo(0,255,t).toFixed()}, ${Qo(0,255,n).toFixed()}, ${parseFloat(Qo(0,1,r).toFixed(3))})`}function BR(e,t){const[n,r,i,o]=ry(e);return FR(n,r,i,o-t)}function VR(e){const[t,n,r,i]=ry(e);let o=a=>{const l=Qo(0,255,a).toString(16);return l.length===1?`0${l}`:l};return`#${o(t)}${o(n)}${o(r)}${i<1?o(Math.round(i*255)):""}`}const WR=e=>Object.keys(e).length===0;function UR(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}const tt=(e,t,n)=>{const r=UR(e,`colors.${t}`,t);try{return VR(r),r}catch{return n??"#000000"}},HR=e=>{const[t,n,r]=ry(e);return(t*299+n*587+r*114)/1e3},GR=e=>t=>{const n=tt(t,e);return HR(n)<128?"dark":"light"},KR=e=>t=>GR(e)(t)==="dark",Bt=(e,t)=>n=>{const r=tt(n,e);return BR(r,1-t)};function mS(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 qR=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function XR(e){const t=qR();return!e||WR(e)?t:e.string&&e.colors?QR(e.string,e.colors):e.string&&!e.colors?YR(e.string):e.colors&&!e.string?ZR(e.colors):t}function YR(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1){const i=t>>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function QR(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;r<e.length;r+=1)n=e.charCodeAt(r)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function ZR(e){return e[Math.floor(Math.random()*e.length)]}function J(e,t){return n=>n.colorMode==="dark"?t:e}function iy(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function C6(e){return Mt(e)&&e.reference?e.reference:String(e)}const Yp=(e,...t)=>t.map(C6).join(` ${e} `).replace(/calc/g,""),hS=(...e)=>`calc(${Yp("+",...e)})`,gS=(...e)=>`calc(${Yp("-",...e)})`,Og=(...e)=>`calc(${Yp("*",...e)})`,vS=(...e)=>`calc(${Yp("/",...e)})`,yS=e=>{const t=C6(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Og(t,-1)},ai=Object.assign(e=>({add:(...t)=>ai(hS(e,...t)),subtract:(...t)=>ai(gS(e,...t)),multiply:(...t)=>ai(Og(e,...t)),divide:(...t)=>ai(vS(e,...t)),negate:()=>ai(yS(e)),toString:()=>e.toString()}),{add:hS,subtract:gS,multiply:Og,divide:vS,negate:yS});function JR(e){return!Number.isInteger(parseFloat(e.toString()))}function eM(e,t="-"){return e.replace(/\s+/g,t)}function j6(e){const t=eM(e.toString());return t.includes("\\.")?e:JR(e)?t.replace(".","\\."):e}function tM(e,t=""){return[t,j6(e)].filter(Boolean).join("-")}function nM(e,t){return`var(${j6(e)}${t?`, ${t}`:""})`}function rM(e,t=""){return`--${tM(e,t)}`}function bt(e,t){const n=rM(e,t==null?void 0:t.prefix);return{variable:n,reference:nM(n,iM(t==null?void 0:t.fallback))}}function iM(e){return e==null?void 0:e.reference}const{definePartsStyle:ju,defineMultiStyleConfig:oM}=ce(m6.keys),Ln=Q("alert-fg"),Ci=Q("alert-bg"),aM=ju({container:{bg:Ci.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Ln.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Ln.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function oy(e){const{theme:t,colorScheme:n}=e,r=Bt(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}const sM=ju(e=>{const{colorScheme:t}=e,n=oy(e);return{container:{[Ln.variable]:`colors.${t}.600`,[Ci.variable]:n.light,_dark:{[Ln.variable]:`colors.${t}.200`,[Ci.variable]:n.dark}}}}),lM=ju(e=>{const{colorScheme:t}=e,n=oy(e);return{container:{[Ln.variable]:`colors.${t}.600`,[Ci.variable]:n.light,_dark:{[Ln.variable]:`colors.${t}.200`,[Ci.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Ln.reference}}}),cM=ju(e=>{const{colorScheme:t}=e,n=oy(e);return{container:{[Ln.variable]:`colors.${t}.600`,[Ci.variable]:n.light,_dark:{[Ln.variable]:`colors.${t}.200`,[Ci.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Ln.reference}}}),uM=ju(e=>{const{colorScheme:t}=e;return{container:{[Ln.variable]:"colors.white",[Ci.variable]:`colors.${t}.600`,_dark:{[Ln.variable]:"colors.gray.900",[Ci.variable]:`colors.${t}.200`},color:Ln.reference}}}),dM={subtle:sM,"left-accent":lM,"top-accent":cM,solid:uM},fM=oM({baseStyle:aM,variants:dM,defaultProps:{variant:"subtle",colorScheme:"blue"}}),P6={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"},pM={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"},mM={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},_6={...P6,...pM,container:mM},hM=e=>typeof e=="function";function hn(e,...t){return hM(e)?e(...t):e}const{definePartsStyle:T6,defineMultiStyleConfig:gM}=ce(uR.keys),$s=Q("avatar-border-color"),vc=Q("avatar-bg"),Yc=Q("avatar-font-size"),qs=Q("avatar-size"),vM={borderRadius:"full",border:"0.2em solid",borderColor:$s.reference,[$s.variable]:"white",_dark:{[$s.variable]:"colors.gray.800"}},yM={bg:vc.reference,fontSize:Yc.reference,width:qs.reference,height:qs.reference,lineHeight:"1",[vc.variable]:"colors.gray.200",_dark:{[vc.variable]:"colors.whiteAlpha.400"}},bM=e=>{const{name:t,theme:n}=e,r=t?XR({string:t}):"colors.gray.400",i=KR(r)(n);let o="white";return i||(o="gray.800"),{bg:vc.reference,fontSize:Yc.reference,color:o,borderColor:$s.reference,verticalAlign:"top",width:qs.reference,height:qs.reference,"&:not([data-loaded])":{[vc.variable]:r},[$s.variable]:"colors.white",_dark:{[$s.variable]:"colors.gray.800"}}},xM={fontSize:Yc.reference,lineHeight:"1"},SM=T6(e=>({badge:hn(vM,e),excessLabel:hn(yM,e),container:hn(bM,e),label:xM}));function Li(e){const t=e!=="100%"?_6[e]:void 0;return T6({container:{[qs.variable]:t??e,[Yc.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[qs.variable]:t??e,[Yc.variable]:`calc(${t??e} / 2.5)`}})}const wM={"2xs":Li(4),xs:Li(6),sm:Li(8),md:Li(12),lg:Li(16),xl:Li(24),"2xl":Li(32),full:Li("100%")},kM=gM({baseStyle:SM,sizes:wM,defaultProps:{size:"md"}}),wt=p6("badge",["bg","color","shadow"]),CM={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:wt.bg.reference,color:wt.color.reference,boxShadow:wt.shadow.reference},jM=e=>{const{colorScheme:t,theme:n}=e,r=Bt(`${t}.500`,.6)(n);return{[wt.bg.variable]:`colors.${t}.500`,[wt.color.variable]:"colors.white",_dark:{[wt.bg.variable]:r,[wt.color.variable]:"colors.whiteAlpha.800"}}},PM=e=>{const{colorScheme:t,theme:n}=e,r=Bt(`${t}.200`,.16)(n);return{[wt.bg.variable]:`colors.${t}.100`,[wt.color.variable]:`colors.${t}.800`,_dark:{[wt.bg.variable]:r,[wt.color.variable]:`colors.${t}.200`}}},_M=e=>{const{colorScheme:t,theme:n}=e,r=Bt(`${t}.200`,.8)(n);return{[wt.color.variable]:`colors.${t}.500`,_dark:{[wt.color.variable]:r},[wt.shadow.variable]:`inset 0 0 0px 1px ${wt.color.reference}`}},TM={solid:jM,subtle:PM,outline:_M},yc={baseStyle:CM,variants:TM,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:EM,definePartsStyle:AM}=ce(dR.keys),$h=Q("breadcrumb-link-decor"),$M={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:$h.reference,[$h.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[$h.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},zM=AM({link:$M}),RM=EM({baseStyle:zM}),MM={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"}}},E6=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:J("gray.800","whiteAlpha.900")(e),_hover:{bg:J("gray.100","whiteAlpha.200")(e)},_active:{bg:J("gray.200","whiteAlpha.300")(e)}};const r=Bt(`${t}.200`,.12)(n),i=Bt(`${t}.200`,.24)(n);return{color:J(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:J(`${t}.50`,r)(e)},_active:{bg:J(`${t}.100`,i)(e)}}},IM=e=>{const{colorScheme:t}=e,n=J("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"},...hn(E6,e)}},LM={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},NM=e=>{const{colorScheme:t}=e;if(t==="gray"){const l=J("gray.100","whiteAlpha.200")(e);return{bg:l,color:J("gray.800","whiteAlpha.900")(e),_hover:{bg:J("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:J("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:i=`${t}.600`,activeBg:o=`${t}.700`}=LM[t]??{},a=J(n,`${t}.200`)(e);return{bg:a,color:J(r,"gray.800")(e),_hover:{bg:J(i,`${t}.300`)(e),_disabled:{bg:a}},_active:{bg:J(o,`${t}.400`)(e)}}},DM=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:J(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:J(`${t}.700`,`${t}.500`)(e)}}},OM={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},FM={ghost:E6,outline:IM,solid:NM,link:DM,unstyled:OM},BM={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"}},VM={baseStyle:MM,variants:FM,sizes:BM,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:oa,defineMultiStyleConfig:WM}=ce(k6.keys),up=Q("card-bg"),vi=Q("card-padding"),A6=Q("card-shadow"),ff=Q("card-radius"),$6=Q("card-border-width","0"),z6=Q("card-border-color"),UM=oa({container:{[up.variable]:"colors.chakra-body-bg",backgroundColor:up.reference,boxShadow:A6.reference,borderRadius:ff.reference,color:"chakra-body-text",borderWidth:$6.reference,borderColor:z6.reference},body:{padding:vi.reference,flex:"1 1 0%"},header:{padding:vi.reference},footer:{padding:vi.reference}}),HM={sm:oa({container:{[ff.variable]:"radii.base",[vi.variable]:"space.3"}}),md:oa({container:{[ff.variable]:"radii.md",[vi.variable]:"space.5"}}),lg:oa({container:{[ff.variable]:"radii.xl",[vi.variable]:"space.7"}})},GM={elevated:oa({container:{[A6.variable]:"shadows.base",_dark:{[up.variable]:"colors.gray.700"}}}),outline:oa({container:{[$6.variable]:"1px",[z6.variable]:"colors.chakra-border-color"}}),filled:oa({container:{[up.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[vi.variable]:0},header:{[vi.variable]:0},footer:{[vi.variable]:0}}},KM=WM({baseStyle:UM,variants:GM,sizes:HM,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:pf,defineMultiStyleConfig:qM}=ce(h6.keys),bc=Q("checkbox-size"),XM=e=>{const{colorScheme:t}=e;return{w:bc.reference,h:bc.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:J(`${t}.500`,`${t}.200`)(e),borderColor:J(`${t}.500`,`${t}.200`)(e),color:J("white","gray.900")(e),_hover:{bg:J(`${t}.600`,`${t}.300`)(e),borderColor:J(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:J("gray.200","transparent")(e),bg:J("gray.200","whiteAlpha.300")(e),color:J("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:J(`${t}.500`,`${t}.200`)(e),borderColor:J(`${t}.500`,`${t}.200`)(e),color:J("white","gray.900")(e)},_disabled:{bg:J("gray.100","whiteAlpha.100")(e),borderColor:J("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:J("red.500","red.300")(e)}}},YM={_disabled:{cursor:"not-allowed"}},QM={userSelect:"none",_disabled:{opacity:.4}},ZM={transitionProperty:"transform",transitionDuration:"normal"},JM=pf(e=>({icon:ZM,container:YM,control:hn(XM,e),label:QM})),eI={sm:pf({control:{[bc.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:pf({control:{[bc.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:pf({control:{[bc.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Ui=qM({baseStyle:JM,sizes:eI,defaultProps:{size:"md",colorScheme:"blue"}}),xc=bt("close-button-size"),Rl=bt("close-button-bg"),tI={w:[xc.reference],h:[xc.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Rl.variable]:"colors.blackAlpha.100",_dark:{[Rl.variable]:"colors.whiteAlpha.100"}},_active:{[Rl.variable]:"colors.blackAlpha.200",_dark:{[Rl.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Rl.reference},nI={lg:{[xc.variable]:"sizes.10",fontSize:"md"},md:{[xc.variable]:"sizes.8",fontSize:"xs"},sm:{[xc.variable]:"sizes.6",fontSize:"2xs"}},rI={baseStyle:tI,sizes:nI,defaultProps:{size:"md"}},{variants:iI,defaultProps:oI}=yc,aI={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:wt.bg.reference,color:wt.color.reference,boxShadow:wt.shadow.reference},sI={baseStyle:aI,variants:iI,defaultProps:oI},lI={w:"100%",mx:"auto",maxW:"prose",px:"4"},cI={baseStyle:lI},uI={opacity:.6,borderColor:"inherit"},dI={borderStyle:"solid"},fI={borderStyle:"dashed"},pI={solid:dI,dashed:fI},mI={baseStyle:uI,variants:pI,defaultProps:{variant:"solid"}},{definePartsStyle:Fg,defineMultiStyleConfig:hI}=ce(fR.keys),zh=Q("drawer-bg"),Rh=Q("drawer-box-shadow");function Oa(e){return Fg(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const gI={bg:"blackAlpha.600",zIndex:"modal"},vI={display:"flex",zIndex:"modal",justifyContent:"center"},yI=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[zh.variable]:"colors.white",[Rh.variable]:"shadows.lg",_dark:{[zh.variable]:"colors.gray.700",[Rh.variable]:"shadows.dark-lg"},bg:zh.reference,boxShadow:Rh.reference}},bI={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},xI={position:"absolute",top:"2",insetEnd:"3"},SI={px:"6",py:"2",flex:"1",overflow:"auto"},wI={px:"6",py:"4"},kI=Fg(e=>({overlay:gI,dialogContainer:vI,dialog:hn(yI,e),header:bI,closeButton:xI,body:SI,footer:wI})),CI={xs:Oa("xs"),sm:Oa("md"),md:Oa("lg"),lg:Oa("2xl"),xl:Oa("4xl"),full:Oa("full")},jI=hI({baseStyle:kI,sizes:CI,defaultProps:{size:"xs"}}),{definePartsStyle:PI,defineMultiStyleConfig:_I}=ce(pR.keys),TI={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},EI={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},AI={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},$I=PI({preview:TI,input:EI,textarea:AI}),zI=_I({baseStyle:$I}),{definePartsStyle:RI,defineMultiStyleConfig:MI}=ce(g6.keys),zs=Q("form-control-color"),II={marginStart:"1",[zs.variable]:"colors.red.500",_dark:{[zs.variable]:"colors.red.300"},color:zs.reference},LI={mt:"2",[zs.variable]:"colors.gray.600",_dark:{[zs.variable]:"colors.whiteAlpha.600"},color:zs.reference,lineHeight:"normal",fontSize:"sm"},NI=RI({container:{width:"100%",position:"relative"},requiredIndicator:II,helperText:LI}),DI=MI({baseStyle:NI}),{definePartsStyle:OI,defineMultiStyleConfig:FI}=ce(mR.keys),Rs=Q("form-error-color"),BI={[Rs.variable]:"colors.red.500",_dark:{[Rs.variable]:"colors.red.300"},color:Rs.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},VI={marginEnd:"0.5em",[Rs.variable]:"colors.red.500",_dark:{[Rs.variable]:"colors.red.300"},color:Rs.reference},WI=OI({text:BI,icon:VI}),UI=FI({baseStyle:WI}),HI={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},GI={baseStyle:HI},KI={fontFamily:"heading",fontWeight:"bold"},qI={"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}},XI={baseStyle:KI,sizes:qI,defaultProps:{size:"xl"}},{definePartsStyle:di,defineMultiStyleConfig:YI}=ce(ny.keys),ss=Q("input-height"),ls=Q("input-font-size"),cs=Q("input-padding"),us=Q("input-border-radius"),QI=di({addon:{height:ss.reference,fontSize:ls.reference,px:cs.reference,borderRadius:us.reference},field:{width:"100%",height:ss.reference,fontSize:ls.reference,px:cs.reference,borderRadius:us.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Ni={lg:{[ls.variable]:"fontSizes.lg",[cs.variable]:"space.4",[us.variable]:"radii.md",[ss.variable]:"sizes.12"},md:{[ls.variable]:"fontSizes.md",[cs.variable]:"space.4",[us.variable]:"radii.md",[ss.variable]:"sizes.10"},sm:{[ls.variable]:"fontSizes.sm",[cs.variable]:"space.3",[us.variable]:"radii.sm",[ss.variable]:"sizes.8"},xs:{[ls.variable]:"fontSizes.xs",[cs.variable]:"space.2",[us.variable]:"radii.sm",[ss.variable]:"sizes.6"}},ZI={lg:di({field:Ni.lg,group:Ni.lg}),md:di({field:Ni.md,group:Ni.md}),sm:di({field:Ni.sm,group:Ni.sm}),xs:di({field:Ni.xs,group:Ni.xs})};function ay(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||J("blue.500","blue.300")(e),errorBorderColor:n||J("red.500","red.300")(e)}}const JI=di(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=ay(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:J("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:tt(t,r),boxShadow:`0 0 0 1px ${tt(t,r)}`},_focusVisible:{zIndex:1,borderColor:tt(t,n),boxShadow:`0 0 0 1px ${tt(t,n)}`}},addon:{border:"1px solid",borderColor:J("inherit","whiteAlpha.50")(e),bg:J("gray.100","whiteAlpha.300")(e)}}}),eL=di(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=ay(e);return{field:{border:"2px solid",borderColor:"transparent",bg:J("gray.100","whiteAlpha.50")(e),_hover:{bg:J("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:tt(t,r)},_focusVisible:{bg:"transparent",borderColor:tt(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:J("gray.100","whiteAlpha.50")(e)}}}),tL=di(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=ay(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:tt(t,r),boxShadow:`0px 1px 0px 0px ${tt(t,r)}`},_focusVisible:{borderColor:tt(t,n),boxShadow:`0px 1px 0px 0px ${tt(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),nL=di({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),rL={outline:JI,filled:eL,flushed:tL,unstyled:nL},De=YI({baseStyle:QI,sizes:ZI,variants:rL,defaultProps:{size:"md",variant:"outline"}}),Mh=Q("kbd-bg"),iL={[Mh.variable]:"colors.gray.100",_dark:{[Mh.variable]:"colors.whiteAlpha.100"},bg:Mh.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},oL={baseStyle:iL},aL={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},sL={baseStyle:aL},{defineMultiStyleConfig:lL,definePartsStyle:cL}=ce(hR.keys),uL={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},dL=cL({icon:uL}),fL=lL({baseStyle:dL}),{defineMultiStyleConfig:pL,definePartsStyle:mL}=ce(v6.keys),Lr=Q("menu-bg"),Ih=Q("menu-shadow"),hL={[Lr.variable]:"#fff",[Ih.variable]:"shadows.sm",_dark:{[Lr.variable]:"colors.gray.700",[Ih.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Lr.reference,boxShadow:Ih.reference},gL={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Lr.variable]:"colors.gray.100",_dark:{[Lr.variable]:"colors.whiteAlpha.100"}},_active:{[Lr.variable]:"colors.gray.200",_dark:{[Lr.variable]:"colors.whiteAlpha.200"}},_expanded:{[Lr.variable]:"colors.gray.100",_dark:{[Lr.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Lr.reference},vL={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},yL={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},bL={opacity:.6},xL={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},SL={transitionProperty:"common",transitionDuration:"normal"},wL=mL({button:SL,list:hL,item:gL,groupTitle:vL,icon:yL,command:bL,divider:xL}),kL=pL({baseStyle:wL}),{defineMultiStyleConfig:CL,definePartsStyle:Bg}=ce(y6.keys),Lh=Q("modal-bg"),Nh=Q("modal-shadow"),jL={bg:"blackAlpha.600",zIndex:"modal"},PL=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"}},_L=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,[Lh.variable]:"colors.white",[Nh.variable]:"shadows.lg",_dark:{[Lh.variable]:"colors.gray.700",[Nh.variable]:"shadows.dark-lg"},bg:Lh.reference,boxShadow:Nh.reference}},TL={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},EL={position:"absolute",top:"2",insetEnd:"3"},AL=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},$L={px:"6",py:"4"},zL=Bg(e=>({overlay:jL,dialogContainer:hn(PL,e),dialog:hn(_L,e),header:TL,closeButton:EL,body:hn(AL,e),footer:$L}));function mr(e){return Bg(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const RL={xs:mr("xs"),sm:mr("sm"),md:mr("md"),lg:mr("lg"),xl:mr("xl"),"2xl":mr("2xl"),"3xl":mr("3xl"),"4xl":mr("4xl"),"5xl":mr("5xl"),"6xl":mr("6xl"),full:mr("full")},ML=CL({baseStyle:zL,sizes:RL,defaultProps:{size:"md"}}),R6={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:IL,definePartsStyle:M6}=ce(gR.keys),sy=bt("number-input-stepper-width"),I6=bt("number-input-input-padding"),LL=ai(sy).add("0.5rem").toString(),Dh=bt("number-input-bg"),Oh=bt("number-input-color"),Fh=bt("number-input-border-color"),NL={[sy.variable]:"sizes.6",[I6.variable]:LL},DL=e=>{var t;return((t=hn(De.baseStyle,e))==null?void 0:t.field)??{}},OL={width:sy.reference},FL={borderStart:"1px solid",borderStartColor:Fh.reference,color:Oh.reference,bg:Dh.reference,[Oh.variable]:"colors.chakra-body-text",[Fh.variable]:"colors.chakra-border-color",_dark:{[Oh.variable]:"colors.whiteAlpha.800",[Fh.variable]:"colors.whiteAlpha.300"},_active:{[Dh.variable]:"colors.gray.200",_dark:{[Dh.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},BL=M6(e=>({root:NL,field:hn(DL,e)??{},stepperGroup:OL,stepper:FL}));function Sd(e){var o,a;const t=(o=De.sizes)==null?void 0:o[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=((a=t.field)==null?void 0:a.fontSize)??"md",i=R6.fontSizes[r];return M6({field:{...t.field,paddingInlineEnd:I6.reference,verticalAlign:"top"},stepper:{fontSize:ai(i).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const VL={xs:Sd("xs"),sm:Sd("sm"),md:Sd("md"),lg:Sd("lg")},WL=IL({baseStyle:BL,sizes:VL,variants:De.variants,defaultProps:De.defaultProps});var Sk;const UL={...(Sk=De.baseStyle)==null?void 0:Sk.field,textAlign:"center"},HL={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 wk;const GL={outline:e=>{var t,n;return((n=hn((t=De.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=hn((t=De.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=hn((t=De.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((wk=De.variants)==null?void 0:wk.unstyled.field)??{}},KL={baseStyle:UL,sizes:HL,variants:GL,defaultProps:De.defaultProps},{defineMultiStyleConfig:qL,definePartsStyle:XL}=ce(vR.keys),wd=bt("popper-bg"),YL=bt("popper-arrow-bg"),bS=bt("popper-arrow-shadow-color"),QL={zIndex:"popover"},ZL={[wd.variable]:"colors.white",bg:wd.reference,[YL.variable]:wd.reference,[bS.variable]:"colors.gray.200",_dark:{[wd.variable]:"colors.gray.700",[bS.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},JL={px:3,py:2,borderBottomWidth:"1px"},eN={px:3,py:2},tN={px:3,py:2,borderTopWidth:"1px"},nN={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},rN=XL({popper:QL,content:ZL,header:JL,body:eN,footer:tN,closeButton:nN}),iN=qL({baseStyle:rN}),{defineMultiStyleConfig:oN,definePartsStyle:ql}=ce(b6.keys),aN=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:i}=e,o=J(mS(),mS("1rem","rgba(0,0,0,0.1)"))(e),a=J(`${t}.500`,`${t}.200`)(e),l=`linear-gradient(
to right,
transparent 0%,
${tt(n,a)} 50%,
transparent 100%
)`;return{...!r&&i&&o,...r?{bgImage:l}:{bgColor:a}}},sN={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},lN=e=>({bg:J("gray.100","whiteAlpha.300")(e)}),cN=e=>({transitionProperty:"common",transitionDuration:"slow",...aN(e)}),uN=ql(e=>({label:sN,filledTrack:cN(e),track:lN(e)})),dN={xs:ql({track:{h:"1"}}),sm:ql({track:{h:"2"}}),md:ql({track:{h:"3"}}),lg:ql({track:{h:"4"}})},fN=oN({sizes:dN,baseStyle:uN,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:pN,definePartsStyle:mf}=ce(x6.keys),mN=e=>{var n;const t=(n=hn(Ui.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"}}}},hN=mf(e=>{var t,n;return{label:(t=Ui.baseStyle)==null?void 0:t.call(Ui,e).label,container:(n=Ui.baseStyle)==null?void 0:n.call(Ui,e).container,control:mN(e)}}),gN={md:mf({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:mf({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:mf({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},vN=pN({baseStyle:hN,sizes:gN,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:yN,definePartsStyle:bN}=ce(yR.keys),kd=Q("select-bg");var kk;const xN={...(kk=De.baseStyle)==null?void 0:kk.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:kd.reference,[kd.variable]:"colors.white",_dark:{[kd.variable]:"colors.gray.700"},"> option, > optgroup":{bg:kd.reference}},SN={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},wN=bN({field:xN,icon:SN}),Cd={paddingInlineEnd:"8"};var Ck,jk,Pk,_k,Tk,Ek,Ak,$k;const kN={lg:{...(Ck=De.sizes)==null?void 0:Ck.lg,field:{...(jk=De.sizes)==null?void 0:jk.lg.field,...Cd}},md:{...(Pk=De.sizes)==null?void 0:Pk.md,field:{...(_k=De.sizes)==null?void 0:_k.md.field,...Cd}},sm:{...(Tk=De.sizes)==null?void 0:Tk.sm,field:{...(Ek=De.sizes)==null?void 0:Ek.sm.field,...Cd}},xs:{...(Ak=De.sizes)==null?void 0:Ak.xs,field:{...($k=De.sizes)==null?void 0:$k.xs.field,...Cd},icon:{insetEnd:"1"}}},CN=yN({baseStyle:wN,sizes:kN,variants:De.variants,defaultProps:De.defaultProps}),Bh=Q("skeleton-start-color"),Vh=Q("skeleton-end-color"),jN={[Bh.variable]:"colors.gray.100",[Vh.variable]:"colors.gray.400",_dark:{[Bh.variable]:"colors.gray.800",[Vh.variable]:"colors.gray.600"},background:Bh.reference,borderColor:Vh.reference,opacity:.7,borderRadius:"sm"},PN={baseStyle:jN},Wh=Q("skip-link-bg"),_N={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Wh.variable]:"colors.white",_dark:{[Wh.variable]:"colors.gray.700"},bg:Wh.reference}},TN={baseStyle:_N},{defineMultiStyleConfig:EN,definePartsStyle:Qp}=ce(S6.keys),xa=Q("slider-thumb-size"),Qc=Q("slider-track-size"),Ki=Q("slider-bg"),AN=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...iy({orientation:t,vertical:{h:"100%",px:oi(xa.reference).divide(2).toString()},horizontal:{w:"100%",py:oi(xa.reference).divide(2).toString()}})}},$N=e=>({...iy({orientation:e.orientation,horizontal:{h:Qc.reference},vertical:{w:Qc.reference}}),overflow:"hidden",borderRadius:"sm",[Ki.variable]:"colors.gray.200",_dark:{[Ki.variable]:"colors.whiteAlpha.200"},_disabled:{[Ki.variable]:"colors.gray.300",_dark:{[Ki.variable]:"colors.whiteAlpha.300"}},bg:Ki.reference}),zN=e=>{const{orientation:t}=e;return{...iy({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:xa.reference,h:xa.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"}}},RN=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Ki.variable]:`colors.${t}.500`,_dark:{[Ki.variable]:`colors.${t}.200`},bg:Ki.reference}},MN=Qp(e=>({container:AN(e),track:$N(e),thumb:zN(e),filledTrack:RN(e)})),IN=Qp({container:{[xa.variable]:"sizes.4",[Qc.variable]:"sizes.1"}}),LN=Qp({container:{[xa.variable]:"sizes.3.5",[Qc.variable]:"sizes.1"}}),NN=Qp({container:{[xa.variable]:"sizes.2.5",[Qc.variable]:"sizes.0.5"}}),DN={lg:IN,md:LN,sm:NN},ON=EN({baseStyle:MN,sizes:DN,defaultProps:{size:"md",colorScheme:"blue"}}),Ko=bt("spinner-size"),FN={width:[Ko.reference],height:[Ko.reference]},BN={xs:{[Ko.variable]:"sizes.3"},sm:{[Ko.variable]:"sizes.4"},md:{[Ko.variable]:"sizes.6"},lg:{[Ko.variable]:"sizes.8"},xl:{[Ko.variable]:"sizes.12"}},VN={baseStyle:FN,sizes:BN,defaultProps:{size:"md"}},{defineMultiStyleConfig:WN,definePartsStyle:L6}=ce(bR.keys),UN={fontWeight:"medium"},HN={opacity:.8,marginBottom:"2"},GN={verticalAlign:"baseline",fontWeight:"semibold"},KN={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},qN=L6({container:{},label:UN,helpText:HN,number:GN,icon:KN}),XN={md:L6({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},YN=WN({baseStyle:qN,sizes:XN,defaultProps:{size:"md"}}),{defineMultiStyleConfig:QN,definePartsStyle:Xl}=ce(["stepper","step","title","description","indicator","separator","icon","number"]),si=Q("stepper-indicator-size"),ds=Q("stepper-icon-size"),fs=Q("stepper-title-font-size"),Yl=Q("stepper-description-font-size"),Ml=Q("stepper-accent-color"),ZN=Xl(({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"},[Ml.variable]:`colors.${e}.500`,_dark:{[Ml.variable]:`colors.${e}.200`}},title:{fontSize:fs.reference,fontWeight:"medium"},description:{fontSize:Yl.reference,color:"chakra-subtle-text"},number:{fontSize:fs.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:ds.reference,height:ds.reference},indicator:{flexShrink:0,borderRadius:"full",width:si.reference,height:si.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Ml.reference},"&[data-status=complete]":{bg:Ml.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Ml.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${si.reference} - 8px)`,top:`calc(${si.reference} + 4px)`,insetStart:`calc(${si.reference} / 2 - 1px)`}}})),JN=QN({baseStyle:ZN,sizes:{xs:Xl({stepper:{[si.variable]:"sizes.4",[ds.variable]:"sizes.3",[fs.variable]:"fontSizes.xs",[Yl.variable]:"fontSizes.xs"}}),sm:Xl({stepper:{[si.variable]:"sizes.6",[ds.variable]:"sizes.4",[fs.variable]:"fontSizes.sm",[Yl.variable]:"fontSizes.xs"}}),md:Xl({stepper:{[si.variable]:"sizes.8",[ds.variable]:"sizes.5",[fs.variable]:"fontSizes.md",[Yl.variable]:"fontSizes.sm"}}),lg:Xl({stepper:{[si.variable]:"sizes.10",[ds.variable]:"sizes.6",[fs.variable]:"fontSizes.lg",[Yl.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:eD,definePartsStyle:hf}=ce(w6.keys),Sc=bt("switch-track-width"),aa=bt("switch-track-height"),Uh=bt("switch-track-diff"),tD=ai.subtract(Sc,aa),Vg=bt("switch-thumb-x"),Il=bt("switch-bg"),nD=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Sc.reference],height:[aa.reference],transitionProperty:"common",transitionDuration:"fast",[Il.variable]:"colors.gray.300",_dark:{[Il.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Il.variable]:`colors.${t}.500`,_dark:{[Il.variable]:`colors.${t}.200`}},bg:Il.reference}},rD={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[aa.reference],height:[aa.reference],_checked:{transform:`translateX(${Vg.reference})`}},iD=hf(e=>({container:{[Uh.variable]:tD,[Vg.variable]:Uh.reference,_rtl:{[Vg.variable]:ai(Uh).negate().toString()}},track:nD(e),thumb:rD})),oD={sm:hf({container:{[Sc.variable]:"1.375rem",[aa.variable]:"sizes.3"}}),md:hf({container:{[Sc.variable]:"1.875rem",[aa.variable]:"sizes.4"}}),lg:hf({container:{[Sc.variable]:"2.875rem",[aa.variable]:"sizes.6"}})},aD=eD({baseStyle:iD,sizes:oD,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:sD,definePartsStyle:Ms}=ce(xR.keys),lD=Ms({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"}}),dp={"&[data-is-numeric=true]":{textAlign:"end"}},cD=Ms(e=>{const{colorScheme:t}=e;return{th:{color:J("gray.600","gray.400")(e),borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...dp},td:{borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...dp},caption:{color:J("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),uD=Ms(e=>{const{colorScheme:t}=e;return{th:{color:J("gray.600","gray.400")(e),borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...dp},td:{borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...dp},caption:{color:J("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e)},td:{background:J(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),dD={simple:cD,striped:uD,unstyled:{}},fD={sm:Ms({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:Ms({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Ms({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},pD=sD({baseStyle:lD,variants:dD,sizes:fD,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),kn=Q("tabs-color"),xr=Q("tabs-bg"),jd=Q("tabs-border-color"),{defineMultiStyleConfig:mD,definePartsStyle:Hr}=ce(SR.keys),hD=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},gD=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}}},vD=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},yD={p:4},bD=Hr(e=>({root:hD(e),tab:gD(e),tablist:vD(e),tabpanel:yD})),xD={sm:Hr({tab:{py:1,px:4,fontSize:"sm"}}),md:Hr({tab:{fontSize:"md",py:2,px:4}}),lg:Hr({tab:{fontSize:"lg",py:3,px:4}})},SD=Hr(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",i=r?"borderStart":"borderBottom",o=r?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[o]:"-2px",_selected:{[kn.variable]:`colors.${t}.600`,_dark:{[kn.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[xr.variable]:"colors.gray.200",_dark:{[xr.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:kn.reference,bg:xr.reference}}}),wD=Hr(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[jd.variable]:"transparent",_selected:{[kn.variable]:`colors.${t}.600`,[jd.variable]:"colors.white",_dark:{[kn.variable]:`colors.${t}.300`,[jd.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:jd.reference},color:kn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),kD=Hr(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[xr.variable]:"colors.gray.50",_dark:{[xr.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[xr.variable]:"colors.white",[kn.variable]:`colors.${t}.600`,_dark:{[xr.variable]:"colors.gray.800",[kn.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:kn.reference,bg:xr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),CD=Hr(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:tt(n,`${t}.700`),bg:tt(n,`${t}.100`)}}}}),jD=Hr(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[kn.variable]:"colors.gray.600",_dark:{[kn.variable]:"inherit"},_selected:{[kn.variable]:"colors.white",[xr.variable]:`colors.${t}.600`,_dark:{[kn.variable]:"colors.gray.800",[xr.variable]:`colors.${t}.300`}},color:kn.reference,bg:xr.reference}}}),PD=Hr({}),_D={line:SD,enclosed:wD,"enclosed-colored":kD,"soft-rounded":CD,"solid-rounded":jD,unstyled:PD},TD=mD({baseStyle:bD,sizes:xD,variants:_D,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:ED,definePartsStyle:sa}=ce(wR.keys),xS=Q("tag-bg"),SS=Q("tag-color"),Hh=Q("tag-shadow"),gf=Q("tag-min-height"),vf=Q("tag-min-width"),yf=Q("tag-font-size"),bf=Q("tag-padding-inline"),AD={fontWeight:"medium",lineHeight:1.2,outline:0,[SS.variable]:wt.color.reference,[xS.variable]:wt.bg.reference,[Hh.variable]:wt.shadow.reference,color:SS.reference,bg:xS.reference,boxShadow:Hh.reference,borderRadius:"md",minH:gf.reference,minW:vf.reference,fontSize:yf.reference,px:bf.reference,_focusVisible:{[Hh.variable]:"shadows.outline"}},$D={lineHeight:1.2,overflow:"visible"},zD={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}},RD=sa({container:AD,label:$D,closeButton:zD}),MD={sm:sa({container:{[gf.variable]:"sizes.5",[vf.variable]:"sizes.5",[yf.variable]:"fontSizes.xs",[bf.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:sa({container:{[gf.variable]:"sizes.6",[vf.variable]:"sizes.6",[yf.variable]:"fontSizes.sm",[bf.variable]:"space.2"}}),lg:sa({container:{[gf.variable]:"sizes.8",[vf.variable]:"sizes.8",[yf.variable]:"fontSizes.md",[bf.variable]:"space.3"}})},ID={subtle:sa(e=>{var t;return{container:(t=yc.variants)==null?void 0:t.subtle(e)}}),solid:sa(e=>{var t;return{container:(t=yc.variants)==null?void 0:t.solid(e)}}),outline:sa(e=>{var t;return{container:(t=yc.variants)==null?void 0:t.outline(e)}})},LD=ED({variants:ID,baseStyle:RD,sizes:MD,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var zk;const ND={...(zk=De.baseStyle)==null?void 0:zk.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var Rk;const DD={outline:e=>{var t;return((t=De.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=De.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=De.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((Rk=De.variants)==null?void 0:Rk.unstyled.field)??{}};var Mk,Ik,Lk,Nk;const OD={xs:((Mk=De.sizes)==null?void 0:Mk.xs.field)??{},sm:((Ik=De.sizes)==null?void 0:Ik.sm.field)??{},md:((Lk=De.sizes)==null?void 0:Lk.md.field)??{},lg:((Nk=De.sizes)==null?void 0:Nk.lg.field)??{}},FD={baseStyle:ND,sizes:OD,variants:DD,defaultProps:{size:"md",variant:"outline"}},Pd=bt("tooltip-bg"),Gh=bt("tooltip-fg"),BD=bt("popper-arrow-bg"),VD={bg:Pd.reference,color:Gh.reference,[Pd.variable]:"colors.gray.700",[Gh.variable]:"colors.whiteAlpha.900",_dark:{[Pd.variable]:"colors.gray.300",[Gh.variable]:"colors.gray.900"},[BD.variable]:Pd.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},WD={baseStyle:VD},UD={Accordion:AR,Alert:fM,Avatar:kM,Badge:yc,Breadcrumb:RM,Button:VM,Checkbox:Ui,CloseButton:rI,Code:sI,Container:cI,Divider:mI,Drawer:jI,Editable:zI,Form:DI,FormError:UI,FormLabel:GI,Heading:XI,Input:De,Kbd:oL,Link:sL,List:fL,Menu:kL,Modal:ML,NumberInput:WL,PinInput:KL,Popover:iN,Progress:fN,Radio:vN,Select:CN,Skeleton:PN,SkipLink:TN,Slider:ON,Spinner:VN,Stat:YN,Switch:aD,Table:pD,Tabs:TD,Tag:LD,Textarea:FD,Tooltip:WD,Card:KM,Stepper:JN},HD={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},GD={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},KD={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"}},qD={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},XD={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"},YD={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"},QD={"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)"},ZD={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},JD={property:YD,easing:QD,duration:ZD},eO={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},tO={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},nO={breakpoints:GD,zIndices:eO,radii:qD,blur:tO,colors:KD,...R6,sizes:_6,shadows:XD,space:P6,borders:HD,transition:JD},rO={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"}}},iO={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"}}},oO=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function aO(e){return Mt(e)?oO.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}const sO="ltr",lO={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Zo={semanticTokens:rO,direction:sO,...nO,components:UD,styles:iO,config:lO};function cO(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 uO(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 dO=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},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(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(uO(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=cO(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),nn="-ms-",fp="-moz-",Le="-webkit-",N6="comm",ly="rule",cy="decl",fO="@import",D6="@keyframes",pO="@layer",mO=Math.abs,Zp=String.fromCharCode,hO=Object.assign;function gO(e,t){return Kt(e,0)^45?(((t<<2^Kt(e,0))<<2^Kt(e,1))<<2^Kt(e,2))<<2^Kt(e,3):0}function O6(e){return e.trim()}function vO(e,t){return(e=t.exec(e))?e[0]:e}function Ne(e,t,n){return e.replace(t,n)}function Wg(e,t){return e.indexOf(t)}function Kt(e,t){return e.charCodeAt(t)|0}function Zc(e,t,n){return e.slice(t,n)}function Nr(e){return e.length}function uy(e){return e.length}function _d(e,t){return t.push(e),e}function yO(e,t){return e.map(t).join("")}var Jp=1,Xs=1,F6=0,An=0,jt=0,fl="";function em(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Jp,column:Xs,length:a,return:""}}function Ll(e,t){return hO(em("",null,null,"",null,null,0),e,{length:-e.length},t)}function bO(){return jt}function xO(){return jt=An>0?Kt(fl,--An):0,Xs--,jt===10&&(Xs=1,Jp--),jt}function Nn(){return jt=An<F6?Kt(fl,An++):0,Xs++,jt===10&&(Xs=1,Jp++),jt}function Gr(){return Kt(fl,An)}function xf(){return An}function Pu(e,t){return Zc(fl,e,t)}function Jc(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 B6(e){return Jp=Xs=1,F6=Nr(fl=e),An=0,[]}function V6(e){return fl="",e}function Sf(e){return O6(Pu(An-1,Ug(e===91?e+2:e===40?e+1:e)))}function SO(e){for(;(jt=Gr())&&jt<33;)Nn();return Jc(e)>2||Jc(jt)>3?"":" "}function wO(e,t){for(;--t&&Nn()&&!(jt<48||jt>102||jt>57&&jt<65||jt>70&&jt<97););return Pu(e,xf()+(t<6&&Gr()==32&&Nn()==32))}function Ug(e){for(;Nn();)switch(jt){case e:return An;case 34:case 39:e!==34&&e!==39&&Ug(jt);break;case 40:e===41&&Ug(e);break;case 92:Nn();break}return An}function kO(e,t){for(;Nn()&&e+jt!==57;)if(e+jt===84&&Gr()===47)break;return"/*"+Pu(t,An-1)+"*"+Zp(e===47?e:Nn())}function CO(e){for(;!Jc(Gr());)Nn();return Pu(e,An)}function jO(e){return V6(wf("",null,null,null,[""],e=B6(e),0,[0],e))}function wf(e,t,n,r,i,o,a,l,c){for(var u=0,d=0,f=a,p=0,h=0,v=0,y=1,x=1,b=1,g=0,S="",w=i,k=o,P=r,j=S;x;)switch(v=g,g=Nn()){case 40:if(v!=108&&Kt(j,f-1)==58){Wg(j+=Ne(Sf(g),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:j+=Sf(g);break;case 9:case 10:case 13:case 32:j+=SO(v);break;case 92:j+=wO(xf()-1,7);continue;case 47:switch(Gr()){case 42:case 47:_d(PO(kO(Nn(),xf()),t,n),c);break;default:j+="/"}break;case 123*y:l[u++]=Nr(j)*b;case 125*y:case 59:case 0:switch(g){case 0:case 125:x=0;case 59+d:b==-1&&(j=Ne(j,/\f/g,"")),h>0&&Nr(j)-f&&_d(h>32?kS(j+";",r,n,f-1):kS(Ne(j," ","")+";",r,n,f-2),c);break;case 59:j+=";";default:if(_d(P=wS(j,t,n,u,d,i,l,S,w=[],k=[],f),o),g===123)if(d===0)wf(j,t,P,P,w,o,f,l,k);else switch(p===99&&Kt(j,3)===110?100:p){case 100:case 108:case 109:case 115:wf(e,P,P,r&&_d(wS(e,P,P,0,0,i,l,S,i,w=[],f),k),i,k,f,l,r?w:k);break;default:wf(j,P,P,P,[""],k,0,l,k)}}u=d=h=0,y=b=1,S=j="",f=a;break;case 58:f=1+Nr(j),h=v;default:if(y<1){if(g==123)--y;else if(g==125&&y++==0&&xO()==125)continue}switch(j+=Zp(g),g*y){case 38:b=d>0?1:(j+="\f",-1);break;case 44:l[u++]=(Nr(j)-1)*b,b=1;break;case 64:Gr()===45&&(j+=Sf(Nn())),p=Gr(),d=f=Nr(S=j+=CO(xf())),g++;break;case 45:v===45&&Nr(j)==2&&(y=0)}}return o}function wS(e,t,n,r,i,o,a,l,c,u,d){for(var f=i-1,p=i===0?o:[""],h=uy(p),v=0,y=0,x=0;v<r;++v)for(var b=0,g=Zc(e,f+1,f=mO(y=a[v])),S=e;b<h;++b)(S=O6(y>0?p[b]+" "+g:Ne(g,/&\f/g,p[b])))&&(c[x++]=S);return em(e,t,n,i===0?ly:l,c,u,d)}function PO(e,t,n){return em(e,t,n,N6,Zp(bO()),Zc(e,2,-2),0)}function kS(e,t,n,r){return em(e,t,n,cy,Zc(e,0,r),Zc(e,r+1,-1),r)}function Is(e,t){for(var n="",r=uy(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function _O(e,t,n,r){switch(e.type){case pO:if(e.children.length)break;case fO:case cy:return e.return=e.return||e.value;case N6:return"";case D6:return e.return=e.value+"{"+Is(e.children,r)+"}";case ly:e.value=e.props.join(",")}return Nr(n=Is(e.children,r))?e.return=e.value+"{"+n+"}":""}function TO(e){var t=uy(e);return function(n,r,i,o){for(var a="",l=0;l<t;l++)a+=e[l](n,r,i,o)||"";return a}}function EO(e){return function(t){t.root||(t=t.return)&&e(t)}}var CS=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var i=t(r);return n.set(r,i),i}};function W6(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var AO=function(t,n,r){for(var i=0,o=0;i=o,o=Gr(),i===38&&o===12&&(n[r]=1),!Jc(o);)Nn();return Pu(t,An)},$O=function(t,n){var r=-1,i=44;do switch(Jc(i)){case 0:i===38&&Gr()===12&&(n[r]=1),t[r]+=AO(An-1,n,r);break;case 2:t[r]+=Sf(i);break;case 4:if(i===44){t[++r]=Gr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Zp(i)}while(i=Nn());return t},zO=function(t,n){return V6($O(B6(t),n))},jS=new WeakMap,RO=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!jS.get(r))&&!i){jS.set(t,!0);for(var o=[],a=zO(n,o),l=r.props,c=0,u=0;c<a.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=o[c]?a[c].replace(/&\f/g,l[d]):l[d]+" "+a[c]}}},MO=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function U6(e,t){switch(gO(e,t)){case 5103:return Le+"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 Le+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Le+e+fp+e+nn+e+e;case 6828:case 4268:return Le+e+nn+e+e;case 6165:return Le+e+nn+"flex-"+e+e;case 5187:return Le+e+Ne(e,/(\w+).+(:[^]+)/,Le+"box-$1$2"+nn+"flex-$1$2")+e;case 5443:return Le+e+nn+"flex-item-"+Ne(e,/flex-|-self/,"")+e;case 4675:return Le+e+nn+"flex-line-pack"+Ne(e,/align-content|flex-|-self/,"")+e;case 5548:return Le+e+nn+Ne(e,"shrink","negative")+e;case 5292:return Le+e+nn+Ne(e,"basis","preferred-size")+e;case 6060:return Le+"box-"+Ne(e,"-grow","")+Le+e+nn+Ne(e,"grow","positive")+e;case 4554:return Le+Ne(e,/([^-])(transform)/g,"$1"+Le+"$2")+e;case 6187:return Ne(Ne(Ne(e,/(zoom-|grab)/,Le+"$1"),/(image-set)/,Le+"$1"),e,"")+e;case 5495:case 3959:return Ne(e,/(image-set\([^]*)/,Le+"$1$`$1");case 4968:return Ne(Ne(e,/(.+:)(flex-)?(.*)/,Le+"box-pack:$3"+nn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Le+e+e;case 4095:case 3583:case 4068:case 2532:return Ne(e,/(.+)-inline(.+)/,Le+"$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(Nr(e)-1-t>6)switch(Kt(e,t+1)){case 109:if(Kt(e,t+4)!==45)break;case 102:return Ne(e,/(.+:)(.+)-([^]+)/,"$1"+Le+"$2-$3$1"+fp+(Kt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Wg(e,"stretch")?U6(Ne(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Kt(e,t+1)!==115)break;case 6444:switch(Kt(e,Nr(e)-3-(~Wg(e,"!important")&&10))){case 107:return Ne(e,":",":"+Le)+e;case 101:return Ne(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Le+(Kt(e,14)===45?"inline-":"")+"box$3$1"+Le+"$2$3$1"+nn+"$2box$3")+e}break;case 5936:switch(Kt(e,t+11)){case 114:return Le+e+nn+Ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Le+e+nn+Ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Le+e+nn+Ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Le+e+nn+e+e}return e}var IO=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case cy:t.return=U6(t.value,t.length);break;case D6:return Is([Ll(t,{value:Ne(t.value,"@","@"+Le)})],i);case ly:if(t.length)return yO(t.props,function(o){switch(vO(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Is([Ll(t,{props:[Ne(o,/:(read-\w+)/,":"+fp+"$1")]})],i);case"::placeholder":return Is([Ll(t,{props:[Ne(o,/:(plac\w+)/,":"+Le+"input-$1")]}),Ll(t,{props:[Ne(o,/:(plac\w+)/,":"+fp+"$1")]}),Ll(t,{props:[Ne(o,/:(plac\w+)/,nn+"input-$1")]})],i)}return""})}},LO=[IO],NO=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var x=y.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||LO,o={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var x=y.getAttribute("data-emotion").split(" "),b=1;b<x.length;b++)o[x[b]]=!0;l.push(y)});var c,u=[RO,MO];{var d,f=[_O,EO(function(y){d.insert(y)})],p=TO(u.concat(i,f)),h=function(x){return Is(jO(x),p)};c=function(x,b,g,S){d=g,h(x?x+"{"+b.styles+"}":b.styles),S&&(v.inserted[b.name]=!0)}}var v={key:n,sheet:new dO({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:c};return v.sheet.hydrate(l),v};function Sa(){return Sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sa.apply(null,arguments)}var H6={exports:{}},Ue={};/** @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 Wt=typeof Symbol=="function"&&Symbol.for,dy=Wt?Symbol.for("react.element"):60103,fy=Wt?Symbol.for("react.portal"):60106,tm=Wt?Symbol.for("react.fragment"):60107,nm=Wt?Symbol.for("react.strict_mode"):60108,rm=Wt?Symbol.for("react.profiler"):60114,im=Wt?Symbol.for("react.provider"):60109,om=Wt?Symbol.for("react.context"):60110,py=Wt?Symbol.for("react.async_mode"):60111,am=Wt?Symbol.for("react.concurrent_mode"):60111,sm=Wt?Symbol.for("react.forward_ref"):60112,lm=Wt?Symbol.for("react.suspense"):60113,DO=Wt?Symbol.for("react.suspense_list"):60120,cm=Wt?Symbol.for("react.memo"):60115,um=Wt?Symbol.for("react.lazy"):60116,OO=Wt?Symbol.for("react.block"):60121,FO=Wt?Symbol.for("react.fundamental"):60117,BO=Wt?Symbol.for("react.responder"):60118,VO=Wt?Symbol.for("react.scope"):60119;function Kn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case dy:switch(e=e.type,e){case py:case am:case tm:case rm:case nm:case lm:return e;default:switch(e=e&&e.$$typeof,e){case om:case sm:case um:case cm:case im:return e;default:return t}}case fy:return t}}}function G6(e){return Kn(e)===am}Ue.AsyncMode=py;Ue.ConcurrentMode=am;Ue.ContextConsumer=om;Ue.ContextProvider=im;Ue.Element=dy;Ue.ForwardRef=sm;Ue.Fragment=tm;Ue.Lazy=um;Ue.Memo=cm;Ue.Portal=fy;Ue.Profiler=rm;Ue.StrictMode=nm;Ue.Suspense=lm;Ue.isAsyncMode=function(e){return G6(e)||Kn(e)===py};Ue.isConcurrentMode=G6;Ue.isContextConsumer=function(e){return Kn(e)===om};Ue.isContextProvider=function(e){return Kn(e)===im};Ue.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===dy};Ue.isForwardRef=function(e){return Kn(e)===sm};Ue.isFragment=function(e){return Kn(e)===tm};Ue.isLazy=function(e){return Kn(e)===um};Ue.isMemo=function(e){return Kn(e)===cm};Ue.isPortal=function(e){return Kn(e)===fy};Ue.isProfiler=function(e){return Kn(e)===rm};Ue.isStrictMode=function(e){return Kn(e)===nm};Ue.isSuspense=function(e){return Kn(e)===lm};Ue.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===tm||e===am||e===rm||e===nm||e===lm||e===DO||typeof e=="object"&&e!==null&&(e.$$typeof===um||e.$$typeof===cm||e.$$typeof===im||e.$$typeof===om||e.$$typeof===sm||e.$$typeof===FO||e.$$typeof===BO||e.$$typeof===VO||e.$$typeof===OO)};Ue.typeOf=Kn;H6.exports=Ue;var WO=H6.exports,K6=WO,UO={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},HO={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},q6={};q6[K6.ForwardRef]=UO;q6[K6.Memo]=HO;var GO=!0;function X6(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var my=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||GO===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},hy=function(t,n,r){my(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function KO(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&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(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 qO={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},XO=/[A-Z]|^ms/g,YO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Y6=function(t){return t.charCodeAt(1)===45},PS=function(t){return t!=null&&typeof t!="boolean"},Kh=W6(function(e){return Y6(e)?e:e.replace(XO,"-$&").toLowerCase()}),_S=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(YO,function(r,i,o){return Dr={name:i,styles:o,next:Dr},i})}return qO[t]!==1&&!Y6(t)&&typeof n=="number"&&n!==0?n+"px":n};function eu(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Dr={name:i.name,styles:i.styles,next:Dr},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Dr={name:a.name,styles:a.styles,next:Dr},a=a.next;var l=o.styles+";";return l}return QO(e,t,n)}case"function":{if(e!==void 0){var c=Dr,u=n(e);return Dr=c,eu(e,t,u)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function QO(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=eu(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?r+=o+"{"+t[l]+"}":PS(l)&&(r+=Kh(o)+":"+_S(o,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)PS(a[c])&&(r+=Kh(o)+":"+_S(o,a[c])+";");else{var u=eu(e,t,a);switch(o){case"animation":case"animationName":{r+=Kh(o)+":"+u+";";break}default:r+=o+"{"+u+"}"}}}return r}var TS=/label:\s*([^\s;{]+)\s*(;|$)/g,Dr;function dm(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";Dr=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=eu(n,t,o);else{var a=o;i+=a[0]}for(var l=1;l<e.length;l++)if(i+=eu(n,t,e[l]),r){var c=o;i+=c[l]}TS.lastIndex=0;for(var u="",d;(d=TS.exec(i))!==null;)u+="-"+d[1];var f=KO(i)+u;return{name:f,styles:i,next:Dr}}var ZO=function(t){return t()},Q6=D0.useInsertionEffect?D0.useInsertionEffect:!1,Z6=Q6||ZO,ES=Q6||m.useLayoutEffect,gy=m.createContext(typeof HTMLElement<"u"?NO({key:"css"}):null);gy.Provider;var JO=function(){return m.useContext(gy)},vy=function(t){return m.forwardRef(function(n,r){var i=m.useContext(gy);return t(n,i,r)})},Ys=m.createContext({}),eF=function(t,n){if(typeof n=="function"){var r=n(t);return r}return Sa({},t,n)},tF=CS(function(e){return CS(function(t){return eF(e,t)})}),nF=function(t){var n=m.useContext(Ys);return t.theme!==n&&(n=tF(n)(t.theme)),m.createElement(Ys.Provider,{value:n},t.children)},yy={}.hasOwnProperty,Hg="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",rF=function(t,n){var r={};for(var i in n)yy.call(n,i)&&(r[i]=n[i]);return r[Hg]=t,r},iF=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return my(n,r,i),Z6(function(){return hy(n,r,i)}),null},oF=vy(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Hg],o=[r],a="";typeof e.className=="string"?a=X6(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var l=dm(o,void 0,m.useContext(Ys));a+=t.key+"-"+l.name;var c={};for(var u in e)yy.call(e,u)&&u!=="css"&&u!==Hg&&(c[u]=e[u]);return c.className=a,n&&(c.ref=n),m.createElement(m.Fragment,null,m.createElement(iF,{cache:t,serialized:l,isStringTag:typeof i=="string"}),m.createElement(i,c))}),aF=oF,AS=function(t,n){var r=arguments;if(n==null||!yy.call(n,"css"))return m.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=aF,o[1]=rF(t,n);for(var a=2;a<i;a++)o[a]=r[a];return m.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(AS||(AS={}));var fm=vy(function(e,t){var n=e.styles,r=dm([n],void 0,m.useContext(Ys)),i=m.useRef();return ES(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",o),a.hydrate([c])),i.current=[a,l],function(){a.flush()}},[t]),ES(function(){var o=i.current,a=o[0],l=o[1];if(l){o[1]=!1;return}if(r.next!==void 0&&hy(t,r.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function sF(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return dm(t)}function _u(){var e=sF.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 by=m.createContext({});by.displayName="ColorModeContext";function Tu(){const e=m.useContext(by);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function Gg(e,t){const{colorMode:n}=Tu();return n==="dark"?t:e}const Td={light:"chakra-ui-light",dark:"chakra-ui-dark"};function lF(e={}){const{preventTransition:t=!0,nonce:n}=e,r={setDataset:i=>{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=i,document.documentElement.style.colorScheme=i,o==null||o()},setClassName(i){document.body.classList.add(i?Td.dark:Td.light),document.body.classList.remove(i?Td.light:Td.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(i){return r.query().matches??i==="dark"?"dark":"light"},addListener(i){const o=r.query(),a=l=>{i(l.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(a):o.addEventListener("change",a),()=>{typeof o.removeListener=="function"?o.removeListener(a):o.removeEventListener("change",a)}},preventTransition(){const i=document.createElement("style");return i.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&&(i.nonce=n),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(i)})})}}};return r}const cF="chakra-ui-color-mode";function uF(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 dF=uF(cF),$S=()=>{},fF=w$()?m.useLayoutEffect:m.useEffect;function zS(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const J6=function(t){const{value:n,children:r,options:{useSystemColorMode:i,initialColorMode:o,disableTransitionOnChange:a}={},colorModeManager:l=dF}=t,c=JO(),u=o==="dark"?"dark":"light",[d,f]=m.useState(()=>zS(l,u)),[p,h]=m.useState(()=>zS(l)),{getSystemTheme:v,setClassName:y,setDataset:x,addListener:b}=m.useMemo(()=>lF({preventTransition:a,nonce:c==null?void 0:c.nonce}),[a,c==null?void 0:c.nonce]),g=o==="system"&&!d?p:d,S=m.useCallback(P=>{const j=P==="system"?v():P;f(j),y(j==="dark"),x(j),l.set(j)},[l,v,y,x]);fF(()=>{o==="system"&&h(v())},[]),m.useEffect(()=>{const P=l.get();if(P){S(P);return}if(o==="system"){S("system");return}S(u)},[l,u,o,S]);const w=m.useCallback(()=>{S(g==="dark"?"light":"dark")},[g,S]);m.useEffect(()=>{if(i)return b(S)},[i,b,S]);const k=m.useMemo(()=>({colorMode:n??g,toggleColorMode:n?$S:w,setColorMode:n?$S:S,forced:n!==void 0}),[g,w,S,n]);return s.jsx(by.Provider,{value:k,children:r})};J6.displayName="ColorModeProvider";const ej=String.raw,tj=ej`
: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;
}
}
`,pF=()=>s.jsx(fm,{styles:tj}),mF=({scope:e=""})=>s.jsx(fm,{styles:ej`
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;
}
${tj}
`});function hF(e){const{cssVarsRoot:t,theme:n,children:r}=e,i=m.useMemo(()=>lR(n),[n]);return s.jsxs(nF,{theme:i,children:[s.jsx(gF,{root:t}),r]})}function gF({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return s.jsx(fm,{styles:n=>({[t]:n.__cssVars})})}Ce({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function Tr(e){return Ce({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function vF(){const{colorMode:e}=Tu();return s.jsx(fm,{styles:t=>{const n=JC(t,"styles.global"),r=sn(n,{theme:t,colorMode:e});return r?d6(r)(t):void 0}})}const[yF,bF]=Ce({strict:!1,name:"PortalManagerContext"});function nj(e){const{children:t,zIndex:n}=e;return s.jsx(yF,{value:{zIndex:n},children:t})}nj.displayName="PortalManager";const xy=m.createContext({getDocument(){return document},getWindow(){return window}});xy.displayName="EnvironmentContext";function xF({defer:e}={}){const[,t]=m.useReducer(n=>n+1,0);return gi(()=>{e&&t()},[e]),m.useContext(xy)}function rj(e){const{children:t,environment:n,disabled:r}=e,i=m.useRef(null),o=m.useMemo(()=>n||{getDocument:()=>{var l;return((l=i.current)==null?void 0:l.ownerDocument)??document},getWindow:()=>{var l;return((l=i.current)==null?void 0:l.ownerDocument.defaultView)??window}},[n]),a=!r||!n;return s.jsxs(xy.Provider,{value:o,children:[t,a&&s.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}rj.displayName="EnvironmentProvider";const SF=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:o=!0,theme:a={},environment:l,cssVarsRoot:c,disableEnvironment:u,disableGlobalStyle:d}=e,f=s.jsx(rj,{environment:l,disabled:u,children:t});return s.jsx(hF,{theme:a,cssVarsRoot:c,children:s.jsxs(J6,{colorModeManager:n,options:a.config,children:[o?s.jsx(mF,{scope:i}):s.jsx(pF,{}),!d&&s.jsx(vF,{}),r?s.jsx(nj,{zIndex:r,children:f}):f]})})},Sy=m.createContext({});function wy(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const Eu=m.createContext(null),ky=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class wF extends m.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function kF({children:e,isPresent:t}){const n=m.useId(),r=m.useRef(null),i=m.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=m.useContext(ky);return m.useInsertionEffect(()=>{const{width:a,height:l,top:c,left:u}=i.current;if(t||!r.current||!a||!l)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return o&&(d.nonce=o),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${a}px !important;
height: ${l}px !important;
top: ${c}px !important;
left: ${u}px !important;
}
`),()=>{document.head.removeChild(d)}},[t]),s.jsx(wF,{isPresent:t,childRef:r,sizeRef:i,children:m.cloneElement(e,{ref:r})})}const CF=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const l=wy(jF),c=m.useId(),u=m.useCallback(f=>{l.set(f,!0);for(const p of l.values())if(!p)return;r&&r()},[l,r]),d=m.useMemo(()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),o?[Math.random(),u]:[n,u]);return m.useMemo(()=>{l.forEach((f,p)=>l.set(p,!1))},[n]),m.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),a==="popLayout"&&(e=s.jsx(kF,{isPresent:n,children:e})),s.jsx(Eu.Provider,{value:d,children:e})};function jF(){return new Map}function Cy(e=!0){const t=m.useContext(Eu);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=m.useId();m.useEffect(()=>{e&&i(o)},[e]);const a=m.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}function PF(){return _F(m.useContext(Eu))}function _F(e){return e===null?!0:e.isPresent}const Ed=e=>e.key||"";function RS(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const jy=typeof window<"u",ij=jy?m.useLayoutEffect:m.useEffect,Ai=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1})=>{const[l,c]=Cy(a),u=m.useMemo(()=>RS(e),[e]),d=a&&!l?[]:u.map(Ed),f=m.useRef(!0),p=m.useRef(u),h=wy(()=>new Map),[v,y]=m.useState(u),[x,b]=m.useState(u);ij(()=>{f.current=!1,p.current=u;for(let w=0;w<x.length;w++){const k=Ed(x[w]);d.includes(k)?h.delete(k):h.get(k)!==!0&&h.set(k,!1)}},[x,d.length,d.join("-")]);const g=[];if(u!==v){let w=[...u];for(let k=0;k<x.length;k++){const P=x[k],j=Ed(P);d.includes(j)||(w.splice(k,0,P),g.push(P))}o==="wait"&&g.length&&(w=g),b(RS(w)),y(u);return}const{forceRender:S}=m.useContext(Sy);return s.jsx(s.Fragment,{children:x.map(w=>{const k=Ed(w),P=a&&!l?!1:u===x||d.includes(k),j=()=>{if(h.has(k))h.set(k,!0);else return;let _=!0;h.forEach(M=>{M||(_=!1)}),_&&(S==null||S(),b(p.current),a&&(c==null||c()),r&&r())};return s.jsx(CF,{isPresent:P,initial:!f.current||n?void 0:!1,custom:P?void 0:t,presenceAffectsLayout:i,mode:o,onExitComplete:P?void 0:j,children:w},k)})})},Dn=e=>e;let oj=Dn;function Py(e){let t;return()=>(t===void 0&&(t=e()),t)}const Qs=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},yi=e=>e*1e3,bi=e=>e/1e3,TF={useManualTiming:!1};function EF(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,d=!1,f=!1)=>{const h=f&&r?t:n;return d&&o.add(u),h.has(u)||h.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(a=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,i&&(i=!1,c.process(u))}};return c}const Ad=["read","resolveKeyframes","update","preRender","render","postRender"],AF=40;function aj(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Ad.reduce((b,g)=>(b[g]=EF(o),b),{}),{read:l,resolveKeyframes:c,update:u,preRender:d,render:f,postRender:p}=a,h=()=>{const b=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(b-i.timestamp,AF),1),i.timestamp=b,i.isProcessing=!0,l.process(i),c.process(i),u.process(i),d.process(i),f.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},v=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Ad.reduce((b,g)=>{const S=a[g];return b[g]=(w,k=!1,P=!1)=>(n||v(),S.schedule(w,k,P)),b},{}),cancel:b=>{for(let g=0;g<Ad.length;g++)a[Ad[g]].cancel(b)},state:i,steps:a}}const{schedule:rt,cancel:go,state:Ht,steps:qh}=aj(typeof requestAnimationFrame<"u"?requestAnimationFrame:Dn,!0),sj=m.createContext({strict:!1}),MS={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"]},Zs={};for(const e in MS)Zs[e]={isEnabled:t=>MS[e].some(n=>!!t[n])};function $F(e){for(const t in e)Zs[t]={...Zs[t],...e[t]}}const zF=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 pp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||zF.has(e)}let lj=e=>!pp(e);function RF(e){e&&(lj=t=>t.startsWith("on")?!pp(t):e(t))}try{RF(require("@emotion/is-prop-valid").default)}catch{}function MF(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(lj(i)||n===!0&&pp(i)||!t&&!pp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function IF(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const pm=m.createContext({});function tu(e){return typeof e=="string"||Array.isArray(e)}function mm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const _y=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ty=["initial",..._y];function hm(e){return mm(e.animate)||Ty.some(t=>tu(e[t]))}function cj(e){return!!(hm(e)||e.variants)}function LF(e,t){if(hm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||tu(n)?n:void 0,animate:tu(r)?r:void 0}}return e.inherit!==!1?t:{}}function NF(e){const{initial:t,animate:n}=LF(e,m.useContext(pm));return m.useMemo(()=>({initial:t,animate:n}),[IS(t),IS(n)])}function IS(e){return Array.isArray(e)?e.join(" "):e}const DF=Symbol.for("motionComponentSymbol");function ps(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function OF(e,t,n){return m.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ps(n)&&(n.current=r))},[t])}const Ey=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),FF="framerAppearId",uj="data-"+Ey(FF),{schedule:Ay}=aj(queueMicrotask,!1),dj=m.createContext({});function BF(e,t,n,r,i){var o,a;const{visualElement:l}=m.useContext(pm),c=m.useContext(sj),u=m.useContext(Eu),d=m.useContext(ky).reducedMotion,f=m.useRef(null);r=r||c.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const p=f.current,h=m.useContext(dj);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&VF(f.current,n,i,h);const v=m.useRef(!1);m.useInsertionEffect(()=>{p&&v.current&&p.update(n,u)});const y=n[uj],x=m.useRef(!!y&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,y))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,y)));return ij(()=>{p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Ay.render(p.render),x.current&&p.animationState&&p.animationState.animateChanges())}),m.useEffect(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,y)}),x.current=!1))}),p}function VF(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:fj(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||l&&ps(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:u})}function fj(e){if(e)return e.options.allowProjection!==!1?e.projection:fj(e.parent)}function WF({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&$F(e);function l(u,d){let f;const p={...m.useContext(ky),...u,layoutId:UF(u)},{isStatic:h}=p,v=NF(u),y=r(u,h);if(!h&&jy){HF();const x=GF(p);f=x.MeasureLayout,v.visualElement=BF(i,y,p,t,x.ProjectionNode)}return s.jsxs(pm.Provider,{value:v,children:[f&&v.visualElement?s.jsx(f,{visualElement:v.visualElement,...p}):null,n(i,u,OF(y,v.visualElement,d),y,h,v.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const c=m.forwardRef(l);return c[DF]=i,c}function UF({layoutId:e}){const t=m.useContext(Sy).id;return t&&e!==void 0?t+"-"+e:e}function HF(e,t){m.useContext(sj).strict}function GF(e){const{drag:t,layout:n}=Zs;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const KF=["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 $y(e){return typeof e!="string"||e.includes("-")?!1:!!(KF.indexOf(e)>-1||/[A-Z]/u.test(e))}function LS(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function zy(e,t,n,r){if(typeof t=="function"){const[i,o]=LS(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=LS(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Kg=e=>Array.isArray(e),qF=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),XF=e=>Kg(e)?e[e.length-1]||0:e,ln=e=>!!(e&&e.getVelocity);function kf(e){const t=ln(e)?e.get():e;return qF(t)?t.toValue():t}function YF({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:QF(r,i,o,e),renderState:t()};return n&&(a.onMount=l=>n({props:r,current:l,...a}),a.onUpdate=l=>n(l)),a}const pj=e=>(t,n)=>{const r=m.useContext(pm),i=m.useContext(Eu),o=()=>YF(e,t,r,i);return n?o():wy(o)};function QF(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=kf(o[p]);let{initial:a,animate:l}=e;const c=hm(e),u=cj(e);t&&u&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const f=d?l:a;if(f&&typeof f!="boolean"&&!mm(f)){const p=Array.isArray(f)?f:[f];for(let h=0;h<p.length;h++){const v=zy(e,p[h]);if(v){const{transitionEnd:y,transition:x,...b}=v;for(const g in b){let S=b[g];if(Array.isArray(S)){const w=d?S.length-1:0;S=S[w]}S!==null&&(i[g]=S)}for(const g in y)i[g]=y[g]}}}return i}const pl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],za=new Set(pl),mj=e=>t=>typeof t=="string"&&t.startsWith(e),hj=mj("--"),ZF=mj("var(--"),Ry=e=>ZF(e)?JF.test(e.split("/*")[0].trim()):!1,JF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,gj=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ji=(e,t,n)=>n>t?t:n<e?e:n,ml={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},nu={...ml,transform:e=>ji(0,1,e)},$d={...ml,default:1},Au=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Oi=Au("deg"),Kr=Au("%"),he=Au("px"),eB=Au("vh"),tB=Au("vw"),NS={...Kr,parse:e=>Kr.parse(e)/100,transform:e=>Kr.transform(e*100)},nB={borderWidth:he,borderTopWidth:he,borderRightWidth:he,borderBottomWidth:he,borderLeftWidth:he,borderRadius:he,radius:he,borderTopLeftRadius:he,borderTopRightRadius:he,borderBottomRightRadius:he,borderBottomLeftRadius:he,width:he,maxWidth:he,height:he,maxHeight:he,top:he,right:he,bottom:he,left:he,padding:he,paddingTop:he,paddingRight:he,paddingBottom:he,paddingLeft:he,margin:he,marginTop:he,marginRight:he,marginBottom:he,marginLeft:he,backgroundPositionX:he,backgroundPositionY:he},rB={rotate:Oi,rotateX:Oi,rotateY:Oi,rotateZ:Oi,scale:$d,scaleX:$d,scaleY:$d,scaleZ:$d,skew:Oi,skewX:Oi,skewY:Oi,distance:he,translateX:he,translateY:he,translateZ:he,x:he,y:he,z:he,perspective:he,transformPerspective:he,opacity:nu,originX:NS,originY:NS,originZ:he},DS={...ml,transform:Math.round},My={...nB,...rB,zIndex:DS,size:he,fillOpacity:nu,strokeOpacity:nu,numOctaves:DS},iB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},oB=pl.length;function aB(e,t,n){let r="",i=!0;for(let o=0;o<oB;o++){const a=pl[o],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(a.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const u=gj(l,My[a]);if(!c){i=!1;const d=iB[a]||a;r+=`${d}(${u}) `}n&&(t[a]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Iy(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,l=!1;for(const c in t){const u=t[c];if(za.has(c)){a=!0;continue}else if(hj(c)){i[c]=u;continue}else{const d=gj(u,My[c]);c.startsWith("origin")?(l=!0,o[c]=d):r[c]=d}}if(t.transform||(a||n?r.transform=aB(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=o;r.transformOrigin=`${c} ${u} ${d}`}}const sB={offset:"stroke-dashoffset",array:"stroke-dasharray"},lB={offset:"strokeDashoffset",array:"strokeDasharray"};function cB(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?sB:lB;e[o.offset]=he.transform(-r);const a=he.transform(t),l=he.transform(n);e[o.array]=`${a} ${l}`}function OS(e,t,n){return typeof e=="string"?e:he.transform(t+n*e)}function uB(e,t,n){const r=OS(t,e.x,e.width),i=OS(n,e.y,e.height);return`${r} ${i}`}function Ly(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:l=1,pathOffset:c=0,...u},d,f){if(Iy(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:h,dimensions:v}=e;p.transform&&(v&&(h.transform=p.transform),delete p.transform),v&&(i!==void 0||o!==void 0||h.transform)&&(h.transformOrigin=uB(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&cB(p,a,l,c,!1)}const Ny=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),vj=()=>({...Ny(),attrs:{}}),Dy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function yj(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const bj=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 xj(e,t,n,r){yj(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(bj.has(i)?i:Ey(i),t.attrs[i])}const mp={};function dB(e){Object.assign(mp,e)}function Sj(e,{layout:t,layoutId:n}){return za.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!mp[e]||e==="opacity")}function Oy(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(ln(i[a])||t.style&&ln(t.style[a])||Sj(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function wj(e,t,n){const r=Oy(e,t,n);for(const i in e)if(ln(e[i])||ln(t[i])){const o=pl.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function fB(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const FS=["x","y","width","height","cx","cy","r"],pB={useVisualState:pj({scrapeMotionValuesFromProps:wj,createRenderState:vj,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const l in i)if(za.has(l)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let l=0;l<FS.length;l++){const c=FS[l];e[c]!==t[c]&&(a=!0)}a&&rt.read(()=>{fB(n,r),rt.render(()=>{Ly(r,i,Dy(n.tagName),e.transformTemplate),xj(n,r)})})}})},mB={useVisualState:pj({scrapeMotionValuesFromProps:Oy,createRenderState:Ny})};function kj(e,t,n){for(const r in t)!ln(t[r])&&!Sj(r,n)&&(e[r]=t[r])}function hB({transformTemplate:e},t){return m.useMemo(()=>{const n=Ny();return Iy(n,t,e),Object.assign({},n.vars,n.style)},[t])}function gB(e,t){const n=e.style||{},r={};return kj(r,n,e),Object.assign(r,hB(e,t)),r}function vB(e,t){const n={},r=gB(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function yB(e,t,n,r){const i=m.useMemo(()=>{const o=vj();return Ly(o,t,Dy(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};kj(o,e.style,e),i.style={...o,...i.style}}return i}function bB(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=($y(n)?yB:vB)(r,o,a,n),u=MF(r,typeof n=="string",e),d=n!==m.Fragment?{...u,...c,ref:i}:{},{children:f}=r,p=m.useMemo(()=>ln(f)?f.get():f,[f]);return m.createElement(n,{...d,children:p})}}function xB(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...$y(r)?pB:mB,preloadedFeatures:e,useRender:bB(i),createVisualElement:t,Component:r};return WF(a)}}function Cj(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function gm(e,t,n){const r=e.getProps();return zy(r,t,n!==void 0?n:r.custom,e)}const SB=Py(()=>window.ScrollTimeline!==void 0);class wB{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(SB()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class kB extends wB{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Fy(e,t){return e?e[t]||e.default||e:void 0}const qg=2e4;function jj(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<qg;)t+=n,r=e.next(t);return t>=qg?1/0:t}function By(e){return typeof e=="function"}function BS(e,t){e.timeline=t,e.onfinish=null}const Vy=e=>Array.isArray(e)&&typeof e[0]=="number",CB={linearEasing:void 0};function jB(e,t){const n=Py(e);return()=>{var r;return(r=CB[t])!==null&&r!==void 0?r:n()}}const hp=jB(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Pj=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Qs(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function _j(e){return!!(typeof e=="function"&&hp()||!e||typeof e=="string"&&(e in Xg||hp())||Vy(e)||Array.isArray(e)&&e.every(_j))}const Ql=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Xg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ql([0,.65,.55,1]),circOut:Ql([.55,0,1,.45]),backIn:Ql([.31,.01,.66,-.59]),backOut:Ql([.33,1.53,.69,.99])};function Tj(e,t){if(e)return typeof e=="function"&&hp()?Pj(e,t):Vy(e)?Ql(e):Array.isArray(e)?e.map(n=>Tj(n,t)||Xg.easeOut):Xg[e]}const gr={x:!1,y:!1};function Ej(){return gr.x||gr.y}function PB(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function Aj(e,t){const n=PB(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function VS(e){return t=>{t.pointerType==="touch"||Ej()||e(t)}}function _B(e,t,n={}){const[r,i,o]=Aj(e,n),a=VS(l=>{const{target:c}=l,u=t(l);if(typeof u!="function"||!c)return;const d=VS(f=>{u(f),c.removeEventListener("pointerleave",d)});c.addEventListener("pointerleave",d,i)});return r.forEach(l=>{l.addEventListener("pointerenter",a,i)}),o}const $j=(e,t)=>t?e===t?!0:$j(e,t.parentElement):!1,Wy=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,TB=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function EB(e){return TB.has(e.tagName)||e.tabIndex!==-1}const Zl=new WeakSet;function WS(e){return t=>{t.key==="Enter"&&e(t)}}function Xh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const AB=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=WS(()=>{if(Zl.has(n))return;Xh(n,"down");const i=WS(()=>{Xh(n,"up")}),o=()=>Xh(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function US(e){return Wy(e)&&!Ej()}function $B(e,t,n={}){const[r,i,o]=Aj(e,n),a=l=>{const c=l.currentTarget;if(!US(l)||Zl.has(c))return;Zl.add(c);const u=t(l),d=(h,v)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),!(!US(h)||!Zl.has(c))&&(Zl.delete(c),typeof u=="function"&&u(h,{success:v}))},f=h=>{d(h,n.useGlobalTarget||$j(c,h.target))},p=h=>{d(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",p,i)};return r.forEach(l=>{!EB(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,i),l.addEventListener("focus",u=>AB(u,i),i)}),o}function zB(e){return e==="x"||e==="y"?gr[e]?null:(gr[e]=!0,()=>{gr[e]=!1}):gr.x||gr.y?null:(gr.x=gr.y=!0,()=>{gr.x=gr.y=!1})}const zj=new Set(["width","height","top","left","right","bottom",...pl]);let Cf;function RB(){Cf=void 0}const qr={now:()=>(Cf===void 0&&qr.set(Ht.isProcessing||TF.useManualTiming?Ht.timestamp:performance.now()),Cf),set:e=>{Cf=e,queueMicrotask(RB)}};function Uy(e,t){e.indexOf(t)===-1&&e.push(t)}function Hy(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Gy{constructor(){this.subscriptions=[]}add(t){return Uy(this.subscriptions,t),()=>Hy(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Rj(e,t){return t?e*(1e3/t):0}const HS=30,MB=e=>!isNaN(parseFloat(e));class IB{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=qr.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=qr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=MB(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 Gy);const r=this.events[t].add(n);return t==="change"?()=>{r(),rt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=qr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>HS)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,HS);return Rj(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ru(e,t){return new IB(e,t)}function LB(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ru(n))}function NB(e,t){const n=gm(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const l=XF(o[a]);LB(e,a,l)}}function DB(e){return!!(ln(e)&&e.add)}function Yg(e,t){const n=e.getValue("willChange");if(DB(n))return n.add(t)}function Mj(e){return e.props[uj]}const Ij=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,OB=1e-7,FB=12;function BB(e,t,n,r,i){let o,a,l=0;do a=t+(n-t)/2,o=Ij(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>OB&&++l<FB);return a}function $u(e,t,n,r){if(e===t&&n===r)return Dn;const i=o=>BB(o,0,1,e,n);return o=>o===0||o===1?o:Ij(i(o),t,r)}const Lj=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Nj=e=>t=>1-e(1-t),Dj=$u(.33,1.53,.69,.99),Ky=Nj(Dj),Oj=Lj(Ky),Fj=e=>(e*=2)<1?.5*Ky(e):.5*(2-Math.pow(2,-10*(e-1))),qy=e=>1-Math.sin(Math.acos(e)),Bj=Nj(qy),Vj=Lj(qy),Wj=e=>/^0[^.\s]+$/u.test(e);function VB(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Wj(e):!0}const wc=e=>Math.round(e*1e5)/1e5,Xy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function WB(e){return e==null}const UB=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Yy=(e,t)=>n=>!!(typeof n=="string"&&UB.test(n)&&n.startsWith(e)||t&&!WB(n)&&Object.prototype.hasOwnProperty.call(n,t)),Uj=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,l]=r.match(Xy);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},HB=e=>ji(0,255,e),Yh={...ml,transform:e=>Math.round(HB(e))},Jo={test:Yy("rgb","red"),parse:Uj("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Yh.transform(e)+", "+Yh.transform(t)+", "+Yh.transform(n)+", "+wc(nu.transform(r))+")"};function GB(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Qg={test:Yy("#"),parse:GB,transform:Jo.transform},ms={test:Yy("hsl","hue"),parse:Uj("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Kr.transform(wc(t))+", "+Kr.transform(wc(n))+", "+wc(nu.transform(r))+")"},on={test:e=>Jo.test(e)||Qg.test(e)||ms.test(e),parse:e=>Jo.test(e)?Jo.parse(e):ms.test(e)?ms.parse(e):Qg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Jo.transform(e):ms.transform(e)},KB=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function qB(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Xy))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(KB))===null||n===void 0?void 0:n.length)||0)>0}const Hj="number",Gj="color",XB="var",YB="var(",GS="${}",QB=/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 iu(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace(QB,c=>(on.test(c)?(r.color.push(o),i.push(Gj),n.push(on.parse(c))):c.startsWith(YB)?(r.var.push(o),i.push(XB),n.push(c)):(r.number.push(o),i.push(Hj),n.push(parseFloat(c))),++o,GS)).split(GS);return{values:n,split:l,indexes:r,types:i}}function Kj(e){return iu(e).values}function qj(e){const{split:t,types:n}=iu(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const l=n[a];l===Hj?o+=wc(i[a]):l===Gj?o+=on.transform(i[a]):o+=i[a]}return o}}const ZB=e=>typeof e=="number"?0:e;function JB(e){const t=Kj(e);return qj(e)(t.map(ZB))}const vo={test:qB,parse:Kj,createTransformer:qj,getAnimatableNone:JB},eV=new Set(["brightness","contrast","saturate","opacity"]);function tV(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Xy)||[];if(!r)return e;const i=n.replace(r,"");let o=eV.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const nV=/\b([a-z-]*)\(.*?\)/gu,Zg={...vo,getAnimatableNone:e=>{const t=e.match(nV);return t?t.map(tV).join(" "):e}},rV={...My,color:on,backgroundColor:on,outlineColor:on,fill:on,stroke:on,borderColor:on,borderTopColor:on,borderRightColor:on,borderBottomColor:on,borderLeftColor:on,filter:Zg,WebkitFilter:Zg},Qy=e=>rV[e];function Xj(e,t){let n=Qy(e);return n!==Zg&&(n=vo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const iV=new Set(["auto","none","0"]);function oV(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!iV.has(o)&&iu(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Xj(n,i)}const KS=e=>e===ml||e===he,qS=(e,t)=>parseFloat(e.split(", ")[t]),XS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return qS(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?qS(o[1],e):0}},aV=new Set(["x","y","z"]),sV=pl.filter(e=>!aV.has(e));function lV(e){const t=[];return sV.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Js={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:XS(4,13),y:XS(5,14)};Js.translateX=Js.x;Js.translateY=Js.y;const la=new Set;let Jg=!1,ev=!1;function Yj(){if(ev){const e=Array.from(la).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=lV(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var l;(l=r.getValue(o))===null||l===void 0||l.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ev=!1,Jg=!1,la.forEach(e=>e.complete()),la.clear()}function Qj(){la.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ev=!0)})}function cV(){Qj(),Yj()}class Zy{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(la.add(this),Jg||(Jg=!0,rt.read(Qj),rt.resolveKeyframes(Yj))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),l=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),la.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,la.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Zj=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),uV=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function dV(e){const t=uV.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Jj(e,t,n=1){const[r,i]=dV(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return Zj(a)?parseFloat(a):a}return Ry(i)?Jj(i,t,n+1):i}const eP=e=>t=>t.test(e),fV={test:e=>e==="auto",parse:e=>e},tP=[ml,he,Kr,Oi,tB,eB,fV],YS=e=>tP.find(eP(e));class nP extends Zy{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u=="string"&&(u=u.trim(),Ry(u))){const d=Jj(u,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!zj.has(r)||t.length!==2)return;const[i,o]=t,a=YS(i),l=YS(o);if(a!==l)if(KS(a)&&KS(l))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)VB(t[i])&&r.push(i);r.length&&oV(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Js[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,l=i[a];i[a]=Js[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,u])=>{n.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const QS=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(vo.test(e)||e==="0")&&!e.startsWith("url("));function pV(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 mV(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=QS(i,t),l=QS(o,t);return!a||!l?!1:pV(e)||(n==="spring"||By(n))&&r}const hV=e=>e!==null;function vm(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(hV),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const gV=40;class rP{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=qr.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>gV?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&cV(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=qr.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:l,onUpdate:c,isGenerator:u}=this.options;if(!u&&!mV(t,r,i,o))if(a)this.options.duration=0;else{c&&c(vm(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const dt=(e,t,n)=>e+(t-e)*n;function Qh(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 vV({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=Qh(c,l,e+1/3),o=Qh(c,l,e),a=Qh(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function gp(e,t){return n=>n>0?t:e}const Zh=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},yV=[Qg,Jo,ms],bV=e=>yV.find(t=>t.test(e));function ZS(e){const t=bV(e);if(!t)return!1;let n=t.parse(e);return t===ms&&(n=vV(n)),n}const JS=(e,t)=>{const n=ZS(e),r=ZS(t);if(!n||!r)return gp(e,t);const i={...n};return o=>(i.red=Zh(n.red,r.red,o),i.green=Zh(n.green,r.green,o),i.blue=Zh(n.blue,r.blue,o),i.alpha=dt(n.alpha,r.alpha,o),Jo.transform(i))},xV=(e,t)=>n=>t(e(n)),zu=(...e)=>e.reduce(xV),tv=new Set(["none","hidden"]);function SV(e,t){return tv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function wV(e,t){return n=>dt(e,t,n)}function Jy(e){return typeof e=="number"?wV:typeof e=="string"?Ry(e)?gp:on.test(e)?JS:jV:Array.isArray(e)?iP:typeof e=="object"?on.test(e)?JS:kV:gp}function iP(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Jy(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function kV(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Jy(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function CV(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],l=e.indexes[a][i[a]],c=(n=e.values[l])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const jV=(e,t)=>{const n=vo.createTransformer(t),r=iu(e),i=iu(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?tv.has(e)&&!i.values.length||tv.has(t)&&!r.values.length?SV(e,t):zu(iP(CV(r,i),i.values),n):gp(e,t)};function oP(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?dt(e,t,n):Jy(e)(e,t)}const PV=5;function aP(e,t,n){const r=Math.max(t-PV,0);return Rj(n-e(r),t-r)}const gt={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},Jh=.001;function _V({duration:e=gt.duration,bounce:t=gt.bounce,velocity:n=gt.velocity,mass:r=gt.mass}){let i,o,a=1-t;a=ji(gt.minDamping,gt.maxDamping,a),e=ji(gt.minDuration,gt.maxDuration,bi(e)),a<1?(i=u=>{const d=u*a,f=d*e,p=d-n,h=nv(u,a),v=Math.exp(-f);return Jh-p/h*v},o=u=>{const f=u*a*e,p=f*n+n,h=Math.pow(a,2)*Math.pow(u,2)*e,v=Math.exp(-f),y=nv(Math.pow(u,2),a);return(-i(u)+Jh>0?-1:1)*((p-h)*v)/y}):(i=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-Jh+d*f},o=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const l=5/e,c=EV(i,o,l);if(e=yi(e),isNaN(c))return{stiffness:gt.stiffness,damping:gt.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const TV=12;function EV(e,t,n){let r=n;for(let i=1;i<TV;i++)r=r-e(r)/t(r);return r}function nv(e,t){return e*Math.sqrt(1-t*t)}const AV=["duration","bounce"],$V=["stiffness","damping","mass"];function e4(e,t){return t.some(n=>e[n]!==void 0)}function zV(e){let t={velocity:gt.velocity,stiffness:gt.stiffness,damping:gt.damping,mass:gt.mass,isResolvedFromDuration:!1,...e};if(!e4(e,$V)&&e4(e,AV))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*ji(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:gt.mass,stiffness:i,damping:o}}else{const n=_V(e);t={...t,...n,mass:gt.mass},t.isResolvedFromDuration=!0}return t}function sP(e=gt.visualDuration,t=gt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:c,damping:u,mass:d,duration:f,velocity:p,isResolvedFromDuration:h}=zV({...n,velocity:-bi(n.velocity||0)}),v=p||0,y=u/(2*Math.sqrt(c*d)),x=a-o,b=bi(Math.sqrt(c/d)),g=Math.abs(x)<5;r||(r=g?gt.restSpeed.granular:gt.restSpeed.default),i||(i=g?gt.restDelta.granular:gt.restDelta.default);let S;if(y<1){const k=nv(b,y);S=P=>{const j=Math.exp(-y*b*P);return a-j*((v+y*b*x)/k*Math.sin(k*P)+x*Math.cos(k*P))}}else if(y===1)S=k=>a-Math.exp(-b*k)*(x+(v+b*x)*k);else{const k=b*Math.sqrt(y*y-1);S=P=>{const j=Math.exp(-y*b*P),_=Math.min(k*P,300);return a-j*((v+y*b*x)*Math.sinh(_)+k*x*Math.cosh(_))/k}}const w={calculatedDuration:h&&f||null,next:k=>{const P=S(k);if(h)l.done=k>=f;else{let j=0;y<1&&(j=k===0?yi(v):aP(S,k,P));const _=Math.abs(j)<=r,M=Math.abs(a-P)<=i;l.done=_&&M}return l.value=l.done?a:P,l},toString:()=>{const k=Math.min(jj(w),qg),P=Pj(j=>w.next(k*j).value,k,30);return k+"ms "+P}};return w}function t4({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:l,max:c,restDelta:u=.5,restSpeed:d}){const f=e[0],p={done:!1,value:f},h=_=>l!==void 0&&_<l||c!==void 0&&_>c,v=_=>l===void 0?c:c===void 0||Math.abs(l-_)<Math.abs(c-_)?l:c;let y=n*t;const x=f+y,b=a===void 0?x:a(x);b!==x&&(y=b-f);const g=_=>-y*Math.exp(-_/r),S=_=>b+g(_),w=_=>{const M=g(_),T=S(_);p.done=Math.abs(M)<=u,p.value=p.done?b:T};let k,P;const j=_=>{h(p.value)&&(k=_,P=sP({keyframes:[p.value,v(p.value)],velocity:aP(S,_,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:d}))};return j(0),{calculatedDuration:null,next:_=>{let M=!1;return!P&&k===void 0&&(M=!0,w(_),j(_)),k!==void 0&&_>=k?P.next(_-k):(!M&&w(_),p)}}}const RV=$u(.42,0,1,1),MV=$u(0,0,.58,1),lP=$u(.42,0,.58,1),IV=e=>Array.isArray(e)&&typeof e[0]!="number",LV={linear:Dn,easeIn:RV,easeInOut:lP,easeOut:MV,circIn:qy,circInOut:Vj,circOut:Bj,backIn:Ky,backInOut:Oj,backOut:Dj,anticipate:Fj},n4=e=>{if(Vy(e)){oj(e.length===4);const[t,n,r,i]=e;return $u(t,n,r,i)}else if(typeof e=="string")return LV[e];return e};function NV(e,t,n){const r=[],i=n||oP,o=e.length-1;for(let a=0;a<o;a++){let l=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||Dn:t;l=zu(c,l)}r.push(l)}return r}function DV(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(oj(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=NV(t,r,i),c=l.length,u=d=>{if(a&&d<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const p=Qs(e[f],e[f+1],d);return l[f](p)};return n?d=>u(ji(e[0],e[o-1],d)):u}function OV(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Qs(0,t,r);e.push(dt(n,1,i))}}function FV(e){const t=[0];return OV(t,e.length-1),t}function BV(e,t){return e.map(n=>n*t)}function VV(e,t){return e.map(()=>t||lP).splice(0,e.length-1)}function vp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=IV(r)?r.map(n4):n4(r),o={done:!1,value:t[0]},a=BV(n&&n.length===t.length?n:FV(t),e),l=DV(a,t,{ease:Array.isArray(i)?i:VV(t,i)});return{calculatedDuration:e,next:c=>(o.value=l(c),o.done=c>=e,o)}}const WV=e=>{const t=({timestamp:n})=>e(n);return{start:()=>rt.update(t,!0),stop:()=>go(t),now:()=>Ht.isProcessing?Ht.timestamp:qr.now()}},UV={decay:t4,inertia:t4,tween:vp,keyframes:vp,spring:sP},HV=e=>e/100;class eb extends rP{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Zy,l=(c,u)=>this.onKeyframesResolved(c,u);this.resolver=new a(o,l,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,l=By(n)?n:UV[n]||vp;let c,u;l!==vp&&typeof t[0]!="number"&&(c=zu(HV,oP(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});o==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=jj(d));const{calculatedDuration:f}=d,p=f+i,h=p*(r+1)-i;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:c,calculatedDuration:f,resolvedDuration:p,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:_}=this.options;return{done:!0,value:_[_.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:u,totalDuration:d,resolvedDuration:f}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:h,repeatType:v,repeatDelay:y,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const b=this.currentTime-p*(this.speed>=0?1:-1),g=this.speed>=0?b<0:b>d;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let S=this.currentTime,w=o;if(h){const _=Math.min(this.currentTime,d)/f;let M=Math.floor(_),T=_%1;!T&&_>=1&&(T=1),T===1&&M--,M=Math.min(M,h+1),!!(M%2)&&(v==="reverse"?(T=1-T,y&&(T-=y/f)):v==="mirror"&&(w=a)),S=ji(0,1,T)*f}const k=g?{done:!1,value:c[0]}:w.next(S);l&&(k.value=l(k.value));let{done:P}=k;!g&&u!==null&&(P=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return j&&i!==void 0&&(k.value=vm(c,this.options,i)),x&&x(k.value),j&&this.finish(),k}get duration(){const{resolved:t}=this;return t?bi(t.calculatedDuration):0}get time(){return bi(this.currentTime)}set time(t){t=yi(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=bi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=WV,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const GV=new Set(["opacity","clipPath","filter","transform"]);function KV(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:l="easeInOut",times:c}={}){const u={[t]:n};c&&(u.offset=c);const d=Tj(l,i);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const qV=Py(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),yp=10,XV=2e4;function YV(e){return By(e.type)||e.type==="spring"||!_j(e.ease)}function QV(e,t){const n=new eb({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<XV;)r=n.sample(o),i.push(r.value),o+=yp;return{times:void 0,keyframes:i,duration:o-yp,ease:"linear"}}const cP={anticipate:Fj,backInOut:Oj,circInOut:Vj};function ZV(e){return e in cP}class r4 extends rP{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new nP(o,(a,l)=>this.onKeyframesResolved(a,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:l,name:c,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof o=="string"&&hp()&&ZV(o)&&(o=cP[o]),YV(this.options)){const{onComplete:f,onUpdate:p,motionValue:h,element:v,...y}=this.options,x=QV(t,y);t=x.keyframes,t.length===1&&(t[1]=t[0]),r=x.duration,i=x.times,o=x.ease,a="keyframes"}const d=KV(l.owner.current,c,t,{...this.options,duration:r,times:i,ease:o});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(BS(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(vm(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return bi(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return bi(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=yi(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Dn;const{animation:r}=n;BS(r,t)}return Dn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:f,element:p,...h}=this.options,v=new eb({...h,keyframes:r,duration:i,type:o,ease:a,times:l,isGenerator:!0}),y=yi(this.time);u.setWithVelocity(v.sample(y-yp).value,v.sample(y).value,yp)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=n.owner.getProps();return qV()&&r&&GV.has(r)&&!c&&!u&&!i&&o!=="mirror"&&a!==0&&l!=="inertia"}}const JV={type:"spring",stiffness:500,damping:25,restSpeed:10},eW=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),tW={type:"keyframes",duration:.8},nW={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rW=(e,{keyframes:t})=>t.length>2?tW:za.has(e)?e.startsWith("scale")?eW(t[1]):JV:nW;function iW({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const tb=(e,t,n,r={},i,o)=>a=>{const l=Fy(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-yi(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:p=>{t.set(p),l.onUpdate&&l.onUpdate(p)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};iW(l)||(d={...d,...rW(e,d)}),d.duration&&(d.duration=yi(d.duration)),d.repeatDelay&&(d.repeatDelay=yi(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!o&&t.get()!==void 0){const p=vm(d.keyframes,l);if(p!==void 0)return rt.update(()=>{d.onUpdate(p),d.onComplete()}),new kB([])}return!o&&r4.supports(d)?new r4(d):new eb(d)};function oW({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function uP(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(a=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in c){const p=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),h=c[f];if(h===void 0||d&&oW(d,f))continue;const v={delay:n,...Fy(a||{},f)};let y=!1;if(window.MotionHandoffAnimation){const b=Mj(e);if(b){const g=window.MotionHandoffAnimation(b,f,rt);g!==null&&(v.startTime=g,y=!0)}}Yg(e,f),p.start(tb(f,p,h,e.shouldReduceMotion&&zj.has(f)?{type:!1}:v,e,y));const x=p.animation;x&&u.push(x)}return l&&Promise.all(u).then(()=>{rt.update(()=>{l&&NB(e,l)})}),u}function rv(e,t,n={}){var r;const i=gm(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(uP(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=o;return aW(e,t,d+u,f,p,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[u,d]=c==="beforeChildren"?[a,l]:[l,a];return u().then(()=>d())}else return Promise.all([a(),l(n.delay)])}function aW(e,t,n=0,r=0,i=1,o){const a=[],l=(e.variantChildren.size-1)*r,c=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(sW).forEach((u,d)=>{u.notify("AnimationStart",t),a.push(rv(u,t,{...o,delay:n+c(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function sW(e,t){return e.sortNodePosition(t)}function lW(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>rv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=rv(e,t,n);else{const i=typeof t=="function"?gm(e,t,n.custom):t;r=Promise.all(uP(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const cW=Ty.length;function dP(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?dP(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<cW;n++){const r=Ty[n],i=e.props[r];(tu(i)||i===!1)&&(t[r]=i)}return t}const uW=[..._y].reverse(),dW=_y.length;function fW(e){return t=>Promise.all(t.map(({animation:n,options:r})=>lW(e,n,r)))}function pW(e){let t=fW(e),n=i4(),r=!0;const i=c=>(u,d)=>{var f;const p=gm(e,d,c==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(p){const{transition:h,transitionEnd:v,...y}=p;u={...u,...y,...v}}return u};function o(c){t=c(e)}function a(c){const{props:u}=e,d=dP(e.parent)||{},f=[],p=new Set;let h={},v=1/0;for(let x=0;x<dW;x++){const b=uW[x],g=n[b],S=u[b]!==void 0?u[b]:d[b],w=tu(S),k=b===c?g.isActive:null;k===!1&&(v=x);let P=S===d[b]&&S!==u[b]&&w;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),g.protectedKeys={...h},!g.isActive&&k===null||!S&&!g.prevProp||mm(S)||typeof S=="boolean")continue;const j=mW(g.prevProp,S);let _=j||b===c&&g.isActive&&!P&&w||x>v&&w,M=!1;const T=Array.isArray(S)?S:[S];let O=T.reduce(i(b),{});k===!1&&(O={});const{prevResolvedValues:q={}}=g,ne={...q,...O},z=I=>{_=!0,p.has(I)&&(M=!0,p.delete(I)),g.needsAnimating[I]=!0;const D=e.getValue(I);D&&(D.liveStyle=!1)};for(const I in ne){const D=O[I],R=q[I];if(h.hasOwnProperty(I))continue;let F=!1;Kg(D)&&Kg(R)?F=!Cj(D,R):F=D!==R,F?D!=null?z(I):p.add(I):D!==void 0&&p.has(I)?z(I):g.protectedKeys[I]=!0}g.prevProp=S,g.prevResolvedValues=O,g.isActive&&(h={...h,...O}),r&&e.blockInitialAnimation&&(_=!1),_&&(!(P&&j)||M)&&f.push(...T.map(I=>({animation:I,options:{type:b}})))}if(p.size){const x={};p.forEach(b=>{const g=e.getBaseTarget(b),S=e.getValue(b);S&&(S.liveStyle=!0),x[b]=g??null}),f.push({animation:x})}let y=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(f):Promise.resolve()}function l(c,u){var d;if(n[c].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var h;return(h=p.animationState)===null||h===void 0?void 0:h.setActive(c,u)}),n[c].isActive=u;const f=a(c);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=i4(),r=!0}}}function mW(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Cj(t,e):!1}function No(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function i4(){return{animate:No(!0),whileInView:No(),whileHover:No(),whileTap:No(),whileDrag:No(),whileFocus:No(),exit:No()}}class Po{constructor(t){this.isMounted=!1,this.node=t}update(){}}class hW extends Po{constructor(t){super(t),t.animationState||(t.animationState=pW(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();mm(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let gW=0;class vW extends Po{constructor(){super(...arguments),this.id=gW++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const yW={animation:{Feature:hW},exit:{Feature:vW}};function ou(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ru(e){return{point:{x:e.pageX,y:e.pageY}}}const bW=e=>t=>Wy(t)&&e(t,Ru(t));function kc(e,t,n,r){return ou(e,t,bW(n),r)}const o4=(e,t)=>Math.abs(e-t);function xW(e,t){const n=o4(e.x,t.x),r=o4(e.y,t.y);return Math.sqrt(n**2+r**2)}class fP{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=t0(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=xW(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:v}=f,{timestamp:y}=Ht;this.history.push({...v,timestamp:y});const{onStart:x,onMove:b}=this.handlers;p||(x&&x(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=e0(p,this.transformPagePoint),rt.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:v,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=t0(f.type==="pointercancel"?this.lastMoveEventInfo:e0(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,x),v&&v(f,x)},!Wy(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Ru(t),l=e0(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=Ht;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,t0(l,this.history)),this.removeListeners=zu(kc(this.contextWindow,"pointermove",this.handlePointerMove),kc(this.contextWindow,"pointerup",this.handlePointerUp),kc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),go(this.updatePoint)}}function e0(e,t){return t?{point:t(e.point)}:e}function a4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function t0({point:e},t){return{point:e,delta:a4(e,pP(t)),offset:a4(e,SW(t)),velocity:wW(t,.1)}}function SW(e){return e[0]}function pP(e){return e[e.length-1]}function wW(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=pP(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>yi(t)));)n--;if(!r)return{x:0,y:0};const o=bi(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const mP=1e-4,kW=1-mP,CW=1+mP,hP=.01,jW=0-hP,PW=0+hP;function Bn(e){return e.max-e.min}function _W(e,t,n){return Math.abs(e-t)<=n}function s4(e,t,n,r=.5){e.origin=r,e.originPoint=dt(t.min,t.max,e.origin),e.scale=Bn(n)/Bn(t),e.translate=dt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=kW&&e.scale<=CW||isNaN(e.scale))&&(e.scale=1),(e.translate>=jW&&e.translate<=PW||isNaN(e.translate))&&(e.translate=0)}function Cc(e,t,n,r){s4(e.x,t.x,n.x,r?r.originX:void 0),s4(e.y,t.y,n.y,r?r.originY:void 0)}function l4(e,t,n){e.min=n.min+t.min,e.max=e.min+Bn(t)}function TW(e,t,n){l4(e.x,t.x,n.x),l4(e.y,t.y,n.y)}function c4(e,t,n){e.min=t.min-n.min,e.max=e.min+Bn(t)}function jc(e,t,n){c4(e.x,t.x,n.x),c4(e.y,t.y,n.y)}function EW(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?dt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?dt(n,e,r.max):Math.min(e,n)),e}function u4(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 AW(e,{top:t,left:n,bottom:r,right:i}){return{x:u4(e.x,n,i),y:u4(e.y,t,r)}}function d4(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function $W(e,t){return{x:d4(e.x,t.x),y:d4(e.y,t.y)}}function zW(e,t){let n=.5;const r=Bn(e),i=Bn(t);return i>r?n=Qs(t.min,t.max-r,e.min):r>i&&(n=Qs(e.min,e.max-i,t.min)),ji(0,1,n)}function RW(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 iv=.35;function MW(e=iv){return e===!1?e=0:e===!0&&(e=iv),{x:f4(e,"left","right"),y:f4(e,"top","bottom")}}function f4(e,t,n){return{min:p4(e,t),max:p4(e,n)}}function p4(e,t){return typeof e=="number"?e:e[t]||0}const m4=()=>({translate:0,scale:1,origin:0,originPoint:0}),hs=()=>({x:m4(),y:m4()}),h4=()=>({min:0,max:0}),xt=()=>({x:h4(),y:h4()});function er(e){return[e("x"),e("y")]}function gP({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function IW({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function LW(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function n0(e){return e===void 0||e===1}function ov({scale:e,scaleX:t,scaleY:n}){return!n0(e)||!n0(t)||!n0(n)}function Wo(e){return ov(e)||vP(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vP(e){return g4(e.x)||g4(e.y)}function g4(e){return e&&e!=="0%"}function bp(e,t,n){const r=e-n,i=t*r;return n+i}function v4(e,t,n,r,i){return i!==void 0&&(e=bp(e,i,r)),bp(e,n,r)+t}function av(e,t=0,n=1,r,i){e.min=v4(e.min,t,n,r,i),e.max=v4(e.max,t,n,r,i)}function yP(e,{x:t,y:n}){av(e.x,t.translate,t.scale,t.originPoint),av(e.y,n.translate,n.scale,n.originPoint)}const y4=.999999999999,b4=1.0000000000001;function NW(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let l=0;l<i;l++){o=n[l],a=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&vs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,yP(e,a)),r&&Wo(o.latestValues)&&vs(e,o.latestValues))}t.x<b4&&t.x>y4&&(t.x=1),t.y<b4&&t.y>y4&&(t.y=1)}function gs(e,t){e.min=e.min+t,e.max=e.max+t}function x4(e,t,n,r,i=.5){const o=dt(e.min,e.max,i);av(e,t,n,o,r)}function vs(e,t){x4(e.x,t.x,t.scaleX,t.scale,t.originX),x4(e.y,t.y,t.scaleY,t.scale,t.originY)}function bP(e,t){return gP(LW(e.getBoundingClientRect(),t))}function DW(e,t,n){const r=bP(e,n),{scroll:i}=t;return i&&(gs(r.x,i.offset.x),gs(r.y,i.offset.y)),r}const xP=({current:e})=>e?e.ownerDocument.defaultView:null,OW=new WeakMap;class FW{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=xt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ru(d).point)},o=(d,f)=>{const{drag:p,dragPropagation:h,onDragStart:v}=this.getProps();if(p&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=zB(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),er(x=>{let b=this.getAxisMotionValue(x).get()||0;if(Kr.test(b)){const{projection:g}=this.visualElement;if(g&&g.layout){const S=g.layout.layoutBox[x];S&&(b=Bn(S)*(parseFloat(b)/100))}}this.originPoint[x]=b}),v&&rt.postRender(()=>v(d,f)),Yg(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(d,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:v,onDrag:y}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:x}=f;if(h&&this.currentDirection===null){this.currentDirection=BW(x),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),y&&y(d,f)},l=(d,f)=>this.stop(d,f),c=()=>er(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new fP(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:xP(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&rt.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!zd(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=EW(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&ps(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=AW(i.layoutBox,n):this.constraints=!1,this.elastic=MW(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&er(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=RW(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ps(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=DW(r,i.root,this.visualElement.getTransformPagePoint());let a=$W(i.layout.layoutBox,o);if(n){const l=n(IW(a));this.hasMutatedConstraints=!!l,l&&(a=gP(l))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=er(d=>{if(!zd(d,n,this.currentDirection))return;let f=c&&c[d]||{};a&&(f={min:0,max:0});const p=i?200:1e6,h=i?40:1e7,v={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(d,v)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Yg(this.visualElement,t),r.start(tb(t,r,0,n,this.visualElement,!1))}stopAnimation(){er(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){er(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){er(n=>{const{drag:r}=this.getProps();if(!zd(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:l}=i.layout.layoutBox[n];o.set(t[n]-dt(a,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ps(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};er(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();i[a]=zW({min:c,max:c},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),er(a=>{if(!zd(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(dt(c,u,i[a]))})}addListeners(){if(!this.visualElement.current)return;OW.set(this.visualElement,this);const t=this.visualElement.current,n=kc(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();ps(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),rt.read(r);const a=ou(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(er(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=iv,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:l}}}function zd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function BW(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class VW extends Po{constructor(t){super(t),this.removeGroupControls=Dn,this.removeListeners=Dn,this.controls=new FW(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Dn}unmount(){this.removeGroupControls(),this.removeListeners()}}const S4=e=>(t,n)=>{e&&rt.postRender(()=>e(t,n))};class WW extends Po{constructor(){super(...arguments),this.removePointerDownListener=Dn}onPointerDown(t){this.session=new fP(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:xP(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:S4(t),onStart:S4(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&rt.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=kc(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 jf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function w4(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Nl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(he.test(e))e=parseFloat(e);else return e;const n=w4(e,t.target.x),r=w4(e,t.target.y);return`${n}% ${r}%`}},UW={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=vo.parse(e);if(i.length>5)return r;const o=vo.createTransformer(e),a=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;i[0+a]/=l,i[1+a]/=c;const u=dt(l,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=u),typeof i[3+a]=="number"&&(i[3+a]/=u),o(i)}};class HW extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;dB(GW),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),jf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||rt.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ay.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function SP(e){const[t,n]=Cy(),r=m.useContext(Sy);return s.jsx(HW,{...e,layoutGroup:r,switchLayoutGroup:m.useContext(dj),isPresent:t,safeToRemove:n})}const GW={borderRadius:{...Nl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Nl,borderTopRightRadius:Nl,borderBottomLeftRadius:Nl,borderBottomRightRadius:Nl,boxShadow:UW};function KW(e,t,n){const r=ln(e)?e:ru(e);return r.start(tb("",r,t,n)),r.animation}function qW(e){return e instanceof SVGElement&&e.tagName!=="svg"}const XW=(e,t)=>e.depth-t.depth;class YW{constructor(){this.children=[],this.isDirty=!1}add(t){Uy(this.children,t),this.isDirty=!0}remove(t){Hy(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(XW),this.isDirty=!1,this.children.forEach(t)}}function QW(e,t){const n=qr.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(go(r),e(o-t))};return rt.read(r,!0),()=>go(r)}const wP=["TopLeft","TopRight","BottomLeft","BottomRight"],ZW=wP.length,k4=e=>typeof e=="string"?parseFloat(e):e,C4=e=>typeof e=="number"||he.test(e);function JW(e,t,n,r,i,o){i?(e.opacity=dt(0,n.opacity!==void 0?n.opacity:1,eU(r)),e.opacityExit=dt(t.opacity!==void 0?t.opacity:1,0,tU(r))):o&&(e.opacity=dt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<ZW;a++){const l=`border${wP[a]}Radius`;let c=j4(t,l),u=j4(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||C4(c)===C4(u)?(e[l]=Math.max(dt(k4(c),k4(u),r),0),(Kr.test(u)||Kr.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=dt(t.rotate||0,n.rotate||0,r))}function j4(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const eU=kP(0,.5,Bj),tU=kP(.5,.95,Dn);function kP(e,t,n){return r=>r<e?0:r>t?1:n(Qs(e,t,r))}function P4(e,t){e.min=t.min,e.max=t.max}function Zn(e,t){P4(e.x,t.x),P4(e.y,t.y)}function _4(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function T4(e,t,n,r,i){return e-=t,e=bp(e,1/n,r),i!==void 0&&(e=bp(e,1/i,r)),e}function nU(e,t=0,n=1,r=.5,i,o=e,a=e){if(Kr.test(t)&&(t=parseFloat(t),t=dt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=dt(o.min,o.max,r);e===o&&(l-=t),e.min=T4(e.min,t,n,l,i),e.max=T4(e.max,t,n,l,i)}function E4(e,t,[n,r,i],o,a){nU(e,t[n],t[r],t[i],t.scale,o,a)}const rU=["x","scaleX","originX"],iU=["y","scaleY","originY"];function A4(e,t,n,r){E4(e.x,t,rU,n?n.x:void 0,r?r.x:void 0),E4(e.y,t,iU,n?n.y:void 0,r?r.y:void 0)}function $4(e){return e.translate===0&&e.scale===1}function CP(e){return $4(e.x)&&$4(e.y)}function z4(e,t){return e.min===t.min&&e.max===t.max}function oU(e,t){return z4(e.x,t.x)&&z4(e.y,t.y)}function R4(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function jP(e,t){return R4(e.x,t.x)&&R4(e.y,t.y)}function M4(e){return Bn(e.x)/Bn(e.y)}function I4(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class aU{constructor(){this.members=[]}add(t){Uy(this.members,t),t.scheduleRender()}remove(t){if(Hy(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function sU(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:p,skewX:h,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),h&&(r+=`skewX(${h}deg) `),v&&(r+=`skewY(${v}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const Uo={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Jl=typeof window<"u"&&window.MotionDebug!==void 0,r0=["","X","Y","Z"],lU={visibility:"hidden"},L4=1e3;let cU=0;function i0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function PP(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Mj(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",rt,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&PP(r)}function _P({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},l=t==null?void 0:t()){this.id=cU++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Jl&&(Uo.totalNodes=Uo.resolvedTargetDeltas=Uo.recalculatedProjection=0),this.nodes.forEach(fU),this.nodes.forEach(vU),this.nodes.forEach(yU),this.nodes.forEach(pU),Jl&&window.MotionDebug.record(Uo)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new YW)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Gy),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const c=this.eventHandlers.get(a);c&&c.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=qW(a),this.instance=a;const{layoutId:c,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||c)&&(this.isLayoutDirty=!0),e){let f;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=QW(p,250),jf.hasAnimatedSinceResize&&(jf.hasAnimatedSinceResize=!1,this.nodes.forEach(D4))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||d.getDefaultTransition()||kU,{onLayoutAnimationStart:x,onLayoutAnimationComplete:b}=d.getProps(),g=!this.targetLayout||!jP(this.targetLayout,v)||h,S=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||p&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,S);const w={...Fy(y,"layout"),onPlay:x,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else p||D4(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,go(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(bU),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&PP(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(N4);return}this.isUpdating||this.nodes.forEach(hU),this.isUpdating=!1,this.nodes.forEach(gU),this.nodes.forEach(uU),this.nodes.forEach(dU),this.clearAllSnapshots();const l=qr.now();Ht.delta=ji(0,1e3/60,l-Ht.timestamp),Ht.timestamp=l,Ht.isProcessing=!0,qh.update.process(Ht),qh.preRender.process(Ht),qh.render.process(Ht),Ht.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ay.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(mU),this.sharedNodes.forEach(xU)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,rt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){rt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=xt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!CP(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&(l||Wo(this.latestValues)||d)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return a&&(c=this.removeTransform(c)),CU(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:l}=this.options;if(!l)return xt();const c=l.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(jU))){const{scroll:d}=this.root;d&&(gs(c.x,d.offset.x),gs(c.y,d.offset.y))}return c}removeElementScroll(a){var l;const c=xt();if(Zn(c,a),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return c;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:f,options:p}=d;d!==this.root&&f&&p.layoutScroll&&(f.wasRoot&&Zn(c,a),gs(c.x,f.offset.x),gs(c.y,f.offset.y))}return c}applyTransform(a,l=!1){const c=xt();Zn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&vs(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Wo(d.latestValues)&&vs(c,d.latestValues)}return Wo(this.latestValues)&&vs(c,this.latestValues),c}removeTransform(a){const l=xt();Zn(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!Wo(u.latestValues))continue;ov(u.latestValues)&&u.updateSnapshot();const d=xt(),f=u.measurePageBox();Zn(d,f),A4(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Wo(this.latestValues)&&A4(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ht.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(a||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:p}=this.options;if(!(!this.layout||!(f||p))){if(this.resolvedRelativeTargetAt=Ht.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xt(),this.relativeTargetOrigin=xt(),jc(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),Zn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=xt(),this.targetWithTransforms=xt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),TW(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Zn(this.target,this.layout.layoutBox),yP(this.target,this.targetDelta)):Zn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xt(),this.relativeTargetOrigin=xt(),jc(this.relativeTargetOrigin,this.target,h.target),Zn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Jl&&Uo.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||ov(this.parent.latestValues)||vP(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Ht.timestamp&&(u=!1),u)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;Zn(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,h=this.treeScale.y;NW(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=xt());const{target:v}=l;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(_4(this.prevProjectionDelta.x,this.projectionDelta.x),_4(this.prevProjectionDelta.y,this.projectionDelta.y)),Cc(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==h||!I4(this.projectionDelta.x,this.prevProjectionDelta.x)||!I4(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),Jl&&Uo.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=hs(),this.projectionDelta=hs(),this.projectionDeltaWithTransform=hs()}setAnimationOrigin(a,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=hs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const p=xt(),h=c?c.source:void 0,v=this.layout?this.layout.source:void 0,y=h!==v,x=this.getStack(),b=!x||x.members.length<=1,g=!!(y&&!b&&this.options.crossfade===!0&&!this.path.some(wU));this.animationProgress=0;let S;this.mixTargetDelta=w=>{const k=w/1e3;O4(f.x,a.x,k),O4(f.y,a.y,k),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jc(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),SU(this.relativeTarget,this.relativeTargetOrigin,p,k),S&&oU(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=xt()),Zn(S,this.relativeTarget)),y&&(this.animationValues=d,JW(d,u,this.latestValues,k,g,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(go(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rt.update(()=>{jf.hasAnimatedSinceResize=!0,this.currentAnimation=KW(0,L4,{...a,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(L4),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=a;if(!(!l||!c||!u)){if(this!==a&&this.layout&&u&&TP(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||xt();const f=Bn(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const p=Bn(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+p}Zn(l,c),vs(l,d),Cc(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new aU),this.sharedNodes.get(a).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:l}=this.options;return l?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:l}=this.options;return l?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&i0("z",a,u,this.animationValues);for(let d=0;d<r0.length;d++)i0(`rotate${r0[d]}`,a,u,this.animationValues),i0(`skew${r0[d]}`,a,u,this.animationValues);a.render();for(const d in u)a.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);a.scheduleRender()}getProjectionStyles(a){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return lU;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=kf(a==null?void 0:a.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=kf(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Wo(this.latestValues)&&(y.transform=d?d({},""):"none",this.hasProjected=!1),y}const p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=sU(this.projectionDeltaWithTransform,this.treeScale,p),d&&(u.transform=d(p,u.transform));const{x:h,y:v}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${v.origin*100}% 0`,f.animationValues?u.opacity=f===this?(c=(l=p.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:u.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const y in mp){if(p[y]===void 0)continue;const{correct:x,applyTo:b}=mp[y],g=u.transform==="none"?p[y]:x(p[y],f);if(b){const S=b.length;for(let w=0;w<S;w++)u[b[w]]=g}else u[y]=g}return this.options.layoutId&&(u.pointerEvents=f===this?kf(a==null?void 0:a.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var l;return(l=a.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(N4),this.root.sharedNodes.clear()}}}function uU(e){e.updateLayout()}function dU(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?er(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=Bn(p);p.min=r[f].min,p.max=p.min+h}):TP(o,n.layoutBox,r)&&er(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=Bn(r[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const l=hs();Cc(l,r,n.layoutBox);const c=hs();a?Cc(c,e.applyTransform(i,!0),n.measuredBox):Cc(c,r,n.layoutBox);const u=!CP(l);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const v=xt();jc(v,n.layoutBox,p.layoutBox);const y=xt();jc(y,r,h.layoutBox),jP(v,y)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=v,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function fU(e){Jl&&Uo.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function pU(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mU(e){e.clearSnapshot()}function N4(e){e.clearMeasurements()}function hU(e){e.isLayoutDirty=!1}function gU(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function D4(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vU(e){e.resolveTargetDelta()}function yU(e){e.calcProjection()}function bU(e){e.resetSkewAndRotation()}function xU(e){e.removeLeadSnapshot()}function O4(e,t,n){e.translate=dt(t.translate,0,n),e.scale=dt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function F4(e,t,n,r){e.min=dt(t.min,n.min,r),e.max=dt(t.max,n.max,r)}function SU(e,t,n,r){F4(e.x,t.x,n.x,r),F4(e.y,t.y,n.y,r)}function wU(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const kU={duration:.45,ease:[.4,0,.1,1]},B4=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),V4=B4("applewebkit/")&&!B4("chrome/")?Math.round:Dn;function W4(e){e.min=V4(e.min),e.max=V4(e.max)}function CU(e){W4(e.x),W4(e.y)}function TP(e,t,n){return e==="position"||e==="preserve-aspect"&&!_W(M4(t),M4(n),.2)}function jU(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const PU=_P({attachResizeListener:(e,t)=>ou(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),o0={current:void 0},EP=_P({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!o0.current){const e=new PU({});e.mount(window),e.setOptions({layoutScroll:!0}),o0.current=e}return o0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),_U={pan:{Feature:WW},drag:{Feature:VW,ProjectionNode:EP,MeasureLayout:SP}};function U4(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&rt.postRender(()=>o(t,Ru(t)))}class TU extends Po{mount(){const{current:t}=this.node;t&&(this.unmount=_B(t,n=>(U4(this.node,n,"Start"),r=>U4(this.node,r,"End"))))}unmount(){}}class EU extends Po{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=zu(ou(this.node.current,"focus",()=>this.onFocus()),ou(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function H4(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&rt.postRender(()=>o(t,Ru(t)))}class AU extends Po{mount(){const{current:t}=this.node;t&&(this.unmount=$B(t,n=>(H4(this.node,n,"Start"),(r,{success:i})=>H4(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const sv=new WeakMap,a0=new WeakMap,$U=e=>{const t=sv.get(e.target);t&&t(e)},zU=e=>{e.forEach($U)};function RU({root:e,...t}){const n=e||document;a0.has(n)||a0.set(n,{});const r=a0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(zU,{root:e,...t})),r[i]}function MU(e,t,n){const r=RU(t);return sv.set(e,n),r.observe(e),()=>{sv.delete(e),r.unobserve(e)}}const IU={some:0,all:1};class LU extends Po{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:IU[i]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=u?d:f;p&&p(c)};return MU(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(NU(t,n))&&this.startObserver()}unmount(){}}function NU({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const DU={inView:{Feature:LU},tap:{Feature:AU},focus:{Feature:EU},hover:{Feature:TU}},OU={layout:{ProjectionNode:EP,MeasureLayout:SP}},lv={current:null},AP={current:!1};function FU(){if(AP.current=!0,!!jy)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>lv.current=e.matches;e.addListener(t),t()}else lv.current=!1}const BU=[...tP,on,vo],VU=e=>BU.find(eP(e)),G4=new WeakMap;function WU(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ln(i))e.addValue(r,i);else if(ln(o))e.addValue(r,ru(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,ru(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const K4=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class UU{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Zy,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 h=qr.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,rt.render(this.render,!1,!0))};const{latestValues:c,renderState:u,onUpdate:d}=a;this.onUpdate=d,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=hm(n),this.isVariantNode=cj(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in p){const v=p[h];c[h]!==void 0&&ln(v)&&v.set(c[h],!1)}}mount(t){this.current=t,G4.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),AP.current||FU(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:lv.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){G4.delete(this.current),this.projection&&this.projection.unmount(),go(this.notifyUpdate),go(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=za.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&rt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),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 Zs){const n=Zs[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):xt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<K4.length;r++){const i=K4[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=WU(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ru(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Zj(i)||Wj(i))?i=parseFloat(i):!VU(i)&&vo.test(n)&&(i=Xj(t,n)),this.setBaseTarget(t,ln(i)?i.get():i)),ln(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=zy(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ln(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Gy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class $P extends UU{constructor(){super(...arguments),this.KeyframeResolver=nP}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ln(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function HU(e){return window.getComputedStyle(e)}class GU extends $P{constructor(){super(...arguments),this.type="html",this.renderInstance=yj}readValueFromInstance(t,n){if(za.has(n)){const r=Qy(n);return r&&r.default||0}else{const r=HU(t),i=(hj(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return bP(t,n)}build(t,n,r){Iy(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Oy(t,n,r)}}class KU extends $P{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=xt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(za.has(n)){const r=Qy(n);return r&&r.default||0}return n=bj.has(n)?n:Ey(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return wj(t,n,r)}build(t,n,r){Ly(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){xj(t,n,r,i)}mount(t){this.isSVGTag=Dy(t.tagName),super.mount(t)}}const qU=(e,t)=>$y(e)?new KU(t):new GU(t,{allowProjection:e!==m.Fragment}),XU=xB({...yW,...DU,..._U,...OU},qU),qn=IF(XU),YU=(e,t)=>e.find(n=>n.id===t);function q4(e,t){const n=zP(e,t),r=n?e[n].findIndex(i=>i.id===t):-1;return{position:n,index:r}}function zP(e,t){for(const[n,r]of Object.entries(e))if(YU(r,t))return n}function QU(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function ZU(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,o=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",a=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:i,right:o,left:a}}var JU=/^((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)-.*))$/,eH=W6(function(e){return JU.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),tH=eH,nH=function(t){return t!=="theme"},X4=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?tH:nH},Y4=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},rH=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return my(n,r,i),Z6(function(){return hy(n,r,i)}),null},iH=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var l=Y4(t,n,r),c=l||X4(i),u=!c("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{var p=d[0];f.push(p[0]);for(var h=d.length,v=1;v<h;v++)f.push(d[v],p[v])}var y=vy(function(x,b,g){var S=u&&x.as||i,w="",k=[],P=x;if(x.theme==null){P={};for(var j in x)P[j]=x[j];P.theme=m.useContext(Ys)}typeof x.className=="string"?w=X6(b.registered,k,x.className):x.className!=null&&(w=x.className+" ");var _=dm(f.concat(k),b.registered,P);w+=b.key+"-"+_.name,a!==void 0&&(w+=" "+a);var M=u&&l===void 0?X4(S):c,T={};for(var O in x)u&&O==="as"||M(O)&&(T[O]=x[O]);return T.className=w,g&&(T.ref=g),m.createElement(m.Fragment,null,m.createElement(rH,{cache:b,serialized:_,isStringTag:typeof S=="string"}),m.createElement(S,T))});return y.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=i,y.__emotion_styles=f,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:function(){return"."+a}}),y.withComponent=function(x,b){var g=e(x,Sa({},n,b,{shouldForwardProp:Y4(y,b,!0)}));return g.apply(void 0,f)},y}},oH=["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"],cv=iH.bind(null);oH.forEach(function(e){cv[e]=cv(e)});const aH=new Set([...Iz,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),sH=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function lH(e){return(sH.has(e)||!aH.has(e))&&e[0]!=="_"}const cH=F$(cv),uH=({baseStyle:e})=>t=>{const{theme:n,css:r,__css:i,sx:o,...a}=t,[l]=H$(a,Nz),c=sn(e,t),u=j$({},i,c,Y1(l),o),d=d6(u)(t.theme);return r?[d,r]:d};function s0(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=lH);const i=uH({baseStyle:n}),o=cH(e,r)(i);return m.forwardRef(function(c,u){const{children:d,...f}=c,{colorMode:p,forced:h}=Tu(),v=h?p:void 0;return m.createElement(o,{ref:u,"data-theme":v,...f},d)})}function dH(){const e=new Map;return new Proxy(s0,{apply(t,n,r){return s0(...r)},get(t,n){return e.has(n)||e.set(n,s0(n)),e.get(n)}})}const N=dH(),fH={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*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]}}},RP=m.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:o=!1,position:a="bottom",duration:l=5e3,containerStyle:c,motionVariants:u=fH,toastSpacing:d="0.5rem"}=e,[f,p]=m.useState(l),h=PF();lp(()=>{h||r==null||r()},[h]),lp(()=>{p(l)},[l]);const v=()=>p(null),y=()=>p(l),x=()=>{h&&i()};m.useEffect(()=>{h&&o&&i()},[h,o,i]),tz(x,f);const b=m.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...c}),[c,d]),g=m.useMemo(()=>QU(a),[a]);return s.jsx(qn.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:v,onHoverEnd:y,custom:{position:a},style:g,children:s.jsx(N.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:b,children:sn(n,{id:t,onClose:x})})})});RP.displayName="ToastComponent";function B(e){return m.forwardRef(e)}var pH=typeof Element<"u",mH=typeof Map=="function",hH=typeof Set=="function",gH=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Pf(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Pf(e[r],t[r]))return!1;return!0}var o;if(mH&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Pf(r.value[1],t.get(r.value[0])))return!1;return!0}if(hH&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(gH&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(pH&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Pf(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var vH=function(t,n){try{return Pf(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const yH=Zv(vH);function $i(){const e=m.useContext(Ys);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function MP(){const e=Tu(),t=$i();return{...e,theme:t}}function bH(e,t,n){if(t==null)return t;const r=i=>{var o,a;return(a=(o=e.__cssMap)==null?void 0:o[i])==null?void 0:a.value};return r(t)??r(n)??n}function xH(e,t,n){const r=Array.isArray(t)?t:[t],i=Array.isArray(n)?n:[n];return o=>{const a=i.filter(Boolean),l=r.map((c,u)=>{const d=`${e}.${c}`;return bH(o,d,a[u]??c)});return Array.isArray(t)?l:l[0]}}function SH(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0&&t!=="children"&&!m.isValidElement(n)))}function IP(e,t={}){const{styleConfig:n,...r}=t,{theme:i,colorMode:o}=MP(),a=e?JC(i,`components.${e}`):void 0,l=n||a,c=ir({theme:i,colorMode:o},(l==null?void 0:l.defaultProps)??{},SH(r),(d,f)=>d?void 0:f),u=m.useRef({});if(l){const f=qz(l)(c);yH(u.current,f)||(u.current=f)}return u.current}function Xn(e,t={}){return IP(e,t)}function Xe(e,t={}){return IP(e,t)}const Q4={path:s.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[s.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"}),s.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"}),s.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Tt=B((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:o=!1,children:a,className:l,__css:c,...u}=e,d=W("chakra-icon",l),f=Xn("Icon",e),p={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...c,...f},h={ref:t,focusable:o,className:d,__css:p},v=r??Q4.viewBox;if(n&&typeof n!="string")return s.jsx(N.svg,{as:n,...h,...u});const y=a??Q4.path;return s.jsx(N.svg,{verticalAlign:"middle",viewBox:v,...h,...u,children:y})});Tt.displayName="Icon";function wH(e){return s.jsx(Tt,{viewBox:"0 0 24 24",...e,children:s.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 kH(e){return s.jsx(Tt,{viewBox:"0 0 24 24",...e,children:s.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 Z4(e){return s.jsx(Tt,{viewBox:"0 0 24 24",...e,children:s.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 CH=_u({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Vn=B((e,t)=>{const n=Xn("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:l,...c}=Ae(e),u=W("chakra-spinner",l),d={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${CH} ${o} linear infinite`,...n};return s.jsx(N.div,{ref:t,__css:d,className:u,...c,children:r&&s.jsx(N.span,{srOnly:!0,children:r})})});Vn.displayName="Spinner";const[jH,nb]=Ce({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[PH,rb]=Ce({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),LP={info:{icon:kH,colorScheme:"blue"},warning:{icon:Z4,colorScheme:"orange"},success:{icon:wH,colorScheme:"green"},error:{icon:Z4,colorScheme:"red"},loading:{icon:Vn,colorScheme:"blue"}};function _H(e){return LP[e].colorScheme}function TH(e){return LP[e].icon}const NP=B(function(t,n){const{status:r="info",addRole:i=!0,...o}=Ae(t),a=t.colorScheme??_H(r),l=Xe("Alert",{...t,colorScheme:a}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return s.jsx(jH,{value:{status:r},children:s.jsx(PH,{value:l,children:s.jsx(N.div,{"data-status":r,role:i?"alert":void 0,ref:n,...o,className:W("chakra-alert",t.className),__css:c})})})});NP.displayName="Alert";function DP(e){const{status:t}=nb(),n=TH(t),r=rb(),i=t==="loading"?r.spinner:r.icon;return s.jsx(N.span,{display:"inherit","data-status":t,...e,className:W("chakra-alert__icon",e.className),__css:i,children:e.children||s.jsx(n,{h:"100%",w:"100%"})})}DP.displayName="AlertIcon";const OP=B(function(t,n){const r=rb(),{status:i}=nb();return s.jsx(N.div,{ref:n,"data-status":i,...t,className:W("chakra-alert__title",t.className),__css:r.title})});OP.displayName="AlertTitle";const FP=B(function(t,n){const{status:r}=nb(),i=rb(),o={display:"inline",...i.description};return s.jsx(N.div,{ref:n,"data-status":r,...t,className:W("chakra-alert__desc",t.className),__css:o})});FP.displayName="AlertDescription";function EH(e){return s.jsx(Tt,{focusable:"false","aria-hidden":!0,...e,children:s.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 ym=B(function(t,n){const r=Xn("CloseButton",t),{children:i,isDisabled:o,__css:a,...l}=Ae(t),c={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return s.jsx(N.button,{type:"button","aria-label":"Close",ref:n,disabled:o,__css:{...c,...r,...a},...l,children:i||s.jsx(EH,{width:"1em",height:"1em"})})});ym.displayName="CloseButton";const AH=e=>{const{status:t,variant:n="solid",id:r,title:i,isClosable:o,onClose:a,description:l,colorScheme:c,icon:u}=e,d=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return s.jsxs(NP,{addRole:!1,status:t,variant:n,id:d==null?void 0:d.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:c,children:[s.jsx(DP,{children:u}),s.jsxs(N.div,{flex:"1",maxWidth:"100%",children:[i&&s.jsx(OP,{id:d==null?void 0:d.title,children:i}),l&&s.jsx(FP,{id:d==null?void 0:d.description,display:"block",children:l})]}),o&&s.jsx(ym,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function BP(e={}){const{render:t,toastComponent:n=AH}=e;return i=>typeof t=="function"?t({...i,...e}):s.jsx(n,{...i,...e})}const $H={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Fr=zH($H);function zH(e){let t=e;const n=new Set,r=i=>{t=i(t),n.forEach(o=>o())};return{getState:()=>t,subscribe:i=>(n.add(i),()=>{r(()=>e),n.delete(i)}),removeToast:(i,o)=>{r(a=>({...a,[o]:a[o].filter(l=>l.id!=i)}))},notify:(i,o)=>{const a=RH(i,o),{position:l,id:c}=a;return r(u=>{const f=l.includes("top")?[a,...u[l]??[]]:[...u[l]??[],a];return{...u,[l]:f}}),c},update:(i,o)=>{i&&r(a=>{const l={...a},{position:c,index:u}=q4(l,i);return c&&u!==-1&&(l[c][u]={...l[c][u],...o,message:BP(o)}),l})},closeAll:({positions:i}={})=>{r(o=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((c,u)=>(c[u]=o[u].map(d=>({...d,requestClose:!0})),c),{...o}))},close:i=>{r(o=>{const a=zP(o,i);return a?{...o,[a]:o[a].map(l=>l.id==i?{...l,requestClose:!0}:l)}:o})},isActive:i=>!!q4(Fr.getState(),i).position}}let J4=0;function RH(e,t={}){J4+=1;const n=t.id??J4,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Fr.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[VP,MH]=Ce({strict:!1,name:"PortalContext"}),ib="chakra-portal",IH=".chakra-portal",LH=e=>s.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),NH=e=>{const{appendToParentPortal:t,children:n}=e,[r,i]=m.useState(null),o=m.useRef(null),[,a]=m.useState({});m.useEffect(()=>a({}),[]);const l=MH(),c=bF();gi(()=>{if(!r)return;const d=r.ownerDocument,f=t?l??d.body:d.body;if(!f)return;o.current=d.createElement("div"),o.current.className=ib,f.appendChild(o.current),a({});const p=o.current;return()=>{f.contains(p)&&f.removeChild(p)}},[r]);const u=c!=null&&c.zIndex?s.jsx(LH,{zIndex:c==null?void 0:c.zIndex,children:n}):n;return o.current?K1.createPortal(s.jsx(VP,{value:o.current,children:u}),o.current):s.jsx("span",{ref:d=>{d&&i(d)}})},DH=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,i=n.current,o=i??(typeof window<"u"?document.body:void 0),a=m.useMemo(()=>{const c=i==null?void 0:i.ownerDocument.createElement("div");return c&&(c.className=ib),c},[i]),[,l]=m.useState({});return gi(()=>l({}),[]),gi(()=>{if(!(!a||!o))return o.appendChild(a),()=>{o.removeChild(a)}},[a,o]),o&&a?K1.createPortal(s.jsx(VP,{value:r?a:null,children:t}),a):null};function hl(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?s.jsx(DH,{containerRef:n,...r}):s.jsx(NH,{...r})}hl.className=ib;hl.selector=IH;hl.displayName="Portal";const[OH,FH]=Ce({name:"ToastOptionsContext",strict:!1}),BH=e=>{const t=m.useSyncExternalStore(Fr.subscribe,Fr.getState,Fr.getState),{motionVariants:n,component:r=RP,portalProps:i,animatePresenceProps:o}=e,l=Object.keys(t).map(c=>{const u=t[c];return s.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${c}`,"aria-hidden":!u.length,id:`chakra-toast-manager-${c}`,style:ZU(c),children:s.jsx(Ai,{...o,initial:!1,children:u.map(d=>s.jsx(r,{motionVariants:n,...d},d.id))})},c)});return s.jsx(hl,{...i,children:l})},VH=e=>function({children:n,theme:r=e,toastOptions:i,...o}){return s.jsxs(SF,{theme:r,...o,children:[s.jsx(OH,{value:i==null?void 0:i.defaultOptions,children:n}),s.jsx(BH,{...i})]})},WH=VH(Zo);function ew(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}const UH=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function tw(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function nw(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}const l0=typeof window<"u"?m.useLayoutEffect:m.useEffect,rw=e=>e;var HH=Object.defineProperty,GH=(e,t,n)=>t in e?HH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ht=(e,t,n)=>(GH(e,typeof t!="symbol"?t+"":t,n),n);class KH{constructor(){ht(this,"descendants",new Map),ht(this,"register",t=>{if(t!=null)return UH(t)?this.registerNode(t):n=>{this.registerNode(n,t)}}),ht(this,"unregister",t=>{this.descendants.delete(t);const n=ew(Array.from(this.descendants.keys()));this.assignIndex(n)}),ht(this,"destroy",()=>{this.descendants.clear()}),ht(this,"assignIndex",t=>{this.descendants.forEach(n=>{const r=t.indexOf(n.node);n.index=r,n.node.dataset.index=n.index.toString()})}),ht(this,"count",()=>this.descendants.size),ht(this,"enabledCount",()=>this.enabledValues().length),ht(this,"values",()=>Array.from(this.descendants.values()).sort((n,r)=>n.index-r.index)),ht(this,"enabledValues",()=>this.values().filter(t=>!t.disabled)),ht(this,"item",t=>{if(this.count()!==0)return this.values()[t]}),ht(this,"enabledItem",t=>{if(this.enabledCount()!==0)return this.enabledValues()[t]}),ht(this,"first",()=>this.item(0)),ht(this,"firstEnabled",()=>this.enabledItem(0)),ht(this,"last",()=>this.item(this.descendants.size-1)),ht(this,"lastEnabled",()=>{const t=this.enabledValues().length-1;return this.enabledItem(t)}),ht(this,"indexOf",t=>{var n;return t?((n=this.descendants.get(t))==null?void 0:n.index)??-1:-1}),ht(this,"enabledIndexOf",t=>t==null?-1:this.enabledValues().findIndex(n=>n.node.isSameNode(t))),ht(this,"next",(t,n=!0)=>{const r=tw(t,this.count(),n);return this.item(r)}),ht(this,"nextEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const i=this.enabledIndexOf(r.node),o=tw(i,this.enabledCount(),n);return this.enabledItem(o)}),ht(this,"prev",(t,n=!0)=>{const r=nw(t,this.count()-1,n);return this.item(r)}),ht(this,"prevEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const i=this.enabledIndexOf(r.node),o=nw(i,this.enabledCount()-1,n);return this.enabledItem(o)}),ht(this,"registerNode",(t,n)=>{if(!t||this.descendants.has(t))return;const r=Array.from(this.descendants.keys()).concat(t),i=ew(r);n!=null&&n.disabled&&(n.disabled=!!n.disabled);const o={node:t,index:-1,...n};this.descendants.set(t,o),this.assignIndex(i)})}}function qH(){const[e,t]=Ce({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[e,t,()=>{const i=m.useRef(new KH);return l0(()=>()=>i.current.destroy()),i.current},i=>{const o=t(),[a,l]=m.useState(-1),c=m.useRef(null);l0(()=>()=>{c.current&&o.unregister(c.current)},[]),l0(()=>{if(!c.current)return;const d=Number(c.current.dataset.index);a!=d&&!Number.isNaN(d)&&l(d)});const u=rw(i?o.register(i):o.register);return{descendants:o,index:a,enabledIndex:o.enabledIndexOf(c.current),register:zt(u,c)}}]}const fi={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Dl={slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function uv(e){switch((e==null?void 0:e.direction)??"right"){case"right":return Dl.slideRight;case"left":return Dl.slideLeft;case"bottom":return Dl.slideDown;case"top":return Dl.slideUp;default:return Dl.slideRight}}const ca={enter:{duration:.2,ease:fi.easeOut},exit:{duration:.1,ease:fi.easeIn}},jr={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})},XH=e=>e!=null&&parseInt(e.toString(),10)>0,iw={exit:{height:{duration:.2,ease:fi.ease},opacity:{duration:.3,ease:fi.ease}},enter:{height:{duration:.3,ease:fi.ease},opacity:{duration:.4,ease:fi.ease}}},YH={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:i})=>({...e&&{opacity:XH(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(n==null?void 0:n.exit)??jr.exit(iw.exit,i)}),enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:i})=>({...e&&{opacity:1},height:t,transitionEnd:r==null?void 0:r.enter,transition:(n==null?void 0:n.enter)??jr.enter(iw.enter,i)})},Mu=m.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:i=!0,startingHeight:o=0,endingHeight:a="auto",style:l,className:c,transition:u,transitionEnd:d,animatePresenceProps:f,...p}=e,[h,v]=m.useState(!1);m.useEffect(()=>{const S=setTimeout(()=>{v(!0)});return()=>clearTimeout(S)},[]);const y=parseFloat(o.toString())>0,x={startingHeight:o,endingHeight:a,animateOpacity:i,transition:h?u:{enter:{duration:0}},transitionEnd:{enter:d==null?void 0:d.enter,exit:r?d==null?void 0:d.exit:{...d==null?void 0:d.exit,display:y?"block":"none"}}},b=r?n:!0,g=n||r?"enter":"exit";return s.jsx(Ai,{...f,initial:!1,custom:x,children:b&&s.jsx(qn.div,{ref:t,...p,className:W("chakra-collapse",c),style:{overflow:"hidden",display:"block",...l},custom:x,variants:YH,initial:r?"exit":!1,animate:g,exit:"exit"})})});Mu.displayName="Collapse";const[QH,WP]=Ce({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:"<Avatar/>"});function ZH(e){const t=e.trim().split(" "),n=t[0]??"",r=t.length>1?t[t.length-1]:"";return n&&r?`${n.charAt(0)}${r.charAt(0)}`:n.charAt(0)}function UP(e){const{name:t,getInitials:n,...r}=e,i=WP();return s.jsx(N.div,{role:"img","aria-label":t,...r,__css:i.label,children:t?n==null?void 0:n(t):null})}UP.displayName="AvatarName";const HP=e=>s.jsxs(N.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...e,children:[s.jsx("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),s.jsx("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]});function JH(e){const{loading:t,src:n,srcSet:r,onLoad:i,onError:o,crossOrigin:a,sizes:l,ignoreFallback:c}=e,[u,d]=m.useState("pending");m.useEffect(()=>{d(n?"loading":"pending")},[n]);const f=m.useRef(null),p=m.useCallback(()=>{if(!n)return;h();const v=new Image;v.src=n,a&&(v.crossOrigin=a),r&&(v.srcset=r),l&&(v.sizes=l),t&&(v.loading=t),v.onload=y=>{h(),d("loaded"),i==null||i(y)},v.onerror=y=>{h(),d("failed"),o==null||o(y)},f.current=v},[n,a,r,l,i,o,t]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return gi(()=>{if(!c)return u==="loading"&&p(),()=>{h()}},[u,p,c]),c?"loaded":u}function GP(e){const{src:t,srcSet:n,onError:r,onLoad:i,getInitials:o,name:a,borderRadius:l,loading:c,iconLabel:u,icon:d=s.jsx(HP,{}),ignoreFallback:f,referrerPolicy:p,crossOrigin:h}=e,y=JH({src:t,onError:r,crossOrigin:h,ignoreFallback:f})==="loaded";return!t||!y?a?s.jsx(UP,{className:"chakra-avatar__initials",getInitials:o,name:a}):m.cloneElement(d,{role:"img","aria-label":u}):s.jsx(N.img,{src:t,srcSet:n,alt:a??u,onLoad:i,referrerPolicy:p,crossOrigin:h??void 0,className:"chakra-avatar__img",loading:c,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:l}})}GP.displayName="AvatarImage";const eG={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},ob=B((e,t)=>{const n=Xe("Avatar",e),[r,i]=m.useState(!1),{src:o,srcSet:a,name:l,showBorder:c,borderRadius:u="full",onError:d,onLoad:f,getInitials:p=ZH,icon:h=s.jsx(HP,{}),iconLabel:v=" avatar",loading:y,children:x,borderColor:b,ignoreFallback:g,crossOrigin:S,referrerPolicy:w,...k}=Ae(e),P={borderRadius:u,borderWidth:c?"2px":void 0,...eG,...n.container};return b&&(P.borderColor=b),s.jsx(N.span,{ref:t,...k,className:W("chakra-avatar",e.className),"data-loaded":le(r),__css:P,children:s.jsxs(QH,{value:n,children:[s.jsx(GP,{src:o,srcSet:a,loading:y,onLoad:fe(f,()=>{i(!0)}),onError:d,getInitials:p,name:l,borderRadius:u,icon:h,iconLabel:v,ignoreFallback:g,crossOrigin:S,referrerPolicy:w}),x]})})});ob.displayName="Avatar";const tG={"top-start":{top:"0",insetStart:"0",transform:"translate(-25%, -25%)"},"top-end":{top:"0",insetEnd:"0",transform:"translate(25%, -25%)"},"bottom-start":{bottom:"0",insetStart:"0",transform:"translate(-25%, 25%)"},"bottom-end":{bottom:"0",insetEnd:"0",transform:"translate(25%, 25%)"}},KP=B(function(t,n){const{placement:r="bottom-end",className:i,...o}=t,a=WP(),c={position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",...tG[r],...a.badge};return s.jsx(N.div,{ref:n,...o,className:W("chakra-avatar__badge",i),__css:c})});KP.displayName="AvatarBadge";const Wn=B(function(t,n){const r=Xn("Badge",t),{className:i,...o}=Ae(t);return s.jsx(N.span,{ref:n,className:W("chakra-badge",t.className),...o,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});Wn.displayName="Badge";const se=N("div");se.displayName="Box";const[nG,rG]=Ce({strict:!1,name:"ButtonGroupContext"});function ec(e){const{children:t,className:n,...r}=e,i=m.isValidElement(t)?m.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=W("chakra-button__icon",n);return s.jsx(N.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:o,children:i})}ec.displayName="ButtonIcon";function dv(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=s.jsx(Vn,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:a,...l}=e,c=W("chakra-button__spinner",o),u=n==="start"?"marginEnd":"marginStart",d=m.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,u,r]);return s.jsx(N.div,{className:c,...l,__css:d,children:i})}dv.displayName="ButtonSpinner";function iG(e){const[t,n]=m.useState(!e);return{ref:m.useCallback(o=>{o&&n(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}const ve=B((e,t)=>{const n=rG(),r=Xn("Button",{...n,...e}),{isDisabled:i=n==null?void 0:n.isDisabled,isLoading:o,isActive:a,children:l,leftIcon:c,rightIcon:u,loadingText:d,iconSpacing:f="0.5rem",type:p,spinner:h,spinnerPlacement:v="start",className:y,as:x,shouldWrapChildren:b,...g}=Ae(e),S=m.useMemo(()=>{const j={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:j}}},[r,n]),{ref:w,type:k}=iG(x),P={rightIcon:u,leftIcon:c,iconSpacing:f,children:l,shouldWrapChildren:b};return s.jsxs(N.button,{disabled:i||o,ref:J1(t,w),as:x,type:p??k,"data-active":le(a),"data-loading":le(o),__css:S,className:W("chakra-button",y),...g,children:[o&&v==="start"&&s.jsx(dv,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:f,children:h}),o?d||s.jsx(N.span,{opacity:0,children:s.jsx(ow,{...P})}):s.jsx(ow,{...P}),o&&v==="end"&&s.jsx(dv,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:f,children:h})]})});ve.displayName="Button";function ow(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:i,shouldWrapChildren:o}=e;return o?s.jsxs("span",{style:{display:"contents"},children:[t&&s.jsx(ec,{marginEnd:i,children:t}),r,n&&s.jsx(ec,{marginStart:i,children:n})]}):s.jsxs(s.Fragment,{children:[t&&s.jsx(ec,{marginEnd:i,children:t}),r,n&&s.jsx(ec,{marginStart:i,children:n})]})}const oG={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},aG={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},ab=B(function(t,n){const{size:r,colorScheme:i,variant:o,className:a,spacing:l="0.5rem",isAttached:c,isDisabled:u,orientation:d="horizontal",...f}=t,p=W("chakra-button__group",a),h=m.useMemo(()=>({size:r,colorScheme:i,variant:o,isDisabled:u}),[r,i,o,u]);let v={display:"inline-flex",...c?oG[d]:aG[d](l)};const y=d==="vertical";return s.jsx(nG,{value:h,children:s.jsx(N.div,{ref:n,role:"group",__css:v,className:p,"data-attached":c?"":void 0,"data-orientation":d,flexDir:y?"column":void 0,...f})})});ab.displayName="ButtonGroup";const On=B((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":o,...a}=e,l=n||r,c=m.isValidElement(l)?m.cloneElement(l,{"aria-hidden":!0,focusable:!1}):null;return s.jsx(ve,{px:"0",py:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o,...a,children:c})});On.displayName="IconButton";const[sG,lG]=Tr("Card"),sb=B(function(t,n){const{className:r,children:i,direction:o="column",justify:a,align:l,...c}=Ae(t),u=Xe("Card",t);return s.jsx(N.div,{ref:n,className:W("chakra-card",r),__css:{display:"flex",flexDirection:o,justifyContent:a,alignItems:l,position:"relative",minWidth:0,wordWrap:"break-word",...u.container},...c,children:s.jsx(sG,{value:u,children:i})})}),lb=B(function(t,n){const{className:r,...i}=t,o=lG();return s.jsx(N.div,{ref:n,className:W("chakra-card__body",r),__css:o.body,...i})}),qP=N("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});qP.displayName="Center";const cG={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};B(function(t,n){const{axis:r="both",...i}=t;return s.jsx(N.div,{ref:n,__css:cG[r],...i,position:"absolute"})});var uG=()=>typeof document<"u",aw=!1,Iu=null,wa=!1,fv=!1,pv=new Set;function cb(e,t){pv.forEach(n=>n(e,t))}var dG=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function fG(e){return!(e.metaKey||!dG&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function sw(e){wa=!0,fG(e)&&(Iu="keyboard",cb("keyboard",e))}function Fa(e){if(Iu="pointer",e.type==="mousedown"||e.type==="pointerdown"){wa=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;cb("pointer",e)}}function pG(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function mG(e){pG(e)&&(wa=!0,Iu="virtual")}function hG(e){e.target===window||e.target===document||e.target instanceof Element&&e.target.hasAttribute("tabindex")||(!wa&&!fv&&(Iu="virtual",cb("virtual",e)),wa=!1,fv=!1)}function gG(){wa=!1,fv=!0}function lw(){return Iu!=="pointer"}function vG(){if(!uG()||aw)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){wa=!0,e.apply(this,n)},document.addEventListener("keydown",sw,!0),document.addEventListener("keyup",sw,!0),document.addEventListener("click",mG,!0),window.addEventListener("focus",hG,!0),window.addEventListener("blur",gG,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Fa,!0),document.addEventListener("pointermove",Fa,!0),document.addEventListener("pointerup",Fa,!0)):(document.addEventListener("mousedown",Fa,!0),document.addEventListener("mousemove",Fa,!0),document.addEventListener("mouseup",Fa,!0)),aw=!0}function XP(e){vG(),e(lw());const t=()=>e(lw());return pv.add(t),()=>{pv.delete(t)}}const[yG,YP]=Ce({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[bG,Lu]=Ce({strict:!1,name:"FormControlContext"});function xG(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:i,isReadOnly:o,...a}=e,l=m.useId(),c=t||`field-${l}`,u=`${c}-label`,d=`${c}-feedback`,f=`${c}-helptext`,[p,h]=m.useState(!1),[v,y]=m.useState(!1),[x,b]=m.useState(!1),g=m.useCallback((j={},_=null)=>({id:f,...j,ref:zt(_,M=>{M&&y(!0)})}),[f]),S=m.useCallback((j={},_=null)=>({...j,ref:_,"data-focus":le(x),"data-disabled":le(i),"data-invalid":le(r),"data-readonly":le(o),id:j.id!==void 0?j.id:u,htmlFor:j.htmlFor!==void 0?j.htmlFor:c}),[c,i,x,r,o,u]),w=m.useCallback((j={},_=null)=>({id:d,...j,ref:zt(_,M=>{M&&h(!0)}),"aria-live":"polite"}),[d]),k=m.useCallback((j={},_=null)=>({...j,...a,ref:_,role:"group","data-focus":le(x),"data-disabled":le(i),"data-invalid":le(r),"data-readonly":le(o)}),[a,i,x,r,o]),P=m.useCallback((j={},_=null)=>({...j,ref:_,role:"presentation","aria-hidden":!0,children:j.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!o,isDisabled:!!i,isFocused:!!x,onFocus:()=>b(!0),onBlur:()=>b(!1),hasFeedbackText:p,setHasFeedbackText:h,hasHelpText:v,setHasHelpText:y,id:c,labelId:u,feedbackId:d,helpTextId:f,htmlProps:a,getHelpTextProps:g,getErrorMessageProps:w,getRootProps:k,getLabelProps:S,getRequiredIndicatorProps:P}}const be=B(function(t,n){const r=Xe("Form",t),i=Ae(t),{getRootProps:o,htmlProps:a,...l}=xG(i),c=W("chakra-form-control",t.className);return s.jsx(bG,{value:l,children:s.jsx(yG,{value:r,children:s.jsx(N.div,{...o({},n),className:c,__css:r.container})})})});be.displayName="FormControl";const au=B(function(t,n){const r=Lu(),i=YP(),o=W("chakra-form__helper-text",t.className);return s.jsx(N.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:i.helperText,className:o})});au.displayName="FormHelperText";function QP(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:i,...o}=ZP(e);return{...o,disabled:t,readOnly:r,required:i,"aria-invalid":hi(n),"aria-required":hi(i),"aria-readonly":hi(r)}}function ZP(e){const t=Lu(),{id:n,disabled:r,readOnly:i,required:o,isRequired:a,isInvalid:l,isReadOnly:c,isDisabled:u,onFocus:d,onBlur:f,...p}=e,h=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.hasFeedbackText&&(t!=null&&t.isInvalid)&&h.push(t.feedbackId),t!=null&&t.hasHelpText&&h.push(t.helpTextId),{...p,"aria-describedby":h.join(" ")||void 0,id:n??(t==null?void 0:t.id),isDisabled:r??u??(t==null?void 0:t.isDisabled),isReadOnly:i??c??(t==null?void 0:t.isReadOnly),isRequired:o??a??(t==null?void 0:t.isRequired),isInvalid:l??(t==null?void 0:t.isInvalid),onFocus:fe(t==null?void 0:t.onFocus,d),onBlur:fe(t==null?void 0:t.onBlur,f)}}const JP={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function SG(e={}){const t=ZP(e),{isDisabled:n,isReadOnly:r,isRequired:i,isInvalid:o,id:a,onBlur:l,onFocus:c,"aria-describedby":u}=t,{defaultChecked:d,isChecked:f,isFocusable:p,onChange:h,isIndeterminate:v,name:y,value:x,tabIndex:b=void 0,"aria-label":g,"aria-labelledby":S,"aria-invalid":w,...k}=e,P=Q1(k,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),j=Cr(h),_=Cr(l),M=Cr(c),[T,O]=m.useState(!1),[q,ne]=m.useState(!1),[z,X]=m.useState(!1),V=m.useRef(!1);m.useEffect(()=>XP(pe=>{V.current=pe}),[]);const I=m.useRef(null),[D,R]=m.useState(!0),[F,G]=m.useState(!!d),K=f!==void 0,ee=K?f:F,Pe=m.useCallback(pe=>{if(r||n){pe.preventDefault();return}K||G(ee?pe.currentTarget.checked:v?!0:pe.currentTarget.checked),j==null||j(pe)},[r,n,ee,K,v,j]);gi(()=>{I.current&&(I.current.indeterminate=!!v)},[v]),lp(()=>{n&&O(!1)},[n,O]),gi(()=>{const pe=I.current;if(!(pe!=null&&pe.form))return;const lt=()=>{G(!!d)};return pe.form.addEventListener("reset",lt),()=>{var Be;return(Be=pe.form)==null?void 0:Be.removeEventListener("reset",lt)}},[]);const we=n&&!p,Te=m.useCallback(pe=>{pe.key===" "&&X(!0)},[X]),Ge=m.useCallback(pe=>{pe.key===" "&&X(!1)},[X]);gi(()=>{if(!I.current)return;I.current.checked!==ee&&G(I.current.checked)},[I.current]);const Ye=m.useCallback((pe={},lt=null)=>{const Be=Et=>{T&&Et.preventDefault(),X(!0)};return{...pe,ref:lt,"data-active":le(z),"data-hover":le(q),"data-checked":le(ee),"data-focus":le(T),"data-focus-visible":le(T&&V.current),"data-indeterminate":le(v),"data-disabled":le(n),"data-invalid":le(o),"data-readonly":le(r),"aria-hidden":!0,onMouseDown:fe(pe.onMouseDown,Be),onMouseUp:fe(pe.onMouseUp,()=>X(!1)),onMouseEnter:fe(pe.onMouseEnter,()=>ne(!0)),onMouseLeave:fe(pe.onMouseLeave,()=>ne(!1))}},[z,ee,n,T,q,v,o,r]),te=m.useCallback((pe={},lt=null)=>({...pe,ref:lt,"data-active":le(z),"data-hover":le(q),"data-checked":le(ee),"data-focus":le(T),"data-focus-visible":le(T&&V.current),"data-indeterminate":le(v),"data-disabled":le(n),"data-invalid":le(o),"data-readonly":le(r)}),[z,ee,n,T,q,v,o,r]),re=m.useCallback((pe={},lt=null)=>({...P,...pe,ref:zt(lt,Be=>{Be&&R(Be.tagName==="LABEL")}),onClick:fe(pe.onClick,()=>{var Be;D||((Be=I.current)==null||Be.click(),requestAnimationFrame(()=>{var Et;(Et=I.current)==null||Et.focus({preventScroll:!0})}))}),"data-disabled":le(n),"data-checked":le(ee),"data-invalid":le(o)}),[P,n,ee,o,D]),$e=m.useCallback((pe={},lt=null)=>({...pe,ref:zt(I,lt),type:"checkbox",name:y,value:x,id:a,tabIndex:b,onChange:fe(pe.onChange,Pe),onBlur:fe(pe.onBlur,_,()=>O(!1)),onFocus:fe(pe.onFocus,M,()=>O(!0)),onKeyDown:fe(pe.onKeyDown,Te),onKeyUp:fe(pe.onKeyUp,Ge),required:i,checked:ee,disabled:we,readOnly:r,"aria-label":g,"aria-labelledby":S,"aria-invalid":w?!!w:o,"aria-describedby":u,"aria-disabled":n,"aria-checked":v?"mixed":ee,style:JP}),[y,x,a,b,Pe,_,M,Te,Ge,i,ee,we,r,g,S,w,o,u,n,v]),me=m.useCallback((pe={},lt=null)=>({...pe,ref:lt,onMouseDown:fe(pe.onMouseDown,wG),"data-disabled":le(n),"data-checked":le(ee),"data-invalid":le(o)}),[ee,n,o]);return{state:{isInvalid:o,isFocused:T,isChecked:ee,isActive:z,isHovered:q,isIndeterminate:v,isDisabled:n,isReadOnly:r,isRequired:i},getRootProps:re,getCheckboxProps:Ye,getIndicatorProps:te,getInputProps:$e,getLabelProps:me,htmlProps:P}}function wG(e){e.preventDefault(),e.stopPropagation()}const kG=new Set(["dark","light","system"]);function CG(e){let t=e;return kG.has(t)||(t="light"),t}function jG(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,i=CG(t),o=n==="cookie",a=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${i}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})();
`,l=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${i}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();
`;return`!${o?a:l}`.trim()}function PG(e={}){const{nonce:t}=e;return s.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:jG(e)}})}const pn=B(function(t,n){const{className:r,centerContent:i,...o}=Ae(t),a=Xn("Container",t);return s.jsx(N.div,{ref:n,className:W("chakra-container",r),...o,__css:{...a,...i&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});pn.displayName="Container";const ua=B(function(t,n){const{borderLeftWidth:r,borderBottomWidth:i,borderTopWidth:o,borderRightWidth:a,borderWidth:l,borderStyle:c,borderColor:u,...d}=Xn("Divider",t),{className:f,orientation:p="horizontal",__css:h,...v}=Ae(t),y={vertical:{borderLeftWidth:r||a||l||"1px",height:"100%"},horizontal:{borderBottomWidth:i||o||l||"1px",width:"100%"}};return s.jsx(N.hr,{ref:n,"aria-orientation":p,...v,__css:{...d,border:"0",borderColor:u,borderStyle:c,...y[p],...h},className:W("chakra-divider",f)})});ua.displayName="Divider";const[_G,e_]=Ce({name:"EditableStylesContext",errorMessage:`useEditableStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Editable />" `}),[TG,ub]=Ce({name:"EditableContext",errorMessage:"useEditableContext: context is undefined. Seems you forgot to wrap the editable components in `<Editable />`"});function cw(e,t){return e?e===t||e.contains(t):!1}function EG(e={}){const{onChange:t,onCancel:n,onSubmit:r,onBlur:i,value:o,isDisabled:a,defaultValue:l,startWithEditView:c,isPreviewFocusable:u=!0,submitOnBlur:d=!0,selectAllOnFocus:f=!0,placeholder:p,onEdit:h,finalFocusRef:v,...y}=e,x=Cr(h),b=!!(c&&!a),[g,S]=m.useState(b),[w,k]=i6({defaultValue:l||"",value:o,onChange:t}),[P,j]=m.useState(w),_=m.useRef(null),M=m.useRef(null),T=m.useRef(null),O=m.useRef(null),q=m.useRef(null);J$({ref:_,enabled:g,elements:[O,q]});const ne=!g&&!a;gi(()=>{var te,re;g&&((te=_.current)==null||te.focus(),f&&((re=_.current)==null||re.select()))},[]),lp(()=>{var te,re,$e,me;if(!g){v?(te=v.current)==null||te.focus():(re=T.current)==null||re.focus();return}($e=_.current)==null||$e.focus(),f&&((me=_.current)==null||me.select()),x==null||x()},[g,x,f]);const z=m.useCallback(()=>{ne&&S(!0)},[ne]),X=m.useCallback(()=>{j(w)},[w]),V=m.useCallback(()=>{S(!1),k(P),n==null||n(P),i==null||i(P)},[n,i,k,P]),I=m.useCallback(()=>{S(!1),j(w),r==null||r(w),i==null||i(P)},[w,r,i,P]);m.useEffect(()=>{if(g)return;const te=_.current;(te==null?void 0:te.ownerDocument.activeElement)===te&&(te==null||te.blur())},[g]);const D=m.useCallback(te=>{k(te.currentTarget.value)},[k]),R=m.useCallback(te=>{const re=te.key,me={Escape:V,Enter:it=>{!it.shiftKey&&!it.metaKey&&I()}}[re];me&&(te.preventDefault(),me(te))},[V,I]),F=m.useCallback(te=>{const re=te.key,me={Escape:V}[re];me&&(te.preventDefault(),me(te))},[V]),G=w.length===0,K=m.useCallback(te=>{if(!g)return;const re=te.currentTarget.ownerDocument,$e=te.relatedTarget??re.activeElement,me=cw(O.current,$e),it=cw(q.current,$e);!me&&!it&&(d?I():V())},[d,I,V,g]),ee=m.useCallback((te={},re=null)=>{const $e=ne&&u?0:void 0;return{...te,ref:zt(re,M),children:G?p:w,hidden:g,"aria-disabled":hi(a),tabIndex:$e,onFocus:fe(te.onFocus,z,X)}},[a,g,ne,u,G,z,X,p,w]),Pe=m.useCallback((te={},re=null)=>({...te,hidden:!g,placeholder:p,ref:zt(re,_),disabled:a,"aria-disabled":hi(a),value:w,onBlur:fe(te.onBlur,K),onChange:fe(te.onChange,D),onKeyDown:fe(te.onKeyDown,R),onFocus:fe(te.onFocus,X)}),[a,g,K,D,R,X,p,w]),we=m.useCallback((te={},re=null)=>({...te,hidden:!g,placeholder:p,ref:zt(re,_),disabled:a,"aria-disabled":hi(a),value:w,onBlur:fe(te.onBlur,K),onChange:fe(te.onChange,D),onKeyDown:fe(te.onKeyDown,F),onFocus:fe(te.onFocus,X)}),[a,g,K,D,F,X,p,w]),Te=m.useCallback((te={},re=null)=>({"aria-label":"Edit",...te,type:"button",onClick:fe(te.onClick,z),ref:zt(re,T),disabled:a}),[z,a]),Ge=m.useCallback((te={},re=null)=>({...te,"aria-label":"Submit",ref:zt(q,re),type:"button",onClick:fe(te.onClick,I),disabled:a}),[I,a]),Ye=m.useCallback((te={},re=null)=>({"aria-label":"Cancel",id:"cancel",...te,ref:zt(O,re),type:"button",onClick:fe(te.onClick,V),disabled:a}),[V,a]);return{isEditing:g,isDisabled:a,isValueEmpty:G,value:w,onEdit:z,onCancel:V,onSubmit:I,getPreviewProps:ee,getInputProps:Pe,getTextareaProps:we,getEditButtonProps:Te,getSubmitButtonProps:Ge,getCancelButtonProps:Ye,htmlProps:y}}const tc=B(function(t,n){const r=Xe("Editable",t),i=Ae(t),{htmlProps:o,...a}=EG(i),{isEditing:l,onSubmit:c,onCancel:u,onEdit:d}=a,f=W("chakra-editable",t.className),p=sn(t.children,{isEditing:l,onSubmit:c,onCancel:u,onEdit:d});return s.jsx(TG,{value:a,children:s.jsx(_G,{value:r,children:s.jsx(N.div,{ref:n,...o,className:f,children:p})})})});tc.displayName="Editable";const t_={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent"},nc=B(function(t,n){const{getInputProps:r}=ub(),i=e_(),o=r(t,n),a=W("chakra-editable__input",t.className);return s.jsx(N.input,{...o,__css:{outline:0,...t_,...i.input},className:a})});nc.displayName="EditableInput";const rc=B(function(t,n){const{getPreviewProps:r}=ub(),i=e_(),o=r(t,n),a=W("chakra-editable__preview",t.className);return s.jsx(N.span,{...o,__css:{cursor:"text",display:"inline-block",...t_,...i.preview},className:a})});rc.displayName="EditablePreview";function AG(){const{isEditing:e,getEditButtonProps:t,getCancelButtonProps:n,getSubmitButtonProps:r}=ub();return{isEditing:e,getEditButtonProps:t,getCancelButtonProps:n,getSubmitButtonProps:r}}function ic(e){return typeof e=="function"}function $G(...e){return t=>e.reduce((n,r)=>r(n),t)}const zG=e=>function(...n){let r=[...n],i=n[n.length-1];return aO(i)&&r.length>1?r=r.slice(0,r.length-1):i=e,$G(...r.map(o=>a=>ic(o)?o(a):RG(a,o)))(i)},db=zG(Zo);function RG(...e){return ir({},...e,n_)}function n_(e,t,n,r){if((ic(e)||ic(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...i)=>{const o=ic(e)?e(...i):e,a=ic(t)?t(...i):t;return ir({},o,a,n_)};if(Mt(e)&&zg(t)||zg(e)&&Mt(t))return t}const kt=B(function(t,n){const{direction:r,align:i,justify:o,wrap:a,basis:l,grow:c,shrink:u,...d}=t,f={display:"flex",flexDirection:r,alignItems:i,justifyContent:o,flexWrap:a,flexBasis:l,flexGrow:c,flexShrink:u};return s.jsx(N.div,{ref:n,__css:f,...d})});kt.displayName="Flex";function MG(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var mv="data-focus-lock",r_="data-focus-lock-disabled",IG="data-no-focus-lock",LG="data-autofocus-inside",NG="data-no-autofocus";function c0(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function DG(e,t){var n=m.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var OG=typeof window<"u"?m.useLayoutEffect:m.useEffect,uw=new WeakMap;function i_(e,t){var n=DG(null,function(r){return e.forEach(function(i){return c0(i,r)})});return OG(function(){var r=uw.get(n);if(r){var i=new Set(r),o=new Set(e),a=n.current;i.forEach(function(l){o.has(l)||c0(l,null)}),o.forEach(function(l){i.has(l)||c0(l,a)})}uw.set(n,e)},[e]),n}var u0={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Br=function(){return Br=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Br.apply(this,arguments)};function o_(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function FG(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function a_(e){return e}function s_(e,t){t===void 0&&(t=a_);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var a=t(o,r);return n.push(a),function(){n=n.filter(function(l){return l!==a})}},assignSyncMedium:function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:function(l){return o(l)},filter:function(){return n}}},assignMedium:function(o){r=!0;var a=[];if(n.length){var l=n;n=[],l.forEach(o),a=n}var c=function(){var d=a;a=[],d.forEach(o)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}};return i}function fb(e,t){return t===void 0&&(t=a_),s_(e,t)}function l_(e){e===void 0&&(e={});var t=s_(null);return t.options=Br({async:!0,ssr:!1},e),t}var c_=function(e){var t=e.sideCar,n=o_(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return m.createElement(r,Br({},n))};c_.isSideCarExport=!0;function BG(e,t){return e.useMedium(t),c_}var u_=fb({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),d_=fb(),VG=fb(),WG=l_({async:!0,ssr:typeof document<"u"}),UG=m.createContext(void 0),HG=[],pb=m.forwardRef(function(t,n){var r,i=m.useState(),o=i[0],a=i[1],l=m.useRef(),c=m.useRef(!1),u=m.useRef(null),d=m.useState({}),f=d[1],p=t.children,h=t.disabled,v=h===void 0?!1:h,y=t.noFocusGuards,x=y===void 0?!1:y,b=t.persistentFocus,g=b===void 0?!1:b,S=t.crossFrame,w=S===void 0?!0:S,k=t.autoFocus,P=k===void 0?!0:k;t.allowTextSelection;var j=t.group,_=t.className,M=t.whiteList,T=t.hasPositiveIndices,O=t.shards,q=O===void 0?HG:O,ne=t.as,z=ne===void 0?"div":ne,X=t.lockProps,V=X===void 0?{}:X,I=t.sideCar,D=t.returnFocus,R=D===void 0?!1:D,F=t.focusOptions,G=t.onActivation,K=t.onDeactivation,ee=m.useState({}),Pe=ee[0],we=m.useCallback(function(Be){var Et=Be.captureFocusRestore;if(!u.current){var ye,xn=(ye=document)==null?void 0:ye.activeElement;u.current=xn,xn!==document.body&&(u.current=Et(xn))}l.current&&G&&G(l.current),c.current=!0,f()},[G]),Te=m.useCallback(function(){c.current=!1,K&&K(l.current),f()},[K]),Ge=m.useCallback(function(Be){var Et=u.current;if(Et){var ye=(typeof Et=="function"?Et():Et)||document.body,xn=typeof R=="function"?R(ye):R;if(xn){var Lt=typeof xn=="object"?xn:void 0;u.current=null,Be?Promise.resolve().then(function(){return ye.focus(Lt)}):ye.focus(Lt)}}},[R]),Ye=m.useCallback(function(Be){c.current&&u_.useMedium(Be)},[]),te=d_.useMedium,re=m.useCallback(function(Be){l.current!==Be&&(l.current=Be,a(Be))},[]),$e=Sa((r={},r[r_]=v&&"disabled",r[mv]=j,r),V),me=x!==!0,it=me&&x!=="tail",pe=i_([n,re]),lt=m.useMemo(function(){return{observed:l,shards:q,enabled:!v,get active(){return c.current}}},[v,c,q,l]);return Gt.createElement(m.Fragment,null,me&&[Gt.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:v?-1:0,style:u0}),T?Gt.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:v?-1:1,style:u0}):null],!v&&Gt.createElement(I,{id:Pe,sideCar:WG,observed:o,disabled:v,persistentFocus:g,crossFrame:w,autoFocus:P,whiteList:M,shards:q,onActivation:we,onDeactivation:Te,returnFocus:Ge,focusOptions:F,noFocusGuards:x}),Gt.createElement(z,Sa({ref:pe},$e,{className:_,onBlur:te,onFocus:Ye}),Gt.createElement(UG.Provider,{value:lt},p)),it&&Gt.createElement("div",{"data-focus-guard":!0,tabIndex:v?-1:0,style:u0}))});pb.propTypes={};function hv(e,t){return hv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},hv(e,t)}function GG(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hv(e,t)}function su(e){"@babel/helpers - typeof";return su=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},su(e)}function KG(e,t){if(su(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(su(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qG(e){var t=KG(e,"string");return su(t)=="symbol"?t:t+""}function XG(e,t,n){return(t=qG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YG(e,t){function n(r){return r.displayName||r.name||"Component"}return function(i){var o=[],a;function l(){a=e(o.map(function(u){return u.props})),t(a)}var c=function(u){GG(d,u);function d(){return u.apply(this,arguments)||this}d.peek=function(){return a};var f=d.prototype;return f.componentDidMount=function(){o.push(this),l()},f.componentDidUpdate=function(){l()},f.componentWillUnmount=function(){var h=o.indexOf(this);o.splice(h,1),l()},f.render=function(){return Gt.createElement(i,this.props)},d}(m.PureComponent);return XG(c,"displayName","SideEffect("+n(i)+")"),c}}var Qr=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},ka=function(e){return Array.isArray(e)?e:[e]},f_=function(e){return Array.isArray(e)?e[0]:e},QG=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"},p_=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},m_=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},ZG=function(e){return e.hasAttribute("inert")},JG=function(e,t){return!e||m_(e)||!QG(e)&&!ZG(e)&&t(p_(e))},h_=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=JG(t,h_.bind(void 0,e));return e.set(t,r),r},eK=function(e,t){return e&&!m_(e)?rK(e)?t(p_(e)):!1:!0},g_=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=eK(t,g_.bind(void 0,e));return e.set(t,r),r},v_=function(e){return e.dataset},tK=function(e){return e.tagName==="BUTTON"},y_=function(e){return e.tagName==="INPUT"},b_=function(e){return y_(e)&&e.type==="radio"},nK=function(e){return!((y_(e)||tK(e))&&(e.type==="hidden"||e.disabled))},rK=function(e){var t=e.getAttribute(NG);return![!0,"true",""].includes(t)},mb=function(e){var t;return!!(e&&(!((t=v_(e))===null||t===void 0)&&t.focusGuard))},gv=function(e){return!mb(e)},iK=function(e){return!!e},oK=function(e,t){var n=Math.max(0,e.tabIndex),r=Math.max(0,t.tabIndex),i=n-r,o=e.index-t.index;if(i){if(!n)return 1;if(!r)return-1}return i||o},aK=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex},hb=function(e,t,n){return Qr(e).map(function(r,i){var o=aK(r);return{node:r,index:i,tabIndex:n&&o===-1?(r.dataset||{}).focusGuard?0:-1:o}}).filter(function(r){return!t||r.tabIndex>=0}).sort(oK)},sK=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],gb=sK.join(","),lK="".concat(gb,", [data-focus-guard]"),x_=function(e,t){return Qr((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?lK:gb)?[r]:[],x_(r))},[])},cK=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?el([e.contentDocument.body],t):[e]},el=function(e,t){return e.reduce(function(n,r){var i,o=x_(r,t),a=(i=[]).concat.apply(i,o.map(function(l){return cK(l,t)}));return n.concat(a,r.parentNode?Qr(r.parentNode.querySelectorAll(gb)).filter(function(l){return l===r}):[])},[])},uK=function(e){var t=e.querySelectorAll("[".concat(LG,"]"));return Qr(t).map(function(n){return el([n])}).reduce(function(n,r){return n.concat(r)},[])},vb=function(e,t){return Qr(e).filter(function(n){return h_(t,n)}).filter(function(n){return nK(n)})},dw=function(e,t){return t===void 0&&(t=new Map),Qr(e).filter(function(n){return g_(t,n)})},yb=function(e,t,n){return hb(vb(el(e,n),t),!0,n)},lu=function(e,t){return hb(vb(el(e),t),!1)},dK=function(e,t){return vb(uK(e),t)},da=function(e,t){return e.shadowRoot?da(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:Qr(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var i=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return i?da(i,t):!1}return da(n,t)})},fK=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var o=e[r].compareDocumentPosition(e[i]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(a,l){return!t.has(l)})},S_=function(e){return e.parentNode?S_(e.parentNode):e},bb=function(e){var t=ka(e);return t.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(mv);return n.push.apply(n,i?fK(Qr(S_(r).querySelectorAll("[".concat(mv,'="').concat(i,'"]:not([').concat(r_,'="disabled"])')))):[r]),n},[])},pK=function(e){try{return e()}catch{return}},cu=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?cu(t.shadowRoot):t instanceof HTMLIFrameElement&&pK(function(){return t.contentWindow.document})?cu(t.contentWindow.document):t}},mK=function(e,t){return e===t},hK=function(e,t){return!!Qr(e.querySelectorAll("iframe")).some(function(n){return mK(n,t)})},w_=function(e,t){return t===void 0&&(t=cu(f_(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:bb(e).some(function(n){return da(n,t)||hK(n,t)})},gK=function(e){e===void 0&&(e=document);var t=cu(e);return t?Qr(e.querySelectorAll("[".concat(IG,"]"))).some(function(n){return da(n,t)}):!1},vK=function(e,t){return t.filter(b_).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},xb=function(e,t){return b_(e)&&e.name?vK(e,t):e},yK=function(e){var t=new Set;return e.forEach(function(n){return t.add(xb(n,e))}),e.filter(function(n){return t.has(n)})},fw=function(e){return e[0]&&e.length>1?xb(e[0],e):e[0]},pw=function(e,t){return e.indexOf(xb(t,e))},vv="NEW_FOCUS",bK=function(e,t,n,r,i){var o=e.length,a=e[0],l=e[o-1],c=mb(r);if(!(r&&e.indexOf(r)>=0)){var u=r!==void 0?n.indexOf(r):-1,d=i?n.indexOf(i):u,f=i?e.indexOf(i):-1;if(u===-1)return f!==-1?f:vv;if(f===-1)return vv;var p=u-d,h=n.indexOf(a),v=n.indexOf(l),y=yK(n),x=r!==void 0?y.indexOf(r):-1,b=i?y.indexOf(i):x,g=y.filter(function(_){return _.tabIndex>=0}),S=r!==void 0?g.indexOf(r):-1,w=i?g.indexOf(i):S,k=S>=0&&w>=0?w-S:b-x;if(!p&&f>=0||t.length===0)return f;var P=pw(e,t[0]),j=pw(e,t[t.length-1]);if(u<=h&&c&&Math.abs(p)>1)return j;if(u>=v&&c&&Math.abs(p)>1)return P;if(p&&Math.abs(k)>1)return f;if(u<=h)return j;if(u>v)return P;if(p)return Math.abs(p)>1?f:(o+f+p)%o}},xK=function(e){return function(t){var n,r=(n=v_(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},mw=function(e,t,n){var r=e.map(function(o){var a=o.node;return a}),i=dw(r.filter(xK(n)));return i&&i.length?fw(i):fw(dw(t))},yv=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&yv(e.parentNode.host||e.parentNode,t),t},d0=function(e,t){for(var n=yv(e),r=yv(t),i=0;i<n.length;i+=1){var o=n[i];if(r.indexOf(o)>=0)return o}return!1},k_=function(e,t,n){var r=ka(e),i=ka(t),o=r[0],a=!1;return i.filter(Boolean).forEach(function(l){a=d0(a||l,l)||a,n.filter(Boolean).forEach(function(c){var u=d0(o,c);u&&(!a||da(u,a)?a=u:a=d0(u,a))})}),a},hw=function(e,t){return e.reduce(function(n,r){return n.concat(dK(r,t))},[])},SK=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(iK)},wK=function(e,t){var n=cu(ka(e).length>0?document:f_(e).ownerDocument),r=bb(e).filter(gv),i=k_(n||e,e,r),o=new Map,a=lu(r,o),l=a.filter(function(v){var y=v.node;return gv(y)});if(l[0]){var c=lu([i],o).map(function(v){var y=v.node;return y}),u=SK(c,l),d=u.map(function(v){var y=v.node;return y}),f=u.filter(function(v){var y=v.tabIndex;return y>=0}).map(function(v){var y=v.node;return y}),p=bK(d,f,c,n,t);if(p===vv){var h=mw(a,f,hw(r,o))||mw(a,d,hw(r,o));if(h)return{node:h};console.warn("focus-lock: cannot find any node to move focus into");return}return p===void 0?p:u[p]}},kK=function(e){var t=bb(e).filter(gv),n=k_(e,e,t),r=hb(el([n],!0),!0,!0),i=el(t,!1);return r.map(function(o){var a=o.node,l=o.index;return{node:a,index:l,lockItem:i.indexOf(a)>=0,guard:mb(a)}})},Sb=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},f0=0,p0=!1,C_=function(e,t,n){n===void 0&&(n={});var r=wK(e,t);if(!p0&&r){if(f0>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),p0=!0,setTimeout(function(){p0=!1},1);return}f0++,Sb(r.node,n.focusOptions),f0--}};function Ol(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 CK=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Ol(n),parent:Ol(n.parentElement),left:Ol(n.previousElementSibling),right:Ol(n.nextElementSibling)}),n=n.parentElement;return{element:Ol(e),stack:t,ownerDocument:e.ownerDocument}},jK=function(e){var t,n,r,i,o;if(e)for(var a=e.stack,l=e.ownerDocument,c=new Map,u=0,d=a;u<d.length;u++){var f=d[u],p=(t=f.parent)===null||t===void 0?void 0:t.call(f);if(p&&l.contains(p)){for(var h=(n=f.left)===null||n===void 0?void 0:n.call(f),v=f.current(),y=p.contains(v)?v:void 0,x=(r=f.right)===null||r===void 0?void 0:r.call(f),b=yb([p],c),g=(o=(i=y??(h==null?void 0:h.nextElementSibling))!==null&&i!==void 0?i:x)!==null&&o!==void 0?o:h;g;){for(var S=0,w=b;S<w.length;S++){var k=w[S];if(g!=null&&g.contains(k.node))return k.node}g=g.nextElementSibling}if(b.length)return b[0].node}}},j_=function(e){var t=CK(e);return function(){return jK(t)}},PK=function(e,t,n){if(!e||!t)return console.error("no element or scope given"),{};var r=ka(t);if(r.every(function(a){return!da(a,e)}))return console.error("Active element is not contained in the scope"),{};var i=n?yb(r,new Map):lu(r,new Map),o=i.findIndex(function(a){var l=a.node;return l===e});if(o!==-1)return{prev:i[o-1],next:i[o+1],first:i[0],last:i[i.length-1]}},_K=function(e,t){var n=t?yb(ka(e),new Map):lu(ka(e),new Map);return{first:n[0],last:n[n.length-1]}},TK=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)},P_=function(e,t,n){t===void 0&&(t={});var r=TK(t),i=PK(e,r.scope,r.onlyTabbable);if(i){var o=n(i,r.cycle);o&&Sb(o.node,r.focusOptions)}},EK=function(e,t){t===void 0&&(t={}),P_(e,t,function(n,r){var i=n.next,o=n.first;return i||r&&o})},AK=function(e,t){t===void 0&&(t={}),P_(e,t,function(n,r){var i=n.prev,o=n.last;return i||r&&o})},__=function(e,t,n){var r,i=_K(e,(r=t.onlyTabbable)!==null&&r!==void 0?r:!0),o=i[n];o&&Sb(o.node,t.focusOptions)},$K=function(e,t){t===void 0&&(t={}),__(e,t,"first")},zK=function(e,t){t===void 0&&(t={}),__(e,t,"last")};function wb(e){setTimeout(e,1)}var RK=function(t){return t&&"current"in t?t.current:t},T_=function(){return document&&document.activeElement===document.body},MK=function(){return T_()||gK()},Ls=null,Sn=null,gw=function(){return null},Ns=null,uu=!1,kb=!1,IK=function(){return!0},LK=function(t){return(Ls.whiteList||IK)(t)},NK=function(t,n){Ns={observerNode:t,portaledElement:n}},DK=function(t){return Ns&&Ns.portaledElement===t};function vw(e,t,n,r){var i=null,o=e;do{var a=r[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else if(a.lockItem){if(o!==e)return;i=null}else break}while((o+=n)!==t);i&&(i.node.tabIndex=0)}var OK=function(t){return t?!!uu:uu==="meanwhile"},FK=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},BK=function(t,n){return n.some(function(r){return FK(t,r,r)})},E_=function(t){return lu(t,new Map)},VK=function(t){return!E_([t.parentNode]).some(function(n){return n.node===t})},xp=function(){var t=!1;if(Ls){var n=Ls,r=n.observed,i=n.persistentFocus,o=n.autoFocus,a=n.shards,l=n.crossFrame,c=n.focusOptions,u=n.noFocusGuards,d=r||Ns&&Ns.portaledElement;if(T_()&&Sn&&Sn!==document.body&&(!document.body.contains(Sn)||VK(Sn))){var f=gw();f&&f.focus()}var p=document&&document.activeElement;if(d){var h=[d].concat(a.map(RK).filter(Boolean)),v=function(){if(!OK(l)||!u||!Sn||kb)return!1;var S=E_(h),w=S.findIndex(function(k){var P=k.node;return P===Sn});return w===0||w===S.length-1};if((!p||LK(p))&&(i||v()||!MK()||!Sn&&o)&&(d&&!(w_(h)||p&&BK(p,h)||DK(p))&&(document&&!Sn&&p&&!o?(p.blur&&p.blur(),document.body.focus()):(t=C_(h,Sn,{focusOptions:c}),Ns={})),Sn=document&&document.activeElement,Sn!==document.body&&(gw=j_(Sn)),uu=!1),document&&p!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var y=document&&document.activeElement,x=kK(h),b=x.map(function(g){var S=g.node;return S}).indexOf(y);b>-1&&(x.filter(function(g){var S=g.guard,w=g.node;return S&&w.dataset.focusAutoGuard}).forEach(function(g){var S=g.node;return S.removeAttribute("tabIndex")}),vw(b,x.length,1,x),vw(b,-1,-1,x))}}}return t},A_=function(t){xp()&&t&&(t.stopPropagation(),t.preventDefault())},Cb=function(){return wb(xp)},WK=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||NK(r,n)},UK=function(){return null},$_=function(){kb=!0},z_=function(){kb=!1,uu="just",wb(function(){uu="meanwhile"})},HK=function(){document.addEventListener("focusin",A_),document.addEventListener("focusout",Cb),window.addEventListener("focus",$_),window.addEventListener("blur",z_)},GK=function(){document.removeEventListener("focusin",A_),document.removeEventListener("focusout",Cb),window.removeEventListener("focus",$_),window.removeEventListener("blur",z_)};function KK(e){return e.filter(function(t){var n=t.disabled;return!n})}var R_={moveFocusInside:C_,focusInside:w_,focusNextElement:EK,focusPrevElement:AK,focusFirstElement:$K,focusLastElement:zK,captureFocusRestore:j_};function qK(e){var t=e.slice(-1)[0];t&&!Ls&&HK();var n=Ls,r=n&&t&&t.id===n.id;Ls=t,n&&!r&&(n.onDeactivation(),e.filter(function(i){var o=i.id;return o===n.id}).length||n.returnFocus(!t)),t?(Sn=null,(!r||n.observed!==t.observed)&&t.onActivation(R_),xp(),wb(xp)):(GK(),Sn=null)}u_.assignSyncMedium(WK);d_.assignMedium(Cb);VG.assignMedium(function(e){return e(R_)});const XK=YG(KK,qK)(UK);var bv=m.forwardRef(function(t,n){return Gt.createElement(pb,Sa({sideCar:XK,ref:n},t))}),M_=pb.propTypes||{};M_.sideCar;MG(M_,["sideCar"]);bv.propTypes={};const YK=bv.default??bv,I_=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:o,isDisabled:a,autoFocus:l,persistentFocus:c,lockFocusAcrossFrames:u}=e,d=m.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&N$(r.current).length===0&&requestAnimationFrame(()=>{var v;(v=r.current)==null||v.focus()})},[t,r]),f=m.useCallback(()=>{var h;(h=n==null?void 0:n.current)==null||h.focus()},[n]),p=i&&!n;return s.jsx(YK,{crossFrame:u,persistentFocus:c,autoFocus:l,disabled:a,onActivation:d,onDeactivation:f,returnFocus:p,children:o})};I_.displayName="FocusLock";const xe=B(function(t,n){const r=Xn("FormLabel",t),i=Ae(t),{className:o,children:a,requiredIndicator:l=s.jsx(L_,{}),optionalIndicator:c=null,...u}=i,d=Lu(),f=(d==null?void 0:d.getLabelProps(u,n))??{ref:n,...u};return s.jsxs(N.label,{...f,className:W("chakra-form__label",i.className),__css:{display:"block",textAlign:"start",...r},children:[a,d!=null&&d.isRequired?l:c]})});xe.displayName="FormLabel";const L_=B(function(t,n){const r=Lu(),i=YP();if(!(r!=null&&r.isRequired))return null;const o=W("chakra-form__required-indicator",t.className);return s.jsx(N.span,{...r==null?void 0:r.getRequiredIndicatorProps(t,n),__css:i.requiredIndicator,className:o})});L_.displayName="RequiredIndicator";const N_=B(function(t,n){const{templateAreas:r,gap:i,rowGap:o,columnGap:a,column:l,row:c,autoFlow:u,autoRows:d,templateRows:f,autoColumns:p,templateColumns:h,...v}=t,y={display:"grid",gridTemplateAreas:r,gridGap:i,gridRowGap:o,gridColumnGap:a,gridAutoColumns:p,gridColumn:l,gridRow:c,gridAutoFlow:u,gridAutoRows:d,gridTemplateRows:f,gridTemplateColumns:h};return s.jsx(N.div,{ref:n,__css:y,...v})});N_.displayName="Grid";const gn=B(function(t,n){const{columns:r,spacingX:i,spacingY:o,spacing:a,minChildWidth:l,...c}=t,u=$i(),d=l?ZK(l,u):JK(r);return s.jsx(N_,{ref:n,gap:a,columnGap:i,rowGap:o,templateColumns:d,...c})});gn.displayName="SimpleGrid";function QK(e){return typeof e=="number"?`${e}px`:e}function ZK(e,t){return Z1(e,n=>{const r=xH("sizes",n,QK(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function JK(e){return Z1(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}function bm(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:i={}}=e,o=m.Children.toArray(e.path),a=B((l,c)=>s.jsx(Tt,{ref:c,viewBox:t,...i,...l,children:o.length?o:s.jsx("path",{fill:"currentColor",d:n})}));return a.displayName=r,a}const yt=B(function(t,n){const{htmlSize:r,...i}=t,o=Xe("Input",i),a=Ae(i),l=QP(a),c=W("chakra-input",t.className);return s.jsx(N.input,{size:r,...l,__css:o.field,ref:n,className:c})});yt.displayName="Input";yt.id="Input";const[eq,tq]=Ce({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),jb=B(function(t,n){const r=Xe("Input",t),{children:i,className:o,...a}=Ae(t),l=W("chakra-input__group",o),c={},u=X1(i),d=r.field;u.forEach(p=>{r&&(d&&p.type.id==="InputLeftElement"&&(c.paddingStart=d.height??d.h),d&&p.type.id==="InputRightElement"&&(c.paddingEnd=d.height??d.h),p.type.id==="InputRightAddon"&&(c.borderEndRadius=0),p.type.id==="InputLeftAddon"&&(c.borderStartRadius=0))});const f=u.map(p=>{var v,y;const h=Y1({size:((v=p.props)==null?void 0:v.size)||t.size,variant:((y=p.props)==null?void 0:y.variant)||t.variant});return p.type.id!=="Input"?m.cloneElement(p,h):m.cloneElement(p,Object.assign(h,c,p.props))});return s.jsx(N.div,{className:l,ref:n,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...a,children:s.jsx(eq,{value:r,children:f})})});jb.displayName="InputGroup";const nq=N("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),xm=B(function(t,n){const{placement:r="left",...i}=t,o=tq(),a=o.field,c={[r==="left"?"insetStart":"insetEnd"]:"0",width:(a==null?void 0:a.height)??(a==null?void 0:a.h),height:(a==null?void 0:a.height)??(a==null?void 0:a.h),fontSize:a==null?void 0:a.fontSize,...o.element};return s.jsx(nq,{ref:n,__css:c,...i})});xm.id="InputElement";xm.displayName="InputElement";const Pb=B(function(t,n){const{className:r,...i}=t,o=W("chakra-input__left-element",r);return s.jsx(xm,{ref:n,placement:"left",className:o,...i})});Pb.id="InputLeftElement";Pb.displayName="InputLeftElement";const Sm=B(function(t,n){const{className:r,...i}=t,o=W("chakra-input__right-element",r);return s.jsx(xm,{ref:n,placement:"right",className:o,...i})});Sm.id="InputRightElement";Sm.displayName="InputRightElement";const _o=B(function(t,n){const r=Xn("Link",t),{className:i,isExternal:o,...a}=Ae(t);return s.jsx(N.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:n,className:W("chakra-link",i),...a,__css:r})});_o.displayName="Link";const[rq,D_]=Ce({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "<List />" `}),Nu=B(function(t,n){const r=Xe("List",t),{children:i,styleType:o="none",stylePosition:a,spacing:l,...c}=Ae(t),u=X1(i),f=l?{["& > *:not(style) ~ *:not(style)"]:{mt:l}}:{};return s.jsx(rq,{value:r,children:s.jsx(N.ul,{ref:n,listStyleType:o,listStylePosition:a,role:"list",__css:{...r.container,...f},...c,children:u})})});Nu.displayName="List";const iq=B((e,t)=>{const{as:n,...r}=e;return s.jsx(Nu,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});iq.displayName="OrderedList";const oq=B(function(t,n){const{as:r,...i}=t;return s.jsx(Nu,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...i})});oq.displayName="UnorderedList";const _b=B(function(t,n){const r=D_();return s.jsx(N.li,{ref:n,...t,__css:r.item})});_b.displayName="ListItem";const O_=B(function(t,n){const r=D_();return s.jsx(Tt,{ref:n,role:"presentation",...t,__css:r.icon})});O_.displayName="ListIcon";function aq(e,t={}){const{ssr:n=!0,fallback:r}=t,{getWindow:i}=xF(),o=Array.isArray(e)?e:[e];let a=Array.isArray(r)?r:[r];a=a.filter(u=>u!=null);const[l,c]=m.useState(()=>o.map((u,d)=>({media:u,matches:n?!!a[d]:i().matchMedia(u).matches})));return m.useEffect(()=>{const u=i();c(o.map(p=>({media:p,matches:u.matchMedia(p).matches})));const d=o.map(p=>u.matchMedia(p)),f=p=>{c(h=>h.slice().map(v=>v.media===p.media?{...v,matches:p.matches}:v))};return d.forEach(p=>{typeof p.addListener=="function"?p.addListener(f):p.addEventListener("change",f)}),()=>{d.forEach(p=>{typeof p.removeListener=="function"?p.removeListener(f):p.removeEventListener("change",f)})}},[i]),l.map(u=>u.matches)}function sq(e){var l;const t=Mt(e)?e:{fallback:e??"base"},r=$i().__breakpoints.details.map(({minMaxQuery:c,breakpoint:u})=>({breakpoint:u,query:c.replace("@media screen and ","")})),i=r.map(c=>c.breakpoint===t.fallback),a=aq(r.map(c=>c.query),{fallback:i,ssr:t.ssr}).findIndex(c=>c==!0);return((l=r[a])==null?void 0:l.breakpoint)??t.fallback}function lq(e,t,n=t6){let r=Object.keys(e).indexOf(t);if(r!==-1)return e[t];let i=n.indexOf(t);for(;i>=0;){const o=n[i];if(e.hasOwnProperty(o)){r=i;break}i-=1}if(r!==-1){const o=n[r];return e[o]}}function Sp(e,t){var l;const n=Mt(t)?t:{fallback:t??"base"},r=sq(n),i=$i();if(!r)return;const o=Array.from(((l=i.__breakpoints)==null?void 0:l.keys)||[]),a=Array.isArray(e)?Object.fromEntries(Object.entries(B$(e,o)).map(([c,u])=>[c,u])):e;return lq(a,r,o)}var Tn="top",cr="bottom",ur="right",En="left",Tb="auto",Du=[Tn,cr,ur,En],tl="start",du="end",cq="clippingParents",F_="viewport",Fl="popper",uq="reference",yw=Du.reduce(function(e,t){return e.concat([t+"-"+tl,t+"-"+du])},[]),B_=[].concat(Du,[Tb]).reduce(function(e,t){return e.concat([t,t+"-"+tl,t+"-"+du])},[]),dq="beforeRead",fq="read",pq="afterRead",mq="beforeMain",hq="main",gq="afterMain",vq="beforeWrite",yq="write",bq="afterWrite",xq=[dq,fq,pq,mq,hq,gq,vq,yq,bq];function Yr(e){return e?(e.nodeName||"").toLowerCase():null}function Un(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ca(e){var t=Un(e).Element;return e instanceof t||e instanceof Element}function ar(e){var t=Un(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Eb(e){if(typeof ShadowRoot>"u")return!1;var t=Un(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Sq(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!ar(o)||!Yr(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var l=i[a];l===!1?o.removeAttribute(a):o.setAttribute(a,l===!0?"":l)}))})}function wq(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(c,u){return c[u]="",c},{});!ar(i)||!Yr(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const kq={name:"applyStyles",enabled:!0,phase:"write",fn:Sq,effect:wq,requires:["computeStyles"]};function Xr(e){return e.split("-")[0]}var fa=Math.max,wp=Math.min,nl=Math.round;function xv(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function V_(){return!/^((?!chrome|android).)*safari/i.test(xv())}function rl(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ar(e)&&(i=e.offsetWidth>0&&nl(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&nl(r.height)/e.offsetHeight||1);var a=Ca(e)?Un(e):window,l=a.visualViewport,c=!V_()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/i,d=(r.top+(c&&l?l.offsetTop:0))/o,f=r.width/i,p=r.height/o;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function Ab(e){var t=rl(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function W_(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Eb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Pi(e){return Un(e).getComputedStyle(e)}function Cq(e){return["table","td","th"].indexOf(Yr(e))>=0}function To(e){return((Ca(e)?e.ownerDocument:e.document)||window.document).documentElement}function wm(e){return Yr(e)==="html"?e:e.assignedSlot||e.parentNode||(Eb(e)?e.host:null)||To(e)}function bw(e){return!ar(e)||Pi(e).position==="fixed"?null:e.offsetParent}function jq(e){var t=/firefox/i.test(xv()),n=/Trident/i.test(xv());if(n&&ar(e)){var r=Pi(e);if(r.position==="fixed")return null}var i=wm(e);for(Eb(i)&&(i=i.host);ar(i)&&["html","body"].indexOf(Yr(i))<0;){var o=Pi(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Ou(e){for(var t=Un(e),n=bw(e);n&&Cq(n)&&Pi(n).position==="static";)n=bw(n);return n&&(Yr(n)==="html"||Yr(n)==="body"&&Pi(n).position==="static")?t:n||jq(e)||t}function $b(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Pc(e,t,n){return fa(e,wp(t,n))}function Pq(e,t,n){var r=Pc(e,t,n);return r>n?n:r}function U_(){return{top:0,right:0,bottom:0,left:0}}function H_(e){return Object.assign({},U_(),e)}function G_(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var _q=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,H_(typeof t!="number"?t:G_(t,Du))};function Tq(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Xr(n.placement),c=$b(l),u=[En,ur].indexOf(l)>=0,d=u?"height":"width";if(!(!o||!a)){var f=_q(i.padding,n),p=Ab(o),h=c==="y"?Tn:En,v=c==="y"?cr:ur,y=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],x=a[c]-n.rects.reference[c],b=Ou(o),g=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,S=y/2-x/2,w=f[h],k=g-p[d]-f[v],P=g/2-p[d]/2+S,j=Pc(w,P,k),_=c;n.modifiersData[r]=(t={},t[_]=j,t.centerOffset=j-P,t)}}function Eq(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||W_(t.elements.popper,i)&&(t.elements.arrow=i))}const Aq={name:"arrow",enabled:!0,phase:"main",fn:Tq,effect:Eq,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function il(e){return e.split("-")[1]}var $q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zq(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:nl(n*i)/i||0,y:nl(r*i)/i||0}}function xw(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,h=p===void 0?0:p,v=a.y,y=v===void 0?0:v,x=typeof d=="function"?d({x:h,y}):{x:h,y};h=x.x,y=x.y;var b=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),S=En,w=Tn,k=window;if(u){var P=Ou(n),j="clientHeight",_="clientWidth";if(P===Un(n)&&(P=To(n),Pi(P).position!=="static"&&l==="absolute"&&(j="scrollHeight",_="scrollWidth")),P=P,i===Tn||(i===En||i===ur)&&o===du){w=cr;var M=f&&P===k&&k.visualViewport?k.visualViewport.height:P[j];y-=M-r.height,y*=c?1:-1}if(i===En||(i===Tn||i===cr)&&o===du){S=ur;var T=f&&P===k&&k.visualViewport?k.visualViewport.width:P[_];h-=T-r.width,h*=c?1:-1}}var O=Object.assign({position:l},u&&$q),q=d===!0?zq({x:h,y},Un(n)):{x:h,y};if(h=q.x,y=q.y,c){var ne;return Object.assign({},O,(ne={},ne[w]=g?"0":"",ne[S]=b?"0":"",ne.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",ne))}return Object.assign({},O,(t={},t[w]=g?y+"px":"",t[S]=b?h+"px":"",t.transform="",t))}function Rq(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Xr(t.placement),variation:il(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,xw(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,xw(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Mq={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Rq,data:{}};var Rd={passive:!0};function Iq(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,l=a===void 0?!0:a,c=Un(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",n.update,Rd)}),l&&c.addEventListener("resize",n.update,Rd),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Rd)}),l&&c.removeEventListener("resize",n.update,Rd)}}const Lq={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Iq,data:{}};var Nq={left:"right",right:"left",bottom:"top",top:"bottom"};function _f(e){return e.replace(/left|right|bottom|top/g,function(t){return Nq[t]})}var Dq={start:"end",end:"start"};function Sw(e){return e.replace(/start|end/g,function(t){return Dq[t]})}function zb(e){var t=Un(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Rb(e){return rl(To(e)).left+zb(e).scrollLeft}function Oq(e,t){var n=Un(e),r=To(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){o=i.width,a=i.height;var u=V_();(u||!u&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:l+Rb(e),y:c}}function Fq(e){var t,n=To(e),r=zb(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=fa(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=fa(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Rb(e),c=-r.scrollTop;return Pi(i||n).direction==="rtl"&&(l+=fa(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:l,y:c}}function Mb(e){var t=Pi(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function K_(e){return["html","body","#document"].indexOf(Yr(e))>=0?e.ownerDocument.body:ar(e)&&Mb(e)?e:K_(wm(e))}function _c(e,t){var n;t===void 0&&(t=[]);var r=K_(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Un(r),a=i?[o].concat(o.visualViewport||[],Mb(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(_c(wm(a)))}function Sv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Bq(e,t){var n=rl(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function ww(e,t,n){return t===F_?Sv(Oq(e,n)):Ca(t)?Bq(t,n):Sv(Fq(To(e)))}function Vq(e){var t=_c(wm(e)),n=["absolute","fixed"].indexOf(Pi(e).position)>=0,r=n&&ar(e)?Ou(e):e;return Ca(r)?t.filter(function(i){return Ca(i)&&W_(i,r)&&Yr(i)!=="body"}):[]}function Wq(e,t,n,r){var i=t==="clippingParents"?Vq(e):[].concat(t),o=[].concat(i,[n]),a=o[0],l=o.reduce(function(c,u){var d=ww(e,u,r);return c.top=fa(d.top,c.top),c.right=wp(d.right,c.right),c.bottom=wp(d.bottom,c.bottom),c.left=fa(d.left,c.left),c},ww(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function q_(e){var t=e.reference,n=e.element,r=e.placement,i=r?Xr(r):null,o=r?il(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(i){case Tn:c={x:a,y:t.y-n.height};break;case cr:c={x:a,y:t.y+t.height};break;case ur:c={x:t.x+t.width,y:l};break;case En:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=i?$b(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case tl:c[u]=c[u]-(t[d]/2-n[d]/2);break;case du:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function fu(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,l=n.boundary,c=l===void 0?cq:l,u=n.rootBoundary,d=u===void 0?F_:u,f=n.elementContext,p=f===void 0?Fl:f,h=n.altBoundary,v=h===void 0?!1:h,y=n.padding,x=y===void 0?0:y,b=H_(typeof x!="number"?x:G_(x,Du)),g=p===Fl?uq:Fl,S=e.rects.popper,w=e.elements[v?g:p],k=Wq(Ca(w)?w:w.contextElement||To(e.elements.popper),c,d,a),P=rl(e.elements.reference),j=q_({reference:P,element:S,placement:i}),_=Sv(Object.assign({},S,j)),M=p===Fl?_:P,T={top:k.top-M.top+b.top,bottom:M.bottom-k.bottom+b.bottom,left:k.left-M.left+b.left,right:M.right-k.right+b.right},O=e.modifiersData.offset;if(p===Fl&&O){var q=O[i];Object.keys(T).forEach(function(ne){var z=[ur,cr].indexOf(ne)>=0?1:-1,X=[Tn,cr].indexOf(ne)>=0?"y":"x";T[ne]+=q[X]*z})}return T}function Uq(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?B_:c,d=il(r),f=d?l?yw:yw.filter(function(v){return il(v)===d}):Du,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var h=p.reduce(function(v,y){return v[y]=fu(e,{placement:y,boundary:i,rootBoundary:o,padding:a})[Xr(y)],v},{});return Object.keys(h).sort(function(v,y){return h[v]-h[y]})}function Hq(e){if(Xr(e)===Tb)return[];var t=_f(e);return[Sw(e),t,Sw(t)]}function Gq(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,y=n.allowedAutoPlacements,x=t.options.placement,b=Xr(x),g=b===x,S=c||(g||!v?[_f(x)]:Hq(x)),w=[x].concat(S).reduce(function(Pe,we){return Pe.concat(Xr(we)===Tb?Uq(t,{placement:we,boundary:d,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:y}):we)},[]),k=t.rects.reference,P=t.rects.popper,j=new Map,_=!0,M=w[0],T=0;T<w.length;T++){var O=w[T],q=Xr(O),ne=il(O)===tl,z=[Tn,cr].indexOf(q)>=0,X=z?"width":"height",V=fu(t,{placement:O,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),I=z?ne?ur:En:ne?cr:Tn;k[X]>P[X]&&(I=_f(I));var D=_f(I),R=[];if(o&&R.push(V[q]<=0),l&&R.push(V[I]<=0,V[D]<=0),R.every(function(Pe){return Pe})){M=O,_=!1;break}j.set(O,R)}if(_)for(var F=v?3:1,G=function(we){var Te=w.find(function(Ge){var Ye=j.get(Ge);if(Ye)return Ye.slice(0,we).every(function(te){return te})});if(Te)return M=Te,"break"},K=F;K>0;K--){var ee=G(K);if(ee==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const Kq={name:"flip",enabled:!0,phase:"main",fn:Gq,requiresIfExists:["offset"],data:{_skip:!1}};function kw(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Cw(e){return[Tn,ur,cr,En].some(function(t){return e[t]>=0})}function qq(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=fu(t,{elementContext:"reference"}),l=fu(t,{altBoundary:!0}),c=kw(a,r),u=kw(l,i,o),d=Cw(c),f=Cw(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const Xq={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:qq};function Yq(e,t,n){var r=Xr(e),i=[En,Tn].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],l=o[1];return a=a||0,l=(l||0)*i,[En,ur].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function Qq(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=B_.reduce(function(d,f){return d[f]=Yq(f,t.rects,o),d},{}),l=a[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const Zq={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Qq};function Jq(e){var t=e.state,n=e.name;t.modifiersData[n]=q_({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const eX={name:"popperOffsets",enabled:!0,phase:"read",fn:Jq,data:{}};function tX(e){return e==="x"?"y":"x"}function nX(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,x=fu(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),b=Xr(t.placement),g=il(t.placement),S=!g,w=$b(b),k=tX(w),P=t.modifiersData.popperOffsets,j=t.rects.reference,_=t.rects.popper,M=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,T=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,q={x:0,y:0};if(P){if(o){var ne,z=w==="y"?Tn:En,X=w==="y"?cr:ur,V=w==="y"?"height":"width",I=P[w],D=I+x[z],R=I-x[X],F=h?-_[V]/2:0,G=g===tl?j[V]:_[V],K=g===tl?-_[V]:-j[V],ee=t.elements.arrow,Pe=h&&ee?Ab(ee):{width:0,height:0},we=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:U_(),Te=we[z],Ge=we[X],Ye=Pc(0,j[V],Pe[V]),te=S?j[V]/2-F-Ye-Te-T.mainAxis:G-Ye-Te-T.mainAxis,re=S?-j[V]/2+F+Ye+Ge+T.mainAxis:K+Ye+Ge+T.mainAxis,$e=t.elements.arrow&&Ou(t.elements.arrow),me=$e?w==="y"?$e.clientTop||0:$e.clientLeft||0:0,it=(ne=O==null?void 0:O[w])!=null?ne:0,pe=I+te-it-me,lt=I+re-it,Be=Pc(h?wp(D,pe):D,I,h?fa(R,lt):R);P[w]=Be,q[w]=Be-I}if(l){var Et,ye=w==="x"?Tn:En,xn=w==="x"?cr:ur,Lt=P[k],dr=k==="y"?"height":"width",Jr=Lt+x[ye],oe=Lt-x[xn],ei=[Tn,En].indexOf(b)!==-1,zo=(Et=O==null?void 0:O[k])!=null?Et:0,Xu=ei?Jr:Lt-j[dr]-_[dr]-zo+T.altAxis,Yu=ei?Lt+j[dr]+_[dr]-zo-T.altAxis:oe,Ro=h&&ei?Pq(Xu,Lt,Yu):Pc(h?Xu:Jr,Lt,h?Yu:oe);P[k]=Ro,q[k]=Ro-Lt}t.modifiersData[r]=q}}const rX={name:"preventOverflow",enabled:!0,phase:"main",fn:nX,requiresIfExists:["offset"]};function iX(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function oX(e){return e===Un(e)||!ar(e)?zb(e):iX(e)}function aX(e){var t=e.getBoundingClientRect(),n=nl(t.width)/e.offsetWidth||1,r=nl(t.height)/e.offsetHeight||1;return n!==1||r!==1}function sX(e,t,n){n===void 0&&(n=!1);var r=ar(t),i=ar(t)&&aX(t),o=To(t),a=rl(e,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Yr(t)!=="body"||Mb(o))&&(l=oX(t)),ar(t)?(c=rl(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Rb(o))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function lX(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function cX(e){var t=lX(e);return xq.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function uX(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function dX(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var jw={placement:"bottom",modifiers:[],strategy:"absolute"};function Pw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function fX(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?jw:i;return function(l,c,u){u===void 0&&(u=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},jw,o),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(b){var g=typeof b=="function"?b(d.options):b;y(),d.options=Object.assign({},o,d.options,g),d.scrollParents={reference:Ca(l)?_c(l):l.contextElement?_c(l.contextElement):[],popper:_c(c)};var S=cX(dX([].concat(r,d.options.modifiers)));return d.orderedModifiers=S.filter(function(w){return w.enabled}),v(),h.update()},forceUpdate:function(){if(!p){var b=d.elements,g=b.reference,S=b.popper;if(Pw(g,S)){d.rects={reference:sX(g,Ou(S),d.options.strategy==="fixed"),popper:Ab(S)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(T){return d.modifiersData[T.name]=Object.assign({},T.data)});for(var w=0;w<d.orderedModifiers.length;w++){if(d.reset===!0){d.reset=!1,w=-1;continue}var k=d.orderedModifiers[w],P=k.fn,j=k.options,_=j===void 0?{}:j,M=k.name;typeof P=="function"&&(d=P({state:d,options:_,name:M,instance:h})||d)}}}},update:uX(function(){return new Promise(function(x){h.forceUpdate(),x(d)})}),destroy:function(){y(),p=!0}};if(!Pw(l,c))return h;h.setOptions(u).then(function(x){!p&&u.onFirstUpdate&&u.onFirstUpdate(x)});function v(){d.orderedModifiers.forEach(function(x){var b=x.name,g=x.options,S=g===void 0?{}:g,w=x.effect;if(typeof w=="function"){var k=w({state:d,name:b,instance:h,options:S}),P=function(){};f.push(k||P)}})}function y(){f.forEach(function(x){return x()}),f=[]}return h}}var pX=[Lq,eX,Mq,kq,Zq,Kq,rX,Aq,Xq],mX=fX({defaultModifiers:pX});const Ba=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Xt={arrowShadowColor:Ba("--popper-arrow-shadow-color"),arrowSize:Ba("--popper-arrow-size","8px"),arrowSizeHalf:Ba("--popper-arrow-size-half"),arrowBg:Ba("--popper-arrow-bg"),transformOrigin:Ba("--popper-transform-origin"),arrowOffset:Ba("--popper-arrow-offset")};function hX(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}const gX={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},vX=e=>gX[e],_w={scroll:!0,resize:!0};function yX(e){let t;return typeof e=="object"?t={enabled:!0,options:{..._w,...e}}:t={enabled:e,options:_w},t}const bX={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},xX={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Tw(e)},effect:({state:e})=>()=>{Tw(e)}},Tw=e=>{e.elements.popper.style.setProperty(Xt.transformOrigin.var,vX(e.placement))},SX={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{wX(e)}},wX=e=>{var n;if(!e.placement)return;const t=kX(e.placement);if((n=e.elements)!=null&&n.arrow&&t){Object.assign(e.elements.arrow.style,{[t.property]:t.value,width:Xt.arrowSize.varRef,height:Xt.arrowSize.varRef,zIndex:-1});const r={[Xt.arrowSizeHalf.var]:`calc(${Xt.arrowSize.varRef} / 2 - 1px)`,[Xt.arrowOffset.var]:`calc(${Xt.arrowSizeHalf.varRef} * -1)`};for(const i in r)e.elements.arrow.style.setProperty(i,r[i])}},kX=e=>{if(e.startsWith("top"))return{property:"bottom",value:Xt.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Xt.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Xt.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Xt.arrowOffset.varRef}},CX={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Ew(e)},effect:({state:e})=>()=>{Ew(e)}},Ew=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=hX(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:Xt.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},jX={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},PX={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function _X(e,t="ltr"){var r;const n=((r=jX[e])==null?void 0:r[t])||e;return t==="ltr"?n:PX[e]??n}function TX(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:i="absolute",arrowPadding:o=8,eventListeners:a=!0,offset:l,gutter:c=8,flip:u=!0,boundary:d="clippingParents",preventOverflow:f=!0,matchWidth:p,direction:h="ltr"}=e,v=m.useRef(null),y=m.useRef(null),x=m.useRef(null),b=_X(r,h),g=m.useRef(()=>{}),S=m.useCallback(()=>{var T;!t||!v.current||!y.current||((T=g.current)==null||T.call(g),x.current=mX(v.current,y.current,{placement:b,modifiers:[CX,SX,xX,{...bX,enabled:!!p},{name:"eventListeners",...yX(a)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:l??[0,c]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!f,options:{boundary:d}},...n??[]],strategy:i}),x.current.forceUpdate(),g.current=x.current.destroy)},[b,t,n,p,a,o,l,c,u,f,d,i]);m.useEffect(()=>()=>{var T;!v.current&&!y.current&&((T=x.current)==null||T.destroy(),x.current=null)},[]);const w=m.useCallback(T=>{v.current=T,S()},[S]),k=m.useCallback((T={},O=null)=>({...T,ref:zt(w,O)}),[w]),P=m.useCallback(T=>{y.current=T,S()},[S]),j=m.useCallback((T={},O=null)=>({...T,ref:zt(P,O),style:{...T.style,position:i,minWidth:p?void 0:"max-content",inset:"0 auto auto 0"}}),[i,P,p]),_=m.useCallback((T={},O=null)=>{const{size:q,shadowColor:ne,bg:z,style:X,...V}=T;return{...V,ref:O,"data-popper-arrow":"",style:EX(T)}},[]),M=m.useCallback((T={},O=null)=>({...T,ref:O,"data-popper-arrow-inner":""}),[]);return{update(){var T;(T=x.current)==null||T.update()},forceUpdate(){var T;(T=x.current)==null||T.forceUpdate()},transformOrigin:Xt.transformOrigin.varRef,referenceRef:w,popperRef:P,getPopperProps:j,getArrowProps:_,getArrowInnerProps:M,getReferenceProps:k}}function EX(e){const{size:t,shadowColor:n,bg:r,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}const[aue,sue,lue,cue]=qH(),[uue,AX]=Ce({strict:!1,name:"MenuContext"});var $X=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Va=new WeakMap,Md=new WeakMap,Id={},m0=0,X_=function(e){return e&&(e.host||X_(e.parentNode))},zX=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=X_(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},RX=function(e,t,n,r){var i=zX(t,Array.isArray(e)?e:[e]);Id[n]||(Id[n]=new WeakMap);var o=Id[n],a=[],l=new Set,c=new Set(i),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};i.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(p){if(l.has(p))d(p);else try{var h=p.getAttribute(r),v=h!==null&&h!=="false",y=(Va.get(p)||0)+1,x=(o.get(p)||0)+1;Va.set(p,y),o.set(p,x),a.push(p),y===1&&v&&Md.set(p,!0),x===1&&p.setAttribute(n,"true"),v||p.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",p,b)}})};return d(t),l.clear(),m0++,function(){a.forEach(function(f){var p=Va.get(f)-1,h=o.get(f)-1;Va.set(f,p),o.set(f,h),p||(Md.has(f)||f.removeAttribute(r),Md.delete(f)),h||f.removeAttribute(n)}),m0--,m0||(Va=new WeakMap,Va=new WeakMap,Md=new WeakMap,Id={})}},MX=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=$X(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),RX(r,i,n,"aria-hidden")):function(){return null}},IX=Object.defineProperty,LX=(e,t,n)=>t in e?IX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,NX=(e,t,n)=>(LX(e,t+"",n),n);class DX{constructor(){NX(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 wv=new DX;function Y_(e,t){const[n,r]=m.useState(0);return m.useEffect(()=>{const i=e.current;if(i){if(t){const o=wv.add(i);r(o)}return()=>{wv.remove(i),r(0)}}},[t,e]),n}function OX(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:l,onEsc:c}=e,u=m.useRef(null),d=m.useRef(null),[f,p,h]=BX(r,"chakra-modal","chakra-modal--header","chakra-modal--body");FX(u,t&&a);const v=Y_(u,t),y=m.useRef(null),x=m.useCallback(M=>{y.current=M.target},[]),b=m.useCallback(M=>{M.key==="Escape"&&(M.stopPropagation(),o&&(n==null||n()),c==null||c())},[o,n,c]),[g,S]=m.useState(!1),[w,k]=m.useState(!1),P=m.useCallback((M={},T=null)=>({role:"dialog",...M,ref:zt(T,u),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":g?p:void 0,"aria-describedby":w?h:void 0,onClick:fe(M.onClick,O=>O.stopPropagation())}),[h,w,f,p,g]),j=m.useCallback(M=>{M.stopPropagation(),y.current===M.target&&wv.isTopModal(u.current)&&(i&&(n==null||n()),l==null||l())},[n,i,l]),_=m.useCallback((M={},T=null)=>({...M,ref:zt(T,d),onClick:fe(M.onClick,j),onKeyDown:fe(M.onKeyDown,b),onMouseDown:fe(M.onMouseDown,x)}),[b,x,j]);return{isOpen:t,onClose:n,headerId:p,bodyId:h,setBodyMounted:k,setHeaderMounted:S,dialogRef:u,overlayRef:d,getDialogProps:P,getDialogContainerProps:_,index:v}}function FX(e,t){const n=e.current;m.useEffect(()=>{if(!(!e.current||!t))return MX(e.current)},[t,e,n])}function BX(e,...t){const n=m.useId(),r=e||n;return m.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}const[VX,Ra]=Ce({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[WX,yo]=Ce({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Fu=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:r,autoFocus:i,trapFocus:o,initialFocusRef:a,finalFocusRef:l,returnFocusOnClose:c,blockScrollOnMount:u,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h,animatePresenceProps:v,onCloseComplete:y}=t,x=Xe("Modal",t),g={...OX(t),autoFocus:i,trapFocus:o,initialFocusRef:a,finalFocusRef:l,returnFocusOnClose:c,blockScrollOnMount:u,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h};return s.jsx(WX,{value:g,children:s.jsx(VX,{value:x,children:s.jsx(Ai,{...v,onExitComplete:y,children:g.isOpen&&s.jsx(hl,{...n,children:r})})})})};Fu.displayName="Modal";var Tf="right-scroll-bar-position",Ef="width-before-scroll-bar",UX="with-scroll-bars-hidden",HX="--removed-body-scroll-bar-size",Q_=l_(),h0=function(){},km=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:h0,onWheelCapture:h0,onTouchMoveCapture:h0}),i=r[0],o=r[1],a=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noRelative,v=e.noIsolation,y=e.inert,x=e.allowPinchZoom,b=e.as,g=b===void 0?"div":b,S=e.gapMode,w=o_(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,P=i_([n,t]),j=Br(Br({},w),i);return m.createElement(m.Fragment,null,d&&m.createElement(k,{sideCar:Q_,removeScrollBar:u,shards:f,noRelative:h,noIsolation:v,inert:y,setCallbacks:o,allowPinchZoom:!!x,lockRef:n,gapMode:S}),a?m.cloneElement(m.Children.only(l),Br(Br({},j),{ref:P})):m.createElement(g,Br({},j,{className:c,ref:P}),l))});km.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};km.classNames={fullWidth:Ef,zeroRight:Tf};var GX=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function KX(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=GX();return t&&e.setAttribute("nonce",t),e}function qX(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function XX(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var YX=function(){var e=0,t=null;return{add:function(n){e==0&&(t=KX())&&(qX(t,n),XX(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},QX=function(){var e=YX();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Z_=function(){var e=QX(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},ZX={left:0,top:0,right:0,gap:0},g0=function(e){return parseInt(e||"",10)||0},JX=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[g0(n),g0(r),g0(i)]},eY=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ZX;var t=JX(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tY=Z_(),Ds="data-scroll-locked",nY=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),`
.`.concat(UX,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(l,"px ").concat(r,`;
}
body[`).concat(Ds,`] {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(i,`px;
padding-top: `).concat(o,`px;
padding-right: `).concat(a,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(l,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(Tf,` {
right: `).concat(l,"px ").concat(r,`;
}
.`).concat(Ef,` {
margin-right: `).concat(l,"px ").concat(r,`;
}
.`).concat(Tf," .").concat(Tf,` {
right: 0 `).concat(r,`;
}
.`).concat(Ef," .").concat(Ef,` {
margin-right: 0 `).concat(r,`;
}
body[`).concat(Ds,`] {
`).concat(HX,": ").concat(l,`px;
}
`)},Aw=function(){var e=parseInt(document.body.getAttribute(Ds)||"0",10);return isFinite(e)?e:0},rY=function(){m.useEffect(function(){return document.body.setAttribute(Ds,(Aw()+1).toString()),function(){var e=Aw()-1;e<=0?document.body.removeAttribute(Ds):document.body.setAttribute(Ds,e.toString())}},[])},iY=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;rY();var o=m.useMemo(function(){return eY(i)},[i]);return m.createElement(tY,{styles:nY(o,!t,i,n?"":"!important")})},kv=!1;if(typeof window<"u")try{var Ld=Object.defineProperty({},"passive",{get:function(){return kv=!0,!0}});window.addEventListener("test",Ld,Ld),window.removeEventListener("test",Ld,Ld)}catch{kv=!1}var Wa=kv?{passive:!1}:!1,oY=function(e){return e.tagName==="TEXTAREA"},J_=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!oY(e)&&n[t]==="visible")},aY=function(e){return J_(e,"overflowY")},sY=function(e){return J_(e,"overflowX")},$w=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=eT(e,r);if(i){var o=tT(e,r),a=o[1],l=o[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},lY=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},cY=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},eT=function(e,t){return e==="v"?aY(t):sY(t)},tT=function(e,t){return e==="v"?lY(t):cY(t)},uY=function(e,t){return e==="h"&&t==="rtl"?-1:1},dY=function(e,t,n,r,i){var o=uY(e,window.getComputedStyle(t).direction),a=o*r,l=n.target,c=t.contains(l),u=!1,d=a>0,f=0,p=0;do{if(!l)break;var h=tT(e,l),v=h[0],y=h[1],x=h[2],b=y-x-o*v;(v||b)&&eT(e,l)&&(f+=b,p+=v);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&Math.abs(f)<1||!d&&Math.abs(p)<1)&&(u=!0),u},Nd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},zw=function(e){return[e.deltaX,e.deltaY]},Rw=function(e){return e&&"current"in e?e.current:e},fY=function(e,t){return e[0]===t[0]&&e[1]===t[1]},pY=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},mY=0,Ua=[];function hY(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),i=m.useState(mY++)[0],o=m.useState(Z_)[0],a=m.useRef(e);m.useEffect(function(){a.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var y=FG([e.lockRef.current],(e.shards||[]).map(Rw),!0).filter(Boolean);return y.forEach(function(x){return x.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),y.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=m.useCallback(function(y,x){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!a.current.allowPinchZoom;var b=Nd(y),g=n.current,S="deltaX"in y?y.deltaX:g[0]-b[0],w="deltaY"in y?y.deltaY:g[1]-b[1],k,P=y.target,j=Math.abs(S)>Math.abs(w)?"h":"v";if("touches"in y&&j==="h"&&P.type==="range")return!1;var _=window.getSelection(),M=_&&_.anchorNode,T=M?M===P||M.contains(P):!1;if(T)return!1;var O=$w(j,P);if(!O)return!0;if(O?k=j:(k=j==="v"?"h":"v",O=$w(j,P)),!O)return!1;if(!r.current&&"changedTouches"in y&&(S||w)&&(r.current=k),!k)return!0;var q=r.current||k;return dY(q,x,y,q==="h"?S:w)},[]),c=m.useCallback(function(y){var x=y;if(!(!Ua.length||Ua[Ua.length-1]!==o)){var b="deltaY"in x?zw(x):Nd(x),g=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&fY(k.delta,b)})[0];if(g&&g.should){x.cancelable&&x.preventDefault();return}if(!g){var S=(a.current.shards||[]).map(Rw).filter(Boolean).filter(function(k){return k.contains(x.target)}),w=S.length>0?l(x,S[0]):!a.current.noIsolation;w&&x.cancelable&&x.preventDefault()}}},[]),u=m.useCallback(function(y,x,b,g){var S={name:y,delta:x,target:b,should:g,shadowParent:gY(b)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(w){return w!==S})},1)},[]),d=m.useCallback(function(y){n.current=Nd(y),r.current=void 0},[]),f=m.useCallback(function(y){u(y.type,zw(y),y.target,l(y,e.lockRef.current))},[]),p=m.useCallback(function(y){u(y.type,Nd(y),y.target,l(y,e.lockRef.current))},[]);m.useEffect(function(){return Ua.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Wa),document.addEventListener("touchmove",c,Wa),document.addEventListener("touchstart",d,Wa),function(){Ua=Ua.filter(function(y){return y!==o}),document.removeEventListener("wheel",c,Wa),document.removeEventListener("touchmove",c,Wa),document.removeEventListener("touchstart",d,Wa)}},[]);var h=e.removeScrollBar,v=e.inert;return m.createElement(m.Fragment,null,v?m.createElement(o,{styles:pY(i)}):null,h?m.createElement(iY,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function gY(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const vY=BG(Q_,hY);var nT=m.forwardRef(function(e,t){return m.createElement(km,Br({},e,{ref:t,sideCar:vY}))});nT.classNames=km.classNames;function rT(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:a,finalFocusRef:l,returnFocusOnClose:c,preserveScrollBarGap:u,lockFocusAcrossFrames:d,isOpen:f}=yo(),[p,h]=Cy();m.useEffect(()=>{!p&&h&&setTimeout(h)},[p,h]);const v=Y_(r,f);return s.jsx(I_,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:l,restoreFocus:c,contentRef:r,lockFocusAcrossFrames:d,children:s.jsx(nT,{removeScrollBar:!u,allowPinchZoom:a,enabled:v===1&&o,forwardProps:!0,children:e.children})})}const yY={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:i})=>({opacity:0,x:e,y:t,transition:(n==null?void 0:n.exit)??jr.exit(ca.exit,i),transitionEnd:r==null?void 0:r.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:(e==null?void 0:e.enter)??jr.enter(ca.enter,n),transitionEnd:t==null?void 0:t.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:i,delay:o})=>{const a={x:t,y:e};return{opacity:0,transition:(n==null?void 0:n.exit)??jr.exit(ca.exit,o),...i?{...a,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...a,...r==null?void 0:r.exit}}}}},Qi={initial:"initial",animate:"enter",exit:"exit",variants:yY},bY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:o=!0,className:a,offsetX:l=0,offsetY:c=8,transition:u,transitionEnd:d,delay:f,animatePresenceProps:p,...h}=t,v=r?i&&r:!0,y=i||r?"enter":"exit",x={offsetX:l,offsetY:c,reverse:o,transition:u,transitionEnd:d,delay:f};return s.jsx(Ai,{...p,custom:x,children:v&&s.jsx(qn.div,{ref:n,className:W("chakra-offset-slide",a),custom:x,...Qi,animate:y,...h})})});bY.displayName="SlideFade";const xY={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:i})=>({opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(n==null?void 0:n.exit)??jr.exit(ca.exit,i)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:(t==null?void 0:t.enter)??jr.enter(ca.enter,n),transitionEnd:e==null?void 0:e.enter})},Ib={initial:"exit",animate:"enter",exit:"exit",variants:xY},SY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:o=!0,initialScale:a=.95,className:l,transition:c,transitionEnd:u,delay:d,animatePresenceProps:f,...p}=t,h=r?i&&r:!0,v=i||r?"enter":"exit",y={initialScale:a,reverse:o,transition:c,transitionEnd:u,delay:d};return s.jsx(Ai,{...f,custom:y,children:h&&s.jsx(qn.div,{ref:n,className:W("chakra-offset-slide",l),...Ib,animate:v,custom:y,...p})})});SY.displayName="ScaleFade";const wY={slideInBottom:{...Qi,custom:{offsetY:16,reverse:!0}},slideInRight:{...Qi,custom:{offsetX:16,reverse:!0}},slideInTop:{...Qi,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Qi,custom:{offsetX:-16,reverse:!0}},scale:{...Ib,custom:{initialScale:.95,reverse:!0}},none:{}},kY=N(qn.section),CY=e=>wY[e||"none"],iT=m.forwardRef((e,t)=>{const{preset:n,motionProps:r=CY(n),...i}=e;return s.jsx(kY,{ref:t,...r,...i})});iT.displayName="ModalTransition";const Cm=B((e,t)=>{const{className:n,children:r,containerProps:i,motionProps:o,...a}=e,{getDialogProps:l,getDialogContainerProps:c}=yo(),u=l(a,t),d=c(i),f=W("chakra-modal__content",n),p=Ra(),h={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...p.dialog},v={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...p.dialogContainer},{motionPreset:y}=yo();return s.jsx(rT,{children:s.jsx(N.div,{...d,className:"chakra-modal__content-container",tabIndex:-1,__css:v,children:s.jsx(iT,{preset:y,motionProps:o,className:f,...u,__css:h,children:r})})})});Cm.displayName="ModalContent";const gl=B((e,t)=>{const{className:n,...r}=e,{bodyId:i,setBodyMounted:o}=yo();m.useEffect(()=>(o(!0),()=>o(!1)),[o]);const a=W("chakra-modal__body",n),l=Ra();return s.jsx(N.div,{ref:t,className:a,id:i,...r,__css:l.body})});gl.displayName="ModalBody";const Bu=B((e,t)=>{const{onClick:n,className:r,...i}=e,{onClose:o}=yo(),a=W("chakra-modal__close-btn",r),l=Ra();return s.jsx(ym,{ref:t,__css:l.closeButton,className:a,onClick:fe(n,c=>{c.stopPropagation(),o()}),...i})});Bu.displayName="ModalCloseButton";const jm=B((e,t)=>{const{className:n,...r}=e,i=W("chakra-modal__footer",n),o=Ra(),a={display:"flex",alignItems:"center",justifyContent:"flex-end",...o.footer};return s.jsx(N.footer,{ref:t,...r,__css:a,className:i})});jm.displayName="ModalFooter";const vl=B((e,t)=>{const{className:n,...r}=e,{headerId:i,setHeaderMounted:o}=yo();m.useEffect(()=>(o(!0),()=>o(!1)),[o]);const a=W("chakra-modal__header",n),l=Ra(),c={flex:0,...l.header};return s.jsx(N.header,{ref:t,className:a,id:i,...r,__css:c})});vl.displayName="ModalHeader";const jY={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:(e==null?void 0:e.enter)??jr.enter(ca.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)??jr.exit(ca.exit,n),transitionEnd:t==null?void 0:t.exit})},oT={initial:"exit",animate:"enter",exit:"exit",variants:jY},PY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:i,className:o,transition:a,transitionEnd:l,delay:c,animatePresenceProps:u,...d}=t,f=i||r?"enter":"exit",p=r?i&&r:!0,h={transition:a,transitionEnd:l,delay:c};return s.jsx(Ai,{...u,custom:h,children:p&&s.jsx(qn.div,{ref:n,className:W("chakra-fade",o),custom:h,...oT,animate:f,...d})})});PY.displayName="Fade";const _Y=N(qn.div),yl=B((e,t)=>{const{className:n,transition:r,motionProps:i,...o}=e,a=W("chakra-modal__overlay",n),c={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Ra().overlay},{motionPreset:u}=yo(),f=i||(u==="none"?{}:oT);return s.jsx(_Y,{...f,__css:c,ref:t,className:a,...o})});yl.displayName="ModalOverlay";function TY(e){const{leastDestructiveRef:t,...n}=e;return s.jsx(Fu,{...n,initialFocusRef:t})}const EY=B((e,t)=>s.jsx(Cm,{ref:t,role:"alertdialog",...e})),[AY,$Y]=Ce(),zY={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function RY(e,t){var n;if(e)return((n=zY[e])==null?void 0:n[t])??e}function aT(e){var u;const{isOpen:t,onClose:n,placement:r="right",children:i,...o}=e,a=$i(),l=(u=a.components)==null?void 0:u.Drawer,c=RY(r,a.direction);return s.jsx(AY,{value:{placement:c},children:s.jsx(Fu,{isOpen:t,onClose:n,styleConfig:l,...o,children:i})})}const Mw={exit:{duration:.15,ease:fi.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},MY={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{const{exit:i}=uv({direction:e});return{...i,transition:(t==null?void 0:t.exit)??jr.exit(Mw.exit,r),transitionEnd:n==null?void 0:n.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{const{enter:i}=uv({direction:e});return{...i,transition:(n==null?void 0:n.enter)??jr.enter(Mw.enter,r),transitionEnd:t==null?void 0:t.enter}}},sT=m.forwardRef(function(t,n){const{direction:r="right",style:i,unmountOnExit:o,in:a,className:l,transition:c,transitionEnd:u,delay:d,motionProps:f,animatePresenceProps:p,...h}=t,v=uv({direction:r}),y=Object.assign({position:"fixed"},v.position,i),x=o?a&&o:!0,b=a||o?"enter":"exit",g={transitionEnd:u,transition:c,direction:r,delay:d};return s.jsx(Ai,{...p,custom:g,children:x&&s.jsx(qn.div,{...h,ref:n,initial:"exit",className:W("chakra-slide",l),animate:b,exit:"exit",custom:g,variants:MY,style:y,...f})})});sT.displayName="Slide";const IY=N(sT),Lb=B((e,t)=>{const{className:n,children:r,motionProps:i,containerProps:o,...a}=e,{getDialogProps:l,getDialogContainerProps:c,isOpen:u}=yo(),d=l(a,t),f=c(o),p=W("chakra-modal__content",n),h=Ra(),v={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},y={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{placement:x}=$Y();return s.jsx(rT,{children:s.jsx(N.div,{...f,className:"chakra-modal__content-container",__css:y,children:s.jsx(IY,{motionProps:i,direction:x,in:u,className:p,...d,__css:v,children:r})})})});Lb.displayName="DrawerContent";function LY(e){var n;const t=m.version;return typeof t!="string"||t.startsWith("18.")?e==null?void 0:e.ref:(n=e==null?void 0:e.props)==null?void 0:n.ref}function NY(e,t,n){return(e-t)*100/(n-t)}_u({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});_u({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});const DY=_u({"0%":{left:"-40%"},"100%":{left:"100%"}}),OY=_u({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function FY(e){const{value:t=0,min:n,max:r,valueText:i,getValueText:o,isIndeterminate:a,role:l="progressbar"}=e,c=NY(t,n,r);return{bind:{"data-indeterminate":a?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":a?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof o=="function"?o(t,c):i})(),role:l},percent:c,value:t}}const[BY,VY]=Ce({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),WY=B((e,t)=>{const{min:n,max:r,value:i,isIndeterminate:o,role:a,...l}=e,c=FY({value:i,min:n,max:r,isIndeterminate:o,role:a}),d={height:"100%",...VY().filledTrack};return s.jsx(N.div,{ref:t,style:{width:`${c.percent}%`,...l.style},...c.bind,...l,__css:d})}),kp=B((e,t)=>{var j;const{value:n,min:r=0,max:i=100,hasStripe:o,isAnimated:a,children:l,borderRadius:c,isIndeterminate:u,"aria-label":d,"aria-labelledby":f,"aria-valuetext":p,title:h,role:v,...y}=Ae(e),x=Xe("Progress",e),b=c??((j=x.track)==null?void 0:j.borderRadius),g={animation:`${OY} 1s linear infinite`},k={...!u&&o&&a&&g,...u&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${DY} 1s ease infinite normal none running`}},P={overflow:"hidden",position:"relative",...x.track};return s.jsx(N.div,{ref:t,borderRadius:b,__css:P,...y,children:s.jsxs(BY,{value:x,children:[s.jsx(WY,{"aria-label":d,"aria-labelledby":f,"aria-valuetext":p,min:r,max:i,value:n,isIndeterminate:u,css:k,borderRadius:b,title:h,role:v}),l]})})});kp.displayName="Progress";function UY(e){return e&&Mt(e)&&Mt(e.target)}function HY(e={}){const{onChange:t,value:n,defaultValue:r,name:i,isDisabled:o,isFocusable:a,isNative:l,...c}=e,[u,d]=m.useState(r||""),f=typeof n<"u",p=f?n:u,h=m.useRef(null),v=m.useCallback(()=>{const k=h.current;if(!k)return;let P="input:not(:disabled):checked";const j=k.querySelector(P);if(j){j.focus();return}P="input:not(:disabled)";const _=k.querySelector(P);_==null||_.focus()},[]),x=`radio-${m.useId()}`,b=i||x,g=m.useCallback(k=>{const P=UY(k)?k.target.value:k;f||d(P),t==null||t(String(P))},[t,f]),S=m.useCallback((k={},P=null)=>({...k,ref:zt(P,h),role:"radiogroup"}),[]),w=m.useCallback((k={},P=null)=>({...k,ref:P,name:b,[l?"checked":"isChecked"]:p!=null?k.value===p:void 0,onChange(_){g(_)},"data-radiogroup":!0}),[l,b,g,p]);return{getRootProps:S,getRadioProps:w,name:b,ref:h,focus:v,setValue:d,value:p,onChange:g,isDisabled:o,isFocusable:a,htmlProps:c}}const[GY,lT]=Ce({name:"RadioGroupContext",strict:!1}),cT=B((e,t)=>{const{colorScheme:n,size:r,variant:i,children:o,className:a,isDisabled:l,isFocusable:c,...u}=e,{value:d,onChange:f,getRootProps:p,name:h,htmlProps:v}=HY(u),y=m.useMemo(()=>({name:h,size:r,onChange:f,colorScheme:n,value:d,variant:i,isDisabled:l,isFocusable:c}),[h,r,f,n,d,i,l,c]);return s.jsx(GY,{value:y,children:s.jsx(N.div,{...p(v,t),className:W("chakra-radio-group",a),children:o})})});cT.displayName="RadioGroup";function KY(e={}){const{defaultChecked:t,isChecked:n,isFocusable:r,isDisabled:i,isReadOnly:o,isRequired:a,onChange:l,isInvalid:c,name:u,value:d,id:f,"data-radiogroup":p,"aria-describedby":h,...v}=e,y=`radio-${m.useId()}`,x=Lu(),g=!!lT()||!!p;let w=!!x&&!g?x.id:y;w=f??w;const k=i??(x==null?void 0:x.isDisabled),P=o??(x==null?void 0:x.isReadOnly),j=a??(x==null?void 0:x.isRequired),_=c??(x==null?void 0:x.isInvalid),[M,T]=m.useState(!1),[O,q]=m.useState(!1),[ne,z]=m.useState(!1),[X,V]=m.useState(!!t),I=typeof n<"u",D=I?n:X,R=m.useRef(!1);m.useEffect(()=>XP(re=>{R.current=re}),[]);const F=m.useCallback(re=>{if(P||k){re.preventDefault();return}I||V(re.currentTarget.checked),l==null||l(re)},[I,k,P,l]),G=m.useCallback(re=>{re.key===" "&&z(!0)},[z]),K=m.useCallback(re=>{re.key===" "&&z(!1)},[z]),ee=m.useCallback((re={},$e=null)=>({...re,ref:$e,"data-active":le(ne),"data-hover":le(O),"data-disabled":le(k),"data-invalid":le(_),"data-checked":le(D),"data-focus":le(M),"data-focus-visible":le(M&&R.current),"data-readonly":le(P),"aria-hidden":!0,onMouseDown:fe(re.onMouseDown,()=>z(!0)),onMouseUp:fe(re.onMouseUp,()=>z(!1)),onMouseEnter:fe(re.onMouseEnter,()=>q(!0)),onMouseLeave:fe(re.onMouseLeave,()=>q(!1))}),[ne,O,k,_,D,M,P]),{onFocus:Pe,onBlur:we}=x??{},Te=m.useCallback((re={},$e=null)=>{const me=k&&!r;return{...re,id:w,ref:$e,type:"radio",name:u,value:d,onChange:fe(re.onChange,F),onBlur:fe(we,re.onBlur,()=>T(!1)),onFocus:fe(Pe,re.onFocus,()=>T(!0)),onKeyDown:fe(re.onKeyDown,G),onKeyUp:fe(re.onKeyUp,K),checked:D,disabled:me,readOnly:P,required:j,"aria-invalid":hi(_),"aria-disabled":hi(me),"aria-required":hi(j),"data-readonly":le(P),"aria-describedby":h,style:JP}},[k,r,w,u,d,F,we,Pe,G,K,D,P,j,_,h]);return{state:{isInvalid:_,isFocused:M,isChecked:D,isActive:ne,isHovered:O,isDisabled:k,isReadOnly:P,isRequired:j},getRadioProps:ee,getInputProps:Te,getLabelProps:(re={},$e=null)=>({...re,ref:$e,onMouseDown:fe(re.onMouseDown,qY),"data-disabled":le(k),"data-checked":le(D),"data-invalid":le(_)}),getRootProps:(re,$e=null)=>({htmlFor:w,...re,ref:$e,"data-disabled":le(k),"data-checked":le(D),"data-invalid":le(_)}),htmlProps:v}}function qY(e){e.preventDefault(),e.stopPropagation()}const Cv=B((e,t)=>{const n=lT(),{onChange:r,value:i}=e,o=Xe("Radio",{...n,...e}),a=Ae(e),{spacing:l="0.5rem",children:c,isDisabled:u=n==null?void 0:n.isDisabled,isFocusable:d=n==null?void 0:n.isFocusable,inputProps:f,...p}=a;let h=e.isChecked;(n==null?void 0:n.value)!=null&&i!=null&&(h=n.value===i);let v=r;n!=null&&n.onChange&&i!=null&&(v=A$(n.onChange,r));const y=(e==null?void 0:e.name)??(n==null?void 0:n.name),{getInputProps:x,getRadioProps:b,getLabelProps:g,getRootProps:S,htmlProps:w}=KY({...p,isChecked:h,isFocusable:d,isDisabled:u,onChange:v,name:y}),[k,P]=r6(w,u6),j=b(P),_=x(f,t),M=g(),T=Object.assign({},k,S()),O={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...o.container},q={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...o.control},ne={userSelect:"none",marginStart:l,...o.label};return s.jsxs(N.label,{className:"chakra-radio",...T,__css:O,children:[s.jsx("input",{className:"chakra-radio__input",..._}),s.jsx(N.span,{className:"chakra-radio__control",...j,__css:q}),c&&s.jsx(N.span,{className:"chakra-radio__label",...M,__css:ne,children:c})]})});Cv.displayName="Radio";const uT=B(function(t,n){const{children:r,placeholder:i,className:o,...a}=t;return s.jsxs(N.select,{...a,ref:n,className:W("chakra-select",o),children:[i&&s.jsx("option",{value:"",children:i}),r]})});uT.displayName="SelectField";const dT=B((e,t)=>{var S;const n=Xe("Select",e),{rootProps:r,placeholder:i,icon:o,color:a,height:l,h:c,minH:u,minHeight:d,iconColor:f,iconSize:p,...h}=Ae(e),[v,y]=r6(h,u6),x=QP(y),b={width:"100%",height:"fit-content",position:"relative",color:a},g={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...(S=n.field)==null?void 0:S._focus}};return s.jsxs(N.div,{className:"chakra-select__wrapper",__css:b,...v,...r,children:[s.jsx(uT,{ref:t,height:c??l,minH:u??d,placeholder:i,...x,__css:g,children:e.children}),s.jsx(fT,{"data-disabled":le(x.disabled),...(f||a)&&{color:f||a},__css:n.icon,...p&&{fontSize:p},children:o})]})});dT.displayName="Select";const XY=e=>s.jsx("svg",{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),YY=N("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),fT=e=>{const{children:t=s.jsx(XY,{}),...n}=e,r=m.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return s.jsx(YY,{...n,className:"chakra-select__icon-wrapper",children:m.isValidElement(t)?r:null})};fT.displayName="SelectIcon";const ja=N("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});ja.displayName="Spacer";const pT=e=>s.jsx(N.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});pT.displayName="StackItem";function QY(e){const{spacing:t,direction:n}=e,r={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{"&":Z1(n,i=>r[i])}}const Se=B((e,t)=>{const{isInline:n,direction:r,align:i,justify:o,spacing:a="0.5rem",wrap:l,children:c,divider:u,className:d,shouldWrapChildren:f,...p}=e,h=n?"row":r??"column",v=m.useMemo(()=>QY({spacing:a,direction:h}),[a,h]),y=!!u,x=!f&&!y,b=m.useMemo(()=>{const S=X1(c);return x?S:S.map((w,k)=>{const P=typeof w.key<"u"?w.key:k,j=k+1===S.length,M=f?s.jsx(pT,{children:w},P):w;if(!y)return M;const T=m.cloneElement(u,{__css:v}),O=j?null:T;return s.jsxs(m.Fragment,{children:[M,O]},P)})},[u,v,y,x,f,c]),g=W("chakra-stack",d);return s.jsx(N.div,{ref:t,display:"flex",alignItems:i,justifyContent:o,flexDirection:h,flexWrap:l,gap:y?void 0:a,className:g,...p,children:b})});Se.displayName="Stack";const ge=B((e,t)=>s.jsx(Se,{align:"center",...e,direction:"row",ref:t}));ge.displayName="HStack";const Cp=B((e,t)=>s.jsx(Se,{align:"center",...e,direction:"column",ref:t}));Cp.displayName="VStack";const[ZY,mT]=Ce({name:"StatStylesContext",errorMessage:`useStatStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Stat />" `}),Ho=B(function(t,n){const r=Xe("Stat",t),i={position:"relative",flex:"1 1 0%",...r.container},{className:o,children:a,...l}=Ae(t);return s.jsx(ZY,{value:r,children:s.jsx(N.div,{ref:n,...l,className:W("chakra-stat",o),__css:i,children:s.jsx("dl",{children:a})})})});Ho.displayName="Stat";const Go=B(function(t,n){const r=mT();return s.jsx(N.dt,{ref:n,...t,className:W("chakra-stat__label",t.className),__css:r.label})});Go.displayName="StatLabel";const Fi=B(function(t,n){const r=mT();return s.jsx(N.dd,{ref:n,...t,className:W("chakra-stat__number",t.className),__css:{...r.number,fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}})});Fi.displayName="StatNumber";const[JY,Eo]=Ce({name:"StepContext"}),[eQ,Ma]=Tr("Stepper"),tQ=B(function(t,n){const{orientation:r,status:i,showLastSeparator:o}=Eo(),a=Ma();return s.jsx(N.div,{ref:n,"data-status":i,"data-orientation":r,"data-stretch":le(o),__css:a.step,...t,className:W("chakra-step",t.className)})}),nQ=B(function(t,n){const{status:r}=Eo(),i=Ma();return s.jsx(N.p,{ref:n,"data-status":r,...t,className:W("chakra-step__description",t.className),__css:i.description})});function rQ(e){return s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1em",width:"1em",...e,children:s.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function iQ(e){const{status:t}=Eo(),n=Ma(),r=t==="complete"?rQ:void 0;return s.jsx(Tt,{as:r,__css:n.icon,...e,className:W("chakra-step__icon",e.className)})}const Iw=B(function(t,n){const{children:r,...i}=t,{status:o,index:a}=Eo(),l=Ma();return s.jsx(N.div,{ref:n,"data-status":o,__css:l.number,...i,className:W("chakra-step__number",t.className),children:r||a+1})});function oQ(e){const{complete:t,incomplete:n,active:r}=e,i=Eo();let o=null;switch(i.status){case"complete":o=sn(t,i);break;case"incomplete":o=sn(n,i);break;case"active":o=sn(r,i);break}return o?s.jsx(s.Fragment,{children:o}):null}const aQ=B(function(t,n){const{status:r}=Eo(),i=Ma();return s.jsx(N.div,{ref:n,"data-status":r,...t,__css:i.indicator,className:W("chakra-step__indicator",t.className)})}),hT=B(function(t,n){const{orientation:r,status:i,isLast:o,showLastSeparator:a}=Eo(),l=Ma();return o&&!a?null:s.jsx(N.div,{ref:n,role:"separator","data-orientation":r,"data-status":i,__css:l.separator,...t,className:W("chakra-step__separator",t.className)})}),sQ=B(function(t,n){const{status:r}=Eo(),i=Ma();return s.jsx(N.h3,{ref:n,"data-status":r,...t,__css:i.title,className:W("chakra-step__title",t.className)})}),lQ=B(function(t,n){const r=Xe("Stepper",t),{children:i,index:o,orientation:a="horizontal",showLastSeparator:l=!1,...c}=Ae(t),u=m.Children.toArray(i),d=u.length;function f(p){return p<o?"complete":p>o?"incomplete":"active"}return s.jsx(N.div,{ref:n,"aria-label":"Progress","data-orientation":a,...c,__css:r.stepper,className:W("chakra-stepper",t.className),children:s.jsx(eQ,{value:r,children:u.map((p,h)=>s.jsx(JY,{value:{index:h,status:f(h),orientation:a,showLastSeparator:l,count:d,isFirst:h===0,isLast:h===d-1},children:p},h))})})}),oc=B(function(t,n){const r=Xe("Switch",t),{spacing:i="0.5rem",children:o,...a}=Ae(t),{getIndicatorProps:l,getInputProps:c,getCheckboxProps:u,getRootProps:d,getLabelProps:f}=SG(a),p=m.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),h=m.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),v=m.useMemo(()=>({userSelect:"none",marginStart:i,...r.label}),[i,r.label]);return s.jsxs(N.label,{...d(),className:W("chakra-switch",t.className),__css:p,children:[s.jsx("input",{className:"chakra-switch__input",...c({},n)}),s.jsx(N.span,{...u(),className:"chakra-switch__track",__css:h,children:s.jsx(N.span,{__css:r.thumb,className:"chakra-switch__thumb",...l()})}),o&&s.jsx(N.span,{className:"chakra-switch__label",...f(),__css:v,children:o})]})});oc.displayName="Switch";const[cQ,Vu]=Ce({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Table />" `}),Pm=B((e,t)=>{const n=Xe("Table",e),{className:r,layout:i,...o}=Ae(e);return s.jsx(cQ,{value:n,children:s.jsx(N.table,{ref:t,__css:{tableLayout:i,...n.table},className:W("chakra-table",r),...o})})});Pm.displayName="Table";const Nb=B((e,t)=>{const{overflow:n,overflowX:r,className:i,...o}=e;return s.jsx(N.div,{ref:t,className:W("chakra-table__container",i),...o,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:n??r??"auto",overflowY:"hidden",maxWidth:"100%"}})}),Db=B((e,t)=>{const n=Vu();return s.jsx(N.tbody,{...e,ref:t,__css:n.tbody})}),qt=B(({isNumeric:e,...t},n)=>{const r=Vu();return s.jsx(N.td,{...t,ref:n,__css:r.td,"data-is-numeric":e})}),fn=B(({isNumeric:e,...t},n)=>{const r=Vu();return s.jsx(N.th,{...t,ref:n,__css:r.th,"data-is-numeric":e})}),Ob=B((e,t)=>{const n=Vu();return s.jsx(N.thead,{...e,ref:t,__css:n.thead})}),fo=B((e,t)=>{const n=Vu();return s.jsx(N.tr,{...e,ref:t,__css:n.tr})});function uQ(e,t){const n=e??"bottom",i={"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(i==null?void 0:i[t])??n}function dQ(e,t){const n=i=>({...t,...i,position:uQ((i==null?void 0:i.position)??(t==null?void 0:t.position),e)}),r=i=>{const o=n(i),a=BP(o);return Fr.notify(a,o)};return r.update=(i,o)=>{Fr.update(i,n(o))},r.promise=(i,o)=>{const a=r({...o.loading,status:"loading",duration:null});i.then(l=>r.update(a,{status:"success",duration:5e3,...sn(o.success,l)})).catch(l=>r.update(a,{status:"error",duration:5e3,...sn(o.error,l)}))},r.closeAll=Fr.closeAll,r.close=Fr.close,r.isActive=Fr.isActive,r}function Zr(e){const{theme:t}=MP(),n=FH();return m.useMemo(()=>dQ(t.direction,{...n,...e}),[e,t.direction,n])}const fQ={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},jv=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},Af=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function pQ(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:i,closeOnScroll:o,closeOnPointerDown:a=i,closeOnEsc:l=!0,onOpen:c,onClose:u,placement:d,id:f,isOpen:p,defaultIsOpen:h,arrowSize:v=10,arrowShadowColor:y,arrowPadding:x,modifiers:b,isDisabled:g,gutter:S,offset:w,direction:k,...P}=e,{isOpen:j,onOpen:_,onClose:M}=Cu({isOpen:p,defaultIsOpen:h,onOpen:c,onClose:u}),{referenceRef:T,getPopperProps:O,getArrowInnerProps:q,getArrowProps:ne}=TX({enabled:j,placement:d,arrowPadding:x,modifiers:b,gutter:S,offset:w,direction:k}),z=m.useId(),V=`tooltip-${f??z}`,I=m.useRef(null),D=m.useRef(void 0),R=m.useCallback(()=>{D.current&&(clearTimeout(D.current),D.current=void 0)},[]),F=m.useRef(void 0),G=m.useCallback(()=>{F.current&&(clearTimeout(F.current),F.current=void 0)},[]),K=m.useCallback(()=>{G(),M()},[M,G]),ee=mQ(I,K),Pe=m.useCallback(()=>{if(!g&&!D.current){j&&ee();const me=Af(I);D.current=me.setTimeout(_,t)}},[ee,g,j,_,t]),we=m.useCallback(()=>{R();const me=Af(I);F.current=me.setTimeout(K,n)},[n,K,R]),Te=m.useCallback(()=>{j&&r&&we()},[r,we,j]),Ge=m.useCallback(()=>{j&&a&&we()},[a,we,j]),Ye=m.useCallback(me=>{j&&me.key==="Escape"&&we()},[j,we]);uf(()=>jv(I),"keydown",l?Ye:void 0),uf(()=>{if(!o)return null;const me=I.current;if(!me)return null;const it=n6(me);return it.localName==="body"?Af(I):it},"scroll",()=>{j&&o&&K()},{passive:!0,capture:!0}),m.useEffect(()=>{g&&(R(),j&&M())},[g,j,M,R]),m.useEffect(()=>()=>{R(),G()},[R,G]),uf(()=>I.current,"pointerleave",we);const te=m.useCallback((me={},it=null)=>({...me,ref:zt(I,it,T),onPointerEnter:fe(me.onPointerEnter,lt=>{lt.pointerType!=="touch"&&Pe()}),onClick:fe(me.onClick,Te),onPointerDown:fe(me.onPointerDown,Ge),onFocus:fe(me.onFocus,Pe),onBlur:fe(me.onBlur,we),"aria-describedby":j?V:void 0}),[Pe,we,Ge,j,V,Te,T]),re=m.useCallback((me={},it=null)=>O({...me,style:{...me.style,[Xt.arrowSize.var]:v?`${v}px`:void 0,[Xt.arrowShadowColor.var]:y}},it),[O,v,y]),$e=m.useCallback((me={},it=null)=>{const pe={...me.style,position:"relative",transformOrigin:Xt.transformOrigin.varRef};return{ref:it,...P,...me,id:V,role:"tooltip",style:pe}},[P,V]);return{isOpen:j,show:Pe,hide:we,getTriggerProps:te,getTooltipProps:$e,getTooltipPositionerProps:re,getArrowProps:ne,getArrowInnerProps:q}}const v0="chakra-ui:close-tooltip";function mQ(e,t){return m.useEffect(()=>{const n=jv(e);return n.addEventListener(v0,t),()=>n.removeEventListener(v0,t)},[t,e]),()=>{const n=jv(e),r=Af(e);n.dispatchEvent(new r.CustomEvent(v0))}}const hQ=N(qn.div),Fb=B((e,t)=>{const n=Xn("Tooltip",e),r=Ae(e),i=$i(),{children:o,label:a,shouldWrapChildren:l,"aria-label":c,hasArrow:u,bg:d,portalProps:f,background:p,backgroundColor:h,bgColor:v,motionProps:y,animatePresenceProps:x,...b}=r,g=p??h??d??v;if(g){n.bg=g;const T=Uz(i,"colors",g);n[Xt.arrowBg.var]=T}const S=pQ({...b,direction:i.direction}),w=!m.isValidElement(o)||l;let k;if(w)k=s.jsx(N.span,{display:"inline-block",tabIndex:0,...S.getTriggerProps(),children:o});else{const T=m.Children.only(o);k=m.cloneElement(T,S.getTriggerProps(T.props,LY(T)))}const P=!!c,j=S.getTooltipProps({},t),_=P?Q1(j,["role","id"]):j,M=e6(j,["role","id"]);return a?s.jsxs(s.Fragment,{children:[k,s.jsx(Ai,{...x,children:S.isOpen&&s.jsx(hl,{...f,children:s.jsx(N.div,{...S.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"},children:s.jsxs(hQ,{variants:fQ,initial:"exit",animate:"enter",exit:"exit",...y,..._,__css:n,children:[a,P&&s.jsx(N.span,{srOnly:!0,...M,children:c}),u&&s.jsx(N.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:s.jsx(N.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}})})]})})})})]}):s.jsx(s.Fragment,{children:o})});Fb.displayName="Tooltip";const _t=B(function(t,n){const r=Xn("Heading",t),{className:i,...o}=Ae(t);return s.jsx(N.h2,{ref:n,className:W("chakra-heading",t.className),...o,__css:r})});_t.displayName="Heading";const Z=B(function(t,n){const r=Xn("Text",t),{className:i,align:o,decoration:a,casing:l,...c}=Ae(t),u=Y1({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return s.jsx(N.p,{ref:n,className:W("chakra-text",t.className),...u,...c,__css:r})});Z.displayName="Text";const gT=B(function(t,n){const{spacing:r="0.5rem",spacingX:i,spacingY:o,children:a,justify:l,direction:c,align:u,className:d,shouldWrapChildren:f,...p}=t,h=m.useMemo(()=>f?m.Children.map(a,(v,y)=>s.jsx(Bb,{children:v},y)):a,[a,f]);return s.jsx(N.div,{ref:n,className:W("chakra-wrap",d),...p,children:s.jsx(N.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:l,alignItems:u,flexDirection:c,listStyleType:"none",gap:r,columnGap:i,rowGap:o,padding:"0"},children:h})})});gT.displayName="Wrap";const Bb=B(function(t,n){const{className:r,...i}=t;return s.jsx(N.li,{ref:n,__css:{display:"flex",alignItems:"flex-start"},className:W("chakra-wrap__listitem",r),...i})});Bb.displayName="WrapItem";var $n=e=>bm({viewBox:"0 0 24 24",defaultProps:{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},...e});$n({displayName:"ChevronUpIcon",path:s.jsx("polyline",{points:"18 15 12 9 6 15"})});$n({displayName:"ChevronDownIcon",path:s.jsx("polyline",{points:"6 9 12 15 18 9"})});$n({displayName:"ChevronLeftIcon",path:s.jsx("polyline",{points:"15 18 9 12 15 6"})});$n({displayName:"ChevronRightIcon",path:s.jsx("polyline",{points:"9 18 15 12 9 6"})});$n({displayName:"ChevronDownIcon",path:s.jsxs("g",{fill:"none",children:[s.jsx("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),s.jsx("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),s.jsx("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})});var gQ=$n({displayName:"CloseIcon",path:s.jsxs("g",{children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})});$n({displayName:"FilterIcon",path:s.jsx("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})});$n({displayName:"CalendarIcon",path:s.jsxs("g",{children:[s.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),s.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),s.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),s.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})});$n({displayName:"PlusIcon",path:s.jsxs("g",{children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})});$n({displayName:"MinusIcon",path:s.jsx("g",{children:s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})});$n({displayName:"ViewOffIcon",path:s.jsxs("g",{children:[s.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),s.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]})});$n({displayName:"ViewOffIcon",path:s.jsxs("g",{children:[s.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),s.jsx("circle",{cx:"12",cy:"12",r:"3"})]})});var vQ=$n({displayName:"SearchIcon",path:s.jsxs("g",{children:[s.jsx("circle",{cx:"11",cy:"11",r:"8"}),s.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})});$n({displayName:"CheckIcon",path:s.jsx("g",{children:s.jsx("polyline",{points:"20 6 9 17 4 12"})})});function Vt(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...d){r();for(const f of d)t[f]=c(f);return Vt(e,t)}function o(...d){for(const f of d)f in t||(t[f]=c(f));return Vt(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.selector]))}function l(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.className]))}function c(d){const h=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>d}}return{parts:i,toPart:c,extend:o,selectors:a,classnames:l,get keys(){return Object.keys(t)},__type:{}}}var yQ=Vt("app-shell").parts("container","inner","main"),vT=Vt("emptystate").parts("container","body","icon","title","descripton","actions","footer"),bQ=Vt("banner").parts("container","icon","content","title","description","actions","close"),xQ=Vt("hotkeys").parts("container","group","groupTitle","item","command","then"),SQ=Vt("loading-overlay").parts("overlay","text"),wQ=Vt("nav-group").parts("container","title","icon","content"),kQ=Vt("nav-item").parts("item","link","inner","icon","label"),CQ=Vt("nprogress").parts("container","bar"),jQ=Vt("persona").parts("container","details","avatar","label","secondaryLabel","tertiaryLabel"),PQ=Vt("search-input").parts("input","reset"),_Q=Vt("sidebar").parts("container","overlay","section","toggleWrapper","toggle");Vt("stepper").parts("container","steps","icon","content","title","separator");var TQ=Vt("structured-list").parts("list","item","button","header","cell","icon"),yT=Vt("property").parts("property","label","value"),EQ=Vt("select").parts("addon","field","element"),AQ=Vt("timeline").parts("container","item","separator","icon","dot","track","content"),{definePartsStyle:bT,defineMultiStyleConfig:$Q}=ce(m6.keys),zQ=bT(e=>{const{colorScheme:t}=e;return{container:{bg:"white",_dark:{bg:"black"},borderWidth:"1px"},icon:{color:`${t}.500`,_dark:{color:`${t}.500`},"& .chakra-spinner":{color:"black",_dark:{color:"white"}}},title:{fontWeight:"semibold",fontSize:"md"},description:{fontSize:"sm",color:"gray.500",_dark:{color:"gray.400"}}}}),RQ=bT({container:{borderRadius:"md"}}),MQ=$Q({defaultProps:{size:"sm"},baseStyle:RQ,variants:{snackbar:zQ}}),li=p6("badge",["bg","color","shadow","border"]),Lw=e=>{const{colorScheme:t,theme:n}=e,r=Bt(`${t}.200`,.8)(n);return{[li.color.variable]:`colors.${t}.500`,_dark:{[li.color.variable]:r},[li.shadow.variable]:`inset 0 0 0px 1px ${li.color.reference}`}},IQ={variants:{outline:e=>{const t=Lw(e);return{...t,_dark:{...t==null?void 0:t._dark,[li.shadow.variable]:`inset 0 0 0px 1px ${li.border.reference}`,[li.color.variable]:`colors.${e.colorScheme}.200`,[li.border.variable]:`colors.${e.colorScheme}.500`}}},ghost:e=>{const t=Lw(e);return{...t,shadow:"none",_dark:{...t==null?void 0:t._dark,[li.color.variable]:`colors.${e.colorScheme}.200`}}}}},xT=e=>{const{colorScheme:t}=e;return t==="gray"?{base:J("gray.100","whiteAlpha.300")(e),hover:J("gray.200","whiteAlpha.400")(e),active:J("gray.300","whiteAlpha.500")(e)}:t==="white"?{base:"whiteAlpha.900",hover:"whiteAlpha.700",active:"whiteAlpha.500"}:{base:J(`${t}.500`,`${t}.500`)(e),hover:J(`${t}.600`,`${t}.600`)(e),active:J(`${t}.700`,`${t}.700`)(e)}},LQ={yellow:{bg:"yellow.400",hoverBg:"yellow.500",activeBg:"yellow.600",color:"black"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},_m=e=>{var t;const{colorScheme:n,colorMode:r}=e;if(n==="white")return{bg:"white",color:"black",_hover:{bg:"whiteAlpha.900",_dark:{bg:"whiteAlpha.900"},_disabled:{bg:"white"}},_active:{bg:"whiteAlpha.800",_dark:{bg:"whiteAlpha.800"}},_disabled:{color:"blackAlpha.700"}};if(n==="neutral")return{bg:"black",color:"white",_dark:{bg:"white",color:"black"},_hover:{bg:"blackAlpha.800",_disabled:{bg:"black"},_dark:{bg:"whiteAlpha.800",_disabled:{bg:"white"}}},_active:{bg:"blackAlpha.800",_dark:{bg:"whiteAlpha.800"}},_disabled:{color:"blackAlpha.700",_dark:{color:"whiteAlpha.700"}}};const{base:i,hover:o,active:a}=xT(e),{color:l=n==="gray"?J("black","white")(e):"white",bg:c=i,hoverBg:u=o,activeBg:d=a}=(t=LQ[n])!=null?t:{};return{bg:c,color:l,_hover:{bg:u,_disabled:{bg:c}},_active:{bg:d}}},NQ=e=>({shadow:"md",..._m(e)}),ST=e=>{const{colorScheme:t}=e,{base:n,hover:r,active:i}=xT(e);return{...wT(e),borderColor:t==="gray"?r:n,borderWidth:"1px",_hover:{borderColor:t==="gray"?i:r}}},wT=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:"inherit",_dark:{color:"whiteAlpha.900"},_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:{bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.300"}}};if(t==="white")return{color:"white",_hover:{bg:"whiteAlpha.200"},_active:"whiteAlpha.300"};const r=Bt(`${t}.200`,.12)(n),i=Bt(`${t}.200`,.24)(n);return{color:`${t}.600`,_dark:{color:`${t}.200`},bg:"transparent",_hover:{bg:`${t}.50`,_dark:{bg:r}},_active:{bg:`${t}.100`,_dark:{bg:i}}}},DQ=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:"inherit",bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100",color:"whiteAlpha.900"},_hover:{bg:"blackAlpha.200",_dark:{color:"white.200"}},_active:{bg:"blackAlpha.300",_dark:{bg:"whiteAlpha.300"}}};const r=t==="white"?"white":J(`${t}.500`,`${t}.200`)(e),i=Bt(r,.1)(n),o=Bt(r,.16)(n),a=Bt(r,.24)(n);return{color:t==="white"?"white":J(`${t}.600`,`${t}.200`)(e),bg:i,_hover:{bg:o},_active:{bg:a}}},OQ=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:t==="white"?"white":J(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:t==="white"?"whiteAlpha.800":J(`${t}.700`,`${t}.500`)(e)}}},FQ=e=>{let{colorScheme:t}=e;return t==="gray"&&(t="primary"),_m({...e,variant:"solid",colorScheme:t})},BQ=e=>_m({...e,variant:"solid"}),VQ=e=>ST({...e,variant:"outline"}),WQ={defaultProps:{size:"sm"},variants:{solid:_m,ghost:wT,outline:ST,subtle:DQ,elevated:NQ,link:OQ,primary:FQ,secondary:BQ,tertiary:VQ}},{definePartsStyle:pa,defineMultiStyleConfig:UQ}=ce(k6.keys),ea=Q("card-bg"),y0=Q("card-padding"),Vb=Q("card-shadow"),b0=Q("card-radius"),Wb=Q("card-border-width","0"),Zi=Q("card-border-color"),HQ=pa(()=>({container:{transitionProperty:"common",transitionDuration:"normal"}})),GQ=pa(e=>({container:{[ea.variable]:"colors.white",[Zi.variable]:"colors.blackAlpha.200",[Wb.variable]:"1px",[Vb.variable]:"shadows.sm",_dark:{[ea.variable]:"colors.whiteAlpha.200",[Zi.variable]:"colors.whiteAlpha.50"},"&.chakra-linkbox:hover":{[Zi.variable]:"colors.blackAlpha.300",_dark:{[Zi.variable]:"colors.whiteAlpha.300"}}}})),KQ=pa(e=>{const{colorScheme:t}=e,n=t?"white":"inherit";return{container:{[Wb.variable]:"0",[Vb.variable]:"none",[ea.variable]:t?`${t}.500`:"colors.blackAlpha.100",color:n,"&.chakra-linkbox:hover":{[ea.variable]:t?`${t}.600`:"colors.blackAlpha.200"},_dark:{[ea.variable]:t?`${t}.500`:"colors.whiteAlpha.100","&.chakra-linkbox:hover":{[ea.variable]:t?`${t}.600`:"colors.whiteAlpha.200"}}}}}),qQ=pa(e=>{const{colorScheme:t}=e;return{container:{[Wb.variable]:"1px",[Vb.variable]:"none",[Zi.variable]:t?`${t}.500`:"colors.blackAlpha.200",[ea.variable]:"transparent","&.chakra-linkbox:hover":{[Zi.variable]:t?`${t}.600`:"colors.blackAlpha.300"},_dark:{[Zi.variable]:t?`${t}.500`:"colors.whiteAlpha.300","&.chakra-linkbox:hover":{[Zi.variable]:t?`${t}.600`:"colors.whiteAlpha.400"}}}}}),XQ={sm:pa({container:{[b0.variable]:"radii.base",[y0.variable]:"space.3"}}),md:pa({container:{[b0.variable]:"radii.md",[y0.variable]:"space.4"}}),lg:pa({container:{[b0.variable]:"radii.xl",[y0.variable]:"space.6"}})},YQ=UQ({defaultProps:{variant:"elevated"},baseStyle:HQ,variants:{elevated:GQ,outline:qQ,filled:KQ},sizes:XQ}),{definePartsStyle:QQ,defineMultiStyleConfig:ZQ}=ce(h6.keys),JQ=QQ(e=>{const{colorScheme:t}=e;return{control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}}),eZ=ZQ({baseStyle:JQ,defaultProps:{colorScheme:"primary"}}),tZ={defaultProps:{size:"sm"}},{definePartsStyle:$f,defineMultiStyleConfig:nZ}=ce(ny.keys),Dd=Q("input-height"),Od=Q("input-padding"),Nw=Q("input-border-radius"),kT={sm:$f({field:{[Nw.variable]:"radii.md"},group:{[Nw.variable]:"radii.md"}}),md:$f({field:{[Od.variable]:"space.3",[Dd.variable]:"sizes.9"},group:{[Od.variable]:"space.3",[Dd.variable]:"sizes.9"}}),lg:$f({field:{[Od.variable]:"space.3",[Dd.variable]:"sizes.10"},group:{[Od.variable]:"space.3",[Dd.variable]:"sizes.10"}})},CT=$f(e=>({field:{borderColor:"blackAlpha.300",_dark:{borderColor:"whiteAlpha.300"},_hover:{borderColor:"blackAlpha.400",_dark:{borderColor:"whiteAlpha.400"}}}})),Ub=nZ({defaultProps:{focusBorderColor:"primary.500"},variants:{outline:CT},sizes:kT}),rZ={variants:{horizontal:{mb:0,marginStart:"0.5rem"}}},Tc=Ub,iZ=Ub,oZ={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:CT},sizes:kT},aZ={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:e=>{var t,n;return(n=(t=Tc.variants)==null?void 0:t.outline(e).field)!=null?n:{}}}},sZ=Ub,{definePartsStyle:pi,defineMultiStyleConfig:lZ}=ce(ny.keys),ys=Q("input-height"),bs=Q("input-font-size"),xs=Q("input-padding"),Ss=Q("input-border-radius"),cZ=pi({addon:{height:ys.reference,fontSize:bs.reference,px:xs.reference,borderRadius:Ss.reference},field:{width:"100%",height:ys.reference,fontSize:bs.reference,px:xs.reference,borderRadius:Ss.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Di={lg:{[bs.variable]:"fontSizes.lg",[xs.variable]:"space.4",[Ss.variable]:"radii.md",[ys.variable]:"sizes.12"},md:{[bs.variable]:"fontSizes.md",[xs.variable]:"space.4",[Ss.variable]:"radii.md",[ys.variable]:"sizes.10"},sm:{[bs.variable]:"fontSizes.sm",[xs.variable]:"space.3",[Ss.variable]:"radii.sm",[ys.variable]:"sizes.8"},xs:{[bs.variable]:"fontSizes.xs",[xs.variable]:"space.2",[Ss.variable]:"radii.sm",[ys.variable]:"sizes.6"}},uZ={lg:pi({field:Di.lg,group:Di.lg}),md:pi({field:Di.md,group:Di.md}),sm:pi({field:Di.sm,group:Di.sm}),xs:pi({field:Di.xs,group:Di.xs})};function Hb(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||J("blue.500","blue.300")(e),errorBorderColor:n||J("red.500","red.300")(e)}}var dZ=pi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Hb(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:J("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:tt(t,r),boxShadow:`0 0 0 1px ${tt(t,r)}`},_focusVisible:{zIndex:1,borderColor:tt(t,n),boxShadow:`0 0 0 1px ${tt(t,n)}`}},addon:{border:"1px solid",borderColor:J("inherit","whiteAlpha.50")(e),bg:J("gray.100","whiteAlpha.300")(e)}}}),fZ=pi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Hb(e);return{field:{border:"2px solid",borderColor:"transparent",bg:J("gray.100","whiteAlpha.50")(e),_hover:{bg:J("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:tt(t,r)},_focusVisible:{bg:"transparent",borderColor:tt(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:J("gray.100","whiteAlpha.50")(e)}}}),pZ=pi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Hb(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:tt(t,r),boxShadow:`0px 1px 0px 0px ${tt(t,r)}`},_focusVisible:{borderColor:tt(t,n),boxShadow:`0px 1px 0px 0px ${tt(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),mZ=pi({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),hZ={outline:dZ,filled:fZ,flushed:pZ,unstyled:mZ},Ji=lZ({baseStyle:cZ,sizes:uZ,variants:hZ,defaultProps:{size:"md",variant:"outline"}}),Dw,Ow,gZ={...Ji,defaultProps:Tc.defaultProps,variants:{outline:e=>{var t,n;return{...(n=(t=Tc.variants)==null?void 0:t.outline(e))!=null?n:{}}},flushed:e=>{var t,n;return(n=(t=Ji.variants)==null?void 0:t.flushed(e))!=null?n:{}},filled:e=>{var t,n;return(n=(t=Ji.variants)==null?void 0:t.filled(e))!=null?n:{}},unstyled:(Ow=(Dw=Ji.variants)==null?void 0:Dw.unstyled)!=null?Ow:{}},sizes:Tc.sizes},vZ={defaultProps:{size:"lg"}},yZ=e=>({color:"blackAlpha.300",_dark:{bg:"whiteAlpha.300"},borderWidth:0,borderBottomWidth:0,padding:"1px",display:"inline-block",borderRadius:"3px",minW:"20px",textAlign:"center",mr:1,":last-child":{mr:0}}),bZ={defaultProps:{variant:"solid"},variants:{basic:{opacity:.6},solid:yZ}},{definePartsStyle:jT,defineMultiStyleConfig:xZ}=ce(v6.keys),SZ=jT(e=>({list:{borderWidth:1,borderColor:"blackAlpha.200",boxShadow:"lg",_dark:{borderWidth:0,borderColor:"whiteAlpha.300",boxShadow:"dark-lg"}},divider:{borderColor:"blackAlpha.200",_dark:{borderColor:"whiteAlpha.300"}},groupTitle:{mx:3}})),wZ=jT(()=>({item:{px:6},groupTitle:{color:"muted",px:3}})),kZ=xZ({baseStyle:SZ,variants:{dialog:wZ}}),{definePartsStyle:CZ,defineMultiStyleConfig:jZ}=ce(y6.keys),PZ=CZ(e=>({closeButton:{top:4,insetEnd:4}})),_Z=jZ({baseStyle:PZ}),{definePartsStyle:TZ,defineMultiStyleConfig:EZ}=ce(b6.keys),AZ=EZ({defaultProps:{colorScheme:"primary"},baseStyle:TZ(e=>{const{colorScheme:t}=e;return{track:{borderRadius:"md"},filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:$Z,defineMultiStyleConfig:zZ}=ce(x6.keys),RZ=zZ({defaultProps:{colorScheme:"primary"},baseStyle:$Z(e=>{const{colorScheme:t}=e;return{control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}})}),{definePartsStyle:MZ,defineMultiStyleConfig:IZ}=ce(S6.keys),LZ=IZ({defaultProps:{colorScheme:"primary"},baseStyle:MZ(e=>{const{colorScheme:t}=e;return{filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:NZ,defineMultiStyleConfig:DZ}=ce(w6.keys),OZ=DZ({defaultProps:{colorScheme:"primary"},baseStyle:NZ(e=>{const{colorScheme:t}=e;return{track:{_checked:{bg:`${t}.500`}}}})}),Fd=bt("tooltip-bg"),Fw=bt("tooltip-fg"),FZ=bt("popper-arrow-bg"),BZ=e=>({display:"flex",[Fd.variable]:"colors.white",[Fw.variable]:"colors.blackAlpha.900",_dark:{[Fd.variable]:"colors.gray.700",[Fw.variable]:"colors.whiteAlpha.900"},px:"8px",py:"2px",bg:[Fd.reference],[FZ.variable]:[Fd.reference],borderRadius:"sm",fontWeight:"medium",fontSize:"xs",boxShadow:"md",maxW:"320px",zIndex:"tooltip",borderWidth:"1px"}),VZ={baseStyle:BZ},Bd=Q("stepper-indicator-size"),ma=Q("stepper-accent-color"),ta=Q("stepper-vertical-seperator-offset"),{defineMultiStyleConfig:WZ,definePartsStyle:eo}=ce(["container","item","content","stepper","step","title","description","indicator","separator","icon","number"]),UZ=eo(({colorScheme:e})=>({container:{display:"flex",flexDirection:"column",gap:4},item:{w:"full"},content:{"&[data-orientation=vertical]":{mt:2,ms:ta.reference,borderLeftWidth:"1px",ps:6}},stepper:{gap:"2",[ta.variable]:"10px",[ma.variable]:`colors.${e}.500`,_dark:{[ma.variable]:`colors.${e}.500`}},separator:{transitionProperty:"common",transitionDuration:"normal","&[data-orientation=horizontal]":{height:"1px"},"&[data-orientation=vertical]":{width:"1px"},".sui-steps__item .chakra-step &[data-orientation=vertical]":{display:"none"},".sui-steps__item &[data-orientation=vertical]":{position:"static",minH:4,height:"auto",ms:ta.reference}},step:{"&[data-orientation=vertical]":{alignItems:"center"}}})),HZ=eo(e=>({})),GZ=eo(e=>({indicator:{"&[data-status=active]":{borderWidth:"0",bg:ma.reference,color:"chakra-inverse-text"},"&[data-status=complete]":{bg:ma.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.200"}}}})),KZ=eo(e=>{const{theme:t,colorScheme:n}=e;return{stepper:{[ma.variable]:`colors.${n}.100`},indicator:{"&[data-status=active]":{borderWidth:"0",bg:ma.reference,color:`${n}.500`,_dark:{bg:Bt(`${n}.200`,.16)(t)}},"&[data-status=complete]":{bg:ma.reference,color:`${n}.500`,_dark:{bg:Bt(`${n}.200`,.24)(t),color:`${n}.200`}},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",color:"blackAlpha.700",_dark:{bg:"whiteAlpha.200",color:"whiteAlpha.600"}}}}}),qZ=WZ({defaultProps:{variant:"outline",colorScheme:"primary",size:"md"},baseStyle:UZ,variants:{outline:HZ,solid:GZ,subtle:KZ},sizes:{xs:eo({stepper:{[Bd.variable]:"sizes.4",[ta.variable]:"7px"}}),sm:eo({stepper:{[Bd.variable]:"sizes.6",[ta.variable]:"11px"}}),md:eo({stepper:{[Bd.variable]:"sizes.7",[ta.variable]:"14px"}}),lg:eo({stepper:{[Bd.variable]:"sizes.8",[ta.variable]:"16px"}})}}),{definePartsStyle:XZ,defineMultiStyleConfig:YZ}=ce(vT.keys),QZ=XZ(e=>{const{colorScheme:t}=e;return{icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.500`}}}}),ZZ=YZ({baseStyle:QZ}),{definePartsStyle:PT,defineMultiStyleConfig:_T}=ce(CQ.keys),JZ=PT(e=>{const{colorScheme:t}=e;return{bar:{bg:`${t}.500`,_dark:{bg:`${t}.300`}}}}),eJ=_T({defaultProps:{colorScheme:"teal"},baseStyle:JZ}),tJ=PT(e=>{const{colorScheme:t}=e;return{bar:{bg:`${t}.500`,_dark:{bg:`${t}.500`}}}}),nJ=_T({defaultProps:{colorScheme:"primary"},baseStyle:tJ}),{defineMultiStyleConfig:rJ}=ce(yT.keys),iJ=rJ({baseStyle:{label:{color:"muted",_dark:{color:"muted"}}}}),oJ={Alert:MQ,Badge:IQ,Button:WQ,Card:YQ,Checkbox:eZ,CloseButton:tZ,Heading:vZ,Kbd:bZ,Menu:kZ,Modal:_Z,Progress:AZ,Radio:RZ,Slider:LZ,Switch:OZ,Stepper:qZ,Tooltip:VZ,Input:Tc,PinInput:oZ,FormLabel:rZ,NumberInput:iZ,Select:sZ,Textarea:aZ,SuiEmptyState:ZZ,SuiNProgress:nJ,SuiProperty:iJ,SuiSelect:gZ},{definePartsStyle:aJ,defineMultiStyleConfig:sJ}=ce(yQ.keys),lJ=aJ({container:{},inner:{},main:{}}),cJ=sJ({defaultProps:{variant:"fullscreen"},variants:{static:{},fullscreen:{container:{position:"absolute",inset:0}}},baseStyle:lJ}),{definePartsStyle:Gb,defineMultiStyleConfig:uJ}=ce(bQ.keys),dJ=Gb({container:{px:4,py:3},content:{display:"flex",flex:1,flexDirection:["column",null,"row"]},title:{fontWeight:"bold",lineHeight:6,marginEnd:2},description:{lineHeight:6,marginEnd:2},actions:{marginEnd:2},icon:{flexShrink:0,marginEnd:3,w:5,h:6}}),fJ=Gb(e=>{const{theme:t,colorScheme:n}=e;return{container:{bg:`${n}.100`,_dark:{bg:Bt(`${n}.200`,.16)(t)}},icon:{color:`${n}.500`,_dark:{color:`${n}.200`}}}}),pJ=Gb(e=>{const{colorScheme:t}=e;return{container:{bg:`${t}.500`,color:"white"}}}),mJ=uJ({baseStyle:dJ,variants:{subtle:fJ,solid:pJ},defaultProps:{variant:"subtle",colorScheme:"blue"}}),hJ={baseStyle:{fontSize:"xs","[role=tooltip] > &":{ms:1,_before:{content:'"•"',me:1,fontSize:"xs"}}}},{definePartsStyle:TT,defineMultiStyleConfig:gJ}=ce(vT.keys),vJ=TT(e=>{const{colorScheme:t}=e;return{icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.200`}},title:{mt:8,fontWeight:"bold",fontSize:"xl"},actions:{mt:8}}}),yJ=TT(e=>({body:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center"}})),bJ=gJ({baseStyle:vJ,variants:{centered:yJ}}),{definePartsStyle:xJ,defineMultiStyleConfig:SJ}=ce(g6.keys),wJ=xJ({container:{display:"grid",gridTemplateColumns:"1fr 2fr",alignItems:"flex-start",flexDirection:"row",justifyContent:"flex-end"}}),kJ=SJ({variants:{horizontal:wJ}}),CJ={defaultProps:{spacing:4}},jJ={baseStyle:{fontWeight:"semibold",mb:4}},{defineMultiStyleConfig:PJ}=ce(xQ.keys),_J=PJ({baseStyle:{container:{fontSize:"md"},group:{my:2,py:2},groupTitle:{py:2,fontWeight:"semibold",fontSize:"sm"},item:{display:"flex",alignItems:"center",textAlign:"start",flex:"0 0 auto",py:2},then:{mr:1,fontSize:"sm",color:"muted"}}}),{defineMultiStyleConfig:TJ,definePartsStyle:Tm}=ce(SQ.keys),EJ=Tm({overlay:{p:4}}),AJ=Tm(()=>({overlay:{flex:1,height:"100%"}})),$J=Tm(()=>({overlay:{position:"fixed",inset:0,zIndex:"modal",bg:"white",_dark:{bg:"gray.800"}}})),zJ=Tm(()=>({overlay:{position:"absolute",inset:0,bg:"whiteAlpha.300",_dark:{bg:"blackAlpha.300"}}})),RJ=TJ({defaultProps:{variant:"fill"},baseStyle:EJ,variants:{fill:AJ,fullscreen:$J,overlay:zJ}}),{definePartsStyle:MJ,defineMultiStyleConfig:IJ}=ce(wQ.keys),LJ=MJ(e=>({container:{"&:not(:last-of-type)":{mb:4}},title:{display:"flex",alignItems:"center",px:3,my:1,height:6,fontSize:"sm",fontWeight:"medium",color:"muted",transitionProperty:"common",transitionDuration:"normal","&.sui-collapse-toggle .chakra-icon":{opacity:0},"&.sui-collapse-toggle":{cursor:"pointer",borderRadius:"md",_hover:{bg:"blackAlpha.100","& .chakra-icon":{opacity:1},_dark:{bg:"whiteAlpha.200"}}},"[data-compact] &":{opacity:0}},content:{}})),NJ=IJ({baseStyle:LJ}),{definePartsStyle:Wu,defineMultiStyleConfig:DJ}=ce(kQ.keys),OJ=Wu(e=>({item:{my:"2px",color:"gray.900",minW:1,_dark:{color:"whiteAlpha.900"}},link:{display:"flex",rounded:"md",justifyContent:"flex-start",alignItems:"center",textDecoration:"none",transitionProperty:"common",transitionDuration:"normal",minW:1,_hover:{textDecoration:"none"},_focusVisible:{outline:"none",boxShadow:"outline"}},inner:{display:"flex",flex:1,w:"100%",alignItems:"center",minW:1},label:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},icon:{display:"flex",transitionProperty:"common",transitionDuration:"normal",alignItems:"center",justifyContent:"center",width:"4",ml:"-0.25rem",color:"currentColor"}})),FJ=Wu(e=>{const t={bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.200"}};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100"}},_active:t,"&[aria-current=page]":t},icon:{opacity:.8,"[data-active] &":{opacity:1}}}}),BJ=Wu(e=>{const{colorScheme:t,theme:n}=e,r={bg:Bt(`${t}.500`,.3)(n),fontWeight:"semibold",color:`${t}.600`,_dark:{bg:Bt(`${t}.500`,.3)(n),color:`${t}.100`}};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:r,"&[aria-current=page]":r}}}),VJ=Wu(e=>{const{colorScheme:t}=e,n={bg:`${t}.500`};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:n,"&[aria-current=page]":n,color:"white"},icon:{color:"white"},label:{}}}),WJ=Wu(e=>{const{colorScheme:t}=e,n={_before:{content:'""',display:"block",position:"absolute",top:0,bottom:0,left:-3,width:"3px",bg:`${t}.500`}};return{item:{position:"relative"},link:{_hover:{color:"inherit",bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:n,"&[aria-current=page]":n},icon:{"[data-active] &":{color:"currentColor"}},label:{}}}),Bw,Vw,Ww,Uw,UJ=DJ({defaultProps:{size:"sm",colorScheme:"primary",variant:"neutral"},baseStyle:OJ,sizes:{xs:{link:(Bw=Zo.components.Button.sizes)==null?void 0:Bw.xs,icon:{me:1,fontSize:"xs"}},sm:{link:(Vw=Zo.components.Button.sizes)==null?void 0:Vw.sm,icon:{me:2,fontSize:"sm"}},md:{link:(Ww=Zo.components.Button.sizes)==null?void 0:Ww.md,icon:{me:2,fontSize:"md"}},lg:{link:(Uw=Zo.components.Button.sizes)==null?void 0:Uw.lg,icon:{me:3,fontSize:"lg"}}},variants:{neutral:FJ,subtle:BJ,solid:VJ,"left-accent":WJ}}),{definePartsStyle:Bi,defineMultiStyleConfig:HJ}=ce(jQ.keys),Hw=e=>({color:"gray.500",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minW:0,_dark:{color:"whiteAlpha.600"}}),GJ=Bi(e=>({details:{minW:0},secondaryLabel:Hw(e),tertiaryLabel:Hw(e)})),KJ={"2xs":Bi({details:{ms:2},label:{fontSize:"xs"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),xs:Bi({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),sm:Bi({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),md:Bi({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),lg:Bi({details:{ms:3},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{fontSize:"sm"}}),xl:Bi({details:{ms:3},label:{fontSize:"xl"},secondaryLabel:{fontSize:"md"},tertiaryLabel:{fontSize:"md"}}),"2xl":Bi({details:{ms:4},label:{fontSize:"2xl"},secondaryLabel:{fontSize:"lg"},tertiaryLabel:{fontSize:"lg"}})},qJ=HJ({defaultProps:{size:"md"},baseStyle:GJ,sizes:KJ}),{defineMultiStyleConfig:XJ}=ce(yT.keys),YJ=XJ({baseStyle:{label:{display:"flex",flexDirection:"row",minWidth:"100px",width:"30%",marginEnd:2,py:2,color:"gray.500",_dark:{color:"gray.400"}}}}),{defineMultiStyleConfig:QJ}=ce(PQ.keys),ZJ=QJ({baseStyle:{input:{pr:8}},sizes:{sm:{reset:{fontSize:"0.7em"}},lg:{input:{pr:10}}}}),{definePartsStyle:Kb,defineMultiStyleConfig:JJ}=ce(_Q.keys),eee=Kb(e=>{const{colorScheme:t}=e;return{container:{bg:t?`${t}.500`:"white",display:"flex",flexDirection:"column",borderRightWidth:"1px",_dark:{bg:t?`${t}.500`:"gray.800"}},overlay:{bg:"blackAlpha.200"}}}),tee=Kb(e=>({container:{width:"280px",maxWidth:["100vw","320px"],minWidth:"220px",py:3,"&[data-collapsible]":{pt:14}},section:{px:3},toggleWrapper:{h:8,mb:4,display:"none","[data-collapsible] &":{display:"block"}}})),nee=Kb(e=>({container:{width:"14",py:3},section:{px:3},toggleWrapper:{display:"none"}})),ree=JJ({defaultProps:{variant:"default"},baseStyle:eee,variants:{default:tee,compact:nee}}),{defineMultiStyleConfig:iee}=ce(EQ.keys),oee=iee({defaultProps:Ji.defaultProps,baseStyle:Ji.baseStyle,sizes:Ji.sizes,variants:Ji.variants}),{definePartsStyle:aee,defineMultiStyleConfig:see}=ce(TQ.keys),lee=aee(e=>({item:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",fontSize:"md"},button:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",flex:1,cursor:"pointer",userSelect:"none",transitionProperty:"common",transitionDuration:"normal",borderRadius:"inherit",outline:"none",_hover:{bg:"blackAlpha.50",_dark:{bg:"whiteAlpha.50"}},_focusVisible:{boxShadow:"outline"},_focus:{bg:"blackAlpha.50",_dark:{bg:"whiteAlpha.50"}},_active:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100"}},_disabled:{cursor:"inherit",opacity:.5,_hover:{bg:"transparent",_dark:{bg:"transparent"}},_active:{bg:"transparent",_dark:{bg:"transparent"}}}},header:{display:"flex",flexDirection:"row",position:"sticky",fontSize:"md",fontWeight:"semibold",color:"muted"},icon:{display:"flex",flexShrink:0}})),cee=see({defaultProps:{size:"md"},baseStyle:lee,sizes:{sm:{item:{py:1,px:1},header:{py:1,px:1},button:{py:1,px:1},cell:{px:1},icon:{px:1}},md:{item:{py:2,px:2},header:{py:2,px:2},button:{py:2,px:2},cell:{px:2},icon:{px:2}}}}),{definePartsStyle:qb,defineMultiStyleConfig:uee}=ce(AQ.keys),Gw=Q("timeline-row-start","minmax(0,1fr)"),dee=Q("timeline-row-end","minmax(0,1fr)"),Kw=Q("timeline-col-start","minmax(0,1fr)"),qw=Q("timeline-col-end","minmax(0,1fr)"),fee=qb(e=>({container:{display:"flex",[Gw.variable]:"minmax(0,1fr)",[dee.variable]:"minmax(0,1fr)",[Kw.variable]:"auto",[qw.variable]:"2fr",flexDirection:"column",justifyItems:"center"},item:{display:"grid",alignItems:"center",justifyItems:"start",gridTemplateRows:`${Gw.reference}`,gridTemplateColumns:`${Kw.reference} ${qw.reference}`,position:"relative"},separator:{mx:1,minW:"24px",flexShrink:0,gridColumnStart:1,gap:2,height:"100%",_before:{content:'""',display:"block",flex:1,minH:"0.5em"},_after:{content:'""',display:"block",flex:1,minH:"0.5em"},"&:has(.sui-timeline__track:first-of-type):before":{display:"none"},"&:has(.sui-timeline__track:last-of-type):after":{display:"none"}},icon:{color:"gray.300",_dark:{color:"gray.600"}},dot:{width:"9px",height:"9px",bg:"currentColor",borderRadius:"full"},track:{bg:"gray.300",width:"1px",flex:1,minH:"0.5em",_dark:{bg:"gray.600"}},content:{px:"2",_first:{gridColumnStart:1},_last:{gridColumnStart:2,justifySelf:"start"}}})),pee=qb(e=>({icon:{}})),mee=qb(e=>({dot:{bg:"transparent",borderColor:"currentColor",borderWidth:"2px"}})),hee=uee({defaultProps:{variant:"solid",size:"sm"},baseStyle:fee,variants:{solid:pee,outline:mee},sizes:{sm:{icon:{minH:"8px",minW:"8px"}}}}),gee={baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center"},variants:{outline:({colorScheme:e})=>({borderWidth:"1px",borderColor:e?`${e}.500`:"chakra-border-color",color:e?`${e}.500`:"currentColor"}),solid:({colorScheme:e="gray"})=>({bg:`${e}.500`,color:"white"})},sizes:{sm:{borderRadius:"sm",fontSize:"0.9em",w:6,h:6},md:{borderRadius:"md",fontSize:"1.1em",w:8,h:8},lg:{borderRadius:"md",fontSize:"1.3em",w:10,h:10},xl:{borderRadius:"md",fontSize:"1.5em",w:12,h:12}},defaultProps:{variant:"outline",size:"md"}},vee=Re("navbar").parts("container","inner","brand","content","item","link"),{defineMultiStyleConfig:yee,definePartsStyle:bee}=ce(vee.keys),Xw=Q("navbar-bg"),Yw=Q("navbar-text-color","currentColor"),x0=Q("navbar-link-bg","transparent"),xee=["yellow","cyan"],See=yee({baseStyle:bee(({colorScheme:e})=>{let t="currentColor";return e&&(t=xee.includes(e)?"colors.black":"colors.white"),{container:{display:"flex",[Xw.variable]:e?`colors.${e}.500`:"colors.chakra-body-bg",[Yw.variable]:t,bg:Xw.reference,color:Yw.reference,zIndex:"overlay",width:"full",height:"auto",alignItems:"center",justifyContent:"center",data:{"& [data-menu-open=true]":{border:"none"}}},inner:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",height:"var(--navbar-height)",px:{base:4,lg:6},gap:4,flexWrap:"nowrap"},toggle:{display:"flex",alignItems:"center",justifyContent:"center",width:6,height:"full",outline:"none",borderRadius:"sm"},brand:{display:"flex",alignItems:"center",justifyContent:"flex-start",height:"full",bg:"transparent",textDecoration:"none",color:"inherit",whiteSpace:"nowrap",boxSizing:"border-box"},content:{display:"flex",alignItems:"center",justifyContent:"flex-start",flex:1,listStyle:"none"},item:{display:"inline-flex",p:0},link:{bg:x0.reference,color:"current",display:"inline-flex",alignItems:"center",justifyContent:"center",textDecoration:"none",whiteSpace:"nowrap",boxSizing:"border-box",borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",lineHeight:1,px:3,h:8,_focusVisible:{outline:"none",boxShadow:"outline"},_hover:{[x0.variable]:"colors.blackAlpha.100",textDecoration:"none",_dark:{[x0.variable]:"colors.whiteAlpha.200"}},_active:{fontWeight:"semibold"}}}})}),wee={Form:kJ,SuiAppShell:cJ,SuiBanner:mJ,SuiCommand:hJ,SuiEmptyState:bJ,SuiFormLayout:CJ,SuiFormLegend:jJ,SuiHotkeys:_J,SuiStructuredList:cee,SuiLoadingOverlay:RJ,SuiNavGroup:NJ,SuiNavItem:UJ,SuiPersona:qJ,SuiProperty:YJ,SuiNProgress:eJ,SuiSearchInput:ZJ,SuiSelect:oee,SuiSidebar:ree,SuiTimeline:hee,SuiIconBadge:gee,SuiNavbar:See},kee=db({colors:{primary:Zo.colors.blue},semanticTokens:{colors:{"presence.online":"green.500","presence.offline":"gray.400","presence.busy":"orange.500","presence.dnd":"red.500","presence.away":"gray.400"}},components:wee}),Cee={global:e=>({body:{WebkitFontSmoothing:"antialiased",TextRendering:"optimizelegibility"}})},S0={black:"#0e1012",gray:{50:"#f9fafa",100:"#f1f1f2",200:"#e7e7e8",300:"#d3d4d5",400:"#abadaf",500:"#7d7f83",600:"#52555a",700:"#33373d",800:"#1d2025",900:"#171a1d"},purple:{50:"#f9f6fd",100:"#e5daf8",200:"#d3bef4",300:"#b795ec",400:"#a379e7",500:"#8952e0",600:"#7434db",700:"#6023c0",800:"#4f1d9e",900:"#3b1676"},pink:{50:"#fdf5f9",100:"#f8d9e7",200:"#f3b9d3",300:"#eb8db8",400:"#e56ba2",500:"#dc3882",600:"#c4246c",700:"#a01d58",800:"#7d1745",900:"#5d1133"},red:{50:"#fdf6f5",100:"#f8d9d8",200:"#f1b8b4",300:"#e98d87",400:"#e4726c",500:"#dc4a41",600:"#d2140a",700:"#ac0900",800:"#930800",900:"#6d0600"},orange:{50:"#fdfaf6",100:"#f9ebdb",200:"#f1d4b1",300:"#e6b273",400:"#dc9239",500:"#c37b24",600:"#a5681e",700:"#835318",800:"#674113",900:"#553610"},yellow:{50:"#fffefb",100:"#fff8e9",200:"#feecbd",300:"#fddc87",400:"#fbc434",500:"#d2a01e",600:"#a88018",700:"#836413",800:"#624b0e",900:"#513e0c"},green:{50:"#f7fdfb",100:"#d2f2e7",200:"#9fe3cd",300:"#64d2ad",400:"#1dbd88",500:"#0ea371",600:"#0c875e",700:"#096949",800:"#07563c",900:"#064731"},teal:{50:"#f1fcfc",100:"#c0f1f4",200:"#84e4e9",300:"#2dd1da",400:"#22b2ba",500:"#1d979e",600:"#187b80",700:"#125f64",800:"#0f5053",900:"#0d4244"},cyan:{50:"#f4fbfd",100:"#d0eef7",200:"#bae7f3",300:"#a2deee",400:"#53c2e1",500:"#2ab4d9",600:"#24a2c4",700:"#1e86a2",800:"#196e85",900:"#135567"},blue:{50:"#f1f6fd",100:"#cde0f6",200:"#a8c8f0",300:"#7fafe8",400:"#5896e1",500:"#347fdb",600:"#236abf",700:"#1b5192",800:"#164278",900:"#123662"},indigo:{50:"#f8f7fc",100:"#e1ddf5",200:"#c8c0ec",300:"#a89de2",400:"#9789dc",500:"#7f6ed4",600:"#6a58c9",700:"#5546a1",800:"#483c88",900:"#342b62"}},Pv={primary:S0.purple,secondary:S0.cyan,...S0},jee={heading:"InterVariable, Inter, sans-serif",body:"InterVariable, Inter, sans-serif"},Pee={"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.8125rem",md:"0.875rem",lg:"1rem",xl:"1.125rem","2xl":"1.25rem","3xl":"1.5rem","4xl":"1.875rem","5xl":"2.25rem","6xl":"3rem","7xl":"3.75rem","8xl":"4.5rem","9xl":"6rem"},_ee={h1:{fontSize:["5xl","6xl","7xl"],fontWeight:"extrabold",lineHeight:"1.2",letterSpacing:"-2%"},h2:{fontSize:["3xl","4xl","5xl"],fontWeight:"extrabold",lineHeight:"1.1",letterSpacing:"-1%"},h3:{fontSize:["lg","xl"],fontWeight:"extrabold",lineHeight:"1.1",letterSpacing:"-1%"},subtitle:{fontSize:["lg",null,"2xl"],fontWeight:"normal"}},Tee={container:{sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}},Eee=Tee,Aee={outline:`0 0 0 2px ${Bt(Pv.primary[500],.6)({colors:Pv})}`},$ee=Aee,zee={colors:{"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.200"},muted:{default:"gray.500",_dark:"gray.400"},neutral:{default:"black",_dark:"white"},"neutral-fg":{default:"white",_dark:"black"}}},Ree={colors:Pv,fonts:jee,fontSizes:Pee,textStyles:_ee,sizes:Eee,shadows:$ee,semanticTokens:zee},ET=db({...Ree,styles:Cee,components:oJ},kee);function AT(e,t){return Array.from((e==null?void 0:e.querySelectorAll(t))??[])}function Mee(e,t){return e.find(n=>n.id===t)}function $T(e,t){const n=Mee(e,t);return n?e.indexOf(n):-1}function Iee(e,t,n=!0){let r=$T(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function Lee(e,t,n=!0){let r=$T(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}const to=e=>(e==null?void 0:e.ownerDocument)??document,bo=e=>e&&"window"in e&&e.window===e?e:to(e).defaultView||window;function Nee(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Dee(e){return Nee(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}const Oee=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Fee(e){const t=bo(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=bo(e);let{display:a,visibility:l}=o(e);i=a!=="none"&&l!=="hidden"&&l!=="collapse"}return i}function Bee(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function zT(e,t){return Oee?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&Fee(e)&&Bee(e,t)&&(!e.parentElement||zT(e.parentElement,e))}const RT=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],Vee=RT.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";RT.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function Wee(e,t){return e.matches(Vee)&&!Uee(e)&&((t==null?void 0:t.skipVisibilityCheck)||zT(e))}function Uee(e){let t=e;for(;t!=null;){if(t instanceof bo(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function MT(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Xb=typeof document<"u"?Gt.useLayoutEffect:()=>{};let _v=new Map;typeof FinalizationRegistry<"u"&&new FinalizationRegistry(e=>{_v.delete(e)});function Hee(e,t){if(e===t)return e;let n=_v.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=_v.get(t);return r?(r.forEach(i=>i.current=e),e):t}function Gee(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(i=>{const o=Qw(i,t);return n||(n=typeof o=="function"),o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():Qw(e[o],null)})}}}function Qw(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function IT(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=IT(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Kee(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=IT(e))&&(r&&(r+=" "),r+=t);return r}function Yb(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let o=t[i],a=r[i];typeof o=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=MT(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?t[i]=Kee(o,a):i==="id"&&o&&a?t.id=Hee(o,a):i==="ref"&&o&&a?t.ref=Gee(o,a):t[i]=a!==void 0?a:o}}return t}function pu(e){if(qee())e.focus({preventScroll:!0});else{let t=Xee(e);e.focus(),Yee(t)}}let Vd=null;function qee(){if(Vd==null){Vd=!1;try{document.createElement("div").focus({get preventScroll(){return Vd=!0,!0}})}catch{}}return Vd}function Xee(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function Yee(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}let Qee=!1;function LT(){return Qee}function Rr(e,t){if(!LT())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:Dee(n)?n=n.host:n=n.parentNode}return!1}function Dt(e){if(LT()&&e.target instanceof Element&&e.target.shadowRoot){if("composedPath"in e)return e.composedPath()[0]??null;if("composedPath"in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function Zee(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Jee(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function ete(e){for(;e&&!Wee(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=bo(e),n=t.document.activeElement;if(!n||n===e)return;let r=!1,i=d=>{(Dt(d)===n||r)&&d.stopImmediatePropagation()},o=d=>{(Dt(d)===n||r)&&(d.stopImmediatePropagation(),!e&&!r&&(r=!0,pu(n),c()))},a=d=>{(Dt(d)===e||r)&&d.stopImmediatePropagation()},l=d=>{(Dt(d)===e||r)&&(d.stopImmediatePropagation(),r||(r=!0,pu(n),c()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",o,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",a,!0);let c=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",o,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",a,!0),r=!1},u=requestAnimationFrame(c);return c}function Em(e){var n;if(typeof window>"u"||window.navigator==null)return!1;let t=(n=window.navigator.userAgentData)==null?void 0:n.brands;return Array.isArray(t)&&t.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function Qb(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)==null?void 0:t.platform)||window.navigator.platform):!1}function Ao(e){let t=null;return()=>(t==null&&(t=e()),t)}const jp=Ao(function(){return Qb(/^Mac/i)}),tte=Ao(function(){return Qb(/^iPhone/i)}),NT=Ao(function(){return Qb(/^iPad/i)||jp()&&navigator.maxTouchPoints>1}),DT=Ao(function(){return tte()||NT()}),nte=Ao(function(){return Em(/AppleWebKit/i)&&!rte()}),rte=Ao(function(){return Em(/Chrome/i)}),OT=Ao(function(){return Em(/Android/i)}),ite=Ao(function(){return Em(/Firefox/i)});let qi=new Map,Tv=new Set;function Zw(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{let i=Dt(r);if(!e(r)||!i)return;let o=qi.get(i);o||(o=new Set,qi.set(i,o),i.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{let i=Dt(r);if(!e(r)||!i)return;let o=qi.get(i);if(o&&(o.delete(r.propertyName),o.size===0&&(i.removeEventListener("transitioncancel",n),qi.delete(i)),qi.size===0)){for(let a of Tv)a();Tv.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Zw():document.addEventListener("DOMContentLoaded",Zw));function ote(){for(const[e]of qi)"isConnected"in e&&!e.isConnected&&qi.delete(e)}function ate(e){requestAnimationFrame(()=>{ote(),qi.size===0?e():Tv.add(e)})}let ws="default",Ev="",zf=new WeakMap;function ste(e){if(DT()){if(ws==="default"){const t=to(e);Ev=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}ws="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";zf.set(e,e.style[t]),e.style[t]="none"}}function Jw(e){if(DT()){if(ws!=="disabled")return;ws="restoring",setTimeout(()=>{ate(()=>{if(ws==="restoring"){const t=to(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Ev||""),Ev="",ws="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&zf.has(e)){let t=zf.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),zf.delete(e)}}function e3(e){let t=e==null?void 0:e.defaultView;return(t==null?void 0:t.__webpack_nonce__)||globalThis.__webpack_nonce__||void 0}let w0=new WeakMap;function lte(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return e3(t);if(w0.has(t))return w0.get(t);let n=t.querySelector('meta[property="csp-nonce"]'),r=n&&n instanceof bo(n).HTMLMetaElement&&(n.nonce||n.content)||e3(t)||void 0;return r!==void 0&&w0.set(t,r),r}function cte(e){return e.pointerType===""&&e.isTrusted?!0:OT()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function ute(e){return!OT()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function mu(e,t,n=!0){var c,u;let{metaKey:r,ctrlKey:i,altKey:o,shiftKey:a}=t;ite()&&((u=(c=window.event)==null?void 0:c.type)!=null&&u.startsWith("key"))&&e.target==="_blank"&&(jp()?r=!0:i=!0);let l=nte()&&jp()&&!NT()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:i,altKey:o,shiftKey:a}):new MouseEvent("click",{metaKey:r,ctrlKey:i,altKey:o,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});mu.isOpening=n,pu(e),e.dispatchEvent(l),mu.isOpening=!1}mu.isOpening=!1;const FT=Gt.createContext({register:()=>{}});FT.displayName="PressResponderContext";const dte=Gt.useInsertionEffect??Xb;function Rf(e){const t=m.useRef(null);return dte(()=>{t.current=e},[e]),m.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function BT(){let e=m.useRef(new Map),t=m.useCallback((i,o,a,l)=>{let c=l!=null&&l.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:o,eventTarget:i,fn:c,options:l}),i.addEventListener(o,c,l)},[]),n=m.useCallback((i,o,a,l)=>{var u;let c=((u=e.current.get(a))==null?void 0:u.fn)||a;i.removeEventListener(o,c,l),e.current.delete(a)},[]),r=m.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return m.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function fte(e,t){Xb(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function pte(e){let t=m.useContext(FT);if(t){let{register:n,ref:r,...i}=t;e=Yb(i,e),n()}return fte(t,e.ref),e}var Fs;class Wd{constructor(t,n,r,i){Kx(this,Fs);rh(this,Fs,!0);let o=(i==null?void 0:i.target)??r.currentTarget;const a=o==null?void 0:o.getBoundingClientRect();let l,c=0,u,d=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,d=r.clientY),a&&(u!=null&&d!=null?(l=u-a.left,c=d-a.top):(l=a.width/2,c=a.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=c,this.key=r.key}continuePropagation(){rh(this,Fs,!1)}get shouldStopPropagation(){return Gx(this,Fs)}}Fs=new WeakMap;const t3=Symbol("linkClicked"),n3="react-aria-pressable-style",r3="data-react-aria-pressable";function mte(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:a,isDisabled:l,isPressed:c,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...h}=pte(e),[v,y]=m.useState(!1),x=m.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:g}=BT(),S=m.useCallback((z,X)=>{let V=x.current;if(l||V.didFirePressStart)return!1;let I=!0;if(V.isTriggeringEvent=!0,r){let D=new Wd("pressstart",X,z);r(D),I=D.shouldStopPropagation}return n&&n(!0),V.isTriggeringEvent=!1,V.didFirePressStart=!0,y(!0),I},[l,r,n]),w=m.useCallback((z,X,V=!0)=>{let I=x.current;if(!I.didFirePressStart)return!1;I.didFirePressStart=!1,I.isTriggeringEvent=!0;let D=!0;if(i){let R=new Wd("pressend",X,z);i(R),D=R.shouldStopPropagation}if(n&&n(!1),y(!1),t&&V&&!l){let R=new Wd("press",X,z);t(R),D&&(D=R.shouldStopPropagation)}return I.isTriggeringEvent=!1,D},[l,i,n,t]),k=Rf(w),P=m.useCallback((z,X)=>{let V=x.current;if(l)return!1;if(o){V.isTriggeringEvent=!0;let I=new Wd("pressup",X,z);return o(I),V.isTriggeringEvent=!1,I.shouldStopPropagation}return!0},[l,o]),j=Rf(P),_=m.useCallback(z=>{let X=x.current;if(X.isPressed&&X.target){X.didFirePressStart&&X.pointerType!=null&&w(Do(X.target,z),X.pointerType,!1),X.isPressed=!1,X.isOverTarget=!1,X.activePointerId=null,X.pointerType=null,g(),f||Jw(X.target);for(let V of X.disposables)V();X.disposables=[]}},[f,g,w]),M=Rf(_);m.useEffect(()=>{l&&x.current.isPressed&&M({currentTarget:x.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[l]);let T=m.useCallback(z=>{d&&_(z)},[d,_]),O=m.useCallback(z=>{l||a==null||a(z)},[l,a]),q=m.useCallback((z,X)=>{if(!l&&a){let V=new MouseEvent("click",z);Jee(V,X),a(Zee(V))}},[l,a]),ne=m.useMemo(()=>{let z=x.current,X={onKeyDown(I){var D;if(k0(I.nativeEvent,I.currentTarget)&&Rr(I.currentTarget,Dt(I))){i3(Dt(I),I.key)&&I.preventDefault();let R=!0;!z.isPressed&&!I.repeat&&(z.target=I.currentTarget,z.isPressed=!0,z.pointerType="keyboard",R=S(I,"keyboard"));let F=I.currentTarget,G=K=>{k0(K,F)&&!K.repeat&&Rr(F,Dt(K))&&z.target&&j(Do(z.target,K),"keyboard")};b(to(I.currentTarget),"keyup",MT(G,V),!0),R&&I.stopPropagation(),I.metaKey&&jp()&&((D=z.metaKeyEvents)==null||D.set(I.key,I.nativeEvent))}else I.key==="Meta"&&(z.metaKeyEvents=new Map)},onClick(I){if(!(I&&!Rr(I.currentTarget,Dt(I)))&&I&&I.button===0&&!z.isTriggeringEvent&&!mu.isOpening){let D=!0;if(l&&I.preventDefault(),!z.ignoreEmulatedMouseEvents&&!z.isPressed&&(z.pointerType==="virtual"||cte(I.nativeEvent))){let R=S(I,"virtual"),F=j(I,"virtual"),G=k(I,"virtual");O(I),D=R&&F&&G}else if(z.isPressed&&z.pointerType!=="keyboard"){let R=z.pointerType||I.nativeEvent.pointerType||"virtual",F=j(Do(I.currentTarget,I),R),G=k(Do(I.currentTarget,I),R,!0);D=F&&G,z.isOverTarget=!1,O(I),M(I)}z.ignoreEmulatedMouseEvents=!1,D&&I.stopPropagation()}}},V=I=>{var D,R,F;if(z.isPressed&&z.target&&k0(I,z.target)){i3(Dt(I),I.key)&&I.preventDefault();let G=Dt(I),K=Rr(z.target,G);k(Do(z.target,I),"keyboard",K),K&&q(I,z.target),g(),I.key!=="Enter"&&Zb(z.target)&&Rr(z.target,G)&&!I[t3]&&(I[t3]=!0,mu(z.target,I,!1)),z.isPressed=!1,(D=z.metaKeyEvents)==null||D.delete(I.key)}else if(I.key==="Meta"&&((R=z.metaKeyEvents)!=null&&R.size)){let G=z.metaKeyEvents;z.metaKeyEvents=void 0;for(let K of G.values())(F=z.target)==null||F.dispatchEvent(new KeyboardEvent("keyup",K))}};if(typeof PointerEvent<"u"){X.onPointerDown=R=>{if(R.button!==0||!Rr(R.currentTarget,Dt(R)))return;if(ute(R.nativeEvent)){z.pointerType="virtual";return}z.pointerType=R.pointerType;let F=!0;if(!z.isPressed){z.isPressed=!0,z.isOverTarget=!0,z.activePointerId=R.pointerId,z.target=R.currentTarget,f||ste(z.target),F=S(R,z.pointerType);let G=Dt(R);"releasePointerCapture"in G&&("hasPointerCapture"in G?G.hasPointerCapture(R.pointerId)&&G.releasePointerCapture(R.pointerId):G.releasePointerCapture(R.pointerId)),b(to(R.currentTarget),"pointerup",I,!1),b(to(R.currentTarget),"pointercancel",D,!1)}F&&R.stopPropagation()},X.onMouseDown=R=>{if(Rr(R.currentTarget,Dt(R))&&R.button===0){if(u){let F=ete(R.target);F&&z.disposables.push(F)}R.stopPropagation()}},X.onPointerUp=R=>{!Rr(R.currentTarget,Dt(R))||z.pointerType==="virtual"||R.button===0&&!z.isPressed&&j(R,z.pointerType||R.pointerType)},X.onPointerEnter=R=>{R.pointerId===z.activePointerId&&z.target&&!z.isOverTarget&&z.pointerType!=null&&(z.isOverTarget=!0,S(Do(z.target,R),z.pointerType))},X.onPointerLeave=R=>{R.pointerId===z.activePointerId&&z.target&&z.isOverTarget&&z.pointerType!=null&&(z.isOverTarget=!1,k(Do(z.target,R),z.pointerType,!1),T(R))};let I=R=>{if(R.pointerId===z.activePointerId&&z.isPressed&&R.button===0&&z.target){if(Rr(z.target,Dt(R))&&z.pointerType!=null){let F=!1,G=setTimeout(()=>{z.isPressed&&z.target instanceof HTMLElement&&(F?M(R):(pu(z.target),z.target.click()))},80);b(R.currentTarget,"click",()=>F=!0,!0),z.disposables.push(()=>clearTimeout(G))}else M(R);z.isOverTarget=!1}},D=R=>{M(R)};X.onDragStart=R=>{Rr(R.currentTarget,Dt(R))&&M(R)}}return X},[b,l,u,g,f,T,S,O,q]);return m.useEffect(()=>{if(!p)return;const z=to(p.current);if(!z||!z.head||z.getElementById(n3))return;const X=z.createElement("style");X.id=n3;let V=lte(z);V&&(X.nonce=V),X.textContent=`
@layer {
[${r3}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
`.trim(),z.head.prepend(X)},[p]),m.useEffect(()=>{let z=x.current;return()=>{f||Jw(z.target??void 0);for(let X of z.disposables)X();z.disposables=[]}},[f]),{isPressed:c||v,pressProps:Yb(h,ne,{[r3]:!0})}}function Zb(e){return e.tagName==="A"&&e.hasAttribute("href")}function k0(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof bo(i).HTMLInputElement&&!VT(i,n)||i instanceof bo(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&Zb(i))&&n!=="Enter")}function Do(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function hte(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Zb(e)}function i3(e,t){return e instanceof HTMLInputElement?!VT(e,t):hte(e)}const gte=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function VT(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":gte.has(e.type)}let vte=0;const C0=new Map;function yte(e){let[t,n]=m.useState();return Xb(()=>{if(!e)return;let r=C0.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${vte++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=e,document.body.appendChild(o),r={refCount:0,element:o},C0.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),C0.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}const bte=500;function xte(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=bte,accessibilityDescription:a}=e;const l=m.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:u}=BT(),{pressProps:d}=mte({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),l.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),to(p.target).activeElement!==p.target&&pu(p.target),i&&i({...p,type:"longpress"}),l.current=void 0},o),p.pointerType==="touch")){let h=y=>{y.preventDefault()},v=bo(p.target);c(p.target,"contextmenu",h,{once:!0}),c(v,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){l.current&&clearTimeout(l.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=yte(i&&!t?a:void 0);return{longPressProps:Yb(d,f)}}function Ste(){return typeof window.ResizeObserver<"u"}function wte(e){const{ref:t,box:n,onResize:r}=e;let i=Rf(r);m.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(Ste()){const a=new window.ResizeObserver(l=>{l.length&&i()});return a.observe(o,{box:n}),()=>{o&&a.unobserve(o)}}else return window.addEventListener("resize",i,!1),()=>{window.removeEventListener("resize",i,!1)}},[t,n])}function kte(e,t){return m.Children.toArray(e).find(n=>n.type===t)}function Cte(e,t){return m.Children.toArray(e).filter(n=>Array.isArray(t)?t.some(r=>r===n.type):n.type===t)}var jte=(e,t)=>Array.isArray(e)?e:typeof e=="object"?t==null?void 0:t(e):e!=null?[e]:[],o3=(e,t)=>{var n;const r=$i(),i=jte(e,(n=r.__breakpoints)==null?void 0:n.toArrayValue);return Sp(i,t)},[due,Pte]=Tr("SuiEmptyState"),_te=B((e,t)=>{var n;const r=Pte();return s.jsx(Tt,{ref:t,role:"presentation",...e,boxSize:(n=e.boxSize)!=null?n:10,sx:{...r.icon,...e.sx},className:W("sui-empty-state__icon",e.className)})});_te.displayName="EmptyStateIcon";var Jb=m.createContext({});function Tte(e){const{theme:t,linkComponent:n,onError:r,children:i,...o}=e,a={linkComponent:n,onError:r};return s.jsx(Jb.Provider,{value:a,children:s.jsx(WH,{...o,theme:t||ET,children:i})})}var Ete=()=>m.useContext(Jb),Ate=e=>s.jsx(N.a,{...e});function ex(){const e=Ete();return e!=null&&e.linkComponent?e.linkComponent:Ate}var $te=class extends m.Component{constructor(e){super(e),this.onError=(t,n)=>{var r,i,o,a;(i=(r=this.props).onError)==null||i.call(r,t,n),(a=(o=this.context).onError)==null||a.call(o,t,n)},this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.onError(e,t)}render(){return this.state.error?this.props.fallback||s.jsx("h1",{children:"Something went wrong."}):this.props.children}};$te.contextType=Jb;var WT=(e="lg")=>e?{base:!0,[e]:!1}:{base:!1},[zte,Rte]=Ce({strict:!1,errorMessage:"AppShell context not available."}),Mte=e=>{const t=Cu(),n=WT(e.toggleBreakpoint),r=Sp(n,{fallback:e.toggleBreakpoint||"lg"});return{isSidebarOpen:t.isOpen,closeSidebar:t.onClose,openSidebar:t.onOpen,toggleSidebar:t.onToggle,isMobile:r}},[Ite]=Tr("SuiAppShell"),Lte=B((e,t)=>{const n=Xe("SuiAppShell",e),{navbar:r,sidebar:i,aside:o,footer:a,children:l,mainRef:c,...u}=Ae(e),d={flexDirection:"column",...n.container},f={flex:1,minHeight:0,minWidth:0,...n.inner},p={flex:1,flexDirection:"column",minWidth:0,...n.main},h=m.isValidElement(i)&&i.type.id==="Sidebar",v=Mte({toggleBreakpoint:h?i==null?void 0:i.props.toggleBreakpoint:void 0});return s.jsx(zte,{value:v,children:s.jsx(Ite,{value:n,children:s.jsxs(kt,{ref:t,...u,sx:d,className:W("sui-app-shell",e.className),children:[r,s.jsxs(kt,{sx:f,className:"saas-app-shell__inner",children:[i,s.jsx(kt,{ref:c,sx:p,className:"saas-app-shell__main",children:l}),o]}),a]})})})});Lte.displayName="AppShell";function Nte(e){return s.jsx(Tt,{viewBox:"0 0 24 24",...e,children:s.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 Dte(e){return s.jsx(Tt,{viewBox:"0 0 24 24",...e,children:s.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 a3(e){return s.jsx(Tt,{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var Ud={enter:{duration:.2,ease:fi.easeOut},exit:{duration:.2,ease:fi.easeIn}},Ote={slideOutTop:{...Qi,custom:{offsetY:"-100%",reverse:!0,transition:Ud},initial:"enter"},slideOutBottom:{...Qi,custom:{offsetY:"100%",reverse:!0,transition:Ud},initial:"enter"},fade:{...Qi,custom:{transition:Ud},initial:"enter"},scale:{...Ib,custom:{initialScale:.1,reverse:!0,transition:Ud},initial:"enter"},none:{custom:{}}},Fte=N(qn.div),Bte=m.forwardRef((e,t)=>{const{motionPreset:n,...r}=e,o={...Ote[n]};return s.jsx(Fte,{ref:t,...o,...r})}),[Vte,Uu]=Tr("SuiBanner"),Wte={info:{icon:Dte,colorScheme:"blue"},warning:{icon:a3,colorScheme:"orange"},success:{icon:Nte,colorScheme:"green"},error:{icon:a3,colorScheme:"red"}},[Ute,Hte]=Ce({name:"BannerContext",errorMessage:"useBannerContext: `context` is undefined. Seems you forgot to wrap banner components in `<Banner />`"}),Gte=B((e,t)=>{var n;const{id:r,status:i="info",isOpen:o=!0,onClose:a,motionPreset:l="slideOutTop",...c}=Ae(e),u=(n=e.colorScheme)!=null?n:Wte[i].colorScheme,d=Xe("SuiBanner",{...e,colorScheme:u}),f={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...d.container},p={id:r||`banner-${m.useId()}`,status:i,onClose:a,isOpen:o},h=["warning","error"].includes(i)?"alert":"status",v=o?"enter":"exit";return s.jsx(Ute,{value:p,children:s.jsx(Vte,{value:d,children:s.jsx(Ai,{children:o&&s.jsx(Bte,{id:p.id,role:h,ref:t,motionPreset:l,animate:v,...c,className:W("sui-banner",e.className),__css:f})})})})});Gte.displayName="Banner";var Kte=B((e,t)=>{const n=Uu();return s.jsx(N.div,{ref:t,...e,className:W("sui-banner__content",e.className),__css:n.content})});Kte.displayName="BannerContent";var qte=B((e,t)=>{const n=Uu();return s.jsx(N.div,{ref:t,...e,className:W("sui-banner__title",e.className),__css:n.title})});qte.displayName="BannerTitle";var Xte=B((e,t)=>{const r={display:"inline",...Uu().description};return s.jsx(N.div,{ref:t,...e,className:W("sui-banner__desc",e.className),__css:r})});Xte.displayName="BannerDescription";var Yte=B((e,t)=>{const{children:n,variant:r}=e,i=Uu();return s.jsx(N.div,{ref:t,...e,className:W("sui-banner__actions",e.className),__css:i.actions,children:s.jsx(ab,{variant:r,children:n})})});Yte.displayName="BannerActions";var Qte=B((e,t)=>{const{onClick:n,className:r,...i}=e,{onClose:o,isOpen:a,id:l}=Hte(),c=W("sui-banner__close-btn",r),u=Uu();return s.jsx(ym,{ref:t,__css:u.closeButton,className:c,onClick:fe(n,d=>{d.stopPropagation(),o==null||o()}),"aria-controls":l,"aria-expanded":a!=null&&a.toString()?"true":"false",...i})});Qte.displayName="BannerCloseButton";Ce({name:"UseCollapseReturn"});var[Zte,tx]=Tr("SuiStructuredList"),[Jte,ene]=Ce({name:"StructuredListContext",errorMessage:"useStructuredListContext: `context` is undefined. Seems you forgot to wrap the components in `<StructuredList />`"});function tne(e){return AT(e,"[role='button']:not([disabled])")}var nne=e=>{var t;const n=m.useId(),r=m.useRef(null),[i,o]=m.useState(null),a={onBlur:fe(e.onBlur,l=>{l.relatedTarget&&(tne(r.current).includes(l.relatedTarget)||o(null))})};return{id:(t=e.id)!=null?t:n,containerRef:r,focusId:i,setFocusId:o,listProps:a}},rne=B((e,t)=>{const{items:n,children:r,...i}=e,o=Xe("SuiStructuredList",i),a=Ae(i);let l;n?l=n.map((f,p)=>m.createElement(UT,{...f,key:f.id||p})):l=r;const c={py:2,position:"relative",...o.list},{listProps:u,...d}=nne(e);return s.jsx(Jte,{value:d,children:s.jsx(Zte,{value:o,children:s.jsx(N.ul,{ref:J1(t,d.containerRef),__css:c,...a,...u,className:W("sui-list",e.className),children:l})})})});rne.displayName="StructuredList";var ine=B((e,t)=>{const{children:n,onClick:r,action:i,role:o="heading",level:a=1,...l}=e,c=tx();return s.jsxs(N.li,{ref:t,__css:c.header,onClick:r,...l,className:W("sui-list__header",e.className),children:[s.jsx(N.span,{flex:"1",userSelect:"none",role:o,"aria-level":a,children:n}),i]})});ine.displayName="StructuredListHeader";var UT=B((e,t)=>{const{onClick:n,href:r,as:i,children:o,isDisabled:a,...l}=e,c=tx(),u=!!(n||r),d=u?HT:m.Fragment,f=!!u,p={...c.item,...f?{py:0,px:0}:{}},h=u?{onClick:n,href:r,as:i,isDisabled:a}:{},v=u?s.jsx(d,{...h,children:o}):o;return s.jsx(N.li,{ref:t,__css:p,...l,className:W("sui-list__item",e.className),children:v})});UT.displayName="StructuredListItem";var one=e=>{var t;const{id:n,containerRef:r,focusId:i,setFocusId:o}=ene(),a=`${n}-${m.useId()}`,l=(t=e.id)!=null?t:a,c=i===l;function u(){return AT(r.current,".sui-list__item-button:not([aria-disabled=true])")}return{buttonProps:{id:l,"data-focus":le(c),"aria-disabled":e.isDisabled?"true":void 0,tabIndex:e.isDisabled?-1:0,onFocus:fe(e.onFocus,()=>{o(l)}),onKeyDown:fe(e.onKeyDown,m.useCallback(f=>{const p=u(),h={ArrowUp:()=>{var v;(v=Lee(p,l))==null||v.focus()},ArrowDown:()=>{var v;(v=Iee(p,l))==null||v.focus()},Home:()=>{var v;(v=p[0])==null||v.focus()},End:()=>{var v;(v=p[p.length-1])==null||v.focus()}};h[f.key]&&(f.preventDefault(),h[f.key](f))},[l])),onClick:f=>{var p;if(e.isDisabled){f.preventDefault(),f.stopPropagation();return}(p=e.onClick)==null||p.call(e,f)}}}},HT=B((e,t)=>{const{children:n,isDisabled:r,...i}=e,{buttonProps:o}=one(e),a=tx();return s.jsx(N.div,{ref:t,__css:a.button,role:"button",...i,...o,className:W("sui-list__item-button",e.className),children:n})});HT.displayName="StructuredListButton";var ane=B((e,t)=>{const n=ex(),{href:r,...i}=e;return s.jsx(_o,{as:n,ref:t,href:r,...i})});ane.displayName="Link";Tr("SuiLoadingOverlay");N(qn.div);var sne=typeof window<"u";function s3(e){return sne?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var lne=e=>{const{elementRef:t,delay:n=30,callback:r,isEnabled:i}=e,o=m.useRef(i?s3(t==null?void 0:t.current):{x:0,y:0});let a=null;const l=()=>{const c=s3(t==null?void 0:t.current);typeof r=="function"&&r({prevPos:o.current,currPos:c}),o.current=c,a=null};return m.useEffect(()=>{if(!i)return;const c=()=>{n?a===null&&(a=setTimeout(l,n)):l()},u=(t==null?void 0:t.current)||window;return u.addEventListener("scroll",c),()=>u.removeEventListener("scroll",c)},[t==null?void 0:t.current,n,i]),o.current},[fue,cne]=Ce({name:"UseContextMenuContext",strict:!1}),l3=(e=0,t=0)=>()=>({width:0,height:0,top:t,left:e,right:e,bottom:t}),une=()=>typeof window!==void 0&&window.matchMedia("(hover: none)").matches,dne=(e,t)=>{const{triggerRef:n,onOpen:r,onClose:i,anchor:o}=cne(),a=AX(),{popper:l,openAndFocusFirstItem:c}=a,{longPressProps:u}=xte({isDisabled:e.longPressDisabled,accessibilityDescription:"Long press to open context menu",onLongPressStart:h=>{i()},onLongPress:h=>{h.pointerType!=="mouse"&&h.type==="longpress"&&(r(h),c())}}),d=m.useRef({getBoundingClientRect:l3(o.x,o.y)});return m.useEffect(()=>{l.referenceRef(d.current)},[]),m.useEffect(()=>{d.current.getBoundingClientRect=l3(o.x,o.y),a.popper.update()},[o]),{triggerProps:{...u,onPointerDown:h=>{var v;h.pointerType!=="mouse"&&((v=u.onPointerDown)==null||v.call(u,h))},onMouseDown:h=>{var v;une()&&((v=u.onMouseDown)==null||v.call(u,h))},onContextMenu:fe(h=>{h.preventDefault(),r(h),c()},e.onContextMenu),ref:zt(n,t)}}},fne=B((e,t)=>{const{children:n,longPressDisabled:r,...i}=e,{triggerProps:o}=dne(e,t);return s.jsx(N.span,{...i,sx:{WebkitTouchCallout:"none"},...o,children:n})});fne.displayName="ContextMenuTrigger";var[pne,Am]=Tr("SuiPersona"),c3={online:{label:"Online",color:"presence.online"},offline:{label:"Offline",color:"presence.offline"},busy:{label:"Busy",color:"presence.busy"},dnd:{label:"Do-not-disturb",color:"presence.dnd"},away:{label:"Away",color:"presence.away"}},mne={online:"green.500",offline:"gray.400",busy:"orange.500",dnd:"red.500",away:"gray.400"},hne=B((e,t)=>{const{children:n,...r}=e,i=Xe("SuiPersona",e),o=Ae(r),l={...{display:"flex",flexDirection:"row",alignItems:"center"},...i.container};return s.jsx(pne,{value:i,children:s.jsx(N.div,{ref:t,__css:l,...o,className:W("sui-persona",e.className),children:n})})});hne.displayName="PersonaContainer";var gne=B((e,t)=>{var n,r,i,o,a;const{name:l,presence:c,presenceLabel:u,presenceIcon:d,isOutOfOffice:f,badgeSize:p="1em",size:h,getInitials:v,icon:y,iconLabel:x,ignoreFallback:b,loading:g,onError:S,src:w,srcSet:k,...P}=e,j={};let _;const M=$i(),T=((n=M.colors)==null?void 0:n.presence)||mne,O=!!((i=(r=M.semanticTokens)==null?void 0:r.colors)!=null&&i["presence.online"]);if(c){const q=u||((o=c3[c])==null?void 0:o.label),ne=O?((a=c3[c])==null?void 0:a.color)||`presence.${c}`:T[c];f?(j.sx={_before:{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:"0.2em solid",borderColor:ne,borderRadius:"50%",boxSizing:"border-box"}},j.borderWidth="0.15em",j.bg=Gg("white","gray.800")):j.bg=ne,_=s.jsx(KP,{boxSize:p,...j,children:d}),q&&(_=s.jsx(Fb,{label:q,children:_}))}return s.jsx(ob,{ref:t,name:l,size:h,getInitials:v,icon:y,iconLabel:x,ignoreFallback:b,loading:g,onError:S,src:w,srcSet:k,...P,children:_})});gne.displayName="PersonaAvatar";var vne=B((e,t)=>{const{children:n,className:r,...i}=e,o=Am(),l={...{display:"flex",flexDirection:"column"},...o.details};return s.jsx(N.div,{ref:t,...i,__css:l,className:W("sui-persona__details",r),children:n})});vne.displayName="PersonaDetails";var yne=B((e,t)=>{const n=Am();return s.jsx(N.span,{ref:t,...e,__css:n.label,className:W("sui-persona__label",e.className)})});yne.displayName="PersonaLabel";var bne=B((e,t)=>{const n=Am();return s.jsx(N.span,{ref:t,...e,__css:n.secondaryLabel,className:W("sui-persona__secondary-label",e.className)})});bne.displayName="PersonaSecondaryLabel";var xne=B((e,t)=>{const n=Am();return s.jsx(N.span,{ref:t,...e,__css:n.tertiaryLabel,className:W("sui-persona__tertiary-label",e.className)})});xne.displayName="PersonaTertiaryLabel";var[Sne,GT]=Tr("SuiProperty"),wne=B((e,t)=>{const n=Xe("SuiProperty",e),{children:r,label:i,value:o,labelWidth:a,spacing:l,...c}=Ae(e),u={minW:0,display:"flex",flexDirection:"row",alignItems:"center",...n.property};return s.jsx(Sne,{value:n,children:s.jsxs(N.dl,{ref:t,__css:u,...c,className:W("sui-property",e.className),children:[i&&s.jsx(KT,{width:a,minWidth:a,marginEnd:l,children:i}),o&&s.jsx(qT,{children:o}),r]})})});wne.displayName="Property";var KT=B((e,t)=>{const n=GT(),{children:r,noOfLines:i=1,width:o,minWidth:a,...l}=e,c={display:"flex",flexDirection:"row",...n.label};return o&&(c.minWidth=a||"auto",c.width=o),s.jsx(N.dt,{ref:t,__css:c,...l,className:W("sui-property__label",e.className),children:s.jsx(N.span,{flex:"1",noOfLines:i,children:r})})});KT.displayName="PropertyLabel";var qT=B((e,t)=>{const n=GT(),{children:r,...i}=e,o={display:"flex",flexDirection:"row",alignItems:"center",flex:1,...n.value};return s.jsx(N.dd,{ref:t,__css:o,...i,className:W("sui-property__value",e.className),children:r})});qT.displayName="PropertyValue";function kne(e){const{ref:t,parentRef:n,height:r="3.5rem",shouldHideOnScroll:i=!1,disableScrollHandler:o=!1,onScrollPositionChange:a,motionProps:l,...c}=e,u=m.useRef(null);m.useImperativeHandle(t,()=>u.current);const d=m.useRef(0),f=m.useRef(0),[p,h]=m.useState(!1),v=()=>{if(u.current){const x=u.current.offsetWidth;x!==d.current&&(d.current=x)}};return wte({ref:u,onResize:()=>{var x;((x=u.current)==null?void 0:x.offsetWidth)!==d.current&&v()}}),m.useEffect(()=>{var x;v(),f.current=((x=u.current)==null?void 0:x.offsetHeight)||0},[]),lne({elementRef:n,isEnabled:i||!o,callback:({prevPos:x,currPos:b})=>{a==null||a(b.y),i&&h(g=>{const S=b.y>x.y&&b.y>f.current;return S!==g?S:g})}}),{containerRef:u,height:r,isHidden:p,shouldHideOnScroll:i,motionProps:l,getContainerProps:(x={})=>({...c,...l,"data-hidden":le(p),ref:u,style:{"--navbar-height":r,...c.style,...x==null?void 0:x.style}})}}var[Cne]=Ce({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within <Navbar />"}),[jne,$m]=Ce({name:"NavBarStylesContext",hookName:"useNavItemStyles",providerName:"<NavBar />"}),Pne=N(qn.nav),_ne=B((e,t)=>{const{children:n,...r}=e,i=kne({...r,ref:t}),o=Xe("SuiNavbar",e),a=s.jsx(N.header,{__css:o.inner,className:"sui-navbar__inner",children:n}),l={top:e.position==="sticky"?"0":void 0,insetX:e.position==="sticky"?"0":void 0,...o.container};return s.jsx(jne,{value:o,children:s.jsx(Cne,{value:i,children:s.jsx(Pne,{__css:l,animate:i.isHidden?"hidden":"visible",initial:!1,variants:{hidden:{y:"-100%"},visible:{y:0,transition:{ease:"easeInOut"}}},className:W("sui-navbar",e.className),...i.getContainerProps(e),children:a})})})});_ne.displayName="Navbar";var Tne=B((e,t)=>{const{className:n,children:r,...i}=e,o=$m();return s.jsx(N.div,{ref:t,__css:o.brand,className:W("sui-navbar__brand"),...i,children:r})});Tne.displayName="NavbarBrand";var Ene=B((e,t)=>{const{className:n,children:r,spacing:i=0,...o}=e,l={...$m().content,"& > *:not(style) ~ *:not(style)":{marginStart:i}};return s.jsx(N.ul,{ref:t,__css:l,className:W("sui-navbar__content",n),...o,children:r})});Ene.displayName="NavbarContent";var Ane=B((e,t)=>{const{className:n,children:r,isActive:i,...o}=e,a=$m();return s.jsx(N.li,{ref:t,__css:a.item,className:W("sui-navbar__item",n),"data-active":le(i),...o,children:r})});Ane.displayName="NavbarItem";var $ne=B((e,t)=>{const{className:n,children:r,isActive:i,...o}=e,a=ex(),l=$m();return s.jsx(N.a,{as:a,ref:t,__css:l.link,"data-active":le(i),className:W("sui-navbar__link",n),...o,children:r})});$ne.displayName="NavbarLink";var[zne,Rne]=Ce({name:"SidebarContext",strict:!1}),[Mne]=Ce({name:"SidebarStylesContext",hookName:"useSidebarStyles",providerName:"<Sidebar />"}),Ine=N(qn.nav),Lne={slideInOut:{enter:{left:0,transition:{type:"spring",duration:.6,bounce:.15}},exit:{left:"-100%"}},none:{}},XT=B((e,t)=>{var n,r,i;const o=Xe("SuiSidebar",e),l=(n=$i().components.SuiSidebar)==null?void 0:n.defaultProps,c=o3((r=e.variant)!=null?r:l==null?void 0:l.variant,{fallback:"base"}),u=o3((i=e.size)!=null?i:l==null?void 0:l.size,{fallback:"base"}),d=c==="compact",{spacing:f=4,children:p,toggleBreakpoint:h="lg",className:v,motionPreset:y="slideInOut",isOpen:x,onOpen:b,onClose:g,...S}=Ae(e),w=Rte(),k=WT(h),P=Sp(k,{fallback:void 0}),j=Sp(k),_=typeof P>"u",M=typeof x<"u",T=(P||M)&&!d,O=Cu({isOpen:x||(w==null?void 0:w.isSidebarOpen),onOpen:b||(w==null?void 0:w.openSidebar),onClose:g||(w==null?void 0:w.closeSidebar)}),{isOpen:q,onClose:ne,onOpen:z}=O;m.useEffect(()=>{_&&j||d||M||(j?ne():z())},[_,d,j]);const X={"& > *:not(style) ~ *:not(style, .sui-resize-handle, .sui-sidebar__toggle-button + *)":{marginTop:f},display:"flex",flexDirection:"column",...P&&T?{position:"absolute",zIndex:"modal",top:0,left:{base:"-100%",lg:"0"},bottom:0}:{position:"relative"}},V={...O,breakpoints:k,isMobile:P,variant:c,size:u},I=Lne[d?"none":y||"none"];return s.jsx(zne,{value:V,children:s.jsx(Mne,{value:o,children:s.jsx(Ine,{ref:t,initial:!1,animate:!_&&(!T||q?"enter":"exit"),variants:I,__css:{...X,...o.container},...S,id:O.getDisclosureProps().id,className:W("sui-sidebar",v),"data-compact":le(d),"data-collapsible":le(P&&T),children:p})})})});XT.displayName="Sidebar";XT.id="Sidebar";Ce({name:"NavGroupStylesContext",hookName:"useNavItemStyles",providerName:"<NavItem />"});var[Nne,YT]=Ce({name:"NavItemStylesContext",hookName:"useNavItemStyles",providerName:"<NavItem />"}),QT=B(({children:e,...t},n)=>{const r=YT();return s.jsx(N.span,{ref:n,__css:r.label,...t,className:W("sui-nav-item__label",t.className),children:e})});QT.displayName="NavItemLabel";var ZT=e=>{const t=YT(),{className:n,children:r,...i}=e,o=m.Children.only(r),a=m.isValidElement(o)?m.cloneElement(o,{focusable:"false","aria-hidden":!0}):null;return s.jsx(N.span,{...i,className:W("sui-nav-item__icon",e.className),__css:{flexShrink:0,...t.icon},children:a})};ZT.displayName="NavItemIcon";var Dne=B((e,t)=>{const{as:n,href:r,icon:i,inset:o,className:a,tooltipProps:l,isActive:c,children:u,...d}=Ae(e),f=ex(),{onClose:p,variant:h}=Rne()||{},v=h==="compact",y=Xe("SuiNavItem",e);let x=u,b=l==null?void 0:l.label;typeof x=="string"&&(!b&&v&&(b=x),x=s.jsx(QT,{children:x}));let g=n;r&&!n&&(g=f);const S=s.jsx(N.a,{as:g,"aria-current":c?"page":void 0,...d,ref:t,href:r,className:"sui-nav-item__link","data-active":le(c),__css:y.link,children:s.jsxs(N.span,{__css:{...y.inner,pl:o},className:"sui-nav-item__inner",children:[i&&s.jsx(ZT,{children:i}),x]})});return s.jsx(Nne,{value:y,children:s.jsx(Fb,{label:b,placement:"right",openDelay:400,...l,children:s.jsx(N.div,{__css:y.item,onClick:p,"data-compact":le(v),className:W("sui-nav-item",a),children:S})})})});Dne.displayName="NavItem";var One=B((e,t)=>{const{placeholder:n="Search",value:r,defaultValue:i,size:o,variant:a,width:l,icon:c,resetIcon:u,rightElement:d,onChange:f,onReset:p,onKeyDown:h,...v}=e,y=Xe("SuiSearchInput",e),x=m.useRef(null),[b,g]=i6({value:r,defaultValue:i}),S=m.useCallback(_=>{g(_.target.value)},[g]),w=m.useCallback(_=>{_.key==="Escape"&&(g(""),k())},[p,g]),k=()=>{var _;g(""),p==null||p(),(_=x.current)==null||_.focus()},P=o==="lg"?"sm":"xs",j=b&&!e.isDisabled;return s.jsxs(jb,{size:o,width:l,children:[s.jsx(Pb,{children:c||s.jsx(vQ,{})}),s.jsx(yt,{type:"text",placeholder:n,variant:a,size:o,value:b,ref:J1(t,x),sx:y.input,onChange:fe(S,f),onKeyDown:fe(w,h),...v}),s.jsx(Sm,{children:j?s.jsx(On,{onClick:k,size:P,variant:"ghost","aria-label":"Reset search",icon:u||s.jsx(gQ,{}),sx:y.reset}):d})]})});One.displayName="SearchInput";var[Fne,Bne]=Ce({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"});function Vne(e){const{step:t,onChange:n}=e,[r,i]=m.useState(0),o=m.useRef([]),[,a]=m.useState(Date.now()),l=m.useCallback(h=>{const v=[...o.current];v.indexOf(h)===-1&&v.push(h),o.current=v,a(Date.now())},[o,a]),c=h=>{o.current=o.current.slice(o.current.indexOf(h),1)},u=h=>{const v=o.current.indexOf(h);v!==-1&&i(v)},d=()=>{i(r+1)},f=()=>{i(r-1)};return m.useEffect(()=>{typeof t=="string"?u(t):typeof t=="number"?i(t):r===-1&&i(0)},[t]),m.useEffect(()=>{n==null||n(r)},[r,n]),{stepsRef:o,activeStep:o.current[r],activeIndex:r,isFirstStep:r===0,isLastStep:r===o.current.length-1,isCompleted:r>=o.current.length,setIndex:i,setStep:u,nextStep:d,prevStep:f,registerStep:l,unregisterStep:c}}function Wne(e){const{name:t,isActive:n,isCompleted:r}=e,{registerStep:i,unregisterStep:o,activeStep:a}=Bne();return m.useEffect(()=>{if(t)return i(t),()=>{o(t)}},[]),{isActive:t?a===t:n,isCompleted:r}}var[Une,Hne]=Tr("Stepper"),Gne=B((e,t)=>{var n,r,i,o;const{children:a,orientation:l="horizontal",index:c,step:u,onChange:d,variant:f,colorScheme:p,size:h,stepperProps:v,...y}=e,x=Xe("Stepper",e),b=Vne({step:u??c,onChange:d}),{activeIndex:g}=b,S=l==="vertical",w=Cte(a,JT),k={position:"relative",...x.item},P=w.reduce((T,O,q,ne)=>{const z=m.cloneElement(O,{key:q,...O.props,isActive:g===q,isCompleted:O.props.isCompleted||g>q});return S?T.push(s.jsxs(N.div,{className:"sui-steps__item",__css:k,children:[z,s.jsx(Av,{isOpen:g===q,orientation:l,children:O.props.children}),q<ne.length-1?s.jsx(hT,{}):null]},`content-${q}`)):T.push(z),T},[]),j=kte(a,e8),_=(r=(n=w[g])==null?void 0:n.props)==null?void 0:r.children,M=g>=w.length?j:!S&&_?s.jsx(Av,{orientation:l,children:(o=(i=w[g])==null?void 0:i.props)==null?void 0:o.children}):null;return s.jsx(Une,{value:x,children:s.jsx(Fne,{value:b,children:s.jsxs(N.div,{ref:t,__css:x.container,...y,className:W("sui-steps",e.className),children:[s.jsx(lQ,{index:g,orientation:l,variant:f,colorScheme:p,size:h,...v,children:P}),M]})})})});Gne.displayName="Steps";var JT=e=>{const{render:t,icon:n,title:r,description:i,...o}=e,a=Wne(o);return t?t({...a,...e}):s.jsxs(tQ,{children:[s.jsx(aQ,{children:s.jsx(oQ,{complete:s.jsx(iQ,{}),incomplete:s.jsx(Iw,{children:n}),active:s.jsx(Iw,{})})}),s.jsxs(se,{flexShrink:"0",children:[s.jsx(sQ,{children:r}),i&&s.jsx(nQ,{children:i})]}),s.jsx(hT,{})]})};JT.displayName="StepsItem";var Av=e=>{const{children:t,isOpen:n=!0,orientation:r="horizontal",...i}=e,o=Hne();return s.jsx(N.div,{...i,__css:o.content,className:W("sui-steps__content",e.className),"data-orientation":r,children:r==="vertical"?s.jsx(Mu,{in:n,style:{overflow:n?"visible":"hidden"},children:s.jsx(N.div,{p:"2px",children:n?t:null})}):t})};Av.displayName="StepsContent";var e8=e=>{const t={};return s.jsx(N.div,{__css:t,...e,className:W("sui-steps__completed",e.className)})};e8.displayName="StepsCompleted";var[pue,Kne]=Tr("SuiTimeline"),qne=B((e,t)=>{const{children:n,...r}=e,i=Kne();return s.jsx(N.li,{...r,ref:t,__css:i.item,className:W("sui-timeline__item",e.className),children:n})});qne.displayName="TimelineItem";B((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":o,...a}=e,l=Xn("SuiIconBadge",e),c=Ae(a),u=n||r,d=m.isValidElement(u)?m.cloneElement(u,{"aria-hidden":!0,focusable:!1}):null,f={display:"inline-flex",alignItems:"center",justifyContent:"center",...l};return s.jsx(N.div,{ref:t,__css:f,borderRadius:i?"full":void 0,"aria-label":o,...c,className:W("sui-icon-badge",e.className),children:d})});/**
* @remix-run/router v1.23.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 hu(){return hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hu.apply(null,arguments)}var no;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(no||(no={}));const u3="popstate";function Xne(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:l}=r.location;return $v("",{pathname:o,search:a,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Pp(i)}return Qne(t,n,null,e)}function pt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function nx(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Yne(){return Math.random().toString(36).substr(2,8)}function d3(e,t){return{usr:e.state,key:e.key,idx:t}}function $v(e,t,n,r){return n===void 0&&(n=null),hu({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?bl(t):t,{state:n,key:t&&t.key||r||Yne()})}function Pp(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function bl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Qne(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,l=no.Pop,c=null,u=d();u==null&&(u=0,a.replaceState(hu({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function f(){l=no.Pop;let x=d(),b=x==null?null:x-u;u=x,c&&c({action:l,location:y.location,delta:b})}function p(x,b){l=no.Push;let g=$v(y.location,x,b);u=d()+1;let S=d3(g,u),w=y.createHref(g);try{a.pushState(S,"",w)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(w)}o&&c&&c({action:l,location:y.location,delta:1})}function h(x,b){l=no.Replace;let g=$v(y.location,x,b);u=d();let S=d3(g,u),w=y.createHref(g);a.replaceState(S,"",w),o&&c&&c({action:l,location:y.location,delta:0})}function v(x){let b=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof x=="string"?x:Pp(x);return g=g.replace(/ $/,"%20"),pt(b,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,b)}let y={get action(){return l},get location(){return e(i,a)},listen(x){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(u3,f),c=x,()=>{i.removeEventListener(u3,f),c=null}},createHref(x){return t(i,x)},createURL:v,encodeLocation(x){let b=v(x);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:h,go(x){return a.go(x)}};return y}var f3;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(f3||(f3={}));function Zne(e,t,n){return n===void 0&&(n="/"),Jne(e,t,n)}function Jne(e,t,n,r){let i=typeof t=="string"?bl(t):t,o=ol(i.pathname||"/",n);if(o==null)return null;let a=t8(e);ere(a);let l=null,c=dre(o);for(let u=0;l==null&&u<a.length;++u)l=cre(a[u],c);return l}function t8(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,l)=>{let c={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(pt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=po([r,c.relativePath]),d=n.concat(c);o.children&&o.children.length>0&&(pt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),t8(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:sre(u,o.index),routesMeta:d})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,a);else for(let c of n8(o.path))i(o,a,c)}),t}function n8(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=n8(r.join("/")),l=[];return l.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function ere(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:lre(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const tre=/^:[\w-]+$/,nre=3,rre=2,ire=1,ore=10,are=-2,p3=e=>e==="*";function sre(e,t){let n=e.split("/"),r=n.length;return n.some(p3)&&(r+=are),t&&(r+=rre),n.filter(i=>!p3(i)).reduce((i,o)=>i+(tre.test(o)?nre:o===""?ire:ore),r)}function lre(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function cre(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let l=0;l<r.length;++l){let c=r[l],u=l===r.length-1,d=o==="/"?t:t.slice(o.length)||"/",f=zv({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),p=c.route;if(!f)return null;Object.assign(i,f.params),a.push({params:i,pathname:po([o,f.pathname]),pathnameBase:gre(po([o,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(o=po([o,f.pathnameBase]))}return a}function zv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ure(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((u,d,f)=>{let{paramName:p,isOptional:h}=d;if(p==="*"){let y=l[f]||"";a=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const v=l[f];return h&&!v?u[p]=void 0:u[p]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function ure(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),nx(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function dre(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return nx(!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 ol(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const fre=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pre=e=>fre.test(e);function mre(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?bl(e):e,o;if(n)if(pre(n))o=n;else{if(n.includes("//")){let a=n;n=r8(n),nx(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?o=m3(n.substring(1),"/"):o=m3(n,t)}else o=t;return{pathname:o,search:vre(r),hash:yre(i)}}function m3(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function j0(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function hre(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function rx(e,t){let n=hre(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ix(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=bl(e):(i=hu({},e),pt(!i.pathname||!i.pathname.includes("?"),j0("?","pathname","search",i)),pt(!i.pathname||!i.pathname.includes("#"),j0("#","pathname","hash",i)),pt(!i.search||!i.search.includes("#"),j0("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,l;if(a==null)l=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}l=f>=0?t[f]:"/"}let c=mre(i,l),u=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const r8=e=>e.replace(/\/\/+/g,"/"),po=e=>r8(e.join("/")),gre=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),vre=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,yre=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function bre(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const i8=["post","put","patch","delete"];new Set(i8);const xre=["get",...i8];new Set(xre);/**
* React Router v6.30.4
*
* 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 gu(){return gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gu.apply(null,arguments)}const zm=m.createContext(null),o8=m.createContext(null),zi=m.createContext(null),Rm=m.createContext(null),Ri=m.createContext({outlet:null,matches:[],isDataRoute:!1}),a8=m.createContext(null);function Sre(e,t){let{relative:n}=t===void 0?{}:t;xl()||pt(!1);let{basename:r,navigator:i}=m.useContext(zi),{hash:o,pathname:a,search:l}=Mm(e,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:po([r,a])),i.createHref({pathname:c,search:l,hash:o})}function xl(){return m.useContext(Rm)!=null}function Ia(){return xl()||pt(!1),m.useContext(Rm).location}function s8(e){m.useContext(zi).static||m.useLayoutEffect(e)}function Er(){let{isDataRoute:e}=m.useContext(Ri);return e?Lre():wre()}function wre(){xl()||pt(!1);let e=m.useContext(zm),{basename:t,future:n,navigator:r}=m.useContext(zi),{matches:i}=m.useContext(Ri),{pathname:o}=Ia(),a=JSON.stringify(rx(i,n.v7_relativeSplatPath)),l=m.useRef(!1);return s8(()=>{l.current=!0}),m.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=ix(u,JSON.parse(a),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:po([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,a,o,e])}const kre=m.createContext(null);function Cre(e){let t=m.useContext(Ri).outlet;return t&&m.createElement(kre.Provider,{value:e},t)}function Mm(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(zi),{matches:i}=m.useContext(Ri),{pathname:o}=Ia(),a=JSON.stringify(rx(i,r.v7_relativeSplatPath));return m.useMemo(()=>ix(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function jre(e,t){return Pre(e,t)}function Pre(e,t,n,r){xl()||pt(!1);let{navigator:i}=m.useContext(zi),{matches:o}=m.useContext(Ri),a=o[o.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let u=Ia(),d;if(t){var f;let x=typeof t=="string"?bl(t):t;c==="/"||(f=x.pathname)!=null&&f.startsWith(c)||pt(!1),d=x}else d=u;let p=d.pathname||"/",h=p;if(c!=="/"){let x=c.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=Zne(e,{pathname:h}),y=$re(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:po([c,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:po([c,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&y?m.createElement(Rm.Provider,{value:{location:gu({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:no.Pop}},y):y}function _re(){let e=Ire(),t=bre(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:i},n):null,null)}const Tre=m.createElement(_re,null);class Ere extends m.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?m.createElement(Ri.Provider,{value:this.props.routeContext},m.createElement(a8.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Are(e){let{routeContext:t,match:n,children:r}=e,i=m.useContext(zm);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(Ri.Provider,{value:t},r)}function $re(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let d=a.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||pt(!1),a=a.slice(0,Math.min(a.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:p,errors:h}=n,v=f.route.loader&&p[f.route.id]===void 0&&(!h||h[f.route.id]===void 0);if(f.route.lazy||v){c=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,f,p)=>{let h,v=!1,y=null,x=null;n&&(h=l&&f.route.id?l[f.route.id]:void 0,y=f.route.errorElement||Tre,c&&(u<0&&p===0?(Nre("route-fallback"),v=!0,x=null):u===p&&(v=!0,x=f.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,p+1)),g=()=>{let S;return h?S=y:v?S=x:f.route.Component?S=m.createElement(f.route.Component,null):f.route.element?S=f.route.element:S=d,m.createElement(Are,{match:f,routeContext:{outlet:d,matches:b,isDataRoute:n!=null},children:S})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?m.createElement(Ere,{location:n.location,revalidation:n.revalidation,component:y,error:h,children:g(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):g()},null)}var l8=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(l8||{}),c8=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}(c8||{});function zre(e){let t=m.useContext(zm);return t||pt(!1),t}function Rre(e){let t=m.useContext(o8);return t||pt(!1),t}function Mre(e){let t=m.useContext(Ri);return t||pt(!1),t}function u8(e){let t=Mre(),n=t.matches[t.matches.length-1];return n.route.id||pt(!1),n.route.id}function Ire(){var e;let t=m.useContext(a8),n=Rre(),r=u8();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Lre(){let{router:e}=zre(l8.UseNavigateStable),t=u8(c8.UseNavigateStable),n=m.useRef(!1);return s8(()=>{n.current=!0}),m.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,gu({fromRouteId:t},o)))},[e,t])}const h3={};function Nre(e,t,n){h3[e]||(h3[e]=!0)}function Dre(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function vu(e){let{to:t,replace:n,state:r,relative:i}=e;xl()||pt(!1);let{future:o,static:a}=m.useContext(zi),{matches:l}=m.useContext(Ri),{pathname:c}=Ia(),u=Er(),d=ix(t,rx(l,o.v7_relativeSplatPath),c,i==="path"),f=JSON.stringify(d);return m.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:i}),[u,f,i,n,r]),null}function d8(e){return Cre(e.context)}function rn(e){pt(!1)}function Ore(e){let{basename:t="/",children:n=null,location:r,navigationType:i=no.Pop,navigator:o,static:a=!1,future:l}=e;xl()&&pt(!1);let c=t.replace(/^\/*/,"/"),u=m.useMemo(()=>({basename:c,navigator:o,static:a,future:gu({v7_relativeSplatPath:!1},l)}),[c,l,o,a]);typeof r=="string"&&(r=bl(r));let{pathname:d="/",search:f="",hash:p="",state:h=null,key:v="default"}=r,y=m.useMemo(()=>{let x=ol(d,c);return x==null?null:{location:{pathname:x,search:f,hash:p,state:h,key:v},navigationType:i}},[c,d,f,p,h,v,i]);return y==null?null:m.createElement(zi.Provider,{value:u},m.createElement(Rm.Provider,{children:n,value:y}))}function Fre(e){let{children:t,location:n}=e;return jre(Rv(t),n)}new Promise(()=>{});function Rv(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,i)=>{if(!m.isValidElement(r))return;let o=[...t,i];if(r.type===m.Fragment){n.push.apply(n,Rv(r.props.children,o));return}r.type!==rn&&pt(!1),!r.props.index||!r.props.children||pt(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Rv(r.props.children,o)),n.push(a)}),n}/**
* React Router DOM v6.30.4
*
* 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 _p(){return _p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_p.apply(null,arguments)}function f8(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Bre(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Vre(e,t){return e.button===0&&(!t||t==="_self")&&!Bre(e)}const Wre=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Ure=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Hre="6";try{window.__reactRouterVersion=Hre}catch{}const Gre=m.createContext({isTransitioning:!1}),Kre="startTransition",g3=D0[Kre];function qre(e){let{basename:t,children:n,future:r,window:i}=e,o=m.useRef();o.current==null&&(o.current=Xne({window:i,v5Compat:!0}));let a=o.current,[l,c]=m.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},d=m.useCallback(f=>{u&&g3?g3(()=>c(f)):c(f)},[c,u]);return m.useLayoutEffect(()=>a.listen(d),[a,d]),m.useEffect(()=>Dre(r),[r]),m.createElement(Ore,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const Xre=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Yre=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yt=m.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:l,target:c,to:u,preventScrollReset:d,viewTransition:f}=t,p=f8(t,Wre),{basename:h}=m.useContext(zi),v,y=!1;if(typeof u=="string"&&Yre.test(u)&&(v=u,Xre))try{let S=new URL(window.location.href),w=u.startsWith("//")?new URL(S.protocol+u):new URL(u),k=ol(w.pathname,h);w.origin===S.origin&&k!=null?u=k+w.search+w.hash:y=!0}catch{}let x=Sre(u,{relative:i}),b=Zre(u,{replace:a,state:l,target:c,preventScrollReset:d,relative:i,viewTransition:f});function g(S){r&&r(S),S.defaultPrevented||b(S)}return m.createElement("a",_p({},p,{href:v||x,onClick:y||o?r:g,ref:n,target:c}))}),p8=m.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:l,to:c,viewTransition:u,children:d}=t,f=f8(t,Ure),p=Mm(c,{relative:f.relative}),h=Ia(),v=m.useContext(o8),{navigator:y,basename:x}=m.useContext(zi),b=v!=null&&Jre(p)&&u===!0,g=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,S=h.pathname,w=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(S=S.toLowerCase(),w=w?w.toLowerCase():null,g=g.toLowerCase()),w&&x&&(w=ol(w,x)||w);const k=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let P=S===g||!a&&S.startsWith(g)&&S.charAt(k)==="/",j=w!=null&&(w===g||!a&&w.startsWith(g)&&w.charAt(g.length)==="/"),_={isActive:P,isPending:j,isTransitioning:b},M=P?r:void 0,T;typeof o=="function"?T=o(_):T=[o,P?"active":null,j?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let O=typeof l=="function"?l(_):l;return m.createElement(Yt,_p({},f,{"aria-current":M,className:T,ref:n,style:O,to:c,viewTransition:u}),typeof d=="function"?d(_):d)});var Mv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Mv||(Mv={}));var v3;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(v3||(v3={}));function Qre(e){let t=m.useContext(zm);return t||pt(!1),t}function Zre(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:l}=t===void 0?{}:t,c=Er(),u=Ia(),d=Mm(e,{relative:a});return m.useCallback(f=>{if(Vre(f,n)){f.preventDefault();let p=r!==void 0?r:Pp(u)===Pp(d);c(e,{replace:p,state:i,preventScrollReset:o,relative:a,viewTransition:l})}},[u,c,d,r,i,n,e,o,a,l])}function Jre(e,t){t===void 0&&(t={});let n=m.useContext(Gre);n==null&&pt(!1);let{basename:r}=Qre(Mv.useViewTransitionState),i=Mm(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=ol(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=ol(n.nextLocation.pathname,r)||n.nextLocation.pathname;return zv(i.pathname,a)!=null||zv(i.pathname,o)!=null}const eie=[{title:"Gestion de commandes",desc:"Client, admin, cabine, livreur — un flux complet de bout en bout."},{title:"Livraison temps réel",desc:"GPS, auto-assignation des livreurs, ETA et navigation."},{title:"Paiements & notifications",desc:"NowPayments (crypto), Telegram."},{title:"Sécurisé par design",desc:"Sécurité maximale avec RBAC, TLSv3, WAF et isolation de chaque plateforme."}];function tie(){return s.jsxs(se,{children:[s.jsx(se,{bgGradient:"linear(to-b, blackAlpha.50, transparent)",py:{base:16,md:24},children:s.jsx(pn,{maxW:"container.lg",children:s.jsxs(Se,{spacing:6,textAlign:"center",align:"center",children:[s.jsx(_t,{size:"2xl",children:"La plateforme de gestion de commandes & livraison"}),s.jsx(Z,{fontSize:"xl",color:"gray.600",maxW:"2xl",children:"Testez la solution complète en conditions réelles. Une démo isolée, déployée en un clic, disponible pendant 30 jours."}),s.jsxs(Se,{direction:{base:"column",sm:"row"},spacing:4,w:{base:"full",sm:"auto"},children:[s.jsx(ve,{as:Yt,to:"/register",colorScheme:"primary",size:"lg",w:{base:"full",sm:"auto"},children:"Créer un compte"}),s.jsx(ve,{as:Yt,to:"/tarifs",variant:"outline",size:"lg",w:{base:"full",sm:"auto"},children:"Voir les tarifs"})]})]})})}),s.jsx(pn,{maxW:"container.lg",py:16,children:s.jsx(gn,{columns:{base:1,md:2},spacing:8,children:eie.map(e=>s.jsxs(se,{p:6,borderWidth:"1px",borderRadius:"lg",children:[s.jsx(_t,{size:"md",mb:2,children:e.title}),s.jsx(Z,{color:"gray.600",children:e.desc})]},e.title))})})]})}const m8="https://t.me/OMNEX_CORP",nie=[{name:"Démo",price:"Gratuit",period:"30 jours",description:"Une instance isolée et complète pour évaluer la solution.",features:["Plateforme complète en conditions réelles","Environnement dédié et isolé","Disponible 30 jours","Accompagnement commercial"],cta:"Créer un compte",ctaHref:"/register"},{name:"Premium",price:"Sur devis",period:"",description:"Passez en production : stockage persistant, votre démo n'expire plus.",features:["Tout ce qui est inclus dans Démo","Votre nom de domaine","Support prioritaire"],cta:"Nous contacter",ctaHref:m8,ctaExternal:!0,highlighted:!0}];function rie(){return s.jsxs(pn,{maxW:"container.lg",py:{base:12,md:20},children:[s.jsxs(Se,{spacing:4,textAlign:"center",mb:12,align:"center",children:[s.jsx(_t,{size:"2xl",children:"Tarifs"}),s.jsx(Z,{fontSize:"lg",color:"gray.600",maxW:"2xl",children:"Commencez par une démo gratuite de 30 jours, puis passez en premium quand vous êtes prêt."})]}),s.jsx(gn,{columns:{base:1,md:2},spacing:8,alignItems:"stretch",maxW:"2xl",mx:"auto",children:nie.map(e=>s.jsx(iie,{plan:e},e.name))}),s.jsxs(Z,{textAlign:"center",color:"gray.500",mt:10,fontSize:"sm",children:["Besoin d'un devis précis ?"," ",s.jsx(oie,{href:m8,children:"Contactez-nous"})," — un commercial vous recontacte."]})]})}function iie({plan:e}){return s.jsxs(Se,{spacing:6,p:8,borderWidth:e.highlighted?"2px":"1px",borderColor:e.highlighted?"primary.500":"inherit",borderRadius:"xl",position:"relative",boxShadow:e.highlighted?"lg":"sm",bg:"bg-surface",children:[e.highlighted&&s.jsx(Wn,{colorScheme:"primary",position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",px:3,py:1,borderRadius:"full",children:"Le plus choisi"}),s.jsxs(se,{children:[s.jsx(_t,{size:"md",children:e.name}),s.jsx(Z,{color:"gray.500",mt:1,fontSize:"sm",children:e.description})]}),s.jsxs(ge,{align:"baseline",spacing:2,children:[s.jsx(Z,{fontSize:"3xl",fontWeight:"bold",children:e.price}),e.period&&s.jsxs(Z,{color:"gray.500",children:["/ ",e.period]})]}),s.jsx(Nu,{spacing:3,flex:"1",children:e.features.map(t=>s.jsxs(_b,{display:"flex",alignItems:"flex-start",children:[s.jsx(Tt,{as:aie,color:"primary.500",mt:1,mr:2}),s.jsx(Z,{fontSize:"sm",children:t})]},t))}),e.ctaExternal?s.jsx(ve,{as:"a",href:e.ctaHref,target:"_blank",rel:"noopener noreferrer",colorScheme:"primary",variant:e.highlighted?"solid":"outline",size:"lg",children:e.cta}):s.jsx(ve,{as:Yt,to:e.ctaHref,colorScheme:"primary",variant:e.highlighted?"solid":"outline",size:"lg",children:e.cta})]})}function oie({href:e,children:t}){return s.jsx(se,{as:"a",href:e,target:"_blank",rel:"noopener noreferrer",color:"primary.500",fontWeight:"medium",display:"inline",children:t})}function aie(e){return s.jsx(Tt,{viewBox:"0 0 20 20",fill:"currentColor",...e,children:s.jsx("path",{fillRule:"evenodd",d:"M16.7 5.3a1 1 0 010 1.4l-7.5 7.5a1 1 0 01-1.4 0L3.3 9.7a1 1 0 011.4-1.4l3.8 3.8 6.8-6.8a1 1 0 011.4 0z",clipRule:"evenodd"})})}/*!
* Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2026 Fonticons, Inc.
*/function Iv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sie(e){if(Array.isArray(e))return e}function lie(e){if(Array.isArray(e))return Iv(e)}function cie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h8(r.key),r)}}function die(e,t,n){return t&&uie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mf(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ox(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){l=!0,o=c},f:function(){try{a||n.return==null||n.return()}finally{if(l)throw o}}}}function de(e,t,n){return(t=h8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function mie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y3(Object(n),!0).forEach(function(r){de(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Im(e,t){return sie(e)||pie(e,t)||ox(e,t)||mie()}function _r(e){return lie(e)||fie(e)||ox(e)||hie()}function gie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function h8(e){var t=gie(e,"string");return typeof t=="symbol"?t:t+""}function Tp(e){"@babel/helpers - typeof";return Tp=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},Tp(e)}function ox(e,t){if(e){if(typeof e=="string")return Iv(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Iv(e,t):void 0}}var b3=function(){},ax={},g8={},v8=null,y8={mark:b3,measure:b3};try{typeof window<"u"&&(ax=window),typeof document<"u"&&(g8=document),typeof MutationObserver<"u"&&(v8=MutationObserver),typeof performance<"u"&&(y8=performance)}catch{}var vie=ax.navigator||{},x3=vie.userAgent,S3=x3===void 0?"":x3,xo=ax,nt=g8,w3=v8,Hd=y8;xo.document;var Mi=!!nt.documentElement&&!!nt.head&&typeof nt.addEventListener=="function"&&typeof nt.createElement=="function",b8=~S3.indexOf("MSIE")||~S3.indexOf("Trident/"),Gd,yie=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|gt|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt|sldr|slpdr|pr|ms|vs)?[\-\ ]/,bie=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Graphite|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Slab Duo|Slab Press Duo|Pixel|Mosaic|Vellum|Whiteboard)?.*/i,x8={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},"slab-duo":{"fa-regular":"regular",fasldr:"regular"},"slab-press-duo":{"fa-regular":"regular",faslpdr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},vellum:{"fa-solid":"solid",favs:"solid"},pixel:{"fa-regular":"regular",fapr:"regular"},mosaic:{"fa-solid":"solid",fams:"solid"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},graphite:{"fa-thin":"thin",fagt:"thin"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},xie={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},S8=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-graphite","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-slab-press-duo","fa-slab-duo","fa-mosaic","fa-pixel","fa-vellum","fa-utility","fa-utility-duo","fa-utility-fill"],Jt="classic",Hu="duotone",w8="sharp",k8="sharp-duotone",C8="chisel",j8="etch",P8="graphite",_8="jelly",T8="jelly-duo",E8="jelly-fill",A8="mosaic",$8="notdog",z8="notdog-duo",R8="pixel",M8="slab",I8="slab-duo",L8="slab-press",N8="slab-press-duo",D8="thumbprint",O8="utility",F8="utility-duo",B8="utility-fill",V8="vellum",W8="whiteboard",Sie="Classic",wie="Duotone",kie="Sharp",Cie="Sharp Duotone",jie="Chisel",Pie="Etch",_ie="Graphite",Tie="Jelly",Eie="Jelly Duo",Aie="Jelly Fill",$ie="Mosaic",zie="Notdog",Rie="Notdog Duo",Mie="Pixel",Iie="Slab",Lie="Slab Duo",Nie="Slab Press",Die="Slab Press Duo",Oie="Thumbprint",Fie="Utility",Bie="Utility Duo",Vie="Utility Fill",Wie="Vellum",Uie="Whiteboard",U8=[Jt,Hu,w8,k8,C8,j8,P8,_8,T8,E8,A8,$8,z8,R8,M8,I8,L8,N8,D8,O8,F8,B8,V8,W8];Gd={},de(de(de(de(de(de(de(de(de(de(Gd,Jt,Sie),Hu,wie),w8,kie),k8,Cie),C8,jie),j8,Pie),P8,_ie),_8,Tie),T8,Eie),E8,Aie),de(de(de(de(de(de(de(de(de(de(Gd,A8,$ie),$8,zie),z8,Rie),R8,Mie),M8,Iie),I8,Lie),L8,Nie),N8,Die),D8,Oie),O8,Fie),de(de(de(de(Gd,F8,Bie),B8,Vie),V8,Wie),W8,Uie);var Hie={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},"slab-duo":{400:"fasldr"},"slab-press-duo":{400:"faslpdr"},vellum:{900:"favs"},mosaic:{900:"fams"},pixel:{400:"fapr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},graphite:{100:"fagt"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}},Gie={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Slab Duo":{400:"fasldr",normal:"fasldr"},"Font Awesome 7 Slab Press Duo":{400:"faslpdr",normal:"faslpdr"},"Font Awesome 7 Pixel":{400:"fapr",normal:"fapr"},"Font Awesome 7 Mosaic":{900:"fams",normal:"fams"},"Font Awesome 7 Vellum":{900:"favs",normal:"favs"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Graphite":{100:"fagt",normal:"fagt"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}},Kie=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["graphite",{defaultShortPrefixId:"fagt",defaultStyleId:"thin",styleIds:["thin"],futureStyleIds:[],defaultFontWeight:100}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["mosaic",{defaultShortPrefixId:"fams",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["pixel",{defaultShortPrefixId:"fapr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-duo",{defaultShortPrefixId:"fasldr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press-duo",{defaultShortPrefixId:"faslpdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["vellum",{defaultShortPrefixId:"favs",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),qie={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},graphite:{thin:"fagt"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},mosaic:{solid:"fams"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},pixel:{regular:"fapr"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-duo":{regular:"fasldr"},"slab-press":{regular:"faslpr"},"slab-press-duo":{regular:"faslpdr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},vellum:{solid:"favs"},whiteboard:{semibold:"fawsb"}},H8=["fak","fa-kit","fakd","fa-kit-duotone"],k3={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},Xie=["kit"],Yie="kit",Qie="kit-duotone",Zie="Kit",Jie="Kit Duotone";de(de({},Yie,Zie),Qie,Jie);var eoe={kit:{"fa-kit":"fak"}},toe={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},noe={kit:{fak:"fa-kit"}},C3={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Kd,qd={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},roe=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-graphite","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-slab-press-duo","fa-slab-duo","fa-mosaic","fa-pixel","fa-vellum","fa-utility","fa-utility-duo","fa-utility-fill"],ioe="classic",ooe="duotone",aoe="sharp",soe="sharp-duotone",loe="chisel",coe="etch",uoe="graphite",doe="jelly",foe="jelly-duo",poe="jelly-fill",moe="mosaic",hoe="notdog",goe="notdog-duo",voe="pixel",yoe="slab",boe="slab-duo",xoe="slab-press",Soe="slab-press-duo",woe="thumbprint",koe="utility",Coe="utility-duo",joe="utility-fill",Poe="vellum",_oe="whiteboard",Toe="Classic",Eoe="Duotone",Aoe="Sharp",$oe="Sharp Duotone",zoe="Chisel",Roe="Etch",Moe="Graphite",Ioe="Jelly",Loe="Jelly Duo",Noe="Jelly Fill",Doe="Mosaic",Ooe="Notdog",Foe="Notdog Duo",Boe="Pixel",Voe="Slab",Woe="Slab Duo",Uoe="Slab Press",Hoe="Slab Press Duo",Goe="Thumbprint",Koe="Utility",qoe="Utility Duo",Xoe="Utility Fill",Yoe="Vellum",Qoe="Whiteboard";Kd={},de(de(de(de(de(de(de(de(de(de(Kd,ioe,Toe),ooe,Eoe),aoe,Aoe),soe,$oe),loe,zoe),coe,Roe),uoe,Moe),doe,Ioe),foe,Loe),poe,Noe),de(de(de(de(de(de(de(de(de(de(Kd,moe,Doe),hoe,Ooe),goe,Foe),voe,Boe),yoe,Voe),boe,Woe),xoe,Uoe),Soe,Hoe),woe,Goe),koe,Koe),de(de(de(de(Kd,Coe,qoe),joe,Xoe),Poe,Yoe),_oe,Qoe);var Zoe="kit",Joe="kit-duotone",eae="Kit",tae="Kit Duotone";de(de({},Zoe,eae),Joe,tae);var nae={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},"slab-duo":{"fa-regular":"fasldr"},"slab-press-duo":{"fa-regular":"faslpdr"},pixel:{"fa-regular":"fapr"},mosaic:{"fa-solid":"fams"},vellum:{"fa-solid":"favs"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},graphite:{"fa-thin":"fagt"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}},rae={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],"slab-duo":["fasldr"],"slab-press-duo":["faslpdr"],pixel:["fapr"],mosaic:["fams"],vellum:["favs"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],graphite:["fagt"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]},Lv={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},"slab-duo":{fasldr:"fa-regular"},"slab-press-duo":{faslpdr:"fa-regular"},pixel:{fapr:"fa-regular"},mosaic:{fams:"fa-solid"},vellum:{favs:"fa-solid"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},graphite:{fagt:"fa-thin"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},iae=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],G8=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fasldr","faslpdr","fapr","fams","favs","fawsb","fatl","fans","fands","faes","fagt","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(roe,iae),oae=["solid","regular","light","thin","duotone","brands","semibold"],K8=[1,2,3,4,5,6,7,8,9,10],aae=K8.concat([11,12,13,14,15,16,17,18,19,20]),sae=["aw","fw","pull-left","pull-right"],lae=[].concat(_r(Object.keys(rae)),oae,sae,["2xs","xs","sm","lg","xl","2xl","beat","beat-fade","border","bounce","buzz","canvas-square","canvas-roomy","fade","flip-360","flip-both","flip-horizontal","flip-vertical","flip","float","inverse","jello","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","spin-snap","spin-snap-4","spin-snap-8","stack-1x","stack-2x","stack","swing","ul","wag","width-auto","width-fixed",qd.GROUP,qd.SWAP_OPACITY,qd.PRIMARY,qd.SECONDARY]).concat(K8.map(function(e){return"".concat(e,"x")})).concat(aae.map(function(e){return"w-".concat(e)})),cae={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},_i="___FONT_AWESOME___",Nv=16,q8="fa",X8="svg-inline--fa",Pa="data-fa-i2svg",Dv="data-fa-pseudo-element",uae="data-fa-pseudo-element-pending",sx="data-prefix",lx="data-icon",j3="fontawesome-i2svg",dae="async",fae=["HTML","HEAD","STYLE","SCRIPT"],Y8=["::before","::after",":before",":after"],Q8=function(){try{return!0}catch{return!1}}();function Gu(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[Jt]}})}var Z8=H({},x8);Z8[Jt]=H(H(H(H({},{"fa-duotone":"duotone"}),x8[Jt]),k3.kit),k3["kit-duotone"]);var pae=Gu(Z8),Ov=H({},qie);Ov[Jt]=H(H(H(H({},{duotone:"fad"}),Ov[Jt]),C3.kit),C3["kit-duotone"]);var P3=Gu(Ov),Fv=H({},Lv);Fv[Jt]=H(H({},Fv[Jt]),noe.kit);var cx=Gu(Fv),Bv=H({},nae);Bv[Jt]=H(H({},Bv[Jt]),eoe.kit);Gu(Bv);var mae=yie,J8="fa-layers-text",hae=bie,gae=H({},Hie);Gu(gae);var vae=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],P0=xie,yae=[].concat(_r(Xie),_r(lae)),Ec=xo.FontAwesomeConfig||{};function bae(e){var t=nt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function xae(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(nt&&typeof nt.querySelector=="function"){var Sae=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];Sae.forEach(function(e){var t=Im(e,2),n=t[0],r=t[1],i=xae(bae(n));i!=null&&(Ec[r]=i)})}var e7={styleDefault:"solid",familyDefault:Jt,cssPrefix:q8,replacementClass:X8,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ec.familyPrefix&&(Ec.cssPrefix=Ec.familyPrefix);var al=H(H({},e7),Ec);al.autoReplaceSvg||(al.observeMutations=!1);var ue={};Object.keys(e7).forEach(function(e){Object.defineProperty(ue,e,{enumerable:!0,set:function(n){al[e]=n,Ac.forEach(function(r){return r(ue)})},get:function(){return al[e]}})});Object.defineProperty(ue,"familyPrefix",{enumerable:!0,set:function(t){al.cssPrefix=t,Ac.forEach(function(n){return n(ue)})},get:function(){return al.cssPrefix}});xo.FontAwesomeConfig=ue;var Ac=[];function wae(e){return Ac.push(e),function(){Ac.splice(Ac.indexOf(e),1)}}var Ha=Nv,Vr={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function kae(e){if(!(!e||!Mi)){var t=nt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=nt.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return nt.head.insertBefore(t,r),e}}var Cae="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function _3(){for(var e=12,t="";e-- >0;)t+=Cae[Math.random()*62|0];return t}function Sl(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ux(e){return e.classList?Sl(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function t7(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function jae(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(t7(e[n]),'" ')},"").trim()}function Lm(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function dx(e){return e.size!==Vr.size||e.x!==Vr.x||e.y!==Vr.y||e.rotate!==Vr.rotate||e.flipX||e.flipY}function Pae(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)"),c={transform:"".concat(o," ").concat(a," ").concat(l)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:c,path:u}}function _ae(e){var t=e.transform,n=e.width,r=n===void 0?Nv:n,i=e.height,o=i===void 0?Nv:i,a="";return b8?a+="translate(".concat(t.x/Ha-r/2,"em, ").concat(t.y/Ha-o/2,"em) "):a+="translate(calc(-50% + ".concat(t.x/Ha,"em), calc(-50% + ").concat(t.y/Ha,"em)) "),a+="scale(".concat(t.size/Ha*(t.flipX?-1:1),", ").concat(t.size/Ha*(t.flipY?-1:1),") "),a+="rotate(".concat(t.rotate,"deg) "),a}var Tae=`:root, :host {
--fa-font-solid: normal 900 1em/1 'Font Awesome 7 Free';
--fa-font-regular: normal 400 1em/1 'Font Awesome 7 Free';
--fa-font-light: normal 300 1em/1 'Font Awesome 7 Pro';
--fa-font-thin: normal 100 1em/1 'Font Awesome 7 Pro';
--fa-font-duotone: normal 900 1em/1 'Font Awesome 7 Duotone';
--fa-font-duotone-regular: normal 400 1em/1 'Font Awesome 7 Duotone';
--fa-font-duotone-light: normal 300 1em/1 'Font Awesome 7 Duotone';
--fa-font-duotone-thin: normal 100 1em/1 'Font Awesome 7 Duotone';
--fa-font-brands: normal 400 1em/1 'Font Awesome 7 Brands';
--fa-font-sharp-solid: normal 900 1em/1 'Font Awesome 7 Sharp';
--fa-font-sharp-regular: normal 400 1em/1 'Font Awesome 7 Sharp';
--fa-font-sharp-light: normal 300 1em/1 'Font Awesome 7 Sharp';
--fa-font-sharp-thin: normal 100 1em/1 'Font Awesome 7 Sharp';
--fa-font-sharp-duotone-solid: normal 900 1em/1 'Font Awesome 7 Sharp Duotone';
--fa-font-sharp-duotone-regular: normal 400 1em/1 'Font Awesome 7 Sharp Duotone';
--fa-font-sharp-duotone-light: normal 300 1em/1 'Font Awesome 7 Sharp Duotone';
--fa-font-sharp-duotone-thin: normal 100 1em/1 'Font Awesome 7 Sharp Duotone';
--fa-font-slab-regular: normal 400 1em/1 'Font Awesome 7 Slab';
--fa-font-slab-press-regular: normal 400 1em/1 'Font Awesome 7 Slab Press';
--fa-font-slab-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Duo';
--fa-font-slab-press-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Press Duo';
--fa-font-pixel-regular: normal 400 1em/1 'Font Awesome 7 Pixel';
--fa-font-mosaic-solid: normal 900 1em/1 'Font Awesome 7 Mosaic';
--fa-font-vellum-solid: normal 900 1em/1 'Font Awesome 7 Vellum';
--fa-font-whiteboard-semibold: normal 600 1em/1 'Font Awesome 7 Whiteboard';
--fa-font-thumbprint-light: normal 300 1em/1 'Font Awesome 7 Thumbprint';
--fa-font-notdog-solid: normal 900 1em/1 'Font Awesome 7 Notdog';
--fa-font-notdog-duo-solid: normal 900 1em/1 'Font Awesome 7 Notdog Duo';
--fa-font-etch-solid: normal 900 1em/1 'Font Awesome 7 Etch';
--fa-font-graphite-thin: normal 100 1em/1 'Font Awesome 7 Graphite';
--fa-font-jelly-regular: normal 400 1em/1 'Font Awesome 7 Jelly';
--fa-font-jelly-fill-regular: normal 400 1em/1 'Font Awesome 7 Jelly Fill';
--fa-font-jelly-duo-regular: normal 400 1em/1 'Font Awesome 7 Jelly Duo';
--fa-font-chisel-regular: normal 400 1em/1 'Font Awesome 7 Chisel';
--fa-font-utility-semibold: normal 600 1em/1 'Font Awesome 7 Utility';
--fa-font-utility-duo-semibold: normal 600 1em/1 'Font Awesome 7 Utility Duo';
--fa-font-utility-fill-semibold: normal 600 1em/1 'Font Awesome 7 Utility Fill';
}
.svg-inline--fa {
box-sizing: content-box;
display: var(--fa-display, inline-block);
height: 1em;
overflow: visible;
vertical-align: -0.125em;
width: var(--fa-width, 1.25em);
}
.svg-inline--fa.fa-2xs {
vertical-align: 0.1em;
}
.svg-inline--fa.fa-xs {
vertical-align: 0em;
}
.svg-inline--fa.fa-sm {
vertical-align: -0.0714285714em;
}
.svg-inline--fa.fa-lg {
vertical-align: -0.2em;
}
.svg-inline--fa.fa-xl {
vertical-align: -0.25em;
}
.svg-inline--fa.fa-2xl {
vertical-align: -0.3125em;
}
.svg-inline--fa.fa-pull-left,
.svg-inline--fa .fa-pull-start {
float: inline-start;
margin-inline-end: var(--fa-pull-margin, 0.3em);
}
.svg-inline--fa.fa-pull-right,
.svg-inline--fa .fa-pull-end {
float: inline-end;
margin-inline-start: var(--fa-pull-margin, 0.3em);
}
.svg-inline--fa.fa-li {
width: var(--fa-li-width, 2em);
inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */
}
.fa-layers-counter, .fa-layers-text {
display: inline-block;
position: absolute;
text-align: center;
}
.fa-layers {
display: inline-block;
height: 1em;
position: relative;
text-align: center;
vertical-align: -0.125em;
width: var(--fa-width, 1.25em);
}
.fa-layers .svg-inline--fa {
inset: 0;
margin: auto;
position: absolute;
transform-origin: center center;
}
.fa-layers-text {
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
transform-origin: center center;
}
.fa-layers-counter {
background-color: var(--fa-counter-background-color, #ff253a);
border-radius: var(--fa-counter-border-radius, 1em);
box-sizing: border-box;
color: var(--fa-inverse, #fff);
line-height: var(--fa-counter-line-height, 1);
max-width: var(--fa-counter-max-width, 5em);
min-width: var(--fa-counter-min-width, 1.5em);
overflow: hidden;
padding: var(--fa-counter-padding, 0.25em 0.5em);
right: var(--fa-right, 0);
text-overflow: ellipsis;
top: var(--fa-top, 0);
transform: scale(var(--fa-counter-scale, 0.25));
transform-origin: top right;
}
.fa-layers-bottom-right {
bottom: var(--fa-bottom, 0);
right: var(--fa-right, 0);
top: auto;
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: bottom right;
}
.fa-layers-bottom-left {
bottom: var(--fa-bottom, 0);
left: var(--fa-left, 0);
right: auto;
top: auto;
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: bottom left;
}
.fa-layers-top-right {
top: var(--fa-top, 0);
right: var(--fa-right, 0);
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: top right;
}
.fa-layers-top-left {
left: var(--fa-left, 0);
right: auto;
top: var(--fa-top, 0);
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: top left;
}
.fa-1x {
font-size: 1em;
}
.fa-2x {
font-size: 2em;
}
.fa-3x {
font-size: 3em;
}
.fa-4x {
font-size: 4em;
}
.fa-5x {
font-size: 5em;
}
.fa-6x {
font-size: 6em;
}
.fa-7x {
font-size: 7em;
}
.fa-8x {
font-size: 8em;
}
.fa-9x {
font-size: 9em;
}
.fa-10x {
font-size: 10em;
}
.fa-2xs {
font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */
line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */
vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}
.fa-xs {
font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */
line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */
vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}
.fa-sm {
font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */
line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */
vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}
.fa-lg {
font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */
line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */
vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}
.fa-xl {
font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */
line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */
vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}
.fa-2xl {
font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */
line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */
vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}
.fa-width-auto {
--fa-width: auto;
}
.fa-fw,
.fa-width-fixed {
--fa-width: 1.25em;
}
.fa-canvas-square {
padding-block: 0.125em;
margin-block-end: -0.125em;
}
.fa-canvas-roomy {
padding-block: 0.25em;
padding-inline: 0.125em;
margin-block-end: -0.25em;
box-sizing: content-box;
}
.fa-ul {
list-style-type: none;
margin-inline-start: var(--fa-li-margin, 2.5em);
padding-inline-start: 0;
}
.fa-ul > li {
position: relative;
}
.fa-li {
inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
position: absolute;
text-align: center;
width: var(--fa-li-width, 2em);
line-height: inherit;
}
/* Heads Up: Bordered Icons will not be supported in the future!
- This feature will be deprecated in the next major release of Font Awesome (v8)!
- You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.
*/
/* Notes:
* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)
* --@{v.$css-prefix}-border-padding =
** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)
** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)
*/
.fa-border {
border-color: var(--fa-border-color, #eee);
border-radius: var(--fa-border-radius, 0.1em);
border-style: var(--fa-border-style, solid);
border-width: var(--fa-border-width, 0.0625em);
box-sizing: var(--fa-border-box-sizing, content-box);
padding: var(--fa-border-padding, 0.1875em 0.25em);
}
.fa-pull-left,
.fa-pull-start {
float: inline-start;
margin-inline-end: var(--fa-pull-margin, 0.3em);
}
.fa-pull-right,
.fa-pull-end {
float: inline-end;
margin-inline-start: var(--fa-pull-margin, 0.3em);
}
.fa-beat {
animation-name: fa-beat;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-bounce {
animation-name: fa-bounce;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
}
.fa-fade {
animation-name: fa-fade;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-beat-fade {
animation-name: fa-beat-fade;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-flip {
animation-name: fa-flip;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1.5s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-flip-360 {
animation-name: fa-flip-360;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-shake {
animation-name: fa-shake;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 0.75s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-spin {
animation-name: fa-spin;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 2s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-spin-reverse {
--fa-animation-direction: reverse;
}
.fa-pulse,
.fa-spin-pulse {
animation-name: fa-spin;
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, steps(8));
}
.fa-spin-snap {
animation-name: fa-spin-snap;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 3s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-spin-snap-4 {
animation-name: fa-spin-snap-4;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 2.4s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-spin-snap-8 {
animation-name: fa-spin-snap-8;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 4s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-buzz {
animation-name: fa-buzz;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 0.6s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-wag {
animation-name: fa-wag;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 0.9s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, ease-out);
transform-origin: bottom center;
}
.fa-float {
animation-name: fa-float;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 3s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
will-change: transform;
}
.fa-swing {
animation-name: fa-swing;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1.2s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, ease-out);
transform-origin: top center;
}
.fa-jello {
animation-name: fa-jello;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 0.9s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, ease-out);
}
@media (prefers-reduced-motion: reduce) {
.fa-beat,
.fa-bounce,
.fa-fade,
.fa-beat-fade,
.fa-flip,
.fa-flip-360,
.fa-pulse,
.fa-shake,
.fa-spin,
.fa-spin-pulse,
.fa-buzz,
.fa-float,
.fa-jello,
.fa-spin-snap,
.fa-spin-snap-4,
.fa-spin-snap-8,
.fa-swing,
.fa-wag {
animation: none !important;
transition: none !important;
}
}
@keyframes fa-beat {
0% {
transform: scale(1);
}
25% {
transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25)));
}
45% {
transform: scale(calc(1.22 * var(--fa-beat-scale, 1.22)));
}
65% {
transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25)));
}
90% {
transform: scale(1);
}
}
@keyframes fa-bounce {
0% {
transform: scale(1, 1) translateY(0);
animation-timing-function: var(--fa-animation-timing);
}
14% {
transform: scale(var(--fa-bounce-start-scale-x, 1.06), var(--fa-bounce-start-scale-y, 0.94)) translateY(var(--fa-bounce-anticipation, 3px));
animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);
}
32% {
transform: scale(var(--fa-bounce-jump-scale-x, 0.94), var(--fa-bounce-jump-scale-y, 1.12)) translateY(calc(-1 * var(--fa-bounce-height, 0.5em)));
animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);
}
52% {
transform: scale(1, 1) translateY(calc(-1 * var(--fa-bounce-height, 0.5em) * 1.1));
animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
}
70% {
transform: scale(var(--fa-bounce-land-scale-x, 1.06), var(--fa-bounce-land-scale-y, 0.92)) translateY(0);
animation-timing-function: cubic-bezier(0.33, 0.33, 0.66, 1);
}
85% {
transform: scale(0.98, 1.04) translateY(calc(-2px * var(--fa-bounce-rebound, 1)));
animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);
}
100% {
transform: scale(1, 1) translateY(0);
}
}
@keyframes fa-fade {
0% {
opacity: 1;
transform: scale(1);
animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);
}
40% {
opacity: var(--fa-fade-opacity, 0.4);
transform: scale(0.98);
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
}
100% {
opacity: 1;
transform: scale(1);
}
}
@keyframes fa-beat-fade {
0% {
opacity: var(--fa-beat-fade-opacity, 0.4);
transform: scale(1);
animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);
}
25% {
opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4);
transform: scale(var(--fa-beat-fade-scale, 1.28));
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
}
45% {
opacity: 1;
transform: scale(var(--fa-beat-fade-scale, 1.25));
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
65% {
opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4);
transform: scale(var(--fa-beat-fade-scale, 1.28));
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
}
100% {
opacity: var(--fa-beat-fade-opacity, 0.4);
transform: scale(1);
}
}
@keyframes fa-flip {
0% {
transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);
animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);
}
8% {
transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);
animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);
}
35% {
transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6));
animation-timing-function: linear;
}
65% {
transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.5));
animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);
}
92% {
transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04)));
animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);
}
100% {
transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg));
}
}
@keyframes fa-flip-360 {
0% {
transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);
animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);
}
8% {
transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);
animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);
}
50% {
transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6));
animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);
}
80% {
transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04)));
animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);
}
100% {
transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg));
}
}
@keyframes fa-shake {
0% {
transform: rotate(0deg);
animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);
}
8% {
transform: rotate(35deg) translateX(1px);
animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
}
20% {
transform: rotate(-22deg) translateX(-1px);
animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
}
35% {
transform: rotate(15deg) translateX(1px);
animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
}
50% {
transform: rotate(-9deg);
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
}
65% {
transform: rotate(5deg);
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
}
78% {
transform: rotate(-3deg);
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
}
90% {
transform: rotate(1deg);
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
100% {
transform: rotate(0deg);
}
}
@keyframes fa-spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes fa-spin-snap {
0% {
transform: rotate(0deg);
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
12% {
transform: rotate(60deg);
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
}
16.67% {
transform: rotate(60deg);
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
28.67% {
transform: rotate(120deg);
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
}
33.33% {
transform: rotate(120deg);
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
45.33% {
transform: rotate(180deg);
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
}
50% {
transform: rotate(180deg);
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
62% {
transform: rotate(240deg);
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
}
66.67% {
transform: rotate(240deg);
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
78.67% {
transform: rotate(300deg);
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
}
83.33% {
transform: rotate(300deg);
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
95.33% {
transform: rotate(360deg);
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
}
100% {
transform: rotate(360deg);
}
}
@keyframes fa-spin-snap-4 {
0% {
transform: rotate(0deg);
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
15% {
transform: rotate(90deg);
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
}
25% {
transform: rotate(90deg);
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
40% {
transform: rotate(180deg);
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
}
50% {
transform: rotate(180deg);
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
65% {
transform: rotate(270deg);
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
}
75% {
transform: rotate(270deg);
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
90% {
transform: rotate(360deg);
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
}
100% {
transform: rotate(360deg);
}
}
@keyframes fa-spin-snap-8 {
0% {
transform: rotate(0deg);
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
9% {
transform: rotate(45deg);
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
}
12.5% {
transform: rotate(45deg);
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
21.5% {
transform: rotate(90deg);
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
}
25% {
transform: rotate(90deg);
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
34% {
transform: rotate(135deg);
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
}
37.5% {
transform: rotate(135deg);
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
46.5% {
transform: rotate(180deg);
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
}
50% {
transform: rotate(180deg);
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
59% {
transform: rotate(225deg);
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
}
62.5% {
transform: rotate(225deg);
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
71.5% {
transform: rotate(270deg);
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
}
75% {
transform: rotate(270deg);
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
84% {
transform: rotate(315deg);
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
}
87.5% {
transform: rotate(315deg);
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
96.5% {
transform: rotate(360deg);
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
}
100% {
transform: rotate(360deg);
}
}
@keyframes fa-buzz {
0% {
transform: translateX(0) rotate(0deg);
animation-timing-function: cubic-bezier(0.1, 0, 0.9, 1);
}
5% {
transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.5deg);
}
10% {
transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.5deg);
}
15% {
transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.3deg);
}
20% {
transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.3deg);
}
25% {
transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.7)) rotate(0.2deg);
}
30% {
transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px) * 0.7)) rotate(-0.2deg);
}
35% {
transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.4)) rotate(0.1deg);
}
40% {
transform: translateX(0) rotate(0deg);
}
100% {
transform: translateX(0) rotate(0deg);
}
}
@keyframes fa-wag {
0% {
transform: rotate(0deg);
animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);
}
12% {
transform: rotate(var(--fa-wag-angle, 12deg));
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
24% {
transform: rotate(2deg);
animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);
}
36% {
transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.85));
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
48% {
transform: rotate(1deg);
animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);
}
58% {
transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.6));
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
68% {
transform: rotate(0deg);
}
100% {
transform: rotate(0deg);
}
}
@keyframes fa-float {
0% {
transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));
animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);
}
15% {
transform: translateY(calc(-0.4 * var(--fa-float-height, 6px))) translateX(var(--fa-float-drift, 1px)) rotate(var(--fa-float-tilt, 1deg)) scale(1, 1);
animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);
}
35% {
transform: translateY(calc(-1 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-stretch-x, 0.98), var(--fa-float-stretch-y, 1.03));
animation-timing-function: cubic-bezier(0.5, 0, 0.5, 0);
}
50% {
transform: translateY(calc(-0.92 * var(--fa-float-height, 6px))) translateX(calc(-0.5 * var(--fa-float-drift, 1px))) rotate(calc(-0.5 * var(--fa-float-tilt, 1deg))) scale(0.995, 1.01);
animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);
}
70% {
transform: translateY(calc(-0.3 * var(--fa-float-height, 6px))) translateX(calc(-1 * var(--fa-float-drift, 1px))) rotate(calc(-1 * var(--fa-float-tilt, 1deg))) scale(1, 1);
animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);
}
90% {
transform: translateY(calc(0.05 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));
animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);
}
100% {
transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));
}
}
@keyframes fa-swing {
0% {
transform: rotate(0deg);
animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);
}
8% {
transform: rotate(var(--fa-swing-angle, 22deg));
animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
}
18% {
transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.85));
animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
}
28% {
transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.65));
animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1);
}
38% {
transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.45));
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
}
48% {
transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.25));
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
}
56% {
transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.1));
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
}
64% {
transform: rotate(0deg);
}
100% {
transform: rotate(0deg);
}
}
@keyframes fa-jello {
0% {
transform: scale(1, 1);
animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);
}
12% {
transform: scale(var(--fa-jello-scale-x, 1.15), calc(2 - var(--fa-jello-scale-x, 1.15)));
animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
}
24% {
transform: scale(calc(2 - var(--fa-jello-scale-y, 1.12)), var(--fa-jello-scale-y, 1.12));
animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
}
36% {
transform: scale(calc(1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5), calc(2 - (1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5)));
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
}
48% {
transform: scale(calc(2 - (1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3)), calc(1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3));
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
}
58% {
transform: scale(1.02, 0.98);
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
68% {
transform: scale(1, 1);
}
100% {
transform: scale(1, 1);
}
}
.fa-rotate-90 {
transform: rotate(90deg);
}
.fa-rotate-180 {
transform: rotate(180deg);
}
.fa-rotate-270 {
transform: rotate(270deg);
}
.fa-flip-horizontal {
transform: scale(-1, 1);
}
.fa-flip-vertical {
transform: scale(1, -1);
}
.fa-flip-both,
.fa-flip-horizontal.fa-flip-vertical {
transform: scale(-1, -1);
}
.fa-rotate-by {
transform: rotate(var(--fa-rotate-angle, 0));
}
.svg-inline--fa .fa-primary {
fill: var(--fa-primary-color, currentColor);
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa .fa-secondary {
fill: var(--fa-secondary-color, currentColor);
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-primary {
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-secondary {
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa mask .fa-primary,
.svg-inline--fa mask .fa-secondary {
fill: black;
}
.svg-inline--fa.fa-inverse {
fill: var(--fa-inverse, #fff);
}
.fa-stack {
display: inline-block;
height: 2em;
line-height: 2em;
position: relative;
vertical-align: middle;
width: 2.5em;
}
.fa-inverse {
color: var(--fa-inverse, #fff);
}
.svg-inline--fa.fa-stack-1x {
--fa-width: 1.25em;
height: 1em;
width: var(--fa-width);
}
.svg-inline--fa.fa-stack-2x {
--fa-width: 2.5em;
height: 2em;
width: var(--fa-width);
}
.fa-stack-1x,
.fa-stack-2x {
inset: 0;
margin: auto;
position: absolute;
z-index: var(--fa-stack-z-index, auto);
}`;function n7(){var e=q8,t=X8,n=ue.cssPrefix,r=ue.replacementClass,i=Tae;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(l,".".concat(r))}return i}var T3=!1;function _0(){ue.autoAddCss&&!T3&&(kae(n7()),T3=!0)}var Eae={mixout:function(){return{dom:{css:n7,insertCss:_0}}},hooks:function(){return{beforeDOMElementCreation:function(){_0()},beforeI2svg:function(){_0()}}}},Ti=xo||{};Ti[_i]||(Ti[_i]={});Ti[_i].styles||(Ti[_i].styles={});Ti[_i].hooks||(Ti[_i].hooks={});Ti[_i].shims||(Ti[_i].shims=[]);var Sr=Ti[_i],r7=[],i7=function(){nt.removeEventListener("DOMContentLoaded",i7),Ep=1,r7.map(function(t){return t()})},Ep=!1;Mi&&(Ep=(nt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(nt.readyState),Ep||nt.addEventListener("DOMContentLoaded",i7));function Aae(e){Mi&&(Ep?setTimeout(e,0):r7.push(e))}function Ku(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,o=i===void 0?[]:i;return typeof e=="string"?t7(e):"<".concat(t," ").concat(jae(r),">").concat(o.map(Ku).join(""),"</").concat(t,">")}function E3(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var T0=function(t,n,r,i){var o=Object.keys(t),a=o.length,l=n,c,u,d;for(r===void 0?(c=1,d=t[o[0]]):(c=0,d=r);c<a;c++)u=o[c],d=l(d,t[u],u,t);return d};function o7(e){return _r(e).length!==1?null:e.codePointAt(0).toString(16)}function A3(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function Vv(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=A3(t);typeof Sr.hooks.addPack=="function"&&!i?Sr.hooks.addPack(e,A3(t)):Sr.styles[e]=H(H({},Sr.styles[e]||{}),o),e==="fas"&&Vv("fa",t)}var yu=Sr.styles,$ae=Sr.shims,a7=Object.keys(cx),zae=a7.reduce(function(e,t){return e[t]=Object.keys(cx[t]),e},{}),fx=null,s7={},l7={},c7={},u7={},d7={};function Rae(e){return~yae.indexOf(e)}function Mae(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!Rae(i)?i:null}var f7=function(){var t=function(o){return T0(yu,function(a,l,c){return a[c]=T0(l,o,{}),a},{})};s7=t(function(i,o,a){if(o[3]&&(i[o[3]]=a),o[2]){var l=o[2].filter(function(c){return typeof c=="number"});l.forEach(function(c){i[c.toString(16)]=a})}return i}),l7=t(function(i,o,a){if(i[a]=a,o[2]){var l=o[2].filter(function(c){return typeof c=="string"});l.forEach(function(c){i[c]=a})}return i}),d7=t(function(i,o,a){var l=o[2];return i[a]=a,l.forEach(function(c){i[c]=a}),i});var n="far"in yu||ue.autoFetchSvg,r=T0($ae,function(i,o){var a=o[0],l=o[1],c=o[2];return l==="far"&&!n&&(l="fas"),typeof a=="string"&&(i.names[a]={prefix:l,iconName:c}),typeof a=="number"&&(i.unicodes[a.toString(16)]={prefix:l,iconName:c}),i},{names:{},unicodes:{}});c7=r.names,u7=r.unicodes,fx=Nm(ue.styleDefault,{family:ue.familyDefault})};wae(function(e){fx=Nm(e.styleDefault,{family:ue.familyDefault})});f7();function px(e,t){return(s7[e]||{})[t]}function Iae(e,t){return(l7[e]||{})[t]}function na(e,t){return(d7[e]||{})[t]}function p7(e){return c7[e]||{prefix:null,iconName:null}}function Lae(e){var t=u7[e],n=px("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function So(){return fx}var m7=function(){return{prefix:null,iconName:null,rest:[]}};function Nae(e){var t=Jt,n=a7.reduce(function(r,i){return r[i]="".concat(ue.cssPrefix,"-").concat(i),r},{});return U8.forEach(function(r){(e.includes(n[r])||e.some(function(i){return zae[r].includes(i)}))&&(t=r)}),t}function Nm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Jt:n,i=pae[r][e];if(r===Hu&&!e)return"fad";var o=P3[r][e]||P3[r][i],a=e in Sr.styles?e:null,l=o||a||null;return l}function Dae(e){var t=[],n=null;return e.forEach(function(r){var i=Mae(ue.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function $3(e){return e.sort().filter(function(t,n,r){return r.indexOf(t)===n})}var z3=G8.concat(H8);function Dm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,i=null,o=$3(e.filter(function(h){return z3.includes(h)})),a=$3(e.filter(function(h){return!z3.includes(h)})),l=o.filter(function(h){return i=h,!S8.includes(h)}),c=Im(l,1),u=c[0],d=u===void 0?null:u,f=Nae(o),p=H(H({},Dae(a)),{},{prefix:Nm(d,{family:f})});return H(H(H({},p),Vae({values:e,family:f,styles:yu,config:ue,canonical:p,givenPrefix:i})),Oae(r,i,p))}function Oae(e,t,n){var r=n.prefix,i=n.iconName;if(e||!r||!i)return{prefix:r,iconName:i};var o=t==="fa"?p7(i):{},a=na(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!yu.far&&yu.fas&&!ue.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}var Fae=U8.filter(function(e){return e!==Jt||e!==Hu}),Bae=Object.keys(Lv).filter(function(e){return e!==Jt}).map(function(e){return Object.keys(Lv[e])}).flat();function Vae(e){var t=e.values,n=e.family,r=e.canonical,i=e.givenPrefix,o=i===void 0?"":i,a=e.styles,l=a===void 0?{}:a,c=e.config,u=c===void 0?{}:c,d=n===Hu,f=t.includes("fa-duotone")||t.includes("fad"),p=u.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!d&&(f||p||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&Fae.includes(n)){var v=Object.keys(l).find(function(x){return Bae.includes(x)});if(v||u.autoFetchSvg){var y=Kie.get(n).defaultShortPrefixId;r.prefix=y,r.iconName=na(r.prefix,r.iconName)||r.iconName}}return(r.prefix==="fa"||o==="fa")&&(r.prefix=So()||"fas"),r}var Wae=function(){function e(){cie(this,e),this.definitions={}}return die(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.reduce(this._pullDefinitions,{});Object.keys(a).forEach(function(l){n.definitions[l]=H(H({},n.definitions[l]||{}),a[l]),Vv(l,a[l]);var c=cx[Jt][l];c&&Vv(c,a[l]),f7()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var i=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(i).map(function(o){var a=i[o],l=a.prefix,c=a.iconName,u=a.icon,d=u[2];n[l]||(n[l]={}),d.length>0&&d.forEach(function(f){typeof f=="string"&&(n[l][f]=u)}),n[l][c]=u}),n}}])}(),R3=[],ks={},Os={},Uae=Object.keys(Os);function Hae(e,t){var n=t.mixoutsTo;return R3=e,ks={},Object.keys(Os).forEach(function(r){Uae.indexOf(r)===-1&&delete Os[r]}),R3.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(a){typeof i[a]=="function"&&(n[a]=i[a]),Tp(i[a])==="object"&&Object.keys(i[a]).forEach(function(l){n[a]||(n[a]={}),n[a][l]=i[a][l]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(a){ks[a]||(ks[a]=[]),ks[a].push(o[a])})}r.provides&&r.provides(Os)}),n}function Wv(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=ks[e]||[];return o.forEach(function(a){t=a.apply(null,[t].concat(r))}),t}function _a(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=ks[e]||[];i.forEach(function(o){o.apply(null,n)})}function wo(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Os[e]?Os[e].apply(null,t):void 0}function Uv(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||So();if(t)return t=na(n,t)||t,E3(h7.definitions,n,t)||E3(Sr.styles,n,t)}var h7=new Wae,Gae=function(){ue.autoReplaceSvg=!1,ue.observeMutations=!1,_a("noAuto")},Kae={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Mi?(_a("beforeI2svg",t),wo("pseudoElements2svg",t),wo("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;ue.autoReplaceSvg===!1&&(ue.autoReplaceSvg=!0),ue.observeMutations=!0,Aae(function(){Xae({autoReplaceSvgRoot:n}),_a("watch",t)})}},qae={icon:function(t){if(t===null)return null;if(Tp(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:na(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=Nm(t[0]);return{prefix:r,iconName:na(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(ue.cssPrefix,"-"))>-1||t.match(mae))){var i=Dm(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||So(),iconName:na(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=So();return{prefix:o,iconName:na(o,t)||t}}}},Yn={noAuto:Gae,config:ue,dom:Kae,parse:qae,library:h7,findIconDefinition:Uv,toHtml:Ku},Xae=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?nt:n;(Object.keys(Sr.styles).length>0||ue.autoFetchSvg)&&Mi&&ue.autoReplaceSvg&&Yn.dom.i2svg({node:r})};function Om(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Ku(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Mi){var r=nt.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Yae(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(dx(a)&&n.found&&!r.found){var l=n.width,c=n.height,u={x:l/c/2,y:.5};i.style=Lm(H(H({},o),{},{"transform-origin":"".concat(u.x+a.x/16,"em ").concat(u.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function Qae(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,a=o===!0?"".concat(t,"-").concat(ue.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:H(H({},i),{},{id:a}),children:r}]}]}function Zae(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function mx(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,a=e.transform,l=e.symbol,c=e.maskId,u=e.extra,d=e.watchable,f=d===void 0?!1:d,p=r.found?r:n,h=p.width,v=p.height,y=[ue.replacementClass,o?"".concat(ue.cssPrefix,"-").concat(o):""].filter(function(k){return u.classes.indexOf(k)===-1}).filter(function(k){return k!==""||!!k}).concat(u.classes).join(" "),x={children:[],attributes:H(H({},u.attributes),{},{"data-prefix":i,"data-icon":o,class:y,role:u.attributes.role||"img",viewBox:"0 0 ".concat(h," ").concat(v)})};!Zae(u.attributes)&&!u.attributes["aria-hidden"]&&(x.attributes["aria-hidden"]="true"),f&&(x.attributes[Pa]="");var b=H(H({},x),{},{prefix:i,iconName:o,main:n,mask:r,maskId:c,transform:a,symbol:l,styles:H({},u.styles)}),g=r.found&&n.found?wo("generateAbstractMask",b)||{children:[],attributes:{}}:wo("generateAbstractIcon",b)||{children:[],attributes:{}},S=g.children,w=g.attributes;return b.children=S,b.attributes=w,l?Qae(b):Yae(b)}function M3(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.extra,a=e.watchable,l=a===void 0?!1:a,c=H(H({},o.attributes),{},{class:o.classes.join(" ")});l&&(c[Pa]="");var u=H({},o.styles);dx(i)&&(u.transform=_ae({transform:i,width:n,height:r}),u["-webkit-transform"]=u.transform);var d=Lm(u);d.length>0&&(c.style=d);var f=[];return f.push({tag:"span",attributes:c,children:[t]}),f}function Jae(e){var t=e.content,n=e.extra,r=H(H({},n.attributes),{},{class:n.classes.join(" ")}),i=Lm(n.styles);i.length>0&&(r.style=i);var o=[];return o.push({tag:"span",attributes:r,children:[t]}),o}var E0=Sr.styles;function Hv(e){var t=e[0],n=e[1],r=e.slice(4),i=Im(r,1),o=i[0],a=null;return Array.isArray(o)?a={tag:"g",attributes:{class:"".concat(ue.cssPrefix,"-").concat(P0.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ue.cssPrefix,"-").concat(P0.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(ue.cssPrefix,"-").concat(P0.PRIMARY),fill:"currentColor",d:o[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:a}}var ese={found:!1,width:512,height:512};function tse(e,t){!Q8&&!ue.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Gv(e,t){var n=t;return t==="fa"&&ue.styleDefault!==null&&(t=So()),new Promise(function(r,i){if(n==="fa"){var o=p7(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&E0[t]&&E0[t][e]){var a=E0[t][e];return r(Hv(a))}tse(e,t),r(H(H({},ese),{},{icon:ue.showMissingIcons&&e?wo("missingIconAbstract")||{}:{}}))})}var I3=function(){},Kv=ue.measurePerformance&&Hd&&Hd.mark&&Hd.measure?Hd:{mark:I3,measure:I3},ac='FA "7.3.1"',nse=function(t){return Kv.mark("".concat(ac," ").concat(t," begins")),function(){return g7(t)}},g7=function(t){Kv.mark("".concat(ac," ").concat(t," ends")),Kv.measure("".concat(ac," ").concat(t),"".concat(ac," ").concat(t," begins"),"".concat(ac," ").concat(t," ends"))},hx={begin:nse,end:g7},If=function(){};function L3(e){var t=e.getAttribute?e.getAttribute(Pa):null;return typeof t=="string"}function rse(e){var t=e.getAttribute?e.getAttribute(sx):null,n=e.getAttribute?e.getAttribute(lx):null;return t&&n}function ise(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ue.replacementClass)}function ose(){if(ue.autoReplaceSvg===!0)return Lf.replace;var e=Lf[ue.autoReplaceSvg];return e||Lf.replace}function ase(e){return nt.createElementNS("http://www.w3.org/2000/svg",e)}function sse(e){return nt.createElement(e)}function v7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?ase:sse:n;if(typeof e=="string")return nt.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(a){i.setAttribute(a,e.attributes[a])});var o=e.children||[];return o.forEach(function(a){i.appendChild(v7(a,{ceFn:r}))}),i}function lse(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Lf={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(v7(i),n)}),n.getAttribute(Pa)===null&&ue.keepOriginalSource){var r=nt.createComment(lse(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~ux(n).indexOf(ue.replacementClass))return Lf.replace(t);var i=new RegExp("".concat(ue.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(l,c){return c===ue.replacementClass||c.match(i)?l.toSvg.push(c):l.toNode.push(c),l},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var a=r.map(function(l){return Ku(l)}).join(`
`);n.setAttribute(Pa,""),n.innerHTML=a}};function N3(e){e()}function y7(e,t){var n=typeof t=="function"?t:If;if(e.length===0)n();else{var r=N3;ue.mutateApproach===dae&&(r=xo.requestAnimationFrame||N3),r(function(){var i=ose(),o=hx.begin("mutate");e.map(i),o(),n()})}}var gx=!1;function b7(){gx=!0}function qv(){gx=!1}var Ap=null;function D3(e){if(w3&&ue.observeMutations){var t=e.treeCallback,n=t===void 0?If:t,r=e.nodeCallback,i=r===void 0?If:r,o=e.pseudoElementsCallback,a=o===void 0?If:o,l=e.observeMutationsRoot,c=l===void 0?nt:l;Ap=new w3(function(u){if(!gx){var d=So();Sl(u).forEach(function(f){if(f.type==="childList"&&f.addedNodes.length>0&&!L3(f.addedNodes[0])&&(ue.searchPseudoElements&&a(f.target),n(f.target)),f.type==="attributes"&&f.target.parentNode&&ue.searchPseudoElements&&a([f.target],!0),f.type==="attributes"&&L3(f.target)&&~vae.indexOf(f.attributeName))if(f.attributeName==="class"&&rse(f.target)){var p=Dm(ux(f.target)),h=p.prefix,v=p.iconName;f.target.setAttribute(sx,h||d),v&&f.target.setAttribute(lx,v)}else ise(f.target)&&i(f.target)})}}),Mi&&Ap.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function cse(){Ap&&Ap.disconnect()}function use(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var o=i.split(":"),a=o[0],l=o.slice(1);return a&&l.length>0&&(r[a]=l.join(":").trim()),r},{})),n}function dse(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=Dm(ux(e));return i.prefix||(i.prefix=So()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=Iae(i.prefix,e.innerText)||px(i.prefix,o7(e.innerText))),!i.iconName&&ue.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function fse(e){var t=Sl(e.attributes).reduce(function(n,r){return n.name!=="class"&&n.name!=="style"&&(n[r.name]=r.value),n},{});return t}function pse(){return{iconName:null,prefix:null,transform:Vr,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function O3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=dse(e),r=n.iconName,i=n.prefix,o=n.rest,a=fse(e),l=Wv("parseNodeAttributes",{},e),c=t.styleParser?use(e):[];return H({iconName:r,prefix:i,transform:Vr,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:c,attributes:a}},l)}var mse=Sr.styles;function x7(e){var t=ue.autoReplaceSvg==="nest"?O3(e,{styleParser:!1}):O3(e);return~t.extra.classes.indexOf(J8)?wo("generateLayersText",e,t):wo("generateSvgReplacementMutation",e,t)}function hse(){return[].concat(_r(H8),_r(G8))}function F3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Mi)return Promise.resolve();var n=nt.documentElement.classList,r=function(f){return n.add("".concat(j3,"-").concat(f))},i=function(f){return n.remove("".concat(j3,"-").concat(f))},o=ue.autoFetchSvg?hse():S8.concat(Object.keys(mse));o.includes("fa")||o.push("fa");var a=[".".concat(J8,":not([").concat(Pa,"])")].concat(o.map(function(d){return".".concat(d,":not([").concat(Pa,"])")})).join(", ");if(a.length===0)return Promise.resolve();var l=[];try{l=Sl(e.querySelectorAll(a))}catch{}if(l.length>0)r("pending"),i("complete");else return Promise.resolve();var c=hx.begin("onTree"),u=l.reduce(function(d,f){try{var p=x7(f);p&&d.push(p)}catch(h){Q8||h.name==="MissingIcon"&&console.error(h)}return d},[]);return new Promise(function(d,f){Promise.all(u).then(function(p){y7(p,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),c(),d()})}).catch(function(p){c(),f(p)})})}function gse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;x7(e).then(function(n){n&&y7([n],t)})}function vse(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Uv(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:Uv(i||{})),e(r,H(H({},n),{},{mask:i}))}}var yse=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?Vr:r,o=n.symbol,a=o===void 0?!1:o,l=n.mask,c=l===void 0?null:l,u=n.maskId,d=u===void 0?null:u,f=n.classes,p=f===void 0?[]:f,h=n.attributes,v=h===void 0?{}:h,y=n.styles,x=y===void 0?{}:y;if(t){var b=t.prefix,g=t.iconName,S=t.icon;return Om(H({type:"icon"},t),function(){return _a("beforeDOMElementCreation",{iconDefinition:t,params:n}),mx({icons:{main:Hv(S),mask:c?Hv(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:b,iconName:g,transform:H(H({},Vr),i),symbol:a,maskId:d,extra:{attributes:v,styles:x,classes:p}})})}},bse={mixout:function(){return{icon:vse(yse)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=F3,n.nodeCallback=gse,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?nt:r,o=n.callback,a=o===void 0?function(){}:o;return F3(i,a)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.prefix,a=r.transform,l=r.symbol,c=r.mask,u=r.maskId,d=r.extra;return new Promise(function(f,p){Promise.all([Gv(i,o),c.iconName?Gv(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(h){var v=Im(h,2),y=v[0],x=v[1];f([n,mx({icons:{main:y,mask:x},prefix:o,iconName:i,transform:a,symbol:l,maskId:u,extra:d,watchable:!0})])}).catch(p)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.transform,l=n.styles,c=Lm(l);c.length>0&&(i.style=c);var u;return dx(a)&&(u=wo("generateAbstractTransformGrouping",{main:o,transform:a,containerWidth:o.width,iconWidth:o.width})),r.push(u||o.icon),{children:r,attributes:i}}}},xse={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,o=i===void 0?[]:i;return Om({type:"layer"},function(){_a("beforeDOMElementCreation",{assembler:n,params:r});var a=[];return n(function(l){Array.isArray(l)?l.map(function(c){a=a.concat(c.abstract)}):a=a.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(ue.cssPrefix,"-layers")].concat(_r(o)).join(" ")},children:a}]})}}}},Sse={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r.title;var i=r.classes,o=i===void 0?[]:i,a=r.attributes,l=a===void 0?{}:a,c=r.styles,u=c===void 0?{}:c;return Om({type:"counter",content:n},function(){return _a("beforeDOMElementCreation",{content:n,params:r}),Jae({content:n.toString(),extra:{attributes:l,styles:u,classes:["".concat(ue.cssPrefix,"-layers-counter")].concat(_r(o))}})})}}}},wse={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?Vr:i,a=r.classes,l=a===void 0?[]:a,c=r.attributes,u=c===void 0?{}:c,d=r.styles,f=d===void 0?{}:d;return Om({type:"text",content:n},function(){return _a("beforeDOMElementCreation",{content:n,params:r}),M3({content:n,transform:H(H({},Vr),o),extra:{attributes:u,styles:f,classes:["".concat(ue.cssPrefix,"-layers-text")].concat(_r(l))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.transform,o=r.extra,a=null,l=null;if(b8){var c=parseInt(getComputedStyle(n).fontSize,10),u=n.getBoundingClientRect();a=u.width/c,l=u.height/c}return Promise.resolve([n,M3({content:n.innerHTML,width:a,height:l,transform:i,extra:o,watchable:!0})])}}},S7=new RegExp('"',"ug"),B3=[1105920,1112319],V3=H(H(H(H({},{FontAwesome:{normal:"fas",400:"fas"}}),Gie),cae),toe),Xv=Object.keys(V3).reduce(function(e,t){return e[t.toLowerCase()]=V3[t],e},{}),kse=Object.keys(Xv).reduce(function(e,t){var n=Xv[t];return e[t]=n[900]||_r(Object.entries(n))[0][1],e},{});function Cse(e){var t=e.replace(S7,"");return o7(_r(t)[0]||"")}function jse(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),r=n.replace(S7,""),i=r.codePointAt(0),o=i>=B3[0]&&i<=B3[1],a=r.length===2?r[0]===r[1]:!1;return o||a||t}function Pse(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Xv[n]||{})[i]||kse[n]}function W3(e,t){var n="".concat(uae).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=Sl(e.children),a=o.filter(function(P){return P.getAttribute(Dv)===t})[0],l=xo.getComputedStyle(e,t),c=l.getPropertyValue("font-family"),u=c.match(hae),d=l.getPropertyValue("font-weight"),f=l.getPropertyValue("content");if(a&&!u)return e.removeChild(a),r();if(u&&f!=="none"&&f!==""){var p=l.getPropertyValue("content"),h=Pse(c,d),v=Cse(p),y=u[0].startsWith("FontAwesome"),x=jse(l),b=px(h,v),g=b;if(y){var S=Lae(v);S.iconName&&S.prefix&&(b=S.iconName,h=S.prefix)}if(b&&!x&&(!a||a.getAttribute(sx)!==h||a.getAttribute(lx)!==g)){e.setAttribute(n,g),a&&e.removeChild(a);var w=pse(),k=w.extra;k.attributes[Dv]=t,Gv(b,h).then(function(P){var j=mx(H(H({},w),{},{icons:{main:P,mask:m7()},prefix:h,iconName:g,extra:k,watchable:!0})),_=nt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(_,e.firstChild):e.appendChild(_),_.outerHTML=j.map(function(M){return Ku(M)}).join(`
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function _se(e){return Promise.all([W3(e,"::before"),W3(e,"::after")])}function Tse(e){return e.parentNode!==document.head&&!~fae.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Dv)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var Ese=function(t){return!!t&&Y8.some(function(n){return t.includes(n)})},Ase=function(t){if(!t)return[];var n=new Set,r=t.split(/,(?![^()]*\))/).map(function(c){return c.trim()});r=r.flatMap(function(c){return c.includes("(")?c:c.split(",").map(function(u){return u.trim()})});var i=Mf(r),o;try{for(i.s();!(o=i.n()).done;){var a=o.value;if(Ese(a)){var l=Y8.reduce(function(c,u){return c.replace(u,"")},a);l!==""&&l!=="*"&&n.add(l)}}}catch(c){i.e(c)}finally{i.f()}return n};function U3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Mi){var n;if(t)n=e;else if(ue.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var r=new Set,i=Mf(document.styleSheets),o;try{for(i.s();!(o=i.n()).done;){var a=o.value;try{var l=Mf(a.cssRules),c;try{for(l.s();!(c=l.n()).done;){var u=c.value,d=Ase(u.selectorText),f=Mf(d),p;try{for(f.s();!(p=f.n()).done;){var h=p.value;r.add(h)}}catch(y){f.e(y)}finally{f.f()}}}catch(y){l.e(y)}finally{l.f()}}catch(y){ue.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(a.href," (").concat(y.message,`)
If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(y){i.e(y)}finally{i.f()}if(!r.size)return;var v=Array.from(r).join(", ");try{n=e.querySelectorAll(v)}catch{}}return new Promise(function(y,x){var b=Sl(n).filter(Tse).map(_se),g=hx.begin("searchPseudoElements");b7(),Promise.all(b).then(function(){g(),qv(),y()}).catch(function(){g(),qv(),x()})})}}var $se={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=U3,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?nt:r;ue.searchPseudoElements&&U3(i)}}},H3=!1,zse={mixout:function(){return{dom:{unwatch:function(){b7(),H3=!0}}}},hooks:function(){return{bootstrap:function(){D3(Wv("mutationObserverCallbacks",{}))},noAuto:function(){cse()},watch:function(n){var r=n.observeMutationsRoot;H3?qv():D3(Wv("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},G3=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var o=i.toLowerCase().split("-"),a=o[0],l=o.slice(1).join("-");if(a&&l==="h")return r.flipX=!0,r;if(a&&l==="v")return r.flipY=!0,r;if(l=parseFloat(l),isNaN(l))return r;switch(a){case"grow":r.size=r.size+l;break;case"shrink":r.size=r.size-l;break;case"left":r.x=r.x-l;break;case"right":r.x=r.x+l;break;case"up":r.y=r.y-l;break;case"down":r.y=r.y+l;break;case"rotate":r.rotate=r.rotate+l;break}return r},n)},Rse={mixout:function(){return{parse:{transform:function(n){return G3(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=G3(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,a=n.iconWidth,l={transform:"translate(".concat(o/2," 256)")},c="translate(".concat(i.x*32,", ").concat(i.y*32,") "),u="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),d="rotate(".concat(i.rotate," 0 0)"),f={transform:"".concat(c," ").concat(u," ").concat(d)},p={transform:"translate(".concat(a/2*-1," -256)")},h={outer:l,inner:f,path:p};return{tag:"g",attributes:H({},h.outer),children:[{tag:"g",attributes:H({},h.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:H(H({},r.icon.attributes),h.path)}]}]}}}},A0={x:0,y:0,width:"100%",height:"100%"};function K3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function Mse(e){return e.tag==="g"?e.children:[e]}var Ise={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?Dm(i.split(" ").map(function(a){return a.trim()})):m7();return o.prefix||(o.prefix=So()),n.mask=o,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.mask,l=n.maskId,c=n.transform,u=o.width,d=o.icon,f=a.width,p=a.icon,h=Pae({transform:c,containerWidth:f,iconWidth:u}),v={tag:"rect",attributes:H(H({},A0),{},{fill:"white"})},y=d.children?{children:d.children.map(K3)}:{},x={tag:"g",attributes:H({},h.inner),children:[K3(H({tag:d.tag,attributes:H(H({},d.attributes),h.path)},y))]},b={tag:"g",attributes:H({},h.outer),children:[x]},g="mask-".concat(l||_3()),S="clip-".concat(l||_3()),w={tag:"mask",attributes:H(H({},A0),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,b]},k={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:Mse(p)},w]};return r.push(k,{tag:"rect",attributes:H({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(g,")")},A0)}),{children:r,attributes:i}}}},Lse={provides:function(t){var n=!1;xo.matchMedia&&(n=xo.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:H(H({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=H(H({},o),{},{attributeName:"opacity"}),l={tag:"circle",attributes:H(H({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||l.children.push({tag:"animate",attributes:H(H({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:H(H({},a),{},{values:"1;0;1;1;0;1;"})}),r.push(l),r.push({tag:"path",attributes:H(H({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:H(H({},a),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:H(H({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:H(H({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},Nse={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),o=i===null?!1:i===""?!0:i;return n.symbol=o,n}}}},Dse=[Eae,bse,xse,Sse,wse,$se,zse,Rse,Ise,Lse,Nse];Hae(Dse,{mixoutsTo:Yn});Yn.noAuto;var sl=Yn.config;Yn.library;Yn.dom;var w7=Yn.parse;Yn.findIconDefinition;Yn.toHtml;var Ose=Yn.icon;Yn.layer;Yn.text;Yn.counter;function Fse(e){return e=e-0,e===e}function k7(e){return Fse(e)?e:(e=e.replace(/[_-]+(.)?/g,(t,n)=>n?n.toUpperCase():""),e.charAt(0).toLowerCase()+e.slice(1))}var Bse=(e,t)=>Gt.createElement("stop",{key:`${t}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function Vse(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Ga=new Map,Wse=1e3;function Use(e){if(Ga.has(e))return Ga.get(e);const t={};let n=0;const r=e.length;for(;n<r;){const i=e.indexOf(";",n),o=i===-1?r:i,a=e.slice(n,o).trim();if(a){const l=a.indexOf(":");if(l>0){const c=a.slice(0,l).trim(),u=a.slice(l+1).trim();if(c&&u){const d=k7(c);t[d.startsWith("webkit")?Vse(d):d]=u}}}n=o+1}if(Ga.size===Wse){const i=Ga.keys().next().value;i&&Ga.delete(i)}return Ga.set(e,t),t}function C7(e,t,n={}){if(typeof t=="string")return t;const r=(t.children||[]).map(f=>{let p=f;return("fill"in n||n.gradientFill)&&f.tag==="path"&&"fill"in f.attributes&&(p={...f,attributes:{...f.attributes,fill:void 0}}),C7(e,p)}),i=t.attributes||{},o={};for(const[f,p]of Object.entries(i))switch(!0){case f==="class":{o.className=p;break}case f==="style":{o.style=Use(String(p));break}case f.startsWith("aria-"):case f.startsWith("data-"):{o[f.toLowerCase()]=p;break}default:o[k7(f)]=p}const{style:a,role:l,"aria-label":c,gradientFill:u,...d}=n;if(a&&(o.style=o.style?{...o.style,...a}:a),l&&(o.role=l),c&&(o["aria-label"]=c,o["aria-hidden"]="false"),u){o.fill=`url(#${u.id})`;const{type:f,stops:p=[],...h}=u;r.unshift(e(f==="linear"?"linearGradient":"radialGradient",{...h,id:u.id},p.map(Bse)))}return e(t.tag,{...o,...d},...r)}var Hse=C7.bind(null,Gt.createElement),q3=(e,t)=>{const n=m.useId();return e||(t?n:void 0)},Gse=class{constructor(e="react-fontawesome"){this.enabled=!1;let t=!1;try{t=typeof process<"u"&&!1}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}},Kse="searchPseudoElementsFullScan"in sl&&typeof sl.searchPseudoElementsFullScan=="boolean"?"7.0.0":"6.0.0",qse=Number.parseInt(Kse)>=7,Xse=()=>qse,$c="fa",Nt={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse",flip360:"fa-flip-360",buzz:"fa-buzz",float:"fa-float",jello:"fa-jello",spinSnap:"fa-spin-snap",spinSnap4:"fa-spin-snap-4",spinSnap8:"fa-spin-snap-8",swing:"fa-swing",wag:"fa-wag"},Yse={left:"fa-pull-left",right:"fa-pull-right"},Qse={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},Zse={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},hr={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto",canvasSquare:"fa-canvas-square",canvasRoomy:"fa-canvas-roomy"};function Jse(e){const t=sl.cssPrefix||sl.familyPrefix||$c;return t===$c?e:e.replace(new RegExp(String.raw`(?<=^|\s)${$c}-`,"g"),`${t}-`)}function ele(e){const{beat:t,fade:n,beatFade:r,bounce:i,shake:o,spin:a,spinPulse:l,spinReverse:c,pulse:u,fixedWidth:d,inverse:f,border:p,flip:h,size:v,rotation:y,pull:x,swapOpacity:b,rotateBy:g,widthAuto:S,canvasSquare:w,canvasRoomy:k,flip360:P,buzz:j,float:_,jello:M,spinSnap:T,spinSnap4:O,spinSnap8:q,swing:ne,wag:z,className:X}=e,V=[];return X&&V.push(...X.split(" ")),t&&V.push(Nt.beat),n&&V.push(Nt.fade),r&&V.push(Nt.beatFade),i&&V.push(Nt.bounce),o&&V.push(Nt.shake),a&&V.push(Nt.spin),c&&V.push(Nt.spinReverse),l&&V.push(Nt.spinPulse),u&&V.push(Nt.pulse),d&&V.push(hr.fixedWidth),f&&V.push(hr.inverse),p&&V.push(hr.border),h===!0&&V.push(hr.flip),(h==="horizontal"||h==="both")&&V.push(hr.flipHorizontal),(h==="vertical"||h==="both")&&V.push(hr.flipVertical),v!=null&&V.push(Zse[v]),y!=null&&y!==0&&V.push(Qse[y]),x!=null&&V.push(Yse[x]),b&&V.push(hr.swapOpacity),Xse()?(g&&V.push(hr.rotateBy),S&&V.push(hr.widthAuto),w&&V.push(hr.canvasSquare),k&&V.push(hr.canvasRoomy),P&&V.push(Nt.flip360),j&&V.push(Nt.buzz),_&&V.push(Nt.float),M&&V.push(Nt.jello),T&&V.push(Nt.spinSnap),O&&V.push(Nt.spinSnap4),q&&V.push(Nt.spinSnap8),ne&&V.push(Nt.swing),z&&V.push(Nt.wag),(sl.cssPrefix||sl.familyPrefix||$c)===$c?V:V.map(Jse)):V}var tle=e=>typeof e=="object"&&"icon"in e&&!!e.icon;function X3(e){if(e)return tle(e)?e:w7.icon(e)}function nle(e){return Object.keys(e)}var Y3=new Gse("FontAwesomeIcon"),j7={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1,canvasSquare:!1,canvasRoomy:!1,flip360:!1,buzz:!1,float:!1,jello:!1,spinSnap:!1,spinSnap4:!1,spinSnap8:!1,swing:!1,wag:!1},rle=new Set(Object.keys(j7)),Oe=Gt.forwardRef((e,t)=>{const n={...j7,...e},{icon:r,mask:i,symbol:o,title:a,titleId:l,maskId:c,transform:u}=n,d=q3(c,!!i),f=q3(l,!!a),p=X3(r);if(!p)return Y3.error("Icon lookup is undefined",r),null;const h=ele(n),v=typeof u=="string"?w7.transform(u):u,y=X3(i),x=Ose(p,{...h.length>0&&{classes:h},...v&&{transform:v},...y&&{mask:y},symbol:o,title:a,titleId:f,maskId:d});if(!x)return Y3.error("Could not find icon",p),null;const{abstract:b}=x,g={ref:t};for(const S of nle(n))rle.has(S)||(g[S]=n[S]);return Hse(b[0],g)});Oe.displayName="FontAwesomeIcon";/*!
* Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2026 Fonticons, Inc.
*/var Yv={prefix:"fas",iconName:"truck",icon:[576,512,[128666,9951],"f0d1","M0 96C0 60.7 28.7 32 64 32l288 0c35.3 0 64 28.7 64 64l0 32 50.7 0c17 0 33.3 6.7 45.3 18.7L557.3 192c12 12 18.7 28.3 18.7 45.3L576 384c0 35.3-28.7 64-64 64l-3.3 0c-10.4 36.9-44.4 64-84.7 64s-74.2-27.1-84.7-64l-102.6 0c-10.4 36.9-44.4 64-84.7 64s-74.2-27.1-84.7-64L64 448c-35.3 0-64-28.7-64-64L0 96zM512 288l0-50.7-45.3-45.3-50.7 0 0 96 96 0zM192 424a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm232 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},vx={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M286 304c98.5 0 178.3 79.8 178.3 178.3 0 16.4-13.3 29.7-29.7 29.7L78 512c-16.4 0-29.7-13.3-29.7-29.7 0-98.5 79.8-178.3 178.3-178.3l59.4 0zM585.7 105.9c7.8-10.7 22.8-13.1 33.5-5.3s13.1 22.8 5.3 33.5L522.1 274.9c-4.2 5.7-10.7 9.4-17.7 9.8s-14-2.2-18.9-7.3l-46.4-48c-9.2-9.5-9-24.7 .6-33.9 9.5-9.2 24.7-8.9 33.9 .6l26.5 27.4 85.6-117.7zM256.3 248a120 120 0 1 1 0-240 120 120 0 1 1 0 240z"]},yx={prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 3.2C119 50 64 114.6 64 192l0 21.7c0 48.1-16.4 94.8-46.4 132.4L7.8 358.3C2.7 364.6 0 372.4 0 380.5 0 400.1 15.9 416 35.5 416l376.9 0c19.6 0 35.5-15.9 35.5-35.5 0-8.1-2.7-15.9-7.8-22.2l-9.8-12.2C400.4 308.5 384 261.8 384 213.7l0-21.7c0-77.4-55-142-128-156.8l0-3.2c0-17.7-14.3-32-32-32zM162 464c7.1 27.6 32.2 48 62 48s54.9-20.4 62-48l-124 0z"]},Q3={prefix:"fas",iconName:"trophy",icon:[512,512,[127942],"f091","M144.3 0l224 0c26.5 0 48.1 21.8 47.1 48.2-.2 5.3-.4 10.6-.7 15.8l49.6 0c26.1 0 49.1 21.6 47.1 49.8-7.5 103.7-60.5 160.7-118 190.5-15.8 8.2-31.9 14.3-47.2 18.8-20.2 28.6-41.2 43.7-57.9 51.8l0 73.1 64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64 0 0-73.1c-16-7.7-35.9-22-55.3-48.3-18.4-4.8-38.4-12.1-57.9-23.1-54.1-30.3-102.9-87.4-109.9-189.9-1.9-28.1 21-49.7 47.1-49.7l49.6 0c-.3-5.2-.5-10.4-.7-15.8-1-26.5 20.6-48.2 47.1-48.2zM101.5 112l-52.4 0c6.2 84.7 45.1 127.1 85.2 149.6-14.4-37.3-26.3-86-32.8-149.6zM380 256.8c40.5-23.8 77.1-66.1 83.3-144.8L411 112c-6.2 60.9-17.4 108.2-31 144.8z"]},ile={prefix:"fas",iconName:"gift",icon:[512,512,[127873],"f06b","M321.5 68.8C329.1 55.9 342.9 48 357.8 48l2.2 0c22.1 0 40 17.9 40 40s-17.9 40-40 40l-73.3 0 34.8-59.2zm-131 0l34.8 59.2-73.3 0c-22.1 0-40-17.9-40-40s17.9-40 40-40l2.2 0c14.9 0 28.8 7.9 36.3 20.8zm89.6-24.3l-24.1 41-24.1-41C215.7 16.9 186.1 0 154.2 0L152 0c-48.6 0-88 39.4-88 88 0 14.4 3.5 28 9.6 40L32 128c-17.7 0-32 14.3-32 32l0 32c0 17.7 14.3 32 32 32l448 0c17.7 0 32-14.3 32-32l0-32c0-17.7-14.3-32-32-32l-41.6 0c6.1-12 9.6-25.6 9.6-40 0-48.6-39.4-88-88-88l-2.2 0c-31.9 0-61.5 16.9-77.7 44.4zM480 272l-200 0 0 208 136 0c35.3 0 64-28.7 64-64l0-144zm-248 0l-200 0 0 144c0 35.3 28.7 64 64 64l136 0 0-208z"]},P7={prefix:"fas",iconName:"power-off",icon:[512,512,[9211],"f011","M288 0c0-17.7-14.3-32-32-32S224-17.7 224 0l0 256c0 17.7 14.3 32 32 32s32-14.3 32-32L288 0zM146.3 98.4c14.5-10.1 18-30.1 7.9-44.6s-30.1-18-44.6-7.9C43.4 92.1 0 169 0 256 0 397.4 114.6 512 256 512S512 397.4 512 256c0-87-43.4-163.9-109.7-210.1-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6c49.8 34.8 82.3 92.4 82.3 157.6 0 106-86 192-192 192S64 362 64 256c0-65.2 32.5-122.9 82.3-157.6z"]},ole={prefix:"fas",iconName:"cash-register",icon:[512,512,[],"f788","M96 0C60.7 0 32 28.7 32 64s28.7 64 64 64l48 0 0 32-57 0c-31.6 0-58.5 23.1-63.3 54.4L1.1 364.1C.4 368.8 0 373.6 0 378.4L0 448c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-69.6c0-4.8-.4-9.6-1.1-14.4L488.2 214.4C483.5 183.1 456.6 160 425 160l-217 0 0-32 48 0c35.3 0 64-28.7 64-64S291.3 0 256 0L96 0zm0 48l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16L96 80c-8.8 0-16-7.2-16-16s7.2-16 16-16zM64 424c0-13.3 10.7-24 24-24l336 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L88 448c-13.3 0-24-10.7-24-24zm48-160a24 24 0 1 1 0-48 24 24 0 1 1 0 48zm120-24a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM160 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48zM328 240a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM256 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48zM424 240a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM352 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48z"]},ale={prefix:"fas",iconName:"map-location-dot",icon:[640,512,["map-marked-alt"],"f5a0","M576 48c0-11.1-5.7-21.4-15.2-27.2s-21.2-6.4-31.1-1.4L413.5 77.5 234.1 17.6c-8.1-2.7-16.8-2.1-24.4 1.7l-128 64C70.8 88.8 64 99.9 64 112l0 352c0 11.1 5.7 21.4 15.2 27.2s21.2 6.4 31.1 1.4l116.1-58.1 173.3 57.8c-4.3-6.4-8.5-13.1-12.6-19.9-11-18.3-21.9-39.3-30-61.8l-101.2-33.7 0-284.5 128 42.7 0 99.3c31-35.8 77-58.4 128-58.4 22.6 0 44.2 4.4 64 12.5L576 48zM512 224c-66.3 0-120 52.8-120 117.9 0 68.9 64.1 150.4 98.6 189.3 11.6 13 31.3 13 42.9 0 34.5-38.9 98.6-120.4 98.6-189.3 0-65.1-53.7-117.9-120-117.9zM472 344a40 40 0 1 1 80 0 40 40 0 1 1 -80 0z"]},sle={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},lle={prefix:"fas",iconName:"boxes-stacked",icon:[512,512,[62625,"boxes","boxes-alt"],"f468","M224 0l0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-64 32 0c35.3 0 64 28.7 64 64l0 128c0 5.5-.7 10.9-2 16l-252 0c-1.3-5.1-2-10.5-2-16l0-128c0-35.3 28.7-64 64-64l32 0zm96 512c-11.2 0-21.8-2.9-31-8 9.5-16.5 15-35.6 15-56l0-128c0-20.4-5.5-39.5-15-56 9.2-5.1 19.7-8 31-8l32 0 0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-64 32 0c35.3 0 64 28.7 64 64l0 128c0 35.3-28.7 64-64 64l-128 0zM0 320c0-35.3 28.7-64 64-64l32 0 0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-64 32 0c35.3 0 64 28.7 64 64l0 128c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 320z"]},_7={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8c-22.4 31.4-35.5 69.8-35.5 111.2 0 106 86 192 192 192 41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3c22.4-31.4 35.5-69.8 35.5-111.2 0-106-86-192-192-192-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"]},Z3={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48 0 3.4 .4 6.7 1 9.9 2.1 10.2 6.5 20 10.8 29.9 6.1 13.8 12.1 27.5 12.1 42 0 31.8-21.6 60.7-53.4 62-3.5 .1-7 .2-10.6 .2-141.4 0-256-114.6-256-256S114.6 0 256 0 512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},T7={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6-46.8 43.5-78.1 95.4-93 131.1-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64-11.5 0-22.3-3-31.7-8.4-1 10.9-.1 22.1 2.9 33.2 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-12.2-45.7-55.5-74.8-101.1-70.8 5.3 9.3 8.4 20.1 8.4 31.7z"]},E7={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M136.7 5.9L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-8.7-26.1C306.9-7.2 294.7-16 280.9-16L167.1-16c-13.8 0-26 8.8-30.4 21.9zM416 144L32 144 53.1 467.1C54.7 492.4 75.7 512 101 512L347 512c25.3 0 46.3-19.6 47.9-44.9L416 144z"]},cle={prefix:"fas",iconName:"receipt",icon:[384,512,[129534],"f543","M14 2.2C22.5-1.7 32.5-.3 39.6 5.8L80 40.4 120.4 5.8c9-7.7 22.3-7.7 31.2 0L192 40.4 232.4 5.8c9-7.7 22.2-7.7 31.2 0L304 40.4 344.4 5.8c7.1-6.1 17.1-7.5 25.6-3.6S384 14.6 384 24l0 464c0 9.4-5.5 17.9-14 21.8s-18.5 2.5-25.6-3.6l-40.4-34.6-40.4 34.6c-9 7.7-22.2 7.7-31.2 0l-40.4-34.6-40.4 34.6c-9 7.7-22.3 7.7-31.2 0L80 471.6 39.6 506.2c-7.1 6.1-17.1 7.5-25.6 3.6S0 497.4 0 488L0 24C0 14.6 5.5 6.1 14 2.2zM104 136c-13.3 0-24 10.7-24 24s10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0zM80 352c0 13.3 10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0c-13.3 0-24 10.7-24 24zm24-120c-13.3 0-24 10.7-24 24s10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0z"]},A7={prefix:"fas",iconName:"chevron-up",icon:[448,512,[],"f077","M201.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L224 173.3 54.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},qu={prefix:"fas",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M256 0a256 256 0 1 1 0 512 256 256 0 1 1 0-512zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},ule={prefix:"fas",iconName:"paper-plane",icon:[576,512,[61913],"f1d8","M536.4-26.3c9.8-3.5 20.6-1 28 6.3s9.8 18.2 6.3 28l-178 496.9c-5 13.9-18.1 23.1-32.8 23.1-14.2 0-27-8.6-32.3-21.7l-64.2-158c-4.5-11-2.5-23.6 5.2-32.6l94.5-112.4c5.1-6.1 4.7-15-.9-20.6s-14.6-6-20.6-.9L229.2 276.1c-9.1 7.6-21.6 9.6-32.6 5.2L38.1 216.8c-13.1-5.3-21.7-18.1-21.7-32.3 0-14.7 9.2-27.8 23.1-32.8l496.9-178z"]},dle={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},fle={prefix:"fas",iconName:"fire",icon:[448,512,[128293],"f06d","M160.5-26.4c9.3-7.8 23-7.5 31.9 .9 12.3 11.6 23.3 24.4 33.9 37.4 13.5 16.5 29.7 38.3 45.3 64.2 5.2-6.8 10-12.8 14.2-17.9 1.1-1.3 2.2-2.7 3.3-4.1 7.9-9.8 17.7-22.1 30.8-22.1 13.4 0 22.8 11.9 30.8 22.1 1.3 1.7 2.6 3.3 3.9 4.8 10.3 12.4 24 30.3 37.7 52.4 27.2 43.9 55.6 106.4 55.6 176.6 0 123.7-100.3 224-224 224S0 411.7 0 288c0-91.1 41.1-170 80.5-225 19.9-27.7 39.7-49.9 54.6-65.1 8.2-8.4 16.5-16.7 25.5-24.2zM225.7 416c25.3 0 47.7-7 68.8-21 42.1-29.4 53.4-88.2 28.1-134.4-4.5-9-16-9.6-22.5-2l-25.2 29.3c-6.6 7.6-18.5 7.4-24.7-.5-17.3-22.1-49.1-62.4-65.3-83-5.4-6.9-15.2-8-21.5-1.9-18.3 17.8-51.5 56.8-51.5 104.3 0 68.6 50.6 109.2 113.7 109.2z"]},$7={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M320 16a104 104 0 1 1 0 208 104 104 0 1 1 0-208zM96 88a72 72 0 1 1 0 144 72 72 0 1 1 0-144zM0 416c0-70.7 57.3-128 128-128 12.8 0 25.2 1.9 36.9 5.4-32.9 36.8-52.9 85.4-52.9 138.6l0 16c0 11.4 2.4 22.2 6.7 32L32 480c-17.7 0-32-14.3-32-32l0-32zm521.3 64c4.3-9.8 6.7-20.6 6.7-32l0-16c0-53.2-20-101.8-52.9-138.6 11.7-3.5 24.1-5.4 36.9-5.4 70.7 0 128 57.3 128 128l0 32c0 17.7-14.3 32-32 32l-86.7 0zM472 160a72 72 0 1 1 144 0 72 72 0 1 1 -144 0zM160 432c0-88.4 71.6-160 160-160s160 71.6 160 160l0 16c0 17.7-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32l0-16z"]},z7={prefix:"fas",iconName:"location-arrow",icon:[512,512,[],"f124","M477.9 75.5c4.5-11.8 1.7-25.2-7.2-34.1s-22.3-11.8-34.1-7.2l-416 160C7.9 199-.3 211.2 0 224.7s9.1 25.4 21.9 29.6l176.8 58.9 58.9 176.8c4.3 12.8 16.1 21.6 29.6 21.9s25.7-7.9 30.6-20.5l160-416z"]},ple={prefix:"fas",iconName:"video",icon:[576,512,["video-camera"],"f03d","M96 64c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L96 64zM464 336l73.5 58.8c4.2 3.4 9.4 5.2 14.8 5.2 13.1 0 23.7-10.6 23.7-23.7l0-240.6c0-13.1-10.6-23.7-23.7-23.7-5.4 0-10.6 1.8-14.8 5.2L464 176 464 336z"]},mle={prefix:"fas",iconName:"utensils",icon:[512,512,[127860,61685,"cutlery"],"f2e7","M63.9 14.4C63.1 6.2 56.2 0 48 0s-15.1 6.2-16 14.3L17.9 149.7c-1.3 6-1.9 12.1-1.9 18.2 0 45.9 35.1 83.6 80 87.7L96 480c0 17.7 14.3 32 32 32s32-14.3 32-32l0-224.4c44.9-4.1 80-41.8 80-87.7 0-6.1-.6-12.2-1.9-18.2L223.9 14.3C223.1 6.2 216.2 0 208 0s-15.1 6.2-15.9 14.4L178.5 149.9c-.6 5.7-5.4 10.1-11.1 10.1-5.8 0-10.6-4.4-11.2-10.2L143.9 14.6C143.2 6.3 136.3 0 128 0s-15.2 6.3-15.9 14.6L99.8 149.8c-.5 5.8-5.4 10.2-11.2 10.2-5.8 0-10.6-4.4-11.1-10.1L63.9 14.4zM448 0C432 0 320 32 320 176l0 112c0 35.3 28.7 64 64 64l32 0 0 128c0 17.7 14.3 32 32 32s32-14.3 32-32l0-448c0-17.7-14.3-32-32-32z"]},hle={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c9.4-9.4 24.6-9.4 33.9 0l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9z"]},bx={prefix:"fas",iconName:"user-clock",icon:[576,512,[],"f4fd","M224 8a120 120 0 1 1 0 240 120 120 0 1 1 0-240zM194.3 304l59.4 0c3.9 0 7.9 .1 11.8 .4-16.2 28.2-25.5 60.8-25.5 95.6 0 41.8 13.4 80.5 36 112L45.7 512C29.3 512 16 498.7 16 482.3 16 383.8 95.8 304 194.3 304zM288 400a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-80c-8.8 0-16 7.2-16 16l0 64c0 8.8 7.2 16 16 16l48 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-48c0-8.8-7.2-16-16-16z"]},gle={prefix:"fas",iconName:"image",icon:[448,512,[],"f03e","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm64 80a48 48 0 1 1 0 96 48 48 0 1 1 0-96zM272 224c8.4 0 16.1 4.4 20.5 11.5l88 144c4.5 7.4 4.7 16.7 .5 24.3S368.7 416 360 416L88 416c-8.9 0-17.2-5-21.3-12.9s-3.5-17.5 1.6-24.8l56-80c4.5-6.4 11.8-10.2 19.7-10.2s15.2 3.8 19.7 10.2l26.4 37.8 61.4-100.5c4.4-7.1 12.1-11.5 20.5-11.5z"]},vle={prefix:"fas",iconName:"user-plus",icon:[640,512,[],"f234","M285.7 304c98.5 0 178.3 79.8 178.3 178.3 0 16.4-13.3 29.7-29.7 29.7L77.7 512C61.3 512 48 498.7 48 482.3 48 383.8 127.8 304 226.3 304l59.4 0zM528 80c13.3 0 24 10.7 24 24l0 48 48 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-48 0 0 48c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-48-48 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0 0-48c0-13.3 10.7-24 24-24zM256 248a120 120 0 1 1 0-240 120 120 0 1 1 0 240z"]},R7={prefix:"fas",iconName:"link",icon:[576,512,[128279,"chain"],"f0c1","M419.5 96c-16.6 0-32.7 4.5-46.8 12.7-15.8-16-34.2-29.4-54.5-39.5 28.2-24 64.1-37.2 101.3-37.2 86.4 0 156.5 70 156.5 156.5 0 41.5-16.5 81.3-45.8 110.6l-71.1 71.1c-29.3 29.3-69.1 45.8-110.6 45.8-86.4 0-156.5-70-156.5-156.5 0-1.5 0-3 .1-4.5 .5-17.7 15.2-31.6 32.9-31.1s31.6 15.2 31.1 32.9c0 .9 0 1.8 0 2.6 0 51.1 41.4 92.5 92.5 92.5 24.5 0 48-9.7 65.4-27.1l71.1-71.1c17.3-17.3 27.1-40.9 27.1-65.4 0-51.1-41.4-92.5-92.5-92.5zM275.2 173.3c-1.9-.8-3.8-1.9-5.5-3.1-12.6-6.5-27-10.2-42.1-10.2-24.5 0-48 9.7-65.4 27.1L91.1 258.2c-17.3 17.3-27.1 40.9-27.1 65.4 0 51.1 41.4 92.5 92.5 92.5 16.5 0 32.6-4.4 46.7-12.6 15.8 16 34.2 29.4 54.6 39.5-28.2 23.9-64 37.2-101.3 37.2-86.4 0-156.5-70-156.5-156.5 0-41.5 16.5-81.3 45.8-110.6l71.1-71.1c29.3-29.3 69.1-45.8 110.6-45.8 86.6 0 156.5 70.6 156.5 156.9 0 1.3 0 2.6 0 3.9-.4 17.7-15.1 31.6-32.8 31.2s-31.6-15.1-31.2-32.8c0-.8 0-1.5 0-2.3 0-33.7-18-63.3-44.8-79.6z"]},M7={prefix:"fas",iconName:"bicycle",icon:[640,512,[128690],"f206","M331.7 43.3C336 36.3 343.7 32 352 32l104 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-65.6 0 72.2 148.4c10.7-2.9 21.9-4.4 33.4-4.4 70.7 0 128 57.3 128 128s-57.3 128-128 128-128-57.3-128-128c0-42 20.2-79.2 51.4-102.6l-20.4-41.9-73.5 147c-2.3 4.8-6.3 8.8-11.4 11.2-.6 .3-1.2 .5-1.8 .7-2.9 1.1-5.9 1.6-8.9 1.5L271 368c-7.9 63.1-61.7 112-127 112-70.7 0-128-57.3-128-128S73.3 224 144 224c10.8 0 21.2 1.3 31.2 3.8l28.5-56.9-11.5-26.9-40.2 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l56 0c9.6 0 18.3 5.7 22.1 14.5l14.3 33.5 123.7 0-37.7-77.5c-3.6-7.4-3.2-16.2 1.2-23.2zM228.5 228.7l-45.6 91.3 84.8 0-39.1-91.3zM305.7 287l47.5-95-88.2 0 40.7 95zm168.7 75.5l-29.7-61c-12.8 13-20.7 30.8-20.7 50.5 0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72c-2.7 0-5.5 .2-8.1 .5l29.7 61c5.8 11.9 .8 26.3-11.1 32.1s-26.3 .8-32.1-11.1zM149.2 368c-20.2 0-33.4-21.3-24.3-39.4l24.2-48.5c-1.7-.1-3.4-.2-5.1-.2-39.8 0-72 32.2-72 72s32.2 72 72 72c34.3 0 62.9-23.9 70.2-56l-65 0z"]},yle={prefix:"fas",iconName:"bell-concierge",icon:[512,512,[128718,"concierge-bell"],"f562","M216 64c-13.3 0-24 10.7-24 24s10.7 24 24 24l16 0 0 33.3C124.8 156.7 40.2 243.7 32.6 352l446.9 0C471.8 243.7 387.2 156.7 280 145.3l0-33.3 16 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0zM24 400c-13.3 0-24 10.7-24 24s10.7 24 24 24l464 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L24 400z"]},Ta={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"]},xx={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144,62470,"user-alt","user-large"],"f007","M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z"]},ble={prefix:"fas",iconName:"tags",icon:[576,512,[],"f02c","M401.2 39.1L549.4 189.4c27.7 28.1 27.7 73.1 0 101.2L393 448.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L515.3 256.8c9.2-9.3 9.2-24.4 0-33.7L367 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM32.1 229.5L32.1 96c0-35.3 28.7-64 64-64l133.5 0c17 0 33.3 6.7 45.3 18.7l144 144c25 25 25 65.5 0 90.5L285.4 418.7c-25 25-65.5 25-90.5 0l-144-144c-12-12-18.7-28.3-18.7-45.3zm144-85.5a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},xle={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zM374 145.7c-10.7-7.8-25.7-5.4-33.5 5.3L221.1 315.2 169 263.1c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l72 72c5 5 11.8 7.5 18.8 7s13.4-4.1 17.5-9.8L379.3 179.2c7.8-10.7 5.4-25.7-5.3-33.5z"]},Sle={prefix:"fas",iconName:"pen",icon:[512,512,[128394],"f304","M352.9 21.2L308 66.1 445.9 204 490.8 159.1C504.4 145.6 512 127.2 512 108s-7.6-37.6-21.2-51.1L455.1 21.2C441.6 7.6 423.2 0 404 0s-37.6 7.6-51.1 21.2zM274.1 100L58.9 315.1c-10.7 10.7-18.5 24.1-22.6 38.7L.9 481.6c-2.3 8.3 0 17.3 6.2 23.4s15.1 8.5 23.4 6.2l127.8-35.5c14.6-4.1 27.9-11.8 38.7-22.6L412 237.9 274.1 100z"]},wle={prefix:"fas",iconName:"phone",icon:[512,512,[128222,128379],"f095","M160.2 25C152.3 6.1 131.7-3.9 112.1 1.4l-5.5 1.5c-64.6 17.6-119.8 80.2-103.7 156.4 37.1 175 174.8 312.7 349.8 349.8 76.3 16.2 138.8-39.1 156.4-103.7l1.5-5.5c5.4-19.7-4.7-40.3-23.5-48.1l-97.3-40.5c-16.5-6.9-35.6-2.1-47 11.8l-38.6 47.2C233.9 335.4 177.3 277 144.8 205.3L189 169.3c13.9-11.3 18.6-30.4 11.8-47L160.2 25z"]},I7={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},kle={prefix:"fas",iconName:"hourglass-half",icon:[384,512,["hourglass-2"],"f252","M32 0C14.3 0 0 14.3 0 32S14.3 64 32 64l0 11c0 42.4 16.9 83.1 46.9 113.1l67.9 67.9-67.9 67.9C48.9 353.9 32 394.6 32 437l0 11c-17.7 0-32 14.3-32 32s14.3 32 32 32l320 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-11c0-42.4-16.9-83.1-46.9-113.1l-67.9-67.9 67.9-67.9c30-30 46.9-70.7 46.9-113.1l0-11c17.7 0 32-14.3 32-32S369.7 0 352 0L32 0zM96 75l0-11 192 0 0 11c0 19-5.6 37.4-16 53L112 128c-10.3-15.6-16-34-16-53zm16 309c3.5-5.3 7.6-10.3 12.1-14.9l67.9-67.9 67.9 67.9c4.6 4.6 8.6 9.6 12.2 14.9L112 384z"]},Cle={prefix:"fas",iconName:"credit-card",icon:[512,512,[128179,62083,"credit-card-alt"],"f09d","M0 128l0 32 512 0 0-32c0-35.3-28.7-64-64-64L64 64C28.7 64 0 92.7 0 128zm0 80L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-176-512 0zM64 360c0-13.3 10.7-24 24-24l48 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-48 0c-13.3 0-24-10.7-24-24zm144 0c0-13.3 10.7-24 24-24l64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24z"]},jle={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},$p={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3 5.1-21.4 13.1L193.1 125.3 33.2 150.7c-8.9 1.4-16.3 7.7-19.1 16.3s-.5 18 5.8 24.4l114.4 114.5-25.2 159.9c-1.4 8.9 2.3 17.9 9.6 23.2s16.9 6.1 25 2L288.1 417.6 432.4 491c8 4.1 17.7 3.3 25-2s11-14.2 9.6-23.2L441.7 305.9 556.1 191.4c6.4-6.4 8.6-15.8 5.8-24.4s-10.1-14.9-19.1-16.3L383 125.3 309.5-18.9z"]},Fm={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.2-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 352a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.5 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]},Bm={prefix:"fas",iconName:"shield-halved",icon:[512,512,["shield-alt"],"f3ed","M256 0c4.6 0 9.2 1 13.4 2.9L457.8 82.8c22 9.3 38.4 31 38.3 57.2-.5 99.2-41.3 280.7-213.6 363.2-16.7 8-36.1 8-52.8 0-172.4-82.5-213.1-264-213.6-363.2-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.9 1 251.4 0 256 0zm0 66.8l0 378.1c138-66.8 175.1-214.8 176-303.4l-176-74.6 0 0z"]},Ple={prefix:"fas",iconName:"check-double",icon:[384,512,[],"f560","M249.9 66.8c10.4-14.3 7.2-34.3-7.1-44.7s-34.3-7.2-44.7 7.1l-106 145.7-37.5-37.5c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l64 64c6.6 6.6 15.8 10 25.1 9.3s17.9-5.5 23.4-13.1l128-176zm128 136c10.4-14.3 7.2-34.3-7.1-44.7s-34.3-7.2-44.7 7.1l-170 233.7-69.5-69.5c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96c6.6 6.6 15.8 10 25.1 9.3s17.9-5.5 23.4-13.1l192-264z"]},Sx={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"]},L7={prefix:"fas",iconName:"box",icon:[448,512,[128230],"f466","M335.1 16c20.7 0 40.1 10 52.1 26.8l48.9 68.5c7.7 10.8 11.9 23.9 11.9 37.2L448 416c0 35.3-28.7 64-64 64l-320 0-6.5-.3C25.2 476.4 0 449.1 0 416L0 148.5c0-11.7 3.2-23.1 9.2-33l2.7-4.2 48.9-68.5c10.5-14.7 26.7-24.2 44.4-26.3l7.7-.5 222.1 0zM248 128l121.3 0-34.3-48-87.1 0 0 48zM78.7 128l121.3 0 0-48-87.1 0-34.3 48z"]},N7={prefix:"fas",iconName:"link-slash",icon:[576,512,["chain-broken","chain-slash","unlink"],"f127","M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-122-122c4.2-3.4 8.3-7.1 12.1-10.9l71.1-71.1c29.3-29.3 45.8-69.1 45.8-110.6 0-86.4-70-156.5-156.5-156.5-37.3 0-73.1 13.3-101.3 37.2 20.3 10.1 38.7 23.5 54.5 39.5 14.1-8.3 30.2-12.7 46.8-12.7 51.1 0 92.5 41.4 92.5 92.5 0 24.5-9.7 48-27.1 65.4l-71.1 71.1c-3.9 3.9-8.1 7.4-12.6 10.5l-47.5-47.5c16.5-.9 29.7-14.4 30.2-31.1 0-1.3 0-2.6 0-3.9 0-86.3-69.9-156.9-156.5-156.9-19.2 0-37.9 3.5-55.5 10.2L41-24.9zM225.9 160c.6 0 1.1 0 1.7 0 15.1 0 29.5 3.7 42.1 10.2 1.8 1.2 3.6 2.3 5.5 3.1 26.8 16.3 44.8 45.9 44.8 79.6 0 .4 0 .8 0 1.2L225.9 160zM346.2 416L192 261.8c1.2 84.6 69.6 152.9 154.1 154.1zM139.7 209.5l-45.3-45.3-48.6 48.6c-29.3 29.3-45.8 69.1-45.8 110.6 0 86.4 70 156.5 156.5 156.5 37.2 0 73.1-13.3 101.3-37.2-20.3-10.1-38.8-23.5-54.6-39.5-14 8.2-30.1 12.6-46.7 12.6-51.1 0-92.5-41.4-92.5-92.5 0-24.5 9.7-48 27.1-65.4l48.6-48.6z"]},_le={prefix:"fas",iconName:"arrow-rotate-right",icon:[512,512,[8635,"arrow-right-rotate","arrow-rotate-forward","redo"],"f01e","M436.7 74.7L448 85.4 448 32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 128c0 17.7-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l47.9 0-7.6-7.2c-.2-.2-.4-.4-.6-.6-75-75-196.5-75-271.5 0s-75 196.5 0 271.5 196.5 75 271.5 0c8.2-8.2 15.5-16.9 21.9-26.1 10.1-14.5 30.1-18 44.6-7.9s18 30.1 7.9 44.6c-8.5 12.2-18.2 23.8-29.1 34.7-100 100-262.1 100-362 0S-25 175 75 75c99.9-99.9 261.7-100 361.7-.3z"]},D7={prefix:"fas",iconName:"eye-slash",icon:[576,512,[],"f070","M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM204.5 138.7c23.5-16.8 52.4-26.7 83.5-26.7 79.5 0 144 64.5 144 144 0 31.1-9.9 59.9-26.7 83.5l-34.7-34.7c12.7-21.4 17-47.7 10.1-73.7-13.7-51.2-66.4-81.6-117.6-67.9-8.6 2.3-16.7 5.7-24 10l-34.7-34.7zM325.3 395.1c-11.9 3.2-24.4 4.9-37.3 4.9-79.5 0-144-64.5-144-144 0-12.9 1.7-25.4 4.9-37.3L69.4 139.2c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6l-64.2-64.2z"]},zp={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M256 64c-56.8 0-107.9 24.7-143.1 64l47.1 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 192c-17.7 0-32-14.3-32-32L0 32C0 14.3 14.3 0 32 0S64 14.3 64 32l0 54.7C110.9 33.6 179.5 0 256 0 397.4 0 512 114.6 512 256S397.4 512 256 512c-87 0-163.9-43.4-210.1-109.7-10.1-14.5-6.6-34.4 7.9-44.6s34.4-6.6 44.6 7.9c34.8 49.8 92.4 82.3 157.6 82.3 106 0 192-86 192-192S362 64 256 64z"]},Tle={prefix:"fas",iconName:"desktop",icon:[512,512,[128421,61704,"desktop-alt"],"f390","M64 32C28.7 32 0 60.7 0 96L0 352c0 35.3 28.7 64 64 64l144 0-16 48-72 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l272 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-72 0-16-48 144 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 32zM96 96l320 0c17.7 0 32 14.3 32 32l0 160c0 17.7-14.3 32-32 32L96 320c-17.7 0-32-14.3-32-32l0-160c0-17.7 14.3-32 32-32z"]},Ele={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 502.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 402.7 224 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 370.7-105.4-105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},Vm={prefix:"fas",iconName:"location-dot",icon:[384,512,["map-marker-alt"],"f3c5","M0 188.6C0 84.4 86 0 192 0S384 84.4 384 188.6c0 119.3-120.2 262.3-170.4 316.8-11.8 12.8-31.5 12.8-43.3 0-50.2-54.5-170.4-197.5-170.4-316.8zM192 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128z"]},wx={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M512 96c0 50.2-59.1 125.1-84.6 155-3.8 4.4-9.4 6.1-14.5 5L320 256c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c53 0 96 43 96 96s-43 96-96 96l-276.4 0c8.7-9.9 19.3-22.6 30-36.8 6.3-8.4 12.8-17.6 19-27.2L416 448c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0c-53 0-96-43-96-96s43-96 96-96l39.8 0c-21-31.5-39.8-67.7-39.8-96 0-53 43-96 96-96s96 43 96 96zM117.1 489.1c-3.8 4.3-7.2 8.1-10.1 11.3l-1.8 2-.2-.2c-6 4.6-14.6 4-20-1.8-25.2-27.4-85-97.9-85-148.4 0-53 43-96 96-96s96 43 96 96c0 30-21.1 67-43.5 97.9-10.7 14.7-21.7 28-30.8 38.5l-.6 .7zM128 352a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM416 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},Ale={prefix:"fas",iconName:"file-export",icon:[576,512,["arrow-right-from-file"],"f56e","M96.5 0c-35.3 0-64 28.7-64 64l0 384c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-96 78.1 0-31 31c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l72-72c9.4-9.4 9.4-24.6 0-33.9l-72-72c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l31 31-78.1 0 0-133.5c0-17-6.7-33.3-18.7-45.3L291.2 18.7C279.2 6.7 263 0 246 0L96.5 0zM358 176l-93.5 0c-13.3 0-24-10.7-24-24L240.5 58.5 358 176zM224.5 328c0-13.3 10.7-24 24-24l104 0 0 48-104 0c-13.3 0-24-10.7-24-24z"]},$le={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M65.9 228.5c13.3-93 93.4-164.5 190.1-164.5 53 0 101 21.5 135.8 56.2 .2 .2 .4 .4 .6 .6l7.6 7.2-47.9 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l128 0c17.7 0 32-14.3 32-32l0-128c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 53.4-11.3-10.7C390.5 28.6 326.5 0 256 0 127 0 20.3 95.4 2.6 219.5 .1 237 12.2 253.2 29.7 255.7s33.7-9.7 36.2-27.1zm443.5 64c2.5-17.5-9.7-33.7-27.1-36.2s-33.7 9.7-36.2 27.1c-13.3 93-93.4 164.5-190.1 164.5-53 0-101-21.5-135.8-56.2-.2-.2-.4-.4-.6-.6l-7.6-7.2 47.9 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 320c-8.5 0-16.7 3.4-22.7 9.5S-.1 343.7 0 352.3l1 127c.1 17.7 14.6 31.9 32.3 31.7S65.2 496.4 65 478.7l-.4-51.5 10.7 10.1c46.3 46.1 110.2 74.7 180.7 74.7 129 0 235.7-95.4 253.4-219.5z"]},zle=$le;const $={bg:"#0a0a0a",card:"#1e1e1e",border:"#333333",text:"rgba(255,255,255,.87)",text2:"rgba(255,255,255,.6)",text3:"rgba(255,255,255,.4)",accent:"#7c3aed",accentLight:"#8b5cf6",secondary:"#22d3ee",success:"#4ade80",danger:"#ef4444",warning:"#f59e0b",info:"#3b82f6"};function It({children:e}){return s.jsx(se,{bg:$.bg,borderRadius:"24px",p:"14px",maxW:"380px",mx:"auto",boxShadow:"0 30px 60px -20px rgba(60,20,110,.45)",border:"1px solid",borderColor:"whiteAlpha.100",children:s.jsx(se,{bg:$.bg,borderRadius:"16px",p:"16px 14px 20px",minH:"220px",children:e})})}function bn({title:e,subtitle:t,action:n}){return s.jsxs(kt,{justify:"space-between",align:"flex-start",mb:4,children:[s.jsxs(se,{children:[s.jsx(Z,{color:$.text,fontSize:"1rem",fontWeight:"800",mb:0,children:e}),t&&s.jsx(Z,{color:$.text3,fontSize:"0.72rem",children:t})]}),n]})}function We({children:e,mb:t=2.5,onClick:n,active:r=!1}){return s.jsx(se,{bg:$.card,border:"1px solid",borderColor:r?$.accent:$.border,borderRadius:"12px",p:3,mb:t,cursor:n?"pointer":void 0,transition:"border-color .15s, transform .1s",onClick:n,_hover:n?{borderColor:$.accentLight}:void 0,_active:n?{transform:"scale(0.99)"}:void 0,children:e})}function Ke({icon:e,value:t,label:n,color:r=$.accentLight}){return s.jsxs(se,{bg:$.card,border:"1px solid",borderColor:$.border,borderRadius:"12px",p:2.5,children:[s.jsx(kt,{w:"26px",h:"26px",borderRadius:"full",align:"center",justify:"center",bg:`${r}30`,mb:2,children:s.jsx(Oe,{icon:e,style:{color:r,fontSize:"0.7rem"}})}),s.jsx(Z,{color:$.text,fontSize:"1.15rem",fontWeight:"800",lineHeight:"1",children:t}),s.jsx(Z,{color:$.text3,fontSize:"0.62rem",mt:1,textTransform:"uppercase",letterSpacing:"0.02em",children:n})]})}function Y({children:e,variant:t="primary",mono:n=!1,size:r}){const i={primary:$.text,secondary:$.text2,muted:$.text3,success:$.success,danger:$.danger};return s.jsx(Z,{color:i[t],fontSize:r??"0.78rem",fontFamily:n?"mono":void 0,as:"span",children:e})}function Ct({children:e}){return s.jsx(ge,{justify:"space-between",align:"center",children:e})}function Rle({value:e,color:t=$.accent}){return s.jsx(kp,{value:e,size:"xs",borderRadius:"full",mt:1,sx:{"& > div":{background:t,transition:"width .4s ease"},background:"#2a2a2a"}})}function ll({color:e,size:t="9px"}){return s.jsx(se,{as:"span",display:"inline-block",w:t,h:t,borderRadius:"full",bg:e,mr:1.5,flexShrink:0})}function O7({icon:e,color:t,size:n="0.75rem"}){return s.jsx(Oe,{icon:e,style:{color:t??$.text2,fontSize:n,marginRight:6}})}function je({children:e,tone:t="outline",icon:n,onClick:r,isActive:i=!1}){const o={accent:{bg:$.accent,color:"white",border:"none"},outline:{bg:"transparent",color:$.text2,border:`1px solid ${$.border}`},outlineDanger:{bg:"transparent",color:$.danger,border:`1px solid ${$.danger}`},success:{bg:$.success,color:"#0a0a0a",border:"none"}}[t];return s.jsxs(se,{as:"button",type:"button",display:"inline-flex",alignItems:"center",borderRadius:"8px",px:3,py:1.5,fontSize:"0.68rem",fontWeight:"700",cursor:r?"pointer":"default",transition:"filter .15s, transform .1s",opacity:i?1:.92,_hover:r?{filter:"brightness(1.15)"}:void 0,_active:r?{transform:"scale(0.96)"}:void 0,onClick:r,...o,children:[n&&s.jsx(Oe,{icon:n,style:{marginRight:6,fontSize:"0.68rem"}}),e]})}function kx({tabs:e,active:t,onChange:n}){return s.jsx(ge,{spacing:1.5,mb:3,flexWrap:"wrap",children:e.map(r=>{const i=r.key===t;return s.jsx(se,{as:"button",type:"button",onClick:()=>n(r.key),px:2.5,py:1,borderRadius:"999px",fontSize:"0.66rem",fontWeight:"700",cursor:"pointer",transition:"all .15s",bg:i?$.accent:"transparent",color:i?"white":$.text3,border:"1px solid",borderColor:i?$.accent:$.border,_hover:{borderColor:$.accentLight,color:i?"white":$.text2},children:r.label},r.key)})})}function Mle({value:e,onChange:t,placeholder:n}){return s.jsxs(se,{position:"relative",my:2,children:[s.jsx(Oe,{icon:sle,style:{position:"absolute",left:10,top:"50%",transform:"translateY(-50%)",color:$.text3,fontSize:"0.65rem"}}),s.jsx(se,{as:"input",value:e,onChange:r=>t(r.target.value),placeholder:n,w:"100%",bg:$.bg,border:"1px solid",borderColor:$.border,borderRadius:"8px",color:$.text,fontSize:"0.7rem",py:1.5,pl:"26px",pr:2,outline:"none"})]})}function Wm({children:e}){return s.jsx(se,{border:"1px dashed",borderColor:$.border,borderRadius:"10px",p:2.5,mt:2,children:s.jsx(Z,{color:$.text3,fontSize:"0.64rem",fontStyle:"italic",children:e})})}function Ile({isOn:e,onToggle:t}){return s.jsx(se,{as:"button",type:"button",onClick:t,w:"34px",h:"20px",borderRadius:"full",bg:e?$.accent:$.border,position:"relative",cursor:"pointer",transition:"background .2s",flexShrink:0,children:s.jsx(se,{position:"absolute",top:"2px",left:e?"16px":"2px",w:"16px",h:"16px",borderRadius:"full",bg:"white",transition:"left .2s"})})}function Lle(){const[e,t]=m.useState(!0);return s.jsxs(It,{children:[s.jsx(bn,{title:"Bonjour, Admin",subtitle:"Vue d'ensemble"}),s.jsxs(gn,{columns:2,spacing:2,mb:2.5,children:[s.jsx(Ke,{icon:L7,value:312,label:"Total commandes",color:$.accentLight}),s.jsx(Ke,{icon:qu,value:8,label:"En attente",color:$.warning}),s.jsx(Ke,{icon:z7,value:5,label:"En route",color:$.info}),s.jsx(Ke,{icon:Ta,value:299,label:"Terminées",color:$.success}),s.jsx(Ke,{icon:xx,value:184,label:"Clients",color:$.accentLight}),s.jsx(Ke,{icon:$7,value:6,label:"Livreurs",color:$.secondary})]}),s.jsxs(We,{mb:0,children:[s.jsxs(Ct,{children:[s.jsxs(Y,{children:[s.jsx(O7,{icon:yx,color:$.secondary}),"Notifications Telegram"]}),s.jsx(je,{tone:e?"outlineDanger":"accent",icon:e?N7:R7,onClick:()=>t(n=>!n),children:e?"Délier":"Lier Telegram"})]}),s.jsx(Y,{variant:"muted",size:"0.68rem",children:e?"Compte Telegram lié — alertes actives.":"Aucun compte lié — cliquez pour connecter."})]})]})}const J3=[{id:"#1042",client:"client_marie · 12 rue des Lilas",extra:"il y a 4 min",tone:"warning",label:"En attente",amount:"46,00 €"},{id:"#1041",client:"client_paul · Livreur: lucas_d",extra:"Net après parrainage",tone:"info",label:"En route",amount:"33,00 €"},{id:"#1040",client:"client_lea · 8 avenue Foch",extra:"en attente d’assignation",tone:"accent",label:"Livreur arrivé",amount:"58,50 €"}],ek=[{id:"#1038",client:"client_sam · 3 rue Victor Hugo",extra:"Terminée il y a 1 h",tone:"info",label:"Livrée",amount:"27,00 €"},{id:"#1036",client:"client_ana · 21 bd Voltaire",extra:"Terminée hier",tone:"info",label:"Livrée",amount:"41,00 €"},{id:"#1030",client:"client_marie · 5 rue de Rivoli",extra:"Terminée il y a 3 j",tone:"info",label:"Livrée",amount:"22,00 €"}],tk=[{id:"#1029",client:"client_theo · adresse introuvable",extra:"Annulée par le livreur",tone:"warning",label:"Annulée",amount:"19,00 €"}],nk={warning:$.warning,info:$.info,accent:$.accentLight};function rk({o:e,isOpen:t,onClick:n,children:r}){return s.jsxs(We,{active:t,onClick:n,children:[s.jsxs(Ct,{children:[s.jsx(Y,{mono:!0,children:e.id}),s.jsx("span",{style:{background:`${nk[e.tone]}26`,color:nk[e.tone],padding:"2px 9px",borderRadius:999,fontWeight:800,fontSize:"0.62rem"},children:e.label})]}),s.jsx(Y,{variant:"secondary",size:"0.7rem",children:e.client}),s.jsxs(Ct,{children:[s.jsx(Y,{variant:"muted",size:"0.65rem",children:e.extra}),s.jsx(Y,{variant:"primary",size:"0.75rem",children:e.amount})]}),r]})}function Nle(){const[e,t]=m.useState("#1040"),[n,r]=m.useState(null),[i,o]=m.useState(""),a=n==="approuvees"?ek:n==="annulees"?tk:[],l=m.useMemo(()=>a.filter(u=>u.client.toLowerCase().includes(i.toLowerCase())),[a,i]),c=u=>{r(d=>d===u?null:u),o("")};return s.jsxs(It,{children:[s.jsxs(Ct,{children:[s.jsx(je,{tone:"outline",icon:zle,children:"Actualiser"}),s.jsx(je,{tone:"outline",icon:Ale,children:"Export CSV"})]}),s.jsxs("div",{style:{display:"flex",gap:6,marginTop:10,marginBottom:6},children:[s.jsxs("div",{onClick:()=>c("approuvees"),style:{cursor:"pointer",flex:1,textAlign:"center",padding:"6px 4px",borderRadius:999,fontSize:"0.66rem",fontWeight:700,border:`1px solid ${n==="approuvees"?$.success:$.border}`,background:n==="approuvees"?`${$.success}22`:"transparent",color:n==="approuvees"?$.success:$.text3},children:["Approuvées (",ek.length,")"]}),s.jsxs("div",{onClick:()=>c("annulees"),style:{cursor:"pointer",flex:1,textAlign:"center",padding:"6px 4px",borderRadius:999,fontSize:"0.66rem",fontWeight:700,border:`1px solid ${n==="annulees"?$.danger:$.border}`,background:n==="annulees"?`${$.danger}22`:"transparent",color:n==="annulees"?$.danger:$.text3},children:["Annulées (",tk.length,")"]})]}),n&&s.jsxs("div",{style:{marginBottom:10},children:[s.jsx(Mle,{value:i,onChange:o,placeholder:"Rechercher par username..."}),s.jsxs(Y,{variant:"muted",size:"0.62rem",children:[l.length," résultat",l.length>1?"s":""]}),l.map(u=>s.jsx(rk,{o:u,isOpen:!1,onClick:()=>{}},u.id)),s.jsx("div",{style:{borderTop:`1px solid ${$.border}`,margin:"10px 0"}})]}),s.jsxs(Y,{size:"0.78rem",variant:"primary",children:["Commandes actives (",J3.length,")"]}),s.jsx("div",{style:{marginTop:8},children:J3.map(u=>{const d=e===u.id;return s.jsx(rk,{o:u,isOpen:d,onClick:()=>t(d?null:u.id),children:d&&s.jsxs("div",{style:{marginTop:10,paddingTop:10,borderTop:`1px solid ${$.border}`,display:"flex",gap:6,flexWrap:"wrap"},children:[s.jsx(je,{tone:"accent",icon:vx,children:"Assigner livreur"}),s.jsx(je,{tone:"outline",icon:Yv,children:"Passer en route"}),s.jsx(je,{tone:"outline",icon:_le,children:"Proposer adresse"})]})},u.id)})})]})}const ik=[{name:"lucas_d",status:"busy",queue:1,today:14,total:512,distance:"1,8 km",eta:"6 min"},{name:"emma_l",status:"available",queue:0,today:9,total:340,distance:"0,6 km",eta:"2 min"},{name:"yanis_b",status:"offline",queue:0,today:5,total:128,distance:"—",eta:"—"}],Ka={available:$.success,busy:$.warning,offline:$.text3},Dle={available:"Disponible",busy:"Occupé",offline:"Hors ligne"};function Ole(){const[e,t]=m.useState("lucas_d"),n=ik.find(r=>r.name===e);return s.jsxs(It,{children:[s.jsxs(gn,{columns:3,spacing:2,mb:2.5,children:[s.jsx(Ke,{icon:Vm,value:1,label:"Dispo",color:$.success}),s.jsx(Ke,{icon:qu,value:1,label:"Occupés",color:$.warning}),s.jsx(Ke,{icon:P7,value:1,label:"Hors ligne",color:$.text3})]}),s.jsxs(We,{children:[s.jsx("div",{style:{height:110,borderRadius:8,position:"relative",backgroundImage:"linear-gradient(135deg,#161022 25%,#1c1330 25%,#1c1330 50%,#161022 50%,#161022 75%,#1c1330 75%)",backgroundSize:"18px 18px",marginBottom:6},children:s.jsxs("span",{style:{position:"absolute",top:8,left:8,background:`${Ka[n.status]}26`,color:Ka[n.status],fontSize:"0.62rem",fontWeight:800,padding:"3px 9px",borderRadius:999},children:[s.jsx(ll,{color:Ka[n.status],size:"7px"}),n.name," — ",n.distance," · ",n.eta]})}),s.jsx(Y,{variant:"muted",size:"0.62rem",children:"Cliquez un livreur ci-dessous pour suivre son trajet en direct"})]}),ik.map(r=>{const i=r.name===e;return s.jsxs(We,{active:i,onClick:()=>t(r.name),children:[s.jsxs(Ct,{children:[s.jsxs(Y,{children:[s.jsx(ll,{color:Ka[r.status]}),r.name]}),s.jsx("span",{style:{background:`${Ka[r.status]}26`,color:Ka[r.status],fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:Dle[r.status]})]}),s.jsxs(Y,{variant:"muted",size:"0.62rem",children:[r.queue," en attente · ",r.today," aujourd'hui · ",r.total," total"]}),i&&s.jsxs("div",{style:{marginTop:8,display:"flex",gap:6},children:[s.jsx(je,{tone:"outline",icon:$p,children:"Avis"}),s.jsx(je,{tone:r.status!=="offline"?"accent":"outline",icon:wx,children:r.status!=="offline"?"Suivre l'itinéraire":"Indisponible"})]})]},r.name)})]})}const Fle=[{label:"1u",price:"12€",active:!0},{label:"3u",price:"30€",active:!0},{label:"5u",price:"45€",active:!1}];function Ble(){const[e,t]=m.useState(Fle),n=r=>{t(i=>i.map((o,a)=>a===r?{...o,active:!o.active}:o))};return s.jsxs(It,{children:[s.jsx(bn,{title:"Produits (48)",action:s.jsx(je,{tone:"accent",icon:Sx,children:"Créer"})}),s.jsxs(We,{children:[s.jsxs(Ct,{children:[s.jsx(Y,{variant:"primary",size:"0.82rem",children:"Pack Découverte"}),s.jsx("span",{style:{background:`${$.accentLight}26`,color:$.accentLight,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:"Premium"})]}),s.jsxs(Y,{variant:"muted",size:"0.65rem",children:[s.jsx(Oe,{icon:gle,style:{marginRight:4}}),"3 images ·"," ",s.jsx(Oe,{icon:ple,style:{marginRight:4}}),"1 vidéo · Stock: 24 u"]}),s.jsx(Y,{variant:"muted",size:"0.66rem",children:"Cliquez un tarif pour l'activer / le désactiver"}),s.jsx("div",{style:{display:"flex",gap:6,marginTop:6,flexWrap:"wrap"},children:e.map((r,i)=>s.jsxs("div",{onClick:()=>n(i),style:{cursor:"pointer",display:"flex",alignItems:"center",gap:5,padding:"4px 9px",borderRadius:8,border:`1px solid ${$.border}`,opacity:r.active?1:.5,textDecoration:r.active?"none":"line-through"},children:[s.jsx(Oe,{icon:r.active?xle:hle,style:{color:r.active?$.success:$.danger,fontSize:"0.7rem"}}),s.jsxs("span",{style:{color:$.text,fontSize:"0.72rem"},children:[r.label," = ",r.price]})]},r.label))}),s.jsxs("div",{style:{display:"flex",gap:6,marginTop:10},children:[s.jsx(je,{tone:"outline",icon:Sle,children:"Modifier"}),s.jsx(je,{tone:"outlineDanger",icon:E7,children:"Supprimer"})]})]}),s.jsxs(We,{mb:0,children:[s.jsxs(Ct,{children:[s.jsx(Y,{variant:"primary",size:"0.82rem",children:"Édition Limitée"}),s.jsx("span",{style:{background:`${$.warning}26`,color:$.warning,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:"À venir"})]}),s.jsx(Y,{variant:"muted",size:"0.65rem",children:"Stock: 0 u — masqué du catalogue tant que le stock est vide"})]})]})}const Vle=[{id:"a",name:"Fleurs",color:"#10b981"},{id:"b",name:"Résines",color:"#9333ea"},{id:"c",name:"Comestibles",color:"#3dc2f7",soon:!0}];function Wle(){const[e,t]=m.useState(Vle),n=(r,i)=>{const o=r+i;o<0||o>=e.length||t(a=>{const l=[...a];return[l[r],l[o]]=[l[o],l[r]],l})};return s.jsxs(It,{children:[s.jsx(bn,{title:"Catégories",action:s.jsx(je,{tone:"accent",icon:Sx,children:"Ajouter"})}),e.map((r,i)=>s.jsx(We,{children:s.jsxs(Ct,{children:[s.jsxs(Y,{children:[s.jsx(ll,{color:r.color}),r.name,r.soon&&s.jsx("span",{style:{marginLeft:8,background:`${$.warning}26`,color:$.warning,fontSize:"0.58rem",fontWeight:800,padding:"2px 7px",borderRadius:999},children:"Prochainement"})]}),s.jsxs("div",{style:{display:"flex",gap:4},children:[s.jsx("button",{onClick:()=>n(i,-1),disabled:i===0,style:{background:"transparent",border:"none",cursor:i===0?"default":"pointer",color:i===0?$.border:$.text2,padding:4},"aria-label":"Monter",children:s.jsx(Oe,{icon:A7,style:{fontSize:"0.7rem"}})}),s.jsx("button",{onClick:()=>n(i,1),disabled:i===e.length-1,style:{background:"transparent",border:"none",cursor:i===e.length-1?"default":"pointer",color:i===e.length-1?$.border:$.text2,padding:4},"aria-label":"Descendre",children:s.jsx(Oe,{icon:I7,style:{fontSize:"0.7rem"}})})]})]})},r.id)),s.jsx(Y,{variant:"muted",size:"0.62rem",children:"Essayez les flèches ↑ / ↓ pour réordonner"})]})}function Bl({title:e,onReset:t,since:n,children:r}){return s.jsxs(We,{children:[s.jsxs(Ct,{children:[s.jsx(Y,{variant:"secondary",size:"0.72rem",children:e}),t&&s.jsx(je,{tone:"outlineDanger",icon:zp,onClick:t,children:"Réinitialiser"})]}),n&&s.jsxs(Y,{variant:"muted",size:"0.58rem",children:["Depuis le ",n]}),s.jsx("div",{style:{marginTop:8},children:r})]})}function Oo({label:e,value:t,pct:n,color:r,highlight:i}){return s.jsxs("div",{style:{marginBottom:6},children:[s.jsxs(Ct,{children:[s.jsxs(Y,{variant:i?"primary":"muted",size:"0.64rem",children:[i&&s.jsx(Oe,{icon:fle,style:{color:$.warning,marginRight:4}}),e]}),s.jsx(Y,{variant:i?"primary":"muted",size:"0.64rem",children:t})]}),s.jsx(Rle,{value:n,color:i?$.warning:r})]})}const qa=["Mai 2026","Juin 2026","Juillet 2026","Août 2026"],Ule=[{day:"02/08",orders:14,revenue:"312€",best:!1},{day:"01/08",orders:22,revenue:"498€",best:!0},{day:"31/07",orders:9,revenue:"201€",best:!1}],Hle=[{key:"quantite",label:"Quantité"},{key:"commandes",label:"Commandes"},{key:"revenus",label:"Revenus"}],Gle={quantite:[{name:"Pack Découverte",value:210,display:"210"},{name:"Édition Standard",value:140,display:"140"},{name:"Format Duo",value:96,display:"96"}],commandes:[{name:"Pack Découverte",value:86,display:"86"},{name:"Édition Standard",value:54,display:"54"},{name:"Format Duo",value:41,display:"41"}],revenus:[{name:"Pack Découverte",value:1032,display:"1032€"},{name:"Édition Standard",value:648,display:"648€"},{name:"Format Duo",value:492,display:"492€"}]},$0=[{label:"10h",value:4},{label:"12h",value:18},{label:"14h",value:9},{label:"18h",value:22},{label:"20h",value:31},{label:"22h",value:12}],z0=[{label:"Lun",value:32},{label:"Mar",value:28},{label:"Mer",value:35},{label:"Jeu",value:41},{label:"Ven",value:58},{label:"Sam",value:71},{label:"Dim",value:47}],ok=[{label:"1g",value:40},{label:"3.5g",value:86},{label:"5g",value:22},{label:"10g",value:12}];function Kle(){const[e,t]=m.useState(qa.length-1),[n,r]=m.useState("revenus"),i=m.useMemo(()=>[...Gle[n]].sort((f,p)=>p.value-f.value),[n]),o=i[0].value,a=Math.max(...$0.map(f=>f.value)),l=$0.reduce((f,p)=>p.value>f.value?p:f),c=Math.max(...z0.map(f=>f.value)),u=z0.reduce((f,p)=>p.value>f.value?p:f),d=Math.max(...ok.map(f=>f.value));return s.jsxs(It,{children:[s.jsx(bn,{title:"Statistiques",subtitle:"Activité globale & produits"}),s.jsxs("div",{style:{maxHeight:560,overflowY:"auto",paddingRight:2},children:[s.jsxs(gn,{columns:2,spacing:2,mb:2.5,children:[s.jsx(Ke,{icon:cle,value:312,label:"Commandes totales",color:$.accentLight}),s.jsx(Ke,{icon:ole,value:"6,4k€",label:"Revenus (terminées)",color:$.success}),s.jsx(Ke,{icon:qu,value:"10,4",label:"Moy. commandes/jour",color:$.info}),s.jsx(Ke,{icon:Q3,value:"Samedi",label:"Jour de pointe",color:$.warning})]}),s.jsxs(We,{children:[s.jsx(Y,{variant:"secondary",size:"0.72rem",children:"Activité du jour"}),s.jsxs("div",{style:{display:"flex",gap:10,margin:"6px 0 8px"},children:[s.jsx(Y,{variant:"muted",size:"0.6rem",children:"18 commandes"}),s.jsx(Y,{variant:"muted",size:"0.6rem",children:"420g vendus"}),s.jsx(Y,{variant:"muted",size:"0.6rem",children:"312€"})]}),s.jsx(Oo,{label:"Fleurs — Pack Découverte",value:"86 · 1032€",pct:90,color:$.accent}),s.jsx(Oo,{label:"Résines — Format Duo",value:"41 · 492€",pct:45,color:$.info})]}),s.jsxs(We,{children:[s.jsxs(Ct,{children:[s.jsx("button",{onClick:()=>t(f=>Math.max(0,f-1)),disabled:e===0,style:{background:"none",border:"none",cursor:e===0?"default":"pointer",color:e===0?$.border:$.text2},children:s.jsx(Oe,{icon:jle})}),s.jsx(Y,{variant:"primary",size:"0.72rem",children:qa[e]}),s.jsx("button",{onClick:()=>t(f=>Math.min(qa.length-1,f+1)),disabled:e===qa.length-1,style:{background:"none",border:"none",cursor:e===qa.length-1?"default":"pointer",color:e===qa.length-1?$.border:$.text2},children:s.jsx(Oe,{icon:dle})})]}),s.jsx(Y,{variant:"muted",size:"0.6rem",children:"Historique mensuel — cliquez les flèches"}),s.jsx("div",{style:{marginTop:8},children:Ule.map(f=>s.jsx(Oo,{label:f.day,value:`${f.orders} cmd · ${f.revenue}`,pct:f.orders/22*100,color:$.accent,highlight:f.best},f.day))})]}),s.jsx(Bl,{title:"30 derniers jours — commandes",onReset:()=>{},since:"15/07/2026",children:s.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:3,height:50},children:[4,8,6,10,7,12,9,14,6,11].map((f,p)=>s.jsx("div",{style:{flex:1,height:`${f/14*100}%`,background:$.accent,borderRadius:2}},p))})}),s.jsxs(Bl,{title:"Revenus par jour (30j)",onReset:()=>{},since:"15/07/2026",children:[s.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:3,height:50,marginBottom:6},children:[120,240,180,300,210,360,260,410,190,330].map((f,p)=>s.jsx("div",{style:{flex:1,height:`${f/410*100}%`,background:$.success,borderRadius:2}},p))}),s.jsxs(Y,{variant:"muted",size:"0.6rem",children:[s.jsx(Oe,{icon:Q3,style:{color:$.warning,marginRight:4}}),"Meilleure journée : 01/08 — 498€"]})]}),s.jsxs(Bl,{title:"Heures d'affluence",onReset:()=>{},since:"15/07/2026",children:[$0.map(f=>s.jsx(Oo,{label:f.label,value:String(f.value),pct:f.value/a*100,color:$.info,highlight:f.label===l.label},f.label)),s.jsxs(Y,{variant:"muted",size:"0.6rem",children:["Heure de pointe : ",l.label," (",l.value," commandes)"]})]}),s.jsxs(Bl,{title:"Jours d'affluence",onReset:()=>{},since:"15/07/2026",children:[z0.map(f=>s.jsx(Oo,{label:f.label,value:String(f.value),pct:f.value/c*100,color:$.accent,highlight:f.label===u.label},f.label)),s.jsxs(Y,{variant:"muted",size:"0.6rem",children:["Pic d'activité : ",u.label]})]}),s.jsx(Bl,{title:"Doses populaires — Pack Découverte",onReset:()=>{},since:"15/07/2026",children:ok.map(f=>s.jsx(Oo,{label:f.label,value:String(f.value),pct:f.value/d*100,color:$.secondary,highlight:f.value===d},f.label))}),s.jsxs(We,{mb:0,children:[s.jsxs(Ct,{children:[s.jsx(Y,{variant:"secondary",size:"0.72rem",children:"Top produits"}),s.jsx(je,{tone:"outlineDanger",icon:zp,onClick:()=>{},children:"Réinitialiser"})]}),s.jsx("div",{style:{marginTop:8},children:s.jsx(kx,{tabs:Hle,active:n,onChange:r})}),i.map((f,p)=>s.jsx(Oo,{label:f.name,value:f.display,pct:f.value/o*100,color:$.accent,highlight:p===0},f.name)),s.jsxs(Y,{variant:"muted",size:"0.6rem",children:["Moins vendu : ",i[i.length-1].name]})]})]})]})}const ak=[{name:"client_marie",role:"clients",icon:xx,tone:$.info,detail:"Cmd: 12 · Points: 340 · Parrain: +8€"},{name:"lucas_d",role:"livreurs",icon:M7,tone:$.success,detail:"512 livraisons · connecté aujourd’hui"},{name:"admin_yas",role:"admins",icon:Bm,tone:$.accentLight,detail:"Accès complet à la plateforme"}],qle=[{key:"tous",label:"Tous",icon:$7,count:3},{key:"clients",label:"Clients",icon:xx,count:1},{key:"livreurs",label:"Livreurs",icon:M7,count:1},{key:"admins",label:"Admins",icon:Bm,count:1}];function Xle(){const[e,t]=m.useState("tous"),n=e==="tous"?ak:ak.filter(r=>r.role===e);return s.jsxs(It,{children:[s.jsx(gn,{columns:4,spacing:1.5,mb:2.5,children:qle.map(r=>{const i=r.key===e;return s.jsxs("div",{onClick:()=>t(r.key),style:{cursor:"pointer",textAlign:"center",padding:"8px 2px",borderRadius:10,border:`1px solid ${i?$.accent:$.border}`,background:i?`${$.accent}22`:$.card},children:[s.jsx(Oe,{icon:r.icon,style:{color:i?$.accentLight:$.text3,fontSize:"0.75rem"}}),s.jsx("div",{style:{color:$.text,fontSize:"0.72rem",fontWeight:800,marginTop:4},children:r.count}),s.jsx("div",{style:{color:$.text3,fontSize:"0.55rem"},children:r.label})]},r.key)})}),n.map(r=>s.jsxs(We,{children:[s.jsxs(Ct,{children:[s.jsxs(Y,{children:[s.jsx(Oe,{icon:r.icon,style:{color:r.tone,marginRight:6,fontSize:"0.72rem"}}),r.name]}),s.jsx("span",{style:{background:`${r.tone}26`,color:r.tone,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999,textTransform:"capitalize"},children:r.role==="clients"?"Client":r.role==="livreurs"?"Livreur":"Admin"})]}),s.jsx(Y,{variant:"muted",size:"0.65rem",children:r.detail})]},r.name))]})}const sk=[{id:"perso",icon:Z3,title:"Personnalisation",body:"Nom du shop affiché dans l’app · dégradé de couleur du titre (2 couleurs, aperçu en direct)."},{id:"amendes",icon:_7,title:"Amendes",body:"Barème par nombre d’annulations : 0 → 20€, 1 → 50€, 2 → 100€, 3 → 150€. Score affichable au client ou non.",hasSwitch:!0},{id:"parrainage",icon:vle,title:"Parrainage",body:"Active le solde de parrainage, utilisable directement au moment du paiement par le filleul.",hasSwitch:!0},{id:"points",icon:$p,title:"Système de points",body:"Créez vos propres types de points (nom + couleur), chacun avec son propre barème €→points.",hasSwitch:!0},{id:"attribution",icon:ble,title:"Attribution catégories → points",body:"Chaque catégorie de produit peut être reliée à un type de points précis, ou à aucun."},{id:"baremes",icon:$p,title:"Barème — Points Fidélité",body:"Paliers Min € / Max € / Points : ex. 0–20€ = 5 pts, 20–50€ = 15 pts, 50€+ = 40 pts."},{id:"recompense",icon:ile,title:"Récompenses par palier",body:"Seuil de points → produit offert ou à -50%. Récapitulatif généré automatiquement.",hasSwitch:!0},{id:"horaires",icon:Yv,title:"Horaires de livraison",body:"Lundi → Vendredi : 11h00–22h30 · Samedi : 12h00–23h00 · Dimanche : fermé."},{id:"zones",icon:ale,title:"Zones de livraison",body:"3 zones actives · minimum de commande et liste de codes postaux par zone, ajout en masse."},{id:"crypto",icon:Cle,title:"Paiement crypto",body:"BTC, ETH, LTC, USDT acceptés (NowPayments). Clé API et secret IPN masqués.",hasSwitch:!0},{id:"telegram",icon:ule,title:"Notifications Telegram",body:"Bot configuré — @votre_bot · authentification à deux facteurs activée.",hasSwitch:!0},{id:"mode-livraison",icon:Yv,title:"Mode de livraison",body:"« Par catégorie » : chaque livreur ne reçoit que les commandes des catégories qui lui sont assignées."},{id:"couleurs",icon:Z3,title:"Couleurs de l'interface",body:"Palette séparée pour l’espace admin et pour l’app client — 5 couleurs, restaurables en un clic."}];function Yle(){const[e,t]=m.useState("crypto"),[n,r]=m.useState(!0),[i,o]=m.useState(!0);return s.jsxs(It,{children:[s.jsx(bn,{title:"Paramètres",subtitle:`${sk.length} sections — cliquez pour ouvrir`}),s.jsx("div",{style:{maxHeight:480,overflowY:"auto",paddingRight:2},children:sk.map(a=>{const l=e===a.id,c=a.id==="crypto"?n:a.id==="telegram"?i:!0,u=a.id==="crypto"?r:o;return s.jsxs(We,{onClick:()=>t(l?null:a.id),children:[s.jsxs(Ct,{children:[s.jsxs(Y,{size:"0.72rem",children:[s.jsx(Oe,{icon:a.icon,style:{color:$.accentLight,marginRight:8,fontSize:"0.68rem"}}),a.title]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[a.hasSwitch&&(a.id==="crypto"||a.id==="telegram")&&s.jsx("span",{onClick:d=>d.stopPropagation(),children:s.jsx(Ile,{isOn:c,onToggle:()=>u(d=>!d)})}),a.hasSwitch&&a.id!=="crypto"&&a.id!=="telegram"&&s.jsx(Oe,{icon:yx,style:{color:$.success,fontSize:"0.55rem"}}),s.jsx(Oe,{icon:l?A7:I7,style:{color:$.text3,fontSize:"0.6rem"}})]})]}),l&&s.jsx("div",{style:{marginTop:8,paddingTop:8,borderTop:`1px solid ${$.border}`},children:s.jsx(Y,{variant:"muted",size:"0.66rem",children:a.body})})]},a.id)})})]})}const Qle=[{id:"1",driver:"lucas_d",message:"Accès bloqué, portail fermé",time:"03/08/2026, 14:32",active:!0},{id:"2",driver:"emma_l",message:"Client injoignable",time:"02/08/2026, 19:05",active:!1}];function Zle(){const[e,t]=m.useState(Qle),n=r=>{t(i=>i.map(o=>o.id===r?{...o,active:!1}:o))};return s.jsxs(It,{children:[s.jsx(bn,{title:"Alertes",subtitle:"Cliquez « Résoudre » pour tester"}),e.map(r=>s.jsxs(We,{children:[s.jsxs(Ct,{children:[s.jsxs(Y,{variant:r.active?"danger":"secondary",children:[s.jsx(Oe,{icon:Fm,style:{color:r.active?$.danger:$.text3,marginRight:6,fontSize:"0.72rem"}}),r.driver]}),s.jsx("span",{style:{background:r.active?`${$.danger}26`:`${$.success}26`,color:r.active?$.danger:$.success,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:r.active?"Active":"Terminée"})]}),r.active&&s.jsxs(Y,{variant:"danger",size:"0.7rem",children:['"',r.message,'"']}),s.jsxs(Ct,{children:[s.jsx(Y,{variant:"muted",size:"0.62rem",children:r.time}),r.active&&s.jsx(je,{tone:"success",icon:Ta,onClick:()=>n(r.id),children:"Résoudre"})]})]},r.id))]})}const Jle=[{id:"1",wrong:"10 rue de la paix",right:"10 Rue de la Paix, 75001 Paris"}];function ece(){const[e,t]=m.useState(Jle),[n,r]=m.useState(!1),[i,o]=m.useState(""),[a,l]=m.useState(""),c=()=>{!i.trim()||!a.trim()||(t(u=>[...u,{id:String(u.length+1),wrong:i,right:a}]),o(""),l(""),r(!1))};return s.jsxs(It,{children:[s.jsx(bn,{title:"Corrections d'adresses",action:s.jsx(je,{tone:"accent",icon:Sx,onClick:()=>r(u=>!u),children:n?"Fermer":"Ajouter"})}),n&&s.jsxs(We,{children:[s.jsx("input",{placeholder:"Adresse invalide (ex: 10 rue de la paix)",value:i,onChange:u=>o(u.target.value),style:{width:"100%",background:$.bg,border:`1px solid ${$.border}`,borderRadius:8,color:$.text,fontSize:"0.7rem",padding:"6px 8px",marginBottom:6,outline:"none"}}),s.jsx("input",{placeholder:"Adresse correcte (ex: 10 Rue de la Paix, 75001 Paris)",value:a,onChange:u=>l(u.target.value),style:{width:"100%",background:$.bg,border:`1px solid ${$.border}`,borderRadius:8,color:$.text,fontSize:"0.7rem",padding:"6px 8px",marginBottom:8,outline:"none"}}),s.jsx(je,{tone:"accent",onClick:c,children:"Ajouter la correction"})]}),e.map(u=>s.jsxs(We,{children:[s.jsx(Y,{variant:"danger",size:"0.72rem",children:u.wrong}),s.jsx("div",{style:{margin:"3px 0"},children:s.jsx(Oe,{icon:Ele,style:{color:$.text3,fontSize:"0.62rem"}})}),s.jsx(Y,{variant:"success",size:"0.72rem",children:u.right})]},u.id))]})}function tce(){const[e,t]=m.useState(!1);return s.jsxs(It,{children:[s.jsx(bn,{title:"Cabine — Nadia",subtitle:"Suivi des opérations"}),s.jsxs(gn,{columns:2,spacing:2,mb:2.5,children:[s.jsx(Ke,{icon:L7,value:11,label:"Commandes actives",color:$.info}),s.jsx(Ke,{icon:z7,value:4,label:"En route",color:$.warning}),s.jsx(Ke,{icon:qu,value:3,label:"En attente",color:$.accentLight}),s.jsx(Ke,{icon:vx,value:4,label:"Livreurs dispo",color:$.success}),s.jsx(Ke,{icon:bx,value:2,label:"Livreurs occupés",color:$.warning}),s.jsx(Ke,{icon:Ple,value:299,label:"Total terminées",color:$.success})]}),s.jsx(We,{mb:0,children:s.jsxs(Ct,{children:[s.jsxs(Y,{children:[s.jsx(O7,{icon:yx,color:$.secondary}),"Notifications Telegram"]}),s.jsx(je,{tone:e?"outlineDanger":"accent",icon:e?N7:R7,onClick:()=>t(n=>!n),children:e?"Délier":"Lier Telegram"})]})})]})}const nce=[{id:"#1042",client:"client_marie",address:"12 rue des Lilas",total:"46,00 €",label:"En attente",tone:$.warning},{id:"#1040",client:"client_lea",address:"8 avenue Foch",total:"58,50 €",label:"Livreur arrivé",tone:$.accentLight}];function rce(){const[e,t]=m.useState("#1042");return s.jsxs(It,{children:[s.jsx(bn,{title:"Commandes actives",subtitle:"Cliquez une commande"}),nce.map(n=>{const r=e===n.id;return s.jsxs(We,{active:r,onClick:()=>t(r?null:n.id),children:[s.jsxs(Ct,{children:[s.jsx(Y,{mono:!0,children:n.id}),s.jsx("span",{style:{background:`${n.tone}26`,color:n.tone,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:n.label})]}),s.jsxs(Y,{variant:"secondary",size:"0.7rem",children:[n.client," · ",n.address]}),s.jsx(Y,{variant:"primary",size:"0.75rem",children:n.total}),r&&s.jsxs("div",{style:{marginTop:10,paddingTop:10,borderTop:`1px solid ${$.border}`,display:"flex",gap:6,flexWrap:"wrap"},children:[s.jsx(je,{tone:"accent",icon:yle,children:"Le livreur est là"}),s.jsx(je,{tone:"outline",icon:vx,children:"Assigner livreur"}),s.jsx(je,{tone:"outline",icon:Vm,children:"Proposer adresse"}),s.jsx(je,{tone:"outlineDanger",icon:E7,children:"Supprimer"})]})]},n.id)}),s.jsx(Wm,{children:"Contrairement à l'espace admin, la cabine ne peut pas modifier le contenu d'une commande — seulement la faire avancer ou la supprimer."})]})}const ice=[{name:"lucas_d",status:"busy",queue:1,total:512},{name:"emma_l",status:"available",queue:0,total:340}],R0={available:$.success,busy:$.warning,offline:$.text3},oce={available:"Disponible",busy:"Occupé",offline:"Hors ligne"};function ace(){const[e,t]=m.useState("lucas_d");return s.jsxs(It,{children:[s.jsxs(gn,{columns:3,spacing:2,mb:2.5,children:[s.jsx(Ke,{icon:Vm,value:1,label:"Dispo",color:$.success}),s.jsx(Ke,{icon:bx,value:1,label:"Occupés",color:$.warning}),s.jsx(Ke,{icon:P7,value:0,label:"Offline",color:$.text3})]}),ice.map(n=>{const r=e===n.name;return s.jsxs(We,{active:r,children:[s.jsxs(Ct,{children:[s.jsxs(Y,{children:[s.jsx(ll,{color:R0[n.status]}),n.name]}),s.jsx("span",{style:{background:`${R0[n.status]}26`,color:R0[n.status],fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:oce[n.status]})]}),s.jsxs(Y,{variant:"muted",size:"0.62rem",children:["Queue: ",n.queue," · Total: ",n.total]}),s.jsx("div",{style:{marginTop:8},children:s.jsx(je,{tone:r?"accent":"outline",icon:wx,onClick:()=>t(r?null:n.name),children:r?"Arrêter le suivi":"Suivre"})})]},n.name)}),s.jsx(Wm,{children:"La cabine visualise et suit les livreurs en direct, mais l'assignation d'une commande se fait depuis l'écran Commandes."})]})}const lk=[{id:"1",driver:"lucas_d",message:"Accès bloqué, portail fermé",time:"14:32",active:!0},{id:"2",driver:"emma_l",message:"Client injoignable",time:"hier 19:05",active:!1}];function sce(){const[e,t]=m.useState("toutes"),n=e==="toutes"?lk:lk.filter(r=>r.active);return s.jsxs(It,{children:[s.jsx(bn,{title:"Alertes livreurs"}),s.jsx(kx,{tabs:[{key:"toutes",label:"Toutes"},{key:"actives",label:"Actives"}],active:e,onChange:t}),n.map(r=>s.jsxs(We,{children:[s.jsxs(Ct,{children:[s.jsxs(Y,{variant:r.active?"danger":"secondary",children:[s.jsx(Oe,{icon:Fm,style:{color:r.active?$.danger:$.text3,marginRight:6,fontSize:"0.72rem"}}),r.driver]}),s.jsx("span",{style:{background:r.active?`${$.danger}26`:`${$.success}26`,color:r.active?$.danger:$.success,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:r.active?"Active":"Terminée"})]}),r.active&&s.jsxs(Y,{variant:"danger",size:"0.7rem",children:['"',r.message,'"']}),s.jsx(Y,{variant:"muted",size:"0.62rem",children:r.time})]},r.id)),s.jsx(Wm,{children:"La résolution des alertes reste réservée à l'espace admin."})]})}function lce(){const[e,t]=m.useState("35 €"),[n,r]=m.useState(340);return s.jsxs(It,{children:[s.jsx(bn,{title:"Clients",subtitle:"Réinitialisations rapides"}),s.jsxs(We,{mb:0,children:[s.jsx(Y,{variant:"primary",size:"0.82rem",children:"client_marie"}),s.jsx(Y,{variant:"muted",size:"0.66rem",children:"Marie D. · 06 12 34 56 78"}),s.jsxs("div",{style:{display:"flex",gap:12,margin:"8px 0"},children:[s.jsx(Y,{variant:"danger",size:"0.68rem",children:"Annul.: 2"}),s.jsxs(Y,{variant:"secondary",size:"0.68rem",mono:!0,children:["Amende: ",e]}),s.jsxs(Y,{variant:"success",size:"0.68rem",mono:!0,children:["Points: ",n]})]}),s.jsxs("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[s.jsx(je,{tone:"outline",icon:zp,onClick:()=>t("0 €"),children:"Reset pénalités"}),s.jsx(je,{tone:"outline",icon:zp,onClick:()=>r(0),children:"Reset points"})]})]}),s.jsx(Wm,{children:"Pas de création, modification ni suppression de compte ici — uniquement des remises à zéro ponctuelles."})]})}const M0=["pending","in_progress","arrived","completed"],I0={pending:{label:"En attente",tone:$.info},in_progress:{label:"En cours",tone:$.warning},arrived:{label:"Arrivé",tone:$.accentLight},completed:{label:"Terminée",tone:$.success}},cce=[{key:"available",label:"Disponible",tone:$.success},{key:"busy",label:"Occupé",tone:$.warning},{key:"offline",label:"Hors ligne",tone:$.text3}];function uce(){const[e,t]=m.useState("available"),[n,r]=m.useState("in_progress"),i=()=>{const o=M0.indexOf(n);o<M0.length-1&&r(M0[o+1])};return s.jsxs(It,{children:[s.jsx(bn,{title:"Mon statut"}),s.jsx("div",{style:{display:"flex",gap:6,marginBottom:12,flexWrap:"wrap"},children:cce.map(o=>{const a=e===o.key;return s.jsxs("div",{onClick:()=>t(o.key),style:{cursor:"pointer",display:"flex",alignItems:"center",padding:"5px 10px",borderRadius:999,fontSize:"0.65rem",fontWeight:700,border:`1px solid ${a?o.tone:$.border}`,background:a?`${o.tone}22`:"transparent",color:a?o.tone:$.text3},children:[s.jsx(ll,{color:o.tone,size:"7px"}),o.label]},o.key)})}),s.jsx(We,{children:s.jsx("div",{style:{height:96,borderRadius:8,position:"relative",backgroundImage:"linear-gradient(135deg,#161022 25%,#1c1330 25%,#1c1330 50%,#161022 50%,#161022 75%,#1c1330 75%)",backgroundSize:"18px 18px",marginBottom:6},children:s.jsxs("span",{style:{position:"absolute",top:8,left:8,background:`${$.success}26`,color:$.success,fontSize:"0.6rem",fontWeight:800,padding:"3px 9px",borderRadius:999},children:[s.jsx(ll,{color:$.success,size:"7px"}),"GPS actif — 48.85, 2.35"]})})}),s.jsx(Y,{variant:"muted",size:"0.66rem",children:"Mes livraisons (1) — cliquez « avancer » pour tester le cycle complet"}),s.jsxs(We,{mb:0,children:[s.jsxs(Ct,{children:[s.jsx(Y,{mono:!0,children:"Commande #1041"}),s.jsx("span",{style:{background:`${I0[n].tone}26`,color:I0[n].tone,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:I0[n].label})]}),s.jsx(Y,{variant:"secondary",size:"0.7rem",children:"client_paul · 12 rue des Lilas"}),s.jsxs("div",{style:{display:"flex",gap:6,marginTop:8,flexWrap:"wrap"},children:[s.jsx(je,{tone:"outline",icon:Vm,children:"Itinéraire"}),s.jsx(je,{tone:"outline",icon:wle,children:"Appeler"})]}),s.jsxs("div",{style:{marginTop:10,paddingTop:10,borderTop:`1px solid ${$.border}`,display:"flex",gap:6,flexWrap:"wrap"},children:[n==="pending"&&s.jsx(je,{tone:"success",icon:wx,onClick:i,children:"Démarrer la livraison"}),n==="in_progress"&&s.jsx(je,{tone:"accent",icon:bx,onClick:i,children:"J'arrive"}),n==="arrived"&&s.jsxs(s.Fragment,{children:[s.jsx(je,{tone:"accent",icon:Ta,onClick:i,children:"Terminer"}),s.jsx(je,{tone:"outlineDanger",icon:_7,children:"Annuler"})]}),n==="completed"&&s.jsxs(Y,{variant:"success",size:"0.7rem",children:[s.jsx(Oe,{icon:Ta,style:{marginRight:6}}),"Livraison terminée"]})]})]})]})}const Fo={police:{title:"Contrôle de police",icon:Bm,hint:"Restez calme, coopérez avec les forces de l’ordre. L’équipe est prévenue."},ambush:{title:"Guet-apens",icon:Fm,hint:"Éloignez-vous du danger si possible. L’équipe et les secours sont prévenus."}};function dce(){const[e,t]=m.useState("idle"),[n,r]=m.useState("police");return s.jsxs(It,{children:[s.jsx(bn,{title:"Alerte",subtitle:"Bouton d'urgence pour les livreurs"}),e==="idle"&&s.jsx(je,{tone:"outlineDanger",icon:Fm,onClick:()=>t("pick"),children:"Déclencher alerte police"}),e==="pick"&&s.jsxs(We,{mb:0,children:[s.jsx(Y,{size:"0.78rem",variant:"primary",children:"Type d'alerte"}),s.jsx(Y,{variant:"muted",size:"0.65rem",children:"Sélectionnez la raison de l'alerte."}),s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6,marginTop:8},children:Object.keys(Fo).map(i=>s.jsxs("div",{onClick:()=>{r(i),t("confirm")},style:{cursor:"pointer",display:"flex",alignItems:"center",gap:8,padding:"8px 10px",borderRadius:8,border:`1px solid ${$.border}`},children:[s.jsx(Oe,{icon:Fo[i].icon,style:{color:$.danger,fontSize:"0.8rem"}}),s.jsx("span",{style:{color:$.text,fontSize:"0.74rem"},children:Fo[i].title})]},i))}),s.jsx("div",{style:{marginTop:10},children:s.jsx(je,{tone:"outline",onClick:()=>t("idle"),children:"Annuler"})})]}),e==="confirm"&&s.jsxs(We,{mb:0,children:[s.jsxs(Y,{size:"0.78rem",variant:"danger",children:[s.jsx(Oe,{icon:Fo[n].icon,style:{marginRight:6}}),"Alerte — ",Fo[n].title]}),s.jsx(Y,{variant:"muted",size:"0.66rem",children:Fo[n].hint}),s.jsx(Y,{variant:"primary",size:"0.74rem",children:"Confirmez-vous le déclenchement ?"}),s.jsxs("div",{style:{display:"flex",gap:6,marginTop:10},children:[s.jsx(je,{tone:"outline",onClick:()=>t("idle"),children:"Annuler"}),s.jsx(je,{tone:"outlineDanger",onClick:()=>t("sent"),children:"Déclencher"})]})]}),e==="sent"&&s.jsxs(We,{mb:0,children:[s.jsx(Oe,{icon:Ta,style:{color:$.success,fontSize:"1.4rem",marginBottom:8}}),s.jsx(Y,{size:"0.8rem",variant:"success",children:"Alerte envoyée"}),s.jsx(Y,{variant:"muted",size:"0.66rem",children:"L'équipe admin a été notifiée immédiatement."}),s.jsx(Y,{variant:"secondary",size:"0.66rem",children:Fo[n].hint}),s.jsx("div",{style:{marginTop:10},children:s.jsx(je,{tone:"accent",onClick:()=>t("idle"),children:"Compris"})})]})]})}function ck({value:e}){return s.jsx("span",{children:[1,2,3,4,5].map(t=>s.jsx(Oe,{icon:$p,style:{color:t<=e?$.warning:$.border,fontSize:"0.7rem",marginRight:2}},t))})}const fce=[{client:"client_marie",order:"#1038",rating:5,comment:"Livraison rapide et sympa, merci !"},{client:"client_theo",order:"#1029",rating:4,comment:"Tout est arrivé nickel."}];function pce(){return s.jsxs(It,{children:[s.jsx(bn,{title:"Mes avis"}),s.jsxs(We,{children:[s.jsx(Y,{size:"1.5rem",variant:"primary",children:"4.7"}),s.jsx("div",{style:{marginTop:4},children:s.jsx(ck,{value:5})}),s.jsx(Y,{variant:"muted",size:"0.66rem",children:"38 avis clients"})]}),fce.map(e=>s.jsxs(We,{children:[s.jsx(Y,{size:"0.74rem",variant:"primary",children:e.client}),s.jsxs(Y,{variant:"muted",size:"0.62rem",children:["Commande ",e.order]}),s.jsx("div",{style:{margin:"4px 0"},children:s.jsx(ck,{value:e.rating})}),s.jsxs(Y,{variant:"secondary",size:"0.68rem",children:["« ",e.comment," »"]})]},e.order))]})}const mce={jour:[2,4,3,6,5,8,4],semaine:[18,24,21,27,15,30,22],mois:[80,92,76,101]},hce={jour:["L","M","M","J","V","S","D"],semaine:["S1","S2","S3","S4","S5","S6","S7"],mois:["Mai","Juin","Juil","Août"]};function gce(){const[e,t]=m.useState("semaine"),n=mce[e],r=hce[e],i=m.useMemo(()=>Math.max(...n),[n]);return s.jsxs(It,{children:[s.jsx(bn,{title:"Mes performances"}),s.jsxs(gn,{columns:2,spacing:2,mb:2.5,children:[s.jsx(Ke,{icon:lle,value:512,label:"Total livraisons",color:$.accentLight}),s.jsx(Ke,{icon:Ta,value:489,label:"Complétées",color:$.success}),s.jsx(Ke,{icon:qu,value:14,label:"Livraisons du jour",color:$.accentLight}),s.jsx(Ke,{icon:kle,value:3,label:"En attente",color:$.info})]}),s.jsxs(We,{mb:0,children:[s.jsx(Y,{variant:"secondary",size:"0.72rem",children:"Évolution"}),s.jsx("div",{style:{marginTop:8},children:s.jsx(kx,{tabs:[{key:"jour",label:"Jour"},{key:"semaine",label:"Semaine"},{key:"mois",label:"Mois"}],active:e,onChange:t})}),s.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:6,height:90,marginTop:6},children:n.map((o,a)=>s.jsxs("div",{style:{flex:1,textAlign:"center"},children:[s.jsx("div",{style:{height:`${o/i*70}px`,background:$.accent,borderRadius:4,transition:"height .3s ease"}}),s.jsx("div",{style:{color:$.text3,fontSize:"0.55rem",marginTop:4},children:r[a]})]},a))}),s.jsxs(Y,{variant:"muted",size:"0.62rem",children:[n.reduce((o,a)=>o+a,0)," livraisons sur la période"]})]})]})}const vce=[{id:"admin-dashboard",kicker:"Vue d'ensemble",title:"Toute votre activité en un coup d’œil",lead:"Dès l'ouverture, vous voyez l'essentiel : commandes en attente ou en route, clients et livreurs actifs — sans avoir à chercher l'information.",points:["Chiffres mis à jour en temps réel","Notifications Telegram liées à votre compte","Accès identique sur mobile et sur ordinateur"],mockup:s.jsx(Lle,{})},{id:"admin-commandes",kicker:"Suivi opérationnel",title:"Suivez chaque commande, de la validation à la livraison",lead:"Chaque commande apparaît avec son statut, son montant et le livreur assigné. Un menu d'actions par commande permet d'assigner un livreur ou de la finaliser en un geste.",points:["Archives des commandes approuvées et annulées, recherche instantanée","Export CSV pour votre comptabilité","Parrainage et fidélité pris en compte automatiquement dans le total"],mockup:s.jsx(Nle,{}),reverse:!0},{id:"admin-livraison",kicker:"Géolocalisation en direct",title:"Localisez vos livreurs en temps réel, sur la carte",lead:"La position de chaque livreur s'affiche en direct, avec la distance et le temps restant estimé. Vue d'ensemble de toute la flotte : disponible, occupée ou hors ligne.",points:["Distance et temps de trajet calculés automatiquement","Avis clients et historique de connexion par livreur",'Notification client en un tap : "le livreur est arrivé"'],mockup:s.jsx(Ole,{})},{id:"admin-produits",kicker:"Catalogue",title:"Un catalogue que vous gérez vous-même",lead:"Ajoutez, modifiez ou retirez un produit en quelques secondes : photos, vidéos, stock, description, et plusieurs tarifs par produit.",points:["Photos et vidéos multiples par produit","Plusieurs paliers de prix, activables indépendamment","Statut « à venir » pour annoncer un produit avant sa mise en vente"],mockup:s.jsx(Ble,{}),reverse:!0},{id:"admin-categories",kicker:"Organisation",title:"Organisez votre catalogue comme vous le souhaitez",lead:"Créez vos propres catégories, attribuez-leur une couleur, réordonnez-les en un clic. Une catégorie peut être marquée « prochainement » avant sa mise en ligne.",points:["Couleur personnalisée par catégorie","Réorganisation manuelle de l'ordre d'affichage","Aperçu immédiat du rendu côté client"],mockup:s.jsx(Wle,{})},{id:"admin-statistiques",kicker:"Pilotage",title:"Des chiffres clairs pour piloter votre activité",lead:"Chiffre d'affaires, produits les plus vendus, heures et jours d'affluence : tout est visualisé simplement, sans éplucher vos commandes une par une.",points:["Historique mensuel navigable, jour par jour","Classement des meilleurs produits (quantité, commandes ou revenus)","Repérage automatique du jour et de l'heure de pointe"],mockup:s.jsx(Kle,{}),reverse:!0},{id:"admin-utilisateurs",kicker:"Équipe & clients",title:"Clients, livreurs, équipe : tout au même endroit",lead:"Un seul espace pour gérer tous les comptes. Ajustez les points de fidélité, appliquez une pénalité ou consultez l'historique d'un client.",points:["Filtre par rôle et recherche instantanée","Gestion des points de fidélité et du parrainage","Suivi des annulations et de l'historique de connexion"],mockup:s.jsx(Xle,{})},{id:"admin-parametres",kicker:"Personnalisation",title:"Une plateforme qui s'adapte à votre activité",lead:"13 sections de réglages : fidélité, parrainage, pénalités, zones et horaires de livraison, paiement crypto, Telegram, couleurs de l’interface... Tout est configurable vous-même.",points:["Zones de livraison par code postal avec minimum de commande","Paiement crypto (NowPayments) et bot Telegram intégrés","Couleurs de l'espace admin et de l'app client personnalisables"],mockup:s.jsx(Yle,{}),reverse:!0},{id:"admin-alertes",kicker:"Réactivité",title:"Réagissez immédiatement en cas de problème",lead:"Si un livreur rencontre un souci sur le terrain, l'alerte remonte instantanément — avec son message et l'horodatage — jusqu'à ce qu'elle soit résolue.",points:["Distinction claire entre alerte active et résolue","Historique complet conservé"],mockup:s.jsx(Zle,{})},{id:"admin-adresses",kicker:"Fiabilité livraison",title:"Zéro commande perdue à cause d’une adresse mal saisie",lead:"Quand un client tape une adresse imprécise, corrigez-la une bonne fois pour toutes : les prochaines commandes utiliseront automatiquement la bonne adresse.",points:["Association simple « adresse saisie → adresse correcte »","Moins d’erreurs de livraison, moins d’allers-retours"],mockup:s.jsx(ece,{}),reverse:!0}],yce=[{id:"cabine-dashboard",kicker:"Opérations du jour",title:"Un espace dédié pour votre équipe en cuisine",lead:"Vos préparateurs voient uniquement ce qui les concerne : commandes en cours, livreurs disponibles — sans chiffre d'affaires ni réglages sensibles.",points:["Aucune donnée financière exposée","Notifications Telegram propres à chaque compte","Rafraîchissement en direct"],mockup:s.jsx(tce,{})},{id:"cabine-commandes",kicker:"Suivi des commandes",title:"Faire avancer une commande, en toute sécurité",lead:"La cabine assigne un livreur, prévient le client, propose une correction d’adresse — mais ne peut ni modifier ni voir les réglages de la commande.",points:["Actions limitées et guidées, pas de menu complexe","Confirmation demandée avant chaque action sensible","Zéro risque de modification accidentelle"],mockup:s.jsx(rce,{}),reverse:!0},{id:"cabine-livraison",kicker:"Suivi livreurs",title:"Suivre les livreurs en direct, sans les gérer",lead:"La cabine voit la carte, la disponibilité et la position de chaque livreur pour coordonner la préparation — la gestion des comptes reste réservée à l’admin.",points:["Carte et statuts en temps réel","Suivi d’itinéraire en un clic","Aucun accès à la création ou modification de compte"],mockup:s.jsx(ace,{})},{id:"cabine-alertes",kicker:"Information",title:"Rester informé, sans pouvoir de décision",lead:"Les alertes remontées par les livreurs sont visibles par la cabine pour garder tout le monde informé — seule l’équipe admin peut les résoudre.",points:['Filtre "Toutes" / "Actives"',"Lecture seule, aucune action destructrice possible"],mockup:s.jsx(sce,{}),reverse:!0},{id:"cabine-utilisateurs",kicker:"Service client",title:"Un geste commercial, sans accès aux comptes",lead:"Besoin d’annuler une pénalité ou d’offrir des points en guise de geste commercial ? La cabine peut le faire en un clic, sans jamais toucher au reste du compte client.",points:["Reset pénalités et points uniquement","Aucune création, édition ou suppression de compte"],mockup:s.jsx(lce,{})}],bce=[{id:"livreur-dashboard",kicker:"Terrain",title:"Le compagnon de route de vos livreurs",lead:"Statut en un tap (disponible / occupé / hors ligne), position GPS en direct, et un cycle de livraison guidé étape par étape jusqu’à la remise au client.",points:["Cycle complet : Démarrer → J’arrive → Terminer","Appel client et itinéraire en un tap","Gestion des cas « client absent » avec compte à rebours"],mockup:s.jsx(uce,{})},{id:"livreur-alertes",kicker:"Sécurité",title:"Un bouton d’urgence, toujours à portée de main",lead:"En cas de contrôle de police ou de situation dangereuse, le livreur alerte l’équipe admin en 2 taps — avec des consignes de sécurité affichées immédiatement.",points:["Deux types d’alerte : contrôle de police / guet-apens","Confirmation avant envoi pour éviter les fausses alertes","Consignes de sécurité affichées après envoi"],mockup:s.jsx(dce,{}),reverse:!0},{id:"livreur-avis",kicker:"Reconnaissance",title:"Chaque livreur voit ses propres avis clients",lead:"Note moyenne et commentaires clients, pour valoriser le travail de vos livreurs et repérer rapidement un souci de service.",points:["Note moyenne calculée automatiquement","Commentaires clients horodatés"],mockup:s.jsx(pce,{})},{id:"livreur-stats",kicker:"Performance",title:"Un livreur qui suit sa propre performance reste motivé",lead:"Nombre de livraisons, taux de complétion, évolution jour / semaine / mois : chaque livreur a une vision claire de son activité.",points:["Bascule Jour / Semaine / Mois","Totaux recalculés automatiquement"],mockup:s.jsx(gce,{}),reverse:!0}],uk=[{key:"admin",label:"Espace Admin",icon:Tle,features:vce,blurb:"Contrôle total de la plateforme."},{key:"cabine",label:"Espace Cabine",icon:mle,features:yce,blurb:"Équipe de préparation, accès restreint."},{key:"livreur",label:"Espace Livreur",icon:Bm,features:bce,blurb:"Application dédiée aux livreurs."}];function xce(){const[e,t]=m.useState("admin"),n=uk.find(r=>r.key===e);return s.jsxs(se,{children:[s.jsx(se,{bgGradient:"linear(to-b, blackAlpha.50, transparent)",py:{base:14,md:20},children:s.jsx(pn,{maxW:"container.lg",children:s.jsxs(Se,{spacing:5,textAlign:"center",align:"center",children:[s.jsxs(ge,{spacing:2,children:[s.jsx(se,{as:"span",px:3,py:1,borderRadius:"full",fontSize:"xs",fontWeight:"bold",bg:"primary.500",color:"white",children:"3 espaces, 1 seule plateforme"}),s.jsx(se,{as:"span",px:3,py:1,borderRadius:"full",fontSize:"xs",fontWeight:"bold",borderWidth:"1px",children:"Démo interactive"})]}),s.jsx(_t,{size:"2xl",children:"Admin, cabine, livreur : chacun son espace"}),s.jsx(Z,{fontSize:"lg",color:"gray.500",maxW:"2xl",children:"Chaque rôle a exactement les écrans dont il a besoin — rien de plus. Choisissez un espace ci-dessous et essayez les aperçus : ils sont interactifs, comme dans l'application réelle."})]})})}),s.jsx(se,{borderTopWidth:"1px",borderBottomWidth:"1px",bg:"chakra-subtle-bg",position:"sticky",top:0,zIndex:2,children:s.jsxs(pn,{maxW:"container.lg",py:3,children:[s.jsx(ge,{spacing:2,mb:2,overflowX:"auto",children:uk.map(r=>s.jsx(ve,{size:"sm",leftIcon:s.jsx(Oe,{icon:r.icon}),colorScheme:e===r.key?"primary":void 0,variant:e===r.key?"solid":"outline",onClick:()=>t(r.key),flexShrink:0,children:r.label},r.key))}),s.jsx(gT,{spacing:5,shouldWrapChildren:!0,children:n.features.map(r=>s.jsx(Bb,{children:s.jsx(Z,{as:"a",href:`#${r.id}`,fontSize:"sm",fontWeight:"semibold",color:"primary.500",whiteSpace:"nowrap",_hover:{textDecoration:"underline"},children:r.kicker})},r.id))})]})}),s.jsxs(pn,{maxW:"container.lg",children:[s.jsx(se,{py:6,children:s.jsx(Z,{color:"gray.500",fontSize:"sm",textAlign:"center",children:n.blurb})}),n.features.map(r=>s.jsxs(Se,{id:r.id,direction:{base:"column",md:r.reverse?"row-reverse":"row"},spacing:{base:10,md:16},align:"center",py:{base:14,md:20},borderBottomWidth:"1px",scrollMarginTop:"120px",children:[s.jsxs(se,{flex:"0.9",minW:0,children:[s.jsx(Z,{fontSize:"xs",fontWeight:"extrabold",letterSpacing:"wide",textTransform:"uppercase",color:"primary.500",mb:2,children:r.kicker}),s.jsx(_t,{size:"lg",mb:4,children:r.title}),s.jsx(Z,{color:"gray.500",mb:5,children:r.lead}),s.jsx(Nu,{spacing:2,children:r.points.map(i=>s.jsxs(_b,{fontSize:"sm",color:"gray.600",display:"flex",children:[s.jsx(O_,{as:()=>s.jsx(Oe,{icon:Ta}),color:"green.400",mt:1,mr:2}),s.jsx("span",{children:i})]},i))})]}),s.jsx(se,{flex:"1",minW:0,w:"full",children:r.mockup})]},r.id))]}),s.jsx(se,{bg:"gray.900",color:"white",py:20,textAlign:"center",children:s.jsxs(pn,{maxW:"container.md",children:[s.jsx(_t,{size:"xl",mb:4,children:"Prêt à essayer votre propre espace admin ?"}),s.jsx(Z,{color:"whiteAlpha.700",mb:8,children:"Une démo dédiée et isolée, prête en quelques minutes, pour tester la plateforme en conditions réelles."}),s.jsxs(gn,{columns:{base:1,sm:2},spacing:4,maxW:"sm",mx:"auto",children:[s.jsx(ve,{as:Yt,to:"/register",colorScheme:"primary",size:"lg",children:"Créer un compte"}),s.jsx(ve,{as:Yt,to:"/tarifs",variant:"outline",colorScheme:"whiteAlpha",size:"lg",children:"Voir les tarifs"})]})]})})]})}const Sce="http://localhost:8080",Cx="omnex.token";function Qv(){return localStorage.getItem(Cx)}function dk(e){localStorage.setItem(Cx,e)}function fk(){localStorage.removeItem(Cx)}class Je extends Error{constructor(n,r){super(r);Ux(this,"status");this.status=n}}async function ct(e,t,n){const r={"Content-Type":"application/json"},i=Qv();i&&(r.Authorization=`Bearer ${i}`);const o=await fetch(`${Sce}/api/v1${t}`,{method:e,headers:r,body:n?JSON.stringify(n):void 0});if(!o.ok){const a=await o.json().catch(()=>({error:`HTTP ${o.status}`}));throw new Je(o.status,a.error??`HTTP ${o.status}`)}return o.status===204?void 0:await o.json()}const Fe={login:(e,t,n)=>ct("POST","/auth/login",{username:e,password:t,role:n}),register:(e,t)=>ct("POST","/auth/register",{username:e,password:t}),me:()=>ct("GET","/auth/me"),logout:()=>ct("POST","/auth/logout"),listDemos:()=>ct("GET","/demos"),listMyDemos:()=>ct("GET","/demos/mine"),getDemo:e=>ct("GET",`/demos/${e}`),createDemo:e=>ct("POST","/demos",{username:e.username,...e.telegramBotUsername?{telegram_bot_username:e.telegramBotUsername}:{},...e.telegramBotToken?{telegram_bot_token:e.telegramBotToken}:{},...e.nowPaymentsApiKey?{nowpayments_api_key:e.nowPaymentsApiKey}:{},...e.nowPaymentsIpnSecret?{nowpayments_ipn_secret:e.nowPaymentsIpnSecret}:{},storage_driver:e.storageDriver,...e.storageDriver==="s3"?{s3_bucket:e.s3Bucket,s3_endpoint:e.s3Endpoint}:{},...e.tomtomApiKey?{tomtom_api_key:e.tomtomApiKey}:{},...e.tomtomApiKey1?{tomtom_api_key_1:e.tomtomApiKey1}:{},...e.tomtomApiKey2?{tomtom_api_key_2:e.tomtomApiKey2}:{},...e.tomtomApiKey3?{tomtom_api_key_3:e.tomtomApiKey3}:{},...e.lbBot1Username?{lb_bot1_username:e.lbBot1Username,lb_bot1_token:e.lbBot1Token}:{},...e.lbBot2Username?{lb_bot2_username:e.lbBot2Username,lb_bot2_token:e.lbBot2Token}:{},...e.lbStrategy?{lb_strategy:e.lbStrategy}:{},...e.lbJwtTtlSeconds?{lb_jwt_ttl_seconds:e.lbJwtTtlSeconds}:{},...e.lbHealthCheckInterval?{lb_health_check_interval:e.lbHealthCheckInterval}:{},admin_username:e.adminUsername,admin_password:e.adminPassword}),extendDemo:e=>ct("POST",`/demos/${e}/extend`),deleteDemo:e=>ct("DELETE",`/demos/${e}`),setDemoDomain:(e,t)=>ct("POST",`/demos/${e}/domain`,{domain:t}),listCodes:()=>ct("GET","/codes"),createCode:e=>ct("POST","/codes",{username:e}),addCode:e=>ct("POST","/subscription",{code_verif:e}),sendMessage:(e,t,n,r)=>ct("POST","/send/message",{username:e,telegram:t,sujet:n,message:r}),getMessage:()=>ct("GET","/messages"),getDemoDetails:e=>ct("POST","/demos/details",{namespace:e}),updateUsername:e=>ct("POST","/profile/username",{username:e}),updatePassword:e=>ct("POST","/profile/password",{password:e}),getTelegram:()=>ct("GET","/profile/telegram"),setTelegram:e=>ct("POST","/profile/telegram",{telegram:e}),getAlertSettings:()=>ct("GET","/profile/alerts"),setAlertSettings:e=>ct("POST","/profile/alerts",e)},F7=m.createContext(null);function wce({children:e}){const[t,n]=m.useState(Qv()),[r,i]=m.useState(null),[o,a]=m.useState(null),[l,c]=m.useState(!!Qv());m.useEffect(()=>{if(!t){c(!1);return}let v=!0;return Fe.me().then(y=>{v&&(i(y.role),a(y.type_abonnement))}).catch(()=>{v&&(fk(),n(null),i(null),a(null))}).finally(()=>{v&&c(!1)}),()=>{v=!1}},[]);const u=m.useCallback(async(v,y,x)=>{const b=await Fe.login(v,y,x);dk(b.token),n(b.token),i(b.role);const g=await Fe.me();a(g.type_abonnement)},[]),d=m.useCallback(async(v,y)=>{const x=await Fe.register(v,y);dk(x.token),n(x.token),i(x.role);const b=await Fe.me();a(b.type_abonnement)},[]),f=m.useCallback(async()=>{try{await Fe.logout()}finally{fk(),n(null),i(null),a(null)}},[]),p=m.useCallback(async()=>{const v=await Fe.me();a(v.type_abonnement)},[]),h=m.useMemo(()=>({isAuthenticated:!!t,isAdmin:r==="admin",isClient:r==="client",isPremium:o==="premium",role:r,typeAbo:o,initializing:l,login:u,register:d,logout:f,refreshAbo:p}),[t,r,o,l,u,d,f,p]);return s.jsx(F7.Provider,{value:h,children:e})}function $o(){const e=m.useContext(F7);if(!e)throw new Error("useAuth doit être utilisé dans <AuthProvider>");return e}function Ea(e){const{toggleColorMode:t}=Tu(),n=Gg("Passer en mode sombre","Passer en mode clair");return s.jsx(On,{"aria-label":n,title:n,variant:"ghost",size:e.size??"sm",onClick:t,icon:Gg(s.jsx(Cce,{}),s.jsx(kce,{}))})}function kce(){return s.jsxs(Tt,{viewBox:"0 0 24 24",boxSize:5,fill:"none",stroke:"currentColor",strokeWidth:2,children:[s.jsx("circle",{cx:"12",cy:"12",r:"4"}),s.jsx("path",{strokeLinecap:"round",d:"M12 2v2m0 16v2M2 12h2m16 0h2M4.9 4.9l1.4 1.4m11.4 11.4l1.4 1.4M19.1 4.9l-1.4 1.4M6.3 17.7l-1.4 1.4"})]})}function Cce(){return s.jsx(Tt,{viewBox:"0 0 24 24",boxSize:5,fill:"currentColor",children:s.jsx("path",{d:"M21 12.8A9 9 0 1111.2 3a7 7 0 009.8 9.8z"})})}const un=m.forwardRef((e,t)=>{const[n,r]=m.useState(!1);return s.jsxs(jb,{children:[s.jsx(yt,{ref:t,type:n?"text":"password",...e}),s.jsx(Sm,{children:s.jsx(On,{"aria-label":n?"Masquer le mot de passe":"Afficher le mot de passe",icon:s.jsx(Oe,{icon:n?D7:T7}),size:"sm",variant:"ghost",tabIndex:-1,onClick:()=>r(i=>!i)})})]})});un.displayName="PasswordInput";function jce(){const{login:e}=$o(),t=Er(),n=Zr(),[r,i]=m.useState(""),[o,a]=m.useState(""),[l,c]=m.useState(!1),u=async d=>{d.preventDefault(),c(!0);try{await e(r.trim(),o,"client"),t("/app",{replace:!0})}catch(f){const p=f instanceof Je?f.message:"Connexion impossible";n({status:"error",title:"Échec de connexion",description:p})}finally{c(!1)}};return s.jsxs(pn,{maxW:"sm",py:20,position:"relative",children:[s.jsx(se,{position:"absolute",top:4,right:4,children:s.jsx(Ea,{})}),s.jsxs(Se,{spacing:6,children:[s.jsxs(se,{textAlign:"center",children:[s.jsx(_t,{size:"lg",children:"Espace client"}),s.jsx(Z,{color:"gray.500",children:"Connectez-vous pour gérer votre abonnement."})]}),s.jsx(sb,{children:s.jsx(lb,{children:s.jsx("form",{onSubmit:u,children:s.jsxs(Se,{spacing:4,children:[s.jsxs(be,{isRequired:!0,children:[s.jsx(xe,{children:"Nom d'utilisateur"}),s.jsx(yt,{value:r,onChange:d=>i(d.target.value),autoComplete:"username"})]}),s.jsxs(be,{isRequired:!0,children:[s.jsx(xe,{children:"Mot de passe"}),s.jsx(un,{value:o,onChange:d=>a(d.target.value),autoComplete:"current-password"})]}),s.jsx(ve,{type:"submit",colorScheme:"primary",isLoading:l,children:"Se connecter"})]})})})}),s.jsxs(ge,{justify:"center",spacing:1,children:[s.jsx(Z,{fontSize:"sm",color:"gray.500",children:"Pas encore de compte ?"}),s.jsx(ve,{as:Yt,to:"/register",variant:"link",size:"sm",children:"Créer un compte"})]}),s.jsx(ve,{as:Yt,to:"/",variant:"outline",size:"sm",children:"← Retour au site"})]})]})}function Pce(){const{login:e}=$o(),t=Er(),n=Zr(),[r,i]=m.useState(""),[o,a]=m.useState(""),[l,c]=m.useState(!1),u=async d=>{d.preventDefault(),c(!0);try{await e(r.trim(),o,"admin"),t("/app",{replace:!0})}catch(f){const p=f instanceof Je?f.message:"Connexion impossible";n({status:"error",title:"Échec de connexion",description:p})}finally{c(!1)}};return s.jsxs(pn,{maxW:"sm",py:20,position:"relative",children:[s.jsx(se,{position:"absolute",top:4,right:4,children:s.jsx(Ea,{})}),s.jsxs(Se,{spacing:6,children:[s.jsxs(se,{textAlign:"center",children:[s.jsx(_t,{size:"lg",children:"Espace admin"}),s.jsx(Z,{color:"gray.500",children:"Connectez-vous pour administrer la plateforme."})]}),s.jsx(sb,{children:s.jsx(lb,{children:s.jsx("form",{onSubmit:u,children:s.jsxs(Se,{spacing:4,children:[s.jsxs(be,{isRequired:!0,children:[s.jsx(xe,{children:"Nom d'utilisateur"}),s.jsx(yt,{value:r,onChange:d=>i(d.target.value),autoComplete:"username"})]}),s.jsxs(be,{isRequired:!0,children:[s.jsx(xe,{children:"Mot de passe"}),s.jsx(un,{value:o,onChange:d=>a(d.target.value),autoComplete:"current-password"})]}),s.jsx(ve,{type:"submit",colorScheme:"primary",isLoading:l,children:"Se connecter"})]})})})}),s.jsx(ve,{as:Yt,to:"/",variant:"outline",size:"sm",children:"← Retour au site"})]})]})}function _ce(){const{register:e}=$o(),t=Er(),n=Zr(),[r,i]=m.useState(""),[o,a]=m.useState(""),[l,c]=m.useState(""),[u,d]=m.useState(!1),f=/^[a-zA-Z0-9]{3,64}$/.test(r),p=o.length>=10,h=o===l,v=f&&p&&h,y=async x=>{if(x.preventDefault(),!!v){d(!0);try{await e(r.trim(),o),t("/app",{replace:!0})}catch(b){const g=b instanceof Je?b.message:"Inscription impossible";n({status:"error",title:"Échec de l’inscription",description:g})}finally{d(!1)}}};return s.jsxs(pn,{maxW:"sm",py:16,position:"relative",children:[s.jsx(se,{position:"absolute",top:4,right:4,children:s.jsx(Ea,{})}),s.jsxs(Se,{spacing:6,children:[s.jsxs(se,{textAlign:"center",children:[s.jsx(_t,{size:"lg",children:"Créer un compte"}),s.jsx(Z,{color:"gray.500",children:"Rejoignez l’espace commercial Omnex."})]}),s.jsx(sb,{children:s.jsx(lb,{children:s.jsx("form",{onSubmit:y,children:s.jsxs(Se,{spacing:4,children:[s.jsxs(be,{isRequired:!0,isInvalid:r.length>0&&!f,children:[s.jsx(xe,{children:"Nom d'utilisateur"}),s.jsx(yt,{value:r,onChange:x=>i(x.target.value),autoComplete:"username"}),s.jsx(au,{children:"3 à 64 caractères alphanumériques."})]}),s.jsxs(be,{isRequired:!0,isInvalid:o.length>0&&!p,children:[s.jsx(xe,{children:"Mot de passe"}),s.jsx(un,{value:o,onChange:x=>a(x.target.value),autoComplete:"new-password"}),s.jsx(au,{children:"10 caractères minimum."})]}),s.jsxs(be,{isRequired:!0,isInvalid:l.length>0&&!h,children:[s.jsx(xe,{children:"Confirmer le mot de passe"}),s.jsx(un,{value:l,onChange:x=>c(x.target.value),autoComplete:"new-password"})]}),s.jsx(ve,{type:"submit",colorScheme:"primary",isLoading:u,isDisabled:!v,children:"Créer mon compte"})]})})})}),s.jsxs(ge,{justify:"center",spacing:1,children:[s.jsx(Z,{fontSize:"sm",color:"gray.500",children:"Déjà un compte ?"}),s.jsx(ve,{as:Yt,to:"/login",variant:"link",size:"sm",children:"Se connecter"})]})]})]})}const Um=bm({displayName:"EditIcon",path:s.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[s.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),s.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),Tce=bm({displayName:"CloseIcon",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"}),Ece=bm({viewBox:"0 0 14 14",path:s.jsx("g",{fill:"currentColor",children:s.jsx("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})});function Hm(e){switch(e){case"ready":return"green";case"provisioning":case"pending":return"blue";case"expiring":return"orange";case"failed":return"red";case"expired":default:return"gray"}}function Gm(e){return{pending:"En attente",provisioning:"Déploiement…",ready:"Active",expiring:"Suppression…",expired:"Expirée",failed:"Échec"}[e]??e}function pk(e){switch(e){case"Running":return"green";case"Pending":return"yellow";case"Succeeded":return"blue";case"Failed":return"red";case"Unknown":case"":default:return"gray"}}function Ace(e){return{Running:"En ligne",Pending:"En attente",Succeeded:"Terminé",Failed:"Down",Unknown:"Inconnu"}[e]??"Introuvable"}function mk(e,t=Date.now()){const n=new Date(e).getTime()-t;if(n<=0)return"expirée";const r=Math.floor(n/864e5),i=Math.floor(n%864e5/36e5);if(r>0)return`${r} j ${i} h`;const o=Math.floor(n%36e5/6e4);return`${i} h ${o} min`}function $ce({isOpen:e,title:t,children:n,confirmLabel:r="Confirmer",cancelLabel:i="Annuler",confirmColorScheme:o="red",isLoading:a=!1,onConfirm:l,onClose:c}){const u=m.useRef(null);return s.jsx(TY,{isOpen:e,leastDestructiveRef:u,onClose:c,isCentered:!0,motionPreset:"slideInBottom",children:s.jsx(yl,{backdropFilter:"blur(2px)",children:s.jsxs(EY,{borderRadius:"xl",children:[s.jsx(vl,{fontSize:"lg",fontWeight:"bold",children:t}),s.jsx(gl,{color:"gray.600",children:n}),s.jsxs(jm,{gap:3,children:[s.jsx(ve,{ref:u,onClick:c,variant:"ghost",isDisabled:a,children:i}),s.jsx(ve,{colorScheme:o,onClick:l,isLoading:a,children:r})]})]})})})}function B7({isOpen:e,onClose:t,onCreated:n}){const r=Zr(),[i,o]=m.useState(""),[a,l]=m.useState("admin"),[c,u]=m.useState(""),[d,f]=m.useState(!1),[p,h]=m.useState(""),[v,y]=m.useState(""),[x,b]=m.useState(!1),[g,S]=m.useState(""),[w,k]=m.useState(""),[P,j]=m.useState(!1),[_,M]=m.useState(""),[T,O]=m.useState(""),[q,ne]=m.useState(""),[z,X]=m.useState(""),[V,I]=m.useState(!1),[D,R]=m.useState(""),[F,G]=m.useState(""),[K,ee]=m.useState(""),[Pe,we]=m.useState(""),[Te,Ge]=m.useState("failover"),[Ye,te]=m.useState(""),[re,$e]=m.useState(""),[me,it]=m.useState("local"),[pe,lt]=m.useState(""),[Be,Et]=m.useState(""),[ye,xn]=m.useState(!1),Lt=()=>{o(""),l("admin"),u(""),f(!1),h(""),y(""),b(!1),S(""),k(""),j(!1),M(""),O(""),ne(""),X(""),I(!1),R(""),G(""),ee(""),we(""),Ge("failover"),te(""),$e(""),it("local"),lt(""),Et("")},dr=()=>{ye||(Lt(),t())},Jr=async()=>{if(!i.trim()){r({status:"warning",title:"Username requis"});return}if(!a.trim()||c.trim().length<8){r({status:"warning",title:"Identifiants admin requis (mot de passe : 8 caractères min.)"});return}if(me==="s3"&&(!pe.trim()||!Be.trim())){r({status:"warning",title:"Bucket et endpoint S3 requis"});return}if(V&&!D.trim()&&!K.trim()){r({status:"warning",title:"Au moins un bot (username) requis pour le load-balancer"});return}if(P&&!_.trim()){r({status:"warning",title:"La clé API TomTom principale est requise"});return}const oe={username:i.trim(),adminUsername:a.trim(),adminPassword:c.trim(),telegramBotUsername:d&&p.trim()||void 0,telegramBotToken:d&&v.trim()||void 0,nowPaymentsApiKey:x&&g.trim()||void 0,nowPaymentsIpnSecret:x&&w.trim()||void 0,storageDriver:me,...me==="s3"?{s3Bucket:pe.trim(),s3Endpoint:Be.trim()}:{},...P?{tomtomApiKey:_.trim(),tomtomApiKey1:T.trim()||void 0,tomtomApiKey2:q.trim()||void 0,tomtomApiKey3:z.trim()||void 0}:{},...V?{lbBot1Username:D.trim()||void 0,lbBot1Token:F.trim()||void 0,lbBot2Username:K.trim()||void 0,lbBot2Token:Pe.trim()||void 0,lbStrategy:Te,lbJwtTtlSeconds:Ye.trim()||void 0,lbHealthCheckInterval:re.trim()||void 0}:{}};xn(!0);try{await Fe.createDemo(oe),r({status:"success",title:"Démo lancée",description:"Provisioning en cours."}),Lt(),n(),t()}catch(ei){const zo=ei instanceof Je?ei.message:"Erreur";r({status:"error",title:"Lancement impossible",description:zo})}finally{xn(!1)}};return s.jsxs(Fu,{isOpen:e,onClose:dr,size:"lg",closeOnOverlayClick:!ye,children:[s.jsx(yl,{}),s.jsxs(Cm,{children:[s.jsx(vl,{children:"Nouvelle démo"}),s.jsx(Bu,{isDisabled:ye}),s.jsx(gl,{children:s.jsxs(Se,{spacing:5,children:[s.jsxs(be,{isRequired:!0,isDisabled:ye,children:[s.jsx(xe,{children:"Username"}),s.jsx(yt,{placeholder:"ex: acme-corp",value:i,onChange:oe=>o(oe.target.value)})]}),s.jsxs(Se,{spacing:3,p:3,borderWidth:"1px",borderRadius:"md",children:[s.jsx(Z,{fontSize:"sm",fontWeight:"semibold",children:"Compte admin de la démo"}),s.jsx(Z,{fontSize:"xs",color:"gray.500",children:"Créé une fois postgres/redis/backend/frontend démarrés — c'est ce que le client utilisera pour se connecter au backoffice de sa démo."}),s.jsxs(ge,{spacing:3,align:"start",children:[s.jsxs(be,{isRequired:!0,isDisabled:ye,children:[s.jsx(xe,{fontSize:"sm",children:"Username"}),s.jsx(yt,{value:a,onChange:oe=>l(oe.target.value)})]}),s.jsxs(be,{isRequired:!0,isDisabled:ye,children:[s.jsx(xe,{fontSize:"sm",children:"Mot de passe"}),s.jsx(un,{placeholder:"8 caractères min.",value:c,onChange:oe=>u(oe.target.value),autoComplete:"off"})]})]})]}),s.jsx(be,{isDisabled:ye,children:s.jsxs(ge,{justify:"space-between",children:[s.jsx(xe,{mb:0,children:"Bot Telegram"}),s.jsx(oc,{isChecked:d,onChange:oe=>f(oe.target.checked)})]})}),d&&s.jsxs(Se,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsxs(be,{isDisabled:ye,children:[s.jsx(xe,{fontSize:"sm",children:"Nom du bot (username)"}),s.jsx(yt,{placeholder:"mon_bot",value:p,onChange:oe=>h(oe.target.value)})]}),s.jsxs(be,{isDisabled:ye,children:[s.jsx(xe,{fontSize:"sm",children:"Token bot Telegram"}),s.jsx(un,{placeholder:"123456:ABC-DEF...",value:v,onChange:oe=>y(oe.target.value),autoComplete:"off"})]})]}),s.jsx(be,{isDisabled:ye,children:s.jsxs(ge,{justify:"space-between",children:[s.jsx(xe,{mb:0,children:"NowPayments (paiement crypto)"}),s.jsx(oc,{isChecked:x,onChange:oe=>b(oe.target.checked)})]})}),x&&s.jsxs(Se,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsxs(be,{isDisabled:ye,children:[s.jsx(xe,{fontSize:"sm",children:"Clé API NowPayments"}),s.jsx(un,{placeholder:"clé API du compte marchand",value:g,onChange:oe=>S(oe.target.value),autoComplete:"off"})]}),s.jsxs(be,{isDisabled:ye,children:[s.jsx(xe,{fontSize:"sm",children:"Secret IPN NowPayments"}),s.jsx(un,{placeholder:"secret configuré côté NowPayments",value:w,onChange:oe=>k(oe.target.value),autoComplete:"off"}),s.jsx(Z,{fontSize:"xs",color:"gray.500",mt:1,children:"Laissez vide pour garder celui pré-généré automatiquement."})]})]}),s.jsx(be,{isDisabled:ye,children:s.jsxs(ge,{justify:"space-between",children:[s.jsx(xe,{mb:0,children:"TomTom (GPS livreur)"}),s.jsx(oc,{isChecked:P,onChange:oe=>j(oe.target.checked)})]})}),P&&s.jsxs(Se,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsx(Z,{fontSize:"xs",color:"gray.500",children:"Géocodage, itinéraire et ETA des livreurs. Jusqu'à 4 clés — le backend bascule automatiquement sur la suivante si une clé atteint son quota."}),s.jsxs(be,{isRequired:!0,isDisabled:ye,children:[s.jsx(xe,{fontSize:"sm",children:"Clé API TomTom (principale)"}),s.jsx(un,{placeholder:"clé API TomTom",value:_,onChange:oe=>M(oe.target.value),autoComplete:"off"})]}),s.jsxs(be,{isDisabled:ye,children:[s.jsx(xe,{fontSize:"sm",children:"Clé API TomTom #2 (optionnelle)"}),s.jsx(un,{placeholder:"clé de secours",value:T,onChange:oe=>O(oe.target.value),autoComplete:"off"})]}),s.jsxs(be,{isDisabled:ye,children:[s.jsx(xe,{fontSize:"sm",children:"Clé API TomTom #3 (optionnelle)"}),s.jsx(un,{placeholder:"clé de secours",value:q,onChange:oe=>ne(oe.target.value),autoComplete:"off"})]}),s.jsxs(be,{isDisabled:ye,children:[s.jsx(xe,{fontSize:"sm",children:"Clé API TomTom #4 (optionnelle)"}),s.jsx(un,{placeholder:"clé de secours",value:z,onChange:oe=>X(oe.target.value),autoComplete:"off"})]})]}),s.jsx(be,{isDisabled:ye,children:s.jsxs(ge,{justify:"space-between",children:[s.jsx(xe,{mb:0,children:"Load-balancer Telegram"}),s.jsx(oc,{isChecked:V,onChange:oe=>I(oe.target.checked)})]})}),V&&s.jsxs(Se,{spacing:4,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsx(Z,{fontSize:"xs",color:"gray.500",children:"Répartit le trafic entre plusieurs bots. Renseignez au moins le bot 1 ; le bot 2 est optionnel."}),s.jsxs(ge,{spacing:3,align:"start",children:[s.jsxs(be,{isDisabled:ye,children:[s.jsx(xe,{fontSize:"sm",children:"Bot 1 — username"}),s.jsx(yt,{placeholder:"mon_bot_1",value:D,onChange:oe=>R(oe.target.value)})]}),s.jsxs(be,{isDisabled:ye,children:[s.jsx(xe,{fontSize:"sm",children:"Bot 1 — token"}),s.jsx(un,{placeholder:"123456:ABC-DEF...",value:F,onChange:oe=>G(oe.target.value),autoComplete:"off"})]})]}),s.jsxs(ge,{spacing:3,align:"start",children:[s.jsxs(be,{isDisabled:ye,children:[s.jsx(xe,{fontSize:"sm",children:"Bot 2 — username (optionnel)"}),s.jsx(yt,{placeholder:"mon_bot_2",value:K,onChange:oe=>ee(oe.target.value)})]}),s.jsxs(be,{isDisabled:ye,children:[s.jsx(xe,{fontSize:"sm",children:"Bot 2 — token"}),s.jsx(un,{placeholder:"123456:ABC-DEF...",value:Pe,onChange:oe=>we(oe.target.value),autoComplete:"off"})]})]}),s.jsxs(ge,{spacing:3,align:"start",children:[s.jsxs(be,{isDisabled:ye,children:[s.jsx(xe,{fontSize:"sm",children:"Stratégie de répartition"}),s.jsxs(dT,{value:Te,onChange:oe=>Ge(oe.target.value),children:[s.jsx("option",{value:"failover",children:"Failover"}),s.jsx("option",{value:"roundrobin",children:"Round-robin"}),s.jsx("option",{value:"leastconn",children:"Moins de connexions"})]})]}),s.jsxs(be,{isDisabled:ye,children:[s.jsx(xe,{fontSize:"sm",children:"TTL JWT (secondes)"}),s.jsx(yt,{placeholder:"300",value:Ye,onChange:oe=>te(oe.target.value),type:"number"})]}),s.jsxs(be,{isDisabled:ye,children:[s.jsx(xe,{fontSize:"sm",children:"Intervalle health-check (s)"}),s.jsx(yt,{placeholder:"30",value:re,onChange:oe=>$e(oe.target.value),type:"number"})]})]})]}),s.jsxs(be,{isDisabled:ye,children:[s.jsx(xe,{children:"Stockage des fichiers"}),s.jsx(cT,{value:me,onChange:oe=>it(oe),children:s.jsxs(Se,{direction:"row",spacing:6,children:[s.jsx(Cv,{value:"local",children:"Local (disque du cluster)"}),s.jsx(Cv,{value:"s3",children:"S3"})]})})]}),me==="s3"&&s.jsxs(Se,{spacing:4,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsxs(be,{isRequired:!0,isDisabled:ye,children:[s.jsx(xe,{fontSize:"sm",children:"Nom du bucket"}),s.jsx(yt,{placeholder:"mon-bucket-demo",value:pe,onChange:oe=>lt(oe.target.value)})]}),s.jsxs(be,{isRequired:!0,isDisabled:ye,children:[s.jsx(xe,{fontSize:"sm",children:"Endpoint S3"}),s.jsx(yt,{placeholder:"https://s3.exemple.com",value:Be,onChange:oe=>Et(oe.target.value)})]})]})]})}),s.jsxs(jm,{children:[s.jsx(ve,{variant:"ghost",mr:3,onClick:dr,isDisabled:ye,children:"Annuler"}),s.jsx(ve,{colorScheme:"primary",onClick:Jr,isLoading:ye,children:"Lancer la démo"})]})]})]})}function V7({demo:e,onClose:t,onSaved:n}){const r=Zr(),[i,o]=m.useState(""),[a,l]=m.useState(!1);m.useEffect(()=>{o((e==null?void 0:e.custom_domain)??"")},[e]);const c=()=>{a||t()},u=async()=>{if(e){l(!0);try{await Fe.setDemoDomain(e.id,i.trim()),r({status:"success",title:"Domaine mis à jour"}),n(),t()}catch(d){const f=d instanceof Je?d.message:"Erreur";r({status:"error",title:"Mise à jour impossible",description:f})}finally{l(!1)}}};return s.jsxs(Fu,{isOpen:!!e,onClose:c,closeOnOverlayClick:!a,children:[s.jsx(yl,{}),s.jsxs(Cm,{children:[s.jsx(vl,{children:"Domaine de la plateforme"}),s.jsx(Bu,{isDisabled:a}),s.jsx(gl,{children:s.jsxs(be,{children:[s.jsx(xe,{fontSize:"sm",children:"Domaine personnalisé"}),s.jsx(yt,{placeholder:"boutique.mon-domaine.com",value:i,onChange:d=>o(d.target.value),isDisabled:a,fontFamily:"mono"}),s.jsxs(au,{children:["Laissez vide pour revenir au domaine par défaut (",e==null?void 0:e.namespace,".<domaine omnex>). Le DNS du domaine choisi doit pointer vers le cluster, et un certificat TLS valide doit le couvrir — le certificat wildcard partagé ne couvre que le domaine par défaut."]})]})}),s.jsxs(jm,{children:[s.jsx(ve,{variant:"ghost",mr:3,onClick:c,isDisabled:a,children:"Annuler"}),s.jsx(ve,{colorScheme:"primary",onClick:u,isLoading:a,children:"Enregistrer"})]})]})]})}const L0=[{key:"api",label:"Backend"},{key:"web",label:"Frontend"},{key:"db",label:"PostgreSQL"},{key:"dbm",label:"Redis"}];function jx({state:e}){const t=L0.every(r=>e[r.key].phase==="Running"),n=L0.filter(r=>e[r.key].phase!=="Running").length;return s.jsxs(Se,{spacing:3,children:[s.jsxs(ge,{spacing:2,children:[s.jsx(se,{w:"8px",h:"8px",borderRadius:"full",bg:t?"green.400":"red.400",flexShrink:0}),s.jsx(Z,{fontSize:"sm",fontWeight:"medium",children:t?"Tous les services sont opérationnels":`${n} service${n>1?"s":""} indisponible${n>1?"s":""}`})]}),s.jsx(gn,{columns:{base:1,lg:4},spacing:3,children:L0.map(r=>s.jsx(zce,{title:r.label,cs:e[r.key]},r.key))})]})}function zce({title:e,cs:t}){const n=t.cpu_limit_milli>0?Math.min(100,Math.round(t.cpu_milli/t.cpu_limit_milli*100)):0,r=t.memory_limit_mi>0?Math.min(100,Math.round(t.memory_mi/t.memory_limit_mi*100)):0;return s.jsxs(se,{p:3,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",minW:0,children:[s.jsxs(ge,{justify:"space-between",mb:3,children:[s.jsx(Z,{fontSize:"sm",fontWeight:"semibold",noOfLines:1,children:e}),s.jsxs(ge,{spacing:1.5,children:[s.jsx(se,{w:"7px",h:"7px",borderRadius:"full",bg:`${pk(t.phase)}.400`,flexShrink:0}),s.jsx(Wn,{colorScheme:pk(t.phase),fontSize:"10px",children:Ace(t.phase)})]})]}),s.jsxs(Se,{spacing:2,children:[s.jsxs(se,{children:[s.jsxs(kt,{justify:"space-between",fontSize:"xs",color:"gray.500",mb:1,children:[s.jsx(Z,{children:"CPU"}),s.jsxs(Z,{fontFamily:"mono",children:[t.cpu_milli,"m / ",t.cpu_limit_milli,"m"]})]}),s.jsx(kp,{value:n,size:"xs",borderRadius:"full",colorScheme:n>85?"red":n>60?"orange":"primary"})]}),s.jsxs(se,{children:[s.jsxs(kt,{justify:"space-between",fontSize:"xs",color:"gray.500",mb:1,children:[s.jsx(Z,{children:"Mémoire"}),s.jsxs(Z,{fontFamily:"mono",children:[t.memory_mi,"Mi / ",t.memory_limit_mi,"Mi"]})]}),s.jsx(kp,{value:r,size:"xs",borderRadius:"full",colorScheme:r>85?"red":r>60?"orange":"primary"})]})]})]})}function Px(e){return s.jsx(Tt,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,...e,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 18l6-6-6-6"})})}function W7({demo:e,isOpen:t,onToggle:n,detailsLoading:r,details:i,onEditDomain:o,expiresLabel:a,actions:l}){return s.jsxs(se,{borderWidth:"1px",borderRadius:"lg",overflow:"hidden",bg:"bg-surface",children:[s.jsxs(se,{p:4,cursor:"pointer",onClick:n,_active:{bg:"chakra-subtle-bg"},children:[s.jsxs(ge,{justify:"space-between",align:"start",children:[s.jsxs(ge,{spacing:2,minW:0,flex:"1",children:[s.jsx(Tt,{as:Px,boxSize:3,color:"gray.400",flexShrink:0,transform:t?"rotate(90deg)":void 0,transition:"transform 0.15s"}),s.jsx(Z,{fontFamily:"mono",fontSize:"sm",noOfLines:1,wordBreak:"break-all",minW:0,flex:"1",children:e.namespace})]}),s.jsx(Wn,{colorScheme:Hm(e.status),flexShrink:0,children:Gm(e.status)})]}),s.jsxs(Se,{spacing:1,mt:3,fontSize:"sm",children:[s.jsxs(ge,{justify:"space-between",children:[s.jsx(Z,{color:"gray.500",children:"Client"}),s.jsx(Z,{children:e.username||"—"})]}),s.jsxs(ge,{justify:"space-between",align:"start",children:[s.jsx(Z,{color:"gray.500",flexShrink:0,children:"URL"}),s.jsxs(ge,{spacing:1,minW:0,flex:"1",justify:"flex-end",children:[e.status==="ready"?s.jsx(_o,{href:e.url,color:"primary.500",isExternal:!0,noOfLines:1,wordBreak:"break-all",minW:0,flex:"1",onClick:c=>c.stopPropagation(),children:e.url}):s.jsx(Z,{color:"gray.400",children:"—"}),s.jsx(On,{"aria-label":"Modifier le domaine",icon:s.jsx(Um,{}),size:"xs",variant:"ghost",flexShrink:0,onClick:c=>{c.stopPropagation(),o()}})]})]}),a&&s.jsxs(ge,{justify:"space-between",children:[s.jsx(Z,{color:"gray.500",children:"Expire dans"}),s.jsx(Z,{children:a})]})]}),l&&s.jsx(ge,{mt:3,spacing:2,flexWrap:"wrap",rowGap:2,onClick:c=>c.stopPropagation(),children:l})]}),s.jsx(Mu,{in:t,unmountOnExit:!0,animateOpacity:!0,children:s.jsx(se,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:r&&!i?s.jsx(ge,{justify:"center",py:2,children:s.jsx(Vn,{size:"sm"})}):i?s.jsx(jx,{state:i.state}):s.jsx(Z,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})]})}const Rce=5e3,Mce=5e3;function Ice(){const e=Zr(),t=Er(),[n,r]=m.useState([]),[i,o]=m.useState(!0),[a,l]=m.useState(null),[c,u]=m.useState(null),[d,f]=m.useState(!1),[p,h]=m.useState(null),[v,y]=m.useState(null),[x,b]=m.useState(null),[g,S]=m.useState(!1),w=m.useCallback(async()=>{try{const T=await Fe.listDemos();r((T.items??[]).filter(O=>O.type_abonnement!=="premium"))}catch(T){T instanceof Je&&T.status===401?t("/admin/login"):e({status:"error",title:"Chargement des démos impossible"})}finally{o(!1)}},[t,e]);m.useEffect(()=>{w();const T=setInterval(()=>void w(),Rce);return()=>clearInterval(T)},[w]);const k=async T=>{l(T.id);try{await Fe.extendDemo(T.id),e({status:"success",title:"Démo prolongée de 30 jours"}),await w()}catch(O){const q=O instanceof Je?O.message:"Erreur";e({status:"error",title:"Prolongation impossible",description:q})}finally{l(null)}},P=async()=>{if(!c)return;const T=c;l(T.id);try{await Fe.deleteDemo(T.id),e({status:"success",title:"Démo détruite"}),u(null),await w()}catch(O){const q=O instanceof Je?O.message:"Erreur";e({status:"error",title:"Destruction impossible",description:q})}finally{l(null)}},j=async T=>{if(v===T.id){y(null),b(null);return}y(T.id),b(null),S(!0);try{const O=await Fe.getDemoDetails(T.namespace);b(O)}catch(O){const q=O instanceof Je?O.message:"Erreur";e({status:"error",title:"État des pods indisponible",description:q}),y(null)}finally{S(!1)}};m.useEffect(()=>{const T=n.find(ne=>ne.id===v);if(!T)return;const O=T.namespace,q=setInterval(()=>{Fe.getDemoDetails(O).then(b).catch(()=>{})},Mce);return()=>clearInterval(q)},[v]);const _=T=>T!=="expired"&&T!=="failed",M=T=>s.jsxs(s.Fragment,{children:[s.jsx(ve,{size:"sm",variant:"outline",isDisabled:!_(T.status)||a===T.id,onClick:O=>{O.stopPropagation(),k(T)},children:"+30 j"}),s.jsx(ve,{size:"sm",colorScheme:"red",variant:"outline",isDisabled:!_(T.status),onClick:O=>{O.stopPropagation(),u(T)},children:"Détruire"})]});return s.jsxs(s.Fragment,{children:[s.jsxs(kt,{mb:6,align:"center",gap:4,wrap:"wrap",children:[s.jsx(_t,{size:"md",mr:4,children:"Démos"}),s.jsx(ja,{}),s.jsx(ve,{colorScheme:"primary",onClick:()=>f(!0),children:"Nouvelle démo"})]}),s.jsx(B7,{isOpen:d,onClose:()=>f(!1),onCreated:()=>void w()}),i?s.jsx(Vn,{}):n.length===0?s.jsx(Z,{color:"gray.500",children:"Aucune démo active. Lancez-en une avec le bouton ci-dessus."}):s.jsxs(s.Fragment,{children:[s.jsx(Nb,{borderWidth:"1px",borderRadius:"lg",display:{base:"none",md:"block"},children:s.jsxs(Pm,{children:[s.jsx(Ob,{children:s.jsxs(fo,{children:[s.jsx(fn,{children:"Namespace"}),s.jsx(fn,{children:"Client"}),s.jsx(fn,{children:"Statut"}),s.jsx(fn,{children:"URL"}),s.jsx(fn,{children:"Expire dans"}),s.jsx(fn,{})]})}),s.jsx(Db,{children:n.map(T=>{const O=v===T.id;return s.jsxs(m.Fragment,{children:[s.jsxs(fo,{cursor:"pointer",bg:O?"chakra-subtle-bg":void 0,_hover:{bg:"chakra-subtle-bg"},onClick:()=>j(T),children:[s.jsx(qt,{fontFamily:"mono",children:s.jsxs(ge,{spacing:2,children:[s.jsx(Tt,{as:Px,boxSize:3,color:"gray.400",transform:O?"rotate(90deg)":void 0,transition:"transform 0.15s"}),s.jsx(Z,{children:T.namespace})]})}),s.jsx(qt,{children:T.username?s.jsx(Z,{children:T.username}):s.jsx(Z,{color:"gray.400",children:"—"})}),s.jsx(qt,{children:s.jsx(Wn,{colorScheme:Hm(T.status),children:Gm(T.status)})}),s.jsx(qt,{children:s.jsxs(ge,{spacing:1,children:[T.status==="ready"?s.jsx(_o,{href:T.url,color:"primary.500",isExternal:!0,onClick:q=>q.stopPropagation(),children:T.url}):s.jsx(Z,{color:"gray.400",children:"—"}),s.jsx(On,{"aria-label":"Modifier le domaine",icon:s.jsx(Um,{}),size:"xs",variant:"ghost",onClick:q=>{q.stopPropagation(),h(T)}})]})}),s.jsx(qt,{children:_(T.status)?mk(T.expires_at):"—"}),s.jsx(qt,{textAlign:"right",children:s.jsx(ge,{justify:"flex-end",children:M(T)})})]}),s.jsx(fo,{children:s.jsx(qt,{p:0,border:O?void 0:"none",colSpan:6,children:s.jsx(Mu,{in:O,unmountOnExit:!0,animateOpacity:!0,children:s.jsx(se,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:g&&!x?s.jsx(kt,{justify:"center",py:4,children:s.jsx(Vn,{size:"sm"})}):x?s.jsx(jx,{state:x.state}):s.jsx(Z,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},T.id)})})]})}),s.jsx(Se,{spacing:3,display:{base:"flex",md:"none"},children:n.map(T=>s.jsx(W7,{demo:T,isOpen:v===T.id,onToggle:()=>j(T),detailsLoading:g,details:v===T.id?x:null,onEditDomain:()=>h(T),expiresLabel:_(T.status)?mk(T.expires_at):"—",actions:M(T)},T.id))})]}),s.jsxs($ce,{isOpen:!!c,title:"Détruire la démo ?",confirmLabel:"Détruire",isLoading:!!c&&a===c.id,onConfirm:P,onClose:()=>u(null),children:["La démo"," ",s.jsx(Z,{as:"span",fontFamily:"mono",fontWeight:"semibold",children:c==null?void 0:c.namespace})," ","et toutes ses données seront supprimées définitivement. Les ressources du pool seront libérées. Cette action est irréversible."]}),s.jsx(V7,{demo:p,onClose:()=>h(null),onSaved:()=>void w()})]})}const Lce=5e3,Nce=5e3;function Dce(){const e=Zr(),t=Er(),[n,r]=m.useState([]),[i,o]=m.useState(!0),[a,l]=m.useState(!1),[c,u]=m.useState(null),[d,f]=m.useState(null),[p,h]=m.useState(null),[v,y]=m.useState(!1),x=m.useCallback(async()=>{try{const g=await Fe.listDemos();r((g.items??[]).filter(S=>S.type_abonnement==="premium"))}catch(g){g instanceof Je&&g.status===401?t("/admin/login"):e({status:"error",title:"Chargement des démos impossible"})}finally{o(!1)}},[t,e]);m.useEffect(()=>{x();const g=setInterval(()=>void x(),Lce);return()=>clearInterval(g)},[x]);const b=async g=>{if(d===g.id){f(null),h(null);return}f(g.id),h(null),y(!0);try{const S=await Fe.getDemoDetails(g.namespace);h(S)}catch(S){const w=S instanceof Je?S.message:"Erreur";e({status:"error",title:"État des pods indisponible",description:w}),f(null)}finally{y(!1)}};return m.useEffect(()=>{const g=n.find(k=>k.id===d);if(!g)return;const S=g.namespace,w=setInterval(()=>{Fe.getDemoDetails(S).then(h).catch(()=>{})},Nce);return()=>clearInterval(w)},[d]),s.jsxs(s.Fragment,{children:[s.jsxs(kt,{mb:2,align:"center",gap:4,wrap:"wrap",children:[s.jsx(_t,{size:"md",mr:4,children:"Démos Premium"}),s.jsx(ja,{}),s.jsx(ve,{colorScheme:"primary",onClick:()=>l(!0),children:"Déployer une plateforme"})]}),s.jsx(Z,{color:"gray.500",mb:6,fontSize:"sm",children:"Démos rattachées à un client passé en abonnement payant — stockage persistant, n'expirent plus."}),s.jsx(B7,{isOpen:a,onClose:()=>l(!1),onCreated:()=>void x()}),i?s.jsx(Vn,{}):n.length===0?s.jsx(Z,{color:"gray.500",children:"Aucune démo premium pour le moment."}):s.jsxs(s.Fragment,{children:[s.jsx(Nb,{borderWidth:"1px",borderRadius:"lg",display:{base:"none",md:"block"},children:s.jsxs(Pm,{children:[s.jsx(Ob,{children:s.jsxs(fo,{children:[s.jsx(fn,{children:"Namespace"}),s.jsx(fn,{children:"Client"}),s.jsx(fn,{children:"Statut"}),s.jsx(fn,{children:"URL"})]})}),s.jsx(Db,{children:n.map(g=>{const S=d===g.id;return s.jsxs(m.Fragment,{children:[s.jsxs(fo,{cursor:"pointer",bg:S?"chakra-subtle-bg":void 0,_hover:{bg:"chakra-subtle-bg"},onClick:()=>b(g),children:[s.jsx(qt,{fontFamily:"mono",children:s.jsxs(ge,{spacing:2,children:[s.jsx(Tt,{as:Px,boxSize:3,color:"gray.400",transform:S?"rotate(90deg)":void 0,transition:"transform 0.15s"}),s.jsx(Z,{children:g.namespace})]})}),s.jsx(qt,{children:g.username||s.jsx(Z,{color:"gray.400",children:"—"})}),s.jsx(qt,{children:s.jsx(Wn,{colorScheme:Hm(g.status),children:Gm(g.status)})}),s.jsx(qt,{children:s.jsxs(ge,{spacing:1,children:[g.status==="ready"?s.jsx(_o,{href:g.url,color:"primary.500",isExternal:!0,onClick:w=>w.stopPropagation(),children:g.url}):s.jsx(Z,{color:"gray.400",children:"—"}),s.jsx(On,{"aria-label":"Modifier le domaine",icon:s.jsx(Um,{}),size:"xs",variant:"ghost",onClick:w=>{w.stopPropagation(),u(g)}})]})})]}),s.jsx(fo,{children:s.jsx(qt,{p:0,border:S?void 0:"none",colSpan:4,children:s.jsx(Mu,{in:S,unmountOnExit:!0,animateOpacity:!0,children:s.jsx(se,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:v&&!p?s.jsx(Vn,{size:"sm"}):p?s.jsx(jx,{state:p.state}):s.jsx(Z,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},g.id)})})]})}),s.jsx(Se,{spacing:3,display:{base:"flex",md:"none"},children:n.map(g=>s.jsx(W7,{demo:g,isOpen:d===g.id,onToggle:()=>b(g),detailsLoading:v,details:d===g.id?p:null,onEditDomain:()=>u(g)},g.id))})]}),s.jsx(V7,{demo:c,onClose:()=>u(null),onSaved:()=>void x()})]})}const Oce=1e4;function Fce(){const e=Zr(),t=Er(),[n,r]=m.useState([]),[i,o]=m.useState(!0),[a,l]=m.useState(null),[c,u]=m.useState(""),[d,f]=m.useState(null),p=m.useCallback(async()=>{try{const y=await Fe.listCodes();r(y.items??[])}catch(y){y instanceof Je&&y.status===401?t("/admin/login"):e({status:"error",title:"Chargement des codes impossible"})}finally{o(!1)}},[t,e]);m.useEffect(()=>{p();const y=setInterval(()=>void p(),Oce);return()=>clearInterval(y)},[p]);const h=async y=>{if(y.preventDefault(),!c.trim()){e({status:"error",title:"Veuillez entrer un nom d'utilisateur"});return}l("generate");try{const x=await Fe.createCode(c.trim());f(x.code),u(""),e({status:"success",title:"Code généré avec succès !"}),await p()}catch(x){const b=x instanceof Je?x.message:"Erreur";e({status:"error",title:"Génération impossible",description:b})}finally{l(null)}},v=async y=>{try{await navigator.clipboard.writeText(y),e({status:"success",title:"Code copié dans le presse-papiers !"})}catch{const b=document.createElement("textarea");b.value=y,b.style.position="fixed",b.style.opacity="0",document.body.appendChild(b),b.select();const g=document.execCommand("copy");document.body.removeChild(b),e(g?{status:"success",title:"Code copié dans le presse-papiers !"}:{status:"error",title:"Impossible de copier. Essayez manuellement."})}};return s.jsxs(s.Fragment,{children:[s.jsxs(kt,{mb:6,align:"center",children:[s.jsx(_t,{size:"md",children:"Gestion des codes de souscription"}),s.jsx(ja,{})]}),s.jsx(se,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:s.jsx("form",{onSubmit:h,children:s.jsxs(Cp,{spacing:4,align:"stretch",children:[s.jsxs(Se,{direction:{base:"column",sm:"row"},align:{base:"stretch",sm:"center"},gap:4,children:[s.jsxs(be,{isRequired:!0,children:[s.jsx(xe,{children:"Nom d\\'utilisateur"}),s.jsx(yt,{type:"text",value:c,onChange:y=>u(y.target.value),placeholder:"Entrez le nom d'utilisateur",isDisabled:a==="generate",maxLength:64})]}),s.jsx(ve,{colorScheme:"primary",type:"submit",isLoading:a==="generate",mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},children:"Générer un code"})]}),d&&s.jsxs(se,{p:4,bg:"gray.900",borderRadius:"md",borderWidth:"1px",borderColor:"whiteAlpha.200",children:[s.jsxs(Z,{fontSize:"sm",color:"gray.400",mb:2,children:["Code généré pour ",s.jsx("strong",{children:c})," :"]}),s.jsxs(ge,{children:[s.jsx(Z,{fontFamily:"mono",fontSize:"xl",fontWeight:"bold",letterSpacing:"widest",children:d}),s.jsx(ve,{size:"sm",variant:"outline",onClick:()=>v(d),children:"Copier"})]})]})]})})}),i?s.jsx(Vn,{}):n.length===0?s.jsx(Z,{color:"gray.500",children:"Aucun code de souscription généré."}):s.jsx(Nb,{borderWidth:"1px",borderRadius:"lg",children:s.jsxs(Pm,{children:[s.jsx(Ob,{children:s.jsxs(fo,{children:[s.jsx(fn,{children:"ID"}),s.jsx(fn,{children:"Utilisateur"}),s.jsx(fn,{children:"Code"}),s.jsx(fn,{children:"Date de création"}),s.jsx(fn,{})]})}),s.jsx(Db,{children:n.map(y=>s.jsxs(fo,{children:[s.jsxs(qt,{fontFamily:"mono",fontSize:"sm",children:[y.id.slice(0,8),"..."]}),s.jsx(qt,{children:s.jsx(Wn,{colorScheme:"gray",px:2,py:1,children:y.username})}),s.jsx(qt,{fontFamily:"mono",letterSpacing:"wide",children:y.code_verif}),s.jsx(qt,{fontSize:"sm",color:"gray.400",children:new Date(y.created_at).toLocaleString("fr-FR")}),s.jsx(qt,{textAlign:"right",children:s.jsx(ve,{size:"sm",variant:"outline",onClick:()=>v(y.code_verif),children:"Copier"})})]},y.id))})]})})]})}function Bce(){const e=Zr(),t=Er(),[n,r]=m.useState(null),[i,o]=m.useState(null),[a,l]=m.useState(!0),[c,u]=m.useState(!1),[d,f]=m.useState(""),[p,h]=m.useState(!1),[v,y]=m.useState([]),[x,b]=m.useState(!0),g=m.useCallback(async()=>{try{const _=await Fe.me();r(_.type_abonnement??null),o(_.expired_at?new Date(_.expired_at):null)}catch(_){_ instanceof Je&&_.status===401?t("/login"):e({status:"error",title:"Chargement de l'abonnement impossible"})}finally{l(!1)}},[t,e]),S=m.useCallback(async()=>{try{const _=await Fe.listMyDemos();y(_.items??[])}catch{}finally{b(!1)}},[]);m.useEffect(()=>{g(),S()},[g,S]);const w=async _=>{if(_.preventDefault(),!d.trim()){e({status:"error",title:"Veuillez entrer un code"});return}u(!0);try{await Fe.addCode(d.trim()),e({status:"success",title:"Abonnement premium activé !"}),f(""),h(!1),await g()}catch(M){const T=M instanceof Je?M.message:"Erreur";e({status:"error",title:"Code invalide",description:T})}finally{u(!1)}},k=n==="premium",P=!k||p,j=i?Math.ceil((i.getTime()-Date.now())/(1e3*60*60*24)):null;return s.jsxs(s.Fragment,{children:[s.jsxs(kt,{mb:6,align:"center",children:[s.jsx(_t,{size:"md",children:k?"Ma plateforme":"Ma démo"}),s.jsx(ja,{})]}),s.jsx(se,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:x?s.jsx(Vn,{size:"sm"}):v.length===0?s.jsx(Z,{color:"gray.500",children:k?"Aucune plateforme pour le moment.":"Aucune démo pour le moment."}):s.jsx(Cp,{align:"stretch",spacing:3,children:v.map(_=>s.jsxs(ge,{justify:"space-between",flexWrap:"wrap",rowGap:2,children:[_.status==="ready"?s.jsx(_o,{href:_.url,color:"primary.500",isExternal:!0,fontFamily:"mono",children:_.url}):s.jsx(Z,{color:"gray.400",fontFamily:"mono",children:_.url||"—"}),s.jsx(Wn,{colorScheme:Hm(_.status),children:Gm(_.status)})]},_.id))})}),s.jsxs(kt,{mb:6,align:"center",children:[s.jsx(_t,{size:"md",children:"Mon abonnement"}),s.jsx(ja,{})]}),s.jsx(se,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:a?s.jsx(Vn,{}):s.jsxs(Cp,{align:"stretch",spacing:4,children:[s.jsxs(ge,{flexWrap:"wrap",rowGap:2,children:[s.jsx(Z,{color:"gray.400",children:"Statut actuel :"}),s.jsx(Wn,{colorScheme:k?"purple":"gray",px:2,py:1,children:k?"Premium":"Demo"}),k&&!p&&s.jsx(ve,{size:"sm",variant:"link",ml:2,whiteSpace:"normal",textAlign:"left",onClick:()=>h(!0),children:"Renouveler avec un nouveau code"})]}),k&&i&&s.jsx(Z,{fontSize:"sm",color:j!==null&&j<=5?"orange.400":"gray.400",children:j!==null&&j>0?`Expire dans ${j} jour${j>1?"s":""} (le ${i.toLocaleDateString("fr-FR")})`:`Expiré depuis le ${i.toLocaleDateString("fr-FR")}`}),P&&s.jsx("form",{onSubmit:w,children:s.jsxs(Se,{direction:{base:"column",sm:"row"},align:{base:"stretch",sm:"center"},gap:4,children:[s.jsxs(be,{isRequired:!0,children:[s.jsx(xe,{children:k?"Nouveau code de renouvellement":"Code de souscription"}),s.jsx(yt,{type:"text",value:d,onChange:_=>f(_.target.value.toUpperCase()),placeholder:"XXXX-XXXX-XXXX-XXXX",isDisabled:c,fontFamily:"mono",letterSpacing:"wide"})]}),s.jsxs(ge,{flexShrink:0,children:[s.jsx(ve,{colorScheme:"primary",type:"submit",isLoading:c,mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},children:k?"Renouveler":"Activer"}),k&&s.jsx(ve,{variant:"ghost",mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},onClick:()=>{h(!1),f("")},isDisabled:c,children:"Annuler"})]})]})})]})})]})}function hk(e){return e==="admin"?"Administrateur":"Client"}function Vce(e){return e==="admin"?"purple":"blue"}function Wce(e){const t=(e==null?void 0:e.toLowerCase())??"";return t.includes("premium")||t.includes("pro")?"green":t.includes("expired")||t===""?"red":"gray"}function Uce(e){if(!e)return"—";const t=new Date(e);return Number.isNaN(t.getTime())?"—":t.toLocaleDateString("fr-FR",{day:"2-digit",month:"long",year:"numeric"})}function Xd(){const{isEditing:e,getSubmitButtonProps:t,getCancelButtonProps:n,getEditButtonProps:r}=AG();return e?s.jsxs(ab,{size:"sm",spacing:1,children:[s.jsx(On,{"aria-label":"Enregistrer",icon:s.jsx(Ece,{}),...t()}),s.jsx(On,{"aria-label":"Annuler",icon:s.jsx(Tce,{}),...n()})]}):s.jsx(On,{"aria-label":"Modifier le nom d'utilisateur",size:"sm",variant:"ghost",icon:s.jsx(Um,{}),...r()})}function Hce(){const e=Zr(),t=Er(),{logout:n}=$o(),[r,i]=m.useState(null),[o,a]=m.useState(!0),[l,c]=m.useState(!1),[u,d]=m.useState(!1),[f,p]=m.useState(!1),[h,v]=m.useState(0),[y,x]=m.useState(!1),[b,g]=m.useState(""),[S,w]=m.useState(!1),[k,P]=m.useState(!1),[j,_]=m.useState(""),[M,T]=m.useState(""),[O,q]=m.useState(""),[ne,z]=m.useState(!1);m.useEffect(()=>{let F=!1;return(async()=>{try{const[G,K]=await Promise.all([Fe.me(),Fe.getTelegram()]);if(F)return;if(i(G),g(K.telegram??""),G.role==="admin"){const ee=await Fe.getAlertSettings();if(F)return;_(ee.discord_webhook_url),T(ee.telegram_bot_token),q(ee.telegram_chat_id)}}catch(G){if(G instanceof Je&&G.status===401){t("/login");return}e({status:"error",title:"Impossible de charger le profil"})}finally{F||a(!1)}})(),()=>{F=!0}},[t,e]);const X=async()=>{z(!0);try{const F=await Fe.setAlertSettings({discord_webhook_url:j.trim(),telegram_bot_token:M.trim(),telegram_chat_id:O.trim()});_(F.discord_webhook_url),T(F.telegram_bot_token),q(F.telegram_chat_id),e({status:"success",title:"Alertes enregistrées"})}catch(F){if(F instanceof Je&&F.status===401){t("/login");return}e({status:"error",title:"Impossible d'enregistrer les alertes",description:F instanceof Je?F.message:void 0})}finally{z(!1)}},V=async F=>{const G=F.trim();if(!(!r||!G||G===r.username)){d(!0);try{const K=await Fe.updateUsername(G);i({...r,username:K.username}),e({status:"success",title:"Nom d'utilisateur mis à jour"})}catch(K){if(K instanceof Je&&K.status===401){t("/login");return}e({status:"error",title:"Impossible de mettre à jour le nom d'utilisateur",description:K instanceof Je?K.message:void 0})}finally{d(!1)}}},I=async F=>{const G=F.trim();if(!r||G.length<8){G.length>0&&e({status:"warning",title:"Le mot de passe doit contenir au moins 8 caractères"}),v(K=>K+1);return}p(!0);try{await Fe.updatePassword(G),e({status:"success",title:"Mot de passe mis à jour"})}catch(K){if(K instanceof Je&&K.status===401){t("/login");return}e({status:"error",title:"Impossible de mettre à jour le mot de passe",description:K instanceof Je?K.message:void 0})}finally{p(!1),v(K=>K+1)}},D=async F=>{const G=F.trim();if(!G){P(!1);return}w(!0);try{const K=await Fe.setTelegram(G);g(K.telegram),P(!1),e({status:"success",title:"Telegram enregistré"})}catch(K){if(K instanceof Je&&K.status===401){t("/login");return}e({status:"error",title:"Impossible d'enregistrer le Telegram",description:K instanceof Je?K.message:void 0})}finally{w(!1)}},R=async()=>{c(!0);try{await Fe.logout(),n==null||n(),t("/login")}catch{e({status:"error",title:"Déconnexion impossible"})}finally{c(!1)}};return s.jsx(se,{bg:"chakra-subtle-bg",py:{base:10,md:14},minH:"100%",children:s.jsxs(pn,{maxW:"container.md",children:[s.jsxs(Se,{spacing:3,mb:8,children:[s.jsx(_t,{size:"lg",children:"Mon profil"}),s.jsx(Z,{color:"gray.400",fontSize:"md",children:"Informations de votre compte et de votre abonnement."})]}),s.jsx(se,{bg:"bg-surface",borderWidth:"1px",borderColor:"chakra-border-color",borderRadius:"xl",p:{base:6,md:10},boxShadow:"lg",children:o?s.jsx(kt,{justify:"center",py:10,children:s.jsx(Vn,{})}):r?s.jsxs(Se,{spacing:8,children:[s.jsxs(kt,{align:"center",gap:5,wrap:"wrap",children:[s.jsx(ob,{name:r.username,size:"xl"}),s.jsxs(se,{children:[s.jsx(tc,{defaultValue:r.username,onSubmit:V,isDisabled:u,submitOnBlur:!1,children:s.jsxs(ge,{spacing:2,children:[s.jsx(rc,{as:_t,size:"md",fontFamily:"mono"}),s.jsx(nc,{fontFamily:"mono",fontSize:"md",fontWeight:"bold"}),s.jsx(Xd,{})]})},r.username),s.jsxs(ge,{mt:2,spacing:2,children:[s.jsx(Wn,{colorScheme:Vce(r.role),children:hk(r.role)}),r.type_abonnement&&s.jsx(Wn,{colorScheme:Wce(r.type_abonnement),children:r.type_abonnement})]})]})]}),s.jsx(ua,{borderColor:"chakra-border-color"}),s.jsxs(gn,{columns:{base:1,sm:2},spacing:6,children:[s.jsxs(Ho,{children:[s.jsx(Go,{children:"Identifiant"}),s.jsx(Fi,{fontSize:"md",fontFamily:"mono",children:r.user_id})]}),s.jsxs(Ho,{children:[s.jsx(Go,{children:"Rôle"}),s.jsx(Fi,{fontSize:"md",children:hk(r.role)})]}),s.jsxs(Ho,{children:[s.jsx(Go,{children:"Type d'abonnement"}),s.jsx(Fi,{fontSize:"md",children:r.type_abonnement||"—"})]}),s.jsxs(Ho,{children:[s.jsx(Go,{children:"Mot de passe"}),s.jsx(tc,{defaultValue:"",placeholder:"••••••••",onSubmit:I,isDisabled:f,submitOnBlur:!1,children:s.jsxs(ge,{spacing:2,children:[s.jsx(rc,{as:Fi,fontSize:"md",fontFamily:"mono"}),s.jsx(nc,{type:y?"text":"password",fontSize:"md",fontFamily:"mono"}),s.jsx(On,{"aria-label":y?"Masquer le mot de passe":"Afficher le mot de passe",icon:s.jsx(Oe,{icon:y?D7:T7}),size:"sm",variant:"ghost",tabIndex:-1,onClick:()=>x(F=>!F)}),s.jsx(Xd,{})]})},h)]}),s.jsxs(Ho,{children:[s.jsx(Go,{children:"Telegram"}),b?s.jsx(tc,{defaultValue:b,onSubmit:D,isDisabled:S,submitOnBlur:!1,children:s.jsxs(ge,{spacing:2,children:[s.jsx(rc,{as:Fi,fontSize:"md",fontFamily:"mono"}),s.jsx(nc,{fontSize:"md",fontFamily:"mono"}),s.jsx(Xd,{})]})},b):k?s.jsx(tc,{defaultValue:"",placeholder:"@monpseudo",startWithEditView:!0,onSubmit:D,onCancel:()=>P(!1),isDisabled:S,submitOnBlur:!1,children:s.jsxs(ge,{spacing:2,children:[s.jsx(rc,{as:Fi,fontSize:"md",fontFamily:"mono"}),s.jsx(nc,{fontSize:"md",fontFamily:"mono"}),s.jsx(Xd,{})]})}):s.jsx(ve,{size:"sm",variant:"outline",onClick:()=>P(!0),children:"Ajouter mon Telegram"})]}),s.jsxs(Ho,{children:[s.jsx(Go,{children:"Expire le"}),s.jsx(Fi,{fontSize:"md",children:Uce(r.expired_at)})]})]}),r.role==="admin"&&s.jsxs(s.Fragment,{children:[s.jsx(ua,{borderColor:"chakra-border-color"}),s.jsxs(Se,{spacing:4,children:[s.jsxs(se,{children:[s.jsx(_t,{size:"sm",children:"Alertes monitoring"}),s.jsx(Z,{color:"gray.500",fontSize:"sm",children:"Recevez une notification quand un pod d'une démo tombe en erreur (ou se rétablit). Réglages propres à votre compte."})]}),s.jsxs(be,{children:[s.jsx(xe,{fontSize:"sm",children:"Webhook Discord"}),s.jsx(yt,{fontFamily:"mono",fontSize:"sm",placeholder:"https://discord.com/api/webhooks/...",value:j,onChange:F=>_(F.target.value),isDisabled:ne})]}),s.jsxs(gn,{columns:{base:1,sm:2},spacing:4,children:[s.jsxs(be,{children:[s.jsx(xe,{fontSize:"sm",children:"Bot Telegram (token)"}),s.jsx(yt,{fontFamily:"mono",fontSize:"sm",placeholder:"123456789:AAExemple...",value:M,onChange:F=>T(F.target.value),isDisabled:ne})]}),s.jsxs(be,{children:[s.jsx(xe,{fontSize:"sm",children:"Telegram (chat ID)"}),s.jsx(yt,{fontFamily:"mono",fontSize:"sm",placeholder:"-100123456789",value:O,onChange:F=>q(F.target.value),isDisabled:ne}),s.jsx(au,{children:"Envoyez un message au bot puis récupérez le chat_id via son API."})]})]}),s.jsx(kt,{justify:"flex-end",children:s.jsx(ve,{size:"sm",colorScheme:"primary",isLoading:ne,onClick:X,children:"Enregistrer les alertes"})})]})]}),s.jsx(ua,{borderColor:"chakra-border-color"}),s.jsx(kt,{justify:"flex-end",children:s.jsx(ve,{colorScheme:"red",variant:"outline",isLoading:l,onClick:R,children:"Se déconnecter"})})]}):s.jsx(Z,{color:"gray.500",children:"Aucune information disponible."})})]})})}const gk=[{to:"/",label:"Accueil",end:!0},{to:"/tarifs",label:"Tarifs",end:!1},{to:"/documentation",label:"Documentation",end:!1},{to:"/contact",label:"Contact",end:!1}],Gce=()=>s.jsx(se,{as:"svg",w:"24px",h:"24px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:s.jsx(se,{as:"path",d:"M3 12h18M3 6h18M3 18h18"})});function Kce(){const{isOpen:e,onOpen:t,onClose:n}=Cu();return s.jsxs(se,{as:"header",position:"sticky",top:0,zIndex:"sticky",bg:"chakra-body-bg",borderBottomWidth:"1px",backdropFilter:"saturate(180%) blur(6px)",children:[s.jsx(pn,{maxW:"container.lg",children:s.jsxs(kt,{h:16,align:"center",justify:"space-between",children:[s.jsxs(ge,{spacing:8,children:[s.jsx(se,{as:Yt,to:"/",fontWeight:"bold",fontSize:"xl",letterSpacing:"tight",children:"Omnex"}),s.jsx(ge,{as:"nav",spacing:1,display:{base:"none",md:"flex"},children:gk.map(r=>s.jsx(vk,{to:r.to,end:r.end,children:r.label},r.to))})]}),s.jsxs(ge,{spacing:2,display:{base:"none",md:"flex"},children:[s.jsx(Ea,{}),s.jsx(ve,{as:Yt,to:"/login",variant:"ghost",size:"sm",children:"Espace client"}),s.jsx(ve,{as:Yt,to:"/register",colorScheme:"primary",size:"sm",children:"Créer un compte"})]}),s.jsxs(ge,{spacing:1,display:{base:"flex",md:"none"},children:[s.jsx(Ea,{}),s.jsx(On,{"aria-label":"Ouvrir le menu",variant:"ghost",onClick:t,icon:s.jsx(Gce,{})})]})]})}),s.jsxs(aT,{isOpen:e,placement:"right",onClose:n,size:"xs",children:[s.jsx(yl,{}),s.jsxs(Lb,{bg:"chakra-body-bg",children:[s.jsx(Bu,{size:"lg"}),s.jsx(vl,{borderBottomWidth:"1px",fontWeight:"bold",fontSize:"xl",children:"Omnex"}),s.jsxs(gl,{py:6,children:[s.jsx(Se,{as:"nav",spacing:1,children:gk.map(r=>s.jsx(vk,{to:r.to,end:r.end,onClick:n,mobile:!0,children:r.label},r.to))}),s.jsx(ua,{my:6}),s.jsxs(Se,{spacing:3,children:[s.jsx(ve,{as:Yt,to:"/login",variant:"outline",justifyContent:"flex-start",onClick:n,children:"Espace client"}),s.jsx(ve,{as:Yt,to:"/register",colorScheme:"primary",justifyContent:"flex-start",onClick:n,children:"Créer un compte"})]})]})]})]})]})}function vk({to:e,end:t,children:n,onClick:r,mobile:i=!1}){return s.jsx(ve,{as:p8,to:e,end:t,size:i?"lg":"sm",variant:"ghost",justifyContent:i?"flex-start":"center",onClick:r,_activeLink:{fontWeight:"bold",color:"primary.500"},children:n})}function qce(){return s.jsx(se,{as:"footer",borderTopWidth:"1px",mt:20,bg:"chakra-subtle-bg",children:s.jsxs(pn,{maxW:"container.lg",py:12,children:[s.jsxs(gn,{columns:{base:1,md:4},spacing:8,children:[s.jsxs(Se,{spacing:3,children:[s.jsx(Z,{fontWeight:"bold",fontSize:"lg",children:"Omnex"}),s.jsx(Z,{fontSize:"sm",color:"gray.500",children:"Plateforme de gestion de commandes & livraison, déployable en démo isolée en un clic."})]}),s.jsxs(Xce,{title:"Produit",children:[s.jsx(Yd,{to:"/",children:"Présentation"}),s.jsx(Yd,{to:"/tarifs",children:"Tarifs"}),s.jsx(Yd,{to:"/register",children:"Créer un compte"}),s.jsx(Yd,{to:"/documentation",children:"Documentation"})]})]}),s.jsx(ua,{my:8}),s.jsxs(ge,{justify:"space-between",flexWrap:"wrap",spacing:4,children:[s.jsxs(Z,{fontSize:"sm",color:"gray.500",children:["© ",new Date().getFullYear()," Omnex. Tous droits réservés."]}),s.jsxs(ge,{spacing:6,fontSize:"sm",color:"gray.500",children:[s.jsx(yk,{href:"#",children:"Mentions légales"}),s.jsx(yk,{href:"#",children:"Confidentialité"})]})]})]})})}function Xce({title:e,children:t}){return s.jsxs(Se,{spacing:2,children:[s.jsx(Z,{fontWeight:"semibold",fontSize:"sm",textTransform:"uppercase",color:"gray.500",children:e}),t]})}function Yd({to:e,children:t}){return s.jsx(_o,{as:Yt,to:e,fontSize:"sm",color:"gray.600",_hover:{color:"primary.500"},children:t})}function yk({href:e,children:t}){return s.jsx(_o,{href:e,fontSize:"sm",color:"gray.600",_hover:{color:"primary.500"},children:t})}function Yce(){return s.jsxs(kt,{direction:"column",minH:"100vh",children:[s.jsx(Kce,{}),s.jsx(se,{as:"main",flex:"1",children:s.jsx(d8,{})}),s.jsx(qce,{})]})}const Qce=()=>s.jsx(se,{as:"svg",w:"20px",h:"20px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:s.jsx(se,{as:"path",d:"M3 12h18M3 6h18M3 18h18"})}),bk="https://t.me/OMNEX_CORP";function Zce(){const{logout:e,isAdmin:t,isClient:n}=$o(),r=Er(),{isOpen:i,onOpen:o,onClose:a}=Cu(),l=async()=>{const d=t?"/admin/login":"/login";await e(),r(d,{replace:!0})},c=t?"Admin":n?"Client":"Utilisateur",u=t?"purple":"gray";return s.jsxs(se,{minH:"100vh",bg:"chakra-subtle-bg",overflowX:"hidden",children:[s.jsxs(kt,{as:"header",px:6,py:3,borderBottomWidth:"1px",align:"center",gap:6,children:[s.jsxs(_t,{size:"sm",as:Yt,to:"/app",children:["Omnex · ",t?"Espace admin":"Espace client"]}),s.jsxs(ge,{spacing:1,display:{base:"none",md:"flex"},children:[n&&s.jsx(Mr,{to:"/app/subscription",children:"Abonnement"}),(t||n)&&s.jsx(Mr,{to:"/app/profile",children:"Profile"}),t&&s.jsx(Mr,{to:"/app/demos",children:"Démos"}),t&&s.jsx(Mr,{to:"/app/premium",children:"Premium"}),t&&s.jsx(Mr,{to:"/app/codes",children:"Codes"})]}),s.jsx(ja,{}),s.jsxs(ge,{spacing:2,display:{base:"none",md:"flex"},children:[s.jsx(Wn,{colorScheme:u,children:c}),s.jsx(ve,{as:"a",href:bk,target:"_blank",rel:"noopener noreferrer",size:"sm",variant:"outline",children:"Support"}),s.jsx(Ea,{}),s.jsx(ve,{size:"sm",variant:"outline",onClick:l,children:"Déconnexion"})]}),s.jsxs(ge,{spacing:1,display:{base:"flex",md:"none"},children:[s.jsx(Wn,{colorScheme:u,children:c}),s.jsx(Ea,{}),s.jsx(On,{"aria-label":"Ouvrir le menu",variant:"ghost",onClick:o,icon:s.jsx(Qce,{})})]})]}),s.jsxs(aT,{isOpen:i,placement:"right",onClose:a,size:"xs",children:[s.jsx(yl,{}),s.jsxs(Lb,{bg:"chakra-body-bg",children:[s.jsx(Bu,{size:"lg"}),s.jsxs(vl,{borderBottomWidth:"1px",fontWeight:"bold",fontSize:"xl",children:["Omnex · ",t?"Espace admin":"Espace client"]}),s.jsxs(gl,{py:6,children:[s.jsxs(Se,{as:"nav",spacing:1,children:[n&&s.jsx(Mr,{to:"/app/subscription",onClick:a,mobile:!0,children:"Abonnement"}),t&&s.jsx(Mr,{to:"/app/demos",onClick:a,mobile:!0,children:"Démos"}),t&&s.jsx(Mr,{to:"/app/premium",onClick:a,mobile:!0,children:"Premium"}),t&&s.jsx(Mr,{to:"/app/codes",onClick:a,mobile:!0,children:"Codes"}),(t||n)&&s.jsx(Mr,{to:"/app/profile",onClick:a,mobile:!0,children:"Profile"})]}),s.jsx(ua,{my:6}),s.jsxs(Se,{spacing:3,children:[s.jsx(ve,{as:"a",href:bk,target:"_blank",rel:"noopener noreferrer",variant:"outline",justifyContent:"flex-start",onClick:a,children:"Support"}),s.jsx(ve,{variant:"outline",justifyContent:"flex-start",onClick:l,children:"Déconnexion"})]})]})]})]}),s.jsx(pn,{maxW:"container.xl",py:8,children:s.jsx(d8,{})})]})}function Mr({to:e,children:t,onClick:n,mobile:r=!1}){return s.jsx(ve,{as:p8,to:e,size:r?"lg":"sm",variant:"ghost",onClick:n,_activeLink:{fontWeight:"bold",color:"primary.500"},justifyContent:"flex-start",children:t})}const Jce=["/app/demos","/app/premium","/app/codes"];function eue({children:e}){const{isAuthenticated:t,initializing:n}=$o(),r=Ia();if(n)return s.jsx(qP,{h:"100vh",children:s.jsx(Vn,{})});if(t)return e;const i=Jce.some(o=>r.pathname.startsWith(o));return s.jsx(vu,{to:i?"/admin/login":"/login",replace:!0})}function N0({children:e}){const{isAdmin:t}=$o();return t?e:s.jsx(vu,{to:"/app/subscription",replace:!0})}function tue(){const{role:e}=$o();switch(e){case"admin":return s.jsx(vu,{to:"/app/demos",replace:!0});default:return s.jsx(vu,{to:"/app/subscription",replace:!0})}}function nue(){return s.jsxs(Fre,{children:[s.jsxs(rn,{element:s.jsx(Yce,{}),children:[s.jsx(rn,{path:"/",element:s.jsx(tie,{})}),s.jsx(rn,{path:"/tarifs",element:s.jsx(rie,{})}),s.jsx(rn,{path:"/documentation",element:s.jsx(xce,{})})]}),s.jsx(rn,{path:"/login",element:s.jsx(jce,{})}),s.jsx(rn,{path:"/admin/login",element:s.jsx(Pce,{})}),s.jsx(rn,{path:"/register",element:s.jsx(_ce,{})}),s.jsxs(rn,{path:"/app",element:s.jsx(eue,{children:s.jsx(Zce,{})}),children:[s.jsx(rn,{index:!0,element:s.jsx(tue,{})}),s.jsx(rn,{path:"demos",element:s.jsx(N0,{children:s.jsx(Ice,{})})}),s.jsx(rn,{path:"codes",element:s.jsx(N0,{children:s.jsx(Fce,{})})}),s.jsx(rn,{path:"premium",element:s.jsx(N0,{children:s.jsx(Dce,{})})}),s.jsx(rn,{path:"subscription",element:s.jsx(Bce,{})}),s.jsx(rn,{path:"profile",element:s.jsx(Hce,{})})]}),s.jsx(rn,{path:"*",element:s.jsx(vu,{to:"/",replace:!0})})]})}const rue={initialColorMode:"system",useSystemColorMode:!1},xk=db({config:rue,colors:{black:"#000000",gray:{50:"#f7f7f8",100:"#e8e8ea",200:"#c5c5c9",300:"#a2a2a9",400:"#7f7f88",500:"#5c5c66",600:"#43434c",700:"#2a2a33",800:"#15151b",900:"#0a0a0f"},midnight:{50:"#e9ebf5",100:"#c7cce6",200:"#a3abd6",300:"#7f8ac6",400:"#5b69b6",500:"#2d3a7d",600:"#232e63",700:"#1a2249",800:"#11172f",900:"#080b16"}},semanticTokens:{colors:{"chakra-body-bg":{_light:"white",_dark:"#000000"},"chakra-subtle-bg":{_light:"gray.50",_dark:"#050508"},"bg-surface":{_light:"white",_dark:"#08080c"},"chakra-body-text":{_light:"gray.800",_dark:"#f5f5f7"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.100"},"primary.50":{default:"purple.50",_dark:"midnight.50"},"primary.100":{default:"purple.100",_dark:"midnight.100"},"primary.200":{default:"purple.200",_dark:"midnight.200"},"primary.300":{default:"purple.300",_dark:"midnight.300"},"primary.400":{default:"purple.400",_dark:"midnight.400"},"primary.500":{default:"purple.500",_dark:"midnight.500"},"primary.600":{default:"purple.600",_dark:"midnight.600"},"primary.700":{default:"purple.700",_dark:"midnight.700"},"primary.800":{default:"purple.800",_dark:"midnight.800"},"primary.900":{default:"purple.900",_dark:"midnight.900"}}},styles:{global:{body:{bg:"chakra-body-bg",color:"chakra-body-text"}}},components:{Card:{baseStyle:{container:{bg:"bg-surface",borderColor:"whiteAlpha.50"}}},Button:{baseStyle:{_dark:{bg:"gray.800",_hover:{bg:"gray.700"}}}},Input:{baseStyle:{field:{_dark:{bg:"gray.900",borderColor:"whiteAlpha.200",_focus:{borderColor:"whiteAlpha.400"}}}}},Select:{baseStyle:{field:{_dark:{bg:"gray.900",borderColor:"whiteAlpha.200"}}}},Textarea:{baseStyle:{_dark:{bg:"gray.900",borderColor:"whiteAlpha.200"}}},Modal:{baseStyle:{overlay:{_dark:{bg:"blackAlpha.800"}},content:{_dark:{bg:"#08080c"}}}}}},ET);O0.createRoot(document.getElementById("root")).render(s.jsxs(Gt.StrictMode,{children:[s.jsx(PG,{initialColorMode:xk.config.initialColorMode}),s.jsx(Tte,{theme:xk,children:s.jsx(wce,{children:s.jsx(qre,{children:s.jsx(nue,{})})})})]}));