@argusoft/medplat-useranalytics 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,239 @@
1
+ (function(Bt,Y){typeof exports=="object"&&typeof module<"u"?Y(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],Y):(Bt=typeof globalThis<"u"?globalThis:Bt||self,Y(Bt.UserAnalytics={},Bt.React,Bt.ReactDOM))})(this,function(Bt,Y,En){"use strict";var kI=Object.defineProperty;var OI=(Bt,Y,En)=>Y in Bt?kI(Bt,Y,{enumerable:!0,configurable:!0,writable:!0,value:En}):Bt[Y]=En;var G=(Bt,Y,En)=>OI(Bt,typeof Y!="symbol"?Y+"":Y,En);var Hl,Jr;function Wd(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const N=Wd(Y),Wb=Wd(En);var Bb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ul={exports:{}},_i={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var zd;function zb(){if(zd)return _i;zd=1;var e=Y,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,l,u){var d,f={},h=null,p=null;u!==void 0&&(h=""+u),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(p=l.ref);for(d in l)r.call(l,d)&&!i.hasOwnProperty(d)&&(f[d]=l[d]);if(a&&a.defaultProps)for(d in l=a.defaultProps,l)f[d]===void 0&&(f[d]=l[d]);return{$$typeof:t,type:a,key:h,ref:p,props:f,_owner:s.current}}return _i.Fragment=n,_i.jsx=o,_i.jsxs=o,_i}var wi={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Yd;function Yb(){return Yd||(Yd=1,process.env.NODE_ENV!=="production"&&function(){var e=Y,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=Symbol.iterator,y="@@iterator";function g(A){if(A===null||typeof A!="object")return null;var ne=m&&A[m]||A[y];return typeof ne=="function"?ne:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(A){{for(var ne=arguments.length,ue=new Array(ne>1?ne-1:0),we=1;we<ne;we++)ue[we-1]=arguments[we];S("error",A,ue)}}function S(A,ne,ue){{var we=x.ReactDebugCurrentFrame,Ke=we.getStackAddendum();Ke!==""&&(ne+="%s",ue=ue.concat([Ke]));var at=ue.map(function(Ie){return String(Ie)});at.unshift("Warning: "+ne),Function.prototype.apply.call(console[A],console,at)}}var T=!1,_=!1,C=!1,M=!1,k=!1,R;R=Symbol.for("react.module.reference");function b(A){return!!(typeof A=="string"||typeof A=="function"||A===r||A===i||k||A===s||A===u||A===d||M||A===p||T||_||C||typeof A=="object"&&A!==null&&(A.$$typeof===h||A.$$typeof===f||A.$$typeof===o||A.$$typeof===a||A.$$typeof===l||A.$$typeof===R||A.getModuleId!==void 0))}function E(A,ne,ue){var we=A.displayName;if(we)return we;var Ke=ne.displayName||ne.name||"";return Ke!==""?ue+"("+Ke+")":ue}function I(A){return A.displayName||"Context"}function W(A){if(A==null)return null;if(typeof A.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof A=="function")return A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case s:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof A=="object")switch(A.$$typeof){case a:var ne=A;return I(ne)+".Consumer";case o:var ue=A;return I(ue._context)+".Provider";case l:return E(A,A.render,"ForwardRef");case f:var we=A.displayName||null;return we!==null?we:W(A.type)||"Memo";case h:{var Ke=A,at=Ke._payload,Ie=Ke._init;try{return W(Ie(at))}catch{return null}}}return null}var j=Object.assign,O=0,D,L,F,z,$,H,U;function K(){}K.__reactDisabledLog=!0;function J(){{if(O===0){D=console.log,L=console.info,F=console.warn,z=console.error,$=console.group,H=console.groupCollapsed,U=console.groupEnd;var A={configurable:!0,enumerable:!0,value:K,writable:!0};Object.defineProperties(console,{info:A,log:A,warn:A,error:A,group:A,groupCollapsed:A,groupEnd:A})}O++}}function ie(){{if(O--,O===0){var A={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},A,{value:D}),info:j({},A,{value:L}),warn:j({},A,{value:F}),error:j({},A,{value:z}),group:j({},A,{value:$}),groupCollapsed:j({},A,{value:H}),groupEnd:j({},A,{value:U})})}O<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ae=x.ReactCurrentDispatcher,ce;function ge(A,ne,ue){{if(ce===void 0)try{throw Error()}catch(Ke){var we=Ke.stack.trim().match(/\n( *(at )?)/);ce=we&&we[1]||""}return`
18
+ `+ce+A}}var de=!1,re;{var fe=typeof WeakMap=="function"?WeakMap:Map;re=new fe}function Q(A,ne){if(!A||de)return"";{var ue=re.get(A);if(ue!==void 0)return ue}var we;de=!0;var Ke=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var at;at=ae.current,ae.current=null,J();try{if(ne){var Ie=function(){throw Error()};if(Object.defineProperty(Ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ie,[])}catch(cn){we=cn}Reflect.construct(A,[],Ie)}else{try{Ie.call()}catch(cn){we=cn}A.call(Ie.prototype)}}else{try{throw Error()}catch(cn){we=cn}A()}}catch(cn){if(cn&&we&&typeof cn.stack=="string"){for(var Ee=cn.stack.split(`
19
+ `),tn=we.stack.split(`
20
+ `),Rt=Ee.length-1,It=tn.length-1;Rt>=1&&It>=0&&Ee[Rt]!==tn[It];)It--;for(;Rt>=1&&It>=0;Rt--,It--)if(Ee[Rt]!==tn[It]){if(Rt!==1||It!==1)do if(Rt--,It--,It<0||Ee[Rt]!==tn[It]){var Mn=`
21
+ `+Ee[Rt].replace(" at new "," at ");return A.displayName&&Mn.includes("<anonymous>")&&(Mn=Mn.replace("<anonymous>",A.displayName)),typeof A=="function"&&re.set(A,Mn),Mn}while(Rt>=1&&It>=0);break}}}finally{de=!1,ae.current=at,ie(),Error.prepareStackTrace=Ke}var xi=A?A.displayName||A.name:"",Cs=xi?ge(xi):"";return typeof A=="function"&&re.set(A,Cs),Cs}function xe(A,ne,ue){return Q(A,!1)}function V(A){var ne=A.prototype;return!!(ne&&ne.isReactComponent)}function Te(A,ne,ue){if(A==null)return"";if(typeof A=="function")return Q(A,V(A));if(typeof A=="string")return ge(A);switch(A){case u:return ge("Suspense");case d:return ge("SuspenseList")}if(typeof A=="object")switch(A.$$typeof){case l:return xe(A.render);case f:return Te(A.type,ne,ue);case h:{var we=A,Ke=we._payload,at=we._init;try{return Te(at(Ke),ne,ue)}catch{}}}return""}var et=Object.prototype.hasOwnProperty,gt={},P=x.ReactDebugCurrentFrame;function B(A){if(A){var ne=A._owner,ue=Te(A.type,A._source,ne?ne.type:null);P.setExtraStackFrame(ue)}else P.setExtraStackFrame(null)}function q(A,ne,ue,we,Ke){{var at=Function.call.bind(et);for(var Ie in A)if(at(A,Ie)){var Ee=void 0;try{if(typeof A[Ie]!="function"){var tn=Error((we||"React class")+": "+ue+" type `"+Ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof A[Ie]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw tn.name="Invariant Violation",tn}Ee=A[Ie](ne,Ie,we,ue,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Rt){Ee=Rt}Ee&&!(Ee instanceof Error)&&(B(Ke),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",we||"React class",ue,Ie,typeof Ee),B(null)),Ee instanceof Error&&!(Ee.message in gt)&&(gt[Ee.message]=!0,B(Ke),w("Failed %s type: %s",ue,Ee.message),B(null))}}}var ee=Array.isArray;function X(A){return ee(A)}function te(A){{var ne=typeof Symbol=="function"&&Symbol.toStringTag,ue=ne&&A[Symbol.toStringTag]||A.constructor.name||"Object";return ue}}function he(A){try{return _e(A),!1}catch{return!0}}function _e(A){return""+A}function ot(A){if(he(A))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",te(A)),_e(A)}var Xe=x.ReactCurrentOwner,Jt={key:!0,ref:!0,__self:!0,__source:!0},Wn,ln,Pe;Pe={};function fr(A){if(et.call(A,"ref")){var ne=Object.getOwnPropertyDescriptor(A,"ref").get;if(ne&&ne.isReactWarning)return!1}return A.ref!==void 0}function hr(A){if(et.call(A,"key")){var ne=Object.getOwnPropertyDescriptor(A,"key").get;if(ne&&ne.isReactWarning)return!1}return A.key!==void 0}function yi(A,ne){if(typeof A.ref=="string"&&Xe.current&&ne&&Xe.current.stateNode!==ne){var ue=W(Xe.current.type);Pe[ue]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',W(Xe.current.type),A.ref),Pe[ue]=!0)}}function ye(A,ne){{var ue=function(){Wn||(Wn=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ne))};ue.isReactWarning=!0,Object.defineProperty(A,"key",{get:ue,configurable:!0})}}function Ae(A,ne){{var ue=function(){ln||(ln=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ne))};ue.isReactWarning=!0,Object.defineProperty(A,"ref",{get:ue,configurable:!0})}}var Wt=function(A,ne,ue,we,Ke,at,Ie){var Ee={$$typeof:t,type:A,key:ne,ref:ue,props:Ie,_owner:at};return Ee._store={},Object.defineProperty(Ee._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ee,"_self",{configurable:!1,enumerable:!1,writable:!1,value:we}),Object.defineProperty(Ee,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ke}),Object.freeze&&(Object.freeze(Ee.props),Object.freeze(Ee)),Ee};function es(A,ne,ue,we,Ke){{var at,Ie={},Ee=null,tn=null;ue!==void 0&&(ot(ue),Ee=""+ue),hr(ne)&&(ot(ne.key),Ee=""+ne.key),fr(ne)&&(tn=ne.ref,yi(ne,Ke));for(at in ne)et.call(ne,at)&&!Jt.hasOwnProperty(at)&&(Ie[at]=ne[at]);if(A&&A.defaultProps){var Rt=A.defaultProps;for(at in Rt)Ie[at]===void 0&&(Ie[at]=Rt[at])}if(Ee||tn){var It=typeof A=="function"?A.displayName||A.name||"Unknown":A;Ee&&ye(Ie,It),tn&&Ae(Ie,It)}return Wt(A,Ee,tn,Ke,we,Xe.current,Ie)}}var bi=x.ReactCurrentOwner,Ab=x.ReactDebugCurrentFrame;function vi(A){if(A){var ne=A._owner,ue=Te(A.type,A._source,ne?ne.type:null);Ab.setExtraStackFrame(ue)}else Ab.setExtraStackFrame(null)}var Fd;Fd=!1;function $d(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function Ib(){{if(bi.current){var A=W(bi.current.type);if(A)return`
22
+
23
+ Check the render method of \``+A+"`."}return""}}function gI(A){return""}var Nb={};function mI(A){{var ne=Ib();if(!ne){var ue=typeof A=="string"?A:A.displayName||A.name;ue&&(ne=`
24
+
25
+ Check the top-level render call using <`+ue+">.")}return ne}}function jb(A,ne){{if(!A._store||A._store.validated||A.key!=null)return;A._store.validated=!0;var ue=mI(ne);if(Nb[ue])return;Nb[ue]=!0;var we="";A&&A._owner&&A._owner!==bi.current&&(we=" It was passed a child from "+W(A._owner.type)+"."),vi(A),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ue,we),vi(null)}}function Fb(A,ne){{if(typeof A!="object")return;if(X(A))for(var ue=0;ue<A.length;ue++){var we=A[ue];$d(we)&&jb(we,ne)}else if($d(A))A._store&&(A._store.validated=!0);else if(A){var Ke=g(A);if(typeof Ke=="function"&&Ke!==A.entries)for(var at=Ke.call(A),Ie;!(Ie=at.next()).done;)$d(Ie.value)&&jb(Ie.value,ne)}}}function yI(A){{var ne=A.type;if(ne==null||typeof ne=="string")return;var ue;if(typeof ne=="function")ue=ne.propTypes;else if(typeof ne=="object"&&(ne.$$typeof===l||ne.$$typeof===f))ue=ne.propTypes;else return;if(ue){var we=W(ne);q(ue,A.props,"prop",we,A)}else if(ne.PropTypes!==void 0&&!Fd){Fd=!0;var Ke=W(ne);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ke||"Unknown")}typeof ne.getDefaultProps=="function"&&!ne.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function bI(A){{for(var ne=Object.keys(A.props),ue=0;ue<ne.length;ue++){var we=ne[ue];if(we!=="children"&&we!=="key"){vi(A),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",we),vi(null);break}}A.ref!==null&&(vi(A),w("Invalid attribute `ref` supplied to `React.Fragment`."),vi(null))}}var $b={};function Lb(A,ne,ue,we,Ke,at){{var Ie=b(A);if(!Ie){var Ee="";(A===void 0||typeof A=="object"&&A!==null&&Object.keys(A).length===0)&&(Ee+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var tn=gI();tn?Ee+=tn:Ee+=Ib();var Rt;A===null?Rt="null":X(A)?Rt="array":A!==void 0&&A.$$typeof===t?(Rt="<"+(W(A.type)||"Unknown")+" />",Ee=" Did you accidentally export a JSX literal instead of a component?"):Rt=typeof A,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Rt,Ee)}var It=es(A,ne,ue,Ke,at);if(It==null)return It;if(Ie){var Mn=ne.children;if(Mn!==void 0)if(we)if(X(Mn)){for(var xi=0;xi<Mn.length;xi++)Fb(Mn[xi],A);Object.freeze&&Object.freeze(Mn)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Fb(Mn,A)}if(et.call(ne,"key")){var Cs=W(A),cn=Object.keys(ne).filter(function(TI){return TI!=="key"}),Ld=cn.length>0?"{key: someKey, "+cn.join(": ..., ")+": ...}":"{key: someKey}";if(!$b[Cs+Ld]){var SI=cn.length>0?"{"+cn.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,Ld,Cs,SI,Cs),$b[Cs+Ld]=!0}}return A===r?bI(It):yI(It),It}}function vI(A,ne,ue){return Lb(A,ne,ue,!0)}function xI(A,ne,ue){return Lb(A,ne,ue,!1)}var _I=xI,wI=vI;wi.Fragment=r,wi.jsx=_I,wi.jsxs=wI}()),wi}process.env.NODE_ENV==="production"?Ul.exports=zb():Ul.exports=Yb();var v=Ul.exports,ql,Ho=En;if(process.env.NODE_ENV==="production")ql=Ho.createRoot,Ho.hydrateRoot;else{var Vd=Ho.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ql=function(e,t){Vd.usingClientEntryPoint=!0;try{return Ho.createRoot(e,t)}finally{Vd.usingClientEntryPoint=!1}}}const Vb="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20role='img'%20class='iconify%20iconify--logos'%20width='35.93'%20height='32'%20preserveAspectRatio='xMidYMid%20meet'%20viewBox='0%200%20256%20228'%3e%3cpath%20fill='%2300D8FF'%20d='M210.483%2073.824a171.49%20171.49%200%200%200-8.24-2.597c.465-1.9.893-3.777%201.273-5.621c6.238-30.281%202.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254%2019.526a171.23%20171.23%200%200%200-6.375%205.848a155.866%20155.866%200%200%200-4.241-3.917C100.759%203.829%2077.587-4.822%2063.673%203.233C50.33%2010.957%2046.379%2033.89%2051.995%2062.588a170.974%20170.974%200%200%200%201.892%208.48c-3.28.932-6.445%201.924-9.474%202.98C17.309%2083.498%200%2098.307%200%20113.668c0%2015.865%2018.582%2031.778%2046.812%2041.427a145.52%20145.52%200%200%200%206.921%202.165a167.467%20167.467%200%200%200-2.01%209.138c-5.354%2028.2-1.173%2050.591%2012.134%2058.266c13.744%207.926%2036.812-.22%2059.273-19.855a145.567%20145.567%200%200%200%205.342-4.923a168.064%20168.064%200%200%200%206.92%206.314c21.758%2018.722%2043.246%2026.282%2056.54%2018.586c13.731-7.949%2018.194-32.003%2012.4-61.268a145.016%20145.016%200%200%200-1.535-6.842c1.62-.48%203.21-.974%204.76-1.488c29.348-9.723%2048.443-25.443%2048.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365%2070.984c-1.4.463-2.836.91-4.3%201.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11%209.31-21.767%2012.459-31.957c2.619.758%205.16%201.557%207.61%202.4c23.69%208.156%2038.14%2020.213%2038.14%2029.504c0%209.896-15.606%2022.743-40.946%2031.14Zm-10.514%2020.834c2.562%2012.94%202.927%2024.64%201.23%2033.787c-1.524%208.219-4.59%2013.698-8.382%2015.893c-8.067%204.67-25.32-1.4-43.927-17.412a156.726%20156.726%200%200%201-6.437-5.87c7.214-7.889%2014.423-17.06%2021.459-27.246c12.376-1.098%2024.068-2.894%2034.671-5.345a134.17%20134.17%200%200%201%201.386%206.193ZM87.276%20214.515c-7.882%202.783-14.16%202.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923%20156.923%200%200%201%201.869-8.499c10.486%202.32%2022.093%203.988%2034.498%204.994c7.084%209.967%2014.501%2019.128%2021.976%2027.15a134.668%20134.668%200%200%201-4.877%204.492c-9.933%208.682-19.886%2014.842-28.658%2017.94ZM50.35%20144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322%2013.897-21.212%2037.076-29.293c2.813-.98%205.757-1.905%208.812-2.773c3.204%2010.42%207.406%2021.315%2012.477%2032.332c-5.137%2011.18-9.399%2022.249-12.634%2032.792a134.718%20134.718%200%200%201-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134%206.425-47.789c8.564-4.958%2027.502%202.111%2047.463%2019.835a144.318%20144.318%200%200%201%203.841%203.545c-7.438%207.987-14.787%2017.08-21.808%2026.988c-12.04%201.116-23.565%202.908-34.161%205.309a160.342%20160.342%200%200%201-1.76-7.887Zm110.427%2027.268a347.8%20347.8%200%200%200-7.785-12.803c8.168%201.033%2015.994%202.404%2023.343%204.08c-2.206%207.072-4.956%2014.465-8.193%2022.045a381.151%20381.151%200%200%200-7.365-13.322Zm-45.032-43.861c5.044%205.465%2010.096%2011.566%2015.065%2018.186a322.04%20322.04%200%200%200-30.257-.006c4.974-6.559%2010.069-12.652%2015.192-18.18ZM82.802%2087.83a323.167%20323.167%200%200%200-7.227%2013.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634%2015.093-2.97%2023.209-3.984a321.524%20321.524%200%200%200-7.848%2012.897Zm8.081%2065.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3%205.045-14.885%208.298-22.6a321.187%20321.187%200%200%200%207.257%2013.246c2.594%204.48%205.28%208.868%208.038%2013.147Zm37.542%2031.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192%209.899.29%2014.978.29c5.218%200%2010.376-.117%2015.453-.343c-4.985%206.774-10.018%2012.97-15.028%2018.486Zm52.198-57.817c3.422%207.8%206.306%2015.345%208.596%2022.52c-7.422%201.694-15.436%203.058-23.88%204.071a382.417%20382.417%200%200%200%207.859-13.026a347.403%20347.403%200%200%200%207.425-13.565Zm-16.898%208.101a358.557%20358.557%200%200%201-12.281%2019.815a329.4%20329.4%200%200%201-23.444.823c-7.967%200-15.716-.248-23.178-.732a310.202%20310.202%200%200%201-12.513-19.846h.001a307.41%20307.41%200%200%201-10.923-20.627a310.278%20310.278%200%200%201%2010.89-20.637l-.001.001a307.318%20307.318%200%200%201%2012.413-19.761c7.613-.576%2015.42-.876%2023.31-.876H128c7.926%200%2015.743.303%2023.354.883a329.357%20329.357%200%200%201%2012.335%2019.695a358.489%20358.489%200%200%201%2011.036%2020.54a329.472%20329.472%200%200%201-11%2020.722Zm22.56-122.124c8.572%204.944%2011.906%2024.881%206.52%2051.026c-.344%201.668-.73%203.367-1.15%205.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789%20160.789%200%200%201%205.888-5.4c18.9-16.447%2036.564-22.941%2044.612-18.3ZM128%2090.808c12.625%200%2022.86%2010.235%2022.86%2022.86s-10.235%2022.86-22.86%2022.86s-22.86-10.235-22.86-22.86s10.235-22.86%2022.86-22.86Z'%3e%3c/path%3e%3c/svg%3e",Hb="/vite.svg";function Ub(){const[e,t]=Y.useState(0);return v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:[v.jsx("a",{href:"https://vite.dev",target:"_blank",children:v.jsx("img",{src:Hb,className:"logo",alt:"Vite logo"})}),v.jsx("a",{href:"https://react.dev",target:"_blank",children:v.jsx("img",{src:Vb,className:"logo react",alt:"React logo"})})]}),v.jsx("h1",{children:"Vite + React"}),v.jsxs("div",{className:"card",children:[v.jsxs("button",{onClick:()=>t(n=>n+1),children:["count is ",e]}),v.jsxs("p",{children:["Edit ",v.jsx("code",{children:"src/App.jsx"})," and save to test HMR"]})]}),v.jsx("p",{className:"read-the-docs",children:"Click on the Vite and React logos to learn more"})]})}const Yt=[];for(let e=0;e<256;++e)Yt.push((e+256).toString(16).slice(1));function qb(e,t=0){return(Yt[e[t+0]]+Yt[e[t+1]]+Yt[e[t+2]]+Yt[e[t+3]]+"-"+Yt[e[t+4]]+Yt[e[t+5]]+"-"+Yt[e[t+6]]+Yt[e[t+7]]+"-"+Yt[e[t+8]]+Yt[e[t+9]]+"-"+Yt[e[t+10]]+Yt[e[t+11]]+Yt[e[t+12]]+Yt[e[t+13]]+Yt[e[t+14]]+Yt[e[t+15]]).toLowerCase()}let Gl;const Gb=new Uint8Array(16);function Xb(){if(!Gl){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Gl=crypto.getRandomValues.bind(crypto)}return Gl(Gb)}const Hd={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Kb(e,t,n){if(Hd.randomUUID&&!t&&!e)return Hd.randomUUID();e=e||{};const r=e.random||(e.rng||Xb)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,qb(r)}class Ud{static startSession(){const t=Kb(),n=Date.now();return localStorage.setItem("session_id",t),localStorage.setItem("session_start_time",n),{session_id:t,session_start_time:n}}static getSessionId(){return localStorage.getItem("session_id")}static endSession(){const t=localStorage.getItem("session_id"),n=parseInt(localStorage.getItem("session_start_time"),10),r=Date.now(),s=r-n;return localStorage.removeItem("session_id"),localStorage.removeItem("session_start_time"),{session_id:t,session_start_time:n,session_end_time:r,duration:s}}}var Xl={exports:{}},Uo={exports:{}},ze={};/** @license React v16.13.1
31
+ * react-is.production.min.js
32
+ *
33
+ * Copyright (c) Facebook, Inc. and its affiliates.
34
+ *
35
+ * This source code is licensed under the MIT license found in the
36
+ * LICENSE file in the root directory of this source tree.
37
+ */var qd;function Zb(){if(qd)return ze;qd=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(_){if(typeof _=="object"&&_!==null){var C=_.$$typeof;switch(C){case t:switch(_=_.type,_){case l:case u:case r:case i:case s:case f:return _;default:switch(_=_&&_.$$typeof,_){case a:case d:case m:case p:case o:return _;default:return C}}case n:return C}}}function T(_){return S(_)===u}return ze.AsyncMode=l,ze.ConcurrentMode=u,ze.ContextConsumer=a,ze.ContextProvider=o,ze.Element=t,ze.ForwardRef=d,ze.Fragment=r,ze.Lazy=m,ze.Memo=p,ze.Portal=n,ze.Profiler=i,ze.StrictMode=s,ze.Suspense=f,ze.isAsyncMode=function(_){return T(_)||S(_)===l},ze.isConcurrentMode=T,ze.isContextConsumer=function(_){return S(_)===a},ze.isContextProvider=function(_){return S(_)===o},ze.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},ze.isForwardRef=function(_){return S(_)===d},ze.isFragment=function(_){return S(_)===r},ze.isLazy=function(_){return S(_)===m},ze.isMemo=function(_){return S(_)===p},ze.isPortal=function(_){return S(_)===n},ze.isProfiler=function(_){return S(_)===i},ze.isStrictMode=function(_){return S(_)===s},ze.isSuspense=function(_){return S(_)===f},ze.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===u||_===i||_===s||_===f||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===m||_.$$typeof===p||_.$$typeof===o||_.$$typeof===a||_.$$typeof===d||_.$$typeof===g||_.$$typeof===x||_.$$typeof===w||_.$$typeof===y)},ze.typeOf=S,ze}var Ye={};/** @license React v16.13.1
38
+ * react-is.development.js
39
+ *
40
+ * Copyright (c) Facebook, Inc. and its affiliates.
41
+ *
42
+ * This source code is licensed under the MIT license found in the
43
+ * LICENSE file in the root directory of this source tree.
44
+ */var Gd;function Qb(){return Gd||(Gd=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(Q){return typeof Q=="string"||typeof Q=="function"||Q===r||Q===u||Q===i||Q===s||Q===f||Q===h||typeof Q=="object"&&Q!==null&&(Q.$$typeof===m||Q.$$typeof===p||Q.$$typeof===o||Q.$$typeof===a||Q.$$typeof===d||Q.$$typeof===g||Q.$$typeof===x||Q.$$typeof===w||Q.$$typeof===y)}function T(Q){if(typeof Q=="object"&&Q!==null){var xe=Q.$$typeof;switch(xe){case t:var V=Q.type;switch(V){case l:case u:case r:case i:case s:case f:return V;default:var Te=V&&V.$$typeof;switch(Te){case a:case d:case m:case p:case o:return Te;default:return xe}}case n:return xe}}}var _=l,C=u,M=a,k=o,R=t,b=d,E=r,I=m,W=p,j=n,O=i,D=s,L=f,F=!1;function z(Q){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(Q)||T(Q)===l}function $(Q){return T(Q)===u}function H(Q){return T(Q)===a}function U(Q){return T(Q)===o}function K(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===t}function J(Q){return T(Q)===d}function ie(Q){return T(Q)===r}function ae(Q){return T(Q)===m}function ce(Q){return T(Q)===p}function ge(Q){return T(Q)===n}function de(Q){return T(Q)===i}function re(Q){return T(Q)===s}function fe(Q){return T(Q)===f}Ye.AsyncMode=_,Ye.ConcurrentMode=C,Ye.ContextConsumer=M,Ye.ContextProvider=k,Ye.Element=R,Ye.ForwardRef=b,Ye.Fragment=E,Ye.Lazy=I,Ye.Memo=W,Ye.Portal=j,Ye.Profiler=O,Ye.StrictMode=D,Ye.Suspense=L,Ye.isAsyncMode=z,Ye.isConcurrentMode=$,Ye.isContextConsumer=H,Ye.isContextProvider=U,Ye.isElement=K,Ye.isForwardRef=J,Ye.isFragment=ie,Ye.isLazy=ae,Ye.isMemo=ce,Ye.isPortal=ge,Ye.isProfiler=de,Ye.isStrictMode=re,Ye.isSuspense=fe,Ye.isValidElementType=S,Ye.typeOf=T}()),Ye}var Xd;function Kl(){return Xd||(Xd=1,process.env.NODE_ENV==="production"?Uo.exports=Zb():Uo.exports=Qb()),Uo.exports}/*
45
+ object-assign
46
+ (c) Sindre Sorhus
47
+ @license MIT
48
+ */var Zl,Kd;function Jb(){if(Kd)return Zl;Kd=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},a=0;a<10;a++)o["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(o).map(function(d){return o[d]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Zl=s()?Object.assign:function(i,o){for(var a,l=r(i),u,d=1;d<arguments.length;d++){a=Object(arguments[d]);for(var f in a)t.call(a,f)&&(l[f]=a[f]);if(e){u=e(a);for(var h=0;h<u.length;h++)n.call(a,u[h])&&(l[u[h]]=a[u[h]])}}return l},Zl}var Ql,Zd;function Jl(){if(Zd)return Ql;Zd=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ql=e,Ql}var ec,Qd;function Jd(){return Qd||(Qd=1,ec=Function.call.bind(Object.prototype.hasOwnProperty)),ec}var tc,ef;function e0(){if(ef)return tc;ef=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Jl(),n={},r=Jd();e=function(i){var o="Warning: "+i;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function s(i,o,a,l,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var f;try{if(typeof i[d]!="function"){var h=Error((l||"React class")+": "+a+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=i[d](o,d,l,a,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+a+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var p=u?u():"";e("Failed "+a+" type: "+f.message+(p??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},tc=s,tc}var nc,tf;function t0(){if(tf)return nc;tf=1;var e=Kl(),t=Jb(),n=Jl(),r=Jd(),s=e0(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return nc=function(a,l){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f($){var H=$&&(u&&$[u]||$[d]);if(typeof H=="function")return H}var h="<<anonymous>>",p={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:w(),arrayOf:S,element:T(),elementType:_(),instanceOf:C,node:b(),objectOf:k,oneOf:M,oneOfType:R,shape:I,exact:W};function m($,H){return $===H?$!==0||1/$===1/H:$!==$&&H!==H}function y($,H){this.message=$,this.data=H&&typeof H=="object"?H:{},this.stack=""}y.prototype=Error.prototype;function g($){if(process.env.NODE_ENV!=="production")var H={},U=0;function K(ie,ae,ce,ge,de,re,fe){if(ge=ge||h,re=re||ce,fe!==n){if(l){var Q=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Q.name="Invariant Violation",Q}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var xe=ge+":"+ce;!H[xe]&&U<3&&(i("You are manually calling a React.PropTypes validation function for the `"+re+"` prop on `"+ge+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),H[xe]=!0,U++)}}return ae[ce]==null?ie?ae[ce]===null?new y("The "+de+" `"+re+"` is marked as required "+("in `"+ge+"`, but its value is `null`.")):new y("The "+de+" `"+re+"` is marked as required in "+("`"+ge+"`, but its value is `undefined`.")):null:$(ae,ce,ge,de,re)}var J=K.bind(null,!1);return J.isRequired=K.bind(null,!0),J}function x($){function H(U,K,J,ie,ae,ce){var ge=U[K],de=D(ge);if(de!==$){var re=L(ge);return new y("Invalid "+ie+" `"+ae+"` of type "+("`"+re+"` supplied to `"+J+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return g(H)}function w(){return g(o)}function S($){function H(U,K,J,ie,ae){if(typeof $!="function")return new y("Property `"+ae+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var ce=U[K];if(!Array.isArray(ce)){var ge=D(ce);return new y("Invalid "+ie+" `"+ae+"` of type "+("`"+ge+"` supplied to `"+J+"`, expected an array."))}for(var de=0;de<ce.length;de++){var re=$(ce,de,J,ie,ae+"["+de+"]",n);if(re instanceof Error)return re}return null}return g(H)}function T(){function $(H,U,K,J,ie){var ae=H[U];if(!a(ae)){var ce=D(ae);return new y("Invalid "+J+" `"+ie+"` of type "+("`"+ce+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return g($)}function _(){function $(H,U,K,J,ie){var ae=H[U];if(!e.isValidElementType(ae)){var ce=D(ae);return new y("Invalid "+J+" `"+ie+"` of type "+("`"+ce+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return g($)}function C($){function H(U,K,J,ie,ae){if(!(U[K]instanceof $)){var ce=$.name||h,ge=z(U[K]);return new y("Invalid "+ie+" `"+ae+"` of type "+("`"+ge+"` supplied to `"+J+"`, expected ")+("instance of `"+ce+"`."))}return null}return g(H)}function M($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),o;function H(U,K,J,ie,ae){for(var ce=U[K],ge=0;ge<$.length;ge++)if(m(ce,$[ge]))return null;var de=JSON.stringify($,function(fe,Q){var xe=L(Q);return xe==="symbol"?String(Q):Q});return new y("Invalid "+ie+" `"+ae+"` of value `"+String(ce)+"` "+("supplied to `"+J+"`, expected one of "+de+"."))}return g(H)}function k($){function H(U,K,J,ie,ae){if(typeof $!="function")return new y("Property `"+ae+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var ce=U[K],ge=D(ce);if(ge!=="object")return new y("Invalid "+ie+" `"+ae+"` of type "+("`"+ge+"` supplied to `"+J+"`, expected an object."));for(var de in ce)if(r(ce,de)){var re=$(ce,de,J,ie,ae+"."+de,n);if(re instanceof Error)return re}return null}return g(H)}function R($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var H=0;H<$.length;H++){var U=$[H];if(typeof U!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+F(U)+" at index "+H+"."),o}function K(J,ie,ae,ce,ge){for(var de=[],re=0;re<$.length;re++){var fe=$[re],Q=fe(J,ie,ae,ce,ge,n);if(Q==null)return null;Q.data&&r(Q.data,"expectedType")&&de.push(Q.data.expectedType)}var xe=de.length>0?", expected one of type ["+de.join(", ")+"]":"";return new y("Invalid "+ce+" `"+ge+"` supplied to "+("`"+ae+"`"+xe+"."))}return g(K)}function b(){function $(H,U,K,J,ie){return j(H[U])?null:new y("Invalid "+J+" `"+ie+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return g($)}function E($,H,U,K,J){return new y(($||"React class")+": "+H+" type `"+U+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function I($){function H(U,K,J,ie,ae){var ce=U[K],ge=D(ce);if(ge!=="object")return new y("Invalid "+ie+" `"+ae+"` of type `"+ge+"` "+("supplied to `"+J+"`, expected `object`."));for(var de in $){var re=$[de];if(typeof re!="function")return E(J,ie,ae,de,L(re));var fe=re(ce,de,J,ie,ae+"."+de,n);if(fe)return fe}return null}return g(H)}function W($){function H(U,K,J,ie,ae){var ce=U[K],ge=D(ce);if(ge!=="object")return new y("Invalid "+ie+" `"+ae+"` of type `"+ge+"` "+("supplied to `"+J+"`, expected `object`."));var de=t({},U[K],$);for(var re in de){var fe=$[re];if(r($,re)&&typeof fe!="function")return E(J,ie,ae,re,L(fe));if(!fe)return new y("Invalid "+ie+" `"+ae+"` key `"+re+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(U[K],null," ")+`
49
+ Valid keys: `+JSON.stringify(Object.keys($),null," "));var Q=fe(ce,re,J,ie,ae+"."+re,n);if(Q)return Q}return null}return g(H)}function j($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(j);if($===null||a($))return!0;var H=f($);if(H){var U=H.call($),K;if(H!==$.entries){for(;!(K=U.next()).done;)if(!j(K.value))return!1}else for(;!(K=U.next()).done;){var J=K.value;if(J&&!j(J[1]))return!1}}else return!1;return!0;default:return!1}}function O($,H){return $==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function D($){var H=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":O(H,$)?"symbol":H}function L($){if(typeof $>"u"||$===null)return""+$;var H=D($);if(H==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return H}function F($){var H=L($);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function z($){return!$.constructor||!$.constructor.name?h:$.constructor.name}return p.checkPropTypes=s,p.resetWarningCache=s.resetWarningCache,p.PropTypes=p,p},nc}var rc,nf;function n0(){if(nf)return rc;nf=1;var e=Jl();function t(){}function n(){}return n.resetWarningCache=t,rc=function(){function r(o,a,l,u,d,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function s(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},rc}if(process.env.NODE_ENV!=="production"){var r0=Kl(),s0=!0;Xl.exports=t0()(r0.isElement,s0)}else Xl.exports=n0()();var i0=Xl.exports;const c=Bd(i0);function o0(){return{trackError(e,t=null){const n=new Date().toISOString(),r=window.location.pathname,s={user_id:e==null?void 0:e.user_id,error_time:n,error_details:e,page_url:r};return typeof t=="function"&&t(s),s}}}const a0=(e,t,n,r=12e4,s,i,o,a)=>{const l=window.location.pathname;Y.useEffect(()=>{let u,d=null,f=null;const h=()=>{const m=new Date;if(d){const y=(m-d)/1e3;f=m;let w={code:"insert_into_analytics",parameters:{sessionId:t,userId:e,eventName:n,eventData:JSON.stringify({interacted_page:l,start_time:d,end_time:f,duration:y}),device:i,deviceType:o,pageSource:window.location.pathname}};a(w),d=null}clearTimeout(u),d=null,u=setTimeout(()=>{d=new Date},r)},p=["mousemove","mousedown","keydown","scroll","touchstart"];return p.forEach(m=>window.addEventListener(m,h)),h(),()=>{p.forEach(m=>window.removeEventListener(m,h)),clearTimeout(u)}},[r])};function l0(){let e=[];return{trackSearch(t,n=null){const{searchTerm:r,results_count:s,search_type:i}=t,o=window.location.pathname,a=new Date().toISOString();if(!r.trim()){console.warn("Search term is empty or invalid.");return}let l=null;if(e.length>0){const u=e[e.length-1],d=new Date(u.search_time);l=(new Date(a)-d)/1e3}return t={search_time:a,results_count:s,search_type:i,interacted_page:o,search_query:r.trim(),time_since_last_search:l},e.push(t),typeof n=="function"&&n(t),t}}}const c0=e=>{let t=e==null?void 0:e.form,n=(e==null?void 0:e.submit)||!1;if(e.form&&delete e.form,!t){console.error("Form not found! Make sure the selector is correct.");return}let r,s={};const i=t.querySelectorAll("input, textarea, select");return r=i.length,i.forEach(o=>{const a=(o==null?void 0:o.name)||(o==null?void 0:o.id);(o==null?void 0:o.type)==="checkbox"?s[a]=o!=null&&o.checked?"true":"":(o==null?void 0:o.type)==="radio"&&(o!=null&&o.checked)?s[a]=o==null?void 0:o.value:s[a]=(o==null?void 0:o.value)||""}),n||(e.progress=u0(r,s)),e},u0=(e,t)=>{const n=e,r=Object.values(t).filter(i=>i&&i.trim()!=="").length;return Math.round(r/n*100)},d0=o0(),f0=l0(),rf=Y.createContext(),sf=({children:e,config:t,eventProps:n})=>{const{user:r,device:s,device_type:i,token:o,execute:a}=n,l=r==null?void 0:r.id,u=(f=!0)=>{var g;if(typeof(performance==null?void 0:performance.getEntriesByType)=="function"){const x=(g=performance.getEntriesByType("navigation"))==null?void 0:g[0];if((x==null?void 0:x.type)==="reload")return}else console.warn("The Performance API is not supported in this device.");const{session_id:h,...p}=Ud.endSession();let y={code:"insert_into_analytics",parameters:{sessionId:h,userId:l,eventName:"session_end",eventData:JSON.stringify({...p}),device:s,deviceType:i,pageSource:window.location.pathname}};a(y)};Y.useEffect(()=>{if(!l)return;if(!localStorage.getItem("session_id")){const{session_id:h,...p}=Ud.startSession();let y={code:"insert_into_analytics",parameters:{sessionId:h,userId:l,eventName:"session_start",eventData:JSON.stringify({...p}),device:s,deviceType:i,pageSource:window.location.pathname}};a(y)}window.addEventListener("beforeunload",u)},[l]);const d=async(f,h)=>{const p=localStorage.getItem("session_id");if(f==="session_end"){u(!1);return}if(f==="error_tracking"&&(h=d0.trackError(h)),f==="inactivity_tracking"){a0(l,p,f,h,t,s,i,a);return}if(f==="search_tracking"&&(h=f0.trackSearch(h),!h)||f==="conversion_event"&&(h=c0(h),!h))return;let y={code:"insert_into_analytics",parameters:{sessionId:p,userId:l||h.user_id,eventName:f,eventData:JSON.stringify(h),device:s,deviceType:i,pageSource:window.location.pathname}};await a(y,{showLoader:!1})};return v.jsx(rf.Provider,{value:{trackEvent:d},children:e})},h0=()=>{const e=Y.useContext(rf);if(!e)throw new Error("useTracking must be used within a TrackingProvider");return e};sf.propTypes={children:c.any,config:c.any,eventProps:c.any};function p0({prevPath:e,eventProps:t}){const{user:n,device:r,device_type:s,execute:i}=t,o=n==null?void 0:n.id,a=Y.useRef(new Date),l=Y.useRef(0),u=localStorage.getItem("session_id"),d=async(p,m)=>{let g={code:"insert_into_analytics",parameters:{sessionId:u,userId:o,eventName:"page_view",eventData:JSON.stringify({active_tab_time:p,prev_state_id:e,max_scroll_depth:m}),device:r,deviceType:s,pageSource:window.location.pathname}};i(g),l.current=0,a.current=new Date},f=()=>{const p=window.scrollY,m=document.documentElement.scrollHeight-window.innerHeight,y=p/m*100;y>l.current&&(l.current=Math.min(y,100))};function h(p,m){let y;return(...g)=>{clearTimeout(y),y=setTimeout(()=>p(...g),m)}}Y.useEffect(()=>{const p=h(f,100),m=()=>{let y=new Date-a.current;d(y,l.current)};return window.addEventListener("scroll",p),window.addEventListener("beforeunload",m),()=>{window.removeEventListener("scroll",p),window.removeEventListener("beforeunload",m);let y=new Date-a.current;d(y,l.current)}},[e]),Y.useEffect(()=>{l.current=0,a.current=new Date},[window.location.pathname])}function of(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=of(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ke(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=of(e))&&(r&&(r+=" "),r+=t);return r}function qo(e,t){var n,r,s;return N.isValidElement(e)&&t.indexOf(e.type.muiName??((s=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:s.muiName))!==-1}const af=e=>e,sc=(()=>{let e=af;return{configure(t){e=t},generate(t){return e(t)},reset(){e=af}}})(),g0={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ze(e,t,n="Mui"){const r=g0[t];return r?`${n}-${r}`:`${sc.generate(e)}-${t}`}function nt(e,t,n=void 0){const r={};for(const s in e){const i=e[s];let o="",a=!0;for(let l=0;l<i.length;l+=1){const u=i[l];u&&(o+=(a===!0?"":" ")+t(u),a=!1,n&&n[u]&&(o+=" "+n[u]))}r[s]=o}return r}function Go(){return Go=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},Go.apply(null,arguments)}function lf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var m0=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,y0=lf(function(e){return m0.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),b0=!1;function v0(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function x0(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var _0=function(){function e(n){var r=this;this._insertTag=function(s){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(s,i),r.tags.push(s)},this.isSpeedy=n.speedy===void 0?!b0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(x0(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var i=v0(s);try{i.insertRule(r,i.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var s;return(s=r.parentNode)==null?void 0:s.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Ut="-ms-",Xo="-moz-",Le="-webkit-",cf="comm",ic="rule",oc="decl",w0="@import",uf="@keyframes",S0="@layer",T0=Math.abs,Ko=String.fromCharCode,k0=Object.assign;function O0(e,t){return Vt(e,0)^45?(((t<<2^Vt(e,0))<<2^Vt(e,1))<<2^Vt(e,2))<<2^Vt(e,3):0}function df(e){return e.trim()}function C0(e,t){return(e=t.exec(e))?e[0]:e}function We(e,t,n){return e.replace(t,n)}function ac(e,t){return e.indexOf(t)}function Vt(e,t){return e.charCodeAt(t)|0}function Si(e,t,n){return e.slice(t,n)}function Bn(e){return e.length}function lc(e){return e.length}function Zo(e,t){return t.push(e),e}function M0(e,t){return e.map(t).join("")}var Qo=1,Ms=1,ff=0,nn=0,At=0,Es="";function Jo(e,t,n,r,s,i,o){return{value:e,root:t,parent:n,type:r,props:s,children:i,line:Qo,column:Ms,length:o,return:""}}function Ti(e,t){return k0(Jo("",null,null,"",null,null,0),e,{length:-e.length},t)}function E0(){return At}function D0(){return At=nn>0?Vt(Es,--nn):0,Ms--,At===10&&(Ms=1,Qo--),At}function un(){return At=nn<ff?Vt(Es,nn++):0,Ms++,At===10&&(Ms=1,Qo++),At}function zn(){return Vt(Es,nn)}function ea(){return nn}function ki(e,t){return Si(Es,e,t)}function Oi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function hf(e){return Qo=Ms=1,ff=Bn(Es=e),nn=0,[]}function pf(e){return Es="",e}function ta(e){return df(ki(nn-1,cc(e===91?e+2:e===40?e+1:e)))}function P0(e){for(;(At=zn())&&At<33;)un();return Oi(e)>2||Oi(At)>3?"":" "}function R0(e,t){for(;--t&&un()&&!(At<48||At>102||At>57&&At<65||At>70&&At<97););return ki(e,ea()+(t<6&&zn()==32&&un()==32))}function cc(e){for(;un();)switch(At){case e:return nn;case 34:case 39:e!==34&&e!==39&&cc(At);break;case 40:e===41&&cc(e);break;case 92:un();break}return nn}function A0(e,t){for(;un()&&e+At!==57;)if(e+At===84&&zn()===47)break;return"/*"+ki(t,nn-1)+"*"+Ko(e===47?e:un())}function I0(e){for(;!Oi(zn());)un();return ki(e,nn)}function N0(e){return pf(na("",null,null,null,[""],e=hf(e),0,[0],e))}function na(e,t,n,r,s,i,o,a,l){for(var u=0,d=0,f=o,h=0,p=0,m=0,y=1,g=1,x=1,w=0,S="",T=s,_=i,C=r,M=S;g;)switch(m=w,w=un()){case 40:if(m!=108&&Vt(M,f-1)==58){ac(M+=We(ta(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:M+=ta(w);break;case 9:case 10:case 13:case 32:M+=P0(m);break;case 92:M+=R0(ea()-1,7);continue;case 47:switch(zn()){case 42:case 47:Zo(j0(A0(un(),ea()),t,n),l);break;default:M+="/"}break;case 123*y:a[u++]=Bn(M)*x;case 125*y:case 59:case 0:switch(w){case 0:case 125:g=0;case 59+d:x==-1&&(M=We(M,/\f/g,"")),p>0&&Bn(M)-f&&Zo(p>32?mf(M+";",r,n,f-1):mf(We(M," ","")+";",r,n,f-2),l);break;case 59:M+=";";default:if(Zo(C=gf(M,t,n,u,d,s,a,S,T=[],_=[],f),i),w===123)if(d===0)na(M,t,C,C,T,i,f,a,_);else switch(h===99&&Vt(M,3)===110?100:h){case 100:case 108:case 109:case 115:na(e,C,C,r&&Zo(gf(e,C,C,0,0,s,a,S,s,T=[],f),_),s,_,f,a,r?T:_);break;default:na(M,C,C,C,[""],_,0,a,_)}}u=d=p=0,y=x=1,S=M="",f=o;break;case 58:f=1+Bn(M),p=m;default:if(y<1){if(w==123)--y;else if(w==125&&y++==0&&D0()==125)continue}switch(M+=Ko(w),w*y){case 38:x=d>0?1:(M+="\f",-1);break;case 44:a[u++]=(Bn(M)-1)*x,x=1;break;case 64:zn()===45&&(M+=ta(un())),h=zn(),d=f=Bn(S=M+=I0(ea())),w++;break;case 45:m===45&&Bn(M)==2&&(y=0)}}return i}function gf(e,t,n,r,s,i,o,a,l,u,d){for(var f=s-1,h=s===0?i:[""],p=lc(h),m=0,y=0,g=0;m<r;++m)for(var x=0,w=Si(e,f+1,f=T0(y=o[m])),S=e;x<p;++x)(S=df(y>0?h[x]+" "+w:We(w,/&\f/g,h[x])))&&(l[g++]=S);return Jo(e,t,n,s===0?ic:a,l,u,d)}function j0(e,t,n){return Jo(e,t,n,cf,Ko(E0()),Si(e,2,-2),0)}function mf(e,t,n,r){return Jo(e,t,n,oc,Si(e,0,r),Si(e,r+1,-1),r)}function Ds(e,t){for(var n="",r=lc(e),s=0;s<r;s++)n+=t(e[s],s,e,t)||"";return n}function F0(e,t,n,r){switch(e.type){case S0:if(e.children.length)break;case w0:case oc:return e.return=e.return||e.value;case cf:return"";case uf:return e.return=e.value+"{"+Ds(e.children,r)+"}";case ic:e.value=e.props.join(",")}return Bn(n=Ds(e.children,r))?e.return=e.value+"{"+n+"}":""}function $0(e){var t=lc(e);return function(n,r,s,i){for(var o="",a=0;a<t;a++)o+=e[a](n,r,s,i)||"";return o}}function L0(e){return function(t){t.root||(t=t.return)&&e(t)}}var W0=function(t,n,r){for(var s=0,i=0;s=i,i=zn(),s===38&&i===12&&(n[r]=1),!Oi(i);)un();return ki(t,nn)},B0=function(t,n){var r=-1,s=44;do switch(Oi(s)){case 0:s===38&&zn()===12&&(n[r]=1),t[r]+=W0(nn-1,n,r);break;case 2:t[r]+=ta(s);break;case 4:if(s===44){t[++r]=zn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ko(s)}while(s=un());return t},z0=function(t,n){return pf(B0(hf(t),n))},yf=new WeakMap,Y0=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,s=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!yf.get(r))&&!s){yf.set(t,!0);for(var i=[],o=z0(n,i),a=r.props,l=0,u=0;l<o.length;l++)for(var d=0;d<a.length;d++,u++)t.props[u]=i[l]?o[l].replace(/&\f/g,a[d]):a[d]+" "+o[l]}}},V0=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function bf(e,t){switch(O0(e,t)){case 5103:return Le+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Le+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Le+e+Xo+e+Ut+e+e;case 6828:case 4268:return Le+e+Ut+e+e;case 6165:return Le+e+Ut+"flex-"+e+e;case 5187:return Le+e+We(e,/(\w+).+(:[^]+)/,Le+"box-$1$2"+Ut+"flex-$1$2")+e;case 5443:return Le+e+Ut+"flex-item-"+We(e,/flex-|-self/,"")+e;case 4675:return Le+e+Ut+"flex-line-pack"+We(e,/align-content|flex-|-self/,"")+e;case 5548:return Le+e+Ut+We(e,"shrink","negative")+e;case 5292:return Le+e+Ut+We(e,"basis","preferred-size")+e;case 6060:return Le+"box-"+We(e,"-grow","")+Le+e+Ut+We(e,"grow","positive")+e;case 4554:return Le+We(e,/([^-])(transform)/g,"$1"+Le+"$2")+e;case 6187:return We(We(We(e,/(zoom-|grab)/,Le+"$1"),/(image-set)/,Le+"$1"),e,"")+e;case 5495:case 3959:return We(e,/(image-set\([^]*)/,Le+"$1$`$1");case 4968:return We(We(e,/(.+:)(flex-)?(.*)/,Le+"box-pack:$3"+Ut+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Le+e+e;case 4095:case 3583:case 4068:case 2532:return We(e,/(.+)-inline(.+)/,Le+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Bn(e)-1-t>6)switch(Vt(e,t+1)){case 109:if(Vt(e,t+4)!==45)break;case 102:return We(e,/(.+:)(.+)-([^]+)/,"$1"+Le+"$2-$3$1"+Xo+(Vt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ac(e,"stretch")?bf(We(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Vt(e,t+1)!==115)break;case 6444:switch(Vt(e,Bn(e)-3-(~ac(e,"!important")&&10))){case 107:return We(e,":",":"+Le)+e;case 101:return We(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Le+(Vt(e,14)===45?"inline-":"")+"box$3$1"+Le+"$2$3$1"+Ut+"$2box$3")+e}break;case 5936:switch(Vt(e,t+11)){case 114:return Le+e+Ut+We(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Le+e+Ut+We(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Le+e+Ut+We(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Le+e+Ut+e+e}return e}var H0=function(t,n,r,s){if(t.length>-1&&!t.return)switch(t.type){case oc:t.return=bf(t.value,t.length);break;case uf:return Ds([Ti(t,{value:We(t.value,"@","@"+Le)})],s);case ic:if(t.length)return M0(t.props,function(i){switch(C0(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ds([Ti(t,{props:[We(i,/:(read-\w+)/,":"+Xo+"$1")]})],s);case"::placeholder":return Ds([Ti(t,{props:[We(i,/:(plac\w+)/,":"+Le+"input-$1")]}),Ti(t,{props:[We(i,/:(plac\w+)/,":"+Xo+"$1")]}),Ti(t,{props:[We(i,/:(plac\w+)/,Ut+"input-$1")]})],s)}return""})}},U0=[H0],q0=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var g=y.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var s=t.stylisPlugins||U0,i={},o,a=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var g=y.getAttribute("data-emotion").split(" "),x=1;x<g.length;x++)i[g[x]]=!0;a.push(y)});var l,u=[Y0,V0];{var d,f=[F0,L0(function(y){d.insert(y)})],h=$0(u.concat(s,f)),p=function(g){return Ds(N0(g),h)};l=function(g,x,w,S){d=w,p(g?g+"{"+x.styles+"}":x.styles),S&&(m.inserted[x.name]=!0)}}var m={key:n,sheet:new _0({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return m.sheet.hydrate(a),m},vf=Kl(),G0={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},X0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},xf={};xf[vf.ForwardRef]=G0,xf[vf.Memo]=X0;var K0=!0;function Z0(e,t,n){var r="";return n.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(r+=s+" ")}),r}var _f=function(t,n,r){var s=t.key+"-"+n.name;(r===!1||K0===!1)&&t.registered[s]===void 0&&(t.registered[s]=n.styles)},wf=function(t,n,r){_f(t,n,r);var s=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+s:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Q0(e){for(var t=0,n,r=0,s=e.length;s>=4;++r,s-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var J0={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ev=!1,tv=/[A-Z]|^ms/g,nv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sf=function(t){return t.charCodeAt(1)===45},Tf=function(t){return t!=null&&typeof t!="boolean"},uc=lf(function(e){return Sf(e)?e:e.replace(tv,"-$&").toLowerCase()}),kf=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(nv,function(r,s,i){return Yn={name:s,styles:i,next:Yn},s})}return J0[t]!==1&&!Sf(t)&&typeof n=="number"&&n!==0?n+"px":n},rv="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ci(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return Yn={name:s.name,styles:s.styles,next:Yn},s.name;var i=n;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)Yn={name:o.name,styles:o.styles,next:Yn},o=o.next;var a=i.styles+";";return a}return sv(e,t,n)}case"function":{if(e!==void 0){var l=Yn,u=n(e);return Yn=l,Ci(e,t,u)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function sv(e,t,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=Ci(e,t,n[s])+";";else for(var i in n){var o=n[i];if(typeof o!="object"){var a=o;t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":Tf(a)&&(r+=uc(i)+":"+kf(i,a)+";")}else{if(i==="NO_COMPONENT_SELECTOR"&&ev)throw new Error(rv);if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var l=0;l<o.length;l++)Tf(o[l])&&(r+=uc(i)+":"+kf(i,o[l])+";");else{var u=Ci(e,t,o);switch(i){case"animation":case"animationName":{r+=uc(i)+":"+u+";";break}default:r+=i+"{"+u+"}"}}}}return r}var Of=/label:\s*([^\s;{]+)\s*(;|$)/g,Yn;function ra(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,s="";Yn=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,s+=Ci(n,t,i);else{var o=i;s+=o[0]}for(var a=1;a<e.length;a++)if(s+=Ci(n,t,e[a]),r){var l=i;s+=l[a]}Of.lastIndex=0;for(var u="",d;(d=Of.exec(s))!==null;)u+="-"+d[1];var f=Q0(s)+u;return{name:f,styles:s,next:Yn}}var iv=function(t){return t()},Cf=N.useInsertionEffect?N.useInsertionEffect:!1,ov=Cf||iv,Mf=Cf||N.useLayoutEffect,Ef=N.createContext(typeof HTMLElement<"u"?q0({key:"css"}):null);Ef.Provider;var Df=function(t){return Y.forwardRef(function(n,r){var s=Y.useContext(Ef);return t(n,s,r)})},dc=N.createContext({}),av=Df(function(e,t){var n=e.styles,r=ra([n],void 0,N.useContext(dc)),s=N.useRef();return Mf(function(){var i=t.key+"-global",o=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",i),o.hydrate([l])),s.current=[o,a],function(){o.flush()}},[t]),Mf(function(){var i=s.current,o=i[0],a=i[1];if(a){i[1]=!1;return}if(r.next!==void 0&&wf(t,r.next,!0),o.tags.length){var l=o.tags[o.tags.length-1].nextElementSibling;o.before=l,o.flush()}t.insert("",r,o,!1)},[t,r.name]),null});function lv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ra(t)}var fc=function(){var t=lv.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},cv=y0,uv=function(t){return t!=="theme"},Pf=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?cv:uv},Rf=function(t,n,r){var s;if(n){var i=n.shouldForwardProp;s=t.__emotion_forwardProp&&i?function(o){return t.__emotion_forwardProp(o)&&i(o)}:i}return typeof s!="function"&&r&&(s=t.__emotion_forwardProp),s},dv=!1,fv=function(t){var n=t.cache,r=t.serialized,s=t.isStringTag;return _f(n,r,s),ov(function(){return wf(n,r,s)}),null},hv=function e(t,n){var r=t.__emotion_real===t,s=r&&t.__emotion_base||t,i,o;n!==void 0&&(i=n.label,o=n.target);var a=Rf(t,n,r),l=a||Pf(s),u=!l("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var h=d.length,p=1;p<h;p++)f.push(d[p],d[0][p])}var m=Df(function(y,g,x){var w=u&&y.as||s,S="",T=[],_=y;if(y.theme==null){_={};for(var C in y)_[C]=y[C];_.theme=N.useContext(dc)}typeof y.className=="string"?S=Z0(g.registered,T,y.className):y.className!=null&&(S=y.className+" ");var M=ra(f.concat(T),g.registered,_);S+=g.key+"-"+M.name,o!==void 0&&(S+=" "+o);var k=u&&a===void 0?Pf(w):l,R={};for(var b in y)u&&b==="as"||k(b)&&(R[b]=y[b]);return R.className=S,x&&(R.ref=x),N.createElement(N.Fragment,null,N.createElement(fv,{cache:g,serialized:M,isStringTag:typeof w=="string"}),N.createElement(w,R))});return m.displayName=i!==void 0?i:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=s,m.__emotion_styles=f,m.__emotion_forwardProp=a,Object.defineProperty(m,"toString",{value:function(){return o===void 0&&dv?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(y,g){return e(y,Go({},n,g,{shouldForwardProp:Rf(m,g,!0)})).apply(void 0,f)},m}},pv=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],hc=hv.bind();pv.forEach(function(e){hc[e]=hc(e)});function gv(e){return e==null||Object.keys(e).length===0}function Af(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?s=>t(gv(s)?n:s):t;return v.jsx(av,{styles:r})}process.env.NODE_ENV!=="production"&&(Af.propTypes={defaultTheme:c.object,styles:c.oneOfType([c.array,c.string,c.object,c.func])});/**
50
+ * @mui/styled-engine v6.1.10
51
+ *
52
+ * @license MIT
53
+ * This source code is licensed under the MIT license found in the
54
+ * LICENSE file in the root directory of this source tree.
55
+ */function If(e,t){const n=hc(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const s=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${s})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
56
+ `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${s})(...args) API requires all its args to be defined.`),n(...r)}:n}function mv(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Nf=[];function jf(e){return Nf[0]=e,ra(Nf)}function Vn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ff(e){if(N.isValidElement(e)||!Vn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Ff(e[n])}),t}function qt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Vn(e)&&Vn(t)&&Object.keys(t).forEach(s=>{N.isValidElement(t[s])?r[s]=t[s]:Vn(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&Vn(e[s])?r[s]=qt(e[s],t[s],n):n.clone?r[s]=Vn(t[s])?Ff(t[s]):t[s]:r[s]=t[s]}),r}function Hn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function De(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Hn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var pc={exports:{}},Ve={};/**
57
+ * @license React
58
+ * react-is.production.min.js
59
+ *
60
+ * Copyright (c) Facebook, Inc. and its affiliates.
61
+ *
62
+ * This source code is licensed under the MIT license found in the
63
+ * LICENSE file in the root directory of this source tree.
64
+ */var $f;function yv(){if($f)return Ve;$f=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function y(g){if(typeof g=="object"&&g!==null){var x=g.$$typeof;switch(x){case e:switch(g=g.type,g){case n:case s:case r:case u:case d:return g;default:switch(g=g&&g.$$typeof,g){case a:case o:case l:case h:case f:case i:return g;default:return x}}case t:return x}}}return Ve.ContextConsumer=o,Ve.ContextProvider=i,Ve.Element=e,Ve.ForwardRef=l,Ve.Fragment=n,Ve.Lazy=h,Ve.Memo=f,Ve.Portal=t,Ve.Profiler=s,Ve.StrictMode=r,Ve.Suspense=u,Ve.SuspenseList=d,Ve.isAsyncMode=function(){return!1},Ve.isConcurrentMode=function(){return!1},Ve.isContextConsumer=function(g){return y(g)===o},Ve.isContextProvider=function(g){return y(g)===i},Ve.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Ve.isForwardRef=function(g){return y(g)===l},Ve.isFragment=function(g){return y(g)===n},Ve.isLazy=function(g){return y(g)===h},Ve.isMemo=function(g){return y(g)===f},Ve.isPortal=function(g){return y(g)===t},Ve.isProfiler=function(g){return y(g)===s},Ve.isStrictMode=function(g){return y(g)===r},Ve.isSuspense=function(g){return y(g)===u},Ve.isSuspenseList=function(g){return y(g)===d},Ve.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===s||g===r||g===u||g===d||g===p||typeof g=="object"&&g!==null&&(g.$$typeof===h||g.$$typeof===f||g.$$typeof===i||g.$$typeof===o||g.$$typeof===l||g.$$typeof===m||g.getModuleId!==void 0)},Ve.typeOf=y,Ve}var He={};/**
65
+ * @license React
66
+ * react-is.development.js
67
+ *
68
+ * Copyright (c) Facebook, Inc. and its affiliates.
69
+ *
70
+ * This source code is licensed under the MIT license found in the
71
+ * LICENSE file in the root directory of this source tree.
72
+ */var Lf;function bv(){return Lf||(Lf=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=!1,y=!1,g=!1,x=!1,w=!1,S;S=Symbol.for("react.module.reference");function T(V){return!!(typeof V=="string"||typeof V=="function"||V===n||V===s||w||V===r||V===u||V===d||x||V===p||m||y||g||typeof V=="object"&&V!==null&&(V.$$typeof===h||V.$$typeof===f||V.$$typeof===i||V.$$typeof===o||V.$$typeof===l||V.$$typeof===S||V.getModuleId!==void 0))}function _(V){if(typeof V=="object"&&V!==null){var Te=V.$$typeof;switch(Te){case e:var et=V.type;switch(et){case n:case s:case r:case u:case d:return et;default:var gt=et&&et.$$typeof;switch(gt){case a:case o:case l:case h:case f:case i:return gt;default:return Te}}case t:return Te}}}var C=o,M=i,k=e,R=l,b=n,E=h,I=f,W=t,j=s,O=r,D=u,L=d,F=!1,z=!1;function $(V){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(V){return z||(z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function U(V){return _(V)===o}function K(V){return _(V)===i}function J(V){return typeof V=="object"&&V!==null&&V.$$typeof===e}function ie(V){return _(V)===l}function ae(V){return _(V)===n}function ce(V){return _(V)===h}function ge(V){return _(V)===f}function de(V){return _(V)===t}function re(V){return _(V)===s}function fe(V){return _(V)===r}function Q(V){return _(V)===u}function xe(V){return _(V)===d}He.ContextConsumer=C,He.ContextProvider=M,He.Element=k,He.ForwardRef=R,He.Fragment=b,He.Lazy=E,He.Memo=I,He.Portal=W,He.Profiler=j,He.StrictMode=O,He.Suspense=D,He.SuspenseList=L,He.isAsyncMode=$,He.isConcurrentMode=H,He.isContextConsumer=U,He.isContextProvider=K,He.isElement=J,He.isForwardRef=ie,He.isFragment=ae,He.isLazy=ce,He.isMemo=ge,He.isPortal=de,He.isProfiler=re,He.isStrictMode=fe,He.isSuspense=Q,He.isSuspenseList=xe,He.isValidElementType=T,He.typeOf=_}()),He}process.env.NODE_ENV==="production"?pc.exports=yv():pc.exports=bv();var Wf=pc.exports;function Bf(e,t=""){return e.displayName||e.name||t}function zf(e,t,n){const r=Bf(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function vv(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Bf(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Wf.ForwardRef:return zf(e,e.render,"ForwardRef");case Wf.Memo:return zf(e,e.type,"memo");default:return}}}const xv=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function _v(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...s}=e,i=xv(t),o=Object.keys(i);function a(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function u(h,p){const m=o.indexOf(p);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(m!==-1&&typeof t[o[m]]=="number"?t[o[m]]:p)-r/100}${n})`}function d(h){return o.indexOf(h)+1<o.length?u(h,o[o.indexOf(h)+1]):a(h)}function f(h){const p=o.indexOf(h);return p===0?a(o[1]):p===o.length-1?l(o[p]):u(h,o[o.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:o,values:i,up:a,down:l,between:u,only:d,not:f,unit:n,...s}}function wv(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,s)=>{var o,a;const i=/min-width:\s*([0-9.]+)/;return+(((o=r.match(i))==null?void 0:o[1])||0)-+(((a=s.match(i))==null?void 0:a[1])||0)});return n.length?n.reduce((r,s)=>{const i=t[s];return delete r[s],r[s]=i,r},{...t}):t}function Sv(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Tv(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
73
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Hn(18,`(${t})`));return null}const[,r,s]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(s).up(i)}function kv(e){const t=(i,o)=>i.replace("@media",o?`@container ${o}`:"@container");function n(i,o){i.up=(...a)=>t(e.breakpoints.up(...a),o),i.down=(...a)=>t(e.breakpoints.down(...a),o),i.between=(...a)=>t(e.breakpoints.between(...a),o),i.only=(...a)=>t(e.breakpoints.only(...a),o),i.not=(...a)=>{const l=t(e.breakpoints.not(...a),o);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},s=i=>(n(r,i),r);return n(s),{...e,containerQueries:s}}const Ov={borderRadius:4},$r=process.env.NODE_ENV!=="production"?c.oneOfType([c.number,c.string,c.object,c.array]):{};function Mi(e,t){return t?qt(e,t,{clone:!1}):e}const sa={xs:0,sm:600,md:900,lg:1200,xl:1536},Yf={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${sa[e]}px)`},Cv={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:sa[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function pr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Yf;return t.reduce((o,a,l)=>(o[i.up(i.keys[l])]=n(t[l]),o),{})}if(typeof t=="object"){const i=r.breakpoints||Yf;return Object.keys(t).reduce((o,a)=>{if(Sv(i.keys,a)){const l=Tv(r.containerQueries?r:Cv,a);l&&(o[l]=n(t[a],a))}else if(Object.keys(i.values||sa).includes(a)){const l=i.up(a);o[l]=n(t[a],a)}else{const l=a;o[l]=t[l]}return o},{})}return n(t)}function Mv(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,s)=>{const i=e.up(s);return r[i]={},r},{}))||{}}function Ev(e,t){return e.reduce((n,r)=>{const s=n[r];return(!s||Object.keys(s).length===0)&&delete n[r],n},t)}function ia(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((s,i)=>s&&s[i]?s[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,s)=>r&&r[s]!=null?r[s]:null,e)}function oa(e,t,n,r=n){let s;return typeof e=="function"?s=e(n):Array.isArray(e)?s=e[n]||r:s=ia(e,n)||r,t&&(s=t(s,r,e)),s}function Ot(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:s}=e,i=o=>{if(o[t]==null)return null;const a=o[t],l=o.theme,u=ia(l,r)||{};return pr(o,a,f=>{let h=oa(u,s,f);return f===h&&typeof f=="string"&&(h=oa(u,s,`${t}${f==="default"?"":De(f)}`,f)),n===!1?h:{[n]:h}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:$r}:{},i.filterProps=[t],i}function Dv(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Pv={m:"margin",p:"padding"},Rv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Vf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Av=Dv(e=>{if(e.length>2)if(Vf[e])e=Vf[e];else return[e];const[t,n]=e.split(""),r=Pv[t],s=Rv[n]||"";return Array.isArray(s)?s.map(i=>r+i):[r+s]}),aa=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],la=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Iv=[...aa,...la];function Ei(e,t,n,r){const s=ia(e,t,!0)??n;return typeof s=="number"||typeof s=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof s=="string"?`calc(${i} * ${s})`:s*i):Array.isArray(s)?i=>{if(typeof i=="string")return i;const o=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(o)?o>s.length-1&&console.error([`MUI: The value provided (${o}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${o} > ${s.length-1}, you need to add the missing values.`].join(`
74
+ `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
75
+ `)));const a=s[o];return i>=0?a:typeof a=="number"?-a:`-${a}`}:typeof s=="function"?s:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${s}) is invalid.`,"It should be a number, an array or a function."].join(`
76
+ `)),()=>{})}function gc(e){return Ei(e,"spacing",8,"spacing")}function Di(e,t){return typeof t=="string"||t==null?t:e(t)}function Nv(e,t){return n=>e.reduce((r,s)=>(r[s]=Di(t,n),r),{})}function jv(e,t,n,r){if(!t.includes(n))return null;const s=Av(n),i=Nv(s,r),o=e[n];return pr(e,o,i)}function Hf(e,t){const n=gc(e.theme);return Object.keys(e).map(r=>jv(e,t,r,n)).reduce(Mi,{})}function vt(e){return Hf(e,aa)}vt.propTypes=process.env.NODE_ENV!=="production"?aa.reduce((e,t)=>(e[t]=$r,e),{}):{},vt.filterProps=aa;function xt(e){return Hf(e,la)}xt.propTypes=process.env.NODE_ENV!=="production"?la.reduce((e,t)=>(e[t]=$r,e),{}):{},xt.filterProps=la,process.env.NODE_ENV!=="production"&&Iv.reduce((e,t)=>(e[t]=$r,e),{});function Uf(e=8,t=gc({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const o=t(i);return typeof o=="number"?`${o}px`:o}).join(" "));return n.mui=!0,n}function ca(...e){const t=e.reduce((r,s)=>(s.filterProps.forEach(i=>{r[i]=s}),r),{}),n=r=>Object.keys(r).reduce((s,i)=>t[i]?Mi(s,t[i](r)):s,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,s)=>Object.assign(r,s.propTypes),{}):{},n.filterProps=e.reduce((r,s)=>r.concat(s.filterProps),[]),n}function gn(e){return typeof e!="number"?e:`${e}px solid`}function mn(e,t){return Ot({prop:e,themeKey:"borders",transform:t})}const Fv=mn("border",gn),$v=mn("borderTop",gn),Lv=mn("borderRight",gn),Wv=mn("borderBottom",gn),Bv=mn("borderLeft",gn),zv=mn("borderColor"),Yv=mn("borderTopColor"),Vv=mn("borderRightColor"),Hv=mn("borderBottomColor"),Uv=mn("borderLeftColor"),qv=mn("outline",gn),Gv=mn("outlineColor"),ua=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ei(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Di(t,r)});return pr(e,e.borderRadius,n)}return null};ua.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:$r}:{},ua.filterProps=["borderRadius"],ca(Fv,$v,Lv,Wv,Bv,zv,Yv,Vv,Hv,Uv,ua,qv,Gv);const da=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ei(e.theme,"spacing",8,"gap"),n=r=>({gap:Di(t,r)});return pr(e,e.gap,n)}return null};da.propTypes=process.env.NODE_ENV!=="production"?{gap:$r}:{},da.filterProps=["gap"];const fa=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ei(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Di(t,r)});return pr(e,e.columnGap,n)}return null};fa.propTypes=process.env.NODE_ENV!=="production"?{columnGap:$r}:{},fa.filterProps=["columnGap"];const ha=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ei(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Di(t,r)});return pr(e,e.rowGap,n)}return null};ha.propTypes=process.env.NODE_ENV!=="production"?{rowGap:$r}:{},ha.filterProps=["rowGap"];const Xv=Ot({prop:"gridColumn"}),Kv=Ot({prop:"gridRow"}),Zv=Ot({prop:"gridAutoFlow"}),Qv=Ot({prop:"gridAutoColumns"}),Jv=Ot({prop:"gridAutoRows"}),ex=Ot({prop:"gridTemplateColumns"}),tx=Ot({prop:"gridTemplateRows"}),nx=Ot({prop:"gridTemplateAreas"}),rx=Ot({prop:"gridArea"});ca(da,fa,ha,Xv,Kv,Zv,Qv,Jv,ex,tx,nx,rx);function Ps(e,t){return t==="grey"?t:e}const sx=Ot({prop:"color",themeKey:"palette",transform:Ps}),ix=Ot({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ps}),ox=Ot({prop:"backgroundColor",themeKey:"palette",transform:Ps});ca(sx,ix,ox);function dn(e){return e<=1&&e!==0?`${e*100}%`:e}const ax=Ot({prop:"width",transform:dn}),mc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var s,i,o,a,l;const r=((o=(i=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:i.values)==null?void 0:o[n])||sa[n];return r?((l=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:dn(n)}};return pr(e,e.maxWidth,t)}return null};mc.filterProps=["maxWidth"];const lx=Ot({prop:"minWidth",transform:dn}),cx=Ot({prop:"height",transform:dn}),ux=Ot({prop:"maxHeight",transform:dn}),dx=Ot({prop:"minHeight",transform:dn});Ot({prop:"size",cssProperty:"width",transform:dn}),Ot({prop:"size",cssProperty:"height",transform:dn});const fx=Ot({prop:"boxSizing"});ca(ax,mc,lx,cx,ux,dx,fx);const Pi={border:{themeKey:"borders",transform:gn},borderTop:{themeKey:"borders",transform:gn},borderRight:{themeKey:"borders",transform:gn},borderBottom:{themeKey:"borders",transform:gn},borderLeft:{themeKey:"borders",transform:gn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:gn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ua},color:{themeKey:"palette",transform:Ps},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ps},backgroundColor:{themeKey:"palette",transform:Ps},p:{style:xt},pt:{style:xt},pr:{style:xt},pb:{style:xt},pl:{style:xt},px:{style:xt},py:{style:xt},padding:{style:xt},paddingTop:{style:xt},paddingRight:{style:xt},paddingBottom:{style:xt},paddingLeft:{style:xt},paddingX:{style:xt},paddingY:{style:xt},paddingInline:{style:xt},paddingInlineStart:{style:xt},paddingInlineEnd:{style:xt},paddingBlock:{style:xt},paddingBlockStart:{style:xt},paddingBlockEnd:{style:xt},m:{style:vt},mt:{style:vt},mr:{style:vt},mb:{style:vt},ml:{style:vt},mx:{style:vt},my:{style:vt},margin:{style:vt},marginTop:{style:vt},marginRight:{style:vt},marginBottom:{style:vt},marginLeft:{style:vt},marginX:{style:vt},marginY:{style:vt},marginInline:{style:vt},marginInlineStart:{style:vt},marginInlineEnd:{style:vt},marginBlock:{style:vt},marginBlockStart:{style:vt},marginBlockEnd:{style:vt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:da},rowGap:{style:ha},columnGap:{style:fa},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:dn},maxWidth:{style:mc},minWidth:{transform:dn},height:{transform:dn},maxHeight:{transform:dn},minHeight:{transform:dn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function hx(...e){const t=e.reduce((r,s)=>r.concat(Object.keys(s)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function px(e,t){return typeof e=="function"?e(t):e}function gx(){function e(n,r,s,i){const o={[n]:r,theme:s},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:d,style:f}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const h=ia(s,u)||{};return f?f(o):pr(o,r,m=>{let y=oa(h,d,m);return m===y&&typeof m=="string"&&(y=oa(h,d,`${n}${m==="default"?"":De(m)}`,m)),l===!1?y:{[l]:y}})}function t(n){const{sx:r,theme:s={}}=n||{};if(!r)return null;const i=s.unstable_sxConfig??Pi;function o(a){let l=a;if(typeof a=="function")l=a(s);else if(typeof a!="object")return a;if(!l)return null;const u=Mv(s.breakpoints),d=Object.keys(u);let f=u;return Object.keys(l).forEach(h=>{const p=px(l[h],s);if(p!=null)if(typeof p=="object")if(i[h])f=Mi(f,e(h,p,s,i));else{const m=pr({theme:s},p,y=>({[h]:y}));hx(m,p)?f[h]=t({sx:p,theme:s}):f=Mi(f,m)}else f=Mi(f,e(h,p,s,i))}),wv(s,Ev(d,f))}return Array.isArray(r)?r.map(o):o(r)}return t}const ts=gx();ts.filterProps=["sx"];function mx(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let s=n.getColorSchemeSelector(e);return s==="&"?t:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:t})}return n.palette.mode===e?t:{}}function pa(e={},...t){const{breakpoints:n={},palette:r={},spacing:s,shape:i={},...o}=e,a=_v(n),l=Uf(s);let u=qt({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...Ov,...i}},o);return u=kv(u),u.applyStyles=mx,u=t.reduce((d,f)=>qt(d,f),u),u.unstable_sxConfig={...Pi,...o==null?void 0:o.unstable_sxConfig},u.unstable_sx=function(f){return ts({sx:f,theme:this})},u}const yx=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Pi;return Object.keys(e).forEach(s=>{n[s]?t.systemProps[s]=e[s]:t.otherProps[s]=e[s]}),t};function yc(e){const{sx:t,...n}=e,{systemProps:r,otherProps:s}=yx(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...o)=>{const a=t(...o);return Vn(a)?{...r,...a}:r}:i={...r,...t},{...s,sx:i}}function qf(e){const{variants:t,...n}=e,r={variants:t,style:jf(n),isProcessed:!0};return r.style===n||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=jf(s.style))}),r}const bx=pa();function bc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function vx(e){return e?(t,n)=>n[e]:null}function xx(e,t,n){e.theme=Sx(e.theme)?n:e.theme[t]||e.theme}function ga(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>ga(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:s,...i}=n;r=i}return Gf(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function Gf(e,t,n=[]){var s;let r;e:for(let i=0;i<t.length;i+=1){const o=t[i];if(typeof o.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!o.props(r))continue}else for(const a in o.props)if(e[a]!==o.props[a]&&((s=e.ownerState)==null?void 0:s[a])!==o.props[a])continue e;typeof o.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(o.style(r))):n.push(o.style)}return n}function Xf(e={}){const{themeId:t,defaultTheme:n=bx,rootShouldForwardProp:r=bc,slotShouldForwardProp:s=bc}=e;function i(a){xx(a,t,n)}return(a,l={})=>{mv(a,_=>_.filter(C=>C!==ts));const{name:u,slot:d,skipVariantsResolver:f,skipSx:h,overridesResolver:p=vx(Kf(d)),...m}=l,y=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,g=h||!1;let x=bc;d==="Root"||d==="root"?x=r:d?x=s:Tx(a)&&(x=void 0);const w=If(a,{shouldForwardProp:x,label:wx(u,d),...m}),S=_=>{if(typeof _=="function"&&_.__emotion_real!==_)return function(M){return ga(M,_)};if(Vn(_)){const C=qf(_);return C.variants?function(k){return ga(k,C)}:C.style}return _},T=(..._)=>{const C=[],M=_.map(S),k=[];if(C.push(i),u&&p&&k.push(function(I){var D,L;const j=(L=(D=I.theme.components)==null?void 0:D[u])==null?void 0:L.styleOverrides;if(!j)return null;const O={};for(const F in j)O[F]=ga(I,j[F]);return p(I,O)}),u&&!y&&k.push(function(I){var O,D;const W=I.theme,j=(D=(O=W==null?void 0:W.components)==null?void 0:O[u])==null?void 0:D.variants;return j?Gf(I,j):null}),g||k.push(ts),Array.isArray(M[0])){const E=M.shift(),I=new Array(C.length).fill(""),W=new Array(k.length).fill("");let j;j=[...I,...E,...W],j.raw=[...I,...E.raw,...W],C.unshift(j)}const R=[...C,...M,...k],b=w(...R);return a.muiName&&(b.muiName=a.muiName),process.env.NODE_ENV!=="production"&&(b.displayName=_x(u,d,a)),b};return w.withConfig&&(T.withConfig=w.withConfig),T}}function _x(e,t,n){return e?`${e}${De(t||"")}`:`Styled(${vv(n)})`}function wx(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Kf(t||"Root")}`),n}function Sx(e){for(const t in e)return!1;return!0}function Tx(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Kf(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const kx=Xf();function Ri(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const s=r;if(s==="components"||s==="slots")n[s]={...e[s],...n[s]};else if(s==="componentsProps"||s==="slotProps"){const i=e[s],o=t[s];if(!o)n[s]=i||{};else if(!i)n[s]=o;else{n[s]={...o};for(const a in i)if(Object.prototype.hasOwnProperty.call(i,a)){const l=a;n[s][l]=Ri(i[l],o[l])}}}else n[s]===void 0&&(n[s]=e[s])}return n}function Ox(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Ri(t.components[n].defaultProps,r)}function Cx(e){return Object.keys(e).length===0}function Mx(e=null){const t=N.useContext(dc);return!t||Cx(t)?e:t}const Ex=pa();function Ai(e=Ex){return Mx(e)}function Dx({props:e,name:t,defaultTheme:n,themeId:r}){let s=Ai(n);return r&&(s=s[r]||s),Ox({theme:s,name:t,props:e})}const Px=(e,t)=>e.filter(n=>t.includes(n)),Rs=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((s,i)=>{n((o,a)=>{i<=e.keys.length-1&&(i===0?Object.assign(o,a):o[e.up(e.keys[i])]=a)},s)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:Px(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.includes(i)){const o=t[i];o!==void 0&&n((a,l)=>{r===i?Object.assign(a,l):a[e.up(i)]=l},o)}}):(typeof t=="number"||typeof t=="string")&&n((s,i)=>{Object.assign(s,i)},t)};function ma(e){return`--Grid-${e}Spacing`}function ya(e){return`--Grid-parent-${e}Spacing`}const Zf="--Grid-columns",As="--Grid-parent-columns",Rx=({theme:e,ownerState:t})=>{const n={};return Rs(e.breakpoints,t.size,(r,s)=>{let i={};s==="grow"&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),s==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof s=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${s} / var(${As}) - (var(${As}) - ${s}) * (var(${ya("column")}) / var(${As})))`}),r(n,i)}),n},Ax=({theme:e,ownerState:t})=>{const n={};return Rs(e.breakpoints,t.offset,(r,s)=>{let i={};s==="auto"&&(i={marginLeft:"auto"}),typeof s=="number"&&(i={marginLeft:s===0?"0px":`calc(100% * ${s} / var(${As}) + var(${ya("column")}) * ${s} / var(${As}))`}),r(n,i)}),n},Ix=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[Zf]:12};return Rs(e.breakpoints,t.columns,(r,s)=>{const i=s??12;r(n,{[Zf]:i,"> *":{[As]:i}})}),n},Nx=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Rs(e.breakpoints,t.rowSpacing,(r,s)=>{var o;const i=typeof s=="string"?s:(o=e.spacing)==null?void 0:o.call(e,s);r(n,{[ma("row")]:i,"> *":{[ya("row")]:i}})}),n},jx=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Rs(e.breakpoints,t.columnSpacing,(r,s)=>{var o;const i=typeof s=="string"?s:(o=e.spacing)==null?void 0:o.call(e,s);r(n,{[ma("column")]:i,"> *":{[ya("column")]:i}})}),n},Fx=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Rs(e.breakpoints,t.direction,(r,s)=>{r(n,{flexDirection:s})}),n},$x=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${ma("row")}) var(${ma("column")})`}}),Lx=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},Wx=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([s,i])=>{n(i)&&r.push(`spacing-${s}-${String(i)}`)}),r}return[]},Bx=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],zx=pa(),Yx=kx("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Vx(e){return Dx({props:e,name:"MuiGrid",defaultTheme:zx})}function Hx(e={}){const{createStyledComponent:t=Yx,useThemeProps:n=Vx,useTheme:r=Ai,componentName:s="MuiGrid"}=e,i=(u,d)=>{const{container:f,direction:h,spacing:p,wrap:m,size:y}=u,g={root:["root",f&&"container",m!=="wrap"&&`wrap-xs-${String(m)}`,...Bx(h),...Lx(y),...f?Wx(p,d.breakpoints.keys[0]):[]]};return nt(g,x=>Ze(s,x),{})};function o(u,d,f=()=>!0){const h={};return u===null||(Array.isArray(u)?u.forEach((p,m)=>{p!==null&&f(p)&&d.keys[m]&&(h[d.keys[m]]=p)}):typeof u=="object"?Object.keys(u).forEach(p=>{const m=u[p];m!=null&&f(m)&&(h[p]=m)}):h[d.keys[0]]=u),h}const a=t(Ix,jx,Nx,Rx,Fx,$x,Ax),l=N.forwardRef(function(d,f){const h=r(),p=n(d),m=yc(p),{className:y,children:g,columns:x=12,container:w=!1,component:S="div",direction:T="row",wrap:_="wrap",size:C={},offset:M={},spacing:k=0,rowSpacing:R=k,columnSpacing:b=k,unstable_level:E=0,...I}=m,W=o(C,h.breakpoints,H=>H!==!1),j=o(M,h.breakpoints),O=d.columns??(E?void 0:x),D=d.spacing??(E?void 0:k),L=d.rowSpacing??d.spacing??(E?void 0:R),F=d.columnSpacing??d.spacing??(E?void 0:b),z={...m,level:E,columns:O,container:w,direction:T,wrap:_,spacing:D,rowSpacing:L,columnSpacing:F,size:W,offset:j},$=i(z,h);return v.jsx(a,{ref:f,as:S,ownerState:z,className:ke($.root,y),...I,children:N.Children.map(g,H=>{var U;return N.isValidElement(H)&&qo(H,["Grid"])&&w&&H.props.container?N.cloneElement(H,{unstable_level:((U=H.props)==null?void 0:U.unstable_level)??E+1}):H})})});return process.env.NODE_ENV!=="production"&&(l.propTypes={children:c.node,className:c.string,columns:c.oneOfType([c.arrayOf(c.number),c.number,c.object]),columnSpacing:c.oneOfType([c.arrayOf(c.oneOfType([c.number,c.string])),c.number,c.object,c.string]),component:c.elementType,container:c.bool,direction:c.oneOfType([c.oneOf(["column-reverse","column","row-reverse","row"]),c.arrayOf(c.oneOf(["column-reverse","column","row-reverse","row"])),c.object]),offset:c.oneOfType([c.string,c.number,c.arrayOf(c.oneOfType([c.string,c.number])),c.object]),rowSpacing:c.oneOfType([c.arrayOf(c.oneOfType([c.number,c.string])),c.number,c.object,c.string]),size:c.oneOfType([c.string,c.bool,c.number,c.arrayOf(c.oneOfType([c.string,c.bool,c.number])),c.object]),spacing:c.oneOfType([c.arrayOf(c.oneOfType([c.number,c.string])),c.number,c.object,c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),wrap:c.oneOf(["nowrap","wrap-reverse","wrap"])}),l.muiName="Grid",l}function je(e,t,n="Mui"){const r={};return t.forEach(s=>{r[s]=Ze(e,s,n)}),r}function Ux(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?{...t.propTypes}:null;return s=>(i,o,a,l,u,...d)=>{const f=u||o,h=n==null?void 0:n[f];if(h){const p=h(i,o,a,l,u,...d);if(p)return p}return typeof i[o]<"u"&&!i[s]?new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${s}\` prop.`):null}}const ba="$$material";function Qf({styles:e,themeId:t,defaultTheme:n={}}){const r=Ai(n),s=typeof e=="function"?e(t&&r[t]||r):e;return v.jsx(Af,{styles:s})}process.env.NODE_ENV!=="production"&&(Qf.propTypes={defaultTheme:c.object,styles:c.oneOfType([c.array,c.func,c.number,c.object,c.string,c.bool]),themeId:c.string});function Jf(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:s}=e,i=If("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(ts);return N.forwardRef(function(l,u){const d=Ai(n),{className:f,component:h="div",...p}=yc(l);return v.jsx(i,{as:h,ref:u,className:ke(f,s?s(r):r),theme:t&&d[t]||d,...p})})}const qx=je("MuiBox",["root"]),Lr=Jf({defaultClassName:qx.root,generateClassName:sc.generate});process.env.NODE_ENV!=="production"&&(Lr.propTypes={children:c.node,component:c.elementType,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});const Wr=typeof window<"u"?N.useLayoutEffect:N.useEffect;function Gx(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function vc(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Gx(e,t,n)}function Xx(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,s)=>s<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Br(e){if(e.type)return e;if(e.charAt(0)==="#")return Br(Xx(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
77
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Hn(9,e));let r=e.substring(t+1,e.length-1),s;if(n==="color"){if(r=r.split(" "),s=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${s}\` color space.
78
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Hn(10,s))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:s}}const Kx=e=>{const t=Br(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Ii=(e,t)=>{try{return Kx(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function va(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((s,i)=>i<3?parseInt(s,10):s):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function eh(e){e=Br(e);const{values:t}=e,n=t[0],r=t[1]/100,s=t[2]/100,i=r*Math.min(s,1-s),o=(u,d=(u+n/30)%12)=>s-i*Math.max(Math.min(d-3,9-d,1),-1);let a="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),va({type:a,values:l})}function xc(e){e=Br(e);let t=e.type==="hsl"||e.type==="hsla"?Br(eh(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function th(e,t){const n=xc(e),r=xc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function yn(e,t){return e=Br(e),t=vc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,va(e)}function xa(e,t,n){try{return yn(e,t)}catch{return e}}function _c(e,t){if(e=Br(e),t=vc(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return va(e)}function rt(e,t,n){try{return _c(e,t)}catch{return e}}function wc(e,t){if(e=Br(e),t=vc(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return va(e)}function st(e,t,n){try{return wc(e,t)}catch{return e}}function Zx(e,t=.15){return xc(e)>.5?_c(e,t):wc(e,t)}function _a(e,t,n){try{return Zx(e,t)}catch{return e}}function Is(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function Qx(e){const{prototype:t={}}=e;return!!t.isReactComponent}function nh(e,t,n,r,s){const i=e[t],o=s||t;if(i==null||typeof window>"u")return null;let a;const l=i.type;return typeof l=="function"&&!Qx(l)&&(a="Did you accidentally use a plain function component for an element instead?"),a!==void 0?new Error(`Invalid ${r} \`${o}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Ni=Is(c.element,nh);Ni.isRequired=Is(c.element.isRequired,nh);function Jx(e){const{prototype:t={}}=e;return!!t.isReactComponent}function e_(e,t,n,r,s){const i=e[t],o=s||t;if(i==null||typeof window>"u")return null;let a;return typeof i=="function"&&!Jx(i)&&(a="Did you accidentally provide a plain function component instead?"),a!==void 0?new Error(`Invalid ${r} \`${o}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Sc=Is(c.elementType,e_),t_="exact-prop: ​";function rh(e){return process.env.NODE_ENV==="production"?e:{...e,[t_]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}function ji(e,t,n,r,s){if(process.env.NODE_ENV==="production")return null;const i=e[t],o=s||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${o}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const gr=c.oneOfType([c.func,c.object]);function sh(...e){return e.reduce((t,n)=>n==null?t:function(...s){t.apply(this,s),n.apply(this,s)},()=>{})}function Tc(e,t=166){let n;function r(...s){const i=()=>{e.apply(this,s)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Dn(e){return e&&e.ownerDocument||document}function mr(e){return Dn(e).defaultView||window}function kc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let ih=0;function n_(e){const[t,n]=N.useState(e),r=e||t;return N.useEffect(()=>{t==null&&(ih+=1,n(`mui-${ih}`))},[t]),r}const oh={...N}.useId;function ah(e){if(oh!==void 0){const t=oh();return e??t}return n_(e)}function lh({controlled:e,default:t,name:n,state:r="value"}){const{current:s}=N.useRef(e!==void 0),[i,o]=N.useState(t),a=s?e:i;if(process.env.NODE_ENV!=="production"){N.useEffect(()=>{s!==(e!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${r} state of ${n} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
79
+ `))},[r,n,e]);const{current:u}=N.useRef(t);N.useEffect(()=>{!s&&!Object.is(u,t)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
80
+ `))},[JSON.stringify(t)])}const l=N.useCallback(u=>{s||o(u)},[]);return[a,l]}function Ns(e){const t=N.useRef(e);return Wr(()=>{t.current=e}),N.useRef((...n)=>(0,t.current)(...n)).current}function Ht(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{kc(n,t)})},e)}const ch={};function uh(e,t){const n=N.useRef(ch);return n.current===ch&&(n.current=e(t)),n}const r_=[];function s_(e){N.useEffect(e,r_)}class Oc{constructor(){G(this,"currentId",null);G(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});G(this,"disposeEffect",()=>this.clear)}static create(){return new Oc}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function dh(){const e=uh(Oc.create).current;return s_(e.disposeEffect),e}function fh(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
81
+ `))}return!1}function hh(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function i_(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function ph(e,t,n,r){const s=e[t];if(s==null||!Number.isInteger(s)){const i=i_(s);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function gh(e,t,...n){return e[t]===void 0?null:ph(e,t,...n)}function Cc(){return null}gh.isRequired=ph,Cc.isRequired=Cc;const mh=process.env.NODE_ENV==="production"?Cc:gh;function o_(e){return typeof e=="string"}function yh(e,t,n){return e===void 0||o_(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function bh(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function vh(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function xh(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:s,className:i}=e;if(!t){const p=ke(n==null?void 0:n.className,i,s==null?void 0:s.className,r==null?void 0:r.className),m={...n==null?void 0:n.style,...s==null?void 0:s.style,...r==null?void 0:r.style},y={...n,...s,...r};return p.length>0&&(y.className=p),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:void 0}}const o=bh({...s,...r}),a=vh(r),l=vh(s),u=t(o),d=ke(u==null?void 0:u.className,n==null?void 0:n.className,i,s==null?void 0:s.className,r==null?void 0:r.className),f={...u==null?void 0:u.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...r==null?void 0:r.style},h={...u,...n,...l,...a};return d.length>0&&(h.className=d),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:u.ref}}function _h(e,t,n){return typeof e=="function"?e(t,n):e}function wh(e){var f;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:s=!1,...i}=e,o=s?{}:_h(n,r),{props:a,internalRef:l}=xh({...i,externalSlotProps:o}),u=Ht(l,o==null?void 0:o.ref,(f=e.additionalProps)==null?void 0:f.ref);return yh(t,{...a,ref:u},r)}function Fi(e){var t;return parseInt(N.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const a_=N.createContext();process.env.NODE_ENV!=="production"&&(c.node,c.bool);const l_=()=>N.useContext(a_)??!1,c_=N.createContext(void 0);process.env.NODE_ENV!=="production"&&(c.node,c.object);function u_(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const s=t.components[n];return s.defaultProps?Ri(s.defaultProps,r):!s.styleOverrides&&!s.variants?Ri(s,r):r}function d_({props:e,name:t}){const n=N.useContext(c_);return u_({props:e,name:t,theme:{components:n}})}const Sh={theme:void 0};function f_(e){let t,n;return function(s){let i=t;return(i===void 0||s.theme!==n)&&(Sh.theme=s.theme,i=qf(e(Sh)),t=i,n=s.theme),i}}function h_(e=""){function t(...r){if(!r.length)return"";const s=r[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${s}${t(...r.slice(1))})`:`, ${s}`}return(r,...s)=>`var(--${e?`${e}-`:""}${r}${t(...s)})`}const Th=(e,t,n,r=[])=>{let s=e;t.forEach((i,o)=>{o===t.length-1?Array.isArray(s)?s[Number(i)]=n:s&&typeof s=="object"&&(s[i]=n):s&&typeof s=="object"&&(s[i]||(s[i]=r.includes(i)?[]:{}),s=s[i])})},p_=(e,t,n)=>{function r(s,i=[],o=[]){Object.entries(s).forEach(([a,l])=>{(!n||n&&!n([...i,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,a],Array.isArray(l)?[...o,a]:o):t([...i,a],l,o))})}r(e)},g_=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Mc(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},s={},i={},o={};return p_(e,(a,l,u)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const d=`--${n?`${n}-`:""}${a.join("-")}`,f=g_(a,l);Object.assign(s,{[d]:f}),Th(i,a,`var(${d})`,u),Th(o,a,`var(${d}, ${f})`,u)}},a=>a[0]==="vars"),{css:s,vars:i,varsWithDefaults:o}}function m_(e,t={}){const{getSelector:n=g,disableCssColorScheme:r,colorSchemeSelector:s}=t,{colorSchemes:i={},components:o,defaultColorScheme:a="light",...l}=e,{vars:u,css:d,varsWithDefaults:f}=Mc(l,t);let h=f;const p={},{[a]:m,...y}=i;if(Object.entries(y||{}).forEach(([S,T])=>{const{vars:_,css:C,varsWithDefaults:M}=Mc(T,t);h=qt(h,M),p[S]={css:C,vars:_}}),m){const{css:S,vars:T,varsWithDefaults:_}=Mc(m,t);h=qt(h,_),p[a]={css:S,vars:T}}function g(S,T){var C,M;let _=s;if(s==="class"&&(_=".%s"),s==="data"&&(_="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(_=`[${s}="%s"]`),S){if(_==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${((M=(C=i[S])==null?void 0:C.palette)==null?void 0:M.mode)||S})`]:{":root":T}};if(_)return e.defaultColorScheme===S?`:root, ${_.replace("%s",String(S))}`:_.replace("%s",String(S))}return":root"}return{vars:h,generateThemeVars:()=>{let S={...u};return Object.entries(p).forEach(([,{vars:T}])=>{S=qt(S,T)}),S},generateStyleSheets:()=>{var k,R;const S=[],T=e.defaultColorScheme||"light";function _(b,E){Object.keys(E).length&&S.push(typeof b=="string"?{[b]:{...E}}:b)}_(n(void 0,{...d}),d);const{[T]:C,...M}=p;if(C){const{css:b}=C,E=(R=(k=i[T])==null?void 0:k.palette)==null?void 0:R.mode,I=!r&&E?{colorScheme:E,...b}:{...b};_(n(T,{...I}),I)}return Object.entries(M).forEach(([b,{css:E}])=>{var j,O;const I=(O=(j=i[b])==null?void 0:j.palette)==null?void 0:O.mode,W=!r&&I?{colorScheme:I,...E}:{...E};_(n(b,{...W}),W)}),S}}}function y_(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const $i={black:"#000",white:"#fff"},b_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},js={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Fs={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Li={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},$s={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ls={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ws={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function kh(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:$i.white,default:$i.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const v_=kh();function Oh(){return{text:{primary:$i.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:$i.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Ch=Oh();function Mh(e,t,n,r){const s=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=wc(e.main,s):t==="dark"&&(e.dark=_c(e.main,i)))}function x_(e="light"){return e==="dark"?{main:$s[200],light:$s[50],dark:$s[400]}:{main:$s[700],light:$s[400],dark:$s[800]}}function __(e="light"){return e==="dark"?{main:js[200],light:js[50],dark:js[400]}:{main:js[500],light:js[300],dark:js[700]}}function w_(e="light"){return e==="dark"?{main:Fs[500],light:Fs[300],dark:Fs[700]}:{main:Fs[700],light:Fs[400],dark:Fs[800]}}function S_(e="light"){return e==="dark"?{main:Ls[400],light:Ls[300],dark:Ls[700]}:{main:Ls[700],light:Ls[500],dark:Ls[900]}}function T_(e="light"){return e==="dark"?{main:Ws[400],light:Ws[300],dark:Ws[700]}:{main:Ws[800],light:Ws[500],dark:Ws[900]}}function k_(e="light"){return e==="dark"?{main:Li[400],light:Li[300],dark:Li[700]}:{main:"#ed6c02",light:Li[500],dark:Li[900]}}function Ec(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...s}=e,i=e.primary||x_(t),o=e.secondary||__(t),a=e.error||w_(t),l=e.info||S_(t),u=e.success||T_(t),d=e.warning||k_(t);function f(y){const g=th(y,Ch.text.primary)>=n?Ch.text.primary:v_.text.primary;if(process.env.NODE_ENV!=="production"){const x=th(y,g);x<3&&console.error([`MUI: The contrast ratio of ${x}:1 for ${g} on ${y}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
82
+ `))}return g}const h=({color:y,name:g,mainShade:x=500,lightShade:w=300,darkShade:S=700})=>{if(y={...y},!y.main&&y[x]&&(y.main=y[x]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
83
+ The color object needs to have a \`main\` property or a \`${x}\` property.`:Hn(11,g?` (${g})`:"",x));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
84
+ \`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
85
+
86
+ Did you intend to use one of the following approaches?
87
+
88
+ import { green } from "@mui/material/colors";
89
+
90
+ const theme1 = createTheme({ palette: {
91
+ primary: green,
92
+ } });
93
+
94
+ const theme2 = createTheme({ palette: {
95
+ primary: { main: green[500] },
96
+ } });`:Hn(12,g?` (${g})`:"",JSON.stringify(y.main)));return Mh(y,"light",w,r),Mh(y,"dark",S,r),y.contrastText||(y.contrastText=f(y.main)),y};let p;return t==="light"?p=kh():t==="dark"&&(p=Oh()),process.env.NODE_ENV!=="production"&&(p||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),qt({common:{...$i},mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:a,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:u,name:"success"}),grey:b_,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r,...p},s)}function O_(e){const t={};return Object.entries(e).forEach(r=>{const[s,i]=r;typeof i=="object"&&(t[s]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function C_(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function M_(e){return Math.round(e*1e5)/1e5}const Eh={textTransform:"uppercase"},Dh='"Roboto", "Helvetica", "Arial", sans-serif';function E_(e,t){const{fontFamily:n=Dh,fontSize:r=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:o=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:u,pxToRem:d,...f}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=r/14,p=d||(g=>`${g/l*h}rem`),m=(g,x,w,S,T)=>({fontFamily:n,fontWeight:g,fontSize:p(x),lineHeight:w,...n===Dh?{letterSpacing:`${M_(S/x)}em`}:{},...T,...u}),y={h1:m(s,96,1.167,-1.5),h2:m(s,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(o,14,1.75,.4,Eh),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,Eh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qt({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:o,fontWeightBold:a,...y},f,{clone:!1})}const D_=.2,P_=.14,R_=.12;function mt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${D_})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${P_})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${R_})`].join(",")}const A_=["none",mt(0,2,1,-1,0,1,1,0,0,1,3,0),mt(0,3,1,-2,0,2,2,0,0,1,5,0),mt(0,3,3,-2,0,3,4,0,0,1,8,0),mt(0,2,4,-1,0,4,5,0,0,1,10,0),mt(0,3,5,-1,0,5,8,0,0,1,14,0),mt(0,3,5,-1,0,6,10,0,0,1,18,0),mt(0,4,5,-2,0,7,10,1,0,2,16,1),mt(0,5,5,-3,0,8,10,1,0,3,14,2),mt(0,5,6,-3,0,9,12,1,0,3,16,2),mt(0,6,6,-3,0,10,14,1,0,4,18,3),mt(0,6,7,-4,0,11,15,1,0,4,20,3),mt(0,7,8,-4,0,12,17,2,0,5,22,4),mt(0,7,8,-4,0,13,19,2,0,5,24,4),mt(0,7,9,-4,0,14,21,2,0,5,26,4),mt(0,8,9,-5,0,15,22,2,0,6,28,5),mt(0,8,10,-5,0,16,24,2,0,6,30,5),mt(0,8,11,-5,0,17,26,2,0,6,32,5),mt(0,9,11,-5,0,18,28,2,0,7,34,6),mt(0,9,12,-6,0,19,29,2,0,7,36,6),mt(0,10,13,-6,0,20,31,3,0,8,38,7),mt(0,10,13,-6,0,21,33,3,0,8,40,7),mt(0,10,14,-6,0,22,35,3,0,8,42,7),mt(0,11,14,-7,0,23,36,3,0,9,44,8),mt(0,11,15,-7,0,24,38,3,0,9,46,8)],I_={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},N_={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ph(e){return`${Math.round(e)}ms`}function j_(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function F_(e){const t={...I_,...e.easing},n={...N_,...e.duration};return{getAutoHeightDuration:j_,create:(s=["all"],i={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:l=0,...u}=i;if(process.env.NODE_ENV!=="production"){const d=h=>typeof h=="string",f=h=>!Number.isNaN(parseFloat(h));!d(s)&&!Array.isArray(s)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(o)&&!d(o)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),d(a)||console.error('MUI: Argument "easing" must be a string.'),!f(l)&&!d(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
97
+ `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(s)?s:[s]).map(d=>`${d} ${typeof o=="string"?o:Ph(o)} ${a} ${typeof l=="string"?l:Ph(l)}`).join(",")},...e,easing:t,duration:n}}const $_={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function L_(e){return Vn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Rh(e={}){const t={...e};function n(r){const s=Object.entries(r);for(let i=0;i<s.length;i++){const[o,a]=s[i];!L_(a)||o.startsWith("unstable_")?delete r[o]:Vn(a)&&(r[o]={...a},n(r[o]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
98
+
99
+ const theme = ${JSON.stringify(t,null,2)};
100
+
101
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
102
+ theme.transitions = createTransitions(theme.transitions || {});
103
+
104
+ export default theme;`}function Dc(e={},...t){const{breakpoints:n,mixins:r={},spacing:s,palette:i={},transitions:o={},typography:a={},shape:l,...u}=e;if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Hn(20));const d=Ec(i),f=pa(e);let h=qt(f,{mixins:C_(f.breakpoints,r),palette:d,shadows:A_.slice(),typography:E_(d,a),transitions:F_(o),zIndex:{...$_}});if(h=qt(h,u),h=t.reduce((p,m)=>qt(p,m),h),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(y,g)=>{let x;for(x in y){const w=y[x];if(p.includes(x)&&Object.keys(w).length>0){if(process.env.NODE_ENV!=="production"){const S=Ze("",x);console.error([`MUI: The \`${g}\` component increases the CSS specificity of the \`${x}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:w}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
105
+ `))}y[x]={}}}};Object.keys(h.components).forEach(y=>{const g=h.components[y].styleOverrides;g&&y.startsWith("Mui")&&m(g,y)})}return h.unstable_sxConfig={...Pi,...u==null?void 0:u.unstable_sxConfig},h.unstable_sx=function(m){return ts({sx:m,theme:this})},h.toRuntimeSource=Rh,h}function Pc(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const W_=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Pc(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Ah(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Ih(e){return e==="dark"?W_:[]}function B_(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...s}=e,i=Ec(t);return{palette:i,opacity:{...Ah(i.mode),...n},overlays:r||Ih(i.mode),...s}}function z_(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Y_=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],V_=e=>(t,n)=>{const r=e.rootSelector||":root",s=e.colorSchemeSelector;let i=s;if(s==="class"&&(i=".%s"),s==="data"&&(i="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(i=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const o={};return Y_(e.cssVarPrefix).forEach(a=>{o[a]=n[a],delete n[a]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function H_(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Z(e,t,n){!e[t]&&n&&(e[t]=n)}function Wi(e){return typeof e!="string"||!e.startsWith("hsl")?e:eh(e)}function yr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ii(Wi(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
106
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function U_(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Un=e=>{try{return e()}catch{}},q_=(e="mui")=>h_(e);function Rc(e,t,n,r){if(!t)return;t=t===!0?{}:t;const s=r==="dark"?"dark":"light";if(!n){e[r]=B_({...t,palette:{mode:s,...t==null?void 0:t.palette}});return}const{palette:i,...o}=Dc({...n,palette:{mode:s,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...Ah(s),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Ih(s)},o}function G_(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:s=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:o=z_,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!=="light"?"light":d),h=q_(i),{[f]:p,light:m,dark:y,...g}=n,x={...g};let w=p;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(w=!0),!w)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:Hn(21,f));const S=Rc(x,w,u,f);m&&!x.light&&Rc(x,m,void 0,"light"),y&&!x.dark&&Rc(x,y,void 0,"dark");let T={defaultColorScheme:f,...S,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:l,getCssVar:h,colorSchemes:x,font:{...O_(S.typography),...S.font},spacing:U_(u.spacing)};Object.keys(T.colorSchemes).forEach(R=>{const b=T.colorSchemes[R].palette,E=I=>{const W=I.split("-"),j=W[1],O=W[2];return h(I,b[j][O])};if(b.mode==="light"&&(Z(b.common,"background","#fff"),Z(b.common,"onBackground","#000")),b.mode==="dark"&&(Z(b.common,"background","#000"),Z(b.common,"onBackground","#fff")),H_(b,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),b.mode==="light"){Z(b.Alert,"errorColor",rt(b.error.light,.6)),Z(b.Alert,"infoColor",rt(b.info.light,.6)),Z(b.Alert,"successColor",rt(b.success.light,.6)),Z(b.Alert,"warningColor",rt(b.warning.light,.6)),Z(b.Alert,"errorFilledBg",E("palette-error-main")),Z(b.Alert,"infoFilledBg",E("palette-info-main")),Z(b.Alert,"successFilledBg",E("palette-success-main")),Z(b.Alert,"warningFilledBg",E("palette-warning-main")),Z(b.Alert,"errorFilledColor",Un(()=>b.getContrastText(b.error.main))),Z(b.Alert,"infoFilledColor",Un(()=>b.getContrastText(b.info.main))),Z(b.Alert,"successFilledColor",Un(()=>b.getContrastText(b.success.main))),Z(b.Alert,"warningFilledColor",Un(()=>b.getContrastText(b.warning.main))),Z(b.Alert,"errorStandardBg",st(b.error.light,.9)),Z(b.Alert,"infoStandardBg",st(b.info.light,.9)),Z(b.Alert,"successStandardBg",st(b.success.light,.9)),Z(b.Alert,"warningStandardBg",st(b.warning.light,.9)),Z(b.Alert,"errorIconColor",E("palette-error-main")),Z(b.Alert,"infoIconColor",E("palette-info-main")),Z(b.Alert,"successIconColor",E("palette-success-main")),Z(b.Alert,"warningIconColor",E("palette-warning-main")),Z(b.AppBar,"defaultBg",E("palette-grey-100")),Z(b.Avatar,"defaultBg",E("palette-grey-400")),Z(b.Button,"inheritContainedBg",E("palette-grey-300")),Z(b.Button,"inheritContainedHoverBg",E("palette-grey-A100")),Z(b.Chip,"defaultBorder",E("palette-grey-400")),Z(b.Chip,"defaultAvatarColor",E("palette-grey-700")),Z(b.Chip,"defaultIconColor",E("palette-grey-700")),Z(b.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Z(b.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Z(b.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Z(b.LinearProgress,"primaryBg",st(b.primary.main,.62)),Z(b.LinearProgress,"secondaryBg",st(b.secondary.main,.62)),Z(b.LinearProgress,"errorBg",st(b.error.main,.62)),Z(b.LinearProgress,"infoBg",st(b.info.main,.62)),Z(b.LinearProgress,"successBg",st(b.success.main,.62)),Z(b.LinearProgress,"warningBg",st(b.warning.main,.62)),Z(b.Skeleton,"bg",`rgba(${E("palette-text-primaryChannel")} / 0.11)`),Z(b.Slider,"primaryTrack",st(b.primary.main,.62)),Z(b.Slider,"secondaryTrack",st(b.secondary.main,.62)),Z(b.Slider,"errorTrack",st(b.error.main,.62)),Z(b.Slider,"infoTrack",st(b.info.main,.62)),Z(b.Slider,"successTrack",st(b.success.main,.62)),Z(b.Slider,"warningTrack",st(b.warning.main,.62));const I=_a(b.background.default,.8);Z(b.SnackbarContent,"bg",I),Z(b.SnackbarContent,"color",Un(()=>b.getContrastText(I))),Z(b.SpeedDialAction,"fabHoverBg",_a(b.background.paper,.15)),Z(b.StepConnector,"border",E("palette-grey-400")),Z(b.StepContent,"border",E("palette-grey-400")),Z(b.Switch,"defaultColor",E("palette-common-white")),Z(b.Switch,"defaultDisabledColor",E("palette-grey-100")),Z(b.Switch,"primaryDisabledColor",st(b.primary.main,.62)),Z(b.Switch,"secondaryDisabledColor",st(b.secondary.main,.62)),Z(b.Switch,"errorDisabledColor",st(b.error.main,.62)),Z(b.Switch,"infoDisabledColor",st(b.info.main,.62)),Z(b.Switch,"successDisabledColor",st(b.success.main,.62)),Z(b.Switch,"warningDisabledColor",st(b.warning.main,.62)),Z(b.TableCell,"border",st(xa(b.divider,1),.88)),Z(b.Tooltip,"bg",xa(b.grey[700],.92))}if(b.mode==="dark"){Z(b.Alert,"errorColor",st(b.error.light,.6)),Z(b.Alert,"infoColor",st(b.info.light,.6)),Z(b.Alert,"successColor",st(b.success.light,.6)),Z(b.Alert,"warningColor",st(b.warning.light,.6)),Z(b.Alert,"errorFilledBg",E("palette-error-dark")),Z(b.Alert,"infoFilledBg",E("palette-info-dark")),Z(b.Alert,"successFilledBg",E("palette-success-dark")),Z(b.Alert,"warningFilledBg",E("palette-warning-dark")),Z(b.Alert,"errorFilledColor",Un(()=>b.getContrastText(b.error.dark))),Z(b.Alert,"infoFilledColor",Un(()=>b.getContrastText(b.info.dark))),Z(b.Alert,"successFilledColor",Un(()=>b.getContrastText(b.success.dark))),Z(b.Alert,"warningFilledColor",Un(()=>b.getContrastText(b.warning.dark))),Z(b.Alert,"errorStandardBg",rt(b.error.light,.9)),Z(b.Alert,"infoStandardBg",rt(b.info.light,.9)),Z(b.Alert,"successStandardBg",rt(b.success.light,.9)),Z(b.Alert,"warningStandardBg",rt(b.warning.light,.9)),Z(b.Alert,"errorIconColor",E("palette-error-main")),Z(b.Alert,"infoIconColor",E("palette-info-main")),Z(b.Alert,"successIconColor",E("palette-success-main")),Z(b.Alert,"warningIconColor",E("palette-warning-main")),Z(b.AppBar,"defaultBg",E("palette-grey-900")),Z(b.AppBar,"darkBg",E("palette-background-paper")),Z(b.AppBar,"darkColor",E("palette-text-primary")),Z(b.Avatar,"defaultBg",E("palette-grey-600")),Z(b.Button,"inheritContainedBg",E("palette-grey-800")),Z(b.Button,"inheritContainedHoverBg",E("palette-grey-700")),Z(b.Chip,"defaultBorder",E("palette-grey-700")),Z(b.Chip,"defaultAvatarColor",E("palette-grey-300")),Z(b.Chip,"defaultIconColor",E("palette-grey-300")),Z(b.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Z(b.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Z(b.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Z(b.LinearProgress,"primaryBg",rt(b.primary.main,.5)),Z(b.LinearProgress,"secondaryBg",rt(b.secondary.main,.5)),Z(b.LinearProgress,"errorBg",rt(b.error.main,.5)),Z(b.LinearProgress,"infoBg",rt(b.info.main,.5)),Z(b.LinearProgress,"successBg",rt(b.success.main,.5)),Z(b.LinearProgress,"warningBg",rt(b.warning.main,.5)),Z(b.Skeleton,"bg",`rgba(${E("palette-text-primaryChannel")} / 0.13)`),Z(b.Slider,"primaryTrack",rt(b.primary.main,.5)),Z(b.Slider,"secondaryTrack",rt(b.secondary.main,.5)),Z(b.Slider,"errorTrack",rt(b.error.main,.5)),Z(b.Slider,"infoTrack",rt(b.info.main,.5)),Z(b.Slider,"successTrack",rt(b.success.main,.5)),Z(b.Slider,"warningTrack",rt(b.warning.main,.5));const I=_a(b.background.default,.98);Z(b.SnackbarContent,"bg",I),Z(b.SnackbarContent,"color",Un(()=>b.getContrastText(I))),Z(b.SpeedDialAction,"fabHoverBg",_a(b.background.paper,.15)),Z(b.StepConnector,"border",E("palette-grey-600")),Z(b.StepContent,"border",E("palette-grey-600")),Z(b.Switch,"defaultColor",E("palette-grey-300")),Z(b.Switch,"defaultDisabledColor",E("palette-grey-600")),Z(b.Switch,"primaryDisabledColor",rt(b.primary.main,.55)),Z(b.Switch,"secondaryDisabledColor",rt(b.secondary.main,.55)),Z(b.Switch,"errorDisabledColor",rt(b.error.main,.55)),Z(b.Switch,"infoDisabledColor",rt(b.info.main,.55)),Z(b.Switch,"successDisabledColor",rt(b.success.main,.55)),Z(b.Switch,"warningDisabledColor",rt(b.warning.main,.55)),Z(b.TableCell,"border",rt(xa(b.divider,1),.68)),Z(b.Tooltip,"bg",xa(b.grey[700],.92))}yr(b.background,"default"),yr(b.background,"paper"),yr(b.common,"background"),yr(b.common,"onBackground"),yr(b,"divider"),Object.keys(b).forEach(I=>{const W=b[I];I!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&Z(b[I],"mainChannel",Ii(Wi(W.main))),W.light&&Z(b[I],"lightChannel",Ii(Wi(W.light))),W.dark&&Z(b[I],"darkChannel",Ii(Wi(W.dark))),W.contrastText&&Z(b[I],"contrastTextChannel",Ii(Wi(W.contrastText))),I==="text"&&(yr(b[I],"primary"),yr(b[I],"secondary")),I==="action"&&(W.active&&yr(b[I],"active"),W.selected&&yr(b[I],"selected")))})}),T=t.reduce((R,b)=>qt(R,b),T);const _={prefix:i,disableCssColorScheme:s,shouldSkipGeneratingVar:o,getSelector:V_(T)},{vars:C,generateThemeVars:M,generateStyleSheets:k}=m_(T,_);return T.vars=C,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([R,b])=>{T[R]=b}),T.generateThemeVars=M,T.generateStyleSheets=k,T.generateSpacing=function(){return Uf(u.spacing,gc(this))},T.getColorSchemeSelector=y_(a),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=o,T.unstable_sxConfig={...Pi,...u==null?void 0:u.unstable_sxConfig},T.unstable_sx=function(b){return ts({sx:b,theme:this})},T.toRuntimeSource=Rh,T}function Nh(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ec({...n===!0?{}:n.palette,mode:t})})}function jh(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...o}=e,a=i||"light",l=s==null?void 0:s[a],u={...s,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Dc(e,...t);let d=n;"palette"in e||u[a]&&(u[a]!==!0?d=u[a].palette:a==="dark"&&(d={mode:"dark"}));const f=Dc({...e,palette:d},...t);return f.defaultColorScheme=a,f.colorSchemes=u,f.palette.mode==="light"&&(f.colorSchemes.light={...u.light!==!0&&u.light,palette:f.palette},Nh(f,"dark",u.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:f.palette},Nh(f,"light",u.light)),f}return!n&&!("light"in u)&&a==="light"&&(u.light=!0),G_({...o,colorSchemes:u,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const Ac=jh();function wa(){const e=Ai(Ac);return process.env.NODE_ENV!=="production"&&N.useDebugValue(e),e[ba]||e}function Fh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const bn=e=>Fh(e)&&e!=="classes",ve=Xf({themeId:ba,defaultTheme:Ac,rootShouldForwardProp:bn});process.env.NODE_ENV!=="production"&&(c.node,c.object.isRequired);function it(e){return d_(e)}const oe=Hx({createStyledComponent:ve("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid2",useThemeProps:e=>it({props:e,name:"MuiGrid2"}),useTheme:wa});if(process.env.NODE_ENV!=="production"&&(oe.propTypes={children:c.node,columns:c.oneOfType([c.arrayOf(c.number),c.number,c.object]),columnSpacing:c.oneOfType([c.arrayOf(c.oneOfType([c.number,c.string])),c.number,c.object,c.string]),container:c.bool,direction:c.oneOfType([c.oneOf(["column-reverse","column","row-reverse","row"]),c.arrayOf(c.oneOf(["column-reverse","column","row-reverse","row"])),c.object]),offset:c.oneOfType([c.string,c.number,c.arrayOf(c.oneOfType([c.string,c.number])),c.object]),rowSpacing:c.oneOfType([c.arrayOf(c.oneOfType([c.number,c.string])),c.number,c.object,c.string]),size:c.oneOfType([c.string,c.bool,c.number,c.arrayOf(c.oneOfType([c.string,c.bool,c.number])),c.object]),spacing:c.oneOfType([c.arrayOf(c.oneOfType([c.number,c.string])),c.number,c.object,c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),unstable_level:c.number,wrap:c.oneOf(["nowrap","wrap-reverse","wrap"])}),process.env.NODE_ENV!=="production"){const e=oe,t=Ux("Grid2",e);e.propTypes={...e.propTypes,direction:t("container"),spacing:t("container"),wrap:t("container")}}/*!
107
+ * @kurkle/color v0.3.4
108
+ * https://github.com/kurkle/color#readme
109
+ * (c) 2024 Jukka Kurkela
110
+ * Released under the MIT License
111
+ */function Bi(e){return e+.5|0}const zr=(e,t,n)=>Math.max(Math.min(e,n),t);function zi(e){return zr(Bi(e*2.55),0,255)}function Yr(e){return zr(Bi(e*255),0,255)}function br(e){return zr(Bi(e/2.55)/100,0,1)}function $h(e){return zr(Bi(e*100),0,100)}const vn={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},Ic=[..."0123456789ABCDEF"],X_=e=>Ic[e&15],K_=e=>Ic[(e&240)>>4]+Ic[e&15],Sa=e=>(e&240)>>4===(e&15),Z_=e=>Sa(e.r)&&Sa(e.g)&&Sa(e.b)&&Sa(e.a);function Q_(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&vn[e[1]]*17,g:255&vn[e[2]]*17,b:255&vn[e[3]]*17,a:t===5?vn[e[4]]*17:255}:(t===7||t===9)&&(n={r:vn[e[1]]<<4|vn[e[2]],g:vn[e[3]]<<4|vn[e[4]],b:vn[e[5]]<<4|vn[e[6]],a:t===9?vn[e[7]]<<4|vn[e[8]]:255})),n}const J_=(e,t)=>e<255?t(e):"";function ew(e){var t=Z_(e)?X_:K_;return e?"#"+t(e.r)+t(e.g)+t(e.b)+J_(e.a,t):void 0}const tw=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Lh(e,t,n){const r=t*Math.min(n,1-n),s=(i,o=(i+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[s(0),s(8),s(4)]}function nw(e,t,n){const r=(s,i=(s+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function rw(e,t,n){const r=Lh(e,1,.5);let s;for(t+n>1&&(s=1/(t+n),t*=s,n*=s),s=0;s<3;s++)r[s]*=1-t-n,r[s]+=t;return r}function sw(e,t,n,r,s){return e===s?(t-n)/r+(t<n?6:0):t===s?(n-e)/r+2:(e-t)/r+4}function Nc(e){const n=e.r/255,r=e.g/255,s=e.b/255,i=Math.max(n,r,s),o=Math.min(n,r,s),a=(i+o)/2;let l,u,d;return i!==o&&(d=i-o,u=a>.5?d/(2-i-o):d/(i+o),l=sw(n,r,s,d,i),l=l*60+.5),[l|0,u||0,a]}function jc(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Yr)}function Fc(e,t,n){return jc(Lh,e,t,n)}function iw(e,t,n){return jc(rw,e,t,n)}function ow(e,t,n){return jc(nw,e,t,n)}function Wh(e){return(e%360+360)%360}function aw(e){const t=tw.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?zi(+t[5]):Yr(+t[5]));const s=Wh(+t[2]),i=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?r=iw(s,i,o):t[1]==="hsv"?r=ow(s,i,o):r=Fc(s,i,o),{r:r[0],g:r[1],b:r[2],a:n}}function lw(e,t){var n=Nc(e);n[0]=Wh(n[0]+t),n=Fc(n),e.r=n[0],e.g=n[1],e.b=n[2]}function cw(e){if(!e)return;const t=Nc(e),n=t[0],r=$h(t[1]),s=$h(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${s}%, ${br(e.a)})`:`hsl(${n}, ${r}%, ${s}%)`}const Bh={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"},zh={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 uw(){const e={},t=Object.keys(zh),n=Object.keys(Bh);let r,s,i,o,a;for(r=0;r<t.length;r++){for(o=a=t[r],s=0;s<n.length;s++)i=n[s],a=a.replace(i,Bh[i]);i=parseInt(zh[o],16),e[a]=[i>>16&255,i>>8&255,i&255]}return e}let Ta;function dw(e){Ta||(Ta=uw(),Ta.transparent=[0,0,0,0]);const t=Ta[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const fw=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function hw(e){const t=fw.exec(e);let n=255,r,s,i;if(t){if(t[7]!==r){const o=+t[7];n=t[8]?zi(o):zr(o*255,0,255)}return r=+t[1],s=+t[3],i=+t[5],r=255&(t[2]?zi(r):zr(r,0,255)),s=255&(t[4]?zi(s):zr(s,0,255)),i=255&(t[6]?zi(i):zr(i,0,255)),{r,g:s,b:i,a:n}}}function pw(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${br(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const $c=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Bs=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function gw(e,t,n){const r=Bs(br(e.r)),s=Bs(br(e.g)),i=Bs(br(e.b));return{r:Yr($c(r+n*(Bs(br(t.r))-r))),g:Yr($c(s+n*(Bs(br(t.g))-s))),b:Yr($c(i+n*(Bs(br(t.b))-i))),a:e.a+n*(t.a-e.a)}}function ka(e,t,n){if(e){let r=Nc(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=Fc(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function Yh(e,t){return e&&Object.assign(t||{},e)}function Vh(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=Yr(e[3]))):(t=Yh(e,{r:0,g:0,b:0,a:1}),t.a=Yr(t.a)),t}function mw(e){return e.charAt(0)==="r"?hw(e):aw(e)}class Yi{constructor(t){if(t instanceof Yi)return t;const n=typeof t;let r;n==="object"?r=Vh(t):n==="string"&&(r=Q_(t)||dw(t)||mw(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=Yh(this._rgb);return t&&(t.a=br(t.a)),t}set rgb(t){this._rgb=Vh(t)}rgbString(){return this._valid?pw(this._rgb):void 0}hexString(){return this._valid?ew(this._rgb):void 0}hslString(){return this._valid?cw(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,s=t.rgb;let i;const o=n===i?.5:n,a=2*o-1,l=r.a-s.a,u=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;i=1-u,r.r=255&u*r.r+i*s.r+.5,r.g=255&u*r.g+i*s.g+.5,r.b=255&u*r.b+i*s.b+.5,r.a=o*r.a+(1-o)*s.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=gw(this._rgb,t._rgb,n)),this}clone(){return new Yi(this.rgb)}alpha(t){return this._rgb.a=Yr(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Bi(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 ka(this._rgb,2,t),this}darken(t){return ka(this._rgb,2,-t),this}saturate(t){return ka(this._rgb,1,t),this}desaturate(t){return ka(this._rgb,1,-t),this}rotate(t){return lw(this._rgb,t),this}}/*!
112
+ * Chart.js v4.4.7
113
+ * https://www.chartjs.org
114
+ * (c) 2024 Chart.js Contributors
115
+ * Released under the MIT License
116
+ */function vr(){}const yw=(()=>{let e=0;return()=>e++})();function lt(e){return e==null}function Nt(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 Ne(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function xn(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function qn(e,t){return xn(e)?e:t}function Ce(e,t){return typeof e>"u"?t:e}const bw=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,Hh=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function ct(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Qe(e,t,n,r){let s,i,o;if(Nt(e))for(i=e.length,s=0;s<i;s++)t.call(n,e[s],s);else if(Ne(e))for(o=Object.keys(e),i=o.length,s=0;s<i;s++)t.call(n,e[o[s]],o[s])}function Oa(e,t){let n,r,s,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(s=e[n],i=t[n],s.datasetIndex!==i.datasetIndex||s.index!==i.index)return!1;return!0}function Ca(e){if(Nt(e))return e.map(Ca);if(Ne(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let s=0;for(;s<r;++s)t[n[s]]=Ca(e[n[s]]);return t}return e}function Uh(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function vw(e,t,n,r){if(!Uh(e))return;const s=t[e],i=n[e];Ne(s)&&Ne(i)?Vi(s,i,r):t[e]=Ca(i)}function Vi(e,t,n){const r=Nt(t)?t:[t],s=r.length;if(!Ne(e))return e;n=n||{};const i=n.merger||vw;let o;for(let a=0;a<s;++a){if(o=r[a],!Ne(o))continue;const l=Object.keys(o);for(let u=0,d=l.length;u<d;++u)i(l[u],e,o,n)}return e}function Hi(e,t){return Vi(e,t,{merger:xw})}function xw(e,t,n){if(!Uh(e))return;const r=t[e],s=n[e];Ne(r)&&Ne(s)?Hi(r,s):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Ca(s))}const qh={"":e=>e,x:e=>e.x,y:e=>e.y};function _w(e){const t=e.split("."),n=[];let r="";for(const s of t)r+=s,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function ww(e){const t=_w(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function ns(e,t){return(qh[t]||(qh[t]=ww(t)))(e)}function Lc(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Ui=e=>typeof e<"u",Vr=e=>typeof e=="function",Gh=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function Sw(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const _t=Math.PI,wt=2*_t,Tw=wt+_t,Ma=Number.POSITIVE_INFINITY,kw=_t/180,jt=_t/2,rs=_t/4,Xh=_t*2/3,Wc=Math.log10,Gn=Math.sign;function qi(e,t,n){return Math.abs(e-t)<n}function Kh(e){const t=Math.round(e);e=qi(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Wc(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function Ow(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((s,i)=>s-i).pop(),t}function Gi(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Cw(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function Mw(e,t,n){let r,s,i;for(r=0,s=e.length;r<s;r++)i=e[r][n],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}function xr(e){return e*(_t/180)}function Ew(e){return e*(180/_t)}function Zh(e){if(!xn(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Qh(e,t){const n=t.x-e.x,r=t.y-e.y,s=Math.sqrt(n*n+r*r);let i=Math.atan2(r,n);return i<-.5*_t&&(i+=wt),{angle:i,distance:s}}function Bc(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Dw(e,t){return(e-t+Tw)%wt-_t}function Hr(e){return(e%wt+wt)%wt}function Xi(e,t,n,r){const s=Hr(e),i=Hr(t),o=Hr(n),a=Hr(i-s),l=Hr(o-s),u=Hr(s-i),d=Hr(s-o);return s===i||s===o||r&&i===o||a>l&&u<d}function Gt(e,t,n){return Math.max(t,Math.min(n,e))}function Pw(e){return Gt(e,-32768,32767)}function Ur(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function zc(e,t,n){n=n||(o=>e[o]<t);let r=e.length-1,s=0,i;for(;r-s>1;)i=s+r>>1,n(i)?s=i:r=i;return{lo:s,hi:r}}const ss=(e,t,n,r)=>zc(e,n,r?s=>{const i=e[s][t];return i<n||i===n&&e[s+1][t]===n}:s=>e[s][t]<n),Rw=(e,t,n)=>zc(e,n,r=>e[r][t]>=n);function Aw(e,t,n){let r=0,s=e.length;for(;r<s&&e[r]<t;)r++;for(;s>r&&e[s-1]>n;)s--;return r>0||s<e.length?e.slice(r,s):e}const Jh=["push","pop","shift","splice","unshift"];function Iw(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Jh.forEach(n=>{const r="_onData"+Lc(n),s=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...i){const o=s.apply(this,i);return e._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...i)}),o}})})}function ep(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,s=r.indexOf(t);s!==-1&&r.splice(s,1),!(r.length>0)&&(Jh.forEach(i=>{delete e[i]}),delete e._chartjs)}function tp(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const np=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function rp(e,t){let n=[],r=!1;return function(...s){n=s,r||(r=!0,np.call(window,()=>{r=!1,e.apply(t,n)}))}}function Nw(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const Yc=e=>e==="start"?"left":e==="end"?"right":"center",Xt=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,jw=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function Fw(e,t,n){const r=t.length;let s=0,i=r;if(e._sorted){const{iScale:o,_parsed:a}=e,l=o.axis,{min:u,max:d,minDefined:f,maxDefined:h}=o.getUserBounds();f&&(s=Gt(Math.min(ss(a,l,u).lo,n?r:ss(t,l,o.getPixelForValue(u)).lo),0,r-1)),h?i=Gt(Math.max(ss(a,o.axis,d,!0).hi+1,n?0:ss(t,l,o.getPixelForValue(d),!0).hi+1),s,r)-s:i=r-s}return{start:s,count:i}}function $w(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,s={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=s,!0;const i=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,s),i}const Ea=e=>e===0||e===1,sp=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*wt/n)),ip=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*wt/n)+1,Ki={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*jt)+1,easeOutSine:e=>Math.sin(e*jt),easeInOutSine:e=>-.5*(Math.cos(_t*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=>Ea(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=>Ea(e)?e:sp(e,.075,.3),easeOutElastic:e=>Ea(e)?e:ip(e,.075,.3),easeInOutElastic(e){return Ea(e)?e:e<.5?.5*sp(e*2,.1125,.45):.5+.5*ip(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-Ki.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?Ki.easeInBounce(e*2)*.5:Ki.easeOutBounce(e*2-1)*.5+.5};function Vc(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function op(e){return Vc(e)?e:new Yi(e)}function Hc(e){return Vc(e)?e:new Yi(e).saturate(.5).darken(.1).hexString()}const Lw=["x","y","borderWidth","radius","tension"],Ww=["color","borderColor","backgroundColor"];function Bw(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:Ww},numbers:{type:"number",properties:Lw}}),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 zw(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const ap=new Map;function Yw(e,t){t=t||{};const n=e+JSON.stringify(t);let r=ap.get(n);return r||(r=new Intl.NumberFormat(e,t),ap.set(n,r)),r}function Uc(e,t,n){return Yw(t,n).format(e)}const lp={values(e){return Nt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let s,i=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)&&(s="scientific"),i=Vw(e,n)}const o=Wc(Math.abs(i)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Uc(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(Wc(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?lp.numeric.call(this,e,t,n):""}};function Vw(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 cp={formatters:lp};function Hw(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:cp.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 is=Object.create(null),qc=Object.create(null);function Zi(e,t){if(!t)return e;const n=t.split(".");for(let r=0,s=n.length;r<s;++r){const i=n[r];e=e[i]||(e[i]=Object.create(null))}return e}function Gc(e,t,n){return typeof t=="string"?Vi(Zi(e,t),n):Vi(Zi(e,""),t)}class Uw{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,s)=>Hc(s.backgroundColor),this.hoverBorderColor=(r,s)=>Hc(s.borderColor),this.hoverColor=(r,s)=>Hc(s.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 Gc(this,t,n)}get(t){return Zi(this,t)}describe(t,n){return Gc(qc,t,n)}override(t,n){return Gc(is,t,n)}route(t,n,r,s){const i=Zi(this,t),o=Zi(this,r),a="_"+n;Object.defineProperties(i,{[a]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],u=o[s];return Ne(l)?Object.assign({},u,l):Ce(l,u)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var Ct=new Uw({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Bw,zw,Hw]);function qw(e){return!e||lt(e.size)||lt(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function up(e,t,n,r,s){let i=t[s];return i||(i=t[s]=e.measureText(s).width,n.push(s)),i>r&&(r=i),r}function os(e,t,n){const r=e.currentDevicePixelRatio,s=n!==0?Math.max(n/2,.5):0;return Math.round((t-s)*r)/r+s}function dp(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Xc(e,t,n,r){fp(e,t,n,r,null)}function fp(e,t,n,r,s){let i,o,a,l,u,d,f,h;const p=t.pointStyle,m=t.rotation,y=t.radius;let g=(m||0)*kw;if(p&&typeof p=="object"&&(i=p.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(g),e.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),e.restore();return}if(!(isNaN(y)||y<=0)){switch(e.beginPath(),p){default:s?e.ellipse(n,r,s/2,y,0,0,wt):e.arc(n,r,y,0,wt),e.closePath();break;case"triangle":d=s?s/2:y,e.moveTo(n+Math.sin(g)*d,r-Math.cos(g)*y),g+=Xh,e.lineTo(n+Math.sin(g)*d,r-Math.cos(g)*y),g+=Xh,e.lineTo(n+Math.sin(g)*d,r-Math.cos(g)*y),e.closePath();break;case"rectRounded":u=y*.516,l=y-u,o=Math.cos(g+rs)*l,f=Math.cos(g+rs)*(s?s/2-u:l),a=Math.sin(g+rs)*l,h=Math.sin(g+rs)*(s?s/2-u:l),e.arc(n-f,r-a,u,g-_t,g-jt),e.arc(n+h,r-o,u,g-jt,g),e.arc(n+f,r+a,u,g,g+jt),e.arc(n-h,r+o,u,g+jt,g+_t),e.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*y,d=s?s/2:l,e.rect(n-d,r-l,2*d,2*l);break}g+=rs;case"rectRot":f=Math.cos(g)*(s?s/2:y),o=Math.cos(g)*y,a=Math.sin(g)*y,h=Math.sin(g)*(s?s/2:y),e.moveTo(n-f,r-a),e.lineTo(n+h,r-o),e.lineTo(n+f,r+a),e.lineTo(n-h,r+o),e.closePath();break;case"crossRot":g+=rs;case"cross":f=Math.cos(g)*(s?s/2:y),o=Math.cos(g)*y,a=Math.sin(g)*y,h=Math.sin(g)*(s?s/2:y),e.moveTo(n-f,r-a),e.lineTo(n+f,r+a),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o);break;case"star":f=Math.cos(g)*(s?s/2:y),o=Math.cos(g)*y,a=Math.sin(g)*y,h=Math.sin(g)*(s?s/2:y),e.moveTo(n-f,r-a),e.lineTo(n+f,r+a),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o),g+=rs,f=Math.cos(g)*(s?s/2:y),o=Math.cos(g)*y,a=Math.sin(g)*y,h=Math.sin(g)*(s?s/2:y),e.moveTo(n-f,r-a),e.lineTo(n+f,r+a),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o);break;case"line":o=s?s/2:Math.cos(g)*y,a=Math.sin(g)*y,e.moveTo(n-o,r-a),e.lineTo(n+o,r+a);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(g)*(s?s/2:y),r+Math.sin(g)*y);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Qi(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 Kc(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Zc(e){e.restore()}function Gw(e,t,n,r,s){if(!t)return e.lineTo(n.x,n.y);if(s==="middle"){const i=(t.x+n.x)/2;e.lineTo(i,t.y),e.lineTo(i,n.y)}else s==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function Xw(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 Kw(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),lt(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 Zw(e,t,n,r,s){if(s.strikethrough||s.underline){const i=e.measureText(r),o=t-i.actualBoundingBoxLeft,a=t+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,u=n+i.actualBoundingBoxDescent,d=s.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=s.decorationWidth||2,e.moveTo(o,d),e.lineTo(a,d),e.stroke()}}function Qw(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Ji(e,t,n,r,s,i={}){const o=Nt(t)?t:[t],a=i.strokeWidth>0&&i.strokeColor!=="";let l,u;for(e.save(),e.font=s.string,Kw(e,i),l=0;l<o.length;++l)u=o[l],i.backdrop&&Qw(e,i.backdrop),a&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),lt(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(u,n,r,i.maxWidth)),e.fillText(u,n,r,i.maxWidth),Zw(e,n,r,u,i),r+=Number(s.lineHeight);e.restore()}function Da(e,t){const{x:n,y:r,w:s,h:i,radius:o}=t;e.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*_t,_t,!0),e.lineTo(n,r+i-o.bottomLeft),e.arc(n+o.bottomLeft,r+i-o.bottomLeft,o.bottomLeft,_t,jt,!0),e.lineTo(n+s-o.bottomRight,r+i),e.arc(n+s-o.bottomRight,r+i-o.bottomRight,o.bottomRight,jt,0,!0),e.lineTo(n+s,r+o.topRight),e.arc(n+s-o.topRight,r+o.topRight,o.topRight,0,-jt,!0),e.lineTo(n+o.topLeft,r)}const Jw=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,e1=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function t1(e,t){const n=(""+e).match(Jw);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 n1=e=>+e||0;function Qc(e,t){const n={},r=Ne(t),s=r?Object.keys(t):t,i=Ne(e)?r?o=>Ce(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of s)n[o]=n1(i(o));return n}function hp(e){return Qc(e,{top:"y",right:"x",bottom:"y",left:"x"})}function zs(e){return Qc(e,["topLeft","topRight","bottomLeft","bottomRight"])}function _n(e){const t=hp(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Kt(e,t){e=e||{},t=t||Ct.font;let n=Ce(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Ce(e.style,t.style);r&&!(""+r).match(e1)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const s={family:Ce(e.family,t.family),lineHeight:t1(Ce(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Ce(e.weight,t.weight),string:""};return s.string=qw(s),s}function Pa(e,t,n,r){let s,i,o;for(s=0,i=e.length;s<i;++s)if(o=e[s],o!==void 0&&o!==void 0)return o}function r1(e,t,n){const{min:r,max:s}=e,i=Hh(t,(s-r)/2),o=(a,l)=>n&&a===0?0:a+l;return{min:o(r,-Math.abs(i)),max:o(s,i)}}function as(e,t){return Object.assign(Object.create(e),t)}function Jc(e,t=[""],n,r,s=()=>e[0]){const i=n||e;typeof r>"u"&&(r=bp("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:r,_getTarget:s,override:a=>Jc([a,...e],t,i,r)};return new Proxy(o,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return gp(a,l,()=>d1(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return vp(a).includes(l)},ownKeys(a){return vp(a)},set(a,l,u){const d=a._storage||(a._storage=s());return a[l]=d[l]=u,delete a._keys,!0}})}function Ys(e,t,n,r){const s={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:pp(e,r),setContext:i=>Ys(e,i,n,r),override:i=>Ys(e.override(i),t,n,r)};return new Proxy(s,{deleteProperty(i,o){return delete i[o],delete e[o],!0},get(i,o,a){return gp(i,o,()=>i1(i,o,a))},getOwnPropertyDescriptor(i,o){return i._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(i,o,a){return e[o]=a,delete i[o],!0}})}function pp(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:s=t.allKeys}=e;return{allKeys:s,scriptable:n,indexable:r,isScriptable:Vr(n)?n:()=>n,isIndexable:Vr(r)?r:()=>r}}const s1=(e,t)=>e?e+Lc(t):t,eu=(e,t)=>Ne(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function gp(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function i1(e,t,n){const{_proxy:r,_context:s,_subProxy:i,_descriptors:o}=e;let a=r[t];return Vr(a)&&o.isScriptable(t)&&(a=o1(t,a,e,n)),Nt(a)&&a.length&&(a=a1(t,a,e,o.isIndexable)),eu(t,a)&&(a=Ys(a,s,i&&i[t],o)),a}function o1(e,t,n,r){const{_proxy:s,_context:i,_subProxy:o,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(i,o||r);return a.delete(e),eu(e,l)&&(l=tu(s._scopes,s,e,l)),l}function a1(e,t,n,r){const{_proxy:s,_context:i,_subProxy:o,_descriptors:a}=n;if(typeof i.index<"u"&&r(e))return t[i.index%t.length];if(Ne(t[0])){const l=t,u=s._scopes.filter(d=>d!==l);t=[];for(const d of l){const f=tu(u,s,e,d);t.push(Ys(f,i,o&&o[e],a))}}return t}function mp(e,t,n){return Vr(e)?e(t,n):e}const l1=(e,t)=>e===!0?t:typeof e=="string"?ns(t,e):void 0;function c1(e,t,n,r,s){for(const i of t){const o=l1(n,i);if(o){e.add(o);const a=mp(o._fallback,n,s);if(typeof a<"u"&&a!==n&&a!==r)return a}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function tu(e,t,n,r){const s=t._rootScopes,i=mp(t._fallback,n,r),o=[...e,...s],a=new Set;a.add(r);let l=yp(a,o,n,i||n,r);return l===null||typeof i<"u"&&i!==n&&(l=yp(a,o,i,l,r),l===null)?!1:Jc(Array.from(a),[""],s,i,()=>u1(t,n,r))}function yp(e,t,n,r,s){for(;n;)n=c1(e,t,n,r,s);return n}function u1(e,t,n){const r=e._getTarget();t in r||(r[t]={});const s=r[t];return Nt(s)&&Ne(n)?n:s||{}}function d1(e,t,n,r){let s;for(const i of t)if(s=bp(s1(i,e),n),typeof s<"u")return eu(e,s)?tu(n,r,e,s):s}function bp(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function vp(e){let t=e._keys;return t||(t=e._keys=f1(e._scopes)),t}function f1(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(s=>!s.startsWith("_")))t.add(r);return Array.from(t)}const h1=Number.EPSILON||1e-14,Vs=(e,t)=>t<e.length&&!e[t].skip&&e[t],xp=e=>e==="x"?"y":"x";function p1(e,t,n,r){const s=e.skip?t:e,i=t,o=n.skip?t:n,a=Bc(i,s),l=Bc(o,i);let u=a/(a+l),d=l/(a+l);u=isNaN(u)?0:u,d=isNaN(d)?0:d;const f=r*u,h=r*d;return{previous:{x:i.x-f*(o.x-s.x),y:i.y-f*(o.y-s.y)},next:{x:i.x+h*(o.x-s.x),y:i.y+h*(o.y-s.y)}}}function g1(e,t,n){const r=e.length;let s,i,o,a,l,u=Vs(e,0);for(let d=0;d<r-1;++d)if(l=u,u=Vs(e,d+1),!(!l||!u)){if(qi(t[d],0,h1)){n[d]=n[d+1]=0;continue}s=n[d]/t[d],i=n[d+1]/t[d],a=Math.pow(s,2)+Math.pow(i,2),!(a<=9)&&(o=3/Math.sqrt(a),n[d]=s*o*t[d],n[d+1]=i*o*t[d])}}function m1(e,t,n="x"){const r=xp(n),s=e.length;let i,o,a,l=Vs(e,0);for(let u=0;u<s;++u){if(o=a,a=l,l=Vs(e,u+1),!a)continue;const d=a[n],f=a[r];o&&(i=(d-o[n])/3,a[`cp1${n}`]=d-i,a[`cp1${r}`]=f-i*t[u]),l&&(i=(l[n]-d)/3,a[`cp2${n}`]=d+i,a[`cp2${r}`]=f+i*t[u])}}function y1(e,t="x"){const n=xp(t),r=e.length,s=Array(r).fill(0),i=Array(r);let o,a,l,u=Vs(e,0);for(o=0;o<r;++o)if(a=l,l=u,u=Vs(e,o+1),!!l){if(u){const d=u[t]-l[t];s[o]=d!==0?(u[n]-l[n])/d:0}i[o]=a?u?Gn(s[o-1])!==Gn(s[o])?0:(s[o-1]+s[o])/2:s[o-1]:s[o]}g1(e,s,i),m1(e,i,t)}function Ra(e,t,n){return Math.max(Math.min(e,n),t)}function b1(e,t){let n,r,s,i,o,a=Qi(e[0],t);for(n=0,r=e.length;n<r;++n)o=i,i=a,a=n<r-1&&Qi(e[n+1],t),i&&(s=e[n],o&&(s.cp1x=Ra(s.cp1x,t.left,t.right),s.cp1y=Ra(s.cp1y,t.top,t.bottom)),a&&(s.cp2x=Ra(s.cp2x,t.left,t.right),s.cp2y=Ra(s.cp2y,t.top,t.bottom)))}function v1(e,t,n,r,s){let i,o,a,l;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")y1(e,s);else{let u=r?e[e.length-1]:e[0];for(i=0,o=e.length;i<o;++i)a=e[i],l=p1(u,a,e[Math.min(i+1,o-(r?0:1))%o],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,u=a}t.capBezierPoints&&b1(e,n)}function nu(){return typeof window<"u"&&typeof document<"u"}function ru(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Aa(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 Ia=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function x1(e,t){return Ia(e).getPropertyValue(t)}const _1=["top","right","bottom","left"];function ls(e,t,n){const r={};n=n?"-"+n:"";for(let s=0;s<4;s++){const i=_1[s];r[i]=parseFloat(e[t+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const w1=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function S1(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:s,offsetY:i}=r;let o=!1,a,l;if(w1(s,i,e.target))a=s,l=i;else{const u=t.getBoundingClientRect();a=r.clientX-u.left,l=r.clientY-u.top,o=!0}return{x:a,y:l,box:o}}function cs(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,s=Ia(n),i=s.boxSizing==="border-box",o=ls(s,"padding"),a=ls(s,"border","width"),{x:l,y:u,box:d}=S1(e,n),f=o.left+(d&&a.left),h=o.top+(d&&a.top);let{width:p,height:m}=t;return i&&(p-=o.width+a.width,m-=o.height+a.height),{x:Math.round((l-f)/p*n.width/r),y:Math.round((u-h)/m*n.height/r)}}function T1(e,t,n){let r,s;if(t===void 0||n===void 0){const i=e&&ru(e);if(!i)t=e.clientWidth,n=e.clientHeight;else{const o=i.getBoundingClientRect(),a=Ia(i),l=ls(a,"border","width"),u=ls(a,"padding");t=o.width-u.width-l.width,n=o.height-u.height-l.height,r=Aa(a.maxWidth,i,"clientWidth"),s=Aa(a.maxHeight,i,"clientHeight")}}return{width:t,height:n,maxWidth:r||Ma,maxHeight:s||Ma}}const Na=e=>Math.round(e*10)/10;function k1(e,t,n,r){const s=Ia(e),i=ls(s,"margin"),o=Aa(s.maxWidth,e,"clientWidth")||Ma,a=Aa(s.maxHeight,e,"clientHeight")||Ma,l=T1(e,t,n);let{width:u,height:d}=l;if(s.boxSizing==="content-box"){const h=ls(s,"border","width"),p=ls(s,"padding");u-=p.width+h.width,d-=p.height+h.height}return u=Math.max(0,u-i.width),d=Math.max(0,r?u/r:d-i.height),u=Na(Math.min(u,o,l.maxWidth)),d=Na(Math.min(d,a,l.maxHeight)),u&&!d&&(d=Na(u/2)),(t!==void 0||n!==void 0)&&r&&l.height&&d>l.height&&(d=l.height,u=Na(Math.floor(d*r))),{width:u,height:d}}function _p(e,t,n){const r=t||1,s=Math.floor(e.height*r),i=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==s||o.width!==i?(e.currentDevicePixelRatio=r,o.height=s,o.width=i,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const O1=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};nu()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function wp(e,t){const n=x1(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function us(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function C1(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 M1(e,t,n,r){const s={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},o=us(e,s,n),a=us(s,i,n),l=us(i,t,n),u=us(o,a,n),d=us(a,l,n);return us(u,d,n)}const E1=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}}},D1=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Hs(e,t,n){return e?E1(t,n):D1()}function Sp(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 Tp(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function kp(e){return e==="angle"?{between:Xi,compare:Dw,normalize:Hr}:{between:Ur,compare:(t,n)=>t-n,normalize:t=>t}}function Op({start:e,end:t,count:n,loop:r,style:s}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:s}}function P1(e,t,n){const{property:r,start:s,end:i}=n,{between:o,normalize:a}=kp(r),l=t.length;let{start:u,end:d,loop:f}=e,h,p;if(f){for(u+=l,d+=l,h=0,p=l;h<p&&o(a(t[u%l][r]),s,i);++h)u--,d--;u%=l,d%=l}return d<u&&(d+=l),{start:u,end:d,loop:f,style:e.style}}function R1(e,t,n){if(!n)return[e];const{property:r,start:s,end:i}=n,o=t.length,{compare:a,between:l,normalize:u}=kp(r),{start:d,end:f,loop:h,style:p}=P1(e,t,n),m=[];let y=!1,g=null,x,w,S;const T=()=>l(s,S,x)&&a(s,S)!==0,_=()=>a(i,x)===0||l(i,S,x),C=()=>y||T(),M=()=>!y||_();for(let k=d,R=d;k<=f;++k)w=t[k%o],!w.skip&&(x=u(w[r]),x!==S&&(y=l(x,s,i),g===null&&C()&&(g=a(x,s)===0?k:R),g!==null&&M()&&(m.push(Op({start:g,end:k,loop:h,count:o,style:p})),g=null),R=k,S=x));return g!==null&&m.push(Op({start:g,end:f,loop:h,count:o,style:p})),m}function A1(e,t){const n=[],r=e.segments;for(let s=0;s<r.length;s++){const i=R1(r[s],e.points,t);i.length&&n.push(...i)}return n}function I1(e,t,n,r){let s=0,i=t-1;if(n&&!r)for(;s<t&&!e[s].skip;)s++;for(;s<t&&e[s].skip;)s++;for(s%=t,n&&(i+=s);i>s&&e[i%t].skip;)i--;return i%=t,{start:s,end:i}}function N1(e,t,n,r){const s=e.length,i=[];let o=t,a=e[t],l;for(l=t+1;l<=n;++l){const u=e[l%s];u.skip||u.stop?a.skip||(r=!1,i.push({start:t%s,end:(l-1)%s,loop:r}),t=o=u.stop?l:null):(o=l,a.skip&&(t=l)),a=u}return o!==null&&i.push({start:t%s,end:o%s,loop:r}),i}function j1(e,t){const n=e.points,r=e.options.spanGaps,s=n.length;if(!s)return[];const i=!!e._loop,{start:o,end:a}=I1(n,s,i,r);if(r===!0)return Cp(e,[{start:o,end:a,loop:i}],n,t);const l=a<o?a+s:a,u=!!e._fullLoop&&o===0&&a===s-1;return Cp(e,N1(n,o,l,u),n,t)}function Cp(e,t,n,r){return!r||!r.setContext||!n?t:F1(e,t,n,r)}function F1(e,t,n,r){const s=e._chart.getContext(),i=Mp(e.options),{_datasetIndex:o,options:{spanGaps:a}}=e,l=n.length,u=[];let d=i,f=t[0].start,h=f;function p(m,y,g,x){const w=a?-1:1;if(m!==y){for(m+=l;n[m%l].skip;)m-=w;for(;n[y%l].skip;)y+=w;m%l!==y%l&&(u.push({start:m%l,end:y%l,loop:g,style:x}),d=x,f=y%l)}}for(const m of t){f=a?f:m.start;let y=n[f%l],g;for(h=f+1;h<=m.end;h++){const x=n[h%l];g=Mp(r.setContext(as(s,{type:"segment",p0:y,p1:x,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:o}))),$1(g,d)&&p(f,h-1,m.loop,d),y=x,d=g}f<h-1&&p(f,h-1,m.loop,d)}return u}function Mp(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function $1(e,t){if(!t)return!1;const n=[],r=function(s,i){return Vc(i)?(n.includes(i)||n.push(i),n.indexOf(i)):i};return JSON.stringify(e,r)!==JSON.stringify(t,r)}/*!
117
+ * Chart.js v4.4.7
118
+ * https://www.chartjs.org
119
+ * (c) 2024 Chart.js Contributors
120
+ * Released under the MIT License
121
+ */class L1{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,s){const i=n.listeners[s],o=n.duration;i.forEach(a=>a({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=np.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,s)=>{if(!r.running||!r.items.length)return;const i=r.items;let o=i.length-1,a=!1,l;for(;o>=0;--o)l=i[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),a=!0):(i[o]=i[i.length-1],i.pop());a&&(s.draw(),this._notify(s,r,t,"progress")),i.length||(r.running=!1,this._notify(s,r,t,"complete"),r.initial=!1),n+=i.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,s)=>Math.max(r,s._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 s=r.length-1;for(;s>=0;--s)r[s].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var _r=new L1;const Ep="transparent",W1={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=op(e||Ep),s=r.valid&&op(t||Ep);return s&&s.valid?s.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class B1{constructor(t,n,r,s){const i=n[r];s=Pa([t.to,s,i,t.from]);const o=Pa([t.from,i,s]);this._active=!0,this._fn=t.fn||W1[t.type||typeof o],this._easing=Ki[t.easing]||Ki.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=o,this._to=s,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const s=this._target[this._prop],i=r-this._start,o=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=Pa([t.to,n,s,t.from]),this._from=Pa([t.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,s=this._prop,i=this._from,o=this._loop,a=this._to;let l;if(this._active=i!==a&&(o||n<r),!this._active){this._target[s]=a,this._notify(!0);return}if(n<0){this._target[s]=i;return}l=n/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(i,a,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 s=0;s<r.length;s++)r[s][n]()}}class Dp{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!Ne(t))return;const n=Object.keys(Ct.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const i=t[s];if(!Ne(i))return;const o={};for(const a of n)o[a]=i[a];(Nt(i.properties)&&i.properties||[s]).forEach(a=>{(a===s||!r.has(a))&&r.set(a,o)})})}_animateOptions(t,n){const r=n.options,s=Y1(t,r);if(!s)return[];const i=this._createAnimations(s,r);return r.$shared&&z1(t.options.$animations,r).then(()=>{t.options=r},()=>{}),i}_createAnimations(t,n){const r=this._properties,s=[],i=t.$animations||(t.$animations={}),o=Object.keys(n),a=Date.now();let l;for(l=o.length-1;l>=0;--l){const u=o[l];if(u.charAt(0)==="$")continue;if(u==="options"){s.push(...this._animateOptions(t,n));continue}const d=n[u];let f=i[u];const h=r.get(u);if(f)if(h&&f.active()){f.update(h,d,a);continue}else f.cancel();if(!h||!h.duration){t[u]=d;continue}i[u]=f=new B1(h,t,u,d),s.push(f)}return s}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return _r.add(this._chart,r),!0}}function z1(e,t){const n=[],r=Object.keys(t);for(let s=0;s<r.length;s++){const i=e[r[s]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}function Y1(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 Pp(e,t){const n=e&&e.options||{},r=n.reverse,s=n.min===void 0?t:0,i=n.max===void 0?t:0;return{start:r?i:s,end:r?s:i}}function V1(e,t,n){if(n===!1)return!1;const r=Pp(e,n),s=Pp(t,n);return{top:s.end,right:r.end,bottom:s.start,left:r.start}}function H1(e){let t,n,r,s;return Ne(e)?(t=e.top,n=e.right,r=e.bottom,s=e.left):t=n=r=s=e,{top:t,right:n,bottom:r,left:s,disabled:e===!1}}function Rp(e,t){const n=[],r=e._getSortedDatasetMetas(t);let s,i;for(s=0,i=r.length;s<i;++s)n.push(r[s].index);return n}function Ap(e,t,n,r={}){const s=e.keys,i=r.mode==="single";let o,a,l,u;if(t===null)return;let d=!1;for(o=0,a=s.length;o<a;++o){if(l=+s[o],l===n){if(d=!0,r.all)continue;break}u=e.values[l],xn(u)&&(i||t===0||Gn(t)===Gn(u))&&(t+=u)}return!d&&!r.all?0:t}function U1(e,t){const{iScale:n,vScale:r}=t,s=n.axis==="x"?"x":"y",i=r.axis==="x"?"x":"y",o=Object.keys(e),a=new Array(o.length);let l,u,d;for(l=0,u=o.length;l<u;++l)d=o[l],a[l]={[s]:d,[i]:e[d]};return a}function su(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function q1(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function G1(e){const{min:t,max:n,minDefined:r,maxDefined:s}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}function X1(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function Ip(e,t,n,r){for(const s of t.getMatchingVisibleMetas(r).reverse()){const i=e[s.index];if(n&&i>0||!n&&i<0)return s.index}return null}function Np(e,t){const{chart:n,_cachedMeta:r}=e,s=n._stacks||(n._stacks={}),{iScale:i,vScale:o,index:a}=r,l=i.axis,u=o.axis,d=q1(i,o,r),f=t.length;let h;for(let p=0;p<f;++p){const m=t[p],{[l]:y,[u]:g}=m,x=m._stacks||(m._stacks={});h=x[u]=X1(s,d,y),h[a]=g,h._top=Ip(h,o,!0,r.type),h._bottom=Ip(h,o,!1,r.type);const w=h._visualValues||(h._visualValues={});w[a]=g}}function iu(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function K1(e,t){return as(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function Z1(e,t,n){return as(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function eo(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const s of t){const i=s._stacks;if(!i||i[r]===void 0||i[r][n]===void 0)return;delete i[r][n],i[r]._visualValues!==void 0&&i[r]._visualValues[n]!==void 0&&delete i[r]._visualValues[n]}}}const ou=e=>e==="reset"||e==="none",jp=(e,t)=>t?e:Object.assign({},e),Q1=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Rp(n,!0),values:null};class ds{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=su(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&&eo(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),s=(f,h,p,m)=>f==="x"?h:f==="r"?m:p,i=n.xAxisID=Ce(r.xAxisID,iu(t,"x")),o=n.yAxisID=Ce(r.yAxisID,iu(t,"y")),a=n.rAxisID=Ce(r.rAxisID,iu(t,"r")),l=n.indexAxis,u=n.iAxisID=s(l,i,o,a),d=n.vAxisID=s(l,o,i,a);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(d)}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&&ep(this._data,this),t._stacked&&eo(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Ne(n)){const s=this._cachedMeta;this._data=U1(n,s)}else if(r!==n){if(r){ep(r,this);const s=this._cachedMeta;eo(s),s._parsed=[]}n&&Object.isExtensible(n)&&Iw(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 s=!1;this._dataCheck();const i=n._stacked;n._stacked=su(n.vScale,n),n.stack!==r.stack&&(s=!0,eo(n),n.stack=r.stack),this._resyncElements(t),(s||i!==n._stacked)&&(Np(this,n._parsed),n._stacked=su(n.vScale,n))}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:s}=this,{iScale:i,_stacked:o}=r,a=i.axis;let l=t===0&&n===s.length?!0:r._sorted,u=t>0&&r._parsed[t-1],d,f,h;if(this._parsing===!1)r._parsed=s,r._sorted=!0,h=s;else{Nt(s[t])?h=this.parseArrayData(r,s,t,n):Ne(s[t])?h=this.parseObjectData(r,s,t,n):h=this.parsePrimitiveData(r,s,t,n);const p=()=>f[a]===null||u&&f[a]<u[a];for(d=0;d<n;++d)r._parsed[d+t]=f=h[d],l&&(p()&&(l=!1),u=f);r._sorted=l}o&&Np(this,h)}parsePrimitiveData(t,n,r,s){const{iScale:i,vScale:o}=t,a=i.axis,l=o.axis,u=i.getLabels(),d=i===o,f=new Array(s);let h,p,m;for(h=0,p=s;h<p;++h)m=h+r,f[h]={[a]:d||i.parse(u[m],m),[l]:o.parse(n[m],m)};return f}parseArrayData(t,n,r,s){const{xScale:i,yScale:o}=t,a=new Array(s);let l,u,d,f;for(l=0,u=s;l<u;++l)d=l+r,f=n[d],a[l]={x:i.parse(f[0],d),y:o.parse(f[1],d)};return a}parseObjectData(t,n,r,s){const{xScale:i,yScale:o}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,u=new Array(s);let d,f,h,p;for(d=0,f=s;d<f;++d)h=d+r,p=n[h],u[d]={x:i.parse(ns(p,a),h),y:o.parse(ns(p,l),h)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const s=this.chart,i=this._cachedMeta,o=n[t.axis],a={keys:Rp(s,!0),values:n._stacks[t.axis]._visualValues};return Ap(a,o,i.index,{mode:r})}updateRangeFromParsed(t,n,r,s){const i=r[n.axis];let o=i===null?NaN:i;const a=s&&r._stacks[n.axis];s&&a&&(s.values=a,o=Ap(s,i,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,n){const r=this._cachedMeta,s=r._parsed,i=r._sorted&&t===r.iScale,o=s.length,a=this._getOtherScale(t),l=Q1(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:f}=G1(a);let h,p;function m(){p=s[h];const y=p[a.axis];return!xn(p[t.axis])||d>y||f<y}for(h=0;h<o&&!(!m()&&(this.updateRangeFromParsed(u,t,p,l),i));++h);if(i){for(h=o-1;h>=0;--h)if(!m()){this.updateRangeFromParsed(u,t,p,l);break}}return u}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let s,i,o;for(s=0,i=n.length;s<i;++s)o=n[s][t.axis],xn(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,s=n.vScale,i=this.getParsed(t);return{label:r?""+r.getLabelForValue(i[r.axis]):"",value:s?""+s.getLabelForValue(i[s.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=H1(Ce(this.options.clip,V1(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,s=r.data||[],i=n.chartArea,o=[],a=this._drawStart||0,l=this._drawCount||s.length-a,u=this.options.drawActiveElementsOnTop;let d;for(r.dataset&&r.dataset.draw(t,i,a,l),d=a;d<a+l;++d){const f=s[d];f.hidden||(f.active&&u?o.push(f):f.draw(t,i))}for(d=0;d<o.length;++d)o[d].draw(t,i)}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 s=this.getDataset();let i;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];i=o.$context||(o.$context=Z1(this.getContext(),t,o)),i.parsed=this.getParsed(t),i.raw=s.data[t],i.index=i.dataIndex=t}else i=this.$context||(this.$context=K1(this.chart.getContext(),this.index)),i.dataset=s,i.index=i.datasetIndex=this.index;return i.active=!!n,i.mode=r,i}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 s=n==="active",i=this._cachedDataOpts,o=t+"-"+n,a=i[o],l=this.enableOptionSharing&&Ui(r);if(a)return jp(a,l);const u=this.chart.config,d=u.datasetElementScopeKeys(this._type,t),f=s?[`${t}Hover`,"hover",t,""]:[t,""],h=u.getOptionScopes(this.getDataset(),d),p=Object.keys(Ct.elements[t]),m=()=>this.getContext(r,s,n),y=u.resolveNamedOptions(h,p,m,f);return y.$shared&&(y.$shared=l,i[o]=Object.freeze(jp(y,l))),y}_resolveAnimations(t,n,r){const s=this.chart,i=this._cachedDataOpts,o=`animation-${n}`,a=i[o];if(a)return a;let l;if(s.options.animation!==!1){const d=this.chart.config,f=d.datasetAnimationScopeKeys(this._type,n),h=d.getOptionScopes(this.getDataset(),f);l=d.createResolver(h,this.getContext(t,r,n))}const u=new Dp(s,l&&l.animations);return l&&l._cacheable&&(i[o]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||ou(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),s=this._sharedOptions,i=this.getSharedOptions(r),o=this.includeOptions(n,i)||i!==s;return this.updateSharedOptions(i,n,r),{sharedOptions:i,includeOptions:o}}updateElement(t,n,r,s){ou(s)?Object.assign(t,r):this._resolveAnimations(n,s).update(t,r)}updateSharedOptions(t,n,r){t&&!ou(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,s){t.active=s;const i=this.getStyle(n,s);this._resolveAnimations(n,r,s).update(t,{options:!s&&this.getSharedOptions(i)||i})}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[a,l,u]of this._syncList)this[a](l,u);this._syncList=[];const s=r.length,i=n.length,o=Math.min(i,s);o&&this.parse(0,o),i>s?this._insertElements(s,i-s,t):i<s&&this._removeElements(i,s-i)}_insertElements(t,n,r=!0){const s=this._cachedMeta,i=s.data,o=t+n;let a;const l=u=>{for(u.length+=n,a=u.length-1;a>=o;a--)u[a]=u[a-n]};for(l(i),a=t;a<o;++a)i[a]=new this.dataElementType;this._parsing&&l(s._parsed),this.parse(t,n),r&&this.updateElements(i,t,n,"reset")}updateElements(t,n,r,s){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const s=r._parsed.splice(t,n);r._stacked&&eo(r,s)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,s]=t;this[n](r,s)}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])}}G(ds,"defaults",{}),G(ds,"datasetElementType",null),G(ds,"dataElementType",null);function J1(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let s=0,i=n.length;s<i;s++)r=r.concat(n[s].controller.getAllParsedValues(e));e._cache.$bar=tp(r.sort((s,i)=>s-i))}return e._cache.$bar}function eS(e){const t=e.iScale,n=J1(t,e.type);let r=t._length,s,i,o,a;const l=()=>{o===32767||o===-32768||(Ui(a)&&(r=Math.min(r,Math.abs(o-a)||r)),a=o)};for(s=0,i=n.length;s<i;++s)o=t.getPixelForValue(n[s]),l();for(a=void 0,s=0,i=t.ticks.length;s<i;++s)o=t.getPixelForTick(s),l();return r}function tS(e,t,n,r){const s=n.barThickness;let i,o;return lt(s)?(i=t.min*n.categoryPercentage,o=n.barPercentage):(i=s*r,o=1),{chunk:i/r,ratio:o,start:t.pixels[e]-i/2}}function nS(e,t,n,r){const s=t.pixels,i=s[e];let o=e>0?s[e-1]:null,a=e<s.length-1?s[e+1]:null;const l=n.categoryPercentage;o===null&&(o=i-(a===null?t.end-t.start:a-i)),a===null&&(a=i+i-o);const u=i-(i-Math.min(o,a))/2*l;return{chunk:Math.abs(a-o)/2*l/r,ratio:n.barPercentage,start:u}}function rS(e,t,n,r){const s=n.parse(e[0],r),i=n.parse(e[1],r),o=Math.min(s,i),a=Math.max(s,i);let l=o,u=a;Math.abs(o)>Math.abs(a)&&(l=a,u=o),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:s,end:i,min:o,max:a}}function Fp(e,t,n,r){return Nt(e)?rS(e,t,n,r):t[n.axis]=n.parse(e,r),t}function $p(e,t,n,r){const s=e.iScale,i=e.vScale,o=s.getLabels(),a=s===i,l=[];let u,d,f,h;for(u=n,d=n+r;u<d;++u)h=t[u],f={},f[s.axis]=a||s.parse(o[u],u),l.push(Fp(h,f,i,u));return l}function au(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function sS(e,t,n){return e!==0?Gn(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function iS(e){let t,n,r,s,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(s="end",i="start"):(s="start",i="end"),{start:n,end:r,reverse:t,top:s,bottom:i}}function oS(e,t,n,r){let s=t.borderSkipped;const i={};if(!s){e.borderSkipped=i;return}if(s===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:a,reverse:l,top:u,bottom:d}=iS(e);s==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?s=u:(n._bottom||0)===r?s=d:(i[Lp(d,o,a,l)]=!0,s=u)),i[Lp(s,o,a,l)]=!0,e.borderSkipped=i}function Lp(e,t,n,r){return r?(e=aS(e,t,n),e=Wp(e,n,t)):e=Wp(e,t,n),e}function aS(e,t,n){return e===t?n:e===n?t:e}function Wp(e,t,n){return e==="start"?t:e==="end"?n:e}function lS(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class ja extends ds{parsePrimitiveData(t,n,r,s){return $p(t,n,r,s)}parseArrayData(t,n,r,s){return $p(t,n,r,s)}parseObjectData(t,n,r,s){const{iScale:i,vScale:o}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,u=i.axis==="x"?a:l,d=o.axis==="x"?a:l,f=[];let h,p,m,y;for(h=r,p=r+s;h<p;++h)y=n[h],m={},m[i.axis]=i.parse(ns(y,u),h),f.push(Fp(ns(y,d),m,o,h));return f}updateRangeFromParsed(t,n,r,s){super.updateRangeFromParsed(t,n,r,s);const i=r._custom;i&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,i.min),t.max=Math.max(t.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:s}=n,i=this.getParsed(t),o=i._custom,a=au(o)?"["+o.start+", "+o.end+"]":""+s.getLabelForValue(i[s.axis]);return{label:""+r.getLabelForValue(i[r.axis]),value:a}}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,s){const i=s==="reset",{index:o,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),u=a.isHorizontal(),d=this._getRuler(),{sharedOptions:f,includeOptions:h}=this._getSharedOptions(n,s);for(let p=n;p<n+r;p++){const m=this.getParsed(p),y=i||lt(m[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(p),g=this._calculateBarIndexPixels(p,d),x=(m._stacks||{})[a.axis],w={horizontal:u,base:y.base,enableBorderRadius:!x||au(m._custom)||o===x._top||o===x._bottom,x:u?y.head:g.center,y:u?g.center:y.head,height:u?g.size:Math.abs(y.size),width:u?Math.abs(y.size):g.size};h&&(w.options=f||this.resolveDataElementOptions(p,t[p].active?"active":s));const S=w.options||t[p].options;oS(w,S,x,o),lS(w,S,d.ratio),this.updateElement(t[p],p,w,s)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,s=r.getMatchingVisibleMetas(this._type).filter(d=>d.controller.options.grouped),i=r.options.stacked,o=[],a=this._cachedMeta.controller.getParsed(n),l=a&&a[r.axis],u=d=>{const f=d._parsed.find(p=>p[r.axis]===l),h=f&&f[d.vScale.axis];if(lt(h)||isNaN(h))return!0};for(const d of s)if(!(n!==void 0&&u(d))&&((i===!1||o.indexOf(d.stack)===-1||i===void 0&&d.stack===void 0)&&o.push(d.stack),d.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const s=this._getStacks(t,r),i=n!==void 0?s.indexOf(n):-1;return i===-1?s.length-1:i}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,s=[];let i,o;for(i=0,o=n.data.length;i<o;++i)s.push(r.getPixelForValue(this.getParsed(i)[r.axis],i));const a=t.barThickness;return{min:a||eS(n),pixels:s,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:s},options:{base:i,minBarLength:o}}=this,a=i||0,l=this.getParsed(t),u=l._custom,d=au(u);let f=l[n.axis],h=0,p=r?this.applyStack(n,l,r):f,m,y;p!==f&&(h=p-f,p=f),d&&(f=u.barStart,p=u.barEnd-u.barStart,f!==0&&Gn(f)!==Gn(u.barEnd)&&(h=0),h+=f);const g=!lt(i)&&!d?i:h;let x=n.getPixelForValue(g);if(this.chart.getDataVisibility(t)?m=n.getPixelForValue(h+p):m=x,y=m-x,Math.abs(y)<o){y=sS(y,n,a)*o,f===a&&(x-=y/2);const w=n.getPixelForDecimal(0),S=n.getPixelForDecimal(1),T=Math.min(w,S),_=Math.max(w,S);x=Math.max(Math.min(x,_),T),m=x+y,r&&!d&&(l._stacks[n.axis]._visualValues[s]=n.getValueForPixel(m)-n.getValueForPixel(x))}if(x===n.getPixelForValue(a)){const w=Gn(y)*n.getLineWidthForValue(a)/2;x+=w,y-=w}return{size:y,base:x,head:m,center:m+y/2}}_calculateBarIndexPixels(t,n){const r=n.scale,s=this.options,i=s.skipNull,o=Ce(s.maxBarThickness,1/0);let a,l;if(n.grouped){const u=i?this._getStackCount(t):n.stackCount,d=s.barThickness==="flex"?nS(t,n,s,u):tS(t,n,s,u),f=this._getStackIndex(this.index,this._cachedMeta.stack,i?t:void 0);a=d.start+d.chunk*f+d.chunk/2,l=Math.min(o,d.chunk*d.ratio)}else a=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(o,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,s=r.length;let i=0;for(;i<s;++i)this.getParsed(i)[n.axis]!==null&&!r[i].hidden&&r[i].draw(this._ctx)}}G(ja,"id","bar"),G(ja,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),G(ja,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});function cS(e,t,n){let r=1,s=1,i=0,o=0;if(t<wt){const a=e,l=a+t,u=Math.cos(a),d=Math.sin(a),f=Math.cos(l),h=Math.sin(l),p=(S,T,_)=>Xi(S,a,l,!0)?1:Math.max(T,T*n,_,_*n),m=(S,T,_)=>Xi(S,a,l,!0)?-1:Math.min(T,T*n,_,_*n),y=p(0,u,f),g=p(jt,d,h),x=m(_t,u,f),w=m(_t+jt,d,h);r=(y-x)/2,s=(g-w)/2,i=-(y+x)/2,o=-(g+w)/2}return{ratioX:r,ratioY:s,offsetX:i,offsetY:o}}class to extends ds{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,s=this._cachedMeta;if(this._parsing===!1)s._parsed=r;else{let i=l=>+r[l];if(Ne(r[t])){const{key:l="value"}=this._parsing;i=u=>+ns(r[u],l)}let o,a;for(o=t,a=t+n;o<a;++o)s._parsed[o]=i(o)}}_getRotation(){return xr(this.options.rotation-90)}_getCircumference(){return xr(this.options.circumference)}_getRotationExtents(){let t=wt,n=-wt;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const s=this.chart.getDatasetMeta(r).controller,i=s._getRotation(),o=s._getCircumference();t=Math.min(t,i),n=Math.max(n,i+o)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,s=this._cachedMeta,i=s.data,o=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,a=Math.max((Math.min(r.width,r.height)-o)/2,0),l=Math.min(bw(this.options.cutout,a),1),u=this._getRingWeight(this.index),{circumference:d,rotation:f}=this._getRotationExtents(),{ratioX:h,ratioY:p,offsetX:m,offsetY:y}=cS(f,d,l),g=(r.width-o)/h,x=(r.height-o)/p,w=Math.max(Math.min(g,x)/2,0),S=Hh(this.options.radius,w),T=Math.max(S*l,0),_=(S-T)/this._getVisibleDatasetWeightTotal();this.offsetX=m*S,this.offsetY=y*S,s.total=this.calculateTotal(),this.outerRadius=S-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*u,0),this.updateElements(i,0,i.length,t)}_circumference(t,n){const r=this.options,s=this._cachedMeta,i=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||s._parsed[t]===null||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*i/wt)}updateElements(t,n,r,s){const i=s==="reset",o=this.chart,a=o.chartArea,u=o.options.animation,d=(a.left+a.right)/2,f=(a.top+a.bottom)/2,h=i&&u.animateScale,p=h?0:this.innerRadius,m=h?0:this.outerRadius,{sharedOptions:y,includeOptions:g}=this._getSharedOptions(n,s);let x=this._getRotation(),w;for(w=0;w<n;++w)x+=this._circumference(w,i);for(w=n;w<n+r;++w){const S=this._circumference(w,i),T=t[w],_={x:d+this.offsetX,y:f+this.offsetY,startAngle:x,endAngle:x+S,circumference:S,outerRadius:m,innerRadius:p};g&&(_.options=y||this.resolveDataElementOptions(w,T.active?"active":s)),x+=S,this.updateElement(T,w,_,s)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,s;for(s=0;s<n.length;s++){const i=t._parsed[s];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(s)&&!n[s].hidden&&(r+=Math.abs(i))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?wt*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,s=r.data.labels||[],i=Uc(n._parsed[t],r.options.locale);return{label:s[t]||"",value:i}}getMaxBorderWidth(t){let n=0;const r=this.chart;let s,i,o,a,l;if(!t){for(s=0,i=r.data.datasets.length;s<i;++s)if(r.isDatasetVisible(s)){o=r.getDatasetMeta(s),t=o.data,a=o.controller;break}}if(!t)return 0;for(s=0,i=t.length;s<i;++s)l=a.resolveDataElementOptions(s),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,s=t.length;r<s;++r){const i=this.resolveDataElementOptions(r);n=Math.max(n,i.offset||0,i.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(Ce(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}G(to,"id","doughnut"),G(to,"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"}),G(to,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),G(to,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:s}}=t.legend.options;return n.labels.map((i,o)=>{const l=t.getDatasetMeta(0).controller.getStyle(o);return{text:i,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:s,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class Fa extends ds{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:s=[],_dataset:i}=n,o=this.chart._animationsDisabled;let{start:a,count:l}=Fw(n,s,o);this._drawStart=a,this._drawCount=l,$w(n)&&(a=0,l=s.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!i._decimated,r.points=s;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!o,options:u},t),this.updateElements(s,a,l,t)}updateElements(t,n,r,s){const i=s==="reset",{iScale:o,vScale:a,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,s),h=o.axis,p=a.axis,{spanGaps:m,segment:y}=this.options,g=Gi(m)?m:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||i||s==="none",w=n+r,S=t.length;let T=n>0&&this.getParsed(n-1);for(let _=0;_<S;++_){const C=t[_],M=x?C:{};if(_<n||_>=w){M.skip=!0;continue}const k=this.getParsed(_),R=lt(k[p]),b=M[h]=o.getPixelForValue(k[h],_),E=M[p]=i||R?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,k,l):k[p],_);M.skip=isNaN(b)||isNaN(E)||R,M.stop=_>0&&Math.abs(k[h]-T[h])>g,y&&(M.parsed=k,M.raw=u.data[_]),f&&(M.options=d||this.resolveDataElementOptions(_,C.active?"active":s)),x||this.updateElement(C,_,M,s),T=k}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,s=t.data||[];if(!s.length)return r;const i=s[0].size(this.resolveDataElementOptions(0)),o=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(r,i,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}G(Fa,"id","line"),G(Fa,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),G(Fa,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class lu extends to{}G(lu,"id","pie"),G(lu,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});function fs(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class cu{constructor(t){G(this,"options");this.options=t||{}}static override(t){Object.assign(cu.prototype,t)}init(){}formats(){return fs()}parse(){return fs()}format(){return fs()}add(){return fs()}diff(){return fs()}startOf(){return fs()}endOf(){return fs()}}var Bp={_date:cu};function uS(e,t,n,r){const{controller:s,data:i,_sorted:o}=e,a=s._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&o&&i.length){const l=a._reversePixels?Rw:ss;if(r){if(s._sharedOptions){const u=i[0],d=typeof u.getRange=="function"&&u.getRange(t);if(d){const f=l(i,t,n-d),h=l(i,t,n+d);return{lo:f.lo,hi:h.hi}}}}else return l(i,t,n)}return{lo:0,hi:i.length-1}}function no(e,t,n,r,s){const i=e.getSortedVisibleDatasetMetas(),o=n[t];for(let a=0,l=i.length;a<l;++a){const{index:u,data:d}=i[a],{lo:f,hi:h}=uS(i[a],t,o,s);for(let p=f;p<=h;++p){const m=d[p];m.skip||r(m,u,p)}}}function dS(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,s){const i=t?Math.abs(r.x-s.x):0,o=n?Math.abs(r.y-s.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}function uu(e,t,n,r,s){const i=[];return!s&&!e.isPointInArea(t)||no(e,n,t,function(a,l,u){!s&&!Qi(a,e.chartArea,0)||a.inRange(t.x,t.y,r)&&i.push({element:a,datasetIndex:l,index:u})},!0),i}function fS(e,t,n,r){let s=[];function i(o,a,l){const{startAngle:u,endAngle:d}=o.getProps(["startAngle","endAngle"],r),{angle:f}=Qh(o,{x:t.x,y:t.y});Xi(f,u,d)&&s.push({element:o,datasetIndex:a,index:l})}return no(e,n,t,i),s}function hS(e,t,n,r,s,i){let o=[];const a=dS(n);let l=Number.POSITIVE_INFINITY;function u(d,f,h){const p=d.inRange(t.x,t.y,s);if(r&&!p)return;const m=d.getCenterPoint(s);if(!(!!i||e.isPointInArea(m))&&!p)return;const g=a(t,m);g<l?(o=[{element:d,datasetIndex:f,index:h}],l=g):g===l&&o.push({element:d,datasetIndex:f,index:h})}return no(e,n,t,u),o}function du(e,t,n,r,s,i){return!i&&!e.isPointInArea(t)?[]:n==="r"&&!r?fS(e,t,n,s):hS(e,t,n,r,s,i)}function zp(e,t,n,r,s){const i=[],o=n==="x"?"inXRange":"inYRange";let a=!1;return no(e,n,t,(l,u,d)=>{l[o]&&l[o](t[n],s)&&(i.push({element:l,datasetIndex:u,index:d}),a=a||l.inRange(t.x,t.y,s))}),r&&!a?[]:i}var pS={evaluateInteractionItems:no,modes:{index(e,t,n,r){const s=cs(t,e),i=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?uu(e,s,i,r,o):du(e,s,i,!1,r,o),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const d=a[0].index,f=u.data[d];f&&!f.skip&&l.push({element:f,datasetIndex:u.index,index:d})}),l):[]},dataset(e,t,n,r){const s=cs(t,e),i=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?uu(e,s,i,r,o):du(e,s,i,!1,r,o);if(a.length>0){const l=a[0].datasetIndex,u=e.getDatasetMeta(l).data;a=[];for(let d=0;d<u.length;++d)a.push({element:u[d],datasetIndex:l,index:d})}return a},point(e,t,n,r){const s=cs(t,e),i=n.axis||"xy",o=n.includeInvisible||!1;return uu(e,s,i,r,o)},nearest(e,t,n,r){const s=cs(t,e),i=n.axis||"xy",o=n.includeInvisible||!1;return du(e,s,i,n.intersect,r,o)},x(e,t,n,r){const s=cs(t,e);return zp(e,s,"x",n.intersect,r)},y(e,t,n,r){const s=cs(t,e);return zp(e,s,"y",n.intersect,r)}}};const Yp=["left","top","right","bottom"];function ro(e,t){return e.filter(n=>n.pos===t)}function Vp(e,t){return e.filter(n=>Yp.indexOf(n.pos)===-1&&n.box.axis===t)}function so(e,t){return e.sort((n,r)=>{const s=t?r:n,i=t?n:r;return s.weight===i.weight?s.index-i.index:s.weight-i.weight})}function gS(e){const t=[];let n,r,s,i,o,a;for(n=0,r=(e||[]).length;n<r;++n)s=e[n],{position:i,options:{stack:o,stackWeight:a=1}}=s,t.push({index:n,box:s,pos:i,horizontal:s.isHorizontal(),weight:s.weight,stack:o&&i+o,stackWeight:a});return t}function mS(e){const t={};for(const n of e){const{stack:r,pos:s,stackWeight:i}=n;if(!r||!Yp.includes(s))continue;const o=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=i}return t}function yS(e,t){const n=mS(e),{vBoxMaxWidth:r,hBoxMaxHeight:s}=t;let i,o,a;for(i=0,o=e.length;i<o;++i){a=e[i];const{fullSize:l}=a.box,u=n[a.stack],d=u&&a.stackWeight/u.weight;a.horizontal?(a.width=d?d*r:l&&t.availableWidth,a.height=s):(a.width=r,a.height=d?d*s:l&&t.availableHeight)}return n}function bS(e){const t=gS(e),n=so(t.filter(u=>u.box.fullSize),!0),r=so(ro(t,"left"),!0),s=so(ro(t,"right")),i=so(ro(t,"top"),!0),o=so(ro(t,"bottom")),a=Vp(t,"x"),l=Vp(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:s.concat(l).concat(o).concat(a),chartArea:ro(t,"chartArea"),vertical:r.concat(s).concat(l),horizontal:i.concat(o).concat(a)}}function Hp(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Up(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 vS(e,t,n,r){const{pos:s,box:i}=n,o=e.maxPadding;if(!Ne(s)){n.size&&(e[s]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?i.height:i.width),n.size=f.size/f.count,e[s]+=n.size}i.getPadding&&Up(o,i.getPadding());const a=Math.max(0,t.outerWidth-Hp(o,e,"left","right")),l=Math.max(0,t.outerHeight-Hp(o,e,"top","bottom")),u=a!==e.w,d=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:u,other:d}:{same:d,other:u}}function xS(e){const t=e.maxPadding;function n(r){const s=Math.max(t[r]-e[r],0);return e[r]+=s,s}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function _S(e,t){const n=t.maxPadding;function r(s){const i={left:0,top:0,right:0,bottom:0};return s.forEach(o=>{i[o]=Math.max(t[o],n[o])}),i}return r(e?["left","right"]:["top","bottom"])}function io(e,t,n,r){const s=[];let i,o,a,l,u,d;for(i=0,o=e.length,u=0;i<o;++i){a=e[i],l=a.box,l.update(a.width||t.w,a.height||t.h,_S(a.horizontal,t));const{same:f,other:h}=vS(t,n,a,r);u|=f&&s.length,d=d||h,l.fullSize||s.push(a)}return u&&io(s,t,n,r)||d}function $a(e,t,n,r,s){e.top=n,e.left=t,e.right=t+r,e.bottom=n+s,e.width=r,e.height=s}function qp(e,t,n,r){const s=n.padding;let{x:i,y:o}=t;for(const a of e){const l=a.box,u=r[a.stack]||{count:1,placed:0,weight:1},d=a.stackWeight/u.weight||1;if(a.horizontal){const f=t.w*d,h=u.size||l.height;Ui(u.start)&&(o=u.start),l.fullSize?$a(l,s.left,o,n.outerWidth-s.right-s.left,h):$a(l,t.left+u.placed,o,f,h),u.start=o,u.placed+=f,o=l.bottom}else{const f=t.h*d,h=u.size||l.width;Ui(u.start)&&(i=u.start),l.fullSize?$a(l,i,s.top,h,n.outerHeight-s.bottom-s.top):$a(l,i,t.top+u.placed,h,f),u.start=i,u.placed+=f,i=l.right}}t.x=i,t.y=o}var wn={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 s=_n(e.options.layout.padding),i=Math.max(t-s.width,0),o=Math.max(n-s.height,0),a=bS(e.boxes),l=a.vertical,u=a.horizontal;Qe(e.boxes,y=>{typeof y.beforeLayout=="function"&&y.beforeLayout()});const d=l.reduce((y,g)=>g.box.options&&g.box.options.display===!1?y:y+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:s,availableWidth:i,availableHeight:o,vBoxMaxWidth:i/2/d,hBoxMaxHeight:o/2}),h=Object.assign({},s);Up(h,_n(r));const p=Object.assign({maxPadding:h,w:i,h:o,x:s.left,y:s.top},s),m=yS(l.concat(u),f);io(a.fullSize,p,f,m),io(l,p,f,m),io(u,p,f,m)&&io(l,p,f,m),xS(p),qp(a.leftAndTop,p,f,m),p.x+=p.w,p.y+=p.h,qp(a.rightAndBottom,p,f,m),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},Qe(a.chartArea,y=>{const g=y.box;Object.assign(g,e.chartArea),g.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Gp{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,s){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,s?Math.floor(n/s):r)}}isAttached(t){return!0}updateConfig(t){}}class wS extends Gp{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const La="$chartjs",SS={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Xp=e=>e===null||e==="";function TS(e,t){const n=e.style,r=e.getAttribute("height"),s=e.getAttribute("width");if(e[La]={initial:{height:r,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Xp(s)){const i=wp(e,"width");i!==void 0&&(e.width=i)}if(Xp(r))if(e.style.height==="")e.height=e.width/(t||2);else{const i=wp(e,"height");i!==void 0&&(e.height=i)}return e}const Kp=O1?{passive:!0}:!1;function kS(e,t,n){e&&e.addEventListener(t,n,Kp)}function OS(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,Kp)}function CS(e,t){const n=SS[e.type]||e.type,{x:r,y:s}=cs(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:s!==void 0?s:null}}function Wa(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function MS(e,t,n){const r=e.canvas,s=new MutationObserver(i=>{let o=!1;for(const a of i)o=o||Wa(a.addedNodes,r),o=o&&!Wa(a.removedNodes,r);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function ES(e,t,n){const r=e.canvas,s=new MutationObserver(i=>{let o=!1;for(const a of i)o=o||Wa(a.removedNodes,r),o=o&&!Wa(a.addedNodes,r);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const oo=new Map;let Zp=0;function Qp(){const e=window.devicePixelRatio;e!==Zp&&(Zp=e,oo.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function DS(e,t){oo.size||window.addEventListener("resize",Qp),oo.set(e,t)}function PS(e){oo.delete(e),oo.size||window.removeEventListener("resize",Qp)}function RS(e,t,n){const r=e.canvas,s=r&&ru(r);if(!s)return;const i=rp((a,l)=>{const u=s.clientWidth;n(a,l),u<s.clientWidth&&n()},window),o=new ResizeObserver(a=>{const l=a[0],u=l.contentRect.width,d=l.contentRect.height;u===0&&d===0||i(u,d)});return o.observe(s),DS(e,i),o}function fu(e,t,n){n&&n.disconnect(),t==="resize"&&PS(e)}function AS(e,t,n){const r=e.canvas,s=rp(i=>{e.ctx!==null&&n(CS(i,e))},e);return kS(r,t,s),s}class IS extends Gp{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(TS(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[La])return!1;const r=n[La].initial;["height","width"].forEach(i=>{const o=r[i];lt(o)?n.removeAttribute(i):n.setAttribute(i,o)});const s=r.style||{};return Object.keys(s).forEach(i=>{n.style[i]=s[i]}),n.width=n.width,delete n[La],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const s=t.$proxies||(t.$proxies={}),o={attach:MS,detach:ES,resize:RS}[n]||AS;s[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),s=r[n];if(!s)return;({attach:fu,detach:fu,resize:fu}[n]||OS)(t,n,s),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,s){return k1(t,n,r,s)}isAttached(t){const n=t&&ru(t);return!!(n&&n.isConnected)}}function NS(e){return!nu()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?wS:IS}let wr=(Hl=class{constructor(){G(this,"x");G(this,"y");G(this,"active",!1);G(this,"options");G(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Gi(this.x)&&Gi(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const s={};return t.forEach(i=>{s[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),s}},G(Hl,"defaults",{}),G(Hl,"defaultRoutes"),Hl);function jS(e,t){const n=e.options.ticks,r=FS(e),s=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?LS(t):[],o=i.length,a=i[0],l=i[o-1],u=[];if(o>s)return WS(t,u,i,o/s),u;const d=$S(i,t,s);if(o>0){let f,h;const p=o>1?Math.round((l-a)/(o-1)):null;for(Ba(t,u,d,lt(p)?0:a-p,a),f=0,h=o-1;f<h;f++)Ba(t,u,d,i[f],i[f+1]);return Ba(t,u,d,l,lt(p)?t.length:l+p),u}return Ba(t,u,d),u}function FS(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),s=e._maxLength/n;return Math.floor(Math.min(r,s))}function $S(e,t,n){const r=BS(e),s=t.length/n;if(!r)return Math.max(s,1);const i=Ow(r);for(let o=0,a=i.length-1;o<a;o++){const l=i[o];if(l>s)return l}return Math.max(s,1)}function LS(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function WS(e,t,n,r){let s=0,i=n[0],o;for(r=Math.ceil(r),o=0;o<e.length;o++)o===i&&(t.push(e[o]),s++,i=n[s*r])}function Ba(e,t,n,r,s){const i=Ce(r,0),o=Math.min(Ce(s,e.length),e.length);let a=0,l,u,d;for(n=Math.ceil(n),s&&(l=s-r,n=l/Math.floor(l/n)),d=i;d<0;)a++,d=Math.round(i+a*n);for(u=Math.max(i,0);u<o;u++)u===d&&(t.push(e[u]),a++,d=Math.round(i+a*n))}function BS(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 zS=e=>e==="left"?"right":e==="right"?"left":e,Jp=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,eg=(e,t)=>Math.min(t||e,e);function tg(e,t){const n=[],r=e.length/t,s=e.length;let i=0;for(;i<s;i+=r)n.push(e[Math.floor(i)]);return n}function YS(e,t,n){const r=e.ticks.length,s=Math.min(t,r-1),i=e._startPixel,o=e._endPixel,a=1e-6;let l=e.getPixelForTick(s),u;if(!(n&&(r===1?u=Math.max(l-i,o-l):t===0?u=(e.getPixelForTick(1)-l)/2:u=(l-e.getPixelForTick(s-1))/2,l+=s<t?u:-u,l<i-a||l>o+a)))return l}function VS(e,t){Qe(e,n=>{const r=n.gc,s=r.length/2;let i;if(s>t){for(i=0;i<s;++i)delete n.data[r[i]];r.splice(0,s)}})}function ao(e){return e.drawTicks?e.tickLength:0}function ng(e,t){if(!e.display)return 0;const n=Kt(e.font,t),r=_n(e.padding);return(Nt(e.text)?e.text.length:1)*n.lineHeight+r.height}function HS(e,t){return as(e,{scale:t,type:"scale"})}function US(e,t,n){return as(e,{tick:n,index:t,type:"tick"})}function qS(e,t,n){let r=Yc(e);return(n&&t!=="right"||!n&&t==="right")&&(r=zS(r)),r}function GS(e,t,n,r){const{top:s,left:i,bottom:o,right:a,chart:l}=e,{chartArea:u,scales:d}=l;let f=0,h,p,m;const y=o-s,g=a-i;if(e.isHorizontal()){if(p=Xt(r,i,a),Ne(n)){const x=Object.keys(n)[0],w=n[x];m=d[x].getPixelForValue(w)+y-t}else n==="center"?m=(u.bottom+u.top)/2+y-t:m=Jp(e,n,t);h=a-i}else{if(Ne(n)){const x=Object.keys(n)[0],w=n[x];p=d[x].getPixelForValue(w)-g+t}else n==="center"?p=(u.left+u.right)/2-g+t:p=Jp(e,n,t);m=Xt(r,o,s),f=n==="left"?-jt:jt}return{titleX:p,titleY:m,maxWidth:h,rotation:f}}class Us extends wr{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:s}=this;return t=qn(t,Number.POSITIVE_INFINITY),n=qn(n,Number.NEGATIVE_INFINITY),r=qn(r,Number.POSITIVE_INFINITY),s=qn(s,Number.NEGATIVE_INFINITY),{min:qn(t,r),max:qn(n,s),minDefined:xn(t),maxDefined:xn(n)}}getMinMax(t){let{min:n,max:r,minDefined:s,maxDefined:i}=this.getUserBounds(),o;if(s&&i)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let l=0,u=a.length;l<u;++l)o=a[l].controller.getMinMax(this,t),s||(n=Math.min(n,o.min)),i||(r=Math.max(r,o.max));return n=i&&n>r?r:n,r=s&&n>r?n:r,{min:qn(n,qn(r,n)),max:qn(r,qn(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(){ct(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:s,grace:i,ticks:o}=this.options,a=o.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=r1(this,i,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?tg(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=jS(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(){ct(this.options.afterUpdate,[this])}beforeSetDimensions(){ct(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(){ct(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),ct(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){ct(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,s,i;for(r=0,s=t.length;r<s;r++)i=t[r],i.label=ct(n.callback,[i.value,r,t],this)}afterTickToLabelConversion(){ct(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){ct(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=eg(this.ticks.length,t.ticks.maxTicksLimit),s=n.minRotation||0,i=n.maxRotation;let o=s,a,l,u;if(!this._isVisible()||!n.display||s>=i||r<=1||!this.isHorizontal()){this.labelRotation=s;return}const d=this._getLabelSizes(),f=d.widest.width,h=d.highest.height,p=Gt(this.chart.width-f,0,this.maxWidth);a=t.offset?this.maxWidth/r:p/(r-1),f+6>a&&(a=p/(r-(t.offset?.5:1)),l=this.maxHeight-ao(t.grid)-n.padding-ng(t.title,this.chart.options.font),u=Math.sqrt(f*f+h*h),o=Ew(Math.min(Math.asin(Gt((d.highest.height+6)/a,-1,1)),Math.asin(Gt(l/u,-1,1))-Math.asin(Gt(h/u,-1,1)))),o=Math.max(s,Math.min(i,o))),this.labelRotation=o}afterCalculateLabelRotation(){ct(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ct(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:s,grid:i}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const l=ng(s,n.options.font);if(a?(t.width=this.maxWidth,t.height=ao(i)+l):(t.height=this.maxHeight,t.width=ao(i)+l),r.display&&this.ticks.length){const{first:u,last:d,widest:f,highest:h}=this._getLabelSizes(),p=r.padding*2,m=xr(this.labelRotation),y=Math.cos(m),g=Math.sin(m);if(a){const x=r.mirror?0:g*f.width+y*h.height;t.height=Math.min(this.maxHeight,t.height+x+p)}else{const x=r.mirror?0:y*f.width+g*h.height;t.width=Math.min(this.maxWidth,t.width+x+p)}this._calculatePadding(u,d,g,y)}}this._handleMargins(),a?(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,s){const{ticks:{align:i,padding:o},position:a}=this.options,l=this.labelRotation!==0,u=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,p=0;l?u?(h=s*t.width,p=r*n.height):(h=r*t.height,p=s*n.width):i==="start"?p=n.width:i==="end"?h=t.width:i!=="inner"&&(h=t.width/2,p=n.width/2),this.paddingLeft=Math.max((h-d+o)*this.width/(this.width-d),0),this.paddingRight=Math.max((p-f+o)*this.width/(this.width-f),0)}else{let d=n.height/2,f=t.height/2;i==="start"?(d=0,f=t.height):i==="end"&&(d=n.height,f=0),this.paddingTop=d+o,this.paddingBottom=f+o}}_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(){ct(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++)lt(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=tg(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:s,_longestTextCache:i}=this,o=[],a=[],l=Math.floor(n/eg(n,r));let u=0,d=0,f,h,p,m,y,g,x,w,S,T,_;for(f=0;f<n;f+=l){if(m=t[f].label,y=this._resolveTickFontOptions(f),s.font=g=y.string,x=i[g]=i[g]||{data:{},gc:[]},w=y.lineHeight,S=T=0,!lt(m)&&!Nt(m))S=up(s,x.data,x.gc,S,m),T=w;else if(Nt(m))for(h=0,p=m.length;h<p;++h)_=m[h],!lt(_)&&!Nt(_)&&(S=up(s,x.data,x.gc,S,_),T+=w);o.push(S),a.push(T),u=Math.max(S,u),d=Math.max(T,d)}VS(i,n);const C=o.indexOf(u),M=a.indexOf(d),k=R=>({width:o[R]||0,height:a[R]||0});return{first:k(0),last:k(n-1),widest:k(C),highest:k(M),widths:o,heights:a}}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 Pw(this._alignToPixels?os(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=US(this.getContext(),t,r))}return this.$context||(this.$context=HS(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=xr(this.labelRotation),r=Math.abs(Math.cos(n)),s=Math.abs(Math.sin(n)),i=this._getLabelSizes(),o=t.autoSkipPadding||0,a=i?i.widest.width+o:0,l=i?i.highest.height+o:0;return this.isHorizontal()?l*r>a*s?a/r:l/s:l*s<a*r?l/r:a/s}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,s=this.options,{grid:i,position:o,border:a}=s,l=i.offset,u=this.isHorizontal(),f=this.ticks.length+(l?1:0),h=ao(i),p=[],m=a.setContext(this.getContext()),y=m.display?m.width:0,g=y/2,x=function(D){return os(r,D,y)};let w,S,T,_,C,M,k,R,b,E,I,W;if(o==="top")w=x(this.bottom),M=this.bottom-h,R=w-g,E=x(t.top)+g,W=t.bottom;else if(o==="bottom")w=x(this.top),E=t.top,W=x(t.bottom)-g,M=w+g,R=this.top+h;else if(o==="left")w=x(this.right),C=this.right-h,k=w-g,b=x(t.left)+g,I=t.right;else if(o==="right")w=x(this.left),b=t.left,I=x(t.right)-g,C=w+g,k=this.left+h;else if(n==="x"){if(o==="center")w=x((t.top+t.bottom)/2+.5);else if(Ne(o)){const D=Object.keys(o)[0],L=o[D];w=x(this.chart.scales[D].getPixelForValue(L))}E=t.top,W=t.bottom,M=w+g,R=M+h}else if(n==="y"){if(o==="center")w=x((t.left+t.right)/2);else if(Ne(o)){const D=Object.keys(o)[0],L=o[D];w=x(this.chart.scales[D].getPixelForValue(L))}C=w-g,k=C-h,b=t.left,I=t.right}const j=Ce(s.ticks.maxTicksLimit,f),O=Math.max(1,Math.ceil(f/j));for(S=0;S<f;S+=O){const D=this.getContext(S),L=i.setContext(D),F=a.setContext(D),z=L.lineWidth,$=L.color,H=F.dash||[],U=F.dashOffset,K=L.tickWidth,J=L.tickColor,ie=L.tickBorderDash||[],ae=L.tickBorderDashOffset;T=YS(this,S,l),T!==void 0&&(_=os(r,T,z),u?C=k=b=I=_:M=R=E=W=_,p.push({tx1:C,ty1:M,tx2:k,ty2:R,x1:b,y1:E,x2:I,y2:W,width:z,color:$,borderDash:H,borderDashOffset:U,tickWidth:K,tickColor:J,tickBorderDash:ie,tickBorderDashOffset:ae}))}return this._ticksLength=f,this._borderValue=w,p}_computeLabelItems(t){const n=this.axis,r=this.options,{position:s,ticks:i}=r,o=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:u,padding:d,mirror:f}=i,h=ao(r.grid),p=h+d,m=f?-d:p,y=-xr(this.labelRotation),g=[];let x,w,S,T,_,C,M,k,R,b,E,I,W="middle";if(s==="top")C=this.bottom-m,M=this._getXAxisLabelAlignment();else if(s==="bottom")C=this.top+m,M=this._getXAxisLabelAlignment();else if(s==="left"){const O=this._getYAxisLabelAlignment(h);M=O.textAlign,_=O.x}else if(s==="right"){const O=this._getYAxisLabelAlignment(h);M=O.textAlign,_=O.x}else if(n==="x"){if(s==="center")C=(t.top+t.bottom)/2+p;else if(Ne(s)){const O=Object.keys(s)[0],D=s[O];C=this.chart.scales[O].getPixelForValue(D)+p}M=this._getXAxisLabelAlignment()}else if(n==="y"){if(s==="center")_=(t.left+t.right)/2-p;else if(Ne(s)){const O=Object.keys(s)[0],D=s[O];_=this.chart.scales[O].getPixelForValue(D)}M=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(l==="start"?W="top":l==="end"&&(W="bottom"));const j=this._getLabelSizes();for(x=0,w=a.length;x<w;++x){S=a[x],T=S.label;const O=i.setContext(this.getContext(x));k=this.getPixelForTick(x)+i.labelOffset,R=this._resolveTickFontOptions(x),b=R.lineHeight,E=Nt(T)?T.length:1;const D=E/2,L=O.color,F=O.textStrokeColor,z=O.textStrokeWidth;let $=M;o?(_=k,M==="inner"&&(x===w-1?$=this.options.reverse?"left":"right":x===0?$=this.options.reverse?"right":"left":$="center"),s==="top"?u==="near"||y!==0?I=-E*b+b/2:u==="center"?I=-j.highest.height/2-D*b+b:I=-j.highest.height+b/2:u==="near"||y!==0?I=b/2:u==="center"?I=j.highest.height/2-D*b:I=j.highest.height-E*b,f&&(I*=-1),y!==0&&!O.showLabelBackdrop&&(_+=b/2*Math.sin(y))):(C=k,I=(1-E)*b/2);let H;if(O.showLabelBackdrop){const U=_n(O.backdropPadding),K=j.heights[x],J=j.widths[x];let ie=I-U.top,ae=0-U.left;switch(W){case"middle":ie-=K/2;break;case"bottom":ie-=K;break}switch(M){case"center":ae-=J/2;break;case"right":ae-=J;break;case"inner":x===w-1?ae-=J:x>0&&(ae-=J/2);break}H={left:ae,top:ie,width:J+U.width,height:K+U.height,color:O.backdropColor}}g.push({label:T,font:R,textOffset:I,options:{rotation:y,color:L,strokeColor:F,strokeWidth:z,textAlign:$,textBaseline:W,translation:[_,C],backdrop:H}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-xr(this.labelRotation))return t==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:s,padding:i}}=this.options,o=this._getLabelSizes(),a=t+i,l=o.widest.width;let u,d;return n==="left"?s?(d=this.right+i,r==="near"?u="left":r==="center"?(u="center",d+=l/2):(u="right",d+=l)):(d=this.right-a,r==="near"?u="right":r==="center"?(u="center",d-=l/2):(u="left",d=this.left)):n==="right"?s?(d=this.left+i,r==="near"?u="right":r==="center"?(u="center",d-=l/2):(u="left",d-=l)):(d=this.left+a,r==="near"?u="left":r==="center"?(u="center",d+=l/2):(u="right",d=this.right)):u="right",{textAlign:u,x:d}}_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:s,width:i,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,s,i,o),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(i=>i.value===t);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,o;const a=(l,u,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(i=0,o=s.length;i<o;++i){const l=s[i];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({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:s}}=this,i=r.setContext(this.getContext()),o=r.display?i.width:0;if(!o)return;const a=s.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,d,f,h;this.isHorizontal()?(u=os(t,this.left,o)-o/2,d=os(t,this.right,a)+a/2,f=h=l):(f=os(t,this.top,o)-o/2,h=os(t,this.bottom,a)+a/2,u=d=l),n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.beginPath(),n.moveTo(u,f),n.lineTo(d,h),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,s=this._computeLabelArea();s&&Kc(r,s);const i=this.getLabelItems(t);for(const o of i){const a=o.options,l=o.font,u=o.label,d=o.textOffset;Ji(r,u,0,d,l,a)}s&&Zc(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:s}}=this;if(!r.display)return;const i=Kt(r.font),o=_n(r.padding),a=r.align;let l=i.lineHeight/2;n==="bottom"||n==="center"||Ne(n)?(l+=o.bottom,Nt(r.text)&&(l+=i.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:u,titleY:d,maxWidth:f,rotation:h}=GS(this,l,n,a);Ji(t,r.text,0,0,i,{color:r.color,maxWidth:f,rotation:h,textAlign:qS(a,n,s),textBaseline:"middle",translation:[u,d]})}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=Ce(t.grid&&t.grid.z,-1),s=Ce(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Us.prototype.draw?[{z:n,draw:i=>{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",s=[];let i,o;for(i=0,o=n.length;i<o;++i){const a=n[i];a[r]===this.id&&(!t||a.type===t)&&s.push(a)}return s}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return Kt(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class za{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;ZS(n)&&(r=this.register(n));const s=this.items,i=t.id,o=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+t);return i in s||(s[i]=t,XS(t,o,r),this.override&&Ct.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,s=this.scope;r in n&&delete n[r],s&&r in Ct[s]&&(delete Ct[s][r],this.override&&delete is[r])}}function XS(e,t,n){const r=Vi(Object.create(null),[n?Ct.get(n):{},Ct.get(t),e.defaults]);Ct.set(t,r),e.defaultRoutes&&KS(t,e.defaultRoutes),e.descriptors&&Ct.describe(t,e.descriptors)}function KS(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),s=r.pop(),i=[e].concat(r).join("."),o=t[n].split("."),a=o.pop(),l=o.join(".");Ct.route(i,s,l,a)})}function ZS(e){return"id"in e&&"defaults"in e}class QS{constructor(){this.controllers=new za(ds,"datasets",!0),this.elements=new za(wr,"elements"),this.plugins=new za(Object,"plugins"),this.scales=new za(Us,"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(s=>{const i=r||this._getRegistryForType(s);r||i.isForType(s)||i===this.plugins&&s.id?this._exec(t,i,s):Qe(s,o=>{const a=r||this._getRegistryForType(o);this._exec(t,a,o)})})}_exec(t,n,r){const s=Lc(t);ct(r["before"+s],[],r),n[t](r),ct(r["after"+s],[],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 s=n.get(t);if(s===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return s}}var Xn=new QS;class JS{constructor(){this._init=[]}notify(t,n,r,s){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const i=s?this._descriptors(t).filter(s):this._descriptors(t),o=this._notify(i,t,n,r);return n==="afterDestroy"&&(this._notify(i,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,n,r,s){s=s||{};for(const i of t){const o=i.plugin,a=o[r],l=[n,s,i.options];if(ct(a,l,o)===!1&&s.cancelable)return!1}return!0}invalidate(){lt(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,s=Ce(r.options&&r.options.plugins,{}),i=eT(r);return s===!1&&!n?[]:nT(t,i,s,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,s=(i,o)=>i.filter(a=>!o.some(l=>a.plugin.id===l.plugin.id));this._notify(s(n,r),t,"stop"),this._notify(s(r,n),t,"start")}}function eT(e){const t={},n=[],r=Object.keys(Xn.plugins.items);for(let i=0;i<r.length;i++)n.push(Xn.getPlugin(r[i]));const s=e.plugins||[];for(let i=0;i<s.length;i++){const o=s[i];n.indexOf(o)===-1&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}function tT(e,t){return!t&&e===!1?null:e===!0?{}:e}function nT(e,{plugins:t,localIds:n},r,s){const i=[],o=e.getContext();for(const a of t){const l=a.id,u=tT(r[l],s);u!==null&&i.push({plugin:a,options:rT(e.config,{plugin:a,local:n[l]},u,o)})}return i}function rT(e,{plugin:t,local:n},r,s){const i=e.pluginScopeKeys(t),o=e.getOptionScopes(r,i);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function hu(e,t){const n=Ct.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function sT(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function iT(e,t){return e===t?"_index_":"_value_"}function rg(e){if(e==="x"||e==="y"||e==="r")return e}function oT(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function pu(e,...t){if(rg(e))return e;for(const n of t){const r=n.axis||oT(n.position)||e.length>1&&rg(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function sg(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function aT(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 sg(e,"x",n[0])||sg(e,"y",n[0])}return{}}function lT(e,t){const n=is[e.type]||{scales:{}},r=t.scales||{},s=hu(e.type,t),i=Object.create(null);return Object.keys(r).forEach(o=>{const a=r[o];if(!Ne(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=pu(o,a,aT(o,e),Ct.scales[a.type]),u=iT(l,s),d=n.scales||{};i[o]=Hi(Object.create(null),[{axis:l},a,d[l],d[u]])}),e.data.datasets.forEach(o=>{const a=o.type||e.type,l=o.indexAxis||hu(a,t),d=(is[a]||{}).scales||{};Object.keys(d).forEach(f=>{const h=sT(f,l),p=o[h+"AxisID"]||h;i[p]=i[p]||Object.create(null),Hi(i[p],[{axis:h},r[p],d[f]])})}),Object.keys(i).forEach(o=>{const a=i[o];Hi(a,[Ct.scales[a.type],Ct.scale])}),i}function ig(e){const t=e.options||(e.options={});t.plugins=Ce(t.plugins,{}),t.scales=lT(e,t)}function og(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function cT(e){return e=e||{},e.data=og(e.data),ig(e),e}const ag=new Map,lg=new Set;function Ya(e,t){let n=ag.get(e);return n||(n=t(),ag.set(e,n),lg.add(n)),n}const lo=(e,t,n)=>{const r=ns(t,n);r!==void 0&&e.add(r)};class uT{constructor(t){this._config=cT(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=og(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(),ig(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Ya(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Ya(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Ya(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Ya(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let s=r.get(t);return(!s||n)&&(s=new Map,r.set(t,s)),s}getOptionScopes(t,n,r){const{options:s,type:i}=this,o=this._cachedScopes(t,r),a=o.get(n);if(a)return a;const l=new Set;n.forEach(d=>{t&&(l.add(t),d.forEach(f=>lo(l,t,f))),d.forEach(f=>lo(l,s,f)),d.forEach(f=>lo(l,is[i]||{},f)),d.forEach(f=>lo(l,Ct,f)),d.forEach(f=>lo(l,qc,f))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),lg.has(n)&&o.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,is[n]||{},Ct.datasets[n]||{},{type:n},Ct,qc]}resolveNamedOptions(t,n,r,s=[""]){const i={$shared:!0},{resolver:o,subPrefixes:a}=cg(this._resolverCache,t,s);let l=o;if(fT(o,n)){i.$shared=!1,r=Vr(r)?r():r;const u=this.createResolver(t,r,a);l=Ys(o,r,u)}for(const u of n)i[u]=l[u];return i}createResolver(t,n,r=[""],s){const{resolver:i}=cg(this._resolverCache,t,r);return Ne(n)?Ys(i,n,void 0,s):i}}function cg(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const s=n.join();let i=r.get(s);return i||(i={resolver:Jc(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(s,i)),i}const dT=e=>Ne(e)&&Object.getOwnPropertyNames(e).some(t=>Vr(e[t]));function fT(e,t){const{isScriptable:n,isIndexable:r}=pp(e);for(const s of t){const i=n(s),o=r(s),a=(o||i)&&e[s];if(i&&(Vr(a)||dT(a))||o&&Nt(a))return!0}return!1}var hT="4.4.7";const pT=["top","bottom","left","right","chartArea"];function ug(e,t){return e==="top"||e==="bottom"||pT.indexOf(e)===-1&&t==="x"}function dg(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function fg(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),ct(n&&n.onComplete,[e],t)}function gT(e){const t=e.chart,n=t.options.animation;ct(n&&n.onProgress,[e],t)}function hg(e){return nu()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Va={},pg=e=>{const t=hg(e);return Object.values(Va).filter(n=>n.canvas===t).pop()};function mT(e,t,n){const r=Object.keys(e);for(const s of r){const i=+s;if(i>=t){const o=e[s];delete e[s],(n>0||i>t)&&(e[i+n]=o)}}}function yT(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function Ha(e,t,n){return e.options.clip?e[n]:t[n]}function bT(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Ha(n,t,"left"),right:Ha(n,t,"right"),top:Ha(r,t,"top"),bottom:Ha(r,t,"bottom")}:t}let Kn=(Jr=class{static register(...t){Xn.add(...t),gg()}static unregister(...t){Xn.remove(...t),gg()}constructor(t,n){const r=this.config=new uT(n),s=hg(t),i=pg(s);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||NS(s)),this.platform.updateConfig(r);const a=this.platform.acquireContext(s,o.aspectRatio),l=a&&a.canvas,u=l&&l.height,d=l&&l.width;if(this.id=yw(),this.ctx=a,this.canvas=l,this.width=d,this.height=u,this._options=o,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 JS,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Nw(f=>this.update(f),o.resizeDelay||0),this._dataChanges=[],Va[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}_r.listen(this,"complete",fg),_r.listen(this,"progress",gT),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:s,_aspectRatio:i}=this;return lt(t)?n&&i?i:s?r/s: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 Xn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():_p(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return dp(this.canvas,this.ctx),this}stop(){return _r.stop(this),this}resize(t,n){_r.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,s=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,t,n,i),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,_p(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),ct(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Qe(n,(r,s)=>{r.id=s})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,s=Object.keys(r).reduce((o,a)=>(o[a]=!1,o),{});let i=[];n&&(i=i.concat(Object.keys(n).map(o=>{const a=n[o],l=pu(o,a),u=l==="r",d=l==="x";return{options:a,dposition:u?"chartArea":d?"bottom":"left",dtype:u?"radialLinear":d?"category":"linear"}}))),Qe(i,o=>{const a=o.options,l=a.id,u=pu(l,a),d=Ce(a.type,o.dtype);(a.position===void 0||ug(a.position,u)!==ug(o.dposition))&&(a.position=o.dposition),s[l]=!0;let f=null;if(l in r&&r[l].type===d)f=r[l];else{const h=Xn.getScale(d);f=new h({id:l,type:d,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(a,t)}),Qe(s,(o,a)=>{o||delete r[a]}),Qe(r,o=>{wn.configure(this,o,o.options),wn.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((s,i)=>s.index-i.index),r>n){for(let s=n;s<r;++s)this._destroyDatasetMeta(s);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(dg("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,s)=>{n.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,s;for(this._removeUnreferencedMetasets(),r=0,s=n.length;r<s;r++){const i=n[r];let o=this.getDatasetMeta(r);const a=i.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=a,o.indexAxis=i.indexAxis||hu(a,this.options),o.order=i.order||0,o.index=r,o.label=""+i.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const l=Xn.getController(a),{datasetElementType:u,dataElementType:d}=Ct.datasets[a];Object.assign(l,{dataElementType:Xn.getElement(d),datasetElementType:u&&Xn.getElement(u)}),o.controller=new l(this,r),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){Qe(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()),s=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let u=0,d=this.data.datasets.length;u<d;u++){const{controller:f}=this.getDatasetMeta(u),h=!s&&i.indexOf(f)===-1;f.buildOrUpdateElements(h),o=Math.max(+f.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),s||Qe(i,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(dg("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Qe(this.scales,t=>{wn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!Gh(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:s,count:i}of n){const o=r==="_removeElements"?-i:i;mT(t,s,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=i=>new Set(t.filter(o=>o[0]===i).map((o,a)=>a+","+o.splice(1).join(","))),s=r(0);for(let i=1;i<n;i++)if(!Gh(s,r(i)))return;return Array.from(s).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;wn.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Qe(this.boxes,s=>{r&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,i)=>{s._idx=i}),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,Vr(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),s={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(r.controller._update(n),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(_r.has(this)?this.attached&&!_r.running(this)&&_r.start(this):(this.draw(),fg({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:s}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,s)}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 s,i;for(s=0,i=n.length;s<i;++s){const o=n[s];(!t||o.visible)&&r.push(o)}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,s=!r.disabled,i=bT(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(s&&Kc(n,{left:r.left===!1?0:i.left-r.left,right:r.right===!1?this.width:i.right+r.right,top:r.top===!1?0:i.top-r.top,bottom:r.bottom===!1?this.height:i.bottom+r.bottom}),t.controller.draw(),s&&Zc(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Qi(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,s){const i=pS.modes[n];return typeof i=="function"?i(this,t,r,s):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let s=r.filter(i=>i&&i._dataset===n).pop();return s||(s={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(s)),s}getContext(){return this.$context||(this.$context=as(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 s=r?"show":"hide",i=this.getDatasetMeta(t),o=i.controller._resolveAnimations(void 0,s);Ui(n)?(i.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),o.update(i,{visible:r}),this.update(a=>a.datasetIndex===t?s: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(),_r.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(),dp(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Va[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=(i,o)=>{n.addEventListener(this,i,o),t[i]=o},s=(i,o,a)=>{i.offsetX=o,i.offsetY=a,this._eventHandler(i)};Qe(this.options.events,i=>r(i,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,u)=>{n.addEventListener(this,l,u),t[l]=u},s=(l,u)=>{t[l]&&(n.removeEventListener(this,l,u),delete t[l])},i=(l,u)=>{this.canvas&&this.resize(l,u)};let o;const a=()=>{s("attach",a),this.attached=!0,this.resize(),r("resize",i),r("detach",o)};o=()=>{this.attached=!1,s("resize",i),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():o()}unbindEvents(){Qe(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Qe(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const s=r?"set":"remove";let i,o,a,l;for(n==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+s+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){o=t[a];const u=o&&this.getDatasetMeta(o.datasetIndex).controller;u&&u[s+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:i,index:o})=>{const a=this.getDatasetMeta(i);if(!a)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:a.data[o],index:o}});!Oa(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 s=this.options.hover,i=(l,u)=>l.filter(d=>!u.some(f=>d.datasetIndex===f.datasetIndex&&d.index===f.index)),o=i(n,t),a=r?t:i(t,n);o.length&&this.updateHoverStyle(o,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},s=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,s)===!1)return;const i=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,s),(i||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:s=[],options:i}=this,o=n,a=this._getActiveElements(t,s,r,o),l=Sw(t),u=yT(t,this._lastEvent,r,l);r&&(this._lastEvent=null,ct(i.onHover,[t,a,this],this),l&&ct(i.onClick,[t,a,this],this));const d=!Oa(a,s);return(d||n)&&(this._active=a,this._updateHoverStyles(a,s,n)),this._lastEvent=u,d}_getActiveElements(t,n,r,s){if(t.type==="mouseout")return[];if(!r)return n;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,s)}},G(Jr,"defaults",Ct),G(Jr,"instances",Va),G(Jr,"overrides",is),G(Jr,"registry",Xn),G(Jr,"version",hT),G(Jr,"getChart",pg),Jr);function gg(){return Qe(Kn.instances,e=>e._plugins.invalidate())}function vT(e,t,n){const{startAngle:r,pixelMargin:s,x:i,y:o,outerRadius:a,innerRadius:l}=t;let u=s/a;e.beginPath(),e.arc(i,o,a,r-u,n+u),l>s?(u=s/l,e.arc(i,o,l,n+u,r-u,!0)):e.arc(i,o,s,n+jt,r-jt),e.closePath(),e.clip()}function xT(e){return Qc(e,["outerStart","outerEnd","innerStart","innerEnd"])}function _T(e,t,n,r){const s=xT(e.options.borderRadius),i=(n-t)/2,o=Math.min(i,r*t/2),a=l=>{const u=(n-Math.min(i,l))*r/2;return Gt(l,0,Math.min(i,u))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:Gt(s.innerStart,0,o),innerEnd:Gt(s.innerEnd,0,o)}}function qs(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Ua(e,t,n,r,s,i){const{x:o,y:a,startAngle:l,pixelMargin:u,innerRadius:d}=t,f=Math.max(t.outerRadius+r+n-u,0),h=d>0?d+r+n+u:0;let p=0;const m=s-l;if(r){const O=d>0?d-r:0,D=f>0?f-r:0,L=(O+D)/2,F=L!==0?m*L/(L+r):m;p=(m-F)/2}const y=Math.max(.001,m*f-n/_t)/f,g=(m-y)/2,x=l+g+p,w=s-g-p,{outerStart:S,outerEnd:T,innerStart:_,innerEnd:C}=_T(t,h,f,w-x),M=f-S,k=f-T,R=x+S/M,b=w-T/k,E=h+_,I=h+C,W=x+_/E,j=w-C/I;if(e.beginPath(),i){const O=(R+b)/2;if(e.arc(o,a,f,R,O),e.arc(o,a,f,O,b),T>0){const z=qs(k,b,o,a);e.arc(z.x,z.y,T,b,w+jt)}const D=qs(I,w,o,a);if(e.lineTo(D.x,D.y),C>0){const z=qs(I,j,o,a);e.arc(z.x,z.y,C,w+jt,j+Math.PI)}const L=(w-C/h+(x+_/h))/2;if(e.arc(o,a,h,w-C/h,L,!0),e.arc(o,a,h,L,x+_/h,!0),_>0){const z=qs(E,W,o,a);e.arc(z.x,z.y,_,W+Math.PI,x-jt)}const F=qs(M,x,o,a);if(e.lineTo(F.x,F.y),S>0){const z=qs(M,R,o,a);e.arc(z.x,z.y,S,x-jt,R)}}else{e.moveTo(o,a);const O=Math.cos(R)*f+o,D=Math.sin(R)*f+a;e.lineTo(O,D);const L=Math.cos(b)*f+o,F=Math.sin(b)*f+a;e.lineTo(L,F)}e.closePath()}function wT(e,t,n,r,s){const{fullCircles:i,startAngle:o,circumference:a}=t;let l=t.endAngle;if(i){Ua(e,t,n,r,l,s);for(let u=0;u<i;++u)e.fill();isNaN(a)||(l=o+(a%wt||wt))}return Ua(e,t,n,r,l,s),e.fill(),l}function ST(e,t,n,r,s){const{fullCircles:i,startAngle:o,circumference:a,options:l}=t,{borderWidth:u,borderJoinStyle:d,borderDash:f,borderDashOffset:h}=l,p=l.borderAlign==="inner";if(!u)return;e.setLineDash(f||[]),e.lineDashOffset=h,p?(e.lineWidth=u*2,e.lineJoin=d||"round"):(e.lineWidth=u,e.lineJoin=d||"bevel");let m=t.endAngle;if(i){Ua(e,t,n,r,m,s);for(let y=0;y<i;++y)e.stroke();isNaN(a)||(m=o+(a%wt||wt))}p&&vT(e,t,m),i||(Ua(e,t,n,r,m,s),e.stroke())}class Pn extends wr{constructor(n){super();G(this,"circumference");G(this,"endAngle");G(this,"fullCircles");G(this,"innerRadius");G(this,"outerRadius");G(this,"pixelMargin");G(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,s){const i=this.getProps(["x","y"],s),{angle:o,distance:a}=Qh(i,{x:n,y:r}),{startAngle:l,endAngle:u,innerRadius:d,outerRadius:f,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),p=(this.options.spacing+this.options.borderWidth)/2,m=Ce(h,u-l),y=Xi(o,l,u)&&l!==u,g=m>=wt||y,x=Ur(a,d+p,f+p);return g&&x}getCenterPoint(n){const{x:r,y:s,startAngle:i,endAngle:o,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:d}=this.options,f=(i+o)/2,h=(a+l+d+u)/2;return{x:r+Math.cos(f)*h,y:s+Math.sin(f)*h}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:s}=this,i=(r.offset||0)/4,o=(r.spacing||0)/2,a=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=s>wt?Math.floor(s/wt):0,s===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*i,Math.sin(l)*i);const u=1-Math.sin(Math.min(_t,s||0)),d=i*u;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,wT(n,this,d,o,a),ST(n,this,d,o,a),n.restore()}}G(Pn,"id","arc"),G(Pn,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),G(Pn,"defaultRoutes",{backgroundColor:"backgroundColor"}),G(Pn,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function mg(e,t,n=t){e.lineCap=Ce(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ce(n.borderDash,t.borderDash)),e.lineDashOffset=Ce(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ce(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ce(n.borderWidth,t.borderWidth),e.strokeStyle=Ce(n.borderColor,t.borderColor)}function TT(e,t,n){e.lineTo(n.x,n.y)}function kT(e){return e.stepped?Gw:e.tension||e.cubicInterpolationMode==="monotone"?Xw:TT}function yg(e,t,n={}){const r=e.length,{start:s=0,end:i=r-1}=n,{start:o,end:a}=t,l=Math.max(s,o),u=Math.min(i,a),d=s<o&&i<o||s>a&&i>a;return{count:r,start:l,loop:t.loop,ilen:u<l&&!d?r+u-l:u-l}}function OT(e,t,n,r){const{points:s,options:i}=t,{count:o,start:a,loop:l,ilen:u}=yg(s,n,r),d=kT(i);let{move:f=!0,reverse:h}=r||{},p,m,y;for(p=0;p<=u;++p)m=s[(a+(h?u-p:p))%o],!m.skip&&(f?(e.moveTo(m.x,m.y),f=!1):d(e,y,m,h,i.stepped),y=m);return l&&(m=s[(a+(h?u:0))%o],d(e,y,m,h,i.stepped)),!!l}function CT(e,t,n,r){const s=t.points,{count:i,start:o,ilen:a}=yg(s,n,r),{move:l=!0,reverse:u}=r||{};let d=0,f=0,h,p,m,y,g,x;const w=T=>(o+(u?a-T:T))%i,S=()=>{y!==g&&(e.lineTo(d,g),e.lineTo(d,y),e.lineTo(d,x))};for(l&&(p=s[w(0)],e.moveTo(p.x,p.y)),h=0;h<=a;++h){if(p=s[w(h)],p.skip)continue;const T=p.x,_=p.y,C=T|0;C===m?(_<y?y=_:_>g&&(g=_),d=(f*d+T)/++f):(S(),e.lineTo(T,_),m=C,f=0,y=g=_),x=_}S()}function gu(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?CT:OT}function MT(e){return e.stepped?C1:e.tension||e.cubicInterpolationMode==="monotone"?M1:us}function ET(e,t,n,r){let s=t._path;s||(s=t._path=new Path2D,t.path(s,n,r)&&s.closePath()),mg(e,t.options),e.stroke(s)}function DT(e,t,n,r){const{segments:s,options:i}=t,o=gu(t);for(const a of s)mg(e,i,a.style),e.beginPath(),o(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const PT=typeof Path2D=="function";function RT(e,t,n,r){PT&&!t.options.segment?ET(e,t,n,r):DT(e,t,n,r)}class Rn extends wr{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 s=r.spanGaps?this._loop:this._fullLoop;v1(this._points,r,t,s,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=j1(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,s=t[n],i=this.points,o=A1(this,{property:n,start:s,end:s});if(!o.length)return;const a=[],l=MT(r);let u,d;for(u=0,d=o.length;u<d;++u){const{start:f,end:h}=o[u],p=i[f],m=i[h];if(p===m){a.push(p);continue}const y=Math.abs((s-p[n])/(m[n]-p[n])),g=l(p,m,y,r.stepped);g[n]=t[n],a.push(g)}return a.length===1?a[0]:a}pathSegment(t,n,r){return gu(this)(t,this,n,r)}path(t,n,r){const s=this.segments,i=gu(this);let o=this._loop;n=n||0,r=r||this.points.length-n;for(const a of s)o&=i(t,this,a,{start:n,end:n+r-1});return!!o}draw(t,n,r,s){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(t.save(),RT(t,this,r,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}G(Rn,"id","line"),G(Rn,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),G(Rn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),G(Rn,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function bg(e,t,n,r){const s=e.options,{[n]:i}=e.getProps([n],r);return Math.abs(t-i)<s.radius+s.hitRadius}class Zn extends wr{constructor(n){super();G(this,"parsed");G(this,"skip");G(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,s){const i=this.options,{x:o,y:a}=this.getProps(["x","y"],s);return Math.pow(n-o,2)+Math.pow(r-a,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(n,r){return bg(this,n,"x",r)}inYRange(n,r){return bg(this,n,"y",r)}getCenterPoint(n){const{x:r,y:s}=this.getProps(["x","y"],n);return{x:r,y:s}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const s=r&&n.borderWidth||0;return(r+s)*2}draw(n,r){const s=this.options;this.skip||s.radius<.1||!Qi(this,r,this.size(s)/2)||(n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.fillStyle=s.backgroundColor,Xc(n,s,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}G(Zn,"id","point"),G(Zn,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),G(Zn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function vg(e,t){const{x:n,y:r,base:s,width:i,height:o}=e.getProps(["x","y","base","width","height"],t);let a,l,u,d,f;return e.horizontal?(f=o/2,a=Math.min(n,s),l=Math.max(n,s),u=r-f,d=r+f):(f=i/2,a=n-f,l=n+f,u=Math.min(r,s),d=Math.max(r,s)),{left:a,top:u,right:l,bottom:d}}function qr(e,t,n,r){return e?0:Gt(t,n,r)}function AT(e,t,n){const r=e.options.borderWidth,s=e.borderSkipped,i=hp(r);return{t:qr(s.top,i.top,0,n),r:qr(s.right,i.right,0,t),b:qr(s.bottom,i.bottom,0,n),l:qr(s.left,i.left,0,t)}}function IT(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),s=e.options.borderRadius,i=zs(s),o=Math.min(t,n),a=e.borderSkipped,l=r||Ne(s);return{topLeft:qr(!l||a.top||a.left,i.topLeft,0,o),topRight:qr(!l||a.top||a.right,i.topRight,0,o),bottomLeft:qr(!l||a.bottom||a.left,i.bottomLeft,0,o),bottomRight:qr(!l||a.bottom||a.right,i.bottomRight,0,o)}}function NT(e){const t=vg(e),n=t.right-t.left,r=t.bottom-t.top,s=AT(e,n/2,r/2),i=IT(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+s.l,y:t.top+s.t,w:n-s.l-s.r,h:r-s.t-s.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,i.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(s.b,s.r))}}}}function mu(e,t,n,r){const s=t===null,i=n===null,a=e&&!(s&&i)&&vg(e,r);return a&&(s||Ur(t,a.left,a.right))&&(i||Ur(n,a.top,a.bottom))}function jT(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function FT(e,t){e.rect(t.x,t.y,t.w,t.h)}function yu(e,t,n={}){const r=e.x!==n.x?-t:0,s=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,o=(e.y+e.h!==n.y+n.h?t:0)-s;return{x:e.x+r,y:e.y+s,w:e.w+i,h:e.h+o,radius:e.radius}}class Qn extends wr{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:s}}=this,{inner:i,outer:o}=NT(this),a=jT(o.radius)?Da:FT;t.save(),(o.w!==i.w||o.h!==i.h)&&(t.beginPath(),a(t,yu(o,n,i)),t.clip(),a(t,yu(i,-n,o)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),a(t,yu(i,n)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,n,r){return mu(this,t,n,r)}inXRange(t,n){return mu(this,t,null,n)}inYRange(t,n){return mu(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:s,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(n+s)/2:n,y:i?r:(r+s)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}G(Qn,"id","bar"),G(Qn,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),G(Qn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const xg=(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)}},$T=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class _g extends wr{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=ct(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,s)=>t.sort(r,s,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,s=Kt(r.font),i=s.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=xg(r,i);let u,d;n.font=s.string,this.isHorizontal()?(u=this.maxWidth,d=this._fitRows(o,i,a,l)+10):(d=this.maxHeight,u=this._fitCols(o,s,a,l)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,s){const{ctx:i,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],d=s+a;let f=t;i.textAlign="left",i.textBaseline="middle";let h=-1,p=-d;return this.legendItems.forEach((m,y)=>{const g=r+n/2+i.measureText(m.text).width;(y===0||u[u.length-1]+g+2*a>o)&&(f+=d,u[u.length-(y>0?0:1)]=0,p+=d,h++),l[y]={left:0,top:p,row:h,width:g,height:s},u[u.length-1]+=g+a}),f}_fitCols(t,n,r,s){const{ctx:i,maxHeight:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],d=o-t;let f=a,h=0,p=0,m=0,y=0;return this.legendItems.forEach((g,x)=>{const{itemWidth:w,itemHeight:S}=LT(r,n,i,g,s);x>0&&p+S+2*a>d&&(f+=h+a,u.push({width:h,height:p}),m+=h+a,y++,h=p=0),l[x]={left:m,top:p,col:y,width:w,height:S},h=Math.max(h,w),p+=S+a}),f+=h,u.push({width:h,height:p}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:s},rtl:i}}=this,o=Hs(i,this.left,this.width);if(this.isHorizontal()){let a=0,l=Xt(r,this.left+s,this.right-this.lineWidths[a]);for(const u of n)a!==u.row&&(a=u.row,l=Xt(r,this.left+s,this.right-this.lineWidths[a])),u.top+=this.top+t+s,u.left=o.leftForLtr(o.x(l),u.width),l+=u.width+s}else{let a=0,l=Xt(r,this.top+t+s,this.bottom-this.columnSizes[a].height);for(const u of n)u.col!==a&&(a=u.col,l=Xt(r,this.top+t+s,this.bottom-this.columnSizes[a].height)),u.top=l,u.left+=this.left+s,u.left=o.leftForLtr(o.x(u.left),u.width),l+=u.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Kc(t,this),this._draw(),Zc(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:s}=this,{align:i,labels:o}=t,a=Ct.color,l=Hs(t.rtl,this.left,this.width),u=Kt(o.font),{padding:d}=o,f=u.size,h=f/2;let p;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=u.string;const{boxWidth:m,boxHeight:y,itemHeight:g}=xg(o,f),x=function(C,M,k){if(isNaN(m)||m<=0||isNaN(y)||y<0)return;s.save();const R=Ce(k.lineWidth,1);if(s.fillStyle=Ce(k.fillStyle,a),s.lineCap=Ce(k.lineCap,"butt"),s.lineDashOffset=Ce(k.lineDashOffset,0),s.lineJoin=Ce(k.lineJoin,"miter"),s.lineWidth=R,s.strokeStyle=Ce(k.strokeStyle,a),s.setLineDash(Ce(k.lineDash,[])),o.usePointStyle){const b={radius:y*Math.SQRT2/2,pointStyle:k.pointStyle,rotation:k.rotation,borderWidth:R},E=l.xPlus(C,m/2),I=M+h;fp(s,b,E,I,o.pointStyleWidth&&m)}else{const b=M+Math.max((f-y)/2,0),E=l.leftForLtr(C,m),I=zs(k.borderRadius);s.beginPath(),Object.values(I).some(W=>W!==0)?Da(s,{x:E,y:b,w:m,h:y,radius:I}):s.rect(E,b,m,y),s.fill(),R!==0&&s.stroke()}s.restore()},w=function(C,M,k){Ji(s,k.text,C,M+g/2,u,{strikethrough:k.hidden,textAlign:l.textAlign(k.textAlign)})},S=this.isHorizontal(),T=this._computeTitleHeight();S?p={x:Xt(i,this.left+d,this.right-r[0]),y:this.top+d+T,line:0}:p={x:this.left+d,y:Xt(i,this.top+T+d,this.bottom-n[0].height),line:0},Sp(this.ctx,t.textDirection);const _=g+d;this.legendItems.forEach((C,M)=>{s.strokeStyle=C.fontColor,s.fillStyle=C.fontColor;const k=s.measureText(C.text).width,R=l.textAlign(C.textAlign||(C.textAlign=o.textAlign)),b=m+h+k;let E=p.x,I=p.y;l.setWidth(this.width),S?M>0&&E+b+d>this.right&&(I=p.y+=_,p.line++,E=p.x=Xt(i,this.left+d,this.right-r[p.line])):M>0&&I+_>this.bottom&&(E=p.x=E+n[p.line].width+d,p.line++,I=p.y=Xt(i,this.top+T+d,this.bottom-n[p.line].height));const W=l.x(E);if(x(W,I,C),E=jw(R,E+m+h,S?E+b:this.right,t.rtl),w(l.x(E),I,C),S)p.x+=b+d;else if(typeof C.text!="string"){const j=u.lineHeight;p.y+=wg(C,j)+d}else p.y+=_}),Tp(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Kt(n.font),s=_n(n.padding);if(!n.display)return;const i=Hs(t.rtl,this.left,this.width),o=this.ctx,a=n.position,l=r.size/2,u=s.top+l;let d,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),d=this.top+u,f=Xt(t.align,f,this.right-h);else{const m=this.columnSizes.reduce((y,g)=>Math.max(y,g.height),0);d=u+Xt(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const p=Xt(a,f,f+h);o.textAlign=i.textAlign(Yc(a)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,Ji(o,n.text,p,d,r)}_computeTitleHeight(){const t=this.options.title,n=Kt(t.font),r=_n(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,s,i;if(Ur(t,this.left,this.right)&&Ur(n,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;r<i.length;++r)if(s=i[r],Ur(t,s.left,s.left+s.width)&&Ur(n,s.top,s.top+s.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!zT(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const s=this._hoveredItem,i=$T(s,r);s&&!i&&ct(n.onLeave,[t,s,this],this),this._hoveredItem=r,r&&!i&&ct(n.onHover,[t,r,this],this)}else r&&ct(n.onClick,[t,r,this],this)}}function LT(e,t,n,r,s){const i=WT(r,e,t,n),o=BT(s,r,t.lineHeight);return{itemWidth:i,itemHeight:o}}function WT(e,t,n,r){let s=e.text;return s&&typeof s!="string"&&(s=s.reduce((i,o)=>i.length>o.length?i:o)),t+n.size/2+r.measureText(s).width}function BT(e,t,n){let r=e;return typeof t.text!="string"&&(r=wg(t,n)),r}function wg(e,t){const n=e.text?e.text.length:0;return t*n}function zT(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var hs={id:"legend",_element:_g,start(e,t,n){const r=e.legend=new _g({ctx:e.ctx,options:n,chart:e});wn.configure(e,r,n),wn.addBox(e,r)},stop(e){wn.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;wn.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,s=n.chart;s.isDatasetVisible(r)?(s.hide(r),t.hidden=!0):(s.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:s,color:i,useBorderRadius:o,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),d=_n(u.borderWidth);return{text:t[l.index].label,fillStyle:u.backgroundColor,fontColor:i,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:s||u.textAlign,borderRadius:o&&(a||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 Sg extends wr{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 s=Nt(r.text)?r.text.length:1;this._padding=_n(r.padding);const i=s*Kt(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:s,right:i,options:o}=this,a=o.align;let l=0,u,d,f;return this.isHorizontal()?(d=Xt(a,r,i),f=n+t,u=i-r):(o.position==="left"?(d=r+t,f=Xt(a,s,n),l=_t*-.5):(d=i-t,f=Xt(a,n,s),l=_t*.5),u=s-n),{titleX:d,titleY:f,maxWidth:u,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=Kt(n.font),i=r.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:l,rotation:u}=this._drawArgs(i);Ji(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:Yc(n.align),textBaseline:"middle",translation:[o,a]})}}function YT(e,t){const n=new Sg({ctx:e.ctx,options:t,chart:e});wn.configure(e,n,t),wn.addBox(e,n),e.titleBlock=n}var bu={id:"title",_element:Sg,start(e,t,n){YT(e,n)},stop(e){const t=e.titleBlock;wn.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;wn.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 co={average(e){if(!e.length)return!1;let t,n,r=new Set,s=0,i=0;for(t=0,n=e.length;t<n;++t){const a=e[t].element;if(a&&a.hasValue()){const l=a.tooltipPosition();r.add(l.x),s+=l.y,++i}}return i===0||r.size===0?!1:{x:[...r].reduce((a,l)=>a+l)/r.size,y:s/i}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,s=Number.POSITIVE_INFINITY,i,o,a;for(i=0,o=e.length;i<o;++i){const l=e[i].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),d=Bc(t,u);d<s&&(s=d,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function Jn(e,t){return t&&(Nt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Sr(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
122
+ `)>-1?e.split(`
123
+ `):e}function VT(e,t){const{element:n,datasetIndex:r,index:s}=t,i=e.getDatasetMeta(r).controller,{label:o,value:a}=i.getLabelAndValue(s);return{chart:e,label:o,parsed:i.getParsed(s),raw:e.data.datasets[r].data[s],formattedValue:a,dataset:i.getDataset(),dataIndex:s,datasetIndex:r,element:n}}function Tg(e,t){const n=e.chart.ctx,{body:r,footer:s,title:i}=e,{boxWidth:o,boxHeight:a}=t,l=Kt(t.bodyFont),u=Kt(t.titleFont),d=Kt(t.footerFont),f=i.length,h=s.length,p=r.length,m=_n(t.padding);let y=m.height,g=0,x=r.reduce((T,_)=>T+_.before.length+_.lines.length+_.after.length,0);if(x+=e.beforeBody.length+e.afterBody.length,f&&(y+=f*u.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),x){const T=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;y+=p*T+(x-p)*l.lineHeight+(x-1)*t.bodySpacing}h&&(y+=t.footerMarginTop+h*d.lineHeight+(h-1)*t.footerSpacing);let w=0;const S=function(T){g=Math.max(g,n.measureText(T).width+w)};return n.save(),n.font=u.string,Qe(e.title,S),n.font=l.string,Qe(e.beforeBody.concat(e.afterBody),S),w=t.displayColors?o+2+t.boxPadding:0,Qe(r,T=>{Qe(T.before,S),Qe(T.lines,S),Qe(T.after,S)}),w=0,n.font=d.string,Qe(e.footer,S),n.restore(),g+=m.width,{width:g,height:y}}function HT(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function UT(e,t,n,r){const{x:s,width:i}=r,o=n.caretSize+n.caretPadding;if(e==="left"&&s+i+o>t.width||e==="right"&&s-i-o<0)return!0}function qT(e,t,n,r){const{x:s,width:i}=n,{width:o,chartArea:{left:a,right:l}}=e;let u="center";return r==="center"?u=s<=(a+l)/2?"left":"right":s<=i/2?u="left":s>=o-i/2&&(u="right"),UT(u,e,t,n)&&(u="center"),u}function kg(e,t,n){const r=n.yAlign||t.yAlign||HT(e,n);return{xAlign:n.xAlign||t.xAlign||qT(e,t,n,r),yAlign:r}}function GT(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function XT(e,t,n){let{y:r,height:s}=e;return t==="top"?r+=n:t==="bottom"?r-=s+n:r-=s/2,r}function Og(e,t,n,r){const{caretSize:s,caretPadding:i,cornerRadius:o}=e,{xAlign:a,yAlign:l}=n,u=s+i,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:p}=zs(o);let m=GT(t,a);const y=XT(t,l,u);return l==="center"?a==="left"?m+=u:a==="right"&&(m-=u):a==="left"?m-=Math.max(d,h)+s:a==="right"&&(m+=Math.max(f,p)+s),{x:Gt(m,0,r.width-t.width),y:Gt(y,0,r.height-t.height)}}function qa(e,t,n){const r=_n(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function Cg(e){return Jn([],Sr(e))}function KT(e,t,n){return as(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Mg(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Eg={beforeTitle:vr,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:vr,beforeBody:vr,beforeLabel:vr,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 lt(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:vr,afterBody:vr,beforeFooter:vr,footer:vr,afterFooter:vr};function rn(e,t,n,r){const s=e[t].call(n,r);return typeof s>"u"?Eg[t].call(n,r):s}class vu extends wr{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()),s=r.enabled&&n.options.animation&&r.animations,i=new Dp(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=KT(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,s=rn(r,"beforeTitle",this,t),i=rn(r,"title",this,t),o=rn(r,"afterTitle",this,t);let a=[];return a=Jn(a,Sr(s)),a=Jn(a,Sr(i)),a=Jn(a,Sr(o)),a}getBeforeBody(t,n){return Cg(rn(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,s=[];return Qe(t,i=>{const o={before:[],lines:[],after:[]},a=Mg(r,i);Jn(o.before,Sr(rn(a,"beforeLabel",this,i))),Jn(o.lines,rn(a,"label",this,i)),Jn(o.after,Sr(rn(a,"afterLabel",this,i))),s.push(o)}),s}getAfterBody(t,n){return Cg(rn(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,s=rn(r,"beforeFooter",this,t),i=rn(r,"footer",this,t),o=rn(r,"afterFooter",this,t);let a=[];return a=Jn(a,Sr(s)),a=Jn(a,Sr(i)),a=Jn(a,Sr(o)),a}_createItems(t){const n=this._active,r=this.chart.data,s=[],i=[],o=[];let a=[],l,u;for(l=0,u=n.length;l<u;++l)a.push(VT(this.chart,n[l]));return t.filter&&(a=a.filter((d,f,h)=>t.filter(d,f,h,r))),t.itemSort&&(a=a.sort((d,f)=>t.itemSort(d,f,r))),Qe(a,d=>{const f=Mg(t.callbacks,d);s.push(rn(f,"labelColor",this,d)),i.push(rn(f,"labelPointStyle",this,d)),o.push(rn(f,"labelTextColor",this,d))}),this.labelColors=s,this.labelPointStyles=i,this.labelTextColors=o,this.dataPoints=a,a}update(t,n){const r=this.options.setContext(this.getContext()),s=this._active;let i,o=[];if(!s.length)this.opacity!==0&&(i={opacity:0});else{const a=co[r.position].call(this,s,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=Tg(this,r),u=Object.assign({},a,l),d=kg(this.chart,r,u),f=Og(r,u,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,i={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,s){const i=this.getCaretPosition(t,r,s);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,r){const{xAlign:s,yAlign:i}=this,{caretSize:o,cornerRadius:a}=r,{topLeft:l,topRight:u,bottomLeft:d,bottomRight:f}=zs(a),{x:h,y:p}=t,{width:m,height:y}=n;let g,x,w,S,T,_;return i==="center"?(T=p+y/2,s==="left"?(g=h,x=g-o,S=T+o,_=T-o):(g=h+m,x=g+o,S=T-o,_=T+o),w=g):(s==="left"?x=h+Math.max(l,d)+o:s==="right"?x=h+m-Math.max(u,f)-o:x=this.caretX,i==="top"?(S=p,T=S-o,g=x-o,w=x+o):(S=p+y,T=S+o,g=x+o,w=x-o),_=S),{x1:g,x2:x,x3:w,y1:S,y2:T,y3:_}}drawTitle(t,n,r){const s=this.title,i=s.length;let o,a,l;if(i){const u=Hs(r.rtl,this.x,this.width);for(t.x=qa(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",o=Kt(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;l<i;++l)n.fillText(s[l],u.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,l+1===i&&(t.y+=r.titleMarginBottom-a)}}_drawColorBox(t,n,r,s,i){const o=this.labelColors[r],a=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=i,d=Kt(i.bodyFont),f=qa(this,"left",i),h=s.x(f),p=l<d.lineHeight?(d.lineHeight-l)/2:0,m=n.y+p;if(i.usePointStyle){const y={radius:Math.min(u,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},g=s.leftForLtr(h,u)+u/2,x=m+l/2;t.strokeStyle=i.multiKeyBackground,t.fillStyle=i.multiKeyBackground,Xc(t,y,g,x),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,Xc(t,y,g,x)}else{t.lineWidth=Ne(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const y=s.leftForLtr(h,u),g=s.leftForLtr(s.xPlus(h,1),u-2),x=zs(o.borderRadius);Object.values(x).some(w=>w!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,Da(t,{x:y,y:m,w:u,h:l,radius:x}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),Da(t,{x:g,y:m+1,w:u-2,h:l-2,radius:x}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(y,m,u,l),t.strokeRect(y,m,u,l),t.fillStyle=o.backgroundColor,t.fillRect(g,m+1,u-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:s}=this,{bodySpacing:i,bodyAlign:o,displayColors:a,boxHeight:l,boxWidth:u,boxPadding:d}=r,f=Kt(r.bodyFont);let h=f.lineHeight,p=0;const m=Hs(r.rtl,this.x,this.width),y=function(k){n.fillText(k,m.x(t.x+p),t.y+h/2),t.y+=h+i},g=m.textAlign(o);let x,w,S,T,_,C,M;for(n.textAlign=o,n.textBaseline="middle",n.font=f.string,t.x=qa(this,g,r),n.fillStyle=r.bodyColor,Qe(this.beforeBody,y),p=a&&g!=="right"?o==="center"?u/2+d:u+2+d:0,T=0,C=s.length;T<C;++T){for(x=s[T],w=this.labelTextColors[T],n.fillStyle=w,Qe(x.before,y),S=x.lines,a&&S.length&&(this._drawColorBox(n,t,T,m,r),h=Math.max(f.lineHeight,l)),_=0,M=S.length;_<M;++_)y(S[_]),h=f.lineHeight;Qe(x.after,y)}p=0,h=f.lineHeight,Qe(this.afterBody,y),t.y-=i}drawFooter(t,n,r){const s=this.footer,i=s.length;let o,a;if(i){const l=Hs(r.rtl,this.x,this.width);for(t.x=qa(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=Kt(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,a=0;a<i;++a)n.fillText(s[a],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+r.footerSpacing}}drawBackground(t,n,r,s){const{xAlign:i,yAlign:o}=this,{x:a,y:l}=t,{width:u,height:d}=r,{topLeft:f,topRight:h,bottomLeft:p,bottomRight:m}=zs(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(a+f,l),o==="top"&&this.drawCaret(t,n,r,s),n.lineTo(a+u-h,l),n.quadraticCurveTo(a+u,l,a+u,l+h),o==="center"&&i==="right"&&this.drawCaret(t,n,r,s),n.lineTo(a+u,l+d-m),n.quadraticCurveTo(a+u,l+d,a+u-m,l+d),o==="bottom"&&this.drawCaret(t,n,r,s),n.lineTo(a+p,l+d),n.quadraticCurveTo(a,l+d,a,l+d-p),o==="center"&&i==="left"&&this.drawCaret(t,n,r,s),n.lineTo(a,l+f),n.quadraticCurveTo(a,l,a+f,l),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,s=r&&r.x,i=r&&r.y;if(s||i){const o=co[t.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=Tg(this,t),l=Object.assign({},o,this._size),u=kg(n,t,l),d=Og(t,l,u,n);(s._to!==d.x||i._to!==d.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=_n(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(i,t,s,n),Sp(t,n.textDirection),i.y+=o.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),Tp(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,s=t.map(({datasetIndex:a,index:l})=>{const u=this.chart.getDatasetMeta(a);if(!u)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:u.data[l],index:l}}),i=!Oa(r,s),o=this._positionChanged(s,n);(i||o)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,i=this._active||[],o=this._getActiveElements(t,i,n,r),a=this._positionChanged(o,t),l=n||!Oa(o,i)||a;return l&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,s){const i=this.options;if(t.type==="mouseout")return[];if(!s)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const o=this.chart.getElementsAtEventForMode(t,i.mode,i,r);return i.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:r,caretY:s,options:i}=this,o=co[i.position].call(this,t,n);return o!==!1&&(r!==o.x||s!==o.y)}}G(vu,"positioners",co);var ps={id:"tooltip",_element:vu,positioners:co,afterInit(e,t,n){n&&(e.tooltip=new vu({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:Eg},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"]};const ZT=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function QT(e,t,n,r){const s=e.indexOf(t);if(s===-1)return ZT(e,t,n,r);const i=e.lastIndexOf(t);return s!==i?n:s}const JT=(e,t)=>e===null?null:Gt(Math.round(e),0,t);function Dg(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Tr extends Us{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:s,label:i}of n)r[s]===i&&r.splice(s,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(lt(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:QT(r,t,Ce(n,t),this._addedLabels),JT(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(s=this.getLabels().length-1)),this.min=r,this.max=s}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,s=[];let i=this.getLabels();i=t===0&&n===i.length-1?i:i.slice(t,n+1),this._valueRange=Math.max(i.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let o=t;o<=n;o++)s.push({value:o});return s}getLabelForValue(t){return Dg.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}}G(Tr,"id","category"),G(Tr,"defaults",{ticks:{callback:Dg}});function e2(e,t){const n=[],{bounds:s,step:i,min:o,max:a,precision:l,count:u,maxTicks:d,maxDigits:f,includeBounds:h}=e,p=i||1,m=d-1,{min:y,max:g}=t,x=!lt(o),w=!lt(a),S=!lt(u),T=(g-y)/(f+1);let _=Kh((g-y)/m/p)*p,C,M,k,R;if(_<1e-14&&!x&&!w)return[{value:y},{value:g}];R=Math.ceil(g/_)-Math.floor(y/_),R>m&&(_=Kh(R*_/m/p)*p),lt(l)||(C=Math.pow(10,l),_=Math.ceil(_*C)/C),s==="ticks"?(M=Math.floor(y/_)*_,k=Math.ceil(g/_)*_):(M=y,k=g),x&&w&&i&&Cw((a-o)/i,_/1e3)?(R=Math.round(Math.min((a-o)/_,d)),_=(a-o)/R,M=o,k=a):S?(M=x?o:M,k=w?a:k,R=u-1,_=(k-M)/R):(R=(k-M)/_,qi(R,Math.round(R),_/1e3)?R=Math.round(R):R=Math.ceil(R));const b=Math.max(Zh(_),Zh(M));C=Math.pow(10,lt(l)?b:l),M=Math.round(M*C)/C,k=Math.round(k*C)/C;let E=0;for(x&&(h&&M!==o?(n.push({value:o}),M<o&&E++,qi(Math.round((M+E*_)*C)/C,o,Pg(o,T,e))&&E++):M<o&&E++);E<R;++E){const I=Math.round((M+E*_)*C)/C;if(w&&I>a)break;n.push({value:I})}return w&&h&&k!==a?n.length&&qi(n[n.length-1].value,a,Pg(a,T,e))?n[n.length-1].value=a:n.push({value:a}):(!w||k===a)&&n.push({value:k}),n}function Pg(e,t,{horizontal:n,minRotation:r}){const s=xr(r),i=(n?Math.sin(s):Math.cos(s))||.001,o=.75*t*(""+e).length;return Math.min(t/i,o)}class t2 extends Us{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 lt(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:s,max:i}=this;const o=l=>s=n?s:l,a=l=>i=r?i:l;if(t){const l=Gn(s),u=Gn(i);l<0&&u<0?a(0):l>0&&u>0&&o(0)}if(s===i){let l=i===0?1:Math.abs(i*.05);a(i+l),t||o(s-l)}this.min=s,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,s;return r?(s=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),n=n||11),n&&(s=Math.min(n,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const s={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},i=this._range||this,o=e2(s,i);return t.bounds==="ticks"&&Mw(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const s=(r-n)/Math.max(t.length-1,1)/2;n-=s,r+=s}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Uc(t,this.chart.options.locale,this.options.ticks.format)}}class kr extends t2{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=xn(t)?t:0,this.max=xn(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=xr(this.options.ticks.minRotation),s=(t?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/s))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}G(kr,"id","linear"),G(kr,"defaults",{ticks:{callback:cp.formatters.numeric}});const Ga={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}},sn=Object.keys(Ga);function Rg(e,t){return e-t}function Ag(e,t){if(lt(t))return null;const n=e._adapter,{parser:r,round:s,isoWeekday:i}=e._parseOpts;let o=t;return typeof r=="function"&&(o=r(o)),xn(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(s&&(o=s==="week"&&(Gi(i)||i===!0)?n.startOf(o,"isoWeek",i):n.startOf(o,s)),+o)}function Ig(e,t,n,r){const s=sn.length;for(let i=sn.indexOf(e);i<s-1;++i){const o=Ga[sn[i]],a=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(a*o.size))<=r)return sn[i]}return sn[s-1]}function n2(e,t,n,r,s){for(let i=sn.length-1;i>=sn.indexOf(n);i--){const o=sn[i];if(Ga[o].common&&e._adapter.diff(s,r,o)>=t-1)return o}return sn[n?sn.indexOf(n):0]}function r2(e){for(let t=sn.indexOf(e)+1,n=sn.length;t<n;++t)if(Ga[sn[t]].common)return sn[t]}function Ng(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:s}=zc(n,t),i=n[r]>=t?n[r]:n[s];e[i]=!0}}function s2(e,t,n,r){const s=e._adapter,i=+s.startOf(t[0].value,r),o=t[t.length-1].value;let a,l;for(a=i;a<=o;a=+s.add(a,1,r))l=n[a],l>=0&&(t[l].major=!0);return t}function jg(e,t,n){const r=[],s={},i=t.length;let o,a;for(o=0;o<i;++o)a=t[o],s[a]=o,r.push({value:a,major:!1});return i===0||!n?r:s2(e,r,s,n)}class Gs extends Us{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={}),s=this._adapter=new Bp._date(t.adapters.date);s.init(n),Hi(r.displayFormats,s.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:Ag(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:s,max:i,minDefined:o,maxDefined:a}=this.getUserBounds();function l(u){!o&&!isNaN(u.min)&&(s=Math.min(s,u.min)),!a&&!isNaN(u.max)&&(i=Math.max(i,u.max))}(!o||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),s=xn(s)&&!isNaN(s)?s:+n.startOf(Date.now(),r),i=xn(i)&&!isNaN(i)?i:+n.endOf(Date.now(),r)+1,this.min=Math.min(s,i-1),this.max=Math.max(s+1,i)}_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,s=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const i=this.min,o=this.max,a=Aw(s,i,o);return this._unit=n.unit||(r.autoSkip?Ig(n.minUnit,this.min,this.max,this._getLabelCapacity(i)):n2(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:r2(this._unit),this.initOffsets(s),t.reverse&&a.reverse(),jg(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,s,i;this.options.offset&&t.length&&(s=this.getDecimalForValue(t[0]),t.length===1?n=1-s:n=(this.getDecimalForValue(t[1])-s)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?r=i:r=(i-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=Gt(n,0,o),r=Gt(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,s=this.options,i=s.time,o=i.unit||Ig(i.minUnit,n,r,this._getLabelCapacity(n)),a=Ce(s.ticks.stepSize,1),l=o==="week"?i.isoWeekday:!1,u=Gi(l)||l===!0,d={};let f=n,h,p;if(u&&(f=+t.startOf(f,"isoWeek",l)),f=+t.startOf(f,u?"day":o),t.diff(r,n,o)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+o);const m=s.ticks.source==="data"&&this.getDataTimestamps();for(h=f,p=0;h<r;h=+t.add(h,a,o),p++)Ng(d,h,m);return(h===r||s.bounds==="ticks"||p===1)&&Ng(d,h,m),Object.keys(d).sort(Rg).map(y=>+y)}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 s=this.options.time.displayFormats,i=this._unit,o=n||s[i];return this._adapter.format(t,o)}_tickFormatFunction(t,n,r,s){const i=this.options,o=i.ticks.callback;if(o)return ct(o,[t,n,r],this);const a=i.time.displayFormats,l=this._unit,u=this._majorUnit,d=l&&a[l],f=u&&a[u],h=r[n],p=u&&f&&h&&h.major;return this._adapter.format(t,s||(p?f:d))}generateTickLabels(t){let n,r,s;for(n=0,r=t.length;n<r;++n)s=t[n],s.label=this._tickFormatFunction(s.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,s=xr(this.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(s),o=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:r*i+a*o,h:r*o+a*i}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,s=r[n.unit]||r.millisecond,i=this._tickFormatFunction(t,0,jg(this,[t],this._majorUnit),s),o=this._getLabelSize(i),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,r=s.length;n<r;++n)t=t.concat(s[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 s=this.getLabels();for(n=0,r=s.length;n<r;++n)t.push(Ag(this,s[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return tp(t.sort(Rg))}}G(Gs,"id","time"),G(Gs,"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 Xa(e,t,n){let r=0,s=e.length-1,i,o,a,l;n?(t>=e[r].pos&&t<=e[s].pos&&({lo:r,hi:s}=ss(e,"pos",t)),{pos:i,time:a}=e[r],{pos:o,time:l}=e[s]):(t>=e[r].time&&t<=e[s].time&&({lo:r,hi:s}=ss(e,"time",t)),{time:i,pos:a}=e[r],{time:o,pos:l}=e[s]);const u=o-i;return u?a+(l-a)*(t-i)/u:a}class Fg extends Gs{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=Xa(n,this.min),this._tableRange=Xa(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,s=[],i=[];let o,a,l,u,d;for(o=0,a=t.length;o<a;++o)u=t[o],u>=n&&u<=r&&s.push(u);if(s.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,a=s.length;o<a;++o)d=s[o+1],l=s[o-1],u=s[o],Math.round((d+l)/2)!==u&&i.push({time:u,pos:o/(a-1)});return i}_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((s,i)=>s-i)}_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(Xa(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Xa(this._table,r*this._tableRange+this._minPos,!0)}}G(Fg,"id","timeseries"),G(Fg,"defaults",Gs.defaults);const $g="label";function Lg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function i2(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function Wg(e,t){e.labels=t}function Bg(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$g;const r=[];e.datasets=t.map(s=>{const i=e.datasets.find(o=>o[n]===s[n]);return!i||!s.data||r.includes(i)?{...s}:(r.push(i),Object.assign(i,s),i)})}function o2(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$g;const n={labels:[],datasets:[]};return Wg(n,e.labels),Bg(n,e.datasets,t),n}function a2(e,t){const{height:n=150,width:r=300,redraw:s=!1,datasetIdKey:i,type:o,data:a,options:l,plugins:u=[],fallbackContent:d,updateMode:f,...h}=e,p=Y.useRef(null),m=Y.useRef(),y=()=>{p.current&&(m.current=new Kn(p.current,{type:o,data:o2(a,i),options:l&&{...l},plugins:u}),Lg(t,m.current))},g=()=>{Lg(t,null),m.current&&(m.current.destroy(),m.current=null)};return Y.useEffect(()=>{!s&&m.current&&l&&i2(m.current,l)},[s,l]),Y.useEffect(()=>{!s&&m.current&&Wg(m.current.config.data,a.labels)},[s,a.labels]),Y.useEffect(()=>{!s&&m.current&&a.datasets&&Bg(m.current.config.data,a.datasets,i)},[s,a.datasets]),Y.useEffect(()=>{m.current&&(s?(g(),setTimeout(y)):m.current.update(f))},[s,l,a.labels,a.datasets,f]),Y.useEffect(()=>{m.current&&(g(),setTimeout(y))},[o]),Y.useEffect(()=>(y(),()=>g()),[]),Y.createElement("canvas",Object.assign({ref:p,role:"img",height:n,width:r},h),d)}const l2=Y.forwardRef(a2);function xu(e,t){return Kn.register(t),Y.forwardRef((n,r)=>Y.createElement(l2,Object.assign({},n,{ref:r,type:e})))}const uo=xu("line",Fa),Or=xu("bar",ja),Xs=xu("pie",lu),zg=6048e5,c2=864e5,fo=6e4,ho=36e5,u2=1e3,Yg=Symbol.for("constructDateFrom");function St(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Yg in e?e[Yg](t):e instanceof Date?new e.constructor(t):new Date(t)}function Se(e,t){return St(t||e,e)}function Ka(e,t,n){const r=Se(e,n==null?void 0:n.in);return isNaN(t)?St((n==null?void 0:n.in)||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function _u(e,t,n){const r=Se(e,n==null?void 0:n.in);if(isNaN(t))return St(e,NaN);if(!t)return r;const s=r.getDate(),i=St(e,r.getTime());i.setMonth(r.getMonth()+t+1,0);const o=i.getDate();return s>=o?i:(r.setFullYear(i.getFullYear(),i.getMonth(),s),r)}function wu(e,t,n){return St(e,+Se(e)+t)}function d2(e,t,n){return wu(e,t*ho)}let f2={};function gs(){return f2}function er(e,t){var a,l,u,d;const n=gs(),r=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,s=Se(e,t==null?void 0:t.in),i=s.getDay(),o=(i<r?7:0)+i-r;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function Ks(e,t){return er(e,{...t,weekStartsOn:1})}function Vg(e,t){const n=Se(e,t==null?void 0:t.in),r=n.getFullYear(),s=St(n,0);s.setFullYear(r+1,0,4),s.setHours(0,0,0,0);const i=Ks(s),o=St(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const a=Ks(o);return n.getTime()>=i.getTime()?r+1:n.getTime()>=a.getTime()?r:r-1}function Za(e){const t=Se(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 ms(e,...t){const n=St.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Su(e,t){const n=Se(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Hg(e,t,n){const[r,s]=ms(n==null?void 0:n.in,e,t),i=Su(r),o=Su(s),a=+i-Za(i),l=+o-Za(o);return Math.round((a-l)/c2)}function h2(e,t){const n=Vg(e,t),r=St(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ks(r)}function p2(e,t,n){const r=Se(e,n==null?void 0:n.in);return r.setTime(r.getTime()+t*fo),r}function g2(e,t,n){return _u(e,t*3,n)}function m2(e,t,n){return wu(e,t*1e3)}function y2(e,t,n){return Ka(e,t*7,n)}function b2(e,t,n){return _u(e,t*12,n)}function po(e,t){const n=+Se(e)-+Se(t);return n<0?-1:n>0?1:n}function v2(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ug(e){return!(!v2(e)&&typeof e!="number"||isNaN(+Se(e)))}function x2(e,t,n){const[r,s]=ms(n==null?void 0:n.in,e,t),i=r.getFullYear()-s.getFullYear(),o=r.getMonth()-s.getMonth();return i*12+o}function _2(e,t,n){const[r,s]=ms(n==null?void 0:n.in,e,t);return r.getFullYear()-s.getFullYear()}function qg(e,t,n){const[r,s]=ms(n==null?void 0:n.in,e,t),i=Gg(r,s),o=Math.abs(Hg(r,s));r.setDate(r.getDate()-i*o);const a=+(Gg(r,s)===-i),l=i*(o-a);return l===0?0:l}function Gg(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function go(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function w2(e,t,n){const[r,s]=ms(n==null?void 0:n.in,e,t),i=(+r-+s)/ho;return go(n==null?void 0:n.roundingMethod)(i)}function Tu(e,t){return+Se(e)-+Se(t)}function S2(e,t,n){const r=Tu(e,t)/fo;return go(n==null?void 0:n.roundingMethod)(r)}function Xg(e,t){const n=Se(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function Kg(e,t){const n=Se(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function T2(e,t){const n=Se(e,t==null?void 0:t.in);return+Xg(n,t)==+Kg(n,t)}function Zg(e,t,n){const[r,s,i]=ms(n==null?void 0:n.in,e,e,t),o=po(s,i),a=Math.abs(x2(s,i));if(a<1)return 0;s.getMonth()===1&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-o*a);let l=po(s,i)===-o;T2(r)&&a===1&&po(r,i)===1&&(l=!1);const u=o*(a-+l);return u===0?0:u}function k2(e,t,n){const r=Zg(e,t,n)/3;return go(n==null?void 0:n.roundingMethod)(r)}function O2(e,t,n){const r=Tu(e,t)/1e3;return go(n==null?void 0:n.roundingMethod)(r)}function C2(e,t,n){const r=qg(e,t,n)/7;return go(n==null?void 0:n.roundingMethod)(r)}function M2(e,t,n){const[r,s]=ms(n==null?void 0:n.in,e,t),i=po(r,s),o=Math.abs(_2(r,s));r.setFullYear(1584),s.setFullYear(1584);const a=po(r,s)===-i,l=i*(o-+a);return l===0?0:l}function E2(e,t){const n=Se(e,t==null?void 0:t.in),r=n.getMonth(),s=r-r%3;return n.setMonth(s,1),n.setHours(0,0,0,0),n}function D2(e,t){const n=Se(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function P2(e,t){const n=Se(e,t==null?void 0:t.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Qg(e,t){const n=Se(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function R2(e,t){const n=Se(e,t==null?void 0:t.in);return n.setMinutes(59,59,999),n}function A2(e,t){var a,l;const n=gs(),r=n.weekStartsOn??((l=(a=n.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??0,s=Se(e,t==null?void 0:t.in),i=s.getDay(),o=(i<r?-7:0)+6-(i-r);return s.setDate(s.getDate()+o),s.setHours(23,59,59,999),s}function I2(e,t){const n=Se(e,t==null?void 0:t.in);return n.setSeconds(59,999),n}function N2(e,t){const n=Se(e,t==null?void 0:t.in),r=n.getMonth(),s=r-r%3+3;return n.setMonth(s,0),n.setHours(23,59,59,999),n}function j2(e,t){const n=Se(e,t==null?void 0:t.in);return n.setMilliseconds(999),n}const F2={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"}},$2=(e,t,n)=>{let r;const s=F2[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function ku(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const L2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},W2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},B2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},z2={date:ku({formats:L2,defaultWidth:"full"}),time:ku({formats:W2,defaultWidth:"full"}),dateTime:ku({formats:B2,defaultWidth:"full"})},Y2={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},V2=(e,t,n,r)=>Y2[e];function mo(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):o;s=e.formattingValues[a]||e.formattingValues[o]}else{const o=e.defaultWidth,a=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[a]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return s[i]}}const H2={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},U2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},q2={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"]},G2={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"]},X2={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"}},K2={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"}},Z2={ordinalNumber:(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"},era:mo({values:H2,defaultWidth:"wide"}),quarter:mo({values:U2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:mo({values:q2,defaultWidth:"wide"}),day:mo({values:G2,defaultWidth:"wide"}),dayPeriod:mo({values:X2,defaultWidth:"wide",formattingValues:K2,defaultFormattingWidth:"wide"})};function yo(e){return(t,n={})=>{const r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(s);if(!i)return null;const o=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?J2(a,f=>f.test(o)):Q2(a,f=>f.test(o));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(o.length);return{value:u,rest:d}}}function Q2(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function J2(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function ek(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const s=r[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const a=t.slice(s.length);return{value:o,rest:a}}}const tk=/^(\d+)(th|st|nd|rd)?/i,nk=/\d+/i,rk={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},sk={any:[/^b/i,/^(a|c)/i]},ik={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ok={any:[/1/i,/2/i,/3/i,/4/i]},ak={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},lk={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]},ck={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},uk={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]},dk={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},fk={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}},hk={ordinalNumber:ek({matchPattern:tk,parsePattern:nk,valueCallback:e=>parseInt(e,10)}),era:yo({matchPatterns:rk,defaultMatchWidth:"wide",parsePatterns:sk,defaultParseWidth:"any"}),quarter:yo({matchPatterns:ik,defaultMatchWidth:"wide",parsePatterns:ok,defaultParseWidth:"any",valueCallback:e=>e+1}),month:yo({matchPatterns:ak,defaultMatchWidth:"wide",parsePatterns:lk,defaultParseWidth:"any"}),day:yo({matchPatterns:ck,defaultMatchWidth:"wide",parsePatterns:uk,defaultParseWidth:"any"}),dayPeriod:yo({matchPatterns:dk,defaultMatchWidth:"any",parsePatterns:fk,defaultParseWidth:"any"})},Jg={code:"en-US",formatDistance:$2,formatLong:z2,formatRelative:V2,localize:Z2,match:hk,options:{weekStartsOn:0,firstWeekContainsDate:1}};function pk(e,t){const n=Se(e,t==null?void 0:t.in);return Hg(n,Qg(n))+1}function em(e,t){const n=Se(e,t==null?void 0:t.in),r=+Ks(n)-+h2(n);return Math.round(r/zg)+1}function Ou(e,t){var d,f,h,p;const n=Se(e,t==null?void 0:t.in),r=n.getFullYear(),s=gs(),i=(t==null?void 0:t.firstWeekContainsDate)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??s.firstWeekContainsDate??((p=(h=s.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,o=St((t==null?void 0:t.in)||e,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const a=er(o,t),l=St((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const u=er(l,t);return+n>=+a?r+1:+n>=+u?r:r-1}function gk(e,t){var a,l,u,d;const n=gs(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,s=Ou(e,t),i=St((t==null?void 0:t.in)||e,0);return i.setFullYear(s,0,r),i.setHours(0,0,0,0),er(i,t)}function tm(e,t){const n=Se(e,t==null?void 0:t.in),r=+er(n,t)-+gk(n,t);return Math.round(r/zg)+1}function Je(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Gr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Je(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Je(n+1,2)},d(e,t){return Je(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 Je(e.getHours()%12||12,t.length)},H(e,t){return Je(e.getHours(),t.length)},m(e,t){return Je(e.getMinutes(),t.length)},s(e,t){return Je(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return Je(s,t.length)}},Zs={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},nm={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(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return Gr.y(e,t)},Y:function(e,t,n,r){const s=Ou(e,r),i=s>0?s:1-s;if(t==="YY"){const o=i%100;return Je(o,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):Je(i,t.length)},R:function(e,t){const n=Vg(e);return Je(n,t.length)},u:function(e,t){const n=e.getFullYear();return Je(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 Je(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 Je(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 Gr.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 Je(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 s=tm(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):Je(s,t.length)},I:function(e,t,n){const r=em(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Je(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Gr.d(e,t)},D:function(e,t,n){const r=pk(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Je(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 s=e.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Je(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const s=e.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Je(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),s=r===0?7:r;switch(t){case"i":return String(s);case"ii":return Je(s,t.length);case"io":return n.ordinalNumber(s,{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 s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let s;switch(r===12?s=Zs.noon:r===0?s=Zs.midnight:s=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let s;switch(r>=17?s=Zs.evening:r>=12?s=Zs.afternoon:r>=4?s=Zs.morning:s=Zs.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{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 Gr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Gr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Je(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Je(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Gr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Gr.s(e,t)},S:function(e,t){return Gr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return sm(r);case"XXXX":case"XX":return ys(r);case"XXXXX":case"XXX":default:return ys(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return sm(r);case"xxxx":case"xx":return ys(r);case"xxxxx":case"xxx":default:return ys(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+rm(r,":");case"OOOO":default:return"GMT"+ys(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+rm(r,":");case"zzzz":default:return"GMT"+ys(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Je(r,t.length)},T:function(e,t,n){return Je(+e,t.length)}};function rm(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Math.trunc(r/60),i=r%60;return i===0?n+String(s):n+String(s)+t+Je(i,2)}function sm(e,t){return e%60===0?(e>0?"-":"+")+Je(Math.abs(e)/60,2):ys(e,t)}function ys(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Je(Math.trunc(r/60),2),i=Je(r%60,2);return n+s+t+i}const im=(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"})}},om=(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"})}},Cu={p:om,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return im(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",im(r,t)).replace("{{time}}",om(s,t))}},mk=/^D+$/,yk=/^Y+$/,bk=["D","DD","YY","YYYY"];function am(e){return mk.test(e)}function lm(e){return yk.test(e)}function Mu(e,t,n){const r=vk(e,t,n);if(console.warn(r),bk.includes(e))throw new RangeError(r)}function vk(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 xk=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_k=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wk=/^'([^]*?)'?$/,Sk=/''/g,Tk=/[a-zA-Z]/;function kk(e,t,n){var d,f,h,p,m,y,g,x;const r=gs(),s=(n==null?void 0:n.locale)??r.locale??Jg,i=(n==null?void 0:n.firstWeekContainsDate)??((f=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((p=(h=r.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((y=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:y.weekStartsOn)??r.weekStartsOn??((x=(g=r.locale)==null?void 0:g.options)==null?void 0:x.weekStartsOn)??0,a=Se(e,n==null?void 0:n.in);if(!Ug(a))throw new RangeError("Invalid time value");let l=t.match(_k).map(w=>{const S=w[0];if(S==="p"||S==="P"){const T=Cu[S];return T(w,s.formatLong)}return w}).join("").match(xk).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const S=w[0];if(S==="'")return{isToken:!1,value:Ok(w)};if(nm[S])return{isToken:!0,value:w};if(S.match(Tk))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:w}});s.localize.preprocessor&&(l=s.localize.preprocessor(a,l));const u={firstWeekContainsDate:i,weekStartsOn:o,locale:s};return l.map(w=>{if(!w.isToken)return w.value;const S=w.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&lm(S)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&am(S))&&Mu(S,t,String(e));const T=nm[S[0]];return T(a,S,s.localize,u)}).join("")}function Ok(e){const t=e.match(wk);return t?t[1].replace(Sk,"'"):e}function Ck(){return Object.assign({},gs())}function Mk(e,t){const n=Se(e,t==null?void 0:t.in).getDay();return n===0?7:n}function Ek(e,t){const n=Dk(t)?new t(0):St(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function Dk(e){var t;return typeof e=="function"&&((t=e.prototype)==null?void 0:t.constructor)===e}const Pk=10;class cm{constructor(){G(this,"subPriority",0)}validate(t,n){return!0}}class Rk extends cm{constructor(t,n,r,s,i){super(),this.value=t,this.validateValue=n,this.setValue=r,this.priority=s,i&&(this.subPriority=i)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,r){return this.setValue(t,n,this.value,r)}}class Ak extends cm{constructor(n,r){super();G(this,"priority",Pk);G(this,"subPriority",-1);this.context=n||(s=>St(r,s))}set(n,r){return r.timestampIsSet?n:St(n,Ek(n,this.context))}}class Be{run(t,n,r,s){const i=this.parse(t,n,r,s);return i?{setter:new Rk(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,n,r){return!0}}class Ik extends Be{constructor(){super(...arguments);G(this,"priority",140);G(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,s){switch(r){case"G":case"GG":case"GGG":return s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"});case"GGGGG":return s.era(n,{width:"narrow"});case"GGGG":default:return s.era(n,{width:"wide"})||s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"})}}set(n,r,s){return r.era=s,n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}const Mt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},tr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Et(e,t){return e&&{value:t(e.value),rest:e.rest}}function bt(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function nr(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const r=n[1]==="+"?1:-1,s=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(s*ho+i*fo+o*u2),rest:t.slice(n[0].length)}}function um(e){return bt(Mt.anyDigitsSigned,e)}function Tt(e,t){switch(e){case 1:return bt(Mt.singleDigit,t);case 2:return bt(Mt.twoDigits,t);case 3:return bt(Mt.threeDigits,t);case 4:return bt(Mt.fourDigits,t);default:return bt(new RegExp("^\\d{1,"+e+"}"),t)}}function Qa(e,t){switch(e){case 1:return bt(Mt.singleDigitSigned,t);case 2:return bt(Mt.twoDigitsSigned,t);case 3:return bt(Mt.threeDigitsSigned,t);case 4:return bt(Mt.fourDigitsSigned,t);default:return bt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Eu(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function dm(e,t){const n=t>0,r=n?t:1-t;let s;if(r<=50)s=e||100;else{const i=r+50,o=Math.trunc(i/100)*100,a=e>=i%100;s=e+o-(a?100:0)}return n?s:1-s}function fm(e){return e%400===0||e%4===0&&e%100!==0}class Nk extends Be{constructor(){super(...arguments);G(this,"priority",130);G(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,s){const i=o=>({year:o,isTwoDigitYear:r==="yy"});switch(r){case"y":return Et(Tt(4,n),i);case"yo":return Et(s.ordinalNumber(n,{unit:"year"}),i);default:return Et(Tt(r.length,n),i)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s){const i=n.getFullYear();if(s.isTwoDigitYear){const a=dm(s.year,i);return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}const o=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class jk extends Be{constructor(){super(...arguments);G(this,"priority",130);G(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,s){const i=o=>({year:o,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Et(Tt(4,n),i);case"Yo":return Et(s.ordinalNumber(n,{unit:"year"}),i);default:return Et(Tt(r.length,n),i)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s,i){const o=Ou(n,i);if(s.isTwoDigitYear){const l=dm(s.year,o);return n.setFullYear(l,0,i.firstWeekContainsDate),n.setHours(0,0,0,0),er(n,i)}const a=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(a,0,i.firstWeekContainsDate),n.setHours(0,0,0,0),er(n,i)}}class Fk extends Be{constructor(){super(...arguments);G(this,"priority",130);G(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return Qa(r==="R"?4:r.length,n)}set(n,r,s){const i=St(n,0);return i.setFullYear(s,0,4),i.setHours(0,0,0,0),Ks(i)}}class $k extends Be{constructor(){super(...arguments);G(this,"priority",130);G(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return Qa(r==="u"?4:r.length,n)}set(n,r,s){return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}class Lk extends Be{constructor(){super(...arguments);G(this,"priority",120);G(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"Q":case"QQ":return Tt(r.length,n);case"Qo":return s.ordinalNumber(n,{unit:"quarter"});case"QQQ":return s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(n,{width:"wide",context:"formatting"})||s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class Wk extends Be{constructor(){super(...arguments);G(this,"priority",120);G(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"q":case"qq":return Tt(r.length,n);case"qo":return s.ordinalNumber(n,{unit:"quarter"});case"qqq":return s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(n,{width:"wide",context:"standalone"})||s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class Bk extends Be{constructor(){super(...arguments);G(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);G(this,"priority",110)}parse(n,r,s){const i=o=>o-1;switch(r){case"M":return Et(bt(Mt.month,n),i);case"MM":return Et(Tt(2,n),i);case"Mo":return Et(s.ordinalNumber(n,{unit:"month"}),i);case"MMM":return s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(n,{width:"wide",context:"formatting"})||s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}class zk extends Be{constructor(){super(...arguments);G(this,"priority",110);G(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,s){const i=o=>o-1;switch(r){case"L":return Et(bt(Mt.month,n),i);case"LL":return Et(Tt(2,n),i);case"Lo":return Et(s.ordinalNumber(n,{unit:"month"}),i);case"LLL":return s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(n,{width:"wide",context:"standalone"})||s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}function Yk(e,t,n){const r=Se(e,n==null?void 0:n.in),s=tm(r,n)-t;return r.setDate(r.getDate()-s*7),Se(r,n==null?void 0:n.in)}class Vk extends Be{constructor(){super(...arguments);G(this,"priority",100);G(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,s){switch(r){case"w":return bt(Mt.week,n);case"wo":return s.ordinalNumber(n,{unit:"week"});default:return Tt(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s,i){return er(Yk(n,s,i),i)}}function Hk(e,t,n){const r=Se(e,n==null?void 0:n.in),s=em(r,n)-t;return r.setDate(r.getDate()-s*7),r}class Uk extends Be{constructor(){super(...arguments);G(this,"priority",100);G(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,s){switch(r){case"I":return bt(Mt.week,n);case"Io":return s.ordinalNumber(n,{unit:"week"});default:return Tt(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s){return Ks(Hk(n,s))}}const qk=[31,28,31,30,31,30,31,31,30,31,30,31],Gk=[31,29,31,30,31,30,31,31,30,31,30,31];class Xk extends Be{constructor(){super(...arguments);G(this,"priority",90);G(this,"subPriority",1);G(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"d":return bt(Mt.date,n);case"do":return s.ordinalNumber(n,{unit:"date"});default:return Tt(r.length,n)}}validate(n,r){const s=n.getFullYear(),i=fm(s),o=n.getMonth();return i?r>=1&&r<=Gk[o]:r>=1&&r<=qk[o]}set(n,r,s){return n.setDate(s),n.setHours(0,0,0,0),n}}class Kk extends Be{constructor(){super(...arguments);G(this,"priority",90);G(this,"subpriority",1);G(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,s){switch(r){case"D":case"DD":return bt(Mt.dayOfYear,n);case"Do":return s.ordinalNumber(n,{unit:"date"});default:return Tt(r.length,n)}}validate(n,r){const s=n.getFullYear();return fm(s)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,s){return n.setMonth(0,s),n.setHours(0,0,0,0),n}}function Du(e,t,n){var f,h,p,m;const r=gs(),s=(n==null?void 0:n.weekStartsOn)??((h=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??r.weekStartsOn??((m=(p=r.locale)==null?void 0:p.options)==null?void 0:m.weekStartsOn)??0,i=Se(e,n==null?void 0:n.in),o=i.getDay(),l=(t%7+7)%7,u=7-s,d=t<0||t>6?t-(o+u)%7:(l+u)%7-(o+u)%7;return Ka(i,d,n)}class Zk extends Be{constructor(){super(...arguments);G(this,"priority",90);G(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"E":case"EE":case"EEE":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,i){return n=Du(n,s,i),n.setHours(0,0,0,0),n}}class Qk extends Be{constructor(){super(...arguments);G(this,"priority",90);G(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,s,i){const o=a=>{const l=Math.floor((a-1)/7)*7;return(a+i.weekStartsOn+6)%7+l};switch(r){case"e":case"ee":return Et(Tt(r.length,n),o);case"eo":return Et(s.ordinalNumber(n,{unit:"day"}),o);case"eee":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeeee":return s.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,i){return n=Du(n,s,i),n.setHours(0,0,0,0),n}}class Jk extends Be{constructor(){super(...arguments);G(this,"priority",90);G(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,s,i){const o=a=>{const l=Math.floor((a-1)/7)*7;return(a+i.weekStartsOn+6)%7+l};switch(r){case"c":case"cc":return Et(Tt(r.length,n),o);case"co":return Et(s.ordinalNumber(n,{unit:"day"}),o);case"ccc":return s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"ccccc":return s.day(n,{width:"narrow",context:"standalone"});case"cccccc":return s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(n,{width:"wide",context:"standalone"})||s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,i){return n=Du(n,s,i),n.setHours(0,0,0,0),n}}function eO(e,t,n){const r=Se(e,n==null?void 0:n.in),s=Mk(r,n),i=t-s;return Ka(r,i,n)}class tO extends Be{constructor(){super(...arguments);G(this,"priority",90);G(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,s){const i=o=>o===0?7:o;switch(r){case"i":case"ii":return Tt(r.length,n);case"io":return s.ordinalNumber(n,{unit:"day"});case"iii":return Et(s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),i);case"iiiii":return Et(s.day(n,{width:"narrow",context:"formatting"}),i);case"iiiiii":return Et(s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),i);case"iiii":default:return Et(s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),i)}}validate(n,r){return r>=1&&r<=7}set(n,r,s){return n=eO(n,s),n.setHours(0,0,0,0),n}}class nO extends Be{constructor(){super(...arguments);G(this,"priority",80);G(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,s){switch(r){case"a":case"aa":case"aaa":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Eu(s),0,0,0),n}}class rO extends Be{constructor(){super(...arguments);G(this,"priority",80);G(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,s){switch(r){case"b":case"bb":case"bbb":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Eu(s),0,0,0),n}}class sO extends Be{constructor(){super(...arguments);G(this,"priority",80);G(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,s){switch(r){case"B":case"BB":case"BBB":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Eu(s),0,0,0),n}}class iO extends Be{constructor(){super(...arguments);G(this,"priority",70);G(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,s){switch(r){case"h":return bt(Mt.hour12h,n);case"ho":return s.ordinalNumber(n,{unit:"hour"});default:return Tt(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,s){const i=n.getHours()>=12;return i&&s<12?n.setHours(s+12,0,0,0):!i&&s===12?n.setHours(0,0,0,0):n.setHours(s,0,0,0),n}}class oO extends Be{constructor(){super(...arguments);G(this,"priority",70);G(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,s){switch(r){case"H":return bt(Mt.hour23h,n);case"Ho":return s.ordinalNumber(n,{unit:"hour"});default:return Tt(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,s){return n.setHours(s,0,0,0),n}}class aO extends Be{constructor(){super(...arguments);G(this,"priority",70);G(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,s){switch(r){case"K":return bt(Mt.hour11h,n);case"Ko":return s.ordinalNumber(n,{unit:"hour"});default:return Tt(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.getHours()>=12&&s<12?n.setHours(s+12,0,0,0):n.setHours(s,0,0,0),n}}class lO extends Be{constructor(){super(...arguments);G(this,"priority",70);G(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,s){switch(r){case"k":return bt(Mt.hour24h,n);case"ko":return s.ordinalNumber(n,{unit:"hour"});default:return Tt(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,s){const i=s<=24?s%24:s;return n.setHours(i,0,0,0),n}}class cO extends Be{constructor(){super(...arguments);G(this,"priority",60);G(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"m":return bt(Mt.minute,n);case"mo":return s.ordinalNumber(n,{unit:"minute"});default:return Tt(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setMinutes(s,0,0),n}}class uO extends Be{constructor(){super(...arguments);G(this,"priority",50);G(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"s":return bt(Mt.second,n);case"so":return s.ordinalNumber(n,{unit:"second"});default:return Tt(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setSeconds(s,0),n}}class dO extends Be{constructor(){super(...arguments);G(this,"priority",30);G(this,"incompatibleTokens",["t","T"])}parse(n,r){const s=i=>Math.trunc(i*Math.pow(10,-r.length+3));return Et(Tt(r.length,n),s)}set(n,r,s){return n.setMilliseconds(s),n}}class fO extends Be{constructor(){super(...arguments);G(this,"priority",10);G(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return nr(tr.basicOptionalMinutes,n);case"XX":return nr(tr.basic,n);case"XXXX":return nr(tr.basicOptionalSeconds,n);case"XXXXX":return nr(tr.extendedOptionalSeconds,n);case"XXX":default:return nr(tr.extended,n)}}set(n,r,s){return r.timestampIsSet?n:St(n,n.getTime()-Za(n)-s)}}class hO extends Be{constructor(){super(...arguments);G(this,"priority",10);G(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return nr(tr.basicOptionalMinutes,n);case"xx":return nr(tr.basic,n);case"xxxx":return nr(tr.basicOptionalSeconds,n);case"xxxxx":return nr(tr.extendedOptionalSeconds,n);case"xxx":default:return nr(tr.extended,n)}}set(n,r,s){return r.timestampIsSet?n:St(n,n.getTime()-Za(n)-s)}}class pO extends Be{constructor(){super(...arguments);G(this,"priority",40);G(this,"incompatibleTokens","*")}parse(n){return um(n)}set(n,r,s){return[St(n,s*1e3),{timestampIsSet:!0}]}}class gO extends Be{constructor(){super(...arguments);G(this,"priority",20);G(this,"incompatibleTokens","*")}parse(n){return um(n)}set(n,r,s){return[St(n,s),{timestampIsSet:!0}]}}const mO={G:new Ik,y:new Nk,Y:new jk,R:new Fk,u:new $k,Q:new Lk,q:new Wk,M:new Bk,L:new zk,w:new Vk,I:new Uk,d:new Xk,D:new Kk,E:new Zk,e:new Qk,c:new Jk,i:new tO,a:new nO,b:new rO,B:new sO,h:new iO,H:new oO,K:new aO,k:new lO,m:new cO,s:new uO,S:new dO,X:new fO,x:new hO,t:new pO,T:new gO},yO=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bO=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vO=/^'([^]*?)'?$/,xO=/''/g,_O=/\S/,wO=/[a-zA-Z]/;function SO(e,t,n,r){var g,x,w,S,T,_,C,M;const s=()=>St((r==null?void 0:r.in)||n,NaN),i=Ck(),o=(r==null?void 0:r.locale)??i.locale??Jg,a=(r==null?void 0:r.firstWeekContainsDate)??((x=(g=r==null?void 0:r.locale)==null?void 0:g.options)==null?void 0:x.firstWeekContainsDate)??i.firstWeekContainsDate??((S=(w=i.locale)==null?void 0:w.options)==null?void 0:S.firstWeekContainsDate)??1,l=(r==null?void 0:r.weekStartsOn)??((_=(T=r==null?void 0:r.locale)==null?void 0:T.options)==null?void 0:_.weekStartsOn)??i.weekStartsOn??((M=(C=i.locale)==null?void 0:C.options)==null?void 0:M.weekStartsOn)??0;if(!t)return e?s():Se(n,r==null?void 0:r.in);const u={firstWeekContainsDate:a,weekStartsOn:l,locale:o},d=[new Ak(r==null?void 0:r.in,n)],f=t.match(bO).map(k=>{const R=k[0];if(R in Cu){const b=Cu[R];return b(k,o.formatLong)}return k}).join("").match(yO),h=[];for(let k of f){!(r!=null&&r.useAdditionalWeekYearTokens)&&lm(k)&&Mu(k,t,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&am(k)&&Mu(k,t,e);const R=k[0],b=mO[R];if(b){const{incompatibleTokens:E}=b;if(Array.isArray(E)){const W=h.find(j=>E.includes(j.token)||j.token===R);if(W)throw new RangeError(`The format string mustn't contain \`${W.fullToken}\` and \`${k}\` at the same time`)}else if(b.incompatibleTokens==="*"&&h.length>0)throw new RangeError(`The format string mustn't contain \`${k}\` and any other token at the same time`);h.push({token:R,fullToken:k});const I=b.run(e,k,o.match,u);if(!I)return s();d.push(I.setter),e=I.rest}else{if(R.match(wO))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");if(k==="''"?k="'":R==="'"&&(k=TO(k)),e.indexOf(k)===0)e=e.slice(k.length);else return s()}}if(e.length>0&&_O.test(e))return s();const p=d.map(k=>k.priority).sort((k,R)=>R-k).filter((k,R,b)=>b.indexOf(k)===R).map(k=>d.filter(R=>R.priority===k).sort((R,b)=>b.subPriority-R.subPriority)).map(k=>k[0]);let m=Se(n,r==null?void 0:r.in);if(isNaN(+m))return s();const y={};for(const k of p){if(!k.validate(m,u))return s();const R=k.set(m,y,u);Array.isArray(R)?(m=R[0],Object.assign(y,R[1])):m=R}return m}function TO(e){return e.match(vO)[1].replace(xO,"'")}function kO(e,t){const n=Se(e,t==null?void 0:t.in);return n.setMinutes(0,0,0),n}function OO(e,t){const n=Se(e,t==null?void 0:t.in);return n.setSeconds(0,0),n}function CO(e,t){const n=Se(e,t==null?void 0:t.in);return n.setMilliseconds(0),n}function MO(e,t){const n=()=>St(t==null?void 0:t.in,NaN),r=(t==null?void 0:t.additionalDigits)??2,s=RO(e);let i;if(s.date){const u=AO(s.date,r);i=IO(u.restDateString,u.year)}if(!i||isNaN(+i))return n();const o=+i;let a=0,l;if(s.time&&(a=NO(s.time),isNaN(a)))return n();if(s.timezone){if(l=jO(s.timezone),isNaN(l))return n()}else{const u=new Date(o+a),d=Se(0,t==null?void 0:t.in);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return Se(o+a+l,t==null?void 0:t.in)}const Ja={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},EO=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,DO=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,PO=/^([+-])(\d{2})(?::?(\d{2}))?$/;function RO(e){const t={},n=e.split(Ja.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Ja.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Ja.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const s=Ja.timezone.exec(r);s?(t.time=r.replace(s[1],""),t.timezone=s[1]):t.time=r}return t}function AO(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const s=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?s:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function IO(e,t){if(t===null)return new Date(NaN);const n=e.match(EO);if(!n)return new Date(NaN);const r=!!n[4],s=bo(n[1]),i=bo(n[2])-1,o=bo(n[3]),a=bo(n[4]),l=bo(n[5])-1;if(r)return BO(t,a,l)?FO(t,a,l):new Date(NaN);{const u=new Date(0);return!LO(t,i,o)||!WO(t,s)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(s,o)),u)}}function bo(e){return e?parseInt(e):1}function NO(e){const t=e.match(DO);if(!t)return NaN;const n=Pu(t[1]),r=Pu(t[2]),s=Pu(t[3]);return zO(n,r,s)?n*ho+r*fo+s*1e3:NaN}function Pu(e){return e&&parseFloat(e.replace(",","."))||0}function jO(e){if(e==="Z")return 0;const t=e.match(PO);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),s=t[3]&&parseInt(t[3])||0;return YO(r,s)?n*(r*ho+s*fo):NaN}function FO(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const s=r.getUTCDay()||7,i=(t-1)*7+n+1-s;return r.setUTCDate(r.getUTCDate()+i),r}const $O=[31,null,31,30,31,30,31,31,30,31,30,31];function hm(e){return e%400===0||e%4===0&&e%100!==0}function LO(e,t,n){return t>=0&&t<=11&&n>=1&&n<=($O[t]||(hm(e)?29:28))}function WO(e,t){return t>=1&&t<=(hm(e)?366:365)}function BO(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function zO(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function YO(e,t){return t>=0&&t<=59}/*!
124
+ * chartjs-adapter-date-fns v3.0.0
125
+ * https://www.chartjs.org
126
+ * (c) 2022 chartjs-adapter-date-fns Contributors
127
+ * Released under the MIT license
128
+ */const VO={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};Bp._date.override({_id:"date-fns",formats:function(){return VO},parse:function(e,t){if(e===null||typeof e>"u")return null;const n=typeof e;return n==="number"||e instanceof Date?e=Se(e):n==="string"&&(typeof t=="string"?e=SO(e,t,new Date,this.options):e=MO(e,this.options)),Ug(e)?e.getTime():null},format:function(e,t){return kk(e,t,this.options)},add:function(e,t,n){switch(n){case"millisecond":return wu(e,t);case"second":return m2(e,t);case"minute":return p2(e,t);case"hour":return d2(e,t);case"day":return Ka(e,t);case"week":return y2(e,t);case"month":return _u(e,t);case"quarter":return g2(e,t);case"year":return b2(e,t);default:return e}},diff:function(e,t,n){switch(n){case"millisecond":return Tu(e,t);case"second":return O2(e,t);case"minute":return S2(e,t);case"hour":return w2(e,t);case"day":return qg(e,t);case"week":return C2(e,t);case"month":return Zg(e,t);case"quarter":return k2(e,t);case"year":return M2(e,t);default:return 0}},startOf:function(e,t,n){switch(t){case"second":return CO(e);case"minute":return OO(e);case"hour":return kO(e);case"day":return Su(e);case"week":return er(e);case"isoWeek":return er(e,{weekStartsOn:+n});case"month":return D2(e);case"quarter":return E2(e);case"year":return Qg(e);default:return e}},endOf:function(e,t){switch(t){case"second":return j2(e);case"minute":return I2(e);case"hour":return R2(e);case"day":return Xg(e);case"week":return A2(e);case"month":return Kg(e);case"quarter":return N2(e);case"year":return P2(e);default:return e}}});function pm(e){return v.jsx(Qf,{...e,defaultTheme:Ac,themeId:ba})}process.env.NODE_ENV!=="production"&&(pm.propTypes={styles:c.oneOfType([c.array,c.func,c.number,c.object,c.string,c.bool])});function HO(e){return function(n){return v.jsx(pm,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function UO(){return yc}const Ft=f_;function qO(e){return Ze("MuiSvgIcon",e)}je("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const GO=e=>{const{color:t,fontSize:n,classes:r}=e,s={root:["root",t!=="inherit"&&`color${De(t)}`,`fontSize${De(n)}`]};return nt(s,qO,r)},XO=ve("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${De(n.color)}`],t[`fontSize${De(n.fontSize)}`]]}})(Ft(({theme:e})=>{var t,n,r,s,i,o,a,l,u,d,f,h,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:y=>!y.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((o=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:o.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,y])=>y&&y.main).map(([y])=>{var g,x;return{props:{color:y},style:{color:(x=(g=(e.vars??e).palette)==null?void 0:g[y])==null?void 0:x.main}}}),{props:{color:"action"},style:{color:(h=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(m=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),vo=N.forwardRef(function(t,n){const r=it({props:t,name:"MuiSvgIcon"}),{children:s,className:i,color:o="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:h="0 0 24 24",...p}=r,m=N.isValidElement(s)&&s.type==="svg",y={...r,color:o,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:m},g={};d||(g.viewBox=h);const x=GO(y);return v.jsxs(XO,{as:a,className:ke(x.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...g,...p,...m&&s.props,ownerState:y,children:[m?s.props.children:s,f?v.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(vo.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),c.string]),component:c.elementType,fontSize:c.oneOfType([c.oneOf(["inherit","large","medium","small"]),c.string]),htmlColor:c.string,inheritViewBox:c.bool,shapeRendering:c.string,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),titleAccess:c.string,viewBox:c.string}),vo&&(vo.muiName="SvgIcon");function Ru(e,t){function n(r,s){return v.jsx(vo,{"data-testid":`${t}Icon`,ref:s,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=vo.muiName,N.memo(N.forwardRef(n))}var Au={exports:{}},Ue={};/**
129
+ * @license React
130
+ * react-is.production.min.js
131
+ *
132
+ * Copyright (c) Facebook, Inc. and its affiliates.
133
+ *
134
+ * This source code is licensed under the MIT license found in the
135
+ * LICENSE file in the root directory of this source tree.
136
+ */var gm;function KO(){if(gm)return Ue;gm=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function y(g){if(typeof g=="object"&&g!==null){var x=g.$$typeof;switch(x){case e:switch(g=g.type,g){case n:case s:case r:case u:case d:return g;default:switch(g=g&&g.$$typeof,g){case a:case o:case l:case h:case f:case i:return g;default:return x}}case t:return x}}}return Ue.ContextConsumer=o,Ue.ContextProvider=i,Ue.Element=e,Ue.ForwardRef=l,Ue.Fragment=n,Ue.Lazy=h,Ue.Memo=f,Ue.Portal=t,Ue.Profiler=s,Ue.StrictMode=r,Ue.Suspense=u,Ue.SuspenseList=d,Ue.isAsyncMode=function(){return!1},Ue.isConcurrentMode=function(){return!1},Ue.isContextConsumer=function(g){return y(g)===o},Ue.isContextProvider=function(g){return y(g)===i},Ue.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Ue.isForwardRef=function(g){return y(g)===l},Ue.isFragment=function(g){return y(g)===n},Ue.isLazy=function(g){return y(g)===h},Ue.isMemo=function(g){return y(g)===f},Ue.isPortal=function(g){return y(g)===t},Ue.isProfiler=function(g){return y(g)===s},Ue.isStrictMode=function(g){return y(g)===r},Ue.isSuspense=function(g){return y(g)===u},Ue.isSuspenseList=function(g){return y(g)===d},Ue.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===s||g===r||g===u||g===d||g===p||typeof g=="object"&&g!==null&&(g.$$typeof===h||g.$$typeof===f||g.$$typeof===i||g.$$typeof===o||g.$$typeof===l||g.$$typeof===m||g.getModuleId!==void 0)},Ue.typeOf=y,Ue}var qe={};/**
137
+ * @license React
138
+ * react-is.development.js
139
+ *
140
+ * Copyright (c) Facebook, Inc. and its affiliates.
141
+ *
142
+ * This source code is licensed under the MIT license found in the
143
+ * LICENSE file in the root directory of this source tree.
144
+ */var mm;function ZO(){return mm||(mm=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=!1,y=!1,g=!1,x=!1,w=!1,S;S=Symbol.for("react.module.reference");function T(V){return!!(typeof V=="string"||typeof V=="function"||V===n||V===s||w||V===r||V===u||V===d||x||V===p||m||y||g||typeof V=="object"&&V!==null&&(V.$$typeof===h||V.$$typeof===f||V.$$typeof===i||V.$$typeof===o||V.$$typeof===l||V.$$typeof===S||V.getModuleId!==void 0))}function _(V){if(typeof V=="object"&&V!==null){var Te=V.$$typeof;switch(Te){case e:var et=V.type;switch(et){case n:case s:case r:case u:case d:return et;default:var gt=et&&et.$$typeof;switch(gt){case a:case o:case l:case h:case f:case i:return gt;default:return Te}}case t:return Te}}}var C=o,M=i,k=e,R=l,b=n,E=h,I=f,W=t,j=s,O=r,D=u,L=d,F=!1,z=!1;function $(V){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(V){return z||(z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function U(V){return _(V)===o}function K(V){return _(V)===i}function J(V){return typeof V=="object"&&V!==null&&V.$$typeof===e}function ie(V){return _(V)===l}function ae(V){return _(V)===n}function ce(V){return _(V)===h}function ge(V){return _(V)===f}function de(V){return _(V)===t}function re(V){return _(V)===s}function fe(V){return _(V)===r}function Q(V){return _(V)===u}function xe(V){return _(V)===d}qe.ContextConsumer=C,qe.ContextProvider=M,qe.Element=k,qe.ForwardRef=R,qe.Fragment=b,qe.Lazy=E,qe.Memo=I,qe.Portal=W,qe.Profiler=j,qe.StrictMode=O,qe.Suspense=D,qe.SuspenseList=L,qe.isAsyncMode=$,qe.isConcurrentMode=H,qe.isContextConsumer=U,qe.isContextProvider=K,qe.isElement=J,qe.isForwardRef=ie,qe.isFragment=ae,qe.isLazy=ce,qe.isMemo=ge,qe.isPortal=de,qe.isProfiler=re,qe.isStrictMode=fe,qe.isSuspense=Q,qe.isSuspenseList=xe,qe.isValidElementType=T,qe.typeOf=_}()),qe}process.env.NODE_ENV==="production"?Au.exports=KO():Au.exports=ZO();var Iu=Au.exports;function ym(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Nu(e,t){return Nu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Nu(e,t)}function bm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Nu(e,t)}const vm={disabled:!1};var QO=process.env.NODE_ENV!=="production"?c.oneOfType([c.number,c.shape({enter:c.number,exit:c.number,appear:c.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&c.oneOfType([c.string,c.shape({enter:c.string,exit:c.string,active:c.string}),c.shape({enter:c.string,enterDone:c.string,enterActive:c.string,exit:c.string,exitDone:c.string,exitActive:c.string})]);const el=Y.createContext(null);var JO=function(t){return t.scrollTop},xo="unmounted",bs="exited",vs="entering",Qs="entered",ju="exiting",rr=function(e){bm(t,e);function t(r,s){var i;i=e.call(this,r,s)||this;var o=s,a=o&&!o.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=bs,i.appearStatus=vs):l=Qs:r.unmountOnExit||r.mountOnEnter?l=xo:l=bs,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(s,i){var o=s.in;return o&&i.status===xo?{status:bs}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var i=null;if(s!==this.props){var o=this.state.status;this.props.in?o!==vs&&o!==Qs&&(i=vs):(o===vs||o===Qs)&&(i=ju)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,i,o,a;return i=o=a=s,s!=null&&typeof s!="number"&&(i=s.exit,o=s.enter,a=s.appear!==void 0?s.appear:o),{exit:i,enter:o,appear:a}},n.updateStatus=function(s,i){if(s===void 0&&(s=!1),i!==null)if(this.cancelNextCallback(),i===vs){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:En.findDOMNode(this);o&&JO(o)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===bs&&this.setState({status:xo})},n.performEnter=function(s){var i=this,o=this.props.enter,a=this.context?this.context.isMounting:s,l=this.props.nodeRef?[a]:[En.findDOMNode(this),a],u=l[0],d=l[1],f=this.getTimeouts(),h=a?f.appear:f.enter;if(!s&&!o||vm.disabled){this.safeSetState({status:Qs},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:vs},function(){i.props.onEntering(u,d),i.onTransitionEnd(h,function(){i.safeSetState({status:Qs},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var s=this,i=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:En.findDOMNode(this);if(!i||vm.disabled){this.safeSetState({status:bs},function(){s.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:ju},function(){s.props.onExiting(a),s.onTransitionEnd(o.exit,function(){s.safeSetState({status:bs},function(){s.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,i){i=this.setNextCallback(i),this.setState(s,i)},n.setNextCallback=function(s){var i=this,o=!0;return this.nextCallback=function(a){o&&(o=!1,i.nextCallback=null,s(a))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(s,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:En.findDOMNode(this),a=s==null&&!this.props.addEndListener;if(!o||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===xo)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=ym(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Y.createElement(el.Provider,{value:null},typeof o=="function"?o(s,a):Y.cloneElement(Y.Children.only(o),a))},t}(Y.Component);rr.contextType=el,rr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:c.shape({current:typeof Element>"u"?c.any:function(e,t,n,r,s,i){var o=e[t];return c.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,r,s,i)}}),children:c.oneOfType([c.func.isRequired,c.element.isRequired]).isRequired,in:c.bool,mountOnEnter:c.bool,unmountOnExit:c.bool,appear:c.bool,enter:c.bool,exit:c.bool,timeout:function(t){var n=QO;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,s=new Array(r>1?r-1:0),i=1;i<r;i++)s[i-1]=arguments[i];return n.apply(void 0,[t].concat(s))},addEndListener:c.func,onEnter:c.func,onEntering:c.func,onEntered:c.func,onExit:c.func,onExiting:c.func,onExited:c.func}:{};function Js(){}rr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Js,onEntering:Js,onEntered:Js,onExit:Js,onExiting:Js,onExited:Js},rr.UNMOUNTED=xo,rr.EXITED=bs,rr.ENTERING=vs,rr.ENTERED=Qs,rr.EXITING=ju;function eC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fu(e,t){var n=function(i){return t&&Y.isValidElement(i)?t(i):i},r=Object.create(null);return e&&Y.Children.map(e,function(s){return s}).forEach(function(s){r[s.key]=n(s)}),r}function tC(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),s=[];for(var i in e)i in t?s.length&&(r[i]=s,s=[]):s.push(i);var o,a={};for(var l in t){if(r[l])for(o=0;o<r[l].length;o++){var u=r[l][o];a[r[l][o]]=n(u)}a[l]=n(l)}for(o=0;o<s.length;o++)a[s[o]]=n(s[o]);return a}function xs(e,t,n){return n[t]!=null?n[t]:e.props[t]}function nC(e,t){return Fu(e.children,function(n){return Y.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:xs(n,"appear",e),enter:xs(n,"enter",e),exit:xs(n,"exit",e)})})}function rC(e,t,n){var r=Fu(e.children),s=tC(t,r);return Object.keys(s).forEach(function(i){var o=s[i];if(Y.isValidElement(o)){var a=i in t,l=i in r,u=t[i],d=Y.isValidElement(u)&&!u.props.in;l&&(!a||d)?s[i]=Y.cloneElement(o,{onExited:n.bind(null,o),in:!0,exit:xs(o,"exit",e),enter:xs(o,"enter",e)}):!l&&a&&!d?s[i]=Y.cloneElement(o,{in:!1}):l&&a&&Y.isValidElement(u)&&(s[i]=Y.cloneElement(o,{onExited:n.bind(null,o),in:u.props.in,exit:xs(o,"exit",e),enter:xs(o,"enter",e)}))}}),s}var sC=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},iC={component:"div",childFactory:function(t){return t}},$u=function(e){bm(t,e);function t(r,s){var i;i=e.call(this,r,s)||this;var o=i.handleExited.bind(eC(i));return i.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(s,i){var o=i.children,a=i.handleExited,l=i.firstRender;return{children:l?nC(s,a):rC(s,o,a),firstRender:!1}},n.handleExited=function(s,i){var o=Fu(this.props.children);s.key in o||(s.props.onExited&&s.props.onExited(i),this.mounted&&this.setState(function(a){var l=Go({},a.children);return delete l[s.key],{children:l}}))},n.render=function(){var s=this.props,i=s.component,o=s.childFactory,a=ym(s,["component","childFactory"]),l=this.state.contextValue,u=sC(this.state.children).map(o);return delete a.appear,delete a.enter,delete a.exit,i===null?Y.createElement(el.Provider,{value:l},u):Y.createElement(el.Provider,{value:l},Y.createElement(i,a,u))},t}(Y.Component);$u.propTypes=process.env.NODE_ENV!=="production"?{component:c.any,children:c.node,appear:c.bool,enter:c.bool,exit:c.bool,childFactory:c.func}:{},$u.defaultProps=iC;const xm=e=>e.scrollTop;function tl(e,t){const{timeout:n,easing:r,style:s={}}=e;return{duration:s.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:s.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:s.transitionDelay}}function oC(e){return Ze("MuiPaper",e)}je("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const aC=e=>{const{square:t,elevation:n,variant:r,classes:s}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return nt(i,oC,s)},lC=ve("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Ft(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),ei=N.forwardRef(function(t,n){var p;const r=it({props:t,name:"MuiPaper"}),s=wa(),{className:i,component:o="div",elevation:a=1,square:l=!1,variant:u="elevation",...d}=r,f={...r,component:o,elevation:a,square:l,variant:u},h=aC(f);return process.env.NODE_ENV!=="production"&&s.shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
145
+ `)),v.jsx(lC,{as:o,ownerState:f,className:ke(h.root,i),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(s.vars||s).shadows[a],...s.vars&&{"--Paper-overlay":(p=s.vars.overlays)==null?void 0:p[a]},...!s.vars&&s.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${yn("#fff",Pc(a))}, ${yn("#fff",Pc(a))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(ei.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,elevation:Is(mh,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:c.bool,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["elevation","outlined"]),c.string])});function An(e,t){const{className:n,elementType:r,ownerState:s,externalForwardedProps:i,internalForwardedProps:o,...a}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=i,h=u[e]||r,p=_h(d[e],s),{props:{component:m,...y},internalRef:g}=xh({className:n,...a,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:p}),x=Ht(g,p==null?void 0:p.ref,t.ref),w=e==="root"?m||l:m,S=yh(h,{...e==="root"&&!l&&!u[e]&&o,...e!=="root"&&!u[e]&&o,...y,...w&&{as:w},ref:x},s);return[h,S]}class nl{constructor(){G(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new nl}static use(){const t=uh(nl.create).current,[n,r]=N.useState(!1);return t.shouldMount=n,t.setShouldMount=r,N.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=uC(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function cC(){return nl.use()}function uC(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n}function _m(e){const{className:t,classes:n,pulsate:r=!1,rippleX:s,rippleY:i,rippleSize:o,in:a,onExited:l,timeout:u}=e,[d,f]=N.useState(!1),h=ke(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+i,left:-(o/2)+s},m=ke(n.child,d&&n.childLeaving,r&&n.childPulsate);return!a&&!d&&f(!0),N.useEffect(()=>{if(!a&&l!=null){const y=setTimeout(l,u);return()=>{clearTimeout(y)}}},[l,a,u]),v.jsx("span",{className:h,style:p,children:v.jsx("span",{className:m})})}process.env.NODE_ENV!=="production"&&(_m.propTypes={classes:c.object.isRequired,className:c.string,in:c.bool,onExited:c.func,pulsate:c.bool,rippleSize:c.number,rippleX:c.number,rippleY:c.number,timeout:c.number.isRequired});const Sn=je("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Lu=550,dC=80,fC=fc`
146
+ 0% {
147
+ transform: scale(0);
148
+ opacity: 0.1;
149
+ }
150
+
151
+ 100% {
152
+ transform: scale(1);
153
+ opacity: 0.3;
154
+ }
155
+ `,hC=fc`
156
+ 0% {
157
+ opacity: 1;
158
+ }
159
+
160
+ 100% {
161
+ opacity: 0;
162
+ }
163
+ `,pC=fc`
164
+ 0% {
165
+ transform: scale(1);
166
+ }
167
+
168
+ 50% {
169
+ transform: scale(0.92);
170
+ }
171
+
172
+ 100% {
173
+ transform: scale(1);
174
+ }
175
+ `,gC=ve("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),mC=ve(_m,{name:"MuiTouchRipple",slot:"Ripple"})`
176
+ opacity: 0;
177
+ position: absolute;
178
+
179
+ &.${Sn.rippleVisible} {
180
+ opacity: 0.3;
181
+ transform: scale(1);
182
+ animation-name: ${fC};
183
+ animation-duration: ${Lu}ms;
184
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
185
+ }
186
+
187
+ &.${Sn.ripplePulsate} {
188
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
189
+ }
190
+
191
+ & .${Sn.child} {
192
+ opacity: 1;
193
+ display: block;
194
+ width: 100%;
195
+ height: 100%;
196
+ border-radius: 50%;
197
+ background-color: currentColor;
198
+ }
199
+
200
+ & .${Sn.childLeaving} {
201
+ opacity: 0;
202
+ animation-name: ${hC};
203
+ animation-duration: ${Lu}ms;
204
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
205
+ }
206
+
207
+ & .${Sn.childPulsate} {
208
+ position: absolute;
209
+ /* @noflip */
210
+ left: 0px;
211
+ top: 0;
212
+ animation-name: ${pC};
213
+ animation-duration: 2500ms;
214
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
215
+ animation-iteration-count: infinite;
216
+ animation-delay: 200ms;
217
+ }
218
+ `,wm=N.forwardRef(function(t,n){const r=it({props:t,name:"MuiTouchRipple"}),{center:s=!1,classes:i={},className:o,...a}=r,[l,u]=N.useState([]),d=N.useRef(0),f=N.useRef(null);N.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=N.useRef(!1),p=dh(),m=N.useRef(null),y=N.useRef(null),g=N.useCallback(T=>{const{pulsate:_,rippleX:C,rippleY:M,rippleSize:k,cb:R}=T;u(b=>[...b,v.jsx(mC,{classes:{ripple:ke(i.ripple,Sn.ripple),rippleVisible:ke(i.rippleVisible,Sn.rippleVisible),ripplePulsate:ke(i.ripplePulsate,Sn.ripplePulsate),child:ke(i.child,Sn.child),childLeaving:ke(i.childLeaving,Sn.childLeaving),childPulsate:ke(i.childPulsate,Sn.childPulsate)},timeout:Lu,pulsate:_,rippleX:C,rippleY:M,rippleSize:k},d.current)]),d.current+=1,f.current=R},[i]),x=N.useCallback((T={},_={},C=()=>{})=>{const{pulsate:M=!1,center:k=s||_.pulsate,fakeElement:R=!1}=_;if((T==null?void 0:T.type)==="mousedown"&&h.current){h.current=!1;return}(T==null?void 0:T.type)==="touchstart"&&(h.current=!0);const b=R?null:y.current,E=b?b.getBoundingClientRect():{width:0,height:0,left:0,top:0};let I,W,j;if(k||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)I=Math.round(E.width/2),W=Math.round(E.height/2);else{const{clientX:O,clientY:D}=T.touches&&T.touches.length>0?T.touches[0]:T;I=Math.round(O-E.left),W=Math.round(D-E.top)}if(k)j=Math.sqrt((2*E.width**2+E.height**2)/3),j%2===0&&(j+=1);else{const O=Math.max(Math.abs((b?b.clientWidth:0)-I),I)*2+2,D=Math.max(Math.abs((b?b.clientHeight:0)-W),W)*2+2;j=Math.sqrt(O**2+D**2)}T!=null&&T.touches?m.current===null&&(m.current=()=>{g({pulsate:M,rippleX:I,rippleY:W,rippleSize:j,cb:C})},p.start(dC,()=>{m.current&&(m.current(),m.current=null)})):g({pulsate:M,rippleX:I,rippleY:W,rippleSize:j,cb:C})},[s,g,p]),w=N.useCallback(()=>{x({},{pulsate:!0})},[x]),S=N.useCallback((T,_)=>{if(p.clear(),(T==null?void 0:T.type)==="touchend"&&m.current){m.current(),m.current=null,p.start(0,()=>{S(T,_)});return}m.current=null,u(C=>C.length>0?C.slice(1):C),f.current=_},[p]);return N.useImperativeHandle(n,()=>({pulsate:w,start:x,stop:S}),[w,x,S]),v.jsx(gC,{className:ke(Sn.root,i.root,o),ref:y,...a,children:v.jsx($u,{component:null,exit:!0,children:l})})});process.env.NODE_ENV!=="production"&&(wm.propTypes={center:c.bool,classes:c.object,className:c.string});function yC(e){return Ze("MuiButtonBase",e)}const bC=je("MuiButtonBase",["root","disabled","focusVisible"]),vC=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:s}=e,o=nt({root:["root",t&&"disabled",n&&"focusVisible"]},yC,s);return n&&r&&(o.root+=` ${r}`),o},xC=ve("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${bC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Wu=N.forwardRef(function(t,n){const r=it({props:t,name:"MuiButtonBase"}),{action:s,centerRipple:i=!1,children:o,className:a,component:l="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:h=!1,focusVisibleClassName:p,LinkComponent:m="a",onBlur:y,onClick:g,onContextMenu:x,onDragLeave:w,onFocus:S,onFocusVisible:T,onKeyDown:_,onKeyUp:C,onMouseDown:M,onMouseLeave:k,onMouseUp:R,onTouchEnd:b,onTouchMove:E,onTouchStart:I,tabIndex:W=0,TouchRippleProps:j,touchRippleRef:O,type:D,...L}=r,F=N.useRef(null),z=cC(),$=Ht(z.ref,O),[H,U]=N.useState(!1);u&&H&&U(!1),N.useImperativeHandle(s,()=>({focusVisible:()=>{U(!0),F.current.focus()}}),[]);const K=z.shouldMount&&!d&&!u;N.useEffect(()=>{H&&h&&!d&&z.pulsate()},[d,h,H,z]);const J=Cr(z,"start",M,f),ie=Cr(z,"stop",x,f),ae=Cr(z,"stop",w,f),ce=Cr(z,"stop",R,f),ge=Cr(z,"stop",X=>{H&&X.preventDefault(),k&&k(X)},f),de=Cr(z,"start",I,f),re=Cr(z,"stop",b,f),fe=Cr(z,"stop",E,f),Q=Cr(z,"stop",X=>{fh(X.target)||U(!1),y&&y(X)},!1),xe=Ns(X=>{F.current||(F.current=X.currentTarget),fh(X.target)&&(U(!0),T&&T(X)),S&&S(X)}),V=()=>{const X=F.current;return l&&l!=="button"&&!(X.tagName==="A"&&X.href)},Te=Ns(X=>{h&&!X.repeat&&H&&X.key===" "&&z.stop(X,()=>{z.start(X)}),X.target===X.currentTarget&&V()&&X.key===" "&&X.preventDefault(),_&&_(X),X.target===X.currentTarget&&V()&&X.key==="Enter"&&!u&&(X.preventDefault(),g&&g(X))}),et=Ns(X=>{h&&X.key===" "&&H&&!X.defaultPrevented&&z.stop(X,()=>{z.pulsate(X)}),C&&C(X),g&&X.target===X.currentTarget&&V()&&X.key===" "&&!X.defaultPrevented&&g(X)});let gt=l;gt==="button"&&(L.href||L.to)&&(gt=m);const P={};gt==="button"?(P.type=D===void 0?"button":D,P.disabled=u):(!L.href&&!L.to&&(P.role="button"),u&&(P["aria-disabled"]=u));const B=Ht(n,F),q={...r,centerRipple:i,component:l,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:h,tabIndex:W,focusVisible:H},ee=vC(q);return v.jsxs(xC,{as:gt,className:ke(ee.root,a),ownerState:q,onBlur:Q,onClick:g,onContextMenu:ie,onFocus:xe,onKeyDown:Te,onKeyUp:et,onMouseDown:J,onMouseLeave:ge,onMouseUp:ce,onDragLeave:ae,onTouchEnd:re,onTouchMove:fe,onTouchStart:de,ref:B,tabIndex:u?-1:W,type:D,...P,...L,children:[o,K?v.jsx(wm,{ref:$,center:i,...j}):null]})});function Cr(e,t,n,r=!1){return Ns(s=>(n&&n(s),r||e[t](s),!0))}process.env.NODE_ENV!=="production"&&(Wu.propTypes={action:gr,centerRipple:c.bool,children:c.node,classes:c.object,className:c.string,component:Sc,disabled:c.bool,disableRipple:c.bool,disableTouchRipple:c.bool,focusRipple:c.bool,focusVisibleClassName:c.string,href:c.any,LinkComponent:c.elementType,onBlur:c.func,onClick:c.func,onContextMenu:c.func,onDragLeave:c.func,onFocus:c.func,onFocusVisible:c.func,onKeyDown:c.func,onKeyUp:c.func,onMouseDown:c.func,onMouseLeave:c.func,onMouseUp:c.func,onTouchEnd:c.func,onTouchMove:c.func,onTouchStart:c.func,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),tabIndex:c.number,TouchRippleProps:c.object,touchRippleRef:c.oneOfType([c.func,c.shape({current:c.shape({pulsate:c.func.isRequired,start:c.func.isRequired,stop:c.func.isRequired})})]),type:c.oneOfType([c.oneOf(["button","reset","submit"]),c.string])});function _C(e){return typeof e.main=="string"}function wC(e,t=[]){if(!_C(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function ti(e=[]){return([,t])=>t&&wC(t,e)}function SC(e){return Ze("MuiTypography",e)}const Sm=je("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),TC={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},kC=UO(),OC=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:s,variant:i,classes:o}=e,a={root:["root",i,e.align!=="inherit"&&`align${De(t)}`,n&&"gutterBottom",r&&"noWrap",s&&"paragraph"]};return nt(a,SC,o)},CC=ve("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${De(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ft(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(ti()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${De(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),Tm={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ge=N.forwardRef(function(t,n){const{color:r,...s}=it({props:t,name:"MuiTypography"}),i=!TC[r],o=kC({...s,...i&&{color:r}}),{align:a="inherit",className:l,component:u,gutterBottom:d=!1,noWrap:f=!1,paragraph:h=!1,variant:p="body1",variantMapping:m=Tm,...y}=o,g={...o,align:a,color:r,className:l,component:u,gutterBottom:d,noWrap:f,paragraph:h,variant:p,variantMapping:m},x=u||(h?"p":m[p]||Tm[p])||"span",w=OC(g);return v.jsx(CC,{as:x,ref:n,className:ke(w.root,l),...y,ownerState:g,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...y.style}})});process.env.NODE_ENV!=="production"&&(Ge.propTypes={align:c.oneOf(["center","inherit","justify","left","right"]),children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),c.string]),component:c.elementType,gutterBottom:c.bool,noWrap:c.bool,paragraph:c.bool,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),c.string]),variantMapping:c.object});function MC(e){return typeof e=="function"?e():e}const rl=N.forwardRef(function(t,n){const{children:r,container:s,disablePortal:i=!1}=t,[o,a]=N.useState(null),l=Ht(N.isValidElement(r)?Fi(r):null,n);if(Wr(()=>{i||a(MC(s)||document.body)},[s,i]),Wr(()=>{if(o&&!i)return kc(n,o),()=>{kc(n,null)}},[n,o,i]),i){if(N.isValidElement(r)){const u={ref:l};return N.cloneElement(r,u)}return r}return o&&Wb.createPortal(r,o)});process.env.NODE_ENV!=="production"&&(rl.propTypes={children:c.node,container:c.oneOfType([ji,c.func]),disablePortal:c.bool}),process.env.NODE_ENV!=="production"&&(rl.propTypes=rh(rl.propTypes));function sl(e){return parseInt(e,10)||0}const EC={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function DC(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const km=N.forwardRef(function(t,n){const{onChange:r,maxRows:s,minRows:i=1,style:o,value:a,...l}=t,{current:u}=N.useRef(a!=null),d=N.useRef(null),f=Ht(n,d),h=N.useRef(null),p=N.useRef(null),m=N.useCallback(()=>{const x=d.current,S=mr(x).getComputedStyle(x);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};const T=p.current;T.style.width=S.width,T.value=x.value||t.placeholder||"x",T.value.slice(-1)===`
219
+ `&&(T.value+=" ");const _=S.boxSizing,C=sl(S.paddingBottom)+sl(S.paddingTop),M=sl(S.borderBottomWidth)+sl(S.borderTopWidth),k=T.scrollHeight;T.value="x";const R=T.scrollHeight;let b=k;i&&(b=Math.max(Number(i)*R,b)),s&&(b=Math.min(Number(s)*R,b)),b=Math.max(b,R);const E=b+(_==="border-box"?C+M:0),I=Math.abs(b-k)<=1;return{outerHeightStyle:E,overflowing:I}},[s,i,t.placeholder]),y=N.useCallback(()=>{const x=m();if(DC(x))return;const w=x.outerHeightStyle,S=d.current;h.current!==w&&(h.current=w,S.style.height=`${w}px`),S.style.overflow=x.overflowing?"hidden":""},[m]);Wr(()=>{const x=()=>{y()};let w;const S=()=>{cancelAnimationFrame(w),w=requestAnimationFrame(()=>{x()})},T=Tc(x),_=d.current,C=mr(_);C.addEventListener("resize",T);let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(process.env.NODE_ENV==="test"?S:x),M.observe(_)),()=>{T.clear(),cancelAnimationFrame(w),C.removeEventListener("resize",T),M&&M.disconnect()}},[m,y]),Wr(()=>{y()});const g=x=>{u||y(),r&&r(x)};return v.jsxs(N.Fragment,{children:[v.jsx("textarea",{value:a,onChange:g,ref:f,rows:i,style:o,...l}),v.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:{...EC.shadow,...o,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(km.propTypes={className:c.string,maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),onChange:c.func,placeholder:c.string,style:c.object,value:c.oneOfType([c.arrayOf(c.string),c.number,c.string])});function Bu(e){return typeof e=="string"}function ni({props:e,states:t,muiFormControl:n}){return t.reduce((r,s)=>(r[s]=e[s],n&&typeof e[s]>"u"&&(r[s]=n[s]),r),{})}const il=N.createContext(void 0);process.env.NODE_ENV!=="production"&&(il.displayName="FormControlContext");function ri(){return N.useContext(il)}function Om(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ol(e,t=!1){return e&&(Om(e.value)&&e.value!==""||t&&Om(e.defaultValue)&&e.defaultValue!=="")}function PC(e){return e.startAdornment}function RC(e){return Ze("MuiInputBase",e)}const si=je("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Cm;const al=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${De(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},ll=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},AC=e=>{const{classes:t,color:n,disabled:r,error:s,endAdornment:i,focused:o,formControl:a,fullWidth:l,hiddenLabel:u,multiline:d,readOnly:f,size:h,startAdornment:p,type:m}=e,y={root:["root",`color${De(n)}`,r&&"disabled",s&&"error",l&&"fullWidth",o&&"focused",a&&"formControl",h&&h!=="medium"&&`size${De(h)}`,d&&"multiline",p&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",d&&"inputMultiline",h==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return nt(y,RC,t)},cl=ve("div",{name:"MuiInputBase",slot:"Root",overridesResolver:al})(Ft(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${si.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),ul=ve("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ll})(Ft(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},s=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${si.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${si.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Mm=HO({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),dl=N.forwardRef(function(t,n){const r=it({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:i,autoFocus:o,className:a,color:l,components:u={},componentsProps:d={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:p,endAdornment:m,error:y,fullWidth:g=!1,id:x,inputComponent:w="input",inputProps:S={},inputRef:T,margin:_,maxRows:C,minRows:M,multiline:k=!1,name:R,onBlur:b,onChange:E,onClick:I,onFocus:W,onKeyDown:j,onKeyUp:O,placeholder:D,readOnly:L,renderSuffix:F,rows:z,size:$,slotProps:H={},slots:U={},startAdornment:K,type:J="text",value:ie,...ae}=r,ce=S.value!=null?S.value:ie,{current:ge}=N.useRef(ce!=null),de=N.useRef(),re=N.useCallback(Pe=>{process.env.NODE_ENV!=="production"&&Pe&&Pe.nodeName!=="INPUT"&&!Pe.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
220
+ `))},[]),fe=Ht(de,T,S.ref,re),[Q,xe]=N.useState(!1),V=ri();process.env.NODE_ENV!=="production"&&N.useEffect(()=>{if(V)return V.registerEffect()},[V]);const Te=ni({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Te.focused=V?V.focused:Q,N.useEffect(()=>{!V&&h&&Q&&(xe(!1),b&&b())},[V,h,Q,b]);const et=V&&V.onFilled,gt=V&&V.onEmpty,P=N.useCallback(Pe=>{ol(Pe)?et&&et():gt&&gt()},[et,gt]);Wr(()=>{ge&&P({value:ce})},[ce,P,ge]);const B=Pe=>{W&&W(Pe),S.onFocus&&S.onFocus(Pe),V&&V.onFocus?V.onFocus(Pe):xe(!0)},q=Pe=>{b&&b(Pe),S.onBlur&&S.onBlur(Pe),V&&V.onBlur?V.onBlur(Pe):xe(!1)},ee=(Pe,...fr)=>{if(!ge){const hr=Pe.target||de.current;if(hr==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":Hn(1));P({value:hr.value})}S.onChange&&S.onChange(Pe,...fr),E&&E(Pe,...fr)};N.useEffect(()=>{P(de.current)},[]);const X=Pe=>{de.current&&Pe.currentTarget===Pe.target&&de.current.focus(),I&&I(Pe)};let te=w,he=S;k&&te==="input"&&(z?(process.env.NODE_ENV!=="production"&&(M||C)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),he={type:void 0,minRows:z,maxRows:z,...he}):he={type:void 0,maxRows:C,minRows:M,...he},te=km);const _e=Pe=>{P(Pe.animationName==="mui-auto-fill-cancel"?de.current:{value:"x"})};N.useEffect(()=>{V&&V.setAdornedStart(!!K)},[V,K]);const ot={...r,color:Te.color||"primary",disabled:Te.disabled,endAdornment:m,error:Te.error,focused:Te.focused,formControl:V,fullWidth:g,hiddenLabel:Te.hiddenLabel,multiline:k,size:Te.size,startAdornment:K,type:J},Xe=AC(ot),Jt=U.root||u.Root||cl,Wn=H.root||d.root||{},ln=U.input||u.Input||ul;return he={...he,...H.input??d.input},v.jsxs(N.Fragment,{children:[!p&&typeof Mm=="function"&&(Cm||(Cm=v.jsx(Mm,{}))),v.jsxs(Jt,{...Wn,ref:n,onClick:X,...ae,...!Bu(Jt)&&{ownerState:{...ot,...Wn.ownerState}},className:ke(Xe.root,Wn.className,a,L&&"MuiInputBase-readOnly"),children:[K,v.jsx(il.Provider,{value:null,children:v.jsx(ln,{"aria-invalid":Te.error,"aria-describedby":s,autoComplete:i,autoFocus:o,defaultValue:f,disabled:Te.disabled,id:x,onAnimationStart:_e,name:R,placeholder:D,readOnly:L,required:Te.required,rows:z,value:ce,onKeyDown:j,onKeyUp:O,type:J,...he,...!Bu(ln)&&{as:te,ownerState:{...ot,...he.ownerState}},ref:fe,className:ke(Xe.input,he.className,L&&"MuiInputBase-readOnly"),onBlur:q,onChange:ee,onFocus:B})}),m,F?F({...Te,startAdornment:K}):null]})]})});process.env.NODE_ENV!=="production"&&(dl.propTypes={"aria-describedby":c.string,autoComplete:c.string,autoFocus:c.bool,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["primary","secondary","error","info","success","warning"]),c.string]),components:c.shape({Input:c.elementType,Root:c.elementType}),componentsProps:c.shape({input:c.object,root:c.object}),defaultValue:c.any,disabled:c.bool,disableInjectingGlobalStyles:c.bool,endAdornment:c.node,error:c.bool,fullWidth:c.bool,id:c.string,inputComponent:Sc,inputProps:c.object,inputRef:gr,margin:c.oneOf(["dense","none"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,onBlur:c.func,onChange:c.func,onClick:c.func,onFocus:c.func,onInvalid:c.func,onKeyDown:c.func,onKeyUp:c.func,placeholder:c.string,readOnly:c.bool,renderSuffix:c.func,required:c.bool,rows:c.oneOfType([c.number,c.string]),size:c.oneOfType([c.oneOf(["medium","small"]),c.string]),slotProps:c.shape({input:c.object,root:c.object}),slots:c.shape({input:c.elementType,root:c.elementType}),startAdornment:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any});function IC(e){return Ze("MuiInput",e)}const _o={...si,...je("MuiInput",["root","underline","input"])};function NC(e){return Ze("MuiOutlinedInput",e)}const sr={...si,...je("MuiOutlinedInput",["root","notchedOutline","input"])};function jC(e){return Ze("MuiFilledInput",e)}const _s={...si,...je("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},FC=Ru(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),$C={entering:{opacity:1},entered:{opacity:1}},Em=N.forwardRef(function(t,n){const r=wa(),s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:a,easing:l,in:u,onEnter:d,onEntered:f,onEntering:h,onExit:p,onExited:m,onExiting:y,style:g,timeout:x=s,TransitionComponent:w=rr,...S}=t,T=N.useRef(null),_=Ht(T,Fi(a),n),C=j=>O=>{if(j){const D=T.current;O===void 0?j(D):j(D,O)}},M=C(h),k=C((j,O)=>{xm(j);const D=tl({style:g,timeout:x,easing:l},{mode:"enter"});j.style.webkitTransition=r.transitions.create("opacity",D),j.style.transition=r.transitions.create("opacity",D),d&&d(j,O)}),R=C(f),b=C(y),E=C(j=>{const O=tl({style:g,timeout:x,easing:l},{mode:"exit"});j.style.webkitTransition=r.transitions.create("opacity",O),j.style.transition=r.transitions.create("opacity",O),p&&p(j)}),I=C(m),W=j=>{i&&i(T.current,j)};return v.jsx(w,{appear:o,in:u,nodeRef:T,onEnter:k,onEntered:R,onEntering:M,onExit:E,onExited:I,onExiting:b,addEndListener:W,timeout:x,...S,children:(j,O)=>N.cloneElement(a,{style:{opacity:0,visibility:j==="exited"&&!u?"hidden":void 0,...$C[j],...g,...a.props.style},ref:_,...O})})});process.env.NODE_ENV!=="production"&&(Em.propTypes={addEndListener:c.func,appear:c.bool,children:Ni.isRequired,easing:c.oneOfType([c.shape({enter:c.string,exit:c.string}),c.string]),in:c.bool,onEnter:c.func,onEntered:c.func,onEntering:c.func,onExit:c.func,onExited:c.func,onExiting:c.func,style:c.object,timeout:c.oneOfType([c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})])});function LC(e){return Ze("MuiBackdrop",e)}je("MuiBackdrop",["root","invisible"]);const WC=e=>{const{ownerState:t,...n}=e;return n},BC=e=>{const{classes:t,invisible:n}=e;return nt({root:["root",n&&"invisible"]},LC,t)},zC=ve("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Dm=N.forwardRef(function(t,n){const r=it({props:t,name:"MuiBackdrop"}),{children:s,className:i,component:o="div",invisible:a=!1,open:l,components:u={},componentsProps:d={},slotProps:f={},slots:h={},TransitionComponent:p,transitionDuration:m,...y}=r,g={...r,component:o,invisible:a},x=BC(g),w={transition:p,root:u.Root,...h},S={...d,...f},T={slots:w,slotProps:S},[_,C]=An("root",{elementType:zC,externalForwardedProps:T,className:ke(x.root,i),ownerState:g}),[M,k]=An("transition",{elementType:Em,externalForwardedProps:T,ownerState:g}),R=WC(k);return v.jsx(M,{in:l,timeout:m,...y,...R,children:v.jsx(_,{"aria-hidden":!0,...C,classes:x,ref:n,children:s})})});process.env.NODE_ENV!=="production"&&(Dm.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,components:c.shape({Root:c.elementType}),componentsProps:c.shape({root:c.object}),invisible:c.bool,open:c.bool.isRequired,slotProps:c.shape({root:c.oneOfType([c.func,c.object]),transition:c.oneOfType([c.func,c.object])}),slots:c.shape({root:c.elementType,transition:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),TransitionComponent:c.elementType,transitionDuration:c.oneOfType([c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})])});const YC=je("MuiBox",["root"]),VC=jh(),fn=Jf({themeId:ba,defaultTheme:VC,defaultClassName:YC.root,generateClassName:sc.generate});process.env.NODE_ENV!=="production"&&(fn.propTypes={children:c.node,component:c.elementType,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function HC(e){return Ze("MuiButton",e)}const ii=je("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Pm=N.createContext({});process.env.NODE_ENV!=="production"&&(Pm.displayName="ButtonGroupContext");const Rm=N.createContext(void 0);process.env.NODE_ENV!=="production"&&(Rm.displayName="ButtonGroupButtonContext");const UC=e=>{const{color:t,disableElevation:n,fullWidth:r,size:s,variant:i,classes:o}=e,a={root:["root",i,`${i}${De(t)}`,`size${De(s)}`,`${i}Size${De(s)}`,`color${De(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${De(s)}`],endIcon:["icon","endIcon",`iconSize${De(s)}`]},l=nt(a,HC,o);return{...o,...l}},Am=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],qC=ve(Wu,{shouldForwardProp:e=>bn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${De(n.color)}`],t[`size${De(n.size)}`],t[`${n.variant}Size${De(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(Ft(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ii.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ii.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ii.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ii.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(ti()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:yn(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yn(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yn(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:yn(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:yn(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ii.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ii.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),GC=ve("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${De(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...Am]}),XC=ve("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${De(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...Am]}),zu=N.forwardRef(function(t,n){const r=N.useContext(Pm),s=N.useContext(Rm),i=Ri(r,t),o=it({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:u="button",className:d,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:p=!1,endIcon:m,focusVisibleClassName:y,fullWidth:g=!1,size:x="medium",startIcon:w,type:S,variant:T="text",..._}=o,C={...o,color:l,component:u,disabled:f,disableElevation:h,disableFocusRipple:p,fullWidth:g,size:x,type:S,variant:T},M=UC(C),k=w&&v.jsx(GC,{className:M.startIcon,ownerState:C,children:w}),R=m&&v.jsx(XC,{className:M.endIcon,ownerState:C,children:m}),b=s||"";return v.jsxs(qC,{ownerState:C,className:ke(r.className,M.root,d,b),component:u,disabled:f,focusRipple:!p,focusVisibleClassName:ke(M.focusVisible,y),ref:n,type:S,..._,classes:M,children:[k,a,R]})});process.env.NODE_ENV!=="production"&&(zu.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","primary","secondary","success","error","info","warning"]),c.string]),component:c.elementType,disabled:c.bool,disableElevation:c.bool,disableFocusRipple:c.bool,disableRipple:c.bool,endIcon:c.node,focusVisibleClassName:c.string,fullWidth:c.bool,href:c.string,size:c.oneOfType([c.oneOf(["small","medium","large"]),c.string]),startIcon:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.oneOfType([c.oneOf(["button","reset","submit"]),c.string]),variant:c.oneOfType([c.oneOf(["contained","outlined","text"]),c.string])});function KC(e){return Ze("MuiCard",e)}je("MuiCard",["root"]);const ZC=e=>{const{classes:t}=e;return nt({root:["root"]},KC,t)},QC=ve(ei,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),ut=N.forwardRef(function(t,n){const r=it({props:t,name:"MuiCard"}),{className:s,raised:i=!1,...o}=r,a={...r,raised:i},l=ZC(a);return v.jsx(QC,{className:ke(l.root,s),elevation:i?8:void 0,ref:n,ownerState:a,...o})});process.env.NODE_ENV!=="production"&&(ut.propTypes={children:c.node,classes:c.object,className:c.string,raised:Is(c.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function JC(e){return Ze("MuiCardActions",e)}je("MuiCardActions",["root","spacing"]);const eM=e=>{const{classes:t,disableSpacing:n}=e;return nt({root:["root",!n&&"spacing"]},JC,t)},tM=ve("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),oi=N.forwardRef(function(t,n){const r=it({props:t,name:"MuiCardActions"}),{disableSpacing:s=!1,className:i,...o}=r,a={...r,disableSpacing:s},l=eM(a);return v.jsx(tM,{className:ke(l.root,i),ownerState:a,ref:n,...o})});process.env.NODE_ENV!=="production"&&(oi.propTypes={children:c.node,classes:c.object,className:c.string,disableSpacing:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function nM(e){return Ze("MuiCardContent",e)}je("MuiCardContent",["root"]);const rM=e=>{const{classes:t}=e;return nt({root:["root"]},nM,t)},sM=ve("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),dt=N.forwardRef(function(t,n){const r=it({props:t,name:"MuiCardContent"}),{className:s,component:i="div",...o}=r,a={...r,component:i},l=rM(a);return v.jsx(sM,{as:i,className:ke(l.root,s),ownerState:a,ref:n,...o})});process.env.NODE_ENV!=="production"&&(dt.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function iM(e){return Ze("MuiCardHeader",e)}const fl=je("MuiCardHeader",["root","avatar","action","content","title","subheader"]),oM=e=>{const{classes:t}=e;return nt({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},iM,t)},aM=ve("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>({[`& .${fl.title}`]:t.title,[`& .${fl.subheader}`]:t.subheader,...t.root})})({display:"flex",alignItems:"center",padding:16}),lM=ve("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),cM=ve("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),uM=ve("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto",[`.${Sm.root}:where(& .${fl.title})`]:{display:"block"},[`.${Sm.root}:where(& .${fl.subheader})`]:{display:"block"}}),Zt=N.forwardRef(function(t,n){const r=it({props:t,name:"MuiCardHeader"}),{action:s,avatar:i,className:o,component:a="div",disableTypography:l=!1,subheader:u,subheaderTypographyProps:d,title:f,titleTypographyProps:h,...p}=r,m={...r,component:a,disableTypography:l},y=oM(m);let g=f;g!=null&&g.type!==Ge&&!l&&(g=v.jsx(Ge,{variant:i?"body2":"h5",className:y.title,component:"span",...h,children:g}));let x=u;return x!=null&&x.type!==Ge&&!l&&(x=v.jsx(Ge,{variant:i?"body2":"body1",className:y.subheader,color:"textSecondary",component:"span",...d,children:x})),v.jsxs(aM,{className:ke(y.root,o),as:a,ref:n,ownerState:m,...p,children:[i&&v.jsx(lM,{className:y.avatar,ownerState:m,children:i}),v.jsxs(uM,{className:y.content,ownerState:m,children:[g,x]}),s&&v.jsx(cM,{className:y.action,ownerState:m,children:s})]})});process.env.NODE_ENV!=="production"&&(Zt.propTypes={action:c.node,avatar:c.node,children:c.node,classes:c.object,className:c.string,component:c.elementType,disableTypography:c.bool,subheader:c.node,subheaderTypographyProps:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),title:c.node,titleTypographyProps:c.object});function dM(e){const t=Dn(e);return t.body===e?mr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function wo(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Im(e){return parseInt(mr(e).getComputedStyle(e).paddingRight,10)||0}function fM(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Nm(e,t,n,r,s){const i=[t,n,...r];[].forEach.call(e.children,o=>{const a=!i.includes(o),l=!fM(o);a&&l&&wo(o,s)})}function Yu(e,t){let n=-1;return e.some((r,s)=>t(r)?(n=s,!0):!1),n}function hM(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(dM(r)){const o=hh(mr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Im(r)+o}px`;const a=Dn(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Im(l)+o}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Dn(r).body;else{const o=r.parentElement,a=mr(r);i=(o==null?void 0:o.nodeName)==="HTML"&&a.getComputedStyle(o).overflowY==="scroll"?o:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:o,property:a})=>{i?o.style.setProperty(a,i):o.style.removeProperty(a)})}}function pM(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class gM{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&wo(t.modalRef,!1);const s=pM(n);Nm(n,t.mount,t.modalRef,s,!0);const i=Yu(this.containers,o=>o.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:s}),r)}mount(t,n){const r=Yu(this.containers,i=>i.modals.includes(t)),s=this.containers[r];s.restore||(s.restore=hM(s,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const s=Yu(this.containers,o=>o.modals.includes(t)),i=this.containers[s];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&wo(t.modalRef,n),Nm(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(s,1);else{const o=i.modals[i.modals.length-1];o.modalRef&&wo(o.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const mM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function yM(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function bM(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function vM(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||bM(e))}function xM(e){const t=[],n=[];return Array.from(e.querySelectorAll(mM)).forEach((r,s)=>{const i=yM(r);i===-1||!vM(r)||(i===0?t.push(r):n.push({documentOrder:s,tabIndex:i,node:r}))}),n.sort((r,s)=>r.tabIndex===s.tabIndex?r.documentOrder-s.documentOrder:r.tabIndex-s.tabIndex).map(r=>r.node).concat(t)}function _M(){return!0}function hl(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:s=!1,getTabbable:i=xM,isEnabled:o=_M,open:a}=e,l=N.useRef(!1),u=N.useRef(null),d=N.useRef(null),f=N.useRef(null),h=N.useRef(null),p=N.useRef(!1),m=N.useRef(null),y=Ht(Fi(t),m),g=N.useRef(null);N.useEffect(()=>{!a||!m.current||(p.current=!n)},[n,a]),N.useEffect(()=>{if(!a||!m.current)return;const S=Dn(m.current);return m.current.contains(S.activeElement)||(m.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
221
+ `)),m.current.setAttribute("tabIndex","-1")),p.current&&m.current.focus()),()=>{s||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[a]),N.useEffect(()=>{if(!a||!m.current)return;const S=Dn(m.current),T=M=>{g.current=M,!(r||!o()||M.key!=="Tab")&&S.activeElement===m.current&&M.shiftKey&&(l.current=!0,d.current&&d.current.focus())},_=()=>{var R,b;const M=m.current;if(M===null)return;if(!S.hasFocus()||!o()||l.current){l.current=!1;return}if(M.contains(S.activeElement)||r&&S.activeElement!==u.current&&S.activeElement!==d.current)return;if(S.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!p.current)return;let k=[];if((S.activeElement===u.current||S.activeElement===d.current)&&(k=i(m.current)),k.length>0){const E=!!((R=g.current)!=null&&R.shiftKey&&((b=g.current)==null?void 0:b.key)==="Tab"),I=k[0],W=k[k.length-1];typeof I!="string"&&typeof W!="string"&&(E?W.focus():I.focus())}else M.focus()};S.addEventListener("focusin",_),S.addEventListener("keydown",T,!0);const C=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(C),S.removeEventListener("focusin",_),S.removeEventListener("keydown",T,!0)}},[n,r,s,o,a,i]);const x=S=>{f.current===null&&(f.current=S.relatedTarget),p.current=!0,h.current=S.target;const T=t.props.onFocus;T&&T(S)},w=S=>{f.current===null&&(f.current=S.relatedTarget),p.current=!0};return v.jsxs(N.Fragment,{children:[v.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:u,"data-testid":"sentinelStart"}),N.cloneElement(t,{ref:y,onFocus:x}),v.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(hl.propTypes={children:Ni,disableAutoFocus:c.bool,disableEnforceFocus:c.bool,disableRestoreFocus:c.bool,getTabbable:c.func,isEnabled:c.func,open:c.bool.isRequired}),process.env.NODE_ENV!=="production"&&(hl.propTypes=rh(hl.propTypes));function wM(e){return typeof e=="function"?e():e}function SM(e){return e?e.props.hasOwnProperty("in"):!1}const jm=()=>{},pl=new gM;function TM(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:s=!1,onTransitionEnter:i,onTransitionExited:o,children:a,onClose:l,open:u,rootRef:d}=e,f=N.useRef({}),h=N.useRef(null),p=N.useRef(null),m=Ht(p,d),[y,g]=N.useState(!u),x=SM(a);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const S=()=>Dn(h.current),T=()=>(f.current.modalRef=p.current,f.current.mount=h.current,f.current),_=()=>{pl.mount(T(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},C=Ns(()=>{const O=wM(t)||S().body;pl.add(T(),O),p.current&&_()}),M=()=>pl.isTopModal(T()),k=Ns(O=>{h.current=O,O&&(u&&M()?_():p.current&&wo(p.current,w))}),R=N.useCallback(()=>{pl.remove(T(),w)},[w]);N.useEffect(()=>()=>{R()},[R]),N.useEffect(()=>{u?C():(!x||!s)&&R()},[u,R,x,s,C]);const b=O=>D=>{var L;(L=O.onKeyDown)==null||L.call(O,D),!(D.key!=="Escape"||D.which===229||!M())&&(n||(D.stopPropagation(),l&&l(D,"escapeKeyDown")))},E=O=>D=>{var L;(L=O.onClick)==null||L.call(O,D),D.target===D.currentTarget&&l&&l(D,"backdropClick")};return{getRootProps:(O={})=>{const D=bh(e);delete D.onTransitionEnter,delete D.onTransitionExited;const L={...D,...O};return{role:"presentation",...L,onKeyDown:b(L),ref:m}},getBackdropProps:(O={})=>{const D=O;return{"aria-hidden":!0,...D,onClick:E(D),open:u}},getTransitionProps:()=>{const O=()=>{g(!1),i&&i()},D=()=>{g(!0),o&&o(),s&&R()};return{onEnter:sh(O,(a==null?void 0:a.props.onEnter)??jm),onExited:sh(D,(a==null?void 0:a.props.onExited)??jm)}},rootRef:m,portalRef:k,isTopModal:M,exited:y,hasTransition:x}}function kM(e){return Ze("MuiModal",e)}je("MuiModal",["root","hidden","backdrop"]);const OM=e=>{const{open:t,exited:n,classes:r}=e;return nt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},kM,r)},CM=ve("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ft(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),MM=ve(Dm,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Fm=N.forwardRef(function(t,n){const r=it({name:"MuiModal",props:t}),{BackdropComponent:s=MM,BackdropProps:i,classes:o,className:a,closeAfterTransition:l=!1,children:u,container:d,component:f,components:h={},componentsProps:p={},disableAutoFocus:m=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:g=!1,disablePortal:x=!1,disableRestoreFocus:w=!1,disableScrollLock:S=!1,hideBackdrop:T=!1,keepMounted:_=!1,onBackdropClick:C,onClose:M,onTransitionEnter:k,onTransitionExited:R,open:b,slotProps:E={},slots:I={},theme:W,...j}=r,O={...r,closeAfterTransition:l,disableAutoFocus:m,disableEnforceFocus:y,disableEscapeKeyDown:g,disablePortal:x,disableRestoreFocus:w,disableScrollLock:S,hideBackdrop:T,keepMounted:_},{getRootProps:D,getBackdropProps:L,getTransitionProps:F,portalRef:z,isTopModal:$,exited:H,hasTransition:U}=TM({...O,rootRef:n}),K={...O,exited:H},J=OM(K),ie={};if(u.props.tabIndex===void 0&&(ie.tabIndex="-1"),U){const{onEnter:Q,onExited:xe}=F();ie.onEnter=Q,ie.onExited=xe}const ae={...j,slots:{root:h.Root,backdrop:h.Backdrop,...I},slotProps:{...p,...E}},[ce,ge]=An("root",{elementType:CM,externalForwardedProps:ae,getSlotProps:D,additionalProps:{ref:n,as:f},ownerState:K,className:ke(a,J==null?void 0:J.root,!K.open&&K.exited&&(J==null?void 0:J.hidden))}),[de,re]=An("backdrop",{elementType:s,externalForwardedProps:ae,additionalProps:i,getSlotProps:Q=>L({...Q,onClick:xe=>{C&&C(xe),Q!=null&&Q.onClick&&Q.onClick(xe)}}),className:ke(i==null?void 0:i.className,J==null?void 0:J.backdrop),ownerState:K}),fe=Ht(i==null?void 0:i.ref,re.ref);return!_&&!b&&(!U||H)?null:v.jsx(rl,{ref:z,container:d,disablePortal:x,children:v.jsxs(ce,{...ge,children:[!T&&s?v.jsx(de,{...re,ref:fe}):null,v.jsx(hl,{disableEnforceFocus:y,disableAutoFocus:m,disableRestoreFocus:w,isEnabled:$,open:b,children:N.cloneElement(u,ie)})]})})});process.env.NODE_ENV!=="production"&&(Fm.propTypes={BackdropComponent:c.elementType,BackdropProps:c.object,children:Ni.isRequired,classes:c.object,className:c.string,closeAfterTransition:c.bool,component:c.elementType,components:c.shape({Backdrop:c.elementType,Root:c.elementType}),componentsProps:c.shape({backdrop:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object])}),container:c.oneOfType([ji,c.func]),disableAutoFocus:c.bool,disableEnforceFocus:c.bool,disableEscapeKeyDown:c.bool,disablePortal:c.bool,disableRestoreFocus:c.bool,disableScrollLock:c.bool,hideBackdrop:c.bool,keepMounted:c.bool,onBackdropClick:c.func,onClose:c.func,onTransitionEnter:c.func,onTransitionExited:c.func,open:c.bool.isRequired,slotProps:c.shape({backdrop:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object])}),slots:c.shape({backdrop:c.elementType,root:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});const $m=je("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),EM=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:s,size:i,hiddenLabel:o,multiline:a}=e,l={root:["root",!n&&"underline",r&&"adornedStart",s&&"adornedEnd",i==="small"&&`size${De(i)}`,o&&"hiddenLabel",a&&"multiline"],input:["input"]},u=nt(l,jC,t);return{...t,...u}},DM=ve(cl,{shouldForwardProp:e=>bn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...al(e,t),!n.disableUnderline&&t.underline]}})(Ft(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${_s.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${_s.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${_s.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_s.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${_s.disabled}, .${_s.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${_s.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ti()).map(([o])=>{var a;return{props:{disableUnderline:!1,color:o},style:{"&::after":{borderBottom:`2px solid ${(a=(e.vars||e).palette[o])==null?void 0:a.main}`}}}}),{props:({ownerState:o})=>o.startAdornment,style:{paddingLeft:12}},{props:({ownerState:o})=>o.endAdornment,style:{paddingRight:12}},{props:({ownerState:o})=>o.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:o,size:a})=>o.multiline&&a==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:o})=>o.multiline&&o.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:o})=>o.multiline&&o.hiddenLabel&&o.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),PM=ve(ul,{name:"MuiFilledInput",slot:"Input",overridesResolver:ll})(Ft(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),So=N.forwardRef(function(t,n){const r=it({props:t,name:"MuiFilledInput"}),{disableUnderline:s=!1,components:i={},componentsProps:o,fullWidth:a=!1,hiddenLabel:l,inputComponent:u="input",multiline:d=!1,slotProps:f,slots:h={},type:p="text",...m}=r,y={...r,disableUnderline:s,fullWidth:a,inputComponent:u,multiline:d,type:p},g=EM(r),x={root:{ownerState:y},input:{ownerState:y}},w=f??o?qt(x,f??o):x,S=h.root??i.Root??DM,T=h.input??i.Input??PM;return v.jsx(dl,{slots:{root:S,input:T},slotProps:w,fullWidth:a,inputComponent:u,multiline:d,ref:n,type:p,...m,classes:g})});process.env.NODE_ENV!=="production"&&(So.propTypes={autoComplete:c.string,autoFocus:c.bool,classes:c.object,color:c.oneOfType([c.oneOf(["primary","secondary"]),c.string]),components:c.shape({Input:c.elementType,Root:c.elementType}),componentsProps:c.shape({input:c.object,root:c.object}),defaultValue:c.any,disabled:c.bool,disableUnderline:c.bool,endAdornment:c.node,error:c.bool,fullWidth:c.bool,hiddenLabel:c.bool,id:c.string,inputComponent:c.elementType,inputProps:c.object,inputRef:gr,margin:c.oneOf(["dense","none"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,onChange:c.func,placeholder:c.string,readOnly:c.bool,required:c.bool,rows:c.oneOfType([c.number,c.string]),slotProps:c.shape({input:c.object,root:c.object}),slots:c.shape({input:c.elementType,root:c.elementType}),startAdornment:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any}),So&&(So.muiName="Input");function RM(e){return Ze("MuiFormControl",e)}je("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const AM=e=>{const{classes:t,margin:n,fullWidth:r}=e,s={root:["root",n!=="none"&&`margin${De(n)}`,r&&"fullWidth"]};return nt(s,RM,t)},IM=ve("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${De(e.margin)}`],...e.fullWidth&&t.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),In=N.forwardRef(function(t,n){const r=it({props:t,name:"MuiFormControl"}),{children:s,className:i,color:o="primary",component:a="div",disabled:l=!1,error:u=!1,focused:d,fullWidth:f=!1,hiddenLabel:h=!1,margin:p="none",required:m=!1,size:y="medium",variant:g="outlined",...x}=r,w={...r,color:o,component:a,disabled:l,error:u,fullWidth:f,hiddenLabel:h,margin:p,required:m,size:y,variant:g},S=AM(w),[T,_]=N.useState(()=>{let j=!1;return s&&N.Children.forEach(s,O=>{if(!qo(O,["Input","Select"]))return;const D=qo(O,["Select"])?O.props.input:O;D&&PC(D.props)&&(j=!0)}),j}),[C,M]=N.useState(()=>{let j=!1;return s&&N.Children.forEach(s,O=>{qo(O,["Input","Select"])&&(ol(O.props,!0)||ol(O.props.inputProps,!0))&&(j=!0)}),j}),[k,R]=N.useState(!1);l&&k&&R(!1);const b=d!==void 0&&!l?d:k;let E;const I=N.useRef(!1);process.env.NODE_ENV!=="production"&&(E=()=>(I.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
222
+ `)),I.current=!0,()=>{I.current=!1}));const W=N.useMemo(()=>({adornedStart:T,setAdornedStart:_,color:o,disabled:l,error:u,filled:C,focused:b,fullWidth:f,hiddenLabel:h,size:y,onBlur:()=>{R(!1)},onEmpty:()=>{M(!1)},onFilled:()=>{M(!0)},onFocus:()=>{R(!0)},registerEffect:E,required:m,variant:g}),[T,o,l,u,C,b,f,h,E,m,y,g]);return v.jsx(il.Provider,{value:W,children:v.jsx(IM,{as:a,ownerState:w,className:ke(S.root,i),ref:n,...x,children:s})})});process.env.NODE_ENV!=="production"&&(In.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["primary","secondary","error","info","success","warning"]),c.string]),component:c.elementType,disabled:c.bool,error:c.bool,focused:c.bool,fullWidth:c.bool,hiddenLabel:c.bool,margin:c.oneOf(["dense","none","normal"]),required:c.bool,size:c.oneOfType([c.oneOf(["medium","small"]),c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOf(["filled","outlined","standard"])});function NM(e){return Ze("MuiFormHelperText",e)}const Lm=je("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Wm;const jM=e=>{const{classes:t,contained:n,size:r,disabled:s,error:i,filled:o,focused:a,required:l}=e,u={root:["root",s&&"disabled",i&&"error",r&&`size${De(r)}`,n&&"contained",a&&"focused",o&&"filled",l&&"required"]};return nt(u,NM,t)},FM=ve("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${De(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Ft(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Lm.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Lm.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Bm=N.forwardRef(function(t,n){const r=it({props:t,name:"MuiFormHelperText"}),{children:s,className:i,component:o="p",disabled:a,error:l,filled:u,focused:d,margin:f,required:h,variant:p,...m}=r,y=ri(),g=ni({props:r,muiFormControl:y,states:["variant","size","disabled","error","filled","focused","required"]}),x={...r,component:o,contained:g.variant==="filled"||g.variant==="outlined",variant:g.variant,size:g.size,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required};delete x.ownerState;const w=jM(x);return v.jsx(FM,{as:o,className:ke(w.root,i),ref:n,...m,ownerState:x,children:s===" "?Wm||(Wm=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});process.env.NODE_ENV!=="production"&&(Bm.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,disabled:c.bool,error:c.bool,filled:c.bool,focused:c.bool,margin:c.oneOf(["dense"]),required:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["filled","outlined","standard"]),c.string])});function $M(e){return Ze("MuiFormLabel",e)}const To=je("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),LM=e=>{const{classes:t,color:n,focused:r,disabled:s,error:i,filled:o,required:a}=e,l={root:["root",`color${De(n)}`,s&&"disabled",i&&"error",o&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return nt(l,$M,t)},WM=ve("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(Ft(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(ti()).map(([t])=>({props:{color:t},style:{[`&.${To.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${To.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${To.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),BM=ve("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Ft(({theme:e})=>({[`&.${To.error}`]:{color:(e.vars||e).palette.error.main}}))),zm=N.forwardRef(function(t,n){const r=it({props:t,name:"MuiFormLabel"}),{children:s,className:i,color:o,component:a="label",disabled:l,error:u,filled:d,focused:f,required:h,...p}=r,m=ri(),y=ni({props:r,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]}),g={...r,color:y.color||"primary",component:a,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required},x=LM(g);return v.jsxs(WM,{as:a,ownerState:g,className:ke(x.root,i),ref:n,...p,children:[s,y.required&&v.jsxs(BM,{ownerState:g,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(zm.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["error","info","primary","secondary","success","warning"]),c.string]),component:c.elementType,disabled:c.bool,error:c.bool,filled:c.bool,focused:c.bool,required:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function Vu(e){return`scale(${e}, ${e**2})`}const zM={entering:{opacity:1,transform:Vu(1)},entered:{opacity:1,transform:"none"}},Hu=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),gl=N.forwardRef(function(t,n){const{addEndListener:r,appear:s=!0,children:i,easing:o,in:a,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:h,onExiting:p,style:m,timeout:y="auto",TransitionComponent:g=rr,...x}=t,w=dh(),S=N.useRef(),T=wa(),_=N.useRef(null),C=Ht(_,Fi(i),n),M=O=>D=>{if(O){const L=_.current;D===void 0?O(L):O(L,D)}},k=M(d),R=M((O,D)=>{xm(O);const{duration:L,delay:F,easing:z}=tl({style:m,timeout:y,easing:o},{mode:"enter"});let $;y==="auto"?($=T.transitions.getAutoHeightDuration(O.clientHeight),S.current=$):$=L,O.style.transition=[T.transitions.create("opacity",{duration:$,delay:F}),T.transitions.create("transform",{duration:Hu?$:$*.666,delay:F,easing:z})].join(","),l&&l(O,D)}),b=M(u),E=M(p),I=M(O=>{const{duration:D,delay:L,easing:F}=tl({style:m,timeout:y,easing:o},{mode:"exit"});let z;y==="auto"?(z=T.transitions.getAutoHeightDuration(O.clientHeight),S.current=z):z=D,O.style.transition=[T.transitions.create("opacity",{duration:z,delay:L}),T.transitions.create("transform",{duration:Hu?z:z*.666,delay:Hu?L:L||z*.333,easing:F})].join(","),O.style.opacity=0,O.style.transform=Vu(.75),f&&f(O)}),W=M(h),j=O=>{y==="auto"&&w.start(S.current||0,O),r&&r(_.current,O)};return v.jsx(g,{appear:s,in:a,nodeRef:_,onEnter:R,onEntered:b,onEntering:k,onExit:I,onExited:W,onExiting:E,addEndListener:j,timeout:y==="auto"?null:y,...x,children:(O,D)=>N.cloneElement(i,{style:{opacity:0,transform:Vu(.75),visibility:O==="exited"&&!a?"hidden":void 0,...zM[O],...m,...i.props.style},ref:C,...D})})});process.env.NODE_ENV!=="production"&&(gl.propTypes={addEndListener:c.func,appear:c.bool,children:Ni.isRequired,easing:c.oneOfType([c.shape({enter:c.string,exit:c.string}),c.string]),in:c.bool,onEnter:c.func,onEntered:c.func,onEntering:c.func,onExit:c.func,onExited:c.func,onExiting:c.func,style:c.object,timeout:c.oneOfType([c.oneOf(["auto"]),c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})])}),gl&&(gl.muiSupportAuto=!0);const YM=e=>{const{classes:t,disableUnderline:n}=e,s=nt({root:["root",!n&&"underline"],input:["input"]},IC,t);return{...t,...s}},VM=ve(cl,{shouldForwardProp:e=>bn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...al(e,t),!n.disableUnderline&&t.underline]}})(Ft(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${_o.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_o.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${_o.disabled}, .${_o.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${_o.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ti()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),HM=ve(ul,{name:"MuiInput",slot:"Input",overridesResolver:ll})({}),ko=N.forwardRef(function(t,n){const r=it({props:t,name:"MuiInput"}),{disableUnderline:s=!1,components:i={},componentsProps:o,fullWidth:a=!1,inputComponent:l="input",multiline:u=!1,slotProps:d,slots:f={},type:h="text",...p}=r,m=YM(r),g={root:{ownerState:{disableUnderline:s}}},x=d??o?qt(d??o,g):g,w=f.root??i.Root??VM,S=f.input??i.Input??HM;return v.jsx(dl,{slots:{root:w,input:S},slotProps:x,fullWidth:a,inputComponent:l,multiline:u,ref:n,type:h,...p,classes:m})});process.env.NODE_ENV!=="production"&&(ko.propTypes={autoComplete:c.string,autoFocus:c.bool,classes:c.object,color:c.oneOfType([c.oneOf(["primary","secondary"]),c.string]),components:c.shape({Input:c.elementType,Root:c.elementType}),componentsProps:c.shape({input:c.object,root:c.object}),defaultValue:c.any,disabled:c.bool,disableUnderline:c.bool,endAdornment:c.node,error:c.bool,fullWidth:c.bool,id:c.string,inputComponent:c.elementType,inputProps:c.object,inputRef:gr,margin:c.oneOf(["dense","none"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,onChange:c.func,placeholder:c.string,readOnly:c.bool,required:c.bool,rows:c.oneOfType([c.number,c.string]),slotProps:c.shape({input:c.object,root:c.object}),slots:c.shape({input:c.elementType,root:c.elementType}),startAdornment:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any}),ko&&(ko.muiName="Input");function UM(e){return Ze("MuiInputLabel",e)}je("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const qM=e=>{const{classes:t,formControl:n,size:r,shrink:s,disableAnimation:i,variant:o,required:a}=e,l={root:["root",n&&"formControl",!i&&"animated",s&&"shrink",r&&r!=="normal"&&`size${De(r)}`,o],asterisk:[a&&"asterisk"]},u=nt(l,UM,t);return{...t,...u}},GM=ve(zm,{shouldForwardProp:e=>bn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${To.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Ft(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Ym=N.forwardRef(function(t,n){const r=it({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:i,shrink:o,variant:a,className:l,...u}=r,d=ri();let f=o;typeof f>"u"&&d&&(f=d.filled||d.focused||d.adornedStart);const h=ni({props:r,muiFormControl:d,states:["size","variant","required","focused"]}),p={...r,disableAnimation:s,formControl:d,shrink:f,size:h.size,variant:h.variant,required:h.required,focused:h.focused},m=qM(p);return v.jsx(GM,{"data-shrink":f,ref:n,className:ke(m.root,l),...u,ownerState:p,classes:m})});process.env.NODE_ENV!=="production"&&(Ym.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["error","info","primary","secondary","success","warning"]),c.string]),disableAnimation:c.bool,disabled:c.bool,error:c.bool,focused:c.bool,margin:c.oneOf(["dense"]),required:c.bool,shrink:c.bool,size:c.oneOfType([c.oneOf(["normal","small"]),c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOf(["filled","outlined","standard"])});const ml=N.createContext({});process.env.NODE_ENV!=="production"&&(ml.displayName="ListContext");function XM(e){return Ze("MuiList",e)}je("MuiList",["root","padding","dense","subheader"]);const KM=e=>{const{classes:t,disablePadding:n,dense:r,subheader:s}=e;return nt({root:["root",!n&&"padding",r&&"dense",s&&"subheader"]},XM,t)},ZM=ve("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Vm=N.forwardRef(function(t,n){const r=it({props:t,name:"MuiList"}),{children:s,className:i,component:o="ul",dense:a=!1,disablePadding:l=!1,subheader:u,...d}=r,f=N.useMemo(()=>({dense:a}),[a]),h={...r,component:o,dense:a,disablePadding:l},p=KM(h);return v.jsx(ml.Provider,{value:f,children:v.jsxs(ZM,{as:o,className:ke(p.root,i),ref:n,ownerState:h,...d,children:[u,s]})})});process.env.NODE_ENV!=="production"&&(Vm.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,dense:c.bool,disablePadding:c.bool,subheader:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});const Hm=je("MuiListItemIcon",["root","alignItemsFlexStart"]),Um=je("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Uu(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function qm(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Gm(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Oo(e,t,n,r,s,i){let o=!1,a=s(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(o)return!1;o=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!Gm(a,i)||l)a=s(e,a,n);else return a.focus(),!0}return!1}const Xm=N.forwardRef(function(t,n){const{actions:r,autoFocus:s=!1,autoFocusItem:i=!1,children:o,className:a,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:d,variant:f="selectedMenu",...h}=t,p=N.useRef(null),m=N.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Wr(()=>{s&&p.current.focus()},[s]),N.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,{direction:T})=>{const _=!p.current.style.width;if(S.clientHeight<p.current.clientHeight&&_){const C=`${hh(mr(S))}px`;p.current.style[T==="rtl"?"paddingLeft":"paddingRight"]=C,p.current.style.width=`calc(100% + ${C})`}return p.current}}),[]);const y=S=>{const T=p.current,_=S.key;if(S.ctrlKey||S.metaKey||S.altKey){d&&d(S);return}const M=Dn(T).activeElement;if(_==="ArrowDown")S.preventDefault(),Oo(T,M,u,l,Uu);else if(_==="ArrowUp")S.preventDefault(),Oo(T,M,u,l,qm);else if(_==="Home")S.preventDefault(),Oo(T,null,u,l,Uu);else if(_==="End")S.preventDefault(),Oo(T,null,u,l,qm);else if(_.length===1){const k=m.current,R=_.toLowerCase(),b=performance.now();k.keys.length>0&&(b-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&R!==k.keys[0]&&(k.repeating=!1)),k.lastTime=b,k.keys.push(R);const E=M&&!k.repeating&&Gm(M,k);k.previousKeyMatched&&(E||Oo(T,M,!1,l,Uu,k))?S.preventDefault():k.previousKeyMatched=!1}d&&d(S)},g=Ht(p,n);let x=-1;N.Children.forEach(o,(S,T)=>{if(!N.isValidElement(S)){x===T&&(x+=1,x>=o.length&&(x=-1));return}process.env.NODE_ENV!=="production"&&Iu.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
223
+ `)),S.props.disabled||(f==="selectedMenu"&&S.props.selected||x===-1)&&(x=T),x===T&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(x+=1,x>=o.length&&(x=-1))});const w=N.Children.map(o,(S,T)=>{if(T===x){const _={};return i&&(_.autoFocus=!0),S.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),N.cloneElement(S,_)}return S});return v.jsx(Vm,{role:"menu",ref:g,className:a,onKeyDown:y,tabIndex:s?0:-1,...h,children:w})});process.env.NODE_ENV!=="production"&&(Xm.propTypes={autoFocus:c.bool,autoFocusItem:c.bool,children:c.node,className:c.string,disabledItemsFocusable:c.bool,disableListWrap:c.bool,onKeyDown:c.func,variant:c.oneOf(["menu","selectedMenu"])});function QM(e){return Ze("MuiPopover",e)}je("MuiPopover",["root","paper"]);function Km(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Zm(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Qm(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function yl(e){return typeof e=="function"?e():e}const JM=e=>{const{classes:t}=e;return nt({root:["root"],paper:["paper"]},QM,t)},eE=ve(Fm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jm=ve(ei,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),ey=N.forwardRef(function(t,n){const r=it({props:t,name:"MuiPopover"}),{action:s,anchorEl:i,anchorOrigin:o={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:u,className:d,container:f,elevation:h=8,marginThreshold:p=16,open:m,PaperProps:y={},slots:g={},slotProps:x={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:S=gl,transitionDuration:T="auto",TransitionProps:{onEntering:_,...C}={},disableScrollLock:M=!1,...k}=r,R=(x==null?void 0:x.paper)??y,b=N.useRef(),E={...r,anchorOrigin:o,anchorReference:l,elevation:h,marginThreshold:p,externalPaperSlotProps:R,transformOrigin:w,TransitionComponent:S,transitionDuration:T,TransitionProps:C},I=JM(E),W=N.useCallback(()=>{if(l==="anchorPosition")return process.env.NODE_ENV!=="production"&&(a||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),a;const re=yl(i),fe=re&&re.nodeType===1?re:Dn(b.current).body,Q=fe.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const xe=fe.getBoundingClientRect();process.env.NODE_ENV!=="test"&&xe.top===0&&xe.left===0&&xe.right===0&&xe.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
224
+ `))}return{top:Q.top+Km(Q,o.vertical),left:Q.left+Zm(Q,o.horizontal)}},[i,o.horizontal,o.vertical,a,l]),j=N.useCallback(re=>({vertical:Km(re,w.vertical),horizontal:Zm(re,w.horizontal)}),[w.horizontal,w.vertical]),O=N.useCallback(re=>{const fe={width:re.offsetWidth,height:re.offsetHeight},Q=j(fe);if(l==="none")return{top:null,left:null,transformOrigin:Qm(Q)};const xe=W();let V=xe.top-Q.vertical,Te=xe.left-Q.horizontal;const et=V+fe.height,gt=Te+fe.width,P=mr(yl(i)),B=P.innerHeight-p,q=P.innerWidth-p;if(p!==null&&V<p){const ee=V-p;V-=ee,Q.vertical+=ee}else if(p!==null&&et>B){const ee=et-B;V-=ee,Q.vertical+=ee}if(process.env.NODE_ENV!=="production"&&fe.height>B&&fe.height&&B&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${fe.height-B}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
225
+ `)),p!==null&&Te<p){const ee=Te-p;Te-=ee,Q.horizontal+=ee}else if(gt>q){const ee=gt-q;Te-=ee,Q.horizontal+=ee}return{top:`${Math.round(V)}px`,left:`${Math.round(Te)}px`,transformOrigin:Qm(Q)}},[i,l,W,j,p]),[D,L]=N.useState(m),F=N.useCallback(()=>{const re=b.current;if(!re)return;const fe=O(re);fe.top!==null&&re.style.setProperty("top",fe.top),fe.left!==null&&(re.style.left=fe.left),re.style.transformOrigin=fe.transformOrigin,L(!0)},[O]);N.useEffect(()=>(M&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F)),[i,M,F]);const z=(re,fe)=>{_&&_(re,fe),F()},$=()=>{L(!1)};N.useEffect(()=>{m&&F()}),N.useImperativeHandle(s,()=>m?{updatePosition:()=>{F()}}:null,[m,F]),N.useEffect(()=>{if(!m)return;const re=Tc(()=>{F()}),fe=mr(i);return fe.addEventListener("resize",re),()=>{re.clear(),fe.removeEventListener("resize",re)}},[i,m,F]);let H=T;T==="auto"&&!S.muiSupportAuto&&(H=void 0);const U=f||(i?Dn(yl(i)).body:void 0),K={slots:g,slotProps:{...x,paper:R}},[J,ie]=An("paper",{elementType:Jm,externalForwardedProps:K,additionalProps:{elevation:h,className:ke(I.paper,R==null?void 0:R.className),style:D?R.style:{...R.style,opacity:0}},ownerState:E}),[ae,{slotProps:ce,...ge}]=An("root",{elementType:eE,externalForwardedProps:K,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:U,open:m},ownerState:E,className:ke(I.root,d)}),de=Ht(b,ie.ref);return v.jsx(ae,{...ge,...!Bu(ae)&&{slotProps:ce,disableScrollLock:M},...k,ref:n,children:v.jsx(S,{appear:!0,in:m,onEntering:z,onExited:$,timeout:H,...C,children:v.jsx(J,{...ie,ref:de,children:u})})})});process.env.NODE_ENV!=="production"&&(ey.propTypes={action:gr,anchorEl:Is(c.oneOfType([ji,c.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=yl(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
226
+ `))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
227
+ `))}return null}),anchorOrigin:c.shape({horizontal:c.oneOfType([c.oneOf(["center","left","right"]),c.number]).isRequired,vertical:c.oneOfType([c.oneOf(["bottom","center","top"]),c.number]).isRequired}),anchorPosition:c.shape({left:c.number.isRequired,top:c.number.isRequired}),anchorReference:c.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:c.elementType,BackdropProps:c.object,children:c.node,classes:c.object,className:c.string,container:c.oneOfType([ji,c.func]),disableScrollLock:c.bool,elevation:mh,marginThreshold:c.number,onClose:c.func,open:c.bool.isRequired,PaperProps:c.shape({component:Sc}),slotProps:c.shape({paper:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object])}),slots:c.shape({paper:c.elementType,root:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),transformOrigin:c.shape({horizontal:c.oneOfType([c.oneOf(["center","left","right"]),c.number]).isRequired,vertical:c.oneOfType([c.oneOf(["bottom","center","top"]),c.number]).isRequired}),TransitionComponent:c.elementType,transitionDuration:c.oneOfType([c.oneOf(["auto"]),c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})]),TransitionProps:c.object});function tE(e){return Ze("MuiMenu",e)}je("MuiMenu",["root","paper","list"]);const nE={vertical:"top",horizontal:"right"},rE={vertical:"top",horizontal:"left"},sE=e=>{const{classes:t}=e;return nt({root:["root"],paper:["paper"],list:["list"]},tE,t)},iE=ve(ey,{shouldForwardProp:e=>bn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oE=ve(Jm,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),aE=ve(Xm,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ty=N.forwardRef(function(t,n){const r=it({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:i,className:o,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:u,open:d,PaperProps:f={},PopoverClasses:h,transitionDuration:p="auto",TransitionProps:{onEntering:m,...y}={},variant:g="selectedMenu",slots:x={},slotProps:w={},...S}=r,T=l_(),_={...r,autoFocus:s,disableAutoFocusItem:a,MenuListProps:l,onEntering:m,PaperProps:f,transitionDuration:p,TransitionProps:y,variant:g},C=sE(_),M=s&&!a&&d,k=N.useRef(null),R=(D,L)=>{k.current&&k.current.adjustStyleForScrollbar(D,{direction:T?"rtl":"ltr"}),m&&m(D,L)},b=D=>{D.key==="Tab"&&(D.preventDefault(),u&&u(D,"tabKeyDown"))};let E=-1;N.Children.map(i,(D,L)=>{N.isValidElement(D)&&(process.env.NODE_ENV!=="production"&&Iu.isFragment(D)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
228
+ `)),D.props.disabled||(g==="selectedMenu"&&D.props.selected||E===-1)&&(E=L))});const I=x.paper??oE,W=w.paper??f,j=wh({elementType:x.root,externalSlotProps:w.root,ownerState:_,className:[C.root,o]}),O=wh({elementType:I,externalSlotProps:W,ownerState:_,className:C.paper});return v.jsx(iE,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?nE:rE,slots:{paper:I,root:x.root},slotProps:{root:j,paper:O},open:d,ref:n,transitionDuration:p,TransitionProps:{onEntering:R,...y},ownerState:_,...S,classes:h,children:v.jsx(aE,{onKeyDown:b,actions:k,autoFocus:s&&(E===-1||a),autoFocusItem:M,variant:g,...l,className:ke(C.list,l.className),children:i})})});process.env.NODE_ENV!=="production"&&(ty.propTypes={anchorEl:c.oneOfType([ji,c.func]),autoFocus:c.bool,children:c.node,classes:c.object,className:c.string,disableAutoFocusItem:c.bool,MenuListProps:c.object,onClose:c.func,open:c.bool.isRequired,PaperProps:c.object,PopoverClasses:c.object,slotProps:c.shape({paper:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object])}),slots:c.shape({paper:c.elementType,root:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),transitionDuration:c.oneOfType([c.oneOf(["auto"]),c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})]),TransitionProps:c.object,variant:c.oneOf(["menu","selectedMenu"])});function lE(e){return Ze("MuiMenuItem",e)}const Co=je("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),cE=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},uE=e=>{const{disabled:t,dense:n,divider:r,disableGutters:s,selected:i,classes:o}=e,l=nt({root:["root",n&&"dense",t&&"disabled",!s&&"gutters",r&&"divider",i&&"selected"]},lE,o);return{...o,...l}},dE=ve(Wu,{shouldForwardProp:e=>bn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:cE})(Ft(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Co.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Co.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Co.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Co.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Co.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${$m.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${$m.inset}`]:{marginLeft:52},[`& .${Um.root}`]:{marginTop:0,marginBottom:0},[`& .${Um.inset}`]:{paddingLeft:36},[`& .${Hm.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Hm.root} svg`]:{fontSize:"1.25rem"}}}]}))),zt=N.forwardRef(function(t,n){const r=it({props:t,name:"MuiMenuItem"}),{autoFocus:s=!1,component:i="li",dense:o=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:f,className:h,...p}=r,m=N.useContext(ml),y=N.useMemo(()=>({dense:o||m.dense||!1,disableGutters:l}),[m.dense,o,l]),g=N.useRef(null);Wr(()=>{s&&(g.current?g.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[s]);const x={...r,dense:y.dense,divider:a,disableGutters:l},w=uE(r),S=Ht(g,n);let T;return r.disabled||(T=f!==void 0?f:-1),v.jsx(ml.Provider,{value:y,children:v.jsx(dE,{ref:S,role:d,tabIndex:T,component:i,focusVisibleClassName:ke(w.focusVisible,u),className:ke(w.root,h),...p,ownerState:x,classes:w})})});process.env.NODE_ENV!=="production"&&(zt.propTypes={autoFocus:c.bool,children:c.node,classes:c.object,className:c.string,component:c.elementType,dense:c.bool,disabled:c.bool,disableGutters:c.bool,divider:c.bool,focusVisibleClassName:c.string,role:c.string,selected:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),tabIndex:c.number});function fE(e){return Ze("MuiNativeSelect",e)}const qu=je("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),hE=e=>{const{classes:t,variant:n,disabled:r,multiple:s,open:i,error:o}=e,a={select:["select",n,r&&"disabled",s&&"multiple",o&&"error"],icon:["icon",`icon${De(n)}`,i&&"iconOpen",r&&"disabled"]};return nt(a,fE,t)},ny=ve("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${qu.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),pE=ve(ny,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:bn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${qu.multiple}`]:t.multiple}]}})({}),ry=ve("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${qu.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),gE=ve(ry,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${De(n.variant)}`],n.open&&t.iconOpen]}})({}),sy=N.forwardRef(function(t,n){const{className:r,disabled:s,error:i,IconComponent:o,inputRef:a,variant:l="standard",...u}=t,d={...t,disabled:s,variant:l,error:i},f=hE(d);return v.jsxs(N.Fragment,{children:[v.jsx(pE,{ownerState:d,className:ke(f.select,r),disabled:s,ref:a||n,...u}),t.multiple?null:v.jsx(gE,{as:o,ownerState:d,className:f.icon})]})});process.env.NODE_ENV!=="production"&&(sy.propTypes={children:c.node,classes:c.object,className:c.string,disabled:c.bool,error:c.bool,IconComponent:c.elementType.isRequired,inputRef:gr,multiple:c.bool,name:c.string,onChange:c.func,value:c.any,variant:c.oneOf(["standard","outlined","filled"])});var iy;const mE=ve("fieldset",{shouldForwardProp:bn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),yE=ve("legend",{shouldForwardProp:bn})(Ft(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function oy(e){const{children:t,classes:n,className:r,label:s,notched:i,...o}=e,a=s!=null&&s!=="",l={...e,notched:i,withLabel:a};return v.jsx(mE,{"aria-hidden":!0,className:r,ownerState:l,...o,children:v.jsx(yE,{ownerState:l,children:a?v.jsx("span",{children:s}):iy||(iy=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(oy.propTypes={children:c.node,classes:c.object,className:c.string,label:c.node,notched:c.bool.isRequired,style:c.object});const bE=e=>{const{classes:t}=e,r=nt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},NC,t);return{...t,...r}},vE=ve(cl,{shouldForwardProp:e=>bn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:al})(Ft(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${sr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${sr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${sr.focused} .${sr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(ti()).map(([n])=>({props:{color:n},style:{[`&.${sr.focused} .${sr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${sr.error} .${sr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${sr.disabled} .${sr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),xE=ve(oy,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Ft(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),_E=ve(ul,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ll})(Ft(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Mo=N.forwardRef(function(t,n){var r;const s=it({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:o=!1,inputComponent:a="input",label:l,multiline:u=!1,notched:d,slots:f={},type:h="text",...p}=s,m=bE(s),y=ri(),g=ni({props:s,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x={...s,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:y,fullWidth:o,hiddenLabel:g.hiddenLabel,multiline:u,size:g.size,type:h},w=f.root??i.Root??vE,S=f.input??i.Input??_E;return v.jsx(dl,{slots:{root:w,input:S},renderSuffix:T=>v.jsx(xE,{ownerState:x,className:m.notchedOutline,label:l!=null&&l!==""&&g.required?r||(r=v.jsxs(N.Fragment,{children:[l," ","*"]})):l,notched:typeof d<"u"?d:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:o,inputComponent:a,multiline:u,ref:n,type:h,...p,classes:{...m,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Mo.propTypes={autoComplete:c.string,autoFocus:c.bool,classes:c.object,color:c.oneOfType([c.oneOf(["primary","secondary"]),c.string]),components:c.shape({Input:c.elementType,Root:c.elementType}),defaultValue:c.any,disabled:c.bool,endAdornment:c.node,error:c.bool,fullWidth:c.bool,id:c.string,inputComponent:c.elementType,inputProps:c.object,inputRef:gr,label:c.node,margin:c.oneOf(["dense","none"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,notched:c.bool,onChange:c.func,placeholder:c.string,readOnly:c.bool,required:c.bool,rows:c.oneOfType([c.number,c.string]),slots:c.shape({input:c.elementType,root:c.elementType}),startAdornment:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any}),Mo&&(Mo.muiName="Input");function wE(e){return Ze("MuiSelect",e)}const Eo=je("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var ay;const SE=ve(ny,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Eo.select}`]:t.select},{[`&.${Eo.select}`]:t[n.variant]},{[`&.${Eo.error}`]:t.error},{[`&.${Eo.multiple}`]:t.multiple}]}})({[`&.${Eo.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),TE=ve(ry,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${De(n.variant)}`],n.open&&t.iconOpen]}})({}),kE=ve("input",{shouldForwardProp:e=>Fh(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function ly(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function OE(e){return e==null||typeof e=="string"&&!e.trim()}const CE=e=>{const{classes:t,variant:n,disabled:r,multiple:s,open:i,error:o}=e,a={select:["select",n,r&&"disabled",s&&"multiple",o&&"error"],icon:["icon",`icon${De(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return nt(a,wE,t)},cy=N.forwardRef(function(t,n){var yi;const{"aria-describedby":r,"aria-label":s,autoFocus:i,autoWidth:o,children:a,className:l,defaultOpen:u,defaultValue:d,disabled:f,displayEmpty:h,error:p=!1,IconComponent:m,inputRef:y,labelId:g,MenuProps:x={},multiple:w,name:S,onBlur:T,onChange:_,onClose:C,onFocus:M,onOpen:k,open:R,readOnly:b,renderValue:E,SelectDisplayProps:I={},tabIndex:W,type:j,value:O,variant:D="standard",...L}=t,[F,z]=lh({controlled:O,default:d,name:"Select"}),[$,H]=lh({controlled:R,default:u,name:"Select"}),U=N.useRef(null),K=N.useRef(null),[J,ie]=N.useState(null),{current:ae}=N.useRef(R!=null),[ce,ge]=N.useState(),de=Ht(n,y),re=N.useCallback(ye=>{K.current=ye,ye&&ie(ye)},[]),fe=J==null?void 0:J.parentNode;N.useImperativeHandle(de,()=>({focus:()=>{K.current.focus()},node:U.current,value:F}),[F]),N.useEffect(()=>{u&&$&&J&&!ae&&(ge(o?null:fe.clientWidth),K.current.focus())},[J,o]),N.useEffect(()=>{i&&K.current.focus()},[i]),N.useEffect(()=>{if(!g)return;const ye=Dn(K.current).getElementById(g);if(ye){const Ae=()=>{getSelection().isCollapsed&&K.current.focus()};return ye.addEventListener("click",Ae),()=>{ye.removeEventListener("click",Ae)}}},[g]);const Q=(ye,Ae)=>{ye?k&&k(Ae):C&&C(Ae),ae||(ge(o?null:fe.clientWidth),H(ye))},xe=ye=>{ye.button===0&&(ye.preventDefault(),K.current.focus(),Q(!0,ye))},V=ye=>{Q(!1,ye)},Te=N.Children.toArray(a),et=ye=>{const Ae=Te.find(Wt=>Wt.props.value===ye.target.value);Ae!==void 0&&(z(Ae.props.value),_&&_(ye,Ae))},gt=ye=>Ae=>{let Wt;if(Ae.currentTarget.hasAttribute("tabindex")){if(w){Wt=Array.isArray(F)?F.slice():[];const es=F.indexOf(ye.props.value);es===-1?Wt.push(ye.props.value):Wt.splice(es,1)}else Wt=ye.props.value;if(ye.props.onClick&&ye.props.onClick(Ae),F!==Wt&&(z(Wt),_)){const es=Ae.nativeEvent||Ae,bi=new es.constructor(es.type,es);Object.defineProperty(bi,"target",{writable:!0,value:{value:Wt,name:S}}),_(bi,ye)}w||Q(!1,Ae)}},P=ye=>{b||[" ","ArrowUp","ArrowDown","Enter"].includes(ye.key)&&(ye.preventDefault(),Q(!0,ye))},B=J!==null&&$,q=ye=>{!B&&T&&(Object.defineProperty(ye,"target",{writable:!0,value:{value:F,name:S}}),T(ye))};delete L["aria-invalid"];let ee,X;const te=[];let he=!1,_e=!1;(ol({value:F})||h)&&(E?ee=E(F):he=!0);const ot=Te.map(ye=>{if(!N.isValidElement(ye))return null;process.env.NODE_ENV!=="production"&&Iu.isFragment(ye)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
229
+ `));let Ae;if(w){if(!Array.isArray(F))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Hn(2));Ae=F.some(Wt=>ly(Wt,ye.props.value)),Ae&&he&&te.push(ye.props.children)}else Ae=ly(F,ye.props.value),Ae&&he&&(X=ye.props.children);return Ae&&(_e=!0),N.cloneElement(ye,{"aria-selected":Ae?"true":"false",onClick:gt(ye),onKeyUp:Wt=>{Wt.key===" "&&Wt.preventDefault(),ye.props.onKeyUp&&ye.props.onKeyUp(Wt)},role:"option",selected:Ae,value:void 0,"data-value":ye.props.value})});process.env.NODE_ENV!=="production"&&N.useEffect(()=>{if(!_e&&!w&&F!==""){const ye=Te.map(Ae=>Ae.props.value);console.warn([`MUI: You have provided an out-of-range value \`${F}\` for the select ${S?`(name="${S}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${ye.filter(Ae=>Ae!=null).map(Ae=>`\`${Ae}\``).join(", ")||'""'}.`].join(`
230
+ `))}},[_e,Te,w,S,F]),he&&(w?te.length===0?ee=null:ee=te.reduce((ye,Ae,Wt)=>(ye.push(Ae),Wt<te.length-1&&ye.push(", "),ye),[]):ee=X);let Xe=ce;!o&&ae&&J&&(Xe=fe.clientWidth);let Jt;typeof W<"u"?Jt=W:Jt=f?null:0;const Wn=I.id||(S?`mui-component-select-${S}`:void 0),ln={...t,variant:D,value:F,open:B,error:p},Pe=CE(ln),fr={...x.PaperProps,...(yi=x.slotProps)==null?void 0:yi.paper},hr=ah();return v.jsxs(N.Fragment,{children:[v.jsx(SE,{as:"div",ref:re,tabIndex:Jt,role:"combobox","aria-controls":hr,"aria-disabled":f?"true":void 0,"aria-expanded":B?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[g,Wn].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:P,onMouseDown:f||b?null:xe,onBlur:q,onFocus:M,...I,ownerState:ln,className:ke(I.className,Pe.select,l),id:Wn,children:OE(ee)?ay||(ay=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):ee}),v.jsx(kE,{"aria-invalid":p,value:Array.isArray(F)?F.join(","):F,name:S,ref:U,"aria-hidden":!0,onChange:et,tabIndex:-1,disabled:f,className:Pe.nativeInput,autoFocus:i,...L,ownerState:ln}),v.jsx(TE,{as:m,className:Pe.icon,ownerState:ln}),v.jsx(ty,{id:`menu-${S||""}`,anchorEl:fe,open:B,onClose:V,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...x,MenuListProps:{"aria-labelledby":g,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:hr,...x.MenuListProps},slotProps:{...x.slotProps,paper:{...fr,style:{minWidth:Xe,...fr!=null?fr.style:null}}},children:ot})]})});process.env.NODE_ENV!=="production"&&(cy.propTypes={"aria-describedby":c.string,"aria-label":c.string,autoFocus:c.bool,autoWidth:c.bool,children:c.node,classes:c.object,className:c.string,defaultOpen:c.bool,defaultValue:c.any,disabled:c.bool,displayEmpty:c.bool,error:c.bool,IconComponent:c.elementType.isRequired,inputRef:gr,labelId:c.string,MenuProps:c.object,multiple:c.bool,name:c.string,onBlur:c.func,onChange:c.func,onClose:c.func,onFocus:c.func,onOpen:c.func,open:c.bool,readOnly:c.bool,renderValue:c.func,SelectDisplayProps:c.object,tabIndex:c.oneOfType([c.number,c.string]),type:c.any,value:c.any,variant:c.oneOf(["standard","outlined","filled"])});const ME=e=>{const{classes:t}=e;return t},Gu={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>bn(e)&&e!=="variant",slot:"Root"},EE=ve(ko,Gu)(""),DE=ve(Mo,Gu)(""),PE=ve(So,Gu)(""),hn=N.forwardRef(function(t,n){const r=it({name:"MuiSelect",props:t}),{autoWidth:s=!1,children:i,classes:o={},className:a,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:d=FC,id:f,input:h,inputProps:p,label:m,labelId:y,MenuProps:g,multiple:x=!1,native:w=!1,onClose:S,onOpen:T,open:_,renderValue:C,SelectDisplayProps:M,variant:k="outlined",...R}=r,b=w?sy:cy,E=ri(),I=ni({props:r,muiFormControl:E,states:["variant","error"]}),W=I.variant||k,j={...r,variant:W,classes:o},O=ME(j),{root:D,...L}=O,F=h||{standard:v.jsx(EE,{ownerState:j}),outlined:v.jsx(DE,{label:m,ownerState:j}),filled:v.jsx(PE,{ownerState:j})}[W],z=Ht(n,Fi(F));return v.jsx(N.Fragment,{children:N.cloneElement(F,{inputComponent:b,inputProps:{children:i,error:I.error,IconComponent:d,variant:W,type:void 0,multiple:x,...w?{id:f}:{autoWidth:s,defaultOpen:l,displayEmpty:u,labelId:y,MenuProps:g,onClose:S,onOpen:T,open:_,renderValue:C,SelectDisplayProps:{id:f,...M}},...p,classes:p?qt(L,p.classes):L,...h?h.props.inputProps:{}},...(x&&w||u)&&W==="outlined"?{notched:!0}:{},ref:z,className:ke(F.props.className,a,O.root),...!h&&{variant:W},...R})})});process.env.NODE_ENV!=="production"&&(hn.propTypes={autoWidth:c.bool,children:c.node,classes:c.object,className:c.string,defaultOpen:c.bool,defaultValue:c.any,displayEmpty:c.bool,IconComponent:c.elementType,id:c.string,input:c.element,inputProps:c.object,label:c.node,labelId:c.string,MenuProps:c.object,multiple:c.bool,native:c.bool,onChange:c.func,onClose:c.func,onOpen:c.func,open:c.bool,renderValue:c.func,SelectDisplayProps:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.oneOfType([c.oneOf([""]),c.any]),variant:c.oneOf(["filled","outlined","standard"])}),hn.muiName="Select";function RE(e){return Ze("MuiTextField",e)}je("MuiTextField",["root"]);const AE={standard:ko,filled:So,outlined:Mo},IE=e=>{const{classes:t}=e;return nt({root:["root"]},RE,t)},NE=ve(In,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xu=N.forwardRef(function(t,n){const r=it({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:i=!1,children:o,className:a,color:l="primary",defaultValue:u,disabled:d=!1,error:f=!1,FormHelperTextProps:h,fullWidth:p=!1,helperText:m,id:y,InputLabelProps:g,inputProps:x,InputProps:w,inputRef:S,label:T,maxRows:_,minRows:C,multiline:M=!1,name:k,onBlur:R,onChange:b,onFocus:E,placeholder:I,required:W=!1,rows:j,select:O=!1,SelectProps:D,slots:L={},slotProps:F={},type:z,value:$,variant:H="outlined",...U}=r,K={...r,autoFocus:i,color:l,disabled:d,error:f,fullWidth:p,multiline:M,required:W,select:O,variant:H},J=IE(K);process.env.NODE_ENV!=="production"&&O&&!o&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const ie=ah(y),ae=m&&ie?`${ie}-helper-text`:void 0,ce=T&&ie?`${ie}-label`:void 0,ge=AE[H],de={slots:L,slotProps:{input:w,inputLabel:g,htmlInput:x,formHelperText:h,select:D,...F}},re={},fe=de.slotProps.inputLabel;H==="outlined"&&(fe&&typeof fe.shrink<"u"&&(re.notched=fe.shrink),re.label=T),O&&((!D||!D.native)&&(re.id=void 0),re["aria-describedby"]=void 0);const[Q,xe]=An("input",{elementType:ge,externalForwardedProps:de,additionalProps:re,ownerState:K}),[V,Te]=An("inputLabel",{elementType:Ym,externalForwardedProps:de,ownerState:K}),[et,gt]=An("htmlInput",{elementType:"input",externalForwardedProps:de,ownerState:K}),[P,B]=An("formHelperText",{elementType:Bm,externalForwardedProps:de,ownerState:K}),[q,ee]=An("select",{elementType:hn,externalForwardedProps:de,ownerState:K}),X=v.jsx(Q,{"aria-describedby":ae,autoComplete:s,autoFocus:i,defaultValue:u,fullWidth:p,multiline:M,name:k,rows:j,maxRows:_,minRows:C,type:z,value:$,id:ie,inputRef:S,onBlur:R,onChange:b,onFocus:E,placeholder:I,inputProps:gt,slots:{input:L.htmlInput?et:void 0},...xe});return v.jsxs(NE,{className:ke(J.root,a),disabled:d,error:f,fullWidth:p,ref:n,required:W,color:l,variant:H,ownerState:K,...U,children:[T!=null&&T!==""&&v.jsx(V,{htmlFor:ie,id:ce,...Te,children:T}),O?v.jsx(q,{"aria-describedby":ae,id:ie,labelId:ce,value:$,input:X,...ee,children:o}):X,m&&v.jsx(P,{id:ae,...B,children:m})]})});process.env.NODE_ENV!=="production"&&(Xu.propTypes={autoComplete:c.string,autoFocus:c.bool,children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["primary","secondary","error","info","success","warning"]),c.string]),defaultValue:c.any,disabled:c.bool,error:c.bool,FormHelperTextProps:c.object,fullWidth:c.bool,helperText:c.node,id:c.string,InputLabelProps:c.object,inputProps:c.object,InputProps:c.object,inputRef:gr,label:c.node,margin:c.oneOf(["dense","none","normal"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,onBlur:c.func,onChange:c.func,onFocus:c.func,placeholder:c.string,required:c.bool,rows:c.oneOfType([c.number,c.string]),select:c.bool,SelectProps:c.object,size:c.oneOfType([c.oneOf(["medium","small"]),c.string]),slotProps:c.shape({formHelperText:c.oneOfType([c.func,c.object]),htmlInput:c.oneOfType([c.func,c.object]),input:c.oneOfType([c.func,c.object]),inputLabel:c.oneOfType([c.func,c.object]),select:c.oneOfType([c.func,c.object])}),slots:c.shape({formHelperText:c.elementType,htmlInput:c.elementType,input:c.elementType,inputLabel:c.elementType,select:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any,variant:c.oneOf(["filled","outlined","standard"])});const uy=Ru(v.jsx("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos"),dy=Ru(v.jsx("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");var fy={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Bb,function(){var n=1e3,r=6e4,s=36e5,i="millisecond",o="second",a="minute",l="hour",u="day",d="week",f="month",h="quarter",p="year",m="date",y="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var O=["th","st","nd","rd"],D=j%100;return"["+j+(O[(D-20)%10]||O[D]||O[0])+"]"}},S=function(j,O,D){var L=String(j);return!L||L.length>=O?j:""+Array(O+1-L.length).join(D)+j},T={s:S,z:function(j){var O=-j.utcOffset(),D=Math.abs(O),L=Math.floor(D/60),F=D%60;return(O<=0?"+":"-")+S(L,2,"0")+":"+S(F,2,"0")},m:function j(O,D){if(O.date()<D.date())return-j(D,O);var L=12*(D.year()-O.year())+(D.month()-O.month()),F=O.clone().add(L,f),z=D-F<0,$=O.clone().add(L+(z?-1:1),f);return+(-(L+(D-F)/(z?F-$:$-F))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:f,y:p,w:d,d:u,D:m,h:l,m:a,s:o,ms:i,Q:h}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},_="en",C={};C[_]=w;var M="$isDayjsObject",k=function(j){return j instanceof I||!(!j||!j[M])},R=function j(O,D,L){var F;if(!O)return _;if(typeof O=="string"){var z=O.toLowerCase();C[z]&&(F=z),D&&(C[z]=D,F=z);var $=O.split("-");if(!F&&$.length>1)return j($[0])}else{var H=O.name;C[H]=O,F=H}return!L&&F&&(_=F),F||!L&&_},b=function(j,O){if(k(j))return j.clone();var D=typeof O=="object"?O:{};return D.date=j,D.args=arguments,new I(D)},E=T;E.l=R,E.i=k,E.w=function(j,O){return b(j,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var I=function(){function j(D){this.$L=R(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[M]=!0}var O=j.prototype;return O.parse=function(D){this.$d=function(L){var F=L.date,z=L.utc;if(F===null)return new Date(NaN);if(E.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var $=F.match(g);if($){var H=$[2]-1||0,U=($[7]||"0").substring(0,3);return z?new Date(Date.UTC($[1],H,$[3]||1,$[4]||0,$[5]||0,$[6]||0,U)):new Date($[1],H,$[3]||1,$[4]||0,$[5]||0,$[6]||0,U)}}return new Date(F)}(D),this.init()},O.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},O.$utils=function(){return E},O.isValid=function(){return this.$d.toString()!==y},O.isSame=function(D,L){var F=b(D);return this.startOf(L)<=F&&F<=this.endOf(L)},O.isAfter=function(D,L){return b(D)<this.startOf(L)},O.isBefore=function(D,L){return this.endOf(L)<b(D)},O.$g=function(D,L,F){return E.u(D)?this[L]:this.set(F,D)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(D,L){var F=this,z=!!E.u(L)||L,$=E.p(D),H=function(de,re){var fe=E.w(F.$u?Date.UTC(F.$y,re,de):new Date(F.$y,re,de),F);return z?fe:fe.endOf(u)},U=function(de,re){return E.w(F.toDate()[de].apply(F.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(re)),F)},K=this.$W,J=this.$M,ie=this.$D,ae="set"+(this.$u?"UTC":"");switch($){case p:return z?H(1,0):H(31,11);case f:return z?H(1,J):H(0,J+1);case d:var ce=this.$locale().weekStart||0,ge=(K<ce?K+7:K)-ce;return H(z?ie-ge:ie+(6-ge),J);case u:case m:return U(ae+"Hours",0);case l:return U(ae+"Minutes",1);case a:return U(ae+"Seconds",2);case o:return U(ae+"Milliseconds",3);default:return this.clone()}},O.endOf=function(D){return this.startOf(D,!1)},O.$set=function(D,L){var F,z=E.p(D),$="set"+(this.$u?"UTC":""),H=(F={},F[u]=$+"Date",F[m]=$+"Date",F[f]=$+"Month",F[p]=$+"FullYear",F[l]=$+"Hours",F[a]=$+"Minutes",F[o]=$+"Seconds",F[i]=$+"Milliseconds",F)[z],U=z===u?this.$D+(L-this.$W):L;if(z===f||z===p){var K=this.clone().set(m,1);K.$d[H](U),K.init(),this.$d=K.set(m,Math.min(this.$D,K.daysInMonth())).$d}else H&&this.$d[H](U);return this.init(),this},O.set=function(D,L){return this.clone().$set(D,L)},O.get=function(D){return this[E.p(D)]()},O.add=function(D,L){var F,z=this;D=Number(D);var $=E.p(L),H=function(J){var ie=b(z);return E.w(ie.date(ie.date()+Math.round(J*D)),z)};if($===f)return this.set(f,this.$M+D);if($===p)return this.set(p,this.$y+D);if($===u)return H(1);if($===d)return H(7);var U=(F={},F[a]=r,F[l]=s,F[o]=n,F)[$]||1,K=this.$d.getTime()+D*U;return E.w(K,this)},O.subtract=function(D,L){return this.add(-1*D,L)},O.format=function(D){var L=this,F=this.$locale();if(!this.isValid())return F.invalidDate||y;var z=D||"YYYY-MM-DDTHH:mm:ssZ",$=E.z(this),H=this.$H,U=this.$m,K=this.$M,J=F.weekdays,ie=F.months,ae=F.meridiem,ce=function(re,fe,Q,xe){return re&&(re[fe]||re(L,z))||Q[fe].slice(0,xe)},ge=function(re){return E.s(H%12||12,re,"0")},de=ae||function(re,fe,Q){var xe=re<12?"AM":"PM";return Q?xe.toLowerCase():xe};return z.replace(x,function(re,fe){return fe||function(Q){switch(Q){case"YY":return String(L.$y).slice(-2);case"YYYY":return E.s(L.$y,4,"0");case"M":return K+1;case"MM":return E.s(K+1,2,"0");case"MMM":return ce(F.monthsShort,K,ie,3);case"MMMM":return ce(ie,K);case"D":return L.$D;case"DD":return E.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return ce(F.weekdaysMin,L.$W,J,2);case"ddd":return ce(F.weekdaysShort,L.$W,J,3);case"dddd":return J[L.$W];case"H":return String(H);case"HH":return E.s(H,2,"0");case"h":return ge(1);case"hh":return ge(2);case"a":return de(H,U,!0);case"A":return de(H,U,!1);case"m":return String(U);case"mm":return E.s(U,2,"0");case"s":return String(L.$s);case"ss":return E.s(L.$s,2,"0");case"SSS":return E.s(L.$ms,3,"0");case"Z":return $}return null}(re)||$.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(D,L,F){var z,$=this,H=E.p(L),U=b(D),K=(U.utcOffset()-this.utcOffset())*r,J=this-U,ie=function(){return E.m($,U)};switch(H){case p:z=ie()/12;break;case f:z=ie();break;case h:z=ie()/3;break;case d:z=(J-K)/6048e5;break;case u:z=(J-K)/864e5;break;case l:z=J/s;break;case a:z=J/r;break;case o:z=J/n;break;default:z=J}return F?z:E.a(z)},O.daysInMonth=function(){return this.endOf(f).$D},O.$locale=function(){return C[this.$L]},O.locale=function(D,L){if(!D)return this.$L;var F=this.clone(),z=R(D,L,!0);return z&&(F.$L=z),F},O.clone=function(){return E.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},j}(),W=I.prototype;return b.prototype=W,[["$ms",i],["$s",o],["$m",a],["$H",l],["$W",u],["$M",f],["$y",p],["$D",m]].forEach(function(j){W[j[1]]=function(O){return this.$g(O,j[0],j[1])}}),b.extend=function(j,O){return j.$i||(j(O,I,b),j.$i=!0),b},b.locale=R,b.isDayjs=k,b.unix=function(j){return b(1e3*j)},b.en=C[_],b.Ls=C,b.p={},b})})(fy);var jE=fy.exports;const hy=Bd(jE);Kn.register(bu,ps,hs,kr,Tr,Rn,Zn,Gs,Qn,Pn);function py({execute:e,userId:t}){const[n,r]=Y.useState([]),[s,i]=Y.useState(null),[o,a]=Y.useState(null),[l,u]=Y.useState(new Date().getMonth()),[d,f]=Y.useState(new Date().getFullYear()),[h,p]=Y.useState({totalSearches:0,avgTimeBetweenSearches:0,topSearchKeywords:[],globalSearch:0,pageSearch:0}),[m,y]=Y.useState(null),[g,x]=Y.useState([]),[w,S]=Y.useState(null),T=k=>{y(k.target.value)};Y.useEffect(()=>{(async()=>{var R,b,E,I,W;try{const j=await e({code:"get_analytics_data",parameters:{userId:+t||null,eventName:"search_tracking"}}),O=await e({code:"get_analytics_data1",parameters:{userId:+t||null,eventName:"search_tracking"}});if(O){const D=(b=(R=O==null?void 0:O.data)==null?void 0:R.result)==null?void 0:b.map(z=>z.page_source.split("/").filter(Boolean).slice(-2).join("/")),L=(I=(E=O==null?void 0:O.data)==null?void 0:E.result)==null?void 0:I.map(z=>z.total_visit);a({labels:D,datasets:[{label:"Number of Searches",data:L,backgroundColor:"rgba(75, 192, 192, 0.6)",borderColor:"rgba(75, 192, 192, 1)",borderWidth:1}]})}r((W=j==null?void 0:j.data)==null?void 0:W.result)}catch{throw new Error("Problem in getting search tracking data")}})()},[e,t]),Y.useEffect(()=>{const k=async()=>{var I,W,j,O;const R=await e({code:"get_analytics_data_daywise",parameters:{userId:+t||null,eventName:"search_tracking",year:d,month:l+1}}),b=(W=(I=R==null?void 0:R.data)==null?void 0:I.result)==null?void 0:W.map(D=>D.event_date),E=(O=(j=R==null?void 0:R.data)==null?void 0:j.result)==null?void 0:O.map(D=>D.total_visit);i({labels:b,datasets:[{label:"Number of Searches",data:E,fill:!1,borderColor:"rgba(75, 192, 192, 1)",tension:.1}]})};try{k()}catch(R){throw new Error(R)}},[l,d,t]),Y.useEffect(()=>{const k=hy();let R=0,b=[],E={},I=0,W=0;R=n.filter(F=>hy(F==null?void 0:F.event_time).isAfter(k.subtract(24,"hours"))).length,n.forEach(F=>{const z=JSON.parse(F==null?void 0:F.event_data);z!=null&&z.time_since_last_search&&b.push(z==null?void 0:z.time_since_last_search);const $=z==null?void 0:z.search_query;$&&(E[$]=(E[$]||0)+1),(z==null?void 0:z.search_type)==="Global Search"?I=I+1:W=W+1});const O=b.length?(b.reduce((F,z)=>F+z,0)/b.length).toFixed(2):0,L=Object.entries(E).sort((F,z)=>z[1]-F[1]).slice(0,5).map(([F,z])=>({keyword:F,count:z}));p({totalSearches:R,avgTimeBetweenSearches:O,topSearchKeywords:L,globalSearch:I,pageSearch:W})},[n]);const _=k=>{const R=new Date;if(new Date(d,l+k,1)>R){alert("You cannot go beyond the current month.");return}const E=new Date(d,l+k,1);u(E.getMonth()),f(E.getFullYear())},C={plugins:{title:{display:!0,text:`Number of Searches Per Day (${l+1}/${d})`}},scales:{x:{type:"category",title:{display:!0,text:"Date"}},y:{beginAtZero:!0,title:{display:!0,text:"Number of Searches"}}}};Y.useEffect(()=>{if(n){let k=[];n.forEach(b=>{const E=JSON.parse(b==null?void 0:b.event_data),I=E==null?void 0:E.interacted_page;k.push(I)});const R=[...new Set(k)];y(R[0]),x(R)}},[n]),Y.useEffect(()=>{if(m){const k=n.reduce((E,I)=>{const W=JSON.parse(I==null?void 0:I.event_data),j=W==null?void 0:W.interacted_page,O=W==null?void 0:W.search_query;return j===m&&O&&(E[O]=(E[O]||0)+1),E},{}),R=Object.keys(k),b=Object.values(k);S({labels:R,datasets:[{label:"Search Query Counts",data:b,backgroundColor:["rgba(75, 192, 192, 0.6)","rgba(255, 159, 64, 0.6)","rgba(153, 102, 255, 0.6)","rgba(255, 205, 86, 0.6)","rgba(54, 162, 235, 0.6)"],borderColor:["rgba(75, 192, 192, 1)","rgba(255, 159, 64, 1)","rgba(153, 102, 255, 1)","rgba(255, 205, 86, 1)","rgba(54, 162, 235, 1)"],borderWidth:1}]})}},[m,n]);const M={plugins:{legend:{display:!0,position:"top"}},scales:{x:{title:{display:!0,text:"Interacted Page"}},y:{title:{display:!0,text:"Number of Searches"},beginAtZero:!0}}};return v.jsxs("div",{style:{marginTop:"30px",marginRight:"10px"},children:[v.jsxs(oe,{container:!0,spacing:3,justifyContent:"center",size:{xs:12},children:[v.jsx(oe,{size:{md:6},children:v.jsx(ut,{elevation:6,style:{height:"423px"},children:v.jsxs(dt,{children:[v.jsx(oi,{children:v.jsxs(fn,{sx:{display:"flex",justifyContent:"space-between",width:"100%"},children:[v.jsx("span",{children:`${new Date(d,l).toLocaleString("default",{month:"long"})}, ${d}`}),v.jsxs("div",{children:[v.jsx(dy,{onClick:()=>_(-1)}),v.jsx(uy,{onClick:()=>_(1)})]})]})}),s&&v.jsx(uo,{data:s,options:C})]})})}),v.jsx(oe,{size:{md:6},children:v.jsxs(oe,{container:!0,spacing:3,justifyContent:"center",children:[v.jsxs(oe,{container:!0,spacing:3,justifyContent:"center",sx:{width:"100%"},children:[v.jsx(oe,{size:{md:6},children:v.jsx(ut,{elevation:6,style:{height:"200px"},children:v.jsxs(dt,{children:[v.jsx(Ge,{variant:"body2",children:"Total Searches in Last 24 Hours"}),v.jsx("h2",{children:h.totalSearches})]})})}),v.jsx(oe,{size:{md:6},children:v.jsx(ut,{elevation:6,style:{height:"200px"},children:v.jsxs(dt,{children:[v.jsx(Ge,{variant:"body2",children:"Average Time Between Searches"}),v.jsx("h2",{children:h.avgTimeBetweenSearches}),"seconds"]})})})]}),v.jsxs(oe,{container:!0,spacing:3,justifyContent:"center",sx:{width:"100%"},children:[v.jsx(oe,{size:{md:6},children:v.jsx(ut,{elevation:6,style:{height:"200px"},sx:{width:"100%"},children:v.jsxs(dt,{children:[v.jsx(Ge,{variant:"body2",children:"Top 5 Most Searched Keywords:"}),v.jsx("ul",{children:h.topSearchKeywords.map((k,R)=>v.jsxs("li",{children:[k.keyword,": ",k.count]},R))})]})})}),v.jsx(oe,{size:{md:6},children:v.jsx(ut,{elevation:6,style:{height:"200px"},sx:{width:"100%"},children:v.jsx(dt,{children:v.jsxs(oe,{container:!0,spacing:3,justifyContent:"center",sx:{width:"100%"},children:[v.jsxs(oe,{size:{md:6},children:[v.jsx(Ge,{variant:"body2",children:"Global Search"}),v.jsx("h2",{children:h.globalSearch})]}),v.jsxs(oe,{size:{md:6},children:[v.jsx(Ge,{variant:"body2",children:"Page Search"}),v.jsx("h2",{children:h.pageSearch})]})]})})})})]})]})})]}),v.jsxs(oe,{container:!0,spacing:3,justifyContent:"center",sx:{marginTop:"30px"},children:[v.jsx(oe,{Fde:!0,size:{md:6},sx:{height:"423px"},children:v.jsx(ut,{elevation:6,sx:{height:"100%",width:"100%",overflow:"hidden"},children:v.jsxs(dt,{sx:{height:"100%",display:"flex",flexDirection:"column"},children:[v.jsx(oi,{children:v.jsx(fn,{sx:{display:"flex",justifyContent:"space-between",width:"100%"},children:"Search Per Page"})}),o&&v.jsx(fn,{sx:{flexGrow:1,overflow:"hidden"},children:v.jsx(Or,{data:o,options:{...M,responsive:!0,maintainAspectRatio:!1}})})]})})}),v.jsx(oe,{Fde:!0,size:{md:6},sx:{height:"423px"},children:v.jsx(ut,{elevation:6,sx:{height:"100%",width:"100%",overflow:"hidden"},children:v.jsxs(dt,{sx:{height:"100%",display:"flex",flexDirection:"column"},children:[v.jsx(oi,{children:v.jsxs("div",{style:{marginBottom:"20px"},children:[v.jsx(fn,{sx:{display:"flex",justifyContent:"space-between",width:"100%"},children:"Keywords per page"}),v.jsx("label",{htmlFor:"page-select",style:{marginRight:"10px"},children:"Select Page:"}),v.jsx(hn,{id:"page-select",value:m,onChange:T,MenuProps:{PaperProps:{style:{maxHeight:200,overflow:"auto"}}},children:g.map(k=>v.jsx(zt,{value:k,children:k},k))})]})}),w?v.jsx(fn,{sx:{flexGrow:1,overflow:"hidden"},children:v.jsx(Xs,{data:w,options:{responsive:!0,maintainAspectRatio:!1}})}):v.jsx("p",{children:"No data available for the selected page."})]})})})]})]})}Kn.register(Pn,ps,hs,Qn,Tr,kr,Rn,Zn);function gy({execute:e,userId:t}){const[n,r]=Y.useState([]),[s,i]=Y.useState([]),[o,a]=Y.useState(null),[l,u]=Y.useState(null),[d,f]=Y.useState(null),h={callbacks:{title:p=>{var y,g,x,w;const m=p[0].dataIndex;return((x=(g=(y=n[m])==null?void 0:y.page_source)==null?void 0:g.split("techo/")[1])==null?void 0:x.replace("techo/",""))||((w=n[m])==null?void 0:w.page_source)}}};return Y.useEffect(()=>{(async()=>{var m,y;try{const g=await e({code:"get_analytics_data1",parameters:{userId:t||null,eventName:"page_view"}});r((m=g==null?void 0:g.data)==null?void 0:m.result);const x=await e({code:"get_maxDepth_totalTimeSpent_data",parameters:{userId:t||null,eventName:"page_view"}});i((y=x==null?void 0:x.data)==null?void 0:y.result)}catch(g){throw console.log("🚀 ~ fetchSessions ~ error:",g),new Error("Problem in getting search tracking data")}})()},[e,t]),Y.useEffect(()=>{const p=(C,M=20)=>(C==null?void 0:C.length)>M?C.substring(0,M)+"...":C,m=n.map(C=>{var M,k;return p(((k=(M=C.page_source)==null?void 0:M.split("techo/")[1])==null?void 0:k.replace("techo/",""))||C.page_source)}),y=n.map(C=>C.total_visit);a({labels:m,datasets:[{label:"Page Viewed",data:y,backgroundColor:["#FF6384","#36A2EB","#FFCE56","#4BC0C0","#9966FF","#FF9F40","#FF633","#36A23B","#FFCE57","#4BC1C1","#9923EE","#FF9F20"],hoverOffset:4}]});const g=s.reduce((C,M)=>{var b;let{prev_state_id:k,max_scroll_depth:R}=M;return k=((b=k==null?void 0:k.split("techo/")[1])==null?void 0:b.replace("techo/",""))||k,C[k]=Math.max(C[k]||0,R),C},{}),x=Object.entries(g).filter(([,C])=>C>0),w=x.map(([C])=>p(C)),S=x.map(([,C])=>C);u({labels:w,datasets:[{label:"Scroll Depth (%)",data:S,backgroundColor:"#36A2EB",borderColor:"#2980B9",borderWidth:1}]});const T=s.map(C=>{var M,k;return p(((k=(M=C.prev_state_id)==null?void 0:M.split("techo/")[1])==null?void 0:k.replace("techo/",""))||C.prev_state_id)}),_=s.map(C=>C.total_active_tab_time/1e3);f({labels:T,datasets:[{label:"Time Spent (seconds)",data:_,borderColor:"#FF6384",backgroundColor:"rgba(255,99,132,0.2)",tension:.3}]})},[n,s]),v.jsxs(oe,{container:!0,size:{xs:12},spacing:2,justifyContent:"center",display:"flex",flexDirection:"column",mt:2,children:[v.jsx(oe,{children:v.jsx(Ge,{variant:"h5",children:" PageView Analytics"})}),v.jsxs(oe,{container:!0,children:[v.jsx(oe,{size:{xs:6},children:v.jsxs(ut,{elevation:6,children:[v.jsx(Zt,{title:"Total Page Views"}),v.jsx(dt,{children:o?v.jsx(Xs,{data:o,options:{plugins:{tooltip:h}},height:70,width:70}):"Loading pie chart..."})]})}),v.jsx(oe,{size:{xs:6},children:v.jsxs(ut,{elevation:6,children:[v.jsx(Zt,{title:"Scroll Depth Analysis"}),v.jsx(dt,{children:l?v.jsx(Or,{data:l,options:{responsive:!0,plugins:{tooltip:h},scales:{y:{beginAtZero:!0,max:100,title:{display:!0,text:"Scroll Depth (%)"}}}},height:70,width:70}):"Loading bar chart..."})]})}),v.jsx(oe,{size:{xs:12},children:v.jsxs(ut,{elevation:6,children:[v.jsx(Zt,{title:"Time Spent Trends"}),v.jsx(dt,{children:d?v.jsx(uo,{data:d,options:{responsive:!0,plugins:{tooltip:h},scales:{y:{beginAtZero:!0,title:{display:!0,text:"Time Spent (seconds)"}}}},height:20,width:100}):"Loading line chart..."})]})})]})]})}const FE=({execute:e})=>{const[t,n]=Y.useState([]),[r,s]=Y.useState(null);Y.useEffect(()=>{i()},[]);const i=async()=>{var l;const a=await e({code:"analytics_event_names",parameters:{}});n((l=a==null?void 0:a.data)==null?void 0:l.result)},o=a=>{s(a.target.value)};return v.jsxs("div",{children:[v.jsx("h2",{children:"Analytics Dashboard"}),v.jsx("div",{style:{padding:"20px"},children:v.jsxs(In,{fullWidth:!0,children:[v.jsx("label",{children:"Choose Event"}),v.jsx(hn,{value:r,onChange:o,children:t==null?void 0:t.filter(a=>a.event_name!==null).map(a=>v.jsx(zt,{value:a.event_name,children:a.event_name},a.id))})]})}),r==="search_tracking"&&v.jsx(py,{execute:e}),r==="page_view"&&v.jsx(gy,{execute:e})]})};//! moment.js
231
+ //! version : 2.30.1
232
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
233
+ //! license : MIT
234
+ //! momentjs.com
235
+ var my;function le(){return my.apply(null,arguments)}function $E(e){my=e}function Nn(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function ws(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Fe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ku(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Fe(e,t))return!1;return!0}function on(e){return e===void 0}function Mr(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Do(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function yy(e,t){var n=[],r,s=e.length;for(r=0;r<s;++r)n.push(t(e[r],r));return n}function Xr(e,t){for(var n in t)Fe(t,n)&&(e[n]=t[n]);return Fe(t,"toString")&&(e.toString=t.toString),Fe(t,"valueOf")&&(e.valueOf=t.valueOf),e}function ir(e,t,n,r){return Vy(e,t,n,r,!0).utc()}function LE(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Oe(e){return e._pf==null&&(e._pf=LE()),e._pf}var Zu;Array.prototype.some?Zu=Array.prototype.some:Zu=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function Qu(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=Oe(e),n=Zu.call(t.parsedDateParts,function(s){return s!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function bl(e){var t=ir(NaN);return e!=null?Xr(Oe(t),e):Oe(t).userInvalidated=!0,t}var by=le.momentProperties=[],Ju=!1;function ed(e,t){var n,r,s,i=by.length;if(on(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),on(t._i)||(e._i=t._i),on(t._f)||(e._f=t._f),on(t._l)||(e._l=t._l),on(t._strict)||(e._strict=t._strict),on(t._tzm)||(e._tzm=t._tzm),on(t._isUTC)||(e._isUTC=t._isUTC),on(t._offset)||(e._offset=t._offset),on(t._pf)||(e._pf=Oe(t)),on(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)r=by[n],s=t[r],on(s)||(e[r]=s);return e}function Po(e){ed(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Ju===!1&&(Ju=!0,le.updateOffset(this),Ju=!1)}function jn(e){return e instanceof Po||e!=null&&e._isAMomentObject!=null}function vy(e){le.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Tn(e,t){var n=!0;return Xr(function(){if(le.deprecationHandler!=null&&le.deprecationHandler(null,e),n){var r=[],s,i,o,a=arguments.length;for(i=0;i<a;i++){if(s="",typeof arguments[i]=="object"){s+=`
236
+ [`+i+"] ";for(o in arguments[0])Fe(arguments[0],o)&&(s+=o+": "+arguments[0][o]+", ");s=s.slice(0,-2)}else s=arguments[i];r.push(s)}vy(e+`
237
+ Arguments: `+Array.prototype.slice.call(r).join("")+`
238
+ `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var xy={};function _y(e,t){le.deprecationHandler!=null&&le.deprecationHandler(e,t),xy[e]||(vy(t),xy[e]=!0)}le.suppressDeprecationWarnings=!1,le.deprecationHandler=null;function or(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function WE(e){var t,n;for(n in e)Fe(e,n)&&(t=e[n],or(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function td(e,t){var n=Xr({},e),r;for(r in t)Fe(t,r)&&(ws(e[r])&&ws(t[r])?(n[r]={},Xr(n[r],e[r]),Xr(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Fe(e,r)&&!Fe(t,r)&&ws(e[r])&&(n[r]=Xr({},n[r]));return n}function nd(e){e!=null&&this.set(e)}var rd;Object.keys?rd=Object.keys:rd=function(e){var t,n=[];for(t in e)Fe(e,t)&&n.push(t);return n};var BE={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function zE(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return or(r)?r.call(t,n):r}function ar(e,t,n){var r=""+Math.abs(e),s=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+r}var sd=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,vl=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,id={},ai={};function be(e,t,n,r){var s=r;typeof r=="string"&&(s=function(){return this[r]()}),e&&(ai[e]=s),t&&(ai[t[0]]=function(){return ar(s.apply(this,arguments),t[1],t[2])}),n&&(ai[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function YE(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function VE(e){var t=e.match(sd),n,r;for(n=0,r=t.length;n<r;n++)ai[t[n]]?t[n]=ai[t[n]]:t[n]=YE(t[n]);return function(s){var i="",o;for(o=0;o<r;o++)i+=or(t[o])?t[o].call(s,e):t[o];return i}}function xl(e,t){return e.isValid()?(t=wy(t,e.localeData()),id[t]=id[t]||VE(t),id[t](e)):e.localeData().invalidDate()}function wy(e,t){var n=5;function r(s){return t.longDateFormat(s)||s}for(vl.lastIndex=0;n>=0&&vl.test(e);)e=e.replace(vl,r),vl.lastIndex=0,n-=1;return e}var HE={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function UE(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(sd).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var qE="Invalid date";function GE(){return this._invalidDate}var XE="%d",KE=/\d{1,2}/;function ZE(e){return this._ordinal.replace("%d",e)}var QE={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function JE(e,t,n,r){var s=this._relativeTime[n];return or(s)?s(e,t,n,r):s.replace(/%d/i,e)}function eD(e,t){var n=this._relativeTime[e>0?"future":"past"];return or(n)?n(t):n.replace(/%s/i,t)}var Sy={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function kn(e){return typeof e=="string"?Sy[e]||Sy[e.toLowerCase()]:void 0}function od(e){var t={},n,r;for(r in e)Fe(e,r)&&(n=kn(r),n&&(t[n]=e[r]));return t}var tD={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function nD(e){var t=[],n;for(n in e)Fe(e,n)&&t.push({unit:n,priority:tD[n]});return t.sort(function(r,s){return r.priority-s.priority}),t}var Ty=/\d/,pn=/\d\d/,ky=/\d{3}/,ad=/\d{4}/,_l=/[+-]?\d{6}/,ft=/\d\d?/,Oy=/\d\d\d\d?/,Cy=/\d\d\d\d\d\d?/,wl=/\d{1,3}/,ld=/\d{1,4}/,Sl=/[+-]?\d{1,6}/,li=/\d+/,Tl=/[+-]?\d+/,rD=/Z|[+-]\d\d:?\d\d/gi,kl=/Z|[+-]\d\d(?::?\d\d)?/gi,sD=/[+-]?\d+(\.\d{1,3})?/,Ro=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ci=/^[1-9]\d?/,cd=/^([1-9]\d|\d)/,Ol;Ol={};function pe(e,t,n){Ol[e]=or(t)?t:function(r,s){return r&&n?n:t}}function iD(e,t){return Fe(Ol,e)?Ol[e](t._strict,t._locale):new RegExp(oD(e))}function oD(e){return Er(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,s,i){return n||r||s||i}))}function Er(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function On(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Me(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=On(t)),n}var ud={};function tt(e,t){var n,r=t,s;for(typeof e=="string"&&(e=[e]),Mr(t)&&(r=function(i,o){o[t]=Me(i)}),s=e.length,n=0;n<s;n++)ud[e[n]]=r}function Ao(e,t){tt(e,function(n,r,s,i){s._w=s._w||{},t(n,s._w,s,i)})}function aD(e,t,n){t!=null&&Fe(ud,e)&&ud[e](t,n._a,n,e)}function Cl(e){return e%4===0&&e%100!==0||e%400===0}var Qt=0,Dr=1,lr=2,$t=3,Fn=4,Pr=5,Ss=6,lD=7,cD=8;be("Y",0,0,function(){var e=this.year();return e<=9999?ar(e,4):"+"+e}),be(0,["YY",2],0,function(){return this.year()%100}),be(0,["YYYY",4],0,"year"),be(0,["YYYYY",5],0,"year"),be(0,["YYYYYY",6,!0],0,"year"),pe("Y",Tl),pe("YY",ft,pn),pe("YYYY",ld,ad),pe("YYYYY",Sl,_l),pe("YYYYYY",Sl,_l),tt(["YYYYY","YYYYYY"],Qt),tt("YYYY",function(e,t){t[Qt]=e.length===2?le.parseTwoDigitYear(e):Me(e)}),tt("YY",function(e,t){t[Qt]=le.parseTwoDigitYear(e)}),tt("Y",function(e,t){t[Qt]=parseInt(e,10)});function Io(e){return Cl(e)?366:365}le.parseTwoDigitYear=function(e){return Me(e)+(Me(e)>68?1900:2e3)};var My=ui("FullYear",!0);function uD(){return Cl(this.year())}function ui(e,t){return function(n){return n!=null?(Ey(this,e,n),le.updateOffset(this,t),this):No(this,e)}}function No(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ey(e,t,n){var r,s,i,o,a;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(s?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(s?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(s?r.setUTCHours(n):r.setHours(n));case"Date":return void(s?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,o=e.month(),a=e.date(),a=a===29&&o===1&&!Cl(i)?28:a,s?r.setUTCFullYear(i,o,a):r.setFullYear(i,o,a)}}function dD(e){return e=kn(e),or(this[e])?this[e]():this}function fD(e,t){if(typeof e=="object"){e=od(e);var n=nD(e),r,s=n.length;for(r=0;r<s;r++)this[n[r].unit](e[n[r].unit])}else if(e=kn(e),or(this[e]))return this[e](t);return this}function hD(e,t){return(e%t+t)%t}var Dt;Array.prototype.indexOf?Dt=Array.prototype.indexOf:Dt=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function dd(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=hD(t,12);return e+=(t-n)/12,n===1?Cl(e)?29:28:31-n%7%2}be("M",["MM",2],"Mo",function(){return this.month()+1}),be("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),be("MMMM",0,0,function(e){return this.localeData().months(this,e)}),pe("M",ft,ci),pe("MM",ft,pn),pe("MMM",function(e,t){return t.monthsShortRegex(e)}),pe("MMMM",function(e,t){return t.monthsRegex(e)}),tt(["M","MM"],function(e,t){t[Dr]=Me(e)-1}),tt(["MMM","MMMM"],function(e,t,n,r){var s=n._locale.monthsParse(e,r,n._strict);s!=null?t[Dr]=s:Oe(n).invalidMonth=e});var pD="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Dy="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Py=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,gD=Ro,mD=Ro;function yD(e,t){return e?Nn(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Py).test(t)?"format":"standalone"][e.month()]:Nn(this._months)?this._months:this._months.standalone}function bD(e,t){return e?Nn(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Py.test(t)?"format":"standalone"][e.month()]:Nn(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function vD(e,t,n){var r,s,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=ir([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?t==="MMM"?(s=Dt.call(this._shortMonthsParse,o),s!==-1?s:null):(s=Dt.call(this._longMonthsParse,o),s!==-1?s:null):t==="MMM"?(s=Dt.call(this._shortMonthsParse,o),s!==-1?s:(s=Dt.call(this._longMonthsParse,o),s!==-1?s:null)):(s=Dt.call(this._longMonthsParse,o),s!==-1?s:(s=Dt.call(this._shortMonthsParse,o),s!==-1?s:null))}function xD(e,t,n){var r,s,i;if(this._monthsParseExact)return vD.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(s=ir([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(i="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function Ry(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Me(t);else if(t=e.localeData().monthsParse(t),!Mr(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,dd(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function Ay(e){return e!=null?(Ry(this,e),le.updateOffset(this,!0),this):No(this,"Month")}function _D(){return dd(this.year(),this.month())}function wD(e){return this._monthsParseExact?(Fe(this,"_monthsRegex")||Iy.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Fe(this,"_monthsShortRegex")||(this._monthsShortRegex=gD),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function SD(e){return this._monthsParseExact?(Fe(this,"_monthsRegex")||Iy.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Fe(this,"_monthsRegex")||(this._monthsRegex=mD),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Iy(){function e(l,u){return u.length-l.length}var t=[],n=[],r=[],s,i,o,a;for(s=0;s<12;s++)i=ir([2e3,s]),o=Er(this.monthsShort(i,"")),a=Er(this.months(i,"")),t.push(o),n.push(a),r.push(a),r.push(o);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function TD(e,t,n,r,s,i,o){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,r,s,i,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,s,i,o),a}function jo(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ml(e,t,n){var r=7+t-n,s=(7+jo(e,0,r).getUTCDay()-t)%7;return-s+r-1}function Ny(e,t,n,r,s){var i=(7+n-r)%7,o=Ml(e,r,s),a=1+7*(t-1)+i+o,l,u;return a<=0?(l=e-1,u=Io(l)+a):a>Io(e)?(l=e+1,u=a-Io(e)):(l=e,u=a),{year:l,dayOfYear:u}}function Fo(e,t,n){var r=Ml(e.year(),t,n),s=Math.floor((e.dayOfYear()-r-1)/7)+1,i,o;return s<1?(o=e.year()-1,i=s+Rr(o,t,n)):s>Rr(e.year(),t,n)?(i=s-Rr(e.year(),t,n),o=e.year()+1):(o=e.year(),i=s),{week:i,year:o}}function Rr(e,t,n){var r=Ml(e,t,n),s=Ml(e+1,t,n);return(Io(e)-r+s)/7}be("w",["ww",2],"wo","week"),be("W",["WW",2],"Wo","isoWeek"),pe("w",ft,ci),pe("ww",ft,pn),pe("W",ft,ci),pe("WW",ft,pn),Ao(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Me(e)});function kD(e){return Fo(e,this._week.dow,this._week.doy).week}var OD={dow:0,doy:6};function CD(){return this._week.dow}function MD(){return this._week.doy}function ED(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function DD(e){var t=Fo(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}be("d",0,"do","day"),be("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),be("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),be("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),be("e",0,0,"weekday"),be("E",0,0,"isoWeekday"),pe("d",ft),pe("e",ft),pe("E",ft),pe("dd",function(e,t){return t.weekdaysMinRegex(e)}),pe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),pe("dddd",function(e,t){return t.weekdaysRegex(e)}),Ao(["dd","ddd","dddd"],function(e,t,n,r){var s=n._locale.weekdaysParse(e,r,n._strict);s!=null?t.d=s:Oe(n).invalidWeekday=e}),Ao(["d","e","E"],function(e,t,n,r){t[r]=Me(e)});function PD(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function RD(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function fd(e,t){return e.slice(t,7).concat(e.slice(0,t))}var AD="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),jy="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ID="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ND=Ro,jD=Ro,FD=Ro;function $D(e,t){var n=Nn(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?fd(n,this._week.dow):e?n[e.day()]:n}function LD(e){return e===!0?fd(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function WD(e){return e===!0?fd(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function BD(e,t,n){var r,s,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=ir([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(s=Dt.call(this._weekdaysParse,o),s!==-1?s:null):t==="ddd"?(s=Dt.call(this._shortWeekdaysParse,o),s!==-1?s:null):(s=Dt.call(this._minWeekdaysParse,o),s!==-1?s:null):t==="dddd"?(s=Dt.call(this._weekdaysParse,o),s!==-1||(s=Dt.call(this._shortWeekdaysParse,o),s!==-1)?s:(s=Dt.call(this._minWeekdaysParse,o),s!==-1?s:null)):t==="ddd"?(s=Dt.call(this._shortWeekdaysParse,o),s!==-1||(s=Dt.call(this._weekdaysParse,o),s!==-1)?s:(s=Dt.call(this._minWeekdaysParse,o),s!==-1?s:null)):(s=Dt.call(this._minWeekdaysParse,o),s!==-1||(s=Dt.call(this._weekdaysParse,o),s!==-1)?s:(s=Dt.call(this._shortWeekdaysParse,o),s!==-1?s:null))}function zD(e,t,n){var r,s,i;if(this._weekdaysParseExact)return BD.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(s=ir([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function YD(e){if(!this.isValid())return e!=null?this:NaN;var t=No(this,"Day");return e!=null?(e=PD(e,this.localeData()),this.add(e-t,"d")):t}function VD(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function HD(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=RD(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function UD(e){return this._weekdaysParseExact?(Fe(this,"_weekdaysRegex")||hd.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Fe(this,"_weekdaysRegex")||(this._weekdaysRegex=ND),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qD(e){return this._weekdaysParseExact?(Fe(this,"_weekdaysRegex")||hd.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Fe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=jD),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function GD(e){return this._weekdaysParseExact?(Fe(this,"_weekdaysRegex")||hd.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Fe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=FD),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function hd(){function e(d,f){return f.length-d.length}var t=[],n=[],r=[],s=[],i,o,a,l,u;for(i=0;i<7;i++)o=ir([2e3,1]).day(i),a=Er(this.weekdaysMin(o,"")),l=Er(this.weekdaysShort(o,"")),u=Er(this.weekdays(o,"")),t.push(a),n.push(l),r.push(u),s.push(a),s.push(l),s.push(u);t.sort(e),n.sort(e),r.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function pd(){return this.hours()%12||12}function XD(){return this.hours()||24}be("H",["HH",2],0,"hour"),be("h",["hh",2],0,pd),be("k",["kk",2],0,XD),be("hmm",0,0,function(){return""+pd.apply(this)+ar(this.minutes(),2)}),be("hmmss",0,0,function(){return""+pd.apply(this)+ar(this.minutes(),2)+ar(this.seconds(),2)}),be("Hmm",0,0,function(){return""+this.hours()+ar(this.minutes(),2)}),be("Hmmss",0,0,function(){return""+this.hours()+ar(this.minutes(),2)+ar(this.seconds(),2)});function Fy(e,t){be(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Fy("a",!0),Fy("A",!1);function $y(e,t){return t._meridiemParse}pe("a",$y),pe("A",$y),pe("H",ft,cd),pe("h",ft,ci),pe("k",ft,ci),pe("HH",ft,pn),pe("hh",ft,pn),pe("kk",ft,pn),pe("hmm",Oy),pe("hmmss",Cy),pe("Hmm",Oy),pe("Hmmss",Cy),tt(["H","HH"],$t),tt(["k","kk"],function(e,t,n){var r=Me(e);t[$t]=r===24?0:r}),tt(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),tt(["h","hh"],function(e,t,n){t[$t]=Me(e),Oe(n).bigHour=!0}),tt("hmm",function(e,t,n){var r=e.length-2;t[$t]=Me(e.substr(0,r)),t[Fn]=Me(e.substr(r)),Oe(n).bigHour=!0}),tt("hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[$t]=Me(e.substr(0,r)),t[Fn]=Me(e.substr(r,2)),t[Pr]=Me(e.substr(s)),Oe(n).bigHour=!0}),tt("Hmm",function(e,t,n){var r=e.length-2;t[$t]=Me(e.substr(0,r)),t[Fn]=Me(e.substr(r))}),tt("Hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[$t]=Me(e.substr(0,r)),t[Fn]=Me(e.substr(r,2)),t[Pr]=Me(e.substr(s))});function KD(e){return(e+"").toLowerCase().charAt(0)==="p"}var ZD=/[ap]\.?m?\.?/i,QD=ui("Hours",!0);function JD(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Ly={calendar:BE,longDateFormat:HE,invalidDate:qE,ordinal:XE,dayOfMonthOrdinalParse:KE,relativeTime:QE,months:pD,monthsShort:Dy,week:OD,weekdays:AD,weekdaysMin:ID,weekdaysShort:jy,meridiemParse:ZD},yt={},$o={},Lo;function eP(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function Wy(e){return e&&e.toLowerCase().replace("_","-")}function tP(e){for(var t=0,n,r,s,i;t<e.length;){for(i=Wy(e[t]).split("-"),n=i.length,r=Wy(e[t+1]),r=r?r.split("-"):null;n>0;){if(s=El(i.slice(0,n).join("-")),s)return s;if(r&&r.length>=n&&eP(i,r)>=n-1)break;n--}t++}return Lo}function nP(e){return!!(e&&e.match("^[^/\\\\]*$"))}function El(e){var t=null,n;if(yt[e]===void 0&&typeof module<"u"&&module&&module.exports&&nP(e))try{t=Lo._abbr,n=require,n("./locale/"+e),Kr(t)}catch{yt[e]=null}return yt[e]}function Kr(e,t){var n;return e&&(on(t)?n=Ar(e):n=gd(e,t),n?Lo=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Lo._abbr}function gd(e,t){if(t!==null){var n,r=Ly;if(t.abbr=e,yt[e]!=null)_y("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=yt[e]._config;else if(t.parentLocale!=null)if(yt[t.parentLocale]!=null)r=yt[t.parentLocale]._config;else if(n=El(t.parentLocale),n!=null)r=n._config;else return $o[t.parentLocale]||($o[t.parentLocale]=[]),$o[t.parentLocale].push({name:e,config:t}),null;return yt[e]=new nd(td(r,t)),$o[e]&&$o[e].forEach(function(s){gd(s.name,s.config)}),Kr(e),yt[e]}else return delete yt[e],null}function rP(e,t){if(t!=null){var n,r,s=Ly;yt[e]!=null&&yt[e].parentLocale!=null?yt[e].set(td(yt[e]._config,t)):(r=El(e),r!=null&&(s=r._config),t=td(s,t),r==null&&(t.abbr=e),n=new nd(t),n.parentLocale=yt[e],yt[e]=n),Kr(e)}else yt[e]!=null&&(yt[e].parentLocale!=null?(yt[e]=yt[e].parentLocale,e===Kr()&&Kr(e)):yt[e]!=null&&delete yt[e]);return yt[e]}function Ar(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Lo;if(!Nn(e)){if(t=El(e),t)return t;e=[e]}return tP(e)}function sP(){return rd(yt)}function md(e){var t,n=e._a;return n&&Oe(e).overflow===-2&&(t=n[Dr]<0||n[Dr]>11?Dr:n[lr]<1||n[lr]>dd(n[Qt],n[Dr])?lr:n[$t]<0||n[$t]>24||n[$t]===24&&(n[Fn]!==0||n[Pr]!==0||n[Ss]!==0)?$t:n[Fn]<0||n[Fn]>59?Fn:n[Pr]<0||n[Pr]>59?Pr:n[Ss]<0||n[Ss]>999?Ss:-1,Oe(e)._overflowDayOfYear&&(t<Qt||t>lr)&&(t=lr),Oe(e)._overflowWeeks&&t===-1&&(t=lD),Oe(e)._overflowWeekday&&t===-1&&(t=cD),Oe(e).overflow=t),e}var iP=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,oP=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,aP=/Z|[+-]\d\d(?::?\d\d)?/,Dl=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],yd=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],lP=/^\/?Date\((-?\d+)/i,cP=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,uP={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function By(e){var t,n,r=e._i,s=iP.exec(r)||oP.exec(r),i,o,a,l,u=Dl.length,d=yd.length;if(s){for(Oe(e).iso=!0,t=0,n=u;t<n;t++)if(Dl[t][1].exec(s[1])){o=Dl[t][0],i=Dl[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(s[3]){for(t=0,n=d;t<n;t++)if(yd[t][1].exec(s[3])){a=(s[2]||" ")+yd[t][0];break}if(a==null){e._isValid=!1;return}}if(!i&&a!=null){e._isValid=!1;return}if(s[4])if(aP.exec(s[4]))l="Z";else{e._isValid=!1;return}e._f=o+(a||"")+(l||""),vd(e)}else e._isValid=!1}function dP(e,t,n,r,s,i){var o=[fP(e),Dy.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(s,10)];return i&&o.push(parseInt(i,10)),o}function fP(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function hP(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function pP(e,t,n){if(e){var r=jy.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(r!==s)return Oe(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function gP(e,t,n){if(e)return uP[e];if(t)return 0;var r=parseInt(n,10),s=r%100,i=(r-s)/100;return i*60+s}function zy(e){var t=cP.exec(hP(e._i)),n;if(t){if(n=dP(t[4],t[3],t[2],t[5],t[6],t[7]),!pP(t[1],n,e))return;e._a=n,e._tzm=gP(t[8],t[9],t[10]),e._d=jo.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Oe(e).rfc2822=!0}else e._isValid=!1}function mP(e){var t=lP.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(By(e),e._isValid===!1)delete e._isValid;else return;if(zy(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:le.createFromInputFallback(e)}le.createFromInputFallback=Tn("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function di(e,t,n){return e??t??n}function yP(e){var t=new Date(le.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function bd(e){var t,n,r=[],s,i,o;if(!e._d){for(s=yP(e),e._w&&e._a[lr]==null&&e._a[Dr]==null&&bP(e),e._dayOfYear!=null&&(o=di(e._a[Qt],s[Qt]),(e._dayOfYear>Io(o)||e._dayOfYear===0)&&(Oe(e)._overflowDayOfYear=!0),n=jo(o,0,e._dayOfYear),e._a[Dr]=n.getUTCMonth(),e._a[lr]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=s[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[$t]===24&&e._a[Fn]===0&&e._a[Pr]===0&&e._a[Ss]===0&&(e._nextDay=!0,e._a[$t]=0),e._d=(e._useUTC?jo:TD).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[$t]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(Oe(e).weekdayMismatch=!0)}}function bP(e){var t,n,r,s,i,o,a,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,o=4,n=di(t.GG,e._a[Qt],Fo(ht(),1,4).year),r=di(t.W,1),s=di(t.E,1),(s<1||s>7)&&(l=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,u=Fo(ht(),i,o),n=di(t.gg,e._a[Qt],u.year),r=di(t.w,u.week),t.d!=null?(s=t.d,(s<0||s>6)&&(l=!0)):t.e!=null?(s=t.e+i,(t.e<0||t.e>6)&&(l=!0)):s=i),r<1||r>Rr(n,i,o)?Oe(e)._overflowWeeks=!0:l!=null?Oe(e)._overflowWeekday=!0:(a=Ny(n,r,s,i,o),e._a[Qt]=a.year,e._dayOfYear=a.dayOfYear)}le.ISO_8601=function(){},le.RFC_2822=function(){};function vd(e){if(e._f===le.ISO_8601){By(e);return}if(e._f===le.RFC_2822){zy(e);return}e._a=[],Oe(e).empty=!0;var t=""+e._i,n,r,s,i,o,a=t.length,l=0,u,d;for(s=wy(e._f,e._locale).match(sd)||[],d=s.length,n=0;n<d;n++)i=s[n],r=(t.match(iD(i,e))||[])[0],r&&(o=t.substr(0,t.indexOf(r)),o.length>0&&Oe(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),l+=r.length),ai[i]?(r?Oe(e).empty=!1:Oe(e).unusedTokens.push(i),aD(i,r,e)):e._strict&&!r&&Oe(e).unusedTokens.push(i);Oe(e).charsLeftOver=a-l,t.length>0&&Oe(e).unusedInput.push(t),e._a[$t]<=12&&Oe(e).bigHour===!0&&e._a[$t]>0&&(Oe(e).bigHour=void 0),Oe(e).parsedDateParts=e._a.slice(0),Oe(e).meridiem=e._meridiem,e._a[$t]=vP(e._locale,e._a[$t],e._meridiem),u=Oe(e).era,u!==null&&(e._a[Qt]=e._locale.erasConvertYear(u,e._a[Qt])),bd(e),md(e)}function vP(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function xP(e){var t,n,r,s,i,o,a=!1,l=e._f.length;if(l===0){Oe(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<l;s++)i=0,o=!1,t=ed({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],vd(t),Qu(t)&&(o=!0),i+=Oe(t).charsLeftOver,i+=Oe(t).unusedTokens.length*10,Oe(t).score=i,a?i<r&&(r=i,n=t):(r==null||i<r||o)&&(r=i,n=t,o&&(a=!0));Xr(e,n||t)}function _P(e){if(!e._d){var t=od(e._i),n=t.day===void 0?t.date:t.day;e._a=yy([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),bd(e)}}function wP(e){var t=new Po(md(Yy(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Yy(e){var t=e._i,n=e._f;return e._locale=e._locale||Ar(e._l),t===null||n===void 0&&t===""?bl({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),jn(t)?new Po(md(t)):(Do(t)?e._d=t:Nn(n)?xP(e):n?vd(e):SP(e),Qu(e)||(e._d=null),e))}function SP(e){var t=e._i;on(t)?e._d=new Date(le.now()):Do(t)?e._d=new Date(t.valueOf()):typeof t=="string"?mP(e):Nn(t)?(e._a=yy(t.slice(0),function(n){return parseInt(n,10)}),bd(e)):ws(t)?_P(e):Mr(t)?e._d=new Date(t):le.createFromInputFallback(e)}function Vy(e,t,n,r,s){var i={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(ws(e)&&Ku(e)||Nn(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=s,i._l=n,i._i=e,i._f=t,i._strict=r,wP(i)}function ht(e,t,n,r){return Vy(e,t,n,r,!1)}var TP=Tn("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ht.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:bl()}),kP=Tn("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ht.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:bl()});function Hy(e,t){var n,r;if(t.length===1&&Nn(t[0])&&(t=t[0]),!t.length)return ht();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function OP(){var e=[].slice.call(arguments,0);return Hy("isBefore",e)}function CP(){var e=[].slice.call(arguments,0);return Hy("isAfter",e)}var MP=function(){return Date.now?Date.now():+new Date},Wo=["year","quarter","month","week","day","hour","minute","second","millisecond"];function EP(e){var t,n=!1,r,s=Wo.length;for(t in e)if(Fe(e,t)&&!(Dt.call(Wo,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<s;++r)if(e[Wo[r]]){if(n)return!1;parseFloat(e[Wo[r]])!==Me(e[Wo[r]])&&(n=!0)}return!0}function DP(){return this._isValid}function PP(){return $n(NaN)}function Pl(e){var t=od(e),n=t.year||0,r=t.quarter||0,s=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=EP(t),this._milliseconds=+d+u*1e3+l*6e4+a*1e3*60*60,this._days=+o+i*7,this._months=+s+r*3+n*12,this._data={},this._locale=Ar(),this._bubble()}function Rl(e){return e instanceof Pl}function xd(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function RP(e,t,n){var r=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),i=0,o;for(o=0;o<r;o++)Me(e[o])!==Me(t[o])&&i++;return i+s}function Uy(e,t){be(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+ar(~~(n/60),2)+t+ar(~~n%60,2)})}Uy("Z",":"),Uy("ZZ",""),pe("Z",kl),pe("ZZ",kl),tt(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=_d(kl,e)});var AP=/([\+\-]|\d\d)/gi;function _d(e,t){var n=(t||"").match(e),r,s,i;return n===null?null:(r=n[n.length-1]||[],s=(r+"").match(AP)||["-",0,0],i=+(s[1]*60)+Me(s[2]),i===0?0:s[0]==="+"?i:-i)}function wd(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(jn(e)||Do(e)?e.valueOf():ht(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),le.updateOffset(n,!1),n):ht(e).local()}function Sd(e){return-Math.round(e._d.getTimezoneOffset())}le.updateOffset=function(){};function IP(e,t,n){var r=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=_d(kl,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(s=Sd(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),r!==e&&(!t||this._changeInProgress?Ky(this,$n(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,le.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Sd(this)}function NP(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function jP(e){return this.utcOffset(0,e)}function FP(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Sd(this),"m")),this}function $P(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=_d(rD,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function LP(e){return this.isValid()?(e=e?ht(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function WP(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function BP(){if(!on(this._isDSTShifted))return this._isDSTShifted;var e={},t;return ed(e,this),e=Yy(e),e._a?(t=e._isUTC?ir(e._a):ht(e._a),this._isDSTShifted=this.isValid()&&RP(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function zP(){return this.isValid()?!this._isUTC:!1}function YP(){return this.isValid()?this._isUTC:!1}function qy(){return this.isValid()?this._isUTC&&this._offset===0:!1}var VP=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,HP=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function $n(e,t){var n=e,r=null,s,i,o;return Rl(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Mr(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=VP.exec(e))?(s=r[1]==="-"?-1:1,n={y:0,d:Me(r[lr])*s,h:Me(r[$t])*s,m:Me(r[Fn])*s,s:Me(r[Pr])*s,ms:Me(xd(r[Ss]*1e3))*s}):(r=HP.exec(e))?(s=r[1]==="-"?-1:1,n={y:Ts(r[2],s),M:Ts(r[3],s),w:Ts(r[4],s),d:Ts(r[5],s),h:Ts(r[6],s),m:Ts(r[7],s),s:Ts(r[8],s)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=UP(ht(n.from),ht(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),i=new Pl(n),Rl(e)&&Fe(e,"_locale")&&(i._locale=e._locale),Rl(e)&&Fe(e,"_isValid")&&(i._isValid=e._isValid),i}$n.fn=Pl.prototype,$n.invalid=PP;function Ts(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Gy(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function UP(e,t){var n;return e.isValid()&&t.isValid()?(t=wd(t,e),e.isBefore(t)?n=Gy(e,t):(n=Gy(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Xy(e,t){return function(n,r){var s,i;return r!==null&&!isNaN(+r)&&(_y(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),s=$n(n,r),Ky(this,s,e),this}}function Ky(e,t,n,r){var s=t._milliseconds,i=xd(t._days),o=xd(t._months);e.isValid()&&(r=r??!0,o&&Ry(e,No(e,"Month")+o*n),i&&Ey(e,"Date",No(e,"Date")+i*n),s&&e._d.setTime(e._d.valueOf()+s*n),r&&le.updateOffset(e,i||o))}var qP=Xy(1,"add"),GP=Xy(-1,"subtract");function Zy(e){return typeof e=="string"||e instanceof String}function XP(e){return jn(e)||Do(e)||Zy(e)||Mr(e)||ZP(e)||KP(e)||e===null||e===void 0}function KP(e){var t=ws(e)&&!Ku(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,i,o=r.length;for(s=0;s<o;s+=1)i=r[s],n=n||Fe(e,i);return t&&n}function ZP(e){var t=Nn(e),n=!1;return t&&(n=e.filter(function(r){return!Mr(r)&&Zy(e)}).length===0),t&&n}function QP(e){var t=ws(e)&&!Ku(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,i;for(s=0;s<r.length;s+=1)i=r[s],n=n||Fe(e,i);return t&&n}function JP(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function eR(e,t){arguments.length===1&&(arguments[0]?XP(arguments[0])?(e=arguments[0],t=void 0):QP(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||ht(),r=wd(n,this).startOf("day"),s=le.calendarFormat(this,r)||"sameElse",i=t&&(or(t[s])?t[s].call(this,n):t[s]);return this.format(i||this.localeData().calendar(s,this,ht(n)))}function tR(){return new Po(this)}function nR(e,t){var n=jn(e)?e:ht(e);return this.isValid()&&n.isValid()?(t=kn(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function rR(e,t){var n=jn(e)?e:ht(e);return this.isValid()&&n.isValid()?(t=kn(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function sR(e,t,n,r){var s=jn(e)?e:ht(e),i=jn(t)?t:ht(t);return this.isValid()&&s.isValid()&&i.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(s,n):!this.isBefore(s,n))&&(r[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function iR(e,t){var n=jn(e)?e:ht(e),r;return this.isValid()&&n.isValid()?(t=kn(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function oR(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function aR(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function lR(e,t,n){var r,s,i;if(!this.isValid())return NaN;if(r=wd(e,this),!r.isValid())return NaN;switch(s=(r.utcOffset()-this.utcOffset())*6e4,t=kn(t),t){case"year":i=Al(this,r)/12;break;case"month":i=Al(this,r);break;case"quarter":i=Al(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-s)/864e5;break;case"week":i=(this-r-s)/6048e5;break;default:i=this-r}return n?i:On(i)}function Al(e,t){if(e.date()<t.date())return-Al(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),s,i;return t-r<0?(s=e.clone().add(n-1,"months"),i=(t-r)/(r-s)):(s=e.clone().add(n+1,"months"),i=(t-r)/(s-r)),-(n+i)||0}le.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",le.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function cR(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function uR(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?xl(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):or(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",xl(n,"Z")):xl(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function dR(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,s,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+s+i)}function fR(e){e||(e=this.isUtc()?le.defaultFormatUtc:le.defaultFormat);var t=xl(this,e);return this.localeData().postformat(t)}function hR(e,t){return this.isValid()&&(jn(e)&&e.isValid()||ht(e).isValid())?$n({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pR(e){return this.from(ht(),e)}function gR(e,t){return this.isValid()&&(jn(e)&&e.isValid()||ht(e).isValid())?$n({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mR(e){return this.to(ht(),e)}function Qy(e){var t;return e===void 0?this._locale._abbr:(t=Ar(e),t!=null&&(this._locale=t),this)}var Jy=Tn("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function eb(){return this._locale}var Il=1e3,fi=60*Il,Nl=60*fi,tb=(365*400+97)*24*Nl;function hi(e,t){return(e%t+t)%t}function nb(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-tb:new Date(e,t,n).valueOf()}function rb(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-tb:Date.UTC(e,t,n)}function yR(e){var t,n;if(e=kn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?rb:nb,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=hi(t+(this._isUTC?0:this.utcOffset()*fi),Nl);break;case"minute":t=this._d.valueOf(),t-=hi(t,fi);break;case"second":t=this._d.valueOf(),t-=hi(t,Il);break}return this._d.setTime(t),le.updateOffset(this,!0),this}function bR(e){var t,n;if(e=kn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?rb:nb,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Nl-hi(t+(this._isUTC?0:this.utcOffset()*fi),Nl)-1;break;case"minute":t=this._d.valueOf(),t+=fi-hi(t,fi)-1;break;case"second":t=this._d.valueOf(),t+=Il-hi(t,Il)-1;break}return this._d.setTime(t),le.updateOffset(this,!0),this}function vR(){return this._d.valueOf()-(this._offset||0)*6e4}function xR(){return Math.floor(this.valueOf()/1e3)}function _R(){return new Date(this.valueOf())}function wR(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function SR(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function TR(){return this.isValid()?this.toISOString():null}function kR(){return Qu(this)}function OR(){return Xr({},Oe(this))}function CR(){return Oe(this).overflow}function MR(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}be("N",0,0,"eraAbbr"),be("NN",0,0,"eraAbbr"),be("NNN",0,0,"eraAbbr"),be("NNNN",0,0,"eraName"),be("NNNNN",0,0,"eraNarrow"),be("y",["y",1],"yo","eraYear"),be("y",["yy",2],0,"eraYear"),be("y",["yyy",3],0,"eraYear"),be("y",["yyyy",4],0,"eraYear"),pe("N",Td),pe("NN",Td),pe("NNN",Td),pe("NNNN",LR),pe("NNNNN",WR),tt(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var s=n._locale.erasParse(e,r,n._strict);s?Oe(n).era=s:Oe(n).invalidEra=e}),pe("y",li),pe("yy",li),pe("yyy",li),pe("yyyy",li),pe("yo",BR),tt(["y","yy","yyy","yyyy"],Qt),tt(["yo"],function(e,t,n,r){var s;n._locale._eraYearOrdinalRegex&&(s=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Qt]=n._locale.eraYearOrdinalParse(e,s):t[Qt]=parseInt(e,10)});function ER(e,t){var n,r,s,i=this._eras||Ar("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":s=le(i[n].since).startOf("day"),i[n].since=s.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":s=le(i[n].until).startOf("day").valueOf(),i[n].until=s.valueOf();break}}return i}function DR(e,t,n){var r,s,i=this.eras(),o,a,l;for(e=e.toUpperCase(),r=0,s=i.length;r<s;++r)if(o=i[r].name.toUpperCase(),a=i[r].abbr.toUpperCase(),l=i[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return i[r];break;case"NNNN":if(o===e)return i[r];break;case"NNNNN":if(l===e)return i[r];break}else if([o,a,l].indexOf(e)>=0)return i[r]}function PR(e,t){var n=e.since<=e.until?1:-1;return t===void 0?le(e.since).year():le(e.since).year()+(t-e.offset)*n}function RR(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function AR(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function IR(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function NR(){var e,t,n,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=s[e].since<=s[e].until?1:-1,r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return(this.year()-le(s[e].since).year())*n+s[e].offset;return this.year()}function jR(e){return Fe(this,"_erasNameRegex")||kd.call(this),e?this._erasNameRegex:this._erasRegex}function FR(e){return Fe(this,"_erasAbbrRegex")||kd.call(this),e?this._erasAbbrRegex:this._erasRegex}function $R(e){return Fe(this,"_erasNarrowRegex")||kd.call(this),e?this._erasNarrowRegex:this._erasRegex}function Td(e,t){return t.erasAbbrRegex(e)}function LR(e,t){return t.erasNameRegex(e)}function WR(e,t){return t.erasNarrowRegex(e)}function BR(e,t){return t._eraYearOrdinalRegex||li}function kd(){var e=[],t=[],n=[],r=[],s,i,o,a,l,u=this.eras();for(s=0,i=u.length;s<i;++s)o=Er(u[s].name),a=Er(u[s].abbr),l=Er(u[s].narrow),t.push(o),e.push(a),n.push(l),r.push(o),r.push(a),r.push(l);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}be(0,["gg",2],0,function(){return this.weekYear()%100}),be(0,["GG",2],0,function(){return this.isoWeekYear()%100});function jl(e,t){be(0,[e,e.length],0,t)}jl("gggg","weekYear"),jl("ggggg","weekYear"),jl("GGGG","isoWeekYear"),jl("GGGGG","isoWeekYear"),pe("G",Tl),pe("g",Tl),pe("GG",ft,pn),pe("gg",ft,pn),pe("GGGG",ld,ad),pe("gggg",ld,ad),pe("GGGGG",Sl,_l),pe("ggggg",Sl,_l),Ao(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Me(e)}),Ao(["gg","GG"],function(e,t,n,r){t[r]=le.parseTwoDigitYear(e)});function zR(e){return sb.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function YR(e){return sb.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function VR(){return Rr(this.year(),1,4)}function HR(){return Rr(this.isoWeekYear(),1,4)}function UR(){var e=this.localeData()._week;return Rr(this.year(),e.dow,e.doy)}function qR(){var e=this.localeData()._week;return Rr(this.weekYear(),e.dow,e.doy)}function sb(e,t,n,r,s){var i;return e==null?Fo(this,r,s).year:(i=Rr(e,r,s),t>i&&(t=i),GR.call(this,e,t,n,r,s))}function GR(e,t,n,r,s){var i=Ny(e,t,n,r,s),o=jo(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}be("Q",0,"Qo","quarter"),pe("Q",Ty),tt("Q",function(e,t){t[Dr]=(Me(e)-1)*3});function XR(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}be("D",["DD",2],"Do","date"),pe("D",ft,ci),pe("DD",ft,pn),pe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),tt(["D","DD"],lr),tt("Do",function(e,t){t[lr]=Me(e.match(ft)[0])});var ib=ui("Date",!0);be("DDD",["DDDD",3],"DDDo","dayOfYear"),pe("DDD",wl),pe("DDDD",ky),tt(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Me(e)});function KR(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}be("m",["mm",2],0,"minute"),pe("m",ft,cd),pe("mm",ft,pn),tt(["m","mm"],Fn);var ZR=ui("Minutes",!1);be("s",["ss",2],0,"second"),pe("s",ft,cd),pe("ss",ft,pn),tt(["s","ss"],Pr);var QR=ui("Seconds",!1);be("S",0,0,function(){return~~(this.millisecond()/100)}),be(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),be(0,["SSS",3],0,"millisecond"),be(0,["SSSS",4],0,function(){return this.millisecond()*10}),be(0,["SSSSS",5],0,function(){return this.millisecond()*100}),be(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),be(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),be(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),be(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),pe("S",wl,Ty),pe("SS",wl,pn),pe("SSS",wl,ky);var Zr,ob;for(Zr="SSSS";Zr.length<=9;Zr+="S")pe(Zr,li);function JR(e,t){t[Ss]=Me(("0."+e)*1e3)}for(Zr="S";Zr.length<=9;Zr+="S")tt(Zr,JR);ob=ui("Milliseconds",!1),be("z",0,0,"zoneAbbr"),be("zz",0,0,"zoneName");function eA(){return this._isUTC?"UTC":""}function tA(){return this._isUTC?"Coordinated Universal Time":""}var se=Po.prototype;se.add=qP,se.calendar=eR,se.clone=tR,se.diff=lR,se.endOf=bR,se.format=fR,se.from=hR,se.fromNow=pR,se.to=gR,se.toNow=mR,se.get=dD,se.invalidAt=CR,se.isAfter=nR,se.isBefore=rR,se.isBetween=sR,se.isSame=iR,se.isSameOrAfter=oR,se.isSameOrBefore=aR,se.isValid=kR,se.lang=Jy,se.locale=Qy,se.localeData=eb,se.max=kP,se.min=TP,se.parsingFlags=OR,se.set=fD,se.startOf=yR,se.subtract=GP,se.toArray=wR,se.toObject=SR,se.toDate=_R,se.toISOString=uR,se.inspect=dR,typeof Symbol<"u"&&Symbol.for!=null&&(se[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),se.toJSON=TR,se.toString=cR,se.unix=xR,se.valueOf=vR,se.creationData=MR,se.eraName=RR,se.eraNarrow=AR,se.eraAbbr=IR,se.eraYear=NR,se.year=My,se.isLeapYear=uD,se.weekYear=zR,se.isoWeekYear=YR,se.quarter=se.quarters=XR,se.month=Ay,se.daysInMonth=_D,se.week=se.weeks=ED,se.isoWeek=se.isoWeeks=DD,se.weeksInYear=UR,se.weeksInWeekYear=qR,se.isoWeeksInYear=VR,se.isoWeeksInISOWeekYear=HR,se.date=ib,se.day=se.days=YD,se.weekday=VD,se.isoWeekday=HD,se.dayOfYear=KR,se.hour=se.hours=QD,se.minute=se.minutes=ZR,se.second=se.seconds=QR,se.millisecond=se.milliseconds=ob,se.utcOffset=IP,se.utc=jP,se.local=FP,se.parseZone=$P,se.hasAlignedHourOffset=LP,se.isDST=WP,se.isLocal=zP,se.isUtcOffset=YP,se.isUtc=qy,se.isUTC=qy,se.zoneAbbr=eA,se.zoneName=tA,se.dates=Tn("dates accessor is deprecated. Use date instead.",ib),se.months=Tn("months accessor is deprecated. Use month instead",Ay),se.years=Tn("years accessor is deprecated. Use year instead",My),se.zone=Tn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",NP),se.isDSTShifted=Tn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",BP);function nA(e){return ht(e*1e3)}function rA(){return ht.apply(null,arguments).parseZone()}function ab(e){return e}var $e=nd.prototype;$e.calendar=zE,$e.longDateFormat=UE,$e.invalidDate=GE,$e.ordinal=ZE,$e.preparse=ab,$e.postformat=ab,$e.relativeTime=JE,$e.pastFuture=eD,$e.set=WE,$e.eras=ER,$e.erasParse=DR,$e.erasConvertYear=PR,$e.erasAbbrRegex=FR,$e.erasNameRegex=jR,$e.erasNarrowRegex=$R,$e.months=yD,$e.monthsShort=bD,$e.monthsParse=xD,$e.monthsRegex=SD,$e.monthsShortRegex=wD,$e.week=kD,$e.firstDayOfYear=MD,$e.firstDayOfWeek=CD,$e.weekdays=$D,$e.weekdaysMin=WD,$e.weekdaysShort=LD,$e.weekdaysParse=zD,$e.weekdaysRegex=UD,$e.weekdaysShortRegex=qD,$e.weekdaysMinRegex=GD,$e.isPM=KD,$e.meridiem=JD;function Fl(e,t,n,r){var s=Ar(),i=ir().set(r,t);return s[n](i,e)}function lb(e,t,n){if(Mr(e)&&(t=e,e=void 0),e=e||"",t!=null)return Fl(e,t,n,"month");var r,s=[];for(r=0;r<12;r++)s[r]=Fl(e,r,n,"month");return s}function Od(e,t,n,r){typeof e=="boolean"?(Mr(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Mr(t)&&(n=t,t=void 0),t=t||"");var s=Ar(),i=e?s._week.dow:0,o,a=[];if(n!=null)return Fl(t,(n+i)%7,r,"day");for(o=0;o<7;o++)a[o]=Fl(t,(o+i)%7,r,"day");return a}function sA(e,t){return lb(e,t,"months")}function iA(e,t){return lb(e,t,"monthsShort")}function oA(e,t,n){return Od(e,t,n,"weekdays")}function aA(e,t,n){return Od(e,t,n,"weekdaysShort")}function lA(e,t,n){return Od(e,t,n,"weekdaysMin")}Kr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Me(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),le.lang=Tn("moment.lang is deprecated. Use moment.locale instead.",Kr),le.langData=Tn("moment.langData is deprecated. Use moment.localeData instead.",Ar);var Ir=Math.abs;function cA(){var e=this._data;return this._milliseconds=Ir(this._milliseconds),this._days=Ir(this._days),this._months=Ir(this._months),e.milliseconds=Ir(e.milliseconds),e.seconds=Ir(e.seconds),e.minutes=Ir(e.minutes),e.hours=Ir(e.hours),e.months=Ir(e.months),e.years=Ir(e.years),this}function cb(e,t,n,r){var s=$n(t,n);return e._milliseconds+=r*s._milliseconds,e._days+=r*s._days,e._months+=r*s._months,e._bubble()}function uA(e,t){return cb(this,e,t,1)}function dA(e,t){return cb(this,e,t,-1)}function ub(e){return e<0?Math.floor(e):Math.ceil(e)}function fA(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,s,i,o,a,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=ub(Cd(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,s=On(e/1e3),r.seconds=s%60,i=On(s/60),r.minutes=i%60,o=On(i/60),r.hours=o%24,t+=On(o/24),l=On(db(t)),n+=l,t-=ub(Cd(l)),a=On(n/12),n%=12,r.days=t,r.months=n,r.years=a,this}function db(e){return e*4800/146097}function Cd(e){return e*146097/4800}function hA(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=kn(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+db(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Cd(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Nr(e){return function(){return this.as(e)}}var fb=Nr("ms"),pA=Nr("s"),gA=Nr("m"),mA=Nr("h"),yA=Nr("d"),bA=Nr("w"),vA=Nr("M"),xA=Nr("Q"),_A=Nr("y"),wA=fb;function SA(){return $n(this)}function TA(e){return e=kn(e),this.isValid()?this[e+"s"]():NaN}function ks(e){return function(){return this.isValid()?this._data[e]:NaN}}var kA=ks("milliseconds"),OA=ks("seconds"),CA=ks("minutes"),MA=ks("hours"),EA=ks("days"),DA=ks("months"),PA=ks("years");function RA(){return On(this.days()/7)}var jr=Math.round,pi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function AA(e,t,n,r,s){return s.relativeTime(t||1,!!n,e,r)}function IA(e,t,n,r){var s=$n(e).abs(),i=jr(s.as("s")),o=jr(s.as("m")),a=jr(s.as("h")),l=jr(s.as("d")),u=jr(s.as("M")),d=jr(s.as("w")),f=jr(s.as("y")),h=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||o<=1&&["m"]||o<n.m&&["mm",o]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return n.w!=null&&(h=h||d<=1&&["w"]||d<n.w&&["ww",d]),h=h||u<=1&&["M"]||u<n.M&&["MM",u]||f<=1&&["y"]||["yy",f],h[2]=t,h[3]=+e>0,h[4]=r,AA.apply(null,h)}function NA(e){return e===void 0?jr:typeof e=="function"?(jr=e,!0):!1}function jA(e,t){return pi[e]===void 0?!1:t===void 0?pi[e]:(pi[e]=t,e==="s"&&(pi.ss=t-1),!0)}function FA(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=pi,s,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},pi,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),s=this.localeData(),i=IA(this,!n,r,s),n&&(i=s.pastFuture(+this,i)),s.postformat(i)}var Md=Math.abs;function gi(e){return(e>0)-(e<0)||+e}function $l(){if(!this.isValid())return this.localeData().invalidDate();var e=Md(this._milliseconds)/1e3,t=Md(this._days),n=Md(this._months),r,s,i,o,a=this.asSeconds(),l,u,d,f;return a?(r=On(e/60),s=On(r/60),e%=60,r%=60,i=On(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",u=gi(this._months)!==gi(a)?"-":"",d=gi(this._days)!==gi(a)?"-":"",f=gi(this._milliseconds)!==gi(a)?"-":"",l+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(s||r||e?"T":"")+(s?f+s+"H":"")+(r?f+r+"M":"")+(e?f+o+"S":"")):"P0D"}var Re=Pl.prototype;Re.isValid=DP,Re.abs=cA,Re.add=uA,Re.subtract=dA,Re.as=hA,Re.asMilliseconds=fb,Re.asSeconds=pA,Re.asMinutes=gA,Re.asHours=mA,Re.asDays=yA,Re.asWeeks=bA,Re.asMonths=vA,Re.asQuarters=xA,Re.asYears=_A,Re.valueOf=wA,Re._bubble=fA,Re.clone=SA,Re.get=TA,Re.milliseconds=kA,Re.seconds=OA,Re.minutes=CA,Re.hours=MA,Re.days=EA,Re.weeks=RA,Re.months=DA,Re.years=PA,Re.humanize=FA,Re.toISOString=$l,Re.toString=$l,Re.toJSON=$l,Re.locale=Qy,Re.localeData=eb,Re.toIsoString=Tn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$l),Re.lang=Jy,be("X",0,0,"unix"),be("x",0,0,"valueOf"),pe("x",Tl),pe("X",sD),tt("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),tt("x",function(e,t,n){n._d=new Date(Me(e))});//! moment.js
239
+ le.version="2.30.1",$E(ht),le.fn=se,le.min=OP,le.max=CP,le.now=MP,le.utc=ir,le.unix=nA,le.months=sA,le.isDate=Do,le.locale=Kr,le.invalid=bl,le.duration=$n,le.isMoment=jn,le.weekdays=oA,le.parseZone=rA,le.localeData=Ar,le.isDuration=Rl,le.monthsShort=iA,le.weekdaysMin=lA,le.defineLocale=gd,le.updateLocale=rP,le.locales=sP,le.weekdaysShort=aA,le.normalizeUnits=kn,le.relativeTimeRounding=NA,le.relativeTimeThreshold=jA,le.calendarFormat=JP,le.prototype=se,le.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var Bo=e=>e.type==="checkbox",Os=e=>e instanceof Date,en=e=>e==null;const hb=e=>typeof e=="object";var Pt=e=>!en(e)&&!Array.isArray(e)&&hb(e)&&!Os(e),$A=e=>Pt(e)&&e.target?Bo(e.target)?e.target.checked:e.target.value:e,LA=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,WA=(e,t)=>e.has(LA(t)),BA=e=>{const t=e.constructor&&e.constructor.prototype;return Pt(t)&&t.hasOwnProperty("isPrototypeOf")},Ed=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Cn(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Ed&&(e instanceof Blob||r))&&(n||Pt(e)))if(t=n?[]:{},!n&&!BA(e))t=e;else for(const s in e)e.hasOwnProperty(s)&&(t[s]=Cn(e[s]));else return e;return t}var Ll=e=>Array.isArray(e)?e.filter(Boolean):[],kt=e=>e===void 0,me=(e,t,n)=>{if(!t||!Pt(e))return n;const r=Ll(t.split(/[,[\].]+?/)).reduce((s,i)=>en(s)?s:s[i],e);return kt(r)||r===e?kt(e[t])?n:e[t]:r},cr=e=>typeof e=="boolean",Dd=e=>/^\w*$/.test(e),pb=e=>Ll(e.replace(/["|']|\]/g,"").split(/\.|\[/)),pt=(e,t,n)=>{let r=-1;const s=Dd(t)?[t]:pb(t),i=s.length,o=i-1;for(;++r<i;){const a=s[r];let l=n;if(r!==o){const u=e[a];l=Pt(u)||Array.isArray(u)?u:isNaN(+s[r+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;e[a]=l,e=e[a]}return e};const gb={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ln={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Fr={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};Y.createContext(null);var zA=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==Ln.all&&(t._proxyFormState[o]=!r||Ln.all),e[o]}});return s},an=e=>Pt(e)&&!Object.keys(e).length,YA=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return an(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===Ln.all)},Wl=e=>Array.isArray(e)?e:[e];function VA(e){const t=Y.useRef(e);t.current=e,Y.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var ur=e=>typeof e=="string",HA=(e,t,n,r,s)=>ur(e)?(r&&t.watch.add(e),me(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),me(n,i))):(r&&(t.watchAll=!0),n),UA=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},mb=e=>({isOnSubmit:!e||e===Ln.onSubmit,isOnBlur:e===Ln.onBlur,isOnChange:e===Ln.onChange,isOnAll:e===Ln.all,isOnTouch:e===Ln.onTouched}),yb=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const zo=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=me(e,s);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(zo(a,t))break}else if(Pt(a)&&zo(a,t))break}}};var qA=(e,t,n)=>{const r=Wl(me(e,n));return pt(r,"root",t[n]),pt(e,n,r),e},Pd=e=>e.type==="file",dr=e=>typeof e=="function",Bl=e=>{if(!Ed)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},zl=e=>ur(e),Rd=e=>e.type==="radio",Yl=e=>e instanceof RegExp;const bb={value:!1,isValid:!1},vb={value:!0,isValid:!0};var xb=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!kt(e[0].attributes.value)?kt(e[0].value)||e[0].value===""?vb:{value:e[0].value,isValid:!0}:vb:bb}return bb};const _b={isValid:!1,value:null};var wb=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,_b):_b;function Sb(e,t,n="validate"){if(zl(e)||Array.isArray(e)&&e.every(zl)||cr(e)&&!e)return{type:n,message:zl(e)?e:"",ref:t}}var mi=e=>Pt(e)&&!Yl(e)?e:{value:e,message:""},Tb=async(e,t,n,r,s)=>{const{ref:i,refs:o,required:a,maxLength:l,minLength:u,min:d,max:f,pattern:h,validate:p,name:m,valueAsNumber:y,mount:g,disabled:x}=e._f,w=me(t,m);if(!g||x)return{};const S=o?o[0]:i,T=I=>{r&&S.reportValidity&&(S.setCustomValidity(cr(I)?"":I||""),S.reportValidity())},_={},C=Rd(i),M=Bo(i),k=C||M,R=(y||Pd(i))&&kt(i.value)&&kt(w)||Bl(i)&&i.value===""||w===""||Array.isArray(w)&&!w.length,b=UA.bind(null,m,n,_),E=(I,W,j,O=Fr.maxLength,D=Fr.minLength)=>{const L=I?W:j;_[m]={type:I?O:D,message:L,ref:i,...b(I?O:D,L)}};if(s?!Array.isArray(w)||!w.length:a&&(!k&&(R||en(w))||cr(w)&&!w||M&&!xb(o).isValid||C&&!wb(o).isValid)){const{value:I,message:W}=zl(a)?{value:!!a,message:a}:mi(a);if(I&&(_[m]={type:Fr.required,message:W,ref:S,...b(Fr.required,W)},!n))return T(W),_}if(!R&&(!en(d)||!en(f))){let I,W;const j=mi(f),O=mi(d);if(!en(w)&&!isNaN(w)){const D=i.valueAsNumber||w&&+w;en(j.value)||(I=D>j.value),en(O.value)||(W=D<O.value)}else{const D=i.valueAsDate||new Date(w),L=$=>new Date(new Date().toDateString()+" "+$),F=i.type=="time",z=i.type=="week";ur(j.value)&&w&&(I=F?L(w)>L(j.value):z?w>j.value:D>new Date(j.value)),ur(O.value)&&w&&(W=F?L(w)<L(O.value):z?w<O.value:D<new Date(O.value))}if((I||W)&&(E(!!I,j.message,O.message,Fr.max,Fr.min),!n))return T(_[m].message),_}if((l||u)&&!R&&(ur(w)||s&&Array.isArray(w))){const I=mi(l),W=mi(u),j=!en(I.value)&&w.length>+I.value,O=!en(W.value)&&w.length<+W.value;if((j||O)&&(E(j,I.message,W.message),!n))return T(_[m].message),_}if(h&&!R&&ur(w)){const{value:I,message:W}=mi(h);if(Yl(I)&&!w.match(I)&&(_[m]={type:Fr.pattern,message:W,ref:i,...b(Fr.pattern,W)},!n))return T(W),_}if(p){if(dr(p)){const I=await p(w,t),W=Sb(I,S);if(W&&(_[m]={...W,...b(Fr.validate,W.message)},!n))return T(W.message),_}else if(Pt(p)){let I={};for(const W in p){if(!an(I)&&!n)break;const j=Sb(await p[W](w,t),S,W);j&&(I={...j,...b(W,j.message)},T(j.message),n&&(_[m]=I))}if(!an(I)&&(_[m]={ref:S,...I},!n))return _}}return T(!0),_};function GA(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=kt(e)?r++:e[t[r++]];return e}function XA(e){for(const t in e)if(e.hasOwnProperty(t)&&!kt(e[t]))return!1;return!0}function Lt(e,t){const n=Array.isArray(t)?t:Dd(t)?[t]:pb(t),r=n.length===1?e:GA(e,n),s=n.length-1,i=n[s];return r&&delete r[i],s!==0&&(Pt(r)&&an(r)||Array.isArray(r)&&XA(r))&&Lt(e,n.slice(0,-1)),e}var Ad=()=>{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},Id=e=>en(e)||!hb(e);function Qr(e,t){if(Id(e)||Id(t))return e===t;if(Os(e)&&Os(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n){const i=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const o=t[s];if(Os(i)&&Os(o)||Pt(i)&&Pt(o)||Array.isArray(i)&&Array.isArray(o)?!Qr(i,o):i!==o)return!1}}return!0}var kb=e=>e.type==="select-multiple",KA=e=>Rd(e)||Bo(e),Nd=e=>Bl(e)&&e.isConnected,Ob=e=>{for(const t in e)if(dr(e[t]))return!0;return!1};function Vl(e,t={}){const n=Array.isArray(e);if(Pt(e)||n)for(const r in e)Array.isArray(e[r])||Pt(e[r])&&!Ob(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Vl(e[r],t[r])):en(e[r])||(t[r]=!0);return t}function Cb(e,t,n){const r=Array.isArray(e);if(Pt(e)||r)for(const s in e)Array.isArray(e[s])||Pt(e[s])&&!Ob(e[s])?kt(t)||Id(n[s])?n[s]=Array.isArray(e[s])?Vl(e[s],[]):{...Vl(e[s])}:Cb(e[s],en(t)?{}:t[s],n[s]):n[s]=!Qr(e[s],t[s]);return n}var Yo=(e,t)=>Cb(e,t,Vl(t)),Mb=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>kt(e)?e:t?e===""?NaN:e&&+e:n&&ur(e)?new Date(e):r?r(e):e;function jd(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Pd(t)?t.files:Rd(t)?wb(e.refs).value:kb(t)?[...t.selectedOptions].map(({value:n})=>n):Bo(t)?xb(e.refs).value:Mb(kt(t.value)?e.ref.value:t.value,e)}var ZA=(e,t,n,r)=>{const s={};for(const i of e){const o=me(t,i);o&&pt(s,i,o._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},Vo=e=>kt(e)?e:Yl(e)?e.source:Pt(e)?Yl(e.value)?e.value.source:e.value:e;const Eb="AsyncFunction";var QA=e=>!!e&&!!e.validate&&!!(dr(e.validate)&&e.validate.constructor.name===Eb||Pt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Eb)),JA=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Db(e,t,n){const r=me(e,n);if(r||Dd(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),o=me(t,i),a=me(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};s.pop()}return{name:n}}var eI=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,tI=(e,t)=>!Ll(me(e,t)).length&&Lt(e,t);const nI={mode:Ln.onSubmit,reValidateMode:Ln.onChange,shouldFocusError:!0};function rI(e={}){let t={...nI,...e},n={submitCount:0,isDirty:!1,isLoading:dr(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},s=Pt(t.defaultValues)||Pt(t.values)?Cn(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:Cn(s),o={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:Ad(),array:Ad(),state:Ad()},h=mb(t.mode),p=mb(t.reValidateMode),m=t.criteriaMode===Ln.all,y=P=>B=>{clearTimeout(u),u=setTimeout(P,B)},g=async P=>{if(!t.disabled&&(d.isValid||P)){const B=t.resolver?an((await k()).errors):await b(r,!0);B!==n.isValid&&f.state.next({isValid:B})}},x=(P,B)=>{!t.disabled&&(d.isValidating||d.validatingFields)&&((P||Array.from(a.mount)).forEach(q=>{q&&(B?pt(n.validatingFields,q,B):Lt(n.validatingFields,q))}),f.state.next({validatingFields:n.validatingFields,isValidating:!an(n.validatingFields)}))},w=(P,B=[],q,ee,X=!0,te=!0)=>{if(ee&&q&&!t.disabled){if(o.action=!0,te&&Array.isArray(me(r,P))){const he=q(me(r,P),ee.argA,ee.argB);X&&pt(r,P,he)}if(te&&Array.isArray(me(n.errors,P))){const he=q(me(n.errors,P),ee.argA,ee.argB);X&&pt(n.errors,P,he),tI(n.errors,P)}if(d.touchedFields&&te&&Array.isArray(me(n.touchedFields,P))){const he=q(me(n.touchedFields,P),ee.argA,ee.argB);X&&pt(n.touchedFields,P,he)}d.dirtyFields&&(n.dirtyFields=Yo(s,i)),f.state.next({name:P,isDirty:I(P,B),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else pt(i,P,B)},S=(P,B)=>{pt(n.errors,P,B),f.state.next({errors:n.errors})},T=P=>{n.errors=P,f.state.next({errors:n.errors,isValid:!1})},_=(P,B,q,ee)=>{const X=me(r,P);if(X){const te=me(i,P,kt(q)?me(s,P):q);kt(te)||ee&&ee.defaultChecked||B?pt(i,P,B?te:jd(X._f)):O(P,te),o.mount&&g()}},C=(P,B,q,ee,X)=>{let te=!1,he=!1;const _e={name:P};if(!t.disabled){const ot=!!(me(r,P)&&me(r,P)._f&&me(r,P)._f.disabled);if(!q||ee){d.isDirty&&(he=n.isDirty,n.isDirty=_e.isDirty=I(),te=he!==_e.isDirty);const Xe=ot||Qr(me(s,P),B);he=!!(!ot&&me(n.dirtyFields,P)),Xe||ot?Lt(n.dirtyFields,P):pt(n.dirtyFields,P,!0),_e.dirtyFields=n.dirtyFields,te=te||d.dirtyFields&&he!==!Xe}if(q){const Xe=me(n.touchedFields,P);Xe||(pt(n.touchedFields,P,q),_e.touchedFields=n.touchedFields,te=te||d.touchedFields&&Xe!==q)}te&&X&&f.state.next(_e)}return te?_e:{}},M=(P,B,q,ee)=>{const X=me(n.errors,P),te=d.isValid&&cr(B)&&n.isValid!==B;if(t.delayError&&q?(l=y(()=>S(P,q)),l(t.delayError)):(clearTimeout(u),l=null,q?pt(n.errors,P,q):Lt(n.errors,P)),(q?!Qr(X,q):X)||!an(ee)||te){const he={...ee,...te&&cr(B)?{isValid:B}:{},errors:n.errors,name:P};n={...n,...he},f.state.next(he)}},k=async P=>{x(P,!0);const B=await t.resolver(i,t.context,ZA(P||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return x(P),B},R=async P=>{const{errors:B}=await k(P);if(P)for(const q of P){const ee=me(B,q);ee?pt(n.errors,q,ee):Lt(n.errors,q)}else n.errors=B;return B},b=async(P,B,q={valid:!0})=>{for(const ee in P){const X=P[ee];if(X){const{_f:te,...he}=X;if(te){const _e=a.array.has(te.name),ot=X._f&&QA(X._f);ot&&d.validatingFields&&x([ee],!0);const Xe=await Tb(X,i,m,t.shouldUseNativeValidation&&!B,_e);if(ot&&d.validatingFields&&x([ee]),Xe[te.name]&&(q.valid=!1,B))break;!B&&(me(Xe,te.name)?_e?qA(n.errors,Xe,te.name):pt(n.errors,te.name,Xe[te.name]):Lt(n.errors,te.name))}!an(he)&&await b(he,B,q)}}return q.valid},E=()=>{for(const P of a.unMount){const B=me(r,P);B&&(B._f.refs?B._f.refs.every(q=>!Nd(q)):!Nd(B._f.ref))&&ae(P)}a.unMount=new Set},I=(P,B)=>!t.disabled&&(P&&B&&pt(i,P,B),!Qr(H(),s)),W=(P,B,q)=>HA(P,a,{...o.mount?i:kt(B)?s:ur(P)?{[P]:B}:B},q,B),j=P=>Ll(me(o.mount?i:s,P,t.shouldUnregister?me(s,P,[]):[])),O=(P,B,q={})=>{const ee=me(r,P);let X=B;if(ee){const te=ee._f;te&&(!te.disabled&&pt(i,P,Mb(B,te)),X=Bl(te.ref)&&en(B)?"":B,kb(te.ref)?[...te.ref.options].forEach(he=>he.selected=X.includes(he.value)):te.refs?Bo(te.ref)?te.refs.length>1?te.refs.forEach(he=>(!he.defaultChecked||!he.disabled)&&(he.checked=Array.isArray(X)?!!X.find(_e=>_e===he.value):X===he.value)):te.refs[0]&&(te.refs[0].checked=!!X):te.refs.forEach(he=>he.checked=he.value===X):Pd(te.ref)?te.ref.value="":(te.ref.value=X,te.ref.type||f.values.next({name:P,values:{...i}})))}(q.shouldDirty||q.shouldTouch)&&C(P,X,q.shouldTouch,q.shouldDirty,!0),q.shouldValidate&&$(P)},D=(P,B,q)=>{for(const ee in B){const X=B[ee],te=`${P}.${ee}`,he=me(r,te);(a.array.has(P)||Pt(X)||he&&!he._f)&&!Os(X)?D(te,X,q):O(te,X,q)}},L=(P,B,q={})=>{const ee=me(r,P),X=a.array.has(P),te=Cn(B);pt(i,P,te),X?(f.array.next({name:P,values:{...i}}),(d.isDirty||d.dirtyFields)&&q.shouldDirty&&f.state.next({name:P,dirtyFields:Yo(s,i),isDirty:I(P,te)})):ee&&!ee._f&&!en(te)?D(P,te,q):O(P,te,q),yb(P,a)&&f.state.next({...n}),f.values.next({name:o.mount?P:void 0,values:{...i}})},F=async P=>{o.mount=!0;const B=P.target;let q=B.name,ee=!0;const X=me(r,q),te=()=>B.type?jd(X._f):$A(P),he=_e=>{ee=Number.isNaN(_e)||Os(_e)&&isNaN(_e.getTime())||Qr(_e,me(i,q,_e))};if(X){let _e,ot;const Xe=te(),Jt=P.type===gb.BLUR||P.type===gb.FOCUS_OUT,Wn=!JA(X._f)&&!t.resolver&&!me(n.errors,q)&&!X._f.deps||eI(Jt,me(n.touchedFields,q),n.isSubmitted,p,h),ln=yb(q,a,Jt);pt(i,q,Xe),Jt?(X._f.onBlur&&X._f.onBlur(P),l&&l(0)):X._f.onChange&&X._f.onChange(P);const Pe=C(q,Xe,Jt,!1),fr=!an(Pe)||ln;if(!Jt&&f.values.next({name:q,type:P.type,values:{...i}}),Wn)return d.isValid&&(t.mode==="onBlur"?Jt&&g():g()),fr&&f.state.next({name:q,...ln?{}:Pe});if(!Jt&&ln&&f.state.next({...n}),t.resolver){const{errors:hr}=await k([q]);if(he(Xe),ee){const yi=Db(n.errors,r,q),ye=Db(hr,r,yi.name||q);_e=ye.error,q=ye.name,ot=an(hr)}}else x([q],!0),_e=(await Tb(X,i,m,t.shouldUseNativeValidation))[q],x([q]),he(Xe),ee&&(_e?ot=!1:d.isValid&&(ot=await b(r,!0)));ee&&(X._f.deps&&$(X._f.deps),M(q,ot,_e,Pe))}},z=(P,B)=>{if(me(n.errors,B)&&P.focus)return P.focus(),1},$=async(P,B={})=>{let q,ee;const X=Wl(P);if(t.resolver){const te=await R(kt(P)?P:X);q=an(te),ee=P?!X.some(he=>me(te,he)):q}else P?(ee=(await Promise.all(X.map(async te=>{const he=me(r,te);return await b(he&&he._f?{[te]:he}:he)}))).every(Boolean),!(!ee&&!n.isValid)&&g()):ee=q=await b(r);return f.state.next({...!ur(P)||d.isValid&&q!==n.isValid?{}:{name:P},...t.resolver||!P?{isValid:q}:{},errors:n.errors}),B.shouldFocus&&!ee&&zo(r,z,P?X:a.mount),ee},H=P=>{const B={...o.mount?i:s};return kt(P)?B:ur(P)?me(B,P):P.map(q=>me(B,q))},U=(P,B)=>({invalid:!!me((B||n).errors,P),isDirty:!!me((B||n).dirtyFields,P),error:me((B||n).errors,P),isValidating:!!me(n.validatingFields,P),isTouched:!!me((B||n).touchedFields,P)}),K=P=>{P&&Wl(P).forEach(B=>Lt(n.errors,B)),f.state.next({errors:P?n.errors:{}})},J=(P,B,q)=>{const ee=(me(r,P,{_f:{}})._f||{}).ref,X=me(n.errors,P)||{},{ref:te,message:he,type:_e,...ot}=X;pt(n.errors,P,{...ot,...B,ref:ee}),f.state.next({name:P,errors:n.errors,isValid:!1}),q&&q.shouldFocus&&ee&&ee.focus&&ee.focus()},ie=(P,B)=>dr(P)?f.values.subscribe({next:q=>P(W(void 0,B),q)}):W(P,B,!0),ae=(P,B={})=>{for(const q of P?Wl(P):a.mount)a.mount.delete(q),a.array.delete(q),B.keepValue||(Lt(r,q),Lt(i,q)),!B.keepError&&Lt(n.errors,q),!B.keepDirty&&Lt(n.dirtyFields,q),!B.keepTouched&&Lt(n.touchedFields,q),!B.keepIsValidating&&Lt(n.validatingFields,q),!t.shouldUnregister&&!B.keepDefaultValue&&Lt(s,q);f.values.next({values:{...i}}),f.state.next({...n,...B.keepDirty?{isDirty:I()}:{}}),!B.keepIsValid&&g()},ce=({disabled:P,name:B,field:q,fields:ee,value:X})=>{if(cr(P)&&o.mount||P){const te=P?void 0:kt(X)?jd(q?q._f:me(ee,B)._f):X;(P||!P&&!kt(te))&&pt(i,B,te),C(B,te,!1,!1,!0)}},ge=(P,B={})=>{let q=me(r,P);const ee=cr(B.disabled)||cr(t.disabled);return pt(r,P,{...q||{},_f:{...q&&q._f?q._f:{ref:{name:P}},name:P,mount:!0,...B}}),a.mount.add(P),q?ce({field:q,disabled:cr(B.disabled)?B.disabled:t.disabled,name:P,value:B.value}):_(P,!0,B.value),{...ee?{disabled:B.disabled||t.disabled}:{},...t.progressive?{required:!!B.required,min:Vo(B.min),max:Vo(B.max),minLength:Vo(B.minLength),maxLength:Vo(B.maxLength),pattern:Vo(B.pattern)}:{},name:P,onChange:F,onBlur:F,ref:X=>{if(X){ge(P,B),q=me(r,P);const te=kt(X.value)&&X.querySelectorAll&&X.querySelectorAll("input,select,textarea")[0]||X,he=KA(te),_e=q._f.refs||[];if(he?_e.find(ot=>ot===te):te===q._f.ref)return;pt(r,P,{_f:{...q._f,...he?{refs:[..._e.filter(Nd),te,...Array.isArray(me(s,P))?[{}]:[]],ref:{type:te.type,name:P}}:{ref:te}}}),_(P,!1,void 0,te)}else q=me(r,P,{}),q._f&&(q._f.mount=!1),(t.shouldUnregister||B.shouldUnregister)&&!(WA(a.array,P)&&o.action)&&a.unMount.add(P)}}},de=()=>t.shouldFocusError&&zo(r,z,a.mount),re=P=>{cr(P)&&(f.state.next({disabled:P}),zo(r,(B,q)=>{const ee=me(r,q);ee&&(B.disabled=ee._f.disabled||P,Array.isArray(ee._f.refs)&&ee._f.refs.forEach(X=>{X.disabled=ee._f.disabled||P}))},0,!1))},fe=(P,B)=>async q=>{let ee;if(q&&(q.preventDefault&&q.preventDefault(),q.persist&&q.persist()),t.disabled){B&&await B({...n.errors},q);return}let X=Cn(i);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:te,values:he}=await k();n.errors=te,X=he}else await b(r);if(Lt(n.errors,"root"),an(n.errors)){f.state.next({errors:{}});try{await P(X,q)}catch(te){ee=te}}else B&&await B({...n.errors},q),de(),setTimeout(de);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:an(n.errors)&&!ee,submitCount:n.submitCount+1,errors:n.errors}),ee)throw ee},Q=(P,B={})=>{me(r,P)&&(kt(B.defaultValue)?L(P,Cn(me(s,P))):(L(P,B.defaultValue),pt(s,P,Cn(B.defaultValue))),B.keepTouched||Lt(n.touchedFields,P),B.keepDirty||(Lt(n.dirtyFields,P),n.isDirty=B.defaultValue?I(P,Cn(me(s,P))):I()),B.keepError||(Lt(n.errors,P),d.isValid&&g()),f.state.next({...n}))},xe=(P,B={})=>{const q=P?Cn(P):s,ee=Cn(q),X=an(P),te=X?s:ee;if(B.keepDefaultValues||(s=q),!B.keepValues){if(B.keepDirtyValues){const he=new Set([...a.mount,...Object.keys(Yo(s,i))]);for(const _e of Array.from(he))me(n.dirtyFields,_e)?pt(te,_e,me(i,_e)):L(_e,me(te,_e))}else{if(Ed&&kt(P))for(const he of a.mount){const _e=me(r,he);if(_e&&_e._f){const ot=Array.isArray(_e._f.refs)?_e._f.refs[0]:_e._f.ref;if(Bl(ot)){const Xe=ot.closest("form");if(Xe){Xe.reset();break}}}}r={}}i=t.shouldUnregister?B.keepDefaultValues?Cn(s):{}:Cn(te),f.array.next({values:{...te}}),f.values.next({values:{...te}})}a={mount:B.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!d.isValid||!!B.keepIsValid||!!B.keepDirtyValues,o.watch=!!t.shouldUnregister,f.state.next({submitCount:B.keepSubmitCount?n.submitCount:0,isDirty:X?!1:B.keepDirty?n.isDirty:!!(B.keepDefaultValues&&!Qr(P,s)),isSubmitted:B.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:X?{}:B.keepDirtyValues?B.keepDefaultValues&&i?Yo(s,i):n.dirtyFields:B.keepDefaultValues&&P?Yo(s,P):B.keepDirty?n.dirtyFields:{},touchedFields:B.keepTouched?n.touchedFields:{},errors:B.keepErrors?n.errors:{},isSubmitSuccessful:B.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},V=(P,B)=>xe(dr(P)?P(i):P,B);return{control:{register:ge,unregister:ae,getFieldState:U,handleSubmit:fe,setError:J,_executeSchema:k,_getWatch:W,_getDirty:I,_updateValid:g,_removeUnmounted:E,_updateFieldArray:w,_updateDisabledField:ce,_getFieldArray:j,_reset:xe,_resetDefaultValues:()=>dr(t.defaultValues)&&t.defaultValues().then(P=>{V(P,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:P=>{n={...n,...P}},_disableForm:re,_subjects:f,_proxyFormState:d,_setErrors:T,get _fields(){return r},get _formValues(){return i},get _state(){return o},set _state(P){o=P},get _defaultValues(){return s},get _names(){return a},set _names(P){a=P},get _formState(){return n},set _formState(P){n=P},get _options(){return t},set _options(P){t={...t,...P}}},trigger:$,register:ge,handleSubmit:fe,watch:ie,setValue:L,getValues:H,reset:V,resetField:Q,clearErrors:K,unregister:ae,setError:J,setFocus:(P,B={})=>{const q=me(r,P),ee=q&&q._f;if(ee){const X=ee.refs?ee.refs[0]:ee.ref;X.focus&&(X.focus(),B.shouldSelect&&dr(X.select)&&X.select())}},getFieldState:U}}function sI(e={}){const t=Y.useRef(void 0),n=Y.useRef(void 0),[r,s]=Y.useState({isDirty:!1,isValidating:!1,isLoading:dr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:dr(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...rI(e),formState:r});const i=t.current.control;return i._options=e,VA({subject:i._subjects.state,next:o=>{YA(o,i._proxyFormState,i._updateFormState)&&s({...i._formState})}}),Y.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),Y.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),Y.useEffect(()=>{e.values&&!Qr(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),Y.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),Y.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),Y.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=zA(r,i),t.current}const Pb=e=>{const{firstName:t,lastName:n,userName:r}=e;return!t&&!n&&!r?"":t&&!n&&!r?t:`${t} ${n} (${r})`},Rb=({eventProps:e,width:t})=>{const{fetchUserAPI:n,CustomComponents:r,onChange:s,setUser:i,fetchAPI:o}=e,{control:a}=sI(),[l,u]=Y.useState([]),[d,f]=Y.useState({}),{CustomAutocomplete:h}=r,p=Tc(async(w,S,T)=>{const{data:_}=await o({code:"get_analytics_user_details",parameters:{searchString:w}});console.log("🚀 ~ debouncedFetch ~ users:",_),S(_.result),T({firstName:w,lastName:"",userName:""})},500),m=Y.useCallback(w=>{p(w,u,f)},[p]);Y.useEffect(()=>{x()},[]);const y=(w,S)=>{w&&w.type==="change"&&m(S)},g=(w,S)=>{console.log("🚀 ~ handleUserChange ~ newValue:",S),f(S),i&&i(+(S==null?void 0:S.id)||null),s&&s({target:{name:"userId",value:S}})},x=async()=>{const{data:w}=await o({code:"get_analytics_user_details",parameters:{searchString:null}});u(w.result),f({firstName:"",lastName:"",userName:""})};return v.jsx(h,{control:a,name:"users",options:l,value:d,singleSelect:!0,onInputChange:y,onChange:(w,S)=>g(w,S),getOptionLabel:Pb,sx:{width:t},"data-testid":"analytics-autocomplete-user"})},iI=({filterKey:e,filters:t,handleChange:n,eventProps:r,durationOptions:s,aggregationTypeOptions:i,aggregationFieldOptions:o,originalFilterOrder:a,durationTypeFilter:l,camelToSnake:u})=>{const d=["filter","cancel","filter_open","menu","navigate","submit"];return e==="xAxis"?v.jsx(oe,{size:{xs:12},children:v.jsxs(Lr,{sx:{display:"flex"},children:[v.jsxs(Ge,{sx:{width:250,m:1},children:[e.replace(/_/g," "),":"]}),v.jsx(In,{fullWidth:!0,children:v.jsxs(hn,{id:e,name:e,value:t[e]||"",onChange:n,size:"small",children:[v.jsx(zt,{value:"",children:v.jsx("em",{children:"Select an option"})}),[...a,...l].filter(f=>!["xAxis","fileSizeMin","fileSizeMax","duration","aggregationType","aggregationField","eventTimeStart","eventTimeEnd"].includes(f)).map(f=>v.jsx(zt,{value:u(f),disabled:t.xAxis===u(f),children:u(f)},f))]})})]})}):e==="duration"?v.jsx(oe,{size:{xs:12},children:v.jsxs(Lr,{sx:{display:"flex"},children:[v.jsxs(Ge,{sx:{width:250,m:1},children:[e.replace(/_/g," "),":"]}),v.jsx(In,{fullWidth:!0,children:v.jsxs(hn,{id:e,name:e,size:"small",value:t[e]||"",onChange:n,children:[v.jsx(zt,{value:"",children:v.jsx("em",{children:"Select Duration"})}),s.map(f=>v.jsx(zt,{value:f,children:f},f))]})})]})}):e==="userId"&&(r!=null&&r.fetchUserAPI)?v.jsx(oe,{size:{xs:12},children:v.jsxs(Lr,{sx:{display:"flex"},children:[v.jsx(Ge,{sx:{width:250,m:1},children:"user:"}),v.jsx(Rb,{eventProps:{...r,onChange:n}})]})}):e==="aggregationType"?v.jsx(oe,{size:{xs:12},children:v.jsxs(Lr,{sx:{display:"flex"},children:[v.jsxs(Ge,{sx:{width:250,m:1},children:[e.replace(/_/g," "),":"]}),v.jsx(In,{fullWidth:!0,children:v.jsxs(hn,{id:e,name:e,size:"small",value:t[e]||"",onChange:n,children:[v.jsx(zt,{value:"",children:v.jsx("em",{children:"Select Aggregation Type"})}),i.map(f=>v.jsx(zt,{value:f,children:f},f))]})})]})}):e==="buttonType"?v.jsx(oe,{size:{xs:12},children:v.jsxs(Lr,{sx:{display:"flex"},children:[v.jsxs(Ge,{sx:{width:250,m:1},children:[e.replace(/_/g," "),":"]}),v.jsx(In,{fullWidth:!0,children:v.jsxs(hn,{id:e,name:e,size:"small",value:t[e]||"",onChange:n,children:[v.jsx(zt,{value:"",children:v.jsx("em",{children:"Select Button Type"})}),d.map(f=>v.jsx(zt,{value:f,children:f},f))]})})]})}):e==="aggregationField"?t.aggregationType==="count"?void 0:(console.log("anccc",t),v.jsx(oe,{size:{xs:12},children:v.jsxs(Lr,{sx:{display:"flex"},children:[v.jsxs(Ge,{sx:{width:250,m:1},children:[e.replace(/_/g," "),":"]}),v.jsx(In,{fullWidth:!0,children:v.jsxs(hn,{fullWidth:!0,id:e,name:e,size:"small",value:t[e]||"",onChange:n,children:[v.jsx(zt,{value:"",children:v.jsx("em",{children:"Select Aggregation Field"})}),o.map(f=>v.jsx(zt,{value:f,children:f},f))]})})]})})):["device","sessionId"].includes(e)?void 0:v.jsx(oe,{size:{xs:12},children:v.jsxs(Lr,{sx:{display:"flex"},children:[v.jsxs(Ge,{sx:{width:250,m:1},children:[e.replace(/_/g," "),":"]}),v.jsx(Xu,{id:e,size:"small",fullWidth:!0,name:e,value:t[e]||"",onChange:n,variant:"outlined",disabled:["eventTimeStart","eventTimeEnd"].includes(e)})]})})},oI=({filters:e,setFilters:t,eventType:n,setShowGraph:r,fetchData:s,eventProps:i})=>{const o={xAxis:null,aggregationType:"count",aggregationField:null,duration:null,userId:null,sessionId:null,device:null,pageSource:null,eventTimeStart:null,eventTimeEnd:null},a=["count","sum","avg"],l={button_click:{buttonName:null,buttonType:null,buttonId:null},link_click:{linkUrl:null,linkImageSrc:null},file_upload:{fileType:null,fileSizeMin:null,fileSizeMax:null,uploadStatus:null},file_download:{fileType:null,fileSizeMin:null,fileSizeMax:null,downloadStatus:null},filter:{filterType:null,menuType:null,parentGroupId:null,subGroupId:null,taskTypeId:null,locationId:null,status:null},search_tracking:{searchQuery:null},conversion_event:{formName:null,formSubmitted:null},report_generation:{reportId:null,reportName:null,reportCode:null,reportType:null},report_update:{reportId:null,reportName:null,reportCode:null,reportType:null}},u={page_view:{aggregationField:["active_tab_time"],aggregationType:a},inactivity_tracking:{aggregationField:["duration"],aggregationType:a},search_tracking:{aggregationField:["time_since_last_search"],aggregationType:a.filter(k=>k!=="sum")},conversion_event:{aggregationField:["progress"],aggregationType:a.filter(k=>k!=="sum")}},d=["decade","year","month","week","day","hour","minute","custom"],[f,h]=Y.useState([]),[p,m]=Y.useState([]),[y,g]=Y.useState(d.filter(k=>!["decade","custom"].includes(k))),[x,w]=Y.useState(Object.keys(o));Y.useEffect(()=>{t(o)},[]),Y.useEffect(()=>{var R,b;const k=l[n]||{};t({...o,...l[n]}),w([...Object.keys(o),...Object.keys(k)]),m(((R=u[n])==null?void 0:R.aggregationField)||[]),h(((b=u[n])==null?void 0:b.aggregationType)||["count"])},[n]);const S=k=>{const{name:R,value:b}=k.target,E=I=>I.replace(/(_\w)/g,W=>W[1].toUpperCase());R==="duration"?_(b):t(R==="xAxis"?I=>{const W={...I},j=I.xAxis;if(j){const O=E(j||"");W[O]=null}return W[E(b||"")]=null,W[R]=b,W}:R==="userId"?I=>({...I,[R]:+(b==null?void 0:b.id)}):I=>({...I,[R]:b}))},T=(k,R)=>{const b=d.indexOf(k);if(b===-1)throw new Error("Selected duration is not valid.");if(R){if(!d.includes(R))return R}else return d.filter(I=>I!=="custom")[b+1];return d.indexOf(R)<=b?d.filter(I=>I!=="custom")[b+1]||null:R},_=k=>{const R=le();let b=null,E=null,I=e.xAxis;const W=d.indexOf(k);if(W!==-1){if(I=T(k,I),k==="decade"){const O=R.year(),D=Math.floor(O/10)*10,L=D+9;b=R.year(D).startOf("year").toISOString(),E=R.year(L).endOf("year").toISOString()}else k==="custom"?(b=null,E=null):(b=R.startOf(k).toISOString(),E=R.endOf(k).toISOString());const j=d.slice(W+1).filter(O=>O!=="custom");g(j)}t(j=>({...j,eventTimeStart:b,eventTimeEnd:E,xAxis:I,duration:k}))},C=k=>{if(k.preventDefault(),e.xAxis){if(e.aggregationType!=="count"&&!e.aggregationField){console.error("please select aggregation field");return}}else{console.error("please select xAxis");return}r(!0),s()},M=k=>k.replace(/[A-Z]/g,R=>`_${R.toLowerCase()}`);return v.jsx(fn,{component:"form",onSubmit:C,children:v.jsxs(oe,{container:!0,spacing:2,alignItems:"flex-start",children:[x.filter(k=>!(e.xAxis&&M(k)===e.xAxis)).map(k=>v.jsx(iI,{filterKey:k,filters:e,handleChange:S,eventProps:i,durationOptions:d,aggregationTypeOptions:f,aggregationFieldOptions:p,originalFilterOrder:x,durationTypeFilter:y,camelToSnake:M})),v.jsx(oe,{item:!0,size:{xs:12},children:v.jsx(zu,{variant:"contained",type:"submit",sx:{mt:1,fontSize:"0.75rem",padding:"4px 8px",backgroundColor:"#1976d2",":hover":{backgroundColor:"#115293"}},children:"Apply Filters"})})]})})};Kn.register(Tr,kr,Qn,Rn,Zn,Pn,ps,hs,bu);const aI=e=>Object.fromEntries(Object.entries(e).filter(([t,n])=>n!=null&&n!=="")),lI=({type:e,labels:t,datasets:n,title:r,appliedFilters:s})=>{const i=aI(s||{}),o={labels:t,datasets:n},a={responsive:!0,plugins:{legend:{display:!0,position:"top"},title:{display:!!r,text:r}}};return v.jsxs(fn,{children:[Object.keys(i).length>0&&v.jsxs(ei,{sx:{padding:2,mb:2},children:[v.jsx(Ge,{variant:"subtitle1",sx:{mb:1,textAlign:"center"},children:"Applied Filters"}),v.jsx(fn,{sx:{display:"flex",flexWrap:"wrap",gap:1,justifyContent:"center",alignItems:"center"},children:Object.entries(i).map(([l,u])=>v.jsx(Ge,{sx:{fontSize:"0.85rem",backgroundColor:"#f0f0f0",padding:"4px 8px",borderRadius:"4px"},children:`${l}: ${u}`},l))})]}),v.jsxs(ei,{sx:{padding:2,maxHeight:800},children:[e==="bar"&&v.jsx(Or,{data:o,options:a}),e==="line"&&v.jsx(uo,{data:o,options:a}),e==="pie"&&v.jsx(Xs,{data:o,options:a}),!["bar","line","pie"].includes(e)&&v.jsx(Ge,{variant:"h6",color:"error",align:"center",children:"Invalid chart type"})]})]})};Kn.register(bu,ps,hs,kr,Tr,Rn,Zn,Gs,Qn,Pn);function cI({execute:e,userId:t}){const[n,r]=Y.useState([]),[s,i]=Y.useState(null),[o,a]=Y.useState(null),[l,u]=Y.useState(new Date().getMonth()),[d,f]=Y.useState(new Date().getFullYear());Y.useState({totalErrors:0,avgTimeBetweenErrors:0,topSearchKeywords:[],globalSearch:0,pageSearch:0}),Y.useState(null),Y.useState([]),Y.useState(null),Y.useEffect(()=>{(async()=>{var g,x,w,S,T;try{const _=await e({code:"get_analytics_data",parameters:{userId:t||null,eventName:"search_tracking"}}),C=await e({code:"get_analytics_data1",parameters:{userId:t||null,eventName:"error_tracking"}});if(C){const M=(x=(g=C==null?void 0:C.data)==null?void 0:g.result)==null?void 0:x.map(b=>b.page_source.split("/").filter(Boolean).slice(-2).join("/")),k=(S=(w=C==null?void 0:C.data)==null?void 0:w.result)==null?void 0:S.map(b=>b.total_visit);a({labels:M,datasets:[{label:"Number of Errors",data:k,backgroundColor:"rgba(75, 192, 192, 0.6)",borderColor:"rgba(75, 192, 192, 1)",borderWidth:1}]})}r((T=_==null?void 0:_.data)==null?void 0:T.result)}catch{throw new Error("Problem in getting error tracking data")}})()},[e,t]),Y.useEffect(()=>{const y=async()=>{var S,T,_,C;const g=await e({code:"get_analytics_data_daywise",parameters:{userId:t||null,eventName:"error_tracking",year:d,month:l+1}}),x=(T=(S=g==null?void 0:g.data)==null?void 0:S.result)==null?void 0:T.map(M=>M.event_date),w=(C=(_=g==null?void 0:g.data)==null?void 0:_.result)==null?void 0:C.map(M=>M.total_visit);i({labels:x,datasets:[{label:"Number of Errors",data:w,fill:!1,borderColor:"rgba(75, 192, 192, 1)",tension:.1}]})};try{y()}catch(g){throw new Error(g)}},[l,d,t]);const h=y=>{const g=new Date;if(new Date(d,l+y,1)>g){alert("You cannot go beyond the current month.");return}const w=new Date(d,l+y,1);u(w.getMonth()),f(w.getFullYear())},p={plugins:{title:{display:!0,text:`Number of Errors Per Day (${l+1}/${d})`}},scales:{x:{type:"category",title:{display:!0,text:"Date"}},y:{beginAtZero:!0,title:{display:!0,text:"Number of Errors"}}}},m={plugins:{legend:{display:!0,position:"top"}},scales:{x:{title:{display:!0,text:"Interacted Page"}},y:{title:{display:!0,text:"Number of Searches"},beginAtZero:!0}}};return v.jsx("div",{style:{marginTop:"30px",marginRight:"10px"},children:v.jsxs(oe,{container:!0,spacing:3,justifyContent:"center",size:{xs:12},children:[v.jsx(oe,{size:{md:6},children:v.jsx(ut,{elevation:6,style:{height:"423px"},children:v.jsxs(dt,{children:[v.jsx(oi,{children:v.jsxs(fn,{sx:{display:"flex",justifyContent:"space-between",width:"100%"},children:[v.jsx("span",{children:`${new Date(d,l).toLocaleString("default",{month:"long"})}, ${d}`}),v.jsxs("div",{children:[v.jsx(dy,{onClick:()=>h(-1)}),v.jsx(uy,{onClick:()=>h(1)})]})]})}),s&&v.jsx(uo,{data:s,options:p})]})})}),v.jsx(oe,{size:{md:6},children:v.jsx(ut,{elevation:6,style:{height:"423px"},children:v.jsxs(dt,{children:[v.jsx(oi,{children:v.jsx(fn,{sx:{display:"flex",justifyContent:"space-between",width:"100%"},children:"Error Per Page"})}),o&&v.jsx(Or,{data:o,options:{...m}})]})})})]})})}Kn.register(Pn,ps,hs,Qn,Tr,kr,Rn,Zn);function uI({execute:e,userId:t}){const[n,r]=Y.useState([]),[s,i]=Y.useState(null),[o,a]=Y.useState(null),[l,u]=Y.useState(null),d={callbacks:{title:f=>{var p,m,y,g;const h=f[0].dataIndex;return((y=(m=(p=n[h])==null?void 0:p.page_source)==null?void 0:m.split("techo/")[1])==null?void 0:y.replace("techo/",""))||((g=n[h])==null?void 0:g.page_source)}}};return Y.useEffect(()=>{(async()=>{var h;try{const p=await e({code:"get_inactivity_details",parameters:{userId:t||null,eventName:"inactivity_tracking"}});r((h=p==null?void 0:p.data)==null?void 0:h.result)}catch{throw new Error("Problem in getting search tracking data")}})()},[e,t]),Y.useEffect(()=>{const f=(w,S=20)=>(w==null?void 0:w.length)>S?w.substring(0,S)+"...":w,h=n.map(w=>{var S;return f(((S=w.page_source)==null?void 0:S.replace("/imtecho-ui/ui/techo/",""))||w.page_source)}),p=n.map(w=>w.total_inactive_tab_time/60/w.total_visits);i({labels:h,datasets:[{label:"Average Time Inactive (M) ",data:p,backgroundColor:["#FF6384","#36A2EB","#FFCE56","#4BC0C0","#9966FF","#FF9F40","#FF633","#36A23B","#FFCE57","#4BC1C1","#9923EE","#FF9F20"],hoverOffset:4}]});const m=n.map(w=>{var S;return f(((S=w.page_source)==null?void 0:S.replace("/imtecho-ui/ui/techo/",""))||w.page_source)}),y=n.map(w=>w.total_inactive_tab_time/60);a({labels:m,datasets:[{label:"Inactive Time (minutes) ",data:y,backgroundColor:"#36A2EB",borderColor:"#2980B9",borderWidth:1}]});const g=n.map(w=>{var S;return f(((S=w.page_source)==null?void 0:S.replace("/imtecho-ui/ui/techo/",""))||w.page_source)}),x=n.map(w=>w.total_visits);u({labels:g,datasets:[{label:"Inactivity Trends (count)",data:x,borderColor:"#FF6384",backgroundColor:"rgba(255,99,132,0.2)",tension:.3}]})},[n]),v.jsxs(oe,{container:!0,spacing:2,size:{xs:12},justifyContent:"center",display:"flex",flexDirection:"column",mt:2,children:[v.jsx(oe,{children:v.jsx(Ge,{variant:"h5",children:" Inactivity Analytics"})}),v.jsxs(oe,{container:!0,display:"flex",flexDirection:"column",children:[v.jsxs(oe,{container:!0,children:[v.jsx(oe,{size:{xs:6},children:v.jsxs(ut,{elevation:4,children:[v.jsx(Zt,{title:"Total InActive Time"}),v.jsx(dt,{children:o?v.jsx(Or,{data:o,options:{responsive:!0,plugins:{legend:{position:"top"},tooltip:d},scales:{y:{beginAtZero:!0,title:{display:!0,text:"Total InActive Time(M)"}}}}}):"Loading bar chart..."})]})}),v.jsx(oe,{size:{xs:6},children:v.jsx(oe,{children:v.jsxs(ut,{elevation:4,children:[v.jsx(Zt,{title:"Inactivity Trend"}),v.jsx(dt,{children:l?v.jsx(uo,{data:l,options:{responsive:!0,plugins:{legend:{position:"top"},tooltip:d},scales:{y:{beginAtZero:!0,title:{display:!0,text:"Count"}}}}}):"Loading line chart..."})]})})})]}),v.jsx(oe,{children:v.jsx(oe,{size:{xs:6},children:v.jsxs(ut,{elevation:4,children:[v.jsx(Zt,{title:"Average Trend"}),v.jsx(dt,{children:s?v.jsx(Xs,{data:s,height:50,width:100,options:{plugins:{tooltip:d}}}):"Loading pie chart..."})]})})})]})]})}Kn.register(Pn,ps,hs,Qn,Tr,kr,Rn,Zn);function dI({execute:e,userId:t}){const[n,r]=Y.useState([]),[s,i]=Y.useState(null),[o,a]=Y.useState(null);return Y.useEffect(()=>{(async()=>{var u;try{const d=await e({code:"get_conversion_event_data",parameters:{userId:t||null,eventName:"conversion_event"}});r((u=d==null?void 0:d.data)==null?void 0:u.result)}catch{throw new Error("Problem in getting search tracking data")}})()},[e,t]),Y.useEffect(()=>{const l=n.map(h=>h.form_name),u=n.map(h=>h.total_events_true);i({labels:l,datasets:[{label:"No of time form submitted ",data:u,backgroundColor:"#36A2EB",borderColor:"#2980B9",borderWidth:1}]});const d=n.map(h=>h.form_name),f=n.map(h=>h.avg_progress_false);a({labels:d,datasets:[{label:"Avg Percentage",data:f,backgroundColor:"#36A2EB",borderColor:"#2980B9",borderWidth:1}]})},[n]),v.jsxs(oe,{container:!0,spacing:2,size:{xs:12},justifyContent:"center",display:"flex",flexDirection:"column",mt:2,children:[v.jsx(oe,{children:v.jsx(Ge,{variant:"h5",children:" Conversion Event Analytics"})}),v.jsx(oe,{container:!0,display:"flex",flexDirection:"column",children:v.jsxs(oe,{container:!0,children:[v.jsx(oe,{size:{xs:6},children:v.jsxs(ut,{elevation:4,children:[v.jsx(Zt,{title:"Count of Submitted Forms "}),v.jsx(dt,{children:s?v.jsx(Or,{data:s,options:{responsive:!0,plugins:{legend:{position:"top"}},scales:{y:{beginAtZero:!0,title:{display:!0,text:"Submitted Forms count"}}}}}):"Loading bar chart..."})]})}),v.jsx(oe,{size:{xs:6},children:v.jsx(oe,{children:v.jsxs(ut,{elevation:4,children:[v.jsx(Zt,{title:"Average Progress (%)"}),v.jsx(dt,{children:o?v.jsx(Or,{data:o,options:{responsive:!0,plugins:{legend:{position:"top"}},scales:{y:{beginAtZero:!0,title:{display:!0,text:"Avg Progress"}}}}}):"Loading bar chart..."})]})})})]})})]})}Kn.register(Pn,ps,hs,Qn,Tr,kr,Rn,Zn);function fI({execute:e,userId:t}){const[n,r]=Y.useState([]),[s,i]=Y.useState(null),[o,a]=Y.useState(null),[l,u]=Y.useState(null),[d,f]=Y.useState(null),[h,p]=Y.useState([]),[m,y]=Y.useState(0),[g,x]=Y.useState(null),w=T=>{const _={};return T==null||T.forEach(({form_name:C,submit:M,progress:k})=>{_[C]||(_[C]={form_name:C,count:0,totalProgress:0}),_[C].count+=1,_[C].totalProgress+=M?100:k}),Object.values(_).map(({form_name:C,count:M,totalProgress:k})=>({form_name:C,count:M,average_progress:parseFloat((k/M).toFixed(2))}))},S={callbacks:{title:T=>{var C,M;const _=T[0].dataIndex;return(M=(C=n==null?void 0:n.find(k=>k.event_name==="button_click"))==null?void 0:C.event_data.filter(k=>k.button_type==="navigate")[_])==null?void 0:M.button_name}}};return Y.useEffect(()=>{(async()=>{var _;try{const C=await e({code:"get_detailed_reports_data",parameters:{userId:t||null}}),M=(_=C==null?void 0:C.data)==null?void 0:_.result.map(k=>{const R=JSON.parse(k.event_data);return k.event_data=R.map(b=>JSON.parse(b)),k});r(M||[])}catch{throw new Error("Problem in getting search tracking data")}})()},[e,t]),Y.useEffect(()=>{var z,$,H;const T=(U,K=20)=>(U==null?void 0:U.length)>K?U.substring(0,K)+"...":U,_=n.map(U=>U.event_name),C=n.map(U=>U.total_events);i({labels:_,datasets:[{label:"No of Events ",data:C,backgroundColor:"#36A2EB",borderColor:"#2980B9",borderWidth:1}]}),p(()=>{var J;let U=0;const K=(J=n.find(ie=>ie.event_name==="inactivity_tracking"))==null?void 0:J.event_data.map(ie=>ie.duration);return K==null||K.forEach(ie=>U+=ie/60),parseFloat(U.toFixed(2))});const M=(z=n.find(U=>U.event_name==="conversion_event"))==null?void 0:z.event_data.map(U=>U),k=w(M),R=k.map(U=>U.form_name),b=k.map(U=>U.average_progress);f({labels:R,datasets:[{label:"Avg Percentage",data:b,backgroundColor:"#36A2EB",borderColor:"#2980B9",borderWidth:1}]}),y(()=>{var J;const U=(J=n.find(ie=>ie.event_name==="page_view"))==null?void 0:J.event_data.map(ie=>ie.max_scroll_depth);return U?Math.max(...U):0}),x(()=>{var K;return(K=n.find(J=>J.event_name==="page_view"))==null?void 0:K.total_active_tab_time});const E=($=n==null?void 0:n.find(U=>U.event_name==="button_click"))==null?void 0:$.event_data.filter(U=>U.button_type==="navigate"),I=E==null?void 0:E.reduce((U,K)=>(U[K==null?void 0:K.button_name]=(U[K==null?void 0:K.button_name]||0)+1,U),{}),W=Object.keys(I||[]).map(U=>T(U)),j=Object.values(I||[]);a({labels:W,datasets:[{label:"Report Edited",data:j,backgroundColor:["#FF6384","#36A2EB","#FFCE56","#4BC0C0","#9966FF","#FF9F40","#FF633","#36A23B","#FFCE57","#4BC1C1","#9923EE","#FF9F20"],hoverOffset:4}]});const O=(H=n==null?void 0:n.find(U=>U.event_name==="link_click"))==null?void 0:H.event_data.filter(U=>!U.link_id||U.link_id===null||U.link_id===""),D=O==null?void 0:O.reduce((U,K)=>(U[K==null?void 0:K.link_text]=(U[K==null?void 0:K.link_text]||0)+1,U),{}),L=Object.keys(D||[]).map(U=>T(U)),F=Object.values(D||[]);u({labels:L,datasets:[{label:"Viewed",data:F,backgroundColor:["#FF6384","#36A2EB","#FFCE56","#4BC0C0","#9966FF","#FF9F40","#FF633","#36A23B","#FFCE57","#4BC1C1","#9923EE","#FF9F20"],hoverOffset:4}]})},[n]),v.jsxs(oe,{container:!0,size:{xs:12},spacing:2,justifyContent:"center",display:"flex",flexDirection:"column",mt:2,children:[v.jsx(oe,{children:v.jsx(Ge,{variant:"h5",children:" Reports Page Analytics"})}),v.jsxs(oe,{container:!0,display:"flex",flexDirection:"column",children:[v.jsxs(oe,{container:!0,children:[v.jsx(oe,{size:{xs:6},children:v.jsxs(ut,{elevation:4,children:[v.jsx(Zt,{title:"Count of total events"}),v.jsx(dt,{children:s?v.jsx(Or,{data:s,options:{responsive:!0,plugins:{legend:{position:"top"}},scales:{y:{beginAtZero:!0,title:{display:!0,text:"events count"}}}}}):"Loading bar chart..."})]})}),v.jsx(oe,{size:{xs:6},children:v.jsx(oe,{children:v.jsxs(ut,{elevation:4,children:[v.jsx(Zt,{title:"Average filling Progress (%)"}),v.jsx(dt,{children:d?v.jsx(Or,{data:d,options:{responsive:!0,plugins:{legend:{position:"top"}},scales:{y:{beginAtZero:!0,title:{display:!0,text:"Avg Progress"}}}}}):"Loading bar chart..."})]})})})]}),v.jsxs(oe,{container:!0,children:[v.jsx(oe,{size:{xs:6},children:v.jsxs(ut,{elevation:4,sx:{height:"430px"},children:[v.jsx(Zt,{title:"Edited reports"}),v.jsx(dt,{children:o?v.jsx(oe,{sx:{height:"300px",margin:"0 auto"},children:v.jsx(Xs,{data:o,options:{maintainAspectRatio:!1,plugins:{tooltip:S}}})}):"Loading pie chart..."})]})}),v.jsx(oe,{size:{xs:6},children:v.jsx(oe,{children:v.jsxs(ut,{elevation:4,sx:{height:"430px"},children:[v.jsx(Zt,{title:"Reports Viewed"}),v.jsx(dt,{children:l?v.jsx(oe,{sx:{height:"300px",margin:"0 auto"},children:v.jsx(Xs,{data:l,options:{maintainAspectRatio:!1,plugins:{tooltip:S}}})}):"Loading line chart..."})]})})})]}),v.jsx(oe,{container:!0,children:v.jsxs(oe,{container:!0,spacing:2,display:"flex",children:[v.jsx(oe,{size:{xs:4},children:v.jsxs(ut,{elevation:4,sx:{height:"150px"},children:[v.jsx(Zt,{title:"Average Inactivity Time"}),v.jsxs(dt,{children:[h," minutes"]})]})}),v.jsx(oe,{size:{xs:4},children:v.jsxs(ut,{elevation:4,sx:{height:"150px"},children:[v.jsx(Zt,{title:"Maximum Scroll depth "}),v.jsxs(dt,{children:[parseFloat(m.toFixed(2)),"%"]})]})}),v.jsx(oe,{size:{xs:4},children:v.jsxs(ut,{elevation:4,sx:{height:"150px"},children:[v.jsx(Zt,{title:"Total Time Spent "}),v.jsxs(dt,{children:[parseFloat((g/6e4).toFixed(2))," minutes"]})]})})]})})]})]})}const hI=({eventProps:e})=>{const{fetchAPI:t,fetchUserAPI:n,eventName:r,allEventTypes:s}=e,i={button_click:!0,link_click:!0,session_start:!0,session_end:!0,file_upload:!0,file_download:!0,filter:!0,report_update:!0,report_generation:!0,page_view:!1,error_tracking:!1,inactivity_tracking:!1,search_tracking:!1,conversion_event:!1},[o,a]=Y.useState(r||"button_click"),[l,u]=Y.useState("bar"),[d,f]=Y.useState({}),[h,p]=Y.useState(null),[m,y]=Y.useState({}),[g,x]=Y.useState({labels:[],datasets:[]}),[w,S]=Y.useState(""),[T,_]=Y.useState(i[r]||!1),[C,M]=Y.useState(!1),[k,R]=Y.useState(),{xAxis:b}=d;console.log("🚀 ~ DynamicChartSelectorWithFilters ~ filters:",d);const E=O=>{const D=["decade","year","month","week","day","hour","minute","custom","duration","filterType","status"];return Object.fromEntries(Object.entries(O).filter(([L])=>!D.includes(L)).map(([L,F])=>L==="eventName"?[L,F||o]:L==="formSubmitted"?[L,F==="true"?!0:F==="false"?!1:null]:L==="reportId"?[L,F?+F:null]:[L,F||null]))},I=async()=>{var O;try{let D;S(""),y(()=>W(d));const L=await t({code:"get_user_event_data",parameters:{...E(d),eventName:o}}),F=((O=L==null?void 0:L.data)==null?void 0:O.result)||[];if(!Array.isArray(F)||F.length===0){S("No data available for the selected filters."),x({labels:["No Data"],datasets:[{label:"No Data Available",data:[0],backgroundColor:["#e74c3c"]}]});return}if(b==="user_id"){const z=F.map(H=>+(H==null?void 0:H.x_value)),{data:$}=await t({code:"get_user_details_from_user_ids",parameters:{userIds:z}});D=$.result.map(H=>Pb(H))}x({labels:D||F.map(z=>(z==null?void 0:z.x_value)||"Unknown"),datasets:[{label:`${b||"Value"} Count`,data:F.map(z=>(z==null?void 0:z.y_value)||0),backgroundColor:["#3498db","#2ecc71","#e74c3c","#9b59b6"]}]})}catch(D){console.error("Error fetching data:",D),S("An error occurred while fetching the data."),x({labels:["Error"],datasets:[{label:"Error Loading Data",data:[0],backgroundColor:["#e74c3c"]}]})}},W=O=>Object.fromEntries(Object.entries(O).filter(([,D])=>D!=null&&D!=="")),j=O=>{R(+O.target.value)};return Y.useEffect(()=>{_(i[r]),a(r),M(!1)},[r]),v.jsxs(oe,{container:!0,mt:2,children:[v.jsx(oe,{size:{xs:12},container:!0,children:["search_tracking","page_view","error_tracking","inactivity_tracking","conversion_event","reports_detail"].includes(r)&&v.jsxs(oe,{container:!0,alignItems:"center",spacing:2,direction:"row",children:[v.jsx(oe,{item:!0,minWidth:117,children:v.jsx(Ge,{variant:"body",sx:{fontWeight:"bold",fontFamily:"Arial",color:"#333",letterSpacing:"0.5px"},children:"Select User"})}),v.jsx(oe,{item:!0,children:n?v.jsx(Rb,{eventProps:{...e,setUser:R},width:240}):v.jsx(Xu,{id:"user_id",type:"number",size:"small",name:"user_id",onChange:j,variant:"outlined",sx:{fontSize:"0.75rem"}})}),v.jsx(oe,{item:!0,children:v.jsx(zu,{variant:"contained",size:"medium",onClick:()=>p(k),sx:{ml:2},children:"Apply"})})]})}),v.jsxs(oe,{size:{xs:12},children:[r==="search_tracking"&&v.jsx(py,{execute:t,userId:h}),r==="page_view"&&v.jsx(gy,{execute:t,userId:h}),r==="error_tracking"&&v.jsx(cI,{execute:t,userId:h}),r==="inactivity_tracking"&&v.jsx(uI,{execute:t,userId:h}),r==="conversion_event"&&v.jsx(dI,{execute:t,userId:h}),r==="report_dashboard"&&v.jsx(fI,{execute:t,userId:h})]}),v.jsxs(oe,{container:!0,spacing:2,direction:"row",children:[v.jsx(oe,{size:{xs:4},children:T&&v.jsx(ei,{sx:{padding:2},children:v.jsxs(oe,{container:!0,spacing:2,alignItems:"flex-start",children:[v.jsxs(oe,{size:{xs:12},children:[v.jsxs(fn,{sx:{display:"flex"},children:[v.jsx(Ge,{variant:"subtitle1",sx:{width:250,m:1},children:"Select Event Type:"}),v.jsx(In,{fullWidth:!0,children:v.jsx(hn,{value:o||"",size:"small",onChange:O=>{M(!1),a(O.target.value||"button_click")},sx:{marginBottom:2},children:s==null?void 0:s.map(O=>v.jsx(zt,{value:O,children:O},O))})})]},"event_type"),v.jsxs(fn,{sx:{display:"flex"},children:[v.jsx(Ge,{variant:"subtitle1",sx:{width:250,m:1},children:"Select Chart Type:"}),v.jsx(In,{fullWidth:!0,children:v.jsxs(hn,{value:l||"",size:"small",onChange:O=>u(O.target.value||"bar"),children:[v.jsx(zt,{value:"bar",children:"Bar"}),v.jsx(zt,{value:"line",children:"Line"}),v.jsx(zt,{value:"pie",children:"Pie"})]})})]},"chart_type")]}),v.jsx(oe,{size:{xs:12},sx:{overflowY:"hidden"},children:v.jsx(oI,{filters:d,setFilters:f,eventType:o,setShowGraph:M,fetchData:I,eventProps:e})})]})})}),v.jsx(oe,{size:{xs:8},children:C&&(w?v.jsx(Ge,{variant:"h6",color:"error",align:"center",children:w}):v.jsx(lI,{type:l||"bar",labels:g.labels,datasets:g.datasets,title:`Count of ${m.xAxis||"Events"} by ${o}`,appliedFilters:m}))})]})]})},pI=({fetchAPI:e,fetchUserAPI:t,CustomComponents:n})=>{const[r,s]=Y.useState([]),[i,o]=Y.useState(),a=async()=>{const{data:u}=await e({code:"get_event_data_for_dashboard"});s(u.result)};Y.useEffect(()=>{a()},[]);const l=u=>{o(u)};return v.jsx(oe,{sx:{padding:"10px"},children:v.jsxs(oe,{container:!0,display:"flex",flexDirection:"column",sx:{m:2},spacing:1,children:[v.jsx(oe,{container:!0,alignItems:"flex-start",justifyContent:"center",children:v.jsx(Ge,{variant:"h5",sx:{fontWeight:"bold",fontFamily:"Arial",color:"#333"},children:"USER ANALYTICS"})}),v.jsx(oe,{container:!0,display:"flex",justifyContent:"space-between",children:v.jsxs(oe,{container:!0,display:"flex",alignItems:"center",children:[v.jsx(Ge,{variant:"body",sx:{fontWeight:"bold",fontFamily:"Arial",color:"#333",letterSpacing:"0.5px",mr:3},children:"Select Event"}),v.jsx(In,{sx:{minWidth:"240px"},children:v.jsx(hn,{value:i,onChange:u=>l(u.target.value),size:"small",children:[...r,{event_name:"report_dashboard"}].map(u=>v.jsx(zt,{value:u.event_name,children:u.event_name},u.event_name))})})]})}),v.jsx(oe,{children:v.jsx(hI,{eventProps:{eventName:i,fetchAPI:e,fetchUserAPI:t,CustomComponents:n,allEventTypes:r==null?void 0:r.map(u=>u.event_name)}})})]})})};ql(document.getElementById("root")).render(v.jsx(Y.StrictMode,{children:v.jsx(Ub,{})})),Bt.ChartDashboard=pI,Bt.Dashboard=FE,Bt.PageView=p0,Bt.TrackingProvider=sf,Bt.useTracking=h0,Object.defineProperty(Bt,Symbol.toStringTag,{value:"Module"})});