Files
omnex/web/dist/assets/index-B44IZlvi.js
T
Xor290 fb274b3c35
ci-web / test (push) Successful in 14m34s
chore: add documentation
2026-08-03 15:53:25 +02:00

1511 lines
863 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 XE=Object.defineProperty;var Ux=e=>{throw TypeError(e)};var YE=(e,t,n)=>t in e?XE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Hx=(e,t,n)=>YE(e,typeof t!="symbol"?t+"":t,n),Gx=(e,t,n)=>t.has(e)||Ux("Cannot "+n);var qx=(e,t,n)=>(Gx(e,t,"read from private field"),n?n.call(e):t.get(e)),Kx=(e,t,n)=>t.has(e)?Ux("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ih=(e,t,n,r)=>(Gx(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);function QE(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 td=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ok={exports:{}},Mp={},Fk={exports:{}},Se={};/**
* @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 yu=Symbol.for("react.element"),ZE=Symbol.for("react.portal"),JE=Symbol.for("react.fragment"),e9=Symbol.for("react.strict_mode"),t9=Symbol.for("react.profiler"),n9=Symbol.for("react.provider"),r9=Symbol.for("react.context"),i9=Symbol.for("react.forward_ref"),o9=Symbol.for("react.suspense"),a9=Symbol.for("react.memo"),s9=Symbol.for("react.lazy"),Xx=Symbol.iterator;function l9(e){return e===null||typeof e!="object"?null:(e=Xx&&e[Xx]||e["@@iterator"],typeof e=="function"?e:null)}var Bk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Vk=Object.assign,Wk={};function ll(e,t,n){this.props=e,this.context=t,this.refs=Wk,this.updater=n||Bk}ll.prototype.isReactComponent={};ll.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")};ll.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Uk(){}Uk.prototype=ll.prototype;function e1(e,t,n){this.props=e,this.context=t,this.refs=Wk,this.updater=n||Bk}var t1=e1.prototype=new Uk;t1.constructor=e1;Vk(t1,ll.prototype);t1.isPureReactComponent=!0;var Yx=Array.isArray,Hk=Object.prototype.hasOwnProperty,n1={current:null},Gk={key:!0,ref:!0,__self:!0,__source:!0};function qk(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)Hk.call(t,r)&&!Gk.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:yu,type:e,key:o,ref:a,props:i,_owner:n1.current}}function c9(e,t){return{$$typeof:yu,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function r1(e){return typeof e=="object"&&e!==null&&e.$$typeof===yu}function u9(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Qx=/\/+/g;function oh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?u9(""+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 yu:case ZE:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+oh(a,0):r,Yx(i)?(n="",e!=null&&(n=e.replace(Qx,"$&/")+"/"),Qd(i,t,n,"",function(u){return u})):i!=null&&(r1(i)&&(i=c9(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(Qx,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",Yx(e))for(var l=0;l<e.length;l++){o=e[l];var c=r+oh(o,l);a+=Qd(o,t,n,c,i)}else if(c=l9(e),typeof c=="function")for(e=c.call(e),l=0;!(o=e.next()).done;)o=o.value,c=r+oh(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 nd(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 d9(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 mn={current:null},Zd={transition:null},f9={ReactCurrentDispatcher:mn,ReactCurrentBatchConfig:Zd,ReactCurrentOwner:n1};function Kk(){throw Error("act(...) is not supported in production builds of React.")}Se.Children={map:nd,forEach:function(e,t,n){nd(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return nd(e,function(){t++}),t},toArray:function(e){return nd(e,function(t){return t})||[]},only:function(e){if(!r1(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Se.Component=ll;Se.Fragment=JE;Se.Profiler=t9;Se.PureComponent=e1;Se.StrictMode=e9;Se.Suspense=o9;Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=f9;Se.act=Kk;Se.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=Vk({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=n1.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)Hk.call(t,c)&&!Gk.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:yu,type:e.type,key:i,ref:o,props:r,_owner:a}};Se.createContext=function(e){return e={$$typeof:r9,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:n9,_context:e},e.Consumer=e};Se.createElement=qk;Se.createFactory=function(e){var t=qk.bind(null,e);return t.type=e,t};Se.createRef=function(){return{current:null}};Se.forwardRef=function(e){return{$$typeof:i9,render:e}};Se.isValidElement=r1;Se.lazy=function(e){return{$$typeof:s9,_payload:{_status:-1,_result:e},_init:d9}};Se.memo=function(e,t){return{$$typeof:a9,type:e,compare:t===void 0?null:t}};Se.startTransition=function(e){var t=Zd.transition;Zd.transition={};try{e()}finally{Zd.transition=t}};Se.unstable_act=Kk;Se.useCallback=function(e,t){return mn.current.useCallback(e,t)};Se.useContext=function(e){return mn.current.useContext(e)};Se.useDebugValue=function(){};Se.useDeferredValue=function(e){return mn.current.useDeferredValue(e)};Se.useEffect=function(e,t){return mn.current.useEffect(e,t)};Se.useId=function(){return mn.current.useId()};Se.useImperativeHandle=function(e,t,n){return mn.current.useImperativeHandle(e,t,n)};Se.useInsertionEffect=function(e,t){return mn.current.useInsertionEffect(e,t)};Se.useLayoutEffect=function(e,t){return mn.current.useLayoutEffect(e,t)};Se.useMemo=function(e,t){return mn.current.useMemo(e,t)};Se.useReducer=function(e,t,n){return mn.current.useReducer(e,t,n)};Se.useRef=function(e){return mn.current.useRef(e)};Se.useState=function(e){return mn.current.useState(e)};Se.useSyncExternalStore=function(e,t,n){return mn.current.useSyncExternalStore(e,t,n)};Se.useTransition=function(){return mn.current.useTransition()};Se.version="18.3.1";Fk.exports=Se;var m=Fk.exports;const Vt=Jv(m),O0=QE({__proto__:null,default:Vt},[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 p9=m,m9=Symbol.for("react.element"),h9=Symbol.for("react.fragment"),g9=Object.prototype.hasOwnProperty,v9=p9.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y9={key:!0,ref:!0,__self:!0,__source:!0};function Xk(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)g9.call(t,r)&&!y9.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:m9,type:e,key:o,ref:a,props:i,_owner:v9.current}}Mp.Fragment=h9;Mp.jsx=Xk;Mp.jsxs=Xk;Ok.exports=Mp;var s=Ok.exports,F0={},Yk={exports:{}},Bn={},Qk={exports:{}},Zk={};/**
* @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 q=F-1>>>1,G=D[q];if(0<i(G,R))D[q]=R,D[F]=G,F=q;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 q=0,G=D.length,ee=G>>>1;q<ee;){var ke=2*(q+1)-1,be=D[ke],je=ke+1,He=D[je];if(0>i(be,F))je<G&&0>i(He,be)?(D[q]=He,D[je]=F,q=je):(D[q]=be,D[ke]=F,q=ke);else if(je<G&&0>i(He,F))D[q]=He,D[je]=F,q=je;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 q=f.callback;if(typeof q=="function"){f.callback=null,p=f.priorityLevel;var G=q(f.expirationTime<=R);R=e.unstable_now(),typeof G=="function"?f.callback=G:f===n(c)&&r(c),S(R)}else r(c);f=n(c)}if(f!==null)var ee=!0;else{var ke=n(u);ke!==null&&I(w,ke.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 K(){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(K)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,X=z.port2;z.port1.onmessage=K,ne=function(){X.postMessage(null)}}else ne=function(){x(K,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 q=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?q+F:q):F=q,D){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=F+G,D={id:d++,callback:R,priorityLevel:D,startTime:F,expirationTime:G,sortIndex:-1},F>q?(D.sortIndex=F,t(u,D),n(c)===null&&D===n(u)&&(y?(b(_),_=-1):y=!0,I(w,F-q))):(D.sortIndex=G,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}}}})(Zk);Qk.exports=Zk;var b9=Qk.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 x9=m,Ln=b9;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 Jk=new Set,$c={};function Ta(e,t){Fs(e,t),Fs(e+"Capture",t)}function Fs(e,t){for($c[e]=t,e=0;e<t.length;e++)Jk.add(t[e])}var vi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),B0=Object.prototype.hasOwnProperty,S9=/^[: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]*$/,Zx={},Jx={};function w9(e){return B0.call(Jx,e)?!0:B0.call(Zx,e)?!1:S9.test(e)?Jx[e]=!0:(Zx[e]=!0,!1)}function k9(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 C9(e,t,n,r){if(t===null||typeof t>"u"||k9(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 hn(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 Kt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Kt[e]=new hn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Kt[t]=new hn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Kt[e]=new hn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Kt[e]=new hn(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){Kt[e]=new hn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Kt[e]=new hn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Kt[e]=new hn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Kt[e]=new hn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Kt[e]=new hn(e,5,!1,e.toLowerCase(),null,!1,!1)});var i1=/[\-:]([a-z])/g;function o1(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(i1,o1);Kt[t]=new hn(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(i1,o1);Kt[t]=new hn(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(i1,o1);Kt[t]=new hn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Kt[e]=new hn(e,1,!1,e.toLowerCase(),null,!1,!1)});Kt.xlinkHref=new hn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Kt[e]=new hn(e,1,!1,e.toLowerCase(),null,!0,!0)});function a1(e,t,n,r){var i=Kt.hasOwnProperty(t)?Kt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(C9(t,n,i,r)&&(n=null),r||i===null?w9(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 Pi=x9.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,rd=Symbol.for("react.element"),Ka=Symbol.for("react.portal"),Xa=Symbol.for("react.fragment"),s1=Symbol.for("react.strict_mode"),V0=Symbol.for("react.profiler"),e5=Symbol.for("react.provider"),t5=Symbol.for("react.context"),l1=Symbol.for("react.forward_ref"),W0=Symbol.for("react.suspense"),U0=Symbol.for("react.suspense_list"),c1=Symbol.for("react.memo"),Fi=Symbol.for("react.lazy"),n5=Symbol.for("react.offscreen"),e2=Symbol.iterator;function jl(e){return e===null||typeof e!="object"?null:(e=e2&&e[e2]||e["@@iterator"],typeof e=="function"?e:null)}var dt=Object.assign,ah;function Vl(e){if(ah===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ah=t&&t[1]||""}return`
`+ah+e}var sh=!1;function lh(e,t){if(!e||sh)return"";sh=!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{sh=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Vl(e):""}function j9(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=lh(e.type,!1),e;case 11:return e=lh(e.type.render,!1),e;case 1:return e=lh(e.type,!0),e;default:return""}}function H0(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 Xa:return"Fragment";case Ka:return"Portal";case V0:return"Profiler";case s1:return"StrictMode";case W0:return"Suspense";case U0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case t5:return(e.displayName||"Context")+".Consumer";case e5:return(e._context.displayName||"Context")+".Provider";case l1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case c1:return t=e.displayName||null,t!==null?t:H0(e.type)||"Memo";case Fi:t=e._payload,e=e._init;try{return H0(e(t))}catch{}}return null}function P9(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 H0(t);case 8:return t===s1?"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 fo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function r5(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _9(e){var t=r5(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 id(e){e._valueTracker||(e._valueTracker=_9(e))}function i5(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=r5(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Df(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 G0(e,t){var n=t.checked;return dt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function t2(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=fo(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 o5(e,t){t=t.checked,t!=null&&a1(e,"checked",t,!1)}function q0(e,t){o5(e,t);var n=fo(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,fo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function n2(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"||Df(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wl=Array.isArray;function ks(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=""+fo(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 X0(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(U(91));return dt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function r2(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:fo(n)}}function a5(e,t){var n=fo(t.value),r=fo(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 i2(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function s5(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 Y0(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?s5(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var od,l5=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(od=od||document.createElement("div"),od.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=od.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ac={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},T9=["Webkit","ms","Moz","O"];Object.keys(ac).forEach(function(e){T9.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ac[t]=ac[e]})});function c5(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ac.hasOwnProperty(e)&&ac[e]?(""+t).trim():t+"px"}function u5(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=c5(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var E9=dt({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 Q0(e,t){if(t){if(E9[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 Z0(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 J0=null;function u1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var eg=null,Cs=null,js=null;function o2(e){if(e=Su(e)){if(typeof eg!="function")throw Error(U(280));var t=e.stateNode;t&&(t=Op(t),eg(e.stateNode,e.type,t))}}function d5(e){Cs?js?js.push(e):js=[e]:Cs=e}function f5(){if(Cs){var e=Cs,t=js;if(js=Cs=null,o2(e),t)for(e=0;e<t.length;e++)o2(t[e])}}function p5(e,t){return e(t)}function m5(){}var ch=!1;function h5(e,t,n){if(ch)return e(t,n);ch=!0;try{return p5(e,t,n)}finally{ch=!1,(Cs!==null||js!==null)&&(m5(),f5())}}function Rc(e,t){var n=e.stateNode;if(n===null)return null;var r=Op(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 tg=!1;if(vi)try{var Pl={};Object.defineProperty(Pl,"passive",{get:function(){tg=!0}}),window.addEventListener("test",Pl,Pl),window.removeEventListener("test",Pl,Pl)}catch{tg=!1}function A9(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 sc=!1,Of=null,Ff=!1,ng=null,$9={onError:function(e){sc=!0,Of=e}};function z9(e,t,n,r,i,o,a,l,c){sc=!1,Of=null,A9.apply($9,arguments)}function R9(e,t,n,r,i,o,a,l,c){if(z9.apply(this,arguments),sc){if(sc){var u=Of;sc=!1,Of=null}else throw Error(U(198));Ff||(Ff=!0,ng=u)}}function Ea(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 g5(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 a2(e){if(Ea(e)!==e)throw Error(U(188))}function M9(e){var t=e.alternate;if(!t){if(t=Ea(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 a2(i),e;if(o===r)return a2(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 v5(e){return e=M9(e),e!==null?y5(e):null}function y5(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=y5(e);if(t!==null)return t;e=e.sibling}return null}var b5=Ln.unstable_scheduleCallback,s2=Ln.unstable_cancelCallback,I9=Ln.unstable_shouldYield,L9=Ln.unstable_requestPaint,bt=Ln.unstable_now,N9=Ln.unstable_getCurrentPriorityLevel,d1=Ln.unstable_ImmediatePriority,x5=Ln.unstable_UserBlockingPriority,Bf=Ln.unstable_NormalPriority,D9=Ln.unstable_LowPriority,S5=Ln.unstable_IdlePriority,Ip=null,Vr=null;function O9(e){if(Vr&&typeof Vr.onCommitFiberRoot=="function")try{Vr.onCommitFiberRoot(Ip,e,void 0,(e.current.flags&128)===128)}catch{}}var xr=Math.clz32?Math.clz32:V9,F9=Math.log,B9=Math.LN2;function V9(e){return e>>>=0,e===0?32:31-(F9(e)/B9|0)|0}var ad=64,sd=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 Vf(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-xr(t),i=1<<n,r|=e[n],t&=~i;return r}function W9(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 U9(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-xr(o),l=1<<a,c=i[a];c===-1?(!(l&n)||l&r)&&(i[a]=W9(l,t)):c<=t&&(e.expiredLanes|=l),o&=~l}}function rg(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function w5(){var e=ad;return ad<<=1,!(ad&4194240)&&(ad=64),e}function uh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xr(t),e[t]=n}function H9(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-xr(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function f1(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-xr(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Be=0;function k5(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var C5,p1,j5,P5,_5,ig=!1,ld=[],to=null,no=null,ro=null,Mc=new Map,Ic=new Map,Wi=[],G9="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 l2(e,t){switch(e){case"focusin":case"focusout":to=null;break;case"dragenter":case"dragleave":no=null;break;case"mouseover":case"mouseout":ro=null;break;case"pointerover":case"pointerout":Mc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ic.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=Su(t),t!==null&&p1(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function q9(e,t,n,r,i){switch(t){case"focusin":return to=_l(to,e,t,n,r,i),!0;case"dragenter":return no=_l(no,e,t,n,r,i),!0;case"mouseover":return ro=_l(ro,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Mc.set(o,_l(Mc.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ic.set(o,_l(Ic.get(o)||null,e,t,n,r,i)),!0}return!1}function T5(e){var t=Go(e.target);if(t!==null){var n=Ea(t);if(n!==null){if(t=n.tag,t===13){if(t=g5(n),t!==null){e.blockedOn=t,_5(e.priority,function(){j5(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=og(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);J0=r,n.target.dispatchEvent(r),J0=null}else return t=Su(n),t!==null&&p1(t),e.blockedOn=n,!1;t.shift()}return!0}function c2(e,t,n){Jd(e)&&n.delete(t)}function K9(){ig=!1,to!==null&&Jd(to)&&(to=null),no!==null&&Jd(no)&&(no=null),ro!==null&&Jd(ro)&&(ro=null),Mc.forEach(c2),Ic.forEach(c2)}function Tl(e,t){e.blockedOn===t&&(e.blockedOn=null,ig||(ig=!0,Ln.unstable_scheduleCallback(Ln.unstable_NormalPriority,K9)))}function Lc(e){function t(i){return Tl(i,e)}if(0<ld.length){Tl(ld[0],e);for(var n=1;n<ld.length;n++){var r=ld[n];r.blockedOn===e&&(r.blockedOn=null)}}for(to!==null&&Tl(to,e),no!==null&&Tl(no,e),ro!==null&&Tl(ro,e),Mc.forEach(t),Ic.forEach(t),n=0;n<Wi.length;n++)r=Wi[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Wi.length&&(n=Wi[0],n.blockedOn===null);)T5(n),n.blockedOn===null&&Wi.shift()}var Ps=Pi.ReactCurrentBatchConfig,Wf=!0;function X9(e,t,n,r){var i=Be,o=Ps.transition;Ps.transition=null;try{Be=1,m1(e,t,n,r)}finally{Be=i,Ps.transition=o}}function Y9(e,t,n,r){var i=Be,o=Ps.transition;Ps.transition=null;try{Be=4,m1(e,t,n,r)}finally{Be=i,Ps.transition=o}}function m1(e,t,n,r){if(Wf){var i=og(e,t,n,r);if(i===null)xh(e,t,r,Uf,n),l2(e,r);else if(q9(i,e,t,n,r))r.stopPropagation();else if(l2(e,r),t&4&&-1<G9.indexOf(e)){for(;i!==null;){var o=Su(i);if(o!==null&&C5(o),o=og(e,t,n,r),o===null&&xh(e,t,r,Uf,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else xh(e,t,r,null,n)}}var Uf=null;function og(e,t,n,r){if(Uf=null,e=u1(r),e=Go(e),e!==null)if(t=Ea(e),t===null)e=null;else if(n=t.tag,n===13){if(e=g5(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 Uf=e,null}function E5(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(N9()){case d1:return 1;case x5:return 4;case Bf:case D9:return 16;case S5:return 536870912;default:return 16}default:return 16}}var qi=null,h1=null,ef=null;function A5(){if(ef)return ef;var e,t=h1,n=t.length,r,i="value"in qi?qi.value:qi.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 cd(){return!0}function u2(){return!1}function Vn(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)?cd:u2,this.isPropagationStopped=u2,this}return dt(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=cd)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=cd)},persist:function(){},isPersistent:cd}),t}var cl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},g1=Vn(cl),xu=dt({},cl,{view:0,detail:0}),Q9=Vn(xu),dh,fh,El,Lp=dt({},xu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:v1,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"?(dh=e.screenX-El.screenX,fh=e.screenY-El.screenY):fh=dh=0,El=e),dh)},movementY:function(e){return"movementY"in e?e.movementY:fh}}),d2=Vn(Lp),Z9=dt({},Lp,{dataTransfer:0}),J9=Vn(Z9),eA=dt({},xu,{relatedTarget:0}),ph=Vn(eA),tA=dt({},cl,{animationName:0,elapsedTime:0,pseudoElement:0}),nA=Vn(tA),rA=dt({},cl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),iA=Vn(rA),oA=dt({},cl,{data:0}),f2=Vn(oA),aA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sA={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"},lA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cA(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lA[e])?!!t[e]:!1}function v1(){return cA}var uA=dt({},xu,{key:function(e){if(e.key){var t=aA[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"?sA[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:v1,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}}),dA=Vn(uA),fA=dt({},Lp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),p2=Vn(fA),pA=dt({},xu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:v1}),mA=Vn(pA),hA=dt({},cl,{propertyName:0,elapsedTime:0,pseudoElement:0}),gA=Vn(hA),vA=dt({},Lp,{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}),yA=Vn(vA),bA=[9,13,27,32],y1=vi&&"CompositionEvent"in window,lc=null;vi&&"documentMode"in document&&(lc=document.documentMode);var xA=vi&&"TextEvent"in window&&!lc,$5=vi&&(!y1||lc&&8<lc&&11>=lc),m2=" ",h2=!1;function z5(e,t){switch(e){case"keyup":return bA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function R5(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ya=!1;function SA(e,t){switch(e){case"compositionend":return R5(t);case"keypress":return t.which!==32?null:(h2=!0,m2);case"textInput":return e=t.data,e===m2&&h2?null:e;default:return null}}function wA(e,t){if(Ya)return e==="compositionend"||!y1&&z5(e,t)?(e=A5(),ef=h1=qi=null,Ya=!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 $5&&t.locale!=="ko"?null:t.data;default:return null}}var kA={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 g2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!kA[e.type]:t==="textarea"}function M5(e,t,n,r){d5(r),t=Hf(t,"onChange"),0<t.length&&(n=new g1("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var cc=null,Nc=null;function CA(e){H5(e,0)}function Np(e){var t=Ja(e);if(i5(t))return e}function jA(e,t){if(e==="change")return t}var I5=!1;if(vi){var mh;if(vi){var hh="oninput"in document;if(!hh){var v2=document.createElement("div");v2.setAttribute("oninput","return;"),hh=typeof v2.oninput=="function"}mh=hh}else mh=!1;I5=mh&&(!document.documentMode||9<document.documentMode)}function y2(){cc&&(cc.detachEvent("onpropertychange",L5),Nc=cc=null)}function L5(e){if(e.propertyName==="value"&&Np(Nc)){var t=[];M5(t,Nc,e,u1(e)),h5(CA,t)}}function PA(e,t,n){e==="focusin"?(y2(),cc=t,Nc=n,cc.attachEvent("onpropertychange",L5)):e==="focusout"&&y2()}function _A(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Np(Nc)}function TA(e,t){if(e==="click")return Np(t)}function EA(e,t){if(e==="input"||e==="change")return Np(t)}function AA(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Cr=typeof Object.is=="function"?Object.is:AA;function Dc(e,t){if(Cr(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(!B0.call(t,i)||!Cr(e[i],t[i]))return!1}return!0}function b2(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function x2(e,t){var n=b2(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=b2(n)}}function N5(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?N5(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function D5(){for(var e=window,t=Df();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Df(e.document)}return t}function b1(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 $A(e){var t=D5(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&N5(n.ownerDocument.documentElement,n)){if(r!==null&&b1(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=x2(n,o);var a=x2(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 zA=vi&&"documentMode"in document&&11>=document.documentMode,Qa=null,ag=null,uc=null,sg=!1;function S2(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;sg||Qa==null||Qa!==Df(r)||(r=Qa,"selectionStart"in r&&b1(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}),uc&&Dc(uc,r)||(uc=r,r=Hf(ag,"onSelect"),0<r.length&&(t=new g1("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Qa)))}function ud(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Za={animationend:ud("Animation","AnimationEnd"),animationiteration:ud("Animation","AnimationIteration"),animationstart:ud("Animation","AnimationStart"),transitionend:ud("Transition","TransitionEnd")},gh={},O5={};vi&&(O5=document.createElement("div").style,"AnimationEvent"in window||(delete Za.animationend.animation,delete Za.animationiteration.animation,delete Za.animationstart.animation),"TransitionEvent"in window||delete Za.transitionend.transition);function Dp(e){if(gh[e])return gh[e];if(!Za[e])return e;var t=Za[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in O5)return gh[e]=t[n];return e}var F5=Dp("animationend"),B5=Dp("animationiteration"),V5=Dp("animationstart"),W5=Dp("transitionend"),U5=new Map,w2="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 So(e,t){U5.set(e,t),Ta(t,[e])}for(var vh=0;vh<w2.length;vh++){var yh=w2[vh],RA=yh.toLowerCase(),MA=yh[0].toUpperCase()+yh.slice(1);So(RA,"on"+MA)}So(F5,"onAnimationEnd");So(B5,"onAnimationIteration");So(V5,"onAnimationStart");So("dblclick","onDoubleClick");So("focusin","onFocus");So("focusout","onBlur");So(W5,"onTransitionEnd");Fs("onMouseEnter",["mouseout","mouseover"]);Fs("onMouseLeave",["mouseout","mouseover"]);Fs("onPointerEnter",["pointerout","pointerover"]);Fs("onPointerLeave",["pointerout","pointerover"]);Ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ta("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ta("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(" "),IA=new Set("cancel close invalid load scroll toggle".split(" ").concat(Hl));function k2(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,R9(r,t,void 0,e),e.currentTarget=null}function H5(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;k2(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;k2(i,l,u),o=c}}}if(Ff)throw e=ng,Ff=!1,ng=null,e}function Ye(e,t){var n=t[fg];n===void 0&&(n=t[fg]=new Set);var r=e+"__bubble";n.has(r)||(G5(t,e,2,!1),n.add(r))}function bh(e,t,n){var r=0;t&&(r|=4),G5(n,e,r,t)}var dd="_reactListening"+Math.random().toString(36).slice(2);function Oc(e){if(!e[dd]){e[dd]=!0,Jk.forEach(function(n){n!=="selectionchange"&&(IA.has(n)||bh(n,!1,e),bh(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[dd]||(t[dd]=!0,bh("selectionchange",!1,t))}}function G5(e,t,n,r){switch(E5(t)){case 1:var i=X9;break;case 4:i=Y9;break;default:i=m1}n=i.bind(null,t,n,e),i=void 0,!tg||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 xh(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=Go(l),a===null)return;if(c=a.tag,c===5||c===6){r=o=a;continue e}l=l.parentNode}}r=r.return}h5(function(){var u=o,d=u1(n),f=[];e:{var p=U5.get(e);if(p!==void 0){var h=g1,v=e;switch(e){case"keypress":if(tf(n)===0)break e;case"keydown":case"keyup":h=dA;break;case"focusin":v="focus",h=ph;break;case"focusout":v="blur",h=ph;break;case"beforeblur":case"afterblur":h=ph;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=d2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=J9;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=mA;break;case F5:case B5:case V5:h=nA;break;case W5:h=gA;break;case"scroll":h=Q9;break;case"wheel":h=yA;break;case"copy":case"cut":case"paste":h=iA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=p2}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=Rc(g,b),w!=null&&y.push(Fc(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!==J0&&(v=n.relatedTarget||n.fromElement)&&(Go(v)||v[yi]))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?Go(v):null,v!==null&&(x=Ea(v),v!==x||v.tag!==5&&v.tag!==6)&&(v=null)):(h=null,v=u),h!==v)){if(y=d2,w="onMouseLeave",b="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(y=p2,w="onPointerLeave",b="onPointerEnter",g="pointer"),x=h==null?p:Ja(h),S=v==null?p:Ja(v),p=new y(w,g+"leave",h,n,d),p.target=x,p.relatedTarget=S,w=null,Go(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=Na(S))g++;for(S=0,w=b;w;w=Na(w))S++;for(;0<g-S;)y=Na(y),g--;for(;0<S-g;)b=Na(b),S--;for(;g--;){if(y===b||b!==null&&y===b.alternate)break t;y=Na(y),b=Na(b)}y=null}else y=null;h!==null&&C2(f,p,h,y,!1),v!==null&&x!==null&&C2(f,x,v,y,!0)}}e:{if(p=u?Ja(u):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var k=jA;else if(g2(p))if(I5)k=EA;else{k=_A;var P=PA}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(k=TA);if(k&&(k=k(e,u))){M5(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?Ja(u):window,e){case"focusin":(g2(P)||P.contentEditable==="true")&&(Qa=P,ag=u,uc=null);break;case"focusout":uc=ag=Qa=null;break;case"mousedown":sg=!0;break;case"contextmenu":case"mouseup":case"dragend":sg=!1,S2(f,n,d);break;case"selectionchange":if(zA)break;case"keydown":case"keyup":S2(f,n,d)}var j;if(y1)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else Ya?z5(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&($5&&n.locale!=="ko"&&(Ya||_!=="onCompositionStart"?_==="onCompositionEnd"&&Ya&&(j=A5()):(qi=d,h1="value"in qi?qi.value:qi.textContent,Ya=!0)),P=Hf(u,_),0<P.length&&(_=new f2(_,e,null,n,d),f.push({event:_,listeners:P}),j?_.data=j:(j=R5(n),j!==null&&(_.data=j)))),(j=xA?SA(e,n):wA(e,n))&&(u=Hf(u,"onBeforeInput"),0<u.length&&(d=new f2("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=j))}H5(f,t)})}function Fc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hf(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Rc(e,n),o!=null&&r.unshift(Fc(e,o,i)),o=Rc(e,t),o!=null&&r.push(Fc(e,o,i))),e=e.return}return r}function Na(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function C2(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=Rc(n,o),c!=null&&a.unshift(Fc(n,c,l))):i||(c=Rc(n,o),c!=null&&a.push(Fc(n,c,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var LA=/\r\n?/g,NA=/\u0000|\uFFFD/g;function j2(e){return(typeof e=="string"?e:""+e).replace(LA,`
`).replace(NA,"")}function fd(e,t,n){if(t=j2(t),j2(e)!==t&&n)throw Error(U(425))}function Gf(){}var lg=null,cg=null;function ug(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 dg=typeof setTimeout=="function"?setTimeout:void 0,DA=typeof clearTimeout=="function"?clearTimeout:void 0,P2=typeof Promise=="function"?Promise:void 0,OA=typeof queueMicrotask=="function"?queueMicrotask:typeof P2<"u"?function(e){return P2.resolve(null).then(e).catch(FA)}:dg;function FA(e){setTimeout(function(){throw e})}function Sh(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),Lc(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Lc(t)}function io(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 _2(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 ul=Math.random().toString(36).slice(2),Dr="__reactFiber$"+ul,Bc="__reactProps$"+ul,yi="__reactContainer$"+ul,fg="__reactEvents$"+ul,BA="__reactListeners$"+ul,VA="__reactHandles$"+ul;function Go(e){var t=e[Dr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yi]||n[Dr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_2(e);e!==null;){if(n=e[Dr])return n;e=_2(e)}return t}e=n,n=e.parentNode}return null}function Su(e){return e=e[Dr]||e[yi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ja(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(U(33))}function Op(e){return e[Bc]||null}var pg=[],es=-1;function wo(e){return{current:e}}function Je(e){0>es||(e.current=pg[es],pg[es]=null,es--)}function qe(e,t){es++,pg[es]=e.current,e.current=t}var po={},an=wo(po),Sn=wo(!1),pa=po;function Bs(e,t){var n=e.type.contextTypes;if(!n)return po;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 wn(e){return e=e.childContextTypes,e!=null}function qf(){Je(Sn),Je(an)}function T2(e,t,n){if(an.current!==po)throw Error(U(168));qe(an,t),qe(Sn,n)}function q5(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,P9(e)||"Unknown",i));return dt({},n,r)}function Kf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||po,pa=an.current,qe(an,e),qe(Sn,Sn.current),!0}function E2(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=q5(e,t,pa),r.__reactInternalMemoizedMergedChildContext=e,Je(Sn),Je(an),qe(an,e)):Je(Sn),qe(Sn,n)}var ti=null,Fp=!1,wh=!1;function K5(e){ti===null?ti=[e]:ti.push(e)}function WA(e){Fp=!0,K5(e)}function ko(){if(!wh&&ti!==null){wh=!0;var e=0,t=Be;try{var n=ti;for(Be=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ti=null,Fp=!1}catch(i){throw ti!==null&&(ti=ti.slice(e+1)),b5(d1,ko),i}finally{Be=t,wh=!1}}return null}var ts=[],ns=0,Xf=null,Yf=0,Qn=[],Zn=0,ma=null,ai=1,si="";function Oo(e,t){ts[ns++]=Yf,ts[ns++]=Xf,Xf=e,Yf=t}function X5(e,t,n){Qn[Zn++]=ai,Qn[Zn++]=si,Qn[Zn++]=ma,ma=e;var r=ai;e=si;var i=32-xr(r)-1;r&=~(1<<i),n+=1;var o=32-xr(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,ai=1<<32-xr(t)+i|n<<i|r,si=o+e}else ai=1<<o|n<<i|r,si=e}function x1(e){e.return!==null&&(Oo(e,1),X5(e,1,0))}function S1(e){for(;e===Xf;)Xf=ts[--ns],ts[ns]=null,Yf=ts[--ns],ts[ns]=null;for(;e===ma;)ma=Qn[--Zn],Qn[Zn]=null,si=Qn[--Zn],Qn[Zn]=null,ai=Qn[--Zn],Qn[Zn]=null}var $n=null,An=null,ot=!1,gr=null;function Y5(e,t){var n=Jn(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 A2(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,$n=e,An=io(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,$n=e,An=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ma!==null?{id:ai,overflow:si}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Jn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,$n=e,An=null,!0):!1;default:return!1}}function mg(e){return(e.mode&1)!==0&&(e.flags&128)===0}function hg(e){if(ot){var t=An;if(t){var n=t;if(!A2(e,t)){if(mg(e))throw Error(U(418));t=io(n.nextSibling);var r=$n;t&&A2(e,t)?Y5(r,n):(e.flags=e.flags&-4097|2,ot=!1,$n=e)}}else{if(mg(e))throw Error(U(418));e.flags=e.flags&-4097|2,ot=!1,$n=e}}}function $2(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;$n=e}function pd(e){if(e!==$n)return!1;if(!ot)return $2(e),ot=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ug(e.type,e.memoizedProps)),t&&(t=An)){if(mg(e))throw Q5(),Error(U(418));for(;t;)Y5(e,t),t=io(t.nextSibling)}if($2(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){An=io(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}An=null}}else An=$n?io(e.stateNode.nextSibling):null;return!0}function Q5(){for(var e=An;e;)e=io(e.nextSibling)}function Vs(){An=$n=null,ot=!1}function w1(e){gr===null?gr=[e]:gr.push(e)}var UA=Pi.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 md(e,t){throw e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function z2(e){var t=e._init;return t(e._payload)}function Z5(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=lo(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=Eh(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===Xa?d(b,g,S.props.children,w,S.key):g!==null&&(g.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Fi&&z2(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=Ah(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=na(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=Eh(""+g,b.mode,S),g.return=b,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case rd:return S=cf(g.type,g.key,g.props,null,b.mode,S),S.ref=Al(b,null,g),S.return=b,S;case Ka:return g=Ah(g,b.mode,S),g.return=b,g;case Fi:var w=g._init;return f(b,w(g._payload),S)}if(Wl(g)||jl(g))return g=na(g,b.mode,S,null),g.return=b,g;md(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 rd:return S.key===k?c(b,g,S,w):null;case Ka:return S.key===k?u(b,g,S,w):null;case Fi: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);md(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 rd:return b=b.get(w.key===null?S:w.key)||null,c(g,b,w,k);case Ka:return b=b.get(w.key===null?S:w.key)||null,u(g,b,w,k);case Fi: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);md(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),ot&&Oo(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 ot&&Oo(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)}),ot&&Oo(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),ot&&Oo(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 ot&&Oo(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(K){return t(b,K)}),ot&&Oo(b,_),k}function x(b,g,S,w){if(typeof S=="object"&&S!==null&&S.type===Xa&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case rd:e:{for(var k=S.key,P=g;P!==null;){if(P.key===k){if(k=S.type,k===Xa){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===Fi&&z2(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===Xa?(g=na(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 Ka: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=Ah(S,b.mode,w),g.return=b,b=g}return a(b);case Fi: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);md(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=Eh(S,b.mode,w),g.return=b,b=g),a(b)):n(b,g)}return x}var Ws=Z5(!0),J5=Z5(!1),Qf=wo(null),Zf=null,rs=null,k1=null;function C1(){k1=rs=Zf=null}function j1(e){var t=Qf.current;Je(Qf),e._currentValue=t}function gg(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 _s(e,t){Zf=e,k1=rs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(xn=!0),e.firstContext=null)}function rr(e){var t=e._currentValue;if(k1!==e)if(e={context:e,memoizedValue:t,next:null},rs===null){if(Zf===null)throw Error(U(308));rs=e,Zf.dependencies={lanes:0,firstContext:e}}else rs=rs.next=e;return t}var qo=null;function P1(e){qo===null?qo=[e]:qo.push(e)}function eC(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,P1(t)):(n.next=i.next,i.next=n),t.interleaved=n,bi(e,r)}function bi(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 Bi=!1;function _1(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function tC(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 di(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function oo(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,bi(e,n)}return i=r.interleaved,i===null?(t.next=t,P1(r)):(t.next=i.next,i.next=t),r.interleaved=t,bi(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,f1(e,n)}}function R2(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 Jf(e,t,n,r){var i=e.updateQueue;Bi=!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=dt({},f,p);break e;case 2:Bi=!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);ga|=a,e.lanes=a,e.memoizedState=f}}function M2(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 wu={},Wr=wo(wu),Vc=wo(wu),Wc=wo(wu);function Ko(e){if(e===wu)throw Error(U(174));return e}function T1(e,t){switch(qe(Wc,t),qe(Vc,e),qe(Wr,wu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Y0(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Y0(t,e)}Je(Wr),qe(Wr,t)}function Us(){Je(Wr),Je(Vc),Je(Wc)}function nC(e){Ko(Wc.current);var t=Ko(Wr.current),n=Y0(t,e.type);t!==n&&(qe(Vc,e),qe(Wr,n))}function E1(e){Vc.current===e&&(Je(Wr),Je(Vc))}var st=wo(0);function ep(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 kh=[];function A1(){for(var e=0;e<kh.length;e++)kh[e]._workInProgressVersionPrimary=null;kh.length=0}var rf=Pi.ReactCurrentDispatcher,Ch=Pi.ReactCurrentBatchConfig,ha=0,ct=null,Tt=null,It=null,tp=!1,dc=!1,Uc=0,HA=0;function Qt(){throw Error(U(321))}function $1(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Cr(e[n],t[n]))return!1;return!0}function z1(e,t,n,r,i,o){if(ha=o,ct=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,rf.current=e===null||e.memoizedState===null?XA:YA,e=n(r,i),dc){o=0;do{if(dc=!1,Uc=0,25<=o)throw Error(U(301));o+=1,It=Tt=null,t.updateQueue=null,rf.current=QA,e=n(r,i)}while(dc)}if(rf.current=np,t=Tt!==null&&Tt.next!==null,ha=0,It=Tt=ct=null,tp=!1,t)throw Error(U(300));return e}function R1(){var e=Uc!==0;return Uc=0,e}function Mr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return It===null?ct.memoizedState=It=e:It=It.next=e,It}function ir(){if(Tt===null){var e=ct.alternate;e=e!==null?e.memoizedState:null}else e=Tt.next;var t=It===null?ct.memoizedState:It.next;if(t!==null)It=t,Tt=e;else{if(e===null)throw Error(U(310));Tt=e,e={memoizedState:Tt.memoizedState,baseState:Tt.baseState,baseQueue:Tt.baseQueue,queue:Tt.queue,next:null},It===null?ct.memoizedState=It=e:It=It.next=e}return It}function Hc(e,t){return typeof t=="function"?t(e):t}function jh(e){var t=ir(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var r=Tt,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((ha&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,ct.lanes|=d,ga|=d}u=u.next}while(u!==null&&u!==o);c===null?a=r:c.next=l,Cr(r,t.memoizedState)||(xn=!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,ct.lanes|=o,ga|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ph(e){var t=ir(),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);Cr(o,t.memoizedState)||(xn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function rC(){}function iC(e,t){var n=ct,r=ir(),i=t(),o=!Cr(r.memoizedState,i);if(o&&(r.memoizedState=i,xn=!0),r=r.queue,M1(sC.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||It!==null&&It.memoizedState.tag&1){if(n.flags|=2048,Gc(9,aC.bind(null,n,r,i,t),void 0,null),Lt===null)throw Error(U(349));ha&30||oC(n,t,i)}return i}function oC(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ct.updateQueue,t===null?(t={lastEffect:null,stores:null},ct.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function aC(e,t,n,r){t.value=n,t.getSnapshot=r,lC(t)&&cC(e)}function sC(e,t,n){return n(function(){lC(t)&&cC(e)})}function lC(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Cr(e,n)}catch{return!0}}function cC(e){var t=bi(e,1);t!==null&&Sr(t,e,1,-1)}function I2(e){var t=Mr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Hc,lastRenderedState:e},t.queue=e,e=e.dispatch=KA.bind(null,ct,e),[t.memoizedState,e]}function Gc(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ct.updateQueue,t===null?(t={lastEffect:null,stores:null},ct.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 uC(){return ir().memoizedState}function of(e,t,n,r){var i=Mr();ct.flags|=e,i.memoizedState=Gc(1|t,n,void 0,r===void 0?null:r)}function Bp(e,t,n,r){var i=ir();r=r===void 0?null:r;var o=void 0;if(Tt!==null){var a=Tt.memoizedState;if(o=a.destroy,r!==null&&$1(r,a.deps)){i.memoizedState=Gc(t,n,o,r);return}}ct.flags|=e,i.memoizedState=Gc(1|t,n,o,r)}function L2(e,t){return of(8390656,8,e,t)}function M1(e,t){return Bp(2048,8,e,t)}function dC(e,t){return Bp(4,2,e,t)}function fC(e,t){return Bp(4,4,e,t)}function pC(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 mC(e,t,n){return n=n!=null?n.concat([e]):null,Bp(4,4,pC.bind(null,t,e),n)}function I1(){}function hC(e,t){var n=ir();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$1(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function gC(e,t){var n=ir();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$1(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function vC(e,t,n){return ha&21?(Cr(n,t)||(n=w5(),ct.lanes|=n,ga|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,xn=!0),e.memoizedState=n)}function GA(e,t){var n=Be;Be=n!==0&&4>n?n:4,e(!0);var r=Ch.transition;Ch.transition={};try{e(!1),t()}finally{Be=n,Ch.transition=r}}function yC(){return ir().memoizedState}function qA(e,t,n){var r=so(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bC(e))xC(t,n);else if(n=eC(e,t,n,r),n!==null){var i=dn();Sr(n,e,r,i),SC(n,t,r)}}function KA(e,t,n){var r=so(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bC(e))xC(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,Cr(l,a)){var c=t.interleaved;c===null?(i.next=i,P1(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=eC(e,t,i,r),n!==null&&(i=dn(),Sr(n,e,r,i),SC(n,t,r))}}function bC(e){var t=e.alternate;return e===ct||t!==null&&t===ct}function xC(e,t){dc=tp=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function SC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,f1(e,n)}}var np={readContext:rr,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useInsertionEffect:Qt,useLayoutEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useMutableSource:Qt,useSyncExternalStore:Qt,useId:Qt,unstable_isNewReconciler:!1},XA={readContext:rr,useCallback:function(e,t){return Mr().memoizedState=[e,t===void 0?null:t],e},useContext:rr,useEffect:L2,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,of(4194308,4,pC.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=Mr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mr();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=qA.bind(null,ct,e),[r.memoizedState,e]},useRef:function(e){var t=Mr();return e={current:e},t.memoizedState=e},useState:I2,useDebugValue:I1,useDeferredValue:function(e){return Mr().memoizedState=e},useTransition:function(){var e=I2(!1),t=e[0];return e=GA.bind(null,e[1]),Mr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ct,i=Mr();if(ot){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Lt===null)throw Error(U(349));ha&30||oC(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,L2(sC.bind(null,r,o,e),[e]),r.flags|=2048,Gc(9,aC.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Mr(),t=Lt.identifierPrefix;if(ot){var n=si,r=ai;n=(r&~(1<<32-xr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Uc++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=HA++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},YA={readContext:rr,useCallback:hC,useContext:rr,useEffect:M1,useImperativeHandle:mC,useInsertionEffect:dC,useLayoutEffect:fC,useMemo:gC,useReducer:jh,useRef:uC,useState:function(){return jh(Hc)},useDebugValue:I1,useDeferredValue:function(e){var t=ir();return vC(t,Tt.memoizedState,e)},useTransition:function(){var e=jh(Hc)[0],t=ir().memoizedState;return[e,t]},useMutableSource:rC,useSyncExternalStore:iC,useId:yC,unstable_isNewReconciler:!1},QA={readContext:rr,useCallback:hC,useContext:rr,useEffect:M1,useImperativeHandle:mC,useInsertionEffect:dC,useLayoutEffect:fC,useMemo:gC,useReducer:Ph,useRef:uC,useState:function(){return Ph(Hc)},useDebugValue:I1,useDeferredValue:function(e){var t=ir();return Tt===null?t.memoizedState=e:vC(t,Tt.memoizedState,e)},useTransition:function(){var e=Ph(Hc)[0],t=ir().memoizedState;return[e,t]},useMutableSource:rC,useSyncExternalStore:iC,useId:yC,unstable_isNewReconciler:!1};function mr(e,t){if(e&&e.defaultProps){t=dt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function vg(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:dt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vp={isMounted:function(e){return(e=e._reactInternals)?Ea(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=dn(),i=so(e),o=di(r,i);o.payload=t,n!=null&&(o.callback=n),t=oo(e,o,i),t!==null&&(Sr(t,e,i,r),nf(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=dn(),i=so(e),o=di(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=oo(e,o,i),t!==null&&(Sr(t,e,i,r),nf(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=dn(),r=so(e),i=di(n,r);i.tag=2,t!=null&&(i.callback=t),t=oo(e,i,r),t!==null&&(Sr(t,e,r,n),nf(t,e,r))}};function N2(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?!Dc(n,r)||!Dc(i,o):!0}function wC(e,t,n){var r=!1,i=po,o=t.contextType;return typeof o=="object"&&o!==null?o=rr(o):(i=wn(t)?pa:an.current,r=t.contextTypes,o=(r=r!=null)?Bs(e,i):po),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Vp,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function D2(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&&Vp.enqueueReplaceState(t,t.state,null)}function yg(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},_1(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=rr(o):(o=wn(t)?pa:an.current,i.context=Bs(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(vg(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&&Vp.enqueueReplaceState(i,i.state,null),Jf(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Hs(e,t){try{var n="",r=t;do n+=j9(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 _h(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bg(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ZA=typeof WeakMap=="function"?WeakMap:Map;function kC(e,t,n){n=di(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ip||(ip=!0,Eg=r),bg(e,t)},n}function CC(e,t,n){n=di(-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(){bg(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){bg(e,t),typeof r!="function"&&(ao===null?ao=new Set([this]):ao.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function O2(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ZA;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=f$.bind(null,e,t,n),t.then(e,e))}function F2(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 B2(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=di(-1,1),t.tag=2,oo(n,t,1))),n.lanes|=1),e)}var JA=Pi.ReactCurrentOwner,xn=!1;function ln(e,t,n,r){t.child=e===null?J5(t,null,n,r):Ws(t,e.child,n,r)}function V2(e,t,n,r,i){n=n.render;var o=t.ref;return _s(t,i),r=z1(e,t,n,r,o,i),n=R1(),e!==null&&!xn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,xi(e,t,i)):(ot&&n&&x1(t),t.flags|=1,ln(e,t,r,i),t.child)}function W2(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!W1(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,jC(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:Dc,n(a,r)&&e.ref===t.ref)return xi(e,t,i)}return t.flags|=1,e=lo(o,r),e.ref=t.ref,e.return=t,t.child=e}function jC(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Dc(o,r)&&e.ref===t.ref)if(xn=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(xn=!0);else return t.lanes=e.lanes,xi(e,t,i)}return xg(e,t,n,r,i)}function PC(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(os,En),En|=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(os,En),En|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,qe(os,En),En|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,qe(os,En),En|=r;return ln(e,t,i,n),t.child}function _C(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function xg(e,t,n,r,i){var o=wn(n)?pa:an.current;return o=Bs(t,o),_s(t,i),n=z1(e,t,n,r,o,i),r=R1(),e!==null&&!xn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,xi(e,t,i)):(ot&&r&&x1(t),t.flags|=1,ln(e,t,n,i),t.child)}function U2(e,t,n,r,i){if(wn(n)){var o=!0;Kf(t)}else o=!1;if(_s(t,i),t.stateNode===null)af(e,t),wC(t,n,r),yg(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=rr(u):(u=wn(n)?pa:an.current,u=Bs(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)&&D2(t,a,r,u),Bi=!1;var p=t.memoizedState;a.state=p,Jf(t,r,a,i),c=t.memoizedState,l!==r||p!==c||Sn.current||Bi?(typeof d=="function"&&(vg(t,n,d,r),c=t.memoizedState),(l=Bi||N2(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,tC(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:mr(t.type,l),a.props=u,f=t.pendingProps,p=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=rr(c):(c=wn(n)?pa:an.current,c=Bs(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)&&D2(t,a,r,c),Bi=!1,p=t.memoizedState,a.state=p,Jf(t,r,a,i);var v=t.memoizedState;l!==f||p!==v||Sn.current||Bi?(typeof h=="function"&&(vg(t,n,h,r),v=t.memoizedState),(u=Bi||N2(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 Sg(e,t,n,r,o,i)}function Sg(e,t,n,r,i,o){_C(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&E2(t,n,!1),xi(e,t,o);r=t.stateNode,JA.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Ws(t,e.child,null,o),t.child=Ws(t,null,l,o)):ln(e,t,l,o),t.memoizedState=r.state,i&&E2(t,n,!0),t.child}function TC(e){var t=e.stateNode;t.pendingContext?T2(e,t.pendingContext,t.pendingContext!==t.context):t.context&&T2(e,t.context,!1),T1(e,t.containerInfo)}function H2(e,t,n,r,i){return Vs(),w1(i),t.flags|=256,ln(e,t,n,r),t.child}var wg={dehydrated:null,treeContext:null,retryLane:0};function kg(e){return{baseLanes:e,cachePool:null,transitions:null}}function EC(e,t,n){var r=t.pendingProps,i=st.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(st,i&1),e===null)return hg(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=Hp(a,r,0,null),e=na(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=kg(n),t.memoizedState=wg,e):L1(t,a));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return e$(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=lo(i,c),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=lo(l,o):(o=na(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?kg(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=wg,r}return o=e.child,e=o.sibling,r=lo(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 L1(e,t){return t=Hp({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function hd(e,t,n,r){return r!==null&&w1(r),Ws(t,e.child,null,n),e=L1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function e$(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=_h(Error(U(422))),hd(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Hp({mode:"visible",children:r.children},i,0,null),o=na(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Ws(t,e.child,null,a),t.child.memoizedState=kg(a),t.memoizedState=wg,o);if(!(t.mode&1))return hd(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=_h(o,r,void 0),hd(e,t,a,r)}if(l=(a&e.childLanes)!==0,xn||l){if(r=Lt,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,bi(e,i),Sr(r,e,i,-1))}return V1(),r=_h(Error(U(421))),hd(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=p$.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,An=io(i.nextSibling),$n=t,ot=!0,gr=null,e!==null&&(Qn[Zn++]=ai,Qn[Zn++]=si,Qn[Zn++]=ma,ai=e.id,si=e.overflow,ma=t),t=L1(t,r.children),t.flags|=4096,t)}function G2(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),gg(e.return,t,n)}function Th(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 AC(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ln(e,t,r.children,n),r=st.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&&G2(e,n,t);else if(e.tag===19)G2(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(st,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&&ep(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Th(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&&ep(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Th(t,!0,n,null,o);break;case"together":Th(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 xi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ga|=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=lo(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=lo(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function t$(e,t,n){switch(t.tag){case 3:TC(t),Vs();break;case 5:nC(t);break;case 1:wn(t.type)&&Kf(t);break;case 4:T1(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;qe(Qf,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(qe(st,st.current&1),t.flags|=128,null):n&t.child.childLanes?EC(e,t,n):(qe(st,st.current&1),e=xi(e,t,n),e!==null?e.sibling:null);qe(st,st.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return AC(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),qe(st,st.current),r)break;return null;case 22:case 23:return t.lanes=0,PC(e,t,n)}return xi(e,t,n)}var $C,Cg,zC,RC;$C=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}};Cg=function(){};zC=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ko(Wr.current);var o=null;switch(n){case"input":i=G0(e,i),r=G0(e,r),o=[];break;case"select":i=dt({},i,{value:void 0}),r=dt({},r,{value:void 0}),o=[];break;case"textarea":i=X0(e,i),r=X0(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Gf)}Q0(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"&&($c.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"&&($c.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Ye("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)}};RC=function(e,t,n,r){n!==r&&(t.flags|=4)};function $l(e,t){if(!ot)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 Zt(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 n$(e,t,n){var r=t.pendingProps;switch(S1(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zt(t),null;case 1:return wn(t.type)&&qf(),Zt(t),null;case 3:return r=t.stateNode,Us(),Je(Sn),Je(an),A1(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(pd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,gr!==null&&(zg(gr),gr=null))),Cg(e,t),Zt(t),null;case 5:E1(t);var i=Ko(Wc.current);if(n=t.type,e!==null&&t.stateNode!=null)zC(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 Zt(t),null}if(e=Ko(Wr.current),pd(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Dr]=t,r[Bc]=o,e=(t.mode&1)!==0,n){case"dialog":Ye("cancel",r),Ye("close",r);break;case"iframe":case"object":case"embed":Ye("load",r);break;case"video":case"audio":for(i=0;i<Hl.length;i++)Ye(Hl[i],r);break;case"source":Ye("error",r);break;case"img":case"image":case"link":Ye("error",r),Ye("load",r);break;case"details":Ye("toggle",r);break;case"input":t2(r,o),Ye("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Ye("invalid",r);break;case"textarea":r2(r,o),Ye("invalid",r)}Q0(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&&fd(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&fd(r.textContent,l,e),i=["children",""+l]):$c.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&Ye("scroll",r)}switch(n){case"input":id(r),n2(r,o,!0);break;case"textarea":id(r),i2(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Gf)}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=s5(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[Dr]=t,e[Bc]=r,$C(e,t,!1,!1),t.stateNode=e;e:{switch(a=Z0(n,r),n){case"dialog":Ye("cancel",e),Ye("close",e),i=r;break;case"iframe":case"object":case"embed":Ye("load",e),i=r;break;case"video":case"audio":for(i=0;i<Hl.length;i++)Ye(Hl[i],e);i=r;break;case"source":Ye("error",e),i=r;break;case"img":case"image":case"link":Ye("error",e),Ye("load",e),i=r;break;case"details":Ye("toggle",e),i=r;break;case"input":t2(e,r),i=G0(e,r),Ye("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=dt({},r,{value:void 0}),Ye("invalid",e);break;case"textarea":r2(e,r),i=X0(e,r),Ye("invalid",e);break;default:i=r}Q0(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var c=l[o];o==="style"?u5(e,c):o==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&l5(e,c)):o==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&zc(e,c):typeof c=="number"&&zc(e,""+c):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&($c.hasOwnProperty(o)?c!=null&&o==="onScroll"&&Ye("scroll",e):c!=null&&a1(e,o,c,a))}switch(n){case"input":id(e),n2(e,r,!1);break;case"textarea":id(e),i2(e);break;case"option":r.value!=null&&e.setAttribute("value",""+fo(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?ks(e,!!r.multiple,o,!1):r.defaultValue!=null&&ks(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Gf)}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 Zt(t),null;case 6:if(e&&t.stateNode!=null)RC(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(U(166));if(n=Ko(Wc.current),Ko(Wr.current),pd(t)){if(r=t.stateNode,n=t.memoizedProps,r[Dr]=t,(o=r.nodeValue!==n)&&(e=$n,e!==null))switch(e.tag){case 3:fd(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&fd(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Dr]=t,t.stateNode=r}return Zt(t),null;case 13:if(Je(st),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ot&&An!==null&&t.mode&1&&!(t.flags&128))Q5(),Vs(),t.flags|=98560,o=!1;else if(o=pd(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[Dr]=t}else Vs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Zt(t),o=!1}else gr!==null&&(zg(gr),gr=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||st.current&1?At===0&&(At=3):V1())),t.updateQueue!==null&&(t.flags|=4),Zt(t),null);case 4:return Us(),Cg(e,t),e===null&&Oc(t.stateNode.containerInfo),Zt(t),null;case 10:return j1(t.type._context),Zt(t),null;case 17:return wn(t.type)&&qf(),Zt(t),null;case 19:if(Je(st),o=t.memoizedState,o===null)return Zt(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)$l(o,!1);else{if(At!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=ep(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(st,st.current&1|2),t.child}e=e.sibling}o.tail!==null&&bt()>Gs&&(t.flags|=128,r=!0,$l(o,!1),t.lanes=4194304)}else{if(!r)if(e=ep(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&&!ot)return Zt(t),null}else 2*bt()-o.renderingStartTime>Gs&&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=bt(),t.sibling=null,n=st.current,qe(st,r?n&1|2:n&1),t):(Zt(t),null);case 22:case 23:return B1(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?En&1073741824&&(Zt(t),t.subtreeFlags&6&&(t.flags|=8192)):Zt(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function r$(e,t){switch(S1(t),t.tag){case 1:return wn(t.type)&&qf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Us(),Je(Sn),Je(an),A1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return E1(t),null;case 13:if(Je(st),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Vs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Je(st),null;case 4:return Us(),null;case 10:return j1(t.type._context),null;case 22:case 23:return B1(),null;case 24:return null;default:return null}}var gd=!1,nn=!1,i$=typeof WeakSet=="function"?WeakSet:Set,ie=null;function is(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ht(e,t,r)}else n.current=null}function jg(e,t,n){try{n()}catch(r){ht(e,t,r)}}var q2=!1;function o$(e,t){if(lg=Wf,e=D5(),b1(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(cg={focusedElem:e,selectionRange:n},Wf=!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:mr(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){ht(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,ie=e;break}ie=t.return}return v=q2,q2=!1,v}function fc(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&&jg(t,n,o)}i=i.next}while(i!==r)}}function Wp(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 Pg(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 MC(e){var t=e.alternate;t!==null&&(e.alternate=null,MC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Dr],delete t[Bc],delete t[fg],delete t[BA],delete t[VA])),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 IC(e){return e.tag===5||e.tag===3||e.tag===4}function K2(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||IC(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 _g(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=Gf));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}function Tg(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(Tg(e,t,n),e=e.sibling;e!==null;)Tg(e,t,n),e=e.sibling}var Ft=null,hr=!1;function Ri(e,t,n){for(n=n.child;n!==null;)LC(e,t,n),n=n.sibling}function LC(e,t,n){if(Vr&&typeof Vr.onCommitFiberUnmount=="function")try{Vr.onCommitFiberUnmount(Ip,n)}catch{}switch(n.tag){case 5:nn||is(n,t);case 6:var r=Ft,i=hr;Ft=null,Ri(e,t,n),Ft=r,hr=i,Ft!==null&&(hr?(e=Ft,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ft.removeChild(n.stateNode));break;case 18:Ft!==null&&(hr?(e=Ft,n=n.stateNode,e.nodeType===8?Sh(e.parentNode,n):e.nodeType===1&&Sh(e,n),Lc(e)):Sh(Ft,n.stateNode));break;case 4:r=Ft,i=hr,Ft=n.stateNode.containerInfo,hr=!0,Ri(e,t,n),Ft=r,hr=i;break;case 0:case 11:case 14:case 15:if(!nn&&(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)&&jg(n,t,a),i=i.next}while(i!==r)}Ri(e,t,n);break;case 1:if(!nn&&(is(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ht(n,t,l)}Ri(e,t,n);break;case 21:Ri(e,t,n);break;case 22:n.mode&1?(nn=(r=nn)||n.memoizedState!==null,Ri(e,t,n),nn=r):Ri(e,t,n);break;default:Ri(e,t,n)}}function X2(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new i$),t.forEach(function(r){var i=m$.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ur(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:Ft=l.stateNode,hr=!1;break e;case 3:Ft=l.stateNode.containerInfo,hr=!0;break e;case 4:Ft=l.stateNode.containerInfo,hr=!0;break e}l=l.return}if(Ft===null)throw Error(U(160));LC(o,a,i),Ft=null,hr=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(u){ht(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)NC(t,e),t=t.sibling}function NC(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ur(t,e),Er(e),r&4){try{fc(3,e,e.return),Wp(3,e)}catch(y){ht(e,e.return,y)}try{fc(5,e,e.return)}catch(y){ht(e,e.return,y)}}break;case 1:ur(t,e),Er(e),r&512&&n!==null&&is(n,n.return);break;case 5:if(ur(t,e),Er(e),r&512&&n!==null&&is(n,n.return),e.flags&32){var i=e.stateNode;try{zc(i,"")}catch(y){ht(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&&o5(i,o),Z0(l,a);var u=Z0(l,o);for(a=0;a<c.length;a+=2){var d=c[a],f=c[a+1];d==="style"?u5(i,f):d==="dangerouslySetInnerHTML"?l5(i,f):d==="children"?zc(i,f):a1(i,d,f,u)}switch(l){case"input":q0(i,o);break;case"textarea":a5(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?ks(i,!!o.multiple,h,!1):p!==!!o.multiple&&(o.defaultValue!=null?ks(i,!!o.multiple,o.defaultValue,!0):ks(i,!!o.multiple,o.multiple?[]:"",!1))}i[Bc]=o}catch(y){ht(e,e.return,y)}}break;case 6:if(ur(t,e),Er(e),r&4){if(e.stateNode===null)throw Error(U(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){ht(e,e.return,y)}}break;case 3:if(ur(t,e),Er(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Lc(t.containerInfo)}catch(y){ht(e,e.return,y)}break;case 4:ur(t,e),Er(e);break;case 13:ur(t,e),Er(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(O1=bt())),r&4&&X2(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(nn=(u=nn)||d,ur(t,e),nn=u):ur(t,e),Er(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:fc(4,p,p.return);break;case 1:is(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){ht(r,n,y)}}break;case 5:is(p,p.return);break;case 22:if(p.memoizedState!==null){Q2(f);continue}}h!==null?(h.return=p,ie=h):Q2(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=c5("display",a))}catch(y){ht(e,e.return,y)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(y){ht(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:ur(t,e),Er(e),r&4&&X2(e);break;case 21:break;default:ur(t,e),Er(e)}}function Er(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(IC(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&&(zc(i,""),r.flags&=-33);var o=K2(e);Tg(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,l=K2(e);_g(e,l,a);break;default:throw Error(U(161))}}catch(c){ht(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function a$(e,t,n){ie=e,DC(e)}function DC(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||gd;if(!a){var l=i.alternate,c=l!==null&&l.memoizedState!==null||nn;l=gd;var u=nn;if(gd=a,(nn=c)&&!u)for(ie=i;ie!==null;)a=ie,c=a.child,a.tag===22&&a.memoizedState!==null?Z2(i):c!==null?(c.return=a,ie=c):Z2(i);for(;o!==null;)ie=o,DC(o),o=o.sibling;ie=i,gd=l,nn=u}Y2(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,ie=o):Y2(e)}}function Y2(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:nn||Wp(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!nn)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:mr(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&M2(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}M2(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&&Lc(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(U(163))}nn||t.flags&512&&Pg(t)}catch(p){ht(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 Q2(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 Z2(e){for(;ie!==null;){var t=ie;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Wp(4,t)}catch(c){ht(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(c){ht(t,i,c)}}var o=t.return;try{Pg(t)}catch(c){ht(t,o,c)}break;case 5:var a=t.return;try{Pg(t)}catch(c){ht(t,a,c)}}}catch(c){ht(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 s$=Math.ceil,rp=Pi.ReactCurrentDispatcher,N1=Pi.ReactCurrentOwner,tr=Pi.ReactCurrentBatchConfig,ze=0,Lt=null,Ct=null,qt=0,En=0,os=wo(0),At=0,qc=null,ga=0,Up=0,D1=0,pc=null,yn=null,O1=0,Gs=1/0,ei=null,ip=!1,Eg=null,ao=null,vd=!1,Ki=null,op=0,mc=0,Ag=null,sf=-1,lf=0;function dn(){return ze&6?bt():sf!==-1?sf:sf=bt()}function so(e){return e.mode&1?ze&2&&qt!==0?qt&-qt:UA.transition!==null?(lf===0&&(lf=w5()),lf):(e=Be,e!==0||(e=window.event,e=e===void 0?16:E5(e.type)),e):1}function Sr(e,t,n,r){if(50<mc)throw mc=0,Ag=null,Error(U(185));bu(e,n,r),(!(ze&2)||e!==Lt)&&(e===Lt&&(!(ze&2)&&(Up|=n),At===4&&Ui(e,qt)),kn(e,r),n===1&&ze===0&&!(t.mode&1)&&(Gs=bt()+500,Fp&&ko()))}function kn(e,t){var n=e.callbackNode;U9(e,t);var r=Vf(e,e===Lt?qt:0);if(r===0)n!==null&&s2(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&s2(n),t===1)e.tag===0?WA(J2.bind(null,e)):K5(J2.bind(null,e)),OA(function(){!(ze&6)&&ko()}),n=null;else{switch(k5(r)){case 1:n=d1;break;case 4:n=x5;break;case 16:n=Bf;break;case 536870912:n=S5;break;default:n=Bf}n=GC(n,OC.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function OC(e,t){if(sf=-1,lf=0,ze&6)throw Error(U(327));var n=e.callbackNode;if(Ts()&&e.callbackNode!==n)return null;var r=Vf(e,e===Lt?qt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ap(e,r);else{t=r;var i=ze;ze|=2;var o=BC();(Lt!==e||qt!==t)&&(ei=null,Gs=bt()+500,ta(e,t));do try{u$();break}catch(l){FC(e,l)}while(!0);C1(),rp.current=o,ze=i,Ct!==null?t=0:(Lt=null,qt=0,t=At)}if(t!==0){if(t===2&&(i=rg(e),i!==0&&(r=i,t=$g(e,i))),t===1)throw n=qc,ta(e,0),Ui(e,r),kn(e,bt()),n;if(t===6)Ui(e,r);else{if(i=e.current.alternate,!(r&30)&&!l$(i)&&(t=ap(e,r),t===2&&(o=rg(e),o!==0&&(r=o,t=$g(e,o))),t===1))throw n=qc,ta(e,0),Ui(e,r),kn(e,bt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(U(345));case 2:Fo(e,yn,ei);break;case 3:if(Ui(e,r),(r&130023424)===r&&(t=O1+500-bt(),10<t)){if(Vf(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){dn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=dg(Fo.bind(null,e,yn,ei),t);break}Fo(e,yn,ei);break;case 4:if(Ui(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-xr(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=bt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*s$(r/1960))-r,10<r){e.timeoutHandle=dg(Fo.bind(null,e,yn,ei),r);break}Fo(e,yn,ei);break;case 5:Fo(e,yn,ei);break;default:throw Error(U(329))}}}return kn(e,bt()),e.callbackNode===n?OC.bind(null,e):null}function $g(e,t){var n=pc;return e.current.memoizedState.isDehydrated&&(ta(e,t).flags|=256),e=ap(e,t),e!==2&&(t=yn,yn=n,t!==null&&zg(t)),e}function zg(e){yn===null?yn=e:yn.push.apply(yn,e)}function l$(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(!Cr(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 Ui(e,t){for(t&=~D1,t&=~Up,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-xr(t),r=1<<n;e[n]=-1,t&=~r}}function J2(e){if(ze&6)throw Error(U(327));Ts();var t=Vf(e,0);if(!(t&1))return kn(e,bt()),null;var n=ap(e,t);if(e.tag!==0&&n===2){var r=rg(e);r!==0&&(t=r,n=$g(e,r))}if(n===1)throw n=qc,ta(e,0),Ui(e,t),kn(e,bt()),n;if(n===6)throw Error(U(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fo(e,yn,ei),kn(e,bt()),null}function F1(e,t){var n=ze;ze|=1;try{return e(t)}finally{ze=n,ze===0&&(Gs=bt()+500,Fp&&ko())}}function va(e){Ki!==null&&Ki.tag===0&&!(ze&6)&&Ts();var t=ze;ze|=1;var n=tr.transition,r=Be;try{if(tr.transition=null,Be=1,e)return e()}finally{Be=r,tr.transition=n,ze=t,!(ze&6)&&ko()}}function B1(){En=os.current,Je(os)}function ta(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,DA(n)),Ct!==null)for(n=Ct.return;n!==null;){var r=n;switch(S1(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&qf();break;case 3:Us(),Je(Sn),Je(an),A1();break;case 5:E1(r);break;case 4:Us();break;case 13:Je(st);break;case 19:Je(st);break;case 10:j1(r.type._context);break;case 22:case 23:B1()}n=n.return}if(Lt=e,Ct=e=lo(e.current,null),qt=En=t,At=0,qc=null,D1=Up=ga=0,yn=pc=null,qo!==null){for(t=0;t<qo.length;t++)if(n=qo[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}qo=null}return e}function FC(e,t){do{var n=Ct;try{if(C1(),rf.current=np,tp){for(var r=ct.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}tp=!1}if(ha=0,It=Tt=ct=null,dc=!1,Uc=0,N1.current=null,n===null||n.return===null){At=1,qc=t,Ct=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=F2(a);if(h!==null){h.flags&=-257,B2(h,a,l,o,t),h.mode&1&&O2(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)){O2(o,u,t),V1();break e}c=Error(U(426))}}else if(ot&&l.mode&1){var x=F2(a);if(x!==null){!(x.flags&65536)&&(x.flags|=256),B2(x,a,l,o,t),w1(Hs(c,l));break e}}o=c=Hs(c,l),At!==4&&(At=2),pc===null?pc=[o]:pc.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var b=kC(o,c,t);R2(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"&&(ao===null||!ao.has(S)))){o.flags|=65536,t&=-t,o.lanes|=t;var w=CC(o,l,t);R2(o,w);break e}}o=o.return}while(o!==null)}WC(n)}catch(k){t=k,Ct===n&&n!==null&&(Ct=n=n.return);continue}break}while(!0)}function BC(){var e=rp.current;return rp.current=np,e===null?np:e}function V1(){(At===0||At===3||At===2)&&(At=4),Lt===null||!(ga&268435455)&&!(Up&268435455)||Ui(Lt,qt)}function ap(e,t){var n=ze;ze|=2;var r=BC();(Lt!==e||qt!==t)&&(ei=null,ta(e,t));do try{c$();break}catch(i){FC(e,i)}while(!0);if(C1(),ze=n,rp.current=r,Ct!==null)throw Error(U(261));return Lt=null,qt=0,At}function c$(){for(;Ct!==null;)VC(Ct)}function u$(){for(;Ct!==null&&!I9();)VC(Ct)}function VC(e){var t=HC(e.alternate,e,En);e.memoizedProps=e.pendingProps,t===null?WC(e):Ct=t,N1.current=null}function WC(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=r$(n,t),n!==null){n.flags&=32767,Ct=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{At=6,Ct=null;return}}else if(n=n$(n,t,En),n!==null){Ct=n;return}if(t=t.sibling,t!==null){Ct=t;return}Ct=t=e}while(t!==null);At===0&&(At=5)}function Fo(e,t,n){var r=Be,i=tr.transition;try{tr.transition=null,Be=1,d$(e,t,n,r)}finally{tr.transition=i,Be=r}return null}function d$(e,t,n,r){do Ts();while(Ki!==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(H9(e,o),e===Lt&&(Ct=Lt=null,qt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||vd||(vd=!0,GC(Bf,function(){return Ts(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=tr.transition,tr.transition=null;var a=Be;Be=1;var l=ze;ze|=4,N1.current=null,o$(e,n),NC(n,e),$A(cg),Wf=!!lg,cg=lg=null,e.current=n,a$(n),L9(),ze=l,Be=a,tr.transition=o}else e.current=n;if(vd&&(vd=!1,Ki=e,op=i),o=e.pendingLanes,o===0&&(ao=null),O9(n.stateNode),kn(e,bt()),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(ip)throw ip=!1,e=Eg,Eg=null,e;return op&1&&e.tag!==0&&Ts(),o=e.pendingLanes,o&1?e===Ag?mc++:(mc=0,Ag=e):mc=0,ko(),null}function Ts(){if(Ki!==null){var e=k5(op),t=tr.transition,n=Be;try{if(tr.transition=null,Be=16>e?16:e,Ki===null)var r=!1;else{if(e=Ki,Ki=null,op=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:fc(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(MC(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:fc(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:Wp(9,l)}}catch(k){ht(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,ko(),Vr&&typeof Vr.onPostCommitFiberRoot=="function")try{Vr.onPostCommitFiberRoot(Ip,e)}catch{}r=!0}return r}finally{Be=n,tr.transition=t}}return!1}function eS(e,t,n){t=Hs(n,t),t=kC(e,t,1),e=oo(e,t,1),t=dn(),e!==null&&(bu(e,1,t),kn(e,t))}function ht(e,t,n){if(e.tag===3)eS(e,e,n);else for(;t!==null;){if(t.tag===3){eS(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ao===null||!ao.has(r))){e=Hs(n,e),e=CC(t,e,1),t=oo(t,e,1),e=dn(),t!==null&&(bu(t,1,e),kn(t,e));break}}t=t.return}}function f$(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=dn(),e.pingedLanes|=e.suspendedLanes&n,Lt===e&&(qt&n)===n&&(At===4||At===3&&(qt&130023424)===qt&&500>bt()-O1?ta(e,0):D1|=n),kn(e,t)}function UC(e,t){t===0&&(e.mode&1?(t=sd,sd<<=1,!(sd&130023424)&&(sd=4194304)):t=1);var n=dn();e=bi(e,t),e!==null&&(bu(e,t,n),kn(e,n))}function p$(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),UC(e,n)}function m$(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),UC(e,n)}var HC;HC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Sn.current)xn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return xn=!1,t$(e,t,n);xn=!!(e.flags&131072)}else xn=!1,ot&&t.flags&1048576&&X5(t,Yf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;af(e,t),e=t.pendingProps;var i=Bs(t,an.current);_s(t,n),i=z1(null,t,r,e,i,n);var o=R1();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,wn(r)?(o=!0,Kf(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,_1(t),i.updater=Vp,t.stateNode=i,i._reactInternals=t,yg(t,r,e,n),t=Sg(null,t,r,!0,o,n)):(t.tag=0,ot&&o&&x1(t),ln(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=g$(r),e=mr(r,e),i){case 0:t=xg(null,t,r,e,n);break e;case 1:t=U2(null,t,r,e,n);break e;case 11:t=V2(null,t,r,e,n);break e;case 14:t=W2(null,t,r,mr(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:mr(r,i),xg(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mr(r,i),U2(e,t,r,i,n);case 3:e:{if(TC(t),e===null)throw Error(U(387));r=t.pendingProps,o=t.memoizedState,i=o.element,tC(e,t),Jf(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=Hs(Error(U(423)),t),t=H2(e,t,r,n,i);break e}else if(r!==i){i=Hs(Error(U(424)),t),t=H2(e,t,r,n,i);break e}else for(An=io(t.stateNode.containerInfo.firstChild),$n=t,ot=!0,gr=null,n=J5(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vs(),r===i){t=xi(e,t,n);break e}ln(e,t,r,n)}t=t.child}return t;case 5:return nC(t),e===null&&hg(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,ug(r,i)?a=null:o!==null&&ug(r,o)&&(t.flags|=32),_C(e,t),ln(e,t,a,n),t.child;case 6:return e===null&&hg(t),null;case 13:return EC(e,t,n);case 4:return T1(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ws(t,null,r,n):ln(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mr(r,i),V2(e,t,r,i,n);case 7:return ln(e,t,t.pendingProps,n),t.child;case 8:return ln(e,t,t.pendingProps.children,n),t.child;case 12:return ln(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(Qf,r._currentValue),r._currentValue=a,o!==null)if(Cr(o.value,a)){if(o.children===i.children&&!Sn.current){t=xi(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=di(-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),gg(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),gg(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}ln(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,_s(t,n),i=rr(i),r=r(i),t.flags|=1,ln(e,t,r,n),t.child;case 14:return r=t.type,i=mr(r,t.pendingProps),i=mr(r.type,i),W2(e,t,r,i,n);case 15:return jC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mr(r,i),af(e,t),t.tag=1,wn(r)?(e=!0,Kf(t)):e=!1,_s(t,n),wC(t,r,i),yg(t,r,i,n),Sg(null,t,r,!0,e,n);case 19:return AC(e,t,n);case 22:return PC(e,t,n)}throw Error(U(156,t.tag))};function GC(e,t){return b5(e,t)}function h$(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 Jn(e,t,n,r){return new h$(e,t,n,r)}function W1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function g$(e){if(typeof e=="function")return W1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===l1)return 11;if(e===c1)return 14}return 2}function lo(e,t){var n=e.alternate;return n===null?(n=Jn(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")W1(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Xa:return na(n.children,i,o,t);case s1:a=8,i|=8;break;case V0:return e=Jn(12,n,t,i|2),e.elementType=V0,e.lanes=o,e;case W0:return e=Jn(13,n,t,i),e.elementType=W0,e.lanes=o,e;case U0:return e=Jn(19,n,t,i),e.elementType=U0,e.lanes=o,e;case n5:return Hp(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case e5:a=10;break e;case t5:a=9;break e;case l1:a=11;break e;case c1:a=14;break e;case Fi:a=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=Jn(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function na(e,t,n,r){return e=Jn(7,e,r,t),e.lanes=n,e}function Hp(e,t,n,r){return e=Jn(22,e,r,t),e.elementType=n5,e.lanes=n,e.stateNode={isHidden:!1},e}function Eh(e,t,n){return e=Jn(6,e,null,t),e.lanes=n,e}function Ah(e,t,n){return t=Jn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function v$(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=uh(0),this.expirationTimes=uh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function U1(e,t,n,r,i,o,a,l,c){return e=new v$(e,t,n,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Jn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_1(o),e}function y$(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ka,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function qC(e){if(!e)return po;e=e._reactInternals;e:{if(Ea(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(wn(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(wn(n))return q5(e,n,t)}return t}function KC(e,t,n,r,i,o,a,l,c){return e=U1(n,r,!0,e,i,o,a,l,c),e.context=qC(null),n=e.current,r=dn(),i=so(n),o=di(r,i),o.callback=t??null,oo(n,o,i),e.current.lanes=i,bu(e,i,r),kn(e,r),e}function Gp(e,t,n,r){var i=t.current,o=dn(),a=so(i);return n=qC(n),t.context===null?t.context=n:t.pendingContext=n,t=di(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=oo(i,t,a),e!==null&&(Sr(e,i,a,o),nf(e,i,a)),a}function sp(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 tS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function H1(e,t){tS(e,t),(e=e.alternate)&&tS(e,t)}function b$(){return null}var XC=typeof reportError=="function"?reportError:function(e){console.error(e)};function G1(e){this._internalRoot=e}qp.prototype.render=G1.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));Gp(e,t,null,null)};qp.prototype.unmount=G1.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;va(function(){Gp(null,e,null,null)}),t[yi]=null}};function qp(e){this._internalRoot=e}qp.prototype.unstable_scheduleHydration=function(e){if(e){var t=P5();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Wi.length&&t!==0&&t<Wi[n].priority;n++);Wi.splice(n,0,e),n===0&&T5(e)}};function q1(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 nS(){}function x$(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=sp(a);o.call(u)}}var a=KC(t,r,e,0,null,!1,!1,"",nS);return e._reactRootContainer=a,e[yi]=a.current,Oc(e.nodeType===8?e.parentNode:e),va(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=sp(c);l.call(u)}}var c=U1(e,0,!1,null,null,!1,!1,"",nS);return e._reactRootContainer=c,e[yi]=c.current,Oc(e.nodeType===8?e.parentNode:e),va(function(){Gp(t,c,n,r)}),c}function Xp(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=sp(a);l.call(c)}}Gp(t,a,e,i)}else a=x$(n,t,e,i,r);return sp(a)}C5=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ul(t.pendingLanes);n!==0&&(f1(t,n|1),kn(t,bt()),!(ze&6)&&(Gs=bt()+500,ko()))}break;case 13:va(function(){var r=bi(e,1);if(r!==null){var i=dn();Sr(r,e,1,i)}}),H1(e,1)}};p1=function(e){if(e.tag===13){var t=bi(e,134217728);if(t!==null){var n=dn();Sr(t,e,134217728,n)}H1(e,134217728)}};j5=function(e){if(e.tag===13){var t=so(e),n=bi(e,t);if(n!==null){var r=dn();Sr(n,e,t,r)}H1(e,t)}};P5=function(){return Be};_5=function(e,t){var n=Be;try{return Be=e,t()}finally{Be=n}};eg=function(e,t,n){switch(t){case"input":if(q0(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=Op(r);if(!i)throw Error(U(90));i5(r),q0(r,i)}}}break;case"textarea":a5(e,n);break;case"select":t=n.value,t!=null&&ks(e,!!n.multiple,t,!1)}};p5=F1;m5=va;var S$={usingClientEntryPoint:!1,Events:[Su,Ja,Op,d5,f5,F1]},zl={findFiberByHostInstance:Go,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},w$={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:Pi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=v5(e),e===null?null:e.stateNode},findFiberByHostInstance:zl.findFiberByHostInstance||b$,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 yd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yd.isDisabled&&yd.supportsFiber)try{Ip=yd.inject(w$),Vr=yd}catch{}}Bn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=S$;Bn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!q1(t))throw Error(U(200));return y$(e,t,null,n)};Bn.createRoot=function(e,t){if(!q1(e))throw Error(U(299));var n=!1,r="",i=XC;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=U1(e,1,!1,null,null,n,!1,r,i),e[yi]=t.current,Oc(e.nodeType===8?e.parentNode:e),new G1(t)};Bn.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=v5(t),e=e===null?null:e.stateNode,e};Bn.flushSync=function(e){return va(e)};Bn.hydrate=function(e,t,n){if(!Kp(t))throw Error(U(200));return Xp(null,e,t,!0,n)};Bn.hydrateRoot=function(e,t,n){if(!q1(e))throw Error(U(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=XC;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[yi]=t.current,Oc(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 qp(t)};Bn.render=function(e,t,n){if(!Kp(t))throw Error(U(200));return Xp(null,e,t,!1,n)};Bn.unmountComponentAtNode=function(e){if(!Kp(e))throw Error(U(40));return e._reactRootContainer?(va(function(){Xp(null,null,e,!1,function(){e._reactRootContainer=null,e[yi]=null})}),!0):!1};Bn.unstable_batchedUpdates=F1;Bn.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 Xp(e,t,n,!1,r)};Bn.version="18.3.1-next-f1338f8080-20240426";function YC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(YC)}catch(e){console.error(e)}}YC(),Yk.exports=Bn;var K1=Yk.exports,rS=K1;F0.createRoot=rS.createRoot,F0.hydrateRoot=rS.hydrateRoot;function QC(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function k$(){return!!(globalThis!=null&&globalThis.document)}function ZC(e){return e.parentElement&&ZC(e.parentElement)?!0:e.hidden}function C$(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function j$(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function P$(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,fi=e=>e?!0:void 0;function Rg(e){return Array.isArray(e)}function $t(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Rg(e)}function _$(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function T$(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Mg(e){if(e==null)return e;const{unitless:t}=T$(e);return t||typeof e=="number"?`${e}px`:e}const JC=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,X1=e=>Object.fromEntries(Object.entries(e).sort(JC));function iS(e){const t=X1(e);return Object.assign(Object.values(t),t)}function E$(e){const t=Object.keys(X1(e));return new Set(t)}function oS(e){if(!e)return e;e=Mg(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: ${Mg(e)})`),t&&n.push("and",`(max-width: ${Mg(t)})`),n.join(" ")}function A$(e){if(!e)return null;e.base=e.base??"0px";const t=iS(e),n=Object.entries(e).sort(JC).map(([o,a],l,c)=>{let[,u]=c[l+1]??[];return u=parseFloat(u)>0?oS(u):void 0,{_minW:oS(a),breakpoint:o,minW:a,maxW:u,maxWQuery:Gl(null,u),minWQuery:Gl(a),minMaxQuery:Gl(a,u)}}),r=E$(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:X1(e),asArray:iS(e),details:n,get(o){return n.find(a=>a.breakpoint===o)},media:[null,...t.map(o=>Gl(o)).slice(1)],toArrayValue(o){if(!$t(o))throw new Error("toArrayValue: value must be an object");const a=i.map(l=>o[l]??null);for(;_$(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 $$(...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 Y1(e){return m.Children.toArray(e).filter(t=>m.isValidElement(t))}function Q1(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function z$(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function we(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??z$(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(" "),R$=e=>e.hasAttribute("tabindex");function M$(e){if(!QC(e)||ZC(e)||j$(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]():C$(e)?!0:R$(e)}const I$=["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]"],L$=I$.join(),N$=e=>e.offsetWidth>0&&e.offsetHeight>0;function D$(e){const t=Array.from(e.querySelectorAll(L$));return t.unshift(e),t.filter(n=>M$(n)&&N$(n))}function O$(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 F$=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}},e6=F$(O$),B$=e=>e.default||e;function Z1(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function t6(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}const n6=Object.freeze(["base","sm","md","lg","xl","2xl"]);function J1(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):$t(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function V$(e,t=n6){const n={};return e.forEach((r,i)=>{const o=t[i];r!=null&&(n[o]=r)}),n}const W$=e=>typeof e=="function";function rn(e,...t){return W$(e)?e(...t):e}function U$(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 H$(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function r6(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:QC(e)&&U$(e)?e:r6(H$(e))}function i6(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 G$(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 aS(e,t,n={}){const{stop:r,getKey:i}=n;function o(a,l=[]){if($t(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 lp={exports:{}};lp.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]",K="[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,q=/^\[object .+?Constructor\]$/,G=/^(?:0|[1-9]\d*)$/,ee={};ee[O]=ee[K]=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 ke=typeof td=="object"&&td&&td.Object===Object&&td,be=typeof self=="object"&&self&&self.Object===Object&&self,je=ke||be||Function("return this")(),He=t&&!t.nodeType&&t,ge=He&&!0&&e&&!e.nodeType&&e,te=ge&&ge.exports===He,re=te&&ke.process,$e=function(){try{var C=ge&&ge.require&&ge.require("util").types;return C||re&&re.binding&&re.binding("util")}catch{}}(),ve=$e&&$e.isTypedArray;function oe(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 ft(C){return function(A){return C(A)}}function Xe(C,A){return C==null?void 0:C[A]}function Yt(C,A){return function(L){return C(A(L))}}var Tr=Array.prototype,sr=Function.prototype,sn=Object.prototype,zi=je["__core-js_shared__"],Ao=sr.toString,lr=sn.hasOwnProperty,Ma=function(){var C=/[^.]+$/.exec(zi&&zi.keys&&zi.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}(),Sl=sn.toString,Ku=Ao.call(Object),Xu=RegExp("^"+Ao.call(lr).replace(F,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$o=te?je.Buffer:void 0,Tx=je.Symbol,Ex=je.Uint8Array;$o&&$o.allocUnsafe;var Ax=Yt(Object.getPrototypeOf,Object),$x=Object.create,H7=sn.propertyIsEnumerable,G7=Tr.splice,zo=Tx?Tx.toStringTag:void 0,Yu=function(){try{var C=Ym(Object,"defineProperty");return C({},"",{}),C}catch{}}(),q7=$o?$o.isBuffer:void 0,zx=Math.max,K7=Date.now,Rx=Ym(je,"Map"),wl=Ym(Object,"create"),X7=function(){function C(){}return function(A){if(!Mo(A))return{};if($x)return $x(A);C.prototype=A;var L=new C;return C.prototype=void 0,L}}();function Ro(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 Y7(){this.__data__=wl?wl(null):{},this.size=0}function Q7(C){var A=this.has(C)&&delete this.__data__[C];return this.size-=A?1:0,A}function Z7(C){var A=this.__data__;if(wl){var L=A[C];return L===r?void 0:L}return lr.call(A,C)?A[C]:void 0}function J7(C){var A=this.__data__;return wl?A[C]!==void 0:lr.call(A,C)}function eE(C,A){var L=this.__data__;return this.size+=this.has(C)?0:1,L[C]=wl&&A===void 0?r:A,this}Ro.prototype.clear=Y7,Ro.prototype.delete=Q7,Ro.prototype.get=Z7,Ro.prototype.has=J7,Ro.prototype.set=eE;function Zr(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 tE(){this.__data__=[],this.size=0}function nE(C){var A=this.__data__,L=Qu(A,C);if(L<0)return!1;var ae=A.length-1;return L==ae?A.pop():G7.call(A,L,1),--this.size,!0}function rE(C){var A=this.__data__,L=Qu(A,C);return L<0?void 0:A[L][1]}function iE(C){return Qu(this.__data__,C)>-1}function oE(C,A){var L=this.__data__,ae=Qu(L,C);return ae<0?(++this.size,L.push([C,A])):L[ae][1]=A,this}Zr.prototype.clear=tE,Zr.prototype.delete=nE,Zr.prototype.get=rE,Zr.prototype.has=iE,Zr.prototype.set=oE;function Ia(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 aE(){this.size=0,this.__data__={hash:new Ro,map:new(Rx||Zr),string:new Ro}}function sE(C){var A=Ju(this,C).delete(C);return this.size-=A?1:0,A}function lE(C){return Ju(this,C).get(C)}function cE(C){return Ju(this,C).has(C)}function uE(C,A){var L=Ju(this,C),ae=L.size;return L.set(C,A),this.size+=L.size==ae?0:1,this}Ia.prototype.clear=aE,Ia.prototype.delete=sE,Ia.prototype.get=lE,Ia.prototype.has=cE,Ia.prototype.set=uE;function La(C){var A=this.__data__=new Zr(C);this.size=A.size}function dE(){this.__data__=new Zr,this.size=0}function fE(C){var A=this.__data__,L=A.delete(C);return this.size=A.size,L}function pE(C){return this.__data__.get(C)}function mE(C){return this.__data__.has(C)}function hE(C,A){var L=this.__data__;if(L instanceof Zr){var ae=L.__data__;if(!Rx||ae.length<n-1)return ae.push([C,A]),this.size=++L.size,this;L=this.__data__=new Ia(ae)}return L.set(C,A),this.size=L.size,this}La.prototype.clear=dE,La.prototype.delete=fE,La.prototype.get=pE,La.prototype.has=mE,La.prototype.set=hE;function gE(C,A){var L=Jm(C),ae=!L&&Zm(C),_e=!L&&!ae&&Dx(C),Ue=!L&&!ae&&!_e&&Fx(C),rt=L||ae||_e||Ue,Me=rt?pe(C.length,String):[],it=Me.length;for(var cr in C)rt&&(cr=="length"||_e&&(cr=="offset"||cr=="parent")||Ue&&(cr=="buffer"||cr=="byteLength"||cr=="byteOffset")||Lx(cr,it))||Me.push(cr);return Me}function Km(C,A,L){(L!==void 0&&!ed(C[A],L)||L===void 0&&!(A in C))&&Xm(C,A,L)}function vE(C,A,L){var ae=C[A];(!(lr.call(C,A)&&ed(ae,L))||L===void 0&&!(A in C))&&Xm(C,A,L)}function Qu(C,A){for(var L=C.length;L--;)if(ed(C[L][0],A))return L;return-1}function Xm(C,A,L){A=="__proto__"&&Yu?Yu(C,A,{configurable:!0,enumerable:!0,value:L,writable:!0}):C[A]=L}var yE=$E();function Zu(C){return C==null?C===void 0?j:b:zo&&zo in Object(C)?zE(C):DE(C)}function Mx(C){return kl(C)&&Zu(C)==l}function bE(C){if(!Mo(C)||LE(C))return!1;var A=th(C)?Xu:q;return A.test(VE(C))}function xE(C){return kl(C)&&Ox(C.length)&&!!ee[Zu(C)]}function SE(C){if(!Mo(C))return NE(C);var A=Nx(C),L=[];for(var ae in C)ae=="constructor"&&(A||!lr.call(C,ae))||L.push(ae);return L}function Ix(C,A,L,ae,_e){C!==A&&yE(A,function(Ue,rt){if(_e||(_e=new La),Mo(Ue))wE(C,A,rt,L,Ix,ae,_e);else{var Me=ae?ae(Qm(C,rt),Ue,rt+"",C,A,_e):void 0;Me===void 0&&(Me=Ue),Km(C,rt,Me)}},Bx)}function wE(C,A,L,ae,_e,Ue,rt){var Me=Qm(C,L),it=Qm(A,L),cr=rt.get(it);if(cr){Km(C,L,cr);return}var Tn=Ue?Ue(Me,it,L+"",C,A,rt):void 0,Cl=Tn===void 0;if(Cl){var nh=Jm(it),rh=!nh&&Dx(it),Wx=!nh&&!rh&&Fx(it);Tn=it,nh||rh||Wx?Jm(Me)?Tn=Me:WE(Me)?Tn=TE(Me):rh?(Cl=!1,Tn=jE(it)):Wx?(Cl=!1,Tn=_E(it)):Tn=[]:UE(it)||Zm(it)?(Tn=Me,Zm(Me)?Tn=HE(Me):(!Mo(Me)||th(Me))&&(Tn=RE(it))):Cl=!1}Cl&&(rt.set(it,Tn),_e(Tn,it,ae,Ue,rt),rt.delete(it)),Km(C,L,Tn)}function kE(C,A){return FE(OE(C,A,Vx),C+"")}var CE=Yu?function(C,A){return Yu(C,"toString",{configurable:!0,enumerable:!1,value:qE(A),writable:!0})}:Vx;function jE(C,A){return C.slice()}function PE(C){var A=new C.constructor(C.byteLength);return new Ex(A).set(new Ex(C)),A}function _E(C,A){var L=PE(C.buffer);return new C.constructor(L,C.byteOffset,C.length)}function TE(C,A){var L=-1,ae=C.length;for(A||(A=Array(ae));++L<ae;)A[L]=C[L];return A}function EE(C,A,L,ae){var _e=!L;L||(L={});for(var Ue=-1,rt=A.length;++Ue<rt;){var Me=A[Ue],it=void 0;it===void 0&&(it=C[Me]),_e?Xm(L,Me,it):vE(L,Me,it)}return L}function AE(C){return kE(function(A,L){var ae=-1,_e=L.length,Ue=_e>1?L[_e-1]:void 0,rt=_e>2?L[2]:void 0;for(Ue=C.length>3&&typeof Ue=="function"?(_e--,Ue):void 0,rt&&ME(L[0],L[1],rt)&&(Ue=_e<3?void 0:Ue,_e=1),A=Object(A);++ae<_e;){var Me=L[ae];Me&&C(A,Me,ae,Ue)}return A})}function $E(C){return function(A,L,ae){for(var _e=-1,Ue=Object(A),rt=ae(A),Me=rt.length;Me--;){var it=rt[++_e];if(L(Ue[it],it,Ue)===!1)break}return A}}function Ju(C,A){var L=C.__data__;return IE(A)?L[typeof A=="string"?"string":"hash"]:L.map}function Ym(C,A){var L=Xe(C,A);return bE(L)?L:void 0}function zE(C){var A=lr.call(C,zo),L=C[zo];try{C[zo]=void 0;var ae=!0}catch{}var _e=Sl.call(C);return ae&&(A?C[zo]=L:delete C[zo]),_e}function RE(C){return typeof C.constructor=="function"&&!Nx(C)?X7(Ax(C)):{}}function Lx(C,A){var L=typeof C;return A=A??a,!!A&&(L=="number"||L!="symbol"&&G.test(C))&&C>-1&&C%1==0&&C<A}function ME(C,A,L){if(!Mo(L))return!1;var ae=typeof A;return(ae=="number"?eh(L)&&Lx(A,L.length):ae=="string"&&A in L)?ed(L[A],C):!1}function IE(C){var A=typeof C;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?C!=="__proto__":C===null}function LE(C){return!!Ma&&Ma in C}function Nx(C){var A=C&&C.constructor,L=typeof A=="function"&&A.prototype||sn;return C===L}function NE(C){var A=[];if(C!=null)for(var L in Object(C))A.push(L);return A}function DE(C){return Sl.call(C)}function OE(C,A,L){return A=zx(A===void 0?C.length-1:A,0),function(){for(var ae=arguments,_e=-1,Ue=zx(ae.length-A,0),rt=Array(Ue);++_e<Ue;)rt[_e]=ae[A+_e];_e=-1;for(var Me=Array(A+1);++_e<A;)Me[_e]=ae[_e];return Me[A]=L(rt),oe(C,this,Me)}}function Qm(C,A){if(!(A==="constructor"&&typeof C[A]=="function")&&A!="__proto__")return C[A]}var FE=BE(CE);function BE(C){var A=0,L=0;return function(){var ae=K7(),_e=o-(ae-L);if(L=ae,_e>0){if(++A>=i)return arguments[0]}else A=0;return C.apply(void 0,arguments)}}function VE(C){if(C!=null){try{return Ao.call(C)}catch{}try{return C+""}catch{}}return""}function ed(C,A){return C===A||C!==C&&A!==A}var Zm=Mx(function(){return arguments}())?Mx:function(C){return kl(C)&&lr.call(C,"callee")&&!H7.call(C,"callee")},Jm=Array.isArray;function eh(C){return C!=null&&Ox(C.length)&&!th(C)}function WE(C){return kl(C)&&eh(C)}var Dx=q7||KE;function th(C){if(!Mo(C))return!1;var A=Zu(C);return A==h||A==v||A==u||A==S}function Ox(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=a}function Mo(C){var A=typeof C;return C!=null&&(A=="object"||A=="function")}function kl(C){return C!=null&&typeof C=="object"}function UE(C){if(!kl(C)||Zu(C)!=g)return!1;var A=Ax(C);if(A===null)return!0;var L=lr.call(A,"constructor")&&A.constructor;return typeof L=="function"&&L instanceof L&&Ao.call(L)==Ku}var Fx=ve?ft(ve):xE;function HE(C){return EE(C,Bx(C))}function Bx(C){return eh(C)?gE(C):SE(C)}var GE=AE(function(C,A,L,ae){Ix(C,A,L,ae)});function qE(C){return function(){return C}}function Vx(C){return C}function KE(){return!1}e.exports=GE})(lp,lp.exports);var q$=lp.exports;const er=Jv(q$);function wr(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=wr(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 o6(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:i=(p,h)=>p!==h}=e,o=wr(r),a=wr(i),[l,c]=m.useState(n),u=t!==void 0,d=u?t:l,f=wr(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 ku(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=wr(n),a=wr(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 pi=globalThis!=null&&globalThis.document?m.useLayoutEffect:m.useEffect,cp=(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 a6=()=>typeof window<"u";function X$(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}const Y$=e=>a6()&&e.test(navigator.vendor),Q$=e=>a6()&&e.test(X$()),Z$=()=>Q$(/mac|iphone|ipad|ipod/i),J$=()=>Z$()&&Y$(/apple/i);function ez(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(!J$()||!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 tz(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 Et(...e){return t=>{e.forEach(n=>{tz(n,t)})}}function ey(...e){return m.useMemo(()=>Et(...e),e)}function nz(e,t){const n=wr(e);m.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const _t={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}`},Ar=e=>s6(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Jr=e=>s6(t=>e(t,"~ &"),"[data-peer]",".peer"),s6=(e,...t)=>t.map(e).join(", "),Es={_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:Ar(_t.open),_groupClosed:Ar(_t.closed),_groupHover:Ar(_t.hover),_peerHover:Jr(_t.hover),_groupFocus:Ar(_t.focus),_peerFocus:Jr(_t.focus),_groupFocusVisible:Ar(_t.focusVisible),_peerFocusVisible:Jr(_t.focusVisible),_groupActive:Ar(_t.active),_peerActive:Jr(_t.active),_groupDisabled:Ar(_t.disabled),_peerDisabled:Jr(_t.disabled),_groupInvalid:Ar(_t.invalid),_peerInvalid:Jr(_t.invalid),_groupChecked:Ar(_t.checked),_peerChecked:Jr(_t.checked),_groupFocusWithin:Ar(_t.focusWithin),_peerFocusWithin:Jr(_t.focusWithin),_peerPlaceholderShown:Jr(_t.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]"},l6=Object.keys(Es),rz=e=>/!(important)?$/.test(e),sS=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,iz=(e,t)=>n=>{const r=String(t),i=rz(r),o=sS(r),a=e?`${e}.${o}`:o;let l=$t(n.__cssMap)&&a in n.__cssMap?n.__cssMap[a].varRef:t;return l=sS(l),i?`${l} !important`:l};function ty(e){const{scale:t,transform:n,compose:r}=e;return(o,a)=>{const l=iz(t,o)(a);let c=(n==null?void 0:n(l,a))??l;return r&&(c=r(c,a)),c}}const bd=(...e)=>t=>e.reduce((n,r)=>r(n),t);function qn(e,t){return n=>{const r={property:n,scale:e};return r.transform=ty({scale:e,transform:t}),r}}const oz=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function az(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:oz(t),transform:n?ty({scale:n,compose:r}):r}}const c6=["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 sz(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...c6].join(" ")}function lz(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...c6].join(" ")}const cz={"--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(" ")},uz={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 dz(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 fz={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Ig={"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"},pz=new Set(Object.values(Ig)),Lg=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),mz=e=>e.trim();function hz(e,t){if(e==null||Lg.has(e))return e;if(!(Ng(e)||Lg.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(mz).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const d=c in Ig?Ig[c]:c;u.unshift(d);const f=u.map(p=>{if(pz.has(p))return p;const h=p.indexOf(" "),[v,y]=h!==-1?[p.substr(0,h),p.substr(h+1)]:[p],x=Ng(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 Ng=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),gz=(e,t)=>hz(e,t??{});function vz(e){return/^var\(--.+\)$/.test(e)}const yz=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},$r=e=>t=>`${e}(${t})`,Pe={filter(e){return e!=="auto"?e:cz},backdropFilter(e){return e!=="auto"?e:uz},ring(e){return dz(Pe.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?sz():e==="auto-gpu"?lz():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=yz(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(vz(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:gz,blur:$r("blur"),opacity:$r("opacity"),brightness:$r("brightness"),contrast:$r("contrast"),dropShadow:$r("drop-shadow"),grayscale:$r("grayscale"),hueRotate:e=>$r("hue-rotate")(Pe.degree(e)),invert:$r("invert"),saturate:$r("saturate"),sepia:$r("sepia"),bgImage(e){return e==null||Ng(e)||Lg.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}=fz[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",Pe.gradient),radii:qn("radii",Pe.px),space:qn("space",bd(Pe.vh,Pe.px)),spaceT:qn("space",bd(Pe.vh,Pe.px)),degreeT(e){return{property:e,transform:Pe.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:ty({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:qn("sizes",bd(Pe.vh,Pe.px)),sizesT:qn("sizes",bd(Pe.vh,Pe.fraction)),shadows:qn("shadows"),logical:az,blur:qn("blur",Pe.blur)},df={background:E.colors("background"),backgroundColor:E.colors("backgroundColor"),backgroundImage:E.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Pe.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:Pe.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 bz={color:E.colors("color"),textColor:E.colors("color"),fill:E.colors("fill"),stroke:E.colors("stroke"),accentColor:E.colors("accentColor"),textFillColor:E.colors("textFillColor")},up={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Pe.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(up,{flexDir:up.flexDirection});const Xn={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",Pe.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Xn,{w:Xn.width,h:Xn.height,minW:Xn.minWidth,maxW:Xn.maxWidth,minH:Xn.minHeight,maxH:Xn.maxHeight,overscroll:Xn.overscrollBehavior,overscrollX:Xn.overscrollBehaviorX,overscrollY:Xn.overscrollBehaviorY});const xz={filter:{transform:Pe.filter},blur:E.blur("--chakra-blur"),brightness:E.propT("--chakra-brightness",Pe.brightness),contrast:E.propT("--chakra-contrast",Pe.contrast),hueRotate:E.propT("--chakra-hue-rotate",Pe.hueRotate),invert:E.propT("--chakra-invert",Pe.invert),saturate:E.propT("--chakra-saturate",Pe.saturate),dropShadow:E.propT("--chakra-drop-shadow",Pe.dropShadow),backdropFilter:{transform:Pe.backdropFilter},backdropBlur:E.blur("--chakra-backdrop-blur"),backdropBrightness:E.propT("--chakra-backdrop-brightness",Pe.brightness),backdropContrast:E.propT("--chakra-backdrop-contrast",Pe.contrast),backdropHueRotate:E.propT("--chakra-backdrop-hue-rotate",Pe.hueRotate),backdropInvert:E.propT("--chakra-backdrop-invert",Pe.invert),backdropSaturate:E.propT("--chakra-backdrop-saturate",Pe.saturate)},Sz={ring:{transform:Pe.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")},wz={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Pe.outline},outlineOffset:!0,outlineColor:E.colors("outlineColor")},u6={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 kz(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 Cz=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}},jz=Cz(kz),Pz={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},_z={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},$h=(e,t,n)=>{const r={},i=jz(e,t,{});for(const o in i)o in n&&n[o]!=null||(r[o]=i[o]);return r},Tz={srOnly:{transform(e){return e===!0?Pz:e==="focusable"?_z:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>$h(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>$h(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>$h(t,e,n)}},hc={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(hc,{insetStart:hc.insetInlineStart,insetEnd:hc.insetInlineEnd});const Dg={boxShadow:E.shadows("boxShadow"),mixBlendMode:!0,blendMode:E.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:E.prop("backgroundBlendMode"),opacity:!0};Object.assign(Dg,{shadow:Dg.boxShadow});const Qe={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(Qe,{m:Qe.margin,mt:Qe.marginTop,mr:Qe.marginRight,me:Qe.marginInlineEnd,marginEnd:Qe.marginInlineEnd,mb:Qe.marginBottom,ml:Qe.marginLeft,ms:Qe.marginInlineStart,marginStart:Qe.marginInlineStart,mx:Qe.marginX,my:Qe.marginY,p:Qe.padding,pt:Qe.paddingTop,py:Qe.paddingY,px:Qe.paddingX,pb:Qe.paddingBottom,pl:Qe.paddingLeft,ps:Qe.paddingInlineStart,paddingStart:Qe.paddingInlineStart,pr:Qe.paddingRight,pe:Qe.paddingInlineEnd,paddingEnd:Qe.paddingInlineEnd});const Ez={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"])},Az={fontFamily:E.prop("fontFamily","fonts"),fontSize:E.prop("fontSize","fontSizes",Pe.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"}},$z={textDecorationColor:E.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:E.shadows("textShadow")},zz={clipPath:!0,transform:E.propT("transform",Pe.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")},Rz={listStyleType:!0,listStylePosition:!0,listStylePos:E.prop("listStylePosition"),listStyleImage:!0,listStyleImg:E.prop("listStyleImage")},Mz={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")},ny=er({},df,Ie,bz,up,Xn,xz,Sz,wz,u6,Tz,hc,Dg,Qe,Ez,Az,$z,zz,Rz,Mz),Iz=Object.assign({},Qe,Xn,up,u6,hc),d6=Object.keys(Iz),Lz=[...Object.keys(ny),...l6],Nz={...ny,...Es},Dz=e=>e in Nz,Oz=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:i}=t.__breakpoints,o={};for(const a in e){let l=rn(e[a],t);if(l==null)continue;if(l=$t(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 Fz(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 Bz(e){return/^var\(--.+\)$/.test(e)}const Vz=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!Bz(t),Wz=(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]=Fz(t);return t=n(i)??r(o)??r(t),t};function Uz(e){const{configs:t={},pseudos:n={},theme:r}=e,i=(o,a=!1)=>{var d;const l=rn(o,r),c=Oz(l)(r);let u={};for(let f in c){const p=c[f];let h=rn(p,r);f in n&&(f=n[f]),Vz(f,h)&&(h=Wz(r,h));let v=t[f];if(v===!0&&(v={property:f}),$t(h)){u[f]=u[f]??{},u[f]=er({},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=rn(v==null?void 0:v.property,r);if(!a&&(v!=null&&v.static)){const b=rn(v.static,r);u=er({},u,b)}if(x&&Array.isArray(x)){for(const b of x)u[b]=y;continue}if(x){x==="&"&&$t(y)?u=er({},u,y):u[x]=y;continue}if($t(y)){u=er({},u,y);continue}u[f]=y}return u};return i}const f6=e=>t=>Uz({theme:t,pseudos:Es,configs:ny})(e);function ce(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function Hz(e,t,n){var r,i;return((i=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:i.varRef)??n}function Gz(e,t){if(Array.isArray(e))return e;if($t(e))return t(e);if(e!=null)return[e]}function qz(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=Gz(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[qz(c,v)],b=Gl(y.minW,x==null?void 0:x._minW),g=rn((p=r[i])==null?void 0:p[c[v]],a);if(g){if(f){(h=r.parts)==null||h.forEach(S=>{er(l,{[S]:d?g[S]:{[b]:g[S]}})});continue}if(!f){d?er(l,g):l[b]=g;continue}l[b]=g}}return l}}function Xz(e){return t=>{const{variant:n,size:r,theme:i}=t,o=Kz(i);return er({},rn(e.baseStyle??{},t),o(e,"sizes",r,t),o(e,"variants",n,t))}}function Ae(e){return Z1(e,["styleConfig","size","variant","colorScheme"])}function p6(e){return $t(e)&&e.reference?e.reference:String(e)}const Yp=(e,...t)=>t.map(p6).join(` ${e} `).replace(/calc/g,""),lS=(...e)=>`calc(${Yp("+",...e)})`,cS=(...e)=>`calc(${Yp("-",...e)})`,Og=(...e)=>`calc(${Yp("*",...e)})`,uS=(...e)=>`calc(${Yp("/",...e)})`,dS=e=>{const t=p6(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Og(t,-1)},ni=Object.assign(e=>({add:(...t)=>ni(lS(e,...t)),subtract:(...t)=>ni(cS(e,...t)),multiply:(...t)=>ni(Og(e,...t)),divide:(...t)=>ni(uS(e,...t)),negate:()=>ni(dS(e)),toString:()=>e.toString()}),{add:lS,subtract:cS,multiply:Og,divide:uS,negate:dS});function Yz(e,t="-"){return e.replace(/\s+/g,t)}function Qz(e){const t=Yz(e.toString());return Jz(Zz(t))}function Zz(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function Jz(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function eR(e,t=""){return[t,e].filter(Boolean).join("-")}function tR(e,t){return`var(${e}${t?`, ${t}`:""})`}function nR(e,t=""){return Qz(`--${eR(e,t)}`)}function Q(e,t,n){const r=nR(e,n);return{variable:r,reference:tR(r,t)}}function m6(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 rR=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function iR(e){return t6(e,rR)}function oR(e){return e.semanticTokens}function aR(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}function sR(e){const t=iR(e),n=oR(e),r=o=>l6.includes(o)||o==="default",i={};return aS(t,(o,a)=>{o!=null&&(i[a.join(".")]={isSemantic:!1,value:o})}),aS(n,(o,a)=>{o!=null&&(i[a.join(".")]={isSemantic:!0,value:o})},{stop:o=>Object.keys(o).every(r)}),i}function fS(e,t){return Q(String(e).replace(/\./g,"-"),void 0,t)}function lR(e){var a;const t=sR(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}=fS(d,n);return p}for(const[l,c]of Object.entries(t)){const{isSemantic:u,value:d}=c,{variable:f,reference:p}=fS(l,n);if(!u){if(l.startsWith("space")){const v=l.split("."),[y,...x]=v,b=`${y}.-${x.join(".")}`,g=ni.negate(d),S=ni.negate(p);i[b]={value:g,var:f,varRef:S}}r[f]=d,i[l]={value:d,var:f,varRef:p};continue}const h=$t(d)?d:{default:d};r=er(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=(Es==null?void 0:Es[y])??y;return v[g]={[f]:b},v},{})),i[l]={value:p,var:f,varRef:p}}return{cssVars:r,cssMap:i}}function cR(e){const t=aR(e),{cssMap:n,cssVars:r}=lR(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:A$(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 uR=Re("accordion").parts("root","container","button","panel","icon"),h6=Re("alert").parts("title","description","container","icon","spinner"),dR=Re("avatar").parts("label","badge","container","excessLabel","group"),fR=Re("breadcrumb").parts("link","item","container","separator");Re("button").parts();const g6=Re("checkbox").parts("control","icon","container","label");Re("progress").parts("track","filledTrack","label");const pR=Re("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),mR=Re("editable").parts("preview","input","textarea"),v6=Re("form").parts("container","requiredIndicator","helperText"),hR=Re("formError").parts("text","icon"),ry=Re("input").parts("addon","field","element","group"),gR=Re("list").parts("container","item","icon"),y6=Re("menu").parts("button","list","item","groupTitle","icon","command","divider"),b6=Re("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),vR=Re("numberinput").parts("root","field","stepperGroup","stepper");Re("pininput").parts("field");const yR=Re("popover").parts("content","header","body","footer","popper","arrow","closeButton"),x6=Re("progress").parts("label","filledTrack","track"),S6=Re("radio").parts("container","control","label"),bR=Re("select").parts("field","icon"),w6=Re("slider").parts("container","track","thumb","filledTrack","mark"),xR=Re("stat").parts("container","label","helpText","number","icon"),k6=Re("switch").parts("container","track","thumb","label"),SR=Re("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),wR=Re("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),kR=Re("tag").parts("container","label","closeButton"),C6=Re("card").parts("container","header","body","footer");Re("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:CR,defineMultiStyleConfig:jR}=ce(uR.keys),PR={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},_R={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},TR={pt:"2",px:"4",pb:"5"},ER={fontSize:"1.25em"},AR=CR({container:PR,button:_R,panel:TR,icon:ER}),$R=jR({baseStyle:AR});function Xo(e,t,n){return Math.min(Math.max(e,n),t)}class ql extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}function iy(e){if(typeof e!="string")throw new ql(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=OR.test(e)?MR(e):e;const n=IR.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(l=>parseInt(Kc(l,2),16)),parseInt(Kc(a[3]||"f",2),16)/255]}const r=LR.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=NR.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=DR.exec(t);if(o){const[a,l,c,u]=Array.from(o).slice(1).map(parseFloat);if(Xo(0,100,l)!==l)throw new ql(e);if(Xo(0,100,c)!==c)throw new ql(e);return[...FR(a,l,c),Number.isNaN(u)?1:u]}throw new ql(e)}function zR(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const pS=e=>parseInt(e.replace(/_/g,""),36),RR="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=pS(t.substring(0,3)),r=pS(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 MR(e){const t=e.toLowerCase().trim(),n=RR[zR(t)];if(!n)throw new ql(e);return`#${n}`}const Kc=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),IR=new RegExp(`^#${Kc("([a-f0-9])",3)}([a-f0-9])?$`,"i"),LR=new RegExp(`^#${Kc("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),NR=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Kc(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),DR=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,OR=/^[a-z]+$/i,mS=e=>Math.round(e*255),FR=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(mS);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(mS)};function BR(e,t,n,r){return`rgba(${Xo(0,255,e).toFixed()}, ${Xo(0,255,t).toFixed()}, ${Xo(0,255,n).toFixed()}, ${parseFloat(Xo(0,1,r).toFixed(3))})`}function VR(e,t){const[n,r,i,o]=iy(e);return BR(n,r,i,o-t)}function WR(e){const[t,n,r,i]=iy(e);let o=a=>{const l=Xo(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 UR=e=>Object.keys(e).length===0;function HR(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 et=(e,t,n)=>{const r=HR(e,`colors.${t}`,t);try{return WR(r),r}catch{return n??"#000000"}},GR=e=>{const[t,n,r]=iy(e);return(t*299+n*587+r*114)/1e3},qR=e=>t=>{const n=et(t,e);return GR(n)<128?"dark":"light"},KR=e=>t=>qR(e)(t)==="dark",Nt=(e,t)=>n=>{const r=et(n,e);return VR(r,1-t)};function hS(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 XR=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function YR(e){const t=XR();return!e||UR(e)?t:e.string&&e.colors?ZR(e.string,e.colors):e.string&&!e.colors?QR(e.string):e.colors&&!e.string?JR(e.colors):t}function QR(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 ZR(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 JR(e){return e[Math.floor(Math.random()*e.length)]}function Z(e,t){return n=>n.colorMode==="dark"?t:e}function oy(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function j6(e){return $t(e)&&e.reference?e.reference:String(e)}const Qp=(e,...t)=>t.map(j6).join(` ${e} `).replace(/calc/g,""),gS=(...e)=>`calc(${Qp("+",...e)})`,vS=(...e)=>`calc(${Qp("-",...e)})`,Fg=(...e)=>`calc(${Qp("*",...e)})`,yS=(...e)=>`calc(${Qp("/",...e)})`,bS=e=>{const t=j6(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Fg(t,-1)},ri=Object.assign(e=>({add:(...t)=>ri(gS(e,...t)),subtract:(...t)=>ri(vS(e,...t)),multiply:(...t)=>ri(Fg(e,...t)),divide:(...t)=>ri(yS(e,...t)),negate:()=>ri(bS(e)),toString:()=>e.toString()}),{add:gS,subtract:vS,multiply:Fg,divide:yS,negate:bS});function eM(e){return!Number.isInteger(parseFloat(e.toString()))}function tM(e,t="-"){return e.replace(/\s+/g,t)}function P6(e){const t=tM(e.toString());return t.includes("\\.")?e:eM(e)?t.replace(".","\\."):e}function nM(e,t=""){return[t,P6(e)].filter(Boolean).join("-")}function rM(e,t){return`var(${P6(e)}${t?`, ${t}`:""})`}function iM(e,t=""){return`--${nM(e,t)}`}function vt(e,t){const n=iM(e,t==null?void 0:t.prefix);return{variable:n,reference:rM(n,oM(t==null?void 0:t.fallback))}}function oM(e){return e==null?void 0:e.reference}const{definePartsStyle:Cu,defineMultiStyleConfig:aM}=ce(h6.keys),zn=Q("alert-fg"),Si=Q("alert-bg"),sM=Cu({container:{bg:Si.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:zn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:zn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function ay(e){const{theme:t,colorScheme:n}=e,r=Nt(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}const lM=Cu(e=>{const{colorScheme:t}=e,n=ay(e);return{container:{[zn.variable]:`colors.${t}.600`,[Si.variable]:n.light,_dark:{[zn.variable]:`colors.${t}.200`,[Si.variable]:n.dark}}}}),cM=Cu(e=>{const{colorScheme:t}=e,n=ay(e);return{container:{[zn.variable]:`colors.${t}.600`,[Si.variable]:n.light,_dark:{[zn.variable]:`colors.${t}.200`,[Si.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:zn.reference}}}),uM=Cu(e=>{const{colorScheme:t}=e,n=ay(e);return{container:{[zn.variable]:`colors.${t}.600`,[Si.variable]:n.light,_dark:{[zn.variable]:`colors.${t}.200`,[Si.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:zn.reference}}}),dM=Cu(e=>{const{colorScheme:t}=e;return{container:{[zn.variable]:"colors.white",[Si.variable]:`colors.${t}.600`,_dark:{[zn.variable]:"colors.gray.900",[Si.variable]:`colors.${t}.200`},color:zn.reference}}}),fM={subtle:lM,"left-accent":cM,"top-accent":uM,solid:dM},pM=aM({baseStyle:sM,variants:fM,defaultProps:{variant:"subtle",colorScheme:"blue"}}),_6={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"},mM={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"},hM={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},T6={..._6,...mM,container:hM},gM=e=>typeof e=="function";function fn(e,...t){return gM(e)?e(...t):e}const{definePartsStyle:E6,defineMultiStyleConfig:vM}=ce(dR.keys),As=Q("avatar-border-color"),gc=Q("avatar-bg"),Xc=Q("avatar-font-size"),qs=Q("avatar-size"),yM={borderRadius:"full",border:"0.2em solid",borderColor:As.reference,[As.variable]:"white",_dark:{[As.variable]:"colors.gray.800"}},bM={bg:gc.reference,fontSize:Xc.reference,width:qs.reference,height:qs.reference,lineHeight:"1",[gc.variable]:"colors.gray.200",_dark:{[gc.variable]:"colors.whiteAlpha.400"}},xM=e=>{const{name:t,theme:n}=e,r=t?YR({string:t}):"colors.gray.400",i=KR(r)(n);let o="white";return i||(o="gray.800"),{bg:gc.reference,fontSize:Xc.reference,color:o,borderColor:As.reference,verticalAlign:"top",width:qs.reference,height:qs.reference,"&:not([data-loaded])":{[gc.variable]:r},[As.variable]:"colors.white",_dark:{[As.variable]:"colors.gray.800"}}},SM={fontSize:Xc.reference,lineHeight:"1"},wM=E6(e=>({badge:fn(yM,e),excessLabel:fn(bM,e),container:fn(xM,e),label:SM}));function Mi(e){const t=e!=="100%"?T6[e]:void 0;return E6({container:{[qs.variable]:t??e,[Xc.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[qs.variable]:t??e,[Xc.variable]:`calc(${t??e} / 2.5)`}})}const kM={"2xs":Mi(4),xs:Mi(6),sm:Mi(8),md:Mi(12),lg:Mi(16),xl:Mi(24),"2xl":Mi(32),full:Mi("100%")},CM=vM({baseStyle:wM,sizes:kM,defaultProps:{size:"md"}}),xt=m6("badge",["bg","color","shadow"]),jM={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:xt.bg.reference,color:xt.color.reference,boxShadow:xt.shadow.reference},PM=e=>{const{colorScheme:t,theme:n}=e,r=Nt(`${t}.500`,.6)(n);return{[xt.bg.variable]:`colors.${t}.500`,[xt.color.variable]:"colors.white",_dark:{[xt.bg.variable]:r,[xt.color.variable]:"colors.whiteAlpha.800"}}},_M=e=>{const{colorScheme:t,theme:n}=e,r=Nt(`${t}.200`,.16)(n);return{[xt.bg.variable]:`colors.${t}.100`,[xt.color.variable]:`colors.${t}.800`,_dark:{[xt.bg.variable]:r,[xt.color.variable]:`colors.${t}.200`}}},TM=e=>{const{colorScheme:t,theme:n}=e,r=Nt(`${t}.200`,.8)(n);return{[xt.color.variable]:`colors.${t}.500`,_dark:{[xt.color.variable]:r},[xt.shadow.variable]:`inset 0 0 0px 1px ${xt.color.reference}`}},EM={solid:PM,subtle:_M,outline:TM},vc={baseStyle:jM,variants:EM,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:AM,definePartsStyle:$M}=ce(fR.keys),zh=Q("breadcrumb-link-decor"),zM={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:zh.reference,[zh.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[zh.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},RM=$M({link:zM}),MM=AM({baseStyle:RM}),IM={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"}}},A6=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:Z("gray.800","whiteAlpha.900")(e),_hover:{bg:Z("gray.100","whiteAlpha.200")(e)},_active:{bg:Z("gray.200","whiteAlpha.300")(e)}};const r=Nt(`${t}.200`,.12)(n),i=Nt(`${t}.200`,.24)(n);return{color:Z(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:Z(`${t}.50`,r)(e)},_active:{bg:Z(`${t}.100`,i)(e)}}},LM=e=>{const{colorScheme:t}=e,n=Z("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"},...fn(A6,e)}},NM={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},DM=e=>{const{colorScheme:t}=e;if(t==="gray"){const l=Z("gray.100","whiteAlpha.200")(e);return{bg:l,color:Z("gray.800","whiteAlpha.900")(e),_hover:{bg:Z("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:Z("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:i=`${t}.600`,activeBg:o=`${t}.700`}=NM[t]??{},a=Z(n,`${t}.200`)(e);return{bg:a,color:Z(r,"gray.800")(e),_hover:{bg:Z(i,`${t}.300`)(e),_disabled:{bg:a}},_active:{bg:Z(o,`${t}.400`)(e)}}},OM=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:Z(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:Z(`${t}.700`,`${t}.500`)(e)}}},FM={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},BM={ghost:A6,outline:LM,solid:DM,link:OM,unstyled:FM},VM={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"}},WM={baseStyle:IM,variants:BM,sizes:VM,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:ra,defineMultiStyleConfig:UM}=ce(C6.keys),dp=Q("card-bg"),mi=Q("card-padding"),$6=Q("card-shadow"),ff=Q("card-radius"),z6=Q("card-border-width","0"),R6=Q("card-border-color"),HM=ra({container:{[dp.variable]:"colors.chakra-body-bg",backgroundColor:dp.reference,boxShadow:$6.reference,borderRadius:ff.reference,color:"chakra-body-text",borderWidth:z6.reference,borderColor:R6.reference},body:{padding:mi.reference,flex:"1 1 0%"},header:{padding:mi.reference},footer:{padding:mi.reference}}),GM={sm:ra({container:{[ff.variable]:"radii.base",[mi.variable]:"space.3"}}),md:ra({container:{[ff.variable]:"radii.md",[mi.variable]:"space.5"}}),lg:ra({container:{[ff.variable]:"radii.xl",[mi.variable]:"space.7"}})},qM={elevated:ra({container:{[$6.variable]:"shadows.base",_dark:{[dp.variable]:"colors.gray.700"}}}),outline:ra({container:{[z6.variable]:"1px",[R6.variable]:"colors.chakra-border-color"}}),filled:ra({container:{[dp.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[mi.variable]:0},header:{[mi.variable]:0},footer:{[mi.variable]:0}}},KM=UM({baseStyle:HM,variants:qM,sizes:GM,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:pf,defineMultiStyleConfig:XM}=ce(g6.keys),yc=Q("checkbox-size"),YM=e=>{const{colorScheme:t}=e;return{w:yc.reference,h:yc.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:Z(`${t}.500`,`${t}.200`)(e),borderColor:Z(`${t}.500`,`${t}.200`)(e),color:Z("white","gray.900")(e),_hover:{bg:Z(`${t}.600`,`${t}.300`)(e),borderColor:Z(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:Z("gray.200","transparent")(e),bg:Z("gray.200","whiteAlpha.300")(e),color:Z("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:Z(`${t}.500`,`${t}.200`)(e),borderColor:Z(`${t}.500`,`${t}.200`)(e),color:Z("white","gray.900")(e)},_disabled:{bg:Z("gray.100","whiteAlpha.100")(e),borderColor:Z("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:Z("red.500","red.300")(e)}}},QM={_disabled:{cursor:"not-allowed"}},ZM={userSelect:"none",_disabled:{opacity:.4}},JM={transitionProperty:"transform",transitionDuration:"normal"},eI=pf(e=>({icon:JM,container:QM,control:fn(YM,e),label:ZM})),tI={sm:pf({control:{[yc.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:pf({control:{[yc.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:pf({control:{[yc.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Vi=XM({baseStyle:eI,sizes:tI,defaultProps:{size:"md",colorScheme:"blue"}}),bc=vt("close-button-size"),Rl=vt("close-button-bg"),nI={w:[bc.reference],h:[bc.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},rI={lg:{[bc.variable]:"sizes.10",fontSize:"md"},md:{[bc.variable]:"sizes.8",fontSize:"xs"},sm:{[bc.variable]:"sizes.6",fontSize:"2xs"}},iI={baseStyle:nI,sizes:rI,defaultProps:{size:"md"}},{variants:oI,defaultProps:aI}=vc,sI={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:xt.bg.reference,color:xt.color.reference,boxShadow:xt.shadow.reference},lI={baseStyle:sI,variants:oI,defaultProps:aI},cI={w:"100%",mx:"auto",maxW:"prose",px:"4"},uI={baseStyle:cI},dI={opacity:.6,borderColor:"inherit"},fI={borderStyle:"solid"},pI={borderStyle:"dashed"},mI={solid:fI,dashed:pI},hI={baseStyle:dI,variants:mI,defaultProps:{variant:"solid"}},{definePartsStyle:Bg,defineMultiStyleConfig:gI}=ce(pR.keys),Rh=Q("drawer-bg"),Mh=Q("drawer-box-shadow");function Da(e){return Bg(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const vI={bg:"blackAlpha.600",zIndex:"modal"},yI={display:"flex",zIndex:"modal",justifyContent:"center"},bI=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Rh.variable]:"colors.white",[Mh.variable]:"shadows.lg",_dark:{[Rh.variable]:"colors.gray.700",[Mh.variable]:"shadows.dark-lg"},bg:Rh.reference,boxShadow:Mh.reference}},xI={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},SI={position:"absolute",top:"2",insetEnd:"3"},wI={px:"6",py:"2",flex:"1",overflow:"auto"},kI={px:"6",py:"4"},CI=Bg(e=>({overlay:vI,dialogContainer:yI,dialog:fn(bI,e),header:xI,closeButton:SI,body:wI,footer:kI})),jI={xs:Da("xs"),sm:Da("md"),md:Da("lg"),lg:Da("2xl"),xl:Da("4xl"),full:Da("full")},PI=gI({baseStyle:CI,sizes:jI,defaultProps:{size:"xs"}}),{definePartsStyle:_I,defineMultiStyleConfig:TI}=ce(mR.keys),EI={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},AI={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},$I={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},zI=_I({preview:EI,input:AI,textarea:$I}),RI=TI({baseStyle:zI}),{definePartsStyle:MI,defineMultiStyleConfig:II}=ce(v6.keys),$s=Q("form-control-color"),LI={marginStart:"1",[$s.variable]:"colors.red.500",_dark:{[$s.variable]:"colors.red.300"},color:$s.reference},NI={mt:"2",[$s.variable]:"colors.gray.600",_dark:{[$s.variable]:"colors.whiteAlpha.600"},color:$s.reference,lineHeight:"normal",fontSize:"sm"},DI=MI({container:{width:"100%",position:"relative"},requiredIndicator:LI,helperText:NI}),OI=II({baseStyle:DI}),{definePartsStyle:FI,defineMultiStyleConfig:BI}=ce(hR.keys),zs=Q("form-error-color"),VI={[zs.variable]:"colors.red.500",_dark:{[zs.variable]:"colors.red.300"},color:zs.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},WI={marginEnd:"0.5em",[zs.variable]:"colors.red.500",_dark:{[zs.variable]:"colors.red.300"},color:zs.reference},UI=FI({text:VI,icon:WI}),HI=BI({baseStyle:UI}),GI={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},qI={baseStyle:GI},KI={fontFamily:"heading",fontWeight:"bold"},XI={"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}},YI={baseStyle:KI,sizes:XI,defaultProps:{size:"xl"}},{definePartsStyle:li,defineMultiStyleConfig:QI}=ce(ry.keys),as=Q("input-height"),ss=Q("input-font-size"),ls=Q("input-padding"),cs=Q("input-border-radius"),ZI=li({addon:{height:as.reference,fontSize:ss.reference,px:ls.reference,borderRadius:cs.reference},field:{width:"100%",height:as.reference,fontSize:ss.reference,px:ls.reference,borderRadius:cs.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Ii={lg:{[ss.variable]:"fontSizes.lg",[ls.variable]:"space.4",[cs.variable]:"radii.md",[as.variable]:"sizes.12"},md:{[ss.variable]:"fontSizes.md",[ls.variable]:"space.4",[cs.variable]:"radii.md",[as.variable]:"sizes.10"},sm:{[ss.variable]:"fontSizes.sm",[ls.variable]:"space.3",[cs.variable]:"radii.sm",[as.variable]:"sizes.8"},xs:{[ss.variable]:"fontSizes.xs",[ls.variable]:"space.2",[cs.variable]:"radii.sm",[as.variable]:"sizes.6"}},JI={lg:li({field:Ii.lg,group:Ii.lg}),md:li({field:Ii.md,group:Ii.md}),sm:li({field:Ii.sm,group:Ii.sm}),xs:li({field:Ii.xs,group:Ii.xs})};function sy(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||Z("blue.500","blue.300")(e),errorBorderColor:n||Z("red.500","red.300")(e)}}const eL=li(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=sy(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:Z("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:et(t,r),boxShadow:`0 0 0 1px ${et(t,r)}`},_focusVisible:{zIndex:1,borderColor:et(t,n),boxShadow:`0 0 0 1px ${et(t,n)}`}},addon:{border:"1px solid",borderColor:Z("inherit","whiteAlpha.50")(e),bg:Z("gray.100","whiteAlpha.300")(e)}}}),tL=li(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=sy(e);return{field:{border:"2px solid",borderColor:"transparent",bg:Z("gray.100","whiteAlpha.50")(e),_hover:{bg:Z("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:et(t,r)},_focusVisible:{bg:"transparent",borderColor:et(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:Z("gray.100","whiteAlpha.50")(e)}}}),nL=li(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=sy(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:et(t,r),boxShadow:`0px 1px 0px 0px ${et(t,r)}`},_focusVisible:{borderColor:et(t,n),boxShadow:`0px 1px 0px 0px ${et(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),rL=li({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),iL={outline:eL,filled:tL,flushed:nL,unstyled:rL},De=QI({baseStyle:ZI,sizes:JI,variants:iL,defaultProps:{size:"md",variant:"outline"}}),Ih=Q("kbd-bg"),oL={[Ih.variable]:"colors.gray.100",_dark:{[Ih.variable]:"colors.whiteAlpha.100"},bg:Ih.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},aL={baseStyle:oL},sL={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},lL={baseStyle:sL},{defineMultiStyleConfig:cL,definePartsStyle:uL}=ce(gR.keys),dL={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},fL=uL({icon:dL}),pL=cL({baseStyle:fL}),{defineMultiStyleConfig:mL,definePartsStyle:hL}=ce(y6.keys),Ir=Q("menu-bg"),Lh=Q("menu-shadow"),gL={[Ir.variable]:"#fff",[Lh.variable]:"shadows.sm",_dark:{[Ir.variable]:"colors.gray.700",[Lh.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Ir.reference,boxShadow:Lh.reference},vL={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Ir.variable]:"colors.gray.100",_dark:{[Ir.variable]:"colors.whiteAlpha.100"}},_active:{[Ir.variable]:"colors.gray.200",_dark:{[Ir.variable]:"colors.whiteAlpha.200"}},_expanded:{[Ir.variable]:"colors.gray.100",_dark:{[Ir.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Ir.reference},yL={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},bL={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},xL={opacity:.6},SL={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},wL={transitionProperty:"common",transitionDuration:"normal"},kL=hL({button:wL,list:gL,item:vL,groupTitle:yL,icon:bL,command:xL,divider:SL}),CL=mL({baseStyle:kL}),{defineMultiStyleConfig:jL,definePartsStyle:Vg}=ce(b6.keys),Nh=Q("modal-bg"),Dh=Q("modal-shadow"),PL={bg:"blackAlpha.600",zIndex:"modal"},_L=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"}},TL=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,[Nh.variable]:"colors.white",[Dh.variable]:"shadows.lg",_dark:{[Nh.variable]:"colors.gray.700",[Dh.variable]:"shadows.dark-lg"},bg:Nh.reference,boxShadow:Dh.reference}},EL={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},AL={position:"absolute",top:"2",insetEnd:"3"},$L=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},zL={px:"6",py:"4"},RL=Vg(e=>({overlay:PL,dialogContainer:fn(_L,e),dialog:fn(TL,e),header:EL,closeButton:AL,body:fn($L,e),footer:zL}));function dr(e){return Vg(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const ML={xs:dr("xs"),sm:dr("sm"),md:dr("md"),lg:dr("lg"),xl:dr("xl"),"2xl":dr("2xl"),"3xl":dr("3xl"),"4xl":dr("4xl"),"5xl":dr("5xl"),"6xl":dr("6xl"),full:dr("full")},IL=jL({baseStyle:RL,sizes:ML,defaultProps:{size:"md"}}),M6={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:LL,definePartsStyle:I6}=ce(vR.keys),ly=vt("number-input-stepper-width"),L6=vt("number-input-input-padding"),NL=ri(ly).add("0.5rem").toString(),Oh=vt("number-input-bg"),Fh=vt("number-input-color"),Bh=vt("number-input-border-color"),DL={[ly.variable]:"sizes.6",[L6.variable]:NL},OL=e=>{var t;return((t=fn(De.baseStyle,e))==null?void 0:t.field)??{}},FL={width:ly.reference},BL={borderStart:"1px solid",borderStartColor:Bh.reference,color:Fh.reference,bg:Oh.reference,[Fh.variable]:"colors.chakra-body-text",[Bh.variable]:"colors.chakra-border-color",_dark:{[Fh.variable]:"colors.whiteAlpha.800",[Bh.variable]:"colors.whiteAlpha.300"},_active:{[Oh.variable]:"colors.gray.200",_dark:{[Oh.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},VL=I6(e=>({root:DL,field:fn(OL,e)??{},stepperGroup:FL,stepper:BL}));function xd(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=M6.fontSizes[r];return I6({field:{...t.field,paddingInlineEnd:L6.reference,verticalAlign:"top"},stepper:{fontSize:ri(i).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const WL={xs:xd("xs"),sm:xd("sm"),md:xd("md"),lg:xd("lg")},UL=LL({baseStyle:VL,sizes:WL,variants:De.variants,defaultProps:De.defaultProps});var wk;const HL={...(wk=De.baseStyle)==null?void 0:wk.field,textAlign:"center"},GL={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 kk;const qL={outline:e=>{var t,n;return((n=fn((t=De.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=fn((t=De.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=fn((t=De.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((kk=De.variants)==null?void 0:kk.unstyled.field)??{}},KL={baseStyle:HL,sizes:GL,variants:qL,defaultProps:De.defaultProps},{defineMultiStyleConfig:XL,definePartsStyle:YL}=ce(yR.keys),Sd=vt("popper-bg"),QL=vt("popper-arrow-bg"),xS=vt("popper-arrow-shadow-color"),ZL={zIndex:"popover"},JL={[Sd.variable]:"colors.white",bg:Sd.reference,[QL.variable]:Sd.reference,[xS.variable]:"colors.gray.200",_dark:{[Sd.variable]:"colors.gray.700",[xS.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},eN={px:3,py:2,borderBottomWidth:"1px"},tN={px:3,py:2},nN={px:3,py:2,borderTopWidth:"1px"},rN={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},iN=YL({popper:ZL,content:JL,header:eN,body:tN,footer:nN,closeButton:rN}),oN=XL({baseStyle:iN}),{defineMultiStyleConfig:aN,definePartsStyle:Kl}=ce(x6.keys),sN=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:i}=e,o=Z(hS(),hS("1rem","rgba(0,0,0,0.1)"))(e),a=Z(`${t}.500`,`${t}.200`)(e),l=`linear-gradient(
to right,
transparent 0%,
${et(n,a)} 50%,
transparent 100%
)`;return{...!r&&i&&o,...r?{bgImage:l}:{bgColor:a}}},lN={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},cN=e=>({bg:Z("gray.100","whiteAlpha.300")(e)}),uN=e=>({transitionProperty:"common",transitionDuration:"slow",...sN(e)}),dN=Kl(e=>({label:lN,filledTrack:uN(e),track:cN(e)})),fN={xs:Kl({track:{h:"1"}}),sm:Kl({track:{h:"2"}}),md:Kl({track:{h:"3"}}),lg:Kl({track:{h:"4"}})},pN=aN({sizes:fN,baseStyle:dN,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:mN,definePartsStyle:mf}=ce(S6.keys),hN=e=>{var n;const t=(n=fn(Vi.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"}}}},gN=mf(e=>{var t,n;return{label:(t=Vi.baseStyle)==null?void 0:t.call(Vi,e).label,container:(n=Vi.baseStyle)==null?void 0:n.call(Vi,e).container,control:hN(e)}}),vN={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"}})},yN=mN({baseStyle:gN,sizes:vN,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:bN,definePartsStyle:xN}=ce(bR.keys),wd=Q("select-bg");var Ck;const SN={...(Ck=De.baseStyle)==null?void 0:Ck.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:wd.reference,[wd.variable]:"colors.white",_dark:{[wd.variable]:"colors.gray.700"},"> option, > optgroup":{bg:wd.reference}},wN={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},kN=xN({field:SN,icon:wN}),kd={paddingInlineEnd:"8"};var jk,Pk,_k,Tk,Ek,Ak,$k,zk;const CN={lg:{...(jk=De.sizes)==null?void 0:jk.lg,field:{...(Pk=De.sizes)==null?void 0:Pk.lg.field,...kd}},md:{...(_k=De.sizes)==null?void 0:_k.md,field:{...(Tk=De.sizes)==null?void 0:Tk.md.field,...kd}},sm:{...(Ek=De.sizes)==null?void 0:Ek.sm,field:{...(Ak=De.sizes)==null?void 0:Ak.sm.field,...kd}},xs:{...($k=De.sizes)==null?void 0:$k.xs,field:{...(zk=De.sizes)==null?void 0:zk.xs.field,...kd},icon:{insetEnd:"1"}}},jN=bN({baseStyle:kN,sizes:CN,variants:De.variants,defaultProps:De.defaultProps}),Vh=Q("skeleton-start-color"),Wh=Q("skeleton-end-color"),PN={[Vh.variable]:"colors.gray.100",[Wh.variable]:"colors.gray.400",_dark:{[Vh.variable]:"colors.gray.800",[Wh.variable]:"colors.gray.600"},background:Vh.reference,borderColor:Wh.reference,opacity:.7,borderRadius:"sm"},_N={baseStyle:PN},Uh=Q("skip-link-bg"),TN={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Uh.variable]:"colors.white",_dark:{[Uh.variable]:"colors.gray.700"},bg:Uh.reference}},EN={baseStyle:TN},{defineMultiStyleConfig:AN,definePartsStyle:Zp}=ce(w6.keys),ya=Q("slider-thumb-size"),Yc=Q("slider-track-size"),Hi=Q("slider-bg"),$N=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...oy({orientation:t,vertical:{h:"100%",px:ni(ya.reference).divide(2).toString()},horizontal:{w:"100%",py:ni(ya.reference).divide(2).toString()}})}},zN=e=>({...oy({orientation:e.orientation,horizontal:{h:Yc.reference},vertical:{w:Yc.reference}}),overflow:"hidden",borderRadius:"sm",[Hi.variable]:"colors.gray.200",_dark:{[Hi.variable]:"colors.whiteAlpha.200"},_disabled:{[Hi.variable]:"colors.gray.300",_dark:{[Hi.variable]:"colors.whiteAlpha.300"}},bg:Hi.reference}),RN=e=>{const{orientation:t}=e;return{...oy({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:ya.reference,h:ya.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"}}},MN=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Hi.variable]:`colors.${t}.500`,_dark:{[Hi.variable]:`colors.${t}.200`},bg:Hi.reference}},IN=Zp(e=>({container:$N(e),track:zN(e),thumb:RN(e),filledTrack:MN(e)})),LN=Zp({container:{[ya.variable]:"sizes.4",[Yc.variable]:"sizes.1"}}),NN=Zp({container:{[ya.variable]:"sizes.3.5",[Yc.variable]:"sizes.1"}}),DN=Zp({container:{[ya.variable]:"sizes.2.5",[Yc.variable]:"sizes.0.5"}}),ON={lg:LN,md:NN,sm:DN},FN=AN({baseStyle:IN,sizes:ON,defaultProps:{size:"md",colorScheme:"blue"}}),Ho=vt("spinner-size"),BN={width:[Ho.reference],height:[Ho.reference]},VN={xs:{[Ho.variable]:"sizes.3"},sm:{[Ho.variable]:"sizes.4"},md:{[Ho.variable]:"sizes.6"},lg:{[Ho.variable]:"sizes.8"},xl:{[Ho.variable]:"sizes.12"}},WN={baseStyle:BN,sizes:VN,defaultProps:{size:"md"}},{defineMultiStyleConfig:UN,definePartsStyle:N6}=ce(xR.keys),HN={fontWeight:"medium"},GN={opacity:.8,marginBottom:"2"},qN={verticalAlign:"baseline",fontWeight:"semibold"},KN={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},XN=N6({container:{},label:HN,helpText:GN,number:qN,icon:KN}),YN={md:N6({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},QN=UN({baseStyle:XN,sizes:YN,defaultProps:{size:"md"}}),{defineMultiStyleConfig:ZN,definePartsStyle:Xl}=ce(["stepper","step","title","description","indicator","separator","icon","number"]),ii=Q("stepper-indicator-size"),us=Q("stepper-icon-size"),ds=Q("stepper-title-font-size"),Yl=Q("stepper-description-font-size"),Ml=Q("stepper-accent-color"),JN=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:ds.reference,fontWeight:"medium"},description:{fontSize:Yl.reference,color:"chakra-subtle-text"},number:{fontSize:ds.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:us.reference,height:us.reference},indicator:{flexShrink:0,borderRadius:"full",width:ii.reference,height:ii.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% - ${ii.reference} - 8px)`,top:`calc(${ii.reference} + 4px)`,insetStart:`calc(${ii.reference} / 2 - 1px)`}}})),eD=ZN({baseStyle:JN,sizes:{xs:Xl({stepper:{[ii.variable]:"sizes.4",[us.variable]:"sizes.3",[ds.variable]:"fontSizes.xs",[Yl.variable]:"fontSizes.xs"}}),sm:Xl({stepper:{[ii.variable]:"sizes.6",[us.variable]:"sizes.4",[ds.variable]:"fontSizes.sm",[Yl.variable]:"fontSizes.xs"}}),md:Xl({stepper:{[ii.variable]:"sizes.8",[us.variable]:"sizes.5",[ds.variable]:"fontSizes.md",[Yl.variable]:"fontSizes.sm"}}),lg:Xl({stepper:{[ii.variable]:"sizes.10",[us.variable]:"sizes.6",[ds.variable]:"fontSizes.lg",[Yl.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:tD,definePartsStyle:hf}=ce(k6.keys),xc=vt("switch-track-width"),ia=vt("switch-track-height"),Hh=vt("switch-track-diff"),nD=ri.subtract(xc,ia),Wg=vt("switch-thumb-x"),Il=vt("switch-bg"),rD=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[xc.reference],height:[ia.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}},iD={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[ia.reference],height:[ia.reference],_checked:{transform:`translateX(${Wg.reference})`}},oD=hf(e=>({container:{[Hh.variable]:nD,[Wg.variable]:Hh.reference,_rtl:{[Wg.variable]:ri(Hh).negate().toString()}},track:rD(e),thumb:iD})),aD={sm:hf({container:{[xc.variable]:"1.375rem",[ia.variable]:"sizes.3"}}),md:hf({container:{[xc.variable]:"1.875rem",[ia.variable]:"sizes.4"}}),lg:hf({container:{[xc.variable]:"2.875rem",[ia.variable]:"sizes.6"}})},sD=tD({baseStyle:oD,sizes:aD,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:lD,definePartsStyle:Rs}=ce(SR.keys),cD=Rs({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"}}),fp={"&[data-is-numeric=true]":{textAlign:"end"}},uD=Rs(e=>{const{colorScheme:t}=e;return{th:{color:Z("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Z(`${t}.100`,`${t}.700`)(e),...fp},td:{borderBottom:"1px",borderColor:Z(`${t}.100`,`${t}.700`)(e),...fp},caption:{color:Z("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),dD=Rs(e=>{const{colorScheme:t}=e;return{th:{color:Z("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Z(`${t}.100`,`${t}.700`)(e),...fp},td:{borderBottom:"1px",borderColor:Z(`${t}.100`,`${t}.700`)(e),...fp},caption:{color:Z("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:Z(`${t}.100`,`${t}.700`)(e)},td:{background:Z(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),fD={simple:uD,striped:dD,unstyled:{}},pD={sm:Rs({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:Rs({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Rs({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},mD=lD({baseStyle:cD,variants:fD,sizes:pD,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),bn=Q("tabs-color"),yr=Q("tabs-bg"),Cd=Q("tabs-border-color"),{defineMultiStyleConfig:hD,definePartsStyle:Ur}=ce(wR.keys),gD=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},vD=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}}},yD=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},bD={p:4},xD=Ur(e=>({root:gD(e),tab:vD(e),tablist:yD(e),tabpanel:bD})),SD={sm:Ur({tab:{py:1,px:4,fontSize:"sm"}}),md:Ur({tab:{fontSize:"md",py:2,px:4}}),lg:Ur({tab:{fontSize:"lg",py:3,px:4}})},wD=Ur(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:{[bn.variable]:`colors.${t}.600`,_dark:{[bn.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[yr.variable]:"colors.gray.200",_dark:{[yr.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:bn.reference,bg:yr.reference}}}),kD=Ur(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Cd.variable]:"transparent",_selected:{[bn.variable]:`colors.${t}.600`,[Cd.variable]:"colors.white",_dark:{[bn.variable]:`colors.${t}.300`,[Cd.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Cd.reference},color:bn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),CD=Ur(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[yr.variable]:"colors.gray.50",_dark:{[yr.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[yr.variable]:"colors.white",[bn.variable]:`colors.${t}.600`,_dark:{[yr.variable]:"colors.gray.800",[bn.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:bn.reference,bg:yr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),jD=Ur(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:et(n,`${t}.700`),bg:et(n,`${t}.100`)}}}}),PD=Ur(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[bn.variable]:"colors.gray.600",_dark:{[bn.variable]:"inherit"},_selected:{[bn.variable]:"colors.white",[yr.variable]:`colors.${t}.600`,_dark:{[bn.variable]:"colors.gray.800",[yr.variable]:`colors.${t}.300`}},color:bn.reference,bg:yr.reference}}}),_D=Ur({}),TD={line:wD,enclosed:kD,"enclosed-colored":CD,"soft-rounded":jD,"solid-rounded":PD,unstyled:_D},ED=hD({baseStyle:xD,sizes:SD,variants:TD,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:AD,definePartsStyle:oa}=ce(kR.keys),SS=Q("tag-bg"),wS=Q("tag-color"),Gh=Q("tag-shadow"),gf=Q("tag-min-height"),vf=Q("tag-min-width"),yf=Q("tag-font-size"),bf=Q("tag-padding-inline"),$D={fontWeight:"medium",lineHeight:1.2,outline:0,[wS.variable]:xt.color.reference,[SS.variable]:xt.bg.reference,[Gh.variable]:xt.shadow.reference,color:wS.reference,bg:SS.reference,boxShadow:Gh.reference,borderRadius:"md",minH:gf.reference,minW:vf.reference,fontSize:yf.reference,px:bf.reference,_focusVisible:{[Gh.variable]:"shadows.outline"}},zD={lineHeight:1.2,overflow:"visible"},RD={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}},MD=oa({container:$D,label:zD,closeButton:RD}),ID={sm:oa({container:{[gf.variable]:"sizes.5",[vf.variable]:"sizes.5",[yf.variable]:"fontSizes.xs",[bf.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:oa({container:{[gf.variable]:"sizes.6",[vf.variable]:"sizes.6",[yf.variable]:"fontSizes.sm",[bf.variable]:"space.2"}}),lg:oa({container:{[gf.variable]:"sizes.8",[vf.variable]:"sizes.8",[yf.variable]:"fontSizes.md",[bf.variable]:"space.3"}})},LD={subtle:oa(e=>{var t;return{container:(t=vc.variants)==null?void 0:t.subtle(e)}}),solid:oa(e=>{var t;return{container:(t=vc.variants)==null?void 0:t.solid(e)}}),outline:oa(e=>{var t;return{container:(t=vc.variants)==null?void 0:t.outline(e)}})},ND=AD({variants:LD,baseStyle:MD,sizes:ID,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var Rk;const DD={...(Rk=De.baseStyle)==null?void 0:Rk.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var Mk;const OD={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:((Mk=De.variants)==null?void 0:Mk.unstyled.field)??{}};var Ik,Lk,Nk,Dk;const FD={xs:((Ik=De.sizes)==null?void 0:Ik.xs.field)??{},sm:((Lk=De.sizes)==null?void 0:Lk.sm.field)??{},md:((Nk=De.sizes)==null?void 0:Nk.md.field)??{},lg:((Dk=De.sizes)==null?void 0:Dk.lg.field)??{}},BD={baseStyle:DD,sizes:FD,variants:OD,defaultProps:{size:"md",variant:"outline"}},jd=vt("tooltip-bg"),qh=vt("tooltip-fg"),VD=vt("popper-arrow-bg"),WD={bg:jd.reference,color:qh.reference,[jd.variable]:"colors.gray.700",[qh.variable]:"colors.whiteAlpha.900",_dark:{[jd.variable]:"colors.gray.300",[qh.variable]:"colors.gray.900"},[VD.variable]:jd.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},UD={baseStyle:WD},HD={Accordion:$R,Alert:pM,Avatar:CM,Badge:vc,Breadcrumb:MM,Button:WM,Checkbox:Vi,CloseButton:iI,Code:lI,Container:uI,Divider:hI,Drawer:PI,Editable:RI,Form:OI,FormError:HI,FormLabel:qI,Heading:YI,Input:De,Kbd:aL,Link:lL,List:pL,Menu:CL,Modal:IL,NumberInput:UL,PinInput:KL,Popover:oN,Progress:pN,Radio:yN,Select:jN,Skeleton:_N,SkipLink:EN,Slider:FN,Spinner:WN,Stat:QN,Switch:sD,Table:mD,Tabs:ED,Tag:ND,Textarea:BD,Tooltip:UD,Card:KM,Stepper:eD},GD={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},qD={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"}},XD={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},YD={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"},QD={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"},ZD={"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)"},JD={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},eO={property:QD,easing:ZD,duration:JD},tO={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},nO={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},rO={breakpoints:qD,zIndices:tO,radii:XD,blur:nO,colors:KD,...M6,sizes:T6,shadows:YD,space:_6,borders:GD,transition:eO},iO={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"}}},oO={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"}}},aO=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function sO(e){return $t(e)?aO.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}const lO="ltr",cO={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Yo={semanticTokens:iO,direction:lO,...rO,components:HD,styles:oO,config:cO};function uO(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 dO(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 fO=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(dO(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=uO(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}(),Jt="-ms-",pp="-moz-",Le="-webkit-",D6="comm",cy="rule",uy="decl",pO="@import",O6="@keyframes",mO="@layer",hO=Math.abs,Jp=String.fromCharCode,gO=Object.assign;function vO(e,t){return Wt(e,0)^45?(((t<<2^Wt(e,0))<<2^Wt(e,1))<<2^Wt(e,2))<<2^Wt(e,3):0}function F6(e){return e.trim()}function yO(e,t){return(e=t.exec(e))?e[0]:e}function Ne(e,t,n){return e.replace(t,n)}function Ug(e,t){return e.indexOf(t)}function Wt(e,t){return e.charCodeAt(t)|0}function Qc(e,t,n){return e.slice(t,n)}function Lr(e){return e.length}function dy(e){return e.length}function Pd(e,t){return t.push(e),e}function bO(e,t){return e.map(t).join("")}var em=1,Ks=1,B6=0,Pn=0,kt=0,dl="";function tm(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:em,column:Ks,length:a,return:""}}function Ll(e,t){return gO(tm("",null,null,"",null,null,0),e,{length:-e.length},t)}function xO(){return kt}function SO(){return kt=Pn>0?Wt(dl,--Pn):0,Ks--,kt===10&&(Ks=1,em--),kt}function Rn(){return kt=Pn<B6?Wt(dl,Pn++):0,Ks++,kt===10&&(Ks=1,em++),kt}function Hr(){return Wt(dl,Pn)}function xf(){return Pn}function ju(e,t){return Qc(dl,e,t)}function Zc(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 V6(e){return em=Ks=1,B6=Lr(dl=e),Pn=0,[]}function W6(e){return dl="",e}function Sf(e){return F6(ju(Pn-1,Hg(e===91?e+2:e===40?e+1:e)))}function wO(e){for(;(kt=Hr())&&kt<33;)Rn();return Zc(e)>2||Zc(kt)>3?"":" "}function kO(e,t){for(;--t&&Rn()&&!(kt<48||kt>102||kt>57&&kt<65||kt>70&&kt<97););return ju(e,xf()+(t<6&&Hr()==32&&Rn()==32))}function Hg(e){for(;Rn();)switch(kt){case e:return Pn;case 34:case 39:e!==34&&e!==39&&Hg(kt);break;case 40:e===41&&Hg(e);break;case 92:Rn();break}return Pn}function CO(e,t){for(;Rn()&&e+kt!==57;)if(e+kt===84&&Hr()===47)break;return"/*"+ju(t,Pn-1)+"*"+Jp(e===47?e:Rn())}function jO(e){for(;!Zc(Hr());)Rn();return ju(e,Pn)}function PO(e){return W6(wf("",null,null,null,[""],e=V6(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=Rn()){case 40:if(v!=108&&Wt(j,f-1)==58){Ug(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+=wO(v);break;case 92:j+=kO(xf()-1,7);continue;case 47:switch(Hr()){case 42:case 47:Pd(_O(CO(Rn(),xf()),t,n),c);break;default:j+="/"}break;case 123*y:l[u++]=Lr(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&&Lr(j)-f&&Pd(h>32?CS(j+";",r,n,f-1):CS(Ne(j," ","")+";",r,n,f-2),c);break;case 59:j+=";";default:if(Pd(P=kS(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&&Wt(j,3)===110?100:p){case 100:case 108:case 109:case 115:wf(e,P,P,r&&Pd(kS(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+Lr(j),h=v;default:if(y<1){if(g==123)--y;else if(g==125&&y++==0&&SO()==125)continue}switch(j+=Jp(g),g*y){case 38:b=d>0?1:(j+="\f",-1);break;case 44:l[u++]=(Lr(j)-1)*b,b=1;break;case 64:Hr()===45&&(j+=Sf(Rn())),p=Hr(),d=f=Lr(S=j+=jO(xf())),g++;break;case 45:v===45&&Lr(j)==2&&(y=0)}}return o}function kS(e,t,n,r,i,o,a,l,c,u,d){for(var f=i-1,p=i===0?o:[""],h=dy(p),v=0,y=0,x=0;v<r;++v)for(var b=0,g=Qc(e,f+1,f=hO(y=a[v])),S=e;b<h;++b)(S=F6(y>0?p[b]+" "+g:Ne(g,/&\f/g,p[b])))&&(c[x++]=S);return tm(e,t,n,i===0?cy:l,c,u,d)}function _O(e,t,n){return tm(e,t,n,D6,Jp(xO()),Qc(e,2,-2),0)}function CS(e,t,n,r){return tm(e,t,n,uy,Qc(e,0,r),Qc(e,r+1,-1),r)}function Ms(e,t){for(var n="",r=dy(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function TO(e,t,n,r){switch(e.type){case mO:if(e.children.length)break;case pO:case uy:return e.return=e.return||e.value;case D6:return"";case O6:return e.return=e.value+"{"+Ms(e.children,r)+"}";case cy:e.value=e.props.join(",")}return Lr(n=Ms(e.children,r))?e.return=e.value+"{"+n+"}":""}function EO(e){var t=dy(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 AO(e){return function(t){t.root||(t=t.return)&&e(t)}}var jS=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 U6(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var $O=function(t,n,r){for(var i=0,o=0;i=o,o=Hr(),i===38&&o===12&&(n[r]=1),!Zc(o);)Rn();return ju(t,Pn)},zO=function(t,n){var r=-1,i=44;do switch(Zc(i)){case 0:i===38&&Hr()===12&&(n[r]=1),t[r]+=$O(Pn-1,n,r);break;case 2:t[r]+=Sf(i);break;case 4:if(i===44){t[++r]=Hr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Jp(i)}while(i=Rn());return t},RO=function(t,n){return W6(zO(V6(t),n))},PS=new WeakMap,MO=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&&!PS.get(r))&&!i){PS.set(t,!0);for(var o=[],a=RO(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]}}},IO=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function H6(e,t){switch(vO(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+pp+e+Jt+e+e;case 6828:case 4268:return Le+e+Jt+e+e;case 6165:return Le+e+Jt+"flex-"+e+e;case 5187:return Le+e+Ne(e,/(\w+).+(:[^]+)/,Le+"box-$1$2"+Jt+"flex-$1$2")+e;case 5443:return Le+e+Jt+"flex-item-"+Ne(e,/flex-|-self/,"")+e;case 4675:return Le+e+Jt+"flex-line-pack"+Ne(e,/align-content|flex-|-self/,"")+e;case 5548:return Le+e+Jt+Ne(e,"shrink","negative")+e;case 5292:return Le+e+Jt+Ne(e,"basis","preferred-size")+e;case 6060:return Le+"box-"+Ne(e,"-grow","")+Le+e+Jt+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"+Jt+"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(Lr(e)-1-t>6)switch(Wt(e,t+1)){case 109:if(Wt(e,t+4)!==45)break;case 102:return Ne(e,/(.+:)(.+)-([^]+)/,"$1"+Le+"$2-$3$1"+pp+(Wt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ug(e,"stretch")?H6(Ne(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Wt(e,t+1)!==115)break;case 6444:switch(Wt(e,Lr(e)-3-(~Ug(e,"!important")&&10))){case 107:return Ne(e,":",":"+Le)+e;case 101:return Ne(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Le+(Wt(e,14)===45?"inline-":"")+"box$3$1"+Le+"$2$3$1"+Jt+"$2box$3")+e}break;case 5936:switch(Wt(e,t+11)){case 114:return Le+e+Jt+Ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Le+e+Jt+Ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Le+e+Jt+Ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Le+e+Jt+e+e}return e}var LO=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case uy:t.return=H6(t.value,t.length);break;case O6:return Ms([Ll(t,{value:Ne(t.value,"@","@"+Le)})],i);case cy:if(t.length)return bO(t.props,function(o){switch(yO(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ms([Ll(t,{props:[Ne(o,/:(read-\w+)/,":"+pp+"$1")]})],i);case"::placeholder":return Ms([Ll(t,{props:[Ne(o,/:(plac\w+)/,":"+Le+"input-$1")]}),Ll(t,{props:[Ne(o,/:(plac\w+)/,":"+pp+"$1")]}),Ll(t,{props:[Ne(o,/:(plac\w+)/,Jt+"input-$1")]})],i)}return""})}},NO=[LO],DO=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||NO,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=[MO,IO];{var d,f=[TO,AO(function(y){d.insert(y)})],p=EO(u.concat(i,f)),h=function(x){return Ms(PO(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 fO({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 ba(){return ba=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},ba.apply(null,arguments)}var G6={exports:{}},We={};/** @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 Ot=typeof Symbol=="function"&&Symbol.for,fy=Ot?Symbol.for("react.element"):60103,py=Ot?Symbol.for("react.portal"):60106,nm=Ot?Symbol.for("react.fragment"):60107,rm=Ot?Symbol.for("react.strict_mode"):60108,im=Ot?Symbol.for("react.profiler"):60114,om=Ot?Symbol.for("react.provider"):60109,am=Ot?Symbol.for("react.context"):60110,my=Ot?Symbol.for("react.async_mode"):60111,sm=Ot?Symbol.for("react.concurrent_mode"):60111,lm=Ot?Symbol.for("react.forward_ref"):60112,cm=Ot?Symbol.for("react.suspense"):60113,OO=Ot?Symbol.for("react.suspense_list"):60120,um=Ot?Symbol.for("react.memo"):60115,dm=Ot?Symbol.for("react.lazy"):60116,FO=Ot?Symbol.for("react.block"):60121,BO=Ot?Symbol.for("react.fundamental"):60117,VO=Ot?Symbol.for("react.responder"):60118,WO=Ot?Symbol.for("react.scope"):60119;function Wn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case fy:switch(e=e.type,e){case my:case sm:case nm:case im:case rm:case cm:return e;default:switch(e=e&&e.$$typeof,e){case am:case lm:case dm:case um:case om:return e;default:return t}}case py:return t}}}function q6(e){return Wn(e)===sm}We.AsyncMode=my;We.ConcurrentMode=sm;We.ContextConsumer=am;We.ContextProvider=om;We.Element=fy;We.ForwardRef=lm;We.Fragment=nm;We.Lazy=dm;We.Memo=um;We.Portal=py;We.Profiler=im;We.StrictMode=rm;We.Suspense=cm;We.isAsyncMode=function(e){return q6(e)||Wn(e)===my};We.isConcurrentMode=q6;We.isContextConsumer=function(e){return Wn(e)===am};We.isContextProvider=function(e){return Wn(e)===om};We.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===fy};We.isForwardRef=function(e){return Wn(e)===lm};We.isFragment=function(e){return Wn(e)===nm};We.isLazy=function(e){return Wn(e)===dm};We.isMemo=function(e){return Wn(e)===um};We.isPortal=function(e){return Wn(e)===py};We.isProfiler=function(e){return Wn(e)===im};We.isStrictMode=function(e){return Wn(e)===rm};We.isSuspense=function(e){return Wn(e)===cm};We.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===nm||e===sm||e===im||e===rm||e===cm||e===OO||typeof e=="object"&&e!==null&&(e.$$typeof===dm||e.$$typeof===um||e.$$typeof===om||e.$$typeof===am||e.$$typeof===lm||e.$$typeof===BO||e.$$typeof===VO||e.$$typeof===WO||e.$$typeof===FO)};We.typeOf=Wn;G6.exports=We;var UO=G6.exports,K6=UO,HO={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},GO={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},X6={};X6[K6.ForwardRef]=HO;X6[K6.Memo]=GO;var qO=!0;function Y6(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var hy=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||qO===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},gy=function(t,n,r){hy(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 XO={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},YO=/[A-Z]|^ms/g,QO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Q6=function(t){return t.charCodeAt(1)===45},_S=function(t){return t!=null&&typeof t!="boolean"},Kh=U6(function(e){return Q6(e)?e:e.replace(YO,"-$&").toLowerCase()}),TS=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(QO,function(r,i,o){return Nr={name:i,styles:o,next:Nr},i})}return XO[t]!==1&&!Q6(t)&&typeof n=="number"&&n!==0?n+"px":n};function Jc(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 Nr={name:i.name,styles:i.styles,next:Nr},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Nr={name:a.name,styles:a.styles,next:Nr},a=a.next;var l=o.styles+";";return l}return ZO(e,t,n)}case"function":{if(e!==void 0){var c=Nr,u=n(e);return Nr=c,Jc(e,t,u)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function ZO(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Jc(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]+"}":_S(l)&&(r+=Kh(o)+":"+TS(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++)_S(a[c])&&(r+=Kh(o)+":"+TS(o,a[c])+";");else{var u=Jc(e,t,a);switch(o){case"animation":case"animationName":{r+=Kh(o)+":"+u+";";break}default:r+=o+"{"+u+"}"}}}return r}var ES=/label:\s*([^\s;{]+)\s*(;|$)/g,Nr;function fm(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="";Nr=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=Jc(n,t,o);else{var a=o;i+=a[0]}for(var l=1;l<e.length;l++)if(i+=Jc(n,t,e[l]),r){var c=o;i+=c[l]}ES.lastIndex=0;for(var u="",d;(d=ES.exec(i))!==null;)u+="-"+d[1];var f=KO(i)+u;return{name:f,styles:i,next:Nr}}var JO=function(t){return t()},Z6=O0.useInsertionEffect?O0.useInsertionEffect:!1,J6=Z6||JO,AS=Z6||m.useLayoutEffect,vy=m.createContext(typeof HTMLElement<"u"?DO({key:"css"}):null);vy.Provider;var eF=function(){return m.useContext(vy)},yy=function(t){return m.forwardRef(function(n,r){var i=m.useContext(vy);return t(n,i,r)})},Xs=m.createContext({}),tF=function(t,n){if(typeof n=="function"){var r=n(t);return r}return ba({},t,n)},nF=jS(function(e){return jS(function(t){return tF(e,t)})}),rF=function(t){var n=m.useContext(Xs);return t.theme!==n&&(n=nF(n)(t.theme)),m.createElement(Xs.Provider,{value:n},t.children)},by={}.hasOwnProperty,Gg="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",iF=function(t,n){var r={};for(var i in n)by.call(n,i)&&(r[i]=n[i]);return r[Gg]=t,r},oF=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return hy(n,r,i),J6(function(){return gy(n,r,i)}),null},aF=yy(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Gg],o=[r],a="";typeof e.className=="string"?a=Y6(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var l=fm(o,void 0,m.useContext(Xs));a+=t.key+"-"+l.name;var c={};for(var u in e)by.call(e,u)&&u!=="css"&&u!==Gg&&(c[u]=e[u]);return c.className=a,n&&(c.ref=n),m.createElement(m.Fragment,null,m.createElement(oF,{cache:t,serialized:l,isStringTag:typeof i=="string"}),m.createElement(i,c))}),sF=aF,$S=function(t,n){var r=arguments;if(n==null||!by.call(n,"css"))return m.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=sF,o[1]=iF(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={}))})($S||($S={}));var pm=yy(function(e,t){var n=e.styles,r=fm([n],void 0,m.useContext(Xs)),i=m.useRef();return AS(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]),AS(function(){var o=i.current,a=o[0],l=o[1];if(l){o[1]=!1;return}if(r.next!==void 0&&gy(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 lF(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return fm(t)}function Pu(){var e=lF.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 xy=m.createContext({});xy.displayName="ColorModeContext";function _u(){const e=m.useContext(xy);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function qg(e,t){const{colorMode:n}=_u();return n==="dark"?t:e}const _d={light:"chakra-ui-light",dark:"chakra-ui-dark"};function cF(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?_d.dark:_d.light),document.body.classList.remove(i?_d.light:_d.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 uF="chakra-ui-color-mode";function dF(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 fF=dF(uF),zS=()=>{},pF=k$()?m.useLayoutEffect:m.useEffect;function RS(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const ej=function(t){const{value:n,children:r,options:{useSystemColorMode:i,initialColorMode:o,disableTransitionOnChange:a}={},colorModeManager:l=fF}=t,c=eF(),u=o==="dark"?"dark":"light",[d,f]=m.useState(()=>RS(l,u)),[p,h]=m.useState(()=>RS(l)),{getSystemTheme:v,setClassName:y,setDataset:x,addListener:b}=m.useMemo(()=>cF({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]);pF(()=>{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?zS:w,setColorMode:n?zS:S,forced:n!==void 0}),[g,w,S,n]);return s.jsx(xy.Provider,{value:k,children:r})};ej.displayName="ColorModeProvider";const tj=String.raw,nj=tj`
: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;
}
}
`,mF=()=>s.jsx(pm,{styles:nj}),hF=({scope:e=""})=>s.jsx(pm,{styles:tj`
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;
}
${nj}
`});function gF(e){const{cssVarsRoot:t,theme:n,children:r}=e,i=m.useMemo(()=>cR(n),[n]);return s.jsxs(rF,{theme:i,children:[s.jsx(vF,{root:t}),r]})}function vF({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return s.jsx(pm,{styles:n=>({[t]:n.__cssVars})})}we({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function Pr(e){return we({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function yF(){const{colorMode:e}=_u();return s.jsx(pm,{styles:t=>{const n=e6(t,"styles.global"),r=rn(n,{theme:t,colorMode:e});return r?f6(r)(t):void 0}})}const[bF,xF]=we({strict:!1,name:"PortalManagerContext"});function rj(e){const{children:t,zIndex:n}=e;return s.jsx(bF,{value:{zIndex:n},children:t})}rj.displayName="PortalManager";const Sy=m.createContext({getDocument(){return document},getWindow(){return window}});Sy.displayName="EnvironmentContext";function SF({defer:e}={}){const[,t]=m.useReducer(n=>n+1,0);return pi(()=>{e&&t()},[e]),m.useContext(Sy)}function ij(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(Sy.Provider,{value:o,children:[t,a&&s.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}ij.displayName="EnvironmentProvider";const wF=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(ij,{environment:l,disabled:u,children:t});return s.jsx(gF,{theme:a,cssVarsRoot:c,children:s.jsxs(ej,{colorModeManager:n,options:a.config,children:[o?s.jsx(hF,{scope:i}):s.jsx(mF,{}),!d&&s.jsx(yF,{}),r?s.jsx(rj,{zIndex:r,children:f}):f]})})},wy=m.createContext({});function ky(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const Tu=m.createContext(null),Cy=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class kF 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 CF({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(Cy);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(kF,{isPresent:t,childRef:r,sizeRef:i,children:m.cloneElement(e,{ref:r})})}const jF=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const l=ky(PF),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(CF,{isPresent:n,children:e})),s.jsx(Tu.Provider,{value:d,children:e})};function PF(){return new Map}function jy(e=!0){const t=m.useContext(Tu);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 _F(){return TF(m.useContext(Tu))}function TF(e){return e===null?!0:e.isPresent}const Td=e=>e.key||"";function MS(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const Py=typeof window<"u",oj=Py?m.useLayoutEffect:m.useEffect,_i=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1})=>{const[l,c]=jy(a),u=m.useMemo(()=>MS(e),[e]),d=a&&!l?[]:u.map(Td),f=m.useRef(!0),p=m.useRef(u),h=ky(()=>new Map),[v,y]=m.useState(u),[x,b]=m.useState(u);oj(()=>{f.current=!1,p.current=u;for(let w=0;w<x.length;w++){const k=Td(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=Td(P);d.includes(j)||(w.splice(k,0,P),g.push(P))}o==="wait"&&g.length&&(w=g),b(MS(w)),y(u);return}const{forceRender:S}=m.useContext(wy);return s.jsx(s.Fragment,{children:x.map(w=>{const k=Td(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(jF,{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)})})},Mn=e=>e;let aj=Mn;function _y(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ys=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},hi=e=>e*1e3,gi=e=>e/1e3,EF={useManualTiming:!1};function AF(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 Ed=["read","resolveKeyframes","update","preRender","render","postRender"],$F=40;function sj(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Ed.reduce((b,g)=>(b[g]=AF(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,$F),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:Ed.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<Ed.length;g++)a[Ed[g]].cancel(b)},state:i,steps:a}}const{schedule:nt,cancel:mo,state:Bt,steps:Xh}=sj(typeof requestAnimationFrame<"u"?requestAnimationFrame:Mn,!0),lj=m.createContext({strict:!1}),IS={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"]},Qs={};for(const e in IS)Qs[e]={isEnabled:t=>IS[e].some(n=>!!t[n])};function zF(e){for(const t in e)Qs[t]={...Qs[t],...e[t]}}const RF=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 mp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||RF.has(e)}let cj=e=>!mp(e);function MF(e){e&&(cj=t=>t.startsWith("on")?!mp(t):e(t))}try{MF(require("@emotion/is-prop-valid").default)}catch{}function IF(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(cj(i)||n===!0&&mp(i)||!t&&!mp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function LF(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 mm=m.createContext({});function eu(e){return typeof e=="string"||Array.isArray(e)}function hm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ty=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ey=["initial",...Ty];function gm(e){return hm(e.animate)||Ey.some(t=>eu(e[t]))}function uj(e){return!!(gm(e)||e.variants)}function NF(e,t){if(gm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||eu(n)?n:void 0,animate:eu(r)?r:void 0}}return e.inherit!==!1?t:{}}function DF(e){const{initial:t,animate:n}=NF(e,m.useContext(mm));return m.useMemo(()=>({initial:t,animate:n}),[LS(t),LS(n)])}function LS(e){return Array.isArray(e)?e.join(" "):e}const OF=Symbol.for("motionComponentSymbol");function fs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function FF(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):fs(n)&&(n.current=r))},[t])}const Ay=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),BF="framerAppearId",dj="data-"+Ay(BF),{schedule:$y}=sj(queueMicrotask,!1),fj=m.createContext({});function VF(e,t,n,r,i){var o,a;const{visualElement:l}=m.useContext(mm),c=m.useContext(lj),u=m.useContext(Tu),d=m.useContext(Cy).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(fj);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&WF(f.current,n,i,h);const v=m.useRef(!1);m.useInsertionEffect(()=>{p&&v.current&&p.update(n,u)});const y=n[dj],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 oj(()=>{p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),$y.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 WF(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:pj(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||l&&fs(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:u})}function pj(e){if(e)return e.options.allowProjection!==!1?e.projection:pj(e.parent)}function UF({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&zF(e);function l(u,d){let f;const p={...m.useContext(Cy),...u,layoutId:HF(u)},{isStatic:h}=p,v=DF(u),y=r(u,h);if(!h&&Py){GF();const x=qF(p);f=x.MeasureLayout,v.visualElement=VF(i,y,p,t,x.ProjectionNode)}return s.jsxs(mm.Provider,{value:v,children:[f&&v.visualElement?s.jsx(f,{visualElement:v.visualElement,...p}):null,n(i,u,FF(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[OF]=i,c}function HF({layoutId:e}){const t=m.useContext(wy).id;return t&&e!==void 0?t+"-"+e:e}function GF(e,t){m.useContext(lj).strict}function qF(e){const{drag:t,layout:n}=Qs;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 zy(e){return typeof e!="string"||e.includes("-")?!1:!!(KF.indexOf(e)>-1||/[A-Z]/u.test(e))}function NS(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ry(e,t,n,r){if(typeof t=="function"){const[i,o]=NS(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]=NS(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Kg=e=>Array.isArray(e),XF=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),YF=e=>Kg(e)?e[e.length-1]||0:e,on=e=>!!(e&&e.getVelocity);function kf(e){const t=on(e)?e.get():e;return XF(t)?t.toValue():t}function QF({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:ZF(r,i,o,e),renderState:t()};return n&&(a.onMount=l=>n({props:r,current:l,...a}),a.onUpdate=l=>n(l)),a}const mj=e=>(t,n)=>{const r=m.useContext(mm),i=m.useContext(Tu),o=()=>QF(e,t,r,i);return n?o():ky(o)};function ZF(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=gm(e),u=uj(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"&&!hm(f)){const p=Array.isArray(f)?f:[f];for(let h=0;h<p.length;h++){const v=Ry(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 fl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Aa=new Set(fl),hj=e=>t=>typeof t=="string"&&t.startsWith(e),gj=hj("--"),JF=hj("var(--"),My=e=>JF(e)?eB.test(e.split("/*")[0].trim()):!1,eB=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,vj=(e,t)=>t&&typeof e=="number"?t.transform(e):e,wi=(e,t,n)=>n>t?t:n<e?e:n,pl={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},tu={...pl,transform:e=>wi(0,1,e)},Ad={...pl,default:1},Eu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ni=Eu("deg"),Gr=Eu("%"),me=Eu("px"),tB=Eu("vh"),nB=Eu("vw"),DS={...Gr,parse:e=>Gr.parse(e)/100,transform:e=>Gr.transform(e*100)},rB={borderWidth:me,borderTopWidth:me,borderRightWidth:me,borderBottomWidth:me,borderLeftWidth:me,borderRadius:me,radius:me,borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomRightRadius:me,borderBottomLeftRadius:me,width:me,maxWidth:me,height:me,maxHeight:me,top:me,right:me,bottom:me,left:me,padding:me,paddingTop:me,paddingRight:me,paddingBottom:me,paddingLeft:me,margin:me,marginTop:me,marginRight:me,marginBottom:me,marginLeft:me,backgroundPositionX:me,backgroundPositionY:me},iB={rotate:Ni,rotateX:Ni,rotateY:Ni,rotateZ:Ni,scale:Ad,scaleX:Ad,scaleY:Ad,scaleZ:Ad,skew:Ni,skewX:Ni,skewY:Ni,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:tu,originX:DS,originY:DS,originZ:me},OS={...pl,transform:Math.round},Iy={...rB,...iB,zIndex:OS,size:me,fillOpacity:tu,strokeOpacity:tu,numOctaves:OS},oB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},aB=fl.length;function sB(e,t,n){let r="",i=!0;for(let o=0;o<aB;o++){const a=fl[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=vj(l,Iy[a]);if(!c){i=!1;const d=oB[a]||a;r+=`${d}(${u}) `}n&&(t[a]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Ly(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(Aa.has(c)){a=!0;continue}else if(gj(c)){i[c]=u;continue}else{const d=vj(u,Iy[c]);c.startsWith("origin")?(l=!0,o[c]=d):r[c]=d}}if(t.transform||(a||n?r.transform=sB(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 lB={offset:"stroke-dashoffset",array:"stroke-dasharray"},cB={offset:"strokeDashoffset",array:"strokeDasharray"};function uB(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?lB:cB;e[o.offset]=me.transform(-r);const a=me.transform(t),l=me.transform(n);e[o.array]=`${a} ${l}`}function FS(e,t,n){return typeof e=="string"?e:me.transform(t+n*e)}function dB(e,t,n){const r=FS(t,e.x,e.width),i=FS(n,e.y,e.height);return`${r} ${i}`}function Ny(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:l=1,pathOffset:c=0,...u},d,f){if(Ly(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=dB(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&&uB(p,a,l,c,!1)}const Dy=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),yj=()=>({...Dy(),attrs:{}}),Oy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function bj(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 xj=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 Sj(e,t,n,r){bj(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(xj.has(i)?i:Ay(i),t.attrs[i])}const hp={};function fB(e){Object.assign(hp,e)}function wj(e,{layout:t,layoutId:n}){return Aa.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!hp[e]||e==="opacity")}function Fy(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(on(i[a])||t.style&&on(t.style[a])||wj(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 kj(e,t,n){const r=Fy(e,t,n);for(const i in e)if(on(e[i])||on(t[i])){const o=fl.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function pB(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 BS=["x","y","width","height","cx","cy","r"],mB={useVisualState:mj({scrapeMotionValuesFromProps:kj,createRenderState:yj,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(Aa.has(l)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let l=0;l<BS.length;l++){const c=BS[l];e[c]!==t[c]&&(a=!0)}a&&nt.read(()=>{pB(n,r),nt.render(()=>{Ny(r,i,Oy(n.tagName),e.transformTemplate),Sj(n,r)})})}})},hB={useVisualState:mj({scrapeMotionValuesFromProps:Fy,createRenderState:Dy})};function Cj(e,t,n){for(const r in t)!on(t[r])&&!wj(r,n)&&(e[r]=t[r])}function gB({transformTemplate:e},t){return m.useMemo(()=>{const n=Dy();return Ly(n,t,e),Object.assign({},n.vars,n.style)},[t])}function vB(e,t){const n=e.style||{},r={};return Cj(r,n,e),Object.assign(r,gB(e,t)),r}function yB(e,t){const n={},r=vB(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 bB(e,t,n,r){const i=m.useMemo(()=>{const o=yj();return Ny(o,t,Oy(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Cj(o,e.style,e),i.style={...o,...i.style}}return i}function xB(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(zy(n)?bB:yB)(r,o,a,n),u=IF(r,typeof n=="string",e),d=n!==m.Fragment?{...u,...c,ref:i}:{},{children:f}=r,p=m.useMemo(()=>on(f)?f.get():f,[f]);return m.createElement(n,{...d,children:p})}}function SB(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...zy(r)?mB:hB,preloadedFeatures:e,useRender:xB(i),createVisualElement:t,Component:r};return UF(a)}}function jj(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 vm(e,t,n){const r=e.getProps();return Ry(r,t,n!==void 0?n:r.custom,e)}const wB=_y(()=>window.ScrollTimeline!==void 0);class kB{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(wB()&&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 CB extends kB{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function By(e,t){return e?e[t]||e.default||e:void 0}const Xg=2e4;function Pj(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Xg;)t+=n,r=e.next(t);return t>=Xg?1/0:t}function Vy(e){return typeof e=="function"}function VS(e,t){e.timeline=t,e.onfinish=null}const Wy=e=>Array.isArray(e)&&typeof e[0]=="number",jB={linearEasing:void 0};function PB(e,t){const n=_y(e);return()=>{var r;return(r=jB[t])!==null&&r!==void 0?r:n()}}const gp=PB(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),_j=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Ys(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function Tj(e){return!!(typeof e=="function"&&gp()||!e||typeof e=="string"&&(e in Yg||gp())||Wy(e)||Array.isArray(e)&&e.every(Tj))}const Ql=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Yg={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 Ej(e,t){if(e)return typeof e=="function"&&gp()?_j(e,t):Wy(e)?Ql(e):Array.isArray(e)?e.map(n=>Ej(n,t)||Yg.easeOut):Yg[e]}const pr={x:!1,y:!1};function Aj(){return pr.x||pr.y}function _B(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 $j(e,t){const n=_B(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function WS(e){return t=>{t.pointerType==="touch"||Aj()||e(t)}}function TB(e,t,n={}){const[r,i,o]=$j(e,n),a=WS(l=>{const{target:c}=l,u=t(l);if(typeof u!="function"||!c)return;const d=WS(f=>{u(f),c.removeEventListener("pointerleave",d)});c.addEventListener("pointerleave",d,i)});return r.forEach(l=>{l.addEventListener("pointerenter",a,i)}),o}const zj=(e,t)=>t?e===t?!0:zj(e,t.parentElement):!1,Uy=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,EB=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function AB(e){return EB.has(e.tagName)||e.tabIndex!==-1}const Zl=new WeakSet;function US(e){return t=>{t.key==="Enter"&&e(t)}}function Yh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const $B=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=US(()=>{if(Zl.has(n))return;Yh(n,"down");const i=US(()=>{Yh(n,"up")}),o=()=>Yh(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 HS(e){return Uy(e)&&!Aj()}function zB(e,t,n={}){const[r,i,o]=$j(e,n),a=l=>{const c=l.currentTarget;if(!HS(l)||Zl.has(c))return;Zl.add(c);const u=t(l),d=(h,v)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),!(!HS(h)||!Zl.has(c))&&(Zl.delete(c),typeof u=="function"&&u(h,{success:v}))},f=h=>{d(h,n.useGlobalTarget||zj(c,h.target))},p=h=>{d(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",p,i)};return r.forEach(l=>{!AB(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,i),l.addEventListener("focus",u=>$B(u,i),i)}),o}function RB(e){return e==="x"||e==="y"?pr[e]?null:(pr[e]=!0,()=>{pr[e]=!1}):pr.x||pr.y?null:(pr.x=pr.y=!0,()=>{pr.x=pr.y=!1})}const Rj=new Set(["width","height","top","left","right","bottom",...fl]);let Cf;function MB(){Cf=void 0}const qr={now:()=>(Cf===void 0&&qr.set(Bt.isProcessing||EF.useManualTiming?Bt.timestamp:performance.now()),Cf),set:e=>{Cf=e,queueMicrotask(MB)}};function Hy(e,t){e.indexOf(t)===-1&&e.push(t)}function Gy(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class qy{constructor(){this.subscriptions=[]}add(t){return Hy(this.subscriptions,t),()=>Gy(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 Mj(e,t){return t?e*(1e3/t):0}const GS=30,IB=e=>!isNaN(parseFloat(e));class LB{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=IB(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 qy);const r=this.events[t].add(n);return t==="change"?()=>{r(),nt.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>GS)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,GS);return Mj(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 nu(e,t){return new LB(e,t)}function NB(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,nu(n))}function DB(e,t){const n=vm(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const l=YF(o[a]);NB(e,a,l)}}function OB(e){return!!(on(e)&&e.add)}function Qg(e,t){const n=e.getValue("willChange");if(OB(n))return n.add(t)}function Ij(e){return e.props[dj]}const Lj=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,FB=1e-7,BB=12;function VB(e,t,n,r,i){let o,a,l=0;do a=t+(n-t)/2,o=Lj(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>FB&&++l<BB);return a}function Au(e,t,n,r){if(e===t&&n===r)return Mn;const i=o=>VB(o,0,1,e,n);return o=>o===0||o===1?o:Lj(i(o),t,r)}const Nj=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Dj=e=>t=>1-e(1-t),Oj=Au(.33,1.53,.69,.99),Ky=Dj(Oj),Fj=Nj(Ky),Bj=e=>(e*=2)<1?.5*Ky(e):.5*(2-Math.pow(2,-10*(e-1))),Xy=e=>1-Math.sin(Math.acos(e)),Vj=Dj(Xy),Wj=Nj(Xy),Uj=e=>/^0[^.\s]+$/u.test(e);function WB(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Uj(e):!0}const Sc=e=>Math.round(e*1e5)/1e5,Yy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function UB(e){return e==null}const HB=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Qy=(e,t)=>n=>!!(typeof n=="string"&&HB.test(n)&&n.startsWith(e)||t&&!UB(n)&&Object.prototype.hasOwnProperty.call(n,t)),Hj=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,l]=r.match(Yy);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},GB=e=>wi(0,255,e),Qh={...pl,transform:e=>Math.round(GB(e))},Qo={test:Qy("rgb","red"),parse:Hj("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Qh.transform(e)+", "+Qh.transform(t)+", "+Qh.transform(n)+", "+Sc(tu.transform(r))+")"};function qB(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 Zg={test:Qy("#"),parse:qB,transform:Qo.transform},ps={test:Qy("hsl","hue"),parse:Hj("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Gr.transform(Sc(t))+", "+Gr.transform(Sc(n))+", "+Sc(tu.transform(r))+")"},tn={test:e=>Qo.test(e)||Zg.test(e)||ps.test(e),parse:e=>Qo.test(e)?Qo.parse(e):ps.test(e)?ps.parse(e):Zg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Qo.transform(e):ps.transform(e)},KB=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function XB(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Yy))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(KB))===null||n===void 0?void 0:n.length)||0)>0}const Gj="number",qj="color",YB="var",QB="var(",qS="${}",ZB=/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 ru(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace(ZB,c=>(tn.test(c)?(r.color.push(o),i.push(qj),n.push(tn.parse(c))):c.startsWith(QB)?(r.var.push(o),i.push(YB),n.push(c)):(r.number.push(o),i.push(Gj),n.push(parseFloat(c))),++o,qS)).split(qS);return{values:n,split:l,indexes:r,types:i}}function Kj(e){return ru(e).values}function Xj(e){const{split:t,types:n}=ru(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===Gj?o+=Sc(i[a]):l===qj?o+=tn.transform(i[a]):o+=i[a]}return o}}const JB=e=>typeof e=="number"?0:e;function eV(e){const t=Kj(e);return Xj(e)(t.map(JB))}const ho={test:XB,parse:Kj,createTransformer:Xj,getAnimatableNone:eV},tV=new Set(["brightness","contrast","saturate","opacity"]);function nV(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Yy)||[];if(!r)return e;const i=n.replace(r,"");let o=tV.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const rV=/\b([a-z-]*)\(.*?\)/gu,Jg={...ho,getAnimatableNone:e=>{const t=e.match(rV);return t?t.map(nV).join(" "):e}},iV={...Iy,color:tn,backgroundColor:tn,outlineColor:tn,fill:tn,stroke:tn,borderColor:tn,borderTopColor:tn,borderRightColor:tn,borderBottomColor:tn,borderLeftColor:tn,filter:Jg,WebkitFilter:Jg},Zy=e=>iV[e];function Yj(e,t){let n=Zy(e);return n!==Jg&&(n=ho),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const oV=new Set(["auto","none","0"]);function aV(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!oV.has(o)&&ru(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Yj(n,i)}const KS=e=>e===pl||e===me,XS=(e,t)=>parseFloat(e.split(", ")[t]),YS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return XS(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?XS(o[1],e):0}},sV=new Set(["x","y","z"]),lV=fl.filter(e=>!sV.has(e));function cV(e){const t=[];return lV.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Zs={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:YS(4,13),y:YS(5,14)};Zs.translateX=Zs.x;Zs.translateY=Zs.y;const aa=new Set;let ev=!1,tv=!1;function Qj(){if(tv){const e=Array.from(aa).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=cV(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)})}tv=!1,ev=!1,aa.forEach(e=>e.complete()),aa.clear()}function Zj(){aa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tv=!0)})}function uV(){Zj(),Qj()}class Jy{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?(aa.add(this),ev||(ev=!0,nt.read(Zj),nt.resolveKeyframes(Qj))):(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),aa.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,aa.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Jj=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),dV=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function fV(e){const t=dV.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function eP(e,t,n=1){const[r,i]=fV(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return Jj(a)?parseFloat(a):a}return My(i)?eP(i,t,n+1):i}const tP=e=>t=>t.test(e),pV={test:e=>e==="auto",parse:e=>e},nP=[pl,me,Gr,Ni,nB,tB,pV],QS=e=>nP.find(tP(e));class rP extends Jy{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(),My(u))){const d=eP(u,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Rj.has(r)||t.length!==2)return;const[i,o]=t,a=QS(i),l=QS(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++)WB(t[i])&&r.push(i);r.length&&aV(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=Zs[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]=Zs[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 ZS=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ho.test(e)||e==="0")&&!e.startsWith("url("));function mV(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 hV(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=ZS(i,t),l=ZS(o,t);return!a||!l?!1:mV(e)||(n==="spring"||Vy(n))&&r}const gV=e=>e!==null;function ym(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(gV),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const vV=40;class iP{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>vV?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&uV(),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&&!hV(t,r,i,o))if(a)this.options.duration=0;else{c&&c(ym(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 lt=(e,t,n)=>e+(t-e)*n;function Zh(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 yV({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=Zh(c,l,e+1/3),o=Zh(c,l,e),a=Zh(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function vp(e,t){return n=>n>0?t:e}const Jh=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},bV=[Zg,Qo,ps],xV=e=>bV.find(t=>t.test(e));function JS(e){const t=xV(e);if(!t)return!1;let n=t.parse(e);return t===ps&&(n=yV(n)),n}const e4=(e,t)=>{const n=JS(e),r=JS(t);if(!n||!r)return vp(e,t);const i={...n};return o=>(i.red=Jh(n.red,r.red,o),i.green=Jh(n.green,r.green,o),i.blue=Jh(n.blue,r.blue,o),i.alpha=lt(n.alpha,r.alpha,o),Qo.transform(i))},SV=(e,t)=>n=>t(e(n)),$u=(...e)=>e.reduce(SV),nv=new Set(["none","hidden"]);function wV(e,t){return nv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function kV(e,t){return n=>lt(e,t,n)}function eb(e){return typeof e=="number"?kV:typeof e=="string"?My(e)?vp:tn.test(e)?e4:PV:Array.isArray(e)?oP:typeof e=="object"?tn.test(e)?e4:CV:vp}function oP(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>eb(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function CV(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=eb(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function jV(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 PV=(e,t)=>{const n=ho.createTransformer(t),r=ru(e),i=ru(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?nv.has(e)&&!i.values.length||nv.has(t)&&!r.values.length?wV(e,t):$u(oP(jV(r,i),i.values),n):vp(e,t)};function aP(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?lt(e,t,n):eb(e)(e,t)}const _V=5;function sP(e,t,n){const r=Math.max(t-_V,0);return Mj(n-e(r),t-r)}const mt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},e0=.001;function TV({duration:e=mt.duration,bounce:t=mt.bounce,velocity:n=mt.velocity,mass:r=mt.mass}){let i,o,a=1-t;a=wi(mt.minDamping,mt.maxDamping,a),e=wi(mt.minDuration,mt.maxDuration,gi(e)),a<1?(i=u=>{const d=u*a,f=d*e,p=d-n,h=rv(u,a),v=Math.exp(-f);return e0-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=rv(Math.pow(u,2),a);return(-i(u)+e0>0?-1:1)*((p-h)*v)/y}):(i=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-e0+d*f},o=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const l=5/e,c=AV(i,o,l);if(e=hi(e),isNaN(c))return{stiffness:mt.stiffness,damping:mt.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const EV=12;function AV(e,t,n){let r=n;for(let i=1;i<EV;i++)r=r-e(r)/t(r);return r}function rv(e,t){return e*Math.sqrt(1-t*t)}const $V=["duration","bounce"],zV=["stiffness","damping","mass"];function t4(e,t){return t.some(n=>e[n]!==void 0)}function RV(e){let t={velocity:mt.velocity,stiffness:mt.stiffness,damping:mt.damping,mass:mt.mass,isResolvedFromDuration:!1,...e};if(!t4(e,zV)&&t4(e,$V))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*wi(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:mt.mass,stiffness:i,damping:o}}else{const n=TV(e);t={...t,...n,mass:mt.mass},t.isResolvedFromDuration=!0}return t}function lP(e=mt.visualDuration,t=mt.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}=RV({...n,velocity:-gi(n.velocity||0)}),v=p||0,y=u/(2*Math.sqrt(c*d)),x=a-o,b=gi(Math.sqrt(c/d)),g=Math.abs(x)<5;r||(r=g?mt.restSpeed.granular:mt.restSpeed.default),i||(i=g?mt.restDelta.granular:mt.restDelta.default);let S;if(y<1){const k=rv(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?hi(v):sP(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(Pj(w),Xg),P=_j(j=>w.next(k*j).value,k,30);return k+"ms "+P}};return w}function n4({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=lP({keyframes:[p.value,v(p.value)],velocity:sP(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 MV=Au(.42,0,1,1),IV=Au(0,0,.58,1),cP=Au(.42,0,.58,1),LV=e=>Array.isArray(e)&&typeof e[0]!="number",NV={linear:Mn,easeIn:MV,easeInOut:cP,easeOut:IV,circIn:Xy,circInOut:Wj,circOut:Vj,backIn:Ky,backInOut:Fj,backOut:Oj,anticipate:Bj},r4=e=>{if(Wy(e)){aj(e.length===4);const[t,n,r,i]=e;return Au(t,n,r,i)}else if(typeof e=="string")return NV[e];return e};function DV(e,t,n){const r=[],i=n||aP,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]||Mn:t;l=$u(c,l)}r.push(l)}return r}function OV(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(aj(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=DV(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=Ys(e[f],e[f+1],d);return l[f](p)};return n?d=>u(wi(e[0],e[o-1],d)):u}function FV(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ys(0,t,r);e.push(lt(n,1,i))}}function BV(e){const t=[0];return FV(t,e.length-1),t}function VV(e,t){return e.map(n=>n*t)}function WV(e,t){return e.map(()=>t||cP).splice(0,e.length-1)}function yp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=LV(r)?r.map(r4):r4(r),o={done:!1,value:t[0]},a=VV(n&&n.length===t.length?n:BV(t),e),l=OV(a,t,{ease:Array.isArray(i)?i:WV(t,i)});return{calculatedDuration:e,next:c=>(o.value=l(c),o.done=c>=e,o)}}const UV=e=>{const t=({timestamp:n})=>e(n);return{start:()=>nt.update(t,!0),stop:()=>mo(t),now:()=>Bt.isProcessing?Bt.timestamp:qr.now()}},HV={decay:n4,inertia:n4,tween:yp,keyframes:yp,spring:lP},GV=e=>e/100;class tb extends iP{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)||Jy,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=Vy(n)?n:HV[n]||yp;let c,u;l!==yp&&typeof t[0]!="number"&&(c=$u(GV,aP(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=Pj(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=wi(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=ym(c,this.options,i)),x&&x(k.value),j&&this.finish(),k}get duration(){const{resolved:t}=this;return t?gi(t.calculatedDuration):0}get time(){return gi(this.currentTime)}set time(t){t=hi(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=gi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=UV,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 qV=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=Ej(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 XV=_y(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),bp=10,YV=2e4;function QV(e){return Vy(e.type)||e.type==="spring"||!Tj(e.ease)}function ZV(e,t){const n=new tb({...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<YV;)r=n.sample(o),i.push(r.value),o+=bp;return{times:void 0,keyframes:i,duration:o-bp,ease:"linear"}}const uP={anticipate:Bj,backInOut:Fj,circInOut:Wj};function JV(e){return e in uP}class i4 extends iP{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new rP(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"&&gp()&&JV(o)&&(o=uP[o]),QV(this.options)){const{onComplete:f,onUpdate:p,motionValue:h,element:v,...y}=this.options,x=ZV(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?(VS(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(ym(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 gi(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return gi(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=hi(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 Mn;const{animation:r}=n;VS(r,t)}return Mn}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 tb({...h,keyframes:r,duration:i,type:o,ease:a,times:l,isGenerator:!0}),y=hi(this.time);u.setWithVelocity(v.sample(y-bp).value,v.sample(y).value,bp)}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 XV()&&r&&qV.has(r)&&!c&&!u&&!i&&o!=="mirror"&&a!==0&&l!=="inertia"}}const eW={type:"spring",stiffness:500,damping:25,restSpeed:10},tW=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),nW={type:"keyframes",duration:.8},rW={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iW=(e,{keyframes:t})=>t.length>2?nW:Aa.has(e)?e.startsWith("scale")?tW(t[1]):eW:rW;function oW({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 nb=(e,t,n,r={},i,o)=>a=>{const l=By(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-hi(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};oW(l)||(d={...d,...iW(e,d)}),d.duration&&(d.duration=hi(d.duration)),d.repeatDelay&&(d.repeatDelay=hi(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=ym(d.keyframes,l);if(p!==void 0)return nt.update(()=>{d.onUpdate(p),d.onComplete()}),new CB([])}return!o&&i4.supports(d)?new i4(d):new tb(d)};function aW({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function dP(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&&aW(d,f))continue;const v={delay:n,...By(a||{},f)};let y=!1;if(window.MotionHandoffAnimation){const b=Ij(e);if(b){const g=window.MotionHandoffAnimation(b,f,nt);g!==null&&(v.startTime=g,y=!0)}}Qg(e,f),p.start(nb(f,p,h,e.shouldReduceMotion&&Rj.has(f)?{type:!1}:v,e,y));const x=p.animation;x&&u.push(x)}return l&&Promise.all(u).then(()=>{nt.update(()=>{l&&DB(e,l)})}),u}function iv(e,t,n={}){var r;const i=vm(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(dP(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=o;return sW(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 sW(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(lW).forEach((u,d)=>{u.notify("AnimationStart",t),a.push(iv(u,t,{...o,delay:n+c(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function lW(e,t){return e.sortNodePosition(t)}function cW(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>iv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=iv(e,t,n);else{const i=typeof t=="function"?vm(e,t,n.custom):t;r=Promise.all(dP(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const uW=Ey.length;function fP(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?fP(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<uW;n++){const r=Ey[n],i=e.props[r];(eu(i)||i===!1)&&(t[r]=i)}return t}const dW=[...Ty].reverse(),fW=Ty.length;function pW(e){return t=>Promise.all(t.map(({animation:n,options:r})=>cW(e,n,r)))}function mW(e){let t=pW(e),n=o4(),r=!0;const i=c=>(u,d)=>{var f;const p=vm(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=fP(e.parent)||{},f=[],p=new Set;let h={},v=1/0;for(let x=0;x<fW;x++){const b=dW[x],g=n[b],S=u[b]!==void 0?u[b]:d[b],w=eu(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||hm(S)||typeof S=="boolean")continue;const j=hW(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:K={}}=g,ne={...K,...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=K[I];if(h.hasOwnProperty(I))continue;let F=!1;Kg(D)&&Kg(R)?F=!jj(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=o4(),r=!0}}}function hW(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!jj(t,e):!1}function Io(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function o4(){return{animate:Io(!0),whileInView:Io(),whileHover:Io(),whileTap:Io(),whileDrag:Io(),whileFocus:Io(),exit:Io()}}class Co{constructor(t){this.isMounted=!1,this.node=t}update(){}}class gW extends Co{constructor(t){super(t),t.animationState||(t.animationState=mW(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();hm(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 vW=0;class yW extends Co{constructor(){super(...arguments),this.id=vW++}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 bW={animation:{Feature:gW},exit:{Feature:yW}};function iu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function zu(e){return{point:{x:e.pageX,y:e.pageY}}}const xW=e=>t=>Uy(t)&&e(t,zu(t));function wc(e,t,n,r){return iu(e,t,xW(n),r)}const a4=(e,t)=>Math.abs(e-t);function SW(e,t){const n=a4(e.x,t.x),r=a4(e.y,t.y);return Math.sqrt(n**2+r**2)}class pP{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=n0(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=SW(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:v}=f,{timestamp:y}=Bt;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=t0(p,this.transformPagePoint),nt.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=n0(f.type==="pointercancel"?this.lastMoveEventInfo:t0(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,x),v&&v(f,x)},!Uy(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=zu(t),l=t0(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=Bt;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,n0(l,this.history)),this.removeListeners=$u(wc(this.contextWindow,"pointermove",this.handlePointerMove),wc(this.contextWindow,"pointerup",this.handlePointerUp),wc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),mo(this.updatePoint)}}function t0(e,t){return t?{point:t(e.point)}:e}function s4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function n0({point:e},t){return{point:e,delta:s4(e,mP(t)),offset:s4(e,wW(t)),velocity:kW(t,.1)}}function wW(e){return e[0]}function mP(e){return e[e.length-1]}function kW(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=mP(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>hi(t)));)n--;if(!r)return{x:0,y:0};const o=gi(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 hP=1e-4,CW=1-hP,jW=1+hP,gP=.01,PW=0-gP,_W=0+gP;function Nn(e){return e.max-e.min}function TW(e,t,n){return Math.abs(e-t)<=n}function l4(e,t,n,r=.5){e.origin=r,e.originPoint=lt(t.min,t.max,e.origin),e.scale=Nn(n)/Nn(t),e.translate=lt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=CW&&e.scale<=jW||isNaN(e.scale))&&(e.scale=1),(e.translate>=PW&&e.translate<=_W||isNaN(e.translate))&&(e.translate=0)}function kc(e,t,n,r){l4(e.x,t.x,n.x,r?r.originX:void 0),l4(e.y,t.y,n.y,r?r.originY:void 0)}function c4(e,t,n){e.min=n.min+t.min,e.max=e.min+Nn(t)}function EW(e,t,n){c4(e.x,t.x,n.x),c4(e.y,t.y,n.y)}function u4(e,t,n){e.min=t.min-n.min,e.max=e.min+Nn(t)}function Cc(e,t,n){u4(e.x,t.x,n.x),u4(e.y,t.y,n.y)}function AW(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?lt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?lt(n,e,r.max):Math.min(e,n)),e}function d4(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 $W(e,{top:t,left:n,bottom:r,right:i}){return{x:d4(e.x,n,i),y:d4(e.y,t,r)}}function f4(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 zW(e,t){return{x:f4(e.x,t.x),y:f4(e.y,t.y)}}function RW(e,t){let n=.5;const r=Nn(e),i=Nn(t);return i>r?n=Ys(t.min,t.max-r,e.min):r>i&&(n=Ys(e.min,e.max-i,t.min)),wi(0,1,n)}function MW(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 ov=.35;function IW(e=ov){return e===!1?e=0:e===!0&&(e=ov),{x:p4(e,"left","right"),y:p4(e,"top","bottom")}}function p4(e,t,n){return{min:m4(e,t),max:m4(e,n)}}function m4(e,t){return typeof e=="number"?e:e[t]||0}const h4=()=>({translate:0,scale:1,origin:0,originPoint:0}),ms=()=>({x:h4(),y:h4()}),g4=()=>({min:0,max:0}),yt=()=>({x:g4(),y:g4()});function Yn(e){return[e("x"),e("y")]}function vP({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function LW({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function NW(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 r0(e){return e===void 0||e===1}function av({scale:e,scaleX:t,scaleY:n}){return!r0(e)||!r0(t)||!r0(n)}function Bo(e){return av(e)||yP(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function yP(e){return v4(e.x)||v4(e.y)}function v4(e){return e&&e!=="0%"}function xp(e,t,n){const r=e-n,i=t*r;return n+i}function y4(e,t,n,r,i){return i!==void 0&&(e=xp(e,i,r)),xp(e,n,r)+t}function sv(e,t=0,n=1,r,i){e.min=y4(e.min,t,n,r,i),e.max=y4(e.max,t,n,r,i)}function bP(e,{x:t,y:n}){sv(e.x,t.translate,t.scale,t.originPoint),sv(e.y,n.translate,n.scale,n.originPoint)}const b4=.999999999999,x4=1.0000000000001;function DW(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&&gs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,bP(e,a)),r&&Bo(o.latestValues)&&gs(e,o.latestValues))}t.x<x4&&t.x>b4&&(t.x=1),t.y<x4&&t.y>b4&&(t.y=1)}function hs(e,t){e.min=e.min+t,e.max=e.max+t}function S4(e,t,n,r,i=.5){const o=lt(e.min,e.max,i);sv(e,t,n,o,r)}function gs(e,t){S4(e.x,t.x,t.scaleX,t.scale,t.originX),S4(e.y,t.y,t.scaleY,t.scale,t.originY)}function xP(e,t){return vP(NW(e.getBoundingClientRect(),t))}function OW(e,t,n){const r=xP(e,n),{scroll:i}=t;return i&&(hs(r.x,i.offset.x),hs(r.y,i.offset.y)),r}const SP=({current:e})=>e?e.ownerDocument.defaultView:null,FW=new WeakMap;class BW{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=yt(),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(zu(d).point)},o=(d,f)=>{const{drag:p,dragPropagation:h,onDragStart:v}=this.getProps();if(p&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=RB(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),Yn(x=>{let b=this.getAxisMotionValue(x).get()||0;if(Gr.test(b)){const{projection:g}=this.visualElement;if(g&&g.layout){const S=g.layout.layoutBox[x];S&&(b=Nn(S)*(parseFloat(b)/100))}}this.originPoint[x]=b}),v&&nt.postRender(()=>v(d,f)),Qg(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=VW(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=()=>Yn(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 pP(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:SP(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&&nt.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||!$d(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=AW(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&&fs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=$W(i.layoutBox,n):this.constraints=!1,this.elastic=IW(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Yn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=MW(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!fs(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=OW(r,i.root,this.visualElement.getTransformPagePoint());let a=zW(i.layout.layoutBox,o);if(n){const l=n(LW(a));this.hasMutatedConstraints=!!l,l&&(a=vP(l))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=Yn(d=>{if(!$d(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 Qg(this.visualElement,t),r.start(nb(t,r,0,n,this.visualElement,!1))}stopAnimation(){Yn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Yn(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){Yn(n=>{const{drag:r}=this.getProps();if(!$d(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]-lt(a,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!fs(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Yn(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();i[a]=RW({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(),Yn(a=>{if(!$d(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(lt(c,u,i[a]))})}addListeners(){if(!this.visualElement.current)return;FW.set(this.visualElement,this);const t=this.visualElement.current,n=wc(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();fs(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()),nt.read(r);const a=iu(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Yn(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=ov,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:l}}}function $d(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function VW(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class WW extends Co{constructor(t){super(t),this.removeGroupControls=Mn,this.removeListeners=Mn,this.controls=new BW(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Mn}unmount(){this.removeGroupControls(),this.removeListeners()}}const w4=e=>(t,n)=>{e&&nt.postRender(()=>e(t,n))};class UW extends Co{constructor(){super(...arguments),this.removePointerDownListener=Mn}onPointerDown(t){this.session=new pP(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:SP(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:w4(t),onStart:w4(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&nt.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=wc(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 k4(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(me.test(e))e=parseFloat(e);else return e;const n=k4(e,t.target.x),r=k4(e,t.target.y);return`${n}% ${r}%`}},HW={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ho.parse(e);if(i.length>5)return r;const o=ho.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=lt(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 GW extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;fB(qW),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()||nt.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),$y.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 wP(e){const[t,n]=jy(),r=m.useContext(wy);return s.jsx(GW,{...e,layoutGroup:r,switchLayoutGroup:m.useContext(fj),isPresent:t,safeToRemove:n})}const qW={borderRadius:{...Nl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Nl,borderTopRightRadius:Nl,borderBottomLeftRadius:Nl,borderBottomRightRadius:Nl,boxShadow:HW};function KW(e,t,n){const r=on(e)?e:nu(e);return r.start(nb("",r,t,n)),r.animation}function XW(e){return e instanceof SVGElement&&e.tagName!=="svg"}const YW=(e,t)=>e.depth-t.depth;class QW{constructor(){this.children=[],this.isDirty=!1}add(t){Hy(this.children,t),this.isDirty=!0}remove(t){Gy(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(YW),this.isDirty=!1,this.children.forEach(t)}}function ZW(e,t){const n=qr.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(mo(r),e(o-t))};return nt.read(r,!0),()=>mo(r)}const kP=["TopLeft","TopRight","BottomLeft","BottomRight"],JW=kP.length,C4=e=>typeof e=="string"?parseFloat(e):e,j4=e=>typeof e=="number"||me.test(e);function eU(e,t,n,r,i,o){i?(e.opacity=lt(0,n.opacity!==void 0?n.opacity:1,tU(r)),e.opacityExit=lt(t.opacity!==void 0?t.opacity:1,0,nU(r))):o&&(e.opacity=lt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<JW;a++){const l=`border${kP[a]}Radius`;let c=P4(t,l),u=P4(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||j4(c)===j4(u)?(e[l]=Math.max(lt(C4(c),C4(u),r),0),(Gr.test(u)||Gr.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=lt(t.rotate||0,n.rotate||0,r))}function P4(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const tU=CP(0,.5,Vj),nU=CP(.5,.95,Mn);function CP(e,t,n){return r=>r<e?0:r>t?1:n(Ys(e,t,r))}function _4(e,t){e.min=t.min,e.max=t.max}function Kn(e,t){_4(e.x,t.x),_4(e.y,t.y)}function T4(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function E4(e,t,n,r,i){return e-=t,e=xp(e,1/n,r),i!==void 0&&(e=xp(e,1/i,r)),e}function rU(e,t=0,n=1,r=.5,i,o=e,a=e){if(Gr.test(t)&&(t=parseFloat(t),t=lt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=lt(o.min,o.max,r);e===o&&(l-=t),e.min=E4(e.min,t,n,l,i),e.max=E4(e.max,t,n,l,i)}function A4(e,t,[n,r,i],o,a){rU(e,t[n],t[r],t[i],t.scale,o,a)}const iU=["x","scaleX","originX"],oU=["y","scaleY","originY"];function $4(e,t,n,r){A4(e.x,t,iU,n?n.x:void 0,r?r.x:void 0),A4(e.y,t,oU,n?n.y:void 0,r?r.y:void 0)}function z4(e){return e.translate===0&&e.scale===1}function jP(e){return z4(e.x)&&z4(e.y)}function R4(e,t){return e.min===t.min&&e.max===t.max}function aU(e,t){return R4(e.x,t.x)&&R4(e.y,t.y)}function M4(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function PP(e,t){return M4(e.x,t.x)&&M4(e.y,t.y)}function I4(e){return Nn(e.x)/Nn(e.y)}function L4(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class sU{constructor(){this.members=[]}add(t){Hy(this.members,t),t.scheduleRender()}remove(t){if(Gy(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 lU(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 Vo={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Jl=typeof window<"u"&&window.MotionDebug!==void 0,i0=["","X","Y","Z"],cU={visibility:"hidden"},N4=1e3;let uU=0;function o0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function _P(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ij(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",nt,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&_P(r)}function TP({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},l=t==null?void 0:t()){this.id=uU++,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&&(Vo.totalNodes=Vo.resolvedTargetDeltas=Vo.recalculatedProjection=0),this.nodes.forEach(pU),this.nodes.forEach(yU),this.nodes.forEach(bU),this.nodes.forEach(mU),Jl&&window.MotionDebug.record(Vo)},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 QW)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new qy),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=XW(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=ZW(p,250),jf.hasAnimatedSinceResize&&(jf.hasAnimatedSinceResize=!1,this.nodes.forEach(O4))})}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()||CU,{onLayoutAnimationStart:x,onLayoutAnimationComplete:b}=d.getProps(),g=!this.targetLayout||!PP(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={...By(y,"layout"),onPlay:x,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else p||O4(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,mo(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(xU),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&&_P(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(D4);return}this.isUpdating||this.nodes.forEach(gU),this.isUpdating=!1,this.nodes.forEach(vU),this.nodes.forEach(dU),this.nodes.forEach(fU),this.clearAllSnapshots();const l=qr.now();Bt.delta=wi(0,1e3/60,l-Bt.timestamp),Bt.timestamp=l,Bt.isProcessing=!0,Xh.update.process(Bt),Xh.preRender.process(Bt),Xh.render.process(Bt),Bt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,$y.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hU),this.sharedNodes.forEach(SU)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,nt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){nt.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=yt(),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&&!jP(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&(l||Bo(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)),jU(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:l}=this.options;if(!l)return yt();const c=l.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(PU))){const{scroll:d}=this.root;d&&(hs(c.x,d.offset.x),hs(c.y,d.offset.y))}return c}removeElementScroll(a){var l;const c=yt();if(Kn(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&&Kn(c,a),hs(c.x,f.offset.x),hs(c.y,f.offset.y))}return c}applyTransform(a,l=!1){const c=yt();Kn(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&&gs(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Bo(d.latestValues)&&gs(c,d.latestValues)}return Bo(this.latestValues)&&gs(c,this.latestValues),c}removeTransform(a){const l=yt();Kn(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!Bo(u.latestValues))continue;av(u.latestValues)&&u.updateSnapshot();const d=yt(),f=u.measurePageBox();Kn(d,f),$4(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Bo(this.latestValues)&&$4(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!==Bt.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=Bt.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=yt(),this.relativeTargetOrigin=yt(),Cc(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),Kn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=yt(),this.targetWithTransforms=yt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),EW(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Kn(this.target,this.layout.layoutBox),bP(this.target,this.targetDelta)):Kn(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=yt(),this.relativeTargetOrigin=yt(),Cc(this.relativeTargetOrigin,this.target,h.target),Kn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Jl&&Vo.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||av(this.parent.latestValues)||yP(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===Bt.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;Kn(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,h=this.treeScale.y;DW(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=yt());const{target:v}=l;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(T4(this.prevProjectionDelta.x,this.projectionDelta.x),T4(this.prevProjectionDelta.y,this.projectionDelta.y)),kc(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==h||!L4(this.projectionDelta.x,this.prevProjectionDelta.x)||!L4(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),Jl&&Vo.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=ms(),this.projectionDelta=ms(),this.projectionDeltaWithTransform=ms()}setAnimationOrigin(a,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=ms();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const p=yt(),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(kU));this.animationProgress=0;let S;this.mixTargetDelta=w=>{const k=w/1e3;F4(f.x,a.x,k),F4(f.y,a.y,k),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Cc(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wU(this.relativeTarget,this.relativeTargetOrigin,p,k),S&&aU(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=yt()),Kn(S,this.relativeTarget)),y&&(this.animationValues=d,eU(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&&(mo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=nt.update(()=>{jf.hasAnimatedSinceResize=!0,this.currentAnimation=KW(0,N4,{...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(N4),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&&EP(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||yt();const f=Nn(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const p=Nn(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+p}Kn(l,c),gs(l,d),kc(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new sU),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&&o0("z",a,u,this.animationValues);for(let d=0;d<i0.length;d++)o0(`rotate${i0[d]}`,a,u,this.animationValues),o0(`skew${i0[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 cU;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&&!Bo(this.latestValues)&&(y.transform=d?d({},""):"none",this.hasProjected=!1),y}const p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=lU(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 hp){if(p[y]===void 0)continue;const{correct:x,applyTo:b}=hp[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(D4),this.root.sharedNodes.clear()}}}function dU(e){e.updateLayout()}function fU(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"?Yn(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=Nn(p);p.min=r[f].min,p.max=p.min+h}):EP(o,n.layoutBox,r)&&Yn(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=Nn(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=ms();kc(l,r,n.layoutBox);const c=ms();a?kc(c,e.applyTransform(i,!0),n.measuredBox):kc(c,r,n.layoutBox);const u=!jP(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=yt();Cc(v,n.layoutBox,p.layoutBox);const y=yt();Cc(y,r,h.layoutBox),PP(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 pU(e){Jl&&Vo.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 mU(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function hU(e){e.clearSnapshot()}function D4(e){e.clearMeasurements()}function gU(e){e.isLayoutDirty=!1}function vU(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function O4(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function yU(e){e.resolveTargetDelta()}function bU(e){e.calcProjection()}function xU(e){e.resetSkewAndRotation()}function SU(e){e.removeLeadSnapshot()}function F4(e,t,n){e.translate=lt(t.translate,0,n),e.scale=lt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function B4(e,t,n,r){e.min=lt(t.min,n.min,r),e.max=lt(t.max,n.max,r)}function wU(e,t,n,r){B4(e.x,t.x,n.x,r),B4(e.y,t.y,n.y,r)}function kU(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const CU={duration:.45,ease:[.4,0,.1,1]},V4=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),W4=V4("applewebkit/")&&!V4("chrome/")?Math.round:Mn;function U4(e){e.min=W4(e.min),e.max=W4(e.max)}function jU(e){U4(e.x),U4(e.y)}function EP(e,t,n){return e==="position"||e==="preserve-aspect"&&!TW(I4(t),I4(n),.2)}function PU(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const _U=TP({attachResizeListener:(e,t)=>iu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),a0={current:void 0},AP=TP({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!a0.current){const e=new _U({});e.mount(window),e.setOptions({layoutScroll:!0}),a0.current=e}return a0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),TU={pan:{Feature:UW},drag:{Feature:WW,ProjectionNode:AP,MeasureLayout:wP}};function H4(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&&nt.postRender(()=>o(t,zu(t)))}class EU extends Co{mount(){const{current:t}=this.node;t&&(this.unmount=TB(t,n=>(H4(this.node,n,"Start"),r=>H4(this.node,r,"End"))))}unmount(){}}class AU extends Co{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=$u(iu(this.node.current,"focus",()=>this.onFocus()),iu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function G4(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&&nt.postRender(()=>o(t,zu(t)))}class $U extends Co{mount(){const{current:t}=this.node;t&&(this.unmount=zB(t,n=>(G4(this.node,n,"Start"),(r,{success:i})=>G4(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const lv=new WeakMap,s0=new WeakMap,zU=e=>{const t=lv.get(e.target);t&&t(e)},RU=e=>{e.forEach(zU)};function MU({root:e,...t}){const n=e||document;s0.has(n)||s0.set(n,{});const r=s0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(RU,{root:e,...t})),r[i]}function IU(e,t,n){const r=MU(t);return lv.set(e,n),r.observe(e),()=>{lv.delete(e),r.unobserve(e)}}const LU={some:0,all:1};class NU extends Co{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:LU[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 IU(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(DU(t,n))&&this.startObserver()}unmount(){}}function DU({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const OU={inView:{Feature:NU},tap:{Feature:$U},focus:{Feature:AU},hover:{Feature:EU}},FU={layout:{ProjectionNode:AP,MeasureLayout:wP}},cv={current:null},$P={current:!1};function BU(){if($P.current=!0,!!Py)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>cv.current=e.matches;e.addListener(t),t()}else cv.current=!1}const VU=[...nP,tn,ho],WU=e=>VU.find(tP(e)),q4=new WeakMap;function UU(e,t,n){for(const r in t){const i=t[r],o=n[r];if(on(i))e.addValue(r,i);else if(on(o))e.addValue(r,nu(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,nu(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 HU{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=Jy,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,nt.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=gm(n),this.isVariantNode=uj(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&&on(v)&&v.set(c[h],!1)}}mount(t){this.current=t,q4.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)),$P.current||BU(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:cv.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){q4.delete(this.current),this.projection&&this.projection.unmount(),mo(this.notifyUpdate),mo(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=Aa.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&nt.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 Qs){const n=Qs[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):yt()}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=UU(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=nu(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"&&(Jj(i)||Uj(i))?i=parseFloat(i):!WU(i)&&ho.test(n)&&(i=Yj(t,n)),this.setBaseTarget(t,on(i)?i.get():i)),on(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=Ry(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&&!on(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 qy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class zP extends HU{constructor(){super(...arguments),this.KeyframeResolver=rP}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;on(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function GU(e){return window.getComputedStyle(e)}class qU extends zP{constructor(){super(...arguments),this.type="html",this.renderInstance=bj}readValueFromInstance(t,n){if(Aa.has(n)){const r=Zy(n);return r&&r.default||0}else{const r=GU(t),i=(gj(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return xP(t,n)}build(t,n,r){Ly(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Fy(t,n,r)}}class KU extends zP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=yt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Aa.has(n)){const r=Zy(n);return r&&r.default||0}return n=xj.has(n)?n:Ay(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return kj(t,n,r)}build(t,n,r){Ny(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Sj(t,n,r,i)}mount(t){this.isSVGTag=Oy(t.tagName),super.mount(t)}}const XU=(e,t)=>zy(e)?new KU(t):new qU(t,{allowProjection:e!==m.Fragment}),YU=SB({...bW,...OU,...TU,...FU},XU),Un=LF(YU),QU=(e,t)=>e.find(n=>n.id===t);function X4(e,t){const n=RP(e,t),r=n?e[n].findIndex(i=>i.id===t):-1;return{position:n,index:r}}function RP(e,t){for(const[n,r]of Object.entries(e))if(QU(r,t))return n}function ZU(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 JU(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 eH=/^((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)-.*))$/,tH=U6(function(e){return eH.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),nH=tH,rH=function(t){return t!=="theme"},Y4=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?nH:rH},Q4=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},iH=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return hy(n,r,i),J6(function(){return gy(n,r,i)}),null},oH=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=Q4(t,n,r),c=l||Y4(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=yy(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(Xs)}typeof x.className=="string"?w=Y6(b.registered,k,x.className):x.className!=null&&(w=x.className+" ");var _=fm(f.concat(k),b.registered,P);w+=b.key+"-"+_.name,a!==void 0&&(w+=" "+a);var M=u&&l===void 0?Y4(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(iH,{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,ba({},n,b,{shouldForwardProp:Q4(y,b,!0)}));return g.apply(void 0,f)},y}},aH=["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"],uv=oH.bind(null);aH.forEach(function(e){uv[e]=uv(e)});const sH=new Set([...Lz,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),lH=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function cH(e){return(lH.has(e)||!sH.has(e))&&e[0]!=="_"}const uH=B$(uv),dH=({baseStyle:e})=>t=>{const{theme:n,css:r,__css:i,sx:o,...a}=t,[l]=G$(a,Dz),c=rn(e,t),u=P$({},i,c,Q1(l),o),d=f6(u)(t.theme);return r?[d,r]:d};function l0(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=cH);const i=dH({baseStyle:n}),o=uH(e,r)(i);return m.forwardRef(function(c,u){const{children:d,...f}=c,{colorMode:p,forced:h}=_u(),v=h?p:void 0;return m.createElement(o,{ref:u,"data-theme":v,...f},d)})}function fH(){const e=new Map;return new Proxy(l0,{apply(t,n,r){return l0(...r)},get(t,n){return e.has(n)||e.set(n,l0(n)),e.get(n)}})}const N=fH(),pH={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]}}},MP=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=pH,toastSpacing:d="0.5rem"}=e,[f,p]=m.useState(l),h=_F();cp(()=>{h||r==null||r()},[h]),cp(()=>{p(l)},[l]);const v=()=>p(null),y=()=>p(l),x=()=>{h&&i()};m.useEffect(()=>{h&&o&&i()},[h,o,i]),nz(x,f);const b=m.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...c}),[c,d]),g=m.useMemo(()=>ZU(a),[a]);return s.jsx(Un.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:rn(n,{id:t,onClose:x})})})});MP.displayName="ToastComponent";function B(e){return m.forwardRef(e)}var mH=typeof Element<"u",hH=typeof Map=="function",gH=typeof Set=="function",vH=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(hH&&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(gH&&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(vH&&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(mH&&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 yH=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 bH=Jv(yH);function Ti(){const e=m.useContext(Xs);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function IP(){const e=_u(),t=Ti();return{...e,theme:t}}function xH(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 SH(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 xH(o,d,a[u]??c)});return Array.isArray(t)?l:l[0]}}function wH(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0&&t!=="children"&&!m.isValidElement(n)))}function LP(e,t={}){const{styleConfig:n,...r}=t,{theme:i,colorMode:o}=IP(),a=e?e6(i,`components.${e}`):void 0,l=n||a,c=er({theme:i,colorMode:o},(l==null?void 0:l.defaultProps)??{},wH(r),(d,f)=>d?void 0:f),u=m.useRef({});if(l){const f=Xz(l)(c);bH(u.current,f)||(u.current=f)}return u.current}function Hn(e,t={}){return LP(e,t)}function Ke(e,t={}){return LP(e,t)}const Z4={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"},Pt=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=Hn("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??Z4.viewBox;if(n&&typeof n!="string")return s.jsx(N.svg,{as:n,...h,...u});const y=a??Z4.path;return s.jsx(N.svg,{verticalAlign:"middle",viewBox:v,...h,...u,children:y})});Pt.displayName="Icon";function kH(e){return s.jsx(Pt,{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 CH(e){return s.jsx(Pt,{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 J4(e){return s.jsx(Pt,{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 jH=Pu({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Dn=B((e,t)=>{const n=Hn("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:`${jH} ${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})})});Dn.displayName="Spinner";const[PH,rb]=we({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[_H,ib]=we({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),NP={info:{icon:CH,colorScheme:"blue"},warning:{icon:J4,colorScheme:"orange"},success:{icon:kH,colorScheme:"green"},error:{icon:J4,colorScheme:"red"},loading:{icon:Dn,colorScheme:"blue"}};function TH(e){return NP[e].colorScheme}function EH(e){return NP[e].icon}const DP=B(function(t,n){const{status:r="info",addRole:i=!0,...o}=Ae(t),a=t.colorScheme??TH(r),l=Ke("Alert",{...t,colorScheme:a}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return s.jsx(PH,{value:{status:r},children:s.jsx(_H,{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})})})});DP.displayName="Alert";function OP(e){const{status:t}=rb(),n=EH(t),r=ib(),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%"})})}OP.displayName="AlertIcon";const FP=B(function(t,n){const r=ib(),{status:i}=rb();return s.jsx(N.div,{ref:n,"data-status":i,...t,className:W("chakra-alert__title",t.className),__css:r.title})});FP.displayName="AlertTitle";const BP=B(function(t,n){const{status:r}=rb(),i=ib(),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})});BP.displayName="AlertDescription";function AH(e){return s.jsx(Pt,{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 bm=B(function(t,n){const r=Hn("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(AH,{width:"1em",height:"1em"})})});bm.displayName="CloseButton";const $H=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(DP,{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(OP,{children:u}),s.jsxs(N.div,{flex:"1",maxWidth:"100%",children:[i&&s.jsx(FP,{id:d==null?void 0:d.title,children:i}),l&&s.jsx(BP,{id:d==null?void 0:d.description,display:"block",children:l})]}),o&&s.jsx(bm,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function VP(e={}){const{render:t,toastComponent:n=$H}=e;return i=>typeof t=="function"?t({...i,...e}):s.jsx(n,{...i,...e})}const zH={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Or=RH(zH);function RH(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=MH(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}=X4(l,i);return c&&u!==-1&&(l[c][u]={...l[c][u],...o,message:VP(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=RP(o,i);return a?{...o,[a]:o[a].map(l=>l.id==i?{...l,requestClose:!0}:l)}:o})},isActive:i=>!!X4(Or.getState(),i).position}}let ew=0;function MH(e,t={}){ew+=1;const n=t.id??ew,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Or.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[WP,IH]=we({strict:!1,name:"PortalContext"}),ob="chakra-portal",LH=".chakra-portal",NH=e=>s.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),DH=e=>{const{appendToParentPortal:t,children:n}=e,[r,i]=m.useState(null),o=m.useRef(null),[,a]=m.useState({});m.useEffect(()=>a({}),[]);const l=IH(),c=xF();pi(()=>{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=ob,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(NH,{zIndex:c==null?void 0:c.zIndex,children:n}):n;return o.current?K1.createPortal(s.jsx(WP,{value:o.current,children:u}),o.current):s.jsx("span",{ref:d=>{d&&i(d)}})},OH=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=ob),c},[i]),[,l]=m.useState({});return pi(()=>l({}),[]),pi(()=>{if(!(!a||!o))return o.appendChild(a),()=>{o.removeChild(a)}},[a,o]),o&&a?K1.createPortal(s.jsx(WP,{value:r?a:null,children:t}),a):null};function ml(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?s.jsx(OH,{containerRef:n,...r}):s.jsx(DH,{...r})}ml.className=ob;ml.selector=LH;ml.displayName="Portal";const[FH,BH]=we({name:"ToastOptionsContext",strict:!1}),VH=e=>{const t=m.useSyncExternalStore(Or.subscribe,Or.getState,Or.getState),{motionVariants:n,component:r=MP,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:JU(c),children:s.jsx(_i,{...o,initial:!1,children:u.map(d=>s.jsx(r,{motionVariants:n,...d},d.id))})},c)});return s.jsx(ml,{...i,children:l})},WH=e=>function({children:n,theme:r=e,toastOptions:i,...o}){return s.jsxs(wF,{theme:r,...o,children:[s.jsx(FH,{value:i==null?void 0:i.defaultOptions,children:n}),s.jsx(VH,{...i})]})},UH=WH(Yo);function tw(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 HH=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function nw(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function rw(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}const c0=typeof window<"u"?m.useLayoutEffect:m.useEffect,iw=e=>e;var GH=Object.defineProperty,qH=(e,t,n)=>t in e?GH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pt=(e,t,n)=>(qH(e,typeof t!="symbol"?t+"":t,n),n);class KH{constructor(){pt(this,"descendants",new Map),pt(this,"register",t=>{if(t!=null)return HH(t)?this.registerNode(t):n=>{this.registerNode(n,t)}}),pt(this,"unregister",t=>{this.descendants.delete(t);const n=tw(Array.from(this.descendants.keys()));this.assignIndex(n)}),pt(this,"destroy",()=>{this.descendants.clear()}),pt(this,"assignIndex",t=>{this.descendants.forEach(n=>{const r=t.indexOf(n.node);n.index=r,n.node.dataset.index=n.index.toString()})}),pt(this,"count",()=>this.descendants.size),pt(this,"enabledCount",()=>this.enabledValues().length),pt(this,"values",()=>Array.from(this.descendants.values()).sort((n,r)=>n.index-r.index)),pt(this,"enabledValues",()=>this.values().filter(t=>!t.disabled)),pt(this,"item",t=>{if(this.count()!==0)return this.values()[t]}),pt(this,"enabledItem",t=>{if(this.enabledCount()!==0)return this.enabledValues()[t]}),pt(this,"first",()=>this.item(0)),pt(this,"firstEnabled",()=>this.enabledItem(0)),pt(this,"last",()=>this.item(this.descendants.size-1)),pt(this,"lastEnabled",()=>{const t=this.enabledValues().length-1;return this.enabledItem(t)}),pt(this,"indexOf",t=>{var n;return t?((n=this.descendants.get(t))==null?void 0:n.index)??-1:-1}),pt(this,"enabledIndexOf",t=>t==null?-1:this.enabledValues().findIndex(n=>n.node.isSameNode(t))),pt(this,"next",(t,n=!0)=>{const r=nw(t,this.count(),n);return this.item(r)}),pt(this,"nextEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const i=this.enabledIndexOf(r.node),o=nw(i,this.enabledCount(),n);return this.enabledItem(o)}),pt(this,"prev",(t,n=!0)=>{const r=rw(t,this.count()-1,n);return this.item(r)}),pt(this,"prevEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const i=this.enabledIndexOf(r.node),o=rw(i,this.enabledCount()-1,n);return this.enabledItem(o)}),pt(this,"registerNode",(t,n)=>{if(!t||this.descendants.has(t))return;const r=Array.from(this.descendants.keys()).concat(t),i=tw(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 XH(){const[e,t]=we({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[e,t,()=>{const i=m.useRef(new KH);return c0(()=>()=>i.current.destroy()),i.current},i=>{const o=t(),[a,l]=m.useState(-1),c=m.useRef(null);c0(()=>()=>{c.current&&o.unregister(c.current)},[]),c0(()=>{if(!c.current)return;const d=Number(c.current.dataset.index);a!=d&&!Number.isNaN(d)&&l(d)});const u=iw(i?o.register(i):o.register);return{descendants:o,index:a,enabledIndex:o.enabledIndexOf(c.current),register:Et(u,c)}}]}const ci={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 dv(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 sa={enter:{duration:.2,ease:ci.easeOut},exit:{duration:.1,ease:ci.easeIn}},kr={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})},YH=e=>e!=null&&parseInt(e.toString(),10)>0,ow={exit:{height:{duration:.2,ease:ci.ease},opacity:{duration:.3,ease:ci.ease}},enter:{height:{duration:.3,ease:ci.ease},opacity:{duration:.4,ease:ci.ease}}},QH={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:i})=>({...e&&{opacity:YH(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(n==null?void 0:n.exit)??kr.exit(ow.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)??kr.enter(ow.enter,i)})},Ru=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(_i,{...f,initial:!1,custom:x,children:b&&s.jsx(Un.div,{ref:t,...p,className:W("chakra-collapse",c),style:{overflow:"hidden",display:"block",...l},custom:x,variants:QH,initial:r?"exit":!1,animate:g,exit:"exit"})})});Ru.displayName="Collapse";const[ZH,UP]=we({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:"<Avatar/>"});function JH(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 HP(e){const{name:t,getInitials:n,...r}=e,i=UP();return s.jsx(N.div,{role:"img","aria-label":t,...r,__css:i.label,children:t?n==null?void 0:n(t):null})}HP.displayName="AvatarName";const GP=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 eG(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 pi(()=>{if(!c)return u==="loading"&&p(),()=>{h()}},[u,p,c]),c?"loaded":u}function qP(e){const{src:t,srcSet:n,onError:r,onLoad:i,getInitials:o,name:a,borderRadius:l,loading:c,iconLabel:u,icon:d=s.jsx(GP,{}),ignoreFallback:f,referrerPolicy:p,crossOrigin:h}=e,y=eG({src:t,onError:r,crossOrigin:h,ignoreFallback:f})==="loaded";return!t||!y?a?s.jsx(HP,{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}})}qP.displayName="AvatarImage";const tG={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},ab=B((e,t)=>{const n=Ke("Avatar",e),[r,i]=m.useState(!1),{src:o,srcSet:a,name:l,showBorder:c,borderRadius:u="full",onError:d,onLoad:f,getInitials:p=JH,icon:h=s.jsx(GP,{}),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,...tG,...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(ZH,{value:n,children:[s.jsx(qP,{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]})})});ab.displayName="Avatar";const nG={"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=UP(),c={position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",...nG[r],...a.badge};return s.jsx(N.div,{ref:n,...o,className:W("chakra-avatar__badge",i),__css:c})});KP.displayName="AvatarBadge";const On=B(function(t,n){const r=Hn("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}})});On.displayName="Badge";const se=N("div");se.displayName="Box";const[rG,iG]=we({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 fv(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=s.jsx(Dn,{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})}fv.displayName="ButtonSpinner";function oG(e){const[t,n]=m.useState(!e);return{ref:m.useCallback(o=>{o&&n(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}const ye=B((e,t)=>{const n=iG(),r=Hn("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}=oG(x),P={rightIcon:u,leftIcon:c,iconSpacing:f,children:l,shouldWrapChildren:b};return s.jsxs(N.button,{disabled:i||o,ref:ey(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(fv,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:f,children:h}),o?d||s.jsx(N.span,{opacity:0,children:s.jsx(aw,{...P})}):s.jsx(aw,{...P}),o&&v==="end"&&s.jsx(fv,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:f,children:h})]})});ye.displayName="Button";function aw(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 aG={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}}},sG={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},sb=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?aG[d]:sG[d](l)};const y=d==="vertical";return s.jsx(rG,{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})})});sb.displayName="ButtonGroup";const In=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(ye,{px:"0",py:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o,...a,children:c})});In.displayName="IconButton";const[lG,cG]=Pr("Card"),lb=B(function(t,n){const{className:r,children:i,direction:o="column",justify:a,align:l,...c}=Ae(t),u=Ke("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(lG,{value:u,children:i})})}),cb=B(function(t,n){const{className:r,...i}=t,o=cG();return s.jsx(N.div,{ref:n,className:W("chakra-card__body",r),__css:o.body,...i})}),XP=N("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});XP.displayName="Center";const uG={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:uG[r],...i,position:"absolute"})});var dG=()=>typeof document<"u",sw=!1,Mu=null,xa=!1,pv=!1,mv=new Set;function ub(e,t){mv.forEach(n=>n(e,t))}var fG=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function pG(e){return!(e.metaKey||!fG&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function lw(e){xa=!0,pG(e)&&(Mu="keyboard",ub("keyboard",e))}function Oa(e){if(Mu="pointer",e.type==="mousedown"||e.type==="pointerdown"){xa=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;ub("pointer",e)}}function mG(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function hG(e){mG(e)&&(xa=!0,Mu="virtual")}function gG(e){e.target===window||e.target===document||e.target instanceof Element&&e.target.hasAttribute("tabindex")||(!xa&&!pv&&(Mu="virtual",ub("virtual",e)),xa=!1,pv=!1)}function vG(){xa=!1,pv=!0}function cw(){return Mu!=="pointer"}function yG(){if(!dG()||sw)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){xa=!0,e.apply(this,n)},document.addEventListener("keydown",lw,!0),document.addEventListener("keyup",lw,!0),document.addEventListener("click",hG,!0),window.addEventListener("focus",gG,!0),window.addEventListener("blur",vG,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Oa,!0),document.addEventListener("pointermove",Oa,!0),document.addEventListener("pointerup",Oa,!0)):(document.addEventListener("mousedown",Oa,!0),document.addEventListener("mousemove",Oa,!0),document.addEventListener("mouseup",Oa,!0)),sw=!0}function YP(e){yG(),e(cw());const t=()=>e(cw());return mv.add(t),()=>{mv.delete(t)}}const[bG,QP]=we({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[xG,Iu]=we({strict:!1,name:"FormControlContext"});function SG(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:Et(_,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:Et(_,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 Te=B(function(t,n){const r=Ke("Form",t),i=Ae(t),{getRootProps:o,htmlProps:a,...l}=SG(i),c=W("chakra-form-control",t.className);return s.jsx(xG,{value:l,children:s.jsx(bG,{value:r,children:s.jsx(N.div,{...o({},n),className:c,__css:r.container})})})});Te.displayName="FormControl";const ou=B(function(t,n){const r=Iu(),i=QP(),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})});ou.displayName="FormHelperText";function ZP(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:i,...o}=JP(e);return{...o,disabled:t,readOnly:r,required:i,"aria-invalid":fi(n),"aria-required":fi(i),"aria-readonly":fi(r)}}function JP(e){const t=Iu(),{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 e_={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function wG(e={}){const t=JP(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=Z1(k,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),j=wr(h),_=wr(l),M=wr(c),[T,O]=m.useState(!1),[K,ne]=m.useState(!1),[z,X]=m.useState(!1),V=m.useRef(!1);m.useEffect(()=>YP(pe=>{V.current=pe}),[]);const I=m.useRef(null),[D,R]=m.useState(!0),[F,q]=m.useState(!!d),G=f!==void 0,ee=G?f:F,ke=m.useCallback(pe=>{if(r||n){pe.preventDefault();return}G||q(ee?pe.currentTarget.checked:v?!0:pe.currentTarget.checked),j==null||j(pe)},[r,n,ee,G,v,j]);pi(()=>{I.current&&(I.current.indeterminate=!!v)},[v]),cp(()=>{n&&O(!1)},[n,O]),pi(()=>{const pe=I.current;if(!(pe!=null&&pe.form))return;const ft=()=>{q(!!d)};return pe.form.addEventListener("reset",ft),()=>{var Xe;return(Xe=pe.form)==null?void 0:Xe.removeEventListener("reset",ft)}},[]);const be=n&&!p,je=m.useCallback(pe=>{pe.key===" "&&X(!0)},[X]),He=m.useCallback(pe=>{pe.key===" "&&X(!1)},[X]);pi(()=>{if(!I.current)return;I.current.checked!==ee&&q(I.current.checked)},[I.current]);const ge=m.useCallback((pe={},ft=null)=>{const Xe=Yt=>{T&&Yt.preventDefault(),X(!0)};return{...pe,ref:ft,"data-active":le(z),"data-hover":le(K),"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,Xe),onMouseUp:fe(pe.onMouseUp,()=>X(!1)),onMouseEnter:fe(pe.onMouseEnter,()=>ne(!0)),onMouseLeave:fe(pe.onMouseLeave,()=>ne(!1))}},[z,ee,n,T,K,v,o,r]),te=m.useCallback((pe={},ft=null)=>({...pe,ref:ft,"data-active":le(z),"data-hover":le(K),"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,K,v,o,r]),re=m.useCallback((pe={},ft=null)=>({...P,...pe,ref:Et(ft,Xe=>{Xe&&R(Xe.tagName==="LABEL")}),onClick:fe(pe.onClick,()=>{var Xe;D||((Xe=I.current)==null||Xe.click(),requestAnimationFrame(()=>{var Yt;(Yt=I.current)==null||Yt.focus({preventScroll:!0})}))}),"data-disabled":le(n),"data-checked":le(ee),"data-invalid":le(o)}),[P,n,ee,o,D]),$e=m.useCallback((pe={},ft=null)=>({...pe,ref:Et(I,ft),type:"checkbox",name:y,value:x,id:a,tabIndex:b,onChange:fe(pe.onChange,ke),onBlur:fe(pe.onBlur,_,()=>O(!1)),onFocus:fe(pe.onFocus,M,()=>O(!0)),onKeyDown:fe(pe.onKeyDown,je),onKeyUp:fe(pe.onKeyUp,He),required:i,checked:ee,disabled:be,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:e_}),[y,x,a,b,ke,_,M,je,He,i,ee,be,r,g,S,w,o,u,n,v]),ve=m.useCallback((pe={},ft=null)=>({...pe,ref:ft,onMouseDown:fe(pe.onMouseDown,kG),"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:K,isIndeterminate:v,isDisabled:n,isReadOnly:r,isRequired:i},getRootProps:re,getCheckboxProps:ge,getIndicatorProps:te,getInputProps:$e,getLabelProps:ve,htmlProps:P}}function kG(e){e.preventDefault(),e.stopPropagation()}const CG=new Set(["dark","light","system"]);function jG(e){let t=e;return CG.has(t)||(t="light"),t}function PG(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,i=jG(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 _G(e={}){const{nonce:t}=e;return s.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:PG(e)}})}const un=B(function(t,n){const{className:r,centerContent:i,...o}=Ae(t),a=Hn("Container",t);return s.jsx(N.div,{ref:n,className:W("chakra-container",r),...o,__css:{...a,...i&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});un.displayName="Container";const la=B(function(t,n){const{borderLeftWidth:r,borderBottomWidth:i,borderTopWidth:o,borderRightWidth:a,borderWidth:l,borderStyle:c,borderColor:u,...d}=Hn("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)})});la.displayName="Divider";const[TG,t_]=we({name:"EditableStylesContext",errorMessage:`useEditableStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Editable />" `}),[EG,db]=we({name:"EditableContext",errorMessage:"useEditableContext: context is undefined. Seems you forgot to wrap the editable components in `<Editable />`"});function uw(e,t){return e?e===t||e.contains(t):!1}function AG(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=wr(h),b=!!(c&&!a),[g,S]=m.useState(b),[w,k]=o6({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),K=m.useRef(null);ez({ref:_,enabled:g,elements:[O,K]});const ne=!g&&!a;pi(()=>{var te,re;g&&((te=_.current)==null||te.focus(),f&&((re=_.current)==null||re.select()))},[]),cp(()=>{var te,re,$e,ve;if(!g){v?(te=v.current)==null||te.focus():(re=T.current)==null||re.focus();return}($e=_.current)==null||$e.focus(),f&&((ve=_.current)==null||ve.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,ve={Escape:V,Enter:oe=>{!oe.shiftKey&&!oe.metaKey&&I()}}[re];ve&&(te.preventDefault(),ve(te))},[V,I]),F=m.useCallback(te=>{const re=te.key,ve={Escape:V}[re];ve&&(te.preventDefault(),ve(te))},[V]),q=w.length===0,G=m.useCallback(te=>{if(!g)return;const re=te.currentTarget.ownerDocument,$e=te.relatedTarget??re.activeElement,ve=uw(O.current,$e),oe=uw(K.current,$e);!ve&&!oe&&(d?I():V())},[d,I,V,g]),ee=m.useCallback((te={},re=null)=>{const $e=ne&&u?0:void 0;return{...te,ref:Et(re,M),children:q?p:w,hidden:g,"aria-disabled":fi(a),tabIndex:$e,onFocus:fe(te.onFocus,z,X)}},[a,g,ne,u,q,z,X,p,w]),ke=m.useCallback((te={},re=null)=>({...te,hidden:!g,placeholder:p,ref:Et(re,_),disabled:a,"aria-disabled":fi(a),value:w,onBlur:fe(te.onBlur,G),onChange:fe(te.onChange,D),onKeyDown:fe(te.onKeyDown,R),onFocus:fe(te.onFocus,X)}),[a,g,G,D,R,X,p,w]),be=m.useCallback((te={},re=null)=>({...te,hidden:!g,placeholder:p,ref:Et(re,_),disabled:a,"aria-disabled":fi(a),value:w,onBlur:fe(te.onBlur,G),onChange:fe(te.onChange,D),onKeyDown:fe(te.onKeyDown,F),onFocus:fe(te.onFocus,X)}),[a,g,G,D,F,X,p,w]),je=m.useCallback((te={},re=null)=>({"aria-label":"Edit",...te,type:"button",onClick:fe(te.onClick,z),ref:Et(re,T),disabled:a}),[z,a]),He=m.useCallback((te={},re=null)=>({...te,"aria-label":"Submit",ref:Et(K,re),type:"button",onClick:fe(te.onClick,I),disabled:a}),[I,a]),ge=m.useCallback((te={},re=null)=>({"aria-label":"Cancel",id:"cancel",...te,ref:Et(O,re),type:"button",onClick:fe(te.onClick,V),disabled:a}),[V,a]);return{isEditing:g,isDisabled:a,isValueEmpty:q,value:w,onEdit:z,onCancel:V,onSubmit:I,getPreviewProps:ee,getInputProps:ke,getTextareaProps:be,getEditButtonProps:je,getSubmitButtonProps:He,getCancelButtonProps:ge,htmlProps:y}}const tc=B(function(t,n){const r=Ke("Editable",t),i=Ae(t),{htmlProps:o,...a}=AG(i),{isEditing:l,onSubmit:c,onCancel:u,onEdit:d}=a,f=W("chakra-editable",t.className),p=rn(t.children,{isEditing:l,onSubmit:c,onCancel:u,onEdit:d});return s.jsx(EG,{value:a,children:s.jsx(TG,{value:r,children:s.jsx(N.div,{ref:n,...o,className:f,children:p})})})});tc.displayName="Editable";const n_={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent"},nc=B(function(t,n){const{getInputProps:r}=db(),i=t_(),o=r(t,n),a=W("chakra-editable__input",t.className);return s.jsx(N.input,{...o,__css:{outline:0,...n_,...i.input},className:a})});nc.displayName="EditableInput";const rc=B(function(t,n){const{getPreviewProps:r}=db(),i=t_(),o=r(t,n),a=W("chakra-editable__preview",t.className);return s.jsx(N.span,{...o,__css:{cursor:"text",display:"inline-block",...n_,...i.preview},className:a})});rc.displayName="EditablePreview";function $G(){const{isEditing:e,getEditButtonProps:t,getCancelButtonProps:n,getSubmitButtonProps:r}=db();return{isEditing:e,getEditButtonProps:t,getCancelButtonProps:n,getSubmitButtonProps:r}}function ic(e){return typeof e=="function"}function zG(...e){return t=>e.reduce((n,r)=>r(n),t)}const RG=e=>function(...n){let r=[...n],i=n[n.length-1];return sO(i)&&r.length>1?r=r.slice(0,r.length-1):i=e,zG(...r.map(o=>a=>ic(o)?o(a):MG(a,o)))(i)},fb=RG(Yo);function MG(...e){return er({},...e,r_)}function r_(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 er({},o,a,r_)};if($t(e)&&Rg(t)||Rg(e)&&$t(t))return t}const St=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})});St.displayName="Flex";function IG(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 hv="data-focus-lock",i_="data-focus-lock-disabled",LG="data-no-focus-lock",NG="data-autofocus-inside",DG="data-no-autofocus";function u0(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function OG(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 FG=typeof window<"u"?m.useLayoutEffect:m.useEffect,dw=new WeakMap;function o_(e,t){var n=OG(null,function(r){return e.forEach(function(i){return u0(i,r)})});return FG(function(){var r=dw.get(n);if(r){var i=new Set(r),o=new Set(e),a=n.current;i.forEach(function(l){o.has(l)||u0(l,null)}),o.forEach(function(l){i.has(l)||u0(l,a)})}dw.set(n,e)},[e]),n}var d0={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Fr=function(){return Fr=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},Fr.apply(this,arguments)};function a_(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 BG(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 s_(e){return e}function l_(e,t){t===void 0&&(t=s_);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 pb(e,t){return t===void 0&&(t=s_),l_(e,t)}function c_(e){e===void 0&&(e={});var t=l_(null);return t.options=Fr({async:!0,ssr:!1},e),t}var u_=function(e){var t=e.sideCar,n=a_(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,Fr({},n))};u_.isSideCarExport=!0;function VG(e,t){return e.useMedium(t),u_}var d_=pb({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),f_=pb(),WG=pb(),UG=c_({async:!0,ssr:typeof document<"u"}),HG=m.createContext(void 0),GG=[],mb=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,K=O===void 0?GG: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,q=t.onActivation,G=t.onDeactivation,ee=m.useState({}),ke=ee[0],be=m.useCallback(function(Xe){var Yt=Xe.captureFocusRestore;if(!u.current){var Tr,sr=(Tr=document)==null?void 0:Tr.activeElement;u.current=sr,sr!==document.body&&(u.current=Yt(sr))}l.current&&q&&q(l.current),c.current=!0,f()},[q]),je=m.useCallback(function(){c.current=!1,G&&G(l.current),f()},[G]),He=m.useCallback(function(Xe){var Yt=u.current;if(Yt){var Tr=(typeof Yt=="function"?Yt():Yt)||document.body,sr=typeof R=="function"?R(Tr):R;if(sr){var sn=typeof sr=="object"?sr:void 0;u.current=null,Xe?Promise.resolve().then(function(){return Tr.focus(sn)}):Tr.focus(sn)}}},[R]),ge=m.useCallback(function(Xe){c.current&&d_.useMedium(Xe)},[]),te=f_.useMedium,re=m.useCallback(function(Xe){l.current!==Xe&&(l.current=Xe,a(Xe))},[]),$e=ba((r={},r[i_]=v&&"disabled",r[hv]=j,r),V),ve=x!==!0,oe=ve&&x!=="tail",pe=o_([n,re]),ft=m.useMemo(function(){return{observed:l,shards:K,enabled:!v,get active(){return c.current}}},[v,c,K,l]);return Vt.createElement(m.Fragment,null,ve&&[Vt.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:v?-1:0,style:d0}),T?Vt.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:v?-1:1,style:d0}):null],!v&&Vt.createElement(I,{id:ke,sideCar:UG,observed:o,disabled:v,persistentFocus:g,crossFrame:w,autoFocus:P,whiteList:M,shards:K,onActivation:be,onDeactivation:je,returnFocus:He,focusOptions:F,noFocusGuards:x}),Vt.createElement(z,ba({ref:pe},$e,{className:_,onBlur:te,onFocus:ge}),Vt.createElement(HG.Provider,{value:ft},p)),oe&&Vt.createElement("div",{"data-focus-guard":!0,tabIndex:v?-1:0,style:d0}))});mb.propTypes={};function gv(e,t){return gv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},gv(e,t)}function qG(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gv(e,t)}function au(e){"@babel/helpers - typeof";return au=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},au(e)}function KG(e,t){if(au(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(au(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XG(e){var t=KG(e,"string");return au(t)=="symbol"?t:t+""}function YG(e,t,n){return(t=XG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QG(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){qG(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 Vt.createElement(i,this.props)},d}(m.PureComponent);return YG(c,"displayName","SideEffect("+n(i)+")"),c}}var Yr=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},Sa=function(e){return Array.isArray(e)?e:[e]},p_=function(e){return Array.isArray(e)?e[0]:e},ZG=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"},m_=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},h_=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},JG=function(e){return e.hasAttribute("inert")},eq=function(e,t){return!e||h_(e)||!ZG(e)&&!JG(e)&&t(m_(e))},g_=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=eq(t,g_.bind(void 0,e));return e.set(t,r),r},tq=function(e,t){return e&&!h_(e)?iq(e)?t(m_(e)):!1:!0},v_=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=tq(t,v_.bind(void 0,e));return e.set(t,r),r},y_=function(e){return e.dataset},nq=function(e){return e.tagName==="BUTTON"},b_=function(e){return e.tagName==="INPUT"},x_=function(e){return b_(e)&&e.type==="radio"},rq=function(e){return!((b_(e)||nq(e))&&(e.type==="hidden"||e.disabled))},iq=function(e){var t=e.getAttribute(DG);return![!0,"true",""].includes(t)},hb=function(e){var t;return!!(e&&(!((t=y_(e))===null||t===void 0)&&t.focusGuard))},vv=function(e){return!hb(e)},oq=function(e){return!!e},aq=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},sq=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex},gb=function(e,t,n){return Yr(e).map(function(r,i){var o=sq(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(aq)},lq=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],vb=lq.join(","),cq="".concat(vb,", [data-focus-guard]"),S_=function(e,t){return Yr((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?cq:vb)?[r]:[],S_(r))},[])},uq=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?Js([e.contentDocument.body],t):[e]},Js=function(e,t){return e.reduce(function(n,r){var i,o=S_(r,t),a=(i=[]).concat.apply(i,o.map(function(l){return uq(l,t)}));return n.concat(a,r.parentNode?Yr(r.parentNode.querySelectorAll(vb)).filter(function(l){return l===r}):[])},[])},dq=function(e){var t=e.querySelectorAll("[".concat(NG,"]"));return Yr(t).map(function(n){return Js([n])}).reduce(function(n,r){return n.concat(r)},[])},yb=function(e,t){return Yr(e).filter(function(n){return g_(t,n)}).filter(function(n){return rq(n)})},fw=function(e,t){return t===void 0&&(t=new Map),Yr(e).filter(function(n){return v_(t,n)})},bb=function(e,t,n){return gb(yb(Js(e,n),t),!0,n)},su=function(e,t){return gb(yb(Js(e),t),!1)},fq=function(e,t){return yb(dq(e),t)},ca=function(e,t){return e.shadowRoot?ca(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:Yr(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?ca(i,t):!1}return ca(n,t)})},pq=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)})},w_=function(e){return e.parentNode?w_(e.parentNode):e},xb=function(e){var t=Sa(e);return t.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(hv);return n.push.apply(n,i?pq(Yr(w_(r).querySelectorAll("[".concat(hv,'="').concat(i,'"]:not([').concat(i_,'="disabled"])')))):[r]),n},[])},mq=function(e){try{return e()}catch{return}},lu=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?lu(t.shadowRoot):t instanceof HTMLIFrameElement&&mq(function(){return t.contentWindow.document})?lu(t.contentWindow.document):t}},hq=function(e,t){return e===t},gq=function(e,t){return!!Yr(e.querySelectorAll("iframe")).some(function(n){return hq(n,t)})},k_=function(e,t){return t===void 0&&(t=lu(p_(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:xb(e).some(function(n){return ca(n,t)||gq(n,t)})},vq=function(e){e===void 0&&(e=document);var t=lu(e);return t?Yr(e.querySelectorAll("[".concat(LG,"]"))).some(function(n){return ca(n,t)}):!1},yq=function(e,t){return t.filter(x_).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},Sb=function(e,t){return x_(e)&&e.name?yq(e,t):e},bq=function(e){var t=new Set;return e.forEach(function(n){return t.add(Sb(n,e))}),e.filter(function(n){return t.has(n)})},pw=function(e){return e[0]&&e.length>1?Sb(e[0],e):e[0]},mw=function(e,t){return e.indexOf(Sb(t,e))},yv="NEW_FOCUS",xq=function(e,t,n,r,i){var o=e.length,a=e[0],l=e[o-1],c=hb(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:yv;if(f===-1)return yv;var p=u-d,h=n.indexOf(a),v=n.indexOf(l),y=bq(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=mw(e,t[0]),j=mw(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}},Sq=function(e){return function(t){var n,r=(n=y_(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},hw=function(e,t,n){var r=e.map(function(o){var a=o.node;return a}),i=fw(r.filter(Sq(n)));return i&&i.length?pw(i):pw(fw(t))},bv=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&bv(e.parentNode.host||e.parentNode,t),t},f0=function(e,t){for(var n=bv(e),r=bv(t),i=0;i<n.length;i+=1){var o=n[i];if(r.indexOf(o)>=0)return o}return!1},C_=function(e,t,n){var r=Sa(e),i=Sa(t),o=r[0],a=!1;return i.filter(Boolean).forEach(function(l){a=f0(a||l,l)||a,n.filter(Boolean).forEach(function(c){var u=f0(o,c);u&&(!a||ca(u,a)?a=u:a=f0(u,a))})}),a},gw=function(e,t){return e.reduce(function(n,r){return n.concat(fq(r,t))},[])},wq=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(oq)},kq=function(e,t){var n=lu(Sa(e).length>0?document:p_(e).ownerDocument),r=xb(e).filter(vv),i=C_(n||e,e,r),o=new Map,a=su(r,o),l=a.filter(function(v){var y=v.node;return vv(y)});if(l[0]){var c=su([i],o).map(function(v){var y=v.node;return y}),u=wq(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=xq(d,f,c,n,t);if(p===yv){var h=hw(a,f,gw(r,o))||hw(a,d,gw(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]}},Cq=function(e){var t=xb(e).filter(vv),n=C_(e,e,t),r=gb(Js([n],!0),!0,!0),i=Js(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:hb(a)}})},wb=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},p0=0,m0=!1,j_=function(e,t,n){n===void 0&&(n={});var r=kq(e,t);if(!m0&&r){if(p0>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),m0=!0,setTimeout(function(){m0=!1},1);return}p0++,wb(r.node,n.focusOptions),p0--}};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 jq=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}},Pq=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=bb([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}}},P_=function(e){var t=jq(e);return function(){return Pq(t)}},_q=function(e,t,n){if(!e||!t)return console.error("no element or scope given"),{};var r=Sa(t);if(r.every(function(a){return!ca(a,e)}))return console.error("Active element is not contained in the scope"),{};var i=n?bb(r,new Map):su(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]}},Tq=function(e,t){var n=t?bb(Sa(e),new Map):su(Sa(e),new Map);return{first:n[0],last:n[n.length-1]}},Eq=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)},__=function(e,t,n){t===void 0&&(t={});var r=Eq(t),i=_q(e,r.scope,r.onlyTabbable);if(i){var o=n(i,r.cycle);o&&wb(o.node,r.focusOptions)}},Aq=function(e,t){t===void 0&&(t={}),__(e,t,function(n,r){var i=n.next,o=n.first;return i||r&&o})},$q=function(e,t){t===void 0&&(t={}),__(e,t,function(n,r){var i=n.prev,o=n.last;return i||r&&o})},T_=function(e,t,n){var r,i=Tq(e,(r=t.onlyTabbable)!==null&&r!==void 0?r:!0),o=i[n];o&&wb(o.node,t.focusOptions)},zq=function(e,t){t===void 0&&(t={}),T_(e,t,"first")},Rq=function(e,t){t===void 0&&(t={}),T_(e,t,"last")};function kb(e){setTimeout(e,1)}var Mq=function(t){return t&&"current"in t?t.current:t},E_=function(){return document&&document.activeElement===document.body},Iq=function(){return E_()||vq()},Is=null,vn=null,vw=function(){return null},Ls=null,cu=!1,Cb=!1,Lq=function(){return!0},Nq=function(t){return(Is.whiteList||Lq)(t)},Dq=function(t,n){Ls={observerNode:t,portaledElement:n}},Oq=function(t){return Ls&&Ls.portaledElement===t};function yw(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 Fq=function(t){return t?!!cu:cu==="meanwhile"},Bq=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},Vq=function(t,n){return n.some(function(r){return Bq(t,r,r)})},A_=function(t){return su(t,new Map)},Wq=function(t){return!A_([t.parentNode]).some(function(n){return n.node===t})},Sp=function(){var t=!1;if(Is){var n=Is,r=n.observed,i=n.persistentFocus,o=n.autoFocus,a=n.shards,l=n.crossFrame,c=n.focusOptions,u=n.noFocusGuards,d=r||Ls&&Ls.portaledElement;if(E_()&&vn&&vn!==document.body&&(!document.body.contains(vn)||Wq(vn))){var f=vw();f&&f.focus()}var p=document&&document.activeElement;if(d){var h=[d].concat(a.map(Mq).filter(Boolean)),v=function(){if(!Fq(l)||!u||!vn||Cb)return!1;var S=A_(h),w=S.findIndex(function(k){var P=k.node;return P===vn});return w===0||w===S.length-1};if((!p||Nq(p))&&(i||v()||!Iq()||!vn&&o)&&(d&&!(k_(h)||p&&Vq(p,h)||Oq(p))&&(document&&!vn&&p&&!o?(p.blur&&p.blur(),document.body.focus()):(t=j_(h,vn,{focusOptions:c}),Ls={})),vn=document&&document.activeElement,vn!==document.body&&(vw=P_(vn)),cu=!1),document&&p!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var y=document&&document.activeElement,x=Cq(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")}),yw(b,x.length,1,x),yw(b,-1,-1,x))}}}return t},$_=function(t){Sp()&&t&&(t.stopPropagation(),t.preventDefault())},jb=function(){return kb(Sp)},Uq=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||Dq(r,n)},Hq=function(){return null},z_=function(){Cb=!0},R_=function(){Cb=!1,cu="just",kb(function(){cu="meanwhile"})},Gq=function(){document.addEventListener("focusin",$_),document.addEventListener("focusout",jb),window.addEventListener("focus",z_),window.addEventListener("blur",R_)},qq=function(){document.removeEventListener("focusin",$_),document.removeEventListener("focusout",jb),window.removeEventListener("focus",z_),window.removeEventListener("blur",R_)};function Kq(e){return e.filter(function(t){var n=t.disabled;return!n})}var M_={moveFocusInside:j_,focusInside:k_,focusNextElement:Aq,focusPrevElement:$q,focusFirstElement:zq,focusLastElement:Rq,captureFocusRestore:P_};function Xq(e){var t=e.slice(-1)[0];t&&!Is&&Gq();var n=Is,r=n&&t&&t.id===n.id;Is=t,n&&!r&&(n.onDeactivation(),e.filter(function(i){var o=i.id;return o===n.id}).length||n.returnFocus(!t)),t?(vn=null,(!r||n.observed!==t.observed)&&t.onActivation(M_),Sp(),kb(Sp)):(qq(),vn=null)}d_.assignSyncMedium(Uq);f_.assignMedium(jb);WG.assignMedium(function(e){return e(M_)});const Yq=QG(Kq,Xq)(Hq);var xv=m.forwardRef(function(t,n){return Vt.createElement(mb,ba({sideCar:Yq,ref:n},t))}),I_=mb.propTypes||{};I_.sideCar;IG(I_,["sideCar"]);xv.propTypes={};const Qq=xv.default??xv,L_=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&&D$(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(Qq,{crossFrame:u,persistentFocus:c,autoFocus:l,disabled:a,onActivation:d,onDeactivation:f,returnFocus:p,children:o})};L_.displayName="FocusLock";const Ee=B(function(t,n){const r=Hn("FormLabel",t),i=Ae(t),{className:o,children:a,requiredIndicator:l=s.jsx(N_,{}),optionalIndicator:c=null,...u}=i,d=Iu(),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]})});Ee.displayName="FormLabel";const N_=B(function(t,n){const r=Iu(),i=QP();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})});N_.displayName="RequiredIndicator";const D_=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})});D_.displayName="Grid";const pn=B(function(t,n){const{columns:r,spacingX:i,spacingY:o,spacing:a,minChildWidth:l,...c}=t,u=Ti(),d=l?Jq(l,u):eK(r);return s.jsx(D_,{ref:n,gap:a,columnGap:i,rowGap:o,templateColumns:d,...c})});pn.displayName="SimpleGrid";function Zq(e){return typeof e=="number"?`${e}px`:e}function Jq(e,t){return J1(e,n=>{const r=SH("sizes",n,Zq(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function eK(e){return J1(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}function xm(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(Pt,{ref:c,viewBox:t,...i,...l,children:o.length?o:s.jsx("path",{fill:"currentColor",d:n})}));return a.displayName=r,a}const gt=B(function(t,n){const{htmlSize:r,...i}=t,o=Ke("Input",i),a=Ae(i),l=ZP(a),c=W("chakra-input",t.className);return s.jsx(N.input,{size:r,...l,__css:o.field,ref:n,className:c})});gt.displayName="Input";gt.id="Input";const[tK,nK]=we({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),Pb=B(function(t,n){const r=Ke("Input",t),{children:i,className:o,...a}=Ae(t),l=W("chakra-input__group",o),c={},u=Y1(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=Q1({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(tK,{value:r,children:f})})});Pb.displayName="InputGroup";const rK=N("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Sm=B(function(t,n){const{placement:r="left",...i}=t,o=nK(),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(rK,{ref:n,__css:c,...i})});Sm.id="InputElement";Sm.displayName="InputElement";const _b=B(function(t,n){const{className:r,...i}=t,o=W("chakra-input__left-element",r);return s.jsx(Sm,{ref:n,placement:"left",className:o,...i})});_b.id="InputLeftElement";_b.displayName="InputLeftElement";const wm=B(function(t,n){const{className:r,...i}=t,o=W("chakra-input__right-element",r);return s.jsx(Sm,{ref:n,placement:"right",className:o,...i})});wm.id="InputRightElement";wm.displayName="InputRightElement";const jo=B(function(t,n){const r=Hn("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})});jo.displayName="Link";const[iK,O_]=we({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "<List />" `}),Lu=B(function(t,n){const r=Ke("List",t),{children:i,styleType:o="none",stylePosition:a,spacing:l,...c}=Ae(t),u=Y1(i),f=l?{["& > *:not(style) ~ *:not(style)"]:{mt:l}}:{};return s.jsx(iK,{value:r,children:s.jsx(N.ul,{ref:n,listStyleType:o,listStylePosition:a,role:"list",__css:{...r.container,...f},...c,children:u})})});Lu.displayName="List";const oK=B((e,t)=>{const{as:n,...r}=e;return s.jsx(Lu,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});oK.displayName="OrderedList";const aK=B(function(t,n){const{as:r,...i}=t;return s.jsx(Lu,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...i})});aK.displayName="UnorderedList";const Tb=B(function(t,n){const r=O_();return s.jsx(N.li,{ref:n,...t,__css:r.item})});Tb.displayName="ListItem";const F_=B(function(t,n){const r=O_();return s.jsx(Pt,{ref:n,role:"presentation",...t,__css:r.icon})});F_.displayName="ListIcon";function sK(e,t={}){const{ssr:n=!0,fallback:r}=t,{getWindow:i}=SF(),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 lK(e){var l;const t=$t(e)?e:{fallback:e??"base"},r=Ti().__breakpoints.details.map(({minMaxQuery:c,breakpoint:u})=>({breakpoint:u,query:c.replace("@media screen and ","")})),i=r.map(c=>c.breakpoint===t.fallback),a=sK(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 cK(e,t,n=n6){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 wp(e,t){var l;const n=$t(t)?t:{fallback:t??"base"},r=lK(n),i=Ti();if(!r)return;const o=Array.from(((l=i.__breakpoints)==null?void 0:l.keys)||[]),a=Array.isArray(e)?Object.fromEntries(Object.entries(V$(e,o)).map(([c,u])=>[c,u])):e;return cK(a,r,o)}var Cn="top",or="bottom",ar="right",jn="left",Eb="auto",Nu=[Cn,or,ar,jn],el="start",uu="end",uK="clippingParents",B_="viewport",Fl="popper",dK="reference",bw=Nu.reduce(function(e,t){return e.concat([t+"-"+el,t+"-"+uu])},[]),V_=[].concat(Nu,[Eb]).reduce(function(e,t){return e.concat([t,t+"-"+el,t+"-"+uu])},[]),fK="beforeRead",pK="read",mK="afterRead",hK="beforeMain",gK="main",vK="afterMain",yK="beforeWrite",bK="write",xK="afterWrite",SK=[fK,pK,mK,hK,gK,vK,yK,bK,xK];function Xr(e){return e?(e.nodeName||"").toLowerCase():null}function Fn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wa(e){var t=Fn(e).Element;return e instanceof t||e instanceof Element}function nr(e){var t=Fn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ab(e){if(typeof ShadowRoot>"u")return!1;var t=Fn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function wK(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];!nr(o)||!Xr(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 kK(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},{});!nr(i)||!Xr(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const CK={name:"applyStyles",enabled:!0,phase:"write",fn:wK,effect:kK,requires:["computeStyles"]};function Kr(e){return e.split("-")[0]}var ua=Math.max,kp=Math.min,tl=Math.round;function Sv(){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 W_(){return!/^((?!chrome|android).)*safari/i.test(Sv())}function nl(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&nr(e)&&(i=e.offsetWidth>0&&tl(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&tl(r.height)/e.offsetHeight||1);var a=wa(e)?Fn(e):window,l=a.visualViewport,c=!W_()&&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 $b(e){var t=nl(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 U_(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ab(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ki(e){return Fn(e).getComputedStyle(e)}function jK(e){return["table","td","th"].indexOf(Xr(e))>=0}function Po(e){return((wa(e)?e.ownerDocument:e.document)||window.document).documentElement}function km(e){return Xr(e)==="html"?e:e.assignedSlot||e.parentNode||(Ab(e)?e.host:null)||Po(e)}function xw(e){return!nr(e)||ki(e).position==="fixed"?null:e.offsetParent}function PK(e){var t=/firefox/i.test(Sv()),n=/Trident/i.test(Sv());if(n&&nr(e)){var r=ki(e);if(r.position==="fixed")return null}var i=km(e);for(Ab(i)&&(i=i.host);nr(i)&&["html","body"].indexOf(Xr(i))<0;){var o=ki(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 Du(e){for(var t=Fn(e),n=xw(e);n&&jK(n)&&ki(n).position==="static";)n=xw(n);return n&&(Xr(n)==="html"||Xr(n)==="body"&&ki(n).position==="static")?t:n||PK(e)||t}function zb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function jc(e,t,n){return ua(e,kp(t,n))}function _K(e,t,n){var r=jc(e,t,n);return r>n?n:r}function H_(){return{top:0,right:0,bottom:0,left:0}}function G_(e){return Object.assign({},H_(),e)}function q_(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var TK=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,G_(typeof t!="number"?t:q_(t,Nu))};function EK(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Kr(n.placement),c=zb(l),u=[jn,ar].indexOf(l)>=0,d=u?"height":"width";if(!(!o||!a)){var f=TK(i.padding,n),p=$b(o),h=c==="y"?Cn:jn,v=c==="y"?or:ar,y=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],x=a[c]-n.rects.reference[c],b=Du(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=jc(w,P,k),_=c;n.modifiersData[r]=(t={},t[_]=j,t.centerOffset=j-P,t)}}function AK(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)||U_(t.elements.popper,i)&&(t.elements.arrow=i))}const $K={name:"arrow",enabled:!0,phase:"main",fn:EK,effect:AK,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rl(e){return e.split("-")[1]}var zK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function RK(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:tl(n*i)/i||0,y:tl(r*i)/i||0}}function Sw(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=jn,w=Cn,k=window;if(u){var P=Du(n),j="clientHeight",_="clientWidth";if(P===Fn(n)&&(P=Po(n),ki(P).position!=="static"&&l==="absolute"&&(j="scrollHeight",_="scrollWidth")),P=P,i===Cn||(i===jn||i===ar)&&o===uu){w=or;var M=f&&P===k&&k.visualViewport?k.visualViewport.height:P[j];y-=M-r.height,y*=c?1:-1}if(i===jn||(i===Cn||i===or)&&o===uu){S=ar;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&&zK),K=d===!0?RK({x:h,y},Fn(n)):{x:h,y};if(h=K.x,y=K.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 MK(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:Kr(t.placement),variation:rl(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,Sw(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,Sw(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 IK={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:MK,data:{}};var zd={passive:!0};function LK(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=Fn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",n.update,zd)}),l&&c.addEventListener("resize",n.update,zd),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",n.update,zd)}),l&&c.removeEventListener("resize",n.update,zd)}}const NK={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:LK,data:{}};var DK={left:"right",right:"left",bottom:"top",top:"bottom"};function _f(e){return e.replace(/left|right|bottom|top/g,function(t){return DK[t]})}var OK={start:"end",end:"start"};function ww(e){return e.replace(/start|end/g,function(t){return OK[t]})}function Rb(e){var t=Fn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Mb(e){return nl(Po(e)).left+Rb(e).scrollLeft}function FK(e,t){var n=Fn(e),r=Po(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){o=i.width,a=i.height;var u=W_();(u||!u&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:l+Mb(e),y:c}}function BK(e){var t,n=Po(e),r=Rb(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=ua(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=ua(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Mb(e),c=-r.scrollTop;return ki(i||n).direction==="rtl"&&(l+=ua(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:l,y:c}}function Ib(e){var t=ki(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(Xr(e))>=0?e.ownerDocument.body:nr(e)&&Ib(e)?e:K_(km(e))}function Pc(e,t){var n;t===void 0&&(t=[]);var r=K_(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Fn(r),a=i?[o].concat(o.visualViewport||[],Ib(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(Pc(km(a)))}function wv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function VK(e,t){var n=nl(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 kw(e,t,n){return t===B_?wv(FK(e,n)):wa(t)?VK(t,n):wv(BK(Po(e)))}function WK(e){var t=Pc(km(e)),n=["absolute","fixed"].indexOf(ki(e).position)>=0,r=n&&nr(e)?Du(e):e;return wa(r)?t.filter(function(i){return wa(i)&&U_(i,r)&&Xr(i)!=="body"}):[]}function UK(e,t,n,r){var i=t==="clippingParents"?WK(e):[].concat(t),o=[].concat(i,[n]),a=o[0],l=o.reduce(function(c,u){var d=kw(e,u,r);return c.top=ua(d.top,c.top),c.right=kp(d.right,c.right),c.bottom=kp(d.bottom,c.bottom),c.left=ua(d.left,c.left),c},kw(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 X_(e){var t=e.reference,n=e.element,r=e.placement,i=r?Kr(r):null,o=r?rl(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(i){case Cn:c={x:a,y:t.y-n.height};break;case or:c={x:a,y:t.y+t.height};break;case ar:c={x:t.x+t.width,y:l};break;case jn:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=i?zb(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case el:c[u]=c[u]-(t[d]/2-n[d]/2);break;case uu:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function du(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?uK:l,u=n.rootBoundary,d=u===void 0?B_: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=G_(typeof x!="number"?x:q_(x,Nu)),g=p===Fl?dK:Fl,S=e.rects.popper,w=e.elements[v?g:p],k=UK(wa(w)?w:w.contextElement||Po(e.elements.popper),c,d,a),P=nl(e.elements.reference),j=X_({reference:P,element:S,placement:i}),_=wv(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 K=O[i];Object.keys(T).forEach(function(ne){var z=[ar,or].indexOf(ne)>=0?1:-1,X=[Cn,or].indexOf(ne)>=0?"y":"x";T[ne]+=K[X]*z})}return T}function HK(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?V_:c,d=rl(r),f=d?l?bw:bw.filter(function(v){return rl(v)===d}):Nu,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]=du(e,{placement:y,boundary:i,rootBoundary:o,padding:a})[Kr(y)],v},{});return Object.keys(h).sort(function(v,y){return h[v]-h[y]})}function GK(e){if(Kr(e)===Eb)return[];var t=_f(e);return[ww(e),t,ww(t)]}function qK(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=Kr(x),g=b===x,S=c||(g||!v?[_f(x)]:GK(x)),w=[x].concat(S).reduce(function(ke,be){return ke.concat(Kr(be)===Eb?HK(t,{placement:be,boundary:d,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:y}):be)},[]),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],K=Kr(O),ne=rl(O)===el,z=[Cn,or].indexOf(K)>=0,X=z?"width":"height",V=du(t,{placement:O,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),I=z?ne?ar:jn:ne?or:Cn;k[X]>P[X]&&(I=_f(I));var D=_f(I),R=[];if(o&&R.push(V[K]<=0),l&&R.push(V[I]<=0,V[D]<=0),R.every(function(ke){return ke})){M=O,_=!1;break}j.set(O,R)}if(_)for(var F=v?3:1,q=function(be){var je=w.find(function(He){var ge=j.get(He);if(ge)return ge.slice(0,be).every(function(te){return te})});if(je)return M=je,"break"},G=F;G>0;G--){var ee=q(G);if(ee==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const KK={name:"flip",enabled:!0,phase:"main",fn:qK,requiresIfExists:["offset"],data:{_skip:!1}};function Cw(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 jw(e){return[Cn,ar,or,jn].some(function(t){return e[t]>=0})}function XK(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=du(t,{elementContext:"reference"}),l=du(t,{altBoundary:!0}),c=Cw(a,r),u=Cw(l,i,o),d=jw(c),f=jw(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 YK={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:XK};function QK(e,t,n){var r=Kr(e),i=[jn,Cn].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,[jn,ar].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function ZK(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=V_.reduce(function(d,f){return d[f]=QK(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 JK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ZK};function eX(e){var t=e.state,n=e.name;t.modifiersData[n]=X_({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const tX={name:"popperOffsets",enabled:!0,phase:"read",fn:eX,data:{}};function nX(e){return e==="x"?"y":"x"}function rX(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=du(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),b=Kr(t.placement),g=rl(t.placement),S=!g,w=zb(b),k=nX(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,K={x:0,y:0};if(P){if(o){var ne,z=w==="y"?Cn:jn,X=w==="y"?or:ar,V=w==="y"?"height":"width",I=P[w],D=I+x[z],R=I-x[X],F=h?-_[V]/2:0,q=g===el?j[V]:_[V],G=g===el?-_[V]:-j[V],ee=t.elements.arrow,ke=h&&ee?$b(ee):{width:0,height:0},be=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:H_(),je=be[z],He=be[X],ge=jc(0,j[V],ke[V]),te=S?j[V]/2-F-ge-je-T.mainAxis:q-ge-je-T.mainAxis,re=S?-j[V]/2+F+ge+He+T.mainAxis:G+ge+He+T.mainAxis,$e=t.elements.arrow&&Du(t.elements.arrow),ve=$e?w==="y"?$e.clientTop||0:$e.clientLeft||0:0,oe=(ne=O==null?void 0:O[w])!=null?ne:0,pe=I+te-oe-ve,ft=I+re-oe,Xe=jc(h?kp(D,pe):D,I,h?ua(R,ft):R);P[w]=Xe,K[w]=Xe-I}if(l){var Yt,Tr=w==="x"?Cn:jn,sr=w==="x"?or:ar,sn=P[k],zi=k==="y"?"height":"width",Ao=sn+x[Tr],lr=sn-x[sr],Ma=[Cn,jn].indexOf(b)!==-1,Sl=(Yt=O==null?void 0:O[k])!=null?Yt:0,Ku=Ma?Ao:sn-j[zi]-_[zi]-Sl+T.altAxis,Xu=Ma?sn+j[zi]+_[zi]-Sl-T.altAxis:lr,$o=h&&Ma?_K(Ku,sn,Xu):jc(h?Ku:Ao,sn,h?Xu:lr);P[k]=$o,K[k]=$o-sn}t.modifiersData[r]=K}}const iX={name:"preventOverflow",enabled:!0,phase:"main",fn:rX,requiresIfExists:["offset"]};function oX(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function aX(e){return e===Fn(e)||!nr(e)?Rb(e):oX(e)}function sX(e){var t=e.getBoundingClientRect(),n=tl(t.width)/e.offsetWidth||1,r=tl(t.height)/e.offsetHeight||1;return n!==1||r!==1}function lX(e,t,n){n===void 0&&(n=!1);var r=nr(t),i=nr(t)&&sX(t),o=Po(t),a=nl(e,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Xr(t)!=="body"||Ib(o))&&(l=aX(t)),nr(t)?(c=nl(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Mb(o))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function cX(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 uX(e){var t=cX(e);return SK.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function dX(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function fX(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 Pw={placement:"bottom",modifiers:[],strategy:"absolute"};function _w(){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 pX(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?Pw:i;return function(l,c,u){u===void 0&&(u=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Pw,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:wa(l)?Pc(l):l.contextElement?Pc(l.contextElement):[],popper:Pc(c)};var S=uX(fX([].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(_w(g,S)){d.rects={reference:lX(g,Du(S),d.options.strategy==="fixed"),popper:$b(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:dX(function(){return new Promise(function(x){h.forceUpdate(),x(d)})}),destroy:function(){y(),p=!0}};if(!_w(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 mX=[NK,tX,IK,CK,JK,KK,iX,$K,YK],hX=pX({defaultModifiers:mX});const Fa=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Ht={arrowShadowColor:Fa("--popper-arrow-shadow-color"),arrowSize:Fa("--popper-arrow-size","8px"),arrowSizeHalf:Fa("--popper-arrow-size-half"),arrowBg:Fa("--popper-arrow-bg"),transformOrigin:Fa("--popper-transform-origin"),arrowOffset:Fa("--popper-arrow-offset")};function gX(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 vX={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"},yX=e=>vX[e],Tw={scroll:!0,resize:!0};function bX(e){let t;return typeof e=="object"?t={enabled:!0,options:{...Tw,...e}}:t={enabled:e,options:Tw},t}const xX={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`}},SX={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Ew(e)},effect:({state:e})=>()=>{Ew(e)}},Ew=e=>{e.elements.popper.style.setProperty(Ht.transformOrigin.var,yX(e.placement))},wX={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{kX(e)}},kX=e=>{var n;if(!e.placement)return;const t=CX(e.placement);if((n=e.elements)!=null&&n.arrow&&t){Object.assign(e.elements.arrow.style,{[t.property]:t.value,width:Ht.arrowSize.varRef,height:Ht.arrowSize.varRef,zIndex:-1});const r={[Ht.arrowSizeHalf.var]:`calc(${Ht.arrowSize.varRef} / 2 - 1px)`,[Ht.arrowOffset.var]:`calc(${Ht.arrowSizeHalf.varRef} * -1)`};for(const i in r)e.elements.arrow.style.setProperty(i,r[i])}},CX=e=>{if(e.startsWith("top"))return{property:"bottom",value:Ht.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Ht.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Ht.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Ht.arrowOffset.varRef}},jX={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Aw(e)},effect:({state:e})=>()=>{Aw(e)}},Aw=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=gX(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:Ht.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},PX={"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"}},_X={"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 TX(e,t="ltr"){var r;const n=((r=PX[e])==null?void 0:r[t])||e;return t==="ltr"?n:_X[e]??n}function EX(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=TX(r,h),g=m.useRef(()=>{}),S=m.useCallback(()=>{var T;!t||!v.current||!y.current||((T=g.current)==null||T.call(g),x.current=hX(v.current,y.current,{placement:b,modifiers:[jX,wX,SX,{...xX,enabled:!!p},{name:"eventListeners",...bX(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:Et(w,O)}),[w]),P=m.useCallback(T=>{y.current=T,S()},[S]),j=m.useCallback((T={},O=null)=>({...T,ref:Et(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:K,shadowColor:ne,bg:z,style:X,...V}=T;return{...V,ref:O,"data-popper-arrow":"",style:AX(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:Ht.transformOrigin.varRef,referenceRef:w,popperRef:P,getPopperProps:j,getArrowProps:_,getArrowInnerProps:M,getReferenceProps:k}}function AX(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]=XH(),[uue,$X]=we({strict:!1,name:"MenuContext"});var zX=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ba=new WeakMap,Rd=new WeakMap,Md={},h0=0,Y_=function(e){return e&&(e.host||Y_(e.parentNode))},RX=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Y_(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})},MX=function(e,t,n,r){var i=RX(t,Array.isArray(e)?e:[e]);Md[n]||(Md[n]=new WeakMap);var o=Md[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=(Ba.get(p)||0)+1,x=(o.get(p)||0)+1;Ba.set(p,y),o.set(p,x),a.push(p),y===1&&v&&Rd.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(),h0++,function(){a.forEach(function(f){var p=Ba.get(f)-1,h=o.get(f)-1;Ba.set(f,p),o.set(f,h),p||(Rd.has(f)||f.removeAttribute(r),Rd.delete(f)),h||f.removeAttribute(n)}),h0--,h0||(Ba=new WeakMap,Ba=new WeakMap,Rd=new WeakMap,Md={})}},IX=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=zX(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),MX(r,i,n,"aria-hidden")):function(){return null}},LX=Object.defineProperty,NX=(e,t,n)=>t in e?LX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,DX=(e,t,n)=>(NX(e,t+"",n),n);class OX{constructor(){DX(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 kv=new OX;function Q_(e,t){const[n,r]=m.useState(0);return m.useEffect(()=>{const i=e.current;if(i){if(t){const o=kv.add(i);r(o)}return()=>{kv.remove(i),r(0)}}},[t,e]),n}function FX(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]=VX(r,"chakra-modal","chakra-modal--header","chakra-modal--body");BX(u,t&&a);const v=Q_(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:Et(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&&kv.isTopModal(u.current)&&(i&&(n==null||n()),l==null||l())},[n,i,l]),_=m.useCallback((M={},T=null)=>({...M,ref:Et(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 BX(e,t){const n=e.current;m.useEffect(()=>{if(!(!e.current||!t))return IX(e.current)},[t,e,n])}function VX(e,...t){const n=m.useId(),r=e||n;return m.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}const[WX,$a]=we({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[UX,go]=we({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Ou=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=Ke("Modal",t),g={...FX(t),autoFocus:i,trapFocus:o,initialFocusRef:a,finalFocusRef:l,returnFocusOnClose:c,blockScrollOnMount:u,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h};return s.jsx(UX,{value:g,children:s.jsx(WX,{value:x,children:s.jsx(_i,{...v,onExitComplete:y,children:g.isOpen&&s.jsx(ml,{...n,children:r})})})})};Ou.displayName="Modal";var Tf="right-scroll-bar-position",Ef="width-before-scroll-bar",HX="with-scroll-bars-hidden",GX="--removed-body-scroll-bar-size",Z_=c_(),g0=function(){},Cm=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:g0,onWheelCapture:g0,onTouchMoveCapture:g0}),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=a_(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,P=o_([n,t]),j=Fr(Fr({},w),i);return m.createElement(m.Fragment,null,d&&m.createElement(k,{sideCar:Z_,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),Fr(Fr({},j),{ref:P})):m.createElement(g,Fr({},j,{className:c,ref:P}),l))});Cm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Cm.classNames={fullWidth:Ef,zeroRight:Tf};var qX=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=qX();return t&&e.setAttribute("nonce",t),e}function XX(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function YX(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var QX=function(){var e=0,t=null;return{add:function(n){e==0&&(t=KX())&&(XX(t,n),YX(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ZX=function(){var e=QX();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},J_=function(){var e=ZX(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},JX={left:0,top:0,right:0,gap:0},v0=function(e){return parseInt(e||"",10)||0},eY=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[v0(n),v0(r),v0(i)]},tY=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return JX;var t=eY(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])}},nY=J_(),Ns="data-scroll-locked",rY=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(HX,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(l,"px ").concat(r,`;
}
body[`).concat(Ns,`] {
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(Ns,`] {
`).concat(GX,": ").concat(l,`px;
}
`)},$w=function(){var e=parseInt(document.body.getAttribute(Ns)||"0",10);return isFinite(e)?e:0},iY=function(){m.useEffect(function(){return document.body.setAttribute(Ns,($w()+1).toString()),function(){var e=$w()-1;e<=0?document.body.removeAttribute(Ns):document.body.setAttribute(Ns,e.toString())}},[])},oY=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;iY();var o=m.useMemo(function(){return tY(i)},[i]);return m.createElement(nY,{styles:rY(o,!t,i,n?"":"!important")})},Cv=!1;if(typeof window<"u")try{var Id=Object.defineProperty({},"passive",{get:function(){return Cv=!0,!0}});window.addEventListener("test",Id,Id),window.removeEventListener("test",Id,Id)}catch{Cv=!1}var Va=Cv?{passive:!1}:!1,aY=function(e){return e.tagName==="TEXTAREA"},e8=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!aY(e)&&n[t]==="visible")},sY=function(e){return e8(e,"overflowY")},lY=function(e){return e8(e,"overflowX")},zw=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=t8(e,r);if(i){var o=n8(e,r),a=o[1],l=o[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},cY=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},uY=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},t8=function(e,t){return e==="v"?sY(t):lY(t)},n8=function(e,t){return e==="v"?cY(t):uY(t)},dY=function(e,t){return e==="h"&&t==="rtl"?-1:1},fY=function(e,t,n,r,i){var o=dY(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=n8(e,l),v=h[0],y=h[1],x=h[2],b=y-x-o*v;(v||b)&&t8(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},Ld=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Rw=function(e){return[e.deltaX,e.deltaY]},Mw=function(e){return e&&"current"in e?e.current:e},pY=function(e,t){return e[0]===t[0]&&e[1]===t[1]},mY=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},hY=0,Wa=[];function gY(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),i=m.useState(hY++)[0],o=m.useState(J_)[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=BG([e.lockRef.current],(e.shards||[]).map(Mw),!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=Ld(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=zw(j,P);if(!O)return!0;if(O?k=j:(k=j==="v"?"h":"v",O=zw(j,P)),!O)return!1;if(!r.current&&"changedTouches"in y&&(S||w)&&(r.current=k),!k)return!0;var K=r.current||k;return fY(K,x,y,K==="h"?S:w)},[]),c=m.useCallback(function(y){var x=y;if(!(!Wa.length||Wa[Wa.length-1]!==o)){var b="deltaY"in x?Rw(x):Ld(x),g=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&pY(k.delta,b)})[0];if(g&&g.should){x.cancelable&&x.preventDefault();return}if(!g){var S=(a.current.shards||[]).map(Mw).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:vY(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=Ld(y),r.current=void 0},[]),f=m.useCallback(function(y){u(y.type,Rw(y),y.target,l(y,e.lockRef.current))},[]),p=m.useCallback(function(y){u(y.type,Ld(y),y.target,l(y,e.lockRef.current))},[]);m.useEffect(function(){return Wa.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Va),document.addEventListener("touchmove",c,Va),document.addEventListener("touchstart",d,Va),function(){Wa=Wa.filter(function(y){return y!==o}),document.removeEventListener("wheel",c,Va),document.removeEventListener("touchmove",c,Va),document.removeEventListener("touchstart",d,Va)}},[]);var h=e.removeScrollBar,v=e.inert;return m.createElement(m.Fragment,null,v?m.createElement(o,{styles:mY(i)}):null,h?m.createElement(oY,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function vY(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const yY=VG(Z_,gY);var r8=m.forwardRef(function(e,t){return m.createElement(Cm,Fr({},e,{ref:t,sideCar:yY}))});r8.classNames=Cm.classNames;function i8(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:a,finalFocusRef:l,returnFocusOnClose:c,preserveScrollBarGap:u,lockFocusAcrossFrames:d,isOpen:f}=go(),[p,h]=jy();m.useEffect(()=>{!p&&h&&setTimeout(h)},[p,h]);const v=Q_(r,f);return s.jsx(L_,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:l,restoreFocus:c,contentRef:r,lockFocusAcrossFrames:d,children:s.jsx(r8,{removeScrollBar:!u,allowPinchZoom:a,enabled:v===1&&o,forwardProps:!0,children:e.children})})}const bY={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:i})=>({opacity:0,x:e,y:t,transition:(n==null?void 0:n.exit)??kr.exit(sa.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)??kr.enter(sa.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)??kr.exit(sa.exit,o),...i?{...a,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...a,...r==null?void 0:r.exit}}}}},Xi={initial:"initial",animate:"enter",exit:"exit",variants:bY},xY=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(_i,{...p,custom:x,children:v&&s.jsx(Un.div,{ref:n,className:W("chakra-offset-slide",a),custom:x,...Xi,animate:y,...h})})});xY.displayName="SlideFade";const SY={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)??kr.exit(sa.exit,i)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:(t==null?void 0:t.enter)??kr.enter(sa.enter,n),transitionEnd:e==null?void 0:e.enter})},Lb={initial:"exit",animate:"enter",exit:"exit",variants:SY},wY=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(_i,{...f,custom:y,children:h&&s.jsx(Un.div,{ref:n,className:W("chakra-offset-slide",l),...Lb,animate:v,custom:y,...p})})});wY.displayName="ScaleFade";const kY={slideInBottom:{...Xi,custom:{offsetY:16,reverse:!0}},slideInRight:{...Xi,custom:{offsetX:16,reverse:!0}},slideInTop:{...Xi,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Xi,custom:{offsetX:-16,reverse:!0}},scale:{...Lb,custom:{initialScale:.95,reverse:!0}},none:{}},CY=N(Un.section),jY=e=>kY[e||"none"],o8=m.forwardRef((e,t)=>{const{preset:n,motionProps:r=jY(n),...i}=e;return s.jsx(CY,{ref:t,...r,...i})});o8.displayName="ModalTransition";const jm=B((e,t)=>{const{className:n,children:r,containerProps:i,motionProps:o,...a}=e,{getDialogProps:l,getDialogContainerProps:c}=go(),u=l(a,t),d=c(i),f=W("chakra-modal__content",n),p=$a(),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}=go();return s.jsx(i8,{children:s.jsx(N.div,{...d,className:"chakra-modal__content-container",tabIndex:-1,__css:v,children:s.jsx(o8,{preset:y,motionProps:o,className:f,...u,__css:h,children:r})})})});jm.displayName="ModalContent";const hl=B((e,t)=>{const{className:n,...r}=e,{bodyId:i,setBodyMounted:o}=go();m.useEffect(()=>(o(!0),()=>o(!1)),[o]);const a=W("chakra-modal__body",n),l=$a();return s.jsx(N.div,{ref:t,className:a,id:i,...r,__css:l.body})});hl.displayName="ModalBody";const Fu=B((e,t)=>{const{onClick:n,className:r,...i}=e,{onClose:o}=go(),a=W("chakra-modal__close-btn",r),l=$a();return s.jsx(bm,{ref:t,__css:l.closeButton,className:a,onClick:fe(n,c=>{c.stopPropagation(),o()}),...i})});Fu.displayName="ModalCloseButton";const Pm=B((e,t)=>{const{className:n,...r}=e,i=W("chakra-modal__footer",n),o=$a(),a={display:"flex",alignItems:"center",justifyContent:"flex-end",...o.footer};return s.jsx(N.footer,{ref:t,...r,__css:a,className:i})});Pm.displayName="ModalFooter";const gl=B((e,t)=>{const{className:n,...r}=e,{headerId:i,setHeaderMounted:o}=go();m.useEffect(()=>(o(!0),()=>o(!1)),[o]);const a=W("chakra-modal__header",n),l=$a(),c={flex:0,...l.header};return s.jsx(N.header,{ref:t,className:a,id:i,...r,__css:c})});gl.displayName="ModalHeader";const PY={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:(e==null?void 0:e.enter)??kr.enter(sa.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)??kr.exit(sa.exit,n),transitionEnd:t==null?void 0:t.exit})},a8={initial:"exit",animate:"enter",exit:"exit",variants:PY},_Y=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(_i,{...u,custom:h,children:p&&s.jsx(Un.div,{ref:n,className:W("chakra-fade",o),custom:h,...a8,animate:f,...d})})});_Y.displayName="Fade";const TY=N(Un.div),vl=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",...$a().overlay},{motionPreset:u}=go(),f=i||(u==="none"?{}:a8);return s.jsx(TY,{...f,__css:c,ref:t,className:a,...o})});vl.displayName="ModalOverlay";function EY(e){const{leastDestructiveRef:t,...n}=e;return s.jsx(Ou,{...n,initialFocusRef:t})}const AY=B((e,t)=>s.jsx(jm,{ref:t,role:"alertdialog",...e})),[$Y,zY]=we(),RY={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function MY(e,t){var n;if(e)return((n=RY[e])==null?void 0:n[t])??e}function s8(e){var u;const{isOpen:t,onClose:n,placement:r="right",children:i,...o}=e,a=Ti(),l=(u=a.components)==null?void 0:u.Drawer,c=MY(r,a.direction);return s.jsx($Y,{value:{placement:c},children:s.jsx(Ou,{isOpen:t,onClose:n,styleConfig:l,...o,children:i})})}const Iw={exit:{duration:.15,ease:ci.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},IY={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{const{exit:i}=dv({direction:e});return{...i,transition:(t==null?void 0:t.exit)??kr.exit(Iw.exit,r),transitionEnd:n==null?void 0:n.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{const{enter:i}=dv({direction:e});return{...i,transition:(n==null?void 0:n.enter)??kr.enter(Iw.enter,r),transitionEnd:t==null?void 0:t.enter}}},l8=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=dv({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(_i,{...p,custom:g,children:x&&s.jsx(Un.div,{...h,ref:n,initial:"exit",className:W("chakra-slide",l),animate:b,exit:"exit",custom:g,variants:IY,style:y,...f})})});l8.displayName="Slide";const LY=N(l8),Nb=B((e,t)=>{const{className:n,children:r,motionProps:i,containerProps:o,...a}=e,{getDialogProps:l,getDialogContainerProps:c,isOpen:u}=go(),d=l(a,t),f=c(o),p=W("chakra-modal__content",n),h=$a(),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}=zY();return s.jsx(i8,{children:s.jsx(N.div,{...f,className:"chakra-modal__content-container",__css:y,children:s.jsx(LY,{motionProps:i,direction:x,in:u,className:p,...d,__css:v,children:r})})})});Nb.displayName="DrawerContent";function NY(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 DY(e,t,n){return(e-t)*100/(n-t)}Pu({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});Pu({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});const OY=Pu({"0%":{left:"-40%"},"100%":{left:"100%"}}),FY=Pu({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function BY(e){const{value:t=0,min:n,max:r,valueText:i,getValueText:o,isIndeterminate:a,role:l="progressbar"}=e,c=DY(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[VY,WY]=we({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),UY=B((e,t)=>{const{min:n,max:r,value:i,isIndeterminate:o,role:a,...l}=e,c=BY({value:i,min:n,max:r,isIndeterminate:o,role:a}),d={height:"100%",...WY().filledTrack};return s.jsx(N.div,{ref:t,style:{width:`${c.percent}%`,...l.style},...c.bind,...l,__css:d})}),Cp=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=Ke("Progress",e),b=c??((j=x.track)==null?void 0:j.borderRadius),g={animation:`${FY} 1s linear infinite`},k={...!u&&o&&a&&g,...u&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${OY} 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(VY,{value:x,children:[s.jsx(UY,{"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]})})});Cp.displayName="Progress";function HY(e){return e&&$t(e)&&$t(e.target)}function GY(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=HY(k)?k.target.value:k;f||d(P),t==null||t(String(P))},[t,f]),S=m.useCallback((k={},P=null)=>({...k,ref:Et(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[qY,c8]=we({name:"RadioGroupContext",strict:!1}),u8=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}=GY(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(qY,{value:y,children:s.jsx(N.div,{...p(v,t),className:W("chakra-radio-group",a),children:o})})});u8.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=Iu(),g=!!c8()||!!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,K]=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(()=>YP(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]),q=m.useCallback(re=>{re.key===" "&&z(!0)},[z]),G=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,()=>K(!0)),onMouseLeave:fe(re.onMouseLeave,()=>K(!1))}),[ne,O,k,_,D,M,P]),{onFocus:ke,onBlur:be}=x??{},je=m.useCallback((re={},$e=null)=>{const ve=k&&!r;return{...re,id:w,ref:$e,type:"radio",name:u,value:d,onChange:fe(re.onChange,F),onBlur:fe(be,re.onBlur,()=>T(!1)),onFocus:fe(ke,re.onFocus,()=>T(!0)),onKeyDown:fe(re.onKeyDown,q),onKeyUp:fe(re.onKeyUp,G),checked:D,disabled:ve,readOnly:P,required:j,"aria-invalid":fi(_),"aria-disabled":fi(ve),"aria-required":fi(j),"data-readonly":le(P),"aria-describedby":h,style:e_}},[k,r,w,u,d,F,be,ke,q,G,D,P,j,_,h]);return{state:{isInvalid:_,isFocused:M,isChecked:D,isActive:ne,isHovered:O,isDisabled:k,isReadOnly:P,isRequired:j},getRadioProps:ee,getInputProps:je,getLabelProps:(re={},$e=null)=>({...re,ref:$e,onMouseDown:fe(re.onMouseDown,XY),"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 XY(e){e.preventDefault(),e.stopPropagation()}const jv=B((e,t)=>{const n=c8(),{onChange:r,value:i}=e,o=Ke("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=$$(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]=i6(w,d6),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},K={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:K}),c&&s.jsx(N.span,{className:"chakra-radio__label",...M,__css:ne,children:c})]})});jv.displayName="Radio";const d8=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]})});d8.displayName="SelectField";const f8=B((e,t)=>{var S;const n=Ke("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]=i6(h,d6),x=ZP(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(d8,{ref:t,height:c??l,minH:u??d,placeholder:i,...x,__css:g,children:e.children}),s.jsx(p8,{"data-disabled":le(x.disabled),...(f||a)&&{color:f||a},__css:n.icon,...p&&{fontSize:p},children:o})]})});f8.displayName="Select";const YY=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"})}),QY=N("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),p8=e=>{const{children:t=s.jsx(YY,{}),...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(QY,{...n,className:"chakra-select__icon-wrapper",children:m.isValidElement(t)?r:null})};p8.displayName="SelectIcon";const ka=N("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});ka.displayName="Spacer";const m8=e=>s.jsx(N.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});m8.displayName="StackItem";function ZY(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{"&":J1(n,i=>r[i])}}const xe=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(()=>ZY({spacing:a,direction:h}),[a,h]),y=!!u,x=!f&&!y,b=m.useMemo(()=>{const S=Y1(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(m8,{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})});xe.displayName="Stack";const he=B((e,t)=>s.jsx(xe,{align:"center",...e,direction:"row",ref:t}));he.displayName="HStack";const jp=B((e,t)=>s.jsx(xe,{align:"center",...e,direction:"column",ref:t}));jp.displayName="VStack";const[JY,h8]=we({name:"StatStylesContext",errorMessage:`useStatStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Stat />" `}),Wo=B(function(t,n){const r=Ke("Stat",t),i={position:"relative",flex:"1 1 0%",...r.container},{className:o,children:a,...l}=Ae(t);return s.jsx(JY,{value:r,children:s.jsx(N.div,{ref:n,...l,className:W("chakra-stat",o),__css:i,children:s.jsx("dl",{children:a})})})});Wo.displayName="Stat";const Uo=B(function(t,n){const r=h8();return s.jsx(N.dt,{ref:n,...t,className:W("chakra-stat__label",t.className),__css:r.label})});Uo.displayName="StatLabel";const Di=B(function(t,n){const r=h8();return s.jsx(N.dd,{ref:n,...t,className:W("chakra-stat__number",t.className),__css:{...r.number,fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}})});Di.displayName="StatNumber";const[eQ,_o]=we({name:"StepContext"}),[tQ,za]=Pr("Stepper"),nQ=B(function(t,n){const{orientation:r,status:i,showLastSeparator:o}=_o(),a=za();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)})}),rQ=B(function(t,n){const{status:r}=_o(),i=za();return s.jsx(N.p,{ref:n,"data-status":r,...t,className:W("chakra-step__description",t.className),__css:i.description})});function iQ(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 oQ(e){const{status:t}=_o(),n=za(),r=t==="complete"?iQ:void 0;return s.jsx(Pt,{as:r,__css:n.icon,...e,className:W("chakra-step__icon",e.className)})}const Lw=B(function(t,n){const{children:r,...i}=t,{status:o,index:a}=_o(),l=za();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 aQ(e){const{complete:t,incomplete:n,active:r}=e,i=_o();let o=null;switch(i.status){case"complete":o=rn(t,i);break;case"incomplete":o=rn(n,i);break;case"active":o=rn(r,i);break}return o?s.jsx(s.Fragment,{children:o}):null}const sQ=B(function(t,n){const{status:r}=_o(),i=za();return s.jsx(N.div,{ref:n,"data-status":r,...t,__css:i.indicator,className:W("chakra-step__indicator",t.className)})}),g8=B(function(t,n){const{orientation:r,status:i,isLast:o,showLastSeparator:a}=_o(),l=za();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)})}),lQ=B(function(t,n){const{status:r}=_o(),i=za();return s.jsx(N.h3,{ref:n,"data-status":r,...t,__css:i.title,className:W("chakra-step__title",t.className)})}),cQ=B(function(t,n){const r=Ke("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(tQ,{value:r,children:u.map((p,h)=>s.jsx(eQ,{value:{index:h,status:f(h),orientation:a,showLastSeparator:l,count:d,isFirst:h===0,isLast:h===d-1},children:p},h))})})}),Af=B(function(t,n){const r=Ke("Switch",t),{spacing:i="0.5rem",children:o,...a}=Ae(t),{getIndicatorProps:l,getInputProps:c,getCheckboxProps:u,getRootProps:d,getLabelProps:f}=wG(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})]})});Af.displayName="Switch";const[uQ,Bu]=we({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Table />" `}),_m=B((e,t)=>{const n=Ke("Table",e),{className:r,layout:i,...o}=Ae(e);return s.jsx(uQ,{value:n,children:s.jsx(N.table,{ref:t,__css:{tableLayout:i,...n.table},className:W("chakra-table",r),...o})})});_m.displayName="Table";const Db=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%"}})}),Ob=B((e,t)=>{const n=Bu();return s.jsx(N.tbody,{...e,ref:t,__css:n.tbody})}),Ut=B(({isNumeric:e,...t},n)=>{const r=Bu();return s.jsx(N.td,{...t,ref:n,__css:r.td,"data-is-numeric":e})}),cn=B(({isNumeric:e,...t},n)=>{const r=Bu();return s.jsx(N.th,{...t,ref:n,__css:r.th,"data-is-numeric":e})}),Fb=B((e,t)=>{const n=Bu();return s.jsx(N.thead,{...e,ref:t,__css:n.thead})}),co=B((e,t)=>{const n=Bu();return s.jsx(N.tr,{...e,ref:t,__css:n.tr})});function dQ(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 fQ(e,t){const n=i=>({...t,...i,position:dQ((i==null?void 0:i.position)??(t==null?void 0:t.position),e)}),r=i=>{const o=n(i),a=VP(o);return Or.notify(a,o)};return r.update=(i,o)=>{Or.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,...rn(o.success,l)})).catch(l=>r.update(a,{status:"error",duration:5e3,...rn(o.error,l)}))},r.closeAll=Or.closeAll,r.close=Or.close,r.isActive=Or.isActive,r}function Qr(e){const{theme:t}=IP(),n=BH();return m.useMemo(()=>fQ(t.direction,{...n,...e}),[e,t.direction,n])}const pQ={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]}}}},Pv=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},$f=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function mQ(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}=ku({isOpen:p,defaultIsOpen:h,onOpen:c,onClose:u}),{referenceRef:T,getPopperProps:O,getArrowInnerProps:K,getArrowProps:ne}=EX({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),q=m.useCallback(()=>{F.current&&(clearTimeout(F.current),F.current=void 0)},[]),G=m.useCallback(()=>{q(),M()},[M,q]),ee=hQ(I,G),ke=m.useCallback(()=>{if(!g&&!D.current){j&&ee();const ve=$f(I);D.current=ve.setTimeout(_,t)}},[ee,g,j,_,t]),be=m.useCallback(()=>{R();const ve=$f(I);F.current=ve.setTimeout(G,n)},[n,G,R]),je=m.useCallback(()=>{j&&r&&be()},[r,be,j]),He=m.useCallback(()=>{j&&a&&be()},[a,be,j]),ge=m.useCallback(ve=>{j&&ve.key==="Escape"&&be()},[j,be]);uf(()=>Pv(I),"keydown",l?ge:void 0),uf(()=>{if(!o)return null;const ve=I.current;if(!ve)return null;const oe=r6(ve);return oe.localName==="body"?$f(I):oe},"scroll",()=>{j&&o&&G()},{passive:!0,capture:!0}),m.useEffect(()=>{g&&(R(),j&&M())},[g,j,M,R]),m.useEffect(()=>()=>{R(),q()},[R,q]),uf(()=>I.current,"pointerleave",be);const te=m.useCallback((ve={},oe=null)=>({...ve,ref:Et(I,oe,T),onPointerEnter:fe(ve.onPointerEnter,ft=>{ft.pointerType!=="touch"&&ke()}),onClick:fe(ve.onClick,je),onPointerDown:fe(ve.onPointerDown,He),onFocus:fe(ve.onFocus,ke),onBlur:fe(ve.onBlur,be),"aria-describedby":j?V:void 0}),[ke,be,He,j,V,je,T]),re=m.useCallback((ve={},oe=null)=>O({...ve,style:{...ve.style,[Ht.arrowSize.var]:v?`${v}px`:void 0,[Ht.arrowShadowColor.var]:y}},oe),[O,v,y]),$e=m.useCallback((ve={},oe=null)=>{const pe={...ve.style,position:"relative",transformOrigin:Ht.transformOrigin.varRef};return{ref:oe,...P,...ve,id:V,role:"tooltip",style:pe}},[P,V]);return{isOpen:j,show:ke,hide:be,getTriggerProps:te,getTooltipProps:$e,getTooltipPositionerProps:re,getArrowProps:ne,getArrowInnerProps:K}}const y0="chakra-ui:close-tooltip";function hQ(e,t){return m.useEffect(()=>{const n=Pv(e);return n.addEventListener(y0,t),()=>n.removeEventListener(y0,t)},[t,e]),()=>{const n=Pv(e),r=$f(e);n.dispatchEvent(new r.CustomEvent(y0))}}const gQ=N(Un.div),Bb=B((e,t)=>{const n=Hn("Tooltip",e),r=Ae(e),i=Ti(),{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=Hz(i,"colors",g);n[Ht.arrowBg.var]=T}const S=mQ({...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,NY(T)))}const P=!!c,j=S.getTooltipProps({},t),_=P?Z1(j,["role","id"]):j,M=t6(j,["role","id"]);return a?s.jsxs(s.Fragment,{children:[k,s.jsx(_i,{...x,children:S.isOpen&&s.jsx(ml,{...f,children:s.jsx(N.div,{...S.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"},children:s.jsxs(gQ,{variants:pQ,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})});Bb.displayName="Tooltip";const jt=B(function(t,n){const r=Hn("Heading",t),{className:i,...o}=Ae(t);return s.jsx(N.h2,{ref:n,className:W("chakra-heading",t.className),...o,__css:r})});jt.displayName="Heading";const J=B(function(t,n){const r=Hn("Text",t),{className:i,align:o,decoration:a,casing:l,...c}=Ae(t),u=Q1({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})});J.displayName="Text";const v8=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(Vb,{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})})});v8.displayName="Wrap";const Vb=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})});Vb.displayName="WrapItem";var _n=e=>xm({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 vQ=_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 yQ=_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 Dt(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 Dt(e,t)}function o(...d){for(const f of d)f in t||(t[f]=c(f));return Dt(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 bQ=Dt("app-shell").parts("container","inner","main"),y8=Dt("emptystate").parts("container","body","icon","title","descripton","actions","footer"),xQ=Dt("banner").parts("container","icon","content","title","description","actions","close"),SQ=Dt("hotkeys").parts("container","group","groupTitle","item","command","then"),wQ=Dt("loading-overlay").parts("overlay","text"),kQ=Dt("nav-group").parts("container","title","icon","content"),CQ=Dt("nav-item").parts("item","link","inner","icon","label"),jQ=Dt("nprogress").parts("container","bar"),PQ=Dt("persona").parts("container","details","avatar","label","secondaryLabel","tertiaryLabel"),_Q=Dt("search-input").parts("input","reset"),TQ=Dt("sidebar").parts("container","overlay","section","toggleWrapper","toggle");Dt("stepper").parts("container","steps","icon","content","title","separator");var EQ=Dt("structured-list").parts("list","item","button","header","cell","icon"),b8=Dt("property").parts("property","label","value"),AQ=Dt("select").parts("addon","field","element"),$Q=Dt("timeline").parts("container","item","separator","icon","dot","track","content"),{definePartsStyle:x8,defineMultiStyleConfig:zQ}=ce(h6.keys),RQ=x8(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"}}}}),MQ=x8({container:{borderRadius:"md"}}),IQ=zQ({defaultProps:{size:"sm"},baseStyle:MQ,variants:{snackbar:RQ}}),oi=m6("badge",["bg","color","shadow","border"]),Nw=e=>{const{colorScheme:t,theme:n}=e,r=Nt(`${t}.200`,.8)(n);return{[oi.color.variable]:`colors.${t}.500`,_dark:{[oi.color.variable]:r},[oi.shadow.variable]:`inset 0 0 0px 1px ${oi.color.reference}`}},LQ={variants:{outline:e=>{const t=Nw(e);return{...t,_dark:{...t==null?void 0:t._dark,[oi.shadow.variable]:`inset 0 0 0px 1px ${oi.border.reference}`,[oi.color.variable]:`colors.${e.colorScheme}.200`,[oi.border.variable]:`colors.${e.colorScheme}.500`}}},ghost:e=>{const t=Nw(e);return{...t,shadow:"none",_dark:{...t==null?void 0:t._dark,[oi.color.variable]:`colors.${e.colorScheme}.200`}}}}},S8=e=>{const{colorScheme:t}=e;return t==="gray"?{base:Z("gray.100","whiteAlpha.300")(e),hover:Z("gray.200","whiteAlpha.400")(e),active:Z("gray.300","whiteAlpha.500")(e)}:t==="white"?{base:"whiteAlpha.900",hover:"whiteAlpha.700",active:"whiteAlpha.500"}:{base:Z(`${t}.500`,`${t}.500`)(e),hover:Z(`${t}.600`,`${t}.600`)(e),active:Z(`${t}.700`,`${t}.700`)(e)}},NQ={yellow:{bg:"yellow.400",hoverBg:"yellow.500",activeBg:"yellow.600",color:"black"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Tm=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}=S8(e),{color:l=n==="gray"?Z("black","white")(e):"white",bg:c=i,hoverBg:u=o,activeBg:d=a}=(t=NQ[n])!=null?t:{};return{bg:c,color:l,_hover:{bg:u,_disabled:{bg:c}},_active:{bg:d}}},DQ=e=>({shadow:"md",...Tm(e)}),w8=e=>{const{colorScheme:t}=e,{base:n,hover:r,active:i}=S8(e);return{...k8(e),borderColor:t==="gray"?r:n,borderWidth:"1px",_hover:{borderColor:t==="gray"?i:r}}},k8=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=Nt(`${t}.200`,.12)(n),i=Nt(`${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}}}},OQ=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":Z(`${t}.500`,`${t}.200`)(e),i=Nt(r,.1)(n),o=Nt(r,.16)(n),a=Nt(r,.24)(n);return{color:t==="white"?"white":Z(`${t}.600`,`${t}.200`)(e),bg:i,_hover:{bg:o},_active:{bg:a}}},FQ=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:t==="white"?"white":Z(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:t==="white"?"whiteAlpha.800":Z(`${t}.700`,`${t}.500`)(e)}}},BQ=e=>{let{colorScheme:t}=e;return t==="gray"&&(t="primary"),Tm({...e,variant:"solid",colorScheme:t})},VQ=e=>Tm({...e,variant:"solid"}),WQ=e=>w8({...e,variant:"outline"}),UQ={defaultProps:{size:"sm"},variants:{solid:Tm,ghost:k8,outline:w8,subtle:OQ,elevated:DQ,link:FQ,primary:BQ,secondary:VQ,tertiary:WQ}},{definePartsStyle:da,defineMultiStyleConfig:HQ}=ce(C6.keys),Zo=Q("card-bg"),b0=Q("card-padding"),Wb=Q("card-shadow"),x0=Q("card-radius"),Ub=Q("card-border-width","0"),Yi=Q("card-border-color"),GQ=da(()=>({container:{transitionProperty:"common",transitionDuration:"normal"}})),qQ=da(e=>({container:{[Zo.variable]:"colors.white",[Yi.variable]:"colors.blackAlpha.200",[Ub.variable]:"1px",[Wb.variable]:"shadows.sm",_dark:{[Zo.variable]:"colors.whiteAlpha.200",[Yi.variable]:"colors.whiteAlpha.50"},"&.chakra-linkbox:hover":{[Yi.variable]:"colors.blackAlpha.300",_dark:{[Yi.variable]:"colors.whiteAlpha.300"}}}})),KQ=da(e=>{const{colorScheme:t}=e,n=t?"white":"inherit";return{container:{[Ub.variable]:"0",[Wb.variable]:"none",[Zo.variable]:t?`${t}.500`:"colors.blackAlpha.100",color:n,"&.chakra-linkbox:hover":{[Zo.variable]:t?`${t}.600`:"colors.blackAlpha.200"},_dark:{[Zo.variable]:t?`${t}.500`:"colors.whiteAlpha.100","&.chakra-linkbox:hover":{[Zo.variable]:t?`${t}.600`:"colors.whiteAlpha.200"}}}}}),XQ=da(e=>{const{colorScheme:t}=e;return{container:{[Ub.variable]:"1px",[Wb.variable]:"none",[Yi.variable]:t?`${t}.500`:"colors.blackAlpha.200",[Zo.variable]:"transparent","&.chakra-linkbox:hover":{[Yi.variable]:t?`${t}.600`:"colors.blackAlpha.300"},_dark:{[Yi.variable]:t?`${t}.500`:"colors.whiteAlpha.300","&.chakra-linkbox:hover":{[Yi.variable]:t?`${t}.600`:"colors.whiteAlpha.400"}}}}}),YQ={sm:da({container:{[x0.variable]:"radii.base",[b0.variable]:"space.3"}}),md:da({container:{[x0.variable]:"radii.md",[b0.variable]:"space.4"}}),lg:da({container:{[x0.variable]:"radii.xl",[b0.variable]:"space.6"}})},QQ=HQ({defaultProps:{variant:"elevated"},baseStyle:GQ,variants:{elevated:qQ,outline:XQ,filled:KQ},sizes:YQ}),{definePartsStyle:ZQ,defineMultiStyleConfig:JQ}=ce(g6.keys),eZ=ZQ(e=>{const{colorScheme:t}=e;return{control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}}),tZ=JQ({baseStyle:eZ,defaultProps:{colorScheme:"primary"}}),nZ={defaultProps:{size:"sm"}},{definePartsStyle:zf,defineMultiStyleConfig:rZ}=ce(ry.keys),Nd=Q("input-height"),Dd=Q("input-padding"),Dw=Q("input-border-radius"),C8={sm:zf({field:{[Dw.variable]:"radii.md"},group:{[Dw.variable]:"radii.md"}}),md:zf({field:{[Dd.variable]:"space.3",[Nd.variable]:"sizes.9"},group:{[Dd.variable]:"space.3",[Nd.variable]:"sizes.9"}}),lg:zf({field:{[Dd.variable]:"space.3",[Nd.variable]:"sizes.10"},group:{[Dd.variable]:"space.3",[Nd.variable]:"sizes.10"}})},j8=zf(e=>({field:{borderColor:"blackAlpha.300",_dark:{borderColor:"whiteAlpha.300"},_hover:{borderColor:"blackAlpha.400",_dark:{borderColor:"whiteAlpha.400"}}}})),Hb=rZ({defaultProps:{focusBorderColor:"primary.500"},variants:{outline:j8},sizes:C8}),iZ={variants:{horizontal:{mb:0,marginStart:"0.5rem"}}},_c=Hb,oZ=Hb,aZ={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:j8},sizes:C8},sZ={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:e=>{var t,n;return(n=(t=_c.variants)==null?void 0:t.outline(e).field)!=null?n:{}}}},lZ=Hb,{definePartsStyle:ui,defineMultiStyleConfig:cZ}=ce(ry.keys),vs=Q("input-height"),ys=Q("input-font-size"),bs=Q("input-padding"),xs=Q("input-border-radius"),uZ=ui({addon:{height:vs.reference,fontSize:ys.reference,px:bs.reference,borderRadius:xs.reference},field:{width:"100%",height:vs.reference,fontSize:ys.reference,px:bs.reference,borderRadius:xs.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Li={lg:{[ys.variable]:"fontSizes.lg",[bs.variable]:"space.4",[xs.variable]:"radii.md",[vs.variable]:"sizes.12"},md:{[ys.variable]:"fontSizes.md",[bs.variable]:"space.4",[xs.variable]:"radii.md",[vs.variable]:"sizes.10"},sm:{[ys.variable]:"fontSizes.sm",[bs.variable]:"space.3",[xs.variable]:"radii.sm",[vs.variable]:"sizes.8"},xs:{[ys.variable]:"fontSizes.xs",[bs.variable]:"space.2",[xs.variable]:"radii.sm",[vs.variable]:"sizes.6"}},dZ={lg:ui({field:Li.lg,group:Li.lg}),md:ui({field:Li.md,group:Li.md}),sm:ui({field:Li.sm,group:Li.sm}),xs:ui({field:Li.xs,group:Li.xs})};function Gb(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||Z("blue.500","blue.300")(e),errorBorderColor:n||Z("red.500","red.300")(e)}}var fZ=ui(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Gb(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:Z("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:et(t,r),boxShadow:`0 0 0 1px ${et(t,r)}`},_focusVisible:{zIndex:1,borderColor:et(t,n),boxShadow:`0 0 0 1px ${et(t,n)}`}},addon:{border:"1px solid",borderColor:Z("inherit","whiteAlpha.50")(e),bg:Z("gray.100","whiteAlpha.300")(e)}}}),pZ=ui(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Gb(e);return{field:{border:"2px solid",borderColor:"transparent",bg:Z("gray.100","whiteAlpha.50")(e),_hover:{bg:Z("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:et(t,r)},_focusVisible:{bg:"transparent",borderColor:et(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:Z("gray.100","whiteAlpha.50")(e)}}}),mZ=ui(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Gb(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:et(t,r),boxShadow:`0px 1px 0px 0px ${et(t,r)}`},_focusVisible:{borderColor:et(t,n),boxShadow:`0px 1px 0px 0px ${et(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),hZ=ui({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),gZ={outline:fZ,filled:pZ,flushed:mZ,unstyled:hZ},Qi=cZ({baseStyle:uZ,sizes:dZ,variants:gZ,defaultProps:{size:"md",variant:"outline"}}),Ow,Fw,vZ={...Qi,defaultProps:_c.defaultProps,variants:{outline:e=>{var t,n;return{...(n=(t=_c.variants)==null?void 0:t.outline(e))!=null?n:{}}},flushed:e=>{var t,n;return(n=(t=Qi.variants)==null?void 0:t.flushed(e))!=null?n:{}},filled:e=>{var t,n;return(n=(t=Qi.variants)==null?void 0:t.filled(e))!=null?n:{}},unstyled:(Fw=(Ow=Qi.variants)==null?void 0:Ow.unstyled)!=null?Fw:{}},sizes:_c.sizes},yZ={defaultProps:{size:"lg"}},bZ=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}}),xZ={defaultProps:{variant:"solid"},variants:{basic:{opacity:.6},solid:bZ}},{definePartsStyle:P8,defineMultiStyleConfig:SZ}=ce(y6.keys),wZ=P8(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}})),kZ=P8(()=>({item:{px:6},groupTitle:{color:"muted",px:3}})),CZ=SZ({baseStyle:wZ,variants:{dialog:kZ}}),{definePartsStyle:jZ,defineMultiStyleConfig:PZ}=ce(b6.keys),_Z=jZ(e=>({closeButton:{top:4,insetEnd:4}})),TZ=PZ({baseStyle:_Z}),{definePartsStyle:EZ,defineMultiStyleConfig:AZ}=ce(x6.keys),$Z=AZ({defaultProps:{colorScheme:"primary"},baseStyle:EZ(e=>{const{colorScheme:t}=e;return{track:{borderRadius:"md"},filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:zZ,defineMultiStyleConfig:RZ}=ce(S6.keys),MZ=RZ({defaultProps:{colorScheme:"primary"},baseStyle:zZ(e=>{const{colorScheme:t}=e;return{control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}})}),{definePartsStyle:IZ,defineMultiStyleConfig:LZ}=ce(w6.keys),NZ=LZ({defaultProps:{colorScheme:"primary"},baseStyle:IZ(e=>{const{colorScheme:t}=e;return{filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:DZ,defineMultiStyleConfig:OZ}=ce(k6.keys),FZ=OZ({defaultProps:{colorScheme:"primary"},baseStyle:DZ(e=>{const{colorScheme:t}=e;return{track:{_checked:{bg:`${t}.500`}}}})}),Od=vt("tooltip-bg"),Bw=vt("tooltip-fg"),BZ=vt("popper-arrow-bg"),VZ=e=>({display:"flex",[Od.variable]:"colors.white",[Bw.variable]:"colors.blackAlpha.900",_dark:{[Od.variable]:"colors.gray.700",[Bw.variable]:"colors.whiteAlpha.900"},px:"8px",py:"2px",bg:[Od.reference],[BZ.variable]:[Od.reference],borderRadius:"sm",fontWeight:"medium",fontSize:"xs",boxShadow:"md",maxW:"320px",zIndex:"tooltip",borderWidth:"1px"}),WZ={baseStyle:VZ},Fd=Q("stepper-indicator-size"),fa=Q("stepper-accent-color"),Jo=Q("stepper-vertical-seperator-offset"),{defineMultiStyleConfig:UZ,definePartsStyle:Zi}=ce(["container","item","content","stepper","step","title","description","indicator","separator","icon","number"]),HZ=Zi(({colorScheme:e})=>({container:{display:"flex",flexDirection:"column",gap:4},item:{w:"full"},content:{"&[data-orientation=vertical]":{mt:2,ms:Jo.reference,borderLeftWidth:"1px",ps:6}},stepper:{gap:"2",[Jo.variable]:"10px",[fa.variable]:`colors.${e}.500`,_dark:{[fa.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:Jo.reference}},step:{"&[data-orientation=vertical]":{alignItems:"center"}}})),GZ=Zi(e=>({})),qZ=Zi(e=>({indicator:{"&[data-status=active]":{borderWidth:"0",bg:fa.reference,color:"chakra-inverse-text"},"&[data-status=complete]":{bg:fa.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.200"}}}})),KZ=Zi(e=>{const{theme:t,colorScheme:n}=e;return{stepper:{[fa.variable]:`colors.${n}.100`},indicator:{"&[data-status=active]":{borderWidth:"0",bg:fa.reference,color:`${n}.500`,_dark:{bg:Nt(`${n}.200`,.16)(t)}},"&[data-status=complete]":{bg:fa.reference,color:`${n}.500`,_dark:{bg:Nt(`${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"}}}}}),XZ=UZ({defaultProps:{variant:"outline",colorScheme:"primary",size:"md"},baseStyle:HZ,variants:{outline:GZ,solid:qZ,subtle:KZ},sizes:{xs:Zi({stepper:{[Fd.variable]:"sizes.4",[Jo.variable]:"7px"}}),sm:Zi({stepper:{[Fd.variable]:"sizes.6",[Jo.variable]:"11px"}}),md:Zi({stepper:{[Fd.variable]:"sizes.7",[Jo.variable]:"14px"}}),lg:Zi({stepper:{[Fd.variable]:"sizes.8",[Jo.variable]:"16px"}})}}),{definePartsStyle:YZ,defineMultiStyleConfig:QZ}=ce(y8.keys),ZZ=YZ(e=>{const{colorScheme:t}=e;return{icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.500`}}}}),JZ=QZ({baseStyle:ZZ}),{definePartsStyle:_8,defineMultiStyleConfig:T8}=ce(jQ.keys),eJ=_8(e=>{const{colorScheme:t}=e;return{bar:{bg:`${t}.500`,_dark:{bg:`${t}.300`}}}}),tJ=T8({defaultProps:{colorScheme:"teal"},baseStyle:eJ}),nJ=_8(e=>{const{colorScheme:t}=e;return{bar:{bg:`${t}.500`,_dark:{bg:`${t}.500`}}}}),rJ=T8({defaultProps:{colorScheme:"primary"},baseStyle:nJ}),{defineMultiStyleConfig:iJ}=ce(b8.keys),oJ=iJ({baseStyle:{label:{color:"muted",_dark:{color:"muted"}}}}),aJ={Alert:IQ,Badge:LQ,Button:UQ,Card:QQ,Checkbox:tZ,CloseButton:nZ,Heading:yZ,Kbd:xZ,Menu:CZ,Modal:TZ,Progress:$Z,Radio:MZ,Slider:NZ,Switch:FZ,Stepper:XZ,Tooltip:WZ,Input:_c,PinInput:aZ,FormLabel:iZ,NumberInput:oZ,Select:lZ,Textarea:sZ,SuiEmptyState:JZ,SuiNProgress:rJ,SuiProperty:oJ,SuiSelect:vZ},{definePartsStyle:sJ,defineMultiStyleConfig:lJ}=ce(bQ.keys),cJ=sJ({container:{},inner:{},main:{}}),uJ=lJ({defaultProps:{variant:"fullscreen"},variants:{static:{},fullscreen:{container:{position:"absolute",inset:0}}},baseStyle:cJ}),{definePartsStyle:qb,defineMultiStyleConfig:dJ}=ce(xQ.keys),fJ=qb({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}}),pJ=qb(e=>{const{theme:t,colorScheme:n}=e;return{container:{bg:`${n}.100`,_dark:{bg:Nt(`${n}.200`,.16)(t)}},icon:{color:`${n}.500`,_dark:{color:`${n}.200`}}}}),mJ=qb(e=>{const{colorScheme:t}=e;return{container:{bg:`${t}.500`,color:"white"}}}),hJ=dJ({baseStyle:fJ,variants:{subtle:pJ,solid:mJ},defaultProps:{variant:"subtle",colorScheme:"blue"}}),gJ={baseStyle:{fontSize:"xs","[role=tooltip] > &":{ms:1,_before:{content:'"•"',me:1,fontSize:"xs"}}}},{definePartsStyle:E8,defineMultiStyleConfig:vJ}=ce(y8.keys),yJ=E8(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}}}),bJ=E8(e=>({body:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center"}})),xJ=vJ({baseStyle:yJ,variants:{centered:bJ}}),{definePartsStyle:SJ,defineMultiStyleConfig:wJ}=ce(v6.keys),kJ=SJ({container:{display:"grid",gridTemplateColumns:"1fr 2fr",alignItems:"flex-start",flexDirection:"row",justifyContent:"flex-end"}}),CJ=wJ({variants:{horizontal:kJ}}),jJ={defaultProps:{spacing:4}},PJ={baseStyle:{fontWeight:"semibold",mb:4}},{defineMultiStyleConfig:_J}=ce(SQ.keys),TJ=_J({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:EJ,definePartsStyle:Em}=ce(wQ.keys),AJ=Em({overlay:{p:4}}),$J=Em(()=>({overlay:{flex:1,height:"100%"}})),zJ=Em(()=>({overlay:{position:"fixed",inset:0,zIndex:"modal",bg:"white",_dark:{bg:"gray.800"}}})),RJ=Em(()=>({overlay:{position:"absolute",inset:0,bg:"whiteAlpha.300",_dark:{bg:"blackAlpha.300"}}})),MJ=EJ({defaultProps:{variant:"fill"},baseStyle:AJ,variants:{fill:$J,fullscreen:zJ,overlay:RJ}}),{definePartsStyle:IJ,defineMultiStyleConfig:LJ}=ce(kQ.keys),NJ=IJ(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:{}})),DJ=LJ({baseStyle:NJ}),{definePartsStyle:Vu,defineMultiStyleConfig:OJ}=ce(CQ.keys),FJ=Vu(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"}})),BJ=Vu(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}}}}),VJ=Vu(e=>{const{colorScheme:t,theme:n}=e,r={bg:Nt(`${t}.500`,.3)(n),fontWeight:"semibold",color:`${t}.600`,_dark:{bg:Nt(`${t}.500`,.3)(n),color:`${t}.100`}};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:r,"&[aria-current=page]":r}}}),WJ=Vu(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:{}}}),UJ=Vu(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:{}}}),Vw,Ww,Uw,Hw,HJ=OJ({defaultProps:{size:"sm",colorScheme:"primary",variant:"neutral"},baseStyle:FJ,sizes:{xs:{link:(Vw=Yo.components.Button.sizes)==null?void 0:Vw.xs,icon:{me:1,fontSize:"xs"}},sm:{link:(Ww=Yo.components.Button.sizes)==null?void 0:Ww.sm,icon:{me:2,fontSize:"sm"}},md:{link:(Uw=Yo.components.Button.sizes)==null?void 0:Uw.md,icon:{me:2,fontSize:"md"}},lg:{link:(Hw=Yo.components.Button.sizes)==null?void 0:Hw.lg,icon:{me:3,fontSize:"lg"}}},variants:{neutral:BJ,subtle:VJ,solid:WJ,"left-accent":UJ}}),{definePartsStyle:Oi,defineMultiStyleConfig:GJ}=ce(PQ.keys),Gw=e=>({color:"gray.500",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minW:0,_dark:{color:"whiteAlpha.600"}}),qJ=Oi(e=>({details:{minW:0},secondaryLabel:Gw(e),tertiaryLabel:Gw(e)})),KJ={"2xs":Oi({details:{ms:2},label:{fontSize:"xs"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),xs:Oi({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),sm:Oi({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),md:Oi({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),lg:Oi({details:{ms:3},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{fontSize:"sm"}}),xl:Oi({details:{ms:3},label:{fontSize:"xl"},secondaryLabel:{fontSize:"md"},tertiaryLabel:{fontSize:"md"}}),"2xl":Oi({details:{ms:4},label:{fontSize:"2xl"},secondaryLabel:{fontSize:"lg"},tertiaryLabel:{fontSize:"lg"}})},XJ=GJ({defaultProps:{size:"md"},baseStyle:qJ,sizes:KJ}),{defineMultiStyleConfig:YJ}=ce(b8.keys),QJ=YJ({baseStyle:{label:{display:"flex",flexDirection:"row",minWidth:"100px",width:"30%",marginEnd:2,py:2,color:"gray.500",_dark:{color:"gray.400"}}}}),{defineMultiStyleConfig:ZJ}=ce(_Q.keys),JJ=ZJ({baseStyle:{input:{pr:8}},sizes:{sm:{reset:{fontSize:"0.7em"}},lg:{input:{pr:10}}}}),{definePartsStyle:Kb,defineMultiStyleConfig:eee}=ce(TQ.keys),tee=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"}}}),nee=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"}}})),ree=Kb(e=>({container:{width:"14",py:3},section:{px:3},toggleWrapper:{display:"none"}})),iee=eee({defaultProps:{variant:"default"},baseStyle:tee,variants:{default:nee,compact:ree}}),{defineMultiStyleConfig:oee}=ce(AQ.keys),aee=oee({defaultProps:Qi.defaultProps,baseStyle:Qi.baseStyle,sizes:Qi.sizes,variants:Qi.variants}),{definePartsStyle:see,defineMultiStyleConfig:lee}=ce(EQ.keys),cee=see(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}})),uee=lee({defaultProps:{size:"md"},baseStyle:cee,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:Xb,defineMultiStyleConfig:dee}=ce($Q.keys),qw=Q("timeline-row-start","minmax(0,1fr)"),fee=Q("timeline-row-end","minmax(0,1fr)"),Kw=Q("timeline-col-start","minmax(0,1fr)"),Xw=Q("timeline-col-end","minmax(0,1fr)"),pee=Xb(e=>({container:{display:"flex",[qw.variable]:"minmax(0,1fr)",[fee.variable]:"minmax(0,1fr)",[Kw.variable]:"auto",[Xw.variable]:"2fr",flexDirection:"column",justifyItems:"center"},item:{display:"grid",alignItems:"center",justifyItems:"start",gridTemplateRows:`${qw.reference}`,gridTemplateColumns:`${Kw.reference} ${Xw.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"}}})),mee=Xb(e=>({icon:{}})),hee=Xb(e=>({dot:{bg:"transparent",borderColor:"currentColor",borderWidth:"2px"}})),gee=dee({defaultProps:{variant:"solid",size:"sm"},baseStyle:pee,variants:{solid:mee,outline:hee},sizes:{sm:{icon:{minH:"8px",minW:"8px"}}}}),vee={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"}},yee=Re("navbar").parts("container","inner","brand","content","item","link"),{defineMultiStyleConfig:bee,definePartsStyle:xee}=ce(yee.keys),Yw=Q("navbar-bg"),Qw=Q("navbar-text-color","currentColor"),S0=Q("navbar-link-bg","transparent"),See=["yellow","cyan"],wee=bee({baseStyle:xee(({colorScheme:e})=>{let t="currentColor";return e&&(t=See.includes(e)?"colors.black":"colors.white"),{container:{display:"flex",[Yw.variable]:e?`colors.${e}.500`:"colors.chakra-body-bg",[Qw.variable]:t,bg:Yw.reference,color:Qw.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:S0.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:{[S0.variable]:"colors.blackAlpha.100",textDecoration:"none",_dark:{[S0.variable]:"colors.whiteAlpha.200"}},_active:{fontWeight:"semibold"}}}})}),kee={Form:CJ,SuiAppShell:uJ,SuiBanner:hJ,SuiCommand:gJ,SuiEmptyState:xJ,SuiFormLayout:jJ,SuiFormLegend:PJ,SuiHotkeys:TJ,SuiStructuredList:uee,SuiLoadingOverlay:MJ,SuiNavGroup:DJ,SuiNavItem:HJ,SuiPersona:XJ,SuiProperty:QJ,SuiNProgress:tJ,SuiSearchInput:JJ,SuiSelect:aee,SuiSidebar:iee,SuiTimeline:gee,SuiIconBadge:vee,SuiNavbar:wee},Cee=fb({colors:{primary:Yo.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:kee}),jee={global:e=>({body:{WebkitFontSmoothing:"antialiased",TextRendering:"optimizelegibility"}})},w0={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"}},_v={primary:w0.purple,secondary:w0.cyan,...w0},Pee={heading:"InterVariable, Inter, sans-serif",body:"InterVariable, Inter, sans-serif"},_ee={"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"},Tee={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"}},Eee={container:{sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}},Aee=Eee,$ee={outline:`0 0 0 2px ${Nt(_v.primary[500],.6)({colors:_v})}`},zee=$ee,Ree={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"}}},Mee={colors:_v,fonts:Pee,fontSizes:_ee,textStyles:Tee,sizes:Aee,shadows:zee,semanticTokens:Ree},A8=fb({...Mee,styles:jee,components:aJ},Cee);function $8(e,t){return Array.from((e==null?void 0:e.querySelectorAll(t))??[])}function Iee(e,t){return e.find(n=>n.id===t)}function z8(e,t){const n=Iee(e,t);return n?e.indexOf(n):-1}function Lee(e,t,n=!0){let r=z8(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function Nee(e,t,n=!0){let r=z8(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 Ji=e=>(e==null?void 0:e.ownerDocument)??document,vo=e=>e&&"window"in e&&e.window===e?e:Ji(e).defaultView||window;function Dee(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Oee(e){return Dee(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}const Fee=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Bee(e){const t=vo(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}=vo(e);let{display:a,visibility:l}=o(e);i=a!=="none"&&l!=="hidden"&&l!=="collapse"}return i}function Vee(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 R8(e,t){return Fee?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&Bee(e)&&Vee(e,t)&&(!e.parentElement||R8(e.parentElement,e))}const M8=["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"],Wee=M8.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";M8.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function Uee(e,t){return e.matches(Wee)&&!Hee(e)&&((t==null?void 0:t.skipVisibilityCheck)||R8(e))}function Hee(e){let t=e;for(;t!=null;){if(t instanceof vo(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function I8(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Yb=typeof document<"u"?Vt.useLayoutEffect:()=>{};let Tv=new Map;typeof FinalizationRegistry<"u"&&new FinalizationRegistry(e=>{Tv.delete(e)});function Gee(e,t){if(e===t)return e;let n=Tv.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=Tv.get(t);return r?(r.forEach(i=>i.current=e),e):t}function qee(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(i=>{const o=Zw(i,t);return n||(n=typeof o=="function"),o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():Zw(e[o],null)})}}}function Zw(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function L8(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=L8(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=L8(e))&&(r&&(r+=" "),r+=t);return r}function Qb(...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]=I8(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?t[i]=Kee(o,a):i==="id"&&o&&a?t.id=Gee(o,a):i==="ref"&&o&&a?t.ref=qee(o,a):t[i]=a!==void 0?a:o}}return t}function fu(e){if(Xee())e.focus({preventScroll:!0});else{let t=Yee(e);e.focus(),Qee(t)}}let Bd=null;function Xee(){if(Bd==null){Bd=!1;try{document.createElement("div").focus({get preventScroll(){return Bd=!0,!0}})}catch{}}return Bd}function Yee(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 Qee(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}let Zee=!1;function N8(){return Zee}function zr(e,t){if(!N8())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:Oee(n)?n=n.host:n=n.parentNode}return!1}function Mt(e){if(N8()&&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 Jee(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function ete(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function tte(e){for(;e&&!Uee(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=vo(e),n=t.document.activeElement;if(!n||n===e)return;let r=!1,i=d=>{(Mt(d)===n||r)&&d.stopImmediatePropagation()},o=d=>{(Mt(d)===n||r)&&(d.stopImmediatePropagation(),!e&&!r&&(r=!0,fu(n),c()))},a=d=>{(Mt(d)===e||r)&&d.stopImmediatePropagation()},l=d=>{(Mt(d)===e||r)&&(d.stopImmediatePropagation(),r||(r=!0,fu(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 Am(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 Zb(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 To(e){let t=null;return()=>(t==null&&(t=e()),t)}const Pp=To(function(){return Zb(/^Mac/i)}),nte=To(function(){return Zb(/^iPhone/i)}),D8=To(function(){return Zb(/^iPad/i)||Pp()&&navigator.maxTouchPoints>1}),O8=To(function(){return nte()||D8()}),rte=To(function(){return Am(/AppleWebKit/i)&&!ite()}),ite=To(function(){return Am(/Chrome/i)}),F8=To(function(){return Am(/Android/i)}),ote=To(function(){return Am(/Firefox/i)});let Gi=new Map,Ev=new Set;function Jw(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{let i=Mt(r);if(!e(r)||!i)return;let o=Gi.get(i);o||(o=new Set,Gi.set(i,o),i.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{let i=Mt(r);if(!e(r)||!i)return;let o=Gi.get(i);if(o&&(o.delete(r.propertyName),o.size===0&&(i.removeEventListener("transitioncancel",n),Gi.delete(i)),Gi.size===0)){for(let a of Ev)a();Ev.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Jw():document.addEventListener("DOMContentLoaded",Jw));function ate(){for(const[e]of Gi)"isConnected"in e&&!e.isConnected&&Gi.delete(e)}function ste(e){requestAnimationFrame(()=>{ate(),Gi.size===0?e():Ev.add(e)})}let Ss="default",Av="",Rf=new WeakMap;function lte(e){if(O8()){if(Ss==="default"){const t=Ji(e);Av=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ss="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Rf.set(e,e.style[t]),e.style[t]="none"}}function e3(e){if(O8()){if(Ss!=="disabled")return;Ss="restoring",setTimeout(()=>{ste(()=>{if(Ss==="restoring"){const t=Ji(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Av||""),Av="",Ss="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Rf.has(e)){let t=Rf.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Rf.delete(e)}}function t3(e){let t=e==null?void 0:e.defaultView;return(t==null?void 0:t.__webpack_nonce__)||globalThis.__webpack_nonce__||void 0}let k0=new WeakMap;function cte(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return t3(t);if(k0.has(t))return k0.get(t);let n=t.querySelector('meta[property="csp-nonce"]'),r=n&&n instanceof vo(n).HTMLMetaElement&&(n.nonce||n.content)||t3(t)||void 0;return r!==void 0&&k0.set(t,r),r}function ute(e){return e.pointerType===""&&e.isTrusted?!0:F8()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function dte(e){return!F8()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function pu(e,t,n=!0){var c,u;let{metaKey:r,ctrlKey:i,altKey:o,shiftKey:a}=t;ote()&&((u=(c=window.event)==null?void 0:c.type)!=null&&u.startsWith("key"))&&e.target==="_blank"&&(Pp()?r=!0:i=!0);let l=rte()&&Pp()&&!D8()?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});pu.isOpening=n,fu(e),e.dispatchEvent(l),pu.isOpening=!1}pu.isOpening=!1;const B8=Vt.createContext({register:()=>{}});B8.displayName="PressResponderContext";const fte=Vt.useInsertionEffect??Yb;function Mf(e){const t=m.useRef(null);return fte(()=>{t.current=e},[e]),m.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function V8(){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 pte(e,t){Yb(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function mte(e){let t=m.useContext(B8);if(t){let{register:n,ref:r,...i}=t;e=Qb(i,e),n()}return pte(t,e.ref),e}var Os;class Vd{constructor(t,n,r,i){Kx(this,Os);ih(this,Os,!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(){ih(this,Os,!1)}get shouldStopPropagation(){return qx(this,Os)}}Os=new WeakMap;const n3=Symbol("linkClicked"),r3="react-aria-pressable-style",i3="data-react-aria-pressable";function hte(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}=mte(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}=V8(),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 Vd("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 Vd("pressend",X,z);i(R),D=R.shouldStopPropagation}if(n&&n(!1),y(!1),t&&V&&!l){let R=new Vd("press",X,z);t(R),D&&(D=R.shouldStopPropagation)}return I.isTriggeringEvent=!1,D},[l,i,n,t]),k=Mf(w),P=m.useCallback((z,X)=>{let V=x.current;if(l)return!1;if(o){V.isTriggeringEvent=!0;let I=new Vd("pressup",X,z);return o(I),V.isTriggeringEvent=!1,I.shouldStopPropagation}return!0},[l,o]),j=Mf(P),_=m.useCallback(z=>{let X=x.current;if(X.isPressed&&X.target){X.didFirePressStart&&X.pointerType!=null&&w(Lo(X.target,z),X.pointerType,!1),X.isPressed=!1,X.isOverTarget=!1,X.activePointerId=null,X.pointerType=null,g(),f||e3(X.target);for(let V of X.disposables)V();X.disposables=[]}},[f,g,w]),M=Mf(_);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]),K=m.useCallback((z,X)=>{if(!l&&a){let V=new MouseEvent("click",z);ete(V,X),a(Jee(V))}},[l,a]),ne=m.useMemo(()=>{let z=x.current,X={onKeyDown(I){var D;if(C0(I.nativeEvent,I.currentTarget)&&zr(I.currentTarget,Mt(I))){o3(Mt(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,q=G=>{C0(G,F)&&!G.repeat&&zr(F,Mt(G))&&z.target&&j(Lo(z.target,G),"keyboard")};b(Ji(I.currentTarget),"keyup",I8(q,V),!0),R&&I.stopPropagation(),I.metaKey&&Pp()&&((D=z.metaKeyEvents)==null||D.set(I.key,I.nativeEvent))}else I.key==="Meta"&&(z.metaKeyEvents=new Map)},onClick(I){if(!(I&&!zr(I.currentTarget,Mt(I)))&&I&&I.button===0&&!z.isTriggeringEvent&&!pu.isOpening){let D=!0;if(l&&I.preventDefault(),!z.ignoreEmulatedMouseEvents&&!z.isPressed&&(z.pointerType==="virtual"||ute(I.nativeEvent))){let R=S(I,"virtual"),F=j(I,"virtual"),q=k(I,"virtual");O(I),D=R&&F&&q}else if(z.isPressed&&z.pointerType!=="keyboard"){let R=z.pointerType||I.nativeEvent.pointerType||"virtual",F=j(Lo(I.currentTarget,I),R),q=k(Lo(I.currentTarget,I),R,!0);D=F&&q,z.isOverTarget=!1,O(I),M(I)}z.ignoreEmulatedMouseEvents=!1,D&&I.stopPropagation()}}},V=I=>{var D,R,F;if(z.isPressed&&z.target&&C0(I,z.target)){o3(Mt(I),I.key)&&I.preventDefault();let q=Mt(I),G=zr(z.target,q);k(Lo(z.target,I),"keyboard",G),G&&K(I,z.target),g(),I.key!=="Enter"&&Jb(z.target)&&zr(z.target,q)&&!I[n3]&&(I[n3]=!0,pu(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 q=z.metaKeyEvents;z.metaKeyEvents=void 0;for(let G of q.values())(F=z.target)==null||F.dispatchEvent(new KeyboardEvent("keyup",G))}};if(typeof PointerEvent<"u"){X.onPointerDown=R=>{if(R.button!==0||!zr(R.currentTarget,Mt(R)))return;if(dte(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||lte(z.target),F=S(R,z.pointerType);let q=Mt(R);"releasePointerCapture"in q&&("hasPointerCapture"in q?q.hasPointerCapture(R.pointerId)&&q.releasePointerCapture(R.pointerId):q.releasePointerCapture(R.pointerId)),b(Ji(R.currentTarget),"pointerup",I,!1),b(Ji(R.currentTarget),"pointercancel",D,!1)}F&&R.stopPropagation()},X.onMouseDown=R=>{if(zr(R.currentTarget,Mt(R))&&R.button===0){if(u){let F=tte(R.target);F&&z.disposables.push(F)}R.stopPropagation()}},X.onPointerUp=R=>{!zr(R.currentTarget,Mt(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(Lo(z.target,R),z.pointerType))},X.onPointerLeave=R=>{R.pointerId===z.activePointerId&&z.target&&z.isOverTarget&&z.pointerType!=null&&(z.isOverTarget=!1,k(Lo(z.target,R),z.pointerType,!1),T(R))};let I=R=>{if(R.pointerId===z.activePointerId&&z.isPressed&&R.button===0&&z.target){if(zr(z.target,Mt(R))&&z.pointerType!=null){let F=!1,q=setTimeout(()=>{z.isPressed&&z.target instanceof HTMLElement&&(F?M(R):(fu(z.target),z.target.click()))},80);b(R.currentTarget,"click",()=>F=!0,!0),z.disposables.push(()=>clearTimeout(q))}else M(R);z.isOverTarget=!1}},D=R=>{M(R)};X.onDragStart=R=>{zr(R.currentTarget,Mt(R))&&M(R)}}return X},[b,l,u,g,f,T,S,O,K]);return m.useEffect(()=>{if(!p)return;const z=Ji(p.current);if(!z||!z.head||z.getElementById(r3))return;const X=z.createElement("style");X.id=r3;let V=cte(z);V&&(X.nonce=V),X.textContent=`
@layer {
[${i3}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
`.trim(),z.head.prepend(X)},[p]),m.useEffect(()=>{let z=x.current;return()=>{f||e3(z.target??void 0);for(let X of z.disposables)X();z.disposables=[]}},[f]),{isPressed:c||v,pressProps:Qb(h,ne,{[i3]:!0})}}function Jb(e){return e.tagName==="A"&&e.hasAttribute("href")}function C0(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof vo(i).HTMLInputElement&&!W8(i,n)||i instanceof vo(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&Jb(i))&&n!=="Enter")}function Lo(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 gte(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Jb(e)}function o3(e,t){return e instanceof HTMLInputElement?!W8(e,t):gte(e)}const vte=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function W8(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":vte.has(e.type)}let yte=0;const j0=new Map;function bte(e){let[t,n]=m.useState();return Yb(()=>{if(!e)return;let r=j0.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${yte++}`;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},j0.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),j0.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}const xte=500;function Ste(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=xte,accessibilityDescription:a}=e;const l=m.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:u}=V8(),{pressProps:d}=hte({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})),Ji(p.target).activeElement!==p.target&&fu(p.target),i&&i({...p,type:"longpress"}),l.current=void 0},o),p.pointerType==="touch")){let h=y=>{y.preventDefault()},v=vo(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=bte(i&&!t?a:void 0);return{longPressProps:Qb(d,f)}}function wte(){return typeof window.ResizeObserver<"u"}function kte(e){const{ref:t,box:n,onResize:r}=e;let i=Mf(r);m.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(wte()){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 Cte(e,t){return m.Children.toArray(e).find(n=>n.type===t)}function jte(e,t){return m.Children.toArray(e).filter(n=>Array.isArray(t)?t.some(r=>r===n.type):n.type===t)}var Pte=(e,t)=>Array.isArray(e)?e:typeof e=="object"?t==null?void 0:t(e):e!=null?[e]:[],a3=(e,t)=>{var n;const r=Ti(),i=Pte(e,(n=r.__breakpoints)==null?void 0:n.toArrayValue);return wp(i,t)},[due,_te]=Pr("SuiEmptyState"),Tte=B((e,t)=>{var n;const r=_te();return s.jsx(Pt,{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)})});Tte.displayName="EmptyStateIcon";var ex=m.createContext({});function Ete(e){const{theme:t,linkComponent:n,onError:r,children:i,...o}=e,a={linkComponent:n,onError:r};return s.jsx(ex.Provider,{value:a,children:s.jsx(UH,{...o,theme:t||A8,children:i})})}var Ate=()=>m.useContext(ex),$te=e=>s.jsx(N.a,{...e});function tx(){const e=Ate();return e!=null&&e.linkComponent?e.linkComponent:$te}var zte=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}};zte.contextType=ex;var U8=(e="lg")=>e?{base:!0,[e]:!1}:{base:!1},[Rte,Mte]=we({strict:!1,errorMessage:"AppShell context not available."}),Ite=e=>{const t=ku(),n=U8(e.toggleBreakpoint),r=wp(n,{fallback:e.toggleBreakpoint||"lg"});return{isSidebarOpen:t.isOpen,closeSidebar:t.onClose,openSidebar:t.onOpen,toggleSidebar:t.onToggle,isMobile:r}},[Lte]=Pr("SuiAppShell"),Nte=B((e,t)=>{const n=Ke("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=Ite({toggleBreakpoint:h?i==null?void 0:i.props.toggleBreakpoint:void 0});return s.jsx(Rte,{value:v,children:s.jsx(Lte,{value:n,children:s.jsxs(St,{ref:t,...u,sx:d,className:W("sui-app-shell",e.className),children:[r,s.jsxs(St,{sx:f,className:"saas-app-shell__inner",children:[i,s.jsx(St,{ref:c,sx:p,className:"saas-app-shell__main",children:l}),o]}),a]})})})});Nte.displayName="AppShell";function Dte(e){return s.jsx(Pt,{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 Ote(e){return s.jsx(Pt,{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 s3(e){return s.jsx(Pt,{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 Wd={enter:{duration:.2,ease:ci.easeOut},exit:{duration:.2,ease:ci.easeIn}},Fte={slideOutTop:{...Xi,custom:{offsetY:"-100%",reverse:!0,transition:Wd},initial:"enter"},slideOutBottom:{...Xi,custom:{offsetY:"100%",reverse:!0,transition:Wd},initial:"enter"},fade:{...Xi,custom:{transition:Wd},initial:"enter"},scale:{...Lb,custom:{initialScale:.1,reverse:!0,transition:Wd},initial:"enter"},none:{custom:{}}},Bte=N(Un.div),Vte=m.forwardRef((e,t)=>{const{motionPreset:n,...r}=e,o={...Fte[n]};return s.jsx(Bte,{ref:t,...o,...r})}),[Wte,Wu]=Pr("SuiBanner"),Ute={info:{icon:Ote,colorScheme:"blue"},warning:{icon:s3,colorScheme:"orange"},success:{icon:Dte,colorScheme:"green"},error:{icon:s3,colorScheme:"red"}},[Hte,Gte]=we({name:"BannerContext",errorMessage:"useBannerContext: `context` is undefined. Seems you forgot to wrap banner components in `<Banner />`"}),qte=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:Ute[i].colorScheme,d=Ke("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(Hte,{value:p,children:s.jsx(Wte,{value:d,children:s.jsx(_i,{children:o&&s.jsx(Vte,{id:p.id,role:h,ref:t,motionPreset:l,animate:v,...c,className:W("sui-banner",e.className),__css:f})})})})});qte.displayName="Banner";var Kte=B((e,t)=>{const n=Wu();return s.jsx(N.div,{ref:t,...e,className:W("sui-banner__content",e.className),__css:n.content})});Kte.displayName="BannerContent";var Xte=B((e,t)=>{const n=Wu();return s.jsx(N.div,{ref:t,...e,className:W("sui-banner__title",e.className),__css:n.title})});Xte.displayName="BannerTitle";var Yte=B((e,t)=>{const r={display:"inline",...Wu().description};return s.jsx(N.div,{ref:t,...e,className:W("sui-banner__desc",e.className),__css:r})});Yte.displayName="BannerDescription";var Qte=B((e,t)=>{const{children:n,variant:r}=e,i=Wu();return s.jsx(N.div,{ref:t,...e,className:W("sui-banner__actions",e.className),__css:i.actions,children:s.jsx(sb,{variant:r,children:n})})});Qte.displayName="BannerActions";var Zte=B((e,t)=>{const{onClick:n,className:r,...i}=e,{onClose:o,isOpen:a,id:l}=Gte(),c=W("sui-banner__close-btn",r),u=Wu();return s.jsx(bm,{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})});Zte.displayName="BannerCloseButton";we({name:"UseCollapseReturn"});var[Jte,nx]=Pr("SuiStructuredList"),[ene,tne]=we({name:"StructuredListContext",errorMessage:"useStructuredListContext: `context` is undefined. Seems you forgot to wrap the components in `<StructuredList />`"});function nne(e){return $8(e,"[role='button']:not([disabled])")}var rne=e=>{var t;const n=m.useId(),r=m.useRef(null),[i,o]=m.useState(null),a={onBlur:fe(e.onBlur,l=>{l.relatedTarget&&(nne(r.current).includes(l.relatedTarget)||o(null))})};return{id:(t=e.id)!=null?t:n,containerRef:r,focusId:i,setFocusId:o,listProps:a}},ine=B((e,t)=>{const{items:n,children:r,...i}=e,o=Ke("SuiStructuredList",i),a=Ae(i);let l;n?l=n.map((f,p)=>m.createElement(H8,{...f,key:f.id||p})):l=r;const c={py:2,position:"relative",...o.list},{listProps:u,...d}=rne(e);return s.jsx(ene,{value:d,children:s.jsx(Jte,{value:o,children:s.jsx(N.ul,{ref:ey(t,d.containerRef),__css:c,...a,...u,className:W("sui-list",e.className),children:l})})})});ine.displayName="StructuredList";var one=B((e,t)=>{const{children:n,onClick:r,action:i,role:o="heading",level:a=1,...l}=e,c=nx();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]})});one.displayName="StructuredListHeader";var H8=B((e,t)=>{const{onClick:n,href:r,as:i,children:o,isDisabled:a,...l}=e,c=nx(),u=!!(n||r),d=u?G8: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})});H8.displayName="StructuredListItem";var ane=e=>{var t;const{id:n,containerRef:r,focusId:i,setFocusId:o}=tne(),a=`${n}-${m.useId()}`,l=(t=e.id)!=null?t:a,c=i===l;function u(){return $8(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=Nee(p,l))==null||v.focus()},ArrowDown:()=>{var v;(v=Lee(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)}}}},G8=B((e,t)=>{const{children:n,isDisabled:r,...i}=e,{buttonProps:o}=ane(e),a=nx();return s.jsx(N.div,{ref:t,__css:a.button,role:"button",...i,...o,className:W("sui-list__item-button",e.className),children:n})});G8.displayName="StructuredListButton";var sne=B((e,t)=>{const n=tx(),{href:r,...i}=e;return s.jsx(jo,{as:n,ref:t,href:r,...i})});sne.displayName="Link";Pr("SuiLoadingOverlay");N(Un.div);var lne=typeof window<"u";function l3(e){return lne?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var cne=e=>{const{elementRef:t,delay:n=30,callback:r,isEnabled:i}=e,o=m.useRef(i?l3(t==null?void 0:t.current):{x:0,y:0});let a=null;const l=()=>{const c=l3(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,une]=we({name:"UseContextMenuContext",strict:!1}),c3=(e=0,t=0)=>()=>({width:0,height:0,top:t,left:e,right:e,bottom:t}),dne=()=>typeof window!==void 0&&window.matchMedia("(hover: none)").matches,fne=(e,t)=>{const{triggerRef:n,onOpen:r,onClose:i,anchor:o}=une(),a=$X(),{popper:l,openAndFocusFirstItem:c}=a,{longPressProps:u}=Ste({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:c3(o.x,o.y)});return m.useEffect(()=>{l.referenceRef(d.current)},[]),m.useEffect(()=>{d.current.getBoundingClientRect=c3(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;dne()&&((v=u.onMouseDown)==null||v.call(u,h))},onContextMenu:fe(h=>{h.preventDefault(),r(h),c()},e.onContextMenu),ref:Et(n,t)}}},pne=B((e,t)=>{const{children:n,longPressDisabled:r,...i}=e,{triggerProps:o}=fne(e,t);return s.jsx(N.span,{...i,sx:{WebkitTouchCallout:"none"},...o,children:n})});pne.displayName="ContextMenuTrigger";var[mne,$m]=Pr("SuiPersona"),u3={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"}},hne={online:"green.500",offline:"gray.400",busy:"orange.500",dnd:"red.500",away:"gray.400"},gne=B((e,t)=>{const{children:n,...r}=e,i=Ke("SuiPersona",e),o=Ae(r),l={...{display:"flex",flexDirection:"row",alignItems:"center"},...i.container};return s.jsx(mne,{value:i,children:s.jsx(N.div,{ref:t,__css:l,...o,className:W("sui-persona",e.className),children:n})})});gne.displayName="PersonaContainer";var vne=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=Ti(),T=((n=M.colors)==null?void 0:n.presence)||hne,O=!!((i=(r=M.semanticTokens)==null?void 0:r.colors)!=null&&i["presence.online"]);if(c){const K=u||((o=u3[c])==null?void 0:o.label),ne=O?((a=u3[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=qg("white","gray.800")):j.bg=ne,_=s.jsx(KP,{boxSize:p,...j,children:d}),K&&(_=s.jsx(Bb,{label:K,children:_}))}return s.jsx(ab,{ref:t,name:l,size:h,getInitials:v,icon:y,iconLabel:x,ignoreFallback:b,loading:g,onError:S,src:w,srcSet:k,...P,children:_})});vne.displayName="PersonaAvatar";var yne=B((e,t)=>{const{children:n,className:r,...i}=e,o=$m(),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})});yne.displayName="PersonaDetails";var bne=B((e,t)=>{const n=$m();return s.jsx(N.span,{ref:t,...e,__css:n.label,className:W("sui-persona__label",e.className)})});bne.displayName="PersonaLabel";var xne=B((e,t)=>{const n=$m();return s.jsx(N.span,{ref:t,...e,__css:n.secondaryLabel,className:W("sui-persona__secondary-label",e.className)})});xne.displayName="PersonaSecondaryLabel";var Sne=B((e,t)=>{const n=$m();return s.jsx(N.span,{ref:t,...e,__css:n.tertiaryLabel,className:W("sui-persona__tertiary-label",e.className)})});Sne.displayName="PersonaTertiaryLabel";var[wne,q8]=Pr("SuiProperty"),kne=B((e,t)=>{const n=Ke("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(wne,{value:n,children:s.jsxs(N.dl,{ref:t,__css:u,...c,className:W("sui-property",e.className),children:[i&&s.jsx(K8,{width:a,minWidth:a,marginEnd:l,children:i}),o&&s.jsx(X8,{children:o}),r]})})});kne.displayName="Property";var K8=B((e,t)=>{const n=q8(),{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})})});K8.displayName="PropertyLabel";var X8=B((e,t)=>{const n=q8(),{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})});X8.displayName="PropertyValue";function Cne(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 kte({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},[]),cne({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[jne]=we({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within <Navbar />"}),[Pne,zm]=we({name:"NavBarStylesContext",hookName:"useNavItemStyles",providerName:"<NavBar />"}),_ne=N(Un.nav),Tne=B((e,t)=>{const{children:n,...r}=e,i=Cne({...r,ref:t}),o=Ke("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(Pne,{value:o,children:s.jsx(jne,{value:i,children:s.jsx(_ne,{__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})})})});Tne.displayName="Navbar";var Ene=B((e,t)=>{const{className:n,children:r,...i}=e,o=zm();return s.jsx(N.div,{ref:t,__css:o.brand,className:W("sui-navbar__brand"),...i,children:r})});Ene.displayName="NavbarBrand";var Ane=B((e,t)=>{const{className:n,children:r,spacing:i=0,...o}=e,l={...zm().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})});Ane.displayName="NavbarContent";var $ne=B((e,t)=>{const{className:n,children:r,isActive:i,...o}=e,a=zm();return s.jsx(N.li,{ref:t,__css:a.item,className:W("sui-navbar__item",n),"data-active":le(i),...o,children:r})});$ne.displayName="NavbarItem";var zne=B((e,t)=>{const{className:n,children:r,isActive:i,...o}=e,a=tx(),l=zm();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})});zne.displayName="NavbarLink";var[Rne,Mne]=we({name:"SidebarContext",strict:!1}),[Ine]=we({name:"SidebarStylesContext",hookName:"useSidebarStyles",providerName:"<Sidebar />"}),Lne=N(Un.nav),Nne={slideInOut:{enter:{left:0,transition:{type:"spring",duration:.6,bounce:.15}},exit:{left:"-100%"}},none:{}},Y8=B((e,t)=>{var n,r,i;const o=Ke("SuiSidebar",e),l=(n=Ti().components.SuiSidebar)==null?void 0:n.defaultProps,c=a3((r=e.variant)!=null?r:l==null?void 0:l.variant,{fallback:"base"}),u=a3((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=Mte(),k=U8(h),P=wp(k,{fallback:void 0}),j=wp(k),_=typeof P>"u",M=typeof x<"u",T=(P||M)&&!d,O=ku({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:K,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=Nne[d?"none":y||"none"];return s.jsx(Rne,{value:V,children:s.jsx(Ine,{value:o,children:s.jsx(Lne,{ref:t,initial:!1,animate:!_&&(!T||K?"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})})})});Y8.displayName="Sidebar";Y8.id="Sidebar";we({name:"NavGroupStylesContext",hookName:"useNavItemStyles",providerName:"<NavItem />"});var[Dne,Q8]=we({name:"NavItemStylesContext",hookName:"useNavItemStyles",providerName:"<NavItem />"}),Z8=B(({children:e,...t},n)=>{const r=Q8();return s.jsx(N.span,{ref:n,__css:r.label,...t,className:W("sui-nav-item__label",t.className),children:e})});Z8.displayName="NavItemLabel";var J8=e=>{const t=Q8(),{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})};J8.displayName="NavItemIcon";var One=B((e,t)=>{const{as:n,href:r,icon:i,inset:o,className:a,tooltipProps:l,isActive:c,children:u,...d}=Ae(e),f=tx(),{onClose:p,variant:h}=Mne()||{},v=h==="compact",y=Ke("SuiNavItem",e);let x=u,b=l==null?void 0:l.label;typeof x=="string"&&(!b&&v&&(b=x),x=s.jsx(Z8,{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(J8,{children:i}),x]})});return s.jsx(Dne,{value:y,children:s.jsx(Bb,{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})})})});One.displayName="NavItem";var Fne=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=Ke("SuiSearchInput",e),x=m.useRef(null),[b,g]=o6({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(Pb,{size:o,width:l,children:[s.jsx(_b,{children:c||s.jsx(yQ,{})}),s.jsx(gt,{type:"text",placeholder:n,variant:a,size:o,value:b,ref:ey(t,x),sx:y.input,onChange:fe(S,f),onKeyDown:fe(w,h),...v}),s.jsx(wm,{children:j?s.jsx(In,{onClick:k,size:P,variant:"ghost","aria-label":"Reset search",icon:u||s.jsx(vQ,{}),sx:y.reset}):d})]})});Fne.displayName="SearchInput";var[Bne,Vne]=we({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"});function Wne(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 Une(e){const{name:t,isActive:n,isCompleted:r}=e,{registerStep:i,unregisterStep:o,activeStep:a}=Vne();return m.useEffect(()=>{if(t)return i(t),()=>{o(t)}},[]),{isActive:t?a===t:n,isCompleted:r}}var[Hne,Gne]=Pr("Stepper"),qne=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=Ke("Stepper",e),b=Wne({step:u??c,onChange:d}),{activeIndex:g}=b,S=l==="vertical",w=jte(a,eT),k={position:"relative",...x.item},P=w.reduce((T,O,K,ne)=>{const z=m.cloneElement(O,{key:K,...O.props,isActive:g===K,isCompleted:O.props.isCompleted||g>K});return S?T.push(s.jsxs(N.div,{className:"sui-steps__item",__css:k,children:[z,s.jsx($v,{isOpen:g===K,orientation:l,children:O.props.children}),K<ne.length-1?s.jsx(g8,{}):null]},`content-${K}`)):T.push(z),T},[]),j=Cte(a,tT),_=(r=(n=w[g])==null?void 0:n.props)==null?void 0:r.children,M=g>=w.length?j:!S&&_?s.jsx($v,{orientation:l,children:(o=(i=w[g])==null?void 0:i.props)==null?void 0:o.children}):null;return s.jsx(Hne,{value:x,children:s.jsx(Bne,{value:b,children:s.jsxs(N.div,{ref:t,__css:x.container,...y,className:W("sui-steps",e.className),children:[s.jsx(cQ,{index:g,orientation:l,variant:f,colorScheme:p,size:h,...v,children:P}),M]})})})});qne.displayName="Steps";var eT=e=>{const{render:t,icon:n,title:r,description:i,...o}=e,a=Une(o);return t?t({...a,...e}):s.jsxs(nQ,{children:[s.jsx(sQ,{children:s.jsx(aQ,{complete:s.jsx(oQ,{}),incomplete:s.jsx(Lw,{children:n}),active:s.jsx(Lw,{})})}),s.jsxs(se,{flexShrink:"0",children:[s.jsx(lQ,{children:r}),i&&s.jsx(rQ,{children:i})]}),s.jsx(g8,{})]})};eT.displayName="StepsItem";var $v=e=>{const{children:t,isOpen:n=!0,orientation:r="horizontal",...i}=e,o=Gne();return s.jsx(N.div,{...i,__css:o.content,className:W("sui-steps__content",e.className),"data-orientation":r,children:r==="vertical"?s.jsx(Ru,{in:n,style:{overflow:n?"visible":"hidden"},children:s.jsx(N.div,{p:"2px",children:n?t:null})}):t})};$v.displayName="StepsContent";var tT=e=>{const t={};return s.jsx(N.div,{__css:t,...e,className:W("sui-steps__completed",e.className)})};tT.displayName="StepsCompleted";var[pue,Kne]=Pr("SuiTimeline"),Xne=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})});Xne.displayName="TimelineItem";B((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":o,...a}=e,l=Hn("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 mu(){return mu=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},mu.apply(null,arguments)}var eo;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(eo||(eo={}));const d3="popstate";function Yne(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:l}=r.location;return zv("",{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:_p(i)}return Zne(t,n,null,e)}function ut(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function rx(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Qne(){return Math.random().toString(36).substr(2,8)}function f3(e,t){return{usr:e.state,key:e.key,idx:t}}function zv(e,t,n,r){return n===void 0&&(n=null),mu({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?yl(t):t,{state:n,key:t&&t.key||r||Qne()})}function _p(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 yl(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 Zne(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,l=eo.Pop,c=null,u=d();u==null&&(u=0,a.replaceState(mu({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function f(){l=eo.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=eo.Push;let g=zv(y.location,x,b);u=d()+1;let S=f3(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=eo.Replace;let g=zv(y.location,x,b);u=d();let S=f3(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:_p(x);return g=g.replace(/ $/,"%20"),ut(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(d3,f),c=x,()=>{i.removeEventListener(d3,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 p3;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(p3||(p3={}));function Jne(e,t,n){return n===void 0&&(n="/"),ere(e,t,n)}function ere(e,t,n,r){let i=typeof t=="string"?yl(t):t,o=il(i.pathname||"/",n);if(o==null)return null;let a=nT(e);tre(a);let l=null,c=fre(o);for(let u=0;l==null&&u<a.length;++u)l=ure(a[u],c);return l}function nT(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("/")&&(ut(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=uo([r,c.relativePath]),d=n.concat(c);o.children&&o.children.length>0&&(ut(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),nT(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:lre(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 rT(o.path))i(o,a,c)}),t}function rT(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=rT(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 tre(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:cre(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const nre=/^:[\w-]+$/,rre=3,ire=2,ore=1,are=10,sre=-2,m3=e=>e==="*";function lre(e,t){let n=e.split("/"),r=n.length;return n.some(m3)&&(r+=sre),t&&(r+=ire),n.filter(i=>!m3(i)).reduce((i,o)=>i+(nre.test(o)?rre:o===""?ore:are),r)}function cre(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 ure(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=Rv({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:uo([o,f.pathname]),pathnameBase:vre(uo([o,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(o=uo([o,f.pathnameBase]))}return a}function Rv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=dre(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 dre(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),rx(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 fre(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return rx(!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 il(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 pre=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mre=e=>pre.test(e);function hre(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?yl(e):e,o;if(n)if(mre(n))o=n;else{if(n.includes("//")){let a=n;n=iT(n),rx(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?o=h3(n.substring(1),"/"):o=h3(n,t)}else o=t;return{pathname:o,search:yre(r),hash:bre(i)}}function h3(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 P0(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 gre(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ix(e,t){let n=gre(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ox(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=yl(e):(i=mu({},e),ut(!i.pathname||!i.pathname.includes("?"),P0("?","pathname","search",i)),ut(!i.pathname||!i.pathname.includes("#"),P0("#","pathname","hash",i)),ut(!i.search||!i.search.includes("#"),P0("#","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=hre(i,l),u=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const iT=e=>e.replace(/\/\/+/g,"/"),uo=e=>iT(e.join("/")),vre=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yre=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bre=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function xre(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const oT=["post","put","patch","delete"];new Set(oT);const Sre=["get",...oT];new Set(Sre);/**
* 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 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)}const Rm=m.createContext(null),aT=m.createContext(null),Ei=m.createContext(null),Mm=m.createContext(null),Ai=m.createContext({outlet:null,matches:[],isDataRoute:!1}),sT=m.createContext(null);function wre(e,t){let{relative:n}=t===void 0?{}:t;bl()||ut(!1);let{basename:r,navigator:i}=m.useContext(Ei),{hash:o,pathname:a,search:l}=Im(e,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:uo([r,a])),i.createHref({pathname:c,search:l,hash:o})}function bl(){return m.useContext(Mm)!=null}function Ra(){return bl()||ut(!1),m.useContext(Mm).location}function lT(e){m.useContext(Ei).static||m.useLayoutEffect(e)}function _r(){let{isDataRoute:e}=m.useContext(Ai);return e?Nre():kre()}function kre(){bl()||ut(!1);let e=m.useContext(Rm),{basename:t,future:n,navigator:r}=m.useContext(Ei),{matches:i}=m.useContext(Ai),{pathname:o}=Ra(),a=JSON.stringify(ix(i,n.v7_relativeSplatPath)),l=m.useRef(!1);return lT(()=>{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=ox(u,JSON.parse(a),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:uo([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,a,o,e])}const Cre=m.createContext(null);function jre(e){let t=m.useContext(Ai).outlet;return t&&m.createElement(Cre.Provider,{value:e},t)}function Im(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(Ei),{matches:i}=m.useContext(Ai),{pathname:o}=Ra(),a=JSON.stringify(ix(i,r.v7_relativeSplatPath));return m.useMemo(()=>ox(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function Pre(e,t){return _re(e,t)}function _re(e,t,n,r){bl()||ut(!1);let{navigator:i}=m.useContext(Ei),{matches:o}=m.useContext(Ai),a=o[o.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let u=Ra(),d;if(t){var f;let x=typeof t=="string"?yl(t):t;c==="/"||(f=x.pathname)!=null&&f.startsWith(c)||ut(!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=Jne(e,{pathname:h}),y=zre(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:uo([c,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:uo([c,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&y?m.createElement(Mm.Provider,{value:{location:hu({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:eo.Pop}},y):y}function Tre(){let e=Lre(),t=xre(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 Ere=m.createElement(Tre,null);class Are 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(Ai.Provider,{value:this.props.routeContext},m.createElement(sT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $re(e){let{routeContext:t,match:n,children:r}=e,i=m.useContext(Rm);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(Ai.Provider,{value:t},r)}function zre(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||ut(!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||Ere,c&&(u<0&&p===0?(Dre("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($re,{match:f,routeContext:{outlet:d,matches:b,isDataRoute:n!=null},children:S})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?m.createElement(Are,{location:n.location,revalidation:n.revalidation,component:y,error:h,children:g(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):g()},null)}var cT=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(cT||{}),uT=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}(uT||{});function Rre(e){let t=m.useContext(Rm);return t||ut(!1),t}function Mre(e){let t=m.useContext(aT);return t||ut(!1),t}function Ire(e){let t=m.useContext(Ai);return t||ut(!1),t}function dT(e){let t=Ire(),n=t.matches[t.matches.length-1];return n.route.id||ut(!1),n.route.id}function Lre(){var e;let t=m.useContext(sT),n=Mre(),r=dT();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Nre(){let{router:e}=Rre(cT.UseNavigateStable),t=dT(uT.UseNavigateStable),n=m.useRef(!1);return lT(()=>{n.current=!0}),m.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,hu({fromRouteId:t},o)))},[e,t])}const g3={};function Dre(e,t,n){g3[e]||(g3[e]=!0)}function Ore(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function gu(e){let{to:t,replace:n,state:r,relative:i}=e;bl()||ut(!1);let{future:o,static:a}=m.useContext(Ei),{matches:l}=m.useContext(Ai),{pathname:c}=Ra(),u=_r(),d=ox(t,ix(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 fT(e){return jre(e.context)}function en(e){ut(!1)}function Fre(e){let{basename:t="/",children:n=null,location:r,navigationType:i=eo.Pop,navigator:o,static:a=!1,future:l}=e;bl()&&ut(!1);let c=t.replace(/^\/*/,"/"),u=m.useMemo(()=>({basename:c,navigator:o,static:a,future:hu({v7_relativeSplatPath:!1},l)}),[c,l,o,a]);typeof r=="string"&&(r=yl(r));let{pathname:d="/",search:f="",hash:p="",state:h=null,key:v="default"}=r,y=m.useMemo(()=>{let x=il(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(Ei.Provider,{value:u},m.createElement(Mm.Provider,{children:n,value:y}))}function Bre(e){let{children:t,location:n}=e;return Pre(Mv(t),n)}new Promise(()=>{});function Mv(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,Mv(r.props.children,o));return}r.type!==en&&ut(!1),!r.props.index||!r.props.children||ut(!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=Mv(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 Tp(){return Tp=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},Tp.apply(null,arguments)}function pT(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 Vre(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Wre(e,t){return e.button===0&&(!t||t==="_self")&&!Vre(e)}const Ure=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Hre=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Gre="6";try{window.__reactRouterVersion=Gre}catch{}const qre=m.createContext({isTransitioning:!1}),Kre="startTransition",v3=O0[Kre];function Xre(e){let{basename:t,children:n,future:r,window:i}=e,o=m.useRef();o.current==null&&(o.current=Yne({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&&v3?v3(()=>c(f)):c(f)},[c,u]);return m.useLayoutEffect(()=>a.listen(d),[a,d]),m.useEffect(()=>Ore(r),[r]),m.createElement(Fre,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const Yre=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Qre=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gt=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=pT(t,Ure),{basename:h}=m.useContext(Ei),v,y=!1;if(typeof u=="string"&&Qre.test(u)&&(v=u,Yre))try{let S=new URL(window.location.href),w=u.startsWith("//")?new URL(S.protocol+u):new URL(u),k=il(w.pathname,h);w.origin===S.origin&&k!=null?u=k+w.search+w.hash:y=!0}catch{}let x=wre(u,{relative:i}),b=Jre(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",Tp({},p,{href:v||x,onClick:y||o?r:g,ref:n,target:c}))}),mT=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=pT(t,Hre),p=Im(c,{relative:f.relative}),h=Ra(),v=m.useContext(aT),{navigator:y,basename:x}=m.useContext(Ei),b=v!=null&&eie(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=il(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(Gt,Tp({},f,{"aria-current":M,className:T,ref:n,style:O,to:c,viewTransition:u}),typeof d=="function"?d(_):d)});var Iv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Iv||(Iv={}));var y3;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(y3||(y3={}));function Zre(e){let t=m.useContext(Rm);return t||ut(!1),t}function Jre(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:l}=t===void 0?{}:t,c=_r(),u=Ra(),d=Im(e,{relative:a});return m.useCallback(f=>{if(Wre(f,n)){f.preventDefault();let p=r!==void 0?r:_p(u)===_p(d);c(e,{replace:p,state:i,preventScrollReset:o,relative:a,viewTransition:l})}},[u,c,d,r,i,n,e,o,a,l])}function eie(e,t){t===void 0&&(t={});let n=m.useContext(qre);n==null&&ut(!1);let{basename:r}=Zre(Iv.useViewTransitionState),i=Im(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=il(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=il(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Rv(i.pathname,a)!=null||Rv(i.pathname,o)!=null}const tie=[{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 nie(){return s.jsxs(se,{children:[s.jsx(se,{bgGradient:"linear(to-b, blackAlpha.50, transparent)",py:{base:16,md:24},children:s.jsx(un,{maxW:"container.lg",children:s.jsxs(xe,{spacing:6,textAlign:"center",align:"center",children:[s.jsx(jt,{size:"2xl",children:"La plateforme de gestion de commandes & livraison"}),s.jsx(J,{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(xe,{direction:{base:"column",sm:"row"},spacing:4,w:{base:"full",sm:"auto"},children:[s.jsx(ye,{as:Gt,to:"/register",colorScheme:"primary",size:"lg",w:{base:"full",sm:"auto"},children:"Créer un compte"}),s.jsx(ye,{as:Gt,to:"/tarifs",variant:"outline",size:"lg",w:{base:"full",sm:"auto"},children:"Voir les tarifs"})]})]})})}),s.jsx(un,{maxW:"container.lg",py:16,children:s.jsx(pn,{columns:{base:1,md:2},spacing:8,children:tie.map(e=>s.jsxs(se,{p:6,borderWidth:"1px",borderRadius:"lg",children:[s.jsx(jt,{size:"md",mb:2,children:e.title}),s.jsx(J,{color:"gray.600",children:e.desc})]},e.title))})})]})}const hT="https://t.me/OMNEX_CORP",rie=[{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:hT,ctaExternal:!0,highlighted:!0}];function iie(){return s.jsxs(un,{maxW:"container.lg",py:{base:12,md:20},children:[s.jsxs(xe,{spacing:4,textAlign:"center",mb:12,align:"center",children:[s.jsx(jt,{size:"2xl",children:"Tarifs"}),s.jsx(J,{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(pn,{columns:{base:1,md:2},spacing:8,alignItems:"stretch",maxW:"2xl",mx:"auto",children:rie.map(e=>s.jsx(oie,{plan:e},e.name))}),s.jsxs(J,{textAlign:"center",color:"gray.500",mt:10,fontSize:"sm",children:["Besoin d'un devis précis ?"," ",s.jsx(aie,{href:hT,children:"Contactez-nous"})," — un commercial vous recontacte."]})]})}function oie({plan:e}){return s.jsxs(xe,{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(On,{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(jt,{size:"md",children:e.name}),s.jsx(J,{color:"gray.500",mt:1,fontSize:"sm",children:e.description})]}),s.jsxs(he,{align:"baseline",spacing:2,children:[s.jsx(J,{fontSize:"3xl",fontWeight:"bold",children:e.price}),e.period&&s.jsxs(J,{color:"gray.500",children:["/ ",e.period]})]}),s.jsx(Lu,{spacing:3,flex:"1",children:e.features.map(t=>s.jsxs(Tb,{display:"flex",alignItems:"flex-start",children:[s.jsx(Pt,{as:sie,color:"primary.500",mt:1,mr:2}),s.jsx(J,{fontSize:"sm",children:t})]},t))}),e.ctaExternal?s.jsx(ye,{as:"a",href:e.ctaHref,target:"_blank",rel:"noopener noreferrer",colorScheme:"primary",variant:e.highlighted?"solid":"outline",size:"lg",children:e.cta}):s.jsx(ye,{as:Gt,to:e.ctaHref,colorScheme:"primary",variant:e.highlighted?"solid":"outline",size:"lg",children:e.cta})]})}function aie({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 sie(e){return s.jsx(Pt,{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 Lv(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 lie(e){if(Array.isArray(e))return e}function cie(e){if(Array.isArray(e))return Lv(e)}function uie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function die(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,gT(r.key),r)}}function fie(e,t,n){return t&&die(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function If(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ax(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=gT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mie(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 hie(){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 gie(){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 b3(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?b3(Object(n),!0).forEach(function(r){de(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lm(e,t){return lie(e)||mie(e,t)||ax(e,t)||hie()}function jr(e){return cie(e)||pie(e)||ax(e)||gie()}function vie(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 gT(e){var t=vie(e,"string");return typeof t=="symbol"?t:t+""}function Ep(e){"@babel/helpers - typeof";return Ep=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},Ep(e)}function ax(e,t){if(e){if(typeof e=="string")return Lv(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)?Lv(e,t):void 0}}var x3=function(){},sx={},vT={},yT=null,bT={mark:x3,measure:x3};try{typeof window<"u"&&(sx=window),typeof document<"u"&&(vT=document),typeof MutationObserver<"u"&&(yT=MutationObserver),typeof performance<"u"&&(bT=performance)}catch{}var yie=sx.navigator||{},S3=yie.userAgent,w3=S3===void 0?"":S3,yo=sx,tt=vT,k3=yT,Ud=bT;yo.document;var $i=!!tt.documentElement&&!!tt.head&&typeof tt.addEventListener=="function"&&typeof tt.createElement=="function",xT=~w3.indexOf("MSIE")||~w3.indexOf("Trident/"),Hd,bie=/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)?[\-\ ]/,xie=/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,ST={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"}},Sie={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},wT=["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"],Xt="classic",Uu="duotone",kT="sharp",CT="sharp-duotone",jT="chisel",PT="etch",_T="graphite",TT="jelly",ET="jelly-duo",AT="jelly-fill",$T="mosaic",zT="notdog",RT="notdog-duo",MT="pixel",IT="slab",LT="slab-duo",NT="slab-press",DT="slab-press-duo",OT="thumbprint",FT="utility",BT="utility-duo",VT="utility-fill",WT="vellum",UT="whiteboard",wie="Classic",kie="Duotone",Cie="Sharp",jie="Sharp Duotone",Pie="Chisel",_ie="Etch",Tie="Graphite",Eie="Jelly",Aie="Jelly Duo",$ie="Jelly Fill",zie="Mosaic",Rie="Notdog",Mie="Notdog Duo",Iie="Pixel",Lie="Slab",Nie="Slab Duo",Die="Slab Press",Oie="Slab Press Duo",Fie="Thumbprint",Bie="Utility",Vie="Utility Duo",Wie="Utility Fill",Uie="Vellum",Hie="Whiteboard",HT=[Xt,Uu,kT,CT,jT,PT,_T,TT,ET,AT,$T,zT,RT,MT,IT,LT,NT,DT,OT,FT,BT,VT,WT,UT];Hd={},de(de(de(de(de(de(de(de(de(de(Hd,Xt,wie),Uu,kie),kT,Cie),CT,jie),jT,Pie),PT,_ie),_T,Tie),TT,Eie),ET,Aie),AT,$ie),de(de(de(de(de(de(de(de(de(de(Hd,$T,zie),zT,Rie),RT,Mie),MT,Iie),IT,Lie),LT,Nie),NT,Die),DT,Oie),OT,Fie),FT,Bie),de(de(de(de(Hd,BT,Vie),VT,Wie),WT,Uie),UT,Hie);var Gie={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"}},qie={"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}]]),Xie={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"}},GT=["fak","fa-kit","fakd","fa-kit-duotone"],C3={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},Yie=["kit"],Qie="kit",Zie="kit-duotone",Jie="Kit",eoe="Kit Duotone";de(de({},Qie,Jie),Zie,eoe);var toe={kit:{"fa-kit":"fak"}},noe={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},roe={kit:{fak:"fa-kit"}},j3={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Gd,qd={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ioe=["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"],ooe="classic",aoe="duotone",soe="sharp",loe="sharp-duotone",coe="chisel",uoe="etch",doe="graphite",foe="jelly",poe="jelly-duo",moe="jelly-fill",hoe="mosaic",goe="notdog",voe="notdog-duo",yoe="pixel",boe="slab",xoe="slab-duo",Soe="slab-press",woe="slab-press-duo",koe="thumbprint",Coe="utility",joe="utility-duo",Poe="utility-fill",_oe="vellum",Toe="whiteboard",Eoe="Classic",Aoe="Duotone",$oe="Sharp",zoe="Sharp Duotone",Roe="Chisel",Moe="Etch",Ioe="Graphite",Loe="Jelly",Noe="Jelly Duo",Doe="Jelly Fill",Ooe="Mosaic",Foe="Notdog",Boe="Notdog Duo",Voe="Pixel",Woe="Slab",Uoe="Slab Duo",Hoe="Slab Press",Goe="Slab Press Duo",qoe="Thumbprint",Koe="Utility",Xoe="Utility Duo",Yoe="Utility Fill",Qoe="Vellum",Zoe="Whiteboard";Gd={},de(de(de(de(de(de(de(de(de(de(Gd,ooe,Eoe),aoe,Aoe),soe,$oe),loe,zoe),coe,Roe),uoe,Moe),doe,Ioe),foe,Loe),poe,Noe),moe,Doe),de(de(de(de(de(de(de(de(de(de(Gd,hoe,Ooe),goe,Foe),voe,Boe),yoe,Voe),boe,Woe),xoe,Uoe),Soe,Hoe),woe,Goe),koe,qoe),Coe,Koe),de(de(de(de(Gd,joe,Xoe),Poe,Yoe),_oe,Qoe),Toe,Zoe);var Joe="kit",eae="kit-duotone",tae="Kit",nae="Kit Duotone";de(de({},Joe,tae),eae,nae);var rae={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"}},iae={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"]},Nv={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"}},oae=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],qT=["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(ioe,oae),aae=["solid","regular","light","thin","duotone","brands","semibold"],KT=[1,2,3,4,5,6,7,8,9,10],sae=KT.concat([11,12,13,14,15,16,17,18,19,20]),lae=["aw","fw","pull-left","pull-right"],cae=[].concat(jr(Object.keys(iae)),aae,lae,["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(KT.map(function(e){return"".concat(e,"x")})).concat(sae.map(function(e){return"w-".concat(e)})),uae={"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"}},Ci="___FONT_AWESOME___",Dv=16,XT="fa",YT="svg-inline--fa",Ca="data-fa-i2svg",Ov="data-fa-pseudo-element",dae="data-fa-pseudo-element-pending",lx="data-prefix",cx="data-icon",P3="fontawesome-i2svg",fae="async",pae=["HTML","HEAD","STYLE","SCRIPT"],QT=["::before","::after",":before",":after"],ZT=function(){try{return!0}catch{return!1}}();function Hu(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[Xt]}})}var JT=H({},ST);JT[Xt]=H(H(H(H({},{"fa-duotone":"duotone"}),ST[Xt]),C3.kit),C3["kit-duotone"]);var mae=Hu(JT),Fv=H({},Xie);Fv[Xt]=H(H(H(H({},{duotone:"fad"}),Fv[Xt]),j3.kit),j3["kit-duotone"]);var _3=Hu(Fv),Bv=H({},Nv);Bv[Xt]=H(H({},Bv[Xt]),roe.kit);var ux=Hu(Bv),Vv=H({},rae);Vv[Xt]=H(H({},Vv[Xt]),toe.kit);Hu(Vv);var hae=bie,e7="fa-layers-text",gae=xie,vae=H({},Gie);Hu(vae);var yae=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],_0=Sie,bae=[].concat(jr(Yie),jr(cae)),Tc=yo.FontAwesomeConfig||{};function xae(e){var t=tt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Sae(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(tt&&typeof tt.querySelector=="function"){var wae=[["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"]];wae.forEach(function(e){var t=Lm(e,2),n=t[0],r=t[1],i=Sae(xae(n));i!=null&&(Tc[r]=i)})}var t7={styleDefault:"solid",familyDefault:Xt,cssPrefix:XT,replacementClass:YT,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Tc.familyPrefix&&(Tc.cssPrefix=Tc.familyPrefix);var ol=H(H({},t7),Tc);ol.autoReplaceSvg||(ol.observeMutations=!1);var ue={};Object.keys(t7).forEach(function(e){Object.defineProperty(ue,e,{enumerable:!0,set:function(n){ol[e]=n,Ec.forEach(function(r){return r(ue)})},get:function(){return ol[e]}})});Object.defineProperty(ue,"familyPrefix",{enumerable:!0,set:function(t){ol.cssPrefix=t,Ec.forEach(function(n){return n(ue)})},get:function(){return ol.cssPrefix}});yo.FontAwesomeConfig=ue;var Ec=[];function kae(e){return Ec.push(e),function(){Ec.splice(Ec.indexOf(e),1)}}var Ua=Dv,Br={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Cae(e){if(!(!e||!$i)){var t=tt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=tt.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 tt.head.insertBefore(t,r),e}}var jae="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function T3(){for(var e=12,t="";e-- >0;)t+=jae[Math.random()*62|0];return t}function xl(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function dx(e){return e.classList?xl(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function n7(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Pae(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(n7(e[n]),'" ')},"").trim()}function Nm(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function fx(e){return e.size!==Br.size||e.x!==Br.x||e.y!==Br.y||e.rotate!==Br.rotate||e.flipX||e.flipY}function _ae(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 Tae(e){var t=e.transform,n=e.width,r=n===void 0?Dv:n,i=e.height,o=i===void 0?Dv:i,a="";return xT?a+="translate(".concat(t.x/Ua-r/2,"em, ").concat(t.y/Ua-o/2,"em) "):a+="translate(calc(-50% + ".concat(t.x/Ua,"em), calc(-50% + ").concat(t.y/Ua,"em)) "),a+="scale(".concat(t.size/Ua*(t.flipX?-1:1),", ").concat(t.size/Ua*(t.flipY?-1:1),") "),a+="rotate(".concat(t.rotate,"deg) "),a}var Eae=`: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 r7(){var e=XT,t=YT,n=ue.cssPrefix,r=ue.replacementClass,i=Eae;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 E3=!1;function T0(){ue.autoAddCss&&!E3&&(Cae(r7()),E3=!0)}var Aae={mixout:function(){return{dom:{css:r7,insertCss:T0}}},hooks:function(){return{beforeDOMElementCreation:function(){T0()},beforeI2svg:function(){T0()}}}},ji=yo||{};ji[Ci]||(ji[Ci]={});ji[Ci].styles||(ji[Ci].styles={});ji[Ci].hooks||(ji[Ci].hooks={});ji[Ci].shims||(ji[Ci].shims=[]);var br=ji[Ci],i7=[],o7=function(){tt.removeEventListener("DOMContentLoaded",o7),Ap=1,i7.map(function(t){return t()})},Ap=!1;$i&&(Ap=(tt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(tt.readyState),Ap||tt.addEventListener("DOMContentLoaded",o7));function $ae(e){$i&&(Ap?setTimeout(e,0):i7.push(e))}function Gu(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"?n7(e):"<".concat(t," ").concat(Pae(r),">").concat(o.map(Gu).join(""),"</").concat(t,">")}function A3(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var E0=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 a7(e){return jr(e).length!==1?null:e.codePointAt(0).toString(16)}function $3(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 Wv(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=$3(t);typeof br.hooks.addPack=="function"&&!i?br.hooks.addPack(e,$3(t)):br.styles[e]=H(H({},br.styles[e]||{}),o),e==="fas"&&Wv("fa",t)}var vu=br.styles,zae=br.shims,s7=Object.keys(ux),Rae=s7.reduce(function(e,t){return e[t]=Object.keys(ux[t]),e},{}),px=null,l7={},c7={},u7={},d7={},f7={};function Mae(e){return~bae.indexOf(e)}function Iae(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!Mae(i)?i:null}var p7=function(){var t=function(o){return E0(vu,function(a,l,c){return a[c]=E0(l,o,{}),a},{})};l7=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}),c7=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}),f7=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 vu||ue.autoFetchSvg,r=E0(zae,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:{}});u7=r.names,d7=r.unicodes,px=Dm(ue.styleDefault,{family:ue.familyDefault})};kae(function(e){px=Dm(e.styleDefault,{family:ue.familyDefault})});p7();function mx(e,t){return(l7[e]||{})[t]}function Lae(e,t){return(c7[e]||{})[t]}function ea(e,t){return(f7[e]||{})[t]}function m7(e){return u7[e]||{prefix:null,iconName:null}}function Nae(e){var t=d7[e],n=mx("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function bo(){return px}var h7=function(){return{prefix:null,iconName:null,rest:[]}};function Dae(e){var t=Xt,n=s7.reduce(function(r,i){return r[i]="".concat(ue.cssPrefix,"-").concat(i),r},{});return HT.forEach(function(r){(e.includes(n[r])||e.some(function(i){return Rae[r].includes(i)}))&&(t=r)}),t}function Dm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Xt:n,i=mae[r][e];if(r===Uu&&!e)return"fad";var o=_3[r][e]||_3[r][i],a=e in br.styles?e:null,l=o||a||null;return l}function Oae(e){var t=[],n=null;return e.forEach(function(r){var i=Iae(ue.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function z3(e){return e.sort().filter(function(t,n,r){return r.indexOf(t)===n})}var R3=qT.concat(GT);function Om(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,i=null,o=z3(e.filter(function(h){return R3.includes(h)})),a=z3(e.filter(function(h){return!R3.includes(h)})),l=o.filter(function(h){return i=h,!wT.includes(h)}),c=Lm(l,1),u=c[0],d=u===void 0?null:u,f=Dae(o),p=H(H({},Oae(a)),{},{prefix:Dm(d,{family:f})});return H(H(H({},p),Wae({values:e,family:f,styles:vu,config:ue,canonical:p,givenPrefix:i})),Fae(r,i,p))}function Fae(e,t,n){var r=n.prefix,i=n.iconName;if(e||!r||!i)return{prefix:r,iconName:i};var o=t==="fa"?m7(i):{},a=ea(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!vu.far&&vu.fas&&!ue.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}var Bae=HT.filter(function(e){return e!==Xt||e!==Uu}),Vae=Object.keys(Nv).filter(function(e){return e!==Xt}).map(function(e){return Object.keys(Nv[e])}).flat();function Wae(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===Uu,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&&Bae.includes(n)){var v=Object.keys(l).find(function(x){return Vae.includes(x)});if(v||u.autoFetchSvg){var y=Kie.get(n).defaultShortPrefixId;r.prefix=y,r.iconName=ea(r.prefix,r.iconName)||r.iconName}}return(r.prefix==="fa"||o==="fa")&&(r.prefix=bo()||"fas"),r}var Uae=function(){function e(){uie(this,e),this.definitions={}}return fie(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]),Wv(l,a[l]);var c=ux[Xt][l];c&&Wv(c,a[l]),p7()})}},{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}}])}(),M3=[],ws={},Ds={},Hae=Object.keys(Ds);function Gae(e,t){var n=t.mixoutsTo;return M3=e,ws={},Object.keys(Ds).forEach(function(r){Hae.indexOf(r)===-1&&delete Ds[r]}),M3.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(a){typeof i[a]=="function"&&(n[a]=i[a]),Ep(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){ws[a]||(ws[a]=[]),ws[a].push(o[a])})}r.provides&&r.provides(Ds)}),n}function Uv(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=ws[e]||[];return o.forEach(function(a){t=a.apply(null,[t].concat(r))}),t}function ja(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=ws[e]||[];i.forEach(function(o){o.apply(null,n)})}function xo(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Ds[e]?Ds[e].apply(null,t):void 0}function Hv(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||bo();if(t)return t=ea(n,t)||t,A3(g7.definitions,n,t)||A3(br.styles,n,t)}var g7=new Uae,qae=function(){ue.autoReplaceSvg=!1,ue.observeMutations=!1,ja("noAuto")},Kae={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return $i?(ja("beforeI2svg",t),xo("pseudoElements2svg",t),xo("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,$ae(function(){Yae({autoReplaceSvgRoot:n}),ja("watch",t)})}},Xae={icon:function(t){if(t===null)return null;if(Ep(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:ea(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=Dm(t[0]);return{prefix:r,iconName:ea(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(ue.cssPrefix,"-"))>-1||t.match(hae))){var i=Om(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||bo(),iconName:ea(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=bo();return{prefix:o,iconName:ea(o,t)||t}}}},Gn={noAuto:qae,config:ue,dom:Kae,parse:Xae,library:g7,findIconDefinition:Hv,toHtml:Gu},Yae=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?tt:n;(Object.keys(br.styles).length>0||ue.autoFetchSvg)&&$i&&ue.autoReplaceSvg&&Gn.dom.i2svg({node:r})};function Fm(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Gu(r)})}}),Object.defineProperty(e,"node",{get:function(){if($i){var r=tt.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Qae(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(fx(a)&&n.found&&!r.found){var l=n.width,c=n.height,u={x:l/c/2,y:.5};i.style=Nm(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 Zae(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 Jae(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function hx(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)})};!Jae(u.attributes)&&!u.attributes["aria-hidden"]&&(x.attributes["aria-hidden"]="true"),f&&(x.attributes[Ca]="");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?xo("generateAbstractMask",b)||{children:[],attributes:{}}:xo("generateAbstractIcon",b)||{children:[],attributes:{}},S=g.children,w=g.attributes;return b.children=S,b.attributes=w,l?Zae(b):Qae(b)}function I3(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[Ca]="");var u=H({},o.styles);fx(i)&&(u.transform=Tae({transform:i,width:n,height:r}),u["-webkit-transform"]=u.transform);var d=Nm(u);d.length>0&&(c.style=d);var f=[];return f.push({tag:"span",attributes:c,children:[t]}),f}function ese(e){var t=e.content,n=e.extra,r=H(H({},n.attributes),{},{class:n.classes.join(" ")}),i=Nm(n.styles);i.length>0&&(r.style=i);var o=[];return o.push({tag:"span",attributes:r,children:[t]}),o}var A0=br.styles;function Gv(e){var t=e[0],n=e[1],r=e.slice(4),i=Lm(r,1),o=i[0],a=null;return Array.isArray(o)?a={tag:"g",attributes:{class:"".concat(ue.cssPrefix,"-").concat(_0.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ue.cssPrefix,"-").concat(_0.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(ue.cssPrefix,"-").concat(_0.PRIMARY),fill:"currentColor",d:o[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:a}}var tse={found:!1,width:512,height:512};function nse(e,t){!ZT&&!ue.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function qv(e,t){var n=t;return t==="fa"&&ue.styleDefault!==null&&(t=bo()),new Promise(function(r,i){if(n==="fa"){var o=m7(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&A0[t]&&A0[t][e]){var a=A0[t][e];return r(Gv(a))}nse(e,t),r(H(H({},tse),{},{icon:ue.showMissingIcons&&e?xo("missingIconAbstract")||{}:{}}))})}var L3=function(){},Kv=ue.measurePerformance&&Ud&&Ud.mark&&Ud.measure?Ud:{mark:L3,measure:L3},oc='FA "7.3.1"',rse=function(t){return Kv.mark("".concat(oc," ").concat(t," begins")),function(){return v7(t)}},v7=function(t){Kv.mark("".concat(oc," ").concat(t," ends")),Kv.measure("".concat(oc," ").concat(t),"".concat(oc," ").concat(t," begins"),"".concat(oc," ").concat(t," ends"))},gx={begin:rse,end:v7},Lf=function(){};function N3(e){var t=e.getAttribute?e.getAttribute(Ca):null;return typeof t=="string"}function ise(e){var t=e.getAttribute?e.getAttribute(lx):null,n=e.getAttribute?e.getAttribute(cx):null;return t&&n}function ose(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ue.replacementClass)}function ase(){if(ue.autoReplaceSvg===!0)return Nf.replace;var e=Nf[ue.autoReplaceSvg];return e||Nf.replace}function sse(e){return tt.createElementNS("http://www.w3.org/2000/svg",e)}function lse(e){return tt.createElement(e)}function y7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?sse:lse:n;if(typeof e=="string")return tt.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(y7(a,{ceFn:r}))}),i}function cse(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Nf={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(y7(i),n)}),n.getAttribute(Ca)===null&&ue.keepOriginalSource){var r=tt.createComment(cse(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~dx(n).indexOf(ue.replacementClass))return Nf.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 Gu(l)}).join(`
`);n.setAttribute(Ca,""),n.innerHTML=a}};function D3(e){e()}function b7(e,t){var n=typeof t=="function"?t:Lf;if(e.length===0)n();else{var r=D3;ue.mutateApproach===fae&&(r=yo.requestAnimationFrame||D3),r(function(){var i=ase(),o=gx.begin("mutate");e.map(i),o(),n()})}}var vx=!1;function x7(){vx=!0}function Xv(){vx=!1}var $p=null;function O3(e){if(k3&&ue.observeMutations){var t=e.treeCallback,n=t===void 0?Lf:t,r=e.nodeCallback,i=r===void 0?Lf:r,o=e.pseudoElementsCallback,a=o===void 0?Lf:o,l=e.observeMutationsRoot,c=l===void 0?tt:l;$p=new k3(function(u){if(!vx){var d=bo();xl(u).forEach(function(f){if(f.type==="childList"&&f.addedNodes.length>0&&!N3(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"&&N3(f.target)&&~yae.indexOf(f.attributeName))if(f.attributeName==="class"&&ise(f.target)){var p=Om(dx(f.target)),h=p.prefix,v=p.iconName;f.target.setAttribute(lx,h||d),v&&f.target.setAttribute(cx,v)}else ose(f.target)&&i(f.target)})}}),$i&&$p.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function use(){$p&&$p.disconnect()}function dse(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 fse(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=Om(dx(e));return i.prefix||(i.prefix=bo()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=Lae(i.prefix,e.innerText)||mx(i.prefix,a7(e.innerText))),!i.iconName&&ue.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function pse(e){var t=xl(e.attributes).reduce(function(n,r){return n.name!=="class"&&n.name!=="style"&&(n[r.name]=r.value),n},{});return t}function mse(){return{iconName:null,prefix:null,transform:Br,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function F3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=fse(e),r=n.iconName,i=n.prefix,o=n.rest,a=pse(e),l=Uv("parseNodeAttributes",{},e),c=t.styleParser?dse(e):[];return H({iconName:r,prefix:i,transform:Br,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:c,attributes:a}},l)}var hse=br.styles;function S7(e){var t=ue.autoReplaceSvg==="nest"?F3(e,{styleParser:!1}):F3(e);return~t.extra.classes.indexOf(e7)?xo("generateLayersText",e,t):xo("generateSvgReplacementMutation",e,t)}function gse(){return[].concat(jr(GT),jr(qT))}function B3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!$i)return Promise.resolve();var n=tt.documentElement.classList,r=function(f){return n.add("".concat(P3,"-").concat(f))},i=function(f){return n.remove("".concat(P3,"-").concat(f))},o=ue.autoFetchSvg?gse():wT.concat(Object.keys(hse));o.includes("fa")||o.push("fa");var a=[".".concat(e7,":not([").concat(Ca,"])")].concat(o.map(function(d){return".".concat(d,":not([").concat(Ca,"])")})).join(", ");if(a.length===0)return Promise.resolve();var l=[];try{l=xl(e.querySelectorAll(a))}catch{}if(l.length>0)r("pending"),i("complete");else return Promise.resolve();var c=gx.begin("onTree"),u=l.reduce(function(d,f){try{var p=S7(f);p&&d.push(p)}catch(h){ZT||h.name==="MissingIcon"&&console.error(h)}return d},[]);return new Promise(function(d,f){Promise.all(u).then(function(p){b7(p,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),c(),d()})}).catch(function(p){c(),f(p)})})}function vse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;S7(e).then(function(n){n&&b7([n],t)})}function yse(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Hv(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:Hv(i||{})),e(r,H(H({},n),{},{mask:i}))}}var bse=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?Br: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 Fm(H({type:"icon"},t),function(){return ja("beforeDOMElementCreation",{iconDefinition:t,params:n}),hx({icons:{main:Gv(S),mask:c?Gv(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:b,iconName:g,transform:H(H({},Br),i),symbol:a,maskId:d,extra:{attributes:v,styles:x,classes:p}})})}},xse={mixout:function(){return{icon:yse(bse)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=B3,n.nodeCallback=vse,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?tt:r,o=n.callback,a=o===void 0?function(){}:o;return B3(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([qv(i,o),c.iconName?qv(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(h){var v=Lm(h,2),y=v[0],x=v[1];f([n,hx({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=Nm(l);c.length>0&&(i.style=c);var u;return fx(a)&&(u=xo("generateAbstractTransformGrouping",{main:o,transform:a,containerWidth:o.width,iconWidth:o.width})),r.push(u||o.icon),{children:r,attributes:i}}}},Sse={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 Fm({type:"layer"},function(){ja("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(jr(o)).join(" ")},children:a}]})}}}},wse={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 Fm({type:"counter",content:n},function(){return ja("beforeDOMElementCreation",{content:n,params:r}),ese({content:n.toString(),extra:{attributes:l,styles:u,classes:["".concat(ue.cssPrefix,"-layers-counter")].concat(jr(o))}})})}}}},kse={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?Br: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 Fm({type:"text",content:n},function(){return ja("beforeDOMElementCreation",{content:n,params:r}),I3({content:n,transform:H(H({},Br),o),extra:{attributes:u,styles:f,classes:["".concat(ue.cssPrefix,"-layers-text")].concat(jr(l))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.transform,o=r.extra,a=null,l=null;if(xT){var c=parseInt(getComputedStyle(n).fontSize,10),u=n.getBoundingClientRect();a=u.width/c,l=u.height/c}return Promise.resolve([n,I3({content:n.innerHTML,width:a,height:l,transform:i,extra:o,watchable:!0})])}}},w7=new RegExp('"',"ug"),V3=[1105920,1112319],W3=H(H(H(H({},{FontAwesome:{normal:"fas",400:"fas"}}),qie),uae),noe),Yv=Object.keys(W3).reduce(function(e,t){return e[t.toLowerCase()]=W3[t],e},{}),Cse=Object.keys(Yv).reduce(function(e,t){var n=Yv[t];return e[t]=n[900]||jr(Object.entries(n))[0][1],e},{});function jse(e){var t=e.replace(w7,"");return a7(jr(t)[0]||"")}function Pse(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),r=n.replace(w7,""),i=r.codePointAt(0),o=i>=V3[0]&&i<=V3[1],a=r.length===2?r[0]===r[1]:!1;return o||a||t}function _se(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Yv[n]||{})[i]||Cse[n]}function U3(e,t){var n="".concat(dae).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=xl(e.children),a=o.filter(function(P){return P.getAttribute(Ov)===t})[0],l=yo.getComputedStyle(e,t),c=l.getPropertyValue("font-family"),u=c.match(gae),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=_se(c,d),v=jse(p),y=u[0].startsWith("FontAwesome"),x=Pse(l),b=mx(h,v),g=b;if(y){var S=Nae(v);S.iconName&&S.prefix&&(b=S.iconName,h=S.prefix)}if(b&&!x&&(!a||a.getAttribute(lx)!==h||a.getAttribute(cx)!==g)){e.setAttribute(n,g),a&&e.removeChild(a);var w=mse(),k=w.extra;k.attributes[Ov]=t,qv(b,h).then(function(P){var j=hx(H(H({},w),{},{icons:{main:P,mask:h7()},prefix:h,iconName:g,extra:k,watchable:!0})),_=tt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(_,e.firstChild):e.appendChild(_),_.outerHTML=j.map(function(M){return Gu(M)}).join(`
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function Tse(e){return Promise.all([U3(e,"::before"),U3(e,"::after")])}function Ese(e){return e.parentNode!==document.head&&!~pae.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Ov)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var Ase=function(t){return!!t&&QT.some(function(n){return t.includes(n)})},$se=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=If(r),o;try{for(i.s();!(o=i.n()).done;){var a=o.value;if(Ase(a)){var l=QT.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 H3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if($i){var n;if(t)n=e;else if(ue.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var r=new Set,i=If(document.styleSheets),o;try{for(i.s();!(o=i.n()).done;){var a=o.value;try{var l=If(a.cssRules),c;try{for(l.s();!(c=l.n()).done;){var u=c.value,d=$se(u.selectorText),f=If(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=xl(n).filter(Ese).map(Tse),g=gx.begin("searchPseudoElements");x7(),Promise.all(b).then(function(){g(),Xv(),y()}).catch(function(){g(),Xv(),x()})})}}var zse={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=H3,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?tt:r;ue.searchPseudoElements&&H3(i)}}},G3=!1,Rse={mixout:function(){return{dom:{unwatch:function(){x7(),G3=!0}}}},hooks:function(){return{bootstrap:function(){O3(Uv("mutationObserverCallbacks",{}))},noAuto:function(){use()},watch:function(n){var r=n.observeMutationsRoot;G3?Xv():O3(Uv("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},q3=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)},Mse={mixout:function(){return{parse:{transform:function(n){return q3(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=q3(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)}]}]}}}},$0={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 Ise(e){return e.tag==="g"?e.children:[e]}var Lse={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?Om(i.split(" ").map(function(a){return a.trim()})):h7();return o.prefix||(o.prefix=bo()),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=_ae({transform:c,containerWidth:f,iconWidth:u}),v={tag:"rect",attributes:H(H({},$0),{},{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||T3()),S="clip-".concat(l||T3()),w={tag:"mask",attributes:H(H({},$0),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,b]},k={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:Ise(p)},w]};return r.push(k,{tag:"rect",attributes:H({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(g,")")},$0)}),{children:r,attributes:i}}}},Nse={provides:function(t){var n=!1;yo.matchMedia&&(n=yo.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}}}},Dse={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}}}},Ose=[Aae,xse,Sse,wse,kse,zse,Rse,Mse,Lse,Nse,Dse];Gae(Ose,{mixoutsTo:Gn});Gn.noAuto;var al=Gn.config;Gn.library;Gn.dom;var k7=Gn.parse;Gn.findIconDefinition;Gn.toHtml;var Fse=Gn.icon;Gn.layer;Gn.text;Gn.counter;function Bse(e){return e=e-0,e===e}function C7(e){return Bse(e)?e:(e=e.replace(/[_-]+(.)?/g,(t,n)=>n?n.toUpperCase():""),e.charAt(0).toLowerCase()+e.slice(1))}var Vse=(e,t)=>Vt.createElement("stop",{key:`${t}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function Wse(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Ha=new Map,Use=1e3;function Hse(e){if(Ha.has(e))return Ha.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=C7(c);t[d.startsWith("webkit")?Wse(d):d]=u}}}n=o+1}if(Ha.size===Use){const i=Ha.keys().next().value;i&&Ha.delete(i)}return Ha.set(e,t),t}function j7(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}}),j7(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=Hse(String(p));break}case f.startsWith("aria-"):case f.startsWith("data-"):{o[f.toLowerCase()]=p;break}default:o[C7(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(Vse)))}return e(t.tag,{...o,...d},...r)}var Gse=j7.bind(null,Vt.createElement),X3=(e,t)=>{const n=m.useId();return e||(t?n:void 0)},qse=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 al&&typeof al.searchPseudoElementsFullScan=="boolean"?"7.0.0":"6.0.0",Xse=Number.parseInt(Kse)>=7,Yse=()=>Xse,Ac="fa",Rt={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"},Qse={left:"fa-pull-left",right:"fa-pull-right"},Zse={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},Jse={"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"},fr={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 ele(e){const t=al.cssPrefix||al.familyPrefix||Ac;return t===Ac?e:e.replace(new RegExp(String.raw`(?<=^|\s)${Ac}-`,"g"),`${t}-`)}function tle(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:K,swing:ne,wag:z,className:X}=e,V=[];return X&&V.push(...X.split(" ")),t&&V.push(Rt.beat),n&&V.push(Rt.fade),r&&V.push(Rt.beatFade),i&&V.push(Rt.bounce),o&&V.push(Rt.shake),a&&V.push(Rt.spin),c&&V.push(Rt.spinReverse),l&&V.push(Rt.spinPulse),u&&V.push(Rt.pulse),d&&V.push(fr.fixedWidth),f&&V.push(fr.inverse),p&&V.push(fr.border),h===!0&&V.push(fr.flip),(h==="horizontal"||h==="both")&&V.push(fr.flipHorizontal),(h==="vertical"||h==="both")&&V.push(fr.flipVertical),v!=null&&V.push(Jse[v]),y!=null&&y!==0&&V.push(Zse[y]),x!=null&&V.push(Qse[x]),b&&V.push(fr.swapOpacity),Yse()?(g&&V.push(fr.rotateBy),S&&V.push(fr.widthAuto),w&&V.push(fr.canvasSquare),k&&V.push(fr.canvasRoomy),P&&V.push(Rt.flip360),j&&V.push(Rt.buzz),_&&V.push(Rt.float),M&&V.push(Rt.jello),T&&V.push(Rt.spinSnap),O&&V.push(Rt.spinSnap4),K&&V.push(Rt.spinSnap8),ne&&V.push(Rt.swing),z&&V.push(Rt.wag),(al.cssPrefix||al.familyPrefix||Ac)===Ac?V:V.map(ele)):V}var nle=e=>typeof e=="object"&&"icon"in e&&!!e.icon;function Y3(e){if(e)return nle(e)?e:k7.icon(e)}function rle(e){return Object.keys(e)}var Q3=new qse("FontAwesomeIcon"),P7={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},ile=new Set(Object.keys(P7)),Oe=Vt.forwardRef((e,t)=>{const n={...P7,...e},{icon:r,mask:i,symbol:o,title:a,titleId:l,maskId:c,transform:u}=n,d=X3(c,!!i),f=X3(l,!!a),p=Y3(r);if(!p)return Q3.error("Icon lookup is undefined",r),null;const h=tle(n),v=typeof u=="string"?k7.transform(u):u,y=Y3(i),x=Fse(p,{...h.length>0&&{classes:h},...v&&{transform:v},...y&&{mask:y},symbol:o,title:a,titleId:f,maskId:d});if(!x)return Q3.error("Could not find icon",p),null;const{abstract:b}=x,g={ref:t};for(const S of rle(n))ile.has(S)||(g[S]=n[S]);return Gse(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 Qv={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"]},yx={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"]},bx={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"]},Z3={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"]},ole={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"]},_7={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"]},ale={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"]},sle={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"]},lle={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"]},cle={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"]},T7={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"]},J3={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"]},E7={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"]},A7={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"]},ule={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"]},$7={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"]},dle={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"]},fle={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"]},ple={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"]},z7={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"]},R7={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"]},mle={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"]},hle={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"]},gle={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"]},xx={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"]},vle={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"]},yle={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"]},M7={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"]},I7={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"]},ble={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"]},Pa={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"]},Sx={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"]},xle={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"]},Sle={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"]},wle={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"]},kle={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"]},L7={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"]},Cle={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"]},jle={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"]},Ple={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"]},zp={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"]},Bm={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"]},Vm={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"]},_le={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"]},wx={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"]},N7={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"]},D7={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"]},Tle={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"]},O7={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"]},Rp={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"]},Ele={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"]},Ale={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"]},Wm={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"]},kx={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"]},$le={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"]},zle={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"]},Rle=zle;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 zt({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 gn({title:e,subtitle:t,action:n}){return s.jsxs(St,{justify:"space-between",align:"flex-start",mb:4,children:[s.jsxs(se,{children:[s.jsx(J,{color:$.text,fontSize:"1rem",fontWeight:"800",mb:0,children:e}),t&&s.jsx(J,{color:$.text3,fontSize:"0.72rem",children:t})]}),n]})}function Ve({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 Ge({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(St,{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(J,{color:$.text,fontSize:"1.15rem",fontWeight:"800",lineHeight:"1",children:t}),s.jsx(J,{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(J,{color:i[t],fontSize:r??"0.78rem",fontFamily:n?"mono":void 0,as:"span",children:e})}function wt({children:e}){return s.jsx(he,{justify:"space-between",align:"center",children:e})}function Mle({value:e,color:t=$.accent}){return s.jsx(Cp,{value:e,size:"xs",borderRadius:"full",mt:1,sx:{"& > div":{background:t,transition:"width .4s ease"},background:"#2a2a2a"}})}function sl({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 F7({icon:e,color:t,size:n="0.75rem"}){return s.jsx(Oe,{icon:e,style:{color:t??$.text2,fontSize:n,marginRight:6}})}function Ce({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 Cx({tabs:e,active:t,onChange:n}){return s.jsx(he,{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 Ile({value:e,onChange:t,placeholder:n}){return s.jsxs(se,{position:"relative",my:2,children:[s.jsx(Oe,{icon:lle,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 Um({children:e}){return s.jsx(se,{border:"1px dashed",borderColor:$.border,borderRadius:"10px",p:2.5,mt:2,children:s.jsx(J,{color:$.text3,fontSize:"0.64rem",fontStyle:"italic",children:e})})}function Lle({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 Nle(){const[e,t]=m.useState(!0);return s.jsxs(zt,{children:[s.jsx(gn,{title:"Bonjour, Admin",subtitle:"Vue d'ensemble"}),s.jsxs(pn,{columns:2,spacing:2,mb:2.5,children:[s.jsx(Ge,{icon:N7,value:312,label:"Total commandes",color:$.accentLight}),s.jsx(Ge,{icon:qu,value:8,label:"En attente",color:$.warning}),s.jsx(Ge,{icon:R7,value:5,label:"En route",color:$.info}),s.jsx(Ge,{icon:Pa,value:299,label:"Terminées",color:$.success}),s.jsx(Ge,{icon:Sx,value:184,label:"Clients",color:$.accentLight}),s.jsx(Ge,{icon:z7,value:6,label:"Livreurs",color:$.secondary})]}),s.jsxs(Ve,{mb:0,children:[s.jsxs(wt,{children:[s.jsxs(Y,{children:[s.jsx(F7,{icon:bx,color:$.secondary}),"Notifications Telegram"]}),s.jsx(Ce,{tone:e?"outlineDanger":"accent",icon:e?D7:M7,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 ek=[{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: karim_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 €"}],tk=[{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 €"}],nk=[{id:"#1029",client:"client_theo · adresse introuvable",extra:"Annulée par le livreur",tone:"warning",label:"Annulée",amount:"19,00 €"}],rk={warning:$.warning,info:$.info,accent:$.accentLight};function ik({o:e,isOpen:t,onClick:n,children:r}){return s.jsxs(Ve,{active:t,onClick:n,children:[s.jsxs(wt,{children:[s.jsx(Y,{mono:!0,children:e.id}),s.jsx("span",{style:{background:`${rk[e.tone]}26`,color:rk[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(wt,{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 Dle(){const[e,t]=m.useState("#1040"),[n,r]=m.useState(null),[i,o]=m.useState(""),a=n==="approuvees"?tk:n==="annulees"?nk:[],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(zt,{children:[s.jsxs(wt,{children:[s.jsx(Ce,{tone:"outline",icon:Rle,children:"Actualiser"}),s.jsx(Ce,{tone:"outline",icon:$le,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 (",tk.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 (",nk.length,")"]})]}),n&&s.jsxs("div",{style:{marginBottom:10},children:[s.jsx(Ile,{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(ik,{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 (",ek.length,")"]}),s.jsx("div",{style:{marginTop:8},children:ek.map(u=>{const d=e===u.id;return s.jsx(ik,{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(Ce,{tone:"accent",icon:yx,children:"Assigner livreur"}),s.jsx(Ce,{tone:"outline",icon:Qv,children:"Passer en route"}),s.jsx(Ce,{tone:"outline",icon:Tle,children:"Proposer adresse"})]})},u.id)})})]})}const ok=[{name:"karim_d",status:"busy",queue:1,today:14,total:512,distance:"1,8 km",eta:"6 min"},{name:"sofia_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:"—"}],Ga={available:$.success,busy:$.warning,offline:$.text3},Ole={available:"Disponible",busy:"Occupé",offline:"Hors ligne"};function Fle(){const[e,t]=m.useState("karim_d"),n=ok.find(r=>r.name===e);return s.jsxs(zt,{children:[s.jsxs(pn,{columns:3,spacing:2,mb:2.5,children:[s.jsx(Ge,{icon:Wm,value:1,label:"Dispo",color:$.success}),s.jsx(Ge,{icon:qu,value:1,label:"Occupés",color:$.warning}),s.jsx(Ge,{icon:_7,value:1,label:"Hors ligne",color:$.text3})]}),s.jsxs(Ve,{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:`${Ga[n.status]}26`,color:Ga[n.status],fontSize:"0.62rem",fontWeight:800,padding:"3px 9px",borderRadius:999},children:[s.jsx(sl,{color:Ga[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"})]}),ok.map(r=>{const i=r.name===e;return s.jsxs(Ve,{active:i,onClick:()=>t(r.name),children:[s.jsxs(wt,{children:[s.jsxs(Y,{children:[s.jsx(sl,{color:Ga[r.status]}),r.name]}),s.jsx("span",{style:{background:`${Ga[r.status]}26`,color:Ga[r.status],fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:Ole[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(Ce,{tone:"outline",icon:zp,children:"Avis"}),s.jsx(Ce,{tone:r.status!=="offline"?"accent":"outline",icon:kx,children:r.status!=="offline"?"Suivre l'itinéraire":"Indisponible"})]})]},r.name)})]})}const Ble=[{label:"1u",price:"12€",active:!0},{label:"3u",price:"30€",active:!0},{label:"5u",price:"45€",active:!1}];function Vle(){const[e,t]=m.useState(Ble),n=r=>{t(i=>i.map((o,a)=>a===r?{...o,active:!o.active}:o))};return s.jsxs(zt,{children:[s.jsx(gn,{title:"Produits (48)",action:s.jsx(Ce,{tone:"accent",icon:wx,children:"Créer"})}),s.jsxs(Ve,{children:[s.jsxs(wt,{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:vle,style:{marginRight:4}}),"3 images ·"," ",s.jsx(Oe,{icon:mle,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?Sle:gle,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(Ce,{tone:"outline",icon:wle,children:"Modifier"}),s.jsx(Ce,{tone:"outlineDanger",icon:A7,children:"Supprimer"})]})]}),s.jsxs(Ve,{mb:0,children:[s.jsxs(wt,{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 Wle=[{id:"a",name:"Fleurs",color:"#10b981"},{id:"b",name:"Résines",color:"#9333ea"},{id:"c",name:"Comestibles",color:"#3dc2f7",soon:!0}];function Ule(){const[e,t]=m.useState(Wle),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(zt,{children:[s.jsx(gn,{title:"Catégories",action:s.jsx(Ce,{tone:"accent",icon:wx,children:"Ajouter"})}),e.map((r,i)=>s.jsx(Ve,{children:s.jsxs(wt,{children:[s.jsxs(Y,{children:[s.jsx(sl,{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:$7,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:L7,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(Ve,{children:[s.jsxs(wt,{children:[s.jsx(Y,{variant:"secondary",size:"0.72rem",children:e}),t&&s.jsx(Ce,{tone:"outlineDanger",icon:Rp,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 No({label:e,value:t,pct:n,color:r,highlight:i}){return s.jsxs("div",{style:{marginBottom:6},children:[s.jsxs(wt,{children:[s.jsxs(Y,{variant:i?"primary":"muted",size:"0.64rem",children:[i&&s.jsx(Oe,{icon:ple,style:{color:$.warning,marginRight:4}}),e]}),s.jsx(Y,{variant:i?"primary":"muted",size:"0.64rem",children:t})]}),s.jsx(Mle,{value:n,color:i?$.warning:r})]})}const qa=["Mai 2026","Juin 2026","Juillet 2026","Août 2026"],Hle=[{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}],Gle=[{key:"quantite",label:"Quantité"},{key:"commandes",label:"Commandes"},{key:"revenus",label:"Revenus"}],qle={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€"}]},z0=[{label:"10h",value:4},{label:"12h",value:18},{label:"14h",value:9},{label:"18h",value:22},{label:"20h",value:31},{label:"22h",value:12}],R0=[{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}],ak=[{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(()=>[...qle[n]].sort((f,p)=>p.value-f.value),[n]),o=i[0].value,a=Math.max(...z0.map(f=>f.value)),l=z0.reduce((f,p)=>p.value>f.value?p:f),c=Math.max(...R0.map(f=>f.value)),u=R0.reduce((f,p)=>p.value>f.value?p:f),d=Math.max(...ak.map(f=>f.value));return s.jsxs(zt,{children:[s.jsx(gn,{title:"Statistiques",subtitle:"Activité globale & produits"}),s.jsxs("div",{style:{maxHeight:560,overflowY:"auto",paddingRight:2},children:[s.jsxs(pn,{columns:2,spacing:2,mb:2.5,children:[s.jsx(Ge,{icon:ule,value:312,label:"Commandes totales",color:$.accentLight}),s.jsx(Ge,{icon:ale,value:"6,4k€",label:"Revenus (terminées)",color:$.success}),s.jsx(Ge,{icon:qu,value:"10,4",label:"Moy. commandes/jour",color:$.info}),s.jsx(Ge,{icon:Z3,value:"Samedi",label:"Jour de pointe",color:$.warning})]}),s.jsxs(Ve,{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(No,{label:"Fleurs — Pack Découverte",value:"86 · 1032€",pct:90,color:$.accent}),s.jsx(No,{label:"Résines — Format Duo",value:"41 · 492€",pct:45,color:$.info})]}),s.jsxs(Ve,{children:[s.jsxs(wt,{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:Ple})}),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:fle})})]}),s.jsx(Y,{variant:"muted",size:"0.6rem",children:"Historique mensuel — cliquez les flèches"}),s.jsx("div",{style:{marginTop:8},children:Hle.map(f=>s.jsx(No,{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:Z3,style:{color:$.warning,marginRight:4}}),"Meilleure journée : 01/08 — 498€"]})]}),s.jsxs(Bl,{title:"Heures d'affluence",onReset:()=>{},since:"15/07/2026",children:[z0.map(f=>s.jsx(No,{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:[R0.map(f=>s.jsx(No,{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:ak.map(f=>s.jsx(No,{label:f.label,value:String(f.value),pct:f.value/d*100,color:$.secondary,highlight:f.value===d},f.label))}),s.jsxs(Ve,{mb:0,children:[s.jsxs(wt,{children:[s.jsx(Y,{variant:"secondary",size:"0.72rem",children:"Top produits"}),s.jsx(Ce,{tone:"outlineDanger",icon:Rp,onClick:()=>{},children:"Réinitialiser"})]}),s.jsx("div",{style:{marginTop:8},children:s.jsx(Cx,{tabs:Gle,active:n,onChange:r})}),i.map((f,p)=>s.jsx(No,{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 sk=[{name:"client_marie",role:"clients",icon:Sx,tone:$.info,detail:"Cmd: 12 · Points: 340 · Parrain: +8€"},{name:"karim_d",role:"livreurs",icon:I7,tone:$.success,detail:"512 livraisons · connecté aujourd’hui"},{name:"admin_yas",role:"admins",icon:Vm,tone:$.accentLight,detail:"Accès complet à la plateforme"}],Xle=[{key:"tous",label:"Tous",icon:z7,count:3},{key:"clients",label:"Clients",icon:Sx,count:1},{key:"livreurs",label:"Livreurs",icon:I7,count:1},{key:"admins",label:"Admins",icon:Vm,count:1}];function Yle(){const[e,t]=m.useState("tous"),n=e==="tous"?sk:sk.filter(r=>r.role===e);return s.jsxs(zt,{children:[s.jsx(pn,{columns:4,spacing:1.5,mb:2.5,children:Xle.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(Ve,{children:[s.jsxs(wt,{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 lk=[{id:"perso",icon:J3,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:T7,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:yle,title:"Parrainage",body:"Active le solde de parrainage, utilisable directement au moment du paiement par le filleul.",hasSwitch:!0},{id:"points",icon:zp,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:xle,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:zp,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:ole,title:"Récompenses par palier",body:"Seuil de points → produit offert ou à -50%. Récapitulatif généré automatiquement.",hasSwitch:!0},{id:"horaires",icon:Qv,title:"Horaires de livraison",body:"Lundi → Vendredi : 11h00–22h30 · Samedi : 12h00–23h00 · Dimanche : fermé."},{id:"zones",icon:sle,title:"Zones de livraison",body:"3 zones actives · minimum de commande et liste de codes postaux par zone, ajout en masse."},{id:"crypto",icon:jle,title:"Paiement crypto",body:"BTC, ETH, LTC, USDT acceptés (NowPayments). Clé API et secret IPN masqués.",hasSwitch:!0},{id:"telegram",icon:dle,title:"Notifications Telegram",body:"Bot configuré — @votre_bot · authentification à deux facteurs activée.",hasSwitch:!0},{id:"mode-livraison",icon:Qv,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:J3,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 Qle(){const[e,t]=m.useState("crypto"),[n,r]=m.useState(!0),[i,o]=m.useState(!0);return s.jsxs(zt,{children:[s.jsx(gn,{title:"Paramètres",subtitle:`${lk.length} sections — cliquez pour ouvrir`}),s.jsx("div",{style:{maxHeight:480,overflowY:"auto",paddingRight:2},children:lk.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(Ve,{onClick:()=>t(l?null:a.id),children:[s.jsxs(wt,{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(Lle,{isOn:c,onToggle:()=>u(d=>!d)})}),a.hasSwitch&&a.id!=="crypto"&&a.id!=="telegram"&&s.jsx(Oe,{icon:bx,style:{color:$.success,fontSize:"0.55rem"}}),s.jsx(Oe,{icon:l?$7:L7,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 Zle=[{id:"1",driver:"karim_d",message:"Accès bloqué, portail fermé",time:"03/08/2026, 14:32",active:!0},{id:"2",driver:"sofia_l",message:"Client injoignable",time:"02/08/2026, 19:05",active:!1}];function Jle(){const[e,t]=m.useState(Zle),n=r=>{t(i=>i.map(o=>o.id===r?{...o,active:!1}:o))};return s.jsxs(zt,{children:[s.jsx(gn,{title:"Alertes",subtitle:"Cliquez « Résoudre » pour tester"}),e.map(r=>s.jsxs(Ve,{children:[s.jsxs(wt,{children:[s.jsxs(Y,{variant:r.active?"danger":"secondary",children:[s.jsx(Oe,{icon:Bm,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(wt,{children:[s.jsx(Y,{variant:"muted",size:"0.62rem",children:r.time}),r.active&&s.jsx(Ce,{tone:"success",icon:Pa,onClick:()=>n(r.id),children:"Résoudre"})]})]},r.id))]})}const ece=[{id:"1",wrong:"10 rue de la paix",right:"10 Rue de la Paix, 75001 Paris"}];function tce(){const[e,t]=m.useState(ece),[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(zt,{children:[s.jsx(gn,{title:"Corrections d'adresses",action:s.jsx(Ce,{tone:"accent",icon:wx,onClick:()=>r(u=>!u),children:n?"Fermer":"Ajouter"})}),n&&s.jsxs(Ve,{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(Ce,{tone:"accent",onClick:c,children:"Ajouter la correction"})]}),e.map(u=>s.jsxs(Ve,{children:[s.jsx(Y,{variant:"danger",size:"0.72rem",children:u.wrong}),s.jsx("div",{style:{margin:"3px 0"},children:s.jsx(Oe,{icon:Ale,style:{color:$.text3,fontSize:"0.62rem"}})}),s.jsx(Y,{variant:"success",size:"0.72rem",children:u.right})]},u.id))]})}function nce(){const[e,t]=m.useState(!1);return s.jsxs(zt,{children:[s.jsx(gn,{title:"Cabine — Nadia",subtitle:"Suivi des opérations"}),s.jsxs(pn,{columns:2,spacing:2,mb:2.5,children:[s.jsx(Ge,{icon:N7,value:11,label:"Commandes actives",color:$.info}),s.jsx(Ge,{icon:R7,value:4,label:"En route",color:$.warning}),s.jsx(Ge,{icon:qu,value:3,label:"En attente",color:$.accentLight}),s.jsx(Ge,{icon:yx,value:4,label:"Livreurs dispo",color:$.success}),s.jsx(Ge,{icon:xx,value:2,label:"Livreurs occupés",color:$.warning}),s.jsx(Ge,{icon:_le,value:299,label:"Total terminées",color:$.success})]}),s.jsx(Ve,{mb:0,children:s.jsxs(wt,{children:[s.jsxs(Y,{children:[s.jsx(F7,{icon:bx,color:$.secondary}),"Notifications Telegram"]}),s.jsx(Ce,{tone:e?"outlineDanger":"accent",icon:e?D7:M7,onClick:()=>t(n=>!n),children:e?"Délier":"Lier Telegram"})]})})]})}const rce=[{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 ice(){const[e,t]=m.useState("#1042");return s.jsxs(zt,{children:[s.jsx(gn,{title:"Commandes actives",subtitle:"Cliquez une commande"}),rce.map(n=>{const r=e===n.id;return s.jsxs(Ve,{active:r,onClick:()=>t(r?null:n.id),children:[s.jsxs(wt,{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(Ce,{tone:"accent",icon:ble,children:"Le livreur est là"}),s.jsx(Ce,{tone:"outline",icon:yx,children:"Assigner livreur"}),s.jsx(Ce,{tone:"outline",icon:Wm,children:"Proposer adresse"}),s.jsx(Ce,{tone:"outlineDanger",icon:A7,children:"Supprimer"})]})]},n.id)}),s.jsx(Um,{children:"Contrairement à l'espace admin, la cabine ne peut pas modifier le contenu d'une commande — seulement la faire avancer ou la supprimer."})]})}const oce=[{name:"karim_d",status:"busy",queue:1,total:512},{name:"sofia_l",status:"available",queue:0,total:340}],M0={available:$.success,busy:$.warning,offline:$.text3},ace={available:"Disponible",busy:"Occupé",offline:"Hors ligne"};function sce(){const[e,t]=m.useState("karim_d");return s.jsxs(zt,{children:[s.jsxs(pn,{columns:3,spacing:2,mb:2.5,children:[s.jsx(Ge,{icon:Wm,value:1,label:"Dispo",color:$.success}),s.jsx(Ge,{icon:xx,value:1,label:"Occupés",color:$.warning}),s.jsx(Ge,{icon:_7,value:0,label:"Offline",color:$.text3})]}),oce.map(n=>{const r=e===n.name;return s.jsxs(Ve,{active:r,children:[s.jsxs(wt,{children:[s.jsxs(Y,{children:[s.jsx(sl,{color:M0[n.status]}),n.name]}),s.jsx("span",{style:{background:`${M0[n.status]}26`,color:M0[n.status],fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:ace[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(Ce,{tone:r?"accent":"outline",icon:kx,onClick:()=>t(r?null:n.name),children:r?"Arrêter le suivi":"Suivre"})})]},n.name)}),s.jsx(Um,{children:"La cabine visualise et suit les livreurs en direct, mais l'assignation d'une commande se fait depuis l'écran Commandes."})]})}const ck=[{id:"1",driver:"karim_d",message:"Accès bloqué, portail fermé",time:"14:32",active:!0},{id:"2",driver:"sofia_l",message:"Client injoignable",time:"hier 19:05",active:!1}];function lce(){const[e,t]=m.useState("toutes"),n=e==="toutes"?ck:ck.filter(r=>r.active);return s.jsxs(zt,{children:[s.jsx(gn,{title:"Alertes livreurs"}),s.jsx(Cx,{tabs:[{key:"toutes",label:"Toutes"},{key:"actives",label:"Actives"}],active:e,onChange:t}),n.map(r=>s.jsxs(Ve,{children:[s.jsxs(wt,{children:[s.jsxs(Y,{variant:r.active?"danger":"secondary",children:[s.jsx(Oe,{icon:Bm,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(Um,{children:"La résolution des alertes reste réservée à l'espace admin."})]})}function cce(){const[e,t]=m.useState("35 €"),[n,r]=m.useState(340);return s.jsxs(zt,{children:[s.jsx(gn,{title:"Clients",subtitle:"Réinitialisations rapides"}),s.jsxs(Ve,{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(Ce,{tone:"outline",icon:Rp,onClick:()=>t("0 €"),children:"Reset pénalités"}),s.jsx(Ce,{tone:"outline",icon:Rp,onClick:()=>r(0),children:"Reset points"})]})]}),s.jsx(Um,{children:"Pas de création, modification ni suppression de compte ici — uniquement des remises à zéro ponctuelles."})]})}const I0=["pending","in_progress","arrived","completed"],L0={pending:{label:"En attente",tone:$.info},in_progress:{label:"En cours",tone:$.warning},arrived:{label:"Arrivé",tone:$.accentLight},completed:{label:"Terminée",tone:$.success}},uce=[{key:"available",label:"Disponible",tone:$.success},{key:"busy",label:"Occupé",tone:$.warning},{key:"offline",label:"Hors ligne",tone:$.text3}];function dce(){const[e,t]=m.useState("available"),[n,r]=m.useState("in_progress"),i=()=>{const o=I0.indexOf(n);o<I0.length-1&&r(I0[o+1])};return s.jsxs(zt,{children:[s.jsx(gn,{title:"Mon statut"}),s.jsx("div",{style:{display:"flex",gap:6,marginBottom:12,flexWrap:"wrap"},children:uce.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(sl,{color:o.tone,size:"7px"}),o.label]},o.key)})}),s.jsx(Ve,{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(sl,{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(Ve,{mb:0,children:[s.jsxs(wt,{children:[s.jsx(Y,{mono:!0,children:"Commande #1041"}),s.jsx("span",{style:{background:`${L0[n].tone}26`,color:L0[n].tone,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:L0[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(Ce,{tone:"outline",icon:Wm,children:"Itinéraire"}),s.jsx(Ce,{tone:"outline",icon:kle,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(Ce,{tone:"success",icon:kx,onClick:i,children:"Démarrer la livraison"}),n==="in_progress"&&s.jsx(Ce,{tone:"accent",icon:xx,onClick:i,children:"J'arrive"}),n==="arrived"&&s.jsxs(s.Fragment,{children:[s.jsx(Ce,{tone:"accent",icon:Pa,onClick:i,children:"Terminer"}),s.jsx(Ce,{tone:"outlineDanger",icon:T7,children:"Annuler"})]}),n==="completed"&&s.jsxs(Y,{variant:"success",size:"0.7rem",children:[s.jsx(Oe,{icon:Pa,style:{marginRight:6}}),"Livraison terminée"]})]})]})]})}const Do={police:{title:"Contrôle de police",icon:Vm,hint:"Restez calme, coopérez avec les forces de l’ordre. L’équipe est prévenue."},ambush:{title:"Guet-apens",icon:Bm,hint:"Éloignez-vous du danger si possible. L’équipe et les secours sont prévenus."}};function fce(){const[e,t]=m.useState("idle"),[n,r]=m.useState("police");return s.jsxs(zt,{children:[s.jsx(gn,{title:"Alerte",subtitle:"Bouton d'urgence pour les livreurs"}),e==="idle"&&s.jsx(Ce,{tone:"outlineDanger",icon:Bm,onClick:()=>t("pick"),children:"Déclencher alerte police"}),e==="pick"&&s.jsxs(Ve,{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(Do).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:Do[i].icon,style:{color:$.danger,fontSize:"0.8rem"}}),s.jsx("span",{style:{color:$.text,fontSize:"0.74rem"},children:Do[i].title})]},i))}),s.jsx("div",{style:{marginTop:10},children:s.jsx(Ce,{tone:"outline",onClick:()=>t("idle"),children:"Annuler"})})]}),e==="confirm"&&s.jsxs(Ve,{mb:0,children:[s.jsxs(Y,{size:"0.78rem",variant:"danger",children:[s.jsx(Oe,{icon:Do[n].icon,style:{marginRight:6}}),"Alerte — ",Do[n].title]}),s.jsx(Y,{variant:"muted",size:"0.66rem",children:Do[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(Ce,{tone:"outline",onClick:()=>t("idle"),children:"Annuler"}),s.jsx(Ce,{tone:"outlineDanger",onClick:()=>t("sent"),children:"Déclencher"})]})]}),e==="sent"&&s.jsxs(Ve,{mb:0,children:[s.jsx(Oe,{icon:Pa,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:Do[n].hint}),s.jsx("div",{style:{marginTop:10},children:s.jsx(Ce,{tone:"accent",onClick:()=>t("idle"),children:"Compris"})})]})]})}function uk({value:e}){return s.jsx("span",{children:[1,2,3,4,5].map(t=>s.jsx(Oe,{icon:zp,style:{color:t<=e?$.warning:$.border,fontSize:"0.7rem",marginRight:2}},t))})}const pce=[{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 mce(){return s.jsxs(zt,{children:[s.jsx(gn,{title:"Mes avis"}),s.jsxs(Ve,{children:[s.jsx(Y,{size:"1.5rem",variant:"primary",children:"4.7"}),s.jsx("div",{style:{marginTop:4},children:s.jsx(uk,{value:5})}),s.jsx(Y,{variant:"muted",size:"0.66rem",children:"38 avis clients"})]}),pce.map(e=>s.jsxs(Ve,{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(uk,{value:e.rating})}),s.jsxs(Y,{variant:"secondary",size:"0.68rem",children:["« ",e.comment," »"]})]},e.order))]})}const hce={jour:[2,4,3,6,5,8,4],semaine:[18,24,21,27,15,30,22],mois:[80,92,76,101]},gce={jour:["L","M","M","J","V","S","D"],semaine:["S1","S2","S3","S4","S5","S6","S7"],mois:["Mai","Juin","Juil","Août"]};function vce(){const[e,t]=m.useState("semaine"),n=hce[e],r=gce[e],i=m.useMemo(()=>Math.max(...n),[n]);return s.jsxs(zt,{children:[s.jsx(gn,{title:"Mes performances"}),s.jsxs(pn,{columns:2,spacing:2,mb:2.5,children:[s.jsx(Ge,{icon:cle,value:512,label:"Total livraisons",color:$.accentLight}),s.jsx(Ge,{icon:Pa,value:489,label:"Complétées",color:$.success}),s.jsx(Ge,{icon:qu,value:14,label:"Livraisons du jour",color:$.accentLight}),s.jsx(Ge,{icon:Cle,value:3,label:"En attente",color:$.info})]}),s.jsxs(Ve,{mb:0,children:[s.jsx(Y,{variant:"secondary",size:"0.72rem",children:"Évolution"}),s.jsx("div",{style:{marginTop:8},children:s.jsx(Cx,{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 yce=[{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(Nle,{})},{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(Dle,{}),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(Fle,{})},{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(Vle,{}),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(Ule,{})},{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(Yle,{})},{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(Qle,{}),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(Jle,{})},{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(tce,{}),reverse:!0}],bce=[{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(nce,{})},{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(ice,{}),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(sce,{})},{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(lce,{}),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(cce,{})}],xce=[{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(dce,{})},{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(fce,{}),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(mce,{})},{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(vce,{}),reverse:!0}],dk=[{key:"admin",label:"Espace Admin",icon:Ele,features:yce,blurb:"Contrôle total de la plateforme."},{key:"cabine",label:"Espace Cabine",icon:hle,features:bce,blurb:"Équipe de préparation, accès restreint."},{key:"livreur",label:"Espace Livreur",icon:Vm,features:xce,blurb:"Application dédiée aux livreurs."}];function Sce(){const[e,t]=m.useState("admin"),n=dk.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(un,{maxW:"container.lg",children:s.jsxs(xe,{spacing:5,textAlign:"center",align:"center",children:[s.jsxs(he,{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(jt,{size:"2xl",children:"Admin, cabine, livreur : chacun son espace"}),s.jsx(J,{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(un,{maxW:"container.lg",py:3,children:[s.jsx(he,{spacing:2,mb:2,overflowX:"auto",children:dk.map(r=>s.jsx(ye,{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(v8,{spacing:5,shouldWrapChildren:!0,children:n.features.map(r=>s.jsx(Vb,{children:s.jsx(J,{as:"a",href:`#${r.id}`,fontSize:"sm",fontWeight:"semibold",color:"primary.500",whiteSpace:"nowrap",_hover:{textDecoration:"underline"},children:r.kicker})},r.id))})]})}),s.jsxs(un,{maxW:"container.lg",children:[s.jsx(se,{py:6,children:s.jsx(J,{color:"gray.500",fontSize:"sm",textAlign:"center",children:n.blurb})}),n.features.map(r=>s.jsxs(xe,{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(J,{fontSize:"xs",fontWeight:"extrabold",letterSpacing:"wide",textTransform:"uppercase",color:"primary.500",mb:2,children:r.kicker}),s.jsx(jt,{size:"lg",mb:4,children:r.title}),s.jsx(J,{color:"gray.500",mb:5,children:r.lead}),s.jsx(Lu,{spacing:2,children:r.points.map(i=>s.jsxs(Tb,{fontSize:"sm",color:"gray.600",display:"flex",children:[s.jsx(F_,{as:()=>s.jsx(Oe,{icon:Pa}),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(un,{maxW:"container.md",children:[s.jsx(jt,{size:"xl",mb:4,children:"Prêt à essayer votre propre espace admin ?"}),s.jsx(J,{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(pn,{columns:{base:1,sm:2},spacing:4,maxW:"sm",mx:"auto",children:[s.jsx(ye,{as:Gt,to:"/register",colorScheme:"primary",size:"lg",children:"Créer un compte"}),s.jsx(ye,{as:Gt,to:"/tarifs",variant:"outline",colorScheme:"whiteAlpha",size:"lg",children:"Voir les tarifs"})]})]})})]})}const wce="http://localhost:8080",jx="omnex.token";function Zv(){return localStorage.getItem(jx)}function fk(e){localStorage.setItem(jx,e)}function pk(){localStorage.removeItem(jx)}class Ze extends Error{constructor(n,r){super(r);Hx(this,"status");this.status=n}}async function at(e,t,n){const r={"Content-Type":"application/json"},i=Zv();i&&(r.Authorization=`Bearer ${i}`);const o=await fetch(`${wce}/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 Ze(o.status,a.error??`HTTP ${o.status}`)}return o.status===204?void 0:await o.json()}const Fe={login:(e,t,n)=>at("POST","/auth/login",{username:e,password:t,role:n}),register:(e,t)=>at("POST","/auth/register",{username:e,password:t}),me:()=>at("GET","/auth/me"),logout:()=>at("POST","/auth/logout"),listDemos:()=>at("GET","/demos"),listMyDemos:()=>at("GET","/demos/mine"),getDemo:e=>at("GET",`/demos/${e}`),createDemo:e=>at("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.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=>at("POST",`/demos/${e}/extend`),deleteDemo:e=>at("DELETE",`/demos/${e}`),setDemoDomain:(e,t)=>at("POST",`/demos/${e}/domain`,{domain:t}),listCodes:()=>at("GET","/codes"),createCode:e=>at("POST","/codes",{username:e}),addCode:e=>at("POST","/subscription",{code_verif:e}),sendMessage:(e,t,n,r)=>at("POST","/send/message",{username:e,telegram:t,sujet:n,message:r}),getMessage:()=>at("GET","/messages"),getDemoDetails:e=>at("POST","/demos/details",{namespace:e}),updateUsername:e=>at("POST","/profile/username",{username:e}),updatePassword:e=>at("POST","/profile/password",{password:e}),getTelegram:()=>at("GET","/profile/telegram"),setTelegram:e=>at("POST","/profile/telegram",{telegram:e}),getAlertSettings:()=>at("GET","/profile/alerts"),setAlertSettings:e=>at("POST","/profile/alerts",e)},B7=m.createContext(null);function kce({children:e}){const[t,n]=m.useState(Zv()),[r,i]=m.useState(null),[o,a]=m.useState(null),[l,c]=m.useState(!!Zv());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&&(pk(),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);fk(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);fk(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{pk(),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(B7.Provider,{value:h,children:e})}function Eo(){const e=m.useContext(B7);if(!e)throw new Error("useAuth doit être utilisé dans <AuthProvider>");return e}function _a(e){const{toggleColorMode:t}=_u(),n=qg("Passer en mode sombre","Passer en mode clair");return s.jsx(In,{"aria-label":n,title:n,variant:"ghost",size:e.size??"sm",onClick:t,icon:qg(s.jsx(jce,{}),s.jsx(Cce,{}))})}function Cce(){return s.jsxs(Pt,{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 jce(){return s.jsx(Pt,{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 vr=m.forwardRef((e,t)=>{const[n,r]=m.useState(!1);return s.jsxs(Pb,{children:[s.jsx(gt,{ref:t,type:n?"text":"password",...e}),s.jsx(wm,{children:s.jsx(In,{"aria-label":n?"Masquer le mot de passe":"Afficher le mot de passe",icon:s.jsx(Oe,{icon:n?O7:E7}),size:"sm",variant:"ghost",tabIndex:-1,onClick:()=>r(i=>!i)})})]})});vr.displayName="PasswordInput";function Pce(){const{login:e}=Eo(),t=_r(),n=Qr(),[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 Ze?f.message:"Connexion impossible";n({status:"error",title:"Échec de connexion",description:p})}finally{c(!1)}};return s.jsxs(un,{maxW:"sm",py:20,position:"relative",children:[s.jsx(se,{position:"absolute",top:4,right:4,children:s.jsx(_a,{})}),s.jsxs(xe,{spacing:6,children:[s.jsxs(se,{textAlign:"center",children:[s.jsx(jt,{size:"lg",children:"Espace client"}),s.jsx(J,{color:"gray.500",children:"Connectez-vous pour gérer votre abonnement."})]}),s.jsx(lb,{children:s.jsx(cb,{children:s.jsx("form",{onSubmit:u,children:s.jsxs(xe,{spacing:4,children:[s.jsxs(Te,{isRequired:!0,children:[s.jsx(Ee,{children:"Nom d'utilisateur"}),s.jsx(gt,{value:r,onChange:d=>i(d.target.value),autoComplete:"username"})]}),s.jsxs(Te,{isRequired:!0,children:[s.jsx(Ee,{children:"Mot de passe"}),s.jsx(vr,{value:o,onChange:d=>a(d.target.value),autoComplete:"current-password"})]}),s.jsx(ye,{type:"submit",colorScheme:"primary",isLoading:l,children:"Se connecter"})]})})})}),s.jsxs(he,{justify:"center",spacing:1,children:[s.jsx(J,{fontSize:"sm",color:"gray.500",children:"Pas encore de compte ?"}),s.jsx(ye,{as:Gt,to:"/register",variant:"link",size:"sm",children:"Créer un compte"})]}),s.jsx(ye,{as:Gt,to:"/",variant:"outline",size:"sm",children:"← Retour au site"})]})]})}function _ce(){const{login:e}=Eo(),t=_r(),n=Qr(),[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 Ze?f.message:"Connexion impossible";n({status:"error",title:"Échec de connexion",description:p})}finally{c(!1)}};return s.jsxs(un,{maxW:"sm",py:20,position:"relative",children:[s.jsx(se,{position:"absolute",top:4,right:4,children:s.jsx(_a,{})}),s.jsxs(xe,{spacing:6,children:[s.jsxs(se,{textAlign:"center",children:[s.jsx(jt,{size:"lg",children:"Espace admin"}),s.jsx(J,{color:"gray.500",children:"Connectez-vous pour administrer la plateforme."})]}),s.jsx(lb,{children:s.jsx(cb,{children:s.jsx("form",{onSubmit:u,children:s.jsxs(xe,{spacing:4,children:[s.jsxs(Te,{isRequired:!0,children:[s.jsx(Ee,{children:"Nom d'utilisateur"}),s.jsx(gt,{value:r,onChange:d=>i(d.target.value),autoComplete:"username"})]}),s.jsxs(Te,{isRequired:!0,children:[s.jsx(Ee,{children:"Mot de passe"}),s.jsx(vr,{value:o,onChange:d=>a(d.target.value),autoComplete:"current-password"})]}),s.jsx(ye,{type:"submit",colorScheme:"primary",isLoading:l,children:"Se connecter"})]})})})}),s.jsx(ye,{as:Gt,to:"/",variant:"outline",size:"sm",children:"← Retour au site"})]})]})}function Tce(){const{register:e}=Eo(),t=_r(),n=Qr(),[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 Ze?b.message:"Inscription impossible";n({status:"error",title:"Échec de l’inscription",description:g})}finally{d(!1)}}};return s.jsxs(un,{maxW:"sm",py:16,position:"relative",children:[s.jsx(se,{position:"absolute",top:4,right:4,children:s.jsx(_a,{})}),s.jsxs(xe,{spacing:6,children:[s.jsxs(se,{textAlign:"center",children:[s.jsx(jt,{size:"lg",children:"Créer un compte"}),s.jsx(J,{color:"gray.500",children:"Rejoignez l’espace commercial Omnex."})]}),s.jsx(lb,{children:s.jsx(cb,{children:s.jsx("form",{onSubmit:y,children:s.jsxs(xe,{spacing:4,children:[s.jsxs(Te,{isRequired:!0,isInvalid:r.length>0&&!f,children:[s.jsx(Ee,{children:"Nom d'utilisateur"}),s.jsx(gt,{value:r,onChange:x=>i(x.target.value),autoComplete:"username"}),s.jsx(ou,{children:"3 à 64 caractères alphanumériques."})]}),s.jsxs(Te,{isRequired:!0,isInvalid:o.length>0&&!p,children:[s.jsx(Ee,{children:"Mot de passe"}),s.jsx(vr,{value:o,onChange:x=>a(x.target.value),autoComplete:"new-password"}),s.jsx(ou,{children:"10 caractères minimum."})]}),s.jsxs(Te,{isRequired:!0,isInvalid:l.length>0&&!h,children:[s.jsx(Ee,{children:"Confirmer le mot de passe"}),s.jsx(vr,{value:l,onChange:x=>c(x.target.value),autoComplete:"new-password"})]}),s.jsx(ye,{type:"submit",colorScheme:"primary",isLoading:u,isDisabled:!v,children:"Créer mon compte"})]})})})}),s.jsxs(he,{justify:"center",spacing:1,children:[s.jsx(J,{fontSize:"sm",color:"gray.500",children:"Déjà un compte ?"}),s.jsx(ye,{as:Gt,to:"/login",variant:"link",size:"sm",children:"Se connecter"})]})]})]})}const Hm=xm({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"})]})}),Ece=xm({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"}),Ace=xm({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 Gm(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 qm(e){return{pending:"En attente",provisioning:"Déploiement…",ready:"Active",expiring:"Suppression…",expired:"Expirée",failed:"Échec"}[e]??e}function mk(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 $ce(e){return{Running:"En ligne",Pending:"En attente",Succeeded:"Terminé",Failed:"Down",Unknown:"Inconnu"}[e]??"Introuvable"}function hk(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 zce({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(EY,{isOpen:e,leastDestructiveRef:u,onClose:c,isCentered:!0,motionPreset:"slideInBottom",children:s.jsx(vl,{backdropFilter:"blur(2px)",children:s.jsxs(AY,{borderRadius:"xl",children:[s.jsx(gl,{fontSize:"lg",fontWeight:"bold",children:t}),s.jsx(hl,{color:"gray.600",children:n}),s.jsxs(Pm,{gap:3,children:[s.jsx(ye,{ref:u,onClick:c,variant:"ghost",isDisabled:a,children:i}),s.jsx(ye,{colorScheme:o,onClick:l,isLoading:a,children:r})]})]})})})}function V7({isOpen:e,onClose:t,onCreated:n}){const r=Qr(),[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(""),[K,ne]=m.useState(""),[z,X]=m.useState(""),[V,I]=m.useState("failover"),[D,R]=m.useState(""),[F,q]=m.useState(""),[G,ee]=m.useState("local"),[ke,be]=m.useState(""),[je,He]=m.useState(""),[ge,te]=m.useState(!1),re=()=>{o(""),l("admin"),u(""),f(!1),h(""),y(""),b(!1),S(""),k(""),j(!1),M(""),O(""),ne(""),X(""),I("failover"),R(""),q(""),ee("local"),be(""),He("")},$e=()=>{ge||(re(),t())},ve=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(G==="s3"&&(!ke.trim()||!je.trim())){r({status:"warning",title:"Bucket et endpoint S3 requis"});return}if(P&&!_.trim()&&!K.trim()){r({status:"warning",title:"Au moins un bot (username) requis pour le load-balancer"});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:G,...G==="s3"?{s3Bucket:ke.trim(),s3Endpoint:je.trim()}:{},...P?{lbBot1Username:_.trim()||void 0,lbBot1Token:T.trim()||void 0,lbBot2Username:K.trim()||void 0,lbBot2Token:z.trim()||void 0,lbStrategy:V,lbJwtTtlSeconds:D.trim()||void 0,lbHealthCheckInterval:F.trim()||void 0}:{}};te(!0);try{await Fe.createDemo(oe),r({status:"success",title:"Démo lancée",description:"Provisioning en cours."}),re(),n(),t()}catch(pe){const ft=pe instanceof Ze?pe.message:"Erreur";r({status:"error",title:"Lancement impossible",description:ft})}finally{te(!1)}};return s.jsxs(Ou,{isOpen:e,onClose:$e,size:"lg",closeOnOverlayClick:!ge,children:[s.jsx(vl,{}),s.jsxs(jm,{children:[s.jsx(gl,{children:"Nouvelle démo"}),s.jsx(Fu,{isDisabled:ge}),s.jsx(hl,{children:s.jsxs(xe,{spacing:5,children:[s.jsxs(Te,{isRequired:!0,isDisabled:ge,children:[s.jsx(Ee,{children:"Username"}),s.jsx(gt,{placeholder:"ex: acme-corp",value:i,onChange:oe=>o(oe.target.value)})]}),s.jsxs(xe,{spacing:3,p:3,borderWidth:"1px",borderRadius:"md",children:[s.jsx(J,{fontSize:"sm",fontWeight:"semibold",children:"Compte admin de la démo"}),s.jsx(J,{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(he,{spacing:3,align:"start",children:[s.jsxs(Te,{isRequired:!0,isDisabled:ge,children:[s.jsx(Ee,{fontSize:"sm",children:"Username"}),s.jsx(gt,{value:a,onChange:oe=>l(oe.target.value)})]}),s.jsxs(Te,{isRequired:!0,isDisabled:ge,children:[s.jsx(Ee,{fontSize:"sm",children:"Mot de passe"}),s.jsx(vr,{placeholder:"8 caractères min.",value:c,onChange:oe=>u(oe.target.value),autoComplete:"off"})]})]})]}),s.jsx(Te,{isDisabled:ge,children:s.jsxs(he,{justify:"space-between",children:[s.jsx(Ee,{mb:0,children:"Bot Telegram"}),s.jsx(Af,{isChecked:d,onChange:oe=>f(oe.target.checked)})]})}),d&&s.jsxs(xe,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsxs(Te,{isDisabled:ge,children:[s.jsx(Ee,{fontSize:"sm",children:"Nom du bot (username)"}),s.jsx(gt,{placeholder:"mon_bot",value:p,onChange:oe=>h(oe.target.value)})]}),s.jsxs(Te,{isDisabled:ge,children:[s.jsx(Ee,{fontSize:"sm",children:"Token bot Telegram"}),s.jsx(vr,{placeholder:"123456:ABC-DEF...",value:v,onChange:oe=>y(oe.target.value),autoComplete:"off"})]})]}),s.jsx(Te,{isDisabled:ge,children:s.jsxs(he,{justify:"space-between",children:[s.jsx(Ee,{mb:0,children:"NowPayments (paiement crypto)"}),s.jsx(Af,{isChecked:x,onChange:oe=>b(oe.target.checked)})]})}),x&&s.jsxs(xe,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsxs(Te,{isDisabled:ge,children:[s.jsx(Ee,{fontSize:"sm",children:"Clé API NowPayments"}),s.jsx(vr,{placeholder:"clé API du compte marchand",value:g,onChange:oe=>S(oe.target.value),autoComplete:"off"})]}),s.jsxs(Te,{isDisabled:ge,children:[s.jsx(Ee,{fontSize:"sm",children:"Secret IPN NowPayments"}),s.jsx(vr,{placeholder:"secret configuré côté NowPayments",value:w,onChange:oe=>k(oe.target.value),autoComplete:"off"}),s.jsx(J,{fontSize:"xs",color:"gray.500",mt:1,children:"Laissez vide pour garder celui pré-généré automatiquement."})]})]}),s.jsx(Te,{isDisabled:ge,children:s.jsxs(he,{justify:"space-between",children:[s.jsx(Ee,{mb:0,children:"Load-balancer Telegram"}),s.jsx(Af,{isChecked:P,onChange:oe=>j(oe.target.checked)})]})}),P&&s.jsxs(xe,{spacing:4,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsx(J,{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(he,{spacing:3,align:"start",children:[s.jsxs(Te,{isDisabled:ge,children:[s.jsx(Ee,{fontSize:"sm",children:"Bot 1 — username"}),s.jsx(gt,{placeholder:"mon_bot_1",value:_,onChange:oe=>M(oe.target.value)})]}),s.jsxs(Te,{isDisabled:ge,children:[s.jsx(Ee,{fontSize:"sm",children:"Bot 1 — token"}),s.jsx(vr,{placeholder:"123456:ABC-DEF...",value:T,onChange:oe=>O(oe.target.value),autoComplete:"off"})]})]}),s.jsxs(he,{spacing:3,align:"start",children:[s.jsxs(Te,{isDisabled:ge,children:[s.jsx(Ee,{fontSize:"sm",children:"Bot 2 — username (optionnel)"}),s.jsx(gt,{placeholder:"mon_bot_2",value:K,onChange:oe=>ne(oe.target.value)})]}),s.jsxs(Te,{isDisabled:ge,children:[s.jsx(Ee,{fontSize:"sm",children:"Bot 2 — token"}),s.jsx(vr,{placeholder:"123456:ABC-DEF...",value:z,onChange:oe=>X(oe.target.value),autoComplete:"off"})]})]}),s.jsxs(he,{spacing:3,align:"start",children:[s.jsxs(Te,{isDisabled:ge,children:[s.jsx(Ee,{fontSize:"sm",children:"Stratégie de répartition"}),s.jsxs(f8,{value:V,onChange:oe=>I(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(Te,{isDisabled:ge,children:[s.jsx(Ee,{fontSize:"sm",children:"TTL JWT (secondes)"}),s.jsx(gt,{placeholder:"300",value:D,onChange:oe=>R(oe.target.value),type:"number"})]}),s.jsxs(Te,{isDisabled:ge,children:[s.jsx(Ee,{fontSize:"sm",children:"Intervalle health-check (s)"}),s.jsx(gt,{placeholder:"30",value:F,onChange:oe=>q(oe.target.value),type:"number"})]})]})]}),s.jsxs(Te,{isDisabled:ge,children:[s.jsx(Ee,{children:"Stockage des fichiers"}),s.jsx(u8,{value:G,onChange:oe=>ee(oe),children:s.jsxs(xe,{direction:"row",spacing:6,children:[s.jsx(jv,{value:"local",children:"Local (disque du cluster)"}),s.jsx(jv,{value:"s3",children:"S3"})]})})]}),G==="s3"&&s.jsxs(xe,{spacing:4,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsxs(Te,{isRequired:!0,isDisabled:ge,children:[s.jsx(Ee,{fontSize:"sm",children:"Nom du bucket"}),s.jsx(gt,{placeholder:"mon-bucket-demo",value:ke,onChange:oe=>be(oe.target.value)})]}),s.jsxs(Te,{isRequired:!0,isDisabled:ge,children:[s.jsx(Ee,{fontSize:"sm",children:"Endpoint S3"}),s.jsx(gt,{placeholder:"https://s3.exemple.com",value:je,onChange:oe=>He(oe.target.value)})]})]})]})}),s.jsxs(Pm,{children:[s.jsx(ye,{variant:"ghost",mr:3,onClick:$e,isDisabled:ge,children:"Annuler"}),s.jsx(ye,{colorScheme:"primary",onClick:ve,isLoading:ge,children:"Lancer la démo"})]})]})]})}function W7({demo:e,onClose:t,onSaved:n}){const r=Qr(),[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 Ze?d.message:"Erreur";r({status:"error",title:"Mise à jour impossible",description:f})}finally{l(!1)}}};return s.jsxs(Ou,{isOpen:!!e,onClose:c,closeOnOverlayClick:!a,children:[s.jsx(vl,{}),s.jsxs(jm,{children:[s.jsx(gl,{children:"Domaine de la plateforme"}),s.jsx(Fu,{isDisabled:a}),s.jsx(hl,{children:s.jsxs(Te,{children:[s.jsx(Ee,{fontSize:"sm",children:"Domaine personnalisé"}),s.jsx(gt,{placeholder:"boutique.mon-domaine.com",value:i,onChange:d=>o(d.target.value),isDisabled:a,fontFamily:"mono"}),s.jsxs(ou,{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(Pm,{children:[s.jsx(ye,{variant:"ghost",mr:3,onClick:c,isDisabled:a,children:"Annuler"}),s.jsx(ye,{colorScheme:"primary",onClick:u,isLoading:a,children:"Enregistrer"})]})]})]})}const N0=[{key:"api",label:"Backend"},{key:"web",label:"Frontend"},{key:"db",label:"PostgreSQL"},{key:"dbm",label:"Redis"}];function Px({state:e}){const t=N0.every(r=>e[r.key].phase==="Running"),n=N0.filter(r=>e[r.key].phase!=="Running").length;return s.jsxs(xe,{spacing:3,children:[s.jsxs(he,{spacing:2,children:[s.jsx(se,{w:"8px",h:"8px",borderRadius:"full",bg:t?"green.400":"red.400",flexShrink:0}),s.jsx(J,{fontSize:"sm",fontWeight:"medium",children:t?"Tous les services sont opérationnels":`${n} service${n>1?"s":""} indisponible${n>1?"s":""}`})]}),s.jsx(pn,{columns:{base:1,lg:4},spacing:3,children:N0.map(r=>s.jsx(Rce,{title:r.label,cs:e[r.key]},r.key))})]})}function Rce({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(he,{justify:"space-between",mb:3,children:[s.jsx(J,{fontSize:"sm",fontWeight:"semibold",noOfLines:1,children:e}),s.jsxs(he,{spacing:1.5,children:[s.jsx(se,{w:"7px",h:"7px",borderRadius:"full",bg:`${mk(t.phase)}.400`,flexShrink:0}),s.jsx(On,{colorScheme:mk(t.phase),fontSize:"10px",children:$ce(t.phase)})]})]}),s.jsxs(xe,{spacing:2,children:[s.jsxs(se,{children:[s.jsxs(St,{justify:"space-between",fontSize:"xs",color:"gray.500",mb:1,children:[s.jsx(J,{children:"CPU"}),s.jsxs(J,{fontFamily:"mono",children:[t.cpu_milli,"m / ",t.cpu_limit_milli,"m"]})]}),s.jsx(Cp,{value:n,size:"xs",borderRadius:"full",colorScheme:n>85?"red":n>60?"orange":"primary"})]}),s.jsxs(se,{children:[s.jsxs(St,{justify:"space-between",fontSize:"xs",color:"gray.500",mb:1,children:[s.jsx(J,{children:"Mémoire"}),s.jsxs(J,{fontFamily:"mono",children:[t.memory_mi,"Mi / ",t.memory_limit_mi,"Mi"]})]}),s.jsx(Cp,{value:r,size:"xs",borderRadius:"full",colorScheme:r>85?"red":r>60?"orange":"primary"})]})]})]})}function _x(e){return s.jsx(Pt,{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 U7({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(he,{justify:"space-between",align:"start",children:[s.jsxs(he,{spacing:2,minW:0,flex:"1",children:[s.jsx(Pt,{as:_x,boxSize:3,color:"gray.400",flexShrink:0,transform:t?"rotate(90deg)":void 0,transition:"transform 0.15s"}),s.jsx(J,{fontFamily:"mono",fontSize:"sm",noOfLines:1,wordBreak:"break-all",minW:0,flex:"1",children:e.namespace})]}),s.jsx(On,{colorScheme:Gm(e.status),flexShrink:0,children:qm(e.status)})]}),s.jsxs(xe,{spacing:1,mt:3,fontSize:"sm",children:[s.jsxs(he,{justify:"space-between",children:[s.jsx(J,{color:"gray.500",children:"Client"}),s.jsx(J,{children:e.username||"—"})]}),s.jsxs(he,{justify:"space-between",align:"start",children:[s.jsx(J,{color:"gray.500",flexShrink:0,children:"URL"}),s.jsxs(he,{spacing:1,minW:0,flex:"1",justify:"flex-end",children:[e.status==="ready"?s.jsx(jo,{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(J,{color:"gray.400",children:"—"}),s.jsx(In,{"aria-label":"Modifier le domaine",icon:s.jsx(Hm,{}),size:"xs",variant:"ghost",flexShrink:0,onClick:c=>{c.stopPropagation(),o()}})]})]}),a&&s.jsxs(he,{justify:"space-between",children:[s.jsx(J,{color:"gray.500",children:"Expire dans"}),s.jsx(J,{children:a})]})]}),l&&s.jsx(he,{mt:3,spacing:2,flexWrap:"wrap",rowGap:2,onClick:c=>c.stopPropagation(),children:l})]}),s.jsx(Ru,{in:t,unmountOnExit:!0,animateOpacity:!0,children:s.jsx(se,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:r&&!i?s.jsx(he,{justify:"center",py:2,children:s.jsx(Dn,{size:"sm"})}):i?s.jsx(Px,{state:i.state}):s.jsx(J,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})]})}const Mce=5e3,Ice=5e3;function Lce(){const e=Qr(),t=_r(),[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 Ze&&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(),Mce);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 K=O instanceof Ze?O.message:"Erreur";e({status:"error",title:"Prolongation impossible",description:K})}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 K=O instanceof Ze?O.message:"Erreur";e({status:"error",title:"Destruction impossible",description:K})}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 K=O instanceof Ze?O.message:"Erreur";e({status:"error",title:"État des pods indisponible",description:K}),y(null)}finally{S(!1)}};m.useEffect(()=>{const T=n.find(ne=>ne.id===v);if(!T)return;const O=T.namespace,K=setInterval(()=>{Fe.getDemoDetails(O).then(b).catch(()=>{})},Ice);return()=>clearInterval(K)},[v]);const _=T=>T!=="expired"&&T!=="failed",M=T=>s.jsxs(s.Fragment,{children:[s.jsx(ye,{size:"sm",variant:"outline",isDisabled:!_(T.status)||a===T.id,onClick:O=>{O.stopPropagation(),k(T)},children:"+30 j"}),s.jsx(ye,{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(St,{mb:6,align:"center",gap:4,wrap:"wrap",children:[s.jsx(jt,{size:"md",mr:4,children:"Démos"}),s.jsx(ka,{}),s.jsx(ye,{colorScheme:"primary",onClick:()=>f(!0),children:"Nouvelle démo"})]}),s.jsx(V7,{isOpen:d,onClose:()=>f(!1),onCreated:()=>void w()}),i?s.jsx(Dn,{}):n.length===0?s.jsx(J,{color:"gray.500",children:"Aucune démo active. Lancez-en une avec le bouton ci-dessus."}):s.jsxs(s.Fragment,{children:[s.jsx(Db,{borderWidth:"1px",borderRadius:"lg",display:{base:"none",md:"block"},children:s.jsxs(_m,{children:[s.jsx(Fb,{children:s.jsxs(co,{children:[s.jsx(cn,{children:"Namespace"}),s.jsx(cn,{children:"Client"}),s.jsx(cn,{children:"Statut"}),s.jsx(cn,{children:"URL"}),s.jsx(cn,{children:"Expire dans"}),s.jsx(cn,{})]})}),s.jsx(Ob,{children:n.map(T=>{const O=v===T.id;return s.jsxs(m.Fragment,{children:[s.jsxs(co,{cursor:"pointer",bg:O?"chakra-subtle-bg":void 0,_hover:{bg:"chakra-subtle-bg"},onClick:()=>j(T),children:[s.jsx(Ut,{fontFamily:"mono",children:s.jsxs(he,{spacing:2,children:[s.jsx(Pt,{as:_x,boxSize:3,color:"gray.400",transform:O?"rotate(90deg)":void 0,transition:"transform 0.15s"}),s.jsx(J,{children:T.namespace})]})}),s.jsx(Ut,{children:T.username?s.jsx(J,{children:T.username}):s.jsx(J,{color:"gray.400",children:"—"})}),s.jsx(Ut,{children:s.jsx(On,{colorScheme:Gm(T.status),children:qm(T.status)})}),s.jsx(Ut,{children:s.jsxs(he,{spacing:1,children:[T.status==="ready"?s.jsx(jo,{href:T.url,color:"primary.500",isExternal:!0,onClick:K=>K.stopPropagation(),children:T.url}):s.jsx(J,{color:"gray.400",children:"—"}),s.jsx(In,{"aria-label":"Modifier le domaine",icon:s.jsx(Hm,{}),size:"xs",variant:"ghost",onClick:K=>{K.stopPropagation(),h(T)}})]})}),s.jsx(Ut,{children:_(T.status)?hk(T.expires_at):"—"}),s.jsx(Ut,{textAlign:"right",children:s.jsx(he,{justify:"flex-end",children:M(T)})})]}),s.jsx(co,{children:s.jsx(Ut,{p:0,border:O?void 0:"none",colSpan:6,children:s.jsx(Ru,{in:O,unmountOnExit:!0,animateOpacity:!0,children:s.jsx(se,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:g&&!x?s.jsx(St,{justify:"center",py:4,children:s.jsx(Dn,{size:"sm"})}):x?s.jsx(Px,{state:x.state}):s.jsx(J,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},T.id)})})]})}),s.jsx(xe,{spacing:3,display:{base:"flex",md:"none"},children:n.map(T=>s.jsx(U7,{demo:T,isOpen:v===T.id,onToggle:()=>j(T),detailsLoading:g,details:v===T.id?x:null,onEditDomain:()=>h(T),expiresLabel:_(T.status)?hk(T.expires_at):"—",actions:M(T)},T.id))})]}),s.jsxs(zce,{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(J,{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(W7,{demo:p,onClose:()=>h(null),onSaved:()=>void w()})]})}const Nce=5e3,Dce=5e3;function Oce(){const e=Qr(),t=_r(),[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 Ze&&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(),Nce);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 Ze?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(()=>{})},Dce);return()=>clearInterval(w)},[d]),s.jsxs(s.Fragment,{children:[s.jsxs(St,{mb:2,align:"center",gap:4,wrap:"wrap",children:[s.jsx(jt,{size:"md",mr:4,children:"Démos Premium"}),s.jsx(ka,{}),s.jsx(ye,{colorScheme:"primary",onClick:()=>l(!0),children:"Déployer une plateforme"})]}),s.jsx(J,{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(V7,{isOpen:a,onClose:()=>l(!1),onCreated:()=>void x()}),i?s.jsx(Dn,{}):n.length===0?s.jsx(J,{color:"gray.500",children:"Aucune démo premium pour le moment."}):s.jsxs(s.Fragment,{children:[s.jsx(Db,{borderWidth:"1px",borderRadius:"lg",display:{base:"none",md:"block"},children:s.jsxs(_m,{children:[s.jsx(Fb,{children:s.jsxs(co,{children:[s.jsx(cn,{children:"Namespace"}),s.jsx(cn,{children:"Client"}),s.jsx(cn,{children:"Statut"}),s.jsx(cn,{children:"URL"})]})}),s.jsx(Ob,{children:n.map(g=>{const S=d===g.id;return s.jsxs(m.Fragment,{children:[s.jsxs(co,{cursor:"pointer",bg:S?"chakra-subtle-bg":void 0,_hover:{bg:"chakra-subtle-bg"},onClick:()=>b(g),children:[s.jsx(Ut,{fontFamily:"mono",children:s.jsxs(he,{spacing:2,children:[s.jsx(Pt,{as:_x,boxSize:3,color:"gray.400",transform:S?"rotate(90deg)":void 0,transition:"transform 0.15s"}),s.jsx(J,{children:g.namespace})]})}),s.jsx(Ut,{children:g.username||s.jsx(J,{color:"gray.400",children:"—"})}),s.jsx(Ut,{children:s.jsx(On,{colorScheme:Gm(g.status),children:qm(g.status)})}),s.jsx(Ut,{children:s.jsxs(he,{spacing:1,children:[g.status==="ready"?s.jsx(jo,{href:g.url,color:"primary.500",isExternal:!0,onClick:w=>w.stopPropagation(),children:g.url}):s.jsx(J,{color:"gray.400",children:"—"}),s.jsx(In,{"aria-label":"Modifier le domaine",icon:s.jsx(Hm,{}),size:"xs",variant:"ghost",onClick:w=>{w.stopPropagation(),u(g)}})]})})]}),s.jsx(co,{children:s.jsx(Ut,{p:0,border:S?void 0:"none",colSpan:4,children:s.jsx(Ru,{in:S,unmountOnExit:!0,animateOpacity:!0,children:s.jsx(se,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:v&&!p?s.jsx(Dn,{size:"sm"}):p?s.jsx(Px,{state:p.state}):s.jsx(J,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},g.id)})})]})}),s.jsx(xe,{spacing:3,display:{base:"flex",md:"none"},children:n.map(g=>s.jsx(U7,{demo:g,isOpen:d===g.id,onToggle:()=>b(g),detailsLoading:v,details:d===g.id?p:null,onEditDomain:()=>u(g)},g.id))})]}),s.jsx(W7,{demo:c,onClose:()=>u(null),onSaved:()=>void x()})]})}const Fce=1e4;function Bce(){const e=Qr(),t=_r(),[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 Ze&&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(),Fce);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 Ze?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(St,{mb:6,align:"center",children:[s.jsx(jt,{size:"md",children:"Gestion des codes de souscription"}),s.jsx(ka,{})]}),s.jsx(se,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:s.jsx("form",{onSubmit:h,children:s.jsxs(jp,{spacing:4,align:"stretch",children:[s.jsxs(xe,{direction:{base:"column",sm:"row"},align:{base:"stretch",sm:"center"},gap:4,children:[s.jsxs(Te,{isRequired:!0,children:[s.jsx(Ee,{children:"Nom d\\'utilisateur"}),s.jsx(gt,{type:"text",value:c,onChange:y=>u(y.target.value),placeholder:"Entrez le nom d'utilisateur",isDisabled:a==="generate",maxLength:64})]}),s.jsx(ye,{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(J,{fontSize:"sm",color:"gray.400",mb:2,children:["Code généré pour ",s.jsx("strong",{children:c})," :"]}),s.jsxs(he,{children:[s.jsx(J,{fontFamily:"mono",fontSize:"xl",fontWeight:"bold",letterSpacing:"widest",children:d}),s.jsx(ye,{size:"sm",variant:"outline",onClick:()=>v(d),children:"Copier"})]})]})]})})}),i?s.jsx(Dn,{}):n.length===0?s.jsx(J,{color:"gray.500",children:"Aucun code de souscription généré."}):s.jsx(Db,{borderWidth:"1px",borderRadius:"lg",children:s.jsxs(_m,{children:[s.jsx(Fb,{children:s.jsxs(co,{children:[s.jsx(cn,{children:"ID"}),s.jsx(cn,{children:"Utilisateur"}),s.jsx(cn,{children:"Code"}),s.jsx(cn,{children:"Date de création"}),s.jsx(cn,{})]})}),s.jsx(Ob,{children:n.map(y=>s.jsxs(co,{children:[s.jsxs(Ut,{fontFamily:"mono",fontSize:"sm",children:[y.id.slice(0,8),"..."]}),s.jsx(Ut,{children:s.jsx(On,{colorScheme:"gray",px:2,py:1,children:y.username})}),s.jsx(Ut,{fontFamily:"mono",letterSpacing:"wide",children:y.code_verif}),s.jsx(Ut,{fontSize:"sm",color:"gray.400",children:new Date(y.created_at).toLocaleString("fr-FR")}),s.jsx(Ut,{textAlign:"right",children:s.jsx(ye,{size:"sm",variant:"outline",onClick:()=>v(y.code_verif),children:"Copier"})})]},y.id))})]})})]})}function Vce(){const e=Qr(),t=_r(),[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 Ze&&_.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 Ze?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(St,{mb:6,align:"center",children:[s.jsx(jt,{size:"md",children:k?"Ma plateforme":"Ma démo"}),s.jsx(ka,{})]}),s.jsx(se,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:x?s.jsx(Dn,{size:"sm"}):v.length===0?s.jsx(J,{color:"gray.500",children:k?"Aucune plateforme pour le moment.":"Aucune démo pour le moment."}):s.jsx(jp,{align:"stretch",spacing:3,children:v.map(_=>s.jsxs(he,{justify:"space-between",flexWrap:"wrap",rowGap:2,children:[_.status==="ready"?s.jsx(jo,{href:_.url,color:"primary.500",isExternal:!0,fontFamily:"mono",children:_.url}):s.jsx(J,{color:"gray.400",fontFamily:"mono",children:_.url||"—"}),s.jsx(On,{colorScheme:Gm(_.status),children:qm(_.status)})]},_.id))})}),s.jsxs(St,{mb:6,align:"center",children:[s.jsx(jt,{size:"md",children:"Mon abonnement"}),s.jsx(ka,{})]}),s.jsx(se,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:a?s.jsx(Dn,{}):s.jsxs(jp,{align:"stretch",spacing:4,children:[s.jsxs(he,{flexWrap:"wrap",rowGap:2,children:[s.jsx(J,{color:"gray.400",children:"Statut actuel :"}),s.jsx(On,{colorScheme:k?"purple":"gray",px:2,py:1,children:k?"Premium":"Demo"}),k&&!p&&s.jsx(ye,{size:"sm",variant:"link",ml:2,whiteSpace:"normal",textAlign:"left",onClick:()=>h(!0),children:"Renouveler avec un nouveau code"})]}),k&&i&&s.jsx(J,{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(xe,{direction:{base:"column",sm:"row"},align:{base:"stretch",sm:"center"},gap:4,children:[s.jsxs(Te,{isRequired:!0,children:[s.jsx(Ee,{children:k?"Nouveau code de renouvellement":"Code de souscription"}),s.jsx(gt,{type:"text",value:d,onChange:_=>f(_.target.value.toUpperCase()),placeholder:"XXXX-XXXX-XXXX-XXXX",isDisabled:c,fontFamily:"mono",letterSpacing:"wide"})]}),s.jsxs(he,{flexShrink:0,children:[s.jsx(ye,{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(ye,{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 gk(e){return e==="admin"?"Administrateur":"Client"}function Wce(e){return e==="admin"?"purple":"blue"}function Uce(e){const t=(e==null?void 0:e.toLowerCase())??"";return t.includes("premium")||t.includes("pro")?"green":t.includes("expired")||t===""?"red":"gray"}function Hce(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 Kd(){const{isEditing:e,getSubmitButtonProps:t,getCancelButtonProps:n,getEditButtonProps:r}=$G();return e?s.jsxs(sb,{size:"sm",spacing:1,children:[s.jsx(In,{"aria-label":"Enregistrer",icon:s.jsx(Ace,{}),...t()}),s.jsx(In,{"aria-label":"Annuler",icon:s.jsx(Ece,{}),...n()})]}):s.jsx(In,{"aria-label":"Modifier le nom d'utilisateur",size:"sm",variant:"ghost",icon:s.jsx(Hm,{}),...r()})}function Gce(){const e=Qr(),t=_r(),{logout:n}=Eo(),[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,K]=m.useState(""),[ne,z]=m.useState(!1);m.useEffect(()=>{let F=!1;return(async()=>{try{const[q,G]=await Promise.all([Fe.me(),Fe.getTelegram()]);if(F)return;if(i(q),g(G.telegram??""),q.role==="admin"){const ee=await Fe.getAlertSettings();if(F)return;_(ee.discord_webhook_url),T(ee.telegram_bot_token),K(ee.telegram_chat_id)}}catch(q){if(q instanceof Ze&&q.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),K(F.telegram_chat_id),e({status:"success",title:"Alertes enregistrées"})}catch(F){if(F instanceof Ze&&F.status===401){t("/login");return}e({status:"error",title:"Impossible d'enregistrer les alertes",description:F instanceof Ze?F.message:void 0})}finally{z(!1)}},V=async F=>{const q=F.trim();if(!(!r||!q||q===r.username)){d(!0);try{const G=await Fe.updateUsername(q);i({...r,username:G.username}),e({status:"success",title:"Nom d'utilisateur mis à jour"})}catch(G){if(G instanceof Ze&&G.status===401){t("/login");return}e({status:"error",title:"Impossible de mettre à jour le nom d'utilisateur",description:G instanceof Ze?G.message:void 0})}finally{d(!1)}}},I=async F=>{const q=F.trim();if(!r||q.length<8){q.length>0&&e({status:"warning",title:"Le mot de passe doit contenir au moins 8 caractères"}),v(G=>G+1);return}p(!0);try{await Fe.updatePassword(q),e({status:"success",title:"Mot de passe mis à jour"})}catch(G){if(G instanceof Ze&&G.status===401){t("/login");return}e({status:"error",title:"Impossible de mettre à jour le mot de passe",description:G instanceof Ze?G.message:void 0})}finally{p(!1),v(G=>G+1)}},D=async F=>{const q=F.trim();if(!q){P(!1);return}w(!0);try{const G=await Fe.setTelegram(q);g(G.telegram),P(!1),e({status:"success",title:"Telegram enregistré"})}catch(G){if(G instanceof Ze&&G.status===401){t("/login");return}e({status:"error",title:"Impossible d'enregistrer le Telegram",description:G instanceof Ze?G.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(un,{maxW:"container.md",children:[s.jsxs(xe,{spacing:3,mb:8,children:[s.jsx(jt,{size:"lg",children:"Mon profil"}),s.jsx(J,{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(St,{justify:"center",py:10,children:s.jsx(Dn,{})}):r?s.jsxs(xe,{spacing:8,children:[s.jsxs(St,{align:"center",gap:5,wrap:"wrap",children:[s.jsx(ab,{name:r.username,size:"xl"}),s.jsxs(se,{children:[s.jsx(tc,{defaultValue:r.username,onSubmit:V,isDisabled:u,submitOnBlur:!1,children:s.jsxs(he,{spacing:2,children:[s.jsx(rc,{as:jt,size:"md",fontFamily:"mono"}),s.jsx(nc,{fontFamily:"mono",fontSize:"md",fontWeight:"bold"}),s.jsx(Kd,{})]})},r.username),s.jsxs(he,{mt:2,spacing:2,children:[s.jsx(On,{colorScheme:Wce(r.role),children:gk(r.role)}),r.type_abonnement&&s.jsx(On,{colorScheme:Uce(r.type_abonnement),children:r.type_abonnement})]})]})]}),s.jsx(la,{borderColor:"chakra-border-color"}),s.jsxs(pn,{columns:{base:1,sm:2},spacing:6,children:[s.jsxs(Wo,{children:[s.jsx(Uo,{children:"Identifiant"}),s.jsx(Di,{fontSize:"md",fontFamily:"mono",children:r.user_id})]}),s.jsxs(Wo,{children:[s.jsx(Uo,{children:"Rôle"}),s.jsx(Di,{fontSize:"md",children:gk(r.role)})]}),s.jsxs(Wo,{children:[s.jsx(Uo,{children:"Type d'abonnement"}),s.jsx(Di,{fontSize:"md",children:r.type_abonnement||"—"})]}),s.jsxs(Wo,{children:[s.jsx(Uo,{children:"Mot de passe"}),s.jsx(tc,{defaultValue:"",placeholder:"••••••••",onSubmit:I,isDisabled:f,submitOnBlur:!1,children:s.jsxs(he,{spacing:2,children:[s.jsx(rc,{as:Di,fontSize:"md",fontFamily:"mono"}),s.jsx(nc,{type:y?"text":"password",fontSize:"md",fontFamily:"mono"}),s.jsx(In,{"aria-label":y?"Masquer le mot de passe":"Afficher le mot de passe",icon:s.jsx(Oe,{icon:y?O7:E7}),size:"sm",variant:"ghost",tabIndex:-1,onClick:()=>x(F=>!F)}),s.jsx(Kd,{})]})},h)]}),s.jsxs(Wo,{children:[s.jsx(Uo,{children:"Telegram"}),b?s.jsx(tc,{defaultValue:b,onSubmit:D,isDisabled:S,submitOnBlur:!1,children:s.jsxs(he,{spacing:2,children:[s.jsx(rc,{as:Di,fontSize:"md",fontFamily:"mono"}),s.jsx(nc,{fontSize:"md",fontFamily:"mono"}),s.jsx(Kd,{})]})},b):k?s.jsx(tc,{defaultValue:"",placeholder:"@monpseudo",startWithEditView:!0,onSubmit:D,onCancel:()=>P(!1),isDisabled:S,submitOnBlur:!1,children:s.jsxs(he,{spacing:2,children:[s.jsx(rc,{as:Di,fontSize:"md",fontFamily:"mono"}),s.jsx(nc,{fontSize:"md",fontFamily:"mono"}),s.jsx(Kd,{})]})}):s.jsx(ye,{size:"sm",variant:"outline",onClick:()=>P(!0),children:"Ajouter mon Telegram"})]}),s.jsxs(Wo,{children:[s.jsx(Uo,{children:"Expire le"}),s.jsx(Di,{fontSize:"md",children:Hce(r.expired_at)})]})]}),r.role==="admin"&&s.jsxs(s.Fragment,{children:[s.jsx(la,{borderColor:"chakra-border-color"}),s.jsxs(xe,{spacing:4,children:[s.jsxs(se,{children:[s.jsx(jt,{size:"sm",children:"Alertes monitoring"}),s.jsx(J,{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(Te,{children:[s.jsx(Ee,{fontSize:"sm",children:"Webhook Discord"}),s.jsx(gt,{fontFamily:"mono",fontSize:"sm",placeholder:"https://discord.com/api/webhooks/...",value:j,onChange:F=>_(F.target.value),isDisabled:ne})]}),s.jsxs(pn,{columns:{base:1,sm:2},spacing:4,children:[s.jsxs(Te,{children:[s.jsx(Ee,{fontSize:"sm",children:"Bot Telegram (token)"}),s.jsx(gt,{fontFamily:"mono",fontSize:"sm",placeholder:"123456789:AAExemple...",value:M,onChange:F=>T(F.target.value),isDisabled:ne})]}),s.jsxs(Te,{children:[s.jsx(Ee,{fontSize:"sm",children:"Telegram (chat ID)"}),s.jsx(gt,{fontFamily:"mono",fontSize:"sm",placeholder:"-100123456789",value:O,onChange:F=>K(F.target.value),isDisabled:ne}),s.jsx(ou,{children:"Envoyez un message au bot puis récupérez le chat_id via son API."})]})]}),s.jsx(St,{justify:"flex-end",children:s.jsx(ye,{size:"sm",colorScheme:"primary",isLoading:ne,onClick:X,children:"Enregistrer les alertes"})})]})]}),s.jsx(la,{borderColor:"chakra-border-color"}),s.jsx(St,{justify:"flex-end",children:s.jsx(ye,{colorScheme:"red",variant:"outline",isLoading:l,onClick:R,children:"Se déconnecter"})})]}):s.jsx(J,{color:"gray.500",children:"Aucune information disponible."})})]})})}const vk=[{to:"/",label:"Accueil",end:!0},{to:"/tarifs",label:"Tarifs",end:!1},{to:"/documentation",label:"Documentation",end:!1},{to:"/contact",label:"Contact",end:!1}],qce=()=>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}=ku();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(un,{maxW:"container.lg",children:s.jsxs(St,{h:16,align:"center",justify:"space-between",children:[s.jsxs(he,{spacing:8,children:[s.jsx(se,{as:Gt,to:"/",fontWeight:"bold",fontSize:"xl",letterSpacing:"tight",children:"Omnex"}),s.jsx(he,{as:"nav",spacing:1,display:{base:"none",md:"flex"},children:vk.map(r=>s.jsx(yk,{to:r.to,end:r.end,children:r.label},r.to))})]}),s.jsxs(he,{spacing:2,display:{base:"none",md:"flex"},children:[s.jsx(_a,{}),s.jsx(ye,{as:Gt,to:"/login",variant:"ghost",size:"sm",children:"Espace client"}),s.jsx(ye,{as:Gt,to:"/register",colorScheme:"primary",size:"sm",children:"Créer un compte"})]}),s.jsxs(he,{spacing:1,display:{base:"flex",md:"none"},children:[s.jsx(_a,{}),s.jsx(In,{"aria-label":"Ouvrir le menu",variant:"ghost",onClick:t,icon:s.jsx(qce,{})})]})]})}),s.jsxs(s8,{isOpen:e,placement:"right",onClose:n,size:"xs",children:[s.jsx(vl,{}),s.jsxs(Nb,{bg:"chakra-body-bg",children:[s.jsx(Fu,{size:"lg"}),s.jsx(gl,{borderBottomWidth:"1px",fontWeight:"bold",fontSize:"xl",children:"Omnex"}),s.jsxs(hl,{py:6,children:[s.jsx(xe,{as:"nav",spacing:1,children:vk.map(r=>s.jsx(yk,{to:r.to,end:r.end,onClick:n,mobile:!0,children:r.label},r.to))}),s.jsx(la,{my:6}),s.jsxs(xe,{spacing:3,children:[s.jsx(ye,{as:Gt,to:"/login",variant:"outline",justifyContent:"flex-start",onClick:n,children:"Espace client"}),s.jsx(ye,{as:Gt,to:"/register",colorScheme:"primary",justifyContent:"flex-start",onClick:n,children:"Créer un compte"})]})]})]})]})]})}function yk({to:e,end:t,children:n,onClick:r,mobile:i=!1}){return s.jsx(ye,{as:mT,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 Xce(){return s.jsx(se,{as:"footer",borderTopWidth:"1px",mt:20,bg:"chakra-subtle-bg",children:s.jsxs(un,{maxW:"container.lg",py:12,children:[s.jsxs(pn,{columns:{base:1,md:4},spacing:8,children:[s.jsxs(xe,{spacing:3,children:[s.jsx(J,{fontWeight:"bold",fontSize:"lg",children:"Omnex"}),s.jsx(J,{fontSize:"sm",color:"gray.500",children:"Plateforme de gestion de commandes & livraison, déployable en démo isolée en un clic."})]}),s.jsxs(bk,{title:"Produit",children:[s.jsx(Xd,{to:"/",children:"Présentation"}),s.jsx(Xd,{to:"/tarifs",children:"Tarifs"}),s.jsx(Xd,{to:"/register",children:"Créer un compte"})]}),s.jsxs(bk,{title:"Ressources",children:[s.jsx(Xd,{to:"/documentation",children:"Documentation"}),s.jsx(Yd,{href:"#",children:"Statut"}),s.jsx(Yd,{href:"#",children:"Sécurité"})]})]}),s.jsx(la,{my:8}),s.jsxs(he,{justify:"space-between",flexWrap:"wrap",spacing:4,children:[s.jsxs(J,{fontSize:"sm",color:"gray.500",children:["© ",new Date().getFullYear()," Omnex. Tous droits réservés."]}),s.jsxs(he,{spacing:6,fontSize:"sm",color:"gray.500",children:[s.jsx(Yd,{href:"#",children:"Mentions légales"}),s.jsx(Yd,{href:"#",children:"Confidentialité"})]})]})]})})}function bk({title:e,children:t}){return s.jsxs(xe,{spacing:2,children:[s.jsx(J,{fontWeight:"semibold",fontSize:"sm",textTransform:"uppercase",color:"gray.500",children:e}),t]})}function Xd({to:e,children:t}){return s.jsx(jo,{as:Gt,to:e,fontSize:"sm",color:"gray.600",_hover:{color:"primary.500"},children:t})}function Yd({href:e,children:t}){return s.jsx(jo,{href:e,fontSize:"sm",color:"gray.600",_hover:{color:"primary.500"},children:t})}function Yce(){return s.jsxs(St,{direction:"column",minH:"100vh",children:[s.jsx(Kce,{}),s.jsx(se,{as:"main",flex:"1",children:s.jsx(fT,{})}),s.jsx(Xce,{})]})}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"})}),xk="https://t.me/OMNEX_CORP";function Zce(){const{logout:e,isAdmin:t,isClient:n}=Eo(),r=_r(),{isOpen:i,onOpen:o,onClose:a}=ku(),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(St,{as:"header",px:6,py:3,borderBottomWidth:"1px",align:"center",gap:6,children:[s.jsxs(jt,{size:"sm",as:Gt,to:"/app",children:["Omnex · ",t?"Espace admin":"Espace client"]}),s.jsxs(he,{spacing:1,display:{base:"none",md:"flex"},children:[n&&s.jsx(Rr,{to:"/app/subscription",children:"Abonnement"}),(t||n)&&s.jsx(Rr,{to:"/app/profile",children:"Profile"}),t&&s.jsx(Rr,{to:"/app/demos",children:"Démos"}),t&&s.jsx(Rr,{to:"/app/premium",children:"Premium"}),t&&s.jsx(Rr,{to:"/app/codes",children:"Codes"})]}),s.jsx(ka,{}),s.jsxs(he,{spacing:2,display:{base:"none",md:"flex"},children:[s.jsx(On,{colorScheme:u,children:c}),s.jsx(ye,{as:"a",href:xk,target:"_blank",rel:"noopener noreferrer",size:"sm",variant:"outline",children:"Support"}),s.jsx(_a,{}),s.jsx(ye,{size:"sm",variant:"outline",onClick:l,children:"Déconnexion"})]}),s.jsxs(he,{spacing:1,display:{base:"flex",md:"none"},children:[s.jsx(On,{colorScheme:u,children:c}),s.jsx(_a,{}),s.jsx(In,{"aria-label":"Ouvrir le menu",variant:"ghost",onClick:o,icon:s.jsx(Qce,{})})]})]}),s.jsxs(s8,{isOpen:i,placement:"right",onClose:a,size:"xs",children:[s.jsx(vl,{}),s.jsxs(Nb,{bg:"chakra-body-bg",children:[s.jsx(Fu,{size:"lg"}),s.jsxs(gl,{borderBottomWidth:"1px",fontWeight:"bold",fontSize:"xl",children:["Omnex · ",t?"Espace admin":"Espace client"]}),s.jsxs(hl,{py:6,children:[s.jsxs(xe,{as:"nav",spacing:1,children:[n&&s.jsx(Rr,{to:"/app/subscription",onClick:a,mobile:!0,children:"Abonnement"}),t&&s.jsx(Rr,{to:"/app/demos",onClick:a,mobile:!0,children:"Démos"}),t&&s.jsx(Rr,{to:"/app/premium",onClick:a,mobile:!0,children:"Premium"}),t&&s.jsx(Rr,{to:"/app/codes",onClick:a,mobile:!0,children:"Codes"}),(t||n)&&s.jsx(Rr,{to:"/app/profile",onClick:a,mobile:!0,children:"Profile"})]}),s.jsx(la,{my:6}),s.jsxs(xe,{spacing:3,children:[s.jsx(ye,{as:"a",href:xk,target:"_blank",rel:"noopener noreferrer",variant:"outline",justifyContent:"flex-start",onClick:a,children:"Support"}),s.jsx(ye,{variant:"outline",justifyContent:"flex-start",onClick:l,children:"Déconnexion"})]})]})]})]}),s.jsx(un,{maxW:"container.xl",py:8,children:s.jsx(fT,{})})]})}function Rr({to:e,children:t,onClick:n,mobile:r=!1}){return s.jsx(ye,{as:mT,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}=Eo(),r=Ra();if(n)return s.jsx(XP,{h:"100vh",children:s.jsx(Dn,{})});if(t)return e;const i=Jce.some(o=>r.pathname.startsWith(o));return s.jsx(gu,{to:i?"/admin/login":"/login",replace:!0})}function D0({children:e}){const{isAdmin:t}=Eo();return t?e:s.jsx(gu,{to:"/app/subscription",replace:!0})}function tue(){const{role:e}=Eo();switch(e){case"admin":return s.jsx(gu,{to:"/app/demos",replace:!0});default:return s.jsx(gu,{to:"/app/subscription",replace:!0})}}function nue(){return s.jsxs(Bre,{children:[s.jsxs(en,{element:s.jsx(Yce,{}),children:[s.jsx(en,{path:"/",element:s.jsx(nie,{})}),s.jsx(en,{path:"/tarifs",element:s.jsx(iie,{})}),s.jsx(en,{path:"/documentation",element:s.jsx(Sce,{})})]}),s.jsx(en,{path:"/login",element:s.jsx(Pce,{})}),s.jsx(en,{path:"/admin/login",element:s.jsx(_ce,{})}),s.jsx(en,{path:"/register",element:s.jsx(Tce,{})}),s.jsxs(en,{path:"/app",element:s.jsx(eue,{children:s.jsx(Zce,{})}),children:[s.jsx(en,{index:!0,element:s.jsx(tue,{})}),s.jsx(en,{path:"demos",element:s.jsx(D0,{children:s.jsx(Lce,{})})}),s.jsx(en,{path:"codes",element:s.jsx(D0,{children:s.jsx(Bce,{})})}),s.jsx(en,{path:"premium",element:s.jsx(D0,{children:s.jsx(Oce,{})})}),s.jsx(en,{path:"subscription",element:s.jsx(Vce,{})}),s.jsx(en,{path:"profile",element:s.jsx(Gce,{})})]}),s.jsx(en,{path:"*",element:s.jsx(gu,{to:"/",replace:!0})})]})}const rue={initialColorMode:"system",useSystemColorMode:!1},Sk=fb({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"}},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"}}},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"}}}}}},A8);F0.createRoot(document.getElementById("root")).render(s.jsxs(Vt.StrictMode,{children:[s.jsx(_G,{initialColorMode:Sk.config.initialColorMode}),s.jsx(Ete,{theme:Sk,children:s.jsx(kce,{children:s.jsx(Xre,{children:s.jsx(nue,{})})})})]}));