summary refs log tree commit diff
path: root/assets/index-BO_Uq_O3.js
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2024-07-10 09:30:51 +0000
committerBaitinq <[email protected]>2024-07-10 09:30:51 +0000
commit0e844dfc0d5dd6d7061848a6c8c51522d7d86bc5 (patch)
tree643d05180d7908266f9cc6ce082c5b1e0dc40953 /assets/index-BO_Uq_O3.js
parentDeploying to gh-pages from @ Baitinq/fs-tracer-frontend@064188855bdf8528e78af... (diff)
downloadfs-tracer-frontend-0e844dfc0d5dd6d7061848a6c8c51522d7d86bc5.tar.gz
fs-tracer-frontend-0e844dfc0d5dd6d7061848a6c8c51522d7d86bc5.tar.bz2
fs-tracer-frontend-0e844dfc0d5dd6d7061848a6c8c51522d7d86bc5.zip
Deploying to gh-pages from @ Baitinq/fs-tracer-frontend@db6870a0bab73a591a3a7c809df2871d7923703e 🚀
Diffstat (limited to 'assets/index-BO_Uq_O3.js')
-rw-r--r--assets/index-BO_Uq_O3.js85
1 files changed, 85 insertions, 0 deletions
diff --git a/assets/index-BO_Uq_O3.js b/assets/index-BO_Uq_O3.js
new file mode 100644
index 0000000..5b47457
--- /dev/null
+++ b/assets/index-BO_Uq_O3.js
@@ -0,0 +1,85 @@
+var iR=Object.defineProperty;var aR=(e,t,n)=>t in e?iR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var j=(e,t,n)=>(aR(e,typeof t!="symbol"?t+"":t,n),n);function sR(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 a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{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 a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function ow(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lw={exports:{}},Yd={},uw={exports:{}},ie={};/**
+ * @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 _l=Symbol.for("react.element"),oR=Symbol.for("react.portal"),lR=Symbol.for("react.fragment"),uR=Symbol.for("react.strict_mode"),cR=Symbol.for("react.profiler"),dR=Symbol.for("react.provider"),fR=Symbol.for("react.context"),hR=Symbol.for("react.forward_ref"),pR=Symbol.for("react.suspense"),mR=Symbol.for("react.memo"),gR=Symbol.for("react.lazy"),j$=Symbol.iterator;function vR(e){return e===null||typeof e!="object"?null:(e=j$&&e[j$]||e["@@iterator"],typeof e=="function"?e:null)}var cw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},dw=Object.assign,fw={};function _s(e,t,n){this.props=e,this.context=t,this.refs=fw,this.updater=n||cw}_s.prototype.isReactComponent={};_s.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")};_s.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hw(){}hw.prototype=_s.prototype;function Z3(e,t,n){this.props=e,this.context=t,this.refs=fw,this.updater=n||cw}var X3=Z3.prototype=new hw;X3.constructor=Z3;dw(X3,_s.prototype);X3.isPureReactComponent=!0;var z$=Array.isArray,pw=Object.prototype.hasOwnProperty,Q3={current:null},mw={key:!0,ref:!0,__self:!0,__source:!0};function gw(e,t,n){var r,i={},a=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(a=""+t.key),t)pw.call(t,r)&&!mw.hasOwnProperty(r)&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var l=Array(o),u=0;u<o;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return{$$typeof:_l,type:e,key:a,ref:s,props:i,_owner:Q3.current}}function bR(e,t){return{$$typeof:_l,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function J3(e){return typeof e=="object"&&e!==null&&e.$$typeof===_l}function yR(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var V$=/\/+/g;function jf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?yR(""+e.key):t.toString(36)}function ju(e,t,n,r,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case _l:case oR:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+jf(s,0):r,z$(i)?(n="",e!=null&&(n=e.replace(V$,"$&/")+"/"),ju(i,t,n,"",function(u){return u})):i!=null&&(J3(i)&&(i=bR(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(V$,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",z$(e))for(var o=0;o<e.length;o++){a=e[o];var l=r+jf(a,o);s+=ju(a,t,n,l,i)}else if(l=vR(e),typeof l=="function")for(e=l.call(e),o=0;!(a=e.next()).done;)a=a.value,l=r+jf(a,o++),s+=ju(a,t,n,l,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function jl(e,t,n){if(e==null)return e;var r=[],i=0;return ju(e,r,"","",function(a){return t.call(n,a,i++)}),r}function $R(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 Ft={current:null},zu={transition:null},xR={ReactCurrentDispatcher:Ft,ReactCurrentBatchConfig:zu,ReactCurrentOwner:Q3};function vw(){throw Error("act(...) is not supported in production builds of React.")}ie.Children={map:jl,forEach:function(e,t,n){jl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return jl(e,function(){t++}),t},toArray:function(e){return jl(e,function(t){return t})||[]},only:function(e){if(!J3(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ie.Component=_s;ie.Fragment=lR;ie.Profiler=cR;ie.PureComponent=Z3;ie.StrictMode=uR;ie.Suspense=pR;ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xR;ie.act=vw;ie.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=dw({},e.props),i=e.key,a=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,s=Q3.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(l in t)pw.call(t,l)&&!mw.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&o!==void 0?o[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){o=Array(l);for(var u=0;u<l;u++)o[u]=arguments[u+2];r.children=o}return{$$typeof:_l,type:e.type,key:i,ref:a,props:r,_owner:s}};ie.createContext=function(e){return e={$$typeof:fR,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:dR,_context:e},e.Consumer=e};ie.createElement=gw;ie.createFactory=function(e){var t=gw.bind(null,e);return t.type=e,t};ie.createRef=function(){return{current:null}};ie.forwardRef=function(e){return{$$typeof:hR,render:e}};ie.isValidElement=J3;ie.lazy=function(e){return{$$typeof:gR,_payload:{_status:-1,_result:e},_init:$R}};ie.memo=function(e,t){return{$$typeof:mR,type:e,compare:t===void 0?null:t}};ie.startTransition=function(e){var t=zu.transition;zu.transition={};try{e()}finally{zu.transition=t}};ie.unstable_act=vw;ie.useCallback=function(e,t){return Ft.current.useCallback(e,t)};ie.useContext=function(e){return Ft.current.useContext(e)};ie.useDebugValue=function(){};ie.useDeferredValue=function(e){return Ft.current.useDeferredValue(e)};ie.useEffect=function(e,t){return Ft.current.useEffect(e,t)};ie.useId=function(){return Ft.current.useId()};ie.useImperativeHandle=function(e,t,n){return Ft.current.useImperativeHandle(e,t,n)};ie.useInsertionEffect=function(e,t){return Ft.current.useInsertionEffect(e,t)};ie.useLayoutEffect=function(e,t){return Ft.current.useLayoutEffect(e,t)};ie.useMemo=function(e,t){return Ft.current.useMemo(e,t)};ie.useReducer=function(e,t,n){return Ft.current.useReducer(e,t,n)};ie.useRef=function(e){return Ft.current.useRef(e)};ie.useState=function(e){return Ft.current.useState(e)};ie.useSyncExternalStore=function(e,t,n){return Ft.current.useSyncExternalStore(e,t,n)};ie.useTransition=function(){return Ft.current.useTransition()};ie.version="18.3.1";uw.exports=ie;var y=uw.exports;const _=ow(y),wR=sR({__proto__:null,default:_},[y]);/**
+ * @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 DR=y,_R=Symbol.for("react.element"),ER=Symbol.for("react.fragment"),SR=Object.prototype.hasOwnProperty,CR=DR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,kR={key:!0,ref:!0,__self:!0,__source:!0};function bw(e,t,n){var r,i={},a=null,s=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)SR.call(t,r)&&!kR.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:_R,type:e,key:a,ref:s,props:i,_owner:CR.current}}Yd.Fragment=ER;Yd.jsx=bw;Yd.jsxs=bw;lw.exports=Yd;var I=lw.exports,pp={},yw={exports:{}},un={},$w={exports:{}},xw={};/**
+ * @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(F,B){var N=F.length;F.push(B);e:for(;0<N;){var X=N-1>>>1,Q=F[X];if(0<i(Q,B))F[X]=B,F[N]=Q,N=X;else break e}}function n(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var B=F[0],N=F.pop();if(N!==B){F[0]=N;e:for(var X=0,Q=F.length,je=Q>>>1;X<je;){var $e=2*(X+1)-1,lt=F[$e],xe=$e+1,W=F[xe];if(0>i(lt,N))xe<Q&&0>i(W,lt)?(F[X]=W,F[xe]=N,X=xe):(F[X]=lt,F[$e]=N,X=$e);else if(xe<Q&&0>i(W,N))F[X]=W,F[xe]=N,X=xe;else break e}}return B}function i(F,B){var N=F.sortIndex-B.sortIndex;return N!==0?N:F.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(F){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=F)r(u),B.sortIndex=B.expirationTime,t(l,B);else break;B=n(u)}}function w(F){if(g=!1,$(F),!p)if(n(l)!==null)p=!0,O(D);else{var B=n(u);B!==null&&C(w,B.startTime-F)}}function D(F,B){p=!1,g&&(g=!1,v(x),x=-1),h=!0;var N=f;try{for($(B),d=n(l);d!==null&&(!(d.expirationTime>B)||F&&!E());){var X=d.callback;if(typeof X=="function"){d.callback=null,f=d.priorityLevel;var Q=X(d.expirationTime<=B);B=e.unstable_now(),typeof Q=="function"?d.callback=Q:d===n(l)&&r(l),$(B)}else r(l);d=n(l)}if(d!==null)var je=!0;else{var $e=n(u);$e!==null&&C(w,$e.startTime-B),je=!1}return je}finally{d=null,f=N,h=!1}}var S=!1,k=null,x=-1,T=5,P=-1;function E(){return!(e.unstable_now()-P<T)}function A(){if(k!==null){var F=e.unstable_now();P=F;var B=!0;try{B=k(!0,F)}finally{B?R():(S=!1,k=null)}}else S=!1}var R;if(typeof m=="function")R=function(){m(A)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,z=M.port2;M.port1.onmessage=A,R=function(){z.postMessage(null)}}else R=function(){b(A,0)};function O(F){k=F,S||(S=!0,R())}function C(F,B){x=b(function(){F(e.unstable_now())},B)}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(F){F.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,O(D))},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(F){switch(f){case 1:case 2:case 3:var B=3;break;default:B=f}var N=f;f=B;try{return F()}finally{f=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,B){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var N=f;f=F;try{return B()}finally{f=N}},e.unstable_scheduleCallback=function(F,B,N){var X=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?X+N:X):N=X,F){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=N+Q,F={id:c++,callback:B,priorityLevel:F,startTime:N,expirationTime:Q,sortIndex:-1},N>X?(F.sortIndex=N,t(u,F),n(l)===null&&F===n(u)&&(g?(v(x),x=-1):g=!0,C(w,N-X))):(F.sortIndex=Q,t(l,F),p||h||(p=!0,O(D))),F},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(F){var B=f;return function(){var N=f;f=B;try{return F.apply(this,arguments)}finally{f=N}}}})(xw);$w.exports=xw;var PR=$w.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 TR=y,on=PR;function L(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 ww=new Set,Lo={};function oa(e,t){cs(e,t),cs(e+"Capture",t)}function cs(e,t){for(Lo[e]=t,e=0;e<t.length;e++)ww.add(t[e])}var vr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mp=Object.prototype.hasOwnProperty,RR=/^[: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]*$/,W$={},U$={};function MR(e){return mp.call(U$,e)?!0:mp.call(W$,e)?!1:RR.test(e)?U$[e]=!0:(W$[e]=!0,!1)}function AR(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 FR(e,t,n,r){if(t===null||typeof t>"u"||AR(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 Ot(e,t,n,r,i,a,s){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=a,this.removeEmptyString=s}var gt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){gt[e]=new Ot(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];gt[t]=new Ot(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){gt[e]=new Ot(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){gt[e]=new Ot(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){gt[e]=new Ot(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){gt[e]=new Ot(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){gt[e]=new Ot(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){gt[e]=new Ot(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){gt[e]=new Ot(e,5,!1,e.toLowerCase(),null,!1,!1)});var ey=/[\-:]([a-z])/g;function ty(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(ey,ty);gt[t]=new Ot(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(ey,ty);gt[t]=new Ot(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(ey,ty);gt[t]=new Ot(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){gt[e]=new Ot(e,1,!1,e.toLowerCase(),null,!1,!1)});gt.xlinkHref=new Ot("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){gt[e]=new Ot(e,1,!1,e.toLowerCase(),null,!0,!0)});function ny(e,t,n,r){var i=gt.hasOwnProperty(t)?gt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(FR(t,n,i,r)&&(n=null),r||i===null?MR(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 xr=TR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,zl=Symbol.for("react.element"),Aa=Symbol.for("react.portal"),Fa=Symbol.for("react.fragment"),ry=Symbol.for("react.strict_mode"),gp=Symbol.for("react.profiler"),Dw=Symbol.for("react.provider"),_w=Symbol.for("react.context"),iy=Symbol.for("react.forward_ref"),vp=Symbol.for("react.suspense"),bp=Symbol.for("react.suspense_list"),ay=Symbol.for("react.memo"),Mr=Symbol.for("react.lazy"),Ew=Symbol.for("react.offscreen"),H$=Symbol.iterator;function As(e){return e===null||typeof e!="object"?null:(e=H$&&e[H$]||e["@@iterator"],typeof e=="function"?e:null)}var Ne=Object.assign,zf;function no(e){if(zf===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);zf=t&&t[1]||""}return`
+`+zf+e}var Vf=!1;function Wf(e,t){if(!e||Vf)return"";Vf=!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(`
+`),a=r.stack.split(`
+`),s=i.length-1,o=a.length-1;1<=s&&0<=o&&i[s]!==a[o];)o--;for(;1<=s&&0<=o;s--,o--)if(i[s]!==a[o]){if(s!==1||o!==1)do if(s--,o--,0>o||i[s]!==a[o]){var l=`
+`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=o);break}}}finally{Vf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?no(e):""}function OR(e){switch(e.tag){case 5:return no(e.type);case 16:return no("Lazy");case 13:return no("Suspense");case 19:return no("SuspenseList");case 0:case 2:case 15:return e=Wf(e.type,!1),e;case 11:return e=Wf(e.type.render,!1),e;case 1:return e=Wf(e.type,!0),e;default:return""}}function yp(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 Fa:return"Fragment";case Aa:return"Portal";case gp:return"Profiler";case ry:return"StrictMode";case vp:return"Suspense";case bp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _w:return(e.displayName||"Context")+".Consumer";case Dw:return(e._context.displayName||"Context")+".Provider";case iy:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ay:return t=e.displayName||null,t!==null?t:yp(e.type)||"Memo";case Mr:t=e._payload,e=e._init;try{return yp(e(t))}catch{}}return null}function BR(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 yp(t);case 8:return t===ry?"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 ri(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Sw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function IR(e){var t=Sw(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,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vl(e){e._valueTracker||(e._valueTracker=IR(e))}function Cw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Sw(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function cc(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 $p(e,t){var n=t.checked;return Ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function K$(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ri(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 kw(e,t){t=t.checked,t!=null&&ny(e,"checked",t,!1)}function xp(e,t){kw(e,t);var n=ri(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")?wp(e,t.type,n):t.hasOwnProperty("defaultValue")&&wp(e,t.type,ri(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Y$(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 wp(e,t,n){(t!=="number"||cc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ro=Array.isArray;function qa(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=""+ri(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 Dp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(L(91));return Ne({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function q$(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(L(92));if(ro(n)){if(1<n.length)throw Error(L(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ri(n)}}function Pw(e,t){var n=ri(t.value),r=ri(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 G$(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Tw(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 _p(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Tw(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Wl,Rw=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(Wl=Wl||document.createElement("div"),Wl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Wl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function No(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yo={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},LR=["Webkit","ms","Moz","O"];Object.keys(yo).forEach(function(e){LR.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yo[t]=yo[e]})});function Mw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||yo.hasOwnProperty(e)&&yo[e]?(""+t).trim():t+"px"}function Aw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Mw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var NR=Ne({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 Ep(e,t){if(t){if(NR[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function Sp(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 Cp=null;function sy(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kp=null,Ga=null,Za=null;function Z$(e){if(e=Cl(e)){if(typeof kp!="function")throw Error(L(280));var t=e.stateNode;t&&(t=Qd(t),kp(e.stateNode,e.type,t))}}function Fw(e){Ga?Za?Za.push(e):Za=[e]:Ga=e}function Ow(){if(Ga){var e=Ga,t=Za;if(Za=Ga=null,Z$(e),t)for(e=0;e<t.length;e++)Z$(t[e])}}function Bw(e,t){return e(t)}function Iw(){}var Uf=!1;function Lw(e,t,n){if(Uf)return e(t,n);Uf=!0;try{return Bw(e,t,n)}finally{Uf=!1,(Ga!==null||Za!==null)&&(Iw(),Ow())}}function jo(e,t){var n=e.stateNode;if(n===null)return null;var r=Qd(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(L(231,t,typeof n));return n}var Pp=!1;if(vr)try{var Fs={};Object.defineProperty(Fs,"passive",{get:function(){Pp=!0}}),window.addEventListener("test",Fs,Fs),window.removeEventListener("test",Fs,Fs)}catch{Pp=!1}function jR(e,t,n,r,i,a,s,o,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var $o=!1,dc=null,fc=!1,Tp=null,zR={onError:function(e){$o=!0,dc=e}};function VR(e,t,n,r,i,a,s,o,l){$o=!1,dc=null,jR.apply(zR,arguments)}function WR(e,t,n,r,i,a,s,o,l){if(VR.apply(this,arguments),$o){if($o){var u=dc;$o=!1,dc=null}else throw Error(L(198));fc||(fc=!0,Tp=u)}}function la(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 Nw(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 X$(e){if(la(e)!==e)throw Error(L(188))}function UR(e){var t=e.alternate;if(!t){if(t=la(e),t===null)throw Error(L(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return X$(i),e;if(a===r)return X$(i),t;a=a.sibling}throw Error(L(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,o=i.child;o;){if(o===n){s=!0,n=i,r=a;break}if(o===r){s=!0,r=i,n=a;break}o=o.sibling}if(!s){for(o=a.child;o;){if(o===n){s=!0,n=a,r=i;break}if(o===r){s=!0,r=a,n=i;break}o=o.sibling}if(!s)throw Error(L(189))}}if(n.alternate!==r)throw Error(L(190))}if(n.tag!==3)throw Error(L(188));return n.stateNode.current===n?e:t}function jw(e){return e=UR(e),e!==null?zw(e):null}function zw(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=zw(e);if(t!==null)return t;e=e.sibling}return null}var Vw=on.unstable_scheduleCallback,Q$=on.unstable_cancelCallback,HR=on.unstable_shouldYield,KR=on.unstable_requestPaint,Ye=on.unstable_now,YR=on.unstable_getCurrentPriorityLevel,oy=on.unstable_ImmediatePriority,Ww=on.unstable_UserBlockingPriority,hc=on.unstable_NormalPriority,qR=on.unstable_LowPriority,Uw=on.unstable_IdlePriority,qd=null,Kn=null;function GR(e){if(Kn&&typeof Kn.onCommitFiberRoot=="function")try{Kn.onCommitFiberRoot(qd,e,void 0,(e.current.flags&128)===128)}catch{}}var An=Math.clz32?Math.clz32:QR,ZR=Math.log,XR=Math.LN2;function QR(e){return e>>>=0,e===0?32:31-(ZR(e)/XR|0)|0}var Ul=64,Hl=4194304;function io(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 pc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,s=n&268435455;if(s!==0){var o=s&~i;o!==0?r=io(o):(a&=s,a!==0&&(r=io(a)))}else s=n&~i,s!==0?r=io(s):a!==0&&(r=io(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&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-An(t),i=1<<n,r|=e[n],t&=~i;return r}function JR(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 eM(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-An(a),o=1<<s,l=i[s];l===-1?(!(o&n)||o&r)&&(i[s]=JR(o,t)):l<=t&&(e.expiredLanes|=o),a&=~o}}function Rp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Hw(){var e=Ul;return Ul<<=1,!(Ul&4194240)&&(Ul=64),e}function Hf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function El(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-An(t),e[t]=n}function tM(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-An(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function ly(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-An(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ge=0;function Kw(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Yw,uy,qw,Gw,Zw,Mp=!1,Kl=[],Yr=null,qr=null,Gr=null,zo=new Map,Vo=new Map,Br=[],nM="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 J$(e,t){switch(e){case"focusin":case"focusout":Yr=null;break;case"dragenter":case"dragleave":qr=null;break;case"mouseover":case"mouseout":Gr=null;break;case"pointerover":case"pointerout":zo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vo.delete(t.pointerId)}}function Os(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Cl(t),t!==null&&uy(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function rM(e,t,n,r,i){switch(t){case"focusin":return Yr=Os(Yr,e,t,n,r,i),!0;case"dragenter":return qr=Os(qr,e,t,n,r,i),!0;case"mouseover":return Gr=Os(Gr,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return zo.set(a,Os(zo.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Vo.set(a,Os(Vo.get(a)||null,e,t,n,r,i)),!0}return!1}function Xw(e){var t=Bi(e.target);if(t!==null){var n=la(t);if(n!==null){if(t=n.tag,t===13){if(t=Nw(n),t!==null){e.blockedOn=t,Zw(e.priority,function(){qw(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 Vu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ap(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Cp=r,n.target.dispatchEvent(r),Cp=null}else return t=Cl(n),t!==null&&uy(t),e.blockedOn=n,!1;t.shift()}return!0}function ex(e,t,n){Vu(e)&&n.delete(t)}function iM(){Mp=!1,Yr!==null&&Vu(Yr)&&(Yr=null),qr!==null&&Vu(qr)&&(qr=null),Gr!==null&&Vu(Gr)&&(Gr=null),zo.forEach(ex),Vo.forEach(ex)}function Bs(e,t){e.blockedOn===t&&(e.blockedOn=null,Mp||(Mp=!0,on.unstable_scheduleCallback(on.unstable_NormalPriority,iM)))}function Wo(e){function t(i){return Bs(i,e)}if(0<Kl.length){Bs(Kl[0],e);for(var n=1;n<Kl.length;n++){var r=Kl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Yr!==null&&Bs(Yr,e),qr!==null&&Bs(qr,e),Gr!==null&&Bs(Gr,e),zo.forEach(t),Vo.forEach(t),n=0;n<Br.length;n++)r=Br[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Br.length&&(n=Br[0],n.blockedOn===null);)Xw(n),n.blockedOn===null&&Br.shift()}var Xa=xr.ReactCurrentBatchConfig,mc=!0;function aM(e,t,n,r){var i=ge,a=Xa.transition;Xa.transition=null;try{ge=1,cy(e,t,n,r)}finally{ge=i,Xa.transition=a}}function sM(e,t,n,r){var i=ge,a=Xa.transition;Xa.transition=null;try{ge=4,cy(e,t,n,r)}finally{ge=i,Xa.transition=a}}function cy(e,t,n,r){if(mc){var i=Ap(e,t,n,r);if(i===null)th(e,t,r,gc,n),J$(e,r);else if(rM(i,e,t,n,r))r.stopPropagation();else if(J$(e,r),t&4&&-1<nM.indexOf(e)){for(;i!==null;){var a=Cl(i);if(a!==null&&Yw(a),a=Ap(e,t,n,r),a===null&&th(e,t,r,gc,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else th(e,t,r,null,n)}}var gc=null;function Ap(e,t,n,r){if(gc=null,e=sy(r),e=Bi(e),e!==null)if(t=la(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Nw(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 gc=e,null}function Qw(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(YR()){case oy:return 1;case Ww:return 4;case hc:case qR:return 16;case Uw:return 536870912;default:return 16}default:return 16}}var Nr=null,dy=null,Wu=null;function Jw(){if(Wu)return Wu;var e,t=dy,n=t.length,r,i="value"in Nr?Nr.value:Nr.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[a-r];r++);return Wu=i.slice(e,1<r?1-r:void 0)}function Uu(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 Yl(){return!0}function tx(){return!1}function cn(e){function t(n,r,i,a,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=s,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(a):a[o]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Yl:tx,this.isPropagationStopped=tx,this}return Ne(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=Yl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Yl)},persist:function(){},isPersistent:Yl}),t}var Es={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fy=cn(Es),Sl=Ne({},Es,{view:0,detail:0}),oM=cn(Sl),Kf,Yf,Is,Gd=Ne({},Sl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hy,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!==Is&&(Is&&e.type==="mousemove"?(Kf=e.screenX-Is.screenX,Yf=e.screenY-Is.screenY):Yf=Kf=0,Is=e),Kf)},movementY:function(e){return"movementY"in e?e.movementY:Yf}}),nx=cn(Gd),lM=Ne({},Gd,{dataTransfer:0}),uM=cn(lM),cM=Ne({},Sl,{relatedTarget:0}),qf=cn(cM),dM=Ne({},Es,{animationName:0,elapsedTime:0,pseudoElement:0}),fM=cn(dM),hM=Ne({},Es,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),pM=cn(hM),mM=Ne({},Es,{data:0}),rx=cn(mM),gM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vM={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"},bM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yM(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=bM[e])?!!t[e]:!1}function hy(){return yM}var $M=Ne({},Sl,{key:function(e){if(e.key){var t=gM[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Uu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?vM[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hy,charCode:function(e){return e.type==="keypress"?Uu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Uu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),xM=cn($M),wM=Ne({},Gd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ix=cn(wM),DM=Ne({},Sl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hy}),_M=cn(DM),EM=Ne({},Es,{propertyName:0,elapsedTime:0,pseudoElement:0}),SM=cn(EM),CM=Ne({},Gd,{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}),kM=cn(CM),PM=[9,13,27,32],py=vr&&"CompositionEvent"in window,xo=null;vr&&"documentMode"in document&&(xo=document.documentMode);var TM=vr&&"TextEvent"in window&&!xo,eD=vr&&(!py||xo&&8<xo&&11>=xo),ax=" ",sx=!1;function tD(e,t){switch(e){case"keyup":return PM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Oa=!1;function RM(e,t){switch(e){case"compositionend":return nD(t);case"keypress":return t.which!==32?null:(sx=!0,ax);case"textInput":return e=t.data,e===ax&&sx?null:e;default:return null}}function MM(e,t){if(Oa)return e==="compositionend"||!py&&tD(e,t)?(e=Jw(),Wu=dy=Nr=null,Oa=!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 eD&&t.locale!=="ko"?null:t.data;default:return null}}var AM={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 ox(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!AM[e.type]:t==="textarea"}function rD(e,t,n,r){Fw(r),t=vc(t,"onChange"),0<t.length&&(n=new fy("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var wo=null,Uo=null;function FM(e){pD(e,0)}function Zd(e){var t=La(e);if(Cw(t))return e}function OM(e,t){if(e==="change")return t}var iD=!1;if(vr){var Gf;if(vr){var Zf="oninput"in document;if(!Zf){var lx=document.createElement("div");lx.setAttribute("oninput","return;"),Zf=typeof lx.oninput=="function"}Gf=Zf}else Gf=!1;iD=Gf&&(!document.documentMode||9<document.documentMode)}function ux(){wo&&(wo.detachEvent("onpropertychange",aD),Uo=wo=null)}function aD(e){if(e.propertyName==="value"&&Zd(Uo)){var t=[];rD(t,Uo,e,sy(e)),Lw(FM,t)}}function BM(e,t,n){e==="focusin"?(ux(),wo=t,Uo=n,wo.attachEvent("onpropertychange",aD)):e==="focusout"&&ux()}function IM(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zd(Uo)}function LM(e,t){if(e==="click")return Zd(t)}function NM(e,t){if(e==="input"||e==="change")return Zd(t)}function jM(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bn=typeof Object.is=="function"?Object.is:jM;function Ho(e,t){if(Bn(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(!mp.call(t,i)||!Bn(e[i],t[i]))return!1}return!0}function cx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dx(e,t){var n=cx(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=cx(n)}}function sD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function oD(){for(var e=window,t=cc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=cc(e.document)}return t}function my(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 zM(e){var t=oD(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&sD(n.ownerDocument.documentElement,n)){if(r!==null&&my(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,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=dx(n,a);var s=dx(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var VM=vr&&"documentMode"in document&&11>=document.documentMode,Ba=null,Fp=null,Do=null,Op=!1;function fx(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Op||Ba==null||Ba!==cc(r)||(r=Ba,"selectionStart"in r&&my(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}),Do&&Ho(Do,r)||(Do=r,r=vc(Fp,"onSelect"),0<r.length&&(t=new fy("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ba)))}function ql(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ia={animationend:ql("Animation","AnimationEnd"),animationiteration:ql("Animation","AnimationIteration"),animationstart:ql("Animation","AnimationStart"),transitionend:ql("Transition","TransitionEnd")},Xf={},lD={};vr&&(lD=document.createElement("div").style,"AnimationEvent"in window||(delete Ia.animationend.animation,delete Ia.animationiteration.animation,delete Ia.animationstart.animation),"TransitionEvent"in window||delete Ia.transitionend.transition);function Xd(e){if(Xf[e])return Xf[e];if(!Ia[e])return e;var t=Ia[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in lD)return Xf[e]=t[n];return e}var uD=Xd("animationend"),cD=Xd("animationiteration"),dD=Xd("animationstart"),fD=Xd("transitionend"),hD=new Map,hx="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ci(e,t){hD.set(e,t),oa(t,[e])}for(var Qf=0;Qf<hx.length;Qf++){var Jf=hx[Qf],WM=Jf.toLowerCase(),UM=Jf[0].toUpperCase()+Jf.slice(1);ci(WM,"on"+UM)}ci(uD,"onAnimationEnd");ci(cD,"onAnimationIteration");ci(dD,"onAnimationStart");ci("dblclick","onDoubleClick");ci("focusin","onFocus");ci("focusout","onBlur");ci(fD,"onTransitionEnd");cs("onMouseEnter",["mouseout","mouseover"]);cs("onMouseLeave",["mouseout","mouseover"]);cs("onPointerEnter",["pointerout","pointerover"]);cs("onPointerLeave",["pointerout","pointerover"]);oa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));oa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));oa("onBeforeInput",["compositionend","keypress","textInput","paste"]);oa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));oa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));oa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ao="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(" "),HM=new Set("cancel close invalid load scroll toggle".split(" ").concat(ao));function px(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,WR(r,t,void 0,e),e.currentTarget=null}function pD(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 a=void 0;if(t)for(var s=r.length-1;0<=s;s--){var o=r[s],l=o.instance,u=o.currentTarget;if(o=o.listener,l!==a&&i.isPropagationStopped())break e;px(i,o,u),a=l}else for(s=0;s<r.length;s++){if(o=r[s],l=o.instance,u=o.currentTarget,o=o.listener,l!==a&&i.isPropagationStopped())break e;px(i,o,u),a=l}}}if(fc)throw e=Tp,fc=!1,Tp=null,e}function ke(e,t){var n=t[jp];n===void 0&&(n=t[jp]=new Set);var r=e+"__bubble";n.has(r)||(mD(t,e,2,!1),n.add(r))}function eh(e,t,n){var r=0;t&&(r|=4),mD(n,e,r,t)}var Gl="_reactListening"+Math.random().toString(36).slice(2);function Ko(e){if(!e[Gl]){e[Gl]=!0,ww.forEach(function(n){n!=="selectionchange"&&(HM.has(n)||eh(n,!1,e),eh(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gl]||(t[Gl]=!0,eh("selectionchange",!1,t))}}function mD(e,t,n,r){switch(Qw(t)){case 1:var i=aM;break;case 4:i=sM;break;default:i=cy}n=i.bind(null,t,n,e),i=void 0,!Pp||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 th(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var o=r.stateNode.containerInfo;if(o===i||o.nodeType===8&&o.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;o!==null;){if(s=Bi(o),s===null)return;if(l=s.tag,l===5||l===6){r=a=s;continue e}o=o.parentNode}}r=r.return}Lw(function(){var u=a,c=sy(n),d=[];e:{var f=hD.get(e);if(f!==void 0){var h=fy,p=e;switch(e){case"keypress":if(Uu(n)===0)break e;case"keydown":case"keyup":h=xM;break;case"focusin":p="focus",h=qf;break;case"focusout":p="blur",h=qf;break;case"beforeblur":case"afterblur":h=qf;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=nx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=uM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=_M;break;case uD:case cD:case dD:h=fM;break;case fD:h=SM;break;case"scroll":h=oM;break;case"wheel":h=kM;break;case"copy":case"cut":case"paste":h=pM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=ix}var g=(t&4)!==0,b=!g&&e==="scroll",v=g?f!==null?f+"Capture":null:f;g=[];for(var m=u,$;m!==null;){$=m;var w=$.stateNode;if($.tag===5&&w!==null&&($=w,v!==null&&(w=jo(m,v),w!=null&&g.push(Yo(m,w,$)))),b)break;m=m.return}0<g.length&&(f=new h(f,p,null,n,c),d.push({event:f,listeners:g}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==Cp&&(p=n.relatedTarget||n.fromElement)&&(Bi(p)||p[br]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(p=n.relatedTarget||n.toElement,h=u,p=p?Bi(p):null,p!==null&&(b=la(p),p!==b||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=u),h!==p)){if(g=nx,w="onMouseLeave",v="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(g=ix,w="onPointerLeave",v="onPointerEnter",m="pointer"),b=h==null?f:La(h),$=p==null?f:La(p),f=new g(w,m+"leave",h,n,c),f.target=b,f.relatedTarget=$,w=null,Bi(c)===u&&(g=new g(v,m+"enter",p,n,c),g.target=$,g.relatedTarget=b,w=g),b=w,h&&p)t:{for(g=h,v=p,m=0,$=g;$;$=va($))m++;for($=0,w=v;w;w=va(w))$++;for(;0<m-$;)g=va(g),m--;for(;0<$-m;)v=va(v),$--;for(;m--;){if(g===v||v!==null&&g===v.alternate)break t;g=va(g),v=va(v)}g=null}else g=null;h!==null&&mx(d,f,h,g,!1),p!==null&&b!==null&&mx(d,b,p,g,!0)}}e:{if(f=u?La(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var D=OM;else if(ox(f))if(iD)D=NM;else{D=IM;var S=BM}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(D=LM);if(D&&(D=D(e,u))){rD(d,D,n,c);break e}S&&S(e,f,u),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&wp(f,"number",f.value)}switch(S=u?La(u):window,e){case"focusin":(ox(S)||S.contentEditable==="true")&&(Ba=S,Fp=u,Do=null);break;case"focusout":Do=Fp=Ba=null;break;case"mousedown":Op=!0;break;case"contextmenu":case"mouseup":case"dragend":Op=!1,fx(d,n,c);break;case"selectionchange":if(VM)break;case"keydown":case"keyup":fx(d,n,c)}var k;if(py)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else Oa?tD(e,n)&&(x="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(x="onCompositionStart");x&&(eD&&n.locale!=="ko"&&(Oa||x!=="onCompositionStart"?x==="onCompositionEnd"&&Oa&&(k=Jw()):(Nr=c,dy="value"in Nr?Nr.value:Nr.textContent,Oa=!0)),S=vc(u,x),0<S.length&&(x=new rx(x,e,null,n,c),d.push({event:x,listeners:S}),k?x.data=k:(k=nD(n),k!==null&&(x.data=k)))),(k=TM?RM(e,n):MM(e,n))&&(u=vc(u,"onBeforeInput"),0<u.length&&(c=new rx("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=k))}pD(d,t)})}function Yo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function vc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=jo(e,n),a!=null&&r.unshift(Yo(e,a,i)),a=jo(e,t),a!=null&&r.push(Yo(e,a,i))),e=e.return}return r}function va(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function mx(e,t,n,r,i){for(var a=t._reactName,s=[];n!==null&&n!==r;){var o=n,l=o.alternate,u=o.stateNode;if(l!==null&&l===r)break;o.tag===5&&u!==null&&(o=u,i?(l=jo(n,a),l!=null&&s.unshift(Yo(n,l,o))):i||(l=jo(n,a),l!=null&&s.push(Yo(n,l,o)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var KM=/\r\n?/g,YM=/\u0000|\uFFFD/g;function gx(e){return(typeof e=="string"?e:""+e).replace(KM,`
+`).replace(YM,"")}function Zl(e,t,n){if(t=gx(t),gx(e)!==t&&n)throw Error(L(425))}function bc(){}var Bp=null,Ip=null;function Lp(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 Np=typeof setTimeout=="function"?setTimeout:void 0,qM=typeof clearTimeout=="function"?clearTimeout:void 0,vx=typeof Promise=="function"?Promise:void 0,GM=typeof queueMicrotask=="function"?queueMicrotask:typeof vx<"u"?function(e){return vx.resolve(null).then(e).catch(ZM)}:Np;function ZM(e){setTimeout(function(){throw e})}function nh(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),Wo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Wo(t)}function Zr(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 bx(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 Ss=Math.random().toString(36).slice(2),Un="__reactFiber$"+Ss,qo="__reactProps$"+Ss,br="__reactContainer$"+Ss,jp="__reactEvents$"+Ss,XM="__reactListeners$"+Ss,QM="__reactHandles$"+Ss;function Bi(e){var t=e[Un];if(t)return t;for(var n=e.parentNode;n;){if(t=n[br]||n[Un]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=bx(e);e!==null;){if(n=e[Un])return n;e=bx(e)}return t}e=n,n=e.parentNode}return null}function Cl(e){return e=e[Un]||e[br],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function La(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(L(33))}function Qd(e){return e[qo]||null}var zp=[],Na=-1;function di(e){return{current:e}}function Pe(e){0>Na||(e.current=zp[Na],zp[Na]=null,Na--)}function Ee(e,t){Na++,zp[Na]=e.current,e.current=t}var ii={},kt=di(ii),Yt=di(!1),qi=ii;function ds(e,t){var n=e.type.contextTypes;if(!n)return ii;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function qt(e){return e=e.childContextTypes,e!=null}function yc(){Pe(Yt),Pe(kt)}function yx(e,t,n){if(kt.current!==ii)throw Error(L(168));Ee(kt,t),Ee(Yt,n)}function gD(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(L(108,BR(e)||"Unknown",i));return Ne({},n,r)}function $c(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ii,qi=kt.current,Ee(kt,e),Ee(Yt,Yt.current),!0}function $x(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=gD(e,t,qi),r.__reactInternalMemoizedMergedChildContext=e,Pe(Yt),Pe(kt),Ee(kt,e)):Pe(Yt),Ee(Yt,n)}var sr=null,Jd=!1,rh=!1;function vD(e){sr===null?sr=[e]:sr.push(e)}function JM(e){Jd=!0,vD(e)}function fi(){if(!rh&&sr!==null){rh=!0;var e=0,t=ge;try{var n=sr;for(ge=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}sr=null,Jd=!1}catch(i){throw sr!==null&&(sr=sr.slice(e+1)),Vw(oy,fi),i}finally{ge=t,rh=!1}}return null}var ja=[],za=0,xc=null,wc=0,gn=[],vn=0,Gi=null,ur=1,cr="";function Ei(e,t){ja[za++]=wc,ja[za++]=xc,xc=e,wc=t}function bD(e,t,n){gn[vn++]=ur,gn[vn++]=cr,gn[vn++]=Gi,Gi=e;var r=ur;e=cr;var i=32-An(r)-1;r&=~(1<<i),n+=1;var a=32-An(t)+i;if(30<a){var s=i-i%5;a=(r&(1<<s)-1).toString(32),r>>=s,i-=s,ur=1<<32-An(t)+i|n<<i|r,cr=a+e}else ur=1<<a|n<<i|r,cr=e}function gy(e){e.return!==null&&(Ei(e,1),bD(e,1,0))}function vy(e){for(;e===xc;)xc=ja[--za],ja[za]=null,wc=ja[--za],ja[za]=null;for(;e===Gi;)Gi=gn[--vn],gn[vn]=null,cr=gn[--vn],gn[vn]=null,ur=gn[--vn],gn[vn]=null}var sn=null,rn=null,Fe=!1,Tn=null;function yD(e,t){var n=yn(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 xx(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,sn=e,rn=Zr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,sn=e,rn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gi!==null?{id:ur,overflow:cr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=yn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,sn=e,rn=null,!0):!1;default:return!1}}function Vp(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Wp(e){if(Fe){var t=rn;if(t){var n=t;if(!xx(e,t)){if(Vp(e))throw Error(L(418));t=Zr(n.nextSibling);var r=sn;t&&xx(e,t)?yD(r,n):(e.flags=e.flags&-4097|2,Fe=!1,sn=e)}}else{if(Vp(e))throw Error(L(418));e.flags=e.flags&-4097|2,Fe=!1,sn=e}}}function wx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;sn=e}function Xl(e){if(e!==sn)return!1;if(!Fe)return wx(e),Fe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Lp(e.type,e.memoizedProps)),t&&(t=rn)){if(Vp(e))throw $D(),Error(L(418));for(;t;)yD(e,t),t=Zr(t.nextSibling)}if(wx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(L(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){rn=Zr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}rn=null}}else rn=sn?Zr(e.stateNode.nextSibling):null;return!0}function $D(){for(var e=rn;e;)e=Zr(e.nextSibling)}function fs(){rn=sn=null,Fe=!1}function by(e){Tn===null?Tn=[e]:Tn.push(e)}var eA=xr.ReactCurrentBatchConfig;function Ls(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(L(309));var r=n.stateNode}if(!r)throw Error(L(147,e));var i=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(s){var o=i.refs;s===null?delete o[a]:o[a]=s},t._stringRef=a,t)}if(typeof e!="string")throw Error(L(284));if(!n._owner)throw Error(L(290,e))}return e}function Ql(e,t){throw e=Object.prototype.toString.call(t),Error(L(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Dx(e){var t=e._init;return t(e._payload)}function xD(e){function t(v,m){if(e){var $=v.deletions;$===null?(v.deletions=[m],v.flags|=16):$.push(m)}}function n(v,m){if(!e)return null;for(;m!==null;)t(v,m),m=m.sibling;return null}function r(v,m){for(v=new Map;m!==null;)m.key!==null?v.set(m.key,m):v.set(m.index,m),m=m.sibling;return v}function i(v,m){return v=ei(v,m),v.index=0,v.sibling=null,v}function a(v,m,$){return v.index=$,e?($=v.alternate,$!==null?($=$.index,$<m?(v.flags|=2,m):$):(v.flags|=2,m)):(v.flags|=1048576,m)}function s(v){return e&&v.alternate===null&&(v.flags|=2),v}function o(v,m,$,w){return m===null||m.tag!==6?(m=ch($,v.mode,w),m.return=v,m):(m=i(m,$),m.return=v,m)}function l(v,m,$,w){var D=$.type;return D===Fa?c(v,m,$.props.children,w,$.key):m!==null&&(m.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===Mr&&Dx(D)===m.type)?(w=i(m,$.props),w.ref=Ls(v,m,$),w.return=v,w):(w=Xu($.type,$.key,$.props,null,v.mode,w),w.ref=Ls(v,m,$),w.return=v,w)}function u(v,m,$,w){return m===null||m.tag!==4||m.stateNode.containerInfo!==$.containerInfo||m.stateNode.implementation!==$.implementation?(m=dh($,v.mode,w),m.return=v,m):(m=i(m,$.children||[]),m.return=v,m)}function c(v,m,$,w,D){return m===null||m.tag!==7?(m=Ui($,v.mode,w,D),m.return=v,m):(m=i(m,$),m.return=v,m)}function d(v,m,$){if(typeof m=="string"&&m!==""||typeof m=="number")return m=ch(""+m,v.mode,$),m.return=v,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case zl:return $=Xu(m.type,m.key,m.props,null,v.mode,$),$.ref=Ls(v,null,m),$.return=v,$;case Aa:return m=dh(m,v.mode,$),m.return=v,m;case Mr:var w=m._init;return d(v,w(m._payload),$)}if(ro(m)||As(m))return m=Ui(m,v.mode,$,null),m.return=v,m;Ql(v,m)}return null}function f(v,m,$,w){var D=m!==null?m.key:null;if(typeof $=="string"&&$!==""||typeof $=="number")return D!==null?null:o(v,m,""+$,w);if(typeof $=="object"&&$!==null){switch($.$$typeof){case zl:return $.key===D?l(v,m,$,w):null;case Aa:return $.key===D?u(v,m,$,w):null;case Mr:return D=$._init,f(v,m,D($._payload),w)}if(ro($)||As($))return D!==null?null:c(v,m,$,w,null);Ql(v,$)}return null}function h(v,m,$,w,D){if(typeof w=="string"&&w!==""||typeof w=="number")return v=v.get($)||null,o(m,v,""+w,D);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case zl:return v=v.get(w.key===null?$:w.key)||null,l(m,v,w,D);case Aa:return v=v.get(w.key===null?$:w.key)||null,u(m,v,w,D);case Mr:var S=w._init;return h(v,m,$,S(w._payload),D)}if(ro(w)||As(w))return v=v.get($)||null,c(m,v,w,D,null);Ql(m,w)}return null}function p(v,m,$,w){for(var D=null,S=null,k=m,x=m=0,T=null;k!==null&&x<$.length;x++){k.index>x?(T=k,k=null):T=k.sibling;var P=f(v,k,$[x],w);if(P===null){k===null&&(k=T);break}e&&k&&P.alternate===null&&t(v,k),m=a(P,m,x),S===null?D=P:S.sibling=P,S=P,k=T}if(x===$.length)return n(v,k),Fe&&Ei(v,x),D;if(k===null){for(;x<$.length;x++)k=d(v,$[x],w),k!==null&&(m=a(k,m,x),S===null?D=k:S.sibling=k,S=k);return Fe&&Ei(v,x),D}for(k=r(v,k);x<$.length;x++)T=h(k,v,x,$[x],w),T!==null&&(e&&T.alternate!==null&&k.delete(T.key===null?x:T.key),m=a(T,m,x),S===null?D=T:S.sibling=T,S=T);return e&&k.forEach(function(E){return t(v,E)}),Fe&&Ei(v,x),D}function g(v,m,$,w){var D=As($);if(typeof D!="function")throw Error(L(150));if($=D.call($),$==null)throw Error(L(151));for(var S=D=null,k=m,x=m=0,T=null,P=$.next();k!==null&&!P.done;x++,P=$.next()){k.index>x?(T=k,k=null):T=k.sibling;var E=f(v,k,P.value,w);if(E===null){k===null&&(k=T);break}e&&k&&E.alternate===null&&t(v,k),m=a(E,m,x),S===null?D=E:S.sibling=E,S=E,k=T}if(P.done)return n(v,k),Fe&&Ei(v,x),D;if(k===null){for(;!P.done;x++,P=$.next())P=d(v,P.value,w),P!==null&&(m=a(P,m,x),S===null?D=P:S.sibling=P,S=P);return Fe&&Ei(v,x),D}for(k=r(v,k);!P.done;x++,P=$.next())P=h(k,v,x,P.value,w),P!==null&&(e&&P.alternate!==null&&k.delete(P.key===null?x:P.key),m=a(P,m,x),S===null?D=P:S.sibling=P,S=P);return e&&k.forEach(function(A){return t(v,A)}),Fe&&Ei(v,x),D}function b(v,m,$,w){if(typeof $=="object"&&$!==null&&$.type===Fa&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case zl:e:{for(var D=$.key,S=m;S!==null;){if(S.key===D){if(D=$.type,D===Fa){if(S.tag===7){n(v,S.sibling),m=i(S,$.props.children),m.return=v,v=m;break e}}else if(S.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===Mr&&Dx(D)===S.type){n(v,S.sibling),m=i(S,$.props),m.ref=Ls(v,S,$),m.return=v,v=m;break e}n(v,S);break}else t(v,S);S=S.sibling}$.type===Fa?(m=Ui($.props.children,v.mode,w,$.key),m.return=v,v=m):(w=Xu($.type,$.key,$.props,null,v.mode,w),w.ref=Ls(v,m,$),w.return=v,v=w)}return s(v);case Aa:e:{for(S=$.key;m!==null;){if(m.key===S)if(m.tag===4&&m.stateNode.containerInfo===$.containerInfo&&m.stateNode.implementation===$.implementation){n(v,m.sibling),m=i(m,$.children||[]),m.return=v,v=m;break e}else{n(v,m);break}else t(v,m);m=m.sibling}m=dh($,v.mode,w),m.return=v,v=m}return s(v);case Mr:return S=$._init,b(v,m,S($._payload),w)}if(ro($))return p(v,m,$,w);if(As($))return g(v,m,$,w);Ql(v,$)}return typeof $=="string"&&$!==""||typeof $=="number"?($=""+$,m!==null&&m.tag===6?(n(v,m.sibling),m=i(m,$),m.return=v,v=m):(n(v,m),m=ch($,v.mode,w),m.return=v,v=m),s(v)):n(v,m)}return b}var hs=xD(!0),wD=xD(!1),Dc=di(null),_c=null,Va=null,yy=null;function $y(){yy=Va=_c=null}function xy(e){var t=Dc.current;Pe(Dc),e._currentValue=t}function Up(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 Qa(e,t){_c=e,yy=Va=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Kt=!0),e.firstContext=null)}function wn(e){var t=e._currentValue;if(yy!==e)if(e={context:e,memoizedValue:t,next:null},Va===null){if(_c===null)throw Error(L(308));Va=e,_c.dependencies={lanes:0,firstContext:e}}else Va=Va.next=e;return t}var Ii=null;function wy(e){Ii===null?Ii=[e]:Ii.push(e)}function DD(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,wy(t)):(n.next=i.next,i.next=n),t.interleaved=n,yr(e,r)}function yr(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 Ar=!1;function Dy(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _D(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 gr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ue&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,yr(e,n)}return i=r.interleaved,i===null?(t.next=t,wy(r)):(t.next=i.next,i.next=t),r.interleaved=t,yr(e,n)}function Hu(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,ly(e,n)}}function _x(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=s:a=a.next=s,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,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 Ec(e,t,n,r){var i=e.updateQueue;Ar=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var l=o,u=l.next;l.next=null,s===null?a=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,o=c.lastBaseUpdate,o!==s&&(o===null?c.firstBaseUpdate=u:o.next=u,c.lastBaseUpdate=l))}if(a!==null){var d=i.baseState;s=0,c=u=l=null,o=a;do{var f=o.lane,h=o.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var p=e,g=o;switch(f=t,h=n,g.tag){case 1:if(p=g.payload,typeof p=="function"){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=g.payload,f=typeof p=="function"?p.call(h,d,f):p,f==null)break e;d=Ne({},d,f);break e;case 2:Ar=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[o]:f.push(o))}else h={eventTime:h,lane:f,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,s|=f;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;f=o,o=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Xi|=s,e.lanes=s,e.memoizedState=d}}function Ex(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(L(191,i));i.call(r)}}}var kl={},Yn=di(kl),Go=di(kl),Zo=di(kl);function Li(e){if(e===kl)throw Error(L(174));return e}function _y(e,t){switch(Ee(Zo,t),Ee(Go,e),Ee(Yn,kl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_p(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_p(t,e)}Pe(Yn),Ee(Yn,t)}function ps(){Pe(Yn),Pe(Go),Pe(Zo)}function ED(e){Li(Zo.current);var t=Li(Yn.current),n=_p(t,e.type);t!==n&&(Ee(Go,e),Ee(Yn,n))}function Ey(e){Go.current===e&&(Pe(Yn),Pe(Go))}var Ie=di(0);function Sc(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 ih=[];function Sy(){for(var e=0;e<ih.length;e++)ih[e]._workInProgressVersionPrimary=null;ih.length=0}var Ku=xr.ReactCurrentDispatcher,ah=xr.ReactCurrentBatchConfig,Zi=0,Le=null,nt=null,ct=null,Cc=!1,_o=!1,Xo=0,tA=0;function $t(){throw Error(L(321))}function Cy(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Bn(e[n],t[n]))return!1;return!0}function ky(e,t,n,r,i,a){if(Zi=a,Le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ku.current=e===null||e.memoizedState===null?aA:sA,e=n(r,i),_o){a=0;do{if(_o=!1,Xo=0,25<=a)throw Error(L(301));a+=1,ct=nt=null,t.updateQueue=null,Ku.current=oA,e=n(r,i)}while(_o)}if(Ku.current=kc,t=nt!==null&&nt.next!==null,Zi=0,ct=nt=Le=null,Cc=!1,t)throw Error(L(300));return e}function Py(){var e=Xo!==0;return Xo=0,e}function Vn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ct===null?Le.memoizedState=ct=e:ct=ct.next=e,ct}function Dn(){if(nt===null){var e=Le.alternate;e=e!==null?e.memoizedState:null}else e=nt.next;var t=ct===null?Le.memoizedState:ct.next;if(t!==null)ct=t,nt=e;else{if(e===null)throw Error(L(310));nt=e,e={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},ct===null?Le.memoizedState=ct=e:ct=ct.next=e}return ct}function Qo(e,t){return typeof t=="function"?t(e):t}function sh(e){var t=Dn(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var r=nt,i=r.baseQueue,a=n.pending;if(a!==null){if(i!==null){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(i!==null){a=i.next,r=r.baseState;var o=s=null,l=null,u=a;do{var c=u.lane;if((Zi&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(o=l=d,s=r):l=l.next=d,Le.lanes|=c,Xi|=c}u=u.next}while(u!==null&&u!==a);l===null?s=r:l.next=o,Bn(r,t.memoizedState)||(Kt=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do a=i.lane,Le.lanes|=a,Xi|=a,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function oh(e){var t=Dn(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do a=e(a,s.action),s=s.next;while(s!==i);Bn(a,t.memoizedState)||(Kt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function SD(){}function CD(e,t){var n=Le,r=Dn(),i=t(),a=!Bn(r.memoizedState,i);if(a&&(r.memoizedState=i,Kt=!0),r=r.queue,Ty(TD.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||ct!==null&&ct.memoizedState.tag&1){if(n.flags|=2048,Jo(9,PD.bind(null,n,r,i,t),void 0,null),ft===null)throw Error(L(349));Zi&30||kD(n,t,i)}return i}function kD(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Le.updateQueue,t===null?(t={lastEffect:null,stores:null},Le.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function PD(e,t,n,r){t.value=n,t.getSnapshot=r,RD(t)&&MD(e)}function TD(e,t,n){return n(function(){RD(t)&&MD(e)})}function RD(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bn(e,n)}catch{return!0}}function MD(e){var t=yr(e,1);t!==null&&Fn(t,e,1,-1)}function Sx(e){var t=Vn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qo,lastRenderedState:e},t.queue=e,e=e.dispatch=iA.bind(null,Le,e),[t.memoizedState,e]}function Jo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Le.updateQueue,t===null?(t={lastEffect:null,stores:null},Le.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 AD(){return Dn().memoizedState}function Yu(e,t,n,r){var i=Vn();Le.flags|=e,i.memoizedState=Jo(1|t,n,void 0,r===void 0?null:r)}function ef(e,t,n,r){var i=Dn();r=r===void 0?null:r;var a=void 0;if(nt!==null){var s=nt.memoizedState;if(a=s.destroy,r!==null&&Cy(r,s.deps)){i.memoizedState=Jo(t,n,a,r);return}}Le.flags|=e,i.memoizedState=Jo(1|t,n,a,r)}function Cx(e,t){return Yu(8390656,8,e,t)}function Ty(e,t){return ef(2048,8,e,t)}function FD(e,t){return ef(4,2,e,t)}function OD(e,t){return ef(4,4,e,t)}function BD(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 ID(e,t,n){return n=n!=null?n.concat([e]):null,ef(4,4,BD.bind(null,t,e),n)}function Ry(){}function LD(e,t){var n=Dn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Cy(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ND(e,t){var n=Dn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Cy(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function jD(e,t,n){return Zi&21?(Bn(n,t)||(n=Hw(),Le.lanes|=n,Xi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Kt=!0),e.memoizedState=n)}function nA(e,t){var n=ge;ge=n!==0&&4>n?n:4,e(!0);var r=ah.transition;ah.transition={};try{e(!1),t()}finally{ge=n,ah.transition=r}}function zD(){return Dn().memoizedState}function rA(e,t,n){var r=Jr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},VD(e))WD(t,n);else if(n=DD(e,t,n,r),n!==null){var i=Mt();Fn(n,e,r,i),UD(n,t,r)}}function iA(e,t,n){var r=Jr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(VD(e))WD(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,o=a(s,n);if(i.hasEagerState=!0,i.eagerState=o,Bn(o,s)){var l=t.interleaved;l===null?(i.next=i,wy(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=DD(e,t,i,r),n!==null&&(i=Mt(),Fn(n,e,r,i),UD(n,t,r))}}function VD(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function WD(e,t){_o=Cc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function UD(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ly(e,n)}}var kc={readContext:wn,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useInsertionEffect:$t,useLayoutEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useMutableSource:$t,useSyncExternalStore:$t,useId:$t,unstable_isNewReconciler:!1},aA={readContext:wn,useCallback:function(e,t){return Vn().memoizedState=[e,t===void 0?null:t],e},useContext:wn,useEffect:Cx,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yu(4194308,4,BD.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yu(4,2,e,t)},useMemo:function(e,t){var n=Vn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Vn();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=rA.bind(null,Le,e),[r.memoizedState,e]},useRef:function(e){var t=Vn();return e={current:e},t.memoizedState=e},useState:Sx,useDebugValue:Ry,useDeferredValue:function(e){return Vn().memoizedState=e},useTransition:function(){var e=Sx(!1),t=e[0];return e=nA.bind(null,e[1]),Vn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Le,i=Vn();if(Fe){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),ft===null)throw Error(L(349));Zi&30||kD(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Cx(TD.bind(null,r,a,e),[e]),r.flags|=2048,Jo(9,PD.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Vn(),t=ft.identifierPrefix;if(Fe){var n=cr,r=ur;n=(r&~(1<<32-An(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=tA++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sA={readContext:wn,useCallback:LD,useContext:wn,useEffect:Ty,useImperativeHandle:ID,useInsertionEffect:FD,useLayoutEffect:OD,useMemo:ND,useReducer:sh,useRef:AD,useState:function(){return sh(Qo)},useDebugValue:Ry,useDeferredValue:function(e){var t=Dn();return jD(t,nt.memoizedState,e)},useTransition:function(){var e=sh(Qo)[0],t=Dn().memoizedState;return[e,t]},useMutableSource:SD,useSyncExternalStore:CD,useId:zD,unstable_isNewReconciler:!1},oA={readContext:wn,useCallback:LD,useContext:wn,useEffect:Ty,useImperativeHandle:ID,useInsertionEffect:FD,useLayoutEffect:OD,useMemo:ND,useReducer:oh,useRef:AD,useState:function(){return oh(Qo)},useDebugValue:Ry,useDeferredValue:function(e){var t=Dn();return nt===null?t.memoizedState=e:jD(t,nt.memoizedState,e)},useTransition:function(){var e=oh(Qo)[0],t=Dn().memoizedState;return[e,t]},useMutableSource:SD,useSyncExternalStore:CD,useId:zD,unstable_isNewReconciler:!1};function Cn(e,t){if(e&&e.defaultProps){t=Ne({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Hp(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ne({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var tf={isMounted:function(e){return(e=e._reactInternals)?la(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Mt(),i=Jr(e),a=gr(r,i);a.payload=t,n!=null&&(a.callback=n),t=Xr(e,a,i),t!==null&&(Fn(t,e,i,r),Hu(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Mt(),i=Jr(e),a=gr(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Xr(e,a,i),t!==null&&(Fn(t,e,i,r),Hu(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Mt(),r=Jr(e),i=gr(n,r);i.tag=2,t!=null&&(i.callback=t),t=Xr(e,i,r),t!==null&&(Fn(t,e,r,n),Hu(t,e,r))}};function kx(e,t,n,r,i,a,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,s):t.prototype&&t.prototype.isPureReactComponent?!Ho(n,r)||!Ho(i,a):!0}function HD(e,t,n){var r=!1,i=ii,a=t.contextType;return typeof a=="object"&&a!==null?a=wn(a):(i=qt(t)?qi:kt.current,r=t.contextTypes,a=(r=r!=null)?ds(e,i):ii),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=tf,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Px(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&&tf.enqueueReplaceState(t,t.state,null)}function Kp(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Dy(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=wn(a):(a=qt(t)?qi:kt.current,i.context=ds(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(Hp(e,t,a,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&&tf.enqueueReplaceState(i,i.state,null),Ec(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ms(e,t){try{var n="",r=t;do n+=OR(r),r=r.return;while(r);var i=n}catch(a){i=`
+Error generating stack: `+a.message+`
+`+a.stack}return{value:e,source:t,stack:i,digest:null}}function lh(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Yp(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var lA=typeof WeakMap=="function"?WeakMap:Map;function KD(e,t,n){n=gr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Tc||(Tc=!0,rm=r),Yp(e,t)},n}function YD(e,t,n){n=gr(-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(){Yp(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){Yp(e,t),typeof r!="function"&&(Qr===null?Qr=new Set([this]):Qr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Tx(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new lA;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=wA.bind(null,e,t,n),t.then(e,e))}function Rx(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 Mx(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=gr(-1,1),t.tag=2,Xr(n,t,1))),n.lanes|=1),e)}var uA=xr.ReactCurrentOwner,Kt=!1;function Tt(e,t,n,r){t.child=e===null?wD(t,null,n,r):hs(t,e.child,n,r)}function Ax(e,t,n,r,i){n=n.render;var a=t.ref;return Qa(t,i),r=ky(e,t,n,r,a,i),n=Py(),e!==null&&!Kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$r(e,t,i)):(Fe&&n&&gy(t),t.flags|=1,Tt(e,t,r,i),t.child)}function Fx(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!Ny(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,qD(e,t,a,r,i)):(e=Xu(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var s=a.memoizedProps;if(n=n.compare,n=n!==null?n:Ho,n(s,r)&&e.ref===t.ref)return $r(e,t,i)}return t.flags|=1,e=ei(a,r),e.ref=t.ref,e.return=t,t.child=e}function qD(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Ho(a,r)&&e.ref===t.ref)if(Kt=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Kt=!0);else return t.lanes=e.lanes,$r(e,t,i)}return qp(e,t,n,r,i)}function GD(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ee(Ua,tn),tn|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ee(Ua,tn),tn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,Ee(Ua,tn),tn|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,Ee(Ua,tn),tn|=r;return Tt(e,t,i,n),t.child}function ZD(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function qp(e,t,n,r,i){var a=qt(n)?qi:kt.current;return a=ds(t,a),Qa(t,i),n=ky(e,t,n,r,a,i),r=Py(),e!==null&&!Kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$r(e,t,i)):(Fe&&r&&gy(t),t.flags|=1,Tt(e,t,n,i),t.child)}function Ox(e,t,n,r,i){if(qt(n)){var a=!0;$c(t)}else a=!1;if(Qa(t,i),t.stateNode===null)qu(e,t),HD(t,n,r),Kp(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,o=t.memoizedProps;s.props=o;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=wn(u):(u=qt(n)?qi:kt.current,u=ds(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==r||l!==u)&&Px(t,s,r,u),Ar=!1;var f=t.memoizedState;s.state=f,Ec(t,r,s,i),l=t.memoizedState,o!==r||f!==l||Yt.current||Ar?(typeof c=="function"&&(Hp(t,n,c,r),l=t.memoizedState),(o=Ar||kx(t,n,o,r,f,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=o):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,_D(e,t),o=t.memoizedProps,u=t.type===t.elementType?o:Cn(t.type,o),s.props=u,d=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=wn(l):(l=qt(n)?qi:kt.current,l=ds(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==d||f!==l)&&Px(t,s,r,l),Ar=!1,f=t.memoizedState,s.state=f,Ec(t,r,s,i);var p=t.memoizedState;o!==d||f!==p||Yt.current||Ar?(typeof h=="function"&&(Hp(t,n,h,r),p=t.memoizedState),(u=Ar||kx(t,n,u,r,f,p,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,p,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,p,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),s.props=r,s.state=p,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Gp(e,t,n,r,a,i)}function Gp(e,t,n,r,i,a){ZD(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&$x(t,n,!1),$r(e,t,a);r=t.stateNode,uA.current=t;var o=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=hs(t,e.child,null,a),t.child=hs(t,null,o,a)):Tt(e,t,o,a),t.memoizedState=r.state,i&&$x(t,n,!0),t.child}function XD(e){var t=e.stateNode;t.pendingContext?yx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&yx(e,t.context,!1),_y(e,t.containerInfo)}function Bx(e,t,n,r,i){return fs(),by(i),t.flags|=256,Tt(e,t,n,r),t.child}var Zp={dehydrated:null,treeContext:null,retryLane:0};function Xp(e){return{baseLanes:e,cachePool:null,transitions:null}}function QD(e,t,n){var r=t.pendingProps,i=Ie.current,a=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ee(Ie,i&1),e===null)return Wp(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,a?(r=t.mode,a=t.child,s={mode:"hidden",children:s},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=s):a=af(s,r,0,null),e=Ui(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Xp(n),t.memoizedState=Zp,e):My(t,s));if(i=e.memoizedState,i!==null&&(o=i.dehydrated,o!==null))return cA(e,t,s,r,o,i,n);if(a){a=r.fallback,s=t.mode,i=e.child,o=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=ei(i,l),r.subtreeFlags=i.subtreeFlags&14680064),o!==null?a=ei(o,a):(a=Ui(a,s,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,s=e.child.memoizedState,s=s===null?Xp(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=Zp,r}return a=e.child,e=a.sibling,r=ei(a,{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 My(e,t){return t=af({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Jl(e,t,n,r){return r!==null&&by(r),hs(t,e.child,null,n),e=My(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function cA(e,t,n,r,i,a,s){if(n)return t.flags&256?(t.flags&=-257,r=lh(Error(L(422))),Jl(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=af({mode:"visible",children:r.children},i,0,null),a=Ui(a,i,s,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&hs(t,e.child,null,s),t.child.memoizedState=Xp(s),t.memoizedState=Zp,a);if(!(t.mode&1))return Jl(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var o=r.dgst;return r=o,a=Error(L(419)),r=lh(a,r,void 0),Jl(e,t,s,r)}if(o=(s&e.childLanes)!==0,Kt||o){if(r=ft,r!==null){switch(s&-s){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|s)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,yr(e,i),Fn(r,e,i,-1))}return Ly(),r=lh(Error(L(421))),Jl(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=DA.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,rn=Zr(i.nextSibling),sn=t,Fe=!0,Tn=null,e!==null&&(gn[vn++]=ur,gn[vn++]=cr,gn[vn++]=Gi,ur=e.id,cr=e.overflow,Gi=t),t=My(t,r.children),t.flags|=4096,t)}function Ix(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Up(e.return,t,n)}function uh(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function JD(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Tt(e,t,r.children,n),r=Ie.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&&Ix(e,n,t);else if(e.tag===19)Ix(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(Ee(Ie,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&&Sc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),uh(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Sc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}uh(t,!0,n,null,a);break;case"together":uh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $r(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(L(153));if(t.child!==null){for(e=t.child,n=ei(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ei(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function dA(e,t,n){switch(t.tag){case 3:XD(t),fs();break;case 5:ED(t);break;case 1:qt(t.type)&&$c(t);break;case 4:_y(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ee(Dc,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ee(Ie,Ie.current&1),t.flags|=128,null):n&t.child.childLanes?QD(e,t,n):(Ee(Ie,Ie.current&1),e=$r(e,t,n),e!==null?e.sibling:null);Ee(Ie,Ie.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return JD(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ee(Ie,Ie.current),r)break;return null;case 22:case 23:return t.lanes=0,GD(e,t,n)}return $r(e,t,n)}var e_,Qp,t_,n_;e_=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}};Qp=function(){};t_=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Li(Yn.current);var a=null;switch(n){case"input":i=$p(e,i),r=$p(e,r),a=[];break;case"select":i=Ne({},i,{value:void 0}),r=Ne({},r,{value:void 0}),a=[];break;case"textarea":i=Dp(e,i),r=Dp(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=bc)}Ep(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var o=i[u];for(s in o)o.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Lo.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var l=r[u];if(o=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==o&&(l!=null||o!=null))if(u==="style")if(o){for(s in o)!o.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&o[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(a||(a=[]),a.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,o=o?o.__html:void 0,l!=null&&o!==l&&(a=a||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Lo.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ke("scroll",e),a||o===l||(a=[])):(a=a||[]).push(u,l))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};n_=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ns(e,t){if(!Fe)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 xt(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 fA(e,t,n){var r=t.pendingProps;switch(vy(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xt(t),null;case 1:return qt(t.type)&&yc(),xt(t),null;case 3:return r=t.stateNode,ps(),Pe(Yt),Pe(kt),Sy(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Xl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Tn!==null&&(sm(Tn),Tn=null))),Qp(e,t),xt(t),null;case 5:Ey(t);var i=Li(Zo.current);if(n=t.type,e!==null&&t.stateNode!=null)t_(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(L(166));return xt(t),null}if(e=Li(Yn.current),Xl(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Un]=t,r[qo]=a,e=(t.mode&1)!==0,n){case"dialog":ke("cancel",r),ke("close",r);break;case"iframe":case"object":case"embed":ke("load",r);break;case"video":case"audio":for(i=0;i<ao.length;i++)ke(ao[i],r);break;case"source":ke("error",r);break;case"img":case"image":case"link":ke("error",r),ke("load",r);break;case"details":ke("toggle",r);break;case"input":K$(r,a),ke("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},ke("invalid",r);break;case"textarea":q$(r,a),ke("invalid",r)}Ep(n,a),i=null;for(var s in a)if(a.hasOwnProperty(s)){var o=a[s];s==="children"?typeof o=="string"?r.textContent!==o&&(a.suppressHydrationWarning!==!0&&Zl(r.textContent,o,e),i=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(a.suppressHydrationWarning!==!0&&Zl(r.textContent,o,e),i=["children",""+o]):Lo.hasOwnProperty(s)&&o!=null&&s==="onScroll"&&ke("scroll",r)}switch(n){case"input":Vl(r),Y$(r,a,!0);break;case"textarea":Vl(r),G$(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=bc)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Tw(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Un]=t,e[qo]=r,e_(e,t,!1,!1),t.stateNode=e;e:{switch(s=Sp(n,r),n){case"dialog":ke("cancel",e),ke("close",e),i=r;break;case"iframe":case"object":case"embed":ke("load",e),i=r;break;case"video":case"audio":for(i=0;i<ao.length;i++)ke(ao[i],e);i=r;break;case"source":ke("error",e),i=r;break;case"img":case"image":case"link":ke("error",e),ke("load",e),i=r;break;case"details":ke("toggle",e),i=r;break;case"input":K$(e,r),i=$p(e,r),ke("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Ne({},r,{value:void 0}),ke("invalid",e);break;case"textarea":q$(e,r),i=Dp(e,r),ke("invalid",e);break;default:i=r}Ep(n,i),o=i;for(a in o)if(o.hasOwnProperty(a)){var l=o[a];a==="style"?Aw(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Rw(e,l)):a==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&No(e,l):typeof l=="number"&&No(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Lo.hasOwnProperty(a)?l!=null&&a==="onScroll"&&ke("scroll",e):l!=null&&ny(e,a,l,s))}switch(n){case"input":Vl(e),Y$(e,r,!1);break;case"textarea":Vl(e),G$(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ri(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?qa(e,!!r.multiple,a,!1):r.defaultValue!=null&&qa(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=bc)}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 xt(t),null;case 6:if(e&&t.stateNode!=null)n_(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(L(166));if(n=Li(Zo.current),Li(Yn.current),Xl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Un]=t,(a=r.nodeValue!==n)&&(e=sn,e!==null))switch(e.tag){case 3:Zl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Zl(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Un]=t,t.stateNode=r}return xt(t),null;case 13:if(Pe(Ie),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Fe&&rn!==null&&t.mode&1&&!(t.flags&128))$D(),fs(),t.flags|=98560,a=!1;else if(a=Xl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(L(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(L(317));a[Un]=t}else fs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xt(t),a=!1}else Tn!==null&&(sm(Tn),Tn=null),a=!0;if(!a)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||Ie.current&1?rt===0&&(rt=3):Ly())),t.updateQueue!==null&&(t.flags|=4),xt(t),null);case 4:return ps(),Qp(e,t),e===null&&Ko(t.stateNode.containerInfo),xt(t),null;case 10:return xy(t.type._context),xt(t),null;case 17:return qt(t.type)&&yc(),xt(t),null;case 19:if(Pe(Ie),a=t.memoizedState,a===null)return xt(t),null;if(r=(t.flags&128)!==0,s=a.rendering,s===null)if(r)Ns(a,!1);else{if(rt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Sc(e),s!==null){for(t.flags|=128,Ns(a,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,s=a.alternate,s===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ee(Ie,Ie.current&1|2),t.child}e=e.sibling}a.tail!==null&&Ye()>gs&&(t.flags|=128,r=!0,Ns(a,!1),t.lanes=4194304)}else{if(!r)if(e=Sc(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ns(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!Fe)return xt(t),null}else 2*Ye()-a.renderingStartTime>gs&&n!==1073741824&&(t.flags|=128,r=!0,Ns(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(n=a.last,n!==null?n.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ye(),t.sibling=null,n=Ie.current,Ee(Ie,r?n&1|2:n&1),t):(xt(t),null);case 22:case 23:return Iy(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tn&1073741824&&(xt(t),t.subtreeFlags&6&&(t.flags|=8192)):xt(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function hA(e,t){switch(vy(t),t.tag){case 1:return qt(t.type)&&yc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ps(),Pe(Yt),Pe(kt),Sy(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ey(t),null;case 13:if(Pe(Ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));fs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(Ie),null;case 4:return ps(),null;case 10:return xy(t.type._context),null;case 22:case 23:return Iy(),null;case 24:return null;default:return null}}var eu=!1,Et=!1,pA=typeof WeakSet=="function"?WeakSet:Set,U=null;function Wa(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ze(e,t,r)}else n.current=null}function Jp(e,t,n){try{n()}catch(r){ze(e,t,r)}}var Lx=!1;function mA(e,t){if(Bp=mc,e=oD(),my(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,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(o=s+i),d!==a||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===i&&(o=s),f===a&&++c===r&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ip={focusedElem:e,selectionRange:n},mc=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,b=p.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Cn(t.type,g),b);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var $=t.stateNode.containerInfo;$.nodeType===1?$.textContent="":$.nodeType===9&&$.documentElement&&$.removeChild($.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(w){ze(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return p=Lx,Lx=!1,p}function Eo(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 a=i.destroy;i.destroy=void 0,a!==void 0&&Jp(t,n,a)}i=i.next}while(i!==r)}}function nf(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 em(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 r_(e){var t=e.alternate;t!==null&&(e.alternate=null,r_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Un],delete t[qo],delete t[jp],delete t[XM],delete t[QM])),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 i_(e){return e.tag===5||e.tag===3||e.tag===4}function Nx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||i_(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 tm(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=bc));else if(r!==4&&(e=e.child,e!==null))for(tm(e,t,n),e=e.sibling;e!==null;)tm(e,t,n),e=e.sibling}function nm(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(nm(e,t,n),e=e.sibling;e!==null;)nm(e,t,n),e=e.sibling}var ht=null,kn=!1;function Sr(e,t,n){for(n=n.child;n!==null;)a_(e,t,n),n=n.sibling}function a_(e,t,n){if(Kn&&typeof Kn.onCommitFiberUnmount=="function")try{Kn.onCommitFiberUnmount(qd,n)}catch{}switch(n.tag){case 5:Et||Wa(n,t);case 6:var r=ht,i=kn;ht=null,Sr(e,t,n),ht=r,kn=i,ht!==null&&(kn?(e=ht,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ht.removeChild(n.stateNode));break;case 18:ht!==null&&(kn?(e=ht,n=n.stateNode,e.nodeType===8?nh(e.parentNode,n):e.nodeType===1&&nh(e,n),Wo(e)):nh(ht,n.stateNode));break;case 4:r=ht,i=kn,ht=n.stateNode.containerInfo,kn=!0,Sr(e,t,n),ht=r,kn=i;break;case 0:case 11:case 14:case 15:if(!Et&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&Jp(n,t,s),i=i.next}while(i!==r)}Sr(e,t,n);break;case 1:if(!Et&&(Wa(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){ze(n,t,o)}Sr(e,t,n);break;case 21:Sr(e,t,n);break;case 22:n.mode&1?(Et=(r=Et)||n.memoizedState!==null,Sr(e,t,n),Et=r):Sr(e,t,n);break;default:Sr(e,t,n)}}function jx(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new pA),t.forEach(function(r){var i=_A.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function En(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,o=s;e:for(;o!==null;){switch(o.tag){case 5:ht=o.stateNode,kn=!1;break e;case 3:ht=o.stateNode.containerInfo,kn=!0;break e;case 4:ht=o.stateNode.containerInfo,kn=!0;break e}o=o.return}if(ht===null)throw Error(L(160));a_(a,s,i),ht=null,kn=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){ze(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)s_(t,e),t=t.sibling}function s_(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(En(t,e),jn(e),r&4){try{Eo(3,e,e.return),nf(3,e)}catch(g){ze(e,e.return,g)}try{Eo(5,e,e.return)}catch(g){ze(e,e.return,g)}}break;case 1:En(t,e),jn(e),r&512&&n!==null&&Wa(n,n.return);break;case 5:if(En(t,e),jn(e),r&512&&n!==null&&Wa(n,n.return),e.flags&32){var i=e.stateNode;try{No(i,"")}catch(g){ze(e,e.return,g)}}if(r&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,s=n!==null?n.memoizedProps:a,o=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{o==="input"&&a.type==="radio"&&a.name!=null&&kw(i,a),Sp(o,s);var u=Sp(o,a);for(s=0;s<l.length;s+=2){var c=l[s],d=l[s+1];c==="style"?Aw(i,d):c==="dangerouslySetInnerHTML"?Rw(i,d):c==="children"?No(i,d):ny(i,c,d,u)}switch(o){case"input":xp(i,a);break;case"textarea":Pw(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;h!=null?qa(i,!!a.multiple,h,!1):f!==!!a.multiple&&(a.defaultValue!=null?qa(i,!!a.multiple,a.defaultValue,!0):qa(i,!!a.multiple,a.multiple?[]:"",!1))}i[qo]=a}catch(g){ze(e,e.return,g)}}break;case 6:if(En(t,e),jn(e),r&4){if(e.stateNode===null)throw Error(L(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(g){ze(e,e.return,g)}}break;case 3:if(En(t,e),jn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Wo(t.containerInfo)}catch(g){ze(e,e.return,g)}break;case 4:En(t,e),jn(e);break;case 13:En(t,e),jn(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(Oy=Ye())),r&4&&jx(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Et=(u=Et)||c,En(t,e),Et=u):En(t,e),jn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(U=e,c=e.child;c!==null;){for(d=U=c;U!==null;){switch(f=U,h=f.child,f.tag){case 0:case 11:case 14:case 15:Eo(4,f,f.return);break;case 1:Wa(f,f.return);var p=f.stateNode;if(typeof p.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(g){ze(r,n,g)}}break;case 5:Wa(f,f.return);break;case 22:if(f.memoizedState!==null){Vx(d);continue}}h!==null?(h.return=f,U=h):Vx(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(o=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,o.style.display=Mw("display",s))}catch(g){ze(e,e.return,g)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(g){ze(e,e.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:En(t,e),jn(e),r&4&&jx(e);break;case 21:break;default:En(t,e),jn(e)}}function jn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(i_(n)){var r=n;break e}n=n.return}throw Error(L(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(No(i,""),r.flags&=-33);var a=Nx(e);nm(e,a,i);break;case 3:case 4:var s=r.stateNode.containerInfo,o=Nx(e);tm(e,o,s);break;default:throw Error(L(161))}}catch(l){ze(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gA(e,t,n){U=e,o_(e)}function o_(e,t,n){for(var r=(e.mode&1)!==0;U!==null;){var i=U,a=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||eu;if(!s){var o=i.alternate,l=o!==null&&o.memoizedState!==null||Et;o=eu;var u=Et;if(eu=s,(Et=l)&&!u)for(U=i;U!==null;)s=U,l=s.child,s.tag===22&&s.memoizedState!==null?Wx(i):l!==null?(l.return=s,U=l):Wx(i);for(;a!==null;)U=a,o_(a),a=a.sibling;U=i,eu=o,Et=u}zx(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,U=a):zx(e)}}function zx(e){for(;U!==null;){var t=U;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Et||nf(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Et)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Cn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&Ex(t,a,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ex(t,s,n)}break;case 5:var o=t.stateNode;if(n===null&&t.flags&4){n=o;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Wo(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(L(163))}Et||t.flags&512&&em(t)}catch(f){ze(t,t.return,f)}}if(t===e){U=null;break}if(n=t.sibling,n!==null){n.return=t.return,U=n;break}U=t.return}}function Vx(e){for(;U!==null;){var t=U;if(t===e){U=null;break}var n=t.sibling;if(n!==null){n.return=t.return,U=n;break}U=t.return}}function Wx(e){for(;U!==null;){var t=U;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nf(4,t)}catch(l){ze(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ze(t,i,l)}}var a=t.return;try{em(t)}catch(l){ze(t,a,l)}break;case 5:var s=t.return;try{em(t)}catch(l){ze(t,s,l)}}}catch(l){ze(t,t.return,l)}if(t===e){U=null;break}var o=t.sibling;if(o!==null){o.return=t.return,U=o;break}U=t.return}}var vA=Math.ceil,Pc=xr.ReactCurrentDispatcher,Ay=xr.ReactCurrentOwner,xn=xr.ReactCurrentBatchConfig,ue=0,ft=null,Xe=null,mt=0,tn=0,Ua=di(0),rt=0,el=null,Xi=0,rf=0,Fy=0,So=null,Wt=null,Oy=0,gs=1/0,ar=null,Tc=!1,rm=null,Qr=null,tu=!1,jr=null,Rc=0,Co=0,im=null,Gu=-1,Zu=0;function Mt(){return ue&6?Ye():Gu!==-1?Gu:Gu=Ye()}function Jr(e){return e.mode&1?ue&2&&mt!==0?mt&-mt:eA.transition!==null?(Zu===0&&(Zu=Hw()),Zu):(e=ge,e!==0||(e=window.event,e=e===void 0?16:Qw(e.type)),e):1}function Fn(e,t,n,r){if(50<Co)throw Co=0,im=null,Error(L(185));El(e,n,r),(!(ue&2)||e!==ft)&&(e===ft&&(!(ue&2)&&(rf|=n),rt===4&&Ir(e,mt)),Gt(e,r),n===1&&ue===0&&!(t.mode&1)&&(gs=Ye()+500,Jd&&fi()))}function Gt(e,t){var n=e.callbackNode;eM(e,t);var r=pc(e,e===ft?mt:0);if(r===0)n!==null&&Q$(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Q$(n),t===1)e.tag===0?JM(Ux.bind(null,e)):vD(Ux.bind(null,e)),GM(function(){!(ue&6)&&fi()}),n=null;else{switch(Kw(r)){case 1:n=oy;break;case 4:n=Ww;break;case 16:n=hc;break;case 536870912:n=Uw;break;default:n=hc}n=m_(n,l_.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function l_(e,t){if(Gu=-1,Zu=0,ue&6)throw Error(L(327));var n=e.callbackNode;if(Ja()&&e.callbackNode!==n)return null;var r=pc(e,e===ft?mt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Mc(e,r);else{t=r;var i=ue;ue|=2;var a=c_();(ft!==e||mt!==t)&&(ar=null,gs=Ye()+500,Wi(e,t));do try{$A();break}catch(o){u_(e,o)}while(!0);$y(),Pc.current=a,ue=i,Xe!==null?t=0:(ft=null,mt=0,t=rt)}if(t!==0){if(t===2&&(i=Rp(e),i!==0&&(r=i,t=am(e,i))),t===1)throw n=el,Wi(e,0),Ir(e,r),Gt(e,Ye()),n;if(t===6)Ir(e,r);else{if(i=e.current.alternate,!(r&30)&&!bA(i)&&(t=Mc(e,r),t===2&&(a=Rp(e),a!==0&&(r=a,t=am(e,a))),t===1))throw n=el,Wi(e,0),Ir(e,r),Gt(e,Ye()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(L(345));case 2:Si(e,Wt,ar);break;case 3:if(Ir(e,r),(r&130023424)===r&&(t=Oy+500-Ye(),10<t)){if(pc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Mt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Np(Si.bind(null,e,Wt,ar),t);break}Si(e,Wt,ar);break;case 4:if(Ir(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-An(r);a=1<<s,s=t[s],s>i&&(i=s),r&=~a}if(r=i,r=Ye()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vA(r/1960))-r,10<r){e.timeoutHandle=Np(Si.bind(null,e,Wt,ar),r);break}Si(e,Wt,ar);break;case 5:Si(e,Wt,ar);break;default:throw Error(L(329))}}}return Gt(e,Ye()),e.callbackNode===n?l_.bind(null,e):null}function am(e,t){var n=So;return e.current.memoizedState.isDehydrated&&(Wi(e,t).flags|=256),e=Mc(e,t),e!==2&&(t=Wt,Wt=n,t!==null&&sm(t)),e}function sm(e){Wt===null?Wt=e:Wt.push.apply(Wt,e)}function bA(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],a=i.getSnapshot;i=i.value;try{if(!Bn(a(),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 Ir(e,t){for(t&=~Fy,t&=~rf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-An(t),r=1<<n;e[n]=-1,t&=~r}}function Ux(e){if(ue&6)throw Error(L(327));Ja();var t=pc(e,0);if(!(t&1))return Gt(e,Ye()),null;var n=Mc(e,t);if(e.tag!==0&&n===2){var r=Rp(e);r!==0&&(t=r,n=am(e,r))}if(n===1)throw n=el,Wi(e,0),Ir(e,t),Gt(e,Ye()),n;if(n===6)throw Error(L(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Si(e,Wt,ar),Gt(e,Ye()),null}function By(e,t){var n=ue;ue|=1;try{return e(t)}finally{ue=n,ue===0&&(gs=Ye()+500,Jd&&fi())}}function Qi(e){jr!==null&&jr.tag===0&&!(ue&6)&&Ja();var t=ue;ue|=1;var n=xn.transition,r=ge;try{if(xn.transition=null,ge=1,e)return e()}finally{ge=r,xn.transition=n,ue=t,!(ue&6)&&fi()}}function Iy(){tn=Ua.current,Pe(Ua)}function Wi(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,qM(n)),Xe!==null)for(n=Xe.return;n!==null;){var r=n;switch(vy(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&yc();break;case 3:ps(),Pe(Yt),Pe(kt),Sy();break;case 5:Ey(r);break;case 4:ps();break;case 13:Pe(Ie);break;case 19:Pe(Ie);break;case 10:xy(r.type._context);break;case 22:case 23:Iy()}n=n.return}if(ft=e,Xe=e=ei(e.current,null),mt=tn=t,rt=0,el=null,Fy=rf=Xi=0,Wt=So=null,Ii!==null){for(t=0;t<Ii.length;t++)if(n=Ii[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var s=a.next;a.next=i,r.next=s}n.pending=r}Ii=null}return e}function u_(e,t){do{var n=Xe;try{if($y(),Ku.current=kc,Cc){for(var r=Le.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Cc=!1}if(Zi=0,ct=nt=Le=null,_o=!1,Xo=0,Ay.current=null,n===null||n.return===null){rt=1,el=t,Xe=null;break}e:{var a=e,s=n.return,o=n,l=t;if(t=mt,o.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=o,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=Rx(s);if(h!==null){h.flags&=-257,Mx(h,s,o,a,t),h.mode&1&&Tx(a,u,t),t=h,l=u;var p=t.updateQueue;if(p===null){var g=new Set;g.add(l),t.updateQueue=g}else p.add(l);break e}else{if(!(t&1)){Tx(a,u,t),Ly();break e}l=Error(L(426))}}else if(Fe&&o.mode&1){var b=Rx(s);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Mx(b,s,o,a,t),by(ms(l,o));break e}}a=l=ms(l,o),rt!==4&&(rt=2),So===null?So=[a]:So.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var v=KD(a,l,t);_x(a,v);break e;case 1:o=l;var m=a.type,$=a.stateNode;if(!(a.flags&128)&&(typeof m.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(Qr===null||!Qr.has($)))){a.flags|=65536,t&=-t,a.lanes|=t;var w=YD(a,o,t);_x(a,w);break e}}a=a.return}while(a!==null)}f_(n)}catch(D){t=D,Xe===n&&n!==null&&(Xe=n=n.return);continue}break}while(!0)}function c_(){var e=Pc.current;return Pc.current=kc,e===null?kc:e}function Ly(){(rt===0||rt===3||rt===2)&&(rt=4),ft===null||!(Xi&268435455)&&!(rf&268435455)||Ir(ft,mt)}function Mc(e,t){var n=ue;ue|=2;var r=c_();(ft!==e||mt!==t)&&(ar=null,Wi(e,t));do try{yA();break}catch(i){u_(e,i)}while(!0);if($y(),ue=n,Pc.current=r,Xe!==null)throw Error(L(261));return ft=null,mt=0,rt}function yA(){for(;Xe!==null;)d_(Xe)}function $A(){for(;Xe!==null&&!HR();)d_(Xe)}function d_(e){var t=p_(e.alternate,e,tn);e.memoizedProps=e.pendingProps,t===null?f_(e):Xe=t,Ay.current=null}function f_(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=hA(n,t),n!==null){n.flags&=32767,Xe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{rt=6,Xe=null;return}}else if(n=fA(n,t,tn),n!==null){Xe=n;return}if(t=t.sibling,t!==null){Xe=t;return}Xe=t=e}while(t!==null);rt===0&&(rt=5)}function Si(e,t,n){var r=ge,i=xn.transition;try{xn.transition=null,ge=1,xA(e,t,n,r)}finally{xn.transition=i,ge=r}return null}function xA(e,t,n,r){do Ja();while(jr!==null);if(ue&6)throw Error(L(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(L(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(tM(e,a),e===ft&&(Xe=ft=null,mt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||tu||(tu=!0,m_(hc,function(){return Ja(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=xn.transition,xn.transition=null;var s=ge;ge=1;var o=ue;ue|=4,Ay.current=null,mA(e,n),s_(n,e),zM(Ip),mc=!!Bp,Ip=Bp=null,e.current=n,gA(n),KR(),ue=o,ge=s,xn.transition=a}else e.current=n;if(tu&&(tu=!1,jr=e,Rc=i),a=e.pendingLanes,a===0&&(Qr=null),GR(n.stateNode),Gt(e,Ye()),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(Tc)throw Tc=!1,e=rm,rm=null,e;return Rc&1&&e.tag!==0&&Ja(),a=e.pendingLanes,a&1?e===im?Co++:(Co=0,im=e):Co=0,fi(),null}function Ja(){if(jr!==null){var e=Kw(Rc),t=xn.transition,n=ge;try{if(xn.transition=null,ge=16>e?16:e,jr===null)var r=!1;else{if(e=jr,jr=null,Rc=0,ue&6)throw Error(L(331));var i=ue;for(ue|=4,U=e.current;U!==null;){var a=U,s=a.child;if(U.flags&16){var o=a.deletions;if(o!==null){for(var l=0;l<o.length;l++){var u=o[l];for(U=u;U!==null;){var c=U;switch(c.tag){case 0:case 11:case 15:Eo(8,c,a)}var d=c.child;if(d!==null)d.return=c,U=d;else for(;U!==null;){c=U;var f=c.sibling,h=c.return;if(r_(c),c===u){U=null;break}if(f!==null){f.return=h,U=f;break}U=h}}}var p=a.alternate;if(p!==null){var g=p.child;if(g!==null){p.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(g!==null)}}U=a}}if(a.subtreeFlags&2064&&s!==null)s.return=a,U=s;else e:for(;U!==null;){if(a=U,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Eo(9,a,a.return)}var v=a.sibling;if(v!==null){v.return=a.return,U=v;break e}U=a.return}}var m=e.current;for(U=m;U!==null;){s=U;var $=s.child;if(s.subtreeFlags&2064&&$!==null)$.return=s,U=$;else e:for(s=m;U!==null;){if(o=U,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:nf(9,o)}}catch(D){ze(o,o.return,D)}if(o===s){U=null;break e}var w=o.sibling;if(w!==null){w.return=o.return,U=w;break e}U=o.return}}if(ue=i,fi(),Kn&&typeof Kn.onPostCommitFiberRoot=="function")try{Kn.onPostCommitFiberRoot(qd,e)}catch{}r=!0}return r}finally{ge=n,xn.transition=t}}return!1}function Hx(e,t,n){t=ms(n,t),t=KD(e,t,1),e=Xr(e,t,1),t=Mt(),e!==null&&(El(e,1,t),Gt(e,t))}function ze(e,t,n){if(e.tag===3)Hx(e,e,n);else for(;t!==null;){if(t.tag===3){Hx(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Qr===null||!Qr.has(r))){e=ms(n,e),e=YD(t,e,1),t=Xr(t,e,1),e=Mt(),t!==null&&(El(t,1,e),Gt(t,e));break}}t=t.return}}function wA(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Mt(),e.pingedLanes|=e.suspendedLanes&n,ft===e&&(mt&n)===n&&(rt===4||rt===3&&(mt&130023424)===mt&&500>Ye()-Oy?Wi(e,0):Fy|=n),Gt(e,t)}function h_(e,t){t===0&&(e.mode&1?(t=Hl,Hl<<=1,!(Hl&130023424)&&(Hl=4194304)):t=1);var n=Mt();e=yr(e,t),e!==null&&(El(e,t,n),Gt(e,n))}function DA(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),h_(e,n)}function _A(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(L(314))}r!==null&&r.delete(t),h_(e,n)}var p_;p_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Yt.current)Kt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Kt=!1,dA(e,t,n);Kt=!!(e.flags&131072)}else Kt=!1,Fe&&t.flags&1048576&&bD(t,wc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qu(e,t),e=t.pendingProps;var i=ds(t,kt.current);Qa(t,n),i=ky(null,t,r,e,i,n);var a=Py();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,qt(r)?(a=!0,$c(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Dy(t),i.updater=tf,t.stateNode=i,i._reactInternals=t,Kp(t,r,e,n),t=Gp(null,t,r,!0,a,n)):(t.tag=0,Fe&&a&&gy(t),Tt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(qu(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=SA(r),e=Cn(r,e),i){case 0:t=qp(null,t,r,e,n);break e;case 1:t=Ox(null,t,r,e,n);break e;case 11:t=Ax(null,t,r,e,n);break e;case 14:t=Fx(null,t,r,Cn(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Cn(r,i),qp(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Cn(r,i),Ox(e,t,r,i,n);case 3:e:{if(XD(t),e===null)throw Error(L(387));r=t.pendingProps,a=t.memoizedState,i=a.element,_D(e,t),Ec(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=ms(Error(L(423)),t),t=Bx(e,t,r,n,i);break e}else if(r!==i){i=ms(Error(L(424)),t),t=Bx(e,t,r,n,i);break e}else for(rn=Zr(t.stateNode.containerInfo.firstChild),sn=t,Fe=!0,Tn=null,n=wD(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fs(),r===i){t=$r(e,t,n);break e}Tt(e,t,r,n)}t=t.child}return t;case 5:return ED(t),e===null&&Wp(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,s=i.children,Lp(r,i)?s=null:a!==null&&Lp(r,a)&&(t.flags|=32),ZD(e,t),Tt(e,t,s,n),t.child;case 6:return e===null&&Wp(t),null;case 13:return QD(e,t,n);case 4:return _y(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=hs(t,null,r,n):Tt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Cn(r,i),Ax(e,t,r,i,n);case 7:return Tt(e,t,t.pendingProps,n),t.child;case 8:return Tt(e,t,t.pendingProps.children,n),t.child;case 12:return Tt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ee(Dc,r._currentValue),r._currentValue=s,a!==null)if(Bn(a.value,s)){if(a.children===i.children&&!Yt.current){t=$r(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var o=a.dependencies;if(o!==null){s=a.child;for(var l=o.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=gr(-1,n&-n),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Up(a.return,n,t),o.lanes|=n;break}l=l.next}}else if(a.tag===10)s=a.type===t.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(L(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Up(s,n,t),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}Tt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Qa(t,n),i=wn(i),r=r(i),t.flags|=1,Tt(e,t,r,n),t.child;case 14:return r=t.type,i=Cn(r,t.pendingProps),i=Cn(r.type,i),Fx(e,t,r,i,n);case 15:return qD(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Cn(r,i),qu(e,t),t.tag=1,qt(r)?(e=!0,$c(t)):e=!1,Qa(t,n),HD(t,r,i),Kp(t,r,i,n),Gp(null,t,r,!0,e,n);case 19:return JD(e,t,n);case 22:return GD(e,t,n)}throw Error(L(156,t.tag))};function m_(e,t){return Vw(e,t)}function EA(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 yn(e,t,n,r){return new EA(e,t,n,r)}function Ny(e){return e=e.prototype,!(!e||!e.isReactComponent)}function SA(e){if(typeof e=="function")return Ny(e)?1:0;if(e!=null){if(e=e.$$typeof,e===iy)return 11;if(e===ay)return 14}return 2}function ei(e,t){var n=e.alternate;return n===null?(n=yn(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 Xu(e,t,n,r,i,a){var s=2;if(r=e,typeof e=="function")Ny(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Fa:return Ui(n.children,i,a,t);case ry:s=8,i|=8;break;case gp:return e=yn(12,n,t,i|2),e.elementType=gp,e.lanes=a,e;case vp:return e=yn(13,n,t,i),e.elementType=vp,e.lanes=a,e;case bp:return e=yn(19,n,t,i),e.elementType=bp,e.lanes=a,e;case Ew:return af(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Dw:s=10;break e;case _w:s=9;break e;case iy:s=11;break e;case ay:s=14;break e;case Mr:s=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=yn(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Ui(e,t,n,r){return e=yn(7,e,r,t),e.lanes=n,e}function af(e,t,n,r){return e=yn(22,e,r,t),e.elementType=Ew,e.lanes=n,e.stateNode={isHidden:!1},e}function ch(e,t,n){return e=yn(6,e,null,t),e.lanes=n,e}function dh(e,t,n){return t=yn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function CA(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=Hf(0),this.expirationTimes=Hf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hf(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function jy(e,t,n,r,i,a,s,o,l){return e=new CA(e,t,n,o,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=yn(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Dy(a),e}function kA(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Aa,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function g_(e){if(!e)return ii;e=e._reactInternals;e:{if(la(e)!==e||e.tag!==1)throw Error(L(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(qt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(L(171))}if(e.tag===1){var n=e.type;if(qt(n))return gD(e,n,t)}return t}function v_(e,t,n,r,i,a,s,o,l){return e=jy(n,r,!0,e,i,a,s,o,l),e.context=g_(null),n=e.current,r=Mt(),i=Jr(n),a=gr(r,i),a.callback=t??null,Xr(n,a,i),e.current.lanes=i,El(e,i,r),Gt(e,r),e}function sf(e,t,n,r){var i=t.current,a=Mt(),s=Jr(i);return n=g_(n),t.context===null?t.context=n:t.pendingContext=n,t=gr(a,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Xr(i,t,s),e!==null&&(Fn(e,i,s,a),Hu(e,i,s)),s}function Ac(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 Kx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function zy(e,t){Kx(e,t),(e=e.alternate)&&Kx(e,t)}function PA(){return null}var b_=typeof reportError=="function"?reportError:function(e){console.error(e)};function Vy(e){this._internalRoot=e}of.prototype.render=Vy.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(L(409));sf(e,t,null,null)};of.prototype.unmount=Vy.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qi(function(){sf(null,e,null,null)}),t[br]=null}};function of(e){this._internalRoot=e}of.prototype.unstable_scheduleHydration=function(e){if(e){var t=Gw();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Br.length&&t!==0&&t<Br[n].priority;n++);Br.splice(n,0,e),n===0&&Xw(e)}};function Wy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function lf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Yx(){}function TA(e,t,n,r,i){if(i){if(typeof r=="function"){var a=r;r=function(){var u=Ac(s);a.call(u)}}var s=v_(t,r,e,0,null,!1,!1,"",Yx);return e._reactRootContainer=s,e[br]=s.current,Ko(e.nodeType===8?e.parentNode:e),Qi(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var o=r;r=function(){var u=Ac(l);o.call(u)}}var l=jy(e,0,!1,null,null,!1,!1,"",Yx);return e._reactRootContainer=l,e[br]=l.current,Ko(e.nodeType===8?e.parentNode:e),Qi(function(){sf(t,l,n,r)}),l}function uf(e,t,n,r,i){var a=n._reactRootContainer;if(a){var s=a;if(typeof i=="function"){var o=i;i=function(){var l=Ac(s);o.call(l)}}sf(t,s,e,i)}else s=TA(n,t,e,i,r);return Ac(s)}Yw=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=io(t.pendingLanes);n!==0&&(ly(t,n|1),Gt(t,Ye()),!(ue&6)&&(gs=Ye()+500,fi()))}break;case 13:Qi(function(){var r=yr(e,1);if(r!==null){var i=Mt();Fn(r,e,1,i)}}),zy(e,1)}};uy=function(e){if(e.tag===13){var t=yr(e,134217728);if(t!==null){var n=Mt();Fn(t,e,134217728,n)}zy(e,134217728)}};qw=function(e){if(e.tag===13){var t=Jr(e),n=yr(e,t);if(n!==null){var r=Mt();Fn(n,e,t,r)}zy(e,t)}};Gw=function(){return ge};Zw=function(e,t){var n=ge;try{return ge=e,t()}finally{ge=n}};kp=function(e,t,n){switch(t){case"input":if(xp(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=Qd(r);if(!i)throw Error(L(90));Cw(r),xp(r,i)}}}break;case"textarea":Pw(e,n);break;case"select":t=n.value,t!=null&&qa(e,!!n.multiple,t,!1)}};Bw=By;Iw=Qi;var RA={usingClientEntryPoint:!1,Events:[Cl,La,Qd,Fw,Ow,By]},js={findFiberByHostInstance:Bi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},MA={bundleType:js.bundleType,version:js.version,rendererPackageName:js.rendererPackageName,rendererConfig:js.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:xr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=jw(e),e===null?null:e.stateNode},findFiberByHostInstance:js.findFiberByHostInstance||PA,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 nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nu.isDisabled&&nu.supportsFiber)try{qd=nu.inject(MA),Kn=nu}catch{}}un.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=RA;un.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Wy(t))throw Error(L(200));return kA(e,t,null,n)};un.createRoot=function(e,t){if(!Wy(e))throw Error(L(299));var n=!1,r="",i=b_;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=jy(e,1,!1,null,null,n,!1,r,i),e[br]=t.current,Ko(e.nodeType===8?e.parentNode:e),new Vy(t)};un.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(L(188)):(e=Object.keys(e).join(","),Error(L(268,e)));return e=jw(t),e=e===null?null:e.stateNode,e};un.flushSync=function(e){return Qi(e)};un.hydrate=function(e,t,n){if(!lf(t))throw Error(L(200));return uf(null,e,t,!0,n)};un.hydrateRoot=function(e,t,n){if(!Wy(e))throw Error(L(405));var r=n!=null&&n.hydratedSources||null,i=!1,a="",s=b_;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=v_(t,null,e,1,n??null,i,!1,a,s),e[br]=t.current,Ko(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 of(t)};un.render=function(e,t,n){if(!lf(t))throw Error(L(200));return uf(null,e,t,!1,n)};un.unmountComponentAtNode=function(e){if(!lf(e))throw Error(L(40));return e._reactRootContainer?(Qi(function(){uf(null,null,e,!1,function(){e._reactRootContainer=null,e[br]=null})}),!0):!1};un.unstable_batchedUpdates=By;un.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!lf(n))throw Error(L(200));if(e==null||e._reactInternals===void 0)throw Error(L(38));return uf(e,t,n,!1,r)};un.version="18.3.1-next-f1338f8080-20240426";function y_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(y_)}catch(e){console.error(e)}}y_(),yw.exports=un;var $_=yw.exports;const so=ow($_);var qx=$_;pp.createRoot=qx.createRoot,pp.hydrateRoot=qx.hydrateRoot;/**
+ * @remix-run/router v1.16.1
+ *
+ * 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 tl(){return tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tl.apply(this,arguments)}var zr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(zr||(zr={}));const Gx="popstate";function AA(e){e===void 0&&(e={});function t(r,i){let{pathname:a,search:s,hash:o}=r.location;return om("",{pathname:a,search:s,hash:o},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:w_(i)}return OA(t,n,null,e)}function at(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function x_(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function FA(){return Math.random().toString(36).substr(2,8)}function Zx(e,t){return{usr:e.state,key:e.key,idx:t}}function om(e,t,n,r){return n===void 0&&(n=null),tl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Cs(t):t,{state:n,key:t&&t.key||r||FA()})}function w_(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 Cs(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 OA(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,o=zr.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(tl({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){o=zr.Pop;let b=c(),v=b==null?null:b-u;u=b,l&&l({action:o,location:g.location,delta:v})}function f(b,v){o=zr.Push;let m=om(g.location,b,v);u=c()+1;let $=Zx(m,u),w=g.createHref(m);try{s.pushState($,"",w)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;i.location.assign(w)}a&&l&&l({action:o,location:g.location,delta:1})}function h(b,v){o=zr.Replace;let m=om(g.location,b,v);u=c();let $=Zx(m,u),w=g.createHref(m);s.replaceState($,"",w),a&&l&&l({action:o,location:g.location,delta:0})}function p(b){let v=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof b=="string"?b:w_(b);return m=m.replace(/ $/,"%20"),at(v,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,v)}let g={get action(){return o},get location(){return e(i,s)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Gx,d),l=b,()=>{i.removeEventListener(Gx,d),l=null}},createHref(b){return t(i,b)},createURL:p,encodeLocation(b){let v=p(b);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:h,go(b){return s.go(b)}};return g}var Xx;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Xx||(Xx={}));function BA(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Cs(t):t,i=E_(r.pathname||"/",n);if(i==null)return null;let a=D_(e);IA(a);let s=null;for(let o=0;s==null&&o<a.length;++o){let l=GA(i);s=KA(a[o],l)}return s}function D_(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(a,s,o)=>{let l={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};l.relativePath.startsWith("/")&&(at(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Hi([r,l.relativePath]),c=n.concat(l);a.children&&a.children.length>0&&(at(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),D_(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:UA(u,a.index),routesMeta:c})};return e.forEach((a,s)=>{var o;if(a.path===""||!((o=a.path)!=null&&o.includes("?")))i(a,s);else for(let l of __(a.path))i(a,s,l)}),t}function __(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=__(r.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),i&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function IA(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:HA(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const LA=/^:[\w-]+$/,NA=3,jA=2,zA=1,VA=10,WA=-2,Qx=e=>e==="*";function UA(e,t){let n=e.split("/"),r=n.length;return n.some(Qx)&&(r+=WA),t&&(r+=jA),n.filter(i=>!Qx(i)).reduce((i,a)=>i+(LA.test(a)?NA:a===""?zA:VA),r)}function HA(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 KA(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let s=0;s<n.length;++s){let o=n[s],l=s===n.length-1,u=i==="/"?t:t.slice(i.length)||"/",c=YA({path:o.relativePath,caseSensitive:o.caseSensitive,end:l},u);if(!c)return null;Object.assign(r,c.params);let d=o.route;a.push({params:r,pathname:Hi([i,c.pathname]),pathnameBase:tF(Hi([i,c.pathnameBase])),route:d}),c.pathnameBase!=="/"&&(i=Hi([i,c.pathnameBase]))}return a}function YA(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=qA(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],s=a.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:r.reduce((u,c,d)=>{let{paramName:f,isOptional:h}=c;if(f==="*"){let g=o[d]||"";s=a.slice(0,a.length-g.length).replace(/(.)\/+$/,"$1")}const p=o[d];return h&&!p?u[f]=void 0:u[f]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:s,pattern:e}}function qA(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),x_(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,(s,o,l)=>(r.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function GA(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return x_(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function E_(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function ZA(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Cs(e):e;return{pathname:n?n.startsWith("/")?n:XA(n,t):t,search:nF(r),hash:rF(i)}}function XA(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 fh(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 QA(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function JA(e,t){let n=QA(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function eF(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Cs(e):(i=tl({},e),at(!i.pathname||!i.pathname.includes("?"),fh("?","pathname","search",i)),at(!i.pathname||!i.pathname.includes("#"),fh("#","pathname","hash",i)),at(!i.search||!i.search.includes("#"),fh("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}o=d>=0?t[d]:"/"}let l=ZA(i,o),u=s&&s!=="/"&&s.endsWith("/"),c=(a||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Hi=e=>e.join("/").replace(/\/\/+/g,"/"),tF=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),nF=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,rF=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function iF(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const S_=["post","put","patch","delete"];new Set(S_);const aF=["get",...S_];new Set(aF);/**
+ * React Router v6.23.1
+ *
+ * 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 nl(){return nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nl.apply(this,arguments)}const Uy=y.createContext(null),sF=y.createContext(null),cf=y.createContext(null),df=y.createContext(null),ks=y.createContext({outlet:null,matches:[],isDataRoute:!1}),C_=y.createContext(null);function ff(){return y.useContext(df)!=null}function k_(){return ff()||at(!1),y.useContext(df).location}function P_(e){y.useContext(cf).static||y.useLayoutEffect(e)}function hf(){let{isDataRoute:e}=y.useContext(ks);return e?yF():oF()}function oF(){ff()||at(!1);let e=y.useContext(Uy),{basename:t,future:n,navigator:r}=y.useContext(cf),{matches:i}=y.useContext(ks),{pathname:a}=k_(),s=JSON.stringify(JA(i,n.v7_relativeSplatPath)),o=y.useRef(!1);return P_(()=>{o.current=!0}),y.useCallback(function(u,c){if(c===void 0&&(c={}),!o.current)return;if(typeof u=="number"){r.go(u);return}let d=eF(u,JSON.parse(s),a,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Hi([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,a,e])}function lF(e,t){return uF(e,t)}function uF(e,t,n,r){ff()||at(!1);let{navigator:i}=y.useContext(cf),{matches:a}=y.useContext(ks),s=a[a.length-1],o=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=k_(),c;if(t){var d;let b=typeof t=="string"?Cs(t):t;l==="/"||(d=b.pathname)!=null&&d.startsWith(l)||at(!1),c=b}else c=u;let f=c.pathname||"/",h=f;if(l!=="/"){let b=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(b.length).join("/")}let p=BA(e,{pathname:h}),g=pF(p&&p.map(b=>Object.assign({},b,{params:Object.assign({},o,b.params),pathname:Hi([l,i.encodeLocation?i.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:Hi([l,i.encodeLocation?i.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),a,n,r);return t&&g?y.createElement(df.Provider,{value:{location:nl({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:zr.Pop}},g):g}function cF(){let e=bF(),t=iF(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 y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:i},n):null,null)}const dF=y.createElement(cF,null);class fF extends y.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?y.createElement(ks.Provider,{value:this.props.routeContext},y.createElement(C_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hF(e){let{routeContext:t,match:n,children:r}=e,i=y.useContext(Uy);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(ks.Provider,{value:t},r)}function pF(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let s=e,o=(i=n)==null?void 0:i.errors;if(o!=null){let c=s.findIndex(d=>d.route.id&&(o==null?void 0:o[d.route.id])!==void 0);c>=0||at(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<s.length;c++){let d=s[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:h}=n,p=d.route.loader&&f[d.route.id]===void 0&&(!h||h[d.route.id]===void 0);if(d.route.lazy||p){l=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,f)=>{let h,p=!1,g=null,b=null;n&&(h=o&&d.route.id?o[d.route.id]:void 0,g=d.route.errorElement||dF,l&&(u<0&&f===0?(p=!0,b=null):u===f&&(p=!0,b=d.route.hydrateFallbackElement||null)));let v=t.concat(s.slice(0,f+1)),m=()=>{let $;return h?$=g:p?$=b:d.route.Component?$=y.createElement(d.route.Component,null):d.route.element?$=d.route.element:$=c,y.createElement(hF,{match:d,routeContext:{outlet:c,matches:v,isDataRoute:n!=null},children:$})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?y.createElement(fF,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:m(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):m()},null)}var T_=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(T_||{}),Fc=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}(Fc||{});function mF(e){let t=y.useContext(Uy);return t||at(!1),t}function gF(e){let t=y.useContext(sF);return t||at(!1),t}function vF(e){let t=y.useContext(ks);return t||at(!1),t}function R_(e){let t=vF(),n=t.matches[t.matches.length-1];return n.route.id||at(!1),n.route.id}function bF(){var e;let t=y.useContext(C_),n=gF(Fc.UseRouteError),r=R_(Fc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function yF(){let{router:e}=mF(T_.UseNavigateStable),t=R_(Fc.UseNavigateStable),n=y.useRef(!1);return P_(()=>{n.current=!0}),y.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,nl({fromRouteId:t},a)))},[e,t])}function Pa(e){at(!1)}function $F(e){let{basename:t="/",children:n=null,location:r,navigationType:i=zr.Pop,navigator:a,static:s=!1,future:o}=e;ff()&&at(!1);let l=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:l,navigator:a,static:s,future:nl({v7_relativeSplatPath:!1},o)}),[l,o,a,s]);typeof r=="string"&&(r=Cs(r));let{pathname:c="/",search:d="",hash:f="",state:h=null,key:p="default"}=r,g=y.useMemo(()=>{let b=E_(c,l);return b==null?null:{location:{pathname:b,search:d,hash:f,state:h,key:p},navigationType:i}},[l,c,d,f,h,p,i]);return g==null?null:y.createElement(cf.Provider,{value:u},y.createElement(df.Provider,{children:n,value:g}))}function xF(e){let{children:t,location:n}=e;return lF(lm(t),n)}new Promise(()=>{});function lm(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,i)=>{if(!y.isValidElement(r))return;let a=[...t,i];if(r.type===y.Fragment){n.push.apply(n,lm(r.props.children,a));return}r.type!==Pa&&at(!1),!r.props.index||!r.props.children||at(!1);let s={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=lm(r.props.children,a)),n.push(s)}),n}/**
+ * React Router DOM v6.23.1
+ *
+ * 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
+ */const wF="6";try{window.__reactRouterVersion=wF}catch{}const DF="startTransition",Jx=wR[DF];function _F(e){let{basename:t,children:n,future:r,window:i}=e,a=y.useRef();a.current==null&&(a.current=AA({window:i,v5Compat:!0}));let s=a.current,[o,l]=y.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=y.useCallback(d=>{u&&Jx?Jx(()=>l(d)):l(d)},[l,u]);return y.useLayoutEffect(()=>s.listen(c),[s,c]),y.createElement($F,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:s,future:r})}var e2;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(e2||(e2={}));var t2;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(t2||(t2={}));const EF="modulepreload",SF=function(e,t){return new URL(e,t).href},n2={},vs=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const a=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),o=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.all(n.map(l=>{if(l=SF(l,r),l in n2)return;n2[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!r)for(let h=a.length-1;h>=0;h--){const p=a[h];if(p.href===l&&(!u||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${c}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":EF,u||(f.as="script",f.crossOrigin=""),f.href=l,o&&f.setAttribute("nonce",o),document.head.appendChild(f),u)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}return i.then(()=>t()).catch(a=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a})},CF=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>vs(()=>Promise.resolve().then(()=>Pl),void 0,import.meta.url).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)};class Hy extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class kF extends Hy{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class PF extends Hy{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class TF extends Hy{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var um;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(um||(um={}));var RF=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})};class MF{constructor(t,{headers:n={},customFetch:r,region:i=um.Any}={}){this.url=t,this.headers=n,this.region=i,this.fetch=CF(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var r;return RF(this,void 0,void 0,function*(){try{const{headers:i,method:a,body:s}=n;let o={},{region:l}=n;l||(l=this.region),l&&l!=="any"&&(o["x-region"]=l);let u;s&&(i&&!Object.prototype.hasOwnProperty.call(i,"Content-Type")||!i)&&(typeof Blob<"u"&&s instanceof Blob||s instanceof ArrayBuffer?(o["Content-Type"]="application/octet-stream",u=s):typeof s=="string"?(o["Content-Type"]="text/plain",u=s):typeof FormData<"u"&&s instanceof FormData?u=s:(o["Content-Type"]="application/json",u=JSON.stringify(s)));const c=yield this.fetch(`${this.url}/${t}`,{method:a||"POST",headers:Object.assign(Object.assign(Object.assign({},o),this.headers),i),body:u}).catch(p=>{throw new kF(p)}),d=c.headers.get("x-relay-error");if(d&&d==="true")throw new PF(c);if(!c.ok)throw new TF(c);let f=((r=c.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),h;return f==="application/json"?h=yield c.json():f==="application/octet-stream"?h=yield c.blob():f==="text/event-stream"?h=c:f==="multipart/form-data"?h=yield c.formData():h=yield c.text(),{data:h,error:null}}catch(i){return{data:null,error:i}}})}}var AF=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},bs=AF();const FF=bs.fetch,Ky=bs.fetch.bind(bs),M_=bs.Headers,OF=bs.Request,BF=bs.Response,Pl=Object.freeze(Object.defineProperty({__proto__:null,Headers:M_,Request:OF,Response:BF,default:Ky,fetch:FF},Symbol.toStringTag,{value:"Module"}));class IF extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}}class LF{constructor(t){this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=t.headers,this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=t.shouldThrowOnError,this.signal=t.signal,this.isMaybeSingle=t.isMaybeSingle,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=Ky:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}then(t,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const r=this.fetch;let i=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async a=>{var s,o,l;let u=null,c=null,d=null,f=a.status,h=a.statusText;if(a.ok){if(this.method!=="HEAD"){const v=await a.text();v===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?c=v:c=JSON.parse(v))}const g=(s=this.headers.Prefer)===null||s===void 0?void 0:s.match(/count=(exact|planned|estimated)/),b=(o=a.headers.get("content-range"))===null||o===void 0?void 0:o.split("/");g&&b&&b.length>1&&(d=parseInt(b[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(c)&&(c.length>1?(u={code:"PGRST116",details:`Results contain ${c.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},c=null,d=null,f=406,h="Not Acceptable"):c.length===1?c=c[0]:c=null)}else{const g=await a.text();try{u=JSON.parse(g),Array.isArray(u)&&a.status===404&&(c=[],u=null,f=200,h="OK")}catch{a.status===404&&g===""?(f=204,h="No Content"):u={message:g}}if(u&&this.isMaybeSingle&&(!((l=u==null?void 0:u.details)===null||l===void 0)&&l.includes("0 rows"))&&(u=null,f=200,h="OK"),u&&this.shouldThrowOnError)throw new IF(u)}return{error:u,data:c,count:d,status:f,statusText:h}});return this.shouldThrowOnError||(i=i.catch(a=>{var s,o,l;return{error:{message:`${(s=a==null?void 0:a.name)!==null&&s!==void 0?s:"FetchError"}: ${a==null?void 0:a.message}`,details:`${(o=a==null?void 0:a.stack)!==null&&o!==void 0?o:""}`,hint:"",code:`${(l=a==null?void 0:a.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),i.then(t,n)}}class NF extends LF{select(t){let n=!1;const r=(t??"*").split("").map(i=>/\s/.test(i)&&!n?"":(i==='"'&&(n=!n),i)).join("");return this.url.searchParams.set("select",r),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(t,{ascending:n=!0,nullsFirst:r,foreignTable:i,referencedTable:a=i}={}){const s=a?`${a}.order`:"order",o=this.url.searchParams.get(s);return this.url.searchParams.set(s,`${o?`${o},`:""}${t}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n,referencedTable:r=n}={}){const i=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(i,`${t}`),this}range(t,n,{foreignTable:r,referencedTable:i=r}={}){const a=typeof i>"u"?"offset":`${i}.offset`,s=typeof i>"u"?"limit":`${i}.limit`;return this.url.searchParams.set(a,`${t}`),this.url.searchParams.set(s,`${n-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}explain({analyze:t=!1,verbose:n=!1,settings:r=!1,buffers:i=!1,wal:a=!1,format:s="text"}={}){var o;const l=[t?"analyze":null,n?"verbose":null,r?"settings":null,i?"buffers":null,a?"wal":null].filter(Boolean).join("|"),u=(o=this.headers.Accept)!==null&&o!==void 0?o:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${s}; for="${u}"; options=${l};`,s==="json"?this:this}rollback(){var t;return((t=this.headers.Prefer)!==null&&t!==void 0?t:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}}class Ta extends NF{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const r=Array.from(new Set(n)).map(i=>typeof i=="string"&&new RegExp("[,()]").test(i)?`"${i}"`:`${i}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:r,type:i}={}){let a="";i==="plain"?a="pl":i==="phrase"?a="ph":i==="websearch"&&(a="w");const s=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${a}fts${s}.${n}`),this}match(t){return Object.entries(t).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(t,n,r){return this.url.searchParams.append(t,`not.${n}.${r}`),this}or(t,{foreignTable:n,referencedTable:r=n}={}){const i=r?`${r}.or`:"or";return this.url.searchParams.append(i,`(${t})`),this}filter(t,n,r){return this.url.searchParams.append(t,`${n}.${r}`),this}}class jF{constructor(t,{headers:n={},schema:r,fetch:i}){this.url=t,this.headers=n,this.schema=r,this.fetch=i}select(t,{head:n=!1,count:r}={}){const i=n?"HEAD":"GET";let a=!1;const s=(t??"*").split("").map(o=>/\s/.test(o)&&!a?"":(o==='"'&&(a=!a),o)).join("");return this.url.searchParams.set("select",s),r&&(this.headers.Prefer=`count=${r}`),new Ta({method:i,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(t,{count:n,defaultToNull:r=!0}={}){const i="POST",a=[];if(this.headers.Prefer&&a.push(this.headers.Prefer),n&&a.push(`count=${n}`),r||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(t)){const s=t.reduce((o,l)=>o.concat(Object.keys(l)),[]);if(s.length>0){const o=[...new Set(s)].map(l=>`"${l}"`);this.url.searchParams.set("columns",o.join(","))}}return new Ta({method:i,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}upsert(t,{onConflict:n,ignoreDuplicates:r=!1,count:i,defaultToNull:a=!0}={}){const s="POST",o=[`resolution=${r?"ignore":"merge"}-duplicates`];if(n!==void 0&&this.url.searchParams.set("on_conflict",n),this.headers.Prefer&&o.push(this.headers.Prefer),i&&o.push(`count=${i}`),a||o.push("missing=default"),this.headers.Prefer=o.join(","),Array.isArray(t)){const l=t.reduce((u,c)=>u.concat(Object.keys(c)),[]);if(l.length>0){const u=[...new Set(l)].map(c=>`"${c}"`);this.url.searchParams.set("columns",u.join(","))}}return new Ta({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}update(t,{count:n}={}){const r="PATCH",i=[];return this.headers.Prefer&&i.push(this.headers.Prefer),n&&i.push(`count=${n}`),this.headers.Prefer=i.join(","),new Ta({method:r,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}delete({count:t}={}){const n="DELETE",r=[];return t&&r.push(`count=${t}`),this.headers.Prefer&&r.unshift(this.headers.Prefer),this.headers.Prefer=r.join(","),new Ta({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}}const zF="1.15.2",VF={"X-Client-Info":`postgrest-js/${zF}`};class Yy{constructor(t,{headers:n={},schema:r,fetch:i}={}){this.url=t,this.headers=Object.assign(Object.assign({},VF),n),this.schemaName=r,this.fetch=i}from(t){const n=new URL(`${this.url}/${t}`);return new jF(n,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new Yy(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:i=!1,count:a}={}){let s;const o=new URL(`${this.url}/rpc/${t}`);let l;r||i?(s=r?"HEAD":"GET",Object.entries(n).filter(([c,d])=>d!==void 0).map(([c,d])=>[c,Array.isArray(d)?`{${d.join(",")}}`:`${d}`]).forEach(([c,d])=>{o.searchParams.append(c,d)})):(s="POST",l=n);const u=Object.assign({},this.headers);return a&&(u.Prefer=`count=${a}`),new Ta({method:s,url:o,headers:u,schema:this.schemaName,body:l,fetch:this.fetch,allowEmpty:!1})}}const WF="2.9.5",UF={"X-Client-Info":`realtime-js/${WF}`},HF="1.0.0",A_=1e4,KF=1e3;var es;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(es||(es={}));var Jt;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Jt||(Jt={}));var Pn;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(Pn||(Pn={}));var cm;(function(e){e.websocket="websocket"})(cm||(cm={}));var Ai;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Ai||(Ai={}));class F_{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}class YF{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const i=n.getUint8(1),a=n.getUint8(2);let s=this.HEADER_LENGTH+2;const o=r.decode(t.slice(s,s+i));s=s+i;const l=r.decode(t.slice(s,s+a));s=s+a;const u=JSON.parse(r.decode(t.slice(s,t.byteLength)));return{ref:null,topic:o,event:l,payload:u}}}class hh{constructor(t,n,r={},i=A_){this.channel=t,this.event=n,this.payload=r,this.timeout=i,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var r2;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(r2||(r2={}));class ko{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},i=>{const{onJoin:a,onLeave:s,onSync:o}=this.caller;this.joinRef=this.channel._joinRef(),this.state=ko.syncState(this.state,i,a,s),this.pendingDiffs.forEach(l=>{this.state=ko.syncDiff(this.state,l,a,s)}),this.pendingDiffs=[],o()}),this.channel._on(r.diff,{},i=>{const{onJoin:a,onLeave:s,onSync:o}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=ko.syncDiff(this.state,i,a,s),o())}),this.onJoin((i,a,s)=>{this.channel._trigger("presence",{event:"join",key:i,currentPresences:a,newPresences:s})}),this.onLeave((i,a,s)=>{this.channel._trigger("presence",{event:"leave",key:i,currentPresences:a,leftPresences:s})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,i){const a=this.cloneDeep(t),s=this.transformState(n),o={},l={};return this.map(a,(u,c)=>{s[u]||(l[u]=c)}),this.map(s,(u,c)=>{const d=a[u];if(d){const f=c.map(b=>b.presence_ref),h=d.map(b=>b.presence_ref),p=c.filter(b=>h.indexOf(b.presence_ref)<0),g=d.filter(b=>f.indexOf(b.presence_ref)<0);p.length>0&&(o[u]=p),g.length>0&&(l[u]=g)}else o[u]=c}),this.syncDiff(a,{joins:o,leaves:l},r,i)}static syncDiff(t,n,r,i){const{joins:a,leaves:s}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),i||(i=()=>{}),this.map(a,(o,l)=>{var u;const c=(u=t[o])!==null&&u!==void 0?u:[];if(t[o]=this.cloneDeep(l),c.length>0){const d=t[o].map(h=>h.presence_ref),f=c.filter(h=>d.indexOf(h.presence_ref)<0);t[o].unshift(...f)}r(o,c,l)}),this.map(s,(o,l)=>{let u=t[o];if(!u)return;const c=l.map(d=>d.presence_ref);u=u.filter(d=>c.indexOf(d.presence_ref)<0),t[o]=u,i(o,u,l),u.length===0&&delete t[o]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const i=t[r];return"metas"in i?n[r]=i.metas.map(a=>(a.presence_ref=a.phx_ref,delete a.phx_ref,delete a.phx_ref_prev,a)):n[r]=i,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var we;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(we||(we={}));const i2=(e,t,n={})=>{var r;const i=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((a,s)=>(a[s]=qF(s,e,t,i),a),{})},qF=(e,t,n,r)=>{const i=t.find(o=>o.name===e),a=i==null?void 0:i.type,s=n[e];return a&&!r.includes(a)?O_(a,s):dm(s)},O_=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return QF(t,n)}switch(e){case we.bool:return GF(t);case we.float4:case we.float8:case we.int2:case we.int4:case we.int8:case we.numeric:case we.oid:return ZF(t);case we.json:case we.jsonb:return XF(t);case we.timestamp:return JF(t);case we.abstime:case we.date:case we.daterange:case we.int4range:case we.int8range:case we.money:case we.reltime:case we.text:case we.time:case we.timestamptz:case we.timetz:case we.tsrange:case we.tstzrange:return dm(t);default:return dm(t)}},dm=e=>e,GF=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},ZF=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},XF=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},QF=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let a;const s=e.slice(1,n);try{a=JSON.parse("["+s+"]")}catch{a=s?s.split(","):[]}return a.map(o=>O_(t,o))}return e},JF=e=>typeof e=="string"?e.replace(" ","T"):e;var a2;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(a2||(a2={}));var s2;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes"})(s2||(s2={}));var o2;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(o2||(o2={}));class qy{constructor(t,n={config:{}},r){this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=Jt.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""}},n.config),this.timeout=this.socket.timeout,this.joinPush=new hh(this,Pn.join,this.params,this.timeout),this.rejoinTimer=new F_(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Jt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(i=>i.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Jt.closed,this.socket._remove(this)}),this._onError(i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=Jt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Jt.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Pn.reply,{},(i,a)=>{this._trigger(this._replyEventName(a),i)}),this.presence=new ko(this),this.broadcastEndpointURL=this._broadcastEndpointURL()}subscribe(t,n=this.timeout){var r,i;if(this.socket.isConnected()||this.socket.connect(),this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{const{config:{broadcast:a,presence:s}}=this.params;this._onError(u=>t&&t("CHANNEL_ERROR",u)),this._onClose(()=>t&&t("CLOSED"));const o={},l={broadcast:a,presence:s,postgres_changes:(i=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(u=>u.filter))!==null&&i!==void 0?i:[]};this.socket.accessToken&&(o.access_token=this.socket.accessToken),this.updateJoinPayload(Object.assign({config:l},o)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",({postgres_changes:u})=>{var c;if(this.socket.accessToken&&this.socket.setAuth(this.socket.accessToken),u===void 0){t&&t("SUBSCRIBED");return}else{const d=this.bindings.postgres_changes,f=(c=d==null?void 0:d.length)!==null&&c!==void 0?c:0,h=[];for(let p=0;p<f;p++){const g=d[p],{filter:{event:b,schema:v,table:m,filter:$}}=g,w=u&&u[p];if(w&&w.event===b&&w.schema===v&&w.table===m&&w.filter===$)h.push(Object.assign(Object.assign({},g),{id:w.id}));else{this.unsubscribe(),t&&t("CHANNEL_ERROR",new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=h,t&&t("SUBSCRIBED");return}}).receive("error",u=>{t&&t("CHANNEL_ERROR",new Error(JSON.stringify(Object.values(u).join(", ")||"error")))}).receive("timeout",()=>{t&&t("TIMED_OUT")})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this._on(t,n,r)}async send(t,n={}){var r,i;if(!this._canPush()&&t.type==="broadcast"){const{event:a,payload:s}=t,o={method:"POST",headers:{apikey:(r=this.socket.apiKey)!==null&&r!==void 0?r:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:a,payload:s}]})};try{return(await this._fetchWithTimeout(this.broadcastEndpointURL,o,(i=n.timeout)!==null&&i!==void 0?i:this.timeout)).ok?"ok":"error"}catch(l){return l.name==="AbortError"?"timed out":"error"}}else return new Promise(a=>{var s,o,l;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(o=(s=this.params)===null||s===void 0?void 0:s.config)===null||o===void 0?void 0:o.broadcast)===null||l===void 0)&&l.ack)&&a("ok"),u.receive("ok",()=>a("ok")),u.receive("error",()=>a("error")),u.receive("timeout",()=>a("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Jt.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Pn.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(r=>{const i=new hh(this,Pn.leave,{},t);i.receive("ok",()=>{n(),r("ok")}).receive("timeout",()=>{n(),r("timed out")}).receive("error",()=>{r("error")}),i.send(),this._canPush()||i.trigger("ok",{})})}_broadcastEndpointURL(){let t=this.socket.endPoint;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")+"/api/broadcast"}async _fetchWithTimeout(t,n,r){const i=new AbortController,a=setTimeout(()=>i.abort(),r),s=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:i.signal}));return clearTimeout(a),s}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let i=new hh(this,t,n,r);return this._canPush()?i.send():(i.startTimeout(),this.pushBuffer.push(i)),i}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var i,a;const s=t.toLocaleLowerCase(),{close:o,error:l,leave:u,join:c}=Pn;if(r&&[o,l,u,c].indexOf(s)>=0&&r!==this._joinRef())return;let f=this._onMessage(s,n,r);if(n&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(s)?(i=this.bindings.postgres_changes)===null||i===void 0||i.filter(h=>{var p,g,b;return((p=h.filter)===null||p===void 0?void 0:p.event)==="*"||((b=(g=h.filter)===null||g===void 0?void 0:g.event)===null||b===void 0?void 0:b.toLocaleLowerCase())===s}).map(h=>h.callback(f,r)):(a=this.bindings[s])===null||a===void 0||a.filter(h=>{var p,g,b,v,m,$;if(["broadcast","presence","postgres_changes"].includes(s))if("id"in h){const w=h.id,D=(p=h.filter)===null||p===void 0?void 0:p.event;return w&&((g=n.ids)===null||g===void 0?void 0:g.includes(w))&&(D==="*"||(D==null?void 0:D.toLocaleLowerCase())===((b=n.data)===null||b===void 0?void 0:b.type.toLocaleLowerCase()))}else{const w=(m=(v=h==null?void 0:h.filter)===null||v===void 0?void 0:v.event)===null||m===void 0?void 0:m.toLocaleLowerCase();return w==="*"||w===(($=n==null?void 0:n.event)===null||$===void 0?void 0:$.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===s}).map(h=>{if(typeof f=="object"&&"ids"in f){const p=f.data,{schema:g,table:b,commit_timestamp:v,type:m,errors:$}=p;f=Object.assign(Object.assign({},{schema:g,table:b,commit_timestamp:v,eventType:m,new:{},old:{},errors:$}),this._getPayloadRecords(p))}h.callback(f,r)})}_isClosed(){return this.state===Jt.closed}_isJoined(){return this.state===Jt.joined}_isJoining(){return this.state===Jt.joining}_isLeaving(){return this.state===Jt.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const i=t.toLocaleLowerCase(),a={type:i,filter:n,callback:r};return this.bindings[i]?this.bindings[i].push(a):this.bindings[i]=[a],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]=this.bindings[r].filter(i=>{var a;return!(((a=i.type)===null||a===void 0?void 0:a.toLocaleLowerCase())===r&&qy.isEqual(i.filter,n))}),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Pn.close,{},t)}_onError(t){this._on(Pn.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Jt.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=i2(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=i2(t.columns,t.old_record)),n}}const eO=()=>{},tO=typeof WebSocket<"u";class nO{constructor(t,n){var r;this.accessToken=null,this.apiKey=null,this.channels=[],this.endPoint="",this.headers=UF,this.params={},this.timeout=A_,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=eO,this.conn=null,this.sendBuffer=[],this.serializer=new YF,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this._resolveFetch=a=>{let s;return a?s=a:typeof fetch>"u"?s=(...o)=>vs(()=>Promise.resolve().then(()=>Pl),void 0,import.meta.url).then(({default:l})=>l(...o)):s=fetch,(...o)=>s(...o)},this.endPoint=`${t}/${cm.websocket}`,n!=null&&n.transport?this.transport=n.transport:this.transport=null,n!=null&&n.params&&(this.params=n.params),n!=null&&n.headers&&(this.headers=Object.assign(Object.assign({},this.headers),n.headers)),n!=null&&n.timeout&&(this.timeout=n.timeout),n!=null&&n.logger&&(this.logger=n.logger),n!=null&&n.heartbeatIntervalMs&&(this.heartbeatIntervalMs=n.heartbeatIntervalMs);const i=(r=n==null?void 0:n.params)===null||r===void 0?void 0:r.apikey;i&&(this.accessToken=i,this.apiKey=i),this.reconnectAfterMs=n!=null&&n.reconnectAfterMs?n.reconnectAfterMs:a=>[1e3,2e3,5e3,1e4][a-1]||1e4,this.encode=n!=null&&n.encode?n.encode:(a,s)=>s(JSON.stringify(a)),this.decode=n!=null&&n.decode?n.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new F_(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!this.conn){if(this.transport){this.conn=new this.transport(this._endPointURL(),void 0,{headers:this.headers});return}if(tO){this.conn=new WebSocket(this._endPointURL()),this.setupConnection();return}this.conn=new rO(this._endPointURL(),void 0,{close:()=>{this.conn=null}}),vs(()=>import("./browser-M0K_9b-A.js").then(t=>t.b),[],import.meta.url).then(({default:t})=>{this.conn=new t(this._endPointURL(),void 0,{headers:this.headers}),this.setupConnection()})}}disconnect(t,n){this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,n??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case es.connecting:return Ai.Connecting;case es.open:return Ai.Open;case es.closing:return Ai.Closing;default:return Ai.Closed}}isConnected(){return this.connectionState()===Ai.Open}channel(t,n={config:{}}){const r=new qy(`realtime:${t}`,n,this);return this.channels.push(r),r}push(t){const{topic:n,event:r,payload:i,ref:a}=t,s=()=>{this.encode(t,o=>{var l;(l=this.conn)===null||l===void 0||l.send(o)})};this.log("push",`${n} ${r} (${a})`,i),this.isConnected()?s():this.sendBuffer.push(s)}setAuth(t){this.accessToken=t,this.channels.forEach(n=>{t&&n.updateJoinPayload({access_token:t}),n.joinedOnce&&n._isJoined()&&n._push(Pn.access_token,{access_token:t})})}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n._joinRef()!==t._joinRef())}setupConnection(){this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_endPointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:HF}))}_onConnMessage(t){this.decode(t.data,n=>{let{topic:r,event:i,payload:a,ref:s}=n;(s&&s===this.pendingHeartbeatRef||i===(a==null?void 0:a.type))&&(this.pendingHeartbeatRef=null),this.log("receive",`${a.status||""} ${r} ${i} ${s&&"("+s+")"||""}`,a),this.channels.filter(o=>o._isMember(r)).forEach(o=>o._trigger(i,a,s)),this.stateChangeCallbacks.message.forEach(o=>o(n))})}_onConnOpen(){this.log("transport",`connected to ${this._endPointURL()}`),this._flushSendBuffer(),this.reconnectTimer.reset(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this._sendHeartbeat(),this.heartbeatIntervalMs),this.stateChangeCallbacks.open.forEach(t=>t())}_onConnClose(t){this.log("transport","close",t),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(n=>n(t))}_onConnError(t){this.log("transport",t.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(n=>n(t))}_triggerChanError(){this.channels.forEach(t=>t._trigger(Pn.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",i=new URLSearchParams(n);return`${t}${r}${i}`}_flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_sendHeartbeat(){var t;if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),(t=this.conn)===null||t===void 0||t.close(KF,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth(this.accessToken)}}}class rO{constructor(t,n,r){this.binaryType="arraybuffer",this.onclose=()=>{},this.onerror=()=>{},this.onmessage=()=>{},this.onopen=()=>{},this.readyState=es.connecting,this.send=()=>{},this.url=null,this.url=t,this.close=r.close}}class Gy extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function _t(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class iO extends Gy{constructor(t,n){super(t),this.name="StorageApiError",this.status=n}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class l2 extends Gy{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var aO=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})};const B_=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>vs(()=>Promise.resolve().then(()=>Pl),void 0,import.meta.url).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},sO=()=>aO(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield vs(()=>Promise.resolve().then(()=>Pl),void 0,import.meta.url)).Response:Response});var Ps=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})};const ph=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),oO=(e,t)=>Ps(void 0,void 0,void 0,function*(){const n=yield sO();e instanceof n?e.json().then(r=>{t(new iO(ph(r),e.status||500))}).catch(r=>{t(new l2(ph(r),r))}):t(new l2(ph(e),e))}),lO=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};function pf(e,t,n,r,i,a){return Ps(this,void 0,void 0,function*(){return new Promise((s,o)=>{e(n,lO(t,r,i,a)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>s(l)).catch(l=>oO(l,o))})})}function fm(e,t,n,r){return Ps(this,void 0,void 0,function*(){return pf(e,"GET",t,n,r)})}function Fr(e,t,n,r,i){return Ps(this,void 0,void 0,function*(){return pf(e,"POST",t,r,i,n)})}function uO(e,t,n,r,i){return Ps(this,void 0,void 0,function*(){return pf(e,"PUT",t,r,i,n)})}function I_(e,t,n,r,i){return Ps(this,void 0,void 0,function*(){return pf(e,"DELETE",t,r,i,n)})}var dn=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})};const cO={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},u2={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class dO{constructor(t,n={},r,i){this.url=t,this.headers=n,this.bucketId=r,this.fetch=B_(i)}uploadOrUpdate(t,n,r,i){return dn(this,void 0,void 0,function*(){try{let a;const s=Object.assign(Object.assign({},u2),i),o=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(s.upsert)});typeof Blob<"u"&&r instanceof Blob?(a=new FormData,a.append("cacheControl",s.cacheControl),a.append("",r)):typeof FormData<"u"&&r instanceof FormData?(a=r,a.append("cacheControl",s.cacheControl)):(a=r,o["cache-control"]=`max-age=${s.cacheControl}`,o["content-type"]=s.contentType);const l=this._removeEmptyFolders(n),u=this._getFinalPath(l),c=yield this.fetch(`${this.url}/object/${u}`,Object.assign({method:t,body:a,headers:o},s!=null&&s.duplex?{duplex:s.duplex}:{})),d=yield c.json();return c.ok?{data:{path:l,id:d.Id,fullPath:d.Key},error:null}:{data:null,error:d}}catch(a){if(_t(a))return{data:null,error:a};throw a}})}upload(t,n,r){return dn(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,r)})}uploadToSignedUrl(t,n,r,i){return dn(this,void 0,void 0,function*(){const a=this._removeEmptyFolders(t),s=this._getFinalPath(a),o=new URL(this.url+`/object/upload/sign/${s}`);o.searchParams.set("token",n);try{let l;const u=Object.assign({upsert:u2.upsert},i),c=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",u.cacheControl)):(l=r,c["cache-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType);const d=yield this.fetch(o.toString(),{method:"PUT",body:l,headers:c}),f=yield d.json();return d.ok?{data:{path:a,fullPath:f.Key},error:null}:{data:null,error:f}}catch(l){if(_t(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t){return dn(this,void 0,void 0,function*(){try{let n=this._getFinalPath(t);const r=yield Fr(this.fetch,`${this.url}/object/upload/sign/${n}`,{},{headers:this.headers}),i=new URL(this.url+r.url),a=i.searchParams.get("token");if(!a)throw new Gy("No token returned by API");return{data:{signedUrl:i.toString(),path:t,token:a},error:null}}catch(n){if(_t(n))return{data:null,error:n};throw n}})}update(t,n,r){return dn(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,r)})}move(t,n){return dn(this,void 0,void 0,function*(){try{return{data:yield Fr(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n},{headers:this.headers}),error:null}}catch(r){if(_t(r))return{data:null,error:r};throw r}})}copy(t,n){return dn(this,void 0,void 0,function*(){try{return{data:{path:(yield Fr(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n},{headers:this.headers})).Key},error:null}}catch(r){if(_t(r))return{data:null,error:r};throw r}})}createSignedUrl(t,n,r){return dn(this,void 0,void 0,function*(){try{let i=this._getFinalPath(t),a=yield Fr(this.fetch,`${this.url}/object/sign/${i}`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const s=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return a={signedUrl:encodeURI(`${this.url}${a.signedURL}${s}`)},{data:a,error:null}}catch(i){if(_t(i))return{data:null,error:i};throw i}})}createSignedUrls(t,n,r){return dn(this,void 0,void 0,function*(){try{const i=yield Fr(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),a=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:i.map(s=>Object.assign(Object.assign({},s),{signedUrl:s.signedURL?encodeURI(`${this.url}${s.signedURL}${a}`):null})),error:null}}catch(i){if(_t(i))return{data:null,error:i};throw i}})}download(t,n){return dn(this,void 0,void 0,function*(){const i=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",a=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),s=a?`?${a}`:"";try{const o=this._getFinalPath(t);return{data:yield(yield fm(this.fetch,`${this.url}/${i}/${o}${s}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(o){if(_t(o))return{data:null,error:o};throw o}})}getPublicUrl(t,n){const r=this._getFinalPath(t),i=[],a=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";a!==""&&i.push(a);const o=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});l!==""&&i.push(l);let u=i.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${o}/public/${r}${u}`)}}}remove(t){return dn(this,void 0,void 0,function*(){try{return{data:yield I_(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(_t(n))return{data:null,error:n};throw n}})}list(t,n,r){return dn(this,void 0,void 0,function*(){try{const i=Object.assign(Object.assign(Object.assign({},cO),n),{prefix:t||""});return{data:yield Fr(this.fetch,`${this.url}/object/list/${this.bucketId}`,i,{headers:this.headers},r),error:null}}catch(i){if(_t(i))return{data:null,error:i};throw i}})}_getFinalPath(t){return`${this.bucketId}/${t}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const fO="2.5.5",hO={"X-Client-Info":`storage-js/${fO}`};var ba=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})};class pO{constructor(t,n={},r){this.url=t,this.headers=Object.assign(Object.assign({},hO),n),this.fetch=B_(r)}listBuckets(){return ba(this,void 0,void 0,function*(){try{return{data:yield fm(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(_t(t))return{data:null,error:t};throw t}})}getBucket(t){return ba(this,void 0,void 0,function*(){try{return{data:yield fm(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(_t(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return ba(this,void 0,void 0,function*(){try{return{data:yield Fr(this.fetch,`${this.url}/bucket`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(_t(r))return{data:null,error:r};throw r}})}updateBucket(t,n){return ba(this,void 0,void 0,function*(){try{return{data:yield uO(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(_t(r))return{data:null,error:r};throw r}})}emptyBucket(t){return ba(this,void 0,void 0,function*(){try{return{data:yield Fr(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(_t(n))return{data:null,error:n};throw n}})}deleteBucket(t){return ba(this,void 0,void 0,function*(){try{return{data:yield I_(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(_t(n))return{data:null,error:n};throw n}})}}class mO extends pO{constructor(t,n={},r){super(t,n,r)}from(t){return new dO(this.url,this.headers,t,this.fetch)}}const gO="2.43.4";let oo="";typeof Deno<"u"?oo="deno":typeof document<"u"?oo="web":typeof navigator<"u"&&navigator.product==="ReactNative"?oo="react-native":oo="node";const vO={"X-Client-Info":`supabase-js-${oo}/${gO}`},bO={headers:vO},yO={schema:"public"},$O={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},xO={};var wO=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})};const DO=e=>{let t;return e?t=e:typeof fetch>"u"?t=Ky:t=fetch,(...n)=>t(...n)},_O=()=>typeof Headers>"u"?M_:Headers,EO=(e,t,n)=>{const r=DO(n),i=_O();return(a,s)=>wO(void 0,void 0,void 0,function*(){var o;const l=(o=yield t())!==null&&o!==void 0?o:e;let u=new i(s==null?void 0:s.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(a,Object.assign(Object.assign({},s),{headers:u}))})};function SO(e){return e.replace(/\/$/,"")}function CO(e,t){const{db:n,auth:r,realtime:i,global:a}=e,{db:s,auth:o,realtime:l,global:u}=t;return{db:Object.assign(Object.assign({},s),n),auth:Object.assign(Object.assign({},o),r),realtime:Object.assign(Object.assign({},l),i),global:Object.assign(Object.assign({},u),a)}}const L_="2.64.2",kO="http://localhost:9999",PO="supabase.auth.token",TO={"X-Client-Info":`gotrue-js/${L_}`},c2=10,hm="X-Supabase-Api-Version",N_={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}};function RO(e){return Math.round(Date.now()/1e3)+e}function MO(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const Sn=()=>typeof document<"u",vi={tested:!1,writable:!1},Po=()=>{if(!Sn())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(vi.tested)return vi.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),vi.tested=!0,vi.writable=!0}catch{vi.tested=!0,vi.writable=!1}return vi.writable};function mh(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((i,a)=>{t[a]=i})}catch{}return n.searchParams.forEach((r,i)=>{t[i]=r}),t}const j_=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>vs(()=>Promise.resolve().then(()=>Pl),void 0,import.meta.url).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},AO=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",z_=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},ru=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},gh=async(e,t)=>{await e.removeItem(t)};function FO(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let n="",r,i,a,s,o,l,u,c=0;for(e=e.replace("-","+").replace("_","/");c<e.length;)s=t.indexOf(e.charAt(c++)),o=t.indexOf(e.charAt(c++)),l=t.indexOf(e.charAt(c++)),u=t.indexOf(e.charAt(c++)),r=s<<2|o>>4,i=(o&15)<<4|l>>2,a=(l&3)<<6|u,n=n+String.fromCharCode(r),l!=64&&i!=0&&(n=n+String.fromCharCode(i)),u!=64&&a!=0&&(n=n+String.fromCharCode(a));return n}class mf{constructor(){this.promise=new mf.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}mf.promiseConstructor=Promise;function d2(e){const t=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i,n=e.split(".");if(n.length!==3)throw new Error("JWT is not valid: not a JWT structure");if(!t.test(n[1]))throw new Error("JWT is not valid: payload is not in base64url format");const r=n[1];return JSON.parse(FO(r))}async function OO(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function BO(e,t){return new Promise((r,i)=>{(async()=>{for(let a=0;a<1/0;a++)try{const s=await e(a);if(!t(a,null,s)){r(s);return}}catch(s){if(!t(a,s)){i(s);return}}})()})}function IO(e){return("0"+e.toString(16)).substr(-2)}function LO(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let i="";for(let a=0;a<56;a++)i+=n.charAt(Math.floor(Math.random()*r));return i}return crypto.getRandomValues(t),Array.from(t,IO).join("")}async function NO(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(r);return Array.from(i).map(a=>String.fromCharCode(a)).join("")}function jO(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function zO(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await NO(e);return jO(n)}async function ya(e,t,n=!1){const r=LO();let i=r;n&&(i+="/PASSWORD_RECOVERY"),await z_(e,`${t}-code-verifier`,i);const a=await zO(r);return[a,r===a?"plain":"s256"]}const VO=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function WO(e){const t=e.headers.get(hm);if(!t||!t.match(VO))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}class Zy extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function re(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class UO extends Zy{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function HO(e){return re(e)&&e.name==="AuthApiError"}class V_ extends Zy{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class ua extends Zy{constructor(t,n,r,i){super(t,r,i),this.name=n,this.status=r}}class bi extends ua{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}class vh extends ua{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class iu extends ua{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class au extends ua{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class f2 extends ua{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class pm extends ua{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function bh(e){return re(e)&&e.name==="AuthRetryableFetchError"}class h2 extends ua{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}var KO=function(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};const Ci=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),YO=[502,503,504];async function p2(e){var t;if(!AO(e))throw new pm(Ci(e),0);if(YO.includes(e.status))throw new pm(Ci(e),e.status);let n;try{n=await e.json()}catch(a){throw new V_(Ci(a),a)}let r;const i=WO(e);if(i&&i.getTime()>=N_["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new h2(Ci(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[])}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((a,s)=>a&&typeof s=="string",!0))throw new h2(Ci(n),e.status,n.weak_password.reasons);throw new UO(Ci(n),e.status||500,r)}const qO=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function oe(e,t,n,r){var i;const a=Object.assign({},r==null?void 0:r.headers);a[hm]||(a[hm]=N_["2024-01-01"].name),r!=null&&r.jwt&&(a.Authorization=`Bearer ${r.jwt}`);const s=(i=r==null?void 0:r.query)!==null&&i!==void 0?i:{};r!=null&&r.redirectTo&&(s.redirect_to=r.redirectTo);const o=Object.keys(s).length?"?"+new URLSearchParams(s).toString():"",l=await GO(e,t,n+o,{headers:a,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function GO(e,t,n,r,i,a){const s=qO(t,r,i,a);let o;try{o=await e(n,Object.assign({},s))}catch(l){throw console.error(l),new pm(Ci(l),0)}if(o.ok||await p2(o),r!=null&&r.noResolveJson)return o;try{return await o.json()}catch(l){await p2(l)}}function Tr(e){var t;let n=null;JO(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=RO(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function m2(e){const t=Tr(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Lr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function ZO(e){return{data:e,error:null}}function XO(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:a}=e,s=KO(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),o={action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:a},l=Object.assign({},s);return{data:{properties:o,user:l},error:null}}function QO(e){return e}function JO(e){return e.access_token&&e.refresh_token&&e.expires_in}var eB=function(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};class tB{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=j_(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,n="global"){try{return await oe(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(re(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await oe(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Lr})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=eB(t,["options"]),i=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(i.new_email=r==null?void 0:r.newEmail,delete i.newEmail),await oe(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:XO,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(re(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await oe(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Lr})}catch(n){if(re(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,i,a,s,o,l;try{const u={nextPage:null,lastPage:0,total:0},c=await oe(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(a=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&a!==void 0?a:""},xform:QO});if(c.error)throw c.error;const d=await c.json(),f=(s=c.headers.get("x-total-count"))!==null&&s!==void 0?s:0,h=(l=(o=c.headers.get("link"))===null||o===void 0?void 0:o.split(","))!==null&&l!==void 0?l:[];return h.length>0&&(h.forEach(p=>{const g=parseInt(p.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(p.split(";")[1].split("=")[1]);u[`${b}Page`]=g}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(re(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){try{return await oe(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Lr})}catch(n){if(re(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){try{return await oe(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Lr})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){try{return await oe(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Lr})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){try{const{data:n,error:r}=await oe(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:n,error:r}}catch(n){if(re(n))return{data:null,error:n};throw n}}async _deleteFactor(t){try{return{data:await oe(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(re(n))return{data:null,error:n};throw n}}}const nB={getItem:e=>Po()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{Po()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{Po()&&globalThis.localStorage.removeItem(e)}};function g2(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}function rB(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const $a={debug:!!(globalThis&&Po()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class W_ extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class iB extends W_{}async function aB(e,t,n){$a.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),$a.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async i=>{if(i){$a.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,i.name);try{return await n()}finally{$a.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,i.name)}}else{if(t===0)throw $a.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new iB(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if($a.debug)try{const a=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(a,null,"  "))}catch(a){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",a)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}})}rB();const sB={url:kO,storageKey:PO,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:TO,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1},zs=30*1e3,v2=3;async function b2(e,t,n){return await n()}class rl{constructor(t){var n,r;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=rl.nextInstanceID,rl.nextInstanceID+=1,this.instanceID>0&&Sn()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const i=Object.assign(Object.assign({},sB),t);if(this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.persistSession=i.persistSession,this.storageKey=i.storageKey,this.autoRefreshToken=i.autoRefreshToken,this.admin=new tB({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=j_(i.fetch),this.lock=i.lock||b2,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,i.lock?this.lock=i.lock:Sn()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=aB:this.lock=b2,this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?i.storage?this.storage=i.storage:Po()?this.storage=nB:(this.memoryStorage={},this.storage=g2(this.memoryStorage)):(this.memoryStorage={},this.storage=g2(this.memoryStorage)),Sn()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(a){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",a)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async a=>{this._debug("received broadcast notification from other tab or client",a),await this._notifyAllSubscribers(a.data.event,a.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${L_}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){try{const t=Sn()?await this._isPKCEFlow():!1;if(this._debug("#_initialize()","begin","is PKCE flow",t),t||this.detectSessionInUrl&&this._isImplicitGrantFlow()){const{data:n,error:r}=await this._getSessionFromURL(t);if(r)return this._debug("#_initialize()","error detecting session from URL",r),(r==null?void 0:r.message)==="Identity is already linked"||(r==null?void 0:r.message)==="Identity is already linked to another user"?{error:r}:(await this._removeSession(),{error:r});const{session:i,redirectType:a}=n;return this._debug("#_initialize()","detected session in URL",i,"redirect type",a),await this._saveSession(i),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",i):await this._notifyAllSubscribers("SIGNED_IN",i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(t){return re(t)?{error:t}:{error:new V_("Unexpected error during initialization",t)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,i;try{await this._removeSession();const a=await oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:Tr}),{data:s,error:o}=a;if(o||!s)return{data:{user:null,session:null},error:o};const l=s.session,u=s.user;return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(a){if(re(a))return{data:{user:null,session:null},error:a};throw a}}async signUp(t){var n,r,i;try{await this._removeSession();let a;if("email"in t){const{email:c,password:d,options:f}=t;let h=null,p=null;this.flowType==="pkce"&&([h,p]=await ya(this.storage,this.storageKey)),a=await oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:c,password:d,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:h,code_challenge_method:p},xform:Tr})}else if("phone"in t){const{phone:c,password:d,options:f}=t;a=await oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:d,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(i=f==null?void 0:f.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:Tr})}else throw new iu("You must provide either an email or phone number and a password");const{data:s,error:o}=a;if(o||!s)return{data:{user:null,session:null},error:o};const l=s.session,u=s.user;return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(a){if(re(a))return{data:{user:null,session:null},error:a};throw a}}async signInWithPassword(t){try{await this._removeSession();let n;if("email"in t){const{email:a,password:s,options:o}=t;n=await oe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:a,password:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:m2})}else if("phone"in t){const{phone:a,password:s,options:o}=t;n=await oe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:a,password:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:m2})}else throw new iu("You must provide either an email or phone number and a password");const{data:r,error:i}=n;return i?{data:{user:null,session:null},error:i}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new vh}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:i})}catch(n){if(re(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(t){var n,r,i,a;return await this._removeSession(),await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(a=t.options)===null||a===void 0?void 0:a.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async _exchangeCodeForSession(t){const n=await ru(this.storage,`${this.storageKey}-code-verifier`),[r,i]=(n??"").split("/"),{data:a,error:s}=await oe(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Tr});return await gh(this.storage,`${this.storageKey}-code-verifier`),s?{data:{user:null,session:null,redirectType:null},error:s}:!a||!a.session||!a.user?{data:{user:null,session:null,redirectType:null},error:new vh}:(a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),{data:Object.assign(Object.assign({},a),{redirectType:i??null}),error:s})}async signInWithIdToken(t){await this._removeSession();try{const{options:n,provider:r,token:i,access_token:a,nonce:s}=t,o=await oe(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:i,access_token:a,nonce:s,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Tr}),{data:l,error:u}=o;return u?{data:{user:null,session:null},error:u}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new vh}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:u})}catch(n){if(re(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,r,i,a,s;try{if(await this._removeSession(),"email"in t){const{email:o,options:l}=t;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await ya(this.storage,this.storageKey));const{error:d}=await oe(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:o,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:c},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:d}}if("phone"in t){const{phone:o,options:l}=t,{data:u,error:c}=await oe(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:o,data:(i=l==null?void 0:l.data)!==null&&i!==void 0?i:{},create_user:(a=l==null?void 0:l.shouldCreateUser)!==null&&a!==void 0?a:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(s=l==null?void 0:l.channel)!==null&&s!==void 0?s:"sms"}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c}}throw new iu("You must provide either an email or phone number.")}catch(o){if(re(o))return{data:{user:null,session:null},error:o};throw o}}async verifyOtp(t){var n,r;try{t.type!=="email_change"&&t.type!=="phone_change"&&await this._removeSession();let i,a;"options"in t&&(i=(n=t.options)===null||n===void 0?void 0:n.redirectTo,a=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:s,error:o}=await oe(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:a}}),redirectTo:i,xform:Tr});if(o)throw o;if(!s)throw new Error("An error occurred on token verification.");const l=s.session,u=s.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(i){if(re(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithSSO(t){var n,r,i;try{await this._removeSession();let a=null,s=null;return this.flowType==="pkce"&&([a,s]=await ya(this.storage,this.storageKey)),await oe(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:s}),headers:this.headers,xform:ZO})}catch(a){if(re(a))return{data:null,error:a};throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new bi;const{error:i}=await oe(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:i}})}catch(t){if(re(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{t.type!="email_change"&&t.type!="phone_change"&&await this._removeSession();const n=`${this.url}/resend`;if("email"in t){const{email:r,type:i,options:a}=t,{error:s}=await oe(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},redirectTo:a==null?void 0:a.emailRedirectTo});return{data:{user:null,session:null},error:s}}else if("phone"in t){const{phone:r,type:i,options:a}=t,{data:s,error:o}=await oe(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}}});return{data:{user:null,session:null,messageId:s==null?void 0:s.message_id},error:o}}throw new iu("You must provide either an email or phone number and a type")}catch(n){if(re(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await ru(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at<=Date.now()/1e3:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.storage.isServer){const s=this.suppressGetSessionWarning;t=new Proxy(t,{get(l,u,c){return!s&&u==="user"&&console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and many not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),Reflect.get(l,u,c)}})}return{data:{session:t},error:null}}const{session:i,error:a}=await this._callRefreshToken(t.refresh_token);return a?{data:{session:null},error:a}:{data:{session:i},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await oe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Lr}):await this._useSession(async n=>{var r,i,a;const{data:s,error:o}=n;if(o)throw o;return!(!((r=s.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new bi}:await oe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(a=(i=s.session)===null||i===void 0?void 0:i.access_token)!==null&&a!==void 0?a:void 0,xform:Lr})})}catch(n){if(re(n))return{data:{user:null},error:n};throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:i,error:a}=r;if(a)throw a;if(!i.session)throw new bi;const s=i.session;let o=null,l=null;this.flowType==="pkce"&&t.email!=null&&([o,l]=await ya(this.storage,this.storageKey));const{data:u,error:c}=await oe(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:o,code_challenge_method:l}),jwt:s.access_token,xform:Lr});if(c)throw c;return s.user=u.user,await this._saveSession(s),await this._notifyAllSubscribers("USER_UPDATED",s),{data:{user:s.user},error:null}})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}_decodeJWT(t){return d2(t)}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new bi;const n=Date.now()/1e3;let r=n,i=!0,a=null;const s=d2(t.access_token);if(s.exp&&(r=s.exp,i=r<=n),i){const{session:o,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!o)return{data:{user:null,session:null},error:null};a=o}else{const{data:o,error:l}=await this._getUser(t.access_token);if(l)throw l;a={access_token:t.access_token,refresh_token:t.refresh_token,user:o.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)}return{data:{user:a.user,session:a},error:null}}catch(n){if(re(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:s,error:o}=n;if(o)throw o;t=(r=s.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new bi;const{session:i,error:a}=await this._callRefreshToken(t.refresh_token);return a?{data:{user:null,session:null},error:a}:i?{data:{user:i.user,session:i},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(re(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t){try{if(!Sn())throw new au("No browser detected.");if(this.flowType==="implicit"&&!this._isImplicitGrantFlow())throw new au("Not a valid implicit grant flow url.");if(this.flowType=="pkce"&&!t)throw new f2("Not a valid PKCE flow url.");const n=mh(window.location.href);if(t){if(!n.code)throw new f2("No code detected.");const{data:m,error:$}=await this._exchangeCodeForSession(n.code);if($)throw $;const w=new URL(window.location.href);return w.searchParams.delete("code"),window.history.replaceState(window.history.state,"",w.toString()),{data:{session:m.session,redirectType:null},error:null}}if(n.error||n.error_description||n.error_code)throw new au(n.error_description||"Error in URL with unspecified error_description",{error:n.error||"unspecified_error",code:n.error_code||"unspecified_code"});const{provider_token:r,provider_refresh_token:i,access_token:a,refresh_token:s,expires_in:o,expires_at:l,token_type:u}=n;if(!a||!o||!s||!u)throw new au("No session defined in URL");const c=Math.round(Date.now()/1e3),d=parseInt(o);let f=c+d;l&&(f=parseInt(l));const h=f-c;h*1e3<=zs&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${d}s`);const p=f-d;c-p>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",p,f,c):c-p<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clok for skew",p,f,c);const{data:g,error:b}=await this._getUser(a);if(b)throw b;const v={provider_token:r,provider_refresh_token:i,access_token:a,expires_in:d,expires_at:f,refresh_token:s,token_type:u,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:v,redirectType:n.type},error:null}}catch(n){if(re(n))return{data:{session:null,redirectType:null},error:n};throw n}}_isImplicitGrantFlow(){const t=mh(window.location.href);return!!(Sn()&&(t.access_token||t.error_description))}async _isPKCEFlow(){const t=mh(window.location.href),n=await ru(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:i,error:a}=n;if(a)return{error:a};const s=(r=i.session)===null||r===void 0?void 0:r.access_token;if(s){const{error:o}=await this.admin.signOut(s,t);if(o&&!(HO(o)&&(o.status===404||o.status===401||o.status===403)))return{error:o}}return t!=="others"&&(await this._removeSession(),await gh(this.storage,`${this.storageKey}-code-verifier`),await this._notifyAllSubscribers("SIGNED_OUT",null)),{error:null}})}onAuthStateChange(t){const n=MO(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,i;try{const{data:{session:a},error:s}=n;if(s)throw s;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",a)),this._debug("INITIAL_SESSION","callback id",t,"session",a)}catch(a){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",a),console.error(a)}})}async resetPasswordForEmail(t,n={}){let r=null,i=null;this.flowType==="pkce"&&([r,i]=await ya(this.storage,this.storageKey,!0));try{return await oe(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:i,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(a){if(re(a))return{data:null,error:a};throw a}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(n){if(re(n))return{data:null,error:n};throw n}}async linkIdentity(t){var n;try{const{data:r,error:i}=await this._useSession(async a=>{var s,o,l,u,c;const{data:d,error:f}=a;if(f)throw f;const h=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(s=t.options)===null||s===void 0?void 0:s.redirectTo,scopes:(o=t.options)===null||o===void 0?void 0:o.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await oe(this.fetch,"GET",h,{headers:this.headers,jwt:(c=(u=d.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(i)throw i;return Sn()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:t.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(re(r))return{data:{provider:t.provider,url:null},error:r};throw r}}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,i;const{data:a,error:s}=n;if(s)throw s;return await oe(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(r=a.session)===null||r===void 0?void 0:r.access_token)!==null&&i!==void 0?i:void 0})})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await BO(async i=>(i>0&&await OO(200*Math.pow(2,i-1)),this._debug(n,"refreshing attempt",i),await oe(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Tr})),(i,a)=>{const s=200*Math.pow(2,i);return a&&bh(a)&&Date.now()+s-r<zs})}catch(r){if(this._debug(n,"error",r),re(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),Sn()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const r=await ru(this.storage,this.storageKey);if(this._debug(n,"session from storage",r),!this._isValidSession(r)){this._debug(n,"session is not valid"),r!==null&&await this._removeSession();return}const i=Math.round(Date.now()/1e3),a=((t=r.expires_at)!==null&&t!==void 0?t:1/0)<i+c2;if(this._debug(n,`session has${a?"":" not"} expired with margin of ${c2}s`),a){if(this.autoRefreshToken&&r.refresh_token){const{error:s}=await this._callRefreshToken(r.refresh_token);s&&(console.error(s),bh(s)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",s),await this._removeSession()))}}else await this._notifyAllSubscribers("SIGNED_IN",r)}catch(r){this._debug(n,"error",r),console.error(r);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new bi;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new mf;const{data:a,error:s}=await this._refreshAccessToken(t);if(s)throw s;if(!a.session)throw new bi;await this._saveSession(a.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",a.session);const o={session:a.session,error:null};return this.refreshingDeferred.resolve(o),o}catch(a){if(this._debug(i,"error",a),re(a)){const s={session:null,error:a};return bh(a)||(await this._removeSession(),await this._notifyAllSubscribers("SIGNED_OUT",null)),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(s),s}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(a),a}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,n,r=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const a=[],s=Array.from(this.stateChangeEmitters.values()).map(async o=>{try{await o.callback(t,n)}catch(l){a.push(l)}});if(await Promise.all(s),a.length>0){for(let o=0;o<a.length;o+=1)console.error(a[o]);throw a[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await z_(this.storage,this.storageKey,t)}async _removeSession(){this._debug("#_removeSession()"),await gh(this.storage,this.storageKey)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Sn()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),zs);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((r.expires_at*1e3-t)/zs);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${zs}ms, refresh threshold is ${v2} ticks`),i<=v2&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof W_)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Sn()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const i=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&i.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&i.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[a,s]=await ya(this.storage,this.storageKey),o=new URLSearchParams({code_challenge:`${encodeURIComponent(a)}`,code_challenge_method:`${encodeURIComponent(s)}`});i.push(o.toString())}if(r!=null&&r.queryParams){const a=new URLSearchParams(r.queryParams);i.push(a.toString())}return r!=null&&r.skipBrowserRedirect&&i.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:i,error:a}=n;return a?{data:null,error:a}:await oe(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,i;const{data:a,error:s}=n;if(s)return{data:null,error:s};const{data:o,error:l}=await oe(this.fetch,"POST",`${this.url}/factors`,{body:{friendly_name:t.friendlyName,factor_type:t.factorType,issuer:t.issuer},headers:this.headers,jwt:(r=a==null?void 0:a.session)===null||r===void 0?void 0:r.access_token});return l?{data:null,error:l}:(!((i=o==null?void 0:o.totp)===null||i===void 0)&&i.qr_code&&(o.totp.qr_code=`data:image/svg+xml;utf-8,${o.totp.qr_code}`),{data:o,error:null})})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:a}=n;if(a)return{data:null,error:a};const{data:s,error:o}=await oe(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return o?{data:null,error:o}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+s.expires_in},s)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",s),{data:s,error:o})})}catch(n){if(re(n))return{data:null,error:n};throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:a}=n;return a?{data:null,error:a}:await oe(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(re(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?{data:null,error:r}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(t==null?void 0:t.factors)||[],i=r.filter(a=>a.factor_type==="totp"&&a.status==="verified");return{data:{all:r,totp:i},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var n,r;const{data:{session:i},error:a}=t;if(a)return{data:null,error:a};if(!i)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const s=this._decodeJWT(i.access_token);let o=null;s.aal&&(o=s.aal);let l=o;((r=(n=i.user.factors)===null||n===void 0?void 0:n.filter(d=>d.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(l="aal2");const c=s.amr||[];return{data:{currentLevel:o,nextLevel:l,currentAuthenticationMethods:c},error:null}}))}}rl.nextInstanceID=0;const oB=rl;class lB extends oB{constructor(t){super(t)}}var uB=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})};class cB{constructor(t,n,r){var i,a,s;if(this.supabaseUrl=t,this.supabaseKey=n,!t)throw new Error("supabaseUrl is required.");if(!n)throw new Error("supabaseKey is required.");const o=SO(t);this.realtimeUrl=`${o}/realtime/v1`.replace(/^http/i,"ws"),this.authUrl=`${o}/auth/v1`,this.storageUrl=`${o}/storage/v1`,this.functionsUrl=`${o}/functions/v1`;const l=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`,u={db:yO,realtime:xO,auth:Object.assign(Object.assign({},$O),{storageKey:l}),global:bO},c=CO(r??{},u);this.storageKey=(i=c.auth.storageKey)!==null&&i!==void 0?i:"",this.headers=(a=c.global.headers)!==null&&a!==void 0?a:{},this.auth=this._initSupabaseAuthClient((s=c.auth)!==null&&s!==void 0?s:{},this.headers,c.global.fetch),this.fetch=EO(n,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers},c.realtime)),this.rest=new Yy(`${o}/rest/v1`,{headers:this.headers,schema:c.db.schema,fetch:this.fetch}),this._listenForAuthEvents()}get functions(){return new MF(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new mO(this.storageUrl,this.headers,this.fetch)}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},r={}){return this.rest.rpc(t,n,r)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,n;return uB(this,void 0,void 0,function*(){const{data:r}=yield this.auth.getSession();return(n=(t=r.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:null})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:i,storageKey:a,flowType:s,debug:o},l,u){var c;const d={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new lB({url:this.authUrl,headers:Object.assign(Object.assign({},d),l),storageKey:a,autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:i,flowType:s,debug:o,fetch:u,hasCustomAuthorizationHeader:(c="Authorization"in this.headers)!==null&&c!==void 0?c:!1})}_initRealtimeClient(t){return new nO(this.realtimeUrl,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(t,n,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?(this.realtime.setAuth(r??null),this.changedAccessToken=r):t==="SIGNED_OUT"&&(this.realtime.setAuth(this.supabaseKey),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const dB=(e,t,n)=>new cB(e,t,n);function ne(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Z={};ne(Z,"focus-ring",()=>mm,e=>mm=e);ne(Z,"i18nFontFamily",()=>Oc,e=>Oc=e);ne(Z,"is-active",()=>gm,e=>gm=e);ne(Z,"is-disabled",()=>vm,e=>vm=e);ne(Z,"is-focused",()=>bm,e=>bm=e);ne(Z,"is-hovered",()=>ym,e=>ym=e);ne(Z,"is-open",()=>$m,e=>$m=e);ne(Z,"is-placeholder",()=>xm,e=>xm=e);ne(Z,"is-selected",()=>wm,e=>wm=e);ne(Z,"spectrum-BaseButton",()=>ai,e=>ai=e);ne(Z,"spectrum-FocusRing-ring",()=>Bc,e=>Bc=e);ne(Z,"spectrum-FocusRing",()=>si,e=>si=e);ne(Z,"spectrum-ActionButton",()=>Dm,e=>Dm=e);ne(Z,"spectrum-ActionButton--emphasized",()=>_m,e=>_m=e);ne(Z,"spectrum-ActionButton--quiet",()=>Em,e=>Em=e);ne(Z,"spectrum-ActionButton--staticBlack",()=>Sm,e=>Sm=e);ne(Z,"spectrum-ActionButton--staticColor",()=>Cm,e=>Cm=e);ne(Z,"spectrum-ActionButton--staticWhite",()=>km,e=>km=e);ne(Z,"spectrum-ActionButton-hold",()=>Pm,e=>Pm=e);ne(Z,"spectrum-ActionButton-label",()=>Tm,e=>Tm=e);ne(Z,"spectrum-ActionGroup-itemIcon",()=>Rm,e=>Rm=e);ne(Z,"spectrum-Button",()=>Mm,e=>Mm=e);ne(Z,"spectrum-Button--iconOnly",()=>Am,e=>Am=e);ne(Z,"spectrum-Button--overBackground",()=>Fm,e=>Fm=e);ne(Z,"spectrum-Button--pending",()=>Om,e=>Om=e);ne(Z,"spectrum-Button-circleLoader",()=>Bm,e=>Bm=e);ne(Z,"spectrum-Button-label",()=>Im,e=>Im=e);ne(Z,"spectrum-ClearButton",()=>Lm,e=>Lm=e);ne(Z,"spectrum-ClearButton--overBackground",()=>Nm,e=>Nm=e);ne(Z,"spectrum-ClearButton--small",()=>jm,e=>jm=e);ne(Z,"spectrum-FieldButton",()=>zm,e=>zm=e);ne(Z,"spectrum-FieldButton--invalid",()=>Vm,e=>Vm=e);ne(Z,"spectrum-FocusRing--quiet",()=>Ic,e=>Ic=e);ne(Z,"spectrum-FieldButton--quiet",()=>Wm,e=>Wm=e);ne(Z,"spectrum-Icon",()=>Um,e=>Um=e);ne(Z,"spectrum-LogicButton",()=>Hm,e=>Hm=e);ne(Z,"spectrum-LogicButton--and",()=>Km,e=>Km=e);ne(Z,"spectrum-LogicButton--or",()=>Ym,e=>Ym=e);var mm,Oc,gm,vm,bm,ym,$m,xm,wm,ai,Bc,si,Dm,_m,Em,Sm,Cm,km,Pm,Tm,Rm,Mm,Am,Fm,Om,Bm,Im,Lm,Nm,jm,zm,Vm,Ic,Wm,Um,Hm,Km,Ym;mm="Dniwja_focus-ring";Oc="Dniwja_i18nFontFamily";gm="Dniwja_is-active";vm="Dniwja_is-disabled";bm="Dniwja_is-focused";ym="Dniwja_is-hovered";$m="Dniwja_is-open";xm="Dniwja_is-placeholder";wm="Dniwja_is-selected";ai=`Dniwja_spectrum-BaseButton ${Oc}`;Bc="Dniwja_spectrum-FocusRing-ring";si=`Dniwja_spectrum-FocusRing ${Bc}`;Dm=`Dniwja_spectrum-ActionButton ${ai} ${si}`;_m="Dniwja_spectrum-ActionButton--emphasized";Em="Dniwja_spectrum-ActionButton--quiet";Sm="Dniwja_spectrum-ActionButton--staticBlack";Cm="Dniwja_spectrum-ActionButton--staticColor";km="Dniwja_spectrum-ActionButton--staticWhite";Pm="Dniwja_spectrum-ActionButton-hold";Tm="Dniwja_spectrum-ActionButton-label";Rm="Dniwja_spectrum-ActionGroup-itemIcon";Mm=`Dniwja_spectrum-Button ${ai} ${si}`;Am="Dniwja_spectrum-Button--iconOnly";Fm="Dniwja_spectrum-Button--overBackground";Om="Dniwja_spectrum-Button--pending";Bm="Dniwja_spectrum-Button-circleLoader";Im="Dniwja_spectrum-Button-label";Lm=`Dniwja_spectrum-ClearButton ${ai} ${si}`;Nm="Dniwja_spectrum-ClearButton--overBackground";jm="Dniwja_spectrum-ClearButton--small";zm=`Dniwja_spectrum-FieldButton ${ai} ${si}`;Vm="Dniwja_spectrum-FieldButton--invalid";Ic="Dniwja_spectrum-FocusRing--quiet";Wm=`Dniwja_spectrum-FieldButton--quiet ${Ic}`;Um="Dniwja_spectrum-Icon";Hm=`Dniwja_spectrum-LogicButton ${ai} ${si}`;Km="Dniwja_spectrum-LogicButton--and";Ym="Dniwja_spectrum-LogicButton--or";function U_(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=U_(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function gf(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=U_(e))&&(r&&(r+=" "),r+=t);return r}let su=!1;function V(e,...t){let n=[];for(let r of t)if(typeof r=="object"&&r){let i={};for(let a in r)e[a]&&(i[e[a]]=r[a]),e[a]||(i[a]=r[a]);n.push(i)}else typeof r=="string"?(e[r]&&n.push(e[r]),e[r]||n.push(r)):n.push(r);return gf(...n)}const Lc={prefix:String(Math.round(Math.random()*1e10)),current:0},H_=_.createContext(Lc),fB=_.createContext(!1);let hB=!!(typeof window<"u"&&window.document&&window.document.createElement),yh=new WeakMap;function pB(e=!1){let t=y.useContext(H_),n=y.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let s=yh.get(a);s==null?yh.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==s.state&&(t.current=s.id,yh.delete(a))}n.current=++t.current}return n.current}function mB(e){let t=y.useContext(H_);t===Lc&&!hB&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=pB(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function gB(e){let t=_.useId(),[n]=y.useState(ca()),r=n?"react-aria":`react-aria${Lc.prefix}`;return e||`${r}-${t}`}const vB=typeof _.useId=="function"?gB:mB;function bB(){return!1}function yB(){return!0}function $B(e){return()=>{}}function ca(){return typeof _.useSyncExternalStore=="function"?_.useSyncExternalStore($B,bB,yB):y.useContext(fB)}function qm(e){let t=typeof window<"u"&&typeof window.matchMedia=="function",[n,r]=y.useState(()=>t?window.matchMedia(e).matches:!1);return y.useEffect(()=>{if(!t)return;let a=window.matchMedia(e),s=o=>{r(o.matches)};return a.addListener(s),()=>{a.removeListener(s)}},[t,e]),ca()?!1:n}function vf(e){return{UNSAFE_getDOMNode(){return e.current}}}function xB(e,t=e){return{...vf(e),focus(){t.current&&t.current.focus()}}}function In(e){let t=y.useRef(null);return y.useImperativeHandle(e,()=>vf(t)),t}function K_(e,t){let n=y.useRef(null);return y.useImperativeHandle(e,()=>xB(n,t)),n}function ou(e){return{get current(){return e.current&&e.current.UNSAFE_getDOMNode()}}}const Xy=_.createContext(null);Xy.displayName="BreakpointContext";function wB(e){let{children:t,matchedBreakpoints:n}=e;return _.createElement(Xy.Provider,{value:{matchedBreakpoints:n}},t)}function DB(e){let t=Object.entries(e).sort(([,l],[,u])=>u-l),n=t.map(([,l])=>`(min-width: ${l}px)`),r=typeof window<"u"&&typeof window.matchMedia=="function",i=()=>{let l=[];for(let u in n){let c=n[u];window.matchMedia(c).matches&&l.push(t[u][0])}return l.push("base"),l},[a,s]=y.useState(()=>r?i():["base"]);return y.useEffect(()=>{if(!r)return;let l=()=>{const u=i();s(c=>c.length!==u.length||c.some((d,f)=>d!==u[f])?[...u]:c)};return window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)}},[r]),ca()?["base"]:a}function Y_(){return y.useContext(Xy)}const _B=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),EB=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function q_(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return _B.has(n.script)}let t=e.split("-")[0];return EB.has(t)}const SB=Symbol.for("react-aria.i18n.locale");function G_(){let e=typeof window<"u"&&window[SB]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:q_(e)?"rtl":"ltr"}}let Gm=G_(),lo=new Set;function y2(){Gm=G_();for(let e of lo)e(Gm)}function Z_(){let e=ca(),[t,n]=y.useState(Gm);return y.useEffect(()=>(lo.size===0&&window.addEventListener("languagechange",y2),lo.add(n),()=>{lo.delete(n),lo.size===0&&window.removeEventListener("languagechange",y2)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const X_=_.createContext(null);function CB(e){let{locale:t,children:n}=e,r=Z_(),i=_.useMemo(()=>t?{locale:t,direction:q_(t)?"rtl":"ltr"}:r,[r,t]);return _.createElement(X_.Provider,{value:i},n)}function Qe(){let e=Z_();return y.useContext(X_)||e}const kB=Symbol.for("react-aria.i18n.locale"),PB=Symbol.for("react-aria.i18n.strings");let xa;class hi{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=TB(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[kB];if(xa===void 0){let i=window[PB];if(!i)return null;xa={};for(let a in i)xa[a]=new hi({[n]:i[a]},n)}let r=xa==null?void 0:xa[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function TB(e,t,n="en-US"){if(t[e])return t[e];let r=RB(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function RB(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const $2=new Map,x2=new Map;class Q_{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+r,s=$2.get(a);s||(s=new Intl.PluralRules(this.locale,{type:r}),$2.set(a,s));let o=s.select(t);return i=n[o]||n.other,typeof i=="function"?i():i}number(t){let n=x2.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),x2.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const w2=new WeakMap;function MB(e){let t=w2.get(e);return t||(t=new hi(e),w2.set(e,t)),t}function J_(e,t){return t&&hi.getGlobalDictionaryForPackage(t)||MB(e)}function _n(e,t){let{locale:n}=Qe(),r=J_(e,t);return y.useMemo(()=>new Q_(n,r),[n,r])}function ts(e,t){return e-t*Math.floor(e/t)}const e8=1721426;function Ni(e,t,n,r){t=Tl(e,t);let i=t-1,a=-2;return n<=2?a=0:Vr(t)&&(a=-1),e8-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Vr(e){return e%4===0&&(e%100!==0||e%400===0)}function Tl(e,t){return e==="BC"?1-t:t}function bf(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const AB={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class At{fromJulianDay(t){let n=t,r=n-e8,i=Math.floor(r/146097),a=ts(r,146097),s=Math.floor(a/36524),o=ts(a,36524),l=Math.floor(o/1461),u=ts(o,1461),c=Math.floor(u/365),d=i*400+s*100+l*4+c+(s!==4&&c!==4?1:0),[f,h]=bf(d),p=n-Ni(f,h,1,1),g=2;n<Ni(f,h,3,1)?g=0:Vr(h)&&(g=1);let b=Math.floor(((p+g)*12+373)/367),v=n-Ni(f,h,b,1)+1;return new Je(f,h,b,v)}toJulianDay(t){return Ni(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return AB[Vr(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Vr(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const FB={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Ze(e,t){return t=Oe(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function D2(e,t){return t=Oe(t,e.calendar),e=Ji(e),t=Ji(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function Zm(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function t8(e,t){return Ze(e,Rl(t))}function yf(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-jB(t))%7;return r<0&&(r+=7),r}function n8(e){return dr(Date.now(),e)}function Rl(e){return Zt(n8(e))}function r8(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function i8(e,t){return _2(e)-_2(t)}function _2(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let $h=null;function $f(){return $h==null&&($h=new Intl.DateTimeFormat().resolvedOptions().timeZone),$h}function Ji(e){return e.subtract({days:e.day-1})}function Nc(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function OB(e){return Ji(e.subtract({months:e.month-1}))}function BB(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function IB(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function il(e,t){let n=yf(e,t);return e.subtract({days:n})}function LB(e,t){return il(e,t).add({days:6})}const E2=new Map;function NB(e){if(Intl.Locale){let n=E2.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&E2.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function jB(e){let t=NB(e);return t&&FB[t]||0}function zB(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((yf(Ji(e),t)+n)/7)}function Qy(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Jy(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function ys(e){e=Oe(e,new At);let t=Tl(e.era,e.year);return a8(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function a8(e,t,n,r,i,a,s){let o=new Date;return o.setUTCHours(r,i,a,s),o.setUTCFullYear(e,t-1,n),o.getTime()}function Xm(e,t){if(t==="UTC")return 0;if(e>0&&t===$f())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:s,second:o}=s8(e,t);return a8(n,r,i,a,s,o,0)-Math.floor(e/1e3)*1e3}const S2=new Map;function s8(e,t){let n=S2.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),S2.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const C2=864e5;function VB(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>WB(e,t,a))}function WB(e,t,n){let r=s8(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function lr(e,t,n="compatible"){let r=Gn(e);if(t==="UTC")return ys(r);if(t===$f()&&n==="compatible"){r=Oe(r,new At);let l=new Date,u=Tl(r.era,r.year);return l.setFullYear(u,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=ys(r),a=Xm(i-C2,t),s=Xm(i+C2,t),o=VB(r,t,i-a,i-s);if(o.length===1)return o[0];if(o.length>1)switch(n){case"compatible":case"earlier":return o[0];case"later":return o[o.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-s);case"compatible":case"later":return Math.max(i-a,i-s);case"reject":throw new RangeError("No such absolute time found")}}function o8(e,t,n="compatible"){return new Date(lr(e,t,n))}function dr(e,t){let n=Xm(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,s=r.getUTCDate(),o=r.getUTCHours(),l=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new sl(i,a,s,t,n,o,l,u,c)}function Zt(e){return new Je(e.calendar,e.era,e.year,e.month,e.day)}function Gn(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new jc(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function k2(e){return new Al(e.hour,e.minute,e.second,e.millisecond)}function Oe(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,ea(r),r}function l8(e,t,n){if(e instanceof sl)return e.timeZone===t?e:HB(e,t);let r=lr(e,t,n);return dr(r,t)}function UB(e){let t=ys(e)-e.offset;return new Date(t)}function HB(e,t){let n=ys(e)-e.offset;return Oe(dr(n,t),e.calendar)}const Vs=36e5;function xf(e,t){let n=e.copy(),r="hour"in n?f8(n,t):0;Qm(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Jm(n),u8(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,KB(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a,s;let l=(a=(s=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(s,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let o=n.calendar.getMonthsInYear(n);return n.month>o&&(n.month=o,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Qm(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Jm(e){for(;e.month<1;)Qm(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Qm(e,1)}function KB(e){for(;e.day<1;)e.month--,Jm(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Jm(e)}function u8(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function ea(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),u8(e)}function e$(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function c8(e,t){return xf(e,e$(t))}function t$(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),ea(n),n}function al(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),d8(n),n}function YB(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=lu(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=lu(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=lu(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=lu(e.hour,24),t}function d8(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function lu(e,t){let n=e%t;return n<0&&(n+=t),n}function f8(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,YB(e)}function h8(e,t){let n=e.copy();return f8(n,t),n}function qB(e,t){return h8(e,e$(t))}function n$(e,t,n,r){let i=e.copy();switch(t){case"era":{let o=e.calendar.getEras(),l=o.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=fr(l,n,0,o.length-1,r==null?void 0:r.round),i.era=o[l],ea(i);break}case"year":var a,s;!((a=(s=i.calendar).isInverseEra)===null||a===void 0)&&a.call(s,i)&&(n=-n),i.year=fr(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=fr(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=fr(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),ea(i),i}function r$(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,s=0,o=23;if((r==null?void 0:r.hourCycle)===12){let l=a>=12;s=l?12:0,o=l?23:11}i.hour=fr(a,n,s,o,r==null?void 0:r.round);break}case"minute":i.minute=fr(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=fr(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=fr(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function fr(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function p8(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=xf(Gn(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=lr(i,e.timeZone)}else n=ys(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=dr(n,e.timeZone);return Oe(r,e.calendar)}function GB(e,t){return p8(e,e$(t))}function ZB(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if((r==null?void 0:r.hourCycle)===12){let p=e.hour>=12;i=p?12:0,a=p?23:11}let s=Gn(e),o=Oe(al(s,{hour:i}),new At),l=[lr(o,e.timeZone,"earlier"),lr(o,e.timeZone,"later")].filter(p=>dr(p,e.timeZone).day===o.day)[0],u=Oe(al(s,{hour:a}),new At),c=[lr(u,e.timeZone,"earlier"),lr(u,e.timeZone,"later")].filter(p=>dr(p,e.timeZone).day===u.day).pop(),d=ys(e)-e.offset,f=Math.floor(d/Vs),h=d%Vs;return d=fr(f,n,Math.floor(l/Vs),Math.floor(c/Vs),r==null?void 0:r.round)*Vs+h,Oe(dr(d,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return r$(e,t,n,r);case"era":case"year":case"month":case"day":{let i=n$(Gn(e),t,n,r),a=lr(i,e.timeZone);return Oe(dr(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function XB(e,t,n){let r=Gn(e),i=al(t$(r,t),t);if(i.compare(r)===0)return e;let a=lr(i,e.timeZone,n);return Oe(dr(a,e.timeZone),e.calendar)}function m8(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function g8(e){let t=Oe(e,new At);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function v8(e){return`${g8(e)}T${m8(e)}`}function QB(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function JB(e){return`${v8(e)}${QB(e.offset)}[${e.timeZone}]`}function eI(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ml(e,t,n){eI(e,t),t.set(e,n)}function i$(e){let t=typeof e[0]=="object"?e.shift():new At,n;if(typeof e[0]=="string")n=e.shift();else{let s=t.getEras();n=s[s.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var tI=new WeakMap;class Je{copy(){return this.era?new Je(this.calendar,this.era,this.year,this.month,this.day):new Je(this.calendar,this.year,this.month,this.day)}add(t){return xf(this,t)}subtract(t){return c8(this,t)}set(t){return t$(this,t)}cycle(t,n,r){return n$(this,t,n,r)}toDate(t){return o8(this,t)}toString(){return g8(this)}compare(t){return r8(this,t)}constructor(...t){Ml(this,tI,{writable:!0,value:void 0});let[n,r,i,a,s]=i$(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,ea(this)}}var nI=new WeakMap;class Al{copy(){return new Al(this.hour,this.minute,this.second,this.millisecond)}add(t){return h8(this,t)}subtract(t){return qB(this,t)}set(t){return al(this,t)}cycle(t,n,r){return r$(this,t,n,r)}toString(){return m8(this)}compare(t){return i8(this,t)}constructor(t=0,n=0,r=0,i=0){Ml(this,nI,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,d8(this)}}var rI=new WeakMap;class jc{copy(){return this.era?new jc(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new jc(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return xf(this,t)}subtract(t){return c8(this,t)}set(t){return t$(al(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return n$(this,t,n,r);default:return r$(this,t,n,r)}}toDate(t,n){return o8(this,t,n)}toString(){return v8(this)}compare(t){let n=r8(this,t);return n===0?i8(this,Gn(t)):n}constructor(...t){Ml(this,rI,{writable:!0,value:void 0});let[n,r,i,a,s]=i$(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ea(this)}}var iI=new WeakMap;class sl{copy(){return this.era?new sl(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new sl(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return p8(this,t)}subtract(t){return GB(this,t)}set(t,n){return XB(this,t,n)}cycle(t,n,r){return ZB(this,t,n,r)}toDate(){return UB(this)}toString(){return JB(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-l8(t,this.timeZone).toDate().getTime()}constructor(...t){Ml(this,iI,{writable:!0,value:void 0});let[n,r,i,a,s]=i$(t),o=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,this.timeZone=o,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ea(this)}}const ns=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],aI=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Qu=[1867,1911,1925,1988,2018],Or=["meiji","taisho","showa","heisei","reiwa"];function P2(e){const t=ns.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?ns.length-1:t===0?0:t-1}function xh(e){let t=Qu[Or.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Je(e.year+t,e.month,e.day)}class sI extends At{fromJulianDay(t){let n=super.fromJulianDay(t),r=P2(n);return new Je(this,Or[r],n.year-Qu[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(xh(t))}balanceDate(t){let n=xh(t),r=P2(n);Or[r]!==t.era&&(t.era=Or[r],t.year=n.year-Qu[r]),this.constrainDate(t)}constrainDate(t){let n=Or.indexOf(t.era),r=aI[n];if(r!=null){let[i,a,s]=r,o=i-Qu[n];t.year=Math.max(1,Math.min(o,t.year)),t.year===o&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(s,t.day)))}if(t.year===1&&n>=0){let[,i,a]=ns[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return Or}getYearsInEra(t){let n=Or.indexOf(t.era),r=ns[n],i=ns[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(xh(t))}getMinimumMonthInYear(t){let n=T2(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=T2(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function T2(e){if(e.year===1){let t=Or.indexOf(e.era);return ns[t]}}const b8=-543;class oI extends At{fromJulianDay(t){let n=super.fromJulianDay(t),r=Tl(n.era,n.year);return new Je(this,r-b8,n.month,n.day)}toJulianDay(t){return super.toJulianDay(R2(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(R2(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function R2(e){let[t,n]=bf(e.year+b8);return new Je(t,n,e.month,e.day)}const zc=1911;function y8(e){return e.era==="minguo"?e.year+zc:1-e.year+zc}function M2(e){let t=e-zc;return t>0?["minguo",t]:["before_minguo",1-t]}class lI extends At{fromJulianDay(t){let n=super.fromJulianDay(t),r=Tl(n.era,n.year),[i,a]=M2(r);return new Je(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(A2(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=M2(y8(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(A2(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-zc}constructor(...t){super(...t),this.identifier="roc"}}function A2(e){let[t,n]=bf(y8(e));return new Je(t,n,e.month,e.day)}const F2=1948320,O2=[0,31,62,93,124,155,186,216,246,276,306,336];class uI{fromJulianDay(t){let n=t-F2,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,s=a<216?Math.floor(a/31):Math.floor((a-6)/30),o=a-O2[s]+1;return new Je(this,r,s+1,o)}toJulianDay(t){let n=F2-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=O2[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||ts(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const wh=78,B2=80;class cI extends At{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-wh,i=t-Ni(n.era,n.year,1,1),a;i<B2?(r--,a=Vr(n.year-1)?31:30,i+=a+155+90+10):(a=Vr(n.year)?31:30,i-=B2);let s,o;if(i<a)s=1,o=i+1;else{let l=i-a;l<155?(s=Math.floor(l/31)+2,o=l%31+1):(l-=155,s=Math.floor(l/30)+7,o=l%30+1)}return new Je(this,r,s,o)}toJulianDay(t){let n=t.year+wh,[r,i]=bf(n),a,s;return Vr(i)?(a=31,s=Ni(r,i,3,21)):(a=30,s=Ni(r,i,3,22)),t.month===1?s+t.day-1:(s+=a+Math.min(t.month-2,5)*31,t.month>=8&&(s+=(t.month-7)*30),s+=t.day-1,s)}getDaysInMonth(t){return t.month===1&&Vr(t.year+wh)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Vc=1948440,I2=1948439,pn=1300,wa=1600,dI=460322;function Wc(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function $8(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+Wc(t,r,1,1)))/29.5)+1),a=n-Wc(t,r,i,1)+1;return new Je(e,r,i,a)}function L2(e){return(14+11*e)%30<11}class a${fromJulianDay(t){return $8(this,Vc,t)}toJulianDay(t){return Wc(Vc,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&L2(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return L2(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class fI extends a${fromJulianDay(t){return $8(this,I2,t)}toJulianDay(t){return Wc(I2,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const hI="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let e0,rs;function Ju(e){return dI+rs[e-pn]}function uo(e,t){let n=e-pn,r=1<<11-(t-1);return e0[n]&r?30:29}function N2(e,t){let n=Ju(e);for(let r=1;r<t;r++)n+=uo(e,r);return n}function j2(e){return rs[e+1-pn]-rs[e-pn]}class pI extends a${fromJulianDay(t){let n=t-Vc,r=Ju(pn),i=Ju(wa);if(n<r||n>i)return super.fromJulianDay(t);{let a=pn-1,s=1,o=1;for(;o>0;){a++,o=n-Ju(a)+1;let l=j2(a);if(o===l){s=12;break}else if(o<l){let u=uo(a,s);for(s=1;o>u;)o-=u,s++,u=uo(a,s);break}}return new Je(this,a,s,n-N2(a,s)+1)}}toJulianDay(t){return t.year<pn||t.year>wa?super.toJulianDay(t):Vc+N2(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<pn||t.year>wa?super.getDaysInMonth(t):uo(t.year,t.month)}getDaysInYear(t){return t.year<pn||t.year>wa?super.getDaysInYear(t):j2(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",e0||(e0=new Uint16Array(Uint8Array.from(atob(hI),t=>t.charCodeAt(0)).buffer)),!rs){rs=new Uint32Array(wa-pn+1);let t=0;for(let n=pn;n<=wa;n++){rs[n-pn]=t;for(let r=1;r<=12;r++)t+=uo(n,r)}}}}const z2=347997,x8=1080,w8=24*x8,mI=29,gI=12*x8+793,vI=mI*w8+gI;function Fi(e){return ts(e*7+1,19)<7}function ec(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return ts(3*(r+1),7)<3&&(r+=1),r}function bI(e){let t=ec(e-1),n=ec(e);return ec(e+1)-n===356?2:n-t===382?1:0}function To(e){return ec(e)+bI(e)}function D8(e){return To(e+1)-To(e)}function yI(e){let t=D8(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function uu(e,t){if(t>=6&&!Fi(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=yI(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Fi(e)?30:0:30}class $I{fromJulianDay(t){let n=t-z2,r=n*w8/vI,i=Math.floor((19*r+234)/235)+1,a=To(i),s=Math.floor(n-a);for(;s<1;)i--,a=To(i),s=Math.floor(n-a);let o=1,l=0;for(;l<s;)l+=uu(i,o),o++;o--,l-=uu(i,o);let u=s-l;return new Je(this,i,o,u)}toJulianDay(t){let n=To(t.year);for(let r=1;r<t.month;r++)n+=uu(t.year,r);return n+t.day+z2}getDaysInMonth(t){return uu(t.year,t.month)}getMonthsInYear(t){return Fi(t.year)?13:12}getDaysInYear(t){return D8(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Fi(n.year)&&!Fi(t.year)&&n.month>6?t.month--:!Fi(n.year)&&Fi(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const t0=1723856,V2=1824665,n0=5500;function Uc(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function s$(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Uc(e,n,1,1))/30),i=t+1-Uc(e,n,r,1);return[n,r,i]}function _8(e){return Math.floor(e%4/3)}function E8(e,t){return t%13!==0?30:_8(e)+5}class o${fromJulianDay(t){let[n,r,i]=s$(t0,t),a="AM";return n<=0&&(a="AA",n+=n0),new Je(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=n0),Uc(t0,n,t.month,t.day)}getDaysInMonth(t){return E8(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+_8(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class xI extends o${fromJulianDay(t){let[n,r,i]=s$(t0,t);return n+=n0,new Je(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class wI extends o${fromJulianDay(t){let[n,r,i]=s$(V2,t),a="CE";return n<=0&&(a="BCE",n=1-n),new Je(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Uc(V2,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),E8(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function S8(e){switch(e){case"buddhist":return new oI;case"ethiopic":return new o$;case"ethioaa":return new xI;case"coptic":return new wI;case"hebrew":return new $I;case"indian":return new cI;case"islamic-civil":return new a$;case"islamic-tbla":return new fI;case"islamic-umalqura":return new pI;case"japanese":return new sI;case"persian":return new uI;case"roc":return new lI;case"gregory":default:return new At}}let Dh=new Map;class ti{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return EI()&&(this.resolvedHourCycle||(this.resolvedHourCycle=SI(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=C8(t,n),this.options=n}}const DI={true:{ja:"h11"},false:{}};function C8(e,t={}){if(typeof t.hour12=="boolean"&&_I()){t={...t};let i=DI[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Dh.has(n))return Dh.get(n);let r=new Intl.DateTimeFormat(e,t);return Dh.set(n,r),r}let _h=null;function _I(){return _h==null&&(_h=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),_h}let Eh=null;function EI(){return Eh==null&&(Eh=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Eh}function SI(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=C8(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}const he=typeof document<"u"?_.useLayoutEffect:()=>{};function pt(e){const t=y.useRef(null);return he(()=>{t.current=e},[e]),y.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function k8(e){let[t,n]=y.useState(e),r=y.useRef(null),i=pt(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?i():n(s.value)});he(()=>{r.current&&i()});let a=pt(s=>{r.current=s(t),i()});return[t,a]}let CI=!!(typeof window<"u"&&window.document&&window.document.createElement),Hc=new Map;function Zn(e){let[t,n]=y.useState(e),r=y.useRef(null),i=vB(t),a=y.useCallback(s=>{r.current=s},[]);return CI&&Hc.set(i,a),he(()=>{let s=i;return()=>{Hc.delete(s)}},[i]),y.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),i}function kI(e,t){if(e===t)return e;let n=Hc.get(e);if(n)return n(t),t;let r=Hc.get(t);return r?(r(e),e):t}function Kc(e=[]){let t=Zn(),[n,r]=k8(t),i=y.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return he(i,[t,i,...e]),n}function ol(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const ye=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Rn=e=>e&&"window"in e&&e.window===e?e:ye(e).defaultView||window;function de(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],s=r[i];typeof a=="function"&&typeof s=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=ol(a,s):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof s=="string"?t[i]=gf(a,s):i==="id"&&a&&s?t.id=kI(a,s):t[i]=s!==void 0?s:a}}return t}function PI(...e){return e.length===1?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const TI=new Set(["id"]),RI=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),MI=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),AI=/^(data-.*)$/;function Xt(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(TI.has(s)||n&&RI.has(s)||r&&MI.has(s)||i!=null&&i.has(s)||AI.test(s))&&(a[s]=e[s]);return a}function Wr(e){if(FI())e.focus({preventScroll:!0});else{let t=OI(e);e.focus(),BI(t)}}let cu=null;function FI(){if(cu==null){cu=!1;try{document.createElement("div").focus({get preventScroll(){return cu=!0,!0}})}catch{}}return cu}function OI(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 BI(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function wf(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function l$(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function $s(){return l$(/^Mac/i)}function II(){return l$(/^iPhone/i)}function P8(){return l$(/^iPad/i)||$s()&&navigator.maxTouchPoints>1}function Df(){return II()||P8()}function T8(){return wf(/AppleWebKit/i)&&!LI()}function LI(){return wf(/Chrome/i)}function R8(){return wf(/Android/i)}function NI(){return wf(/Firefox/i)}const jI=y.createContext({isNative:!0,open:WI,useHref:e=>e});function zI(e){let{children:t,navigate:n,useHref:r}=e,i=y.useMemo(()=>({isNative:!1,open:(a,s,o,l)=>{M8(a,u=>{VI(u,s)?n(o,l):ta(u,s)})},useHref:r||(a=>a)}),[n,r]);return _.createElement(jI.Provider,{value:i},t)}function VI(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function ta(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:s,altKey:o,shiftKey:l}=t;NI()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&($s()?a=!0:s=!0);let u=T8()&&$s()&&!P8()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:s,altKey:o,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:s,altKey:o,shiftKey:l,bubbles:!0,cancelable:!0});ta.isOpening=n,Wr(e),e.dispatchEvent(u),ta.isOpening=!1}ta.isOpening=!1;function M8(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function WI(e,t){M8(e,n=>ta(n,t))}let Ra=new Map,r0=new Set;function W2(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Ra.get(r.target);i||(i=new Set,Ra.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=Ra.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Ra.delete(r.target)),Ra.size===0)){for(let a of r0)a();r0.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?W2():document.addEventListener("DOMContentLoaded",W2));function A8(e){requestAnimationFrame(()=>{Ra.size===0?e():r0.add(e)})}function F8(){let e=y.useRef(new Map),t=y.useCallback((i,a,s,o)=>{let l=o!=null&&o.once?(...u)=>{e.current.delete(s),s(...u)}:s;e.current.set(s,{type:a,eventTarget:i,fn:l,options:o}),i.addEventListener(a,s,o)},[]),n=y.useCallback((i,a,s,o)=>{var l;let u=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;i.removeEventListener(a,u,o),e.current.delete(s)},[]),r=y.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return y.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Fl(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Zn(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function UI(e){const t=y.useRef(null);return y.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}),[e])}function U2(e,t){const n=y.useRef(!0),r=y.useRef(null);y.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),y.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function HI(){return typeof window.ResizeObserver<"u"}function O8(e){const{ref:t,onResize:n}=e;y.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(HI()){const i=new window.ResizeObserver(a=>{a.length&&n()});return i.observe(r),()=>{r&&i.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function u$(e,t){he(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function i0(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function _f(e,t){let n=e;for(i0(n,t)&&(n=n.parentElement);n&&!i0(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function KI(e,t){const n=[];for(;e&&e!==document.documentElement;)i0(e,t)&&n.push(e),e=e.parentElement;return n}let mn=typeof document<"u"&&window.visualViewport;function B8(){let e=ca(),[t,n]=y.useState(()=>e?{width:0,height:0}:H2());return y.useEffect(()=>{let r=()=>{n(i=>{let a=H2();return a.width===i.width&&a.height===i.height?i:a})};return mn?mn.addEventListener("resize",r):window.addEventListener("resize",r),()=>{mn?mn.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function H2(){return{width:mn&&(mn==null?void 0:mn.width)||window.innerWidth,height:mn&&(mn==null?void 0:mn.height)||window.innerHeight}}let YI=0;const Sh=new Map;function c$(e){let[t,n]=y.useState();return he(()=>{if(!e)return;let r=Sh.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${YI++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},Sh.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Sh.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function is(e,t,n,r){let i=pt(n),a=n==null;y.useEffect(()=>{if(a||!e.current)return;let s=e.current;return s.addEventListener(t,i,r),()=>{s.removeEventListener(t,i,r)}},[e,t,r,a,i])}function qI(e,t){let n=K2(e,t,"left"),r=K2(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,s=e.scrollLeft,o=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),d=e.scrollTop+parseInt(l,10),f=c+e.clientWidth,h=d+e.clientHeight;n<=s?s=n-parseInt(u,10):n+i>f&&(s+=n+i-f),r<=d?o=r-parseInt(l,10):r+a>h&&(o+=r+a-h),e.scrollLeft=s,e.scrollTop=o}function K2(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function I8(e,t){if(document.contains(e)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let l=KI(e);for(let u of l)qI(u,e)}else{var n;let{left:l,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(u-d)>1){var r,i,a;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function a0(e){return e.mozInputSource===0&&e.isTrusted?!0:R8()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function GI(e){return!R8()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function L8(e,t){let n=y.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function ZI(e,t,n){let r=y.useRef(t),i=pt(()=>{n&&n(r.current)});y.useEffect(()=>{var a;let s=e==null||(a=e.current)===null||a===void 0?void 0:a.form;return s==null||s.addEventListener("reset",i),()=>{s==null||s.removeEventListener("reset",i)}},[e,i])}function na(e,t,n){let[r,i]=y.useState(e||t),a=y.useRef(e!==void 0),s=e!==void 0;y.useEffect(()=>{let u=a.current;u!==s&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s},[s]);let o=s?e:r,l=y.useCallback((u,...c)=>{let d=(f,...h)=>{n&&(Object.is(o,f)||n(f,...h)),s||(o=f)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((h,...p)=>{let g=u(s?o:h,...p);return d(g,...c),s?h:g})):(s||i(u),d(u,...c))},[s,o,n]);return[o,l]}function s0(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function $n(e){e=L8(e??{},XI);let{locale:t}=Qe();return y.useMemo(()=>new ti(t,e),[t,e])}function XI(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}let Ch=new Map,o0=!1;try{o0=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Yc=!1;try{Yc=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const N8={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class QI{format(t){let n="";if(!o0&&this.options.signDisplay!=null?n=eL(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Yc){var r;let{unit:i,unitDisplay:a="short",locale:s}=this.resolvedOptions();if(!i)return n;let o=(r=N8[i])===null||r===void 0?void 0:r[a];n+=o[s]||o.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!o0&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Yc&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=JI(t,n),this.options=n}}function JI(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Yc){var r;let{unit:s,unitDisplay:o="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=N8[s])===null||r===void 0)&&r[o]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${o}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((s,o)=>s[0]<o[0]?-1:1).join():"");if(Ch.has(i))return Ch.get(i);let a=new Intl.NumberFormat(e,t);return Ch.set(i,a),a}function eL(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),a=e.format(n),s=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(s,"+").replace("!!!",a)}else return e.format(n)}}const tL=new RegExp("^.*\\(.*\\).*$"),nL=["latn","arab","hanidec"];class j8{parse(t){return kh(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return kh(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return kh(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const Y2=new Map;function kh(e,t,n){let r=q2(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of nL)if(i!==r.options.numberingSystem){let a=q2(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(a.isValidPartialNumber(n))return a}}return r}function q2(e,t){let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():""),r=Y2.get(n);return r||(r=new rL(e,t),Y2.set(n,r)),r}class rL{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=du(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let s=n.indexOf("-");n=n.replace("-","");let o=n.indexOf(".");o===-1&&(o=n.length),n=n.replace(".",""),o-2===0?n=`0.${n}`:o-2===-1?n=`0.0${n}`:o-2===-2?n="0.00":n=`${n.slice(0,o-2)}.${n.slice(o-2)}`,s>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,a;let s={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((a=this.options.maximumFractionDigits)!==null&&a!==void 0?a:0)+2,20)};return new j8(this.locale,s).parse(new QI(this.locale,s).format(r))}return this.options.currencySign==="accounting"&&tL.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=du(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=du(t,"."," ")),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=du(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=aL(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const G2=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),iL=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function aL(e,t,n,r){var i,a,s,o;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21}),u=l.formatToParts(-10000.111),c=l.formatToParts(10000.111),d=iL.map(P=>l.formatToParts(P));var f;let h=(f=(i=u.find(P=>P.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&f!==void 0?f:"-",p=(a=c.find(P=>P.type==="plusSign"))===null||a===void 0?void 0:a.value;!p&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(p="+");let b=(s=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(P=>P.type==="decimal"))===null||s===void 0?void 0:s.value,v=(o=u.find(P=>P.type==="group"))===null||o===void 0?void 0:o.value,m=u.filter(P=>!G2.has(P.type)).map(P=>Z2(P.value)),$=d.flatMap(P=>P.filter(E=>!G2.has(E.type)).map(E=>Z2(E.value))),w=[...new Set([...m,...$])].sort((P,E)=>E.length-P.length),D=w.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${w.join("|")}|[\\p{White_Space}]`,"gu"),S=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),k=new Map(S.map((P,E)=>[P,E])),x=new RegExp(`[${S.join("")}]`,"g");return{minusSign:h,plusSign:p,decimal:b,group:v,literals:D,numeral:x,index:P=>String(k.get(P))}}function du(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Z2(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}let Ph=new Map;function sL(e){let{locale:t}=Qe(),n=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Ph.has(n))return Ph.get(n);let r=new Intl.Collator(t,e);return Ph.set(n,r),r}function oL(e){let t=sL({usage:"search",...e}),n=y.useCallback((a,s)=>s.length===0?!0:(a=a.normalize("NFC"),s=s.normalize("NFC"),t.compare(a.slice(0,s.length),s)===0),[t]),r=y.useCallback((a,s)=>s.length===0?!0:(a=a.normalize("NFC"),s=s.normalize("NFC"),t.compare(a.slice(-s.length),s)===0),[t]),i=y.useCallback((a,s)=>{if(s.length===0)return!0;a=a.normalize("NFC"),s=s.normalize("NFC");let o=0,l=s.length;for(;o+l<=a.length;o++){let u=a.slice(o,o+l);if(t.compare(s,u)===0)return!0}return!1},[t]);return y.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}const Ef={margin:["margin",le],marginStart:[Vt("marginLeft","marginRight"),le],marginEnd:[Vt("marginRight","marginLeft"),le],marginTop:["marginTop",le],marginBottom:["marginBottom",le],marginX:[["marginLeft","marginRight"],le],marginY:[["marginTop","marginBottom"],le],width:["width",le],height:["height",le],minWidth:["minWidth",le],minHeight:["minHeight",le],maxWidth:["maxWidth",le],maxHeight:["maxHeight",le],isHidden:["display",fL],alignSelf:["alignSelf",tt],justifySelf:["justifySelf",tt],position:["position",Rh],zIndex:["zIndex",Rh],top:["top",le],bottom:["bottom",le],start:[Vt("left","right"),le],end:[Vt("right","left"),le],left:["left",le],right:["right",le],order:["order",Rh],flex:["flex",hL],flexGrow:["flexGrow",tt],flexShrink:["flexShrink",tt],flexBasis:["flexBasis",tt],gridArea:["gridArea",tt],gridColumn:["gridColumn",tt],gridColumnEnd:["gridColumnEnd",tt],gridColumnStart:["gridColumnStart",tt],gridRow:["gridRow",tt],gridRowEnd:["gridRowEnd",tt],gridRowStart:["gridRowStart",tt]};({...Ef,borderStartWidth:Vt("borderLeftWidth","borderRightWidth"),borderEndWidth:Vt("borderRightWidth","borderLeftWidth"),borderStartColor:Vt("borderLeftColor","borderRightColor"),borderEndColor:Vt("borderRightColor","borderLeftColor"),borderTopStartRadius:Vt("borderTopLeftRadius","borderTopRightRadius"),borderTopEndRadius:Vt("borderTopRightRadius","borderTopLeftRadius"),borderBottomStartRadius:Vt("borderBottomLeftRadius","borderBottomRightRadius"),borderBottomEndRadius:Vt("borderBottomRightRadius","borderBottomLeftRadius"),paddingStart:Vt("paddingLeft","paddingRight"),paddingEnd:Vt("paddingRight","paddingLeft")});const X2={borderWidth:"borderStyle",borderLeftWidth:"borderLeftStyle",borderRightWidth:"borderRightStyle",borderTopWidth:"borderTopStyle",borderBottomWidth:"borderBottomStyle"};function Vt(e,t){return n=>n==="rtl"?t:e}const lL=/(%|px|em|rem|vw|vh|auto|cm|mm|in|pt|pc|ex|ch|rem|vmin|vmax|fr)$/,uL=/^\s*\w+\(/,cL=/(static-)?size-\d+|single-line-(height|width)/g;function le(e){if(typeof e=="number")return e+"px";if(e)return lL.test(e)?e:uL.test(e)?e.replace(cL,"var(--spectrum-global-dimension-$&, var(--spectrum-alias-$&))"):`var(--spectrum-global-dimension-${e}, var(--spectrum-alias-${e}))`}function Th(e,t){return e=d$(e,t),le(e)}function z8(e,t="default",n=5){return n>5?`var(--spectrum-${e}, var(--spectrum-semantic-${e}-color-${t}))`:`var(--spectrum-legacy-color-${e}, var(--spectrum-global-color-${e}, var(--spectrum-semantic-${e}-color-${t})))`}function dL(e,t=5){if(e)return`var(--spectrum-alias-background-color-${e}, ${z8(e,"background",t)})`}function Xn(e,t=5){if(e)return e==="default"?"var(--spectrum-alias-border-color)":`var(--spectrum-alias-border-color-${e}, ${z8(e,"border",t)})`}function Qn(e){return e&&e!=="none"?`var(--spectrum-alias-border-size-${e})`:"0"}function Jn(e){if(e)return`var(--spectrum-alias-border-radius-${e})`}function fL(e){return e?"none":void 0}function Rh(e){return e}function hL(e){return typeof e=="boolean"?e?"1":void 0:""+e}function pL(e,t,n,r){let i={};for(let a in e){let s=t[a];if(!s||e[a]==null)continue;let[o,l]=s;typeof o=="function"&&(o=o(n));let u=d$(e[a],r),c=l(u,e.colorVersion);if(Array.isArray(o))for(let d of o)i[d]=c;else i[o]=c}for(let a in X2)i[a]&&(i[X2[a]]="solid",i.boxSizing="border-box");return i}function st(e,t=Ef,n={}){let{UNSAFE_className:r,UNSAFE_style:i,...a}=e,s=Y_(),{direction:o}=Qe(),{matchedBreakpoints:l=(s==null?void 0:s.matchedBreakpoints)||["base"]}=n,u=pL(e,t,o,l),c={...i,...u};a.className&&console.warn("The className prop is unsafe and is unsupported in React Spectrum v3. Please use style props with Spectrum variables, or UNSAFE_className if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes."),a.style&&console.warn("The style prop is unsafe and is unsupported in React Spectrum v3. Please use style props with Spectrum variables, or UNSAFE_style if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes.");let d={style:c,className:r};return d$(e.isHidden,l)&&(d.hidden=!0),{styleProps:d}}function tt(e){return e}function d$(e,t){if(e&&typeof e=="object"&&!Array.isArray(e)){for(let n=0;n<t.length;n++){let r=t[n];if(e[r]!=null)return e[r]}return e.base}return e}let qc=_.createContext(null);function oi(e,t){let n=e.slot||t,{[n]:r={}}=y.useContext(qc)||{};return de(e,de(r,{id:e.id}))}function Sf(e){let t=y.useContext(qc)||{},{slots:n={},children:r}=e,i=y.useMemo(()=>Object.keys(t).concat(Object.keys(n)).reduce((a,s)=>({...a,[s]:de(t[s]||{},n[s]||{})}),{}),[t,n]);return _.createElement(qc.Provider,{value:i},r)}function V8(e){let{children:t,...n}=e,r=t;return _.Children.toArray(t).length<=1&&typeof t=="function"&&(r=_.cloneElement(_.Children.only(t),n)),_.createElement(qc.Provider,{value:{}},r)}function fu(e,t){let[n,r]=y.useState(!0);return he(()=>{r(!!(t.current&&t.current.querySelector(e)))},[r,e,t]),n}const mL=700;function gL(){return ca()||typeof window>"u"?!1:window.screen.width<=mL}let Ha="default",l0="",tc=new WeakMap;function Q2(e){if(Df()){if(Ha==="default"){const t=ye(e);l0=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ha="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(tc.set(e,e.style.userSelect),e.style.userSelect="none")}function hu(e){if(Df()){if(Ha!=="disabled")return;Ha="restoring",setTimeout(()=>{A8(()=>{if(Ha==="restoring"){const t=ye(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=l0||""),l0="",Ha="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&tc.has(e)){let t=tc.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),tc.delete(e)}}const ll=_.createContext({register:()=>{}});ll.displayName="PressResponderContext";function vL(e,t){return t.get?t.get.call(e):t.value}function W8(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function bL(e,t){var n=W8(e,t,"get");return vL(e,n)}function yL(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function J2(e,t,n){var r=W8(e,t,"set");return yL(e,r,n),n}function $L(e){let t=y.useContext(ll);if(t){let{register:n,...r}=t;e=de(r,e),n()}return u$(t,e.ref),e}var pu=new WeakMap;class mu{continuePropagation(){J2(this,pu,!1)}get shouldStopPropagation(){return bL(this,pu)}constructor(t,n,r){Ml(this,pu,{writable:!0,value:void 0}),J2(this,pu,!0),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}}const e5=Symbol("linkClicked");function f$(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,isDisabled:s,isPressed:o,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...f}=$L(e),[h,p]=y.useState(!1),g=y.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:v}=F8(),m=pt((x,T)=>{let P=g.current;if(s||P.didFirePressStart)return!1;let E=!0;if(P.isTriggeringEvent=!0,r){let A=new mu("pressstart",T,x);r(A),E=A.shouldStopPropagation}return n&&n(!0),P.isTriggeringEvent=!1,P.didFirePressStart=!0,p(!0),E}),$=pt((x,T,P=!0)=>{let E=g.current;if(!E.didFirePressStart)return!1;E.ignoreClickAfterPress=!0,E.didFirePressStart=!1,E.isTriggeringEvent=!0;let A=!0;if(i){let R=new mu("pressend",T,x);i(R),A=R.shouldStopPropagation}if(n&&n(!1),p(!1),t&&P&&!s){let R=new mu("press",T,x);t(R),A&&(A=R.shouldStopPropagation)}return E.isTriggeringEvent=!1,A}),w=pt((x,T)=>{let P=g.current;if(s)return!1;if(a){P.isTriggeringEvent=!0;let E=new mu("pressup",T,x);return a(E),P.isTriggeringEvent=!1,E.shouldStopPropagation}return!0}),D=pt(x=>{let T=g.current;T.isPressed&&T.target&&(T.isOverTarget&&T.pointerType!=null&&$(er(T.target,x),T.pointerType,!1),T.isPressed=!1,T.isOverTarget=!1,T.activePointerId=null,T.pointerType=null,v(),c||hu(T.target))}),S=pt(x=>{u&&D(x)}),k=y.useMemo(()=>{let x=g.current,T={onKeyDown(E){if(Mh(E.nativeEvent,E.currentTarget)&&E.currentTarget.contains(E.target)){var A;n5(E.target,E.key)&&E.preventDefault();let R=!0;if(!x.isPressed&&!E.repeat){x.target=E.currentTarget,x.isPressed=!0,R=m(E,"keyboard");let M=E.currentTarget,z=O=>{Mh(O,M)&&!O.repeat&&M.contains(O.target)&&x.target&&w(er(x.target,O),"keyboard")};b(ye(E.currentTarget),"keyup",ol(z,P),!0)}R&&E.stopPropagation(),E.metaKey&&$s()&&((A=x.metaKeyEvents)===null||A===void 0||A.set(E.key,E.nativeEvent))}else E.key==="Meta"&&(x.metaKeyEvents=new Map)},onClick(E){if(!(E&&!E.currentTarget.contains(E.target))&&E&&E.button===0&&!x.isTriggeringEvent&&!ta.isOpening){let A=!0;if(s&&E.preventDefault(),!x.ignoreClickAfterPress&&!x.ignoreEmulatedMouseEvents&&!x.isPressed&&(x.pointerType==="virtual"||a0(E.nativeEvent))){!s&&!l&&Wr(E.currentTarget);let R=m(E,"virtual"),M=w(E,"virtual"),z=$(E,"virtual");A=R&&M&&z}x.ignoreEmulatedMouseEvents=!1,x.ignoreClickAfterPress=!1,A&&E.stopPropagation()}}},P=E=>{var A;if(x.isPressed&&x.target&&Mh(E,x.target)){var R;n5(E.target,E.key)&&E.preventDefault();let z=E.target;$(er(x.target,E),"keyboard",x.target.contains(z)),v(),E.key!=="Enter"&&h$(x.target)&&x.target.contains(z)&&!E[e5]&&(E[e5]=!0,ta(x.target,E,!1)),x.isPressed=!1,(R=x.metaKeyEvents)===null||R===void 0||R.delete(E.key)}else if(E.key==="Meta"&&(!((A=x.metaKeyEvents)===null||A===void 0)&&A.size)){var M;let z=x.metaKeyEvents;x.metaKeyEvents=void 0;for(let O of z.values())(M=x.target)===null||M===void 0||M.dispatchEvent(new KeyboardEvent("keyup",O))}};if(typeof PointerEvent<"u"){T.onPointerDown=M=>{if(M.button!==0||!M.currentTarget.contains(M.target))return;if(GI(M.nativeEvent)){x.pointerType="virtual";return}Ah(M.currentTarget)&&M.preventDefault(),x.pointerType=M.pointerType;let z=!0;x.isPressed||(x.isPressed=!0,x.isOverTarget=!0,x.activePointerId=M.pointerId,x.target=M.currentTarget,!s&&!l&&Wr(M.currentTarget),c||Q2(x.target),z=m(M,x.pointerType),b(ye(M.currentTarget),"pointermove",E,!1),b(ye(M.currentTarget),"pointerup",A,!1),b(ye(M.currentTarget),"pointercancel",R,!1)),z&&M.stopPropagation()},T.onMouseDown=M=>{M.currentTarget.contains(M.target)&&M.button===0&&(Ah(M.currentTarget)&&M.preventDefault(),M.stopPropagation())},T.onPointerUp=M=>{!M.currentTarget.contains(M.target)||x.pointerType==="virtual"||M.button===0&&Da(M,M.currentTarget)&&w(M,x.pointerType||M.pointerType)};let E=M=>{M.pointerId===x.activePointerId&&(x.target&&Da(M,x.target)?!x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!0,m(er(x.target,M),x.pointerType)):x.target&&x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!1,$(er(x.target,M),x.pointerType,!1),S(M)))},A=M=>{M.pointerId===x.activePointerId&&x.isPressed&&M.button===0&&x.target&&(Da(M,x.target)&&x.pointerType!=null?$(er(x.target,M),x.pointerType):x.isOverTarget&&x.pointerType!=null&&$(er(x.target,M),x.pointerType,!1),x.isPressed=!1,x.isOverTarget=!1,x.activePointerId=null,x.pointerType=null,v(),c||hu(x.target))},R=M=>{D(M)};T.onDragStart=M=>{M.currentTarget.contains(M.target)&&D(M)}}else{T.onMouseDown=R=>{if(R.button!==0||!R.currentTarget.contains(R.target))return;if(Ah(R.currentTarget)&&R.preventDefault(),x.ignoreEmulatedMouseEvents){R.stopPropagation();return}x.isPressed=!0,x.isOverTarget=!0,x.target=R.currentTarget,x.pointerType=a0(R.nativeEvent)?"virtual":"mouse",!s&&!l&&Wr(R.currentTarget),m(R,x.pointerType)&&R.stopPropagation(),b(ye(R.currentTarget),"mouseup",E,!1)},T.onMouseEnter=R=>{if(!R.currentTarget.contains(R.target))return;let M=!0;x.isPressed&&!x.ignoreEmulatedMouseEvents&&x.pointerType!=null&&(x.isOverTarget=!0,M=m(R,x.pointerType)),M&&R.stopPropagation()},T.onMouseLeave=R=>{if(!R.currentTarget.contains(R.target))return;let M=!0;x.isPressed&&!x.ignoreEmulatedMouseEvents&&x.pointerType!=null&&(x.isOverTarget=!1,M=$(R,x.pointerType,!1),S(R)),M&&R.stopPropagation()},T.onMouseUp=R=>{R.currentTarget.contains(R.target)&&!x.ignoreEmulatedMouseEvents&&R.button===0&&w(R,x.pointerType||"mouse")};let E=R=>{if(R.button===0){if(x.isPressed=!1,v(),x.ignoreEmulatedMouseEvents){x.ignoreEmulatedMouseEvents=!1;return}x.target&&Da(R,x.target)&&x.pointerType!=null?$(er(x.target,R),x.pointerType):x.target&&x.isOverTarget&&x.pointerType!=null&&$(er(x.target,R),x.pointerType,!1),x.isOverTarget=!1}};T.onTouchStart=R=>{if(!R.currentTarget.contains(R.target))return;let M=xL(R.nativeEvent);if(!M)return;x.activePointerId=M.identifier,x.ignoreEmulatedMouseEvents=!0,x.isOverTarget=!0,x.isPressed=!0,x.target=R.currentTarget,x.pointerType="touch",!s&&!l&&Wr(R.currentTarget),c||Q2(x.target),m(R,x.pointerType)&&R.stopPropagation(),b(Rn(R.currentTarget),"scroll",A,!0)},T.onTouchMove=R=>{if(!R.currentTarget.contains(R.target))return;if(!x.isPressed){R.stopPropagation();return}let M=t5(R.nativeEvent,x.activePointerId),z=!0;M&&Da(M,R.currentTarget)?!x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!0,z=m(R,x.pointerType)):x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!1,z=$(R,x.pointerType,!1),S(R)),z&&R.stopPropagation()},T.onTouchEnd=R=>{if(!R.currentTarget.contains(R.target))return;if(!x.isPressed){R.stopPropagation();return}let M=t5(R.nativeEvent,x.activePointerId),z=!0;M&&Da(M,R.currentTarget)&&x.pointerType!=null?(w(R,x.pointerType),z=$(R,x.pointerType)):x.isOverTarget&&x.pointerType!=null&&(z=$(R,x.pointerType,!1)),z&&R.stopPropagation(),x.isPressed=!1,x.activePointerId=null,x.isOverTarget=!1,x.ignoreEmulatedMouseEvents=!0,x.target&&!c&&hu(x.target),v()},T.onTouchCancel=R=>{R.currentTarget.contains(R.target)&&(R.stopPropagation(),x.isPressed&&D(R))};let A=R=>{x.isPressed&&R.target.contains(x.target)&&D({currentTarget:x.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};T.onDragStart=R=>{R.currentTarget.contains(R.target)&&D(R)}}return T},[b,s,l,v,c,D,S,$,m,w]);return y.useEffect(()=>()=>{var x;c||hu((x=g.current.target)!==null&&x!==void 0?x:void 0)},[c]),{isPressed:o||h,pressProps:de(f,k)}}function h$(e){return e.tagName==="A"&&e.hasAttribute("href")}function Mh(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Rn(i).HTMLInputElement&&!U8(i,n)||i instanceof Rn(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&h$(i))&&n!=="Enter")}function xL(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function t5(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function er(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function wL(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function DL(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Da(e,t){let n=t.getBoundingClientRect(),r=wL(e);return DL(n,r)}function Ah(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function n5(e,t){return e instanceof HTMLInputElement?!U8(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!h$(e)}const _L=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function U8(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":_L.has(e.type)}const EL=_.forwardRef(({children:e,...t},n)=>{let r=y.useRef(!1),i=y.useContext(ll);n=UI(n||(i==null?void 0:i.ref));let a=de(i||{},{...t,ref:n,register(){r.current=!0,i&&i.register()}});return u$(i,n),y.useEffect(()=>{r.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)},[]),_.createElement(ll.Provider,{value:a},e)});function SL({children:e}){let t=y.useMemo(()=>({register:()=>{}}),[]);return _.createElement(ll.Provider,{value:t},e)}class CL{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function H8(e){let t=y.useRef({isFocused:!1,observer:null});he(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=pt(r=>{e==null||e(r)});return y.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,a=s=>{t.current.isFocused=!1,i.disabled&&n(new CL("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let o=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function K8(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=y.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=H8(a),o=y.useCallback(l=>{const u=ye(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),s(l))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?o:void 0,onBlur:!t&&(r||i)?a:void 0}}}let da=null,u0=new Set,Ro=new Map,ra=!1,c0=!1;const kL={Tab:!0,Escape:!0};function Cf(e,t){for(let n of u0)n(e,t)}function PL(e){return!(e.metaKey||!$s()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Gc(e){ra=!0,PL(e)&&(da="keyboard",Cf("keyboard",e))}function bn(e){da="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ra=!0,Cf("pointer",e))}function Y8(e){a0(e)&&(ra=!0,da="virtual")}function q8(e){e.target===window||e.target===document||(!ra&&!c0&&(da="virtual",Cf("virtual",e)),ra=!1,c0=!1)}function G8(){ra=!1,c0=!0}function d0(e){if(typeof window>"u"||Ro.get(Rn(e)))return;const t=Rn(e),n=ye(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ra=!0,r.apply(this,arguments)},n.addEventListener("keydown",Gc,!0),n.addEventListener("keyup",Gc,!0),n.addEventListener("click",Y8,!0),t.addEventListener("focus",q8,!0),t.addEventListener("blur",G8,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",bn,!0),n.addEventListener("pointermove",bn,!0),n.addEventListener("pointerup",bn,!0)):(n.addEventListener("mousedown",bn,!0),n.addEventListener("mousemove",bn,!0),n.addEventListener("mouseup",bn,!0)),t.addEventListener("beforeunload",()=>{Z8(e)},{once:!0}),Ro.set(t,{focus:r})}const Z8=(e,t)=>{const n=Rn(e),r=ye(e);t&&r.removeEventListener("DOMContentLoaded",t),Ro.has(n)&&(n.HTMLElement.prototype.focus=Ro.get(n).focus,r.removeEventListener("keydown",Gc,!0),r.removeEventListener("keyup",Gc,!0),r.removeEventListener("click",Y8,!0),n.removeEventListener("focus",q8,!0),n.removeEventListener("blur",G8,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",bn,!0),r.removeEventListener("pointermove",bn,!0),r.removeEventListener("pointerup",bn,!0)):(r.removeEventListener("mousedown",bn,!0),r.removeEventListener("mousemove",bn,!0),r.removeEventListener("mouseup",bn,!0)),Ro.delete(n))};function TL(e){const t=ye(e);let n;return t.readyState!=="loading"?d0(e):(n=()=>{d0(e)},t.addEventListener("DOMContentLoaded",n)),()=>Z8(e,n)}typeof document<"u"&&TL();function X8(){return da!=="pointer"}function Q8(){return da}function RL(e){da=e,Cf(e,null)}const ML=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function AL(e,t,n){var r;const i=typeof window<"u"?Rn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?Rn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?Rn(n==null?void 0:n.target).HTMLElement:HTMLElement,o=typeof window<"u"?Rn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!ML.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof a||(n==null?void 0:n.target)instanceof s&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof o&&!kL[n.key])}function FL(e,t,n){d0(),y.useEffect(()=>{let r=(i,a)=>{AL(!!(n!=null&&n.isTextInput),i,a)&&e(X8())};return u0.add(r),()=>{u0.delete(r)}},t)}function Ts(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=y.useRef({isFocusWithin:!1}),s=y.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,a]),o=H8(s),l=y.useCallback(u=>{!a.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),a.current.isFocusWithin=!0,o(u))},[r,i,o]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let Zc=!1,Fh=0;function f0(){Zc=!0,setTimeout(()=>{Zc=!1},50)}function r5(e){e.pointerType==="touch"&&f0()}function OL(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",r5):document.addEventListener("touchend",f0),Fh++,()=>{Fh--,!(Fh>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",r5):document.removeEventListener("touchend",f0))}}function kf(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,s]=y.useState(!1),o=y.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;y.useEffect(OL,[]);let{hoverProps:l,triggerHoverEnd:u}=y.useMemo(()=>{let c=(h,p)=>{if(o.pointerType=p,i||p==="touch"||o.isHovered||!h.currentTarget.contains(h.target))return;o.isHovered=!0;let g=h.currentTarget;o.target=g,t&&t({type:"hoverstart",target:g,pointerType:p}),n&&n(!0),s(!0)},d=(h,p)=>{if(o.pointerType="",o.target=null,p==="touch"||!o.isHovered)return;o.isHovered=!1;let g=h.currentTarget;r&&r({type:"hoverend",target:g,pointerType:p}),n&&n(!1),s(!1)},f={};return typeof PointerEvent<"u"?(f.onPointerEnter=h=>{Zc&&h.pointerType==="mouse"||c(h,h.pointerType)},f.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&d(h,h.pointerType)}):(f.onTouchStart=()=>{o.ignoreEmulatedMouseEvents=!0},f.onMouseEnter=h=>{!o.ignoreEmulatedMouseEvents&&!Zc&&c(h,"mouse"),o.ignoreEmulatedMouseEvents=!1},f.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&d(h,"mouse")}),{hoverProps:f,triggerHoverEnd:d}},[t,n,r,i,o]);return y.useEffect(()=>{i&&u({currentTarget:o.target},o.pointerType)},[i]),{hoverProps:l,isHovered:a}}function BL(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=y.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=pt(l=>{n&&gu(l,t)&&(i&&i(l),a.current.isPointerDown=!0)}),o=pt(l=>{n&&n(l)});y.useEffect(()=>{let l=a.current;if(r)return;const u=t.current,c=ye(u);if(typeof PointerEvent<"u"){let d=f=>{l.isPointerDown&&gu(f,t)&&o(f),l.isPointerDown=!1};return c.addEventListener("pointerdown",s,!0),c.addEventListener("pointerup",d,!0),()=>{c.removeEventListener("pointerdown",s,!0),c.removeEventListener("pointerup",d,!0)}}else{let d=h=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&gu(h,t)&&o(h),l.isPointerDown=!1},f=h=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&gu(h,t)&&o(h),l.isPointerDown=!1};return c.addEventListener("mousedown",s,!0),c.addEventListener("mouseup",d,!0),c.addEventListener("touchstart",s,!0),c.addEventListener("touchend",f,!0),()=>{c.removeEventListener("mousedown",s,!0),c.removeEventListener("mouseup",d,!0),c.removeEventListener("touchstart",s,!0),c.removeEventListener("touchend",f,!0)}}},[t,r,s,o])}function gu(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function i5(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function IL(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:i5(e.onKeyDown),onKeyUp:i5(e.onKeyUp)}}}function Xc(e){const t=ye(e);if(Q8()==="virtual"){let n=t.activeElement;A8(()=>{t.activeElement===n&&e.isConnected&&Wr(e)})}else Wr(e)}function LL(e){const t=Rn(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:a}=e.ownerDocument.defaultView;let{display:s,visibility:o}=a(e);i=s!=="none"&&o!=="hidden"&&o!=="collapse"}return i}function NL(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 J8(e,t){return e.nodeName!=="#comment"&&LL(e)&&NL(e,t)&&(!e.parentElement||J8(e.parentElement,e))}const a5=_.createContext(null);let _e=null;function jL(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=y.useRef(null),s=y.useRef(null),o=y.useRef([]),{parentNode:l}=y.useContext(a5)||{},u=y.useMemo(()=>new h0({scopeRef:o}),[o]);he(()=>{let f=l||Ge.root;if(Ge.getTreeNode(f.scopeRef)&&_e&&!Jc(_e,f.scopeRef)){let h=Ge.getTreeNode(_e);h&&(f=h)}f.addChild(u),Ge.addNode(u)},[u,l]),he(()=>{let f=Ge.getTreeNode(o);f&&(f.contain=!!n)},[n]),he(()=>{var f;let h=(f=a.current)===null||f===void 0?void 0:f.nextSibling,p=[];for(;h&&h!==s.current;)p.push(h),h=h.nextSibling;o.current=p},[t]),YL(o,r,n),UL(o,n),GL(o,r,n),KL(o,i),y.useEffect(()=>{const f=ye(o.current?o.current[0]:void 0).activeElement;let h=null;if(St(f,o.current)){for(let p of Ge.traverse())p.scopeRef&&St(f,p.scopeRef.current)&&(h=p);h===Ge.getTreeNode(o)&&(_e=h.scopeRef)}},[o]),he(()=>()=>{var f,h,p;let g=(p=(h=Ge.getTreeNode(o))===null||h===void 0||(f=h.parent)===null||f===void 0?void 0:f.scopeRef)!==null&&p!==void 0?p:null;(o===_e||Jc(o,_e))&&(!g||Ge.getTreeNode(g))&&(_e=g),Ge.removeTreeNode(o)},[o]);let c=y.useMemo(()=>zL(o),[]),d=y.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return _.createElement(a5.Provider,{value:d},_.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,_.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function zL(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:s}=t,o=r||ye(n[0]).activeElement,l=n[0].previousElementSibling,u=ji(n),c=an(u,{tabbable:i,accept:s},n);c.currentNode=St(o,n)?o:l;let d=c.nextNode();return!d&&a&&(c.currentNode=l,d=c.nextNode()),d&&Ut(d,!0),d},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:s}=t,o=r||ye(n[0]).activeElement,l=n[n.length-1].nextElementSibling,u=ji(n),c=an(u,{tabbable:i,accept:s},n);c.currentNode=St(o,n)?o:l;let d=c.previousNode();return!d&&a&&(c.currentNode=l,d=c.previousNode()),d&&Ut(d,!0),d},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=ji(n),s=an(a,{tabbable:r,accept:i},n);s.currentNode=n[0].previousElementSibling;let o=s.nextNode();return o&&Ut(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=ji(n),s=an(a,{tabbable:r,accept:i},n);s.currentNode=n[n.length-1].nextElementSibling;let o=s.previousNode();return o&&Ut(o,!0),o}}}const p$=["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]"],VL=p$.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";p$.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const WL=p$.join(':not([hidden]):not([tabindex="-1"]),');function ji(e){return e[0].parentElement}function co(e){let t=Ge.getTreeNode(_e);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function UL(e,t){let n=y.useRef(),r=y.useRef();he(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const a=ye(i?i[0]:void 0);let s=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!co(e)||u.isComposing)return;let c=a.activeElement,d=e.current;if(!d||!St(c,d))return;let f=ji(d),h=an(f,{tabbable:!0},d);if(!c)return;h.currentNode=c;let p=u.shiftKey?h.previousNode():h.nextNode();p||(h.currentNode=u.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,p=u.shiftKey?h.previousNode():h.nextNode()),u.preventDefault(),p&&Ut(p,!0)},o=u=>{(!_e||Jc(_e,e))&&St(u.target,e.current)?(_e=e,n.current=u.target):co(e)&&!Qc(u.target,e)?n.current?n.current.focus():_e&&_e.current&&ed(_e.current):co(e)&&(n.current=u.target)},l=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(a.activeElement&&co(e)&&!Qc(a.activeElement,e))if(_e=e,a.body.contains(u.target)){var c;n.current=u.target,(c=n.current)===null||c===void 0||c.focus()}else _e.current&&ed(_e.current)})};return a.addEventListener("keydown",s,!1),a.addEventListener("focusin",o,!1),i==null||i.forEach(u=>u.addEventListener("focusin",o,!1)),i==null||i.forEach(u=>u.addEventListener("focusout",l,!1)),()=>{a.removeEventListener("keydown",s,!1),a.removeEventListener("focusin",o,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",o,!1)),i==null||i.forEach(u=>u.removeEventListener("focusout",l,!1))}},[e,t]),he(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function e7(e){return Qc(e)}function St(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Qc(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ge.traverse(Ge.getTreeNode(t)))if(n&&St(e,n.current))return!0;return!1}function HL(e){return Qc(e,_e)}function Jc(e,t){var n;let r=(n=Ge.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Ut(e,t=!1){if(e!=null&&!t)try{Xc(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function ed(e,t=!0){let n=e[0].previousElementSibling,r=ji(e),i=an(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();t&&!a&&(r=ji(e),i=an(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),Ut(a)}function KL(e,t){const n=_.useRef(t);y.useEffect(()=>{if(n.current){_e=e;const r=ye(e.current?e.current[0]:void 0);!St(r.activeElement,_e.current)&&e.current&&ed(e.current)}n.current=!1},[e])}function YL(e,t,n){he(()=>{if(t||n)return;let r=e.current;const i=ye(r?r[0]:void 0);let a=s=>{let o=s.target;St(o,e.current)?_e=e:e7(o)||(_e=null)};return i.addEventListener("focusin",a,!1),r==null||r.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),r==null||r.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,t,n])}function qL(e){let t=Ge.getTreeNode(_e);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function GL(e,t,n){const r=y.useRef(typeof document<"u"?ye(e.current?e.current[0]:void 0).activeElement:null);he(()=>{let i=e.current;const a=ye(i?i[0]:void 0);if(!t||n)return;let s=()=>{(!_e||Jc(_e,e))&&St(a.activeElement,e.current)&&(_e=e)};return a.addEventListener("focusin",s,!1),i==null||i.forEach(o=>o.addEventListener("focusin",s,!1)),()=>{a.removeEventListener("focusin",s,!1),i==null||i.forEach(o=>o.removeEventListener("focusin",s,!1))}},[e,n]),he(()=>{const i=ye(e.current?e.current[0]:void 0);if(!t)return;let a=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!co(e)||s.isComposing)return;let o=i.activeElement;if(!St(o,e.current))return;let l=Ge.getTreeNode(e);if(!l)return;let u=l.nodeToRestore,c=an(i.body,{tabbable:!0});c.currentNode=o;let d=s.shiftKey?c.previousNode():c.nextNode();if((!u||!i.body.contains(u)||u===i.body)&&(u=void 0,l.nodeToRestore=void 0),(!d||!St(d,e.current))&&u){c.currentNode=u;do d=s.shiftKey?c.previousNode():c.nextNode();while(St(d,e.current));s.preventDefault(),s.stopPropagation(),d?Ut(d,!0):e7(u)?Ut(u,!0):o.blur()}};return n||i.addEventListener("keydown",a,!0),()=>{n||i.removeEventListener("keydown",a,!0)}},[e,t,n]),he(()=>{const i=ye(e.current?e.current[0]:void 0);if(!t)return;let a=Ge.getTreeNode(e);if(a){var s;return a.nodeToRestore=(s=r.current)!==null&&s!==void 0?s:void 0,()=>{let o=Ge.getTreeNode(e);if(!o)return;let l=o.nodeToRestore;if(t&&l&&(St(i.activeElement,e.current)||i.activeElement===i.body&&qL(e))){let u=Ge.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let c=u.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){Ut(c.nodeToRestore);return}c=c.parent}for(c=u.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Ge.getTreeNode(c.scopeRef)){ed(c.scopeRef.current,!0);return}c=c.parent}}})}}}},[e,t])}function an(e,t,n){let r=t!=null&&t.tabbable?WL:VL,i=ye(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(a)?NodeFilter.FILTER_REJECT:a.matches(r)&&J8(a)&&(!n||St(a,n))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function Pf(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:s=t.wrap,accept:o=t.accept}=n,l=i||ye(r).activeElement,u=an(r,{tabbable:a,accept:o});r.contains(l)&&(u.currentNode=l);let c=u.nextNode();return!c&&s&&(u.currentNode=r,c=u.nextNode()),c&&Ut(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:s=t.wrap,accept:o=t.accept}=n,l=i||ye(r).activeElement,u=an(r,{tabbable:a,accept:o});if(r.contains(l))u.currentNode=l;else{let d=Oh(u);return d&&Ut(d,!0),d??null}let c=u.previousNode();if(!c&&s){u.currentNode=r;let d=Oh(u);if(!d)return null;c=d}return c&&Ut(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=an(r,{tabbable:i,accept:a}).nextNode();return o&&Ut(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,s=an(r,{tabbable:i,accept:a}),o=Oh(s);return o&&Ut(o,!0),o??null}}}function Oh(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class m${get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new h0({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&St(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new m$;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new h0({scopeRef:null}),this.fastMap.set(null,this.root)}}class h0{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Ge=new m$;function ul(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=y.useRef({isFocused:!1,isFocusVisible:t||X8()}),[a,s]=y.useState(!1),[o,l]=y.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=y.useCallback(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),c=y.useCallback(h=>{i.current.isFocused=h,s(h),u()},[u]);FL(h=>{i.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:d}=K8({isDisabled:r,onFocusChange:c}),{focusWithinProps:f}=Ts({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:o,focusProps:r?f:d}}function t7(e){let{children:t,focusClass:n,focusRingClass:r}=e,{isFocused:i,isFocusVisible:a,focusProps:s}=ul(e),o=_.Children.only(t);return _.cloneElement(o,de(o.props,{...s,className:gf({[n||""]:i,[r||""]:a})}))}let ZL=_.createContext(null);function XL(e){let t=y.useContext(ZL)||{};u$(t,e);let{ref:n,...r}=t;return r}function QL(e,t){let{focusProps:n}=K8(e),{keyboardProps:r}=IL(e),i=de(n,r),a=XL(t),s=e.isDisabled?{}:a,o=y.useRef(e.autoFocus);return y.useEffect(()=>{o.current&&t.current&&Xc(t.current),o.current=!1},[t]),{focusableProps:de({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function JL(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=Zn(t);let s=Zn(),o={};n?(r=r?`${s} ${r}`:s,o={id:s,htmlFor:a==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Fl({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:o,fieldProps:l}}function n7(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:s}=JL(e),o=Kc([!!t,!!n,r,i]),l=Kc([!!t,!!n,r,i]);return s=de(s,{"aria-describedby":[o,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:s,descriptionProps:{id:o},errorMessageProps:{id:l}}}function eN(e,t){e=oi(e,"text");let{children:n,...r}=e,{styleProps:i}=st(r),a=In(t);return _.createElement("span",{...Xt(r),...i,ref:a},n)}const tN=y.forwardRef(eN);function r7(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:s,onPressUp:o,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:f,target:h,rel:p,type:g="button"}=e,b;n==="button"?b={type:g,disabled:r}:b={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:f,target:n==="a"?h:void 0,type:n==="input"?g:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?p:void 0};let{pressProps:v,isPressed:m}=f$({onPressStart:a,onPressEnd:s,onPressChange:l,onPress:i,onPressUp:o,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:$}=QL(e,t);c&&($.tabIndex=r?-1:$.tabIndex);let w=de($,v,Xt(e,{labelable:!0}));return{isPressed:m,buttonProps:de(b,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:D=>{d&&(d(D),console.warn("onClick is deprecated, please use onPress"))}})}}var i7={};i7={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var a7={};a7={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var s7={};s7={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var o7={};o7={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var l7={};l7={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var u7={};u7={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var c7={};c7={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var d7={};d7={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var f7={};f7={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var h7={};h7={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var p7={};p7={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var m7={};m7={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var g7={};g7={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var v7={};v7={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var b7={};b7={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var y7={};y7={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var $7={};$7={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var x7={};x7={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var w7={};w7={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var D7={};D7={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var _7={};_7={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var E7={};E7={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var S7={};S7={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var C7={};C7={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var k7={};k7={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var P7={};P7={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var T7={};T7={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var R7={};R7={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var M7={};M7={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var A7={};A7={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var F7={};F7={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var O7={};O7={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var B7={};B7={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var I7={};I7={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Ol={};Ol={"ar-AE":i7,"bg-BG":a7,"cs-CZ":s7,"da-DK":o7,"de-DE":l7,"el-GR":u7,"en-US":c7,"es-ES":d7,"et-EE":f7,"fi-FI":h7,"fr-FR":p7,"he-IL":m7,"hr-HR":g7,"hu-HU":v7,"it-IT":b7,"ja-JP":y7,"ko-KR":$7,"lt-LT":x7,"lv-LV":w7,"nb-NO":D7,"nl-NL":_7,"pl-PL":E7,"pt-BR":S7,"pt-PT":C7,"ro-RO":k7,"ru-RU":P7,"sk-SK":T7,"sl-SI":R7,"sr-SP":M7,"sv-SE":A7,"tr-TR":F7,"uk-UA":O7,"zh-CN":B7,"zh-TW":I7};function L7(e){return e&&e.__esModule?e.default:e}const g$=new WeakMap;function cl(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function nN(e){let t=_n(L7(Ol),"@react-aria/calendar"),n,r;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=e.value;let i=$n({weekday:"long",month:"long",year:"numeric",day:"numeric",era:cl(n)||cl(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return y.useMemo(()=>{if(!a&&n&&r)if(Ze(n,r)){let s=i.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:s})}else{let s=m0(i,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:s})}return""},[n,r,a,e.timeZone,t,i])}function p0(e,t,n,r){let i=_n(L7(Ol),"@react-aria/calendar"),a=cl(e)||cl(t),s=$n({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),o=$n({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return y.useMemo(()=>{if(Ze(e,Ji(e))){if(Ze(t,Nc(e)))return s.format(e.toDate(n));if(Ze(t,Nc(t)))return r?m0(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))}return r?m0(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))},[e,t,s,o,i,n,r])}function m0(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),s=-1;for(let u=0;u<a.length;u++){let c=a[u];if(c.source==="shared"&&c.type==="literal")s=u;else if(c.source==="endRange")break}let o="",l="";for(let u=0;u<a.length;u++)u<s?o+=a[u].value:u>s&&(l+=a[u].value);return t.format("dateRange",{startDate:o,endDate:l})}const N7=7e3;let Mo=null;function g0(e,t="assertive",n=N7){Mo||(Mo=new iN),Mo.announce(e,t,n)}function rN(e){Mo&&Mo.clear(e)}class iN{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=N7){if(!this.node)return;let i=document.createElement("div");i.textContent=t,n==="assertive"?this.assertiveLog.appendChild(i):this.politeLog.appendChild(i),t!==""&&setTimeout(()=>{i.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function aN(e){return e&&e.__esModule?e.default:e}function sN(e,t){let n=_n(aN(Ol),"@react-aria/calendar"),r=Xt(e),i=p0(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=p0(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);U2(()=>{t.isFocused||g0(a)},[a]);let s=nN(t);U2(()=>{s&&g0(s,"polite",4e3)},[s]);let o=Kc([!!e.errorMessage,e.isInvalid,e.validationState]);g$.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:o,selectedDateDescription:s});let[l,u]=y.useState(!1),c=e.isDisabled||t.isNextVisibleRangeInvalid();c&&l&&(u(!1),t.setFocused(!0));let[d,f]=y.useState(!1),h=e.isDisabled||t.isPreviousVisibleRangeInvalid();h&&d&&(f(!1),t.setFocused(!0));let p=Fl({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:de(r,p,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:c,onFocusChange:u},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:h,onFocusChange:f},errorMessageProps:{id:o},title:i}}function oN(e,t,n){let r=sN(e,t),i=y.useRef(!1),a=y.useRef(typeof window<"u"?window:null);return is(a,"pointerdown",o=>{i.current=o.width===0&&o.height===0}),is(a,"pointerup",o=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=o.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=o=>{n.current&&(!o.relatedTarget||!n.current.contains(o.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},is(n,"touchmove",o=>{t.isDragging&&o.preventDefault()},{passive:!1,capture:!0}),r}function lN(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=Qe(),a=h=>{switch(h.key){case"Enter":case" ":h.preventDefault(),t.selectFocusedDate();break;case"PageUp":h.preventDefault(),h.stopPropagation(),t.focusPreviousSection(h.shiftKey);break;case"PageDown":h.preventDefault(),h.stopPropagation(),t.focusNextSection(h.shiftKey);break;case"End":h.preventDefault(),h.stopPropagation(),t.focusSectionEnd();break;case"Home":h.preventDefault(),h.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":h.preventDefault(),h.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":h.preventDefault(),h.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":h.preventDefault(),h.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":h.preventDefault(),h.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(h.preventDefault(),t.setAnchorDate(null));break}},s=p0(n,r,t.timeZone,!0),{ariaLabel:o,ariaLabelledBy:l}=g$.get(t),u=Fl({"aria-label":[o,s].filter(Boolean).join(", "),"aria-labelledby":l}),c=$n({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:d}=Qe(),f=y.useMemo(()=>{let h=il(Rl(t.timeZone),d);return[...new Array(7).keys()].map(p=>{let b=h.add({days:p}).toDate(t.timeZone);return c.format(b)})},[d,t.timeZone,c]);return{gridProps:de(u,{role:"grid","aria-readonly":t.isReadOnly||null,"aria-disabled":t.isDisabled||null,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:a,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:f}}function uN(e){return e&&e.__esModule?e.default:e}function cN(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:s}=g$.get(t),o=_n(uN(Ol),"@react-aria/calendar"),l=$n({weekday:"long",day:"numeric",month:"long",year:"numeric",era:cl(r),timeZone:t.timeZone}),u=t.isSelected(r),c=t.isCellFocused(r);i=i||t.isCellDisabled(r);let d=t.isCellUnavailable(r),f=!i&&!d,h=t.isValueInvalid&&("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&Ze(t.value,r));h&&(u=!0),r=L8(r,Zm);let p=y.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),g=t8(r,t.timeZone),b=y.useMemo(()=>{let E="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(Ze(r,t.value.start)||Ze(r,t.value.end))&&(E=s+", "),E+=l.format(p),g?E=o.format(u?"todayDateSelected":"todayDate",{date:E}):u&&(E=o.format("dateSelected",{date:E})),t.minValue&&Ze(r,t.minValue)?E+=", "+o.format("minimumDate"):t.maxValue&&Ze(r,t.maxValue)&&(E+=", "+o.format("maximumDate")),E},[l,p,o,u,g,r,t,s]),v="";"anchorDate"in t&&c&&!t.isReadOnly&&f&&(t.anchorDate?v=o.format("finishRangeSelectionPrompt"):v=o.format("startRangeSelectionPrompt"));let m=c$(v),$=y.useRef(!1),w=y.useRef(!1),D=y.useRef(null),{pressProps:S,isPressed:k}=f$({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!f||t.isReadOnly,onPressStart(E){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(E.pointerType==="mouse"||E.pointerType==="touch")){if(t.highlightedRange&&!h){if(Ze(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),w.current=!0;return}else if(Ze(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),w.current=!0;return}}let A=()=>{t.setDragging(!0),D.current=null,t.selectDate(r),t.setFocusedDate(r),$.current=!0};E.pointerType==="touch"?D.current=setTimeout(A,200):A()}},onPressEnd(){w.current=!1,$.current=!1,clearTimeout(D.current),D.current=null},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(E){if(!t.isReadOnly&&("anchorDate"in t&&D.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(w.current)t.setAnchorDate(r);else if(t.anchorDate&&!$.current)t.selectDate(r),t.setFocusedDate(r);else if(E.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let A=r.add({days:1});t.isInvalid(A)&&(A=r.subtract({days:1})),t.isInvalid(A)||t.setFocusedDate(A)}else E.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),x=null;i||(x=Ze(r,t.focusedDate)?0:-1),y.useEffect(()=>{c&&n.current&&(Wr(n.current),Q8()!=="pointer"&&document.activeElement===n.current&&I8(n.current,{containingElement:_f(n.current)}))},[c,n]);let T=$n({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),P=y.useMemo(()=>T.formatToParts(p).find(E=>E.type==="day").value,[T,p]);return{cellProps:{role:"gridcell","aria-disabled":!f||null,"aria-selected":u||null,"aria-invalid":h||null},buttonProps:de(S,{onFocus(){i||t.setFocusedDate(r)},tabIndex:x,role:"button","aria-disabled":!f||null,"aria-label":b,"aria-invalid":h||null,"aria-describedby":[h?a:null,m["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(E){"highlightDate"in t&&(E.pointerType!=="touch"||t.isDragging)&&f&&t.highlightDate(r)},onPointerDown(E){"releasePointerCapture"in E.target&&E.target.releasePointerCapture(E.pointerId)},onContextMenu(E){E.preventDefault()}}),isPressed:k,isFocused:c,isSelected:u,isDisabled:i,isUnavailable:d,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:h,formattedDate:P}}function dN(e,t,n){let{validationBehavior:r,focus:i}=e;he(()=>{if(r==="native"&&(n!=null&&n.current)){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(hN(n.current))}});let a=pt(()=>{t.resetValidation()}),s=pt(l=>{var u;t.displayValidation.isInvalid||t.commitValidation();let c=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!l.defaultPrevented&&n&&c&&pN(c)===n.current){var d;i?i():(d=n.current)===null||d===void 0||d.focus(),RL("keyboard")}l.preventDefault()}),o=pt(()=>{t.commitValidation()});y.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let u=l.form;return l.addEventListener("invalid",s),l.addEventListener("change",o),u==null||u.addEventListener("reset",a),()=>{l.removeEventListener("invalid",s),l.removeEventListener("change",o),u==null||u.removeEventListener("reset",a)}},[n,s,o,a,r])}function fN(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function hN(e){return{isInvalid:!e.validity.valid,validationDetails:fN(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function pN(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const Tf={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},j7={...Tf,customError:!0,valid:!1},Oi={isInvalid:!1,validationDetails:Tf,validationErrors:[]},mN=y.createContext({}),td="__formValidationState"+Date.now();function z7(e){if(e[td]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[td];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return gN(e)}function gN(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:s,validationBehavior:o="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:j7}:null,u=y.useMemo(()=>s5(vN(s,i)),[s,i]);a!=null&&a.validationDetails.valid&&(a=null);let c=y.useContext(mN),d=y.useMemo(()=>r?Array.isArray(r)?r.flatMap(P=>v0(c[P])):v0(c[r]):[],[c,r]),[f,h]=y.useState(c),[p,g]=y.useState(!1);c!==f&&(h(c),g(!1));let b=y.useMemo(()=>s5(p?[]:d),[p,d]),v=y.useRef(Oi),[m,$]=y.useState(Oi),w=y.useRef(Oi),D=()=>{if(!S)return;k(!1);let P=u||a||v.current;Bh(P,w.current)||(w.current=P,$(P))},[S,k]=y.useState(!1);return y.useEffect(D),{realtimeValidation:l||b||u||a||Oi,displayValidation:o==="native"?l||b||m:l||b||u||a||m,updateValidation(P){o==="aria"&&!Bh(m,P)?$(P):v.current=P},resetValidation(){let P=Oi;Bh(P,w.current)||(w.current=P,$(P)),o==="native"&&k(!1),g(!0)},commitValidation(){o==="native"&&k(!0),g(!0)}}}function v0(e){return e?Array.isArray(e)?e:[e]:[]}function vN(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return v0(n)}return[]}function s5(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:j7}:null}function Bh(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function nd(...e){let t=new Set,n=!1,r={...Tf};for(let s of e){var i,a;for(let o of s.validationErrors)t.add(o);n||(n=s.isInvalid);for(let o in r)(i=r)[a=o]||(i[a]=s.validationDetails[o])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}const Ka={top:"top",bottom:"top",left:"left",right:"left"},rd={top:"bottom",bottom:"top",left:"right",right:"left"},bN={top:"left",left:"top"},b0={top:"height",left:"width"},V7={width:"totalWidth",height:"totalHeight"},vu={};let Lt=typeof document<"u"&&window.visualViewport;function o5(e){let t=0,n=0,r=0,i=0,a=0,s=0,o={},l=(Lt==null?void 0:Lt.scale)>1;if(e.tagName==="BODY"){let d=document.documentElement;r=d.clientWidth,i=d.clientHeight;var u;t=(u=Lt==null?void 0:Lt.width)!==null&&u!==void 0?u:r;var c;n=(c=Lt==null?void 0:Lt.height)!==null&&c!==void 0?c:i,o.top=d.scrollTop||e.scrollTop,o.left=d.scrollLeft||e.scrollLeft,Lt&&(a=Lt.offsetTop,s=Lt.offsetLeft)}else({width:t,height:n,top:a,left:s}=as(e)),o.top=e.scrollTop,o.left=e.scrollLeft,r=t,i=n;return T8()&&(e.tagName==="BODY"||e.tagName==="HTML")&&l&&(o.top=0,o.left=0,a=Lt.pageTop,s=Lt.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:i,scroll:o,top:a,left:s}}function yN(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function l5(e,t,n,r,i,a,s){let o=i.scroll[e],l=r[b0[e]],u=r.scroll[Ka[e]]+a,c=l+r.scroll[Ka[e]]-a,d=t-o+s[e]-r[Ka[e]],f=t-o+n+s[e]-r[Ka[e]];return d<u?u-d:f>c?Math.max(c-f,u-d):0}function $N(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function u5(e){if(vu[e])return vu[e];let[t,n]=e.split(" "),r=Ka[t]||"right",i=bN[r];Ka[n]||(n="center");let a=b0[r],s=b0[i];return vu[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:s},vu[e]}function Ih(e,t,n,r,i,a,s,o,l,u){let{placement:c,crossPlacement:d,axis:f,crossAxis:h,size:p,crossSize:g}=r,b={};b[h]=e[h],d==="center"?b[h]+=(e[g]-n[g])/2:d!==h&&(b[h]+=e[g]-n[g]),b[h]+=a;const v=e[h]-n[g]+l+u,m=e[h]+e[g]-l-u;if(b[h]=s0(b[h],v,m),c===f){const $=o?s[p]:t[V7[p]];b[rd[f]]=Math.floor($-e[f]+i)}else b[f]=Math.floor(e[f]+e[p]+i);return b}function xN(e,t,n,r,i,a,s,o){const l=r?n.height:t[V7.height];let u=e.top!=null?n.top+e.top:n.top+(l-e.bottom-s),c=o!=="top"?Math.max(0,t.height+t.top+t.scroll.top-u-(i.top+i.bottom+a)):Math.max(0,u+s-(t.top+t.scroll.top)-(i.top+i.bottom+a));return Math.min(t.height-a*2,c)}function c5(e,t,n,r,i,a){let{placement:s,axis:o,size:l}=a;return s===o?Math.max(0,n[o]-e[o]-e.scroll[o]+t[o]-r[o]-r[rd[o]]-i):Math.max(0,e[l]+e[o]+e.scroll[o]-t[o]-n[o]-n[l]-r[o]-r[rd[o]]-i)}function wN(e,t,n,r,i,a,s,o,l,u,c,d,f,h,p,g){let b=u5(e),{size:v,crossAxis:m,crossSize:$,placement:w,crossPlacement:D}=b,S=Ih(t,o,n,b,c,d,u,f,p,g),k=c,x=c5(o,u,t,i,a+c,b);if(s&&r[v]>x){let B=u5(`${rd[w]} ${D}`),N=Ih(t,o,n,B,c,d,u,f,p,g);c5(o,u,t,i,a+c,B)>x&&(b=B,S=N,k=c)}let T="bottom";b.axis==="top"?b.placement==="top"?T="top":b.placement==="bottom"&&(T="bottom"):b.crossAxis==="top"&&(b.crossPlacement==="top"?T="bottom":b.crossPlacement==="bottom"&&(T="top"));let P=l5(m,S[m],n[$],o,l,a,u);S[m]+=P;let E=xN(S,o,u,f,i,a,n.height,T);h&&h<E&&(E=h),n.height=Math.min(n.height,E),S=Ih(t,o,n,b,k,d,u,f,p,g),P=l5(m,S[m],n[$],o,l,a,u),S[m]+=P;let A={},R=t[m]+.5*t[$]-S[m];const M=p/2+g,z=n[$]-p/2-g,O=t[m]-S[m]+p/2,C=t[m]+t[$]-S[m]-p/2,F=s0(R,O,C);return A[m]=s0(F,M,z),{position:S,maxHeight:E,arrowOffsetLeft:A.left,arrowOffsetTop:A.top,placement:b.placement}}function DN(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:s,boundaryElement:o,offset:l,crossOffset:u,maxHeight:c,arrowSize:d=0,arrowBoundaryOffset:f=0}=e,h=r instanceof HTMLElement?_N(r):document.documentElement,p=h===document.documentElement;const g=window.getComputedStyle(h).position;let b=!!g&&g!=="static",v=p?as(n):d5(n,h);if(!p){let{marginTop:x,marginLeft:T}=window.getComputedStyle(n);v.top+=parseInt(x,10)||0,v.left+=parseInt(T,10)||0}let m=as(r),$=$N(r);m.width+=$.left+$.right,m.height+=$.top+$.bottom;let w=yN(i),D=o5(o),S=o5(h),k=o.tagName==="BODY"?as(h):d5(h,o);return h.tagName==="HTML"&&o.tagName==="BODY"&&(S.scroll.top=0,S.scroll.left=0),wN(t,v,m,w,$,a,s,D,S,k,l,u,b,c,d,f)}function as(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:s,clientTop:o,clientLeft:l}=document.documentElement;return{top:t+a-o,left:n+s-l,width:r,height:i}}function d5(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:a,width:s,height:o}=e.getBoundingClientRect();r={top:i,left:a,width:s,height:o}}else{r=as(e);let i=as(t),a=window.getComputedStyle(t);i.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function _N(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!f5(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!f5(t);)t=t.parentElement;return t||document.documentElement}function f5(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const W7=new WeakMap;function EN(e){let{triggerRef:t,isOpen:n,onClose:r}=e;y.useEffect(()=>{if(!n||r===null)return;let i=a=>{let s=a.target;if(!t.current||s instanceof Node&&!s.contains(t.current))return;let o=r||W7.get(t.current);o&&o()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let Ke=typeof document<"u"&&window.visualViewport;function SN(e){let{direction:t}=Qe(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:a=i,placement:s="bottom",containerPadding:o=12,shouldFlip:l=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:c=0,crossOffset:d=0,shouldUpdatePosition:f=!0,isOpen:h=!0,onClose:p,maxHeight:g,arrowBoundaryOffset:b=0}=e,[v,m]=y.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),$=[f,s,i.current,r.current,a.current,o,l,u,c,d,h,t,g,b,n],w=y.useRef(Ke==null?void 0:Ke.scale);y.useEffect(()=>{h&&(w.current=Ke==null?void 0:Ke.scale)},[h]);let D=y.useCallback(()=>{if(f===!1||!h||!i.current||!r.current||!a.current||!u||(Ke==null?void 0:Ke.scale)!==w.current)return;let x=i.current;if(!g&&i.current){var T;x.style.top="0px",x.style.bottom="";var P;x.style.maxHeight=((P=(T=window.visualViewport)===null||T===void 0?void 0:T.height)!==null&&P!==void 0?P:window.innerHeight)+"px"}let E=DN({placement:kN(s,t),overlayNode:i.current,targetNode:r.current,scrollNode:a.current,padding:o,shouldFlip:l,boundaryElement:u,offset:c,crossOffset:d,maxHeight:g,arrowSize:n,arrowBoundaryOffset:b});x.style.top="",x.style.bottom="",Object.keys(E.position).forEach(A=>x.style[A]=E.position[A]+"px"),x.style.maxHeight=E.maxHeight!=null?E.maxHeight+"px":void 0,m(E)},$);he(D,$),CN(D),O8({ref:i,onResize:D});let S=y.useRef(!1);he(()=>{let x,T=()=>{S.current=!0,clearTimeout(x),x=setTimeout(()=>{S.current=!1},500),D()},P=()=>{S.current&&T()};return Ke==null||Ke.addEventListener("resize",T),Ke==null||Ke.addEventListener("scroll",P),()=>{Ke==null||Ke.removeEventListener("resize",T),Ke==null||Ke.removeEventListener("scroll",P)}},[D]);let k=y.useCallback(()=>{S.current||p()},[p,S]);return EN({triggerRef:r,isOpen:h,onClose:p&&k}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...v.position,maxHeight:v.maxHeight}},placement:v.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:v.arrowOffsetLeft,top:v.arrowOffsetTop}},updatePosition:D}}function CN(e){he(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function kN(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const tr=[];function U7(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:o}=e;y.useEffect(()=>(i&&tr.push(t),()=>{let p=tr.indexOf(t);p>=0&&tr.splice(p,1)}),[i,t]);let l=()=>{tr[tr.length-1]===t&&n&&n()},u=p=>{(!o||o(p.target))&&tr[tr.length-1]===t&&(p.stopPropagation(),p.preventDefault())},c=p=>{(!o||o(p.target))&&(tr[tr.length-1]===t&&(p.stopPropagation(),p.preventDefault()),l())},d=p=>{p.key==="Escape"&&!s&&!p.nativeEvent.isComposing&&(p.stopPropagation(),p.preventDefault(),l())};BL({ref:t,onInteractOutside:a&&i?c:null,onInteractOutsideStart:u});let{focusWithinProps:f}=Ts({isDisabled:!r,onBlurWithin:p=>{!p.relatedTarget||HL(p.relatedTarget)||(!o||o(p.relatedTarget))&&n()}}),h=p=>{p.target===p.currentTarget&&p.preventDefault()};return{overlayProps:{onKeyDown:d,...f},underlayProps:{onPointerDown:h}}}function PN(e,t,n){let{type:r}=e,{isOpen:i}=t;y.useEffect(()=>{n&&n.current&&W7.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let s=Zn();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?s:null,onPress:t.toggle},overlayProps:{id:s}}}const Lh=typeof document<"u"&&window.visualViewport,TN=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let bu=0,Nh;function H7(e={}){let{isDisabled:t}=e;he(()=>{if(!t)return bu++,bu===1&&(Df()?Nh=MN():Nh=RN()),()=>{bu--,bu===0&&Nh()}},[t])}function RN(){return ol(Ya(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Ya(document.documentElement,"overflow","hidden"))}function MN(){let e,t,n=u=>{e=_f(u.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Ya(e,"overscrollBehavior","contain"))},r=u=>{if(!e||e===document.documentElement||e===document.body){u.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&u.preventDefault()},i=u=>{let c=u.target;p5(c)&&c!==document.activeElement&&(u.preventDefault(),o(),c.style.transform="translateY(-2000px)",c.focus(),requestAnimationFrame(()=>{c.style.transform=""})),t&&t()},a=u=>{let c=u.target;p5(c)&&(o(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",Lh&&(Lh.height<window.innerHeight?requestAnimationFrame(()=>{h5(c)}):Lh.addEventListener("resize",()=>h5(c),{once:!0}))}))},s=null,o=()=>{if(s)return;let u=()=>{window.scrollTo(0,0)},c=window.pageXOffset,d=window.pageYOffset;s=ol(Ws(window,"scroll",u),Ya(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Ya(document.documentElement,"overflow","hidden"),Ya(document.body,"marginTop",`-${d}px`),()=>{window.scrollTo(c,d)}),window.scrollTo(0,0)},l=ol(Ws(document,"touchstart",n,{passive:!1,capture:!0}),Ws(document,"touchmove",r,{passive:!1,capture:!0}),Ws(document,"touchend",i,{passive:!1,capture:!0}),Ws(document,"focus",a,!0));return()=>{t==null||t(),s==null||s(),l()}}function Ya(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Ws(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function h5(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=_f(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,i=e.getBoundingClientRect().top;i>r+e.clientHeight&&(n.scrollTop+=i-r)}e=n.parentElement}}function p5(e){return e instanceof HTMLInputElement&&!TN.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const y0=_.createContext(null);function AN(e){let{children:t}=e,n=y.useContext(y0),[r,i]=y.useState(0),a=y.useMemo(()=>({parent:n,modalCount:r,addModal(){i(s=>s+1),n&&n.addModal()},removeModal(){i(s=>s-1),n&&n.removeModal()}}),[n,r]);return _.createElement(y0.Provider,{value:a},t)}function FN(){let e=y.useContext(y0);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}var K7={};K7={dismiss:"تجاهل"};var Y7={};Y7={dismiss:"Отхвърляне"};var q7={};q7={dismiss:"Odstranit"};var G7={};G7={dismiss:"Luk"};var Z7={};Z7={dismiss:"Schließen"};var X7={};X7={dismiss:"Απόρριψη"};var Q7={};Q7={dismiss:"Dismiss"};var J7={};J7={dismiss:"Descartar"};var eE={};eE={dismiss:"Lõpeta"};var tE={};tE={dismiss:"Hylkää"};var nE={};nE={dismiss:"Rejeter"};var rE={};rE={dismiss:"התעלם"};var iE={};iE={dismiss:"Odbaci"};var aE={};aE={dismiss:"Elutasítás"};var sE={};sE={dismiss:"Ignora"};var oE={};oE={dismiss:"閉じる"};var lE={};lE={dismiss:"무시"};var uE={};uE={dismiss:"Atmesti"};var cE={};cE={dismiss:"Nerādīt"};var dE={};dE={dismiss:"Lukk"};var fE={};fE={dismiss:"Negeren"};var hE={};hE={dismiss:"Zignoruj"};var pE={};pE={dismiss:"Descartar"};var mE={};mE={dismiss:"Dispensar"};var gE={};gE={dismiss:"Revocare"};var vE={};vE={dismiss:"Пропустить"};var bE={};bE={dismiss:"Zrušiť"};var yE={};yE={dismiss:"Opusti"};var $E={};$E={dismiss:"Odbaci"};var xE={};xE={dismiss:"Avvisa"};var wE={};wE={dismiss:"Kapat"};var DE={};DE={dismiss:"Скасувати"};var _E={};_E={dismiss:"取消"};var EE={};EE={dismiss:"關閉"};var SE={};SE={"ar-AE":K7,"bg-BG":Y7,"cs-CZ":q7,"da-DK":G7,"de-DE":Z7,"el-GR":X7,"en-US":Q7,"es-ES":J7,"et-EE":eE,"fi-FI":tE,"fr-FR":nE,"he-IL":rE,"hr-HR":iE,"hu-HU":aE,"it-IT":sE,"ja-JP":oE,"ko-KR":lE,"lt-LT":uE,"lv-LV":cE,"nb-NO":dE,"nl-NL":fE,"pl-PL":hE,"pt-BR":pE,"pt-PT":mE,"ro-RO":gE,"ru-RU":vE,"sk-SK":bE,"sl-SI":yE,"sr-SP":$E,"sv-SE":xE,"tr-TR":wE,"uk-UA":DE,"zh-CN":_E,"zh-TW":EE};const m5={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function ON(e={}){let{style:t,isFocusable:n}=e,[r,i]=y.useState(!1),{focusWithinProps:a}=Ts({isDisabled:!n,onFocusWithinChange:o=>i(o)}),s=y.useMemo(()=>r?t:t?{...m5,...t}:m5,[r]);return{visuallyHiddenProps:{...a,style:s}}}function $0(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:s}=ON(e);return _.createElement(n,de(a,s),t)}function BN(e){return e&&e.__esModule?e.default:e}function id(e){let{onDismiss:t,...n}=e,r=_n(BN(SE),"@react-aria/overlays"),i=Fl(n,r.format("dismiss")),a=()=>{t&&t()};return _.createElement($0,null,_.createElement("button",{...i,tabIndex:-1,onClick:a,style:{width:1,height:1}}))}let Us=new WeakMap,fn=[];function CE(e,t=document.body){let n=new Set(e),r=new Set,i=l=>{for(let f of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(f);let u=f=>{if(n.has(f)||r.has(f.parentElement)&&f.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of n)if(f.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),d=u(l);if(d===NodeFilter.FILTER_ACCEPT&&a(l),d!==NodeFilter.FILTER_REJECT){let f=c.nextNode();for(;f!=null;)a(f),f=c.nextNode()}},a=l=>{var u;let c=(u=Us.get(l))!==null&&u!==void 0?u:0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),r.add(l),Us.set(l,c+1))};fn.length&&fn[fn.length-1].disconnect(),i(t);let s=new MutationObserver(l=>{for(let u of l)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(u.target))){for(let c of u.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of u.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&i(c)}});s.observe(t,{childList:!0,subtree:!0});let o={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return fn.push(o),()=>{s.disconnect();for(let l of r){let u=Us.get(l);u===1?(l.removeAttribute("aria-hidden"),Us.delete(l)):Us.set(l,u-1)}o===fn[fn.length-1]?(fn.pop(),fn.length&&fn[fn.length-1].observe()):fn.splice(fn.indexOf(o),1)}}function IN(e,t){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s,...o}=e,{overlayProps:l,underlayProps:u}=U7({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s},r),{overlayProps:c,arrowProps:d,placement:f}=SN({...o,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i?t.close:null});return H7({isDisabled:i||!t.isOpen}),he(()=>{if(t.isOpen&&!i&&r.current)return CE([r.current])},[i,t.isOpen,r]),{popoverProps:de(l,c),arrowProps:d,underlayProps:u,placement:f}}const LN=y.createContext({});function NN(){var e;return(e=y.useContext(LN))!==null&&e!==void 0?e:{}}const kE=_.createContext(null);function jN(e){let t=ca(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=y.useState(!1),s=y.useMemo(()=>({contain:i,setContain:a}),[i,a]),{getContainer:o}=NN();if(!e.portalContainer&&o&&(n=o()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=_.createElement(jL,{restoreFocus:!0,contain:i&&!r},l)),l=_.createElement(kE.Provider,{value:s},_.createElement(SL,null,l)),so.createPortal(l,n)}function PE(){let e=y.useContext(kE),t=e==null?void 0:e.setContain;he(()=>{t==null||t(!0)},[t])}function TE(e,t,n){let{overlayProps:r,underlayProps:i}=U7({...e,isOpen:t.isOpen,onClose:t.close},n);return H7({isDisabled:!t.isOpen}),PE(),y.useEffect(()=>{if(t.isOpen)return CE([n.current])},[t.isOpen,n]),{modalProps:de(r),underlayProps:i}}var RE={};RE={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var ME={};ME={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var AE={};AE={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var FE={};FE={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var OE={};OE={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var BE={};BE={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var IE={};IE={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var LE={};LE={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var NE={};NE={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var jE={};jE={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var zE={};zE={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var VE={};VE={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var WE={};WE={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var UE={};UE={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var HE={};HE={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var KE={};KE={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var YE={};YE={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var qE={};qE={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var GE={};GE={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var ZE={};ZE={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var XE={};XE={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var QE={};QE={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var JE={};JE={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var e9={};e9={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var t9={};t9={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var n9={};n9={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var r9={};r9={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var i9={};i9={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var a9={};a9={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var s9={};s9={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var o9={};o9={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var l9={};l9={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var u9={};u9={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var c9={};c9={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var Rf={};Rf={"ar-AE":RE,"bg-BG":ME,"cs-CZ":AE,"da-DK":FE,"de-DE":OE,"el-GR":BE,"en-US":IE,"es-ES":LE,"et-EE":NE,"fi-FI":jE,"fr-FR":zE,"he-IL":VE,"hr-HR":WE,"hu-HU":UE,"it-IT":HE,"ja-JP":KE,"ko-KR":YE,"lt-LT":qE,"lv-LV":GE,"nb-NO":ZE,"nl-NL":XE,"pl-PL":QE,"pt-BR":JE,"pt-PT":e9,"ro-RO":t9,"ru-RU":n9,"sk-SK":r9,"sl-SI":i9,"sr-SP":a9,"sv-SE":s9,"tr-TR":o9,"uk-UA":l9,"zh-CN":u9,"zh-TW":c9};function d9(e,t,n){let{direction:r}=Qe(),i=y.useMemo(()=>Pf(t),[t]),a=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},s=()=>{var l;let u=(l=window.event)===null||l===void 0?void 0:l.target,c=an(t.current,{tabbable:!0});if(u&&(c.currentNode=u,u=c.previousNode()),!u){let d;do d=c.lastChild(),d&&(u=d);while(d)}for(;u!=null&&u.hasAttribute("data-placeholder");){let d=c.previousNode();if(d&&d.hasAttribute("data-placeholder"))u=d;else break}u&&u.focus()},{pressProps:o}=f$({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&s()},onPress(l){l.pointerType!=="mouse"&&s()}});return de(o,{onKeyDown:a})}function zN(e){return e&&e.__esModule?e.default:e}const f9=new WeakMap,nc="__role_"+Date.now(),h9="__focusManager_"+Date.now();function p9(e,t,n){var r;let{isInvalid:i,validationErrors:a,validationDetails:s}=t.displayValidation,{labelProps:o,fieldProps:l,descriptionProps:u,errorMessageProps:c}=n7({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||a}),d=y.useRef(null),{focusWithinProps:f}=Ts({...e,onFocusWithin(P){var E;d.current=t.value,(E=e.onFocus)===null||E===void 0||E.call(e,P)},onBlurWithin:P=>{var E;t.confirmPlaceholder(),t.value!==d.current&&t.commitValidation(),(E=e.onBlur)===null||E===void 0||E.call(e,P)},onFocusWithinChange:e.onFocusChange}),h=_n(zN(Rf),"@react-aria/datepicker"),p=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",g=t.maxGranularity==="hour"?"time":"date",b=t.value?h.format(p,{[g]:t.formatValue({month:"long"})}):"",v=c$(b),m=e[nc]==="presentation"?l["aria-describedby"]:[v["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,$=e[h9],w=y.useMemo(()=>$||Pf(n),[$,n]),D=d9(t,n,e[nc]==="presentation");f9.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[o.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:m,focusManager:w});let S=y.useRef(e.autoFocus),k;e[nc]==="presentation"?k={role:"presentation"}:k=de(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":m}),y.useEffect(()=>{S.current&&w.focusFirst(),S.current=!1},[w]),ZI(e.inputRef,t.value,t.setValue),dN({...e,focus(){w.focusFirst()}},t,e.inputRef);let x={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||""};e.validationBehavior==="native"&&(x.type="text",x.hidden=!0,x.required=e.isRequired,x.onChange=()=>{});let T=Xt(e);return{labelProps:{...o,onClick:()=>{w.focusFirst()}},fieldProps:de(T,k,D,f,{onKeyDown(P){e.onKeyDown&&e.onKeyDown(P)},onKeyUp(P){e.onKeyUp&&e.onKeyUp(P)}}),inputProps:x,descriptionProps:u,errorMessageProps:c,isInvalid:i,validationErrors:a,validationDetails:s}}function VN(e,t,n){var r;let i=p9(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function WN(e){return e&&e.__esModule?e.default:e}function m9(){let{locale:e}=Qe(),t=J_(WN(Rf),"@react-aria/datepicker");return y.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new UN(e,t)}},[e,t])}class UN{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}var g9={};g9={Empty:"فارغ"};var v9={};v9={Empty:"Изпразни"};var b9={};b9={Empty:"Prázdné"};var y9={};y9={Empty:"Tom"};var $9={};$9={Empty:"Leer"};var x9={};x9={Empty:"Άδειο"};var w9={};w9={Empty:"Empty"};var D9={};D9={Empty:"Vacío"};var _9={};_9={Empty:"Tühjenda"};var E9={};E9={Empty:"Tyhjä"};var S9={};S9={Empty:"Vide"};var C9={};C9={Empty:"ריק"};var k9={};k9={Empty:"Prazno"};var P9={};P9={Empty:"Üres"};var T9={};T9={Empty:"Vuoto"};var R9={};R9={Empty:"空"};var M9={};M9={Empty:"비어 있음"};var A9={};A9={Empty:"Tuščias"};var F9={};F9={Empty:"Tukšs"};var O9={};O9={Empty:"Tom"};var B9={};B9={Empty:"Leeg"};var I9={};I9={Empty:"Pusty"};var L9={};L9={Empty:"Vazio"};var N9={};N9={Empty:"Vazio"};var j9={};j9={Empty:"Gol"};var z9={};z9={Empty:"Не заполнено"};var V9={};V9={Empty:"Prázdne"};var W9={};W9={Empty:"Prazen"};var U9={};U9={Empty:"Prazno"};var H9={};H9={Empty:"Tomt"};var K9={};K9={Empty:"Boş"};var Y9={};Y9={Empty:"Пусто"};var q9={};q9={Empty:"空"};var G9={};G9={Empty:"空白"};var Z9={};Z9={"ar-AE":g9,"bg-BG":v9,"cs-CZ":b9,"da-DK":y9,"de-DE":$9,"el-GR":x9,"en-US":w9,"es-ES":D9,"et-EE":_9,"fi-FI":E9,"fr-FR":S9,"he-IL":C9,"hr-HR":k9,"hu-HU":P9,"it-IT":T9,"ja-JP":R9,"ko-KR":M9,"lt-LT":A9,"lv-LV":F9,"nb-NO":O9,"nl-NL":B9,"pl-PL":I9,"pt-BR":L9,"pt-PT":N9,"ro-RO":j9,"ru-RU":z9,"sk-SK":V9,"sl-SI":W9,"sr-SP":U9,"sv-SE":H9,"tr-TR":K9,"uk-UA":Y9,"zh-CN":q9,"zh-TW":G9};function HN(e){return e&&e.__esModule?e.default:e}function KN(e){const t=y.useRef();let{value:n,textValue:r,minValue:i,maxValue:a,isDisabled:s,isReadOnly:o,isRequired:l,onIncrement:u,onIncrementPage:c,onDecrement:d,onDecrementPage:f,onDecrementToMin:h,onIncrementToMax:p}=e;const g=_n(HN(Z9),"@react-aria/spinbutton"),b=()=>clearTimeout(t.current);y.useEffect(()=>()=>b(),[]);let v=E=>{if(!(E.ctrlKey||E.metaKey||E.shiftKey||E.altKey||o))switch(E.key){case"PageUp":if(c){E.preventDefault(),c==null||c();break}case"ArrowUp":case"Up":u&&(E.preventDefault(),u==null||u());break;case"PageDown":if(f){E.preventDefault(),f==null||f();break}case"ArrowDown":case"Down":d&&(E.preventDefault(),d==null||d());break;case"Home":h&&(E.preventDefault(),h==null||h());break;case"End":p&&(E.preventDefault(),p==null||p());break}},m=y.useRef(!1),$=()=>{m.current=!0},w=()=>{m.current=!1},D=r===""?g.format("Empty"):(r||`${n}`).replace("-","−");y.useEffect(()=>{m.current&&(rN("assertive"),g0(D,"assertive"))},[D]);const S=pt(E=>{b(),u==null||u(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&S(60)},E)}),k=pt(E=>{b(),d==null||d(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&k(60)},E)});let x=E=>{E.preventDefault()},{addGlobalListener:T,removeAllGlobalListeners:P}=F8();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":D,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":s||void 0,"aria-readonly":o||void 0,"aria-required":l||void 0,onKeyDown:v,onFocus:$,onBlur:w},incrementButtonProps:{onPressStart:()=>{S(400),T(window,"contextmenu",x)},onPressEnd:()=>{b(),P()},onFocus:$,onBlur:w},decrementButtonProps:{onPressStart:()=>{k(400),T(window,"contextmenu",x)},onPressEnd:()=>{b(),P()},onFocus:$,onBlur:w}}}function YN(e,t,n){let r=y.useRef(""),{locale:i}=Qe(),a=m9(),{ariaLabel:s,ariaLabelledBy:o,ariaDescribedBy:l,focusManager:u}=f9.get(t),c=e.isPlaceholder?"":e.text,d=y.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),f=$n({month:"long",timeZone:d.timeZone}),h=$n({hour:"numeric",hour12:d.hour12,timeZone:d.timeZone});if(e.type==="month"&&!e.isPlaceholder){let C=f.format(t.dateValue);c=C!==c?`${c} – ${C}`:C}else e.type==="hour"&&!e.isPlaceholder&&(c=h.format(t.dateValue));let{spinButtonProps:p}=KN({value:e.value,textValue:c,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",t.setSegment(e.type,e.minValue)}}),g=y.useMemo(()=>new j8(i,{maximumFractionDigits:0}),[i]),b=()=>{if(e.text===e.placeholder&&u.focusPrevious(),g.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let C=e.text.slice(0,-1),F=g.parse(C);C=F===0?"":C,C.length===0||F===0?t.clearSegment(e.type):t.setSegment(e.type,F),r.current=C}else e.type==="dayPeriod"&&t.clearSegment(e.type)},v=C=>{if(C.key==="a"&&($s()?C.metaKey:C.ctrlKey)&&C.preventDefault(),!(C.ctrlKey||C.metaKey||C.shiftKey||C.altKey))switch(C.key){case"Backspace":case"Delete":C.preventDefault(),C.stopPropagation(),b();break}},{startsWith:m}=oL({sensitivity:"base"}),$=$n({hour:"numeric",hour12:!0}),w=y.useMemo(()=>{let C=new Date;return C.setHours(0),$.formatToParts(C).find(F=>F.type==="dayPeriod").value},[$]),D=y.useMemo(()=>{let C=new Date;return C.setHours(12),$.formatToParts(C).find(F=>F.type==="dayPeriod").value},[$]),S=$n({year:"numeric",era:"narrow",timeZone:"UTC"}),k=y.useMemo(()=>{if(e.type!=="era")return[];let C=Oe(new Je(1,1,1),t.calendar),F=t.calendar.getEras().map(N=>{let X=C.set({year:1,month:1,day:1,era:N}).toDate("UTC"),je=S.formatToParts(X).find($e=>$e.type==="era").value;return{era:N,formatted:je}}),B=qN(F.map(N=>N.formatted));if(B)for(let N of F)N.formatted=N.formatted.slice(B);return F},[S,t.calendar,e.type]),x=C=>{if(t.isDisabled||t.isReadOnly)return;let F=r.current+C;switch(e.type){case"dayPeriod":if(m(w,C))t.setSegment("dayPeriod",0);else if(m(D,C))t.setSegment("dayPeriod",12);else break;u.focusNext();break;case"era":{let B=k.find(N=>m(N.formatted,C));B&&(t.setSegment("era",B.era),u.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!g.isValidPartialNumber(F))return;let B=g.parse(F),N=B,X=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":B>11&&(N=g.parse(C));break;case"h12":X=!1,B>12&&(N=g.parse(C));break}e.value>=12&&B>1&&(B+=12)}else B>e.maxValue&&(N=g.parse(C));if(isNaN(B))return;let Q=N!==0||X;Q&&t.setSegment(e.type,N),+(B+"0")>e.maxValue||F.length>=String(e.maxValue).length?(r.current="",Q&&u.focusNext()):r.current=F;break}}},T=()=>{r.current="",I8(n.current,{containingElement:_f(n.current)}),window.getSelection().collapse(n.current)},P=y.useRef("");is(n,"beforeinput",C=>{switch(C.preventDefault(),C.inputType){case"deleteContentBackward":case"deleteContentForward":g.isValidPartialNumber(e.text)&&!t.isReadOnly&&b();break;case"insertCompositionText":P.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:C.data!=null&&x(C.data);break}}),is(n,"input",C=>{let{inputType:F,data:B}=C;switch(F){case"insertCompositionText":n.current.textContent=P.current,(m(w,B)||m(D,B))&&x(B);break}}),he(()=>{let C=n.current;return()=>{document.activeElement===C&&(u.focusPrevious()||u.focusNext())}},[n,u]);let E=Df()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},A=y.useMemo(()=>t.segments.find(C=>C.isEditable),[t.segments]);e!==A&&!t.isInvalid&&(l=void 0);let R=Zn(),M=!t.isDisabled&&!t.isReadOnly&&e.isEditable,z=e.type==="literal"?"":a.of(e.type),O=Fl({"aria-label":`${z}${s?`, ${s}`:""}${o?", ":""}`,"aria-labelledby":o});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:de(p,O,{id:R,...E,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":l,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:M,suppressContentEditableWarning:M,spellCheck:M?"false":void 0,autoCapitalize:M?"off":void 0,autoCorrect:M?"off":void 0,[parseInt(_.version,10)>=17?"enterKeyHint":"enterkeyhint"]:M?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!M?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:v,onFocus:T,style:{caretColor:"transparent"},onPointerDown(C){C.stopPropagation()},onMouseDown(C){C.stopPropagation()}})}}function qN(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function GN(e){return e&&e.__esModule?e.default:e}function ZN(e,t,n){var r,i;let a=_n(GN(Rf),"@react-aria/datepicker"),{isInvalid:s,validationErrors:o,validationDetails:l}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:f}=n7({...e,labelElementType:"span",isInvalid:s,errorMessage:e.errorMessage||o}),h=c["aria-labelledby"]||c.id,{locale:p}=Qe(),g=t.formatValue(p,{month:"long"}),b=g?a.format("selectedRangeDescription",{startDate:g.start,endDate:g.end}):"",v=c$(b),m={"aria-label":a.format("startDate"),"aria-labelledby":h},$={"aria-label":a.format("endDate"),"aria-labelledby":h},w=Zn(),D=Zn(),S=d9(t,n),k=[v["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=y.useMemo(()=>Pf(n,{accept:M=>M.id!==w}),[n,w]),T={[h9]:x,[nc]:"presentation","aria-describedby":k,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},P=Xt(e),{focusWithinProps:E}=Ts({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),A=y.useRef(Oi),R=y.useRef(Oi);return{groupProps:de(P,S,c,v,E,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":k,onKeyDown(M){t.isOpen||e.onKeyDown&&e.onKeyDown(M)},onKeyUp(M){t.isOpen||e.onKeyUp&&e.onKeyUp(M)}}),labelProps:{...u,onClick:()=>{x.focusFirst()}},buttonProps:{...v,id:w,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${w} ${h}`,"aria-describedby":k,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:D,"aria-labelledby":`${w} ${h}`},startFieldProps:{...m,...T,value:(r=t.value)===null||r===void 0?void 0:r.start,onChange:M=>t.setDateTime("start",M),autoFocus:e.autoFocus,name:e.startName,[td]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(M){A.current=M,t.updateValidation(nd(M,R.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...$,...T,value:(i=t.value)===null||i===void 0?void 0:i.end,onChange:M=>t.setDateTime("end",M),name:e.endName,[td]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(M){R.current=M,t.updateValidation(nd(A.current,M))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:d,errorMessageProps:f,calendarProps:{autoFocus:!0,value:t.dateRange,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:s,validationErrors:o,validationDetails:l}}function XN(e,t){let{role:n="dialog"}=e,r=Kc();r=e["aria-label"]?void 0:r;let i=y.useRef(!1);return y.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Xc(t.current);let a=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),Xc(t.current)),i.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),PE(),{dialogProps:{...Xt(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:a=>{i.current&&a.stopPropagation()}},titleProps:{id:r}}}function ss(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function x0(e,t,n,r,i){let a={};for(let o in t)a[o]=Math.floor(t[o]/2),a[o]>0&&t[o]%2===0&&a[o]--;let s=zi(e,t,n).subtract(a);return dl(e,s,t,n,r,i)}function zi(e,t,n,r,i){let a=e;return t.years?a=OB(e):t.months?a=Ji(e):t.weeks&&(a=il(e,n)),dl(e,a,t,n,r,i)}function w0(e,t,n,r,i){let a={...t};t.days?a.days--:t.weeks?a.weeks--:t.months?a.months--:t.years&&a.years--;let s=zi(e,t,n).subtract(a);return dl(e,s,t,n,r,i)}function dl(e,t,n,r,i,a){return i&&e.compare(i)>=0&&(t=Jy(t,zi(Zt(i),n,r))),a&&e.compare(a)<=0&&(t=Qy(t,w0(Zt(a),n,r))),t}function Rr(e,t,n){return t&&(e=Jy(e,Zt(t))),n&&(e=Qy(e,Zt(n))),e}function X9(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});if(e.compare(t)>=0)return e}function QN(e){let t=y.useMemo(()=>new ti(e.locale),[e.locale]),n=y.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:s,maxValue:o,selectionAlignment:l,isDateUnavailable:u,pageBehavior:c="visible"}=e,d=y.useMemo(()=>i(n.calendar),[i,n.calendar]),[f,h]=na(e.value,e.defaultValue,e.onChange),p=y.useMemo(()=>f?Oe(Zt(f),d):null,[f,d]),g=y.useMemo(()=>f&&"timeZone"in f?f.timeZone:n.timeZone,[f,n.timeZone]),b=y.useMemo(()=>e.focusedValue?Rr(Oe(Zt(e.focusedValue),d),s,o):void 0,[e.focusedValue,d,s,o]),v=y.useMemo(()=>Rr(e.defaultFocusedValue?Oe(Zt(e.defaultFocusedValue),d):p||Oe(Rl(g),d),s,o),[e.defaultFocusedValue,p,g,d,s,o]),[m,$]=na(b,v,e.onFocusChange),[w,D]=y.useState(()=>{switch(l){case"start":return zi(m,a,r,s,o);case"end":return w0(m,a,r,s,o);case"center":default:return x0(m,a,r,s,o)}}),[S,k]=y.useState(e.autoFocus||!1),x=y.useMemo(()=>{let C={...a};return C.days?C.days--:C.days=-1,w.add(C)},[w,a]),[T,P]=y.useState(d.identifier);if(d.identifier!==T){let C=Oe(m,d);D(x0(C,a,r,s,o)),$(C),P(d.identifier)}ss(m,s,o)?$(Rr(m,s,o)):m.compare(w)<0?D(w0(m,a,r,s,o)):m.compare(x)>0&&D(zi(m,a,r,s,o));function E(C){C=Rr(C,s,o),$(C)}function A(C){if(!e.isDisabled&&!e.isReadOnly){if(C===null){h(null);return}if(C=Rr(C,s,o),C=X9(C,w,u),!C)return;C=Oe(C,(f==null?void 0:f.calendar)||new At),f&&"hour"in f?h(f.set(C)):h(C)}}let R=y.useMemo(()=>p?u&&u(p)?!0:ss(p,s,o):!1,[p,u,s,o]),M=e.isInvalid||e.validationState==="invalid"||R,z=M?"invalid":null,O=y.useMemo(()=>c==="visible"?a:jh(a),[c,a]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:p,setValue:A,visibleRange:{start:w,end:x},minValue:s,maxValue:o,focusedDate:m,timeZone:g,validationState:z,isValueInvalid:M,setFocusedDate(C){E(C),k(!0)},focusNextDay(){E(m.add({days:1}))},focusPreviousDay(){E(m.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&E(m.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&E(m.subtract({weeks:1}))},focusNextPage(){let C=w.add(O);$(Rr(m.add(O),s,o)),D(zi(dl(m,C,O,r,s,o),O,r))},focusPreviousPage(){let C=w.subtract(O);$(Rr(m.subtract(O),s,o)),D(zi(dl(m,C,O,r,s,o),O,r))},focusSectionStart(){a.days?E(w):a.weeks?E(il(m,r)):(a.months||a.years)&&E(Ji(m))},focusSectionEnd(){a.days?E(x):a.weeks?E(LB(m,r)):(a.months||a.years)&&E(Nc(m))},focusNextSection(C){if(!C&&!a.days){E(m.add(jh(a)));return}a.days?this.focusNextPage():a.weeks?E(m.add({months:1})):(a.months||a.years)&&E(m.add({years:1}))},focusPreviousSection(C){if(!C&&!a.days){E(m.subtract(jh(a)));return}a.days?this.focusPreviousPage():a.weeks?E(m.subtract({months:1})):(a.months||a.years)&&E(m.subtract({years:1}))},selectFocusedDate(){A(m)},selectDate(C){A(C)},isFocused:S,setFocused:k,isInvalid(C){return ss(C,s,o)},isSelected(C){return p!=null&&Ze(C,p)&&!this.isCellDisabled(C)&&!this.isCellUnavailable(C)},isCellFocused(C){return S&&m&&Ze(C,m)},isCellDisabled(C){return e.isDisabled||C.compare(w)<0||C.compare(x)>0||this.isInvalid(C,s,o)},isCellUnavailable(C){return e.isDateUnavailable&&e.isDateUnavailable(C)},isPreviousVisibleRangeInvalid(){let C=w.subtract({days:1});return Ze(C,w)||this.isInvalid(C,s,o)},isNextVisibleRangeInvalid(){let C=x.add({days:1});return Ze(C,x)||this.isInvalid(C,s,o)},getDatesInWeek(C,F=w){let B=F.add({weeks:C}),N=[];B=il(B,r);let X=yf(B,r);for(let Q=0;Q<X;Q++)N.push(null);for(;N.length<7;){N.push(B);let Q=B.add({days:1});if(Ze(B,Q))break;B=Q}for(;N.length<7;)N.push(null);return N}}}function jh(e){let t={...e};for(let n in e)t[n]=1;return t}function JN(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:s={months:1},minValue:o,maxValue:l,...u}=e,[c,d]=na(t,n||null,r),[f,h]=y.useState(null),p="center";if(c&&c.start&&c.end){let F=x0(Zt(c.start),s,a,o,l).add(s).subtract({days:1});c.end.compare(F)>0&&(p="start")}let g=y.useRef(null),[b,v]=y.useState(null),m=y.useMemo(()=>Jy(o,b==null?void 0:b.start),[o,b]),$=y.useMemo(()=>Qy(l,b==null?void 0:b.end),[l,b]),w=QN({...u,value:c&&c.start,createCalendar:i,locale:a,visibleDuration:s,minValue:m,maxValue:$,selectionAlignment:p}),D=C=>{C&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(g.current={start:v5(C,w,-1),end:v5(C,w,1)},v(g.current)):(g.current=null,v(null))},[S,k]=y.useState(w.visibleRange);(!Zm(w.visibleRange.start,S.start)||!Zm(w.visibleRange.end,S.end))&&(D(f),k(w.visibleRange));let x=C=>{C?(h(C),D(C)):(h(null),D(null))},T=f?zh(f,w.focusedDate):c&&zh(c.start,c.end),P=C=>{if(!e.isReadOnly&&(C=Rr(C,m,$),C=X9(C,w.visibleRange.start,e.isDateUnavailable),!!C))if(!f)x(C);else{let F=zh(f,C);d({start:g5(F.start,c==null?void 0:c.start),end:g5(F.end,c==null?void 0:c.end)}),x(null)}},[E,A]=y.useState(!1),{isDateUnavailable:R}=e,M=y.useMemo(()=>!c||f?!1:R&&(R(c.start)||R(c.end))?!0:ss(c.start,o,l)||ss(c.end,o,l),[R,c,f,o,l]),z=e.isInvalid||e.validationState==="invalid"||M;return{...w,value:c,setValue:d,anchorDate:f,setAnchorDate:x,highlightedRange:T,validationState:z?"invalid":null,isValueInvalid:z,selectFocusedDate(){P(w.focusedDate)},selectDate:P,highlightDate(C){f&&w.setFocusedDate(C)},isSelected(C){return T&&C.compare(T.start)>=0&&C.compare(T.end)<=0&&!w.isCellDisabled(C)&&!w.isCellUnavailable(C)},isInvalid(C){var F,B;return w.isInvalid(C)||ss(C,(F=g.current)===null||F===void 0?void 0:F.start,(B=g.current)===null||B===void 0?void 0:B.end)},isDragging:E,setDragging:A}}function zh(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Zt(e),end:Zt(t)})}function g5(e,t){return e=Oe(e,(t==null?void 0:t.calendar)||new At),t&&"hour"in t?t.set(e):e}function v5(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});return t.isCellUnavailable(r)?r.add({days:-n}):null}function Q9(e){let[t,n]=na(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=y.useCallback(()=>{n(!0)},[n]),i=y.useCallback(()=>{n(!1)},[n]),a=y.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}var J9={};J9={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var eS={};eS={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var tS={};tS={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var nS={};nS={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var rS={};rS={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var iS={};iS={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var aS={};aS={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var sS={};sS={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var oS={};oS={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var lS={};lS={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var uS={};uS={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var cS={};cS={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var dS={};dS={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var fS={};fS={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var hS={};hS={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var pS={};pS={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var mS={};mS={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var gS={};gS={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var vS={};vS={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var bS={};bS={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var yS={};yS={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var $S={};$S={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var xS={};xS={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var wS={};wS={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var DS={};DS={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var _S={};_S={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var ES={};ES={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var SS={};SS={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var CS={};CS={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var kS={};kS={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var PS={};PS={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var TS={};TS={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var RS={};RS={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var MS={};MS={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var AS={};AS={"ar-AE":J9,"bg-BG":eS,"cs-CZ":tS,"da-DK":nS,"de-DE":rS,"el-GR":iS,"en-US":aS,"es-ES":sS,"et-EE":oS,"fi-FI":lS,"fr-FR":uS,"he-IL":cS,"hr-HR":dS,"hu-HU":fS,"it-IT":hS,"ja-JP":pS,"ko-KR":mS,"lt-LT":gS,"lv-LV":vS,"nb-NO":bS,"nl-NL":yS,"pl-PL":$S,"pt-BR":xS,"pt-PT":wS,"ro-RO":DS,"ru-RU":_S,"sk-SK":ES,"sl-SI":SS,"sr-SP":CS,"sv-SE":kS,"tr-TR":PS,"uk-UA":TS,"zh-CN":RS,"zh-TW":MS};function ej(e){return e&&e.__esModule?e.default:e}const FS=new hi(ej(AS));function OS(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function D0(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,s=e!=null&&t!=null&&e.compare(t)<0,o=e!=null&&(r==null?void 0:r(e))||!1,l=a||s||o,u=[];if(l){let c=OS(),d=hi.getGlobalDictionaryForPackage("@react-stately/datepicker")||FS,f=new Q_(c,d),h=new ti(c,fl({},i)),p=h.resolvedOptions().timeZone;s&&u.push(f.format("rangeUnderflow",{minValue:h.format(t.toDate(p))})),a&&u.push(f.format("rangeOverflow",{maxValue:h.format(n.toDate(p))})),o&&u.push(f.format("unavailableDate"))}return{isInvalid:l,validationErrors:u,validationDetails:{badInput:o,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:s,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function tj(e,t,n,r,i){let a=D0(e==null?void 0:e.start,t,n,r,i),s=D0(e==null?void 0:e.end,t,n,r,i),o=nd(a,s);if(e.end!=null&&e.start!=null&&e.end.compare(e.start)<0){let l=hi.getGlobalDictionaryForPackage("@react-stately/datepicker")||FS;o=nd(o,{isInvalid:!0,validationErrors:[l.getStringForLocale("rangeReversed",OS())],validationDetails:{...Tf,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return o}const nj={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},rj={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function fl(e,t){e={...t.shouldForceLeadingZeros?rj:nj,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let s=i.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");s<0&&(s=0);let o=i.indexOf(r);if(o<0&&(o=2),s>o)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(s,o+1).reduce((c,d)=>(c[d]=e[d],c),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&s===0&&(l.era="short"),l}function yu(e){return e&&"hour"in e?e:new Al}function BS(e,t){if(e===null)return null;if(e)return Oe(e,t)}function Hs(e,t,n,r){if(e)return BS(e,n);let i=Oe(n8(r).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?Zt(i):r?i:Gn(i)}function IS(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=y.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let s=e?n:i[1];return[t,s]}const ij=new hi({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function aj(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?ij.getStringForLocale(e,n):"––"}const $u={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},b5={year:5,month:2,day:7,hour:2,minute:15,second:15},sj={dayperiod:"dayPeriod"};function LS(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i,isReadOnly:a,isRequired:s,minValue:o,maxValue:l,isDateUnavailable:u}=e,c=e.value||e.defaultValue||e.placeholderValue,[d,f]=IS(c,e.granularity),h=f||"UTC";if(c&&!(d in c))throw new Error("Invalid granularity "+d+" for value "+c.toString());let p=y.useMemo(()=>new ti(t),[t]),g=y.useMemo(()=>n(p.resolvedOptions().calendar),[n,p]),[b,v]=na(e.value,e.defaultValue,e.onChange),m=y.useMemo(()=>BS(b,g),[b,g]),[$,w]=y.useState(()=>Hs(e.placeholderValue,d,g,f)),D=m||$,S=g.identifier==="gregory"&&D.era==="BC",k=y.useMemo(()=>{var W;return{granularity:d,maxGranularity:(W=e.maxGranularity)!==null&&W!==void 0?W:"year",timeZone:f,hideTimeZone:r,hourCycle:e.hourCycle,showEra:S,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,d,e.hourCycle,e.shouldForceLeadingZeros,f,r,S]),x=y.useMemo(()=>fl({},k),[k]),T=y.useMemo(()=>new ti(t,x),[t,x]),P=y.useMemo(()=>T.resolvedOptions(),[T]),E=y.useMemo(()=>T.formatToParts(new Date).filter(W=>$u[W.type]).reduce((W,Ce)=>(W[Ce.type]=!0,W),{}),[T]),[A,R]=y.useState(()=>e.value||e.defaultValue?{...E}:{}),M=y.useRef(),z=y.useRef(g.identifier);y.useEffect(()=>{g.identifier!==z.current&&(z.current=g.identifier,w(W=>Object.keys(A).length>0?Oe(W,g):Hs(e.placeholderValue,d,g,f)))},[g,d,A,f,e.placeholderValue]),b&&Object.keys(A).length<Object.keys(E).length&&(A={...E},R(A)),b==null&&Object.keys(A).length===Object.keys(E).length&&(A={},R(A),w(Hs(e.placeholderValue,d,g,f)));let O=m&&Object.keys(A).length>=Object.keys(E).length?m:$,C=W=>{if(e.isDisabled||e.isReadOnly)return;let Ce=Object.keys(A),et=Object.keys(E);W==null?(v(null),w(Hs(e.placeholderValue,d,g,f)),R({})):Ce.length>=et.length||Ce.length===et.length-1&&E.dayPeriod&&!A.dayPeriod&&M.current!=="dayPeriod"?(W=Oe(W,(c==null?void 0:c.calendar)||new At),v(W)):w(W),M.current=null},F=y.useMemo(()=>O.toDate(h),[O,h]),B=y.useMemo(()=>T.formatToParts(F).map(W=>{let Ce=$u[W.type];W.type==="era"&&g.getEras().length===1&&(Ce=!1);let et=$u[W.type]&&!A[W.type],yt=$u[W.type]?aj(W.type,W.value,t):null;return{type:sj[W.type]||W.type,text:et?yt:W.value,...oj(O,W.type,P),isPlaceholder:et,placeholder:yt,isEditable:Ce}}),[F,A,T,P,O,g,t]);E.era&&A.year&&!A.era?(A.era=!0,R({...A})):!E.era&&A.era&&(delete A.era,R({...A}));let N=W=>{A[W]=!0,W==="year"&&E.era&&(A.era=!0),R({...A})},X=(W,Ce)=>{if(A[W])C(lj(O,W,Ce,P));else{N(W);let et=Object.keys(A),yt=Object.keys(E);(et.length>=yt.length||et.length===yt.length-1&&E.dayPeriod&&!A.dayPeriod)&&C(O)}},Q=y.useMemo(()=>D0(b,o,l,u,k),[b,o,l,u,k]),je=z7({...e,value:b,builtinValidation:Q}),$e=je.displayValidation.isInvalid,lt=e.validationState||($e?"invalid":null);var xe;return{...je,value:m,dateValue:F,calendar:g,setValue:C,segments:B,dateFormatter:T,validationState:lt,isInvalid:$e,granularity:d,maxGranularity:(xe=e.maxGranularity)!==null&&xe!==void 0?xe:"year",isDisabled:i,isReadOnly:a,isRequired:s,increment(W){X(W,1)},decrement(W){X(W,-1)},incrementPage(W){X(W,b5[W]||1)},decrementPage(W){X(W,-(b5[W]||1))},setSegment(W,Ce){N(W),C(uj(O,W,Ce,P))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let W=Object.keys(A),Ce=Object.keys(E);W.length===Ce.length-1&&E.dayPeriod&&!A.dayPeriod&&(A={...E},R(A),C(O.copy()))},clearSegment(W){delete A[W],M.current=W,R({...A});let Ce=Hs(e.placeholderValue,d,g,f),et=O;if(W==="dayPeriod"&&"hour"in O&&"hour"in Ce){let yt=O.hour>=12,ut=Ce.hour>=12;yt&&!ut?et=O.set({hour:O.hour-12}):!yt&&ut&&(et=O.set({hour:O.hour+12}))}else W in O&&(et=O.set({[W]:Ce[W]}));v(null),C(et)},formatValue(W){if(!m)return"";let Ce=fl(W,k);return new ti(t,Ce).format(F)}}}function oj(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:BB(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:IB(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function lj(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,a=i>=12;return e.set({hour:a?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}}function uj(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,a=i>=12;return n>=12===a?e:e.set({hour:a?i-12:i+12})}case"hour":if(r.hour12){let a=e.hour>=12;!a&&n===12&&(n=0),a&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}}function cj(e){var t,n;let r=Q9(e),[i,a]=na(e.value,e.defaultValue||null,e.onChange),[s,o]=y.useState(()=>i||{start:null,end:null});i==null&&s.start&&s.end&&(s={start:null,end:null},o(s));let l=i||s,u=O=>{o(O||{start:null,end:null}),O!=null&&O.start&&O.end?a(O):a(null)},c=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue,[d,f]=IS(c,e.granularity),h=d==="hour"||d==="minute"||d==="second";var p;let g=(p=e.shouldCloseOnSelect)!==null&&p!==void 0?p:!0,[b,v]=y.useState(null),[m,$]=y.useState(null);l&&l.start&&l.end&&(b=l,"hour"in l.start&&(m=l));let w=(O,C)=>{u({start:"timeZone"in C.start?C.start.set(Zt(O.start)):Gn(O.start,C.start),end:"timeZone"in C.end?C.end.set(Zt(O.end)):Gn(O.end,C.end)}),v(null),$(null),R.commitValidation()},D=O=>{let C=typeof g=="function"?g():g;h?C||O.start&&O.end&&(m!=null&&m.start)&&(m!=null&&m.end)?w(O,{start:(m==null?void 0:m.start)||yu(e.placeholderValue),end:(m==null?void 0:m.end)||yu(e.placeholderValue)}):v(O):O.start&&O.end?(u(O),R.commitValidation()):v(O),C&&r.setOpen(!1)},S=O=>{b!=null&&b.start&&(b!=null&&b.end)&&O.start&&O.end?w(b,O):$(O)},k=(l==null||(t=l.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&l.start.era==="BC"||(l==null||(n=l.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&l.end.era==="BC",x=y.useMemo(()=>({granularity:d,timeZone:f,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:k}),[d,e.hourCycle,e.shouldForceLeadingZeros,f,e.hideTimeZone,k]),{minValue:T,maxValue:P,isDateUnavailable:E}=e,A=y.useMemo(()=>tj(l,T,P,E,x),[l,T,P,E,x]),R=z7({...e,value:i,name:y.useMemo(()=>[e.startName,e.endName],[e.startName,e.endName]),builtinValidation:A}),M=R.displayValidation.isInvalid,z=e.validationState||(M?"invalid":null);return{...R,value:l,setValue:u,dateRange:b,timeRange:m,granularity:d,hasTime:h,setDate(O,C){D({...b,[O]:C})},setTime(O,C){S({...m,[O]:C})},setDateTime(O,C){u({...l,[O]:C})},setDateRange:D,setTimeRange:S,...r,setOpen(O){!O&&!(l!=null&&l.start&&(l!=null&&l.end))&&(b!=null&&b.start)&&(b!=null&&b.end)&&h&&w(b,{start:(m==null?void 0:m.start)||yu(e.placeholderValue),end:(m==null?void 0:m.end)||yu(e.placeholderValue)}),r.setOpen(O)},validationState:z,isInvalid:M,formatValue(O,C){if(!l||!l.start||!l.end)return null;let F="timeZone"in l.start?l.start.timeZone:void 0,B=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),N="timeZone"in l.end?l.end.timeZone:void 0,X=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),Q=fl(C,{granularity:B,timeZone:F,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),je=l.start.toDate(F||"UTC"),$e=l.end.toDate(N||"UTC"),lt=new ti(O,Q),xe;if(F===N&&B===X&&l.start.compare(l.end)!==0){try{let W=lt.formatRangeToParts(je,$e),Ce=-1;for(let ut=0;ut<W.length;ut++){let Nf=W[ut];if(Nf.source==="shared"&&Nf.type==="literal")Ce=ut;else if(Nf.source==="endRange")break}let et="",yt="";for(let ut=0;ut<W.length;ut++)ut<Ce?et+=W[ut].value:ut>Ce&&(yt+=W[ut].value);return{start:et,end:yt}}catch{}xe=lt}else{let W=fl(C,{granularity:X,timeZone:N,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});xe=new ti(O,W)}return{start:lt.format(je),end:xe.format($e)}}}}function dj(e){let{placeholderValue:t=new Al,minValue:n,maxValue:r,granularity:i,validate:a}=e,[s,o]=na(e.value,e.defaultValue,e.onChange),l=s||t,u=l&&"day"in l?l:void 0,c=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,d=y.useMemo(()=>{let m=l&&"timeZone"in l?l.timeZone:void 0;return(m||c)&&t?l8(Ks(t),m||c):Ks(t)},[t,l,c]),f=y.useMemo(()=>Ks(n,u),[n,u]),h=y.useMemo(()=>Ks(r,u),[r,u]),p=y.useMemo(()=>s&&"day"in s?k2(s):s,[s]),g=y.useMemo(()=>s==null?null:Ks(s),[s]);return{...LS({...e,value:g,defaultValue:void 0,minValue:f,maxValue:h,onChange:m=>{o(u||c?m:m&&k2(m))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:d,createCalendar:()=>new At,validate:y.useCallback(()=>a==null?void 0:a(s),[a,s])}),timeValue:p}}function Ks(e,t=Rl($f())){return e?"day"in e?e:Gn(t,e):null}const v$=_.createContext(null);v$.displayName="ProviderContext";function Rs(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var fa={};Rs(fa,"focus-ring",()=>_0,e=>_0=e);Rs(fa,"i18nFontFamily",()=>E0,e=>E0=e);Rs(fa,"spectrum",()=>S0,e=>S0=e);Rs(fa,"spectrum-FocusRing-ring",()=>ad,e=>ad=e);Rs(fa,"spectrum-FocusRing",()=>C0,e=>C0=e);Rs(fa,"spectrum-FocusRing--quiet",()=>k0,e=>k0=e);var _0,E0,S0,ad,C0,k0;_0="JuTe6q_focus-ring";E0="JuTe6q_i18nFontFamily";S0="JuTe6q_spectrum";ad="JuTe6q_spectrum-FocusRing-ring";C0=`JuTe6q_spectrum-FocusRing ${ad}`;k0="JuTe6q_spectrum-FocusRing--quiet";function pi(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var wr={};pi(wr,"focus-ring",()=>P0,e=>P0=e);pi(wr,"i18nFontFamily",()=>sd,e=>sd=e);pi(wr,"spectrum",()=>T0,e=>T0=e);pi(wr,"spectrum-Body",()=>R0,e=>R0=e);pi(wr,"spectrum-Body--italic",()=>M0,e=>M0=e);pi(wr,"spectrum-FocusRing-ring",()=>od,e=>od=e);pi(wr,"spectrum-FocusRing",()=>A0,e=>A0=e);pi(wr,"spectrum-FocusRing--quiet",()=>F0,e=>F0=e);var P0,sd,T0,R0,M0,od,A0,F0;P0="_5QszkG_focus-ring";sd="_5QszkG_i18nFontFamily";T0=`_5QszkG_spectrum ${sd}`;R0="_5QszkG_spectrum-Body";M0="_5QszkG_spectrum-Body--italic";od="_5QszkG_spectrum-FocusRing-ring";A0=`_5QszkG_spectrum-FocusRing ${od}`;F0="_5QszkG_spectrum-FocusRing--quiet";function fj(e,t){let n=qm("(prefers-color-scheme: dark)"),r=qm("(prefers-color-scheme: light)");return e.dark&&n?"dark":e.light&&r?"light":e.dark&&t==="dark"?"dark":e.light&&t==="light"||!e.dark||e.light?"light":"dark"}function hj(e){return qm("(any-pointer: fine)")&&e.medium?"medium":e.large?"large":"medium"}var NS={};NS=JSON.parse('{"name":"@react-spectrum/provider","version":"3.9.6","description":"Spectrum UI components in React","license":"Apache-2.0","main":"dist/main.js","module":"dist/module.js","exports":{"types":"./dist/types.d.ts","import":"./dist/import.mjs","require":"./dist/main.js"},"types":"dist/types.d.ts","source":"src/index.ts","files":["dist","src"],"sideEffects":["*.css"],"targets":{"main":{"includeNodeModules":["@adobe/spectrum-css-temp"]},"module":{"includeNodeModules":["@adobe/spectrum-css-temp"]}},"repository":{"type":"git","url":"https://github.com/adobe/react-spectrum"},"dependencies":{"@react-aria/i18n":"^3.11.0","@react-aria/overlays":"^3.22.0","@react-aria/utils":"^3.24.0","@react-spectrum/utils":"^3.11.6","@react-types/provider":"^3.8.0","@react-types/shared":"^3.23.0","@swc/helpers":"^0.5.0","clsx":"^2.0.0"},"devDependencies":{"@adobe/spectrum-css-temp":"3.0.0-alpha.1"},"peerDependencies":{"react":"^16.8.0 || ^17.0.0-rc.1 || ^18.0.0","react-dom":"^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"},"publishConfig":{"access":"public"}}');function y5(e){return e&&e.__esModule?e.default:e}const pj={S:640,M:768,L:1024,XL:1280,XXL:1536};function mj(e,t){let n=ha(),r=n&&n.colorScheme,i=n&&n.breakpoints,{theme:a=n&&n.theme,defaultColorScheme:s}=e;if(!a)throw new Error("theme not found, the parent provider must have a theme provided");let o=fj(a,s),l=hj(a),{locale:u}=Qe(),c=!!a[r],{colorScheme:d=c?r:o,scale:f=n?n.scale:l,locale:h=n?u:null,breakpoints:p=n?i:pj,children:g,isQuiet:b,isEmphasized:v,isDisabled:m,isRequired:$,isReadOnly:w,validationState:D,router:S,...k}=e,x={version:NS.version,theme:a,breakpoints:p,colorScheme:d,scale:f,isQuiet:b,isEmphasized:v,isDisabled:m,isRequired:$,isReadOnly:w,validationState:D},T=DB(p),P={};Object.entries(x).forEach(([z,O])=>O!==void 0&&(P[z]=O));let E=Object.assign({},n,P),A=g,R=Xt(k),{styleProps:M}=st(k,void 0,{matchedBreakpoints:T});return(!n||e.locale||a!==n.theme||d!==n.colorScheme||f!==n.scale||Object.keys(R).length>0||k.UNSAFE_className||Object.keys(M.style).length>0)&&(A=_.createElement(gj,{...e,UNSAFE_style:{isolation:n?void 0:"isolate",...M.style},ref:t},A)),S&&(A=_.createElement(zI,S,A)),_.createElement(v$.Provider,{value:E},_.createElement(CB,{locale:h},_.createElement(wB,{matchedBreakpoints:T},_.createElement(AN,null,A))))}let jS=_.forwardRef(mj);const gj=_.forwardRef(function(t,n){let{children:r,...i}=t,{locale:a,direction:s}=Qe(),{theme:o,colorScheme:l,scale:u}=ha(),{modalProviderProps:c}=FN(),{styleProps:d}=st(i),f=In(n),h=Object.keys(o[l])[0],p=Object.keys(o[u])[0],g=gf(d.className,y5(fa).spectrum,y5(wr).spectrum,Object.values(o[l]),Object.values(o[u]),o.global?Object.values(o.global):null,{"react-spectrum-provider":su,spectrum:su,[h]:su,[p]:su});var b,v;let m={...d.style,colorScheme:(v=(b=t.colorScheme)!==null&&b!==void 0?b:l)!==null&&v!==void 0?v:Object.keys(o).filter(w=>w==="light"||w==="dark").join(" ")},$=y.useRef(!1);return y.useEffect(()=>{if(s&&f.current){let w=f.current.parentElement.closest("[dir]"),D=w&&w.getAttribute("dir");D&&D!==s&&!$.current&&(console.warn(`Language directions cannot be nested. ${s} inside ${D}.`),$.current=!0)}},[s,f,$]),_.createElement("div",{...Xt(i),...d,...c,className:g,style:m,lang:a,dir:s,ref:f},r)});function ha(){return y.useContext(v$)}function Bl(e){let t=ha();return t?Object.assign({},{isQuiet:t.isQuiet,isEmphasized:t.isEmphasized,isDisabled:t.isDisabled,isRequired:t.isRequired,isReadOnly:t.isReadOnly,validationState:t.validationState},e):e}var zS={};Object.defineProperty(zS,"__esModule",{value:!0});var vj=zS.CornerTriangle=VS,Vh=bj(y);function bj(e){return e&&e.__esModule?e:{default:e}}function O0(){return O0=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O0.apply(this,arguments)}function yj(e,t){if(e==null)return{};var n=$j(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $j(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function VS(e){var t=e.scale,n=t===void 0?"M":t,r=yj(e,["scale"]);return Vh.default.createElement("svg",O0({},r,r),n==="L"&&Vh.default.createElement("path",{d:"M5.74.01a.25.25 0 0 0-.177.073l-5.48 5.48a.25.25 0 0 0 .177.427h5.48a.25.25 0 0 0 .25-.25V.26a.25.25 0 0 0-.25-.25z"}),n==="M"&&Vh.default.createElement("path",{d:"M4.74.01a.25.25 0 0 0-.177.073l-4.48 4.48a.25.25 0 0 0 .177.427h4.48a.25.25 0 0 0 .25-.25V.26a.25.25 0 0 0-.25-.25z"}))}VS.displayName="CornerTriangle";function G(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Y={};G(Y,"spectrum--large",()=>B0,e=>B0=e);G(Y,"spectrum--medium",()=>I0,e=>I0=e);G(Y,"spectrum-Icon",()=>L0,e=>L0=e);G(Y,"spectrum-Icon--sizeL",()=>N0,e=>N0=e);G(Y,"spectrum-Icon--sizeM",()=>j0,e=>j0=e);G(Y,"spectrum-Icon--sizeS",()=>z0,e=>z0=e);G(Y,"spectrum-Icon--sizeXL",()=>V0,e=>V0=e);G(Y,"spectrum-Icon--sizeXS",()=>W0,e=>W0=e);G(Y,"spectrum-Icon--sizeXXL",()=>U0,e=>U0=e);G(Y,"spectrum-Icon--sizeXXS",()=>H0,e=>H0=e);G(Y,"spectrum-UIIcon",()=>K0,e=>K0=e);G(Y,"spectrum-UIIcon--large",()=>Y0,e=>Y0=e);G(Y,"spectrum-UIIcon--medium",()=>q0,e=>q0=e);G(Y,"spectrum-UIIcon-AlertMedium",()=>G0,e=>G0=e);G(Y,"spectrum-UIIcon-AlertSmall",()=>Z0,e=>Z0=e);G(Y,"spectrum-UIIcon-ArrowDownSmall",()=>X0,e=>X0=e);G(Y,"spectrum-UIIcon-ArrowLeftMedium",()=>Q0,e=>Q0=e);G(Y,"spectrum-UIIcon-Asterisk",()=>J0,e=>J0=e);G(Y,"spectrum-UIIcon-CheckmarkMedium",()=>eg,e=>eg=e);G(Y,"spectrum-UIIcon-CheckmarkSmall",()=>tg,e=>tg=e);G(Y,"spectrum-UIIcon-ChevronDownMedium",()=>ng,e=>ng=e);G(Y,"spectrum-UIIcon-ChevronDownSmall",()=>rg,e=>rg=e);G(Y,"spectrum-UIIcon-ChevronLeftLarge",()=>ig,e=>ig=e);G(Y,"spectrum-UIIcon-ChevronLeftMedium",()=>ag,e=>ag=e);G(Y,"spectrum-UIIcon-ChevronRightLarge",()=>sg,e=>sg=e);G(Y,"spectrum-UIIcon-ChevronRightMedium",()=>og,e=>og=e);G(Y,"spectrum-UIIcon-ChevronRightSmall",()=>lg,e=>lg=e);G(Y,"spectrum-UIIcon-ChevronUpSmall",()=>ug,e=>ug=e);G(Y,"spectrum-UIIcon-CornerTriangle",()=>cg,e=>cg=e);G(Y,"spectrum-UIIcon-CrossLarge",()=>dg,e=>dg=e);G(Y,"spectrum-UIIcon-CrossMedium",()=>fg,e=>fg=e);G(Y,"spectrum-UIIcon-CrossSmall",()=>hg,e=>hg=e);G(Y,"spectrum-UIIcon-DashSmall",()=>pg,e=>pg=e);G(Y,"spectrum-UIIcon-DoubleGripper",()=>mg,e=>mg=e);G(Y,"spectrum-UIIcon-FolderBreadcrumb",()=>gg,e=>gg=e);G(Y,"spectrum-UIIcon-HelpMedium",()=>vg,e=>vg=e);G(Y,"spectrum-UIIcon-HelpSmall",()=>bg,e=>bg=e);G(Y,"spectrum-UIIcon-InfoMedium",()=>yg,e=>yg=e);G(Y,"spectrum-UIIcon-InfoSmall",()=>$g,e=>$g=e);G(Y,"spectrum-UIIcon-ListGripper",()=>xg,e=>xg=e);G(Y,"spectrum-UIIcon-Magnifier",()=>wg,e=>wg=e);G(Y,"spectrum-UIIcon-SkipLeft",()=>Dg,e=>Dg=e);G(Y,"spectrum-UIIcon-SkipRight",()=>_g,e=>_g=e);G(Y,"spectrum-UIIcon-Star",()=>Eg,e=>Eg=e);G(Y,"spectrum-UIIcon-StarOutline",()=>Sg,e=>Sg=e);G(Y,"spectrum-UIIcon-SuccessMedium",()=>Cg,e=>Cg=e);G(Y,"spectrum-UIIcon-SuccessSmall",()=>kg,e=>kg=e);G(Y,"spectrum-UIIcon-TripleGripper",()=>Pg,e=>Pg=e);var B0,I0,L0,N0,j0,z0,V0,W0,U0,H0,K0,Y0,q0,G0,Z0,X0,Q0,J0,eg,tg,ng,rg,ig,ag,sg,og,lg,ug,cg,dg,fg,hg,pg,mg,gg,vg,bg,yg,$g,xg,wg,Dg,_g,Eg,Sg,Cg,kg,Pg;B0="yxBNXG_spectrum--large";I0="yxBNXG_spectrum--medium";L0="yxBNXG_spectrum-Icon";N0="yxBNXG_spectrum-Icon--sizeL";j0="yxBNXG_spectrum-Icon--sizeM";z0="yxBNXG_spectrum-Icon--sizeS";V0="yxBNXG_spectrum-Icon--sizeXL";W0="yxBNXG_spectrum-Icon--sizeXS";U0="yxBNXG_spectrum-Icon--sizeXXL";H0="yxBNXG_spectrum-Icon--sizeXXS";K0="yxBNXG_spectrum-UIIcon";Y0="yxBNXG_spectrum-UIIcon--large";q0="yxBNXG_spectrum-UIIcon--medium";G0="yxBNXG_spectrum-UIIcon-AlertMedium";Z0="yxBNXG_spectrum-UIIcon-AlertSmall";X0="yxBNXG_spectrum-UIIcon-ArrowDownSmall";Q0="yxBNXG_spectrum-UIIcon-ArrowLeftMedium";J0="yxBNXG_spectrum-UIIcon-Asterisk";eg="yxBNXG_spectrum-UIIcon-CheckmarkMedium";tg="yxBNXG_spectrum-UIIcon-CheckmarkSmall";ng="yxBNXG_spectrum-UIIcon-ChevronDownMedium";rg="yxBNXG_spectrum-UIIcon-ChevronDownSmall";ig="yxBNXG_spectrum-UIIcon-ChevronLeftLarge";ag="yxBNXG_spectrum-UIIcon-ChevronLeftMedium";sg="yxBNXG_spectrum-UIIcon-ChevronRightLarge";og="yxBNXG_spectrum-UIIcon-ChevronRightMedium";lg="yxBNXG_spectrum-UIIcon-ChevronRightSmall";ug="yxBNXG_spectrum-UIIcon-ChevronUpSmall";cg="yxBNXG_spectrum-UIIcon-CornerTriangle";dg="yxBNXG_spectrum-UIIcon-CrossLarge";fg="yxBNXG_spectrum-UIIcon-CrossMedium";hg="yxBNXG_spectrum-UIIcon-CrossSmall";pg="yxBNXG_spectrum-UIIcon-DashSmall";mg="yxBNXG_spectrum-UIIcon-DoubleGripper";gg="yxBNXG_spectrum-UIIcon-FolderBreadcrumb";vg="yxBNXG_spectrum-UIIcon-HelpMedium";bg="yxBNXG_spectrum-UIIcon-HelpSmall";yg="yxBNXG_spectrum-UIIcon-InfoMedium";$g="yxBNXG_spectrum-UIIcon-InfoSmall";xg="yxBNXG_spectrum-UIIcon-ListGripper";wg="yxBNXG_spectrum-UIIcon-Magnifier";Dg="yxBNXG_spectrum-UIIcon-SkipLeft";_g="yxBNXG_spectrum-UIIcon-SkipRight";Eg="yxBNXG_spectrum-UIIcon-Star";Sg="yxBNXG_spectrum-UIIcon-StarOutline";Cg="yxBNXG_spectrum-UIIcon-SuccessMedium";kg="yxBNXG_spectrum-UIIcon-SuccessSmall";Pg="yxBNXG_spectrum-UIIcon-TripleGripper";function xj(e){return e&&e.__esModule?e.default:e}function wj(e){return`var(--spectrum-semantic-${e}-color-icon)`}const Dj={...Ef,color:["color",wj]};function _j(e){e=oi(e,"icon");let{children:t,size:n,"aria-label":r,"aria-hidden":i,...a}=e,{styleProps:s}=st(a,Dj),o=ha(),l="M";o!==null&&(l=o.scale==="large"?"L":"M"),i||(i=void 0);let u=n||l;return _.cloneElement(t,{...Xt(a),...s,focusable:"false","aria-label":r,"aria-hidden":r?i||void 0:!0,role:"img",className:V(xj(Y),t.props.className,"spectrum-Icon",`spectrum-Icon--size${u}`,s.className)})}function Ej(e){return e&&e.__esModule?e.default:e}function pa(e){e=oi(e,"icon");let{children:t,"aria-label":n,"aria-hidden":r,...i}=e,{styleProps:a}=st(i),s=ha(),o="M";return s!==null&&(o=s.scale==="large"?"L":"M"),r||(r=void 0),_.cloneElement(t,{...Xt(i),...a,scale:o,focusable:"false","aria-label":n,"aria-hidden":n?r||void 0:!0,role:"img",className:V(Ej(Y),t.props.className,"spectrum-Icon",{[`spectrum-UIIcon-${t.type.displayName}`]:t.type.displayName},a.className)})}function Sj(e){return _.createElement(pa,e,_.createElement(vj,null))}function Ys(e){return e&&e.__esModule?e.default:e}function Cj(e,t){e=Bl(e),e=oi(e,"actionButton");let n=oi({UNSAFE_className:V(Ys(Z),"spectrum-ActionButton-label")},"text"),{isQuiet:r,isDisabled:i,staticColor:a,children:s,autoFocus:o,holdAffordance:l,hideButtonText:u,...c}=e,d=K_(t),{buttonProps:f,isPressed:h}=r7(e,d),{hoverProps:p,isHovered:g}=kf({isDisabled:i}),{styleProps:b}=st(c),v=_.Children.toArray(e.children).every(m=>!_.isValidElement(m));return _.createElement(t7,{focusRingClass:V(Ys(Z),"focus-ring"),autoFocus:o},_.createElement("button",{...b,...de(f,p),ref:d,className:V(Ys(Z),"spectrum-ActionButton",{"spectrum-ActionButton--quiet":r,"spectrum-ActionButton--staticColor":!!a,"spectrum-ActionButton--staticWhite":a==="white","spectrum-ActionButton--staticBlack":a==="black","is-active":h,"is-disabled":i,"is-hovered":g},b.className)},l&&_.createElement(Sj,{UNSAFE_className:V(Ys(Z),"spectrum-ActionButton-hold")}),_.createElement(V8,null,_.createElement(Sf,{slots:{icon:{size:"S",UNSAFE_className:V(Ys(Z),"spectrum-Icon",{"spectrum-ActionGroup-itemIcon":u})},text:{...n}}},typeof s=="string"||v?_.createElement(tN,null,s):s))))}let Tg=_.forwardRef(Cj);function Wh(e){return e&&e.__esModule?e.default:e}function kj(e,t){e=oi(e,"button");let{isQuiet:n,isDisabled:r,validationState:i,isInvalid:a,children:s,autoFocus:o,isActive:l,focusRingClass:u,...c}=e,d=K_(t),{buttonProps:f,isPressed:h}=r7(e,d),{hoverProps:p,isHovered:g}=kf({isDisabled:r}),{styleProps:b}=st(c);return _.createElement(t7,{focusRingClass:V(Wh(Z),"focus-ring",u),autoFocus:o},_.createElement("button",{...de(f,p),ref:d,className:V(Wh(Z),"spectrum-FieldButton",{"spectrum-FieldButton--quiet":n,"is-active":l||h,"is-disabled":r,"spectrum-FieldButton--invalid":a||i==="invalid","is-hovered":g},b.className)},_.createElement(Sf,{slots:{icon:{size:"S",UNSAFE_className:V(Wh(Z),"spectrum-Icon")}}},s)))}let Pj=_.forwardRef(kj);function Rg(){return Rg=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},Rg.apply(null,arguments)}function Tj(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Mg(e,t){return Mg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Mg(e,t)}function Rj(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mg(e,t)}const $5={disabled:!1},WS=_.createContext(null);var Mj=function(t){return t.scrollTop},fo="unmounted",ki="exited",Pi="entering",Ma="entered",Ag="exiting",Dr=function(e){Rj(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?o?(l=ki,a.appearStatus=Pi):l=Ma:r.unmountOnExit||r.mountOnEnter?l=fo:l=ki,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===fo?{status:ki}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Pi&&s!==Ma&&(a=Pi):(s===Pi||s===Ma)&&(a=Ag)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Pi){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:so.findDOMNode(this);s&&Mj(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ki&&this.setState({status:fo})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,l=this.props.nodeRef?[o]:[so.findDOMNode(this),o],u=l[0],c=l[1],d=this.getTimeouts(),f=o?d.appear:d.enter;if(!i&&!s||$5.disabled){this.safeSetState({status:Ma},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Pi},function(){a.props.onEntering(u,c),a.onTransitionEnd(f,function(){a.safeSetState({status:Ma},function(){a.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:so.findDOMNode(this);if(!a||$5.disabled){this.safeSetState({status:ki},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:Ag},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:ki},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:so.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===fo)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=Tj(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _.createElement(WS.Provider,{value:null},typeof s=="function"?s(i,o):_.cloneElement(_.Children.only(s),o))},t}(_.Component);Dr.contextType=WS;Dr.propTypes={};function _a(){}Dr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_a,onEntering:_a,onEntered:_a,onExit:_a,onExiting:_a,onExited:_a};Dr.UNMOUNTED=fo;Dr.EXITED=ki;Dr.ENTERING=Pi;Dr.ENTERED=Ma;Dr.EXITING=Ag;const Aj={entering:!1,entered:!0};function Fj(e){return _.createElement(Dr,{timeout:{enter:0,exit:350},...e},t=>_.Children.map(e.children,n=>n&&_.cloneElement(n,{isOpen:!!Aj[t]})))}function Oj(e,t){let{children:n,isOpen:r,disableFocusManagement:i,container:a,onEnter:s,onEntering:o,onEntered:l,onExit:u,onExiting:c,onExited:d,nodeRef:f}=e,[h,p]=y.useState(!r),g=y.useCallback(()=>{p(!1),l&&l()},[l]),b=y.useCallback(()=>{p(!0),d&&d()},[d]);return r||!h?_.createElement(jN,{portalContainer:a,disableFocusManagement:i,isExiting:!r},_.createElement(jS,{ref:t,UNSAFE_style:{background:"transparent",isolation:"isolate"},isDisabled:!1},_.createElement(Fj,{in:r,appear:!0,onExit:u,onExiting:c,onExited:b,onEnter:s,onEntering:o,onEntered:g,nodeRef:f},n))):null}let b$=_.forwardRef(Oj);function _r(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var ln={};_r(ln,"react-spectrum-Modal",()=>Fg,e=>Fg=e);_r(ln,"react-spectrum-Modal-wrapper",()=>Og,e=>Og=e);_r(ln,"react-spectrum-Popover",()=>Bg,e=>Bg=e);_r(ln,"react-spectrum-Tray",()=>Ig,e=>Ig=e);_r(ln,"spectrum-Dialog-content",()=>Lg,e=>Lg=e);_r(ln,"spectrum-Modal",()=>Ng,e=>Ng=e);_r(ln,"spectrum-Modal-wrapper",()=>jg,e=>jg=e);_r(ln,"spectrum-Popover",()=>zg,e=>zg=e);_r(ln,"spectrum-Tray",()=>Vg,e=>Vg=e);var Fg,Og,Bg,Ig,Lg,Ng,jg,zg,Vg;Fg="OhnpTq_react-spectrum-Modal";Og="OhnpTq_react-spectrum-Modal-wrapper";Bg="OhnpTq_react-spectrum-Popover";Ig="OhnpTq_react-spectrum-Tray";Lg="OhnpTq_spectrum-Dialog-content";Ng="OhnpTq_spectrum-Modal";jg="OhnpTq_spectrum-Modal-wrapper";zg="OhnpTq_spectrum-Popover";Vg="OhnpTq_spectrum-Tray";function Ae(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var be={};Ae(be,"focus-ring",()=>Wg,e=>Wg=e);Ae(be,"i18nFontFamily",()=>Ug,e=>Ug=e);Ae(be,"spectrum-overlay--open",()=>ld,e=>ld=e);Ae(be,"is-open",()=>Hg,e=>Hg=e);Ae(be,"spectrum-overlay--bottom--open",()=>ud,e=>ud=e);Ae(be,"is-open--bottom",()=>Kg,e=>Kg=e);Ae(be,"spectrum-overlay--left--open",()=>cd,e=>cd=e);Ae(be,"is-open--left",()=>Yg,e=>Yg=e);Ae(be,"spectrum-overlay--right--open",()=>dd,e=>dd=e);Ae(be,"is-open--right",()=>qg,e=>qg=e);Ae(be,"spectrum-overlay--top--open",()=>fd,e=>fd=e);Ae(be,"is-open--top",()=>Gg,e=>Gg=e);Ae(be,"spectrum-FocusRing-ring",()=>hd,e=>hd=e);Ae(be,"spectrum-FocusRing",()=>Zg,e=>Zg=e);Ae(be,"spectrum-FocusRing--quiet",()=>Xg,e=>Xg=e);Ae(be,"spectrum-overlay",()=>pd,e=>pd=e);Ae(be,"spectrum-Popover",()=>Qg,e=>Qg=e);Ae(be,"spectrum-Popover--bottom",()=>Jg,e=>Jg=e);Ae(be,"spectrum-Popover--dialog",()=>ev,e=>ev=e);Ae(be,"spectrum-Popover--left",()=>tv,e=>tv=e);Ae(be,"spectrum-Popover--right",()=>nv,e=>nv=e);Ae(be,"spectrum-Popover--top",()=>rv,e=>rv=e);Ae(be,"spectrum-Popover--withTip",()=>iv,e=>iv=e);Ae(be,"spectrum-Popover-tip",()=>av,e=>av=e);Ae(be,"spectrum-Popover-tip-triangle",()=>sv,e=>sv=e);var Wg,Ug,ld,Hg,ud,Kg,cd,Yg,dd,qg,fd,Gg,hd,Zg,Xg,pd,Qg,Jg,ev,tv,nv,rv,iv,av,sv;Wg="cH0MeW_focus-ring";Ug="cH0MeW_i18nFontFamily";ld="cH0MeW_spectrum-overlay--open";Hg=`cH0MeW_is-open ${ld}`;ud="cH0MeW_spectrum-overlay--bottom--open";Kg=`cH0MeW_is-open--bottom ${ud}`;cd="cH0MeW_spectrum-overlay--left--open";Yg=`cH0MeW_is-open--left ${cd}`;dd="cH0MeW_spectrum-overlay--right--open";qg=`cH0MeW_is-open--right ${dd}`;fd="cH0MeW_spectrum-overlay--top--open";Gg=`cH0MeW_is-open--top ${fd}`;hd="cH0MeW_spectrum-FocusRing-ring";Zg=`cH0MeW_spectrum-FocusRing ${hd}`;Xg="cH0MeW_spectrum-FocusRing--quiet";pd="cH0MeW_spectrum-overlay";Qg=`cH0MeW_spectrum-Popover ${pd}`;Jg="cH0MeW_spectrum-Popover--bottom";ev="cH0MeW_spectrum-Popover--dialog";tv="cH0MeW_spectrum-Popover--left";nv="cH0MeW_spectrum-Popover--right";rv="cH0MeW_spectrum-Popover--top";iv="cH0MeW_spectrum-Popover--withTip";av="cH0MeW_spectrum-Popover-tip";sv="cH0MeW_spectrum-Popover-tip-triangle";function Qt(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Bt={};Qt(Bt,"focus-ring",()=>ov,e=>ov=e);Qt(Bt,"i18nFontFamily",()=>lv,e=>lv=e);Qt(Bt,"spectrum-overlay--open",()=>md,e=>md=e);Qt(Bt,"is-open",()=>uv,e=>uv=e);Qt(Bt,"spectrum-FocusRing-ring",()=>gd,e=>gd=e);Qt(Bt,"spectrum-FocusRing",()=>cv,e=>cv=e);Qt(Bt,"spectrum-FocusRing--quiet",()=>dv,e=>dv=e);Qt(Bt,"spectrum-overlay",()=>vd,e=>vd=e);Qt(Bt,"spectrum-Underlay",()=>fv,e=>fv=e);Qt(Bt,"spectrum-Underlay--transparent",()=>hv,e=>hv=e);Qt(Bt,"spectrum-overlay--bottom--open",()=>pv,e=>pv=e);Qt(Bt,"spectrum-overlay--left--open",()=>mv,e=>mv=e);Qt(Bt,"spectrum-overlay--right--open",()=>gv,e=>gv=e);Qt(Bt,"spectrum-overlay--top--open",()=>vv,e=>vv=e);var ov,lv,md,uv,gd,cv,dv,vd,fv,hv,pv,mv,gv,vv;ov="F-oYUa_focus-ring";lv="F-oYUa_i18nFontFamily";md="F-oYUa_spectrum-overlay--open";uv=`F-oYUa_is-open ${md}`;gd="F-oYUa_spectrum-FocusRing-ring";cv=`F-oYUa_spectrum-FocusRing ${gd}`;dv="F-oYUa_spectrum-FocusRing--quiet";vd="F-oYUa_spectrum-overlay";fv=`F-oYUa_spectrum-Underlay ${vd}`;hv="F-oYUa_spectrum-Underlay--transparent";pv="F-oYUa_spectrum-overlay--bottom--open";mv="F-oYUa_spectrum-overlay--left--open";gv="F-oYUa_spectrum-overlay--right--open";vv="F-oYUa_spectrum-overlay--top--open";function Bj(e){return e&&e.__esModule?e.default:e}function y$({isOpen:e,isTransparent:t,...n}){return _.createElement("div",{"data-testid":"underlay",...n,className:V(Bj(Bt),"spectrum-Underlay",{"is-open":e,"spectrum-Underlay--transparent":t})})}function bd(e){return e&&e.__esModule?e.default:e}let Ij={left:"right",right:"right",top:"bottom",bottom:"bottom"};function Lj(e,t){let{children:n,state:r,...i}=e,a=In(t),s=y.useRef(null);return _.createElement(b$,{...i,isOpen:r.isOpen,nodeRef:s},_.createElement(Nj,{ref:a,...e,wrapperRef:s},n))}const Nj=y.forwardRef((e,t)=>{let{children:n,isOpen:r,hideArrow:i,isNonModal:a,enableBothDismissButtons:s,state:o,wrapperRef:l,onDismissButtonPress:u=()=>o.close()}=e,{styleProps:c}=st(e),{size:d,borderWidth:f,arrowRef:h}=zj();const p=jj(t);let g=f*Math.SQRT2,b=d+g,v=b*2,{popoverProps:m,arrowProps:$,underlayProps:w,placement:D}=IN({...e,popoverRef:t,maxHeight:null,arrowSize:i?0:v,arrowBoundaryOffset:p},o),{focusWithinProps:S}=Ts(e);return _.createElement("div",{ref:l},!a&&_.createElement(y$,{isTransparent:!0,...de(w),isOpen:r}),_.createElement("div",{...c,...de(m,S),style:{...c.style,...m.style},ref:t,className:V(bd(be),"spectrum-Popover",`spectrum-Popover--${D}`,{"spectrum-Popover--withTip":!i,"is-open":r,[`is-open--${D}`]:r},V(bd(ln),"spectrum-Popover","react-spectrum-Popover"),c.className),role:"presentation","data-testid":"popover"},(!a||s)&&_.createElement(id,{onDismiss:u}),n,i?null:_.createElement(Vj,{arrowProps:$,isLandscape:Ij[D]==="bottom",arrowRef:h,primary:b,secondary:v,borderDiagonal:g}),_.createElement(id,{onDismiss:u})))});function jj(e){let[t,n]=y.useState(0);return he(()=>{if(e.current){let r=window.getComputedStyle(e.current).borderRadius;r!==""&&n(parseInt(r,10))}},[e]),t}function zj(){let[e,t]=y.useState(20),[n,r]=y.useState(1),i=y.useRef(null);return he(()=>{if(i.current){let a=window.getComputedStyle(i.current).getPropertyValue("--spectrum-popover-tip-size");a!==""&&t(parseInt(a,10)/2);let s=window.getComputedStyle(i.current).getPropertyValue("--spectrum-popover-tip-borderWidth");s!==""&&r(parseInt(s,10))}},[]),{size:e,borderWidth:n,arrowRef:i}}function Vj(e){let{primary:t,secondary:n,isLandscape:r,arrowProps:i,borderDiagonal:a,arrowRef:s}=e,o=a/2,l=0,u=t-o,c=o,d=n/2,f=n-o,h=r?["M",c,l,"L",d,u,"L",f,l]:["M",l,c,"L",u,d,"L",l,f];return _.createElement("svg",{xmlns:"http://www.w3.org/svg/2000",width:Math.ceil(r?n:t),height:Math.ceil(r?t:n),className:V(bd(be),"spectrum-Popover-tip"),ref:s,...i},_.createElement("path",{className:V(bd(be),"spectrum-Popover-tip-triangle"),d:h.join(" ")}))}let Wj=y.forwardRef(Lj);function bt(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var ot={};bt(ot,"focus-ring",()=>bv,e=>bv=e);bt(ot,"i18nFontFamily",()=>yv,e=>yv=e);bt(ot,"spectrum-overlay--open",()=>yd,e=>yd=e);bt(ot,"is-open",()=>$v,e=>$v=e);bt(ot,"spectrum-FocusRing-ring",()=>$d,e=>$d=e);bt(ot,"spectrum-FocusRing",()=>xv,e=>xv=e);bt(ot,"spectrum-FocusRing--quiet",()=>wv,e=>wv=e);bt(ot,"spectrum-overlay",()=>xd,e=>xd=e);bt(ot,"spectrum-Modal",()=>Dv,e=>Dv=e);bt(ot,"spectrum-Modal--fullscreen",()=>_v,e=>_v=e);bt(ot,"spectrum-Modal--fullscreenTakeover",()=>Ev,e=>Ev=e);bt(ot,"spectrum-Modal--responsive",()=>Sv,e=>Sv=e);bt(ot,"spectrum-Modal-wrapper",()=>Cv,e=>Cv=e);bt(ot,"spectrum-overlay--bottom--open",()=>kv,e=>kv=e);bt(ot,"spectrum-overlay--left--open",()=>Pv,e=>Pv=e);bt(ot,"spectrum-overlay--right--open",()=>Tv,e=>Tv=e);bt(ot,"spectrum-overlay--top--open",()=>Rv,e=>Rv=e);var bv,yv,yd,$v,$d,xv,wv,xd,Dv,_v,Ev,Sv,Cv,kv,Pv,Tv,Rv;bv="_0YML2q_focus-ring";yv="_0YML2q_i18nFontFamily";yd="_0YML2q_spectrum-overlay--open";$v=`_0YML2q_is-open ${yd}`;$d="_0YML2q_spectrum-FocusRing-ring";xv=`_0YML2q_spectrum-FocusRing ${$d}`;wv="_0YML2q_spectrum-FocusRing--quiet";xd="_0YML2q_spectrum-overlay";Dv=`_0YML2q_spectrum-Modal ${xd}`;_v="_0YML2q_spectrum-Modal--fullscreen";Ev="_0YML2q_spectrum-Modal--fullscreenTakeover";Sv="_0YML2q_spectrum-Modal--responsive";Cv="_0YML2q_spectrum-Modal-wrapper";kv="_0YML2q_spectrum-overlay--bottom--open";Pv="_0YML2q_spectrum-overlay--left--open";Tv="_0YML2q_spectrum-overlay--right--open";Rv="_0YML2q_spectrum-overlay--top--open";function xu(e){return e&&e.__esModule?e.default:e}function Uj(e,t){let{children:n,state:r,...i}=e,a=In(t),s=y.useRef(null);return _.createElement(b$,{...i,isOpen:r.isOpen,nodeRef:s},_.createElement(Kj,{...e,wrapperRef:s,ref:a},n))}let Hj={fullscreen:"fullscreen",fullscreenTakeover:"fullscreenTakeover"},Kj=y.forwardRef(function(e,t){let{type:n,children:r,state:i,isOpen:a,wrapperRef:s}=e,o=Hj[n],{styleProps:l}=st(e),{modalProps:u,underlayProps:c}=TE(e,i,t),d=V(xu(ot),"spectrum-Modal-wrapper",V(xu(ln),"spectrum-Modal-wrapper","react-spectrum-Modal-wrapper")),f=V(xu(ot),"spectrum-Modal",{"is-open":a},V(xu(ln),"spectrum-Modal","react-spectrum-Modal"),{[`spectrum-Modal--${o}`]:o},l.className),p={"--spectrum-visual-viewport-height":B8().height+"px"};return _.createElement("div",{ref:s},_.createElement(y$,{...c,isOpen:a}),_.createElement("div",{className:d,style:p},_.createElement("div",{...l,...u,ref:t,className:f,"data-testid":"modal"},r)))}),Yj=y.forwardRef(Uj);function It(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var vt={};It(vt,"focus-ring",()=>Mv,e=>Mv=e);It(vt,"i18nFontFamily",()=>Av,e=>Av=e);It(vt,"spectrum-overlay--open",()=>wd,e=>wd=e);It(vt,"is-open",()=>Fv,e=>Fv=e);It(vt,"spectrum-FocusRing-ring",()=>Dd,e=>Dd=e);It(vt,"spectrum-FocusRing",()=>Ov,e=>Ov=e);It(vt,"spectrum-FocusRing--quiet",()=>Bv,e=>Bv=e);It(vt,"spectrum-overlay",()=>_d,e=>_d=e);It(vt,"spectrum-Tray",()=>Iv,e=>Iv=e);It(vt,"spectrum-Tray--fixedHeight",()=>Lv,e=>Lv=e);It(vt,"spectrum-Tray-wrapper",()=>Nv,e=>Nv=e);It(vt,"spectrum-overlay--bottom--open",()=>jv,e=>jv=e);It(vt,"spectrum-overlay--left--open",()=>zv,e=>zv=e);It(vt,"spectrum-overlay--right--open",()=>Vv,e=>Vv=e);It(vt,"spectrum-overlay--top--open",()=>Wv,e=>Wv=e);var Mv,Av,wd,Fv,Dd,Ov,Bv,_d,Iv,Lv,Nv,jv,zv,Vv,Wv;Mv="UuxJvG_focus-ring";Av="UuxJvG_i18nFontFamily";wd="UuxJvG_spectrum-overlay--open";Fv=`UuxJvG_is-open ${wd}`;Dd="UuxJvG_spectrum-FocusRing-ring";Ov=`UuxJvG_spectrum-FocusRing ${Dd}`;Bv="UuxJvG_spectrum-FocusRing--quiet";_d="UuxJvG_spectrum-overlay";Iv=`UuxJvG_spectrum-Tray ${_d}`;Lv="UuxJvG_spectrum-Tray--fixedHeight";Nv="UuxJvG_spectrum-Tray-wrapper";jv="UuxJvG_spectrum-overlay--bottom--open";zv="UuxJvG_spectrum-overlay--left--open";Vv="UuxJvG_spectrum-overlay--right--open";Wv="UuxJvG_spectrum-overlay--top--open";function Uh(e){return e&&e.__esModule?e.default:e}function qj(e,t){let{children:n,state:r,...i}=e,a=In(t),s=y.useRef(null);return _.createElement(b$,{...i,isOpen:r.isOpen,nodeRef:s},_.createElement(Gj,{...e,wrapperRef:s,ref:a},n))}let Gj=y.forwardRef(function(e,t){let{children:n,isOpen:r,isFixedHeight:i,state:a,wrapperRef:s}=e,{styleProps:o}=st(e),{modalProps:l,underlayProps:u}=TE({...e,isDismissable:!0},a,t),d={"--spectrum-visual-viewport-height":B8().height+"px"},f=V(Uh(vt),"spectrum-Tray-wrapper"),h=V(Uh(vt),"spectrum-Tray",{"is-open":r,"spectrum-Tray--fixedHeight":i},V(Uh(ln),"spectrum-Tray","react-spectrum-Tray"),o.className);return _.createElement("div",{ref:s},_.createElement(y$,{...u,isOpen:r}),_.createElement("div",{className:f,style:d},_.createElement("div",{...o,...l,className:h,ref:t,"data-testid":"tray"},_.createElement(id,{onDismiss:a.close}),n,_.createElement(id,{onDismiss:a.close}))))}),Zj=y.forwardRef(qj);var US={};Object.defineProperty(US,"__esModule",{value:!0});var Xj=US.CheckmarkMedium=HS,Hh=Qj(y);function Qj(e){return e&&e.__esModule?e:{default:e}}function Uv(){return Uv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uv.apply(this,arguments)}function Jj(e,t){if(e==null)return{};var n=ez(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ez(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function HS(e){var t=e.scale,n=t===void 0?"M":t,r=Jj(e,["scale"]);return Hh.default.createElement("svg",Uv({},r,r),n==="L"&&Hh.default.createElement("path",{d:"M6 14a1 1 0 0 1-.789-.385l-4-5a1 1 0 1 1 1.577-1.23L6 11.376l7.213-8.99a1 1 0 1 1 1.576 1.23l-8 10a1 1 0 0 1-.789.384z"}),n==="M"&&Hh.default.createElement("path",{d:"M4.5 10a1.022 1.022 0 0 1-.799-.384l-2.488-3a1 1 0 0 1 1.576-1.233L4.5 7.376l4.712-5.991a1 1 0 1 1 1.576 1.23l-5.51 7A.978.978 0 0 1 4.5 10z"}))}HS.displayName="CheckmarkMedium";function tz(e){return _.createElement(pa,e,_.createElement(Xj,null))}const nz={...Ef,autoFlow:["gridAutoFlow",tt],autoColumns:["gridAutoColumns",Ed],autoRows:["gridAutoRows",Ed],areas:["gridTemplateAreas",iz],columns:["gridTemplateColumns",x5],rows:["gridTemplateRows",x5],gap:["gap",le],rowGap:["rowGap",le],columnGap:["columnGap",le],justifyItems:["justifyItems",tt],justifyContent:["justifyContent",tt],alignItems:["alignItems",tt],alignContent:["alignContent",tt]};function rz(e,t){let{children:n,...r}=e,{styleProps:i}=st(r,nz);i.style.display="grid";let a=In(t);return _.createElement("div",{...Xt(r),...i,ref:a},n)}function iz(e){return e.map(t=>`"${t}"`).join(`
+`)}function Ed(e){return/^max-content|min-content|minmax|auto|fit-content|repeat|subgrid/.test(e)?e:le(e)}function x5(e){return Array.isArray(e)?e.map(Ed).join(" "):Ed(e)}const az=y.forwardRef(rz);function $$(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Mf={};$$(Mf,"flex",()=>Hv,e=>Hv=e);$$(Mf,"flex-container",()=>Kv,e=>Kv=e);$$(Mf,"flex-gap",()=>Yv,e=>Yv=e);var Hv,Kv,Yv;Hv="NW91UW_flex";Kv="NW91UW_flex-container";Yv="NW91UW_flex-gap";function sz(e){return e&&e.__esModule?e.default:e}const oz={direction:["flexDirection",tt],wrap:["flexWrap",uz],justifyContent:["justifyContent",Kh],alignItems:["alignItems",Kh],alignContent:["alignContent",Kh]};function lz(e,t){let{children:n,...r}=e,i=Y_(),a=(i==null?void 0:i.matchedBreakpoints)||["base"],{styleProps:s}=st(r),{styleProps:o}=st(r,oz),l=In(t),u={...s.style,...o.style};return e.gap!=null&&(u.gap=Th(e.gap,a)),e.columnGap!=null&&(u.columnGap=Th(e.columnGap,a)),e.rowGap!=null&&(u.rowGap=Th(e.rowGap,a)),_.createElement("div",{...Xt(r),className:V(sz(Mf),"flex",s.className),style:u,ref:l},n)}function Kh(e){return e==="start"?"flex-start":e==="end"?"flex-end":e}function uz(e){return typeof e=="boolean"?e?"wrap":"nowrap":e}const KS=y.forwardRef(lz);var YS={};Object.defineProperty(YS,"__esModule",{value:!0});var cz=YS.CrossLarge=qS,Yh=dz(y);function dz(e){return e&&e.__esModule?e:{default:e}}function qv(){return qv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qv.apply(this,arguments)}function fz(e,t){if(e==null)return{};var n=hz(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hz(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function qS(e){var t=e.scale,n=t===void 0?"M":t,r=fz(e,["scale"]);return Yh.default.createElement("svg",qv({},r,r),n==="L"&&Yh.default.createElement("path",{d:"M15.697 14.283L9.414 8l6.283-6.283A1 1 0 1 0 14.283.303L8 6.586 1.717.303A1 1 0 1 0 .303 1.717L6.586 8 .303 14.283a1 1 0 1 0 1.414 1.414L8 9.414l6.283 6.283a1 1 0 1 0 1.414-1.414z"}),n==="M"&&Yh.default.createElement("path",{d:"M11.697 10.283L7.414 6l4.283-4.283A1 1 0 1 0 10.283.303L6 4.586 1.717.303A1 1 0 1 0 .303 1.717L4.586 6 .303 10.283a1 1 0 1 0 1.414 1.414L6 7.414l4.283 4.283a1 1 0 1 0 1.414-1.414z"}))}qS.displayName="CrossLarge";function pz(e){return _.createElement(pa,e,_.createElement(cz,null))}function se(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var q={};se(q,"focus-ring",()=>Gv,e=>Gv=e);se(q,"i18nFontFamily",()=>Zv,e=>Zv=e);se(q,"is-disabled",()=>Xv,e=>Xv=e);se(q,"is-focused",()=>Qv,e=>Qv=e);se(q,"is-hovered",()=>Jv,e=>Jv=e);se(q,"is-invalid",()=>e1,e=>e1=e);se(q,"is-outsideMonth",()=>t1,e=>t1=e);se(q,"is-pressed",()=>n1,e=>n1=e);se(q,"is-range-end",()=>r1,e=>r1=e);se(q,"is-range-selection",()=>i1,e=>i1=e);se(q,"is-range-start",()=>a1,e=>a1=e);se(q,"is-selected",()=>s1,e=>s1=e);se(q,"is-selection-end",()=>o1,e=>o1=e);se(q,"is-selection-start",()=>l1,e=>l1=e);se(q,"is-today",()=>u1,e=>u1=e);se(q,"is-unavailable",()=>c1,e=>c1=e);se(q,"next",()=>d1,e=>d1=e);se(q,"prev",()=>f1,e=>f1=e);se(q,"spectrum-Calendar",()=>h1,e=>h1=e);se(q,"spectrum-Calendar--padded",()=>p1,e=>p1=e);se(q,"spectrum-Calendar-body",()=>m1,e=>m1=e);se(q,"spectrum-Calendar-date",()=>g1,e=>g1=e);se(q,"spectrum-Calendar-dateText",()=>v1,e=>v1=e);se(q,"spectrum-Calendar-dayOfWeek",()=>b1,e=>b1=e);se(q,"spectrum-Calendar-header",()=>y1,e=>y1=e);se(q,"spectrum-Calendar-monthHeader",()=>$1,e=>$1=e);se(q,"spectrum-Calendar-months",()=>x1,e=>x1=e);se(q,"spectrum-Calendar-nextMonth",()=>w1,e=>w1=e);se(q,"spectrum-Calendar-prevMonth",()=>D1,e=>D1=e);se(q,"spectrum-Calendar-table",()=>_1,e=>_1=e);se(q,"spectrum-Calendar-tableCell",()=>E1,e=>E1=e);se(q,"spectrum-Calendar-title",()=>S1,e=>S1=e);se(q,"spectrum-FocusRing-ring",()=>Sd,e=>Sd=e);se(q,"spectrum-FocusRing",()=>C1,e=>C1=e);se(q,"spectrum-FocusRing--quiet",()=>k1,e=>k1=e);se(q,"title",()=>P1,e=>P1=e);var Gv,Zv,Xv,Qv,Jv,e1,t1,n1,r1,i1,a1,s1,o1,l1,u1,c1,d1,f1,h1,p1,m1,g1,v1,b1,y1,$1,x1,w1,D1,_1,E1,S1,Sd,C1,k1,P1;Gv="EuwYBq_focus-ring";Zv="EuwYBq_i18nFontFamily";Xv="EuwYBq_is-disabled";Qv="EuwYBq_is-focused";Jv="EuwYBq_is-hovered";e1="EuwYBq_is-invalid";t1="EuwYBq_is-outsideMonth";n1="EuwYBq_is-pressed";r1="EuwYBq_is-range-end";i1="EuwYBq_is-range-selection";a1="EuwYBq_is-range-start";s1="EuwYBq_is-selected";o1="EuwYBq_is-selection-end";l1="EuwYBq_is-selection-start";u1="EuwYBq_is-today";c1="EuwYBq_is-unavailable";d1="EuwYBq_next";f1="EuwYBq_prev";h1="EuwYBq_spectrum-Calendar";p1="EuwYBq_spectrum-Calendar--padded";m1="EuwYBq_spectrum-Calendar-body";g1="EuwYBq_spectrum-Calendar-date";v1="EuwYBq_spectrum-Calendar-dateText";b1="EuwYBq_spectrum-Calendar-dayOfWeek";y1="EuwYBq_spectrum-Calendar-header";$1="EuwYBq_spectrum-Calendar-monthHeader";x1="EuwYBq_spectrum-Calendar-months";w1="EuwYBq_spectrum-Calendar-nextMonth";D1="EuwYBq_spectrum-Calendar-prevMonth";_1="EuwYBq_spectrum-Calendar-table";E1="EuwYBq_spectrum-Calendar-tableCell";S1="EuwYBq_spectrum-Calendar-title";Sd="EuwYBq_spectrum-FocusRing-ring";C1=`EuwYBq_spectrum-FocusRing ${Sd}`;k1="EuwYBq_spectrum-FocusRing--quiet";P1="EuwYBq_title";function qh(e){return e&&e.__esModule?e.default:e}function mz({state:e,currentMonth:t,...n}){let r=y.useRef(),{cellProps:i,buttonProps:a,isPressed:s,isSelected:o,isDisabled:l,isFocused:u,isInvalid:c,formattedDate:d}=cN({...n,isDisabled:!D2(n.date,t)},e,r),f=e.isCellUnavailable(n.date)&&!l,h=!l&&!c&&e.isCellUnavailable(n.date.add({days:1})),p=!l&&!c&&e.isCellUnavailable(n.date.subtract({days:1})),g="highlightedRange"in e&&e.highlightedRange,b=o&&g&&Ze(n.date,g.start),v=o&&g&&Ze(n.date,g.end),{locale:m}=Qe(),$=yf(n.date,m),w=o&&(p||$===0||n.date.day===1),D=o&&(h||$===6||n.date.day===t.calendar.getDaysInMonth(t)),{focusProps:S,isFocusVisible:k}=ul(),{hoverProps:x,isHovered:T}=kf({isDisabled:l||f||e.isReadOnly});return _.createElement("td",{...i,className:V(qh(q),"spectrum-Calendar-tableCell")},_.createElement("span",{...de(a,x,S),ref:r,className:V(qh(q),"spectrum-Calendar-date",{"is-today":t8(n.date,e.timeZone),"is-selected":o,"is-focused":u&&k,"is-disabled":l&&!c,"is-unavailable":f||c&&l,"is-outsideMonth":!D2(n.date,t),"is-range-start":w,"is-range-end":D,"is-range-selection":o&&"highlightedRange"in e,"is-selection-start":b,"is-selection-end":v,"is-hovered":T,"is-pressed":s&&!e.isReadOnly,"is-invalid":c})},_.createElement("span",{className:V(qh(q),"spectrum-Calendar-dateText")},_.createElement("span",null,d))))}function Gh(e){return e&&e.__esModule?e.default:e}function gz(e){let{state:t,startDate:n}=e,{gridProps:r,headerProps:i,weekDays:a}=lN({...e,endDate:Nc(n)},t),{locale:s}=Qe(),o=zB(n,s);return _.createElement("table",{...r,className:V(Gh(q),"spectrum-Calendar-body","spectrum-Calendar-table")},_.createElement("thead",i,_.createElement("tr",null,a.map((l,u)=>_.createElement("th",{key:u,className:V(Gh(q),"spectrum-Calendar-tableCell")},_.createElement("span",{className:V(Gh(q),"spectrum-Calendar-dayOfWeek")},l))))),_.createElement("tbody",null,[...new Array(o).keys()].map(l=>_.createElement("tr",{key:l},t.getDatesInWeek(l,n).map((u,c)=>u?_.createElement(mz,{key:c,state:t,date:u,currentMonth:n}):_.createElement("td",{key:c}))))))}var GS={};GS={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"التاريخ",other:"التواريخ"})} المحدد/المحددة غير متوفرة.`};var ZS={};ZS={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Избраната дата не е налична",other:"Избраните дати не са налични"})}.`};var XS={};XS={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Vybrané datum není",other:"Vybraná data nejsou"})} k dispozici.`};var QS={};QS={invalidSelection:(e,t)=>`Valgte ${t.plural(e.selectedCount,{one:"dato",other:"datoer"})} ikke ledige.`};var JS={};JS={invalidSelection:(e,t)=>`Ausgewählte(s) ${t.plural(e.selectedCount,{one:"Datum",other:"Daten"})} nicht verfügbar.`};var eC={};eC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη",other:"Οι επιλεγμένες ημερομηνίες δεν είναι διαθέσιμες"})}.`};var tC={};tC={invalidSelection:(e,t)=>`Selected ${t.plural(e.selectedCount,{one:"date",other:"dates"})} unavailable.`};var nC={};nC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"La fecha seleccionada no está disponible",other:"Las fechas seleccionadas no están disponibles"})}.`};var rC={};rC={invalidSelection:(e,t)=>`Valitud ${t.plural(e.selectedCount,{one:"kuupäev",other:"kuupäevad"})} pole saadaval.`};var iC={};iC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Valittu päivämäärä ei ole",other:"Valitut päivämäärät eivät ole"})} saatavilla.`};var aC={};aC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"La date sélectionnée est indisponible",other:"Les dates sélectionnées sont indisponibles"})}.`};var sC={};sC={invalidSelection:(e,t)=>`נבחר ${t.plural(e.selectedCount,{one:"תאריך",other:"תאריכים"})} אינו זמין.`};var oC={};oC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Odabrani datum nije dostupan",other:"Odabrani datumi nisu dostupni"})}.`};var lC={};lC={invalidSelection:(e,t)=>`A kijelölt ${t.plural(e.selectedCount,{one:"dátum nem érhető el",other:"dátumok nem érhetőek el"})}.`};var uC={};uC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Data selezionata non disponibile",other:"Date selezionate non disponibili"})}.`};var cC={};cC={invalidSelection:(e,t)=>`選択した${t.plural(e.selectedCount,{one:"日付",other:"日付"})}は使用できません。`};var dC={};dC={invalidSelection:(e,t)=>`선택한 ${t.plural(e.selectedCount,{one:"일자를",other:"일자를"})} 사용할 수 없습니다.`};var fC={};fC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Datos",other:"Datų"})} pasirinkimas negalimas.`};var hC={};hC={invalidSelection:(e,t)=>`Atlasītais(-ie) ${t.plural(e.selectedCount,{one:"date",other:"dates"})} nav pieejams(-i).`};var pC={};pC={invalidSelection:(e,t)=>`Valgt(e) ${t.plural(e.selectedCount,{one:"dato",other:"datoer"})} er utilgjengelig.`};var mC={};mC={invalidSelection:(e,t)=>`Geselecteerde ${t.plural(e.selectedCount,{one:"datum",other:"datums"})} niet beschikbaar.`};var gC={};gC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Wybrana data jest niedostępna",other:"Wybrane daty są niedostępne"})}.`};var vC={};vC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Data",other:"Datas"})} selecionada(s) indisponível(is).`};var bC={};bC={invalidSelection:(e,t)=>`A(s) ${t.plural(e.selectedCount,{one:"data",other:"datas"})} selecionada(s) não está(ão) disponível/disponível(eis).`};var yC={};yC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Data selectată nu este disponibilă",other:"Datele selectate nu sunt disponibile"})}.`};var $C={};$C={invalidSelection:(e,t)=>`Выбранные ${t.plural(e.selectedCount,{one:"дата",other:"даты"})} недоступны.`};var xC={};xC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Vybratý dátum",other:"Vybraté dátumy"})}: nedostupné.`};var wC={};wC={invalidSelection:(e,t)=>`Izbrano ${t.plural(e.selectedCount,{one:"date",other:"dates"})} ni na voljo.`};var DC={};DC={invalidSelection:(e,t)=>`Izabrani ${t.plural(e.selectedCount,{one:"date",other:"dates"})} nije dostupan.`};var _C={};_C={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Valt datum är inte tillgängligt.",other:"Valda datum är inte tillgängliga."})}`};var EC={};EC={invalidSelection:(e,t)=>`Seçilen ${t.plural(e.selectedCount,{one:"tarih",other:"tarihler"})} müsait değil.`};var SC={};SC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Вибрана дата недоступна",other:"Вибрані дати недоступні"})}.`};var CC={};CC={invalidSelection:(e,t)=>`选定的 ${t.plural(e.selectedCount,{one:"个日期",other:"个日期"})} 不可用。`};var kC={};kC={invalidSelection:(e,t)=>`所選的${t.plural(e.selectedCount,{one:"日期",other:"日期"})}無法使用。`};var PC={};PC={"ar-AE":GS,"bg-BG":ZS,"cs-CZ":XS,"da-DK":QS,"de-DE":JS,"el-GR":eC,"en-US":tC,"es-ES":nC,"et-EE":rC,"fi-FI":iC,"fr-FR":aC,"he-IL":sC,"hr-HR":oC,"hu-HU":lC,"it-IT":uC,"ja-JP":cC,"ko-KR":dC,"lt-LT":fC,"lv-LV":hC,"nb-NO":pC,"nl-NL":mC,"pl-PL":gC,"pt-BR":vC,"pt-PT":bC,"ro-RO":yC,"ru-RU":$C,"sk-SK":xC,"sl-SI":wC,"sr-SP":DC,"sv-SE":_C,"tr-TR":EC,"uk-UA":SC,"zh-CN":CC,"zh-TW":kC};var TC={};Object.defineProperty(TC,"__esModule",{value:!0});var vz=TC.ChevronLeftLarge=RC,Zh=bz(y);function bz(e){return e&&e.__esModule?e:{default:e}}function T1(){return T1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T1.apply(this,arguments)}function yz(e,t){if(e==null)return{};var n=$z(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $z(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function RC(e){var t=e.scale,n=t===void 0?"M":t,r=yz(e,["scale"]);return Zh.default.createElement("svg",T1({},r,r),n==="L"&&Zh.default.createElement("path",{d:"M12.109 17.853l-8.066-7.849 8.066-7.84a1.243 1.243 0 0 0 .381-.894 1.24 1.24 0 0 0-2.12-.894L1.379 9.108a1.246 1.246 0 0 0 .003 1.79l8.99 8.744a1.247 1.247 0 1 0 1.738-1.789z"}),n==="M"&&Zh.default.createElement("path",{d:"M9.605 13.843L3.55 8l6.056-5.84A1.248 1.248 0 1 0 7.876.363L.882 7.1a1.243 1.243 0 0 0 .003 1.797l6.988 6.742a1.248 1.248 0 1 0 1.732-1.796z"}))}RC.displayName="ChevronLeftLarge";function w5(e){return _.createElement(pa,e,_.createElement(vz,null))}var MC={};Object.defineProperty(MC,"__esModule",{value:!0});var xz=MC.ChevronRightLarge=AC,Xh=wz(y);function wz(e){return e&&e.__esModule?e:{default:e}}function R1(){return R1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R1.apply(this,arguments)}function Dz(e,t){if(e==null)return{};var n=_z(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _z(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function AC(e){var t=e.scale,n=t===void 0?"M":t,r=Dz(e,["scale"]);return Xh.default.createElement("svg",R1({},r,r),n==="L"&&Xh.default.createElement("path",{d:"M15 10.004a1.243 1.243 0 0 0-.38-.894L5.631.364a1.249 1.249 0 1 0-1.741 1.79l8.066 7.85-8.069 7.847a1.249 1.249 0 0 0 1.741 1.79l8.992-8.74a1.246 1.246 0 0 0 .379-.897z"}),n==="M"&&Xh.default.createElement("path",{d:"M11.5 8a1.241 1.241 0 0 0-.386-.897L4.128.36a1.248 1.248 0 1 0-1.733 1.797L8.45 8l-6.058 5.84a1.248 1.248 0 1 0 1.733 1.797L11.117 8.9A1.245 1.245 0 0 0 11.5 8z"}))}AC.displayName="ChevronRightLarge";function D5(e){return _.createElement(pa,e,_.createElement(xz,null))}function Ln(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Rt={};Ln(Rt,"focus-ring",()=>M1,e=>M1=e);Ln(Rt,"i18nFontFamily",()=>A1,e=>A1=e);Ln(Rt,"is-disabled",()=>F1,e=>F1=e);Ln(Rt,"spectrum-FocusRing-ring",()=>Cd,e=>Cd=e);Ln(Rt,"spectrum-FocusRing",()=>O1,e=>O1=e);Ln(Rt,"spectrum-FocusRing--quiet",()=>B1,e=>B1=e);Ln(Rt,"spectrum-HelpText",()=>I1,e=>I1=e);Ln(Rt,"spectrum-HelpText--negative",()=>L1,e=>L1=e);Ln(Rt,"spectrum-HelpText--neutral",()=>N1,e=>N1=e);Ln(Rt,"spectrum-HelpText-text",()=>j1,e=>j1=e);Ln(Rt,"spectrum-HelpText-validationIcon",()=>z1,e=>z1=e);var M1,A1,F1,Cd,O1,B1,I1,L1,N1,j1,z1;M1="a1Qy2q_focus-ring";A1="a1Qy2q_i18nFontFamily";F1="a1Qy2q_is-disabled";Cd="a1Qy2q_spectrum-FocusRing-ring";O1=`a1Qy2q_spectrum-FocusRing ${Cd}`;B1="a1Qy2q_spectrum-FocusRing--quiet";I1="a1Qy2q_spectrum-HelpText";L1="a1Qy2q_spectrum-HelpText--negative";N1="a1Qy2q_spectrum-HelpText--neutral";j1="a1Qy2q_spectrum-HelpText-text";z1="a1Qy2q_spectrum-HelpText-validationIcon";var FC={};Object.defineProperty(FC,"__esModule",{value:!0});var OC=FC.AlertMedium=BC,Qh=Ez(y);function Ez(e){return e&&e.__esModule?e:{default:e}}function V1(){return V1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V1.apply(this,arguments)}function Sz(e,t){if(e==null)return{};var n=Cz(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cz(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function BC(e){var t=e.scale,n=t===void 0?"M":t,r=Sz(e,["scale"]);return Qh.default.createElement("svg",V1({},r,r),n==="L"&&Qh.default.createElement("path",{d:"M10.563 2.206l-9.249 16.55a.5.5 0 0 0 .436.744h18.5a.5.5 0 0 0 .436-.744l-9.251-16.55a.5.5 0 0 0-.872 0zm1.436 15.044a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25zm0-3.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-6a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25z"}),n==="M"&&Qh.default.createElement("path",{d:"M8.564 1.289L.2 16.256A.5.5 0 0 0 .636 17h16.728a.5.5 0 0 0 .436-.744L9.436 1.289a.5.5 0 0 0-.872 0zM10 14.75a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25zm0-3a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-6a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25z"}))}BC.displayName="AlertMedium";const IC=e=>_.createElement("svg",Rg({viewBox:"0 0 18 18"},e),_.createElement("path",{d:"M9 10.5a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v4.5a1 1 0 0 1-1 1Zm0 1.25A1.25 1.25 0 1 0 10.25 13 1.25 1.25 0 0 0 9 11.75Zm8.497 3.589a3.49 3.49 0 0 0 .079-3.474L12 1.815a3.385 3.385 0 0 0-5.994-.007L.416 11.88a3.485 3.485 0 0 0 .089 3.459A3.375 3.375 0 0 0 3.416 17h11.169a3.375 3.375 0 0 0 2.912-1.661ZM10.244 2.77l5.575 10.05a1.497 1.497 0 0 1-.037 1.489 1.374 1.374 0 0 1-1.197.69H3.416a1.374 1.374 0 0 1-1.197-.69 1.493 1.493 0 0 1-.046-1.474l5.593-10.08a1.386 1.386 0 0 1 2.478.015Z"}));IC.displayName=OC.displayName;function LC(e){var t;let n=ha();return _.createElement(pa,e,n!=null&&(t=n.theme)!=null&&(t=t.global)!=null&&t.express?_.createElement(IC,null):_.createElement(OC,null))}function wu(e){return e&&e.__esModule?e.default:e}function kz(e,t){let{description:n,errorMessage:r,validationState:i,isInvalid:a,isDisabled:s,showErrorIcon:o,descriptionProps:l,errorMessageProps:u}=e,c=In(t),d=r&&(a||i==="invalid"),{styleProps:f}=st(e);return _.createElement("div",{...f,className:V(wu(Rt),"spectrum-HelpText",`spectrum-HelpText--${d?"negative":"neutral"}`,{"is-disabled":s},f.className),ref:c},d?_.createElement(_.Fragment,null,o&&_.createElement(LC,{UNSAFE_className:V(wu(Rt),"spectrum-HelpText-validationIcon")}),_.createElement("div",{...u,className:V(wu(Rt),"spectrum-HelpText-text")},r)):_.createElement("div",{...l,className:V(wu(Rt),"spectrum-HelpText-text")},n))}const NC=_.forwardRef(kz);var jC={};jC={"(optional)":"(اختياري)","(required)":"(مطلوب)"};var zC={};zC={"(optional)":"(незадължително)","(required)":"(задължително)"};var VC={};VC={"(optional)":"(volitelně)","(required)":"(požadováno)"};var WC={};WC={"(optional)":"(valgfrit)","(required)":"(obligatorisk)"};var UC={};UC={"(optional)":"(optional)","(required)":"(erforderlich)"};var HC={};HC={"(optional)":"(προαιρετικό)","(required)":"(απαιτείται)"};var KC={};KC={"(required)":"(required)","(optional)":"(optional)"};var YC={};YC={"(optional)":"(opcional)","(required)":"(obligatorio)"};var qC={};qC={"(optional)":"(valikuline)","(required)":"(nõutav)"};var GC={};GC={"(optional)":"(valinnainen)","(required)":"(pakollinen)"};var ZC={};ZC={"(optional)":"(facultatif)","(required)":"(requis)"};var XC={};XC={"(optional)":"(אופציונלי)","(required)":"(נדרש)"};var QC={};QC={"(optional)":"(opcionalno)","(required)":"(obvezno)"};var JC={};JC={"(optional)":"(opcionális)","(required)":"(kötelező)"};var ek={};ek={"(optional)":"(facoltativo)","(required)":"(obbligatorio)"};var tk={};tk={"(optional)":"(オプション)","(required)":"(必須)"};var nk={};nk={"(optional)":"(선택 사항)","(required)":"(필수 사항)"};var rk={};rk={"(optional)":"(pasirenkama)","(required)":"(privaloma)"};var ik={};ik={"(optional)":"(neobligāti)","(required)":"(obligāti)"};var ak={};ak={"(optional)":"(valgfritt)","(required)":"(obligatorisk)"};var sk={};sk={"(optional)":"(optioneel)","(required)":"(vereist)"};var ok={};ok={"(optional)":"(opcjonalne)","(required)":"(wymagane)"};var lk={};lk={"(optional)":"(opcional)","(required)":"(obrigatório)"};var uk={};uk={"(optional)":"(opcional)","(required)":"(obrigatório)"};var ck={};ck={"(optional)":"(opţional)","(required)":"(obligatoriu)"};var dk={};dk={"(optional)":"(дополнительно)","(required)":"(обязательно)"};var fk={};fk={"(optional)":"(nepovinné)","(required)":"(povinné)"};var hk={};hk={"(optional)":"(opcijsko)","(required)":"(obvezno)"};var pk={};pk={"(optional)":"(opciono)","(required)":"(obavezno)"};var mk={};mk={"(optional)":"(valfritt)","(required)":"(krävs)"};var gk={};gk={"(optional)":"(isteğe bağlı)","(required)":"(gerekli)"};var vk={};vk={"(optional)":"(необов’язково)","(required)":"(обов’язково)"};var bk={};bk={"(optional)":"(可选)","(required)":"(必填)"};var yk={};yk={"(optional)":"(選填)","(required)":"(必填)"};var $k={};$k={"ar-AE":jC,"bg-BG":zC,"cs-CZ":VC,"da-DK":WC,"de-DE":UC,"el-GR":HC,"en-US":KC,"es-ES":YC,"et-EE":qC,"fi-FI":GC,"fr-FR":ZC,"he-IL":XC,"hr-HR":QC,"hu-HU":JC,"it-IT":ek,"ja-JP":tk,"ko-KR":nk,"lt-LT":rk,"lv-LV":ik,"nb-NO":ak,"nl-NL":sk,"pl-PL":ok,"pt-BR":lk,"pt-PT":uk,"ro-RO":ck,"ru-RU":dk,"sk-SK":fk,"sl-SI":hk,"sr-SP":pk,"sv-SE":mk,"tr-TR":gk,"uk-UA":vk,"zh-CN":bk,"zh-TW":yk};function ve(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var te={};ve(te,"contextualHelp",()=>W1,e=>W1=e);ve(te,"field",()=>U1,e=>U1=e);ve(te,"focus-ring",()=>H1,e=>H1=e);ve(te,"helpText",()=>K1,e=>K1=e);ve(te,"i18nFontFamily",()=>Y1,e=>Y1=e);ve(te,"is-disabled",()=>q1,e=>q1=e);ve(te,"label",()=>G1,e=>G1=e);ve(te,"spectrum-Field",()=>Z1,e=>Z1=e);ve(te,"spectrum-Field--alignEnd",()=>X1,e=>X1=e);ve(te,"spectrum-Field--hasContextualHelp",()=>Q1,e=>Q1=e);ve(te,"spectrum-Field--positionSide",()=>J1,e=>J1=e);ve(te,"spectrum-Field--positionTop",()=>e4,e=>e4=e);ve(te,"spectrum-Field-contextualHelp",()=>t4,e=>t4=e);ve(te,"spectrum-Field-field",()=>n4,e=>n4=e);ve(te,"spectrum-Field-labelCell",()=>r4,e=>r4=e);ve(te,"spectrum-Field-labelWrapper",()=>i4,e=>i4=e);ve(te,"spectrum-Field-wrapper",()=>a4,e=>a4=e);ve(te,"spectrum-FieldLabel",()=>s4,e=>s4=e);ve(te,"spectrum-FieldLabel--alignEnd",()=>o4,e=>o4=e);ve(te,"spectrum-FieldLabel--positionSide",()=>l4,e=>l4=e);ve(te,"spectrum-FieldLabel-requiredIcon",()=>u4,e=>u4=e);ve(te,"spectrum-FocusRing-ring",()=>kd,e=>kd=e);ve(te,"spectrum-FocusRing",()=>c4,e=>c4=e);ve(te,"spectrum-FocusRing--quiet",()=>d4,e=>d4=e);ve(te,"spectrum-Form",()=>f4,e=>f4=e);ve(te,"spectrum-Form--positionSide",()=>h4,e=>h4=e);ve(te,"spectrum-Form--positionTop",()=>p4,e=>p4=e);ve(te,"spectrum-Form-itemLabel",()=>m4,e=>m4=e);ve(te,"spectrum-LabeledValue",()=>g4,e=>g4=e);var W1,U1,H1,K1,Y1,q1,G1,Z1,X1,Q1,J1,e4,t4,n4,r4,i4,a4,s4,o4,l4,u4,kd,c4,d4,f4,h4,p4,m4,g4;W1="A-HlBa_contextualHelp";U1="A-HlBa_field";H1="A-HlBa_focus-ring";K1="A-HlBa_helpText";Y1="A-HlBa_i18nFontFamily";q1="A-HlBa_is-disabled";G1="A-HlBa_label";Z1="A-HlBa_spectrum-Field";X1="A-HlBa_spectrum-Field--alignEnd";Q1="A-HlBa_spectrum-Field--hasContextualHelp";J1="A-HlBa_spectrum-Field--positionSide";e4="A-HlBa_spectrum-Field--positionTop";t4="A-HlBa_spectrum-Field-contextualHelp";n4="A-HlBa_spectrum-Field-field";r4="A-HlBa_spectrum-Field-labelCell";i4="A-HlBa_spectrum-Field-labelWrapper";a4="A-HlBa_spectrum-Field-wrapper";s4="A-HlBa_spectrum-FieldLabel";o4="A-HlBa_spectrum-FieldLabel--alignEnd";l4="A-HlBa_spectrum-FieldLabel--positionSide";u4="A-HlBa_spectrum-FieldLabel-requiredIcon";kd="A-HlBa_spectrum-FocusRing-ring";c4=`A-HlBa_spectrum-FocusRing ${kd}`;d4="A-HlBa_spectrum-FocusRing--quiet";f4="A-HlBa_spectrum-Form";h4="A-HlBa_spectrum-Form--positionSide";p4="A-HlBa_spectrum-Form--positionTop";m4="A-HlBa_spectrum-Form-itemLabel";g4="A-HlBa_spectrum-LabeledValue";var xk={};Object.defineProperty(xk,"__esModule",{value:!0});var Pz=xk.Asterisk=wk,Jh=Tz(y);function Tz(e){return e&&e.__esModule?e:{default:e}}function v4(){return v4=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v4.apply(this,arguments)}function Rz(e,t){if(e==null)return{};var n=Mz(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mz(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function wk(e){var t=e.scale,n=t===void 0?"M":t,r=Rz(e,["scale"]);return Jh.default.createElement("svg",v4({},r,r),n==="L"&&Jh.default.createElement("path",{d:"M7.867 7.872c.061.062.103.145 0 .228l-1.283.827c-.104.061-.145.02-.186-.083L4.804 6.07l-2.09 2.297c-.021.042-.083.083-.145 0l-.994-1.035c-.103-.062-.082-.124 0-.186l2.36-1.966-2.691-1.014c-.042 0-.104-.083-.062-.186l.703-1.41a.11.11 0 0 1 .187-.04L4.43 4.06l.145-3.02A.109.109 0 0 1 4.7.917l1.718.227c.104 0 .124.042.104.145l-.808 2.96 2.734-.828c.061-.042.124-.042.165.082l.27 1.532c.02.103 0 .145-.084.145l-2.856.227z"}),n==="M"&&Jh.default.createElement("path",{d:"M6.573 6.558c.056.055.092.13 0 .204l-1.148.74c-.093.056-.13.02-.167-.073L3.832 4.947l-1.87 2.055c-.02.037-.075.074-.13 0l-.889-.926c-.092-.055-.074-.111 0-.167l2.111-1.76-2.408-.906c-.037 0-.092-.074-.055-.167l.63-1.259a.097.097 0 0 1 .166-.036l2.111 1.37.13-2.704a.097.097 0 0 1 .111-.11L5.277.54c.092 0 .11.037.092.13l-.722 2.647 2.444-.74c.056-.038.111-.038.148.073l.241 1.37c.019.093 0 .13-.074.13l-2.556.204z"}))}wk.displayName="Asterisk";function Az(e){return _.createElement(pa,e,_.createElement(Pz,null))}function ep(e){return e&&e.__esModule?e.default:e}function Fz(e,t){e=Bl(e);let{children:n,labelPosition:r="top",labelAlign:i=r==="side"?"start":null,isRequired:a,necessityIndicator:s=a!=null?"icon":null,includeNecessityIndicatorInAccessibilityName:o=!1,htmlFor:l,for:u,elementType:c="label",onClick:d,...f}=e,h=In(t),{styleProps:p}=st(f),g=_n(ep($k),"@react-spectrum/label"),b=a?g.format("(required)"):g.format("(optional)"),v=_.createElement(Az,{UNSAFE_className:V(ep(te),"spectrum-FieldLabel-requiredIcon"),"aria-label":o?g.format("(required)"):void 0}),m=V(ep(te),"spectrum-FieldLabel",{"spectrum-FieldLabel--positionSide":r==="side","spectrum-FieldLabel--alignEnd":i==="end"},p.className);return _.createElement(c,{...Xt(f),...p,onClick:d,ref:h,className:m,htmlFor:c==="label"?u||l:void 0},n,(s==="label"||s==="icon"&&a)&&" ​",s==="label"&&_.createElement("span",{"aria-hidden":o?void 0:a},b),s==="icon"&&a&&v)}let Oz=_.forwardRef(Fz),Bz=_.createContext(null);function x$(e){let t=y.useContext(Bz);return t?{...t,...e}:e}function yi(e){return e&&e.__esModule?e.default:e}function Iz(e,t){let n=x$(e),r=n!==e;e=n;let{label:i,labelPosition:a="top",labelAlign:s,isRequired:o,necessityIndicator:l,includeNecessityIndicatorInAccessibilityName:u,validationState:c,isInvalid:d,description:f,errorMessage:h=N=>N.validationErrors.join(" "),validationErrors:p,validationDetails:g,isDisabled:b,showErrorIcon:v,contextualHelp:m,children:$,labelProps:w={},descriptionProps:D={},errorMessageProps:S={},elementType:k,wrapperClassName:x,wrapperProps:T={},...P}=e,{styleProps:E}=st(P),A=null;typeof h=="function"?A=d!=null&&p!=null&&g!=null?h({isInvalid:d,validationErrors:p,validationDetails:g}):null:A=h;let R=!!f||A&&(d||c==="invalid"),M=Zn(),z=Zn();i&&m&&!w.id&&(w.id=z);let O=V(yi(te),"spectrum-Field",{"spectrum-Field--positionTop":a==="top","spectrum-Field--positionSide":a==="side","spectrum-Field--alignEnd":s==="end","spectrum-Field--hasContextualHelp":!!e.contextualHelp},E.className,x);$=_.cloneElement($,de($.props,{className:V(yi(te),"spectrum-Field-field")}));let C=()=>_.createElement(NC,{descriptionProps:D,errorMessageProps:S,description:f,errorMessage:A,validationState:c,isInvalid:d,isDisabled:b,showErrorIcon:v,gridArea:yi(te).helpText}),F=()=>a==="side"?_.createElement(KS,{direction:"column",UNSAFE_className:V(yi(te),"spectrum-Field-wrapper")},$,R&&C()):_.createElement(_.Fragment,null,$,R&&C()),B=_.createElement(_.Fragment,null,i&&_.createElement(Oz,{...w,labelPosition:a,labelAlign:s,isRequired:o,necessityIndicator:l,includeNecessityIndicatorInAccessibilityName:u,elementType:k},i),i&&m&&_.createElement(Sf,{slots:{actionButton:{UNSAFE_className:V(yi(te),"spectrum-Field-contextualHelp"),id:M,"aria-labelledby":w!=null&&w.id?`${w.id} ${M}`:void 0}}},m));return r&&a==="side"&&i&&m&&(B=_.createElement("div",{className:V(yi(te),"spectrum-Field-labelCell")},_.createElement("div",{className:V(yi(te),"spectrum-Field-labelWrapper")},B))),_.createElement("div",{...E,...T,ref:t,className:O},B,F())}let Dk=_.forwardRef(Iz);function Cr(e){return e&&e.__esModule?e.default:e}function Lz(e){let{state:t,calendarProps:n,nextButtonProps:r,prevButtonProps:i,errorMessageProps:a,calendarRef:s,visibleMonths:o=1}=e,{styleProps:l}=st(e),u=_n(Cr(PC),"@react-spectrum/calendar"),{direction:c}=Qe(),d=t.visibleRange.start,f=$n({month:"long",year:"numeric",era:d.calendar.identifier==="gregory"&&d.era==="BC"?"short":void 0,calendar:d.calendar.identifier,timeZone:t.timeZone}),h=[],p=[];for(let g=0;g<o;g++){let b=d.add({months:g});h.push(_.createElement("div",{key:g,className:V(Cr(q),"spectrum-Calendar-monthHeader")},g===0&&_.createElement(Tg,{...i,UNSAFE_className:V(Cr(q),"spectrum-Calendar-prevMonth"),isQuiet:!0},c==="rtl"?_.createElement(D5,null):_.createElement(w5,null)),_.createElement("h2",{"aria-hidden":!0,className:V(Cr(q),"spectrum-Calendar-title")},f.format(b.toDate(t.timeZone))),g===o-1&&_.createElement(Tg,{...r,UNSAFE_className:V(Cr(q),"spectrum-Calendar-nextMonth"),isQuiet:!0},c==="rtl"?_.createElement(w5,null):_.createElement(D5,null)))),p.push(_.createElement(gz,{...e,key:g,state:t,startDate:b}))}return _.createElement("div",{...l,...n,ref:s,className:V(Cr(q),"spectrum-Calendar",l.className)},_.createElement($0,null,_.createElement("h2",null,n["aria-label"])),_.createElement("div",{className:V(Cr(q),"spectrum-Calendar-header")},h),_.createElement("div",{className:V(Cr(q),"spectrum-Calendar-months")},p),_.createElement($0,null,_.createElement("button",{"aria-label":r["aria-label"],disabled:r.isDisabled,onClick:()=>t.focusNextPage(),tabIndex:-1})),t.isValueInvalid&&_.createElement(NC,{showErrorIcon:!0,errorMessage:e.errorMessage||u.format("invalidSelection",{selectedCount:"highlightedRange"in t?2:1}),errorMessageProps:a,isInvalid:!0,UNSAFE_className:"spectrum-Calendar-helpText"}))}function Nz(e,t){e=Bl(e);let{visibleMonths:n=1}=e;n=Math.max(n,1);let r=y.useMemo(()=>({months:n}),[n]),{locale:i}=Qe(),a=JN({...e,locale:i,visibleDuration:r,createCalendar:S8}),s=y.useRef();y.useImperativeHandle(t,()=>({...vf(s),focus(){a.setFocused(!0)}}));let{calendarProps:o,prevButtonProps:l,nextButtonProps:u,errorMessageProps:c}=oN(e,a,s);return _.createElement(Lz,{...e,visibleMonths:n,state:a,calendarRef:s,calendarProps:o,prevButtonProps:l,nextButtonProps:u,errorMessageProps:c})}const jz=_.forwardRef(Nz),_k=_.createContext(null);var Ek={};Ek={alert:"تنبيه",dismiss:"تجاهل"};var Sk={};Sk={alert:"Сигнал",dismiss:"Отхвърляне"};var Ck={};Ck={alert:"Výstraha",dismiss:"Odstranit"};var kk={};kk={alert:"Advarsel",dismiss:"Luk"};var Pk={};Pk={alert:"Warnhinweis",dismiss:"Schließen"};var Tk={};Tk={alert:"Ειδοποίηση",dismiss:"Απόρριψη"};var Rk={};Rk={dismiss:"Dismiss",alert:"Alert"};var Mk={};Mk={alert:"Alerta",dismiss:"Descartar"};var Ak={};Ak={alert:"Teade",dismiss:"Lõpeta"};var Fk={};Fk={alert:"Hälytys",dismiss:"Hylkää"};var Ok={};Ok={alert:"Alerte",dismiss:"Rejeter"};var Bk={};Bk={alert:"התראה",dismiss:"התעלם"};var Ik={};Ik={alert:"Upozorenje",dismiss:"Odbaci"};var Lk={};Lk={alert:"Figyelmeztetés",dismiss:"Elutasítás"};var Nk={};Nk={alert:"Avviso",dismiss:"Ignora"};var jk={};jk={alert:"アラート",dismiss:"閉じる"};var zk={};zk={alert:"경고",dismiss:"무시"};var Vk={};Vk={alert:"Įspėjimas",dismiss:"Atmesti"};var Wk={};Wk={alert:"Brīdinājums",dismiss:"Nerādīt"};var Uk={};Uk={alert:"Varsel",dismiss:"Lukk"};var Hk={};Hk={alert:"Melding",dismiss:"Negeren"};var Kk={};Kk={alert:"Ostrzeżenie",dismiss:"Zignoruj"};var Yk={};Yk={alert:"Alerta",dismiss:"Descartar"};var qk={};qk={alert:"Alerta",dismiss:"Dispensar"};var Gk={};Gk={alert:"Alertă",dismiss:"Revocare"};var Zk={};Zk={alert:"Предупреждение",dismiss:"Пропустить"};var Xk={};Xk={alert:"Upozornenie",dismiss:"Zrušiť"};var Qk={};Qk={alert:"Opozorilo",dismiss:"Opusti"};var Jk={};Jk={alert:"Upozorenje",dismiss:"Odbaci"};var eP={};eP={alert:"Varning",dismiss:"Avvisa"};var tP={};tP={alert:"Uyarı",dismiss:"Kapat"};var nP={};nP={alert:"Сигнал тривоги",dismiss:"Скасувати"};var rP={};rP={alert:"警报",dismiss:"取消"};var iP={};iP={alert:"警示",dismiss:"關閉"};var aP={};aP={"ar-AE":Ek,"bg-BG":Sk,"cs-CZ":Ck,"da-DK":kk,"de-DE":Pk,"el-GR":Tk,"en-US":Rk,"es-ES":Mk,"et-EE":Ak,"fi-FI":Fk,"fr-FR":Ok,"he-IL":Bk,"hr-HR":Ik,"hu-HU":Lk,"it-IT":Nk,"ja-JP":jk,"ko-KR":zk,"lt-LT":Vk,"lv-LV":Wk,"nb-NO":Uk,"nl-NL":Hk,"pl-PL":Kk,"pt-BR":Yk,"pt-PT":qk,"ro-RO":Gk,"ru-RU":Zk,"sk-SK":Xk,"sl-SI":Qk,"sr-SP":Jk,"sv-SE":eP,"tr-TR":tP,"uk-UA":nP,"zh-CN":rP,"zh-TW":iP};function K(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var H={};K(H,"buttonGroup",()=>b4,e=>b4=e);K(H,"buttonGroup-end",()=>y4,e=>y4=e);K(H,"closeButton",()=>$4,e=>$4=e);K(H,"content",()=>x4,e=>x4=e);K(H,"divider",()=>w4,e=>w4=e);K(H,"focus-ring",()=>D4,e=>D4=e);K(H,"footer",()=>_4,e=>_4=e);K(H,"footer-start",()=>E4,e=>E4=e);K(H,"header",()=>S4,e=>S4=e);K(H,"header-end",()=>C4,e=>C4=e);K(H,"header-start",()=>k4,e=>k4=e);K(H,"heading",()=>P4,e=>P4=e);K(H,"heading-start",()=>T4,e=>T4=e);K(H,"hero",()=>R4,e=>R4=e);K(H,"i18nFontFamily",()=>M4,e=>M4=e);K(H,"spectrum-Button",()=>A4,e=>A4=e);K(H,"spectrum-Dialog",()=>F4,e=>F4=e);K(H,"spectrum-Dialog--dismissable",()=>O4,e=>O4=e);K(H,"spectrum-Dialog--error",()=>B4,e=>B4=e);K(H,"spectrum-Dialog--fullscreen",()=>I4,e=>I4=e);K(H,"spectrum-Dialog--fullscreenTakeover",()=>L4,e=>L4=e);K(H,"spectrum-Dialog--large",()=>N4,e=>N4=e);K(H,"spectrum-Dialog--medium",()=>j4,e=>j4=e);K(H,"spectrum-Dialog--noDivider",()=>z4,e=>z4=e);K(H,"spectrum-Dialog--small",()=>V4,e=>V4=e);K(H,"spectrum-Dialog--warning",()=>W4,e=>W4=e);K(H,"spectrum-Dialog-buttonGroup",()=>U4,e=>U4=e);K(H,"spectrum-Dialog-buttonGroup--noFooter",()=>H4,e=>H4=e);K(H,"spectrum-Dialog-closeButton",()=>K4,e=>K4=e);K(H,"spectrum-Dialog-content",()=>Y4,e=>Y4=e);K(H,"spectrum-Dialog-divider",()=>q4,e=>q4=e);K(H,"spectrum-Dialog-footer",()=>G4,e=>G4=e);K(H,"spectrum-Dialog-grid",()=>Z4,e=>Z4=e);K(H,"spectrum-Dialog-header",()=>X4,e=>X4=e);K(H,"spectrum-Dialog-header--noTypeIcon",()=>Q4,e=>Q4=e);K(H,"spectrum-Dialog-heading",()=>J4,e=>J4=e);K(H,"spectrum-Dialog-heading--noHeader",()=>eb,e=>eb=e);K(H,"spectrum-Dialog-heading--noTypeIcon",()=>tb,e=>tb=e);K(H,"spectrum-Dialog-hero",()=>nb,e=>nb=e);K(H,"spectrum-Dialog-typeIcon",()=>rb,e=>rb=e);K(H,"spectrum-FocusRing-ring",()=>Pd,e=>Pd=e);K(H,"spectrum-FocusRing",()=>ib,e=>ib=e);K(H,"spectrum-FocusRing--quiet",()=>ab,e=>ab=e);K(H,"spectrum-overlay",()=>sb,e=>sb=e);K(H,"spectrum-overlay--bottom--open",()=>ob,e=>ob=e);K(H,"spectrum-overlay--left--open",()=>lb,e=>lb=e);K(H,"spectrum-overlay--open",()=>ub,e=>ub=e);K(H,"spectrum-overlay--right--open",()=>cb,e=>cb=e);K(H,"spectrum-overlay--top--open",()=>db,e=>db=e);K(H,"typeIcon",()=>fb,e=>fb=e);K(H,"typeIcon-end",()=>hb,e=>hb=e);var b4,y4,$4,x4,w4,D4,_4,E4,S4,C4,k4,P4,T4,R4,M4,A4,F4,O4,B4,I4,L4,N4,j4,z4,V4,W4,U4,H4,K4,Y4,q4,G4,Z4,X4,Q4,J4,eb,tb,nb,rb,Pd,ib,ab,sb,ob,lb,ub,cb,db,fb,hb;b4="h_OVWW_buttonGroup";y4="h_OVWW_buttonGroup-end";$4="h_OVWW_closeButton";x4="h_OVWW_content";w4="h_OVWW_divider";D4="h_OVWW_focus-ring";_4="h_OVWW_footer";E4="h_OVWW_footer-start";S4="h_OVWW_header";C4="h_OVWW_header-end";k4="h_OVWW_header-start";P4="h_OVWW_heading";T4="h_OVWW_heading-start";R4="h_OVWW_hero";M4="h_OVWW_i18nFontFamily";A4="h_OVWW_spectrum-Button";F4="h_OVWW_spectrum-Dialog";O4="h_OVWW_spectrum-Dialog--dismissable";B4="h_OVWW_spectrum-Dialog--error";I4="h_OVWW_spectrum-Dialog--fullscreen";L4="h_OVWW_spectrum-Dialog--fullscreenTakeover";N4="h_OVWW_spectrum-Dialog--large";j4="h_OVWW_spectrum-Dialog--medium";z4="h_OVWW_spectrum-Dialog--noDivider";V4="h_OVWW_spectrum-Dialog--small";W4="h_OVWW_spectrum-Dialog--warning";U4="h_OVWW_spectrum-Dialog-buttonGroup";H4="h_OVWW_spectrum-Dialog-buttonGroup--noFooter";K4="h_OVWW_spectrum-Dialog-closeButton";Y4="h_OVWW_spectrum-Dialog-content";q4="h_OVWW_spectrum-Dialog-divider";G4="h_OVWW_spectrum-Dialog-footer";Z4="h_OVWW_spectrum-Dialog-grid";X4="h_OVWW_spectrum-Dialog-header";Q4="h_OVWW_spectrum-Dialog-header--noTypeIcon";J4="h_OVWW_spectrum-Dialog-heading";eb="h_OVWW_spectrum-Dialog-heading--noHeader";tb="h_OVWW_spectrum-Dialog-heading--noTypeIcon";nb="h_OVWW_spectrum-Dialog-hero";rb="h_OVWW_spectrum-Dialog-typeIcon";Pd="h_OVWW_spectrum-FocusRing-ring";ib=`h_OVWW_spectrum-FocusRing ${Pd}`;ab="h_OVWW_spectrum-FocusRing--quiet";sb="h_OVWW_spectrum-overlay";ob="h_OVWW_spectrum-overlay--bottom--open";lb="h_OVWW_spectrum-overlay--left--open";ub="h_OVWW_spectrum-overlay--open";cb="h_OVWW_spectrum-overlay--right--open";db="h_OVWW_spectrum-overlay--top--open";fb="h_OVWW_typeIcon";hb="h_OVWW_typeIcon-end";function wt(e){return e&&e.__esModule?e.default:e}let _5={S:"small",M:"medium",L:"large",fullscreen:"fullscreen",fullscreenTakeover:"fullscreenTakeover"};function zz(e,t){e=oi(e,"dialog");let{type:n="modal",...r}=y.useContext(_k)||{},{children:i,isDismissable:a=r.isDismissable,onDismiss:s=r.onClose,size:o,...l}=e,u=_n(wt(aP),"@react-spectrum/dialog"),{styleProps:c}=st(l);o=n==="popover"?o||"S":o||"L";let d=In(t),f=y.useRef(null),h=_5[n]||_5[o],{dialogProps:p,titleProps:g}=XN(de(r,e),d),b=fu(`.${wt(H)["spectrum-Dialog-header"]}`,ou(f)),v=fu(`.${wt(H)["spectrum-Dialog-heading"]}`,ou(f)),m=fu(`.${wt(H)["spectrum-Dialog-footer"]}`,ou(f)),$=fu(`.${wt(H)["spectrum-Dialog-typeIcon"]}`,ou(f)),w=y.useMemo(()=>({hero:{UNSAFE_className:wt(H)["spectrum-Dialog-hero"]},heading:{UNSAFE_className:V(wt(H),"spectrum-Dialog-heading",{"spectrum-Dialog-heading--noHeader":!b,"spectrum-Dialog-heading--noTypeIcon":!$}),level:2,...g},header:{UNSAFE_className:V(wt(H),"spectrum-Dialog-header",{"spectrum-Dialog-header--noHeading":!v,"spectrum-Dialog-header--noTypeIcon":!$})},typeIcon:{UNSAFE_className:wt(H)["spectrum-Dialog-typeIcon"]},divider:{UNSAFE_className:wt(H)["spectrum-Dialog-divider"],size:"M"},content:{UNSAFE_className:wt(H)["spectrum-Dialog-content"]},footer:{UNSAFE_className:wt(H)["spectrum-Dialog-footer"]},buttonGroup:{UNSAFE_className:V(wt(H),"spectrum-Dialog-buttonGroup",{"spectrum-Dialog-buttonGroup--noFooter":!m}),align:"end"}}),[m,b,g]);return _.createElement("section",{...c,...p,className:V(wt(H),"spectrum-Dialog",{[`spectrum-Dialog--${h}`]:h,"spectrum-Dialog--dismissable":a},c.className),ref:d},_.createElement(az,{ref:f,UNSAFE_className:wt(H)["spectrum-Dialog-grid"]},_.createElement(Sf,{slots:w},i),a&&_.createElement(Tg,{UNSAFE_className:wt(H)["spectrum-Dialog-closeButton"],isQuiet:!0,"aria-label":u.format("dismiss"),onPress:s},_.createElement(pz,null))))}let Vz=_.forwardRef(zz);function Wz(e,t){e=oi(e,"content");let{children:n,...r}=e,{styleProps:i}=st(r),a=In(t);return _.createElement("section",{...Xt(r),...i,ref:a},_.createElement(V8,null,n))}const Uz=y.forwardRef(Wz);function pb(e){let{children:t,type:n="modal",mobileType:r=n==="popover"?"modal":n,hideArrow:i,targetRef:a,isDismissable:s,isKeyboardDismissDisabled:o,...l}=e;if(!Array.isArray(t)||t.length>2)throw new Error("DialogTrigger must have exactly 2 children");let[u,c]=t;gL()&&(n!=="modal"&&r==="modal"&&(s=!0),n=r);let f=Q9(e),h=y.useRef(!1);y.useEffect(()=>{h.current=f.isOpen},[f.isOpen]);let p=y.useRef(!1),g=()=>p.current=!0,b=()=>p.current=!1;if(y.useEffect(()=>()=>{(h.current||p.current)&&n!=="popover"&&n!=="tray"&&console.warn("A DialogTrigger unmounted while open. This is likely due to being placed within a trigger that unmounts or inside a conditional. Consider using a DialogContainer instead.")},[]),n==="popover")return _.createElement(Kz,{...l,state:f,targetRef:a,trigger:u,content:c,isKeyboardDismissDisabled:o,hideArrow:i});let v=()=>{switch(n){case"fullscreen":case"fullscreenTakeover":case"modal":return _.createElement(Yj,{state:f,isDismissable:n==="modal"?s:!1,type:n,isKeyboardDismissDisabled:o,onExiting:g,onExited:b},typeof c=="function"?c(f.close):c);case"tray":return _.createElement(Zj,{state:f,isKeyboardDismissDisabled:o},typeof c=="function"?c(f.close):c)}};return _.createElement(sP,{type:n,state:f,isDismissable:s,trigger:u,overlay:v()})}pb.getCollectionNode=function*(e){let[t]=_.Children.toArray(e.children),[,n]=e.children;yield{element:t,wrapper:r=>_.createElement(pb,{key:r.key,...e},r,n)}};let Hz=pb;function Kz({state:e,targetRef:t,trigger:n,content:r,hideArrow:i,...a}){let s=y.useRef(null),{triggerProps:o,overlayProps:l}=PN({type:"dialog"},e,s),u={...o,ref:t?void 0:s},c=_.createElement(Wj,{...a,hideArrow:i,triggerRef:t||s,state:e},typeof r=="function"?r(e.close):r);return _.createElement(sP,{type:"popover",state:e,triggerProps:u,dialogProps:l,trigger:n,overlay:c})}function sP({type:e,state:t,isDismissable:n,dialogProps:r={},triggerProps:i={},overlay:a,trigger:s}){let o={type:e,onClose:t.close,isDismissable:n,...r};return _.createElement(y.Fragment,null,_.createElement(EL,{...i,onPress:t.toggle,isPressed:t.isOpen&&e!=="modal"&&e!=="fullscreen"&&e!=="fullscreenTakeover"},s),_.createElement(_k.Provider,{value:o},a))}function Ue(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var ee={};Ue(ee,"is-invalid",()=>mb,e=>mb=e);Ue(ee,"is-placeholder",()=>gb,e=>gb=e);Ue(ee,"is-read-only",()=>vb,e=>vb=e);Ue(ee,"react-spectrum-DateField",()=>bb,e=>bb=e);Ue(ee,"react-spectrum-DateField-Input",()=>yb,e=>yb=e);Ue(ee,"react-spectrum-DatePicker-cell",()=>$b,e=>$b=e);Ue(ee,"react-spectrum-DatePicker-placeholder",()=>xb,e=>xb=e);Ue(ee,"react-spectrum-Datepicker-calendar",()=>wb,e=>wb=e);Ue(ee,"react-spectrum-Datepicker-dialog",()=>Db,e=>Db=e);Ue(ee,"react-spectrum-Datepicker-dialogContent",()=>_b,e=>_b=e);Ue(ee,"react-spectrum-Datepicker-endField",()=>Eb,e=>Eb=e);Ue(ee,"react-spectrum-Datepicker-field",()=>Sb,e=>Sb=e);Ue(ee,"react-spectrum-Datepicker-fieldWrapper",()=>Cb,e=>Cb=e);Ue(ee,"react-spectrum-Datepicker-input",()=>kb,e=>kb=e);Ue(ee,"react-spectrum-Datepicker-inputContents",()=>Pb,e=>Pb=e);Ue(ee,"react-spectrum-Datepicker-literal",()=>Tb,e=>Tb=e);Ue(ee,"react-spectrum-Datepicker-rangeDash",()=>Rb,e=>Rb=e);Ue(ee,"react-spectrum-Datepicker-segments",()=>Mb,e=>Mb=e);Ue(ee,"react-spectrum-Datepicker-startField",()=>Ab,e=>Ab=e);Ue(ee,"react-spectrum-Datepicker-timeFields",()=>Fb,e=>Fb=e);Ue(ee,"react-spectrum-TimeField",()=>Ob,e=>Ob=e);Ue(ee,"react-spectrum-TimeField-fieldWrapper",()=>Bb,e=>Bb=e);var mb,gb,vb,bb,yb,$b,xb,wb,Db,_b,Eb,Sb,Cb,kb,Pb,Tb,Rb,Mb,Ab,Fb,Ob,Bb;mb="_2n04KW_is-invalid";gb="_2n04KW_is-placeholder";vb="_2n04KW_is-read-only";bb="_2n04KW_react-spectrum-DateField";yb="_2n04KW_react-spectrum-DateField-Input";$b="_2n04KW_react-spectrum-DatePicker-cell";xb="_2n04KW_react-spectrum-DatePicker-placeholder";wb="_2n04KW_react-spectrum-Datepicker-calendar";Db="_2n04KW_react-spectrum-Datepicker-dialog";_b="_2n04KW_react-spectrum-Datepicker-dialogContent";Eb="_2n04KW_react-spectrum-Datepicker-endField";Sb="_2n04KW_react-spectrum-Datepicker-field";Cb="_2n04KW_react-spectrum-Datepicker-fieldWrapper";kb="_2n04KW_react-spectrum-Datepicker-input";Pb="_2n04KW_react-spectrum-Datepicker-inputContents";Tb="_2n04KW_react-spectrum-Datepicker-literal";Rb="_2n04KW_react-spectrum-Datepicker-rangeDash";Mb="_2n04KW_react-spectrum-Datepicker-segments";Ab="_2n04KW_react-spectrum-Datepicker-startField";Fb="_2n04KW_react-spectrum-Datepicker-timeFields";Ob="_2n04KW_react-spectrum-TimeField";Bb="_2n04KW_react-spectrum-TimeField-fieldWrapper";function Ib(e){return e&&e.__esModule?e.default:e}function oP({segment:e,state:t,...n}){switch(e.type){case"literal":return _.createElement(Yz,{segment:e});default:return _.createElement(qz,{segment:e,state:t,...n})}}function Yz({segment:e}){return _.createElement("span",{"aria-hidden":"true",className:V(Ib(ee),"react-spectrum-Datepicker-literal"),"data-testid":e.type==="literal"?void 0:e.type},e.text)}function qz({segment:e,state:t}){let n=y.useRef(),{segmentProps:r}=YN(e,t,n);return _.createElement("div",{...r,ref:n,className:V(Ib(ee),"react-spectrum-DatePicker-cell",{"is-placeholder":e.isPlaceholder,"is-read-only":!e.isEditable}),style:{...r.style,minWidth:e.maxValue!=null?String(e.maxValue).length+"ch":null},"data-testid":e.type},_.createElement("span",{"aria-hidden":"true",className:V(Ib(ee),"react-spectrum-DatePicker-placeholder")},e.placeholder),e.isPlaceholder?"":e.text)}function Gz(e){return e&&e.__esModule?e.default:e}function E5(e){let{isDisabled:t,isReadOnly:n,isRequired:r,inputClassName:i}=e,a=y.useRef(),{locale:s}=Qe(),o=LS({...e,locale:s,createCalendar:S8}),l=y.useRef(),{fieldProps:u,inputProps:c}=p9({...e,inputRef:l},o,a);return _.createElement("div",{...u,"data-testid":e["data-testid"],className:V(Gz(ee),"react-spectrum-Datepicker-segments",i),ref:a},o.segments.map((d,f)=>_.createElement(oP,{key:f,segment:d,state:o,isDisabled:t,isReadOnly:n,isRequired:r})),_.createElement("input",{...c,ref:l}))}function He(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Re={};He(Re,"focus-ring",()=>Lb,e=>Lb=e);He(Re,"i18nFontFamily",()=>Td,e=>Td=e);He(Re,"is-disabled",()=>Nb,e=>Nb=e);He(Re,"is-focused",()=>jb,e=>jb=e);He(Re,"is-hovered",()=>zb,e=>zb=e);He(Re,"is-placeholder",()=>Vb,e=>Vb=e);He(Re,"spectrum-FocusRing-ring",()=>Rd,e=>Rd=e);He(Re,"spectrum-FocusRing",()=>Md,e=>Md=e);He(Re,"spectrum-FocusRing--quiet",()=>Ad,e=>Ad=e);He(Re,"spectrum-Textfield",()=>Wb,e=>Wb=e);He(Re,"spectrum-Textfield--invalid",()=>Ub,e=>Ub=e);He(Re,"spectrum-Textfield--loadable",()=>Hb,e=>Hb=e);He(Re,"spectrum-Textfield--multiline",()=>Kb,e=>Kb=e);He(Re,"spectrum-Textfield--quiet",()=>Yb,e=>Yb=e);He(Re,"spectrum-Textfield--valid",()=>qb,e=>qb=e);He(Re,"spectrum-Textfield-circleLoader",()=>Gb,e=>Gb=e);He(Re,"spectrum-Textfield-icon",()=>Zb,e=>Zb=e);He(Re,"spectrum-Textfield-input",()=>Xb,e=>Xb=e);He(Re,"spectrum-Textfield-inputIcon",()=>Qb,e=>Qb=e);He(Re,"spectrum-Textfield-validationIcon",()=>Jb,e=>Jb=e);He(Re,"spectrum-Textfield-wrapper",()=>e3,e=>e3=e);He(Re,"spectrum-Textfield-wrapper--quiet",()=>t3,e=>t3=e);var Lb,Td,Nb,jb,zb,Vb,Rd,Md,Ad,Wb,Ub,Hb,Kb,Yb,qb,Gb,Zb,Xb,Qb,Jb,e3,t3;Lb="YO3Nla_focus-ring";Td="YO3Nla_i18nFontFamily";Nb="YO3Nla_is-disabled";jb="YO3Nla_is-focused";zb="YO3Nla_is-hovered";Vb="YO3Nla_is-placeholder";Rd="YO3Nla_spectrum-FocusRing-ring";Md=`YO3Nla_spectrum-FocusRing ${Rd}`;Ad="YO3Nla_spectrum-FocusRing--quiet";Wb=`YO3Nla_spectrum-Textfield ${Md}`;Ub="YO3Nla_spectrum-Textfield--invalid";Hb="YO3Nla_spectrum-Textfield--loadable";Kb="YO3Nla_spectrum-Textfield--multiline";Yb=`YO3Nla_spectrum-Textfield--quiet ${Ad}`;qb="YO3Nla_spectrum-Textfield--valid";Gb="YO3Nla_spectrum-Textfield-circleLoader";Zb="YO3Nla_spectrum-Textfield-icon";Xb=`YO3Nla_spectrum-Textfield-input ${Td}`;Qb="YO3Nla_spectrum-Textfield-inputIcon";Jb="YO3Nla_spectrum-Textfield-validationIcon";e3="YO3Nla_spectrum-Textfield-wrapper";t3="YO3Nla_spectrum-Textfield-wrapper--quiet";function $i(e){return e&&e.__esModule?e.default:e}function Zz(e,t){let n=y.useRef(null),{isDisabled:r,isQuiet:i,inputClassName:a,validationState:s,children:o,fieldProps:l,className:u,style:c,disableFocusRing:d}=e,[f,h]=k8(!1),p=y.useCallback(()=>h(function*(k){if(n.current){if(k){if(n.current.scrollWidth>n.current.offsetWidth){let x=n.current.parentElement.offsetWidth;yield!1,n.current.parentElement.offsetWidth!==x&&(yield!0)}}else if(n.current.offsetWidth>=n.current.scrollWidth){let x=n.current.parentElement.offsetWidth;yield!0,n.current.parentElement.offsetWidth===x&&(yield!1)}}}),[n,h]);he(p,[p]),O8({ref:n,onResize:p}),is(y.useRef(typeof window<"u"?window:null),"resize",p);let{focusProps:g,isFocusVisible:b,isFocused:v}=ul({isTextInput:!0,within:!0}),m=s==="invalid"&&!r,$=V($i(Re),"spectrum-Textfield",{"spectrum-Textfield--invalid":m,"spectrum-Textfield--valid":s==="valid"&&!r,"spectrum-Textfield--quiet":i,"focus-ring":b&&!d},V($i(ee),"react-spectrum-Datepicker-field"),u),w=V($i(Re),"spectrum-Textfield-input",{"is-disabled":r,"is-focused":v},V($i(ee),"react-spectrum-DateField-Input"),f&&V($i(ee),"react-spectrum-Datepicker-input"),a),D=V($i(Re),"spectrum-Textfield-validationIcon"),S=null;return s==="invalid"&&!r?S=_.createElement(LC,{"data-testid":"invalid-icon",UNSAFE_className:D}):s==="valid"&&!r&&(S=_.createElement(tz,{"data-testid":"valid-icon",UNSAFE_className:D})),_.createElement("div",{role:"presentation",...de(l,g),className:$,style:c},_.createElement("div",{role:"presentation",className:w},_.createElement("div",{role:"presentation",className:V($i(ee),"react-spectrum-Datepicker-inputContents"),ref:PI(t,n)},o)),S)}const lP=_.forwardRef(Zz);var uP={};uP={endTime:"وقت الانتهاء",startTime:"وقت البدء",time:"الوقت"};var cP={};cP={endTime:"Краен час",startTime:"Начален час",time:"Време"};var dP={};dP={endTime:"Konečný čas",startTime:"Počáteční čas",time:"Čas"};var fP={};fP={endTime:"Sluttidspunkt",startTime:"Starttidspunkt",time:"Klokkeslæt"};var hP={};hP={endTime:"Endzeit",startTime:"Startzeit",time:"Uhrzeit"};var pP={};pP={endTime:"Χρόνος λήξης",startTime:"Ώρα έναρξης",time:"Χρόνος"};var mP={};mP={time:"Time",startTime:"Start time",endTime:"End time"};var gP={};gP={endTime:"Hora de finalización",startTime:"Hora de inicio",time:"Hora"};var vP={};vP={endTime:"Lõpuaeg",startTime:"Algusaeg",time:"Aeg"};var bP={};bP={endTime:"Päättymisaika",startTime:"Alkamisaika",time:"Aika"};var yP={};yP={endTime:"Heure de fin",startTime:"Heure de début",time:"Heure"};var $P={};$P={endTime:"שעת סיום",startTime:"שעת התחלה",time:"זמן"};var xP={};xP={endTime:"Vrijeme završetka",startTime:"Vrijeme početka",time:"Vrijeme"};var wP={};wP={endTime:"Befejezés ideje",startTime:"Kezdés ideje",time:"Idő"};var DP={};DP={endTime:"Ora di fine",startTime:"Ora di inizio",time:"Ora"};var _P={};_P={endTime:"終了時刻",startTime:"開始時刻",time:"時刻"};var EP={};EP={endTime:"종료 시간",startTime:"시작 시간",time:"시간"};var SP={};SP={endTime:"Pabaigos laikas",startTime:"Pradžios laikas",time:"Laikas"};var CP={};CP={endTime:"Beigu laiks",startTime:"Sākuma laiks",time:"Laiks"};var kP={};kP={endTime:"Sluttid",startTime:"Starttid",time:"Tid"};var PP={};PP={endTime:"Eindtijd",startTime:"Starttijd",time:"Tijd"};var TP={};TP={endTime:"Godzina końcowa",startTime:"Godzina początkowa",time:"Godzina"};var RP={};RP={endTime:"Hora final",startTime:"Hora inicial",time:"Hora"};var MP={};MP={endTime:"Terminar tempo",startTime:"Iniciar tempo",time:"Tempo"};var AP={};AP={endTime:"Ora de sfârșit",startTime:"Ora de început",time:"Ora"};var FP={};FP={endTime:"Время окончания",startTime:"Время начала",time:"Время"};var OP={};OP={endTime:"Čas ukončenia",startTime:"Čas začiatku",time:"Čas"};var BP={};BP={endTime:"Končni čas",startTime:"Začetni čas",time:"Čas"};var IP={};IP={endTime:"Završno vreme",startTime:"Početno vreme",time:"Vreme"};var LP={};LP={endTime:"Sluttid",startTime:"Starttid",time:"Tid"};var NP={};NP={endTime:"Bitiş saati",startTime:"Başlangıç saati",time:"Saat"};var jP={};jP={endTime:"Час завершення",startTime:"Час початку",time:"Час"};var zP={};zP={endTime:"结束时间",startTime:"开始时间",time:"时间"};var VP={};VP={endTime:"結束時間",startTime:"開始時間",time:"時間"};var WP={};WP={"ar-AE":uP,"bg-BG":cP,"cs-CZ":dP,"da-DK":fP,"de-DE":hP,"el-GR":pP,"en-US":mP,"es-ES":gP,"et-EE":vP,"fi-FI":bP,"fr-FR":yP,"he-IL":$P,"hr-HR":xP,"hu-HU":wP,"it-IT":DP,"ja-JP":_P,"ko-KR":EP,"lt-LT":SP,"lv-LV":CP,"nb-NO":kP,"nl-NL":PP,"pl-PL":TP,"pt-BR":RP,"pt-PT":MP,"ro-RO":AP,"ru-RU":FP,"sk-SK":OP,"sl-SI":BP,"sr-SP":IP,"sv-SE":LP,"tr-TR":NP,"uk-UA":jP,"zh-CN":zP,"zh-TW":VP};function Se(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var fe={};Se(fe,"focus-ring",()=>n3,e=>n3=e);Se(fe,"i18nFontFamily",()=>r3,e=>r3=e);Se(fe,"is-disabled",()=>i3,e=>i3=e);Se(fe,"is-focused",()=>a3,e=>a3=e);Se(fe,"is-hovered",()=>s3,e=>s3=e);Se(fe,"is-selected",()=>o3,e=>o3=e);Se(fe,"spectrum-Datepicker--datetimeRange",()=>l3,e=>l3=e);Se(fe,"spectrum-Datepicker--range",()=>u3,e=>u3=e);Se(fe,"spectrum-Datepicker--rangeDash",()=>c3,e=>c3=e);Se(fe,"spectrum-Datepicker-endField",()=>d3,e=>d3=e);Se(fe,"spectrum-Datepicker-focusRing",()=>f3,e=>f3=e);Se(fe,"spectrum-Datepicker-startField",()=>h3,e=>h3=e);Se(fe,"spectrum-FieldButton",()=>p3,e=>p3=e);Se(fe,"spectrum-FieldButton--invalid",()=>m3,e=>m3=e);Se(fe,"spectrum-FocusRing-ring",()=>Fd,e=>Fd=e);Se(fe,"spectrum-FocusRing",()=>Od,e=>Od=e);Se(fe,"spectrum-FocusRing--quiet",()=>Bd,e=>Bd=e);Se(fe,"spectrum-InputGroup",()=>g3,e=>g3=e);Se(fe,"spectrum-InputGroup--invalid",()=>v3,e=>v3=e);Se(fe,"spectrum-InputGroup--quiet",()=>b3,e=>b3=e);Se(fe,"spectrum-InputGroup-field",()=>y3,e=>y3=e);Se(fe,"spectrum-InputGroup-icon",()=>$3,e=>$3=e);Se(fe,"spectrum-InputGroup-input",()=>x3,e=>x3=e);Se(fe,"spectrum-InputGroup-input-circleLoader",()=>w3,e=>w3=e);Se(fe,"spectrum-InputGroup-input-validationIcon",()=>D3,e=>D3=e);Se(fe,"spectrum-InputGroup-popover--quiet",()=>_3,e=>_3=e);var n3,r3,i3,a3,s3,o3,l3,u3,c3,d3,f3,h3,p3,m3,Fd,Od,Bd,g3,v3,b3,y3,$3,x3,w3,D3,_3;n3="ZTA2ya_focus-ring";r3="ZTA2ya_i18nFontFamily";i3="ZTA2ya_is-disabled";a3="ZTA2ya_is-focused";s3="ZTA2ya_is-hovered";o3="ZTA2ya_is-selected";l3="ZTA2ya_spectrum-Datepicker--datetimeRange";u3="ZTA2ya_spectrum-Datepicker--range";c3="ZTA2ya_spectrum-Datepicker--rangeDash";d3="ZTA2ya_spectrum-Datepicker-endField";f3="ZTA2ya_spectrum-Datepicker-focusRing";h3="ZTA2ya_spectrum-Datepicker-startField";p3="ZTA2ya_spectrum-FieldButton";m3="ZTA2ya_spectrum-FieldButton--invalid";Fd="ZTA2ya_spectrum-FocusRing-ring";Od=`ZTA2ya_spectrum-FocusRing ${Fd}`;Bd="ZTA2ya_spectrum-FocusRing--quiet";g3=`ZTA2ya_spectrum-InputGroup ${Od}`;v3="ZTA2ya_spectrum-InputGroup--invalid";b3=`ZTA2ya_spectrum-InputGroup--quiet ${Bd}`;y3="ZTA2ya_spectrum-InputGroup-field";$3="ZTA2ya_spectrum-InputGroup-icon";x3="ZTA2ya_spectrum-InputGroup-input";w3="ZTA2ya_spectrum-InputGroup-input-circleLoader";D3="ZTA2ya_spectrum-InputGroup-input-validationIcon";_3="ZTA2ya_spectrum-InputGroup-popover--quiet";function Xz(e){let t=$n({dateStyle:"short"}),n=m9();return y.useMemo(()=>e.description?e.description:e.showFormatHelpText?t.formatToParts(new Date).map(r=>r.type==="literal"?r.value:n.of(r.type)).join(" "):"",[e.description,e.showFormatHelpText,t,n])}function Qz(e){let{scale:t}=ha(),[n,r]=y.useState(S5(t));return he(()=>{let i=()=>r(S5(t));return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[t]),Math.max(1,Math.min(n,e,3))}function S5(e){if(typeof window>"u")return 1;let t=e==="large"?336:280,n=e==="large"?30:24,r=e==="large"?32:48;return Math.floor((window.innerWidth-r*2)/(t+n))}function UP(e){let t=y.useRef();return y.useImperativeHandle(e,()=>({...vf(t),focus(){Pf(t).focusFirst({tabbable:!0})}})),t}function C5(e){return e&&e.__esModule?e.default:e}function Jz(e,t){e=Bl(e),e=x$(e);let{autoFocus:n,isDisabled:r,isReadOnly:i,isRequired:a,isQuiet:s}=e,o=UP(t),{locale:l}=Qe(),u=dj({...e,locale:l}),c=y.useRef(null),d=y.useRef(null),{labelProps:f,fieldProps:h,inputProps:p,descriptionProps:g,errorMessageProps:b,isInvalid:v,validationErrors:m,validationDetails:$}=VN({...e,inputRef:d},u,c),w=u.validationState||(v?"invalid":null);return _.createElement(Dk,{...e,ref:o,elementType:"span",labelProps:f,descriptionProps:g,errorMessageProps:b,validationState:w,isInvalid:v,validationErrors:m,validationDetails:$,wrapperClassName:V(C5(ee),"react-spectrum-TimeField-fieldWrapper")},_.createElement(lP,{ref:c,fieldProps:h,isDisabled:r,isQuiet:s,autoFocus:n,validationState:w,className:V(C5(ee),"react-spectrum-TimeField")},u.segments.map((D,S)=>_.createElement(oP,{key:S,segment:D,state:u,isDisabled:r,isReadOnly:i,isRequired:a})),_.createElement("input",{...p,ref:d})))}const k5=_.forwardRef(Jz);var HP={};Object.defineProperty(HP,"__esModule",{value:!0});var eV=HP.A4uCalendar=nV,Nt=tV(y);function tV(e){return e&&e.__esModule?e:{default:e}}function Id(){return Id=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Id.apply(this,arguments)}function nV(e){var t=Id({},e);return Nt.default.createElement("svg",Id({viewBox:"0 0 36 36"},t,t),Nt.default.createElement("path",{fillRule:"evenodd",d:"M33,6H28V3a1,1,0,0,0-1-1H25a1,1,0,0,0-1,1V6H10V3A1,1,0,0,0,9,2H7A1,1,0,0,0,6,3V6H1A1,1,0,0,0,0,7V33a1,1,0,0,0,1,1H33a1,1,0,0,0,1-1V7A1,1,0,0,0,33,6ZM32,32H2V8H6V9a1,1,0,0,0,1,1H9a1,1,0,0,0,1-1V8H24V9a1,1,0,0,0,1,1h2a1,1,0,0,0,1-1V8h4Z"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"6",y:"12",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"12",y:"12",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"18",y:"12",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"24",y:"12",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"6",y:"18",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"12",y:"18",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"18",y:"18",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"24",y:"18",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"6",y:"24",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"12",y:"24",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"18",y:"24",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"24",y:"24",width:"4",height:"4"}))}function rV(e){return _.createElement(_j,e,_.createElement(eV,null))}function zt(e){return e&&e.__esModule?e.default:e}function iV(e,t){var n,r;e=Bl(e),e=x$(e);let{isQuiet:i,isDisabled:a,autoFocus:s,placeholderValue:o,maxVisibleMonths:l=1,pageBehavior:u}=e,{hoverProps:c,isHovered:d}=kf({isDisabled:a}),f=y.useRef(),h=cj({...e,shouldCloseOnSelect:()=>!h.hasTime}),{labelProps:p,groupProps:g,buttonProps:b,dialogProps:v,startFieldProps:m,endFieldProps:$,descriptionProps:w,errorMessageProps:D,calendarProps:S,isInvalid:k,validationErrors:x,validationDetails:T}=ZN(e,h,f),{isOpen:P,setOpen:E}=h,{direction:A}=Qe(),R=UP(t),M=_n(zt(WP),"@react-spectrum/datepicker"),{isFocused:z,isFocusVisible:O,focusProps:C}=ul({within:!0,isTextInput:!0,autoFocus:s}),{isFocused:F,focusProps:B}=ul({within:!1,isTextInput:!1,autoFocus:s}),N=V(zt(fe),"spectrum-InputGroup",{"spectrum-InputGroup--quiet":i,"spectrum-InputGroup--invalid":k&&!a,"is-disabled":a,"is-hovered":d,"is-focused":z,"focus-ring":O&&!F}),X=V(zt(fe),"spectrum-InputGroup-input",{"is-disabled":a,"is-invalid":k&&!a}),Q=Xz(e);Q&&!e.description&&(w.id=null);let je=o,$e=je&&"hour"in je?je:null,lt=e.minValue&&"hour"in e.minValue?e.minValue:null,xe=e.maxValue&&"hour"in e.maxValue?e.maxValue:null,W=h.granularity==="hour"||h.granularity==="minute"||h.granularity==="second"?h.granularity:null,Ce=!!W,et=Qz(l),yt=h.validationState||(k?"invalid":null);return _.createElement(Dk,{...e,ref:R,elementType:"span",description:Q,labelProps:p,descriptionProps:w,errorMessageProps:D,validationState:yt,isInvalid:k,validationErrors:x,validationDetails:T,wrapperClassName:V(zt(ee),"react-spectrum-Datepicker-fieldWrapper")},_.createElement("div",{...de(g,c,C),className:N,ref:f},_.createElement(lP,{isDisabled:a,isQuiet:i,validationState:yt,className:V(zt(fe),"spectrum-InputGroup-field"),inputClassName:X,disableFocusRing:!0},_.createElement(E5,{...m,"data-testid":"start-date",isQuiet:e.isQuiet,inputClassName:V(zt(ee),"react-spectrum-Datepicker-startField")}),_.createElement(aV,null),_.createElement(E5,{...$,"data-testid":"end-date",isQuiet:e.isQuiet,inputClassName:V(zt(fe),"spectrum-Datepicker-endField",V(zt(ee),"react-spectrum-Datepicker-endField"))})),_.createElement(Hz,{type:"popover",mobileType:"tray",placement:A==="rtl"?"bottom right":"bottom left",targetRef:f,hideArrow:!0,isOpen:P,onOpenChange:E,shouldFlip:e.shouldFlip},_.createElement(Pj,{...de(b,B),UNSAFE_className:V(zt(fe),"spectrum-FieldButton"),isQuiet:i,validationState:yt},_.createElement(rV,null)),_.createElement(Vz,{UNSAFE_className:V(zt(ee),"react-spectrum-Datepicker-dialog"),...v},_.createElement(Uz,null,_.createElement("div",{className:V(zt(ee),"react-spectrum-Datepicker-dialogContent")},_.createElement(jz,{...S,visibleMonths:et,pageBehavior:u,UNSAFE_className:V(zt(ee),"react-spectrum-Datepicker-calendar",{"is-invalid":yt==="invalid"})}),Ce&&_.createElement(KS,{gap:"size-100",marginTop:"size-100",UNSAFE_className:V(zt(ee),"react-spectrum-Datepicker-timeFields")},_.createElement(k5,{label:M.format("startTime"),value:((n=h.timeRange)===null||n===void 0?void 0:n.start)||null,onChange:ut=>h.setTime("start",ut),placeholderValue:$e,granularity:W,minValue:lt,maxValue:xe,hourCycle:e.hourCycle,hideTimeZone:e.hideTimeZone,flex:!0}),_.createElement(k5,{label:M.format("endTime"),value:((r=h.timeRange)===null||r===void 0?void 0:r.end)||null,onChange:ut=>h.setTime("end",ut),placeholderValue:$e,granularity:W,minValue:lt,maxValue:xe,hourCycle:e.hourCycle,hideTimeZone:e.hideTimeZone,flex:!0}))))))))}function aV(){return _.createElement("div",{"aria-hidden":"true","data-testid":"date-range-dash",className:V(zt(ee),"react-spectrum-Datepicker-rangeDash")})}const sV=_.forwardRef(iV);function oV(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var KP={};oV(KP,"spectrum--darkest",()=>E3,e=>E3=e);var E3;E3="gP7gvq_spectrum--darkest";function ma(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var mi={};ma(mi,"spectrum",()=>S3,e=>S3=e);ma(mi,"spectrum--dark",()=>C3,e=>C3=e);ma(mi,"spectrum--darkest",()=>k3,e=>k3=e);ma(mi,"spectrum--large",()=>P3,e=>P3=e);ma(mi,"spectrum--light",()=>T3,e=>T3=e);ma(mi,"spectrum--lightest",()=>R3,e=>R3=e);ma(mi,"spectrum--medium",()=>M3,e=>M3=e);var S3,C3,k3,P3,T3,R3,M3;S3="zA6MfG_spectrum";C3="zA6MfG_spectrum--dark";k3="zA6MfG_spectrum--darkest";P3="zA6MfG_spectrum--large";T3="zA6MfG_spectrum--light";R3="zA6MfG_spectrum--lightest";M3="zA6MfG_spectrum--medium";function lV(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var YP={};lV(YP,"spectrum--large",()=>A3,e=>A3=e);var A3;A3="HAZavG_spectrum--large";function uV(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var qP={};uV(qP,"spectrum--light",()=>F3,e=>F3=e);var F3;F3="PFjRbG_spectrum--light";function cV(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var GP={};cV(GP,"spectrum--medium",()=>O3,e=>O3=e);var O3;O3="xSyFOq_spectrum--medium";function qs(e){return e&&e.__esModule?e.default:e}let dV={global:qs(mi),light:qs(qP),dark:qs(KP),medium:qs(GP),large:qs(YP)};function Ea(e){let t="flex items-center w-full p-3 leading-tight transition-all rounded-lg outline-none text-start hover:bg-blue-500";return e.name===e.currentPage&&(t+=" border-2 border-black"),I.jsxs("div",{role:"button",className:t,children:[I.jsx("div",{className:"grid mr-4 place-items-center",children:I.jsx("i",{className:e.icon})}),I.jsx("a",{href:e.href,children:e.name})]})}function ZP(e){return I.jsxs("div",{className:"relative flex h-full w-full max-w-[20rem] flex-col rounded-xl bg-white bg-clip-border text-gray-700 shadow-xl shadow-blue-gray-900/5",children:[I.jsx("div",{className:"p-4 mb-2",children:I.jsx("h5",{className:"block font-sans text-xl antialiased font-semibold leading-snug tracking-normal text-blue-gray-900",children:I.jsx("a",{href:"/",children:"fs-tracer"})})}),I.jsxs("nav",{className:"flex min-w-[240px] flex-col gap-1  font-sans text-base font-normal text-blue-gray-700",children:[I.jsx(Ea,{name:"Home",icon:"fa-solid fa-house",href:"/",currentPage:e.currentPage}),I.jsx(Ea,{name:"Recent files",icon:"fa-solid fa-folder",href:"/recent",currentPage:e.currentPage}),I.jsx(Ea,{name:"Search",icon:"fa-solid fa-magnifying-glass",href:"/search",currentPage:e.currentPage}),I.jsx(Ea,{name:"Monitoring",icon:"fa-solid fa-chart-column",href:"/monitoring",currentPage:e.currentPage}),I.jsx(Ea,{name:"Setup",icon:"fa-solid fa-gear",href:"/setup",currentPage:e.currentPage}),I.jsx(Ea,{name:"Logout",icon:"fa-solid fa-right-from-bracket",href:"/logout",currentPage:e.currentPage})]})]})}/*!
+ * @kurkle/color v0.3.2
+ * https://github.com/kurkle/color#readme
+ * (c) 2023 Jukka Kurkela
+ * Released under the MIT License
+ */function Il(e){return e+.5|0}const Ur=(e,t,n)=>Math.max(Math.min(e,n),t);function ho(e){return Ur(Il(e*2.55),0,255)}function ni(e){return Ur(Il(e*255),0,255)}function or(e){return Ur(Il(e/2.55)/100,0,1)}function P5(e){return Ur(Il(e*100),0,100)}const hn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},B3=[..."0123456789ABCDEF"],fV=e=>B3[e&15],hV=e=>B3[(e&240)>>4]+B3[e&15],Du=e=>(e&240)>>4===(e&15),pV=e=>Du(e.r)&&Du(e.g)&&Du(e.b)&&Du(e.a);function mV(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&hn[e[1]]*17,g:255&hn[e[2]]*17,b:255&hn[e[3]]*17,a:t===5?hn[e[4]]*17:255}:(t===7||t===9)&&(n={r:hn[e[1]]<<4|hn[e[2]],g:hn[e[3]]<<4|hn[e[4]],b:hn[e[5]]<<4|hn[e[6]],a:t===9?hn[e[7]]<<4|hn[e[8]]:255})),n}const gV=(e,t)=>e<255?t(e):"";function vV(e){var t=pV(e)?fV:hV;return e?"#"+t(e.r)+t(e.g)+t(e.b)+gV(e.a,t):void 0}const bV=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function XP(e,t,n){const r=t*Math.min(n,1-n),i=(a,s=(a+e/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function yV(e,t,n){const r=(i,a=(i+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function $V(e,t,n){const r=XP(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function xV(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function w$(e){const n=e.r/255,r=e.g/255,i=e.b/255,a=Math.max(n,r,i),s=Math.min(n,r,i),o=(a+s)/2;let l,u,c;return a!==s&&(c=a-s,u=o>.5?c/(2-a-s):c/(a+s),l=xV(n,r,i,c,a),l=l*60+.5),[l|0,u||0,o]}function D$(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(ni)}function _$(e,t,n){return D$(XP,e,t,n)}function wV(e,t,n){return D$($V,e,t,n)}function DV(e,t,n){return D$(yV,e,t,n)}function QP(e){return(e%360+360)%360}function _V(e){const t=bV.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?ho(+t[5]):ni(+t[5]));const i=QP(+t[2]),a=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?r=wV(i,a,s):t[1]==="hsv"?r=DV(i,a,s):r=_$(i,a,s),{r:r[0],g:r[1],b:r[2],a:n}}function EV(e,t){var n=w$(e);n[0]=QP(n[0]+t),n=_$(n),e.r=n[0],e.g=n[1],e.b=n[2]}function SV(e){if(!e)return;const t=w$(e),n=t[0],r=P5(t[1]),i=P5(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${or(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const T5={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},R5={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function CV(){const e={},t=Object.keys(R5),n=Object.keys(T5);let r,i,a,s,o;for(r=0;r<t.length;r++){for(s=o=t[r],i=0;i<n.length;i++)a=n[i],o=o.replace(a,T5[a]);a=parseInt(R5[s],16),e[o]=[a>>16&255,a>>8&255,a&255]}return e}let _u;function kV(e){_u||(_u=CV(),_u.transparent=[0,0,0,0]);const t=_u[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const PV=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function TV(e){const t=PV.exec(e);let n=255,r,i,a;if(t){if(t[7]!==r){const s=+t[7];n=t[8]?ho(s):Ur(s*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?ho(r):Ur(r,0,255)),i=255&(t[4]?ho(i):Ur(i,0,255)),a=255&(t[6]?ho(a):Ur(a,0,255)),{r,g:i,b:a,a:n}}}function RV(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${or(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const tp=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Sa=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function MV(e,t,n){const r=Sa(or(e.r)),i=Sa(or(e.g)),a=Sa(or(e.b));return{r:ni(tp(r+n*(Sa(or(t.r))-r))),g:ni(tp(i+n*(Sa(or(t.g))-i))),b:ni(tp(a+n*(Sa(or(t.b))-a))),a:e.a+n*(t.a-e.a)}}function Eu(e,t,n){if(e){let r=w$(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=_$(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function JP(e,t){return e&&Object.assign(t||{},e)}function M5(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=ni(e[3]))):(t=JP(e,{r:0,g:0,b:0,a:1}),t.a=ni(t.a)),t}function AV(e){return e.charAt(0)==="r"?TV(e):_V(e)}class hl{constructor(t){if(t instanceof hl)return t;const n=typeof t;let r;n==="object"?r=M5(t):n==="string"&&(r=mV(t)||kV(t)||AV(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=JP(this._rgb);return t&&(t.a=or(t.a)),t}set rgb(t){this._rgb=M5(t)}rgbString(){return this._valid?RV(this._rgb):void 0}hexString(){return this._valid?vV(this._rgb):void 0}hslString(){return this._valid?SV(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let a;const s=n===a?.5:n,o=2*s-1,l=r.a-i.a,u=((o*l===-1?o:(o+l)/(1+o*l))+1)/2;a=1-u,r.r=255&u*r.r+a*i.r+.5,r.g=255&u*r.g+a*i.g+.5,r.b=255&u*r.b+a*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=MV(this._rgb,t._rgb,n)),this}clone(){return new hl(this.rgb)}alpha(t){return this._rgb.a=ni(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Il(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Eu(this._rgb,2,t),this}darken(t){return Eu(this._rgb,2,-t),this}saturate(t){return Eu(this._rgb,1,t),this}desaturate(t){return Eu(this._rgb,1,-t),this}rotate(t){return EV(this._rgb,t),this}}/*!
+ * Chart.js v4.4.3
+ * https://www.chartjs.org
+ * (c) 2024 Chart.js Contributors
+ * Released under the MIT License
+ */function nr(){}const FV=(()=>{let e=0;return()=>e++})();function ce(e){return e===null||typeof e>"u"}function Be(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function ae(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Ve(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function en(e,t){return Ve(e)?e:t}function J(e,t){return typeof e>"u"?t:e}const OV=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,eT=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function De(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function me(e,t,n,r){let i,a,s;if(Be(e))for(a=e.length,i=0;i<a;i++)t.call(n,e[i],i);else if(ae(e))for(s=Object.keys(e),a=s.length,i=0;i<a;i++)t.call(n,e[s[i]],s[i])}function Ld(e,t){let n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function Nd(e){if(Be(e))return e.map(Nd);if(ae(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=Nd(e[n[i]]);return t}return e}function tT(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function BV(e,t,n,r){if(!tT(e))return;const i=t[e],a=n[e];ae(i)&&ae(a)?pl(i,a,r):t[e]=Nd(a)}function pl(e,t,n){const r=Be(t)?t:[t],i=r.length;if(!ae(e))return e;n=n||{};const a=n.merger||BV;let s;for(let o=0;o<i;++o){if(s=r[o],!ae(s))continue;const l=Object.keys(s);for(let u=0,c=l.length;u<c;++u)a(l[u],e,s,n)}return e}function Ao(e,t){return pl(e,t,{merger:IV})}function IV(e,t,n){if(!tT(e))return;const r=t[e],i=n[e];ae(r)&&ae(i)?Ao(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Nd(i))}const A5={"":e=>e,x:e=>e.x,y:e=>e.y};function LV(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function NV(e){const t=LV(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function li(e,t){return(A5[t]||(A5[t]=NV(t)))(e)}function E$(e){return e.charAt(0).toUpperCase()+e.slice(1)}const ml=e=>typeof e<"u",ui=e=>typeof e=="function",F5=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function jV(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Me=Math.PI,Te=2*Me,zV=Te+Me,jd=Number.POSITIVE_INFINITY,VV=Me/180,qe=Me/2,xi=Me/4,O5=Me*2/3,Hr=Math.log10,qn=Math.sign;function Fo(e,t,n){return Math.abs(e-t)<n}function B5(e){const t=Math.round(e);e=Fo(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Hr(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function WV(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,a)=>i-a).pop(),t}function xs(e){return!isNaN(parseFloat(e))&&isFinite(e)}function UV(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function nT(e,t,n){let r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function Mn(e){return e*(Me/180)}function S$(e){return e*(180/Me)}function I5(e){if(!Ve(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function rT(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let a=Math.atan2(r,n);return a<-.5*Me&&(a+=Te),{angle:a,distance:i}}function I3(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function HV(e,t){return(e-t+zV)%Te-Me}function nn(e){return(e%Te+Te)%Te}function gl(e,t,n,r){const i=nn(e),a=nn(t),s=nn(n),o=nn(a-i),l=nn(s-i),u=nn(i-a),c=nn(i-s);return i===a||i===s||r&&a===s||o>l&&u<c}function dt(e,t,n){return Math.max(t,Math.min(n,e))}function KV(e){return dt(e,-32768,32767)}function hr(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function C$(e,t,n){n=n||(s=>e[s]<t);let r=e.length-1,i=0,a;for(;r-i>1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}const pr=(e,t,n,r)=>C$(e,n,r?i=>{const a=e[i][t];return a<n||a===n&&e[i+1][t]===n}:i=>e[i][t]<n),YV=(e,t,n)=>C$(e,n,r=>e[r][t]>=n);function qV(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const iT=["push","pop","shift","splice","unshift"];function GV(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),iT.forEach(n=>{const r="_onData"+E$(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...a){const s=i.apply(this,a);return e._chartjs.listeners.forEach(o=>{typeof o[r]=="function"&&o[r](...a)}),s}})})}function L5(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(iT.forEach(a=>{delete e[a]}),delete e._chartjs)}function aT(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const sT=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function oT(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,sT.call(window,()=>{r=!1,e.apply(t,n)}))}}function ZV(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const k$=e=>e==="start"?"left":e==="end"?"right":"center",Dt=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,XV=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function lT(e,t,n){const r=t.length;let i=0,a=r;if(e._sorted){const{iScale:s,_parsed:o}=e,l=s.axis,{min:u,max:c,minDefined:d,maxDefined:f}=s.getUserBounds();d&&(i=dt(Math.min(pr(o,l,u).lo,n?r:pr(t,l,s.getPixelForValue(u)).lo),0,r-1)),f?a=dt(Math.max(pr(o,s.axis,c,!0).hi+1,n?0:pr(t,l,s.getPixelForValue(c),!0).hi+1),i,r)-i:a=r-i}return{start:i,count:a}}function uT(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}const Su=e=>e===0||e===1,N5=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Te/n)),j5=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Te/n)+1,Oo={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*qe)+1,easeOutSine:e=>Math.sin(e*qe),easeInOutSine:e=>-.5*(Math.cos(Me*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Su(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Su(e)?e:N5(e,.075,.3),easeOutElastic:e=>Su(e)?e:j5(e,.075,.3),easeInOutElastic(e){return Su(e)?e:e<.5?.5*N5(e*2,.1125,.45):.5+.5*j5(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Oo.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Oo.easeInBounce(e*2)*.5:Oo.easeOutBounce(e*2-1)*.5+.5};function P$(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function z5(e){return P$(e)?e:new hl(e)}function np(e){return P$(e)?e:new hl(e).saturate(.5).darken(.1).hexString()}const QV=["x","y","borderWidth","radius","tension"],JV=["color","borderColor","backgroundColor"];function eW(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:JV},numbers:{type:"number",properties:QV}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function tW(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const V5=new Map;function nW(e,t){t=t||{};const n=e+JSON.stringify(t);let r=V5.get(n);return r||(r=new Intl.NumberFormat(e,t),V5.set(n,r)),r}function Ll(e,t,n){return nW(t,n).format(e)}const cT={values(e){return Be(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,a=e;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),a=rW(e,n)}const s=Hr(Math.abs(a)),o=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:i,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(l,this.options.ticks.format),Ll(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(Hr(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?cT.numeric.call(this,e,t,n):""}};function rW(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Af={formatters:cT};function iW(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Af.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const ia=Object.create(null),L3=Object.create(null);function Bo(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const a=n[r];e=e[a]||(e[a]=Object.create(null))}return e}function rp(e,t,n){return typeof t=="string"?pl(Bo(e,t),n):pl(Bo(e,""),t)}class aW{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>np(i.backgroundColor),this.hoverBorderColor=(r,i)=>np(i.borderColor),this.hoverColor=(r,i)=>np(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return rp(this,t,n)}get(t){return Bo(this,t)}describe(t,n){return rp(L3,t,n)}override(t,n){return rp(ia,t,n)}route(t,n,r,i){const a=Bo(this,t),s=Bo(this,r),o="_"+n;Object.defineProperties(a,{[o]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[o],u=s[i];return ae(l)?Object.assign({},u,l):J(l,u)},set(l){this[o]=l}}})}apply(t){t.forEach(n=>n(this))}}var We=new aW({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[eW,tW,iW]);function sW(e){return!e||ce(e.size)||ce(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function zd(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function oW(e,t,n,r){r=r||{};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let s=0;const o=n.length;let l,u,c,d,f;for(l=0;l<o;l++)if(d=n[l],d!=null&&!Be(d))s=zd(e,i,a,s,d);else if(Be(d))for(u=0,c=d.length;u<c;u++)f=d[u],f!=null&&!Be(f)&&(s=zd(e,i,a,s,f));e.restore();const h=a.length/2;if(h>n.length){for(l=0;l<h;l++)delete i[a[l]];a.splice(0,h)}return s}function wi(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function W5(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function N3(e,t,n,r){dT(e,t,n,r,null)}function dT(e,t,n,r,i){let a,s,o,l,u,c,d,f;const h=t.pointStyle,p=t.rotation,g=t.radius;let b=(p||0)*VV;if(h&&typeof h=="object"&&(a=h.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(b),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(g)||g<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,g,0,0,Te):e.arc(n,r,g,0,Te),e.closePath();break;case"triangle":c=i?i/2:g,e.moveTo(n+Math.sin(b)*c,r-Math.cos(b)*g),b+=O5,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*g),b+=O5,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*g),e.closePath();break;case"rectRounded":u=g*.516,l=g-u,s=Math.cos(b+xi)*l,d=Math.cos(b+xi)*(i?i/2-u:l),o=Math.sin(b+xi)*l,f=Math.sin(b+xi)*(i?i/2-u:l),e.arc(n-d,r-o,u,b-Me,b-qe),e.arc(n+f,r-s,u,b-qe,b),e.arc(n+d,r+o,u,b,b+qe),e.arc(n-f,r+s,u,b+qe,b+Me),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}b+=xi;case"rectRot":d=Math.cos(b)*(i?i/2:g),s=Math.cos(b)*g,o=Math.sin(b)*g,f=Math.sin(b)*(i?i/2:g),e.moveTo(n-d,r-o),e.lineTo(n+f,r-s),e.lineTo(n+d,r+o),e.lineTo(n-f,r+s),e.closePath();break;case"crossRot":b+=xi;case"cross":d=Math.cos(b)*(i?i/2:g),s=Math.cos(b)*g,o=Math.sin(b)*g,f=Math.sin(b)*(i?i/2:g),e.moveTo(n-d,r-o),e.lineTo(n+d,r+o),e.moveTo(n+f,r-s),e.lineTo(n-f,r+s);break;case"star":d=Math.cos(b)*(i?i/2:g),s=Math.cos(b)*g,o=Math.sin(b)*g,f=Math.sin(b)*(i?i/2:g),e.moveTo(n-d,r-o),e.lineTo(n+d,r+o),e.moveTo(n+f,r-s),e.lineTo(n-f,r+s),b+=xi,d=Math.cos(b)*(i?i/2:g),s=Math.cos(b)*g,o=Math.sin(b)*g,f=Math.sin(b)*(i?i/2:g),e.moveTo(n-d,r-o),e.lineTo(n+d,r+o),e.moveTo(n+f,r-s),e.lineTo(n-f,r+s);break;case"line":s=i?i/2:Math.cos(b)*g,o=Math.sin(b)*g,e.moveTo(n-s,r-o),e.lineTo(n+s,r+o);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(i?i/2:g),r+Math.sin(b)*g);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function mr(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Ff(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Of(e){e.restore()}function lW(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const a=(t.x+n.x)/2;e.lineTo(a,t.y),e.lineTo(a,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function uW(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function cW(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),ce(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function dW(e,t,n,r,i){if(i.strikethrough||i.underline){const a=e.measureText(r),s=t-a.actualBoundingBoxLeft,o=t+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,u=n+a.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(s,c),e.lineTo(o,c),e.stroke()}}function fW(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function aa(e,t,n,r,i,a={}){const s=Be(t)?t:[t],o=a.strokeWidth>0&&a.strokeColor!=="";let l,u;for(e.save(),e.font=i.string,cW(e,a),l=0;l<s.length;++l)u=s[l],a.backdrop&&fW(e,a.backdrop),o&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),ce(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(u,n,r,a.maxWidth)),e.fillText(u,n,r,a.maxWidth),dW(e,n,r,u,a),r+=Number(i.lineHeight);e.restore()}function vl(e,t){const{x:n,y:r,w:i,h:a,radius:s}=t;e.arc(n+s.topLeft,r+s.topLeft,s.topLeft,1.5*Me,Me,!0),e.lineTo(n,r+a-s.bottomLeft),e.arc(n+s.bottomLeft,r+a-s.bottomLeft,s.bottomLeft,Me,qe,!0),e.lineTo(n+i-s.bottomRight,r+a),e.arc(n+i-s.bottomRight,r+a-s.bottomRight,s.bottomRight,qe,0,!0),e.lineTo(n+i,r+s.topRight),e.arc(n+i-s.topRight,r+s.topRight,s.topRight,0,-qe,!0),e.lineTo(n+s.topLeft,r)}const hW=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,pW=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function mW(e,t){const n=(""+e).match(hW);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const gW=e=>+e||0;function T$(e,t){const n={},r=ae(t),i=r?Object.keys(t):t,a=ae(e)?r?s=>J(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of i)n[s]=gW(a(s));return n}function fT(e){return T$(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Ki(e){return T$(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Pt(e){const t=fT(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function it(e,t){e=e||{},t=t||We.font;let n=J(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=J(e.style,t.style);r&&!(""+r).match(pW)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:J(e.family,t.family),lineHeight:mW(J(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:J(e.weight,t.weight),string:""};return i.string=sW(i),i}function po(e,t,n,r){let i,a,s;for(i=0,a=e.length;i<a;++i)if(s=e[i],s!==void 0&&s!==void 0)return s}function vW(e,t,n){const{min:r,max:i}=e,a=eT(t,(i-r)/2),s=(o,l)=>n&&o===0?0:o+l;return{min:s(r,-Math.abs(a)),max:s(i,a)}}function gi(e,t){return Object.assign(Object.create(e),t)}function R$(e,t=[""],n,r,i=()=>e[0]){const a=n||e;typeof r>"u"&&(r=gT("_fallback",e));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:o=>R$([o,...e],t,a,r)};return new Proxy(s,{deleteProperty(o,l){return delete o[l],delete o._keys,delete e[0][l],!0},get(o,l){return pT(o,l,()=>EW(l,t,e,o))},getOwnPropertyDescriptor(o,l){return Reflect.getOwnPropertyDescriptor(o._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(o,l){return H5(o).includes(l)},ownKeys(o){return H5(o)},set(o,l,u){const c=o._storage||(o._storage=i());return o[l]=c[l]=u,delete o._keys,!0}})}function ws(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:hT(e,r),setContext:a=>ws(e,a,n,r),override:a=>ws(e.override(a),t,n,r)};return new Proxy(i,{deleteProperty(a,s){return delete a[s],delete e[s],!0},get(a,s,o){return pT(a,s,()=>yW(a,s,o))},getOwnPropertyDescriptor(a,s){return a._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(a,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(a,s,o){return e[s]=o,delete a[s],!0}})}function hT(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:ui(n)?n:()=>n,isIndexable:ui(r)?r:()=>r}}const bW=(e,t)=>e?e+E$(t):t,M$=(e,t)=>ae(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function pT(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function yW(e,t,n){const{_proxy:r,_context:i,_subProxy:a,_descriptors:s}=e;let o=r[t];return ui(o)&&s.isScriptable(t)&&(o=$W(t,o,e,n)),Be(o)&&o.length&&(o=xW(t,o,e,s.isIndexable)),M$(t,o)&&(o=ws(o,i,a&&a[t],s)),o}function $W(e,t,n,r){const{_proxy:i,_context:a,_subProxy:s,_stack:o}=n;if(o.has(e))throw new Error("Recursion detected: "+Array.from(o).join("->")+"->"+e);o.add(e);let l=t(a,s||r);return o.delete(e),M$(e,l)&&(l=A$(i._scopes,i,e,l)),l}function xW(e,t,n,r){const{_proxy:i,_context:a,_subProxy:s,_descriptors:o}=n;if(typeof a.index<"u"&&r(e))return t[a.index%t.length];if(ae(t[0])){const l=t,u=i._scopes.filter(c=>c!==l);t=[];for(const c of l){const d=A$(u,i,e,c);t.push(ws(d,a,s&&s[e],o))}}return t}function mT(e,t,n){return ui(e)?e(t,n):e}const wW=(e,t)=>e===!0?t:typeof e=="string"?li(t,e):void 0;function DW(e,t,n,r,i){for(const a of t){const s=wW(n,a);if(s){e.add(s);const o=mT(s._fallback,n,i);if(typeof o<"u"&&o!==n&&o!==r)return o}else if(s===!1&&typeof r<"u"&&n!==r)return null}return!1}function A$(e,t,n,r){const i=t._rootScopes,a=mT(t._fallback,n,r),s=[...e,...i],o=new Set;o.add(r);let l=U5(o,s,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=U5(o,s,a,l,r),l===null)?!1:R$(Array.from(o),[""],i,a,()=>_W(t,n,r))}function U5(e,t,n,r,i){for(;n;)n=DW(e,t,n,r,i);return n}function _W(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Be(i)&&ae(n)?n:i||{}}function EW(e,t,n,r){let i;for(const a of t)if(i=gT(bW(a,e),n),typeof i<"u")return M$(e,i)?A$(n,r,e,i):i}function gT(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function H5(e){let t=e._keys;return t||(t=e._keys=SW(e._scopes)),t}function SW(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}function vT(e,t,n,r){const{iScale:i}=e,{key:a="r"}=this._parsing,s=new Array(r);let o,l,u,c;for(o=0,l=r;o<l;++o)u=o+n,c=t[u],s[o]={r:i.parse(li(c,a),u)};return s}const CW=Number.EPSILON||1e-14,Ds=(e,t)=>t<e.length&&!e[t].skip&&e[t],bT=e=>e==="x"?"y":"x";function kW(e,t,n,r){const i=e.skip?t:e,a=t,s=n.skip?t:n,o=I3(a,i),l=I3(s,a);let u=o/(o+l),c=l/(o+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const d=r*u,f=r*c;return{previous:{x:a.x-d*(s.x-i.x),y:a.y-d*(s.y-i.y)},next:{x:a.x+f*(s.x-i.x),y:a.y+f*(s.y-i.y)}}}function PW(e,t,n){const r=e.length;let i,a,s,o,l,u=Ds(e,0);for(let c=0;c<r-1;++c)if(l=u,u=Ds(e,c+1),!(!l||!u)){if(Fo(t[c],0,CW)){n[c]=n[c+1]=0;continue}i=n[c]/t[c],a=n[c+1]/t[c],o=Math.pow(i,2)+Math.pow(a,2),!(o<=9)&&(s=3/Math.sqrt(o),n[c]=i*s*t[c],n[c+1]=a*s*t[c])}}function TW(e,t,n="x"){const r=bT(n),i=e.length;let a,s,o,l=Ds(e,0);for(let u=0;u<i;++u){if(s=o,o=l,l=Ds(e,u+1),!o)continue;const c=o[n],d=o[r];s&&(a=(c-s[n])/3,o[`cp1${n}`]=c-a,o[`cp1${r}`]=d-a*t[u]),l&&(a=(l[n]-c)/3,o[`cp2${n}`]=c+a,o[`cp2${r}`]=d+a*t[u])}}function RW(e,t="x"){const n=bT(t),r=e.length,i=Array(r).fill(0),a=Array(r);let s,o,l,u=Ds(e,0);for(s=0;s<r;++s)if(o=l,l=u,u=Ds(e,s+1),!!l){if(u){const c=u[t]-l[t];i[s]=c!==0?(u[n]-l[n])/c:0}a[s]=o?u?qn(i[s-1])!==qn(i[s])?0:(i[s-1]+i[s])/2:i[s-1]:i[s]}PW(e,i,a),TW(e,a,t)}function Cu(e,t,n){return Math.max(Math.min(e,n),t)}function MW(e,t){let n,r,i,a,s,o=mr(e[0],t);for(n=0,r=e.length;n<r;++n)s=a,a=o,o=n<r-1&&mr(e[n+1],t),a&&(i=e[n],s&&(i.cp1x=Cu(i.cp1x,t.left,t.right),i.cp1y=Cu(i.cp1y,t.top,t.bottom)),o&&(i.cp2x=Cu(i.cp2x,t.left,t.right),i.cp2y=Cu(i.cp2y,t.top,t.bottom)))}function AW(e,t,n,r,i){let a,s,o,l;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")RW(e,i);else{let u=r?e[e.length-1]:e[0];for(a=0,s=e.length;a<s;++a)o=e[a],l=kW(u,o,e[Math.min(a+1,s-(r?0:1))%s],t.tension),o.cp1x=l.previous.x,o.cp1y=l.previous.y,o.cp2x=l.next.x,o.cp2y=l.next.y,u=o}t.capBezierPoints&&MW(e,n)}function F$(){return typeof window<"u"&&typeof document<"u"}function O$(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Vd(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const Bf=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function FW(e,t){return Bf(e).getPropertyValue(t)}const OW=["top","right","bottom","left"];function Yi(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const a=OW[i];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const BW=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function IW(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r;let s=!1,o,l;if(BW(i,a,e.target))o=i,l=a;else{const u=t.getBoundingClientRect();o=r.clientX-u.left,l=r.clientY-u.top,s=!0}return{x:o,y:l,box:s}}function Ti(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Bf(n),a=i.boxSizing==="border-box",s=Yi(i,"padding"),o=Yi(i,"border","width"),{x:l,y:u,box:c}=IW(e,n),d=s.left+(c&&o.left),f=s.top+(c&&o.top);let{width:h,height:p}=t;return a&&(h-=s.width+o.width,p-=s.height+o.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((u-f)/p*n.height/r)}}function LW(e,t,n){let r,i;if(t===void 0||n===void 0){const a=e&&O$(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{const s=a.getBoundingClientRect(),o=Bf(a),l=Yi(o,"border","width"),u=Yi(o,"padding");t=s.width-u.width-l.width,n=s.height-u.height-l.height,r=Vd(o.maxWidth,a,"clientWidth"),i=Vd(o.maxHeight,a,"clientHeight")}}return{width:t,height:n,maxWidth:r||jd,maxHeight:i||jd}}const ku=e=>Math.round(e*10)/10;function NW(e,t,n,r){const i=Bf(e),a=Yi(i,"margin"),s=Vd(i.maxWidth,e,"clientWidth")||jd,o=Vd(i.maxHeight,e,"clientHeight")||jd,l=LW(e,t,n);let{width:u,height:c}=l;if(i.boxSizing==="content-box"){const f=Yi(i,"border","width"),h=Yi(i,"padding");u-=h.width+f.width,c-=h.height+f.height}return u=Math.max(0,u-a.width),c=Math.max(0,r?u/r:c-a.height),u=ku(Math.min(u,s,l.maxWidth)),c=ku(Math.min(c,o,l.maxHeight)),u&&!c&&(c=ku(u/2)),(t!==void 0||n!==void 0)&&r&&l.height&&c>l.height&&(c=l.height,u=ku(Math.floor(c*r))),{width:u,height:c}}function K5(e,t,n){const r=t||1,i=Math.floor(e.height*r),a=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||s.height!==i||s.width!==a?(e.currentDevicePixelRatio=r,s.height=i,s.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const jW=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};F$()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function Y5(e,t){const n=FW(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Ri(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function zW(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function VW(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},s=Ri(e,i,n),o=Ri(i,a,n),l=Ri(a,t,n),u=Ri(s,o,n),c=Ri(o,l,n);return Ri(u,c,n)}const WW=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},UW=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function os(e,t,n){return e?WW(t,n):UW()}function yT(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function $T(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function xT(e){return e==="angle"?{between:gl,compare:HV,normalize:nn}:{between:hr,compare:(t,n)=>t-n,normalize:t=>t}}function q5({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function HW(e,t,n){const{property:r,start:i,end:a}=n,{between:s,normalize:o}=xT(r),l=t.length;let{start:u,end:c,loop:d}=e,f,h;if(d){for(u+=l,c+=l,f=0,h=l;f<h&&s(o(t[u%l][r]),i,a);++f)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:d,style:e.style}}function wT(e,t,n){if(!n)return[e];const{property:r,start:i,end:a}=n,s=t.length,{compare:o,between:l,normalize:u}=xT(r),{start:c,end:d,loop:f,style:h}=HW(e,t,n),p=[];let g=!1,b=null,v,m,$;const w=()=>l(i,$,v)&&o(i,$)!==0,D=()=>o(a,v)===0||l(a,$,v),S=()=>g||w(),k=()=>!g||D();for(let x=c,T=c;x<=d;++x)m=t[x%s],!m.skip&&(v=u(m[r]),v!==$&&(g=l(v,i,a),b===null&&S()&&(b=o(v,i)===0?x:T),b!==null&&k()&&(p.push(q5({start:b,end:x,loop:f,count:s,style:h})),b=null),T=x,$=v));return b!==null&&p.push(q5({start:b,end:d,loop:f,count:s,style:h})),p}function DT(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const a=wT(r[i],e.points,t);a.length&&n.push(...a)}return n}function KW(e,t,n,r){let i=0,a=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(a+=i);a>i&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function YW(e,t,n,r){const i=e.length,a=[];let s=t,o=e[t],l;for(l=t+1;l<=n;++l){const u=e[l%i];u.skip||u.stop?o.skip||(r=!1,a.push({start:t%i,end:(l-1)%i,loop:r}),t=s=u.stop?l:null):(s=l,o.skip&&(t=l)),o=u}return s!==null&&a.push({start:t%i,end:s%i,loop:r}),a}function qW(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const a=!!e._loop,{start:s,end:o}=KW(n,i,a,r);if(r===!0)return G5(e,[{start:s,end:o,loop:a}],n,t);const l=o<s?o+i:o,u=!!e._fullLoop&&s===0&&o===i-1;return G5(e,YW(n,s,l,u),n,t)}function G5(e,t,n,r){return!r||!r.setContext||!n?t:GW(e,t,n,r)}function GW(e,t,n,r){const i=e._chart.getContext(),a=Z5(e.options),{_datasetIndex:s,options:{spanGaps:o}}=e,l=n.length,u=[];let c=a,d=t[0].start,f=d;function h(p,g,b,v){const m=o?-1:1;if(p!==g){for(p+=l;n[p%l].skip;)p-=m;for(;n[g%l].skip;)g+=m;p%l!==g%l&&(u.push({start:p%l,end:g%l,loop:b,style:v}),c=v,d=g%l)}}for(const p of t){d=o?d:p.start;let g=n[d%l],b;for(f=d+1;f<=p.end;f++){const v=n[f%l];b=Z5(r.setContext(gi(i,{type:"segment",p0:g,p1:v,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:s}))),ZW(b,c)&&h(d,f-1,p.loop,c),g=v,c=b}d<f-1&&h(d,f-1,p.loop,c)}return u}function Z5(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function ZW(e,t){if(!t)return!1;const n=[],r=function(i,a){return P$(a)?(n.includes(a)||n.push(a),n.indexOf(a)):a};return JSON.stringify(e,r)!==JSON.stringify(t,r)}/*!
+ * Chart.js v4.4.3
+ * https://www.chartjs.org
+ * (c) 2024 Chart.js Contributors
+ * Released under the MIT License
+ */class XW{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const a=n.listeners[i],s=n.duration;a.forEach(o=>o({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=sT.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const a=r.items;let s=a.length-1,o=!1,l;for(;s>=0;--s)l=a[s],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),o=!0):(a[s]=a[a.length-1],a.pop());o&&(i.draw(),this._notify(i,r,t,"progress")),a.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=a.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var rr=new XW;const X5="transparent",QW={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=z5(e||X5),i=r.valid&&z5(t||X5);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class JW{constructor(t,n,r,i){const a=n[r];i=po([t.to,i,a,t.from]);const s=po([t.from,a,i]);this._active=!0,this._fn=t.fn||QW[t.type||typeof s],this._easing=Oo[t.easing]||Oo.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],a=r-this._start,s=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=po([t.to,n,i,t.from]),this._from=po([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,a=this._from,s=this._loop,o=this._to;let l;if(this._active=a!==o&&(s||n<r),!this._active){this._target[i]=o,this._notify(!0);return}if(n<0){this._target[i]=a;return}l=n/r%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(a,o,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class _T{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!ae(t))return;const n=Object.keys(We.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const a=t[i];if(!ae(a))return;const s={};for(const o of n)s[o]=a[o];(Be(a.properties)&&a.properties||[i]).forEach(o=>{(o===i||!r.has(o))&&r.set(o,s)})})}_animateOptions(t,n){const r=n.options,i=tU(t,r);if(!i)return[];const a=this._createAnimations(i,r);return r.$shared&&eU(t.options.$animations,r).then(()=>{t.options=r},()=>{}),a}_createAnimations(t,n){const r=this._properties,i=[],a=t.$animations||(t.$animations={}),s=Object.keys(n),o=Date.now();let l;for(l=s.length-1;l>=0;--l){const u=s[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(t,n));continue}const c=n[u];let d=a[u];const f=r.get(u);if(d)if(f&&d.active()){d.update(f,c,o);continue}else d.cancel();if(!f||!f.duration){t[u]=c;continue}a[u]=d=new JW(f,t,u,c),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return rr.add(this._chart,r),!0}}function eU(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const a=e[r[i]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function tU(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Q5(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,a=n.max===void 0?t:0;return{start:r?a:i,end:r?i:a}}function nU(e,t,n){if(n===!1)return!1;const r=Q5(e,n),i=Q5(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function rU(e){let t,n,r,i;return ae(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function ET(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,a;for(i=0,a=r.length;i<a;++i)n.push(r[i].index);return n}function J5(e,t,n,r={}){const i=e.keys,a=r.mode==="single";let s,o,l,u;if(t!==null){for(s=0,o=i.length;s<o;++s){if(l=+i[s],l===n){if(r.all)continue;break}u=e.values[l],Ve(u)&&(a||t===0||qn(t)===qn(u))&&(t+=u)}return t}}function iU(e,t){const{iScale:n,vScale:r}=t,i=n.axis==="x"?"x":"y",a=r.axis==="x"?"x":"y",s=Object.keys(e),o=new Array(s.length);let l,u,c;for(l=0,u=s.length;l<u;++l)c=s[l],o[l]={[i]:c,[a]:e[c]};return o}function e6(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function aU(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function sU(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function oU(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function t6(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const a=e[i.index];if(n&&a>0||!n&&a<0)return i.index}return null}function n6(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:a,vScale:s,index:o}=r,l=a.axis,u=s.axis,c=aU(a,s,r),d=t.length;let f;for(let h=0;h<d;++h){const p=t[h],{[l]:g,[u]:b}=p,v=p._stacks||(p._stacks={});f=v[u]=oU(i,c,g),f[o]=b,f._top=t6(f,s,!0,r.type),f._bottom=t6(f,s,!1,r.type);const m=f._visualValues||(f._visualValues={});m[o]=b}}function ip(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function lU(e,t){return gi(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function uU(e,t,n){return gi(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Gs(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const a=i._stacks;if(!a||a[r]===void 0||a[r][n]===void 0)return;delete a[r][n],a[r]._visualValues!==void 0&&a[r]._visualValues[n]!==void 0&&delete a[r]._visualValues[n]}}}const ap=e=>e==="reset"||e==="none",r6=(e,t)=>t?e:Object.assign({},e),cU=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:ET(n,!0),values:null};class On{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=e6(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Gs(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,f,h,p)=>d==="x"?f:d==="r"?p:h,a=n.xAxisID=J(r.xAxisID,ip(t,"x")),s=n.yAxisID=J(r.yAxisID,ip(t,"y")),o=n.rAxisID=J(r.rAxisID,ip(t,"r")),l=n.indexAxis,u=n.iAxisID=i(l,a,s,o),c=n.vAxisID=i(l,s,a,o);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(o),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&L5(this._data,this),t._stacked&&Gs(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(ae(n)){const i=this._cachedMeta;this._data=iU(n,i)}else if(r!==n){if(r){L5(r,this);const i=this._cachedMeta;Gs(i),i._parsed=[]}n&&Object.isExtensible(n)&&GV(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const a=n._stacked;n._stacked=e6(n.vScale,n),n.stack!==r.stack&&(i=!0,Gs(n),n.stack=r.stack),this._resyncElements(t),(i||a!==n._stacked)&&n6(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:a,_stacked:s}=r,o=a.axis;let l=t===0&&n===i.length?!0:r._sorted,u=t>0&&r._parsed[t-1],c,d,f;if(this._parsing===!1)r._parsed=i,r._sorted=!0,f=i;else{Be(i[t])?f=this.parseArrayData(r,i,t,n):ae(i[t])?f=this.parseObjectData(r,i,t,n):f=this.parsePrimitiveData(r,i,t,n);const h=()=>d[o]===null||u&&d[o]<u[o];for(c=0;c<n;++c)r._parsed[c+t]=d=f[c],l&&(h()&&(l=!1),u=d);r._sorted=l}s&&n6(this,f)}parsePrimitiveData(t,n,r,i){const{iScale:a,vScale:s}=t,o=a.axis,l=s.axis,u=a.getLabels(),c=a===s,d=new Array(i);let f,h,p;for(f=0,h=i;f<h;++f)p=f+r,d[f]={[o]:c||a.parse(u[p],p),[l]:s.parse(n[p],p)};return d}parseArrayData(t,n,r,i){const{xScale:a,yScale:s}=t,o=new Array(i);let l,u,c,d;for(l=0,u=i;l<u;++l)c=l+r,d=n[c],o[l]={x:a.parse(d[0],c),y:s.parse(d[1],c)};return o}parseObjectData(t,n,r,i){const{xScale:a,yScale:s}=t,{xAxisKey:o="x",yAxisKey:l="y"}=this._parsing,u=new Array(i);let c,d,f,h;for(c=0,d=i;c<d;++c)f=c+r,h=n[f],u[c]={x:a.parse(li(h,o),f),y:s.parse(li(h,l),f)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,a=this._cachedMeta,s=n[t.axis],o={keys:ET(i,!0),values:n._stacks[t.axis]._visualValues};return J5(o,s,a.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const a=r[n.axis];let s=a===null?NaN:a;const o=i&&r._stacks[n.axis];i&&o&&(i.values=o,s=J5(i,a,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,a=r._sorted&&t===r.iScale,s=i.length,o=this._getOtherScale(t),l=cU(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=sU(o);let f,h;function p(){h=i[f];const g=h[o.axis];return!Ve(h[t.axis])||c>g||d<g}for(f=0;f<s&&!(!p()&&(this.updateRangeFromParsed(u,t,h,l),a));++f);if(a){for(f=s-1;f>=0;--f)if(!p()){this.updateRangeFromParsed(u,t,h,l);break}}return u}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,a,s;for(i=0,a=n.length;i<a;++i)s=n[i][t.axis],Ve(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,a=this.getParsed(t);return{label:r?""+r.getLabelForValue(a[r.axis]):"",value:i?""+i.getLabelForValue(a[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=rU(J(this.options.clip,nU(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],a=n.chartArea,s=[],o=this._drawStart||0,l=this._drawCount||i.length-o,u=this.options.drawActiveElementsOnTop;let c;for(r.dataset&&r.dataset.draw(t,a,o,l),c=o;c<o+l;++c){const d=i[c];d.hidden||(d.active&&u?s.push(d):d.draw(t,a))}for(c=0;c<s.length;++c)s[c].draw(t,a)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let a;if(t>=0&&t<this._cachedMeta.data.length){const s=this._cachedMeta.data[t];a=s.$context||(s.$context=uU(this.getContext(),t,s)),a.parsed=this.getParsed(t),a.raw=i.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=lU(this.chart.getContext(),this.index)),a.dataset=i,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=r,a}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",a=this._cachedDataOpts,s=t+"-"+n,o=a[s],l=this.enableOptionSharing&&ml(r);if(o)return r6(o,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],f=u.getOptionScopes(this.getDataset(),c),h=Object.keys(We.elements[t]),p=()=>this.getContext(r,i,n),g=u.resolveNamedOptions(f,h,p,d);return g.$shared&&(g.$shared=l,a[s]=Object.freeze(r6(g,l))),g}_resolveAnimations(t,n,r){const i=this.chart,a=this._cachedDataOpts,s=`animation-${n}`,o=a[s];if(o)return o;let l;if(i.options.animation!==!1){const c=this.chart.config,d=c.datasetAnimationScopeKeys(this._type,n),f=c.getOptionScopes(this.getDataset(),d);l=c.createResolver(f,this.getContext(t,r,n))}const u=new _T(i,l&&l.animations);return l&&l._cacheable&&(a[s]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||ap(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,a=this.getSharedOptions(r),s=this.includeOptions(n,a)||a!==i;return this.updateSharedOptions(a,n,r),{sharedOptions:a,includeOptions:s}}updateElement(t,n,r,i){ap(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!ap(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const a=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[o,l,u]of this._syncList)this[o](l,u);this._syncList=[];const i=r.length,a=n.length,s=Math.min(a,i);s&&this.parse(0,s),a>i?this._insertElements(i,a-i,t):a<i&&this._removeElements(a,i-a)}_insertElements(t,n,r=!0){const i=this._cachedMeta,a=i.data,s=t+n;let o;const l=u=>{for(u.length+=n,o=u.length-1;o>=s;o--)u[o]=u[o-n]};for(l(a),o=t;o<s;++o)a[o]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(a,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&Gs(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}j(On,"defaults",{}),j(On,"datasetElementType",null),j(On,"dataElementType",null);function dU(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let i=0,a=n.length;i<a;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=aT(r.sort((i,a)=>i-a))}return e._cache.$bar}function fU(e){const t=e.iScale,n=dU(t,e.type);let r=t._length,i,a,s,o;const l=()=>{s===32767||s===-32768||(ml(o)&&(r=Math.min(r,Math.abs(s-o)||r)),o=s)};for(i=0,a=n.length;i<a;++i)s=t.getPixelForValue(n[i]),l();for(o=void 0,i=0,a=t.ticks.length;i<a;++i)s=t.getPixelForTick(i),l();return r}function hU(e,t,n,r){const i=n.barThickness;let a,s;return ce(i)?(a=t.min*n.categoryPercentage,s=n.barPercentage):(a=i*r,s=1),{chunk:a/r,ratio:s,start:t.pixels[e]-a/2}}function pU(e,t,n,r){const i=t.pixels,a=i[e];let s=e>0?i[e-1]:null,o=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;s===null&&(s=a-(o===null?t.end-t.start:o-a)),o===null&&(o=a+a-s);const u=a-(a-Math.min(s,o))/2*l;return{chunk:Math.abs(o-s)/2*l/r,ratio:n.barPercentage,start:u}}function mU(e,t,n,r){const i=n.parse(e[0],r),a=n.parse(e[1],r),s=Math.min(i,a),o=Math.max(i,a);let l=s,u=o;Math.abs(s)>Math.abs(o)&&(l=o,u=s),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:i,end:a,min:s,max:o}}function ST(e,t,n,r){return Be(e)?mU(e,t,n,r):t[n.axis]=n.parse(e,r),t}function i6(e,t,n,r){const i=e.iScale,a=e.vScale,s=i.getLabels(),o=i===a,l=[];let u,c,d,f;for(u=n,c=n+r;u<c;++u)f=t[u],d={},d[i.axis]=o||i.parse(s[u],u),l.push(ST(f,d,a,u));return l}function sp(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function gU(e,t,n){return e!==0?qn(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function vU(e){let t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",a="start"):(i="start",a="end"),{start:n,end:r,reverse:t,top:i,bottom:a}}function bU(e,t,n,r){let i=t.borderSkipped;const a={};if(!i){e.borderSkipped=a;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:o,reverse:l,top:u,bottom:c}=vU(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=u:(n._bottom||0)===r?i=c:(a[a6(c,s,o,l)]=!0,i=u)),a[a6(i,s,o,l)]=!0,e.borderSkipped=a}function a6(e,t,n,r){return r?(e=yU(e,t,n),e=s6(e,n,t)):e=s6(e,t,n),e}function yU(e,t,n){return e===t?n:e===n?t:e}function s6(e,t,n){return e==="start"?t:e==="end"?n:e}function $U(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class rc extends On{parsePrimitiveData(t,n,r,i){return i6(t,n,r,i)}parseArrayData(t,n,r,i){return i6(t,n,r,i)}parseObjectData(t,n,r,i){const{iScale:a,vScale:s}=t,{xAxisKey:o="x",yAxisKey:l="y"}=this._parsing,u=a.axis==="x"?o:l,c=s.axis==="x"?o:l,d=[];let f,h,p,g;for(f=r,h=r+i;f<h;++f)g=n[f],p={},p[a.axis]=a.parse(li(g,u),f),d.push(ST(li(g,c),p,s,f));return d}updateRangeFromParsed(t,n,r,i){super.updateRangeFromParsed(t,n,r,i);const a=r._custom;a&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:i}=n,a=this.getParsed(t),s=a._custom,o=sp(s)?"["+s.start+", "+s.end+"]":""+i.getLabelForValue(a[i.axis]);return{label:""+r.getLabelForValue(a[r.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,i){const a=i==="reset",{index:s,_cachedMeta:{vScale:o}}=this,l=o.getBasePixel(),u=o.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,i);for(let h=n;h<n+r;h++){const p=this.getParsed(h),g=a||ce(p[o.axis])?{base:l,head:l}:this._calculateBarValuePixels(h),b=this._calculateBarIndexPixels(h,c),v=(p._stacks||{})[o.axis],m={horizontal:u,base:g.base,enableBorderRadius:!v||sp(p._custom)||s===v._top||s===v._bottom,x:u?g.head:b.center,y:u?b.center:g.head,height:u?b.size:Math.abs(g.size),width:u?Math.abs(g.size):b.size};f&&(m.options=d||this.resolveDataElementOptions(h,t[h].active?"active":i));const $=m.options||t[h].options;bU(m,$,v,s),$U(m,$,c.ratio),this.updateElement(t[h],h,m,i)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),a=r.options.stacked,s=[],o=l=>{const u=l.controller.getParsed(n),c=u&&u[l.vScale.axis];if(ce(c)||isNaN(c))return!0};for(const l of i)if(!(n!==void 0&&o(l))&&((a===!1||s.indexOf(l.stack)===-1||a===void 0&&l.stack===void 0)&&s.push(l.stack),l.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),a=n!==void 0?i.indexOf(n):-1;return a===-1?i.length-1:a}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let a,s;for(a=0,s=n.data.length;a<s;++a)i.push(r.getPixelForValue(this.getParsed(a)[r.axis],a));const o=t.barThickness;return{min:o||fU(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:o?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:a,minBarLength:s}}=this,o=a||0,l=this.getParsed(t),u=l._custom,c=sp(u);let d=l[n.axis],f=0,h=r?this.applyStack(n,l,r):d,p,g;h!==d&&(f=h-d,h=d),c&&(d=u.barStart,h=u.barEnd-u.barStart,d!==0&&qn(d)!==qn(u.barEnd)&&(f=0),f+=d);const b=!ce(a)&&!c?a:f;let v=n.getPixelForValue(b);if(this.chart.getDataVisibility(t)?p=n.getPixelForValue(f+h):p=v,g=p-v,Math.abs(g)<s){g=gU(g,n,o)*s,d===o&&(v-=g/2);const m=n.getPixelForDecimal(0),$=n.getPixelForDecimal(1),w=Math.min(m,$),D=Math.max(m,$);v=Math.max(Math.min(v,D),w),p=v+g,r&&!c&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(p)-n.getValueForPixel(v))}if(v===n.getPixelForValue(o)){const m=qn(g)*n.getLineWidthForValue(o)/2;v+=m,g-=m}return{size:g,base:v,head:p,center:p+g/2}}_calculateBarIndexPixels(t,n){const r=n.scale,i=this.options,a=i.skipNull,s=J(i.maxBarThickness,1/0);let o,l;if(n.grouped){const u=a?this._getStackCount(t):n.stackCount,c=i.barThickness==="flex"?pU(t,n,i,u):hU(t,n,i,u),d=this._getStackIndex(this.index,this._cachedMeta.stack,a?t:void 0);o=c.start+c.chunk*d+c.chunk/2,l=Math.min(s,c.chunk*c.ratio)}else o=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(s,n.min*n.ratio);return{base:o-l/2,head:o+l/2,center:o,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,i=r.length;let a=0;for(;a<i;++a)this.getParsed(a)[n.axis]!==null&&!r[a].hidden&&r[a].draw(this._ctx)}}j(rc,"id","bar"),j(rc,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),j(rc,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class ic extends On{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,r,i){const a=super.parsePrimitiveData(t,n,r,i);for(let s=0;s<a.length;s++)a[s]._custom=this.resolveDataElementOptions(s+r).radius;return a}parseArrayData(t,n,r,i){const a=super.parseArrayData(t,n,r,i);for(let s=0;s<a.length;s++){const o=n[r+s];a[s]._custom=J(o[2],this.resolveDataElementOptions(s+r).radius)}return a}parseObjectData(t,n,r,i){const a=super.parseObjectData(t,n,r,i);for(let s=0;s<a.length;s++){const o=n[r+s];a[s]._custom=J(o&&o.r&&+o.r,this.resolveDataElementOptions(s+r).radius)}return a}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let r=t.length-1;r>=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:a}=n,s=this.getParsed(t),o=i.getLabelForValue(s.x),l=a.getLabelForValue(s.y),u=s._custom;return{label:r[t]||"",value:"("+o+", "+l+(u?", "+u:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,i){const a=i==="reset",{iScale:s,vScale:o}=this._cachedMeta,{sharedOptions:l,includeOptions:u}=this._getSharedOptions(n,i),c=s.axis,d=o.axis;for(let f=n;f<n+r;f++){const h=t[f],p=!a&&this.getParsed(f),g={},b=g[c]=a?s.getPixelForDecimal(.5):s.getPixelForValue(p[c]),v=g[d]=a?o.getBasePixel():o.getPixelForValue(p[d]);g.skip=isNaN(b)||isNaN(v),u&&(g.options=l||this.resolveDataElementOptions(f,h.active?"active":i),a&&(g.options.radius=0)),this.updateElement(h,f,g,i)}}resolveDataElementOptions(t,n){const r=this.getParsed(t);let i=super.resolveDataElementOptions(t,n);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const a=i.radius;return n!=="active"&&(i.radius=0),i.radius+=J(r&&r._custom,a),i}}j(ic,"id","bubble"),j(ic,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),j(ic,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function xU(e,t,n){let r=1,i=1,a=0,s=0;if(t<Te){const o=e,l=o+t,u=Math.cos(o),c=Math.sin(o),d=Math.cos(l),f=Math.sin(l),h=($,w,D)=>gl($,o,l,!0)?1:Math.max(w,w*n,D,D*n),p=($,w,D)=>gl($,o,l,!0)?-1:Math.min(w,w*n,D,D*n),g=h(0,u,d),b=h(qe,c,f),v=p(Me,u,d),m=p(Me+qe,c,f);r=(g-v)/2,i=(b-m)/2,a=-(g+v)/2,s=-(b+m)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:s}}class Vi extends On{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let a=l=>+r[l];if(ae(r[t])){const{key:l="value"}=this._parsing;a=u=>+li(r[u],l)}let s,o;for(s=t,o=t+n;s<o;++s)i._parsed[s]=a(s)}}_getRotation(){return Mn(this.options.rotation-90)}_getCircumference(){return Mn(this.options.circumference)}_getRotationExtents(){let t=Te,n=-Te;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,a=i._getRotation(),s=i._getCircumference();t=Math.min(t,a),n=Math.max(n,a+s)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,a=i.data,s=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,o=Math.max((Math.min(r.width,r.height)-s)/2,0),l=Math.min(OV(this.options.cutout,o),1),u=this._getRingWeight(this.index),{circumference:c,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:p,offsetY:g}=xU(d,c,l),b=(r.width-s)/f,v=(r.height-s)/h,m=Math.max(Math.min(b,v)/2,0),$=eT(this.options.radius,m),w=Math.max($*l,0),D=($-w)/this._getVisibleDatasetWeightTotal();this.offsetX=p*$,this.offsetY=g*$,i.total=this.calculateTotal(),this.outerRadius=$-D*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-D*u,0),this.updateElements(a,0,a.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,a=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*a/Te)}updateElements(t,n,r,i){const a=i==="reset",s=this.chart,o=s.chartArea,u=s.options.animation,c=(o.left+o.right)/2,d=(o.top+o.bottom)/2,f=a&&u.animateScale,h=f?0:this.innerRadius,p=f?0:this.outerRadius,{sharedOptions:g,includeOptions:b}=this._getSharedOptions(n,i);let v=this._getRotation(),m;for(m=0;m<n;++m)v+=this._circumference(m,a);for(m=n;m<n+r;++m){const $=this._circumference(m,a),w=t[m],D={x:c+this.offsetX,y:d+this.offsetY,startAngle:v,endAngle:v+$,circumference:$,outerRadius:p,innerRadius:h};b&&(D.options=g||this.resolveDataElementOptions(m,w.active?"active":i)),v+=$,this.updateElement(w,m,D,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const a=t._parsed[i];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(a))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?Te*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=Ll(n._parsed[t],r.options.locale);return{label:i[t]||"",value:a}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,a,s,o,l;if(!t){for(i=0,a=r.data.datasets.length;i<a;++i)if(r.isDatasetVisible(i)){s=r.getDatasetMeta(i),t=s.data,o=s.controller;break}}if(!t)return 0;for(i=0,a=t.length;i<a;++i)l=o.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){const a=this.resolveDataElementOptions(r);n=Math.max(n,a.offset||0,a.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(J(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}j(Vi,"id","doughnut"),j(Vi,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),j(Vi,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),j(Vi,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((a,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class Io extends On{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:a}=n,s=this.chart._animationsDisabled;let{start:o,count:l}=lT(n,i,s);this._drawStart=o,this._drawCount=l,uT(n)&&(o=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=i;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:u},t),this.updateElements(i,o,l,t)}updateElements(t,n,r,i){const a=i==="reset",{iScale:s,vScale:o,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(n,i),f=s.axis,h=o.axis,{spanGaps:p,segment:g}=this.options,b=xs(p)?p:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||a||i==="none",m=n+r,$=t.length;let w=n>0&&this.getParsed(n-1);for(let D=0;D<$;++D){const S=t[D],k=v?S:{};if(D<n||D>=m){k.skip=!0;continue}const x=this.getParsed(D),T=ce(x[h]),P=k[f]=s.getPixelForValue(x[f],D),E=k[h]=a||T?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,x,l):x[h],D);k.skip=isNaN(P)||isNaN(E)||T,k.stop=D>0&&Math.abs(x[f]-w[f])>b,g&&(k.parsed=x,k.raw=u.data[D]),d&&(k.options=c||this.resolveDataElementOptions(D,S.active?"active":i)),v||this.updateElement(S,D,k,i),w=x}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const a=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,a,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}j(Io,"id","line"),j(Io,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),j(Io,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class ls extends On{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=Ll(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:a}}parseObjectData(t,n,r,i){return vT.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,i)=>{const a=this.getParsed(i).r;!isNaN(a)&&this.chart.getDataVisibility(i)&&(a<n.min&&(n.min=a),a>n.max&&(n.max=a))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),a=Math.max(i/2,0),s=Math.max(r.cutoutPercentage?a/100*r.cutoutPercentage:1,0),o=(a-s)/t.getVisibleDatasetCount();this.outerRadius=a-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,n,r,i){const a=i==="reset",s=this.chart,l=s.options.animation,u=this._cachedMeta.rScale,c=u.xCenter,d=u.yCenter,f=u.getIndexAngle(0)-.5*Me;let h=f,p;const g=360/this.countVisibleElements();for(p=0;p<n;++p)h+=this._computeAngle(p,i,g);for(p=n;p<n+r;p++){const b=t[p];let v=h,m=h+this._computeAngle(p,i,g),$=s.getDataVisibility(p)?u.getDistanceFromCenterForValue(this.getParsed(p).r):0;h=m,a&&(l.animateScale&&($=0),l.animateRotate&&(v=m=f));const w={x:c,y:d,innerRadius:0,outerRadius:$,startAngle:v,endAngle:m,options:this.resolveDataElementOptions(p,b.active?"active":i)};this.updateElement(b,p,w,i)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((r,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?Mn(this.resolveDataElementOptions(t,n).angle||r):0}}j(ls,"id","polarArea"),j(ls,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),j(ls,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((a,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class j3 extends Vi{}j(j3,"id","pie"),j(j3,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class ac extends On{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,i){return vT.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta,r=n.dataset,i=n.data||[],a=n.iScale.getLabels();if(r.points=i,t!=="resize"){const s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);const o={_loop:!0,_fullLoop:a.length===i.length,options:s};this.updateElement(r,void 0,o,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){const a=this._cachedMeta.rScale,s=i==="reset";for(let o=n;o<n+r;o++){const l=t[o],u=this.resolveDataElementOptions(o,l.active?"active":i),c=a.getPointPositionForValue(o,this.getParsed(o).r),d=s?a.xCenter:c.x,f=s?a.yCenter:c.y,h={x:d,y:f,angle:c.angle,skip:isNaN(d)||isNaN(f),options:u};this.updateElement(l,o,h,i)}}}j(ac,"id","radar"),j(ac,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),j(ac,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class sc extends On{getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:a}=n,s=this.getParsed(t),o=i.getLabelForValue(s.x),l=a.getLabelForValue(s.y);return{label:r[t]||"",value:"("+o+", "+l+")"}}update(t){const n=this._cachedMeta,{data:r=[]}=n,i=this.chart._animationsDisabled;let{start:a,count:s}=lT(n,r,i);if(this._drawStart=a,this._drawCount=s,uT(n)&&(a=0,s=r.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:o,_dataset:l}=n;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!l._decimated,o.points=r;const u=this.resolveDatasetElementOptions(t);u.segment=this.options.segment,this.updateElement(o,void 0,{animated:!i,options:u},t)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(r,a,s,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,r,i){const a=i==="reset",{iScale:s,vScale:o,_stacked:l,_dataset:u}=this._cachedMeta,c=this.resolveDataElementOptions(n,i),d=this.getSharedOptions(c),f=this.includeOptions(i,d),h=s.axis,p=o.axis,{spanGaps:g,segment:b}=this.options,v=xs(g)?g:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||a||i==="none";let $=n>0&&this.getParsed(n-1);for(let w=n;w<n+r;++w){const D=t[w],S=this.getParsed(w),k=m?D:{},x=ce(S[p]),T=k[h]=s.getPixelForValue(S[h],w),P=k[p]=a||x?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,S,l):S[p],w);k.skip=isNaN(T)||isNaN(P)||x,k.stop=w>0&&Math.abs(S[h]-$[h])>v,b&&(k.parsed=S,k.raw=u.data[w]),f&&(k.options=d||this.resolveDataElementOptions(w,D.active?"active":i)),m||this.updateElement(D,w,k,i),$=S}this.updateSharedOptions(d,i,c)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let o=0;for(let l=n.length-1;l>=0;--l)o=Math.max(o,n[l].size(this.resolveDataElementOptions(l))/2);return o>0&&o}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const a=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,a,s)/2}}j(sc,"id","scatter"),j(sc,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),j(sc,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var wU=Object.freeze({__proto__:null,BarController:rc,BubbleController:ic,DoughnutController:Vi,LineController:Io,PieController:j3,PolarAreaController:ls,RadarController:ac,ScatterController:sc});function Di(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class B${constructor(t){j(this,"options");this.options=t||{}}static override(t){Object.assign(B$.prototype,t)}init(){}formats(){return Di()}parse(){return Di()}format(){return Di()}add(){return Di()}diff(){return Di()}startOf(){return Di()}endOf(){return Di()}}var DU={_date:B$};function _U(e,t,n,r){const{controller:i,data:a,_sorted:s}=e,o=i._cachedMeta.iScale;if(o&&t===o.axis&&t!=="r"&&s&&a.length){const l=o._reversePixels?YV:pr;if(r){if(i._sharedOptions){const u=a[0],c=typeof u.getRange=="function"&&u.getRange(t);if(c){const d=l(a,t,n-c),f=l(a,t,n+c);return{lo:d.lo,hi:f.hi}}}}else return l(a,t,n)}return{lo:0,hi:a.length-1}}function Nl(e,t,n,r,i){const a=e.getSortedVisibleDatasetMetas(),s=n[t];for(let o=0,l=a.length;o<l;++o){const{index:u,data:c}=a[o],{lo:d,hi:f}=_U(a[o],t,s,i);for(let h=d;h<=f;++h){const p=c[h];p.skip||r(p,u,h)}}}function EU(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const a=t?Math.abs(r.x-i.x):0,s=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(s,2))}}function op(e,t,n,r,i){const a=[];return!i&&!e.isPointInArea(t)||Nl(e,n,t,function(o,l,u){!i&&!mr(o,e.chartArea,0)||o.inRange(t.x,t.y,r)&&a.push({element:o,datasetIndex:l,index:u})},!0),a}function SU(e,t,n,r){let i=[];function a(s,o,l){const{startAngle:u,endAngle:c}=s.getProps(["startAngle","endAngle"],r),{angle:d}=rT(s,{x:t.x,y:t.y});gl(d,u,c)&&i.push({element:s,datasetIndex:o,index:l})}return Nl(e,n,t,a),i}function CU(e,t,n,r,i,a){let s=[];const o=EU(n);let l=Number.POSITIVE_INFINITY;function u(c,d,f){const h=c.inRange(t.x,t.y,i);if(r&&!h)return;const p=c.getCenterPoint(i);if(!(!!a||e.isPointInArea(p))&&!h)return;const b=o(t,p);b<l?(s=[{element:c,datasetIndex:d,index:f}],l=b):b===l&&s.push({element:c,datasetIndex:d,index:f})}return Nl(e,n,t,u),s}function lp(e,t,n,r,i,a){return!a&&!e.isPointInArea(t)?[]:n==="r"&&!r?SU(e,t,n,i):CU(e,t,n,r,i,a)}function o6(e,t,n,r,i){const a=[],s=n==="x"?"inXRange":"inYRange";let o=!1;return Nl(e,n,t,(l,u,c)=>{l[s](t[n],i)&&(a.push({element:l,datasetIndex:u,index:c}),o=o||l.inRange(t.x,t.y,i))}),r&&!o?[]:a}var kU={evaluateInteractionItems:Nl,modes:{index(e,t,n,r){const i=Ti(t,e),a=n.axis||"x",s=n.includeInvisible||!1,o=n.intersect?op(e,i,a,r,s):lp(e,i,a,!1,r,s),l=[];return o.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const c=o[0].index,d=u.data[c];d&&!d.skip&&l.push({element:d,datasetIndex:u.index,index:c})}),l):[]},dataset(e,t,n,r){const i=Ti(t,e),a=n.axis||"xy",s=n.includeInvisible||!1;let o=n.intersect?op(e,i,a,r,s):lp(e,i,a,!1,r,s);if(o.length>0){const l=o[0].datasetIndex,u=e.getDatasetMeta(l).data;o=[];for(let c=0;c<u.length;++c)o.push({element:u[c],datasetIndex:l,index:c})}return o},point(e,t,n,r){const i=Ti(t,e),a=n.axis||"xy",s=n.includeInvisible||!1;return op(e,i,a,r,s)},nearest(e,t,n,r){const i=Ti(t,e),a=n.axis||"xy",s=n.includeInvisible||!1;return lp(e,i,a,n.intersect,r,s)},x(e,t,n,r){const i=Ti(t,e);return o6(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=Ti(t,e);return o6(e,i,"y",n.intersect,r)}}};const CT=["left","top","right","bottom"];function Zs(e,t){return e.filter(n=>n.pos===t)}function l6(e,t){return e.filter(n=>CT.indexOf(n.pos)===-1&&n.box.axis===t)}function Xs(e,t){return e.sort((n,r)=>{const i=t?r:n,a=t?n:r;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function PU(e){const t=[];let n,r,i,a,s,o;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:a,options:{stack:s,stackWeight:o=1}}=i,t.push({index:n,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:s&&a+s,stackWeight:o});return t}function TU(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:a}=n;if(!r||!CT.includes(i))continue;const s=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=a}return t}function RU(e,t){const n=TU(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let a,s,o;for(a=0,s=e.length;a<s;++a){o=e[a];const{fullSize:l}=o.box,u=n[o.stack],c=u&&o.stackWeight/u.weight;o.horizontal?(o.width=c?c*r:l&&t.availableWidth,o.height=i):(o.width=r,o.height=c?c*i:l&&t.availableHeight)}return n}function MU(e){const t=PU(e),n=Xs(t.filter(u=>u.box.fullSize),!0),r=Xs(Zs(t,"left"),!0),i=Xs(Zs(t,"right")),a=Xs(Zs(t,"top"),!0),s=Xs(Zs(t,"bottom")),o=l6(t,"x"),l=l6(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(l).concat(s).concat(o),chartArea:Zs(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:a.concat(s).concat(o)}}function u6(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function kT(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function AU(e,t,n,r){const{pos:i,box:a}=n,s=e.maxPadding;if(!ae(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?a.height:a.width),n.size=d.size/d.count,e[i]+=n.size}a.getPadding&&kT(s,a.getPadding());const o=Math.max(0,t.outerWidth-u6(s,e,"left","right")),l=Math.max(0,t.outerHeight-u6(s,e,"top","bottom")),u=o!==e.w,c=l!==e.h;return e.w=o,e.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function FU(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function OU(e,t){const n=t.maxPadding;function r(i){const a={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{a[s]=Math.max(t[s],n[s])}),a}return r(e?["left","right"]:["top","bottom"])}function mo(e,t,n,r){const i=[];let a,s,o,l,u,c;for(a=0,s=e.length,u=0;a<s;++a){o=e[a],l=o.box,l.update(o.width||t.w,o.height||t.h,OU(o.horizontal,t));const{same:d,other:f}=AU(t,n,o,r);u|=d&&i.length,c=c||f,l.fullSize||i.push(o)}return u&&mo(i,t,n,r)||c}function Pu(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function c6(e,t,n,r){const i=n.padding;let{x:a,y:s}=t;for(const o of e){const l=o.box,u=r[o.stack]||{count:1,placed:0,weight:1},c=o.stackWeight/u.weight||1;if(o.horizontal){const d=t.w*c,f=u.size||l.height;ml(u.start)&&(s=u.start),l.fullSize?Pu(l,i.left,s,n.outerWidth-i.right-i.left,f):Pu(l,t.left+u.placed,s,d,f),u.start=s,u.placed+=d,s=l.bottom}else{const d=t.h*c,f=u.size||l.width;ml(u.start)&&(a=u.start),l.fullSize?Pu(l,a,i.top,f,n.outerHeight-i.bottom-i.top):Pu(l,a,t.top+u.placed,f,d),u.start=a,u.placed+=d,a=l.right}}t.x=a,t.y=s}var Ct={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=Pt(e.options.layout.padding),a=Math.max(t-i.width,0),s=Math.max(n-i.height,0),o=MU(e.boxes),l=o.vertical,u=o.horizontal;me(e.boxes,g=>{typeof g.beforeLayout=="function"&&g.beforeLayout()});const c=l.reduce((g,b)=>b.box.options&&b.box.options.display===!1?g:g+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:s,vBoxMaxWidth:a/2/c,hBoxMaxHeight:s/2}),f=Object.assign({},i);kT(f,Pt(r));const h=Object.assign({maxPadding:f,w:a,h:s,x:i.left,y:i.top},i),p=RU(l.concat(u),d);mo(o.fullSize,h,d,p),mo(l,h,d,p),mo(u,h,d,p)&&mo(l,h,d,p),FU(h),c6(o.leftAndTop,h,d,p),h.x+=h.w,h.y+=h.h,c6(o.rightAndBottom,h,d,p),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},me(o.chartArea,g=>{const b=g.box;Object.assign(b,e.chartArea),b.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class PT{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class BU extends PT{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const oc="$chartjs",IU={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},d6=e=>e===null||e==="";function LU(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[oc]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",d6(i)){const a=Y5(e,"width");a!==void 0&&(e.width=a)}if(d6(r))if(e.style.height==="")e.height=e.width/(t||2);else{const a=Y5(e,"height");a!==void 0&&(e.height=a)}return e}const TT=jW?{passive:!0}:!1;function NU(e,t,n){e&&e.addEventListener(t,n,TT)}function jU(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,TT)}function zU(e,t){const n=IU[e.type]||e.type,{x:r,y:i}=Ti(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Wd(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function VU(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let s=!1;for(const o of a)s=s||Wd(o.addedNodes,r),s=s&&!Wd(o.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function WU(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let s=!1;for(const o of a)s=s||Wd(o.removedNodes,r),s=s&&!Wd(o.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const bl=new Map;let f6=0;function RT(){const e=window.devicePixelRatio;e!==f6&&(f6=e,bl.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function UU(e,t){bl.size||window.addEventListener("resize",RT),bl.set(e,t)}function HU(e){bl.delete(e),bl.size||window.removeEventListener("resize",RT)}function KU(e,t,n){const r=e.canvas,i=r&&O$(r);if(!i)return;const a=oT((o,l)=>{const u=i.clientWidth;n(o,l),u<i.clientWidth&&n()},window),s=new ResizeObserver(o=>{const l=o[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||a(u,c)});return s.observe(i),UU(e,a),s}function up(e,t,n){n&&n.disconnect(),t==="resize"&&HU(e)}function YU(e,t,n){const r=e.canvas,i=oT(a=>{e.ctx!==null&&n(zU(a,e))},e);return NU(r,t,i),i}class qU extends PT{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(LU(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[oc])return!1;const r=n[oc].initial;["height","width"].forEach(a=>{const s=r[a];ce(s)?n.removeAttribute(a):n.setAttribute(a,s)});const i=r.style||{};return Object.keys(i).forEach(a=>{n.style[a]=i[a]}),n.width=n.width,delete n[oc],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),s={attach:VU,detach:WU,resize:KU}[n]||YU;i[n]=s(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:up,detach:up,resize:up}[n]||jU)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return NW(t,n,r,i)}isAttached(t){const n=t&&O$(t);return!!(n&&n.isConnected)}}function GU(e){return!F$()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?BU:qU}var Nu;let Er=(Nu=class{constructor(){j(this,"x");j(this,"y");j(this,"active",!1);j(this,"options");j(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return xs(this.x)&&xs(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(a=>{i[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),i}},j(Nu,"defaults",{}),j(Nu,"defaultRoutes"),Nu);function ZU(e,t){const n=e.options.ticks,r=XU(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?JU(t):[],s=a.length,o=a[0],l=a[s-1],u=[];if(s>i)return eH(t,u,a,s/i),u;const c=QU(a,t,i);if(s>0){let d,f;const h=s>1?Math.round((l-o)/(s-1)):null;for(Tu(t,u,c,ce(h)?0:o-h,o),d=0,f=s-1;d<f;d++)Tu(t,u,c,a[d],a[d+1]);return Tu(t,u,c,l,ce(h)?t.length:l+h),u}return Tu(t,u,c),u}function XU(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function QU(e,t,n){const r=tH(e),i=t.length/n;if(!r)return Math.max(i,1);const a=WV(r);for(let s=0,o=a.length-1;s<o;s++){const l=a[s];if(l>i)return l}return Math.max(i,1)}function JU(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function eH(e,t,n,r){let i=0,a=n[0],s;for(r=Math.ceil(r),s=0;s<e.length;s++)s===a&&(t.push(e[s]),i++,a=n[i*r])}function Tu(e,t,n,r,i){const a=J(r,0),s=Math.min(J(i,e.length),e.length);let o=0,l,u,c;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),c=a;c<0;)o++,c=Math.round(a+o*n);for(u=Math.max(a,0);u<s;u++)u===c&&(t.push(e[u]),o++,c=Math.round(a+o*n))}function tH(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const nH=e=>e==="left"?"right":e==="right"?"left":e,h6=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,p6=(e,t)=>Math.min(t||e,e);function m6(e,t){const n=[],r=e.length/t,i=e.length;let a=0;for(;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function rH(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),a=e._startPixel,s=e._endPixel,o=1e-6;let l=e.getPixelForTick(i),u;if(!(n&&(r===1?u=Math.max(l-a,s-l):t===0?u=(e.getPixelForTick(1)-l)/2:u=(l-e.getPixelForTick(i-1))/2,l+=i<t?u:-u,l<a-o||l>s+o)))return l}function iH(e,t){me(e,n=>{const r=n.gc,i=r.length/2;let a;if(i>t){for(a=0;a<i;++a)delete n.data[r[a]];r.splice(0,i)}})}function Qs(e){return e.drawTicks?e.tickLength:0}function g6(e,t){if(!e.display)return 0;const n=it(e.font,t),r=Pt(e.padding);return(Be(e.text)?e.text.length:1)*n.lineHeight+r.height}function aH(e,t){return gi(e,{scale:t,type:"scale"})}function sH(e,t,n){return gi(e,{tick:n,index:t,type:"tick"})}function oH(e,t,n){let r=k$(e);return(n&&t!=="right"||!n&&t==="right")&&(r=nH(r)),r}function lH(e,t,n,r){const{top:i,left:a,bottom:s,right:o,chart:l}=e,{chartArea:u,scales:c}=l;let d=0,f,h,p;const g=s-i,b=o-a;if(e.isHorizontal()){if(h=Dt(r,a,o),ae(n)){const v=Object.keys(n)[0],m=n[v];p=c[v].getPixelForValue(m)+g-t}else n==="center"?p=(u.bottom+u.top)/2+g-t:p=h6(e,n,t);f=o-a}else{if(ae(n)){const v=Object.keys(n)[0],m=n[v];h=c[v].getPixelForValue(m)-b+t}else n==="center"?h=(u.left+u.right)/2-b+t:h=h6(e,n,t);p=Dt(r,s,i),d=n==="left"?-qe:qe}return{titleX:h,titleY:p,maxWidth:f,rotation:d}}class ga extends Er{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=en(t,Number.POSITIVE_INFINITY),n=en(n,Number.NEGATIVE_INFINITY),r=en(r,Number.POSITIVE_INFINITY),i=en(i,Number.NEGATIVE_INFINITY),{min:en(t,r),max:en(n,i),minDefined:Ve(t),maxDefined:Ve(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:a}=this.getUserBounds(),s;if(i&&a)return{min:n,max:r};const o=this.getMatchingVisibleMetas();for(let l=0,u=o.length;l<u;++l)s=o[l].controller.getMinMax(this,t),i||(n=Math.min(n,s.min)),a||(r=Math.max(r,s.max));return n=a&&n>r?r:n,r=i&&n>r?n:r,{min:en(n,en(r,n)),max:en(r,en(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){De(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:a,ticks:s}=this.options,o=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=vW(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=o<this.ticks.length;this._convertTicksToLabels(l?m6(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=ZU(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){De(this.options.afterUpdate,[this])}beforeSetDimensions(){De(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){De(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),De(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){De(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,a;for(r=0,i=t.length;r<i;r++)a=t[r],a.label=De(n.callback,[a.value,r,t],this)}afterTickToLabelConversion(){De(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){De(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=p6(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,a=n.maxRotation;let s=i,o,l,u;if(!this._isVisible()||!n.display||i>=a||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const c=this._getLabelSizes(),d=c.widest.width,f=c.highest.height,h=dt(this.chart.width-d,0,this.maxWidth);o=t.offset?this.maxWidth/r:h/(r-1),d+6>o&&(o=h/(r-(t.offset?.5:1)),l=this.maxHeight-Qs(t.grid)-n.padding-g6(t.title,this.chart.options.font),u=Math.sqrt(d*d+f*f),s=S$(Math.min(Math.asin(dt((c.highest.height+6)/o,-1,1)),Math.asin(dt(l/u,-1,1))-Math.asin(dt(f/u,-1,1)))),s=Math.max(i,Math.min(a,s))),this.labelRotation=s}afterCalculateLabelRotation(){De(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){De(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:a}}=this,s=this._isVisible(),o=this.isHorizontal();if(s){const l=g6(i,n.options.font);if(o?(t.width=this.maxWidth,t.height=Qs(a)+l):(t.height=this.maxHeight,t.width=Qs(a)+l),r.display&&this.ticks.length){const{first:u,last:c,widest:d,highest:f}=this._getLabelSizes(),h=r.padding*2,p=Mn(this.labelRotation),g=Math.cos(p),b=Math.sin(p);if(o){const v=r.mirror?0:b*d.width+g*f.height;t.height=Math.min(this.maxHeight,t.height+v+h)}else{const v=r.mirror?0:g*d.width+b*f.height;t.width=Math.min(this.maxWidth,t.width+v+h)}this._calculatePadding(u,c,b,g)}}this._handleMargins(),o?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:a,padding:s},position:o}=this.options,l=this.labelRotation!==0,u=o!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;l?u?(f=i*t.width,h=r*n.height):(f=r*t.height,h=i*n.width):a==="start"?h=n.width:a==="end"?f=t.width:a!=="inner"&&(f=t.width/2,h=n.width/2),this.paddingLeft=Math.max((f-c+s)*this.width/(this.width-c),0),this.paddingRight=Math.max((h-d+s)*this.width/(this.width-d),0)}else{let c=n.height/2,d=t.height/2;a==="start"?(c=0,d=t.height):a==="end"&&(c=n.height,d=0),this.paddingTop=c+s,this.paddingBottom=d+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){De(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)ce(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=m6(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:a}=this,s=[],o=[],l=Math.floor(n/p6(n,r));let u=0,c=0,d,f,h,p,g,b,v,m,$,w,D;for(d=0;d<n;d+=l){if(p=t[d].label,g=this._resolveTickFontOptions(d),i.font=b=g.string,v=a[b]=a[b]||{data:{},gc:[]},m=g.lineHeight,$=w=0,!ce(p)&&!Be(p))$=zd(i,v.data,v.gc,$,p),w=m;else if(Be(p))for(f=0,h=p.length;f<h;++f)D=p[f],!ce(D)&&!Be(D)&&($=zd(i,v.data,v.gc,$,D),w+=m);s.push($),o.push(w),u=Math.max($,u),c=Math.max(w,c)}iH(a,n);const S=s.indexOf(u),k=o.indexOf(c),x=T=>({width:s[T]||0,height:o[T]||0});return{first:x(0),last:x(n-1),widest:x(S),highest:x(k),widths:s,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return KV(this._alignToPixels?wi(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=sH(this.getContext(),t,r))}return this.$context||(this.$context=aH(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=Mn(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),a=this._getLabelSizes(),s=t.autoSkipPadding||0,o=a?a.widest.width+s:0,l=a?a.highest.height+s:0;return this.isHorizontal()?l*r>o*i?o/r:l/i:l*i<o*r?l/r:o/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:a,position:s,border:o}=i,l=a.offset,u=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=Qs(a),h=[],p=o.setContext(this.getContext()),g=p.display?p.width:0,b=g/2,v=function(O){return wi(r,O,g)};let m,$,w,D,S,k,x,T,P,E,A,R;if(s==="top")m=v(this.bottom),k=this.bottom-f,T=m-b,E=v(t.top)+b,R=t.bottom;else if(s==="bottom")m=v(this.top),E=t.top,R=v(t.bottom)-b,k=m+b,T=this.top+f;else if(s==="left")m=v(this.right),S=this.right-f,x=m-b,P=v(t.left)+b,A=t.right;else if(s==="right")m=v(this.left),P=t.left,A=v(t.right)-b,S=m+b,x=this.left+f;else if(n==="x"){if(s==="center")m=v((t.top+t.bottom)/2+.5);else if(ae(s)){const O=Object.keys(s)[0],C=s[O];m=v(this.chart.scales[O].getPixelForValue(C))}E=t.top,R=t.bottom,k=m+b,T=k+f}else if(n==="y"){if(s==="center")m=v((t.left+t.right)/2);else if(ae(s)){const O=Object.keys(s)[0],C=s[O];m=v(this.chart.scales[O].getPixelForValue(C))}S=m-b,x=S-f,P=t.left,A=t.right}const M=J(i.ticks.maxTicksLimit,d),z=Math.max(1,Math.ceil(d/M));for($=0;$<d;$+=z){const O=this.getContext($),C=a.setContext(O),F=o.setContext(O),B=C.lineWidth,N=C.color,X=F.dash||[],Q=F.dashOffset,je=C.tickWidth,$e=C.tickColor,lt=C.tickBorderDash||[],xe=C.tickBorderDashOffset;w=rH(this,$,l),w!==void 0&&(D=wi(r,w,B),u?S=x=P=A=D:k=T=E=R=D,h.push({tx1:S,ty1:k,tx2:x,ty2:T,x1:P,y1:E,x2:A,y2:R,width:B,color:N,borderDash:X,borderDashOffset:Q,tickWidth:je,tickColor:$e,tickBorderDash:lt,tickBorderDashOffset:xe}))}return this._ticksLength=d,this._borderValue=m,h}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:a}=r,s=this.isHorizontal(),o=this.ticks,{align:l,crossAlign:u,padding:c,mirror:d}=a,f=Qs(r.grid),h=f+c,p=d?-c:h,g=-Mn(this.labelRotation),b=[];let v,m,$,w,D,S,k,x,T,P,E,A,R="middle";if(i==="top")S=this.bottom-p,k=this._getXAxisLabelAlignment();else if(i==="bottom")S=this.top+p,k=this._getXAxisLabelAlignment();else if(i==="left"){const z=this._getYAxisLabelAlignment(f);k=z.textAlign,D=z.x}else if(i==="right"){const z=this._getYAxisLabelAlignment(f);k=z.textAlign,D=z.x}else if(n==="x"){if(i==="center")S=(t.top+t.bottom)/2+h;else if(ae(i)){const z=Object.keys(i)[0],O=i[z];S=this.chart.scales[z].getPixelForValue(O)+h}k=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")D=(t.left+t.right)/2-h;else if(ae(i)){const z=Object.keys(i)[0],O=i[z];D=this.chart.scales[z].getPixelForValue(O)}k=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?R="top":l==="end"&&(R="bottom"));const M=this._getLabelSizes();for(v=0,m=o.length;v<m;++v){$=o[v],w=$.label;const z=a.setContext(this.getContext(v));x=this.getPixelForTick(v)+a.labelOffset,T=this._resolveTickFontOptions(v),P=T.lineHeight,E=Be(w)?w.length:1;const O=E/2,C=z.color,F=z.textStrokeColor,B=z.textStrokeWidth;let N=k;s?(D=x,k==="inner"&&(v===m-1?N=this.options.reverse?"left":"right":v===0?N=this.options.reverse?"right":"left":N="center"),i==="top"?u==="near"||g!==0?A=-E*P+P/2:u==="center"?A=-M.highest.height/2-O*P+P:A=-M.highest.height+P/2:u==="near"||g!==0?A=P/2:u==="center"?A=M.highest.height/2-O*P:A=M.highest.height-E*P,d&&(A*=-1),g!==0&&!z.showLabelBackdrop&&(D+=P/2*Math.sin(g))):(S=x,A=(1-E)*P/2);let X;if(z.showLabelBackdrop){const Q=Pt(z.backdropPadding),je=M.heights[v],$e=M.widths[v];let lt=A-Q.top,xe=0-Q.left;switch(R){case"middle":lt-=je/2;break;case"bottom":lt-=je;break}switch(k){case"center":xe-=$e/2;break;case"right":xe-=$e;break;case"inner":v===m-1?xe-=$e:v>0&&(xe-=$e/2);break}X={left:xe,top:lt,width:$e+Q.width,height:je+Q.height,color:z.backdropColor}}b.push({label:w,font:T,textOffset:A,options:{rotation:g,color:C,strokeColor:F,strokeWidth:B,textAlign:N,textBaseline:R,translation:[D,S],backdrop:X}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Mn(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:a}}=this.options,s=this._getLabelSizes(),o=t+a,l=s.widest.width;let u,c;return n==="left"?i?(c=this.right+a,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-o,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c=this.left)):n==="right"?i?(c=this.left+a,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+o,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:a,height:s}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,a,s),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(a=>a.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,s;const o=(l,u,c)=>{!c.width||!c.color||(r.save(),r.lineWidth=c.width,r.strokeStyle=c.color,r.setLineDash(c.borderDash||[]),r.lineDashOffset=c.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(a=0,s=i.length;a<s;++a){const l=i[a];n.drawOnChartArea&&o({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&o({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,a=r.setContext(this.getContext()),s=r.display?a.width:0;if(!s)return;const o=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,c,d,f;this.isHorizontal()?(u=wi(t,this.left,s)-s/2,c=wi(t,this.right,o)+o/2,d=f=l):(d=wi(t,this.top,s)-s/2,f=wi(t,this.bottom,o)+o/2,u=c=l),n.save(),n.lineWidth=a.width,n.strokeStyle=a.color,n.beginPath(),n.moveTo(u,d),n.lineTo(c,f),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&Ff(r,i);const a=this.getLabelItems(t);for(const s of a){const o=s.options,l=s.font,u=s.label,c=s.textOffset;aa(r,u,0,c,l,o)}i&&Of(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const a=it(r.font),s=Pt(r.padding),o=r.align;let l=a.lineHeight/2;n==="bottom"||n==="center"||ae(n)?(l+=s.bottom,Be(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=s.top;const{titleX:u,titleY:c,maxWidth:d,rotation:f}=lH(this,l,n,o);aa(t,r.text,0,0,a,{color:r.color,maxWidth:d,rotation:f,textAlign:oH(o,n,i),textBaseline:"middle",translation:[u,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=J(t.grid&&t.grid.z,-1),i=J(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==ga.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let a,s;for(a=0,s=n.length;a<s;++a){const o=n[a];o[r]===this.id&&(!t||o.type===t)&&i.push(o)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return it(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Ru{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;dH(n)&&(r=this.register(n));const i=this.items,a=t.id,s=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in i||(i[a]=t,uH(t,s,r),this.override&&We.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in We[i]&&(delete We[i][r],this.override&&delete ia[r])}}function uH(e,t,n){const r=pl(Object.create(null),[n?We.get(n):{},We.get(t),e.defaults]);We.set(t,r),e.defaultRoutes&&cH(t,e.defaultRoutes),e.descriptors&&We.describe(t,e.descriptors)}function cH(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),a=[e].concat(r).join("."),s=t[n].split("."),o=s.pop(),l=s.join(".");We.route(a,i,l,o)})}function dH(e){return"id"in e&&"defaults"in e}class fH{constructor(){this.controllers=new Ru(On,"datasets",!0),this.elements=new Ru(Er,"elements"),this.plugins=new Ru(Object,"plugins"),this.scales=new Ru(ga,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const a=r||this._getRegistryForType(i);r||a.isForType(i)||a===this.plugins&&i.id?this._exec(t,a,i):me(i,s=>{const o=r||this._getRegistryForType(s);this._exec(t,o,s)})})}_exec(t,n,r){const i=E$(t);De(r["before"+i],[],r),n[t](r),De(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var Wn=new fH;class hH{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const a=i?this._descriptors(t).filter(i):this._descriptors(t),s=this._notify(a,t,n,r);return n==="afterDestroy"&&(this._notify(a,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,n,r,i){i=i||{};for(const a of t){const s=a.plugin,o=s[r],l=[n,i,a.options];if(De(o,l,s)===!1&&i.cancelable)return!1}return!0}invalidate(){ce(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=J(r.options&&r.options.plugins,{}),a=pH(r);return i===!1&&!n?[]:gH(t,a,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(a,s)=>a.filter(o=>!s.some(l=>o.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function pH(e){const t={},n=[],r=Object.keys(Wn.plugins.items);for(let a=0;a<r.length;a++)n.push(Wn.getPlugin(r[a]));const i=e.plugins||[];for(let a=0;a<i.length;a++){const s=i[a];n.indexOf(s)===-1&&(n.push(s),t[s.id]=!0)}return{plugins:n,localIds:t}}function mH(e,t){return!t&&e===!1?null:e===!0?{}:e}function gH(e,{plugins:t,localIds:n},r,i){const a=[],s=e.getContext();for(const o of t){const l=o.id,u=mH(r[l],i);u!==null&&a.push({plugin:o,options:vH(e.config,{plugin:o,local:n[l]},u,s)})}return a}function vH(e,{plugin:t,local:n},r,i){const a=e.pluginScopeKeys(t),s=e.getOptionScopes(r,a);return n&&t.defaults&&s.push(t.defaults),e.createResolver(s,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function z3(e,t){const n=We.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function bH(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function yH(e,t){return e===t?"_index_":"_value_"}function v6(e){if(e==="x"||e==="y"||e==="r")return e}function $H(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function V3(e,...t){if(v6(e))return e;for(const n of t){const r=n.axis||$H(n.position)||e.length>1&&v6(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function b6(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function xH(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return b6(e,"x",n[0])||b6(e,"y",n[0])}return{}}function wH(e,t){const n=ia[e.type]||{scales:{}},r=t.scales||{},i=z3(e.type,t),a=Object.create(null);return Object.keys(r).forEach(s=>{const o=r[s];if(!ae(o))return console.error(`Invalid scale configuration for scale: ${s}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=V3(s,o,xH(s,e),We.scales[o.type]),u=yH(l,i),c=n.scales||{};a[s]=Ao(Object.create(null),[{axis:l},o,c[l],c[u]])}),e.data.datasets.forEach(s=>{const o=s.type||e.type,l=s.indexAxis||z3(o,t),c=(ia[o]||{}).scales||{};Object.keys(c).forEach(d=>{const f=bH(d,l),h=s[f+"AxisID"]||f;a[h]=a[h]||Object.create(null),Ao(a[h],[{axis:f},r[h],c[d]])})}),Object.keys(a).forEach(s=>{const o=a[s];Ao(o,[We.scales[o.type],We.scale])}),a}function MT(e){const t=e.options||(e.options={});t.plugins=J(t.plugins,{}),t.scales=wH(e,t)}function AT(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function DH(e){return e=e||{},e.data=AT(e.data),MT(e),e}const y6=new Map,FT=new Set;function Mu(e,t){let n=y6.get(e);return n||(n=t(),y6.set(e,n),FT.add(n)),n}const Js=(e,t,n)=>{const r=li(t,n);r!==void 0&&e.add(r)};class _H{constructor(t){this._config=DH(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=AT(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),MT(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Mu(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Mu(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Mu(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Mu(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:a}=this,s=this._cachedScopes(t,r),o=s.get(n);if(o)return o;const l=new Set;n.forEach(c=>{t&&(l.add(t),c.forEach(d=>Js(l,t,d))),c.forEach(d=>Js(l,i,d)),c.forEach(d=>Js(l,ia[a]||{},d)),c.forEach(d=>Js(l,We,d)),c.forEach(d=>Js(l,L3,d))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),FT.has(n)&&s.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,ia[n]||{},We.datasets[n]||{},{type:n},We,L3]}resolveNamedOptions(t,n,r,i=[""]){const a={$shared:!0},{resolver:s,subPrefixes:o}=$6(this._resolverCache,t,i);let l=s;if(SH(s,n)){a.$shared=!1,r=ui(r)?r():r;const u=this.createResolver(t,r,o);l=ws(s,r,u)}for(const u of n)a[u]=l[u];return a}createResolver(t,n,r=[""],i){const{resolver:a}=$6(this._resolverCache,t,r);return ae(n)?ws(a,n,void 0,i):a}}function $6(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let a=r.get(i);return a||(a={resolver:R$(t,n),subPrefixes:n.filter(o=>!o.toLowerCase().includes("hover"))},r.set(i,a)),a}const EH=e=>ae(e)&&Object.getOwnPropertyNames(e).some(t=>ui(e[t]));function SH(e,t){const{isScriptable:n,isIndexable:r}=hT(e);for(const i of t){const a=n(i),s=r(i),o=(s||a)&&e[i];if(a&&(ui(o)||EH(o))||s&&Be(o))return!0}return!1}var CH="4.4.3";const kH=["top","bottom","left","right","chartArea"];function x6(e,t){return e==="top"||e==="bottom"||kH.indexOf(e)===-1&&t==="x"}function w6(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function D6(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),De(n&&n.onComplete,[e],t)}function PH(e){const t=e.chart,n=t.options.animation;De(n&&n.onProgress,[e],t)}function OT(e){return F$()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const lc={},_6=e=>{const t=OT(e);return Object.values(lc).filter(n=>n.canvas===t).pop()};function TH(e,t,n){const r=Object.keys(e);for(const i of r){const a=+i;if(a>=t){const s=e[i];delete e[i],(n>0||a>t)&&(e[a+n]=s)}}}function RH(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function Au(e,t,n){return e.options.clip?e[n]:t[n]}function MH(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Au(n,t,"left"),right:Au(n,t,"right"),top:Au(r,t,"top"),bottom:Au(r,t,"bottom")}:t}var Pr;let Ms=(Pr=class{static register(...t){Wn.add(...t),E6()}static unregister(...t){Wn.remove(...t),E6()}constructor(t,n){const r=this.config=new _H(n),i=OT(t),a=_6(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||GU(i)),this.platform.updateConfig(r);const o=this.platform.acquireContext(i,s.aspectRatio),l=o&&o.canvas,u=l&&l.height,c=l&&l.width;if(this.id=FV(),this.ctx=o,this.canvas=l,this.width=c,this.height=u,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new hH,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=ZV(d=>this.update(d),s.resizeDelay||0),this._dataChanges=[],lc[this.id]=this,!o||!l){console.error("Failed to create chart: can't acquire context from the given item");return}rr.listen(this,"complete",D6),rr.listen(this,"progress",PH),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:a}=this;return ce(t)?n&&a?a:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Wn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():K5(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return W5(this.canvas,this.ctx),this}stop(){return rr.stop(this),this}resize(t,n){rr.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,t,n,a),o=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,K5(this,o,!0)&&(this.notifyPlugins("resize",{size:s}),De(r.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};me(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((s,o)=>(s[o]=!1,s),{});let a=[];n&&(a=a.concat(Object.keys(n).map(s=>{const o=n[s],l=V3(s,o),u=l==="r",c=l==="x";return{options:o,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),me(a,s=>{const o=s.options,l=o.id,u=V3(l,o),c=J(o.type,s.dtype);(o.position===void 0||x6(o.position,u)!==x6(s.dposition))&&(o.position=s.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===c)d=r[l];else{const f=Wn.getScale(c);d=new f({id:l,type:c,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(o,t)}),me(i,(s,o)=>{s||delete r[o]}),me(r,s=>{Ct.configure(this,s,s.options),Ct.addBox(this,s)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,a)=>i.index-a.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(w6("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const a=n[r];let s=this.getDatasetMeta(r);const o=a.type||this.config.type;if(s.type&&s.type!==o&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=o,s.indexAxis=a.indexAxis||z3(o,this.options),s.order=a.order||0,s.index=r,s.label=""+a.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const l=Wn.getController(o),{datasetElementType:u,dataElementType:c}=We.datasets[o];Object.assign(l,{dataElementType:Wn.getElement(c),datasetElementType:u&&Wn.getElement(u)}),s.controller=new l(this,r),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){me(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let u=0,c=this.data.datasets.length;u<c;u++){const{controller:d}=this.getDatasetMeta(u),f=!i&&a.indexOf(d)===-1;d.buildOrUpdateElements(f),s=Math.max(+d.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),i||me(a,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(w6("z","_idx"));const{_active:o,_lastEvent:l}=this;l?this._eventHandler(l,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){me(this.scales,t=>{Ct.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!F5(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:a}of n){const s=r==="_removeElements"?-a:a;TH(t,i,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=a=>new Set(t.filter(s=>s[0]===a).map((s,o)=>o+","+s.splice(1).join(","))),i=r(0);for(let a=1;a<n;a++)if(!F5(i,r(a)))return;return Array.from(i).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Ct.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],me(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,a)=>{i._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,ui(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(rr.has(this)?this.attached&&!rr.running(this)&&rr.start(this):(this.draw(),D6({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,a;for(i=0,a=n.length;i<a;++i){const s=n[i];(!t||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,a=MH(t,this.chartArea),s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&Ff(n,{left:r.left===!1?0:a.left-r.left,right:r.right===!1?this.width:a.right+r.right,top:r.top===!1?0:a.top-r.top,bottom:r.bottom===!1?this.height:a.bottom+r.bottom}),t.controller.draw(),i&&Of(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return mr(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const a=kU.modes[n];return typeof a=="function"?a(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(a=>a&&a._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=gi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",a=this.getDatasetMeta(t),s=a.controller._resolveAnimations(void 0,i);ml(n)?(a.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),s.update(a,{visible:r}),this.update(o=>o.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),rr.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),W5(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete lc[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(a,s)=>{n.addEventListener(this,a,s),t[a]=s},i=(a,s,o)=>{a.offsetX=s,a.offsetY=o,this._eventHandler(a)};me(this.options.events,a=>r(a,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,u)=>{n.addEventListener(this,l,u),t[l]=u},i=(l,u)=>{t[l]&&(n.removeEventListener(this,l,u),delete t[l])},a=(l,u)=>{this.canvas&&this.resize(l,u)};let s;const o=()=>{i("attach",o),this.attached=!0,this.resize(),r("resize",a),r("detach",s)};s=()=>{this.attached=!1,i("resize",a),this._stop(),this._resize(0,0),r("attach",o)},n.isAttached(this.canvas)?o():s()}unbindEvents(){me(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},me(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let a,s,o,l;for(n==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),o=0,l=t.length;o<l;++o){s=t[o];const u=s&&this.getDatasetMeta(s.datasetIndex).controller;u&&u[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:a,index:s})=>{const o=this.getDatasetMeta(a);if(!o)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:o.data[s],index:s}});!Ld(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,a=(l,u)=>l.filter(c=>!u.some(d=>c.datasetIndex===d.datasetIndex&&c.index===d.index)),s=a(n,t),o=r?t:a(t,n);s.length&&this.updateHoverStyle(s,i.mode,!1),o.length&&i.mode&&this.updateHoverStyle(o,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const a=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(a||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:a}=this,s=n,o=this._getActiveElements(t,i,r,s),l=jV(t),u=RH(t,this._lastEvent,r,l);r&&(this._lastEvent=null,De(a.onHover,[t,o,this],this),l&&De(a.onClick,[t,o,this],this));const c=!Ld(o,i);return(c||n)&&(this._active=o,this._updateHoverStyles(o,i,n)),this._lastEvent=u,c}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,i)}},j(Pr,"defaults",We),j(Pr,"instances",lc),j(Pr,"overrides",ia),j(Pr,"registry",Wn),j(Pr,"version",CH),j(Pr,"getChart",_6),Pr);function E6(){return me(Ms.instances,e=>e._plugins.invalidate())}function AH(e,t,n){const{startAngle:r,pixelMargin:i,x:a,y:s,outerRadius:o,innerRadius:l}=t;let u=i/o;e.beginPath(),e.arc(a,s,o,r-u,n+u),l>i?(u=i/l,e.arc(a,s,l,n+u,r-u,!0)):e.arc(a,s,i,n+qe,r-qe),e.closePath(),e.clip()}function FH(e){return T$(e,["outerStart","outerEnd","innerStart","innerEnd"])}function OH(e,t,n,r){const i=FH(e.options.borderRadius),a=(n-t)/2,s=Math.min(a,r*t/2),o=l=>{const u=(n-Math.min(a,l))*r/2;return dt(l,0,Math.min(a,u))};return{outerStart:o(i.outerStart),outerEnd:o(i.outerEnd),innerStart:dt(i.innerStart,0,s),innerEnd:dt(i.innerEnd,0,s)}}function Ca(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Ud(e,t,n,r,i,a){const{x:s,y:o,startAngle:l,pixelMargin:u,innerRadius:c}=t,d=Math.max(t.outerRadius+r+n-u,0),f=c>0?c+r+n+u:0;let h=0;const p=i-l;if(r){const z=c>0?c-r:0,O=d>0?d-r:0,C=(z+O)/2,F=C!==0?p*C/(C+r):p;h=(p-F)/2}const g=Math.max(.001,p*d-n/Me)/d,b=(p-g)/2,v=l+b+h,m=i-b-h,{outerStart:$,outerEnd:w,innerStart:D,innerEnd:S}=OH(t,f,d,m-v),k=d-$,x=d-w,T=v+$/k,P=m-w/x,E=f+D,A=f+S,R=v+D/E,M=m-S/A;if(e.beginPath(),a){const z=(T+P)/2;if(e.arc(s,o,d,T,z),e.arc(s,o,d,z,P),w>0){const B=Ca(x,P,s,o);e.arc(B.x,B.y,w,P,m+qe)}const O=Ca(A,m,s,o);if(e.lineTo(O.x,O.y),S>0){const B=Ca(A,M,s,o);e.arc(B.x,B.y,S,m+qe,M+Math.PI)}const C=(m-S/f+(v+D/f))/2;if(e.arc(s,o,f,m-S/f,C,!0),e.arc(s,o,f,C,v+D/f,!0),D>0){const B=Ca(E,R,s,o);e.arc(B.x,B.y,D,R+Math.PI,v-qe)}const F=Ca(k,v,s,o);if(e.lineTo(F.x,F.y),$>0){const B=Ca(k,T,s,o);e.arc(B.x,B.y,$,v-qe,T)}}else{e.moveTo(s,o);const z=Math.cos(T)*d+s,O=Math.sin(T)*d+o;e.lineTo(z,O);const C=Math.cos(P)*d+s,F=Math.sin(P)*d+o;e.lineTo(C,F)}e.closePath()}function BH(e,t,n,r,i){const{fullCircles:a,startAngle:s,circumference:o}=t;let l=t.endAngle;if(a){Ud(e,t,n,r,l,i);for(let u=0;u<a;++u)e.fill();isNaN(o)||(l=s+(o%Te||Te))}return Ud(e,t,n,r,l,i),e.fill(),l}function IH(e,t,n,r,i){const{fullCircles:a,startAngle:s,circumference:o,options:l}=t,{borderWidth:u,borderJoinStyle:c,borderDash:d,borderDashOffset:f}=l,h=l.borderAlign==="inner";if(!u)return;e.setLineDash(d||[]),e.lineDashOffset=f,h?(e.lineWidth=u*2,e.lineJoin=c||"round"):(e.lineWidth=u,e.lineJoin=c||"bevel");let p=t.endAngle;if(a){Ud(e,t,n,r,p,i);for(let g=0;g<a;++g)e.stroke();isNaN(o)||(p=s+(o%Te||Te))}h&&AH(e,t,p),a||(Ud(e,t,n,r,p,i),e.stroke())}class go extends Er{constructor(n){super();j(this,"circumference");j(this,"endAngle");j(this,"fullCircles");j(this,"innerRadius");j(this,"outerRadius");j(this,"pixelMargin");j(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,r,i){const a=this.getProps(["x","y"],i),{angle:s,distance:o}=rT(a,{x:n,y:r}),{startAngle:l,endAngle:u,innerRadius:c,outerRadius:d,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),h=(this.options.spacing+this.options.borderWidth)/2,g=J(f,u-l)>=Te||gl(s,l,u),b=hr(o,c+h,d+h);return g&&b}getCenterPoint(n){const{x:r,y:i,startAngle:a,endAngle:s,innerRadius:o,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:c}=this.options,d=(a+s)/2,f=(o+l+c+u)/2;return{x:r+Math.cos(d)*f,y:i+Math.sin(d)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:i}=this,a=(r.offset||0)/4,s=(r.spacing||0)/2,o=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>Te?Math.floor(i/Te):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*a,Math.sin(l)*a);const u=1-Math.sin(Math.min(Me,i||0)),c=a*u;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,BH(n,this,c,s,o),IH(n,this,c,s,o),n.restore()}}j(go,"id","arc"),j(go,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),j(go,"defaultRoutes",{backgroundColor:"backgroundColor"}),j(go,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function BT(e,t,n=t){e.lineCap=J(n.borderCapStyle,t.borderCapStyle),e.setLineDash(J(n.borderDash,t.borderDash)),e.lineDashOffset=J(n.borderDashOffset,t.borderDashOffset),e.lineJoin=J(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=J(n.borderWidth,t.borderWidth),e.strokeStyle=J(n.borderColor,t.borderColor)}function LH(e,t,n){e.lineTo(n.x,n.y)}function NH(e){return e.stepped?lW:e.tension||e.cubicInterpolationMode==="monotone"?uW:LH}function IT(e,t,n={}){const r=e.length,{start:i=0,end:a=r-1}=n,{start:s,end:o}=t,l=Math.max(i,s),u=Math.min(a,o),c=i<s&&a<s||i>o&&a>o;return{count:r,start:l,loop:t.loop,ilen:u<l&&!c?r+u-l:u-l}}function jH(e,t,n,r){const{points:i,options:a}=t,{count:s,start:o,loop:l,ilen:u}=IT(i,n,r),c=NH(a);let{move:d=!0,reverse:f}=r||{},h,p,g;for(h=0;h<=u;++h)p=i[(o+(f?u-h:h))%s],!p.skip&&(d?(e.moveTo(p.x,p.y),d=!1):c(e,g,p,f,a.stepped),g=p);return l&&(p=i[(o+(f?u:0))%s],c(e,g,p,f,a.stepped)),!!l}function zH(e,t,n,r){const i=t.points,{count:a,start:s,ilen:o}=IT(i,n,r),{move:l=!0,reverse:u}=r||{};let c=0,d=0,f,h,p,g,b,v;const m=w=>(s+(u?o-w:w))%a,$=()=>{g!==b&&(e.lineTo(c,b),e.lineTo(c,g),e.lineTo(c,v))};for(l&&(h=i[m(0)],e.moveTo(h.x,h.y)),f=0;f<=o;++f){if(h=i[m(f)],h.skip)continue;const w=h.x,D=h.y,S=w|0;S===p?(D<g?g=D:D>b&&(b=D),c=(d*c+w)/++d):($(),e.lineTo(w,D),p=S,d=0,g=b=D),v=D}$()}function W3(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?zH:jH}function VH(e){return e.stepped?zW:e.tension||e.cubicInterpolationMode==="monotone"?VW:Ri}function WH(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),BT(e,t.options),e.stroke(i)}function UH(e,t,n,r){const{segments:i,options:a}=t,s=W3(t);for(const o of i)BT(e,a,o.style),e.beginPath(),s(e,t,o,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const HH=typeof Path2D=="function";function KH(e,t,n,r){HH&&!t.options.segment?WH(e,t,n,r):UH(e,t,n,r)}class Hn extends Er{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;AW(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=qW(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],a=this.points,s=DT(this,{property:n,start:i,end:i});if(!s.length)return;const o=[],l=VH(r);let u,c;for(u=0,c=s.length;u<c;++u){const{start:d,end:f}=s[u],h=a[d],p=a[f];if(h===p){o.push(h);continue}const g=Math.abs((i-h[n])/(p[n]-h[n])),b=l(h,p,g,r.stepped);b[n]=t[n],o.push(b)}return o.length===1?o[0]:o}pathSegment(t,n,r){return W3(this)(t,this,n,r)}path(t,n,r){const i=this.segments,a=W3(this);let s=this._loop;n=n||0,r=r||this.points.length-n;for(const o of i)s&=a(t,this,o,{start:n,end:n+r-1});return!!s}draw(t,n,r,i){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),KH(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}j(Hn,"id","line"),j(Hn,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),j(Hn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),j(Hn,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function S6(e,t,n,r){const i=e.options,{[n]:a}=e.getProps([n],r);return Math.abs(t-a)<i.radius+i.hitRadius}class us extends Er{constructor(n){super();j(this,"parsed");j(this,"skip");j(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,i){const a=this.options,{x:s,y:o}=this.getProps(["x","y"],i);return Math.pow(n-s,2)+Math.pow(r-o,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(n,r){return S6(this,n,"x",r)}inYRange(n,r){return S6(this,n,"y",r)}getCenterPoint(n){const{x:r,y:i}=this.getProps(["x","y"],n);return{x:r,y:i}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const i=r&&n.borderWidth||0;return(r+i)*2}draw(n,r){const i=this.options;this.skip||i.radius<.1||!mr(this,r,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,N3(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}j(us,"id","point"),j(us,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),j(us,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function LT(e,t){const{x:n,y:r,base:i,width:a,height:s}=e.getProps(["x","y","base","width","height"],t);let o,l,u,c,d;return e.horizontal?(d=s/2,o=Math.min(n,i),l=Math.max(n,i),u=r-d,c=r+d):(d=a/2,o=n-d,l=n+d,u=Math.min(r,i),c=Math.max(r,i)),{left:o,top:u,right:l,bottom:c}}function Kr(e,t,n,r){return e?0:dt(t,n,r)}function YH(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,a=fT(r);return{t:Kr(i.top,a.top,0,n),r:Kr(i.right,a.right,0,t),b:Kr(i.bottom,a.bottom,0,n),l:Kr(i.left,a.left,0,t)}}function qH(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,a=Ki(i),s=Math.min(t,n),o=e.borderSkipped,l=r||ae(i);return{topLeft:Kr(!l||o.top||o.left,a.topLeft,0,s),topRight:Kr(!l||o.top||o.right,a.topRight,0,s),bottomLeft:Kr(!l||o.bottom||o.left,a.bottomLeft,0,s),bottomRight:Kr(!l||o.bottom||o.right,a.bottomRight,0,s)}}function GH(e){const t=LT(e),n=t.right-t.left,r=t.bottom-t.top,i=YH(e,n/2,r/2),a=qH(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:a},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function cp(e,t,n,r){const i=t===null,a=n===null,o=e&&!(i&&a)&&LT(e,r);return o&&(i||hr(t,o.left,o.right))&&(a||hr(n,o.top,o.bottom))}function ZH(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function XH(e,t){e.rect(t.x,t.y,t.w,t.h)}function dp(e,t,n={}){const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,a=(e.x+e.w!==n.x+n.w?t:0)-r,s=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+a,h:e.h+s,radius:e.radius}}class uc extends Er{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:a,outer:s}=GH(this),o=ZH(s.radius)?vl:XH;t.save(),(s.w!==a.w||s.h!==a.h)&&(t.beginPath(),o(t,dp(s,n,a)),t.clip(),o(t,dp(a,-n,s)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),o(t,dp(a,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return cp(this,t,n,r)}inXRange(t,n){return cp(this,t,null,n)}inYRange(t,n){return cp(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:i,horizontal:a}=this.getProps(["x","y","base","horizontal"],t);return{x:a?(n+i)/2:n,y:a?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}j(uc,"id","bar"),j(uc,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),j(uc,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var QH=Object.freeze({__proto__:null,ArcElement:go,BarElement:uc,LineElement:Hn,PointElement:us});const U3=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],C6=U3.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function NT(e){return U3[e%U3.length]}function jT(e){return C6[e%C6.length]}function JH(e,t){return e.borderColor=NT(t),e.backgroundColor=jT(t),++t}function eK(e,t){return e.backgroundColor=e.data.map(()=>NT(t++)),t}function tK(e,t){return e.backgroundColor=e.data.map(()=>jT(t++)),t}function nK(e){let t=0;return(n,r)=>{const i=e.getDatasetMeta(r).controller;i instanceof Vi?t=eK(n,t):i instanceof ls?t=tK(n,t):i&&(t=JH(n,t))}}function k6(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function rK(e){return e&&(e.borderColor||e.backgroundColor)}var iK={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:i}=e.config,{elements:a}=i;if(!n.forceOverride&&(k6(r)||rK(i)||a&&k6(a)))return;const s=nK(e);r.forEach(s)}};function aK(e,t,n,r,i){const a=i.samples||r;if(a>=n)return e.slice(t,t+n);const s=[],o=(n-2)/(a-2);let l=0;const u=t+n-1;let c=t,d,f,h,p,g;for(s[l++]=e[c],d=0;d<a-2;d++){let b=0,v=0,m;const $=Math.floor((d+1)*o)+1+t,w=Math.min(Math.floor((d+2)*o)+1,n)+t,D=w-$;for(m=$;m<w;m++)b+=e[m].x,v+=e[m].y;b/=D,v/=D;const S=Math.floor(d*o)+1+t,k=Math.min(Math.floor((d+1)*o)+1,n)+t,{x,y:T}=e[c];for(h=p=-1,m=S;m<k;m++)p=.5*Math.abs((x-b)*(e[m].y-T)-(x-e[m].x)*(v-T)),p>h&&(h=p,f=e[m],g=m);s[l++]=f,c=g}return s[l++]=e[u],s}function sK(e,t,n,r){let i=0,a=0,s,o,l,u,c,d,f,h,p,g;const b=[],v=t+n-1,m=e[t].x,w=e[v].x-m;for(s=t;s<t+n;++s){o=e[s],l=(o.x-m)/w*r,u=o.y;const D=l|0;if(D===c)u<p?(p=u,d=s):u>g&&(g=u,f=s),i=(a*i+o.x)/++a;else{const S=s-1;if(!ce(d)&&!ce(f)){const k=Math.min(d,f),x=Math.max(d,f);k!==h&&k!==S&&b.push({...e[k],x:i}),x!==h&&x!==S&&b.push({...e[x],x:i})}s>0&&S!==h&&b.push(e[S]),b.push(o),c=D,a=0,p=g=u,d=f=h=s}}return b}function zT(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function P6(e){e.data.datasets.forEach(t=>{zT(t)})}function oK(e,t){const n=t.length;let r=0,i;const{iScale:a}=e,{min:s,max:o,minDefined:l,maxDefined:u}=a.getUserBounds();return l&&(r=dt(pr(t,a.axis,s).lo,0,n-1)),u?i=dt(pr(t,a.axis,o).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var lK={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){P6(e);return}const r=e.width;e.data.datasets.forEach((i,a)=>{const{_data:s,indexAxis:o}=i,l=e.getDatasetMeta(a),u=s||i.data;if(po([o,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const c=e.scales[l.xAxisID];if(c.type!=="linear"&&c.type!=="time"||e.options.parsing)return;let{start:d,count:f}=oK(l,u);const h=n.threshold||4*r;if(f<=h){zT(i);return}ce(s)&&(i._data=u,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(g){this._data=g}}));let p;switch(n.algorithm){case"lttb":p=aK(u,d,f,r,n);break;case"min-max":p=sK(u,d,f,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=p})},destroy(e){P6(e)}};function uK(e,t,n){const r=e.segments,i=e.points,a=t.points,s=[];for(const o of r){let{start:l,end:u}=o;u=I$(l,u,i);const c=H3(n,i[l],i[u],o.loop);if(!t.segments){s.push({source:o,target:c,start:i[l],end:i[u]});continue}const d=DT(t,c);for(const f of d){const h=H3(n,a[f.start],a[f.end],f.loop),p=wT(o,i,h);for(const g of p)s.push({source:g,target:f,start:{[n]:T6(c,h,"start",Math.max)},end:{[n]:T6(c,h,"end",Math.min)}})}}return s}function H3(e,t,n,r){if(r)return;let i=t[e],a=n[e];return e==="angle"&&(i=nn(i),a=nn(a)),{property:e,start:i,end:a}}function cK(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,a=[];return t.segments.forEach(({start:s,end:o})=>{o=I$(s,o,i);const l=i[s],u=i[o];r!==null?(a.push({x:l.x,y:r}),a.push({x:u.x,y:r})):n!==null&&(a.push({x:n,y:l.y}),a.push({x:n,y:u.y}))}),a}function I$(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function T6(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function VT(e,t){let n=[],r=!1;return Be(e)?(r=!0,n=e):n=cK(e,t),n.length?new Hn({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function R6(e){return e&&e.fill!==!1}function dK(e,t,n){let i=e[t].fill;const a=[t];let s;if(!n)return i;for(;i!==!1&&a.indexOf(i)===-1;){if(!Ve(i))return i;if(s=e[i],!s)return!1;if(s.visible)return i;a.push(i),i=s.fill}return!1}function fK(e,t,n){const r=gK(e);if(ae(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return Ve(i)&&Math.floor(i)===i?hK(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function hK(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function pK(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:ae(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function mK(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:ae(e)?r=e.value:r=t.getBaseValue(),r}function gK(e){const t=e.options,n=t.fill;let r=J(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function vK(e){const{scale:t,index:n,line:r}=e,i=[],a=r.segments,s=r.points,o=bK(t,n);o.push(VT({x:null,y:t.bottom},r));for(let l=0;l<a.length;l++){const u=a[l];for(let c=u.start;c<=u.end;c++)yK(i,s[c],o)}return new Hn({points:i,options:{}})}function bK(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const a=r[i];if(a.index===t)break;a.hidden||n.unshift(a.dataset)}return n}function yK(e,t,n){const r=[];for(let i=0;i<n.length;i++){const a=n[i],{first:s,last:o,point:l}=$K(a,t,"x");if(!(!l||s&&o)){if(s)r.unshift(l);else if(e.push(l),!o)break}}e.push(...r)}function $K(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const i=r[n],a=e.segments,s=e.points;let o=!1,l=!1;for(let u=0;u<a.length;u++){const c=a[u],d=s[c.start][n],f=s[c.end][n];if(hr(i,d,f)){o=i===d,l=i===f;break}}return{first:o,last:l,point:r}}class WT{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:i,y:a,radius:s}=this;return n=n||{start:0,end:Te},t.arc(i,a,s,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:i}=this,a=t.angle;return{x:n+Math.cos(a)*i,y:r+Math.sin(a)*i,angle:a}}}function xK(e){const{chart:t,fill:n,line:r}=e;if(Ve(n))return wK(t,n);if(n==="stack")return vK(e);if(n==="shape")return!0;const i=DK(e);return i instanceof WT?i:VT(i,r)}function wK(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function DK(e){return(e.scale||{}).getPointPositionForValue?EK(e):_K(e)}function _K(e){const{scale:t={},fill:n}=e,r=pK(n,t);if(Ve(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function EK(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,a=r.reverse?t.max:t.min,s=mK(n,t,a),o=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,a);return new WT({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(s)})}for(let l=0;l<i;++l)o.push(t.getPointPositionForValue(l,s));return o}function fp(e,t,n){const r=xK(t),{line:i,scale:a,axis:s}=t,o=i.options,l=o.fill,u=o.backgroundColor,{above:c=u,below:d=u}=l||{};r&&i.points.length&&(Ff(e,n),SK(e,{line:i,target:r,above:c,below:d,area:n,scale:a,axis:s}),Of(e))}function SK(e,t){const{line:n,target:r,above:i,below:a,area:s,scale:o}=t,l=n._loop?"angle":t.axis;e.save(),l==="x"&&a!==i&&(M6(e,r,s.top),A6(e,{line:n,target:r,color:i,scale:o,property:l}),e.restore(),e.save(),M6(e,r,s.bottom)),A6(e,{line:n,target:r,color:a,scale:o,property:l}),e.restore()}function M6(e,t,n){const{segments:r,points:i}=t;let a=!0,s=!1;e.beginPath();for(const o of r){const{start:l,end:u}=o,c=i[l],d=i[I$(l,u,i)];a?(e.moveTo(c.x,c.y),a=!1):(e.lineTo(c.x,n),e.lineTo(c.x,c.y)),s=!!t.pathSegment(e,o,{move:s}),s?e.closePath():e.lineTo(d.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function A6(e,t){const{line:n,target:r,property:i,color:a,scale:s}=t,o=uK(n,r,i);for(const{source:l,target:u,start:c,end:d}of o){const{style:{backgroundColor:f=a}={}}=l,h=r!==!0;e.save(),e.fillStyle=f,CK(e,s,h&&H3(i,c,d)),e.beginPath();const p=!!n.pathSegment(e,l);let g;if(h){p?e.closePath():F6(e,r,d,i);const b=!!r.pathSegment(e,u,{move:p,reverse:!0});g=p&&b,g||F6(e,r,c,i)}e.closePath(),e.fill(g?"evenodd":"nonzero"),e.restore()}}function CK(e,t,n){const{top:r,bottom:i}=t.chart.chartArea,{property:a,start:s,end:o}=n||{};a==="x"&&(e.beginPath(),e.rect(s,r,o-s,i-r),e.clip())}function F6(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var kK={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let a,s,o,l;for(s=0;s<r;++s)a=e.getDatasetMeta(s),o=a.dataset,l=null,o&&o.options&&o instanceof Hn&&(l={visible:e.isDatasetVisible(s),index:s,fill:fK(o,s,r),chart:e,axis:a.controller.options.indexAxis,scale:a.vScale,line:o}),a.$filler=l,i.push(l);for(s=0;s<r;++s)l=i[s],!(!l||l.fill===!1)&&(l.fill=dK(i,s,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),a=e.chartArea;for(let s=i.length-1;s>=0;--s){const o=i[s].$filler;o&&(o.line.updateControlPoints(a,o.axis),r&&o.fill&&fp(e.ctx,o,a))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const a=r[i].$filler;R6(a)&&fp(e.ctx,a,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!R6(r)||n.drawTime!=="beforeDatasetDraw"||fp(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const O6=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},PK=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class B6 extends Er{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=De(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=it(r.font),a=i.size,s=this._computeTitleHeight(),{boxWidth:o,itemHeight:l}=O6(r,a);let u,c;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(s,a,o,l)+10):(c=this.maxHeight,u=this._fitCols(s,i,o,l)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:a,maxWidth:s,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=i+o;let d=t;a.textAlign="left",a.textBaseline="middle";let f=-1,h=-c;return this.legendItems.forEach((p,g)=>{const b=r+n/2+a.measureText(p.text).width;(g===0||u[u.length-1]+b+2*o>s)&&(d+=c,u[u.length-(g>0?0:1)]=0,h+=c,f++),l[g]={left:0,top:h,row:f,width:b,height:i},u[u.length-1]+=b+o}),d}_fitCols(t,n,r,i){const{ctx:a,maxHeight:s,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=s-t;let d=o,f=0,h=0,p=0,g=0;return this.legendItems.forEach((b,v)=>{const{itemWidth:m,itemHeight:$}=TK(r,n,a,b,i);v>0&&h+$+2*o>c&&(d+=f+o,u.push({width:f,height:h}),p+=f+o,g++,f=h=0),l[v]={left:p,top:h,col:g,width:m,height:$},f=Math.max(f,m),h+=$+o}),d+=f,u.push({width:f,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:a}}=this,s=os(a,this.left,this.width);if(this.isHorizontal()){let o=0,l=Dt(r,this.left+i,this.right-this.lineWidths[o]);for(const u of n)o!==u.row&&(o=u.row,l=Dt(r,this.left+i,this.right-this.lineWidths[o])),u.top+=this.top+t+i,u.left=s.leftForLtr(s.x(l),u.width),l+=u.width+i}else{let o=0,l=Dt(r,this.top+t+i,this.bottom-this.columnSizes[o].height);for(const u of n)u.col!==o&&(o=u.col,l=Dt(r,this.top+t+i,this.bottom-this.columnSizes[o].height)),u.top=l,u.left+=this.left+i,u.left=s.leftForLtr(s.x(u.left),u.width),l+=u.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Ff(t,this),this._draw(),Of(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:a,labels:s}=t,o=We.color,l=os(t.rtl,this.left,this.width),u=it(s.font),{padding:c}=s,d=u.size,f=d/2;let h;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:p,boxHeight:g,itemHeight:b}=O6(s,d),v=function(S,k,x){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;i.save();const T=J(x.lineWidth,1);if(i.fillStyle=J(x.fillStyle,o),i.lineCap=J(x.lineCap,"butt"),i.lineDashOffset=J(x.lineDashOffset,0),i.lineJoin=J(x.lineJoin,"miter"),i.lineWidth=T,i.strokeStyle=J(x.strokeStyle,o),i.setLineDash(J(x.lineDash,[])),s.usePointStyle){const P={radius:g*Math.SQRT2/2,pointStyle:x.pointStyle,rotation:x.rotation,borderWidth:T},E=l.xPlus(S,p/2),A=k+f;dT(i,P,E,A,s.pointStyleWidth&&p)}else{const P=k+Math.max((d-g)/2,0),E=l.leftForLtr(S,p),A=Ki(x.borderRadius);i.beginPath(),Object.values(A).some(R=>R!==0)?vl(i,{x:E,y:P,w:p,h:g,radius:A}):i.rect(E,P,p,g),i.fill(),T!==0&&i.stroke()}i.restore()},m=function(S,k,x){aa(i,x.text,S,k+b/2,u,{strikethrough:x.hidden,textAlign:l.textAlign(x.textAlign)})},$=this.isHorizontal(),w=this._computeTitleHeight();$?h={x:Dt(a,this.left+c,this.right-r[0]),y:this.top+c+w,line:0}:h={x:this.left+c,y:Dt(a,this.top+w+c,this.bottom-n[0].height),line:0},yT(this.ctx,t.textDirection);const D=b+c;this.legendItems.forEach((S,k)=>{i.strokeStyle=S.fontColor,i.fillStyle=S.fontColor;const x=i.measureText(S.text).width,T=l.textAlign(S.textAlign||(S.textAlign=s.textAlign)),P=p+f+x;let E=h.x,A=h.y;l.setWidth(this.width),$?k>0&&E+P+c>this.right&&(A=h.y+=D,h.line++,E=h.x=Dt(a,this.left+c,this.right-r[h.line])):k>0&&A+D>this.bottom&&(E=h.x=E+n[h.line].width+c,h.line++,A=h.y=Dt(a,this.top+w+c,this.bottom-n[h.line].height));const R=l.x(E);if(v(R,A,S),E=XV(T,E+p+f,$?E+P:this.right,t.rtl),m(l.x(E),A,S),$)h.x+=P+c;else if(typeof S.text!="string"){const M=u.lineHeight;h.y+=UT(S,M)+c}else h.y+=D}),$T(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=it(n.font),i=Pt(n.padding);if(!n.display)return;const a=os(t.rtl,this.left,this.width),s=this.ctx,o=n.position,l=r.size/2,u=i.top+l;let c,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),c=this.top+u,d=Dt(t.align,d,this.right-f);else{const p=this.columnSizes.reduce((g,b)=>Math.max(g,b.height),0);c=u+Dt(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const h=Dt(o,d,d+f);s.textAlign=a.textAlign(k$(o)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,aa(s,n.text,h,c,r)}_computeTitleHeight(){const t=this.options.title,n=it(t.font),r=Pt(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,a;if(hr(t,this.left,this.right)&&hr(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;r<a.length;++r)if(i=a[r],hr(t,i.left,i.left+i.width)&&hr(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!AK(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,a=PK(i,r);i&&!a&&De(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!a&&De(n.onHover,[t,r,this],this)}else r&&De(n.onClick,[t,r,this],this)}}function TK(e,t,n,r,i){const a=RK(r,e,t,n),s=MK(i,r,t.lineHeight);return{itemWidth:a,itemHeight:s}}function RK(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((a,s)=>a.length>s.length?a:s)),t+n.size/2+r.measureText(i).width}function MK(e,t,n){let r=e;return typeof t.text!="string"&&(r=UT(t,n)),r}function UT(e,t){const n=e.text?e.text.length:0;return t*n}function AK(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var FK={id:"legend",_element:B6,start(e,t,n){const r=e.legend=new B6({ctx:e.ctx,options:n,chart:e});Ct.configure(e,r,n),Ct.addBox(e,r)},stop(e){Ct.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Ct.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:a,useBorderRadius:s,borderRadius:o}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=Pt(u.borderWidth);return{text:t[l.index].label,fillStyle:u.backgroundColor,fontColor:a,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:s&&(o||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class L$ extends Er{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=Be(r.text)?r.text.length:1;this._padding=Pt(r.padding);const a=i*it(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:a,options:s}=this,o=s.align;let l=0,u,c,d;return this.isHorizontal()?(c=Dt(o,r,a),d=n+t,u=a-r):(s.position==="left"?(c=r+t,d=Dt(o,i,n),l=Me*-.5):(c=a-t,d=Dt(o,n,i),l=Me*.5),u=i-n),{titleX:c,titleY:d,maxWidth:u,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=it(n.font),a=r.lineHeight/2+this._padding.top,{titleX:s,titleY:o,maxWidth:l,rotation:u}=this._drawArgs(a);aa(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:k$(n.align),textBaseline:"middle",translation:[s,o]})}}function OK(e,t){const n=new L$({ctx:e.ctx,options:t,chart:e});Ct.configure(e,n,t),Ct.addBox(e,n),e.titleBlock=n}var BK={id:"title",_element:L$,start(e,t,n){OK(e,n)},stop(e){const t=e.titleBlock;Ct.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Ct.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Fu=new WeakMap;var IK={id:"subtitle",start(e,t,n){const r=new L$({ctx:e.ctx,options:n,chart:e});Ct.configure(e,r,n),Ct.addBox(e,r),Fu.set(e,r)},stop(e){Ct.removeBox(e,Fu.get(e)),Fu.delete(e)},beforeUpdate(e,t,n){const r=Fu.get(e);Ct.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const vo={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=0;for(t=0,n=e.length;t<n;++t){const o=e[t].element;if(o&&o.hasValue()){const l=o.tooltipPosition();r.add(l.x),i+=l.y,++a}}return{x:[...r].reduce((o,l)=>o+l)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,a,s,o;for(a=0,s=e.length;a<s;++a){const l=e[a].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),c=I3(t,u);c<i&&(i=c,o=l)}}if(o){const l=o.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function zn(e,t){return t&&(Be(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function ir(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
+`)>-1?e.split(`
+`):e}function LK(e,t){const{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:s,value:o}=a.getLabelAndValue(i);return{chart:e,label:s,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:o,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function I6(e,t){const n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:s,boxHeight:o}=t,l=it(t.bodyFont),u=it(t.titleFont),c=it(t.footerFont),d=a.length,f=i.length,h=r.length,p=Pt(t.padding);let g=p.height,b=0,v=r.reduce((w,D)=>w+D.before.length+D.lines.length+D.after.length,0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(g+=d*u.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){const w=t.displayColors?Math.max(o,l.lineHeight):l.lineHeight;g+=h*w+(v-h)*l.lineHeight+(v-1)*t.bodySpacing}f&&(g+=t.footerMarginTop+f*c.lineHeight+(f-1)*t.footerSpacing);let m=0;const $=function(w){b=Math.max(b,n.measureText(w).width+m)};return n.save(),n.font=u.string,me(e.title,$),n.font=l.string,me(e.beforeBody.concat(e.afterBody),$),m=t.displayColors?s+2+t.boxPadding:0,me(r,w=>{me(w.before,$),me(w.lines,$),me(w.after,$)}),m=0,n.font=c.string,me(e.footer,$),n.restore(),b+=p.width,{width:b,height:g}}function NK(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function jK(e,t,n,r){const{x:i,width:a}=r,s=n.caretSize+n.caretPadding;if(e==="left"&&i+a+s>t.width||e==="right"&&i-a-s<0)return!0}function zK(e,t,n,r){const{x:i,width:a}=n,{width:s,chartArea:{left:o,right:l}}=e;let u="center";return r==="center"?u=i<=(o+l)/2?"left":"right":i<=a/2?u="left":i>=s-a/2&&(u="right"),jK(u,e,t,n)&&(u="center"),u}function L6(e,t,n){const r=n.yAlign||t.yAlign||NK(e,n);return{xAlign:n.xAlign||t.xAlign||zK(e,t,n,r),yAlign:r}}function VK(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function WK(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function N6(e,t,n,r){const{caretSize:i,caretPadding:a,cornerRadius:s}=e,{xAlign:o,yAlign:l}=n,u=i+a,{topLeft:c,topRight:d,bottomLeft:f,bottomRight:h}=Ki(s);let p=VK(t,o);const g=WK(t,l,u);return l==="center"?o==="left"?p+=u:o==="right"&&(p-=u):o==="left"?p-=Math.max(c,f)+i:o==="right"&&(p+=Math.max(d,h)+i),{x:dt(p,0,r.width-t.width),y:dt(g,0,r.height-t.height)}}function Ou(e,t,n){const r=Pt(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function j6(e){return zn([],ir(e))}function UK(e,t,n){return gi(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function z6(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const HT={beforeTitle:nr,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:nr,beforeBody:nr,beforeLabel:nr,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return ce(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:nr,afterBody:nr,beforeFooter:nr,footer:nr,afterFooter:nr};function jt(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?HT[t].call(n,r):i}class K3 extends Er{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,a=new _T(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=UK(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=jt(r,"beforeTitle",this,t),a=jt(r,"title",this,t),s=jt(r,"afterTitle",this,t);let o=[];return o=zn(o,ir(i)),o=zn(o,ir(a)),o=zn(o,ir(s)),o}getBeforeBody(t,n){return j6(jt(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return me(t,a=>{const s={before:[],lines:[],after:[]},o=z6(r,a);zn(s.before,ir(jt(o,"beforeLabel",this,a))),zn(s.lines,jt(o,"label",this,a)),zn(s.after,ir(jt(o,"afterLabel",this,a))),i.push(s)}),i}getAfterBody(t,n){return j6(jt(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=jt(r,"beforeFooter",this,t),a=jt(r,"footer",this,t),s=jt(r,"afterFooter",this,t);let o=[];return o=zn(o,ir(i)),o=zn(o,ir(a)),o=zn(o,ir(s)),o}_createItems(t){const n=this._active,r=this.chart.data,i=[],a=[],s=[];let o=[],l,u;for(l=0,u=n.length;l<u;++l)o.push(LK(this.chart,n[l]));return t.filter&&(o=o.filter((c,d,f)=>t.filter(c,d,f,r))),t.itemSort&&(o=o.sort((c,d)=>t.itemSort(c,d,r))),me(o,c=>{const d=z6(t.callbacks,c);i.push(jt(d,"labelColor",this,c)),a.push(jt(d,"labelPointStyle",this,c)),s.push(jt(d,"labelTextColor",this,c))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=s,this.dataPoints=o,o}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let a,s=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{const o=vo[r.position].call(this,i,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const l=this._size=I6(this,r),u=Object.assign({},o,l),c=L6(this.chart,r,u),d=N6(r,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,a={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:o.x,caretY:o.y}}this._tooltipItems=s,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const a=this.getCaretPosition(t,r,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:a}=this,{caretSize:s,cornerRadius:o}=r,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:d}=Ki(o),{x:f,y:h}=t,{width:p,height:g}=n;let b,v,m,$,w,D;return a==="center"?(w=h+g/2,i==="left"?(b=f,v=b-s,$=w+s,D=w-s):(b=f+p,v=b+s,$=w-s,D=w+s),m=b):(i==="left"?v=f+Math.max(l,c)+s:i==="right"?v=f+p-Math.max(u,d)-s:v=this.caretX,a==="top"?($=h,w=$-s,b=v-s,m=v+s):($=h+g,w=$+s,b=v+s,m=v-s),D=$),{x1:b,x2:v,x3:m,y1:$,y2:w,y3:D}}drawTitle(t,n,r){const i=this.title,a=i.length;let s,o,l;if(a){const u=os(r.rtl,this.x,this.width);for(t.x=Ou(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",s=it(r.titleFont),o=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,l=0;l<a;++l)n.fillText(i[l],u.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+o,l+1===a&&(t.y+=r.titleMarginBottom-o)}}_drawColorBox(t,n,r,i,a){const s=this.labelColors[r],o=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=a,c=it(a.bodyFont),d=Ou(this,"left",a),f=i.x(d),h=l<c.lineHeight?(c.lineHeight-l)/2:0,p=n.y+h;if(a.usePointStyle){const g={radius:Math.min(u,l)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},b=i.leftForLtr(f,u)+u/2,v=p+l/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,N3(t,g,b,v),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,N3(t,g,b,v)}else{t.lineWidth=ae(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const g=i.leftForLtr(f,u),b=i.leftForLtr(i.xPlus(f,1),u-2),v=Ki(s.borderRadius);Object.values(v).some(m=>m!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,vl(t,{x:g,y:p,w:u,h:l,radius:v}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),vl(t,{x:b,y:p+1,w:u-2,h:l-2,radius:v}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(g,p,u,l),t.strokeRect(g,p,u,l),t.fillStyle=s.backgroundColor,t.fillRect(b,p+1,u-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:a,bodyAlign:s,displayColors:o,boxHeight:l,boxWidth:u,boxPadding:c}=r,d=it(r.bodyFont);let f=d.lineHeight,h=0;const p=os(r.rtl,this.x,this.width),g=function(x){n.fillText(x,p.x(t.x+h),t.y+f/2),t.y+=f+a},b=p.textAlign(s);let v,m,$,w,D,S,k;for(n.textAlign=s,n.textBaseline="middle",n.font=d.string,t.x=Ou(this,b,r),n.fillStyle=r.bodyColor,me(this.beforeBody,g),h=o&&b!=="right"?s==="center"?u/2+c:u+2+c:0,w=0,S=i.length;w<S;++w){for(v=i[w],m=this.labelTextColors[w],n.fillStyle=m,me(v.before,g),$=v.lines,o&&$.length&&(this._drawColorBox(n,t,w,p,r),f=Math.max(d.lineHeight,l)),D=0,k=$.length;D<k;++D)g($[D]),f=d.lineHeight;me(v.after,g)}h=0,f=d.lineHeight,me(this.afterBody,g),t.y-=a}drawFooter(t,n,r){const i=this.footer,a=i.length;let s,o;if(a){const l=os(r.rtl,this.x,this.width);for(t.x=Ou(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",s=it(r.footerFont),n.fillStyle=r.footerColor,n.font=s.string,o=0;o<a;++o)n.fillText(i[o],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:a,yAlign:s}=this,{x:o,y:l}=t,{width:u,height:c}=r,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:p}=Ki(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(o+d,l),s==="top"&&this.drawCaret(t,n,r,i),n.lineTo(o+u-f,l),n.quadraticCurveTo(o+u,l,o+u,l+f),s==="center"&&a==="right"&&this.drawCaret(t,n,r,i),n.lineTo(o+u,l+c-p),n.quadraticCurveTo(o+u,l+c,o+u-p,l+c),s==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(o+h,l+c),n.quadraticCurveTo(o,l+c,o,l+c-h),s==="center"&&a==="left"&&this.drawCaret(t,n,r,i),n.lineTo(o,l+d),n.quadraticCurveTo(o,l,o+d,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,a=r&&r.y;if(i||a){const s=vo[t.position].call(this,this._active,this._eventPosition);if(!s)return;const o=this._size=I6(this,t),l=Object.assign({},s,this._size),u=L6(n,t,l),c=N6(t,l,u,n);(i._to!==c.x||a._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=o.width,this.height=o.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=Pt(n.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&o&&(t.save(),t.globalAlpha=r,this.drawBackground(a,t,i,n),yT(t,n.textDirection),a.y+=s.top,this.drawTitle(a,t,n),this.drawBody(a,t,n),this.drawFooter(a,t,n),$T(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:o,index:l})=>{const u=this.chart.getDatasetMeta(o);if(!u)throw new Error("Cannot find a dataset at index "+o);return{datasetIndex:o,element:u.data[l],index:l}}),a=!Ld(r,i),s=this._positionChanged(i,n);(a||s)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,a=this._active||[],s=this._getActiveElements(t,a,n,r),o=this._positionChanged(s,t),l=n||!Ld(s,a)||o;return l&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const a=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(o=>this.chart.data.datasets[o.datasetIndex]&&this.chart.getDatasetMeta(o.datasetIndex).controller.getParsed(o.index)!==void 0);const s=this.chart.getElementsAtEventForMode(t,a.mode,a,r);return a.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:r,caretY:i,options:a}=this,s=vo[a.position].call(this,t,n);return s!==!1&&(r!==s.x||i!==s.y)}}j(K3,"positioners",vo);var N$={id:"tooltip",_element:K3,positioners:vo,afterInit(e,t,n){n&&(e.tooltip=new K3({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:HT},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},HK=Object.freeze({__proto__:null,Colors:iK,Decimation:lK,Filler:kK,Legend:FK,SubTitle:IK,Title:BK,Tooltip:N$});const KK=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function YK(e,t,n,r){const i=e.indexOf(t);if(i===-1)return KK(e,t,n,r);const a=e.lastIndexOf(t);return i!==a?n:i}const qK=(e,t)=>e===null?null:dt(Math.round(e),0,t);function V6(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class yl extends ga{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:a}of n)r[i]===a&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(ce(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:YK(r,t,J(n,t),this._addedLabels),qK(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let a=this.getLabels();a=t===0&&n===a.length-1?a:a.slice(t,n+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=t;s<=n;s++)i.push({value:s});return i}getLabelForValue(t){return V6.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}j(yl,"id","category"),j(yl,"defaults",{ticks:{callback:V6}});function GK(e,t){const n=[],{bounds:i,step:a,min:s,max:o,precision:l,count:u,maxTicks:c,maxDigits:d,includeBounds:f}=e,h=a||1,p=c-1,{min:g,max:b}=t,v=!ce(s),m=!ce(o),$=!ce(u),w=(b-g)/(d+1);let D=B5((b-g)/p/h)*h,S,k,x,T;if(D<1e-14&&!v&&!m)return[{value:g},{value:b}];T=Math.ceil(b/D)-Math.floor(g/D),T>p&&(D=B5(T*D/p/h)*h),ce(l)||(S=Math.pow(10,l),D=Math.ceil(D*S)/S),i==="ticks"?(k=Math.floor(g/D)*D,x=Math.ceil(b/D)*D):(k=g,x=b),v&&m&&a&&UV((o-s)/a,D/1e3)?(T=Math.round(Math.min((o-s)/D,c)),D=(o-s)/T,k=s,x=o):$?(k=v?s:k,x=m?o:x,T=u-1,D=(x-k)/T):(T=(x-k)/D,Fo(T,Math.round(T),D/1e3)?T=Math.round(T):T=Math.ceil(T));const P=Math.max(I5(D),I5(k));S=Math.pow(10,ce(l)?P:l),k=Math.round(k*S)/S,x=Math.round(x*S)/S;let E=0;for(v&&(f&&k!==s?(n.push({value:s}),k<s&&E++,Fo(Math.round((k+E*D)*S)/S,s,W6(s,w,e))&&E++):k<s&&E++);E<T;++E){const A=Math.round((k+E*D)*S)/S;if(m&&A>o)break;n.push({value:A})}return m&&f&&x!==o?n.length&&Fo(n[n.length-1].value,o,W6(o,w,e))?n[n.length-1].value=o:n.push({value:o}):(!m||x===o)&&n.push({value:x}),n}function W6(e,t,{horizontal:n,minRotation:r}){const i=Mn(r),a=(n?Math.sin(i):Math.cos(i))||.001,s=.75*t*(""+e).length;return Math.min(t/a,s)}class Hd extends ga{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return ce(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:a}=this;const s=l=>i=n?i:l,o=l=>a=r?a:l;if(t){const l=qn(i),u=qn(a);l<0&&u<0?o(0):l>0&&u>0&&s(0)}if(i===a){let l=a===0?1:Math.abs(a*.05);o(a+l),t||s(i-l)}this.min=i,this.max=a}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},a=this._range||this,s=GK(i,a);return t.bounds==="ticks"&&nT(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Ll(t,this.chart.options.locale,this.options.ticks.format)}}class $l extends Hd{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Ve(t)?t:0,this.max=Ve(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Mn(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,a.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}j($l,"id","linear"),j($l,"defaults",{ticks:{callback:Af.formatters.numeric}});const xl=e=>Math.floor(Hr(e)),_i=(e,t)=>Math.pow(10,xl(e)+t);function U6(e){return e/Math.pow(10,xl(e))===1}function H6(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function ZK(e,t){const n=t-e;let r=xl(n);for(;H6(e,t,r)>10;)r++;for(;H6(e,t,r)<10;)r--;return Math.min(r,xl(e))}function XK(e,{min:t,max:n}){t=en(e.min,t);const r=[],i=xl(t);let a=ZK(t,n),s=a<0?Math.pow(10,Math.abs(a)):1;const o=Math.pow(10,a),l=i>a?Math.pow(10,i):0,u=Math.round((t-l)*s)/s,c=Math.floor((t-l)/o/10)*o*10;let d=Math.floor((u-c)/Math.pow(10,a)),f=en(e.min,Math.round((l+c+d*Math.pow(10,a))*s)/s);for(;f<n;)r.push({value:f,major:U6(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,s=a>=0?1:s),f=Math.round((l+c+d*Math.pow(10,a))*s)/s;const h=en(e.max,f);return r.push({value:h,major:U6(h),significand:d}),r}class Y3 extends ga{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=Hd.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return Ve(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Ve(t)?Math.max(0,t):null,this.max=Ve(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Ve(this._userMin)&&(this.min=t===_i(this.min,0)?_i(this.min,-1):_i(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const a=o=>r=t?r:o,s=o=>i=n?i:o;r===i&&(r<=0?(a(1),s(10)):(a(_i(r,-1)),s(_i(i,1)))),r<=0&&a(_i(i,-1)),i<=0&&s(_i(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=XK(n,this);return t.bounds==="ticks"&&nT(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Ll(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Hr(t),this._valueRange=Hr(this.max)-Hr(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Hr(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}j(Y3,"id","logarithmic"),j(Y3,"defaults",{ticks:{callback:Af.formatters.logarithmic,major:{enabled:!0}}});function q3(e){const t=e.ticks;if(t.display&&e.display){const n=Pt(t.backdropPadding);return J(t.font&&t.font.size,We.font.size)+n.height}return 0}function QK(e,t,n){return n=Be(n)?n:[n],{w:oW(e,t.string,n),h:n.length*t.lineHeight}}function K6(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function JK(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],a=e._pointLabels.length,s=e.options.pointLabels,o=s.centerPointLabels?Me/a:0;for(let l=0;l<a;l++){const u=s.setContext(e.getPointLabelContext(l));i[l]=u.padding;const c=e.getPointPosition(l,e.drawingArea+i[l],o),d=it(u.font),f=QK(e.ctx,d,e._pointLabels[l]);r[l]=f;const h=nn(e.getIndexAngle(l)+o),p=Math.round(S$(h)),g=K6(p,c.x,f.w,0,180),b=K6(p,c.y,f.h,90,270);eY(n,t,h,g,b)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=rY(e,r,i)}function eY(e,t,n,r,i){const a=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let o=0,l=0;r.start<t.l?(o=(t.l-r.start)/a,e.l=Math.min(e.l,t.l-o)):r.end>t.r&&(o=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+o)),i.start<t.t?(l=(t.t-i.start)/s,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/s,e.b=Math.max(e.b,t.b+l))}function tY(e,t,n){const r=e.drawingArea,{extra:i,additionalAngle:a,padding:s,size:o}=n,l=e.getPointPosition(t,r+i+s,a),u=Math.round(S$(nn(l.angle+qe))),c=sY(l.y,o.h,u),d=iY(u),f=aY(l.x,o.w,d);return{visible:!0,x:l.x,y:c,textAlign:d,left:f,top:c,right:f+o.w,bottom:c+o.h}}function nY(e,t){if(!t)return!0;const{left:n,top:r,right:i,bottom:a}=e;return!(mr({x:n,y:r},t)||mr({x:n,y:a},t)||mr({x:i,y:r},t)||mr({x:i,y:a},t))}function rY(e,t,n){const r=[],i=e._pointLabels.length,a=e.options,{centerPointLabels:s,display:o}=a.pointLabels,l={extra:q3(a)/2,additionalAngle:s?Me/i:0};let u;for(let c=0;c<i;c++){l.padding=n[c],l.size=t[c];const d=tY(e,c,l);r.push(d),o==="auto"&&(d.visible=nY(d,u),d.visible&&(u=d))}return r}function iY(e){return e===0||e===180?"center":e<180?"left":"right"}function aY(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function sY(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function oY(e,t,n){const{left:r,top:i,right:a,bottom:s}=n,{backdropColor:o}=t;if(!ce(o)){const l=Ki(t.borderRadius),u=Pt(t.backdropPadding);e.fillStyle=o;const c=r-u.left,d=i-u.top,f=a-r+u.width,h=s-i+u.height;Object.values(l).some(p=>p!==0)?(e.beginPath(),vl(e,{x:c,y:d,w:f,h,radius:l}),e.fill()):e.fillRect(c,d,f,h)}}function lY(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const a=e._pointLabelItems[i];if(!a.visible)continue;const s=r.setContext(e.getPointLabelContext(i));oY(n,s,a);const o=it(s.font),{x:l,y:u,textAlign:c}=a;aa(n,e._pointLabels[i],l,u+o.lineHeight/2,o,{color:s.color,textAlign:c,textBaseline:"middle"})}}function KT(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Te);else{let a=e.getPointPosition(0,t);i.moveTo(a.x,a.y);for(let s=1;s<r;s++)a=e.getPointPosition(s,t),i.lineTo(a.x,a.y)}}function uY(e,t,n,r,i){const a=e.ctx,s=t.circular,{color:o,lineWidth:l}=t;!s&&!r||!o||!l||n<0||(a.save(),a.strokeStyle=o,a.lineWidth=l,a.setLineDash(i.dash),a.lineDashOffset=i.dashOffset,a.beginPath(),KT(e,n,s,r),a.closePath(),a.stroke(),a.restore())}function cY(e,t,n){return gi(e,{label:n,index:t,type:"pointLabel"})}class bo extends Hd{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Pt(q3(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=Ve(t)&&!isNaN(t)?t:0,this.max=Ve(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/q3(this.options))}generateTickLabels(t){Hd.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const i=De(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?JK(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=Te/(this._pointLabels.length||1),r=this.options.startAngle||0;return nn(t*n+Mn(r))}getDistanceFromCenterForValue(t){if(ce(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(ce(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const r=n[t];return cY(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const i=this.getIndexAngle(t)-qe+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:i,bottom:a}=this._pointLabelItems[t];return{left:n,top:r,right:i,bottom:a}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),KT(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:i,border:a}=n,s=this._pointLabels.length;let o,l,u;if(n.pointLabels.display&&lY(this,s),i.display&&this.ticks.forEach((c,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(c.value);const f=this.getContext(d),h=i.setContext(f),p=a.setContext(f);uY(this,h,l,s,p)}}),r.display){for(t.save(),o=s-1;o>=0;o--){const c=r.setContext(this.getPointLabelContext(o)),{color:d,lineWidth:f}=c;!f||!d||(t.lineWidth=f,t.strokeStyle=d,t.setLineDash(c.borderDash),t.lineDashOffset=c.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),u=this.getPointPosition(o,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(u.x,u.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let a,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((o,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const u=r.setContext(this.getContext(l)),c=it(u.font);if(a=this.getDistanceFromCenterForValue(this.ticks[l].value),u.showLabelBackdrop){t.font=c.string,s=t.measureText(o.label).width,t.fillStyle=u.backdropColor;const d=Pt(u.backdropPadding);t.fillRect(-s/2-d.left,-a-c.size/2-d.top,s+d.width,c.size+d.height)}aa(t,o.label,0,-a,c,{color:u.color,strokeColor:u.textStrokeColor,strokeWidth:u.textStrokeWidth})}),t.restore()}drawTitle(){}}j(bo,"id","radialLinear"),j(bo,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Af.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),j(bo,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),j(bo,"descriptors",{angleLines:{_fallback:"grid"}});const If={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Ht=Object.keys(If);function Y6(e,t){return e-t}function q6(e,t){if(ce(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts;let s=t;return typeof r=="function"&&(s=r(s)),Ve(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(xs(a)||a===!0)?n.startOf(s,"isoWeek",a):n.startOf(s,i)),+s)}function G6(e,t,n,r){const i=Ht.length;for(let a=Ht.indexOf(e);a<i-1;++a){const s=If[Ht[a]],o=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-t)/(o*s.size))<=r)return Ht[a]}return Ht[i-1]}function dY(e,t,n,r,i){for(let a=Ht.length-1;a>=Ht.indexOf(n);a--){const s=Ht[a];if(If[s].common&&e._adapter.diff(i,r,s)>=t-1)return s}return Ht[n?Ht.indexOf(n):0]}function fY(e){for(let t=Ht.indexOf(e)+1,n=Ht.length;t<n;++t)if(If[Ht[t]].common)return Ht[t]}function Z6(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=C$(n,t),a=n[r]>=t?n[r]:n[i];e[a]=!0}}function hY(e,t,n,r){const i=e._adapter,a=+i.startOf(t[0].value,r),s=t[t.length-1].value;let o,l;for(o=a;o<=s;o=+i.add(o,1,r))l=n[o],l>=0&&(t[l].major=!0);return t}function X6(e,t,n){const r=[],i={},a=t.length;let s,o;for(s=0;s<a;++s)o=t[s],i[o]=s,r.push({value:o,major:!1});return a===0||!n?r:hY(e,r,i,n)}class wl extends ga{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new DU._date(t.adapters.date);i.init(n),Ao(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:q6(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:a,minDefined:s,maxDefined:o}=this.getUserBounds();function l(u){!s&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!o&&!isNaN(u.max)&&(a=Math.max(a,u.max))}(!s||!o)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=Ve(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),a=Ve(a)&&!isNaN(a)?a:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const a=this.min,s=this.max,o=qV(i,a,s);return this._unit=n.unit||(r.autoSkip?G6(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):dY(this,o.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:fY(this._unit),this.initOffsets(i),t.reverse&&o.reverse(),X6(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,a;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?r=a:r=(a-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=dt(n,0,s),r=dt(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,a=i.time,s=a.unit||G6(a.minUnit,n,r,this._getLabelCapacity(n)),o=J(i.ticks.stepSize,1),l=s==="week"?a.isoWeekday:!1,u=xs(l)||l===!0,c={};let d=n,f,h;if(u&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,u?"day":s),t.diff(r,n,s)>1e5*o)throw new Error(n+" and "+r+" are too far apart with stepSize of "+o+" "+s);const p=i.ticks.source==="data"&&this.getDataTimestamps();for(f=d,h=0;f<r;f=+t.add(f,o,s),h++)Z6(c,f,p);return(f===r||i.bounds==="ticks"||h===1)&&Z6(c,f,p),Object.keys(c).sort(Y6).map(g=>+g)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,a=this._unit,s=n||i[a];return this._adapter.format(t,s)}_tickFormatFunction(t,n,r,i){const a=this.options,s=a.ticks.callback;if(s)return De(s,[t,n,r],this);const o=a.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&o[l],d=u&&o[u],f=r[n],h=u&&d&&f&&f.major;return this._adapter.format(t,i||(h?d:c))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=Mn(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(i),s=Math.sin(i),o=this._resolveTickFontOptions(0).size;return{w:r*a+o*s,h:r*s+o*a}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,a=this._tickFormatFunction(t,0,X6(this,[t],this._majorUnit),i),s=this._getLabelSize(a),o=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return o>0?o:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(q6(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return aT(t.sort(Y6))}}j(wl,"id","time"),j(wl,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Bu(e,t,n){let r=0,i=e.length-1,a,s,o,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=pr(e,"pos",t)),{pos:a,time:o}=e[r],{pos:s,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=pr(e,"time",t)),{time:a,pos:o}=e[r],{time:s,pos:l}=e[i]);const u=s-a;return u?o+(l-o)*(t-a)/u:o}class G3 extends wl{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Bu(n,this.min),this._tableRange=Bu(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],a=[];let s,o,l,u,c;for(s=0,o=t.length;s<o;++s)u=t[s],u>=n&&u<=r&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,o=i.length;s<o;++s)c=i[s+1],l=i[s-1],u=i[s],Math.round((c+l)/2)!==u&&a.push({time:u,pos:s/(o-1)});return a}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,a)=>i-a)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(Bu(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Bu(this._table,r*this._tableRange+this._minPos,!0)}}j(G3,"id","timeseries"),j(G3,"defaults",wl.defaults);var pY=Object.freeze({__proto__:null,CategoryScale:yl,LinearScale:$l,LogarithmicScale:Y3,RadialLinearScale:bo,TimeScale:wl,TimeSeriesScale:G3});const mY=[wU,QH,HK,pY];Ms.register(...mY);function Nn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function sa(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const YT=6048e5,gY=864e5;let vY={};function Lf(){return vY}function Dl(e,t){var o,l,u,c;const n=Lf(),r=(t==null?void 0:t.weekStartsOn)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,i=Nn(e),a=i.getDay(),s=(a<r?7:0)+a-r;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}function Kd(e){return Dl(e,{weekStartsOn:1})}function qT(e){const t=Nn(e),n=t.getFullYear(),r=sa(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Kd(r),a=sa(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const s=Kd(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Q6(e){const t=Nn(e);return t.setHours(0,0,0,0),t}function J6(e){const t=Nn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function bY(e,t){const n=Q6(e),r=Q6(t),i=+n-J6(n),a=+r-J6(r);return Math.round((i-a)/gY)}function yY(e){const t=qT(e),n=sa(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Kd(n)}function $Y(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function xY(e){if(!$Y(e)&&typeof e!="number")return!1;const t=Nn(e);return!isNaN(Number(t))}function wY(e){const t=Nn(e),n=sa(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const DY={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},_Y=(e,t,n)=>{let r;const i=DY[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function hp(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const EY={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},SY={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},CY={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},kY={date:hp({formats:EY,defaultWidth:"full"}),time:hp({formats:SY,defaultWidth:"full"}),dateTime:hp({formats:CY,defaultWidth:"full"})},PY={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},TY=(e,t,n,r)=>PY[e];function eo(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):s;i=e.formattingValues[o]||e.formattingValues[s]}else{const s=e.defaultWidth,o=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[o]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const RY={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},MY={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},AY={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},FY={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},OY={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},BY={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},IY=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},LY={ordinalNumber:IY,era:eo({values:RY,defaultWidth:"wide"}),quarter:eo({values:MY,defaultWidth:"wide",argumentCallback:e=>e-1}),month:eo({values:AY,defaultWidth:"wide"}),day:eo({values:FY,defaultWidth:"wide"}),dayPeriod:eo({values:OY,defaultWidth:"wide",formattingValues:BY,defaultFormattingWidth:"wide"})};function to(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const s=a[0],o=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?jY(o,d=>d.test(s)):NY(o,d=>d.test(s));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(s.length);return{value:u,rest:c}}}function NY(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function jY(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function zY(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;const o=t.slice(i.length);return{value:s,rest:o}}}const VY=/^(\d+)(th|st|nd|rd)?/i,WY=/\d+/i,UY={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},HY={any:[/^b/i,/^(a|c)/i]},KY={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},YY={any:[/1/i,/2/i,/3/i,/4/i]},qY={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},GY={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ZY={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},XY={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},QY={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},JY={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},eq={ordinalNumber:zY({matchPattern:VY,parsePattern:WY,valueCallback:e=>parseInt(e,10)}),era:to({matchPatterns:UY,defaultMatchWidth:"wide",parsePatterns:HY,defaultParseWidth:"any"}),quarter:to({matchPatterns:KY,defaultMatchWidth:"wide",parsePatterns:YY,defaultParseWidth:"any",valueCallback:e=>e+1}),month:to({matchPatterns:qY,defaultMatchWidth:"wide",parsePatterns:GY,defaultParseWidth:"any"}),day:to({matchPatterns:ZY,defaultMatchWidth:"wide",parsePatterns:XY,defaultParseWidth:"any"}),dayPeriod:to({matchPatterns:QY,defaultMatchWidth:"any",parsePatterns:JY,defaultParseWidth:"any"})},tq={code:"en-US",formatDistance:_Y,formatLong:kY,formatRelative:TY,localize:LY,match:eq,options:{weekStartsOn:0,firstWeekContainsDate:1}};function nq(e){const t=Nn(e);return bY(t,wY(t))+1}function rq(e){const t=Nn(e),n=+Kd(t)-+yY(t);return Math.round(n/YT)+1}function GT(e,t){var c,d,f,h;const n=Nn(e),r=n.getFullYear(),i=Lf(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((h=(f=i.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,s=sa(e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const o=Dl(s,t),l=sa(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const u=Dl(l,t);return n.getTime()>=o.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function iq(e,t){var o,l,u,c;const n=Lf(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,i=GT(e,t),a=sa(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Dl(a,t)}function aq(e,t){const n=Nn(e),r=+Dl(n,t)-+iq(n,t);return Math.round(r/YT)+1}function pe(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const kr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return pe(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):pe(n+1,2)},d(e,t){return pe(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return pe(e.getHours()%12||12,t.length)},H(e,t){return pe(e.getHours(),t.length)},m(e,t){return pe(e.getMinutes(),t.length)},s(e,t){return pe(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return pe(i,t.length)}},ka={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ew={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return kr.y(e,t)},Y:function(e,t,n,r){const i=GT(e,r),a=i>0?i:1-i;if(t==="YY"){const s=a%100;return pe(s,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):pe(a,t.length)},R:function(e,t){const n=qT(e);return pe(n,t.length)},u:function(e,t){const n=e.getFullYear();return pe(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return pe(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return pe(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return kr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return pe(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=aq(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):pe(i,t.length)},I:function(e,t,n){const r=rq(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):pe(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):kr.d(e,t)},D:function(e,t,n){const r=nq(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):pe(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return pe(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return pe(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return pe(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=ka.noon:r===0?i=ka.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=ka.evening:r>=12?i=ka.afternoon:r>=4?i=ka.morning:i=ka.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return kr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):kr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):pe(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):pe(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):kr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):kr.s(e,t)},S:function(e,t){return kr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return nw(r);case"XXXX":case"XX":return Mi(r);case"XXXXX":case"XXX":default:return Mi(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return nw(r);case"xxxx":case"xx":return Mi(r);case"xxxxx":case"xxx":default:return Mi(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+tw(r,":");case"OOOO":default:return"GMT"+Mi(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+tw(r,":");case"zzzz":default:return"GMT"+Mi(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return pe(r,t.length)},T:function(e,t,n){const r=e.getTime();return pe(r,t.length)}};function tw(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+pe(a,2)}function nw(e,t){return e%60===0?(e>0?"-":"+")+pe(Math.abs(e)/60,2):Mi(e,t)}function Mi(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=pe(Math.trunc(r/60),2),a=pe(r%60,2);return n+i+t+a}const rw=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},ZT=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},sq=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return rw(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",rw(r,t)).replace("{{time}}",ZT(i,t))},oq={p:ZT,P:sq},lq=/^D+$/,uq=/^Y+$/,cq=["D","DD","YY","YYYY"];function dq(e){return lq.test(e)}function fq(e){return uq.test(e)}function hq(e,t,n){const r=pq(e,t,n);if(console.warn(r),cq.includes(e))throw new RangeError(r)}function pq(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const mq=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,gq=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vq=/^'([^]*?)'?$/,bq=/''/g,yq=/[a-zA-Z]/;function $q(e,t,n){var c,d,f,h;const r=Lf(),i=r.locale??tq,a=r.firstWeekContainsDate??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,s=r.weekStartsOn??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??0,o=Nn(e);if(!xY(o))throw new RangeError("Invalid time value");let l=t.match(gq).map(p=>{const g=p[0];if(g==="p"||g==="P"){const b=oq[g];return b(p,i.formatLong)}return p}).join("").match(mq).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const g=p[0];if(g==="'")return{isToken:!1,value:xq(p)};if(ew[g])return{isToken:!0,value:p};if(g.match(yq))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:p}});i.localize.preprocessor&&(l=i.localize.preprocessor(o,l));const u={firstWeekContainsDate:a,weekStartsOn:s,locale:i};return l.map(p=>{if(!p.isToken)return p.value;const g=p.value;(fq(g)||dq(g))&&hq(g,t,String(e));const b=ew[g[0]];return b(o,g,i.localize,u)}).join("")}function xq(e){const t=e.match(vq);return t?t[1].replace(bq,"'"):e}const XT="label";function iw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function wq(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function QT(e,t){e.labels=t}function JT(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:XT;const r=[];e.datasets=t.map(i=>{const a=e.datasets.find(s=>s[n]===i[n]);return!a||!i.data||r.includes(a)?{...i}:(r.push(a),Object.assign(a,i),a)})}function Dq(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:XT;const n={labels:[],datasets:[]};return QT(n,e.labels),JT(n,e.datasets,t),n}function _q(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:s,data:o,options:l,plugins:u=[],fallbackContent:c,updateMode:d,...f}=e,h=y.useRef(null),p=y.useRef(),g=()=>{h.current&&(p.current=new Ms(h.current,{type:s,data:Dq(o,a),options:l&&{...l},plugins:u}),iw(t,p.current))},b=()=>{iw(t,null),p.current&&(p.current.destroy(),p.current=null)};return y.useEffect(()=>{!i&&p.current&&l&&wq(p.current,l)},[i,l]),y.useEffect(()=>{!i&&p.current&&QT(p.current.config.data,o.labels)},[i,o.labels]),y.useEffect(()=>{!i&&p.current&&o.datasets&&JT(p.current.config.data,o.datasets,a)},[i,o.datasets]),y.useEffect(()=>{p.current&&(i?(b(),setTimeout(g)):p.current.update(d))},[i,l,o.labels,o.datasets,d]),y.useEffect(()=>{p.current&&(b(),setTimeout(g))},[s]),y.useEffect(()=>(g(),()=>b()),[]),_.createElement("canvas",Object.assign({ref:h,role:"img",height:n,width:r},f),c)}const Eq=y.forwardRef(_q);function eR(e,t){return Ms.register(t),y.forwardRef((n,r)=>_.createElement(Eq,Object.assign({},n,{ref:r,type:e})))}const Sq=eR("line",Io),Cq=eR("polarArea",ls);function tR(){return I.jsx(I.Fragment,{children:I.jsx("div",{className:"block bg-white-500 border border-gray-200 rounded-lg shadow",children:I.jsx("div",{children:"No data"})})})}Ms.register(yl,$l,us,Hn,N$);function kq(e){const t={responsive:!0,scales:{x:{grid:{display:!1}},y:{min:0,ticks:{stepSize:1,callback:function(i,a,s){return i+"wps"}},grid:{display:!1}}}},[n,r]=y.useState({labels:[],datasets:[]});return y.useEffect(()=>{(async()=>{const a=e.timeframe.end.toDate(),s=e.timeframe.start.toDate();s.setHours(s.getHours()-12);const o=12,{data:l}=await e.supabase.from("file").select("timestamp").gte("timestamp",s.toISOString()).lte("timestamp",a.toISOString());if(console.log(l),l.length===0)return;const u=new Date(s),d=(+new Date(a)-+u)/o;let f=Array(o).fill(""),h=Array(o).fill(0);for(let p=0;p<o;p++){const g=new Date(u.getTime()+p*d),b=new Date(u.getTime()+(p+1)*d);f[p]=$q(b,"MM/dd - HH:mm"),h[p]=l.filter(v=>{const m=new Date(v.timestamp);return m>=g&&m<b}).length}console.log("LABELS",f),console.log("POINTS",h),r({labels:f,datasets:[{label:"Dataset",data:h,borderColor:"rgb(53, 162, 235)",backgroundColor:"rgba(53, 162, 235, 0.5)"}]})})()},[e.timeframe]),I.jsxs("div",{children:[I.jsx("p",{className:"text-center",children:e.name}),n.datasets.length>0?I.jsx(Sq,{data:n,options:t}):I.jsx(tR,{})]})}function Pq(e){return I.jsx(I.Fragment,{children:I.jsx(sV,{"aria-label":"timeframe",value:e.timeframe,onChange:e.setTimeframe})})}function Iu(e,t){var n=e.length*t;if(e.length===0)throw new Error("quantile requires at least one data point.");if(t<0||t>1)throw new Error("quantiles must be between 0 and 1");return t===1?e[e.length-1]:t===0?e[0]:n%1!==0?e[Math.ceil(n)-1]:e.length%2===0?(e[n-1]+e[n])/2:e[n]}Ms.register(yl,$l,us,Hn,N$);function Tq(e){const t={responsive:!0},[n,r]=y.useState({labels:[],datasets:[]});return y.useEffect(()=>{(async()=>{const a=e.timeframe.end.toDate(),s=e.timeframe.start.toDate();s.setHours(s.getHours()-12);const{data:o}=await e.supabase.from("file").select("contents").gte("timestamp",s.toISOString()).lte("timestamp",a.toISOString());if(console.log("RAWDATA",o),o.length===0)return;let l=o.map(h=>h.contents.length).sort((h,p)=>h-p);console.log("TOP LENGTHS",l);let u=Iu(l,.25),c=Iu(l,.5),d=Iu(l,.75),f=Iu(l,1);console.log("p25: ",u),console.log("p50: ",c),console.log("p75: ",d),console.log("p100: ",f),r({labels:["p25","p50","p75","p100"],datasets:[{data:[u,c,d,f]}]})})()},[e.timeframe]),console.log("length: aaa",n.datasets.length),I.jsxs("div",{className:"flex-grow flex-1",children:[I.jsx("p",{className:"text-center",children:e.name}),n.datasets.length>0?I.jsx(Cq,{data:n,options:t}):I.jsx(tR,{})]})}function Rq(e){const t=hf(),[n,r]=y.useState([]);y.useEffect(()=>{e.session||t("/login")},[e.session]);const i=y.useCallback(async()=>{const{data:a,error:s}=await e.supabase.from("file").select();if(s){console.error(s);return}r(a.map(o=>o))},[e.supabase]);return y.useEffect(()=>{i()},[]),I.jsx(I.Fragment,{children:I.jsxs("div",{className:"flex h-screen",children:[I.jsx(ZP,{currentPage:"Home"}),I.jsx("main",{className:"overflow-y-auto flex flex-col flex-1 mx-5",children:I.jsxs("div",{className:"flex flex-col w-full gap-7 flex-grow",children:[I.jsx("div",{className:"flex flex-row gap-7 flex-grow",children:I.jsx("div",{className:"ml-auto mt-2",children:I.jsx(Pq,{timeframe:e.timeframe,setTimeframe:e.setTimeframe})})}),I.jsxs("div",{className:"flex flex-row gap-7 flex-grow",children:[I.jsxs("div",{className:"w-1/2 flex flex-col",children:[I.jsx("p",{className:"text-center",children:"Active hosts"}),I.jsx("div",{className:"flex-grow block bg-white-500 border border-gray-200 rounded-lg shadow",children:I.jsxs("ol",{children:[I.jsx("li",{children:"Host 1"}),I.jsx("li",{children:"Host 2"})]})})]}),I.jsx("div",{className:"w-1/2 ml-auto",children:I.jsx(kq,{name:"File writes per second",supabase:e.supabase,timeframe:e.timeframe})})]}),I.jsxs("div",{className:"flex flex-row gap-7 mb-5 flex-grow",children:[I.jsx("div",{className:"w-1/2 mr-auto",children:I.jsx(Tq,{name:"File writes size percentiles",supabase:e.supabase,timeframe:e.timeframe})}),I.jsxs("div",{className:"w-1/2 flex flex-col",children:[I.jsx("p",{className:"text-center",children:"Most edited files"}),I.jsx("div",{className:"flex-grow block bg-white-500 border border-gray-200 rounded-lg shadow",children:I.jsxs("ol",{children:[I.jsx("li",{children:"File 1"}),I.jsx("li",{children:"File 2"})]})})]})]})]})})]})})}function Mq(e={}){const{nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}=e,[i,a]=y.useState(!1),s=y.useRef(n);s.current=n;const o=y.useRef(r);return o.current=r,y.useEffect(()=>{const l=document.createElement("script");return l.src="https://accounts.google.com/gsi/client",l.async=!0,l.defer=!0,l.nonce=t,l.onload=()=>{var u;a(!0),(u=s.current)===null||u===void 0||u.call(s)},l.onerror=()=>{var u;a(!1),(u=o.current)===null||u===void 0||u.call(o)},document.body.appendChild(l),()=>{document.body.removeChild(l)}},[t]),i}const nR=y.createContext(null);function Aq({clientId:e,nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r,children:i}){const a=Mq({nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}),s=y.useMemo(()=>({clientId:e,scriptLoadedSuccessfully:a}),[e,a]);return _.createElement(nR.Provider,{value:s},i)}function Fq(){const e=y.useContext(nR);if(!e)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return e}function Oq(e){var t;return(t=e==null?void 0:e.clientId)!==null&&t!==void 0?t:e==null?void 0:e.client_id}const Bq={large:40,medium:32,small:20};function Iq({onSuccess:e,onError:t,useOneTap:n,promptMomentNotification:r,type:i="standard",theme:a="outline",size:s="large",text:o,shape:l,logo_alignment:u,width:c,locale:d,click_listener:f,containerProps:h,...p}){const g=y.useRef(null),{clientId:b,scriptLoadedSuccessfully:v}=Fq(),m=y.useRef(e);m.current=e;const $=y.useRef(t);$.current=t;const w=y.useRef(r);return w.current=r,y.useEffect(()=>{var D,S,k,x,T,P,E,A,R;if(v)return(k=(S=(D=window==null?void 0:window.google)===null||D===void 0?void 0:D.accounts)===null||S===void 0?void 0:S.id)===null||k===void 0||k.initialize({client_id:b,callback:M=>{var z;if(!(M!=null&&M.credential))return(z=$.current)===null||z===void 0?void 0:z.call($);const{credential:O,select_by:C}=M;m.current({credential:O,clientId:Oq(M),select_by:C})},...p}),(P=(T=(x=window==null?void 0:window.google)===null||x===void 0?void 0:x.accounts)===null||T===void 0?void 0:T.id)===null||P===void 0||P.renderButton(g.current,{type:i,theme:a,size:s,text:o,shape:l,logo_alignment:u,width:c,locale:d,click_listener:f}),n&&((R=(A=(E=window==null?void 0:window.google)===null||E===void 0?void 0:E.accounts)===null||A===void 0?void 0:A.id)===null||R===void 0||R.prompt(w.current)),()=>{var M,z,O;n&&((O=(z=(M=window==null?void 0:window.google)===null||M===void 0?void 0:M.accounts)===null||z===void 0?void 0:z.id)===null||O===void 0||O.cancel())}},[b,v,n,i,a,s,o,l,u,c,d]),_.createElement("div",{...h,ref:g,style:{height:Bq[s],...h==null?void 0:h.style}})}function Lq(e){const t=hf();return y.useEffect(()=>{e.supabase.auth.getSession().then(({data:{session:r}})=>{e.setSession(r),console.log("LOGIN SESSION",r)});const{data:{subscription:n}}=e.supabase.auth.onAuthStateChange((r,i)=>{e.setSession(i),console.log("SESSION CHANGE",i)});return()=>n.unsubscribe()},[e.supabase]),y.useEffect(()=>{e.session&&t("/")},[e.session]),I.jsx(I.Fragment,{children:I.jsx("div",{className:"flex flex-col items-center h-screen w-screen",children:I.jsxs("div",{className:"flex flex-row items-center gap-x-8 m-auto",children:[I.jsx("div",{children:I.jsx("h1",{className:"text-4xl text-bold font-sans antialiased text-blue-700 tracking-wide",children:"fs-tracer"})}),I.jsx("div",{className:"block max-w-sm p-6 bg-white border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-700",children:I.jsxs("div",{className:"mx-7 my-5",children:[I.jsx("h5",{className:"mb-2 text-2xl font-bold font-sans antialiased text-gray-900",children:"Hello!"}),I.jsxs("div",{className:"flex flex-row items-center gap-2",children:[I.jsx("span",{className:"font-normal text-gray-700 dark:text-gray-400",children:"Continue with"}),I.jsx("span",{children:I.jsx(Aq,{clientId:"952965459060-nrnrsdoq22mf646vfa72hk410pvdda5q.apps.googleusercontent.com",children:I.jsx(Iq,{onSuccess:async n=>{await e.supabase.auth.signInWithIdToken({provider:"google",token:n.credential})},onError:()=>{console.log("Login Failed")},width:7777,size:"large",type:"icon"})})})]})]})})]})})})}function Nq(e){const t=hf();return y.useEffect(()=>{(async()=>{await e.supabase.auth.signOut()})(),t("/login")},[e.session]),I.jsx(I.Fragment,{})}function jq(e){const t=hf(),[n,r]=y.useState([]),[i,a]=y.useState(0);y.useEffect(()=>{e.session||t("/login")},[e.session]);const s=y.useCallback(async()=>{console.log("FETCHIN FILES");const{data:o,error:l}=await e.supabase.from("file").select().limit(10).offset(i);if(l){console.error(l);return}console.log("FETCHED FILES"),r(o.map(u=>u))},[e.supabase]);return y.useEffect(()=>{console.log("Aaa"),s()},[i]),I.jsx(I.Fragment,{children:I.jsxs("div",{className:"flex h-screen",children:[I.jsx(ZP,{currentPage:"Recent"}),I.jsxs("main",{className:"flex-1 overflow-y-auto",children:[I.jsx("button",{onClick:()=>a(i+1),children:"clickmeforpaginate"}),I.jsx("div",{children:n.map(o=>I.jsx("div",{children:I.jsxs("p",{className:"underline",children:["file: ",o.absolute_path]})},o.id))})]})]})})}function rR(e,t){window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:t}))}const aw=(e,t)=>{const n=JSON.stringify(t);window.localStorage.setItem(e,n),rR(e,n)},zq=e=>{window.localStorage.removeItem(e),rR(e,null)},sw=e=>window.localStorage.getItem(e),Vq=e=>(window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)),Wq=()=>{throw Error("useLocalStorage is a client-only hook")};function Uq(e,t){const n=()=>sw(e),r=y.useSyncExternalStore(Vq,n,Wq),i=y.useCallback(a=>{try{const s=typeof a=="function"?a(JSON.parse(r)):a;s==null?zq(e):aw(e,s)}catch(s){console.warn(s)}},[e,r]);return y.useEffect(()=>{sw(e)===null&&typeof t<"u"&&aw(e,t)},[e,t]),[r?JSON.parse(r):t,i]}const Lu=dB("https://slpoocycjgqsuoedhkbn.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InNscG9vY3ljamdxc3VvZWRoa2JuIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTUyMDU0MjUsImV4cCI6MjAzMDc4MTQyNX0.xZYRTRN65rlms1Hb96IBAQvw3EGtMzUxlGPP5TVey34");function Hq(){const[e,t]=Uq("session",null),n=Rl($f()),[r,i]=y.useState({start:n.subtract({days:7}),end:n});return I.jsx(I.Fragment,{children:I.jsx(jS,{theme:dV,children:I.jsx(_F,{basename:"/fs-tracer-frontend",children:I.jsxs(xF,{children:[I.jsx(Pa,{index:!0,element:I.jsx(Rq,{supabase:Lu,session:e,timeframe:r,setTimeframe:i})}),I.jsx(Pa,{path:"/recent",element:I.jsx(jq,{supabase:Lu,session:e,timeframe:r,setTimeframe:i})}),I.jsx(Pa,{path:"/login",element:I.jsx(Lq,{supabase:Lu,session:e,setSession:t,timeframe:r,setTimeframe:i})}),I.jsx(Pa,{path:"/logout",element:I.jsx(Nq,{supabase:Lu,session:e,setSession:t,timeframe:r,setTimeframe:i})}),I.jsx(Pa,{path:"*",element:I.jsx("p",{children:"notfound"})})]})})})})}pp.createRoot(document.getElementById("root")).render(I.jsx(_.StrictMode,{children:I.jsx(Hq,{})}));export{ow as g};