@argusoft/medplat-useranalytics 1.0.0 → 1.0.1

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.
package/dist/index.umd.js CHANGED
@@ -1,88 +1,26 @@
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:
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react"),require("react-dom")):typeof define==`function`&&define.amd?define([`exports`,`react`,`react-dom`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.UserAnalytics={},e.React,e.ReactDOM))})(this,function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),u=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e},d=(e,t,n)=>(n=e==null?{}:r(s(e)),u(t||!e||!e.__esModule?i(n,`default`,{value:e,enumerable:!0}):n,e));let f=d(t,1);t=d(t),n=d(n);var p=l((e=>{var t=require("react-dom");if(process.env.NODE_ENV===`production`)e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot;else{var n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e.createRoot=function(e,r){n.usingClientEntryPoint=!0;try{return t.createRoot(e,r)}finally{n.usingClientEntryPoint=!1}},e.hydrateRoot=function(e,r,i){n.usingClientEntryPoint=!0;try{return t.hydrateRoot(e,r,i)}finally{n.usingClientEntryPoint=!1}}}}))(),m=`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`,h=`/vite.svg`,g=l((e=>{var t=require("react"),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),_=l((e=>{process.env.NODE_ENV!==`production`&&(function(){"use strict";var t=require("react"),n=Symbol.for(`react.element`),r=Symbol.for(`react.portal`),i=Symbol.for(`react.fragment`),a=Symbol.for(`react.strict_mode`),o=Symbol.for(`react.profiler`),s=Symbol.for(`react.provider`),c=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`),p=Symbol.for(`react.lazy`),m=Symbol.for(`react.offscreen`),h=Symbol.iterator,g=`@@iterator`;function _(e){if(typeof e!=`object`||!e)return null;var t=h&&e[h]||e[g];return typeof t==`function`?t:null}var v=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){b(`error`,e,[...arguments].slice(1))}function b(e,t,n){var r=v.ReactDebugCurrentFrame.getStackAddendum();r!==``&&(t+=`%s`,n=n.concat([r]));var i=n.map(function(e){return String(e)});i.unshift(`Warning: `+t),Function.prototype.apply.call(console[e],console,i)}var x=!1,S=!1,C=!1,w=!1,T=!1,E=Symbol.for(`react.module.reference`);function D(e){return!!(typeof e==`string`||typeof e==`function`||e===i||e===o||T||e===a||e===u||e===d||w||e===m||x||S||C||typeof e==`object`&&e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===c||e.$$typeof===l||e.$$typeof===E||e.getModuleId!==void 0))}function O(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||``;return i===``?n:n+`(`+i+`)`}function k(e){return e.displayName||`Context`}function A(e){if(e==null)return null;if(typeof e.tag==`number`&&y(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case i:return`Fragment`;case r:return`Portal`;case o:return`Profiler`;case a:return`StrictMode`;case u:return`Suspense`;case d:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case c:return k(e)+`.Consumer`;case s:return k(e._context)+`.Provider`;case l:return O(e,e.render,`ForwardRef`);case f:var t=e.displayName||null;return t===null?A(e.type)||`Memo`:t;case p:var n=e,m=n._payload,h=n._init;try{return A(h(m))}catch{return null}}return null}var j=Object.assign,M=0,N,ee,te,P,F,ne,re;function ie(){}ie.__reactDisabledLog=!0;function ae(){if(M===0){N=console.log,ee=console.info,te=console.warn,P=console.error,F=console.group,ne=console.groupCollapsed,re=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ie,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}M++}function oe(){if(M--,M===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:N}),info:j({},e,{value:ee}),warn:j({},e,{value:te}),error:j({},e,{value:P}),group:j({},e,{value:F}),groupCollapsed:j({},e,{value:ne}),groupEnd:j({},e,{value:re})})}M<0&&y(`disabledDepth fell below zero. This is a bug in React. Please file an issue.`)}var se=v.ReactCurrentDispatcher,ce;function le(e,t,n){if(ce===void 0)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);ce=r&&r[1]||``}return`
2
+ `+ce+e}var ue=!1,de=new(typeof WeakMap==`function`?WeakMap:Map);function fe(e,t){if(!e||ue)return``;var n=de.get(e);if(n!==void 0)return n;var r;ue=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var a=se.current;se.current=null,ae();try{if(t){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(o,[])}catch(e){r=e}Reflect.construct(e,[],o)}else{try{o.call()}catch(e){r=e}e.call(o.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var s=t.stack.split(`
3
+ `),c=r.stack.split(`
4
+ `),l=s.length-1,u=c.length-1;l>=1&&u>=0&&s[l]!==c[u];)u--;for(;l>=1&&u>=0;l--,u--)if(s[l]!==c[u]){if(l!==1||u!==1)do if(l--,u--,u<0||s[l]!==c[u]){var d=`
5
+ `+s[l].replace(` at new `,` at `);return e.displayName&&d.includes(`<anonymous>`)&&(d=d.replace(`<anonymous>`,e.displayName)),typeof e==`function`&&de.set(e,d),d}while(l>=1&&u>=0);break}}}finally{ue=!1,se.current=a,oe(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:``,p=f?le(f):``;return typeof e==`function`&&de.set(e,p),p}function pe(e,t,n){return fe(e,!1)}function I(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function me(e,t,n){if(e==null)return``;if(typeof e==`function`)return fe(e,I(e));if(typeof e==`string`)return le(e);switch(e){case u:return le(`Suspense`);case d:return le(`SuspenseList`)}if(typeof e==`object`)switch(e.$$typeof){case l:return pe(e.render);case f:return me(e.type,t,n);case p:var r=e,i=r._payload,a=r._init;try{return me(a(i),t,n)}catch{}}return``}var L=Object.prototype.hasOwnProperty,he={},ge=v.ReactDebugCurrentFrame;function _e(e){if(e){var t=e._owner,n=me(e.type,e._source,t?t.type:null);ge.setExtraStackFrame(n)}else ge.setExtraStackFrame(null)}function ve(e,t,n,r,i){var a=Function.call.bind(L);for(var o in e)if(a(e,o)){var s=void 0;try{if(typeof e[o]!=`function`){var c=Error((r||`React class`)+`: `+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name=`Invariant Violation`,c}s=e[o](t,o,r,n,null,`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`)}catch(e){s=e}s&&!(s instanceof Error)&&(_e(i),y("%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).",r||`React class`,n,o,typeof s),_e(null)),s instanceof Error&&!(s.message in he)&&(he[s.message]=!0,_e(i),y(`Failed %s type: %s`,n,s.message),_e(null))}}var ye=Array.isArray;function be(e){return ye(e)}function xe(e){return typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`}function Se(e){try{return Ce(e),!1}catch{return!0}}function Ce(e){return``+e}function we(e){if(Se(e))return y(`The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.`,xe(e)),Ce(e)}var Te=v.ReactCurrentOwner,R={key:!0,ref:!0,__self:!0,__source:!0},Ee,De,Oe={};function ke(e){if(L.call(e,`ref`)){var t=Object.getOwnPropertyDescriptor(e,`ref`).get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Ae(e){if(L.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function je(e,t){if(typeof e.ref==`string`&&Te.current&&t&&Te.current.stateNode!==t){var n=A(Te.current.type);Oe[n]||(y(`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`,A(Te.current.type),e.ref),Oe[n]=!0)}}function Me(e,t){var n=function(){Ee||(Ee=!0,y("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function Ne(e,t){var n=function(){De||(De=!0,y("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}var Pe=function(e,t,r,i,a,o,s){var c={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:o};return c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function Fe(e,t,n,r,i){var a,o={},s=null,c=null;for(a in n!==void 0&&(we(n),s=``+n),Ae(t)&&(we(t.key),s=``+t.key),ke(t)&&(c=t.ref,je(t,i)),t)L.call(t,a)&&!R.hasOwnProperty(a)&&(o[a]=t[a]);if(e&&e.defaultProps){var l=e.defaultProps;for(a in l)o[a]===void 0&&(o[a]=l[a])}if(s||c){var u=typeof e==`function`?e.displayName||e.name||`Unknown`:e;s&&Me(o,u),c&&Ne(o,u)}return Pe(e,s,c,i,r,Te.current,o)}var Ie=v.ReactCurrentOwner,Le=v.ReactDebugCurrentFrame;function z(e){if(e){var t=e._owner,n=me(e.type,e._source,t?t.type:null);Le.setExtraStackFrame(n)}else Le.setExtraStackFrame(null)}var Re=!1;function ze(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function Be(){if(Ie.current){var e=A(Ie.current.type);if(e)return`
6
+
7
+ Check the render method of \``+e+"`."}return``}function Ve(e){if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,``),n=e.lineNumber;return`
8
+
9
+ Check your code at `+t+`:`+n+`.`}return``}var He={};function Ue(e){var t=Be();if(!t){var n=typeof e==`string`?e:e.displayName||e.name;n&&(t=`
10
+
11
+ Check the top-level render call using <`+n+`>.`)}return t}function We(e,t){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var n=Ue(t);if(!He[n]){He[n]=!0;var r=``;e&&e._owner&&e._owner!==Ie.current&&(r=` It was passed a child from `+A(e._owner.type)+`.`),z(e),y(`Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.`,n,r),z(null)}}}function Ge(e,t){if(typeof e==`object`){if(be(e))for(var n=0;n<e.length;n++){var r=e[n];ze(r)&&We(r,t)}else if(ze(e))e._store&&(e._store.validated=!0);else if(e){var i=_(e);if(typeof i==`function`&&i!==e.entries)for(var a=i.call(e),o;!(o=a.next()).done;)ze(o.value)&&We(o.value,t)}}}function Ke(e){var t=e.type;if(!(t==null||typeof t==`string`)){var n;if(typeof t==`function`)n=t.propTypes;else if(typeof t==`object`&&(t.$$typeof===l||t.$$typeof===f))n=t.propTypes;else return;if(n){var r=A(t);ve(n,e.props,`prop`,r,e)}else t.PropTypes!==void 0&&!Re&&(Re=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",A(t)||`Unknown`));typeof t.getDefaultProps==`function`&&!t.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function qe(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if(r!==`children`&&r!==`key`){z(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),z(null);break}}e.ref!==null&&(z(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),z(null))}var Je={};function Ye(e,t,r,a,o,s){var c=D(e);if(!c){var l=``;(e===void 0||typeof e==`object`&&e&&Object.keys(e).length===0)&&(l+=` 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 u=Ve(o);u?l+=u:l+=Be();var d;e===null?d=`null`:be(e)?d=`array`:e!==void 0&&e.$$typeof===n?(d=`<`+(A(e.type)||`Unknown`)+` />`,l=` Did you accidentally export a JSX literal instead of a component?`):d=typeof e,y(`React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s`,d,l)}var f=Fe(e,t,r,o,s);if(f==null)return f;if(c){var p=t.children;if(p!==void 0)if(a)if(be(p)){for(var m=0;m<p.length;m++)Ge(p[m],e);Object.freeze&&Object.freeze(p)}else y(`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 Ge(p,e)}if(L.call(t,`key`)){var h=A(e),g=Object.keys(t).filter(function(e){return e!==`key`}),_=g.length>0?`{key: someKey, `+g.join(`: ..., `)+`: ...}`:`{key: someKey}`;Je[h+_]||(y(`A props object containing a "key" prop is being spread into JSX:
26
12
  let props = %s;
27
13
  <%s {...props} />
28
14
  React keys must be passed directly to JSX without using spread:
29
15
  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(`
16
+ <%s key={someKey} {...props} />`,_,h,g.length>0?`{`+g.join(`: ..., `)+`: ...}`:`{}`,h),Je[h+_]=!0)}return e===i?qe(f):Ke(f),f}function Xe(e,t,n){return Ye(e,t,n,!0)}function Ze(e,t,n){return Ye(e,t,n,!1)}var Qe=Ze,$e=Xe;e.Fragment=i,e.jsx=Qe,e.jsxs=$e})()})),v=l(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=g():t.exports=_()}))();function y(){let[e,t]=(0,f.useState)(0);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(`div`,{children:[(0,v.jsx)(`a`,{href:`https://vite.dev`,target:`_blank`,children:(0,v.jsx)(`img`,{src:h,className:`logo`,alt:`Vite logo`})}),(0,v.jsx)(`a`,{href:`https://react.dev`,target:`_blank`,children:(0,v.jsx)(`img`,{src:m,className:`logo react`,alt:`React logo`})})]}),(0,v.jsx)(`h1`,{children:`Vite + React`}),(0,v.jsxs)(`div`,{className:`card`,children:[(0,v.jsxs)(`button`,{onClick:()=>t(e=>e+1),children:[`count is `,e]}),(0,v.jsxs)(`p`,{children:[`Edit `,(0,v.jsx)(`code`,{children:`src/App.jsx`}),` and save to test HMR`]})]}),(0,v.jsx)(`p`,{className:`read-the-docs`,children:`Click on the Vite and React logos to learn more`})]})}var b,x=new Uint8Array(16);function S(){if(!b&&(b=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!b))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return b(x)}var C=[];for(let e=0;e<256;++e)C.push((e+256).toString(16).slice(1));function w(e,t=0){return C[e[t+0]]+C[e[t+1]]+C[e[t+2]]+C[e[t+3]]+`-`+C[e[t+4]]+C[e[t+5]]+`-`+C[e[t+6]]+C[e[t+7]]+`-`+C[e[t+8]]+C[e[t+9]]+`-`+C[e[t+10]]+C[e[t+11]]+C[e[t+12]]+C[e[t+13]]+C[e[t+14]]+C[e[t+15]]}var T={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function E(e,t,n){if(T.randomUUID&&!t&&!e)return T.randomUUID();e||={};let r=e.random||(e.rng||S)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n||=0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return w(r)}var D=class{static startSession(){let e=E(),t=Date.now();return localStorage.setItem(`session_id`,e),localStorage.setItem(`session_start_time`,t),{session_id:e,session_start_time:t}}static getSessionId(){return localStorage.getItem(`session_id`)}static endSession(){let e=localStorage.getItem(`session_id`),t=parseInt(localStorage.getItem(`session_start_time`),10),n=Date.now(),r=n-t;return localStorage.removeItem(`session_id`),localStorage.removeItem(`session_start_time`),{session_id:e,session_start_time:t,session_end_time:n,duration:r}}},O=l((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),k=l((e=>{process.env.NODE_ENV!==`production`&&(function(){"use strict";var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)}function x(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case l:case u:case i:case o:case a:case f:return p;default:var g=p&&p.$$typeof;switch(g){case c:case d:case h:case m:case s:return g;default:return t}}case r:return t}}}var S=l,C=u,w=c,T=s,E=n,D=d,O=i,k=h,A=m,j=r,M=o,N=a,ee=f,te=!1;function P(e){return te||(te=!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.`)),F(e)||x(e)===l}function F(e){return x(e)===u}function ne(e){return x(e)===c}function re(e){return x(e)===s}function ie(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function ae(e){return x(e)===d}function oe(e){return x(e)===i}function se(e){return x(e)===h}function ce(e){return x(e)===m}function le(e){return x(e)===r}function ue(e){return x(e)===o}function de(e){return x(e)===a}function fe(e){return x(e)===f}e.AsyncMode=S,e.ConcurrentMode=C,e.ContextConsumer=w,e.ContextProvider=T,e.Element=E,e.ForwardRef=D,e.Fragment=O,e.Lazy=k,e.Memo=A,e.Portal=j,e.Profiler=M,e.StrictMode=N,e.Suspense=ee,e.isAsyncMode=P,e.isConcurrentMode=F,e.isContextConsumer=ne,e.isContextProvider=re,e.isElement=ie,e.isForwardRef=ae,e.isFragment=oe,e.isLazy=se,e.isMemo=ce,e.isPortal=le,e.isProfiler=ue,e.isStrictMode=de,e.isSuspense=fe,e.isValidElementType=b,e.typeOf=x})()})),A=l(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=O():t.exports=k()})),j=l(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),M=l(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),N=l(((e,t)=>{t.exports=Function.call.bind(Object.prototype.hasOwnProperty)})),ee=l(((e,t)=>{var n=function(){};if(process.env.NODE_ENV!==`production`){var r=M(),i={},a=N();n=function(e){var t=`Warning: `+e;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}}}function o(e,t,o,s,c){if(process.env.NODE_ENV!==`production`){for(var l in e)if(a(e,l)){var u;try{if(typeof e[l]!=`function`){var d=Error((s||`React class`)+`: `+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name=`Invariant Violation`,d}u=e[l](t,l,s,o,null,r)}catch(e){u=e}if(u&&!(u instanceof Error)&&n((s||`React class`)+`: type specification of `+o+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+`. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).`),u instanceof Error&&!(u.message in i)){i[u.message]=!0;var f=c?c():``;n(`Failed `+o+` type: `+u.message+(f??``))}}}}o.resetWarningCache=function(){process.env.NODE_ENV!==`production`&&(i={})},t.exports=o})),te=l(((e,t)=>{var n=A(),r=j(),i=M(),a=N(),o=ee(),s=function(){};process.env.NODE_ENV!==`production`&&(s=function(e){var t=`Warning: `+e;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}});function c(){return null}t.exports=function(e,t){var l=typeof Symbol==`function`&&Symbol.iterator,u=`@@iterator`;function d(e){var t=e&&(l&&e[l]||e[u]);if(typeof t==`function`)return t}var f=`<<anonymous>>`,p={array:_(`array`),bigint:_(`bigint`),bool:_(`boolean`),func:_(`function`),number:_(`number`),object:_(`object`),string:_(`string`),symbol:_(`symbol`),any:v(),arrayOf:y,element:b(),elementType:x(),instanceOf:S,node:E(),objectOf:w,oneOf:C,oneOfType:T,shape:O,exact:k};function m(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function h(e,t){this.message=e,this.data=t&&typeof t==`object`?t:{},this.stack=``}h.prototype=Error.prototype;function g(e){if(process.env.NODE_ENV!==`production`)var n={},r=0;function a(a,o,c,l,u,d,p){if(l||=f,d||=c,p!==i){if(t){var m=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 m.name=`Invariant Violation`,m}else if(process.env.NODE_ENV!==`production`&&typeof console<`u`){var g=l+`:`+c;!n[g]&&r<3&&(s("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. 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."),n[g]=!0,r++)}}return o[c]==null?a?o[c]===null?new h(`The `+u+" `"+d+"` is marked as required "+("in `"+l+"`, but its value is `null`.")):new h(`The `+u+" `"+d+"` is marked as required in "+("`"+l+"`, but its value is `undefined`.")):null:e(o,c,l,u,d)}var o=a.bind(null,!1);return o.isRequired=a.bind(null,!0),o}function _(e){function t(t,n,r,i,a,o){var s=t[n];if(M(s)!==e){var c=N(s);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+e+"`."),{expectedType:e})}return null}return g(t)}function v(){return g(c)}function y(e){function t(t,n,r,a,o){if(typeof e!=`function`)return new h("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){var c=M(s);return new h(`Invalid `+a+" `"+o+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an array."))}for(var l=0;l<s.length;l++){var u=e(s,l,r,a,o+`[`+l+`]`,i);if(u instanceof Error)return u}return null}return g(t)}function b(){function t(t,n,r,i,a){var o=t[n];if(!e(o)){var s=M(o);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return g(t)}function x(){function e(e,t,r,i,a){var o=e[t];if(!n.isValidElementType(o)){var s=M(o);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement type."))}return null}return g(e)}function S(e){function t(t,n,r,i,a){if(!(t[n]instanceof e)){var o=e.name||f,s=te(t[n]);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("instance of `"+o+"`."))}return null}return g(t)}function C(e){if(!Array.isArray(e))return process.env.NODE_ENV!==`production`&&(arguments.length>1?s(`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]).`):s(`Invalid argument supplied to oneOf, expected an array.`)),c;function t(t,n,r,i,a){for(var o=t[n],s=0;s<e.length;s++)if(m(o,e[s]))return null;var c=JSON.stringify(e,function(e,t){return N(t)===`symbol`?String(t):t});return new h(`Invalid `+i+" `"+a+"` of value `"+String(o)+"` "+("supplied to `"+r+"`, expected one of "+c+`.`))}return g(t)}function w(e){function t(t,n,r,o,s){if(typeof e!=`function`)return new h("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var c=t[n],l=M(c);if(l!==`object`)return new h(`Invalid `+o+" `"+s+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an object."));for(var u in c)if(a(c,u)){var d=e(c,u,r,o,s+`.`+u,i);if(d instanceof Error)return d}return null}return g(t)}function T(e){if(!Array.isArray(e))return process.env.NODE_ENV!==`production`&&s(`Invalid argument supplied to oneOfType, expected an instance of array.`),c;for(var t=0;t<e.length;t++){var n=e[t];if(typeof n!=`function`)return s(`Invalid argument supplied to oneOfType. Expected an array of check functions, but received `+ee(n)+` at index `+t+`.`),c}function r(t,n,r,o,s){for(var c=[],l=0;l<e.length;l++){var u=e[l],d=u(t,n,r,o,s,i);if(d==null)return null;d.data&&a(d.data,`expectedType`)&&c.push(d.data.expectedType)}var f=c.length>0?`, expected one of type [`+c.join(`, `)+`]`:``;return new h(`Invalid `+o+" `"+s+"` supplied to "+("`"+r+"`"+f+`.`))}return g(r)}function E(){function e(e,t,n,r,i){return A(e[t])?null:new h(`Invalid `+r+" `"+i+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return g(e)}function D(e,t,n,r,i){return new h((e||`React class`)+`: `+t+" type `"+n+`.`+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function O(e){function t(t,n,r,a,o){var s=t[n],c=M(s);if(c!==`object`)return new h(`Invalid `+a+" `"+o+"` of type `"+c+"` "+("supplied to `"+r+"`, expected `object`."));for(var l in e){var u=e[l];if(typeof u!=`function`)return D(r,a,o,l,N(u));var d=u(s,l,r,a,o+`.`+l,i);if(d)return d}return null}return g(t)}function k(e){function t(t,n,o,s,c){var l=t[n],u=M(l);if(u!==`object`)return new h(`Invalid `+s+" `"+c+"` of type `"+u+"` "+("supplied to `"+o+"`, expected `object`."));for(var d in r({},t[n],e)){var f=e[d];if(a(e,d)&&typeof f!=`function`)return D(o,s,c,d,N(f));if(!f)return new h(`Invalid `+s+" `"+c+"` key `"+d+"` supplied to `"+o+`\`.
17
+ Bad object: `+JSON.stringify(t[n],null,` `)+`
18
+ Valid keys: `+JSON.stringify(Object.keys(e),null,` `));var p=f(l,d,o,s,c+`.`+d,i);if(p)return p}return null}return g(t)}function A(t){switch(typeof t){case`number`:case`string`:case`undefined`:return!0;case`boolean`:return!t;case`object`:if(Array.isArray(t))return t.every(A);if(t===null||e(t))return!0;var n=d(t);if(n){var r=n.call(t),i;if(n!==t.entries){for(;!(i=r.next()).done;)if(!A(i.value))return!1}else for(;!(i=r.next()).done;){var a=i.value;if(a&&!A(a[1]))return!1}}else return!1;return!0;default:return!1}}function j(e,t){return e===`symbol`?!0:t?t[`@@toStringTag`]===`Symbol`||typeof Symbol==`function`&&t instanceof Symbol:!1}function M(e){var t=typeof e;return Array.isArray(e)?`array`:e instanceof RegExp?`object`:j(t,e)?`symbol`:t}function N(e){if(e==null)return``+e;var t=M(e);if(t===`object`){if(e instanceof Date)return`date`;if(e instanceof RegExp)return`regexp`}return t}function ee(e){var t=N(e);switch(t){case`array`:case`object`:return`an `+t;case`boolean`:case`date`:case`regexp`:return`a `+t;default:return t}}function te(e){return!e.constructor||!e.constructor.name?f:e.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p}})),P=l(((e,t)=>{var n=M();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=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 s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),F=d(l(((e,t)=>{if(process.env.NODE_ENV!==`production`){var n=A();t.exports=te()(n.isElement,!0)}else t.exports=P()()}))(),1);function ne(){return{trackError(e,t=null){let n=new Date().toISOString(),r=window.location.pathname,i={user_id:e?.user_id,error_time:n,error_details:e,page_url:r};return typeof t==`function`&&t(i),i}}}var re=(e,t,n,r=12e4,i,a,o,s)=>{let c=window.location.pathname;(0,f.useEffect)(()=>{let i,l=null,u=null,d=()=>{let d=new Date;if(l){let r=(d-l)/1e3;u=d,s({code:`insert_into_analytics`,parameters:{sessionId:t,userId:e,eventName:n,eventData:JSON.stringify({interacted_page:c,start_time:l,end_time:u,duration:r}),device:a,deviceType:o,pageSource:window.location.pathname}}),l=null}clearTimeout(i),l=null,i=setTimeout(()=>{l=new Date},r)},f=[`mousemove`,`mousedown`,`keydown`,`scroll`,`touchstart`];return f.forEach(e=>window.addEventListener(e,d)),d(),()=>{f.forEach(e=>window.removeEventListener(e,d)),clearTimeout(i)}},[r])};function ie(){let e=[];return{trackSearch(t,n=null){let{searchTerm:r,results_count:i,search_type:a}=t,o=window.location.pathname,s=new Date().toISOString();if(!r.trim()){console.warn(`Search term is empty or invalid.`);return}let c=null;if(e.length>0){let t=e[e.length-1],n=new Date(t.search_time);c=(new Date(s)-n)/1e3}return t={search_time:s,results_count:i,search_type:a,interacted_page:o,search_query:r.trim(),time_since_last_search:c},e.push(t),typeof n==`function`&&n(t),t}}}var ae=e=>{let t=e?.form,n=e?.submit||!1;if(e.form&&delete e.form,!t){console.error(`Form not found! Make sure the selector is correct.`);return}let r,i={},a=t.querySelectorAll(`input, textarea, select`);return r=a.length,a.forEach(e=>{let t=e?.name||e?.id;e?.type===`checkbox`?i[t]=e?.checked?`true`:``:e?.type===`radio`&&e?.checked?i[t]=e?.value:i[t]=e?.value||``}),n||(e.progress=oe(r,i)),e},oe=(e,t)=>{let n=e,r=Object.values(t).filter(e=>e&&e.trim()!==``).length;return Math.round(r/n*100)},se=ne(),ce=ie(),le=(0,f.createContext)(),ue=({children:e,config:t,eventProps:n})=>{let{user:r,device:i,device_type:a,token:o,execute:s}=n,c=r?.id,l=(e=!0)=>{if(typeof performance?.getEntriesByType==`function`){if(performance.getEntriesByType(`navigation`)?.[0]?.type===`reload`)return}else console.warn(`The Performance API is not supported in this device.`);let{session_id:t,...n}=D.endSession();s({code:`insert_into_analytics`,parameters:{sessionId:t,userId:c,eventName:`session_end`,eventData:JSON.stringify({...n}),device:i,deviceType:a,pageSource:window.location.pathname}})};return(0,f.useEffect)(()=>{if(c){if(!localStorage.getItem(`session_id`)){let{session_id:e,...t}=D.startSession();s({code:`insert_into_analytics`,parameters:{sessionId:e,userId:c,eventName:`session_start`,eventData:JSON.stringify({...t}),device:i,deviceType:a,pageSource:window.location.pathname}})}window.addEventListener(`beforeunload`,l)}},[c]),(0,v.jsx)(le.Provider,{value:{trackEvent:async(e,n)=>{let r=localStorage.getItem(`session_id`);if(e===`session_end`){l(!1);return}if(e===`error_tracking`&&(n=se.trackError(n)),e===`inactivity_tracking`){re(c,r,e,n,t,i,a,s);return}e===`search_tracking`&&(n=ce.trackSearch(n),!n)||e===`conversion_event`&&(n=ae(n),!n)||await s({code:`insert_into_analytics`,parameters:{sessionId:r,userId:c||n.user_id,eventName:e,eventData:JSON.stringify(n),device:i,deviceType:a,pageSource:window.location.pathname}},{showLoader:!1})}},children:e})},de=()=>{let e=(0,f.useContext)(le);if(!e)throw Error(`useTracking must be used within a TrackingProvider`);return e};ue.propTypes={children:F.default.any,config:F.default.any,eventProps:F.default.any};function fe({prevPath:e,eventProps:t}){let{user:n,device:r,device_type:i,execute:a}=t,o=n?.id,s=(0,f.useRef)(new Date),c=(0,f.useRef)(0),l=localStorage.getItem(`session_id`),u=async(t,n)=>{a({code:`insert_into_analytics`,parameters:{sessionId:l,userId:o,eventName:`page_view`,eventData:JSON.stringify({active_tab_time:t,prev_state_id:e,max_scroll_depth:n}),device:r,deviceType:i,pageSource:window.location.pathname}}),c.current=0,s.current=new Date},d=()=>{let e=window.scrollY/(document.documentElement.scrollHeight-window.innerHeight)*100;e>c.current&&(c.current=Math.min(e,100))};function p(e,t){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}}(0,f.useEffect)(()=>{let e=p(d,100),t=()=>{u(new Date-s.current,c.current)};return window.addEventListener(`scroll`,e),window.addEventListener(`beforeunload`,t),()=>{window.removeEventListener(`scroll`,e),window.removeEventListener(`beforeunload`,t),u(new Date-s.current,c.current)}},[e]),(0,f.useEffect)(()=>{c.current=0,s.current=new Date},[window.location.pathname])}function pe(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=pe(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function I(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=pe(e))&&(r&&(r+=` `),r+=t);return r}function me(e,n){return t.isValidElement(e)&&n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}var L=e=>e,he=(()=>{let e=L;return{configure(t){e=t},generate(t){return e(t)},reset(){e=L}}})(),ge={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 _e(e,t,n=`Mui`){let r=ge[t];return r?`${n}-${r}`:`${he.generate(e)}-${t}`}function ve(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e<a.length;e+=1){let r=a[e];r&&(o+=(s===!0?``:` `)+t(r),s=!1,n&&n[r]&&(o+=` `+n[r]))}r[i]=o}return r}function ye(){return ye=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},ye.apply(null,arguments)}var be=!1;function xe(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 Se(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 Ce=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0?!be:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(Se(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=xe(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),we=`-ms-`,Te=`-moz-`,R=`-webkit-`,Ee=`comm`,De=`rule`,Oe=`decl`,ke=`@import`,Ae=`@keyframes`,je=`@layer`,Me=Math.abs,Ne=String.fromCharCode,Pe=Object.assign;function Fe(e,t){return ze(e,0)^45?(((t<<2^ze(e,0))<<2^ze(e,1))<<2^ze(e,2))<<2^ze(e,3):0}function Ie(e){return e.trim()}function Le(e,t){return(e=t.exec(e))?e[0]:e}function z(e,t,n){return e.replace(t,n)}function Re(e,t){return e.indexOf(t)}function ze(e,t){return e.charCodeAt(t)|0}function Be(e,t,n){return e.slice(t,n)}function Ve(e){return e.length}function He(e){return e.length}function Ue(e,t){return t.push(e),e}function We(e,t){return e.map(t).join(``)}var Ge=1,Ke=1,qe=0,Je=0,Ye=0,Xe=``;function Ze(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Ge,column:Ke,length:o,return:``}}function Qe(e,t){return Pe(Ze(``,null,null,``,null,null,0),e,{length:-e.length},t)}function $e(){return Ye}function et(){return Ye=Je>0?ze(Xe,--Je):0,Ke--,Ye===10&&(Ke=1,Ge--),Ye}function tt(){return Ye=Je<qe?ze(Xe,Je++):0,Ke++,Ye===10&&(Ke=1,Ge++),Ye}function nt(){return ze(Xe,Je)}function rt(){return Je}function it(e,t){return Be(Xe,e,t)}function at(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 ot(e){return Ge=Ke=1,qe=Ve(Xe=e),Je=0,[]}function st(e){return Xe=``,e}function ct(e){return Ie(it(Je-1,dt(e===91?e+2:e===40?e+1:e)))}function lt(e){for(;(Ye=nt())&&Ye<33;)tt();return at(e)>2||at(Ye)>3?``:` `}function ut(e,t){for(;--t&&tt()&&!(Ye<48||Ye>102||Ye>57&&Ye<65||Ye>70&&Ye<97););return it(e,rt()+(t<6&&nt()==32&&tt()==32))}function dt(e){for(;tt();)switch(Ye){case e:return Je;case 34:case 39:e!==34&&e!==39&&dt(Ye);break;case 40:e===41&&dt(e);break;case 92:tt();break}return Je}function ft(e,t){for(;tt()&&e+Ye!==57&&!(e+Ye===84&&nt()===47););return`/*`+it(t,Je-1)+`*`+Ne(e===47?e:tt())}function pt(e){for(;!at(nt());)tt();return it(e,Je)}function mt(e){return st(ht(``,null,null,null,[``],e=ot(e),0,[0],e))}function ht(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=tt()){case 40:if(m!=108&&ze(C,d-1)==58){Re(C+=z(ct(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=ct(v);break;case 9:case 10:case 13:case 32:C+=lt(m);break;case 92:C+=ut(rt()-1,7);continue;case 47:switch(nt()){case 42:case 47:Ue(_t(ft(tt(),rt()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=Ve(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=z(C,/\f/g,``)),p>0&&Ve(C)-d&&Ue(p>32?vt(C+`;`,r,n,d-1):vt(z(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(Ue(S=gt(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)ht(C,t,S,S,b,a,d,s,x);else switch(f===99&&ze(C,3)===110?100:f){case 100:case 108:case 109:case 115:ht(e,S,S,r&&Ue(gt(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:ht(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+Ve(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&et()==125)continue}switch(C+=Ne(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(Ve(C)-1)*_,_=1;break;case 64:nt()===45&&(C+=ct(tt())),f=nt(),u=d=Ve(y=C+=pt(rt())),v++;break;case 45:m===45&&Ve(C)==2&&(h=0)}}return a}function gt(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=He(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=Be(e,d+1,d=Me(h=o[m])),y=e;_<p;++_)(y=Ie(h>0?f[_]+` `+v:z(v,/&\f/g,f[_])))&&(c[g++]=y);return Ze(e,t,n,i===0?De:s,c,l,u)}function _t(e,t,n){return Ze(e,t,n,Ee,Ne($e()),Be(e,2,-2),0)}function vt(e,t,n,r){return Ze(e,t,n,Oe,Be(e,0,r),Be(e,r+1,-1),r)}function yt(e,t){for(var n=``,r=He(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function bt(e,t,n,r){switch(e.type){case je:if(e.children.length)break;case ke:case Oe:return e.return=e.return||e.value;case Ee:return``;case Ae:return e.return=e.value+`{`+yt(e.children,r)+`}`;case De:e.value=e.props.join(`,`)}return Ve(n=yt(e.children,r))?e.return=e.value+`{`+n+`}`:``}function xt(e){var t=He(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function St(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ct(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var wt=function(e,t,n){for(var r=0,i=0;r=i,i=nt(),r===38&&i===12&&(t[n]=1),!at(i);)tt();return it(e,Je)},Tt=function(e,t){var n=-1,r=44;do switch(at(r)){case 0:r===38&&nt()===12&&(t[n]=1),e[n]+=wt(Je-1,t,n);break;case 2:e[n]+=ct(r);break;case 4:if(r===44){e[++n]=nt()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=Ne(r)}while(r=tt());return e},Et=function(e,t){return st(Tt(ot(e),t))},Dt=new WeakMap,Ot=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Dt.get(n))&&!r){Dt.set(e,!0);for(var i=[],a=Et(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},kt=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function At(e,t){switch(Fe(e,t)){case 5103:return R+`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 R+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return R+e+Te+e+we+e+e;case 6828:case 4268:return R+e+we+e+e;case 6165:return R+e+we+`flex-`+e+e;case 5187:return R+e+z(e,/(\w+).+(:[^]+)/,R+`box-$1$2`+we+`flex-$1$2`)+e;case 5443:return R+e+we+`flex-item-`+z(e,/flex-|-self/,``)+e;case 4675:return R+e+we+`flex-line-pack`+z(e,/align-content|flex-|-self/,``)+e;case 5548:return R+e+we+z(e,`shrink`,`negative`)+e;case 5292:return R+e+we+z(e,`basis`,`preferred-size`)+e;case 6060:return R+`box-`+z(e,`-grow`,``)+R+e+we+z(e,`grow`,`positive`)+e;case 4554:return R+z(e,/([^-])(transform)/g,`$1`+R+`$2`)+e;case 6187:return z(z(z(e,/(zoom-|grab)/,R+`$1`),/(image-set)/,R+`$1`),e,``)+e;case 5495:case 3959:return z(e,/(image-set\([^]*)/,R+"$1$`$1");case 4968:return z(z(e,/(.+:)(flex-)?(.*)/,R+`box-pack:$3`+we+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+R+e+e;case 4095:case 3583:case 4068:case 2532:return z(e,/(.+)-inline(.+)/,R+`$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(Ve(e)-1-t>6)switch(ze(e,t+1)){case 109:if(ze(e,t+4)!==45)break;case 102:return z(e,/(.+:)(.+)-([^]+)/,`$1`+R+`$2-$3$1`+Te+(ze(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~Re(e,`stretch`)?At(z(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(ze(e,t+1)!==115)break;case 6444:switch(ze(e,Ve(e)-3-(~Re(e,`!important`)&&10))){case 107:return z(e,`:`,`:`+R)+e;case 101:return z(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+R+(ze(e,14)===45?`inline-`:``)+`box$3$1`+R+`$2$3$1`+we+`$2box$3`)+e}break;case 5936:switch(ze(e,t+11)){case 114:return R+e+we+z(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return R+e+we+z(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return R+e+we+z(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return R+e+we+e+e}return e}var jt=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Oe:e.return=At(e.value,e.length);break;case Ae:return yt([Qe(e,{value:z(e.value,`@`,`@`+R)})],r);case De:if(e.length)return We(e.props,function(t){switch(Le(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return yt([Qe(e,{props:[z(t,/:(read-\w+)/,`:`+Te+`$1`)]})],r);case`::placeholder`:return yt([Qe(e,{props:[z(t,/:(plac\w+)/,`:`+R+`input-$1`)]}),Qe(e,{props:[z(t,/:(plac\w+)/,`:`+Te+`$1`)]}),Qe(e,{props:[z(t,/:(plac\w+)/,we+`input-$1`)]})],r)}return``})}}],Mt=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||jt,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[Ot,kt],l,u=[bt,St(function(e){l.insert(e)})],d=xt(c.concat(r,u)),f=function(e){return yt(mt(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Ce({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},Nt=l(((e,t)=>{var n=A(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h})),Pt=!0;function Ft(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var It=function(e,t,n){var r=e.key+`-`+t.name;(n===!1||Pt===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},Lt=function(e,t,n){It(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function Rt(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var zt={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},Bt=!1,Vt=/[A-Z]|^ms/g,Ht=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ut=function(e){return e.charCodeAt(1)===45},Wt=function(e){return e!=null&&typeof e!=`boolean`},Gt=Ct(function(e){return Ut(e)?e:e.replace(Vt,`-$&`).toLowerCase()}),Kt=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(Ht,function(e,t,n){return Zt={name:t,styles:n,next:Zt},t})}return zt[e]!==1&&!Ut(e)&&typeof t==`number`&&t!==0?t+`px`:t},qt=`Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.`;function Jt(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return Zt={name:i.name,styles:i.styles,next:Zt},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Zt={name:o.name,styles:o.styles,next:Zt},o=o.next;return a.styles+`;`}return Yt(e,t,n);case`function`:if(e!==void 0){var s=Zt,c=n(e);return Zt=s,Jt(e,t,c)}break}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function Yt(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Jt(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:Wt(s)&&(r+=Gt(a)+`:`+Kt(a,s)+`;`)}else{if(a===`NO_COMPONENT_SELECTOR`&&Bt)throw Error(qt);if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)Wt(o[c])&&(r+=Gt(a)+`:`+Kt(a,o[c])+`;`);else{var l=Jt(e,t,o);switch(a){case`animation`:case`animationName`:r+=Gt(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}}return r}var Xt=/label:\s*([^\s;{]+)\s*(;|$)/g,Zt;function Qt(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;Zt=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=Jt(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=Jt(n,t,e[o]),r&&(i+=a[o]);Xt.lastIndex=0;for(var s=``,c;(c=Xt.exec(i))!==null;)s+=`-`+c[1];return{name:Rt(i)+s,styles:i,next:Zt}}var $t=function(e){return e()},en=t.useInsertionEffect?t.useInsertionEffect:!1,tn=en||$t,nn=en||t.useLayoutEffect,rn=t.createContext(typeof HTMLElement<`u`?Mt({key:`css`}):null);rn.Provider;var an=function(e){return(0,t.forwardRef)(function(n,r){return e(n,(0,t.useContext)(rn),r)})},on=t.createContext({}),sn={}.hasOwnProperty,cn=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,ln=function(e,t){var n={};for(var r in t)sn.call(t,r)&&(n[r]=t[r]);return n[cn]=e,n},un=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return It(t,n,r),tn(function(){return Lt(t,n,r)}),null},dn=an(function(e,n,r){var i=e.css;typeof i==`string`&&n.registered[i]!==void 0&&(i=n.registered[i]);var a=e[cn],o=[i],s=``;typeof e.className==`string`?s=Ft(n.registered,o,e.className):e.className!=null&&(s=e.className+` `);var c=Qt(o,void 0,t.useContext(on));s+=n.key+`-`+c.name;var l={};for(var u in e)sn.call(e,u)&&u!==`css`&&u!==cn&&(l[u]=e[u]);return l.className=s,r&&(l.ref=r),t.createElement(t.Fragment,null,t.createElement(un,{cache:n,serialized:c,isStringTag:typeof a==`string`}),t.createElement(a,l))});Nt();var fn=function(e,n){var r=arguments;if(n==null||!sn.call(n,`css`))return t.createElement.apply(void 0,r);var i=r.length,a=Array(i);a[0]=dn,a[1]=ln(e,n);for(var o=2;o<i;o++)a[o]=r[o];return t.createElement.apply(null,a)};(function(e){var t;t||=e.JSX||={}})(fn||={});var pn=an(function(e,n){var r=e.styles,i=Qt([r],void 0,t.useContext(on)),a=t.useRef();return nn(function(){var e=n.key+`-global`,t=new n.sheet.constructor({key:e,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),r=!1,o=document.querySelector(`style[data-emotion="`+e+` `+i.name+`"]`);return n.sheet.tags.length&&(t.before=n.sheet.tags[0]),o!==null&&(r=!0,o.setAttribute(`data-emotion`,e),t.hydrate([o])),a.current=[t,r],function(){t.flush()}},[n]),nn(function(){var e=a.current,t=e[0];if(e[1]){e[1]=!1;return}i.next!==void 0&&Lt(n,i.next,!0),t.tags.length&&(t.before=t.tags[t.tags.length-1].nextElementSibling,t.flush()),n.insert(``,i,t,!1)},[n,i.name]),null});function mn(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Qt(t)}function hn(){var e=mn.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}}var gn=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,_n=Ct(function(e){return gn.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),vn=!1,yn=_n,bn=function(e){return e!==`theme`},xn=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?yn:bn},Sn=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},Cn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return It(t,n,r),tn(function(){return Lt(t,n,r)}),null},wn=function e(n,r){var i=n.__emotion_real===n,a=i&&n.__emotion_base||n,o,s;r!==void 0&&(o=r.label,s=r.target);var c=Sn(n,r,i),l=c||xn(a),u=!l(`as`);return function(){var d=arguments,f=i&&n.__emotion_styles!==void 0?n.__emotion_styles.slice(0):[];if(o!==void 0&&f.push(`label:`+o+`;`),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{var p=d[0];f.push(p[0]);for(var m=d.length,h=1;h<m;h++)f.push(d[h],p[h])}var g=an(function(e,n,r){var i=u&&e.as||a,o=``,d=[],p=e;if(e.theme==null){for(var m in p={},e)p[m]=e[m];p.theme=t.useContext(on)}typeof e.className==`string`?o=Ft(n.registered,d,e.className):e.className!=null&&(o=e.className+` `);var h=Qt(f.concat(d),n.registered,p);o+=n.key+`-`+h.name,s!==void 0&&(o+=` `+s);var g=u&&c===void 0?xn(i):l,_={};for(var v in e)u&&v===`as`||g(v)&&(_[v]=e[v]);return _.className=o,r&&(_.ref=r),t.createElement(t.Fragment,null,t.createElement(Cn,{cache:n,serialized:h,isStringTag:typeof i==`string`}),t.createElement(i,_))});return g.displayName=o===void 0?`Styled(`+(typeof a==`string`?a:a.displayName||a.name||`Component`)+`)`:o,g.defaultProps=n.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=f,g.__emotion_forwardProp=c,Object.defineProperty(g,"toString",{value:function(){return s===void 0&&vn?`NO_COMPONENT_SELECTOR`:`.`+s}}),g.withComponent=function(t,n){return e(t,ye({},r,n,{shouldForwardProp:Sn(g,n,!0)})).apply(void 0,f)},g}},Tn=`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`.split(`.`),En=wn.bind(null);Tn.forEach(function(e){En[e]=En(e)});function Dn(e){return e==null||Object.keys(e).length===0}function On(e){let{styles:t,defaultTheme:n={}}=e;return(0,v.jsx)(pn,{styles:typeof t==`function`?e=>t(Dn(e)?n:e):t})}process.env.NODE_ENV!==`production`&&(On.propTypes={defaultTheme:F.default.object,styles:F.default.oneOfType([F.default.array,F.default.string,F.default.object,F.default.func])});function kn(e,t){let n=En(e,t);return process.env.NODE_ENV===`production`?n:(...t)=>{let r=typeof e==`string`?`"${e}"`:`component`;return t.length===0?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
19
+ `)):t.some(e=>e===void 0)&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...t)}}function An(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var jn=[];function Mn(e){return jn[0]=e,Qt(jn)}var Nn=l((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.suspense_list`),d=Symbol.for(`react.memo`),f=Symbol.for(`react.lazy`),p=Symbol.for(`react.view_transition`),m=Symbol.for(`react.client.reference`);function h(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case l:case u:case p:return e;default:switch(e&&=e.$$typeof,e){case s:case c:case f:case d:return e;case o:return e;default:return m}}case n:return m}}}e.ContextConsumer=o,e.ContextProvider=s,e.Element=t,e.ForwardRef=c,e.Fragment=r,e.Lazy=f,e.Memo=d,e.Portal=n,e.Profiler=a,e.StrictMode=i,e.Suspense=l,e.SuspenseList=u,e.isContextConsumer=function(e){return h(e)===o},e.isContextProvider=function(e){return h(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===t},e.isForwardRef=function(e){return h(e)===c},e.isFragment=function(e){return h(e)===r},e.isLazy=function(e){return h(e)===f},e.isMemo=function(e){return h(e)===d},e.isPortal=function(e){return h(e)===n},e.isProfiler=function(e){return h(e)===a},e.isStrictMode=function(e){return h(e)===i},e.isSuspense=function(e){return h(e)===l},e.isSuspenseList=function(e){return h(e)===u},e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===r||e===a||e===i||e===l||e===u||typeof e==`object`&&e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===s||e.$$typeof===o||e.$$typeof===c||e.$$typeof===m||e.getModuleId!==void 0))},e.typeOf=h})),Pn=l((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case i:case o:case a:case u:case d:case m:return e;default:switch(e&&=e.$$typeof,e){case c:case l:case p:case f:return e;case s:return e;default:return t}}case r:return t}}}var n=Symbol.for(`react.transitional.element`),r=Symbol.for(`react.portal`),i=Symbol.for(`react.fragment`),a=Symbol.for(`react.strict_mode`),o=Symbol.for(`react.profiler`),s=Symbol.for(`react.consumer`),c=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`),p=Symbol.for(`react.lazy`),m=Symbol.for(`react.view_transition`),h=Symbol.for(`react.client.reference`);e.ContextConsumer=s,e.ContextProvider=c,e.Element=n,e.ForwardRef=l,e.Fragment=i,e.Lazy=p,e.Memo=f,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=u,e.SuspenseList=d,e.isContextConsumer=function(e){return t(e)===s},e.isContextProvider=function(e){return t(e)===c},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return t(e)===l},e.isFragment=function(e){return t(e)===i},e.isLazy=function(e){return t(e)===p},e.isMemo=function(e){return t(e)===f},e.isPortal=function(e){return t(e)===r},e.isProfiler=function(e){return t(e)===o},e.isStrictMode=function(e){return t(e)===a},e.isSuspense=function(e){return t(e)===u},e.isSuspenseList=function(e){return t(e)===d},e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===i||e===o||e===a||e===u||e===d||typeof e==`object`&&e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===c||e.$$typeof===s||e.$$typeof===l||e.$$typeof===h||e.getModuleId!==void 0))},e.typeOf=t})()})),Fn=l(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=Nn():t.exports=Pn()}))();function In(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ln(e){if(t.isValidElement(e)||(0,Fn.isValidElementType)(e)||!In(e))return e;let n={};return Object.keys(e).forEach(t=>{n[t]=Ln(e[t])}),n}function Rn(e,n,r={clone:!0}){let i=r.clone?{...e}:e;return In(e)&&In(n)&&Object.keys(n).forEach(a=>{t.isValidElement(n[a])||(0,Fn.isValidElementType)(n[a])?i[a]=n[a]:In(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&In(e[a])?i[a]=Rn(e[a],n[a],r):r.clone?i[a]=In(n[a])?Ln(n[a]):n[a]:i[a]=n[a]}),i}function zn(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Bn(e){if(typeof e!=`string`)throw Error(process.env.NODE_ENV===`production`?zn(7):"MUI: `capitalize(string)` expects a string argument.");return e.charAt(0).toUpperCase()+e.slice(1)}function Vn(e,t=``){return e.displayName||e.name||t}function Hn(e,t,n){let r=Vn(t);return e.displayName||(r===``?n:`${n}(${r})`)}function Un(e){if(e!=null){if(typeof e==`string`)return e;if(typeof e==`function`)return Vn(e,`Component`);if(typeof e==`object`)switch(e.$$typeof){case Fn.ForwardRef:return Hn(e,e.render,`ForwardRef`);case Fn.Memo:return Hn(e,e.type,`memo`);default:return}}}var Wn=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function Gn(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=Wn(t),o=Object.keys(a);function s(e){return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n})`}function c(e){return`@media (max-width:${(typeof t[e]==`number`?t[e]:e)-r/100}${n})`}function l(e,i){let a=o.indexOf(i);return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n}) and (max-width:${(a!==-1&&typeof t[o[a]]==`number`?t[o[a]]:i)-r/100}${n})`}function u(e){return o.indexOf(e)+1<o.length?l(e,o[o.indexOf(e)+1]):s(e)}function d(e){let t=o.indexOf(e);return t===0?s(o[1]):t===o.length-1?c(o[t]):l(e,o[o.indexOf(e)+1]).replace(`@media`,`@media not all and`)}return{keys:o,values:a,up:s,down:c,between:l,only:u,not:d,unit:n,...i}}function Kn(e,t){if(!e.containerQueries)return t;let n=Object.keys(t).filter(e=>e.startsWith(`@container`)).sort((e,t)=>{let n=/min-width:\s*([0-9.]+)/;return(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{let r=t[n];return delete e[n],e[n]=r,e},{...t}):t}function qn(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function Jn(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!==`production`)throw Error(process.env.NODE_ENV===`production`?zn(18,`(${t})`):`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\nFor example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function Yn(e){let t=(e,t)=>e.replace(`@media`,t?`@container ${t}`:`@container`);function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let i=t(e.breakpoints.not(...n),r);return i.includes(`not all and`)?i.replace(`not all and `,``).replace(`min-width:`,`width<`).replace(`max-width:`,`width>`).replace(`and`,`or`):i}}let r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}var Xn={borderRadius:4},Zn=process.env.NODE_ENV===`production`?{}:F.default.oneOfType([F.default.number,F.default.string,F.default.object,F.default.array]);function Qn(e,t){return t?Rn(e,t,{clone:!1}):e}var $n={xs:0,sm:600,md:900,lg:1200,xl:1536},er={keys:[`xs`,`sm`,`md`,`lg`,`xl`],up:e=>`@media (min-width:${$n[e]}px)`},tr={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:$n[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function nr(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||er;return t.reduce((r,i,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if(typeof t==`object`){let e=r.breakpoints||er;return Object.keys(t).reduce((i,a)=>{if(qn(e.keys,a)){let e=Jn(r.containerQueries?r:tr,a);e&&(i[e]=n(t[a],a))}else if(Object.keys(e.values||$n).includes(a)){let r=e.up(a);i[r]=n(t[a],a)}else{let e=a;i[e]=t[e]}return i},{})}return n(t)}function rr(e={}){return e.keys?.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{})||{}}function ir(e,t){return e.reduce((e,t)=>{let n=e[t];return(!n||Object.keys(n).length===0)&&delete e[t],e},t)}function ar(e,t,n=!0){if(!t||typeof t!=`string`)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:null,e);if(n!=null)return n}return t.split(`.`).reduce((e,t)=>e&&e[t]!=null?e[t]:null,e)}function or(e,t,n,r=n){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||r:ar(e,n)||r,t&&(i=t(i,r,e)),i}function sr(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=e=>{if(e[t]==null)return null;let a=e[t],o=e.theme,s=ar(o,r)||{};return nr(e,a,e=>{let r=or(s,i,e);return e===r&&typeof e==`string`&&(r=or(s,i,`${t}${e==="default"?``:Bn(e)}`,e)),n===!1?r:{[n]:r}})};return a.propTypes=process.env.NODE_ENV===`production`?{}:{[t]:Zn},a.filterProps=[t],a}function cr(e){let t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var lr={m:`margin`,p:`padding`},ur={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},dr={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},fr=cr(e=>{if(e.length>2)if(dr[e])e=dr[e];else return[e];let[t,n]=e.split(``),r=lr[t],i=ur[n]||``;return Array.isArray(i)?i.map(e=>r+e):[r+i]}),pr=[`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`],mr=[`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`],hr=[...pr,...mr];function gr(e,t,n,r){let i=ar(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:(process.env.NODE_ENV!==`production`&&typeof e!=`number`&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${e}.`),typeof i==`string`?`calc(${e} * ${i})`:i*e):Array.isArray(i)?e=>{if(typeof e==`string`)return e;let n=Math.abs(e);process.env.NODE_ENV!==`production`&&(Number.isInteger(n)?n>i.length-1&&console.error([`MUI: The value provided (${n}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${n} > ${i.length-1}, you need to add the missing values.`].join(`
74
20
  `)):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
-
21
+ `)));let r=i[n];return e>=0?r:typeof r==`number`?-r:`-${r}`}:typeof i==`function`?i:(process.env.NODE_ENV!==`production`&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,`It should be a number, an array or a function.`].join(`
22
+ `)),()=>void 0)}function _r(e){return gr(e,`spacing`,8,`spacing`)}function vr(e,t){return typeof t==`string`||t==null?t:e(t)}function yr(e,t){return n=>e.reduce((e,r)=>(e[r]=vr(t,n),e),{})}function br(e,t,n,r){if(!t.includes(n))return null;let i=yr(fr(n),r),a=e[n];return nr(e,a,i)}function xr(e,t){let n=_r(e.theme);return Object.keys(e).map(r=>br(e,t,r,n)).reduce(Qn,{})}function Sr(e){return xr(e,pr)}Sr.propTypes=process.env.NODE_ENV===`production`?{}:pr.reduce((e,t)=>(e[t]=Zn,e),{}),Sr.filterProps=pr;function Cr(e){return xr(e,mr)}Cr.propTypes=process.env.NODE_ENV===`production`?{}:mr.reduce((e,t)=>(e[t]=Zn,e),{}),Cr.filterProps=mr;function wr(e){return xr(e,hr)}wr.propTypes=process.env.NODE_ENV===`production`?{}:hr.reduce((e,t)=>(e[t]=Zn,e),{}),wr.filterProps=hr;function Tr(e=8,t=_r({spacing:e})){if(e.mui)return e;let n=(...e)=>(process.env.NODE_ENV!==`production`&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(e.length===0?[1]:e).map(e=>{let n=t(e);return typeof n==`number`?`${n}px`:n}).join(` `));return n.mui=!0,n}function Er(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?Qn(n,t[r](e)):n,{});return n.propTypes=process.env.NODE_ENV===`production`?{}:e.reduce((e,t)=>Object.assign(e,t.propTypes),{}),n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Dr(e){return typeof e==`number`?`${e}px solid`:e}function Or(e,t){return sr({prop:e,themeKey:`borders`,transform:t})}var kr=Or(`border`,Dr),Ar=Or(`borderTop`,Dr),jr=Or(`borderRight`,Dr),Mr=Or(`borderBottom`,Dr),Nr=Or(`borderLeft`,Dr),Pr=Or(`borderColor`),Fr=Or(`borderTopColor`),Ir=Or(`borderRightColor`),Lr=Or(`borderBottomColor`),Rr=Or(`borderLeftColor`),zr=Or(`outline`,Dr),Br=Or(`outlineColor`),Vr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=gr(e.theme,`shape.borderRadius`,4,`borderRadius`);return nr(e,e.borderRadius,e=>({borderRadius:vr(t,e)}))}return null};Vr.propTypes=process.env.NODE_ENV===`production`?{}:{borderRadius:Zn},Vr.filterProps=[`borderRadius`],Er(kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,Vr,zr,Br);var Hr=e=>{if(e.gap!==void 0&&e.gap!==null){let t=gr(e.theme,`spacing`,8,`gap`);return nr(e,e.gap,e=>({gap:vr(t,e)}))}return null};Hr.propTypes=process.env.NODE_ENV===`production`?{}:{gap:Zn},Hr.filterProps=[`gap`];var Ur=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=gr(e.theme,`spacing`,8,`columnGap`);return nr(e,e.columnGap,e=>({columnGap:vr(t,e)}))}return null};Ur.propTypes=process.env.NODE_ENV===`production`?{}:{columnGap:Zn},Ur.filterProps=[`columnGap`];var Wr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=gr(e.theme,`spacing`,8,`rowGap`);return nr(e,e.rowGap,e=>({rowGap:vr(t,e)}))}return null};Wr.propTypes=process.env.NODE_ENV===`production`?{}:{rowGap:Zn},Wr.filterProps=[`rowGap`],Er(Hr,Ur,Wr,sr({prop:`gridColumn`}),sr({prop:`gridRow`}),sr({prop:`gridAutoFlow`}),sr({prop:`gridAutoColumns`}),sr({prop:`gridAutoRows`}),sr({prop:`gridTemplateColumns`}),sr({prop:`gridTemplateRows`}),sr({prop:`gridTemplateAreas`}),sr({prop:`gridArea`}));function Gr(e,t){return t===`grey`?t:e}Er(sr({prop:`color`,themeKey:`palette`,transform:Gr}),sr({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:Gr}),sr({prop:`backgroundColor`,themeKey:`palette`,transform:Gr}));function Kr(e){return e<=1&&e!==0?`${e*100}%`:e}var qr=sr({prop:`width`,transform:Kr}),Jr=e=>e.maxWidth!==void 0&&e.maxWidth!==null?nr(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||$n[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:Kr(t)}}):null;Jr.filterProps=[`maxWidth`];var Yr=sr({prop:`minWidth`,transform:Kr}),Xr=sr({prop:`height`,transform:Kr}),Zr=sr({prop:`maxHeight`,transform:Kr}),Qr=sr({prop:`minHeight`,transform:Kr});sr({prop:`size`,cssProperty:`width`,transform:Kr}),sr({prop:`size`,cssProperty:`height`,transform:Kr}),Er(qr,Jr,Yr,Xr,Zr,Qr,sr({prop:`boxSizing`}));var $r={border:{themeKey:`borders`,transform:Dr},borderTop:{themeKey:`borders`,transform:Dr},borderRight:{themeKey:`borders`,transform:Dr},borderBottom:{themeKey:`borders`,transform:Dr},borderLeft:{themeKey:`borders`,transform:Dr},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:Dr},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:Vr},color:{themeKey:`palette`,transform:Gr},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:Gr},backgroundColor:{themeKey:`palette`,transform:Gr},p:{style:Cr},pt:{style:Cr},pr:{style:Cr},pb:{style:Cr},pl:{style:Cr},px:{style:Cr},py:{style:Cr},padding:{style:Cr},paddingTop:{style:Cr},paddingRight:{style:Cr},paddingBottom:{style:Cr},paddingLeft:{style:Cr},paddingX:{style:Cr},paddingY:{style:Cr},paddingInline:{style:Cr},paddingInlineStart:{style:Cr},paddingInlineEnd:{style:Cr},paddingBlock:{style:Cr},paddingBlockStart:{style:Cr},paddingBlockEnd:{style:Cr},m:{style:Sr},mt:{style:Sr},mr:{style:Sr},mb:{style:Sr},ml:{style:Sr},mx:{style:Sr},my:{style:Sr},margin:{style:Sr},marginTop:{style:Sr},marginRight:{style:Sr},marginBottom:{style:Sr},marginLeft:{style:Sr},marginX:{style:Sr},marginY:{style:Sr},marginInline:{style:Sr},marginInlineStart:{style:Sr},marginInlineEnd:{style:Sr},marginBlock:{style:Sr},marginBlockStart:{style:Sr},marginBlockEnd:{style:Sr},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:Hr},rowGap:{style:Wr},columnGap:{style:Ur},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:Kr},maxWidth:{style:Jr},minWidth:{transform:Kr},height:{transform:Kr},maxHeight:{transform:Kr},minHeight:{transform:Kr},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 ei(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}function ti(e,t){return typeof e==`function`?e(t):e}function ni(){function e(e,t,n,r){let i={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};let{cssProperty:o=e,themeKey:s,transform:c,style:l}=a;if(t==null)return null;if(s===`typography`&&t===`inherit`)return{[e]:t};let u=ar(n,s)||{};return l?l(i):nr(i,t,t=>{let n=or(u,c,t);return t===n&&typeof t==`string`&&(n=or(u,c,`${e}${t==="default"?``:Bn(t)}`,t)),o===!1?n:{[o]:n}})}function t(n){let{sx:r,theme:i={},nested:a}=n||{};if(!r)return null;let o=i.unstable_sxConfig??$r;function s(n){let r=n;if(typeof n==`function`)r=n(i);else if(typeof n!=`object`)return n;if(!r)return null;let s=rr(i.breakpoints),c=Object.keys(s),l=s;return Object.keys(r).forEach(n=>{let a=ti(r[n],i);if(a!=null)if(typeof a==`object`)if(o[n])l=Qn(l,e(n,a,i,o));else{let e=nr({theme:i},a,e=>({[n]:e}));ei(e,a)?l[n]=t({sx:a,theme:i,nested:!0}):l=Qn(l,e)}else l=Qn(l,e(n,a,i,o))}),!a&&i.modularCssLayers?{"@layer sx":Kn(i,ir(c,l))}:Kn(i,ir(c,l))}return Array.isArray(r)?r.map(s):s(r)}return t}var ri=ni();ri.filterProps=[`sx`];function ii(e,t){let n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!=`function`)return{};let r=n.getColorSchemeSelector(e);return r===`&`?t:((r.includes(`data-`)||r.includes(`.`))&&(r=`*:where(${r.replace(/\s*&$/,``)}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function ai(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=Gn(n),c=Tr(i),l=Rn({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...Xn,...a}},o);return l=Yn(l),l.applyStyles=ii,l=t.reduce((e,t)=>Rn(e,t),l),l.unstable_sxConfig={...$r,...o?.unstable_sxConfig},l.unstable_sx=function(e){return ri({sx:e,theme:this})},l}var oi=e=>{let t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??$r;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function si(e){let{sx:t,...n}=e,{systemProps:r,otherProps:i}=oi(n),a;return a=Array.isArray(t)?[r,...t]:typeof t==`function`?(...e)=>{let n=t(...e);return In(n)?{...r,...n}:r}:{...r,...t},{...i,sx:a}}function ci(e){let{variants:t,...n}=e,r={variants:t,style:Mn(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=Mn(e.style))}),r}var li=ai();function ui(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function di(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function fi(e){return e?(t,n)=>n[e]:null}function pi(e,t,n){e.theme=yi(e.theme)?n:e.theme[t]||e.theme}function mi(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>mi(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?di(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?di(Mn(i),n):i}return hi(e,r.variants,[t],n)}return r?.isProcessed?n?di(Mn(r.style),n):r.style:n?di(Mn(r),n):r}function hi(e,t,n=[],r=void 0){let i;variantLoop:for(let a=0;a<t.length;a+=1){let o=t[a];if(typeof o.props==`function`){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(let t in o.props)if(e[t]!==o.props[t]&&e.ownerState?.[t]!==o.props[t])continue variantLoop;typeof o.style==`function`?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?di(Mn(o.style(i)),r):o.style(i))):n.push(r?di(Mn(o.style),r):o.style)}return n}function gi(e={}){let{themeId:t,defaultTheme:n=li,rootShouldForwardProp:r=ui,slotShouldForwardProp:i=ui}=e;function a(e){pi(e,t,n)}return(e,t={})=>{An(e,e=>e.filter(e=>e!==ri));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=fi(xi(o)),...u}=t,d=n&&n.startsWith(`Mui`)||o?`components`:`custom`,f=s===void 0?o&&o!==`Root`&&o!==`root`||!1:s,p=c||!1,m=ui;o===`Root`||o===`root`?m=r:o?m=i:bi(e)&&(m=void 0);let h=kn(e,{shouldForwardProp:m,label:vi(n,o),...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return mi(t,e,t.theme.modularCssLayers?d:void 0)};if(In(e)){let t=ci(e);return function(e){return t.variants?mi(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?di(t.style,d):t.style}}return e},_=(...t)=>{let r=[],i=t.map(g),s=[];if(r.push(a),n&&l&&s.push(function(e){let t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;let r={};for(let n in t)r[n]=mi(e,t[n],e.theme.modularCssLayers?`theme`:void 0);return l(e,r)}),n&&!f&&s.push(function(e){let t=e.theme?.components?.[n]?.variants;return t?hi(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||s.push(ri),Array.isArray(i[0])){let e=i.shift(),t=Array(r.length).fill(``),n=Array(s.length).fill(``),a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}let c=h(...r,...i,...s);return e.muiName&&(c.muiName=e.muiName),process.env.NODE_ENV!==`production`&&(c.displayName=_i(n,o,e)),c};return h.withConfig&&(_.withConfig=h.withConfig),_}}function _i(e,t,n){return e?`${e}${Bn(t||``)}`:`Styled(${Un(n)})`}function vi(e,t){let n;return process.env.NODE_ENV!==`production`&&e&&(n=`${e}-${xi(t||`Root`)}`),n}function yi(e){for(let t in e)return!1;return!0}function bi(e){return typeof e==`string`&&e.charCodeAt(0)>96}function xi(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}var Si=gi();function Ci(e,t){let n={...t};for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){let i=r;if(i===`components`||i===`slots`)n[i]={...e[i],...n[i]};else if(i===`componentsProps`||i===`slotProps`){let r=e[i],a=t[i];if(!a)n[i]=r||{};else if(!r)n[i]=a;else{n[i]={...a};for(let e in r)if(Object.prototype.hasOwnProperty.call(r,e)){let t=e;n[i][t]=Ci(r[t],a[t])}}}else n[i]===void 0&&(n[i]=e[i])}return n}function wi(e){let{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Ci(t.components[n].defaultProps,r)}function Ti(e){return Object.keys(e).length===0}function Ei(e=null){let n=t.useContext(on);return!n||Ti(n)?e:n}var Di=ai();function Oi(e=Di){return Ei(e)}function ki({props:e,name:t,defaultTheme:n,themeId:r}){let i=Oi(n);return r&&(i=i[r]||i),wi({theme:i,name:t,props:e})}var Ai=(e,t)=>e.filter(e=>t.includes(e)),ji=(e,t,n)=>{let r=e.keys[0];Array.isArray(t)?t.forEach((t,r)=>{n((t,n)=>{r<=e.keys.length-1&&(r===0?Object.assign(t,n):t[e.up(e.keys[r])]=n)},t)}):t&&typeof t==`object`?(Object.keys(t).length>e.keys.length?e.keys:Ai(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.includes(i)){let a=t[i];a!==void 0&&n((t,n)=>{r===i?Object.assign(t,n):t[e.up(i)]=n},a)}}):(typeof t==`number`||typeof t==`string`)&&n((e,t)=>{Object.assign(e,t)},t)};function Mi(e){return`--Grid-${e}Spacing`}function Ni(e){return`--Grid-parent-${e}Spacing`}var Pi=`--Grid-columns`,Fi=`--Grid-parent-columns`,Ii=({theme:e,ownerState:t})=>{let n={};return ji(e.breakpoints,t.size,(e,t)=>{let r={};t===`grow`&&(r={flexBasis:0,flexGrow:1,maxWidth:`100%`}),t===`auto`&&(r={flexBasis:`auto`,flexGrow:0,flexShrink:0,maxWidth:`none`,width:`auto`}),typeof t==`number`&&(r={flexGrow:0,flexBasis:`auto`,width:`calc(100% * ${t} / var(${Fi}) - (var(${Fi}) - ${t}) * (var(${Ni(`column`)}) / var(${Fi})))`}),e(n,r)}),n},Li=({theme:e,ownerState:t})=>{let n={};return ji(e.breakpoints,t.offset,(e,t)=>{let r={};t===`auto`&&(r={marginLeft:`auto`}),typeof t==`number`&&(r={marginLeft:t===0?`0px`:`calc(100% * ${t} / var(${Fi}) + var(${Ni(`column`)}) * ${t} / var(${Fi}))`}),e(n,r)}),n},Ri=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={[Pi]:12};return ji(e.breakpoints,t.columns,(e,t)=>{let r=t??12;e(n,{[Pi]:r,"> *":{[Fi]:r}})}),n},zi=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return ji(e.breakpoints,t.rowSpacing,(t,r)=>{let i=typeof r==`string`?r:e.spacing?.(r);t(n,{[Mi(`row`)]:i,"> *":{[Ni(`row`)]:i}})}),n},Bi=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return ji(e.breakpoints,t.columnSpacing,(t,r)=>{let i=typeof r==`string`?r:e.spacing?.(r);t(n,{[Mi(`column`)]:i,"> *":{[Ni(`column`)]:i}})}),n},Vi=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return ji(e.breakpoints,t.direction,(e,t)=>{e(n,{flexDirection:t})}),n},Hi=({ownerState:e})=>({minWidth:0,boxSizing:`border-box`,...e.container&&{display:`flex`,flexWrap:`wrap`,...e.wrap&&e.wrap!==`wrap`&&{flexWrap:e.wrap},gap:`var(${Mi(`row`)}) var(${Mi(`column`)})`}}),Ui=e=>{let t=[];return Object.entries(e).forEach(([e,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${e}-${String(n)}`)}),t},Wi=(e,t=`xs`)=>{function n(e){return e===void 0?!1:typeof e==`string`&&!Number.isNaN(Number(e))||typeof e==`number`&&e>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e==`object`&&!Array.isArray(e)){let t=[];return Object.entries(e).forEach(([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)}),t}return[]},Gi=e=>e===void 0?[]:typeof e==`object`?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`],Ki=e=>[`item`,`zeroMinWidth`].includes(e)?`The \`${e}\` prop has been removed and is no longer necessary. You can safely remove it.`:`The \`${e}\` prop has been removed. See https://v6.mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`,qi=[];function Ji(e,t){let n=[];e.item!==void 0&&(delete e.item,n.push(`item`)),e.zeroMinWidth!==void 0&&(delete e.zeroMinWidth,n.push(`zeroMinWidth`)),t.keys.forEach(t=>{e[t]!==void 0&&(n.push(t),delete e[t])}),process.env.NODE_ENV!==`production`&&n.forEach(e=>{qi.includes(e)||(qi.push(e),console.warn(`MUI Grid2: ${Ki(e)}\n`))})}var Yi=ai(),Xi=Si(`div`,{name:`MuiGrid`,slot:`Root`,overridesResolver:(e,t)=>t.root});function Zi(e){return ki({props:e,name:`MuiGrid`,defaultTheme:Yi})}function Qi(e={}){let{createStyledComponent:n=Xi,useThemeProps:r=Zi,useTheme:i=Oi,componentName:a=`MuiGrid`}=e,o=(e,t)=>{let{container:n,direction:r,spacing:i,wrap:o,size:s}=e;return ve({root:[`root`,n&&`container`,o!==`wrap`&&`wrap-xs-${String(o)}`,...Gi(r),...Ui(s),...n?Wi(i,t.breakpoints.keys[0]):[]]},e=>_e(a,e),{})};function s(e,t,n=()=>!0){let r={};return e===null||(Array.isArray(e)?e.forEach((e,i)=>{e!==null&&n(e)&&t.keys[i]&&(r[t.keys[i]]=e)}):typeof e==`object`?Object.keys(e).forEach(t=>{let i=e[t];i!=null&&n(i)&&(r[t]=i)}):r[t.keys[0]]=e),r}let c=n(Ri,Bi,zi,Ii,Vi,Hi,Li),l=t.forwardRef(function(e,n){let a=i(),l=si(r(e));Ji(l,a.breakpoints);let{className:u,children:d,columns:f=12,container:p=!1,component:m=`div`,direction:h=`row`,wrap:g=`wrap`,size:_={},offset:y={},spacing:b=0,rowSpacing:x=b,columnSpacing:S=b,unstable_level:C=0,...w}=l,T=s(_,a.breakpoints,e=>e!==!1),E=s(y,a.breakpoints),D=e.columns??(C?void 0:f),O=e.spacing??(C?void 0:b),k=e.rowSpacing??e.spacing??(C?void 0:x),A=e.columnSpacing??e.spacing??(C?void 0:S),j={...l,level:C,columns:D,container:p,direction:h,wrap:g,spacing:O,rowSpacing:k,columnSpacing:A,size:T,offset:E};return(0,v.jsx)(c,{ref:n,as:m,ownerState:j,className:I(o(j,a).root,u),...w,children:t.Children.map(d,e=>t.isValidElement(e)&&me(e,[`Grid`])&&p&&e.props.container?t.cloneElement(e,{unstable_level:e.props?.unstable_level??C+1}):e)})});return process.env.NODE_ENV!==`production`&&(l.propTypes={children:F.default.node,className:F.default.string,columns:F.default.oneOfType([F.default.arrayOf(F.default.number),F.default.number,F.default.object]),columnSpacing:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.number,F.default.string])),F.default.number,F.default.object,F.default.string]),component:F.default.elementType,container:F.default.bool,direction:F.default.oneOfType([F.default.oneOf([`column-reverse`,`column`,`row-reverse`,`row`]),F.default.arrayOf(F.default.oneOf([`column-reverse`,`column`,`row-reverse`,`row`])),F.default.object]),offset:F.default.oneOfType([F.default.string,F.default.number,F.default.arrayOf(F.default.oneOfType([F.default.string,F.default.number])),F.default.object]),rowSpacing:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.number,F.default.string])),F.default.number,F.default.object,F.default.string]),size:F.default.oneOfType([F.default.string,F.default.bool,F.default.number,F.default.arrayOf(F.default.oneOfType([F.default.string,F.default.bool,F.default.number])),F.default.object]),spacing:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.number,F.default.string])),F.default.number,F.default.object,F.default.string]),sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),wrap:F.default.oneOf([`nowrap`,`wrap-reverse`,`wrap`])}),l.muiName=`Grid`,l}function $i(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=_e(e,t,n)}),r}function ea(e,t){if(process.env.NODE_ENV===`production`)return()=>null;let n=t?{...t.propTypes}:null;return t=>(r,i,a,o,s,...c)=>{let l=s||i,u=n?.[l];if(u){let e=u(r,i,a,o,s,...c);if(e)return e}return r[i]!==void 0&&!r[t]?Error(`The prop \`${l}\` of \`${e}\` can only be used together with the \`${t}\` prop.`):null}}var ta=ea;function na(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}var ra=`$$material`;function ia(e){let t=Mn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function aa({styles:e,themeId:t,defaultTheme:n={}}){let r=Oi(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>ia(typeof e==`function`?e(i):e)):ia(a)),(0,v.jsx)(On,{styles:a})}process.env.NODE_ENV!==`production`&&(aa.propTypes={defaultTheme:F.default.object,styles:F.default.oneOfType([F.default.array,F.default.func,F.default.number,F.default.object,F.default.string,F.default.bool]),themeId:F.default.string});function oa(e={}){let{themeId:n,defaultTheme:r,defaultClassName:i=`MuiBox-root`,generateClassName:a}=e,o=kn(`div`,{shouldForwardProp:e=>e!==`theme`&&e!==`sx`&&e!==`as`})(ri);return t.forwardRef(function(e,t){let s=Oi(r),{className:c,component:l=`div`,...u}=si(e);return(0,v.jsx)(o,{as:l,ref:t,className:I(c,a?a(i):i),theme:n&&s[n]||s,...u})})}var sa=oa({defaultClassName:$i(`MuiBox`,[`root`]).root,generateClassName:he.generate});process.env.NODE_ENV!==`production`&&(sa.propTypes={children:F.default.node,component:F.default.elementType,sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object])});function ca(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function la(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}].`),ca(e,t,n)}function ua(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,`g`),n=e.match(t);return n&&n[0].length===1&&(n=n.map(e=>e+e)),process.env.NODE_ENV!==`production`&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function da(e){if(e.type)return e;if(e.charAt(0)===`#`)return da(ua(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(process.env.NODE_ENV===`production`?zn(9,e):`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`);let r=e.substring(t+1,e.length-1),i;if(n===`color`){if(r=r.split(` `),i=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(i))throw Error(process.env.NODE_ENV===`production`?zn(10,i):`MUI: unsupported \`${i}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`)}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var fa=e=>{let t=da(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},pa=(e,t)=>{try{return fa(e)}catch{return t&&process.env.NODE_ENV!==`production`&&console.warn(t),e}};function ma(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes(`rgb`)?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes(`hsl`)&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes(`color`)?`${n} ${r.join(` `)}`:`${r.join(`, `)}`,`${t}(${r})`}function ha(e){e=da(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),s=`rgb`,c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type===`hsla`&&(s+=`a`,c.push(t[3])),ma({type:s,values:c})}function ga(e){e=da(e);let t=e.type===`hsl`||e.type===`hsla`?da(ha(e)).values:e.values;return t=t.map(t=>(e.type!==`color`&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function _a(e,t){let n=ga(e),r=ga(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function va(e,t){return e=da(e),t=la(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,ma(e)}function ya(e,t,n){try{return va(e,t)}catch{return n&&process.env.NODE_ENV!==`production`&&console.warn(n),e}}function ba(e,t){if(e=da(e),t=la(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 ma(e)}function xa(e,t,n){try{return ba(e,t)}catch{return n&&process.env.NODE_ENV!==`production`&&console.warn(n),e}}function Sa(e,t){if(e=da(e),t=la(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 ma(e)}function Ca(e,t,n){try{return Sa(e,t)}catch{return n&&process.env.NODE_ENV!==`production`&&console.warn(n),e}}function wa(e,t=.15){return ga(e)>.5?ba(e,t):Sa(e,t)}function Ta(e,t,n){try{return wa(e,t)}catch{return n&&process.env.NODE_ENV!==`production`&&console.warn(n),e}}var Ea=t.createContext();function Da({value:e,...t}){return(0,v.jsx)(Ea.Provider,{value:e??!0,...t})}process.env.NODE_ENV!==`production`&&(Da.propTypes={children:F.default.node,value:F.default.bool});var Oa=()=>t.useContext(Ea)??!1,ka=t.createContext(void 0);function Aa({value:e,children:t}){return(0,v.jsx)(ka.Provider,{value:e,children:t})}process.env.NODE_ENV!==`production`&&(Aa.propTypes={children:F.default.node,value:F.default.object});function ja(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let i=t.components[n];return i.defaultProps?Ci(i.defaultProps,r):!i.styleOverrides&&!i.variants?Ci(i,r):r}function Ma({props:e,name:n}){return ja({props:e,name:n,theme:{components:t.useContext(ka)}})}var Na={theme:void 0};function Pa(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(Na.theme=r.theme,i=ci(e(Na)),t=i,n=r.theme),i}}function Fa(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.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}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var Ia=(e,t,n,r=[])=>{let i=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&typeof i==`object`&&(i[e]=n):i&&typeof i==`object`&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})},La=(e,t,n)=>{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},Ra=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function za(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return La(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=Ra(e,t);Object.assign(i,{[r]:c}),Ia(a,e,`var(${r})`,s),Ia(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function Ba(e,t={}){let{getSelector:n=g,disableCssColorScheme:r,colorSchemeSelector:i}=t,{colorSchemes:a={},components:o,defaultColorScheme:s=`light`,...c}=e,{vars:l,css:u,varsWithDefaults:d}=za(c,t),f=d,p={},{[s]:m,...h}=a;if(Object.entries(h||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=za(n,t);f=Rn(f,a),p[e]={css:i,vars:r}}),m){let{css:e,vars:n,varsWithDefaults:r}=za(m,t);f=Rn(f,r),p[s]={css:e,vars:n}}function g(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${a[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:f,generateThemeVars:()=>{let e={...l};return Object.entries(p).forEach(([,{vars:t}])=>{e=Rn(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function o(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}o(n(void 0,{...u}),u);let{[i]:s,...c}=p;if(s){let{css:e}=s,t=a[i]?.palette?.mode,c=!r&&t?{colorScheme:t,...e}:{...e};o(n(i,{...c}),c)}return Object.entries(c).forEach(([e,{css:t}])=>{let i=a[e]?.palette?.mode,s=!r&&i?{colorScheme:i,...t}:{...t};o(n(e,{...s}),s)}),t}}}function Va(e){return function(t){return e===`media`?(process.env.NODE_ENV!==`production`&&t!==`light`&&t!==`dark`&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`),`@media (prefers-color-scheme: ${t})`):e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}var Ha=l((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.suspense_list`),d=Symbol.for(`react.memo`),f=Symbol.for(`react.lazy`),p=Symbol.for(`react.view_transition`),m=Symbol.for(`react.client.reference`);function h(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case l:case u:case p:return e;default:switch(e&&=e.$$typeof,e){case s:case c:case f:case d:return e;case o:return e;default:return m}}case n:return m}}}e.ContextConsumer=o,e.ContextProvider=s,e.Element=t,e.ForwardRef=c,e.Fragment=r,e.Lazy=f,e.Memo=d,e.Portal=n,e.Profiler=a,e.StrictMode=i,e.Suspense=l,e.SuspenseList=u,e.isContextConsumer=function(e){return h(e)===o},e.isContextProvider=function(e){return h(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===t},e.isForwardRef=function(e){return h(e)===c},e.isFragment=function(e){return h(e)===r},e.isLazy=function(e){return h(e)===f},e.isMemo=function(e){return h(e)===d},e.isPortal=function(e){return h(e)===n},e.isProfiler=function(e){return h(e)===a},e.isStrictMode=function(e){return h(e)===i},e.isSuspense=function(e){return h(e)===l},e.isSuspenseList=function(e){return h(e)===u},e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===r||e===a||e===i||e===l||e===u||typeof e==`object`&&e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===s||e.$$typeof===o||e.$$typeof===c||e.$$typeof===m||e.getModuleId!==void 0))},e.typeOf=h})),Ua=l((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case i:case o:case a:case u:case d:case m:return e;default:switch(e&&=e.$$typeof,e){case c:case l:case p:case f:return e;case s:return e;default:return t}}case r:return t}}}var n=Symbol.for(`react.transitional.element`),r=Symbol.for(`react.portal`),i=Symbol.for(`react.fragment`),a=Symbol.for(`react.strict_mode`),o=Symbol.for(`react.profiler`),s=Symbol.for(`react.consumer`),c=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`),p=Symbol.for(`react.lazy`),m=Symbol.for(`react.view_transition`),h=Symbol.for(`react.client.reference`);e.ContextConsumer=s,e.ContextProvider=c,e.Element=n,e.ForwardRef=l,e.Fragment=i,e.Lazy=p,e.Memo=f,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=u,e.SuspenseList=d,e.isContextConsumer=function(e){return t(e)===s},e.isContextProvider=function(e){return t(e)===c},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return t(e)===l},e.isFragment=function(e){return t(e)===i},e.isLazy=function(e){return t(e)===p},e.isMemo=function(e){return t(e)===f},e.isPortal=function(e){return t(e)===r},e.isProfiler=function(e){return t(e)===o},e.isStrictMode=function(e){return t(e)===a},e.isSuspense=function(e){return t(e)===u},e.isSuspenseList=function(e){return t(e)===d},e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===i||e===o||e===a||e===u||e===d||typeof e==`object`&&e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===c||e.$$typeof===s||e.$$typeof===l||e.$$typeof===h||e.getModuleId!==void 0))},e.typeOf=t})()})),Wa=l(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=Ha():t.exports=Ua()}))();function Ga(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ka(e){if(t.isValidElement(e)||(0,Wa.isValidElementType)(e)||!Ga(e))return e;let n={};return Object.keys(e).forEach(t=>{n[t]=Ka(e[t])}),n}function qa(e,n,r={clone:!0}){let i=r.clone?{...e}:e;return Ga(e)&&Ga(n)&&Object.keys(n).forEach(a=>{t.isValidElement(n[a])||(0,Wa.isValidElementType)(n[a])?i[a]=n[a]:Ga(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Ga(e[a])?i[a]=qa(e[a],n[a],r):r.clone?i[a]=Ga(n[a])?Ka(n[a]):n[a]:i[a]=n[a]}),i}var Ja={black:`#000`,white:`#fff`},Ya={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`},Xa={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`},Za={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`},Qa={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`},$a={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`},eo={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`},to={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 no(){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:Ja.white,default:Ja.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}}}var ro=no();function io(){return{text:{primary:Ja.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:Ja.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}}}var ao=io();function oo(e,t,n,r){let i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t===`light`?e.light=Sa(e.main,i):t===`dark`&&(e.dark=ba(e.main,a)))}function so(e=`light`){return e===`dark`?{main:$a[200],light:$a[50],dark:$a[400]}:{main:$a[700],light:$a[400],dark:$a[800]}}function co(e=`light`){return e===`dark`?{main:Xa[200],light:Xa[50],dark:Xa[400]}:{main:Xa[500],light:Xa[300],dark:Xa[700]}}function lo(e=`light`){return e===`dark`?{main:Za[500],light:Za[300],dark:Za[700]}:{main:Za[700],light:Za[400],dark:Za[800]}}function uo(e=`light`){return e===`dark`?{main:eo[400],light:eo[300],dark:eo[700]}:{main:eo[700],light:eo[500],dark:eo[900]}}function fo(e=`light`){return e===`dark`?{main:to[400],light:to[300],dark:to[700]}:{main:to[800],light:to[500],dark:to[900]}}function po(e=`light`){return e===`dark`?{main:Qa[400],light:Qa[300],dark:Qa[700]}:{main:`#ed6c02`,light:Qa[500],dark:Qa[900]}}function mo(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,...i}=e,a=e.primary||so(t),o=e.secondary||co(t),s=e.error||lo(t),c=e.info||uo(t),l=e.success||fo(t),u=e.warning||po(t);function d(e){let t=_a(e,ao.text.primary)>=n?ao.text.primary:ro.text.primary;if(process.env.NODE_ENV!==`production`){let n=_a(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,`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(`
23
+ `))}return t}let f=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:a=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(process.env.NODE_ENV===`production`?na(11,t?` (${t})`:``,n):`MUI: The color${t?` (${t})`:``} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`);if(typeof e.main!=`string`)throw Error(process.env.NODE_ENV===`production`?na(12,t?` (${t})`:``,JSON.stringify(e.main)):`MUI: The color${t?` (${t})`:``} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n
86
24
  Did you intend to use one of the following approaches?
87
25
 
88
26
  import { green } from "@mui/material/colors";
@@ -93,56 +31,23 @@ const theme1 = createTheme({ palette: {
93
31
 
94
32
  const theme2 = createTheme({ palette: {
95
33
  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';
34
+ } });`);return oo(e,`light`,i,r),oo(e,`dark`,a,r),e.contrastText||=d(e.main),e},p;return t===`light`?p=no():t===`dark`&&(p=io()),process.env.NODE_ENV!==`production`&&(p||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),qa({common:{...Ja},mode:t,primary:f({color:a,name:`primary`}),secondary:f({color:o,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:f({color:s,name:`error`}),warning:f({color:u,name:`warning`}),info:f({color:c,name:`info`}),success:f({color:l,name:`success`}),grey:Ya,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...p},i)}function ho(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}var go=e=>e,_o=(()=>{let e=go;return{configure(t){e=t},generate(t){return e(t)},reset(){e=go}}})(),vo={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 yo(e,t,n=`Mui`){let r=vo[t];return r?`${n}-${r}`:`${_o.generate(e)}-${t}`}function bo(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function xo(e){return Math.round(e*1e5)/1e5}var So={textTransform:`uppercase`},Co=`"Roboto", "Helvetica", "Arial", sans-serif`;function wo(e,t){let{fontFamily:n=Co,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=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 c!=`number`&&console.error("MUI: `htmlFontSize` is required to be a number."));let f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===Co?{letterSpacing:`${xo(i/t)}em`}:{},...a,...l});return qa({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,So),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,So),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var To=.2,Eo=.14,Do=.12;function Oo(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${To})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Eo})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Do})`].join(`,`)}var ko=[`none`,Oo(0,2,1,-1,0,1,1,0,0,1,3,0),Oo(0,3,1,-2,0,2,2,0,0,1,5,0),Oo(0,3,3,-2,0,3,4,0,0,1,8,0),Oo(0,2,4,-1,0,4,5,0,0,1,10,0),Oo(0,3,5,-1,0,5,8,0,0,1,14,0),Oo(0,3,5,-1,0,6,10,0,0,1,18,0),Oo(0,4,5,-2,0,7,10,1,0,2,16,1),Oo(0,5,5,-3,0,8,10,1,0,3,14,2),Oo(0,5,6,-3,0,9,12,1,0,3,16,2),Oo(0,6,6,-3,0,10,14,1,0,4,18,3),Oo(0,6,7,-4,0,11,15,1,0,4,20,3),Oo(0,7,8,-4,0,12,17,2,0,5,22,4),Oo(0,7,8,-4,0,13,19,2,0,5,24,4),Oo(0,7,9,-4,0,14,21,2,0,5,26,4),Oo(0,8,9,-5,0,15,22,2,0,6,28,5),Oo(0,8,10,-5,0,16,24,2,0,6,30,5),Oo(0,8,11,-5,0,17,26,2,0,6,32,5),Oo(0,9,11,-5,0,18,28,2,0,7,34,6),Oo(0,9,12,-6,0,19,29,2,0,7,36,6),Oo(0,10,13,-6,0,20,31,3,0,8,38,7),Oo(0,10,13,-6,0,21,33,3,0,8,40,7),Oo(0,10,14,-6,0,22,35,3,0,8,42,7),Oo(0,11,14,-7,0,23,36,3,0,9,44,8),Oo(0,11,15,-7,0,24,38,3,0,9,46,8)],Ao={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)`},jo={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Mo(e){return`${Math.round(e)}ms`}function No(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Po(e){let t={...Ao,...e.easing},n={...jo,...e.duration};return{getAutoHeightDuration:No,create:(e=[`all`],r={})=>{let{duration:i=n.standard,easing:a=t.easeInOut,delay:o=0,...s}=r;if(process.env.NODE_ENV!==`production`){let t=e=>typeof e==`string`,n=e=>!Number.isNaN(parseFloat(e));!t(e)&&!Array.isArray(e)&&console.error(`MUI: Argument "props" must be a string or Array.`),!n(i)&&!t(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),t(a)||console.error(`MUI: Argument "easing" must be a string.`),!n(o)&&!t(o)&&console.error(`MUI: Argument "delay" must be a number or a string.`),typeof r!=`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(`
35
+ `)),Object.keys(s).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(`,`)}].`)}return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:Mo(i)} ${a} ${typeof o==`string`?o:Mo(o)}`).join(`,`)},...e,easing:t,duration:n}}var Fo={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Io(e){return Ga(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function Lo(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r<t.length;r++){let[i,a]=t[r];!Io(a)||i.startsWith(`unstable_`)?delete e[i]:Ga(a)&&(e[i]={...a},n(e[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
98
36
 
99
37
  const theme = ${JSON.stringify(t,null,2)};
100
38
 
101
39
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
102
40
  theme.transitions = createTransitions(theme.transitions || {});
103
41
 
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(`
42
+ export default theme;`}function Ro(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},transitions:o={},typography:s={},shape:c,...l}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(process.env.NODE_ENV===`production`?na(20):"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.");let u=mo(a),d=ai(e),f=qa(d,{mixins:bo(d.breakpoints,r),palette:u,shadows:ko.slice(),typography:wo(u,s),transitions:Po(o),zIndex:{...Fo}});if(f=qa(f,l),f=t.reduce((e,t)=>qa(e,t),f),process.env.NODE_ENV!==`production`){let e=[`active`,`checked`,`completed`,`disabled`,`error`,`expanded`,`focused`,`focusVisible`,`required`,`selected`],t=(t,n)=>{let r;for(r in t){let i=t[r];if(e.includes(r)&&Object.keys(i).length>0){if(process.env.NODE_ENV!==`production`){let e=yo(``,r);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${r}\` internal state.`,`You can not override it like this: `,JSON.stringify(t,null,2),``,`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:i}},null,2),``,`https://mui.com/r/state-classes-guide`].join(`
43
+ `))}t[r]={}}}};Object.keys(f.components).forEach(e=>{let n=f.components[e].styleOverrides;n&&e.startsWith(`Mui`)&&t(n,e)})}return f.unstable_sxConfig={...$r,...l?.unstable_sxConfig},f.unstable_sx=function(e){return ri({sx:e,theme:this})},f.toRuntimeSource=Lo,f}function zo(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var Bo=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=zo(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Vo(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function Ho(e){return e===`dark`?Bo:[]}function Uo(e){let{palette:t={mode:`light`},opacity:n,overlays:r,...i}=e,a=mo(t);return{palette:a,opacity:{...Vo(a.mode),...n},overlays:r||Ho(a.mode),...i}}function Wo(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var Go=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],Ko=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return Go(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function qo(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function B(e,t,n){!e[t]&&n&&(e[t]=n)}function Jo(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:ha(e)}function Yo(e,t){`${t}Channel`in e||(e[`${t}Channel`]=pa(Jo(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().
44
+ 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 Xo(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var Zo=e=>{try{return e()}catch{}},Qo=(e=`mui`)=>Fa(e);function $o(e,t,n,r){if(!t)return;t=t===!0?{}:t;let i=r===`dark`?`dark`:`light`;if(!n){e[r]=Uo({...t,palette:{mode:i,...t?.palette}});return}let{palette:a,...o}=Ro({...n,palette:{mode:i,...t?.palette}});return e[r]={...t,palette:a,opacity:{...Vo(i),...t?.opacity},overlays:t?.overlays||Ho(i)},o}function es(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,shouldSkipGeneratingVar:o=Wo,colorSchemeSelector:s=n.light&&n.dark?`media`:void 0,rootSelector:c=`:root`,...l}=e,u=Object.keys(n)[0],d=r||(n.light&&u!==`light`?`light`:u),f=Qo(a),{[d]:p,light:m,dark:h,...g}=n,_={...g},v=p;if((d===`dark`&&!(`dark`in n)||d===`light`&&!(`light`in n))&&(v=!0),!v)throw Error(process.env.NODE_ENV===`production`?na(21,d):`MUI: The \`colorSchemes.${d}\` option is either missing or invalid.`);let y=$o(_,v,l,d);m&&!_.light&&$o(_,m,void 0,`light`),h&&!_.dark&&$o(_,h,void 0,`dark`);let b={defaultColorScheme:d,...y,cssVarPrefix:a,colorSchemeSelector:s,rootSelector:c,getCssVar:f,colorSchemes:_,font:{...ho(y.typography),...y.font},spacing:Xo(l.spacing)};Object.keys(b.colorSchemes).forEach(e=>{let t=b.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return f(e,t[r][i])};if(t.mode===`light`&&(B(t.common,`background`,`#fff`),B(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(B(t.common,`background`,`#000`),B(t.common,`onBackground`,`#fff`)),qo(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){B(t.Alert,`errorColor`,xa(t.error.light,.6)),B(t.Alert,`infoColor`,xa(t.info.light,.6)),B(t.Alert,`successColor`,xa(t.success.light,.6)),B(t.Alert,`warningColor`,xa(t.warning.light,.6)),B(t.Alert,`errorFilledBg`,n(`palette-error-main`)),B(t.Alert,`infoFilledBg`,n(`palette-info-main`)),B(t.Alert,`successFilledBg`,n(`palette-success-main`)),B(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),B(t.Alert,`errorFilledColor`,Zo(()=>t.getContrastText(t.error.main))),B(t.Alert,`infoFilledColor`,Zo(()=>t.getContrastText(t.info.main))),B(t.Alert,`successFilledColor`,Zo(()=>t.getContrastText(t.success.main))),B(t.Alert,`warningFilledColor`,Zo(()=>t.getContrastText(t.warning.main))),B(t.Alert,`errorStandardBg`,Ca(t.error.light,.9)),B(t.Alert,`infoStandardBg`,Ca(t.info.light,.9)),B(t.Alert,`successStandardBg`,Ca(t.success.light,.9)),B(t.Alert,`warningStandardBg`,Ca(t.warning.light,.9)),B(t.Alert,`errorIconColor`,n(`palette-error-main`)),B(t.Alert,`infoIconColor`,n(`palette-info-main`)),B(t.Alert,`successIconColor`,n(`palette-success-main`)),B(t.Alert,`warningIconColor`,n(`palette-warning-main`)),B(t.AppBar,`defaultBg`,n(`palette-grey-100`)),B(t.Avatar,`defaultBg`,n(`palette-grey-400`)),B(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),B(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),B(t.Chip,`defaultBorder`,n(`palette-grey-400`)),B(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),B(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),B(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),B(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),B(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),B(t.LinearProgress,`primaryBg`,Ca(t.primary.main,.62)),B(t.LinearProgress,`secondaryBg`,Ca(t.secondary.main,.62)),B(t.LinearProgress,`errorBg`,Ca(t.error.main,.62)),B(t.LinearProgress,`infoBg`,Ca(t.info.main,.62)),B(t.LinearProgress,`successBg`,Ca(t.success.main,.62)),B(t.LinearProgress,`warningBg`,Ca(t.warning.main,.62)),B(t.Skeleton,`bg`,`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),B(t.Slider,`primaryTrack`,Ca(t.primary.main,.62)),B(t.Slider,`secondaryTrack`,Ca(t.secondary.main,.62)),B(t.Slider,`errorTrack`,Ca(t.error.main,.62)),B(t.Slider,`infoTrack`,Ca(t.info.main,.62)),B(t.Slider,`successTrack`,Ca(t.success.main,.62)),B(t.Slider,`warningTrack`,Ca(t.warning.main,.62));let e=Ta(t.background.default,.8);B(t.SnackbarContent,`bg`,e),B(t.SnackbarContent,`color`,Zo(()=>t.getContrastText(e))),B(t.SpeedDialAction,`fabHoverBg`,Ta(t.background.paper,.15)),B(t.StepConnector,`border`,n(`palette-grey-400`)),B(t.StepContent,`border`,n(`palette-grey-400`)),B(t.Switch,`defaultColor`,n(`palette-common-white`)),B(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),B(t.Switch,`primaryDisabledColor`,Ca(t.primary.main,.62)),B(t.Switch,`secondaryDisabledColor`,Ca(t.secondary.main,.62)),B(t.Switch,`errorDisabledColor`,Ca(t.error.main,.62)),B(t.Switch,`infoDisabledColor`,Ca(t.info.main,.62)),B(t.Switch,`successDisabledColor`,Ca(t.success.main,.62)),B(t.Switch,`warningDisabledColor`,Ca(t.warning.main,.62)),B(t.TableCell,`border`,Ca(ya(t.divider,1),.88)),B(t.Tooltip,`bg`,ya(t.grey[700],.92))}if(t.mode===`dark`){B(t.Alert,`errorColor`,Ca(t.error.light,.6)),B(t.Alert,`infoColor`,Ca(t.info.light,.6)),B(t.Alert,`successColor`,Ca(t.success.light,.6)),B(t.Alert,`warningColor`,Ca(t.warning.light,.6)),B(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),B(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),B(t.Alert,`successFilledBg`,n(`palette-success-dark`)),B(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),B(t.Alert,`errorFilledColor`,Zo(()=>t.getContrastText(t.error.dark))),B(t.Alert,`infoFilledColor`,Zo(()=>t.getContrastText(t.info.dark))),B(t.Alert,`successFilledColor`,Zo(()=>t.getContrastText(t.success.dark))),B(t.Alert,`warningFilledColor`,Zo(()=>t.getContrastText(t.warning.dark))),B(t.Alert,`errorStandardBg`,xa(t.error.light,.9)),B(t.Alert,`infoStandardBg`,xa(t.info.light,.9)),B(t.Alert,`successStandardBg`,xa(t.success.light,.9)),B(t.Alert,`warningStandardBg`,xa(t.warning.light,.9)),B(t.Alert,`errorIconColor`,n(`palette-error-main`)),B(t.Alert,`infoIconColor`,n(`palette-info-main`)),B(t.Alert,`successIconColor`,n(`palette-success-main`)),B(t.Alert,`warningIconColor`,n(`palette-warning-main`)),B(t.AppBar,`defaultBg`,n(`palette-grey-900`)),B(t.AppBar,`darkBg`,n(`palette-background-paper`)),B(t.AppBar,`darkColor`,n(`palette-text-primary`)),B(t.Avatar,`defaultBg`,n(`palette-grey-600`)),B(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),B(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),B(t.Chip,`defaultBorder`,n(`palette-grey-700`)),B(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),B(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),B(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),B(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),B(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),B(t.LinearProgress,`primaryBg`,xa(t.primary.main,.5)),B(t.LinearProgress,`secondaryBg`,xa(t.secondary.main,.5)),B(t.LinearProgress,`errorBg`,xa(t.error.main,.5)),B(t.LinearProgress,`infoBg`,xa(t.info.main,.5)),B(t.LinearProgress,`successBg`,xa(t.success.main,.5)),B(t.LinearProgress,`warningBg`,xa(t.warning.main,.5)),B(t.Skeleton,`bg`,`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),B(t.Slider,`primaryTrack`,xa(t.primary.main,.5)),B(t.Slider,`secondaryTrack`,xa(t.secondary.main,.5)),B(t.Slider,`errorTrack`,xa(t.error.main,.5)),B(t.Slider,`infoTrack`,xa(t.info.main,.5)),B(t.Slider,`successTrack`,xa(t.success.main,.5)),B(t.Slider,`warningTrack`,xa(t.warning.main,.5));let e=Ta(t.background.default,.98);B(t.SnackbarContent,`bg`,e),B(t.SnackbarContent,`color`,Zo(()=>t.getContrastText(e))),B(t.SpeedDialAction,`fabHoverBg`,Ta(t.background.paper,.15)),B(t.StepConnector,`border`,n(`palette-grey-600`)),B(t.StepContent,`border`,n(`palette-grey-600`)),B(t.Switch,`defaultColor`,n(`palette-grey-300`)),B(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),B(t.Switch,`primaryDisabledColor`,xa(t.primary.main,.55)),B(t.Switch,`secondaryDisabledColor`,xa(t.secondary.main,.55)),B(t.Switch,`errorDisabledColor`,xa(t.error.main,.55)),B(t.Switch,`infoDisabledColor`,xa(t.info.main,.55)),B(t.Switch,`successDisabledColor`,xa(t.success.main,.55)),B(t.Switch,`warningDisabledColor`,xa(t.warning.main,.55)),B(t.TableCell,`border`,xa(ya(t.divider,1),.68)),B(t.Tooltip,`bg`,ya(t.grey[700],.92))}Yo(t.background,`default`),Yo(t.background,`paper`),Yo(t.common,`background`),Yo(t.common,`onBackground`),Yo(t,`divider`),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&n&&typeof n==`object`&&(n.main&&B(t[e],`mainChannel`,pa(Jo(n.main))),n.light&&B(t[e],`lightChannel`,pa(Jo(n.light))),n.dark&&B(t[e],`darkChannel`,pa(Jo(n.dark))),n.contrastText&&B(t[e],`contrastTextChannel`,pa(Jo(n.contrastText))),e===`text`&&(Yo(t[e],`primary`),Yo(t[e],`secondary`)),e===`action`&&(n.active&&Yo(t[e],`active`),n.selected&&Yo(t[e],`selected`)))})}),b=t.reduce((e,t)=>qa(e,t),b);let x={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:o,getSelector:Ko(b)},{vars:S,generateThemeVars:C,generateStyleSheets:w}=Ba(b,x);return b.vars=S,Object.entries(b.colorSchemes[b.defaultColorScheme]).forEach(([e,t])=>{b[e]=t}),b.generateThemeVars=C,b.generateStyleSheets=w,b.generateSpacing=function(){return Tr(l.spacing,_r(this))},b.getColorSchemeSelector=Va(s),b.spacing=b.generateSpacing(),b.shouldSkipGeneratingVar=o,b.unstable_sxConfig={...$r,...l?.unstable_sxConfig},b.unstable_sx=function(e){return ri({sx:e,theme:this})},b.toRuntimeSource=Lo,b}function ts(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:mo({...n===!0?{}:n.palette,mode:t})})}function ns(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return Ro(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=Ro({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},ts(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},ts(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),es({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var rs=ns();function is(){let e=Oi(rs);return process.env.NODE_ENV!==`production`&&t.useDebugValue(e),e.$$material||e}function as(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var os=e=>as(e)&&e!==`classes`,V=gi({themeId:ra,defaultTheme:rs,rootShouldForwardProp:os});function ss(e){return(0,v.jsx)(Aa,{...e})}process.env.NODE_ENV!==`production`&&(ss.propTypes={children:F.default.node,value:F.default.object.isRequired});function cs(e){return Ma(e)}var H=Qi({createStyledComponent:V(`div`,{name:`MuiGrid2`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:`MuiGrid2`,useThemeProps:e=>cs({props:e,name:`MuiGrid2`}),useTheme:is});if(process.env.NODE_ENV!==`production`&&(H.propTypes={children:F.default.node,columns:F.default.oneOfType([F.default.arrayOf(F.default.number),F.default.number,F.default.object]),columnSpacing:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.number,F.default.string])),F.default.number,F.default.object,F.default.string]),container:F.default.bool,direction:F.default.oneOfType([F.default.oneOf([`column-reverse`,`column`,`row-reverse`,`row`]),F.default.arrayOf(F.default.oneOf([`column-reverse`,`column`,`row-reverse`,`row`])),F.default.object]),offset:F.default.oneOfType([F.default.string,F.default.number,F.default.arrayOf(F.default.oneOfType([F.default.string,F.default.number])),F.default.object]),rowSpacing:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.number,F.default.string])),F.default.number,F.default.object,F.default.string]),size:F.default.oneOfType([F.default.string,F.default.bool,F.default.number,F.default.arrayOf(F.default.oneOfType([F.default.string,F.default.bool,F.default.number])),F.default.object]),spacing:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.number,F.default.string])),F.default.number,F.default.object,F.default.string]),sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),unstable_level:F.default.number,wrap:F.default.oneOf([`nowrap`,`wrap-reverse`,`wrap`])}),process.env.NODE_ENV!==`production`){let e=H,t=ta(`Grid2`,e);e.propTypes={...e.propTypes,direction:t(`container`),spacing:t(`container`),wrap:t(`container`)}}function ls(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=yo(e,t,n)}),r}function us(e){return e+.5|0}var ds=(e,t,n)=>Math.max(Math.min(e,n),t);function fs(e){return ds(us(e*2.55),0,255)}function ps(e){return ds(us(e*255),0,255)}function ms(e){return ds(us(e/2.55)/100,0,1)}function hs(e){return ds(us(e*100),0,100)}var gs={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},_s=[...`0123456789ABCDEF`],vs=e=>_s[e&15],ys=e=>_s[(e&240)>>4]+_s[e&15],bs=e=>(e&240)>>4==(e&15),xs=e=>bs(e.r)&&bs(e.g)&&bs(e.b)&&bs(e.a);function Ss(e){var t=e.length,n;return e[0]===`#`&&(t===4||t===5?n={r:255&gs[e[1]]*17,g:255&gs[e[2]]*17,b:255&gs[e[3]]*17,a:t===5?gs[e[4]]*17:255}:(t===7||t===9)&&(n={r:gs[e[1]]<<4|gs[e[2]],g:gs[e[3]]<<4|gs[e[4]],b:gs[e[5]]<<4|gs[e[6]],a:t===9?gs[e[7]]<<4|gs[e[8]]:255})),n}var Cs=(e,t)=>e<255?t(e):``;function ws(e){var t=xs(e)?vs:ys;return e?`#`+t(e.r)+t(e.g)+t(e.b)+Cs(e.a,t):void 0}var Ts=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Es(e,t,n){let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function Ds(e,t,n){let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function Os(e,t,n){let r=Es(e,1,.5),i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function ks(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function As(e){let t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),a=Math.min(t,n,r),o=(i+a)/2,s,c,l;return i!==a&&(l=i-a,c=o>.5?l/(2-i-a):l/(i+a),s=ks(t,n,r,l,i),s=s*60+.5),[s|0,c||0,o]}function js(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(ps)}function Ms(e,t,n){return js(Es,e,t,n)}function Ns(e,t,n){return js(Os,e,t,n)}function Ps(e,t,n){return js(Ds,e,t,n)}function Fs(e){return(e%360+360)%360}function Is(e){let t=Ts.exec(e),n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?fs(+t[5]):ps(+t[5]));let i=Fs(+t[2]),a=t[3]/100,o=t[4]/100;return r=t[1]===`hwb`?Ns(i,a,o):t[1]===`hsv`?Ps(i,a,o):Ms(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function Ls(e,t){var n=As(e);n[0]=Fs(n[0]+t),n=Ms(n),e.r=n[0],e.g=n[1],e.b=n[2]}function Rs(e){if(!e)return;let t=As(e),n=t[0],r=hs(t[1]),i=hs(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${ms(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}var zs={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`},Bs={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 Vs(){let e={},t=Object.keys(Bs),n=Object.keys(zs),r,i,a,o,s;for(r=0;r<t.length;r++){for(o=s=t[r],i=0;i<n.length;i++)a=n[i],s=s.replace(a,zs[a]);a=parseInt(Bs[o],16),e[s]=[a>>16&255,a>>8&255,a&255]}return e}var Hs;function Us(e){Hs||(Hs=Vs(),Hs.transparent=[0,0,0,0]);let t=Hs[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}var Ws=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Gs(e){let t=Ws.exec(e),n=255,r,i,a;if(t){if(t[7]!==r){let e=+t[7];n=t[8]?fs(e):ds(e*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?fs(r):ds(r,0,255)),i=255&(t[4]?fs(i):ds(i,0,255)),a=255&(t[6]?fs(a):ds(a,0,255)),{r,g:i,b:a,a:n}}}function Ks(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${ms(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var qs=e=>e<=.0031308?e*12.92:e**(1/2.4)*1.055-.055,Js=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function Ys(e,t,n){let r=Js(ms(e.r)),i=Js(ms(e.g)),a=Js(ms(e.b));return{r:ps(qs(r+n*(Js(ms(t.r))-r))),g:ps(qs(i+n*(Js(ms(t.g))-i))),b:ps(qs(a+n*(Js(ms(t.b))-a))),a:e.a+n*(t.a-e.a)}}function Xs(e,t,n){if(e){let r=As(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=Ms(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function Zs(e,t){return e&&Object.assign(t||{},e)}function Qs(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=ps(e[3]))):(t=Zs(e,{r:0,g:0,b:0,a:1}),t.a=ps(t.a)),t}function $s(e){return e.charAt(0)===`r`?Gs(e):Is(e)}var ec=class e{constructor(t){if(t instanceof e)return t;let n=typeof t,r;n===`object`?r=Qs(t):n===`string`&&(r=Ss(t)||Us(t)||$s(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=Zs(this._rgb);return e&&(e.a=ms(e.a)),e}set rgb(e){this._rgb=Qs(e)}rgbString(){return this._valid?Ks(this._rgb):void 0}hexString(){return this._valid?ws(this._rgb):void 0}hslString(){return this._valid?Rs(this._rgb):void 0}mix(e,t){if(e){let n=this.rgb,r=e.rgb,i,a=t===i?.5:t,o=2*a-1,s=n.a-r.a,c=((o*s===-1?o:(o+s)/(1+o*s))+1)/2;i=1-c,n.r=255&c*n.r+i*r.r+.5,n.g=255&c*n.g+i*r.g+.5,n.b=255&c*n.b+i*r.b+.5,n.a=a*n.a+(1-a)*r.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=Ys(this._rgb,e._rgb,t)),this}clone(){return new e(this.rgb)}alpha(e){return this._rgb.a=ps(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb;return e.r=e.g=e.b=us(e.r*.3+e.g*.59+e.b*.11),this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Xs(this._rgb,2,e),this}darken(e){return Xs(this._rgb,2,-e),this}saturate(e){return Xs(this._rgb,1,e),this}desaturate(e){return Xs(this._rgb,1,-e),this}rotate(e){return Ls(this._rgb,e),this}};function tc(){}var nc=(()=>{let e=0;return()=>e++})();function rc(e){return e==null}function ic(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return t.slice(0,7)===`[object`&&t.slice(-6)===`Array]`}function ac(e){return e!==null&&Object.prototype.toString.call(e)===`[object Object]`}function oc(e){return(typeof e==`number`||e instanceof Number)&&isFinite(+e)}function sc(e,t){return oc(e)?e:t}function U(e,t){return e===void 0?t:e}var cc=(e,t)=>typeof e==`string`&&e.endsWith(`%`)?parseFloat(e)/100:+e/t,lc=(e,t)=>typeof e==`string`&&e.endsWith(`%`)?parseFloat(e)/100*t:+e;function uc(e,t,n){if(e&&typeof e.call==`function`)return e.apply(n,t)}function dc(e,t,n,r){let i,a,o;if(ic(e))if(a=e.length,r)for(i=a-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<a;i++)t.call(n,e[i],i);else if(ac(e))for(o=Object.keys(e),a=o.length,i=0;i<a;i++)t.call(n,e[o[i]],o[i])}function fc(e,t){let n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function pc(e){if(ic(e))return e.map(pc);if(ac(e)){let t=Object.create(null),n=Object.keys(e),r=n.length,i=0;for(;i<r;++i)t[n[i]]=pc(e[n[i]]);return t}return e}function mc(e){return[`__proto__`,`prototype`,`constructor`].indexOf(e)===-1}function hc(e,t,n,r){if(!mc(e))return;let i=t[e],a=n[e];ac(i)&&ac(a)?gc(i,a,r):t[e]=pc(a)}function gc(e,t,n){let r=ic(t)?t:[t],i=r.length;if(!ac(e))return e;n||={};let a=n.merger||hc,o;for(let t=0;t<i;++t){if(o=r[t],!ac(o))continue;let i=Object.keys(o);for(let t=0,r=i.length;t<r;++t)a(i[t],e,o,n)}return e}function _c(e,t){return gc(e,t,{merger:vc})}function vc(e,t,n){if(!mc(e))return;let r=t[e],i=n[e];ac(r)&&ac(i)?_c(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=pc(i))}var yc={"":e=>e,x:e=>e.x,y:e=>e.y};function bc(e){let t=e.split(`.`),n=[],r=``;for(let e of t)r+=e,r.endsWith(`\\`)?r=r.slice(0,-1)+`.`:(n.push(r),r=``);return n}function xc(e){let t=bc(e);return e=>{for(let n of t){if(n===``)break;e&&=e[n]}return e}}function Sc(e,t){return(yc[t]||(yc[t]=xc(t)))(e)}function Cc(e){return e.charAt(0).toUpperCase()+e.slice(1)}var wc=e=>e!==void 0,Tc=e=>typeof e==`function`,Ec=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function Dc(e){return e.type===`mouseup`||e.type===`click`||e.type===`contextmenu`}var Oc=Math.PI,kc=2*Oc,Ac=kc+Oc,jc=1/0,Mc=Oc/180,Nc=Oc/2,Pc=Oc/4,Fc=Oc*2/3,Ic=Math.log10,Lc=Math.sign;function Rc(e,t,n){return Math.abs(e-t)<n}function zc(e){let t=Math.round(e);e=Rc(e,t,e/1e3)?t:e;let n=10**Math.floor(Ic(e)),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function Bc(e){let t=[],n=Math.sqrt(e),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((e,t)=>e-t).pop(),t}function Vc(e){return typeof e==`symbol`||typeof e==`object`&&!!e&&!(Symbol.toPrimitive in e||`toString`in e||`valueOf`in e)}function Hc(e){return!Vc(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function Uc(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function Wc(e,t,n){let r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function Gc(e){return Oc/180*e}function Kc(e){return 180/Oc*e}function qc(e){if(!oc(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Jc(e,t){let n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n);return a<-.5*Oc&&(a+=kc),{angle:a,distance:i}}function Yc(e,t){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}function Xc(e,t){return(e-t+Ac)%kc-Oc}function Zc(e){return(e%kc+kc)%kc}function Qc(e,t,n,r){let i=Zc(e),a=Zc(t),o=Zc(n),s=Zc(a-i),c=Zc(o-i),l=Zc(i-a),u=Zc(i-o);return i===a||i===o||r&&a===o||s>c&&l<u}function $c(e,t,n){return Math.max(t,Math.min(n,e))}function el(e){return $c(e,-32768,32767)}function tl(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function nl(e,t,n){n||=(n=>e[n]<t);let r=e.length-1,i=0,a;for(;r-i>1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}var rl=(e,t,n,r)=>nl(e,n,r?r=>{let i=e[r][t];return i<n||i===n&&e[r+1][t]===n}:r=>e[r][t]<n),il=(e,t,n)=>nl(e,n,r=>e[r][t]>=n);function al(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}var ol=[`push`,`pop`,`shift`,`splice`,`unshift`];function sl(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),ol.forEach(t=>{let n=`_onData`+Cc(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{typeof e[n]==`function`&&e[n](...t)}),i}})})}function cl(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(ol.forEach(t=>{delete e[t]}),delete e._chartjs)}function ll(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}var ul=function(){return typeof window>`u`?function(e){return e()}:window.requestAnimationFrame}();function dl(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,ul.call(window,()=>{r=!1,e.apply(t,n)}))}}function fl(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}var pl=e=>e===`start`?`left`:e===`end`?`right`:`center`,ml=(e,t,n)=>e===`start`?t:e===`end`?n:(t+n)/2,hl=(e,t,n,r)=>e===(r?`left`:`right`)?n:e===`center`?(t+n)/2:t;function gl(e,t,n){let r=t.length,i=0,a=r;if(e._sorted){let{iScale:o,vScale:s,_parsed:c}=e,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,u=o.axis,{min:d,max:f,minDefined:p,maxDefined:m}=o.getUserBounds();if(p){if(i=Math.min(rl(c,u,d).lo,n?r:rl(t,u,o.getPixelForValue(d)).lo),l){let e=c.slice(0,i+1).reverse().findIndex(e=>!rc(e[s.axis]));i-=Math.max(0,e)}i=$c(i,0,r-1)}if(m){let e=Math.max(rl(c,o.axis,f,!0).hi+1,n?0:rl(t,u,o.getPixelForValue(f),!0).hi+1);if(l){let t=c.slice(e-1).findIndex(e=>!rc(e[s.axis]));e+=Math.max(0,t)}a=$c(e,i,r)-i}else a=r-i}return{start:i,count:a}}function _l(e){let{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;let a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}var vl=e=>e===0||e===1,yl=(e,t,n)=>-(2**(10*--e)*Math.sin((e-t)*kc/n)),bl=(e,t,n)=>2**(-10*e)*Math.sin((e-t)*kc/n)+1,xl={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*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*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*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*Nc)+1,easeOutSine:e=>Math.sin(e*Nc),easeInOutSine:e=>-.5*(Math.cos(Oc*e)-1),easeInExpo:e=>e===0?0:2**(10*(e-1)),easeOutExpo:e=>e===1?1:-(2**(-10*e))+1,easeInOutExpo:e=>vl(e)?e:e<.5?.5*2**(10*(e*2-1)):.5*(-(2**(-10*(e*2-1)))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1- --e*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>vl(e)?e:yl(e,.075,.3),easeOutElastic:e=>vl(e)?e:bl(e,.075,.3),easeInOutElastic(e){let t=.1125,n=.45;return vl(e)?e:e<.5?.5*yl(e*2,t,n):.5+.5*bl(e*2-1,t,n)},easeInBack(e){return e*e*(2.70158*e-1.70158)},easeOutBack(e){return--e*e*(2.70158*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-xl.easeOutBounce(1-e),easeOutBounce(e){let t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?xl.easeInBounce(e*2)*.5:xl.easeOutBounce(e*2-1)*.5+.5};function Sl(e){if(e&&typeof e==`object`){let t=e.toString();return t===`[object CanvasPattern]`||t===`[object CanvasGradient]`}return!1}function Cl(e){return Sl(e)?e:new ec(e)}function wl(e){return Sl(e)?e:new ec(e).saturate(.5).darken(.1).hexString()}var Tl=[`x`,`y`,`borderWidth`,`radius`,`tension`],El=[`color`,`borderColor`,`backgroundColor`];function Dl(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:e=>e!==`onProgress`&&e!==`onComplete`&&e!==`fn`}),e.set(`animations`,{colors:{type:`color`,properties:El},numbers:{type:`number`,properties:Tl}}),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:e=>e|0}}}})}function Ol(e){e.set(`layout`,{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var kl=new Map;function Al(e,t){t||={};let n=e+JSON.stringify(t),r=kl.get(n);return r||(r=new Intl.NumberFormat(e,t),kl.set(n,r)),r}function jl(e,t,n){return Al(t,n).format(e)}var Ml={values(e){return ic(e)?e:``+e},numeric(e,t,n){if(e===0)return`0`;let r=this.chart.options.locale,i,a=e;if(n.length>1){let t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>0x38d7ea4c68000)&&(i=`scientific`),a=Nl(e,n)}let o=Ic(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),c={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(c,this.options.ticks.format),jl(e,r,c)},logarithmic(e,t,n){if(e===0)return`0`;let r=n[t].significand||e/10**Math.floor(Ic(e));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?Ml.numeric.call(this,e,t,n):``}};function Nl(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 Pl={formatters:Ml};function Fl(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:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.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:Pl.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:e=>!e.startsWith(`before`)&&!e.startsWith(`after`)&&e!==`callback`&&e!==`parser`,_indexable:e=>e!==`borderDash`&&e!==`tickBorderDash`&&e!==`dash`}),e.describe(`scales`,{_fallback:`scale`}),e.describe(`scale.ticks`,{_scriptable:e=>e!==`backdropPadding`&&e!==`callback`,_indexable:e=>e!==`backdropPadding`})}var Il=Object.create(null),Ll=Object.create(null);function Rl(e,t){if(!t)return e;let n=t.split(`.`);for(let t=0,r=n.length;t<r;++t){let r=n[t];e=e[r]||(e[r]=Object.create(null))}return e}function zl(e,t,n){return typeof t==`string`?gc(Rl(e,t),n):gc(Rl(e,``),t)}var Bl=new class{constructor(e,t){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=e=>e.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=(e,t)=>wl(t.backgroundColor),this.hoverBorderColor=(e,t)=>wl(t.borderColor),this.hoverColor=(e,t)=>wl(t.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(e),this.apply(t)}set(e,t){return zl(this,e,t)}get(e){return Rl(this,e)}describe(e,t){return zl(Ll,e,t)}override(e,t){return zl(Il,e,t)}route(e,t,n,r){let i=Rl(this,e),a=Rl(this,n),o=`_`+t;Object.defineProperties(i,{[o]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[o],t=a[r];return ac(e)?Object.assign({},t,e):U(e,t)},set(e){this[o]=e}}})}apply(e){e.forEach(e=>e(this))}}({_scriptable:e=>!e.startsWith(`on`),_indexable:e=>e!==`events`,hover:{_fallback:`interaction`},interaction:{_scriptable:!1,_indexable:!1}},[Dl,Ol,Fl]);function Vl(e){return!e||rc(e.size)||rc(e.family)?null:(e.style?e.style+` `:``)+(e.weight?e.weight+` `:``)+e.size+`px `+e.family}function Hl(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function Ul(e,t,n,r){r||={};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0,s=n.length,c,l,u,d,f;for(c=0;c<s;c++)if(d=n[c],d!=null&&!ic(d))o=Hl(e,i,a,o,d);else if(ic(d))for(l=0,u=d.length;l<u;l++)f=d[l],f!=null&&!ic(f)&&(o=Hl(e,i,a,o,f));e.restore();let p=a.length/2;if(p>n.length){for(c=0;c<p;c++)delete i[a[c]];a.splice(0,p)}return o}function Wl(e,t,n){let r=e.currentDevicePixelRatio,i=n===0?0:Math.max(n/2,.5);return Math.round((t-i)*r)/r+i}function Gl(e,t){!t&&!e||(t||=e.getContext(`2d`),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Kl(e,t,n,r){ql(e,t,n,r,null)}function ql(e,t,n,r,i){let a,o,s,c,l,u,d,f,p=t.pointStyle,m=t.rotation,h=t.radius,g=(m||0)*Mc;if(p&&typeof p==`object`&&(a=p.toString(),a===`[object HTMLImageElement]`||a===`[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(h)||h<=0)){switch(e.beginPath(),p){default:i?e.ellipse(n,r,i/2,h,0,0,kc):e.arc(n,r,h,0,kc),e.closePath();break;case`triangle`:u=i?i/2:h,e.moveTo(n+Math.sin(g)*u,r-Math.cos(g)*h),g+=Fc,e.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*h),g+=Fc,e.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*h),e.closePath();break;case`rectRounded`:l=h*.516,c=h-l,o=Math.cos(g+Pc)*c,d=Math.cos(g+Pc)*(i?i/2-l:c),s=Math.sin(g+Pc)*c,f=Math.sin(g+Pc)*(i?i/2-l:c),e.arc(n-d,r-s,l,g-Oc,g-Nc),e.arc(n+f,r-o,l,g-Nc,g),e.arc(n+d,r+s,l,g,g+Nc),e.arc(n-f,r+o,l,g+Nc,g+Oc),e.closePath();break;case`rect`:if(!m){c=Math.SQRT1_2*h,u=i?i/2:c,e.rect(n-u,r-c,2*u,2*c);break}g+=Pc;case`rectRot`:d=Math.cos(g)*(i?i/2:h),o=Math.cos(g)*h,s=Math.sin(g)*h,f=Math.sin(g)*(i?i/2:h),e.moveTo(n-d,r-s),e.lineTo(n+f,r-o),e.lineTo(n+d,r+s),e.lineTo(n-f,r+o),e.closePath();break;case`crossRot`:g+=Pc;case`cross`:d=Math.cos(g)*(i?i/2:h),o=Math.cos(g)*h,s=Math.sin(g)*h,f=Math.sin(g)*(i?i/2:h),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o);break;case`star`:d=Math.cos(g)*(i?i/2:h),o=Math.cos(g)*h,s=Math.sin(g)*h,f=Math.sin(g)*(i?i/2:h),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o),g+=Pc,d=Math.cos(g)*(i?i/2:h),o=Math.cos(g)*h,s=Math.sin(g)*h,f=Math.sin(g)*(i?i/2:h),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o);break;case`line`:o=i?i/2:Math.cos(g)*h,s=Math.sin(g)*h,e.moveTo(n-o,r-s),e.lineTo(n+o,r+s);break;case`dash`:e.moveTo(n,r),e.lineTo(n+Math.cos(g)*(i?i/2:h),r+Math.sin(g)*h);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Jl(e,t,n){return 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 Yl(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Xl(e){e.restore()}function Zl(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i===`middle`){let r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else i===`after`==!!r?e.lineTo(n.x,t.y):e.lineTo(t.x,n.y);e.lineTo(n.x,n.y)}function Ql(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 $l(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),rc(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 eu(e,t,n,r,i){if(i.strikethrough||i.underline){let a=e.measureText(r),o=t-a.actualBoundingBoxLeft,s=t+a.actualBoundingBoxRight,c=n-a.actualBoundingBoxAscent,l=n+a.actualBoundingBoxDescent,u=i.strikethrough?(c+l)/2:l;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,u),e.lineTo(s,u),e.stroke()}}function tu(e,t){let n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function nu(e,t,n,r,i,a={}){let o=ic(t)?t:[t],s=a.strokeWidth>0&&a.strokeColor!==``,c,l;for(e.save(),e.font=i.string,$l(e,a),c=0;c<o.length;++c)l=o[c],a.backdrop&&tu(e,a.backdrop),s&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),rc(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(l,n,r,a.maxWidth)),e.fillText(l,n,r,a.maxWidth),eu(e,n,r,l,a),r+=Number(i.lineHeight);e.restore()}function ru(e,t){let{x:n,y:r,w:i,h:a,radius:o}=t;e.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*Oc,Oc,!0),e.lineTo(n,r+a-o.bottomLeft),e.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,Oc,Nc,!0),e.lineTo(n+i-o.bottomRight,r+a),e.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,Nc,0,!0),e.lineTo(n+i,r+o.topRight),e.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-Nc,!0),e.lineTo(n+o.topLeft,r)}var iu=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,au=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function ou(e,t){let n=(``+e).match(iu);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}var su=e=>+e||0;function cu(e,t){let n={},r=ac(t),i=r?Object.keys(t):t,a=ac(e)?r?n=>U(e[n],e[t[n]]):t=>e[t]:()=>e;for(let e of i)n[e]=su(a(e));return n}function lu(e){return cu(e,{top:`y`,right:`x`,bottom:`y`,left:`x`})}function uu(e){return cu(e,[`topLeft`,`topRight`,`bottomLeft`,`bottomRight`])}function du(e){let t=lu(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function fu(e,t){e||={},t||=Bl.font;let n=U(e.size,t.size);typeof n==`string`&&(n=parseInt(n,10));let r=U(e.style,t.style);r&&!(``+r).match(au)&&(console.warn(`Invalid font style specified: "`+r+`"`),r=void 0);let i={family:U(e.family,t.family),lineHeight:ou(U(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:U(e.weight,t.weight),string:``};return i.string=Vl(i),i}function pu(e,t,n,r){let i=!0,a,o,s;for(a=0,o=e.length;a<o;++a)if(s=e[a],s!==void 0&&(t!==void 0&&typeof s==`function`&&(s=s(t),i=!1),n!==void 0&&ic(s)&&(s=s[n%s.length],i=!1),s!==void 0))return r&&!i&&(r.cacheable=!1),s}function mu(e,t,n){let{min:r,max:i}=e,a=lc(t,(i-r)/2),o=(e,t)=>n&&e===0?0:e+t;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function hu(e,t){return Object.assign(Object.create(e),t)}function gu(e,t=[``],n,r,i=()=>e[0]){let a=n||e;return r===void 0&&(r=Mu(`_fallback`,e)),new Proxy({[Symbol.toStringTag]:`Object`,_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:n=>gu([n,...e],t,a,r)},{deleteProperty(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get(n,r){return xu(n,r,()=>ju(r,t,e,n))},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(e,t){return Nu(e).includes(t)},ownKeys(e){return Nu(e)},set(e,t,n){let r=e._storage||=i();return e[t]=r[t]=n,delete e._keys,!0}})}function _u(e,t,n,r){let i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:vu(e,r),setContext:t=>_u(e,t,n,r),override:i=>_u(e.override(i),t,n,r)};return new Proxy(i,{deleteProperty(t,n){return delete t[n],delete e[n],!0},get(e,t,n){return xu(e,t,()=>Su(e,t,n))},getOwnPropertyDescriptor(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(t,n){return Reflect.has(e,n)},ownKeys(){return Reflect.ownKeys(e)},set(t,n,r){return e[n]=r,delete t[n],!0}})}function vu(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:Tc(n)?n:()=>n,isIndexable:Tc(r)?r:()=>r}}var yu=(e,t)=>e?e+Cc(t):t,bu=(e,t)=>ac(t)&&e!==`adapters`&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function xu(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t===`constructor`)return e[t];let r=n();return e[t]=r,r}function Su(e,t,n){let{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e,s=r[t];return Tc(s)&&o.isScriptable(t)&&(s=Cu(t,s,e,n)),ic(s)&&s.length&&(s=wu(t,s,e,o.isIndexable)),bu(t,s)&&(s=_u(s,i,a&&a[t],o)),s}function Cu(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw Error(`Recursion detected: `+Array.from(s).join(`->`)+`->`+e);s.add(e);let c=t(a,o||r);return s.delete(e),bu(e,c)&&(c=Ou(i._scopes,i,e,c)),c}function wu(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(a.index!==void 0&&r(e))return t[a.index%t.length];if(ac(t[0])){let n=t,r=i._scopes.filter(e=>e!==n);t=[];for(let c of n){let n=Ou(r,i,e,c);t.push(_u(n,a,o&&o[e],s))}}return t}function Tu(e,t,n){return Tc(e)?e(t,n):e}var Eu=(e,t)=>e===!0?t:typeof e==`string`?Sc(t,e):void 0;function Du(e,t,n,r,i){for(let a of t){let t=Eu(n,a);if(t){e.add(t);let a=Tu(t._fallback,n,i);if(a!==void 0&&a!==n&&a!==r)return a}else if(t===!1&&r!==void 0&&n!==r)return null}return!1}function Ou(e,t,n,r){let i=t._rootScopes,a=Tu(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let c=ku(s,o,n,a||n,r);return c===null||a!==void 0&&a!==n&&(c=ku(s,o,a,c,r),c===null)?!1:gu(Array.from(s),[``],i,a,()=>Au(t,n,r))}function ku(e,t,n,r,i){for(;n;)n=Du(e,t,n,r,i);return n}function Au(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return ic(i)&&ac(n)?n:i||{}}function ju(e,t,n,r){let i;for(let a of t)if(i=Mu(yu(a,e),n),i!==void 0)return bu(e,i)?Ou(n,r,e,i):i}function Mu(e,t){for(let n of t){if(!n)continue;let t=n[e];if(t!==void 0)return t}}function Nu(e){let t=e._keys;return t||=e._keys=Pu(e._scopes),t}function Pu(e){let t=new Set;for(let n of e)for(let e of Object.keys(n).filter(e=>!e.startsWith(`_`)))t.add(e);return Array.from(t)}var Fu=2**-52||1e-14,Iu=(e,t)=>t<e.length&&!e[t].skip&&e[t],Lu=e=>e===`x`?`y`:`x`;function Ru(e,t,n,r){let i=e.skip?t:e,a=t,o=n.skip?t:n,s=Yc(a,i),c=Yc(o,a),l=s/(s+c),u=c/(s+c);l=isNaN(l)?0:l,u=isNaN(u)?0:u;let d=r*l,f=r*u;return{previous:{x:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+f*(o.x-i.x),y:a.y+f*(o.y-i.y)}}}function zu(e,t,n){let r=e.length,i,a,o,s,c,l=Iu(e,0);for(let u=0;u<r-1;++u)if(c=l,l=Iu(e,u+1),!(!c||!l)){if(Rc(t[u],0,Fu)){n[u]=n[u+1]=0;continue}i=n[u]/t[u],a=n[u+1]/t[u],s=i**2+a**2,!(s<=9)&&(o=3/Math.sqrt(s),n[u]=i*o*t[u],n[u+1]=a*o*t[u])}}function Bu(e,t,n=`x`){let r=Lu(n),i=e.length,a,o,s,c=Iu(e,0);for(let l=0;l<i;++l){if(o=s,s=c,c=Iu(e,l+1),!s)continue;let i=s[n],u=s[r];o&&(a=(i-o[n])/3,s[`cp1${n}`]=i-a,s[`cp1${r}`]=u-a*t[l]),c&&(a=(c[n]-i)/3,s[`cp2${n}`]=i+a,s[`cp2${r}`]=u+a*t[l])}}function Vu(e,t=`x`){let n=Lu(t),r=e.length,i=Array(r).fill(0),a=Array(r),o,s,c,l=Iu(e,0);for(o=0;o<r;++o)if(s=c,c=l,l=Iu(e,o+1),c){if(l){let e=l[t]-c[t];i[o]=e===0?0:(l[n]-c[n])/e}a[o]=s?l?Lc(i[o-1])===Lc(i[o])?(i[o-1]+i[o])/2:0:i[o-1]:i[o]}zu(e,i,a),Bu(e,a,t)}function Hu(e,t,n){return Math.max(Math.min(e,n),t)}function Uu(e,t){let n,r,i,a,o,s=Jl(e[0],t);for(n=0,r=e.length;n<r;++n)o=a,a=s,s=n<r-1&&Jl(e[n+1],t),a&&(i=e[n],o&&(i.cp1x=Hu(i.cp1x,t.left,t.right),i.cp1y=Hu(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=Hu(i.cp2x,t.left,t.right),i.cp2y=Hu(i.cp2y,t.top,t.bottom)))}function Wu(e,t,n,r,i){let a,o,s,c;if(t.spanGaps&&(e=e.filter(e=>!e.skip)),t.cubicInterpolationMode===`monotone`)Vu(e,i);else{let n=r?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)s=e[a],c=Ru(n,s,e[Math.min(a+1,o-+!r)%o],t.tension),s.cp1x=c.previous.x,s.cp1y=c.previous.y,s.cp2x=c.next.x,s.cp2y=c.next.y,n=s}t.capBezierPoints&&Uu(e,n)}function Gu(){return typeof window<`u`&&typeof document<`u`}function Ku(e){let t=e.parentNode;return t&&t.toString()===`[object ShadowRoot]`&&(t=t.host),t}function qu(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}var Ju=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function Yu(e,t){return Ju(e).getPropertyValue(t)}var Xu=[`top`,`right`,`bottom`,`left`];function Zu(e,t,n){let r={};n=n?`-`+n:``;for(let i=0;i<4;i++){let a=Xu[i];r[a]=parseFloat(e[t+`-`+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}var Qu=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function $u(e,t){let n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r,o=!1,s,c;if(Qu(i,a,e.target))s=i,c=a;else{let e=t.getBoundingClientRect();s=r.clientX-e.left,c=r.clientY-e.top,o=!0}return{x:s,y:c,box:o}}function ed(e,t){if(`native`in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,i=Ju(n),a=i.boxSizing===`border-box`,o=Zu(i,`padding`),s=Zu(i,`border`,`width`),{x:c,y:l,box:u}=$u(e,n),d=o.left+(u&&s.left),f=o.top+(u&&s.top),{width:p,height:m}=t;return a&&(p-=o.width+s.width,m-=o.height+s.height),{x:Math.round((c-d)/p*n.width/r),y:Math.round((l-f)/m*n.height/r)}}function td(e,t,n){let r,i;if(t===void 0||n===void 0){let a=e&&Ku(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{let e=a.getBoundingClientRect(),o=Ju(a),s=Zu(o,`border`,`width`),c=Zu(o,`padding`);t=e.width-c.width-s.width,n=e.height-c.height-s.height,r=qu(o.maxWidth,a,`clientWidth`),i=qu(o.maxHeight,a,`clientHeight`)}}return{width:t,height:n,maxWidth:r||jc,maxHeight:i||jc}}var nd=e=>Math.round(e*10)/10;function rd(e,t,n,r){let i=Ju(e),a=Zu(i,`margin`),o=qu(i.maxWidth,e,`clientWidth`)||jc,s=qu(i.maxHeight,e,`clientHeight`)||jc,c=td(e,t,n),{width:l,height:u}=c;if(i.boxSizing===`content-box`){let e=Zu(i,`border`,`width`),t=Zu(i,`padding`);l-=t.width+e.width,u-=t.height+e.height}return l=Math.max(0,l-a.width),u=Math.max(0,r?l/r:u-a.height),l=nd(Math.min(l,o,c.maxWidth)),u=nd(Math.min(u,s,c.maxHeight)),l&&!u&&(u=nd(l/2)),(t!==void 0||n!==void 0)&&r&&c.height&&u>c.height&&(u=c.height,l=nd(Math.floor(u*r))),{width:l,height:u}}function id(e,t,n){let r=t||1,i=nd(e.height*r),a=nd(e.width*r);e.height=nd(e.height),e.width=nd(e.width);let 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!==i||o.width!==a?(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}var ad=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};Gu()&&(window.addEventListener(`test`,null,t),window.removeEventListener(`test`,null,t))}catch{}return e}();function od(e,t){let n=Yu(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function sd(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function cd(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 ld(e,t,n,r){let i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=sd(e,i,n),s=sd(i,a,n),c=sd(a,t,n);return sd(sd(o,s,n),sd(s,c,n),n)}var ud=function(e,t){return{x(n){return e+e+t-n},setWidth(e){t=e},textAlign(e){return e===`center`?e:e===`right`?`left`:`right`},xPlus(e,t){return e-t},leftForLtr(e,t){return e-t}}},dd=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function fd(e,t,n){return e?ud(t,n):dd()}function pd(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 md(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty(`direction`,t[0],t[1]))}function hd(e){return e===`angle`?{between:Qc,compare:Xc,normalize:Zc}:{between:tl,compare:(e,t)=>e-t,normalize:e=>e}}function gd({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function _d(e,t,n){let{property:r,start:i,end:a}=n,{between:o,normalize:s}=hd(r),c=t.length,{start:l,end:u,loop:d}=e,f,p;if(d){for(l+=c,u+=c,f=0,p=c;f<p&&o(s(t[l%c][r]),i,a);++f)l--,u--;l%=c,u%=c}return u<l&&(u+=c),{start:l,end:u,loop:d,style:e.style}}function vd(e,t,n){if(!n)return[e];let{property:r,start:i,end:a}=n,o=t.length,{compare:s,between:c,normalize:l}=hd(r),{start:u,end:d,loop:f,style:p}=_d(e,t,n),m=[],h=!1,g=null,_,v,y,b=()=>c(i,y,_)&&s(i,y)!==0,x=()=>s(a,_)===0||c(a,y,_),S=()=>h||b(),C=()=>!h||x();for(let e=u,n=u;e<=d;++e)v=t[e%o],!v.skip&&(_=l(v[r]),_!==y&&(h=c(_,i,a),g===null&&S()&&(g=s(_,i)===0?e:n),g!==null&&C()&&(m.push(gd({start:g,end:e,loop:f,count:o,style:p})),g=null),n=e,y=_));return g!==null&&m.push(gd({start:g,end:d,loop:f,count:o,style:p})),m}function yd(e,t){let n=[],r=e.segments;for(let i=0;i<r.length;i++){let a=vd(r[i],e.points,t);a.length&&n.push(...a)}return n}function bd(e,t,n,r){let i=0,a=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(a+=i);a>i&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function xd(e,t,n,r){let i=e.length,a=[],o=t,s=e[t],c;for(c=t+1;c<=n;++c){let n=e[c%i];n.skip||n.stop?s.skip||(r=!1,a.push({start:t%i,end:(c-1)%i,loop:r}),t=o=n.stop?c:null):(o=c,s.skip&&(t=c)),s=n}return o!==null&&a.push({start:t%i,end:o%i,loop:r}),a}function Sd(e,t){let n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];let a=!!e._loop,{start:o,end:s}=bd(n,i,a,r);return r===!0?Cd(e,[{start:o,end:s,loop:a}],n,t):Cd(e,xd(n,o,s<o?s+i:s,!!e._fullLoop&&o===0&&s===i-1),n,t)}function Cd(e,t,n,r){return!r||!r.setContext||!n?t:wd(e,t,n,r)}function wd(e,t,n,r){let i=e._chart.getContext(),a=Td(e.options),{_datasetIndex:o,options:{spanGaps:s}}=e,c=n.length,l=[],u=a,d=t[0].start,f=d;function p(e,t,r,i){let a=s?-1:1;if(e!==t){for(e+=c;n[e%c].skip;)e-=a;for(;n[t%c].skip;)t+=a;e%c!==t%c&&(l.push({start:e%c,end:t%c,loop:r,style:i}),u=i,d=t%c)}}for(let e of t){d=s?d:e.start;let t=n[d%c],a;for(f=d+1;f<=e.end;f++){let s=n[f%c];a=Td(r.setContext(hu(i,{type:`segment`,p0:t,p1:s,p0DataIndex:(f-1)%c,p1DataIndex:f%c,datasetIndex:o}))),Ed(a,u)&&p(d,f-1,e.loop,u),t=s,u=a}d<f-1&&p(d,f-1,e.loop,u)}return l}function Td(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Ed(e,t){if(!t)return!1;let n=[],r=function(e,t){return Sl(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,r)!==JSON.stringify(t,r)}function Dd(e,t,n){return e.options.clip?e[n]:t[n]}function Od(e,t){let{xScale:n,yScale:r}=e;return n&&r?{left:Dd(n,t,`left`),right:Dd(n,t,`right`),top:Dd(r,t,`top`),bottom:Dd(r,t,`bottom`)}:t}function kd(e,t){let n=t._clip;if(n.disabled)return!1;let r=Od(t,e.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?e.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?e.height:r.bottom+(n.bottom===!0?0:n.bottom)}}var Ad=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,r){let i=t.listeners[r],a=t.duration;i.forEach(r=>r({chart:e,initial:t.initial,numSteps:a,currentStep:Math.min(n-t.start,a)}))}_refresh(){this._request||=(this._running=!0,ul.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((n,r)=>{if(!n.running||!n.items.length)return;let i=n.items,a=i.length-1,o=!1,s;for(;a>=0;--a)s=i[a],s._active?(s._total>n.duration&&(n.duration=s._total),s.tick(e),o=!0):(i[a]=i[i.length-1],i.pop());o&&(r.draw(),this._notify(r,n,e,`progress`)),i.length||(n.running=!1,this._notify(r,n,e,`complete`),n.initial=!1),t+=i.length}),this._lastDate=e,t===0&&(this._running=!1)}_getAnims(e){let t=this._charts,n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){!t||!t.length||this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){let t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((e,t)=>Math.max(e,t._duration),0),this._refresh())}running(e){if(!this._running)return!1;let t=this._charts.get(e);return!(!t||!t.running||!t.items.length)}stop(e){let t=this._charts.get(e);if(!t||!t.items.length)return;let n=t.items,r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),`complete`)}remove(e){return this._charts.delete(e)}},jd=`transparent`,Md={boolean(e,t,n){return n>.5?t:e},color(e,t,n){let r=Cl(e||jd),i=r.valid&&Cl(t||jd);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}},Nd=class{constructor(e,t,n,r){let i=t[n];r=pu([e.to,r,i,e.from]);let a=pu([e.from,i,r]);this._active=!0,this._fn=e.fn||Md[e.type||typeof a],this._easing=xl[e.easing]||xl.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);let r=this._target[this._prop],i=n-this._start,a=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=pu([e.to,t,r,e.from]),this._from=pu([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){let t=e-this._start,n=this._duration,r=this._prop,i=this._from,a=this._loop,o=this._to,s;if(this._active=i!==o&&(a||t<n),!this._active){this._target[r]=o,this._notify(!0);return}if(t<0){this._target[r]=i;return}s=t/n%2,s=a&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(i,o,s)}wait(){let e=this._promises||=[];return new Promise((t,n)=>{e.push({res:t,rej:n})})}_notify(e){let t=e?`res`:`rej`,n=this._promises||[];for(let e=0;e<n.length;e++)n[e][t]()}},Pd=class{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!ac(e))return;let t=Object.keys(Bl.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach(r=>{let i=e[r];if(!ac(i))return;let a={};for(let e of t)a[e]=i[e];(ic(i.properties)&&i.properties||[r]).forEach(e=>{(e===r||!n.has(e))&&n.set(e,a)})})}_animateOptions(e,t){let n=t.options,r=Id(e,n);if(!r)return[];let i=this._createAnimations(r,n);return n.$shared&&Fd(e.options.$animations,n).then(()=>{e.options=n},()=>{}),i}_createAnimations(e,t){let n=this._properties,r=[],i=e.$animations||={},a=Object.keys(t),o=Date.now(),s;for(s=a.length-1;s>=0;--s){let c=a[s];if(c.charAt(0)===`$`)continue;if(c===`options`){r.push(...this._animateOptions(e,t));continue}let l=t[c],u=i[c],d=n.get(c);if(u)if(d&&u.active()){u.update(d,l,o);continue}else u.cancel();if(!d||!d.duration){e[c]=l;continue}i[c]=u=new Nd(d,e,c,l),r.push(u)}return r}update(e,t){if(this._properties.size===0){Object.assign(e,t);return}let n=this._createAnimations(e,t);if(n.length)return Ad.add(this._chart,n),!0}};function Fd(e,t){let n=[],r=Object.keys(t);for(let t=0;t<r.length;t++){let i=e[r[t]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}function Id(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 Ld(e,t){let n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,a=n.max===void 0?t:0;return{start:r?a:i,end:r?i:a}}function Rd(e,t,n){if(n===!1)return!1;let r=Ld(e,n),i=Ld(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function zd(e){let t,n,r,i;return ac(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function Bd(e,t){let n=[],r=e._getSortedDatasetMetas(t),i,a;for(i=0,a=r.length;i<a;++i)n.push(r[i].index);return n}function Vd(e,t,n,r={}){let i=e.keys,a=r.mode===`single`,o,s,c,l;if(t===null)return;let u=!1;for(o=0,s=i.length;o<s;++o){if(c=+i[o],c===n){if(u=!0,r.all)continue;break}l=e.values[c],oc(l)&&(a||t===0||Lc(t)===Lc(l))&&(t+=l)}return!u&&!r.all?0:t}function Hd(e,t){let{iScale:n,vScale:r}=t,i=n.axis===`x`?`x`:`y`,a=r.axis===`x`?`x`:`y`,o=Object.keys(e),s=Array(o.length),c,l,u;for(c=0,l=o.length;c<l;++c)u=o[c],s[c]={[i]:u,[a]:e[u]};return s}function Ud(e,t){let n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function Wd(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function Gd(e){let{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:-1/0,max:i?n:1/0}}function Kd(e,t,n){let r=e[t]||(e[t]={});return r[n]||(r[n]={})}function qd(e,t,n,r){for(let i of t.getMatchingVisibleMetas(r).reverse()){let t=e[i.index];if(n&&t>0||!n&&t<0)return i.index}return null}function Jd(e,t){let{chart:n,_cachedMeta:r}=e,i=n._stacks||={},{iScale:a,vScale:o,index:s}=r,c=a.axis,l=o.axis,u=Wd(a,o,r),d=t.length,f;for(let e=0;e<d;++e){let n=t[e],{[c]:a,[l]:d}=n,p=n._stacks||={};f=p[l]=Kd(i,u,a),f[s]=d,f._top=qd(f,o,!0,r.type),f._bottom=qd(f,o,!1,r.type);let m=f._visualValues||={};m[s]=d}}function Yd(e,t){let n=e.scales;return Object.keys(n).filter(e=>n[e].axis===t).shift()}function Xd(e,t){return hu(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:`default`,type:`dataset`})}function Zd(e,t,n){return hu(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:`default`,type:`data`})}function Qd(e,t){let n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t||=e._parsed;for(let e of t){let t=e._stacks;if(!t||t[r]===void 0||t[r][n]===void 0)return;delete t[r][n],t[r]._visualValues!==void 0&&t[r]._visualValues[n]!==void 0&&delete t[r]._visualValues[n]}}}var $d=e=>e===`reset`||e===`none`,ef=(e,t)=>t?e:Object.assign({},e),tf=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Bd(n,!0),values:null},nf=class{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,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(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Ud(e.vScale,e),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(e){this.index!==e&&Qd(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=(e,t,n,r)=>e===`x`?t:e===`r`?r:n,i=t.xAxisID=U(n.xAxisID,Yd(e,`x`)),a=t.yAxisID=U(n.yAxisID,Yd(e,`y`)),o=t.rAxisID=U(n.rAxisID,Yd(e,`r`)),s=t.indexAxis,c=t.iAxisID=r(s,i,a,o),l=t.vAxisID=r(s,a,i,o);t.xScale=this.getScaleForId(i),t.yScale=this.getScaleForId(a),t.rScale=this.getScaleForId(o),t.iScale=this.getScaleForId(c),t.vScale=this.getScaleForId(l)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update(`reset`)}_destroy(){let e=this._cachedMeta;this._data&&cl(this._data,this),e._stacked&&Qd(e)}_dataCheck(){let e=this.getDataset(),t=e.data||=[],n=this._data;if(ac(t)){let e=this._cachedMeta;this._data=Hd(t,e)}else if(n!==t){if(n){cl(n,this);let e=this._cachedMeta;Qd(e),e._parsed=[]}t&&Object.isExtensible(t)&&sl(t,this),this._syncList=[],this._data=t}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let t=this._cachedMeta,n=this.getDataset(),r=!1;this._dataCheck();let i=t._stacked;t._stacked=Ud(t.vScale,t),t.stack!==n.stack&&(r=!0,Qd(t),t.stack=n.stack),this._resyncElements(e),(r||i!==t._stacked)&&(Jd(this,t._parsed),t._stacked=Ud(t.vScale,t))}configure(){let e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){let{_cachedMeta:n,_data:r}=this,{iScale:i,_stacked:a}=n,o=i.axis,s=e===0&&t===r.length?!0:n._sorted,c=e>0&&n._parsed[e-1],l,u,d;if(this._parsing===!1)n._parsed=r,n._sorted=!0,d=r;else{d=ic(r[e])?this.parseArrayData(n,r,e,t):ac(r[e])?this.parseObjectData(n,r,e,t):this.parsePrimitiveData(n,r,e,t);let i=()=>u[o]===null||c&&u[o]<c[o];for(l=0;l<t;++l)n._parsed[l+e]=u=d[l],s&&(i()&&(s=!1),c=u);n._sorted=s}a&&Jd(this,d)}parsePrimitiveData(e,t,n,r){let{iScale:i,vScale:a}=e,o=i.axis,s=a.axis,c=i.getLabels(),l=i===a,u=Array(r),d,f,p;for(d=0,f=r;d<f;++d)p=d+n,u[d]={[o]:l||i.parse(c[p],p),[s]:a.parse(t[p],p)};return u}parseArrayData(e,t,n,r){let{xScale:i,yScale:a}=e,o=Array(r),s,c,l,u;for(s=0,c=r;s<c;++s)l=s+n,u=t[l],o[s]={x:i.parse(u[0],l),y:a.parse(u[1],l)};return o}parseObjectData(e,t,n,r){let{xScale:i,yScale:a}=e,{xAxisKey:o=`x`,yAxisKey:s=`y`}=this._parsing,c=Array(r),l,u,d,f;for(l=0,u=r;l<u;++l)d=l+n,f=t[d],c[l]={x:i.parse(Sc(f,o),d),y:a.parse(Sc(f,s),d)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){let r=this.chart,i=this._cachedMeta,a=t[e.axis];return Vd({keys:Bd(r,!0),values:t._stacks[e.axis]._visualValues},a,i.index,{mode:n})}updateRangeFromParsed(e,t,n,r){let i=n[t.axis],a=i===null?NaN:i,o=r&&n._stacks[t.axis];r&&o&&(r.values=o,a=Vd(r,i,this._cachedMeta.index)),e.min=Math.min(e.min,a),e.max=Math.max(e.max,a)}getMinMax(e,t){let n=this._cachedMeta,r=n._parsed,i=n._sorted&&e===n.iScale,a=r.length,o=this._getOtherScale(e),s=tf(t,n,this.chart),c={min:1/0,max:-1/0},{min:l,max:u}=Gd(o),d,f;function p(){f=r[d];let t=f[o.axis];return!oc(f[e.axis])||l>t||u<t}for(d=0;d<a&&!(!p()&&(this.updateRangeFromParsed(c,e,f,s),i));++d);if(i){for(d=a-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(c,e,f,s);break}}return c}getAllParsedValues(e){let t=this._cachedMeta._parsed,n=[],r,i,a;for(r=0,i=t.length;r<i;++r)a=t[r][e.axis],oc(a)&&n.push(a);return n}getMaxOverflow(){return!1}getLabelAndValue(e){let t=this._cachedMeta,n=t.iScale,r=t.vScale,i=this.getParsed(e);return{label:n?``+n.getLabelForValue(i[n.axis]):``,value:r?``+r.getLabelForValue(i[r.axis]):``}}_update(e){let t=this._cachedMeta;this.update(e||`default`),t._clip=zd(U(this.options.clip,Rd(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){let e=this._ctx,t=this.chart,n=this._cachedMeta,r=n.data||[],i=t.chartArea,a=[],o=this._drawStart||0,s=this._drawCount||r.length-o,c=this.options.drawActiveElementsOnTop,l;for(n.dataset&&n.dataset.draw(e,i,o,s),l=o;l<o+s;++l){let t=r[l];t.hidden||(t.active&&c?a.push(t):t.draw(e,i))}for(l=0;l<a.length;++l)a[l].draw(e,i)}getStyle(e,t){let n=t?`active`:`default`;return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){let r=this.getDataset(),i;if(e>=0&&e<this._cachedMeta.data.length){let t=this._cachedMeta.data[e];i=t.$context||=Zd(this.getContext(),e,t),i.parsed=this.getParsed(e),i.raw=r.data[e],i.index=i.dataIndex=e}else i=this.$context||=Xd(this.chart.getContext(),this.index),i.dataset=r,i.index=i.datasetIndex=this.index;return i.active=!!t,i.mode=n,i}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t=`default`,n){let r=t===`active`,i=this._cachedDataOpts,a=e+`-`+t,o=i[a],s=this.enableOptionSharing&&wc(n);if(o)return ef(o,s);let c=this.chart.config,l=c.datasetElementScopeKeys(this._type,e),u=r?[`${e}Hover`,`hover`,e,``]:[e,``],d=c.getOptionScopes(this.getDataset(),l),f=Object.keys(Bl.elements[e]),p=c.resolveNamedOptions(d,f,()=>this.getContext(n,r,t),u);return p.$shared&&(p.$shared=s,i[a]=Object.freeze(ef(p,s))),p}_resolveAnimations(e,t,n){let r=this.chart,i=this._cachedDataOpts,a=`animation-${t}`,o=i[a];if(o)return o;let s;if(r.options.animation!==!1){let r=this.chart.config,i=r.datasetAnimationScopeKeys(this._type,t),a=r.getOptionScopes(this.getDataset(),i);s=r.createResolver(a,this.getContext(e,n,t))}let c=new Pd(r,s&&s.animations);return s&&s._cacheable&&(i[a]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||=Object.assign({},e)}includeOptions(e,t){return!t||$d(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){let n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,i=this.getSharedOptions(n),a=this.includeOptions(t,i)||i!==r;return this.updateSharedOptions(i,t,n),{sharedOptions:i,includeOptions:a}}updateElement(e,t,n,r){$d(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!$d(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;let i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(e,t,n){this._setStyle(e,n,`active`,!1)}setHoverStyle(e,t,n){this._setStyle(e,n,`active`,!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,`active`,!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,`active`,!0)}_resyncElements(e){let t=this._data,n=this._cachedMeta.data;for(let[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];let r=n.length,i=t.length,a=Math.min(i,r);a&&this.parse(0,a),i>r?this._insertElements(r,i-r,e):i<r&&this._removeElements(i,r-i)}_insertElements(e,t,n=!0){let r=this._cachedMeta,i=r.data,a=e+t,o,s=e=>{for(e.length+=t,o=e.length-1;o>=a;o--)e[o]=e[o-t]};for(s(i),o=e;o<a;++o)i[o]=new this.dataElementType;this._parsing&&s(r._parsed),this.parse(e,t),n&&this.updateElements(i,e,t,`reset`)}updateElements(e,t,n,r){}_removeElements(e,t){let n=this._cachedMeta;if(this._parsing){let r=n._parsed.splice(e,t);n._stacked&&Qd(n,r)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{let[t,n,r]=e;this[t](n,r)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){let e=arguments.length;this._sync([`_insertElements`,this.getDataset().data.length-e,e])}_onDataPop(){this._sync([`_removeElements`,this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync([`_removeElements`,0,1])}_onDataSplice(e,t){t&&this._sync([`_removeElements`,e,t]);let n=arguments.length-2;n&&this._sync([`_insertElements`,e,n])}_onDataUnshift(){this._sync([`_insertElements`,0,arguments.length])}};function rf(e,t){if(!e._cache.$bar){let n=e.getMatchingVisibleMetas(t),r=[];for(let t=0,i=n.length;t<i;t++)r=r.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=ll(r.sort((e,t)=>e-t))}return e._cache.$bar}function af(e){let t=e.iScale,n=rf(t,e.type),r=t._length,i,a,o,s,c=()=>{o===32767||o===-32768||(wc(s)&&(r=Math.min(r,Math.abs(o-s)||r)),s=o)};for(i=0,a=n.length;i<a;++i)o=t.getPixelForValue(n[i]),c();for(s=void 0,i=0,a=t.ticks.length;i<a;++i)o=t.getPixelForTick(i),c();return r}function of(e,t,n,r){let i=n.barThickness,a,o;return rc(i)?(a=t.min*n.categoryPercentage,o=n.barPercentage):(a=i*r,o=1),{chunk:a/r,ratio:o,start:t.pixels[e]-a/2}}function sf(e,t,n,r){let i=t.pixels,a=i[e],o=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null,c=n.categoryPercentage;o===null&&(o=a-(s===null?t.end-t.start:s-a)),s===null&&(s=a+a-o);let l=a-(a-Math.min(o,s))/2*c;return{chunk:Math.abs(s-o)/2*c/r,ratio:n.barPercentage,start:l}}function cf(e,t,n,r){let i=n.parse(e[0],r),a=n.parse(e[1],r),o=Math.min(i,a),s=Math.max(i,a),c=o,l=s;Math.abs(o)>Math.abs(s)&&(c=s,l=o),t[n.axis]=l,t._custom={barStart:c,barEnd:l,start:i,end:a,min:o,max:s}}function lf(e,t,n,r){return ic(e)?cf(e,t,n,r):t[n.axis]=n.parse(e,r),t}function uf(e,t,n,r){let i=e.iScale,a=e.vScale,o=i.getLabels(),s=i===a,c=[],l,u,d,f;for(l=n,u=n+r;l<u;++l)f=t[l],d={},d[i.axis]=s||i.parse(o[l],l),c.push(lf(f,d,a,l));return c}function df(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function ff(e,t,n){return e===0?(t.isHorizontal()?1:-1)*(t.min>=n?1:-1):Lc(e)}function pf(e){let t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n=`left`,r=`right`):(t=e.base<e.y,n=`bottom`,r=`top`),t?(i=`end`,a=`start`):(i=`start`,a=`end`),{start:n,end:r,reverse:t,top:i,bottom:a}}function mf(e,t,n,r){let i=t.borderSkipped,a={};if(!i){e.borderSkipped=a;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:o,end:s,reverse:c,top:l,bottom:u}=pf(e);i===`middle`&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=l:(n._bottom||0)===r?i=u:(a[hf(u,o,s,c)]=!0,i=l)),a[hf(i,o,s,c)]=!0,e.borderSkipped=a}function hf(e,t,n,r){return r?(e=gf(e,t,n),e=_f(e,n,t)):e=_f(e,t,n),e}function gf(e,t,n){return e===t?n:e===n?t:e}function _f(e,t,n){return e===`start`?t:e===`end`?n:e}function vf(e,{inflateAmount:t},n){e.inflateAmount=t===`auto`?n===1?.33:0:t}var yf=class extends nf{static id=`bar`;static defaults={datasetElementType:!1,dataElementType:`bar`,categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:`number`,properties:[`x`,`y`,`base`,`width`,`height`]}}};static overrides={scales:{_index_:{type:`category`,offset:!0,grid:{offset:!0}},_value_:{type:`linear`,beginAtZero:!0}}};parsePrimitiveData(e,t,n,r){return uf(e,t,n,r)}parseArrayData(e,t,n,r){return uf(e,t,n,r)}parseObjectData(e,t,n,r){let{iScale:i,vScale:a}=e,{xAxisKey:o=`x`,yAxisKey:s=`y`}=this._parsing,c=i.axis===`x`?o:s,l=a.axis===`x`?o:s,u=[],d,f,p,m;for(d=n,f=n+r;d<f;++d)m=t[d],p={},p[i.axis]=i.parse(Sc(m,c),d),u.push(lf(Sc(m,l),p,a,d));return u}updateRangeFromParsed(e,t,n,r){super.updateRangeFromParsed(e,t,n,r);let i=n._custom;i&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,i.min),e.max=Math.max(e.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(e){let{iScale:t,vScale:n}=this._cachedMeta,r=this.getParsed(e),i=r._custom,a=df(i)?`[`+i.start+`, `+i.end+`]`:``+n.getLabelForValue(r[n.axis]);return{label:``+t.getLabelForValue(r[t.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();let e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){let t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,r){let i=r===`reset`,{index:a,_cachedMeta:{vScale:o}}=this,s=o.getBasePixel(),c=o.isHorizontal(),l=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(t,r);for(let f=t;f<t+n;f++){let t=this.getParsed(f),n=i||rc(t[o.axis])?{base:s,head:s}:this._calculateBarValuePixels(f),p=this._calculateBarIndexPixels(f,l),m=(t._stacks||{})[o.axis],h={horizontal:c,base:n.base,enableBorderRadius:!m||df(t._custom)||a===m._top||a===m._bottom,x:c?n.head:p.center,y:c?p.center:n.head,height:c?p.size:Math.abs(n.size),width:c?Math.abs(n.size):p.size};d&&(h.options=u||this.resolveDataElementOptions(f,e[f].active?`active`:r));let g=h.options||e[f].options;mf(h,g,m,a),vf(h,g,l.ratio),this.updateElement(e[f],f,h,r)}}_getStacks(e,t){let{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter(e=>e.controller.options.grouped),i=n.options.stacked,a=[],o=this._cachedMeta.controller.getParsed(t),s=o&&o[n.axis],c=e=>{let t=e._parsed.find(e=>e[n.axis]===s),r=t&&t[e.vScale.axis];if(rc(r)||isNaN(r))return!0};for(let n of r)if(!(t!==void 0&&c(n))&&((i===!1||a.indexOf(n.stack)===-1||i===void 0&&n.stack===void 0)&&a.push(n.stack),n.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let e=this.chart.scales,t=this.chart.options.indexAxis;return Object.keys(e).filter(n=>e[n].axis===t).shift()}_getAxis(){let e={},t=this.getFirstScaleIdForIndexAxis();for(let n of this.chart.data.datasets)e[U(this.chart.options.indexAxis===`x`?n.xAxisID:n.yAxisID,t)]=!0;return Object.keys(e)}_getStackIndex(e,t,n){let r=this._getStacks(e,n),i=t===void 0?-1:r.indexOf(t);return i===-1?r.length-1:i}_getRuler(){let e=this.options,t=this._cachedMeta,n=t.iScale,r=[],i,a;for(i=0,a=t.data.length;i<a;++i)r.push(n.getPixelForValue(this.getParsed(i)[n.axis],i));let o=e.barThickness;return{min:o||af(t),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:o?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){let{_cachedMeta:{vScale:t,_stacked:n,index:r},options:{base:i,minBarLength:a}}=this,o=i||0,s=this.getParsed(e),c=s._custom,l=df(c),u=s[t.axis],d=0,f=n?this.applyStack(t,s,n):u,p,m;f!==u&&(d=f-u,f=u),l&&(u=c.barStart,f=c.barEnd-c.barStart,u!==0&&Lc(u)!==Lc(c.barEnd)&&(d=0),d+=u);let h=!rc(i)&&!l?i:d,g=t.getPixelForValue(h);if(p=this.chart.getDataVisibility(e)?t.getPixelForValue(d+f):g,m=p-g,Math.abs(m)<a){m=ff(m,t,o)*a,u===o&&(g-=m/2);let e=t.getPixelForDecimal(0),i=t.getPixelForDecimal(1);g=Math.max(Math.min(g,Math.max(e,i)),Math.min(e,i)),p=g+m,n&&!l&&(s._stacks[t.axis]._visualValues[r]=t.getValueForPixel(p)-t.getValueForPixel(g))}if(g===t.getPixelForValue(o)){let e=Lc(m)*t.getLineWidthForValue(o)/2;g+=e,m-=e}return{size:m,base:g,head:p,center:p+m/2}}_calculateBarIndexPixels(e,t){let n=t.scale,r=this.options,i=r.skipNull,a=U(r.maxBarThickness,1/0),o,s,c=this._getAxisCount();if(t.grouped){let n=i?this._getStackCount(e):t.stackCount,l=r.barThickness===`flex`?sf(e,t,r,n*c):of(e,t,r,n*c),u=this.chart.options.indexAxis===`x`?this.getDataset().xAxisID:this.getDataset().yAxisID,d=this._getAxis().indexOf(U(u,this.getFirstScaleIdForIndexAxis())),f=this._getStackIndex(this.index,this._cachedMeta.stack,i?e:void 0)+d;o=l.start+l.chunk*f+l.chunk/2,s=Math.min(a,l.chunk*l.ratio)}else o=n.getPixelForValue(this.getParsed(e)[n.axis],e),s=Math.min(a,t.min*t.ratio);return{base:o-s/2,head:o+s/2,center:o,size:s}}draw(){let e=this._cachedMeta,t=e.vScale,n=e.data,r=n.length,i=0;for(;i<r;++i)this.getParsed(i)[t.axis]!==null&&!n[i].hidden&&n[i].draw(this._ctx)}};function bf(e,t,n){let r=1,i=1,a=0,o=0;if(t<kc){let s=e,c=s+t,l=Math.cos(s),u=Math.sin(s),d=Math.cos(c),f=Math.sin(c),p=(e,t,r)=>Qc(e,s,c,!0)?1:Math.max(t,t*n,r,r*n),m=(e,t,r)=>Qc(e,s,c,!0)?-1:Math.min(t,t*n,r,r*n),h=p(0,l,d),g=p(Nc,u,f),_=m(Oc,l,d),v=m(Oc+Nc,u,f);r=(h-_)/2,i=(g-v)/2,a=-(h+_)/2,o=-(g+v)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}var xf=class extends nf{static id=`doughnut`;static 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`};static descriptors={_scriptable:e=>e!==`spacing`,_indexable:e=>e!==`spacing`&&!e.startsWith(`borderDash`)&&!e.startsWith(`hoverBorderDash`)};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let t=e.data,{labels:{pointStyle:n,textAlign:r,color:i,useBorderRadius:a,borderRadius:o}}=e.legend.options;return t.labels.length&&t.datasets.length?t.labels.map((t,s)=>{let c=e.getDatasetMeta(0).controller.getStyle(s);return{text:t,fillStyle:c.backgroundColor,fontColor:i,hidden:!e.getDataVisibility(s),lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:c.borderWidth,strokeStyle:c.borderColor,textAlign:r,pointStyle:n,borderRadius:a&&(o||c.borderRadius),index:s}}):[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){let n=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=n;else{let i=e=>+n[e];if(ac(n[e])){let{key:e=`value`}=this._parsing;i=t=>+Sc(n[t],e)}let a,o;for(a=e,o=e+t;a<o;++a)r._parsed[a]=i(a)}}_getRotation(){return Gc(this.options.rotation-90)}_getCircumference(){return Gc(this.options.circumference)}_getRotationExtents(){let e=kc,t=-kc;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){let r=this.chart.getDatasetMeta(n).controller,i=r._getRotation(),a=r._getCircumference();e=Math.min(e,i),t=Math.max(t,i+a)}return{rotation:e,circumference:t-e}}update(e){let{chartArea:t}=this.chart,n=this._cachedMeta,r=n.data,i=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,a=Math.max((Math.min(t.width,t.height)-i)/2,0),o=Math.min(cc(this.options.cutout,a),1),s=this._getRingWeight(this.index),{circumference:c,rotation:l}=this._getRotationExtents(),{ratioX:u,ratioY:d,offsetX:f,offsetY:p}=bf(l,c,o),m=(t.width-i)/u,h=(t.height-i)/d,g=Math.max(Math.min(m,h)/2,0),_=lc(this.options.radius,g),v=(_-Math.max(_*o,0))/this._getVisibleDatasetWeightTotal();this.offsetX=f*_,this.offsetY=p*_,n.total=this.calculateTotal(),this.outerRadius=_-v*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-v*s,0),this.updateElements(r,0,r.length,e)}_circumference(e,t){let n=this.options,r=this._cachedMeta,i=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||r._parsed[e]===null||r.data[e].hidden?0:this.calculateCircumference(r._parsed[e]*i/kc)}updateElements(e,t,n,r){let i=r===`reset`,a=this.chart,o=a.chartArea,s=a.options.animation,c=(o.left+o.right)/2,l=(o.top+o.bottom)/2,u=i&&s.animateScale,d=u?0:this.innerRadius,f=u?0:this.outerRadius,{sharedOptions:p,includeOptions:m}=this._getSharedOptions(t,r),h=this._getRotation(),g;for(g=0;g<t;++g)h+=this._circumference(g,i);for(g=t;g<t+n;++g){let t=this._circumference(g,i),n=e[g],a={x:c+this.offsetX,y:l+this.offsetY,startAngle:h,endAngle:h+t,circumference:t,outerRadius:f,innerRadius:d};m&&(a.options=p||this.resolveDataElementOptions(g,n.active?`active`:r)),h+=t,this.updateElement(n,g,a,r)}}calculateTotal(){let e=this._cachedMeta,t=e.data,n=0,r;for(r=0;r<t.length;r++){let i=e._parsed[r];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(r)&&!t[r].hidden&&(n+=Math.abs(i))}return n}calculateCircumference(e){let t=this._cachedMeta.total;return t>0&&!isNaN(e)?Math.abs(e)/t*kc:0}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=jl(t._parsed[e],n.options.locale);return{label:r[e]||``,value:i}}getMaxBorderWidth(e){let t=0,n=this.chart,r,i,a,o,s;if(!e){for(r=0,i=n.data.datasets.length;r<i;++r)if(n.isDatasetVisible(r)){a=n.getDatasetMeta(r),e=a.data,o=a.controller;break}}if(!e)return 0;for(r=0,i=e.length;r<i;++r)s=o.resolveDataElementOptions(r),s.borderAlign!==`inner`&&(t=Math.max(t,s.borderWidth||0,s.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let n=0,r=e.length;n<r;++n){let e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max(U(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}},Sf=class extends nf{static id=`line`;static defaults={datasetElementType:`line`,dataElementType:`point`,showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:`category`},_value_:{type:`linear`}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){let t=this._cachedMeta,{dataset:n,data:r=[],_dataset:i}=t,a=this.chart._animationsDisabled,{start:o,count:s}=gl(t,r,a);this._drawStart=o,this._drawCount=s,_l(t)&&(o=0,s=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!i._decimated,n.points=r;let c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:c},e),this.updateElements(r,o,s,e)}updateElements(e,t,n,r){let i=r===`reset`,{iScale:a,vScale:o,_stacked:s,_dataset:c}=this._cachedMeta,{sharedOptions:l,includeOptions:u}=this._getSharedOptions(t,r),d=a.axis,f=o.axis,{spanGaps:p,segment:m}=this.options,h=Hc(p)?p:1/0,g=this.chart._animationsDisabled||i||r===`none`,_=t+n,v=e.length,y=t>0&&this.getParsed(t-1);for(let n=0;n<v;++n){let p=e[n],v=g?p:{};if(n<t||n>=_){v.skip=!0;continue}let b=this.getParsed(n),x=rc(b[f]),S=v[d]=a.getPixelForValue(b[d],n),C=v[f]=i||x?o.getBasePixel():o.getPixelForValue(s?this.applyStack(o,b,s):b[f],n);v.skip=isNaN(S)||isNaN(C)||x,v.stop=n>0&&Math.abs(b[d]-y[d])>h,m&&(v.parsed=b,v.raw=c.data[n]),u&&(v.options=l||this.resolveDataElementOptions(n,p.active?`active`:r)),g||this.updateElement(p,n,v,r),y=b}}getMaxOverflow(){let e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;let i=r[0].size(this.resolveDataElementOptions(0)),a=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,a)/2}draw(){let e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}},Cf=class extends xf{static id=`pie`;static defaults={cutout:0,rotation:0,circumference:360,radius:`100%`}};function wf(){throw Error(`This method is not implemented: Check that a complete date adapter is provided.`)}var Tf={_date:class e{static override(t){Object.assign(e.prototype,t)}options;constructor(e){this.options=e||{}}init(){}formats(){return wf()}parse(){return wf()}format(){return wf()}add(){return wf()}diff(){return wf()}startOf(){return wf()}endOf(){return wf()}}};function Ef(e,t,n,r){let{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(s&&t===s.axis&&t!==`r`&&o&&a.length){let o=s._reversePixels?il:rl;if(!r){let r=o(a,t,n);if(c){let{vScale:t}=i._cachedMeta,{_parsed:n}=e,a=n.slice(0,r.lo+1).reverse().findIndex(e=>!rc(e[t.axis]));r.lo-=Math.max(0,a);let o=n.slice(r.hi).findIndex(e=>!rc(e[t.axis]));r.hi+=Math.max(0,o)}return r}else if(i._sharedOptions){let e=a[0],r=typeof e.getRange==`function`&&e.getRange(t);if(r){let e=o(a,t,n-r),i=o(a,t,n+r);return{lo:e.lo,hi:i.hi}}}}return{lo:0,hi:a.length-1}}function Df(e,t,n,r,i){let a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let e=0,n=a.length;e<n;++e){let{index:n,data:s}=a[e],{lo:c,hi:l}=Ef(a[e],t,o,i);for(let e=c;e<=l;++e){let t=s[e];t.skip||r(t,n,e)}}}function Of(e){let t=e.indexOf(`x`)!==-1,n=e.indexOf(`y`)!==-1;return function(e,r){let i=t?Math.abs(e.x-r.x):0,a=n?Math.abs(e.y-r.y):0;return Math.sqrt(i**2+a**2)}}function kf(e,t,n,r,i){let a=[];return!i&&!e.isPointInArea(t)||Df(e,n,t,function(n,o,s){!i&&!Jl(n,e.chartArea,0)||n.inRange(t.x,t.y,r)&&a.push({element:n,datasetIndex:o,index:s})},!0),a}function Af(e,t,n,r){let i=[];function a(e,n,a){let{startAngle:o,endAngle:s}=e.getProps([`startAngle`,`endAngle`],r),{angle:c}=Jc(e,{x:t.x,y:t.y});Qc(c,o,s)&&i.push({element:e,datasetIndex:n,index:a})}return Df(e,n,t,a),i}function jf(e,t,n,r,i,a){let o=[],s=Of(n),c=1/0;function l(n,l,u){let d=n.inRange(t.x,t.y,i);if(r&&!d)return;let f=n.getCenterPoint(i);if(!(a||e.isPointInArea(f))&&!d)return;let p=s(t,f);p<c?(o=[{element:n,datasetIndex:l,index:u}],c=p):p===c&&o.push({element:n,datasetIndex:l,index:u})}return Df(e,n,t,l),o}function Mf(e,t,n,r,i,a){return!a&&!e.isPointInArea(t)?[]:n===`r`&&!r?Af(e,t,n,i):jf(e,t,n,r,i,a)}function Nf(e,t,n,r,i){let a=[],o=n===`x`?`inXRange`:`inYRange`,s=!1;return Df(e,n,t,(e,r,c)=>{e[o]&&e[o](t[n],i)&&(a.push({element:e,datasetIndex:r,index:c}),s||=e.inRange(t.x,t.y,i))}),r&&!s?[]:a}var Pf={evaluateInteractionItems:Df,modes:{index(e,t,n,r){let i=ed(t,e),a=n.axis||`x`,o=n.includeInvisible||!1,s=n.intersect?kf(e,i,a,r,o):Mf(e,i,a,!1,r,o),c=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(e=>{let t=s[0].index,n=e.data[t];n&&!n.skip&&c.push({element:n,datasetIndex:e.index,index:t})}),c):[]},dataset(e,t,n,r){let i=ed(t,e),a=n.axis||`xy`,o=n.includeInvisible||!1,s=n.intersect?kf(e,i,a,r,o):Mf(e,i,a,!1,r,o);if(s.length>0){let t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;e<n.length;++e)s.push({element:n[e],datasetIndex:t,index:e})}return s},point(e,t,n,r){return kf(e,ed(t,e),n.axis||`xy`,r,n.includeInvisible||!1)},nearest(e,t,n,r){let i=ed(t,e),a=n.axis||`xy`,o=n.includeInvisible||!1;return Mf(e,i,a,n.intersect,r,o)},x(e,t,n,r){return Nf(e,ed(t,e),`x`,n.intersect,r)},y(e,t,n,r){return Nf(e,ed(t,e),`y`,n.intersect,r)}}},Ff=[`left`,`top`,`right`,`bottom`];function If(e,t){return e.filter(e=>e.pos===t)}function Lf(e,t){return e.filter(e=>Ff.indexOf(e.pos)===-1&&e.box.axis===t)}function Rf(e,t){return e.sort((e,n)=>{let r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function zf(e){let t=[],n,r,i,a,o,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:a,options:{stack:o,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&a+o,stackWeight:s});return t}function Bf(e){let t={};for(let n of e){let{stack:e,pos:r,stackWeight:i}=n;if(!e||!Ff.includes(r))continue;let a=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=i}return t}function Vf(e,t){let n=Bf(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t,a,o,s;for(a=0,o=e.length;a<o;++a){s=e[a];let{fullSize:o}=s.box,c=n[s.stack],l=c&&s.stackWeight/c.weight;s.horizontal?(s.width=l?l*r:o&&t.availableWidth,s.height=i):(s.width=r,s.height=l?l*i:o&&t.availableHeight)}return n}function Hf(e){let t=zf(e),n=Rf(t.filter(e=>e.box.fullSize),!0),r=Rf(If(t,`left`),!0),i=Rf(If(t,`right`)),a=Rf(If(t,`top`),!0),o=Rf(If(t,`bottom`)),s=Lf(t,`x`),c=Lf(t,`y`);return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(c).concat(o).concat(s),chartArea:If(t,`chartArea`),vertical:r.concat(i).concat(c),horizontal:a.concat(o).concat(s)}}function Uf(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Wf(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 Gf(e,t,n,r){let{pos:i,box:a}=n,o=e.maxPadding;if(!ac(i)){n.size&&(e[i]-=n.size);let t=r[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?a.height:a.width),n.size=t.size/t.count,e[i]+=n.size}a.getPadding&&Wf(o,a.getPadding());let s=Math.max(0,t.outerWidth-Uf(o,e,`left`,`right`)),c=Math.max(0,t.outerHeight-Uf(o,e,`top`,`bottom`)),l=s!==e.w,u=c!==e.h;return e.w=s,e.h=c,n.horizontal?{same:l,other:u}:{same:u,other:l}}function Kf(e){let t=e.maxPadding;function n(n){let r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n(`top`),e.x+=n(`left`),n(`right`),n(`bottom`)}function qf(e,t){let n=t.maxPadding;function r(e){let r={left:0,top:0,right:0,bottom:0};return e.forEach(e=>{r[e]=Math.max(t[e],n[e])}),r}return r(e?[`left`,`right`]:[`top`,`bottom`])}function Jf(e,t,n,r){let i=[],a,o,s,c,l,u;for(a=0,o=e.length,l=0;a<o;++a){s=e[a],c=s.box,c.update(s.width||t.w,s.height||t.h,qf(s.horizontal,t));let{same:o,other:d}=Gf(t,n,s,r);l|=o&&i.length,u||=d,c.fullSize||i.push(s)}return l&&Jf(i,t,n,r)||u}function Yf(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function Xf(e,t,n,r){let i=n.padding,{x:a,y:o}=t;for(let s of e){let e=s.box,c=r[s.stack]||{count:1,placed:0,weight:1},l=s.stackWeight/c.weight||1;if(s.horizontal){let r=t.w*l,a=c.size||e.height;wc(c.start)&&(o=c.start),e.fullSize?Yf(e,i.left,o,n.outerWidth-i.right-i.left,a):Yf(e,t.left+c.placed,o,r,a),c.start=o,c.placed+=r,o=e.bottom}else{let r=t.h*l,o=c.size||e.width;wc(c.start)&&(a=c.start),e.fullSize?Yf(e,a,i.top,o,n.outerHeight-i.bottom-i.top):Yf(e,a,t.top+c.placed,o,r),c.start=a,c.placed+=r,a=e.right}}t.x=a,t.y=o}var Zf={addBox(e,t){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(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){let 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;let i=du(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(n-i.height,0),s=Hf(e.boxes),c=s.vertical,l=s.horizontal;dc(e.boxes,e=>{typeof e.beforeLayout==`function`&&e.beforeLayout()});let u=c.reduce((e,t)=>t.box.options&&t.box.options.display===!1?e:e+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/u,hBoxMaxHeight:o/2}),f=Object.assign({},i);Wf(f,du(r));let p=Object.assign({maxPadding:f,w:a,h:o,x:i.left,y:i.top},i),m=Vf(c.concat(l),d);Jf(s.fullSize,p,d,m),Jf(c,p,d,m),Jf(l,p,d,m)&&Jf(c,p,d,m),Kf(p),Xf(s.leftAndTop,p,d,m),p.x+=p.w,p.y+=p.h,Xf(s.rightAndBottom,p,d,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},dc(s.chartArea,t=>{let n=t.box;Object.assign(n,e.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}},Qf=class{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n||=e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}updateConfig(e){}},$f=class extends Qf{acquireContext(e){return e&&e.getContext&&e.getContext(`2d`)||null}updateConfig(e){e.options.animation=!1}},ep=`$chartjs`,tp={touchstart:`mousedown`,touchmove:`mousemove`,touchend:`mouseup`,pointerenter:`mouseenter`,pointerdown:`mousedown`,pointermove:`mousemove`,pointerup:`mouseup`,pointerleave:`mouseout`,pointerout:`mouseout`},np=e=>e===null||e===``;function rp(e,t){let n=e.style,r=e.getAttribute(`height`),i=e.getAttribute(`width`);if(e[ep]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||`block`,n.boxSizing=n.boxSizing||`border-box`,np(i)){let t=od(e,`width`);t!==void 0&&(e.width=t)}if(np(r))if(e.style.height===``)e.height=e.width/(t||2);else{let t=od(e,`height`);t!==void 0&&(e.height=t)}return e}var ip=ad?{passive:!0}:!1;function ap(e,t,n){e&&e.addEventListener(t,n,ip)}function op(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,ip)}function sp(e,t){let n=tp[e.type]||e.type,{x:r,y:i}=ed(e,t);return{type:n,chart:t,native:e,x:r===void 0?null:r,y:i===void 0?null:i}}function cp(e,t){for(let n of e)if(n===t||n.contains(t))return!0}function lp(e,t,n){let r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(let n of e)t||=cp(n.addedNodes,r),t&&=!cp(n.removedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function up(e,t,n){let r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(let n of e)t||=cp(n.removedNodes,r),t&&=!cp(n.addedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}var dp=new Map,fp=0;function pp(){let e=window.devicePixelRatio;e!==fp&&(fp=e,dp.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function mp(e,t){dp.size||window.addEventListener(`resize`,pp),dp.set(e,t)}function hp(e){dp.delete(e),dp.size||window.removeEventListener(`resize`,pp)}function gp(e,t,n){let r=e.canvas,i=r&&Ku(r);if(!i)return;let a=dl((e,t)=>{let r=i.clientWidth;n(e,t),r<i.clientWidth&&n()},window),o=new ResizeObserver(e=>{let t=e[0],n=t.contentRect.width,r=t.contentRect.height;n===0&&r===0||a(n,r)});return o.observe(i),mp(e,a),o}function _p(e,t,n){n&&n.disconnect(),t===`resize`&&hp(e)}function vp(e,t,n){let r=e.canvas,i=dl(t=>{e.ctx!==null&&n(sp(t,e))},e);return ap(r,t,i),i}var yp=class extends Qf{acquireContext(e,t){let n=e&&e.getContext&&e.getContext(`2d`);return n&&n.canvas===e?(rp(e,t),n):null}releaseContext(e){let t=e.canvas;if(!t[ep])return!1;let n=t[ep].initial;[`height`,`width`].forEach(e=>{let r=n[e];rc(r)?t.removeAttribute(e):t.setAttribute(e,r)});let r=n.style||{};return Object.keys(r).forEach(e=>{t.style[e]=r[e]}),t.width=t.width,delete t[ep],!0}addEventListener(e,t,n){this.removeEventListener(e,t);let r=e.$proxies||={};r[t]=({attach:lp,detach:up,resize:gp}[t]||vp)(e,t,n)}removeEventListener(e,t){let n=e.$proxies||={},r=n[t];r&&(({attach:_p,detach:_p,resize:_p}[t]||op)(e,t,r),n[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return rd(e,t,n,r)}isAttached(e){let t=e&&Ku(e);return!!(t&&t.isConnected)}};function bp(e){return!Gu()||typeof OffscreenCanvas<`u`&&e instanceof OffscreenCanvas?$f:yp}var xp=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){let{x:t,y:n}=this.getProps([`x`,`y`],e);return{x:t,y:n}}hasValue(){return Hc(this.x)&&Hc(this.y)}getProps(e,t){let n=this.$animations;if(!t||!n)return this;let r={};return e.forEach(e=>{r[e]=n[e]&&n[e].active()?n[e]._to:this[e]}),r}};function Sp(e,t){let n=e.options.ticks,r=Cp(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?Tp(t):[],o=a.length,s=a[0],c=a[o-1],l=[];if(o>i)return Ep(t,l,a,o/i),l;let u=wp(a,t,i);if(o>0){let e,n,r=o>1?Math.round((c-s)/(o-1)):null;for(Dp(t,l,u,rc(r)?0:s-r,s),e=0,n=o-1;e<n;e++)Dp(t,l,u,a[e],a[e+1]);return Dp(t,l,u,c,rc(r)?t.length:c+r),l}return Dp(t,l,u),l}function Cp(e){let t=e.options.offset,n=e._tickSize(),r=e._length/n+ +!t,i=e._maxLength/n;return Math.floor(Math.min(r,i))}function wp(e,t,n){let r=Op(e),i=t.length/n;if(!r)return Math.max(i,1);let a=Bc(r);for(let e=0,t=a.length-1;e<t;e++){let t=a[e];if(t>i)return t}return Math.max(i,1)}function Tp(e){let t=[],n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function Ep(e,t,n,r){let i=0,a=n[0],o;for(r=Math.ceil(r),o=0;o<e.length;o++)o===a&&(t.push(e[o]),i++,a=n[i*r])}function Dp(e,t,n,r,i){let a=U(r,0),o=Math.min(U(i,e.length),e.length),s=0,c,l,u;for(n=Math.ceil(n),i&&(c=i-r,n=c/Math.floor(c/n)),u=a;u<0;)s++,u=Math.round(a+s*n);for(l=Math.max(a,0);l<o;l++)l===u&&(t.push(e[l]),s++,u=Math.round(a+s*n))}function Op(e){let t=e.length,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}var kp=e=>e===`left`?`right`:e===`right`?`left`:e,Ap=(e,t,n)=>t===`top`||t===`left`?e[t]+n:e[t]-n,jp=(e,t)=>Math.min(t||e,e);function Mp(e,t){let n=[],r=e.length/t,i=e.length,a=0;for(;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function Np(e,t,n){let r=e.ticks.length,i=Math.min(t,r-1),a=e._startPixel,o=e._endPixel,s=1e-6,c=e.getPixelForTick(i),l;if(!(n&&(l=r===1?Math.max(c-a,o-c):t===0?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(i-1))/2,c+=i<t?l:-l,c<a-s||c>o+s)))return c}function Pp(e,t){dc(e,e=>{let n=e.gc,r=n.length/2,i;if(r>t){for(i=0;i<r;++i)delete e.data[n[i]];n.splice(0,r)}})}function Fp(e){return e.drawTicks?e.tickLength:0}function Ip(e,t){if(!e.display)return 0;let n=fu(e.font,t),r=du(e.padding);return(ic(e.text)?e.text.length:1)*n.lineHeight+r.height}function Lp(e,t){return hu(e,{scale:t,type:`scale`})}function Rp(e,t,n){return hu(e,{tick:n,index:t,type:`tick`})}function zp(e,t,n){let r=pl(e);return(n&&t!==`right`||!n&&t===`right`)&&(r=kp(r)),r}function Bp(e,t,n,r){let{top:i,left:a,bottom:o,right:s,chart:c}=e,{chartArea:l,scales:u}=c,d=0,f,p,m,h=o-i,g=s-a;if(e.isHorizontal()){if(p=ml(r,a,s),ac(n)){let e=Object.keys(n)[0],r=n[e];m=u[e].getPixelForValue(r)+h-t}else m=n===`center`?(l.bottom+l.top)/2+h-t:Ap(e,n,t);f=s-a}else{if(ac(n)){let e=Object.keys(n)[0],r=n[e];p=u[e].getPixelForValue(r)-g+t}else p=n===`center`?(l.left+l.right)/2-g+t:Ap(e,n,t);m=ml(r,o,i),d=n===`left`?-Nc:Nc}return{titleX:p,titleY:m,maxWidth:f,rotation:d}}var Vp=class e extends xp{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.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(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:r}=this;return e=sc(e,1/0),t=sc(t,-1/0),n=sc(n,1/0),r=sc(r,-1/0),{min:sc(e,n),max:sc(t,r),minDefined:oc(e),maxDefined:oc(t)}}getMinMax(e){let{min:t,max:n,minDefined:r,maxDefined:i}=this.getUserBounds(),a;if(r&&i)return{min:t,max:n};let o=this.getMatchingVisibleMetas();for(let s=0,c=o.length;s<c;++s)a=o[s].controller.getMinMax(this,e),r||(t=Math.min(t,a.min)),i||(n=Math.max(n,a.max));return t=i&&t>n?n:t,n=r&&t>n?t:n,{min:sc(t,sc(n,t)),max:sc(n,sc(t,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||=this._computeLabelItems(e)}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){uc(this.options.beforeUpdate,[this])}update(e,t,n){let{beginAtZero:r,grace:i,ticks:a}=this.options,o=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||=(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=mu(this,i,r),!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let s=o<this.ticks.length;this._convertTicksToLabels(s?Mp(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source===`auto`)&&(this.ticks=Sp(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,t,n;this.isHorizontal()?(t=this.left,n=this.right):(t=this.top,n=this.bottom,e=!e),this._startPixel=t,this._endPixel=n,this._reversePixels=e,this._length=n-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){uc(this.options.afterUpdate,[this])}beforeSetDimensions(){uc(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(){uc(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),uc(this.options[e],[this])}beforeDataLimits(){this._callHooks(`beforeDataLimits`)}determineDataLimits(){}afterDataLimits(){this._callHooks(`afterDataLimits`)}beforeBuildTicks(){this._callHooks(`beforeBuildTicks`)}buildTicks(){return[]}afterBuildTicks(){this._callHooks(`afterBuildTicks`)}beforeTickToLabelConversion(){uc(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){let t=this.options.ticks,n,r,i;for(n=0,r=e.length;n<r;n++)i=e[n],i.label=uc(t.callback,[i.value,n,e],this)}afterTickToLabelConversion(){uc(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){uc(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let e=this.options,t=e.ticks,n=jp(this.ticks.length,e.ticks.maxTicksLimit),r=t.minRotation||0,i=t.maxRotation,a=r,o,s,c;if(!this._isVisible()||!t.display||r>=i||n<=1||!this.isHorizontal()){this.labelRotation=r;return}let l=this._getLabelSizes(),u=l.widest.width,d=l.highest.height,f=$c(this.chart.width-u,0,this.maxWidth);o=e.offset?this.maxWidth/n:f/(n-1),u+6>o&&(o=f/(n-(e.offset?.5:1)),s=this.maxHeight-Fp(e.grid)-t.padding-Ip(e.title,this.chart.options.font),c=Math.sqrt(u*u+d*d),a=Kc(Math.min(Math.asin($c((l.highest.height+6)/o,-1,1)),Math.asin($c(s/c,-1,1))-Math.asin($c(d/c,-1,1)))),a=Math.max(r,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){uc(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){uc(this.options.beforeFit,[this])}fit(){let e={width:0,height:0},{chart:t,options:{ticks:n,title:r,grid:i}}=this,a=this._isVisible(),o=this.isHorizontal();if(a){let a=Ip(r,t.options.font);if(o?(e.width=this.maxWidth,e.height=Fp(i)+a):(e.height=this.maxHeight,e.width=Fp(i)+a),n.display&&this.ticks.length){let{first:t,last:r,widest:i,highest:a}=this._getLabelSizes(),s=n.padding*2,c=Gc(this.labelRotation),l=Math.cos(c),u=Math.sin(c);if(o){let t=n.mirror?0:u*i.width+l*a.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{let t=n.mirror?0:l*i.width+u*a.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,r,u,l)}}this._handleMargins(),o?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,r){let{ticks:{align:i,padding:a},position:o}=this.options,s=this.labelRotation!==0,c=o!==`top`&&this.axis===`x`;if(this.isHorizontal()){let o=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1),u=0,d=0;s?c?(u=r*e.width,d=n*t.height):(u=n*e.height,d=r*t.width):i===`start`?d=t.width:i===`end`?u=e.width:i!==`inner`&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-o+a)*this.width/(this.width-o),0),this.paddingRight=Math.max((d-l+a)*this.width/(this.width-l),0)}else{let n=t.height/2,r=e.height/2;i===`start`?(n=0,r=e.height):i===`end`&&(n=t.height,r=0),this.paddingTop=n+a,this.paddingBottom=r+a}}_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(){uc(this.options.afterFit,[this])}isHorizontal(){let{axis:e,position:t}=this.options;return t===`top`||t===`bottom`||e===`x`}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let t,n;for(t=0,n=e.length;t<n;t++)rc(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){let t=this.options.ticks.sampleSize,n=this.ticks;t<n.length&&(n=Mp(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){let{ctx:r,_longestTextCache:i}=this,a=[],o=[],s=Math.floor(t/jp(t,n)),c=0,l=0,u,d,f,p,m,h,g,_,v,y,b;for(u=0;u<t;u+=s){if(p=e[u].label,m=this._resolveTickFontOptions(u),r.font=h=m.string,g=i[h]=i[h]||{data:{},gc:[]},_=m.lineHeight,v=y=0,!rc(p)&&!ic(p))v=Hl(r,g.data,g.gc,v,p),y=_;else if(ic(p))for(d=0,f=p.length;d<f;++d)b=p[d],!rc(b)&&!ic(b)&&(v=Hl(r,g.data,g.gc,v,b),y+=_);a.push(v),o.push(y),c=Math.max(v,c),l=Math.max(y,l)}Pp(i,t);let x=a.indexOf(c),S=o.indexOf(l),C=e=>({width:a[e]||0,height:o[e]||0});return{first:C(0),last:C(t-1),widest:C(x),highest:C(S),widths:a,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){let t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);let t=this._startPixel+e*this._length;return el(this._alignToPixels?Wl(this.chart,t,0):t)}getDecimalForPixel(e){let t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){let t=this.ticks||[];if(e>=0&&e<t.length){let n=t[e];return n.$context||=Rp(this.getContext(),e,n)}return this.$context||=Lp(this.chart.getContext(),this)}_tickSize(){let e=this.options.ticks,t=Gc(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),i=this._getLabelSizes(),a=e.autoSkipPadding||0,o=i?i.widest.width+a:0,s=i?i.highest.height+a:0;return this.isHorizontal()?s*n>o*r?o/n:s/r:s*r<o*n?s/n:o/r}_isVisible(){let e=this.options.display;return e===`auto`?this.getMatchingVisibleMetas().length>0:!!e}_computeGridLineItems(e){let t=this.axis,n=this.chart,r=this.options,{grid:i,position:a,border:o}=r,s=i.offset,c=this.isHorizontal(),l=this.ticks.length+ +!!s,u=Fp(i),d=[],f=o.setContext(this.getContext()),p=f.display?f.width:0,m=p/2,h=function(e){return Wl(n,e,p)},g,_,v,y,b,x,S,C,w,T,E,D;if(a===`top`)g=h(this.bottom),x=this.bottom-u,C=g-m,T=h(e.top)+m,D=e.bottom;else if(a===`bottom`)g=h(this.top),T=e.top,D=h(e.bottom)-m,x=g+m,C=this.top+u;else if(a===`left`)g=h(this.right),b=this.right-u,S=g-m,w=h(e.left)+m,E=e.right;else if(a===`right`)g=h(this.left),w=e.left,E=h(e.right)-m,b=g+m,S=this.left+u;else if(t===`x`){if(a===`center`)g=h((e.top+e.bottom)/2+.5);else if(ac(a)){let e=Object.keys(a)[0],t=a[e];g=h(this.chart.scales[e].getPixelForValue(t))}T=e.top,D=e.bottom,x=g+m,C=x+u}else if(t===`y`){if(a===`center`)g=h((e.left+e.right)/2);else if(ac(a)){let e=Object.keys(a)[0],t=a[e];g=h(this.chart.scales[e].getPixelForValue(t))}b=g-m,S=b-u,w=e.left,E=e.right}let O=U(r.ticks.maxTicksLimit,l),k=Math.max(1,Math.ceil(l/O));for(_=0;_<l;_+=k){let e=this.getContext(_),t=i.setContext(e),r=o.setContext(e),a=t.lineWidth,l=t.color,u=r.dash||[],f=r.dashOffset,p=t.tickWidth,m=t.tickColor,h=t.tickBorderDash||[],g=t.tickBorderDashOffset;v=Np(this,_,s),v!==void 0&&(y=Wl(n,v,a),c?b=S=w=E=y:x=C=T=D=y,d.push({tx1:b,ty1:x,tx2:S,ty2:C,x1:w,y1:T,x2:E,y2:D,width:a,color:l,borderDash:u,borderDashOffset:f,tickWidth:p,tickColor:m,tickBorderDash:h,tickBorderDashOffset:g}))}return this._ticksLength=l,this._borderValue=g,d}_computeLabelItems(e){let t=this.axis,n=this.options,{position:r,ticks:i}=n,a=this.isHorizontal(),o=this.ticks,{align:s,crossAlign:c,padding:l,mirror:u}=i,d=Fp(n.grid),f=d+l,p=u?-l:f,m=-Gc(this.labelRotation),h=[],g,_,v,y,b,x,S,C,w,T,E,D,O=`middle`;if(r===`top`)x=this.bottom-p,S=this._getXAxisLabelAlignment();else if(r===`bottom`)x=this.top+p,S=this._getXAxisLabelAlignment();else if(r===`left`){let e=this._getYAxisLabelAlignment(d);S=e.textAlign,b=e.x}else if(r===`right`){let e=this._getYAxisLabelAlignment(d);S=e.textAlign,b=e.x}else if(t===`x`){if(r===`center`)x=(e.top+e.bottom)/2+f;else if(ac(r)){let e=Object.keys(r)[0],t=r[e];x=this.chart.scales[e].getPixelForValue(t)+f}S=this._getXAxisLabelAlignment()}else if(t===`y`){if(r===`center`)b=(e.left+e.right)/2-f;else if(ac(r)){let e=Object.keys(r)[0],t=r[e];b=this.chart.scales[e].getPixelForValue(t)}S=this._getYAxisLabelAlignment(d).textAlign}t===`y`&&(s===`start`?O=`top`:s===`end`&&(O=`bottom`));let k=this._getLabelSizes();for(g=0,_=o.length;g<_;++g){v=o[g],y=v.label;let e=i.setContext(this.getContext(g));C=this.getPixelForTick(g)+i.labelOffset,w=this._resolveTickFontOptions(g),T=w.lineHeight,E=ic(y)?y.length:1;let t=E/2,n=e.color,s=e.textStrokeColor,l=e.textStrokeWidth,d=S;a?(b=C,S===`inner`&&(d=g===_-1?this.options.reverse?`left`:`right`:g===0?this.options.reverse?`right`:`left`:`center`),D=r===`top`?c===`near`||m!==0?-E*T+T/2:c===`center`?-k.highest.height/2-t*T+T:-k.highest.height+T/2:c===`near`||m!==0?T/2:c===`center`?k.highest.height/2-t*T:k.highest.height-E*T,u&&(D*=-1),m!==0&&!e.showLabelBackdrop&&(b+=T/2*Math.sin(m))):(x=C,D=(1-E)*T/2);let f;if(e.showLabelBackdrop){let t=du(e.backdropPadding),n=k.heights[g],r=k.widths[g],i=D-t.top,a=0-t.left;switch(O){case`middle`:i-=n/2;break;case`bottom`:i-=n;break}switch(S){case`center`:a-=r/2;break;case`right`:a-=r;break;case`inner`:g===_-1?a-=r:g>0&&(a-=r/2);break}f={left:a,top:i,width:r+t.width,height:n+t.height,color:e.backdropColor}}h.push({label:y,font:w,textOffset:D,options:{rotation:m,color:n,strokeColor:s,strokeWidth:l,textAlign:d,textBaseline:O,translation:[b,x],backdrop:f}})}return h}_getXAxisLabelAlignment(){let{position:e,ticks:t}=this.options;if(-Gc(this.labelRotation))return e===`top`?`left`:`right`;let n=`center`;return t.align===`start`?n=`left`:t.align===`end`?n=`right`:t.align===`inner`&&(n=`inner`),n}_getYAxisLabelAlignment(e){let{position:t,ticks:{crossAlign:n,mirror:r,padding:i}}=this.options,a=this._getLabelSizes(),o=e+i,s=a.widest.width,c,l;return t===`left`?r?(l=this.right+i,n===`near`?c=`left`:n===`center`?(c=`center`,l+=s/2):(c=`right`,l+=s)):(l=this.right-o,n===`near`?c=`right`:n===`center`?(c=`center`,l-=s/2):(c=`left`,l=this.left)):t===`right`?r?(l=this.left+i,n===`near`?c=`right`:n===`center`?(c=`center`,l-=s/2):(c=`left`,l-=s)):(l=this.left+o,n===`near`?c=`left`:n===`center`?(c=`center`,l+=s/2):(c=`right`,l=this.right)):c=`right`,{textAlign:c,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;let e=this.chart,t=this.options.position;if(t===`left`||t===`right`)return{top:0,left:this.left,bottom:e.height,right:this.right};if(t===`top`||t===`bottom`)return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){let{ctx:e,options:{backgroundColor:t},left:n,top:r,width:i,height:a}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,i,a),e.restore())}getLineWidthForValue(e){let t=this.options.grid;if(!this._isVisible()||!t.display)return 0;let n=this.ticks.findIndex(t=>t.value===e);return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){let t=this.options.grid,n=this.ctx,r=this._gridLineItems||=this._computeGridLineItems(e),i,a,o=(e,t,r)=>{!r.width||!r.color||(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(i=0,a=r.length;i<a;++i){let e=r[i];t.drawOnChartArea&&o({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&o({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){let{chart:e,ctx:t,options:{border:n,grid:r}}=this,i=n.setContext(this.getContext()),a=n.display?i.width:0;if(!a)return;let o=r.setContext(this.getContext(0)).lineWidth,s=this._borderValue,c,l,u,d;this.isHorizontal()?(c=Wl(e,this.left,a)-a/2,l=Wl(e,this.right,o)+o/2,u=d=s):(u=Wl(e,this.top,a)-a/2,d=Wl(e,this.bottom,o)+o/2,c=l=s),t.save(),t.lineWidth=i.width,t.strokeStyle=i.color,t.beginPath(),t.moveTo(c,u),t.lineTo(l,d),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;let t=this.ctx,n=this._computeLabelArea();n&&Yl(t,n);let r=this.getLabelItems(e);for(let e of r){let n=e.options,r=e.font,i=e.label,a=e.textOffset;nu(t,i,0,a,r,n)}n&&Xl(t)}drawTitle(){let{ctx:e,options:{position:t,title:n,reverse:r}}=this;if(!n.display)return;let i=fu(n.font),a=du(n.padding),o=n.align,s=i.lineHeight/2;t===`bottom`||t===`center`||ac(t)?(s+=a.bottom,ic(n.text)&&(s+=i.lineHeight*(n.text.length-1))):s+=a.top;let{titleX:c,titleY:l,maxWidth:u,rotation:d}=Bp(this,s,t,o);nu(e,n.text,0,0,i,{color:n.color,maxWidth:u,rotation:d,textAlign:zp(o,t,r),textBaseline:`middle`,translation:[c,l]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){let t=this.options,n=t.ticks&&t.ticks.z||0,r=U(t.grid&&t.grid.z,-1),i=U(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==e.prototype.draw?[{z:n,draw:e=>{this.draw(e)}}]:[{z:r,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:e=>{this.drawLabels(e)}}]}getMatchingVisibleMetas(e){let t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+`AxisID`,r=[],i,a;for(i=0,a=t.length;i<a;++i){let a=t[i];a[n]===this.id&&(!e||a.type===e)&&r.push(a)}return r}_resolveTickFontOptions(e){return fu(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){let e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}},Hp=class{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){let t=Object.getPrototypeOf(e),n;Gp(t)&&(n=this.register(t));let r=this.items,i=e.id,a=this.scope+`.`+i;if(!i)throw Error(`class does not have id: `+e);return i in r?a:(r[i]=e,Up(e,a,n),this.override&&Bl.override(e.id,e.overrides),a)}get(e){return this.items[e]}unregister(e){let t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in Bl[r]&&(delete Bl[r][n],this.override&&delete Il[n])}};function Up(e,t,n){let r=gc(Object.create(null),[n?Bl.get(n):{},Bl.get(t),e.defaults]);Bl.set(t,r),e.defaultRoutes&&Wp(t,e.defaultRoutes),e.descriptors&&Bl.describe(t,e.descriptors)}function Wp(e,t){Object.keys(t).forEach(n=>{let r=n.split(`.`),i=r.pop(),a=[e].concat(r).join(`.`),o=t[n].split(`.`),s=o.pop(),c=o.join(`.`);Bl.route(a,i,c,s)})}function Gp(e){return`id`in e&&`defaults`in e}var Kp=new class{constructor(){this.controllers=new Hp(nf,`datasets`,!0),this.elements=new Hp(xp,`elements`),this.plugins=new Hp(Object,`plugins`),this.scales=new Hp(Vp,`scales`),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each(`register`,e)}remove(...e){this._each(`unregister`,e)}addControllers(...e){this._each(`register`,e,this.controllers)}addElements(...e){this._each(`register`,e,this.elements)}addPlugins(...e){this._each(`register`,e,this.plugins)}addScales(...e){this._each(`register`,e,this.scales)}getController(e){return this._get(e,this.controllers,`controller`)}getElement(e){return this._get(e,this.elements,`element`)}getPlugin(e){return this._get(e,this.plugins,`plugin`)}getScale(e){return this._get(e,this.scales,`scale`)}removeControllers(...e){this._each(`unregister`,e,this.controllers)}removeElements(...e){this._each(`unregister`,e,this.elements)}removePlugins(...e){this._each(`unregister`,e,this.plugins)}removeScales(...e){this._each(`unregister`,e,this.scales)}_each(e,t,n){[...t].forEach(t=>{let r=n||this._getRegistryForType(t);n||r.isForType(t)||r===this.plugins&&t.id?this._exec(e,r,t):dc(t,t=>{let r=n||this._getRegistryForType(t);this._exec(e,r,t)})})}_exec(e,t,n){let r=Cc(e);uc(n[`before`+r],[],n),t[e](n),uc(n[`after`+r],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){let n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){let r=t.get(e);if(r===void 0)throw Error(`"`+e+`" is not a registered `+n+`.`);return r}},qp=class{constructor(){this._init=void 0}notify(e,t,n,r){if(t===`beforeInit`&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,`install`)),this._init===void 0)return;let i=r?this._descriptors(e).filter(r):this._descriptors(e),a=this._notify(i,e,t,n);return t===`afterDestroy`&&(this._notify(i,e,`stop`),this._notify(this._init,e,`uninstall`),this._init=void 0),a}_notify(e,t,n,r){r||={};for(let i of e){let e=i.plugin,a=e[n];if(uc(a,[t,r,i.options],e)===!1&&r.cancelable)return!1}return!0}invalidate(){rc(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;let t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){let n=e&&e.config,r=U(n.options&&n.options.plugins,{}),i=Jp(n);return r===!1&&!t?[]:Xp(e,i,r,t)}_notifyStateChanges(e){let t=this._oldCache||[],n=this._cache,r=(e,t)=>e.filter(e=>!t.some(t=>e.plugin.id===t.plugin.id));this._notify(r(t,n),e,`stop`),this._notify(r(n,t),e,`start`)}};function Jp(e){let t={},n=[],r=Object.keys(Kp.plugins.items);for(let e=0;e<r.length;e++)n.push(Kp.getPlugin(r[e]));let i=e.plugins||[];for(let e=0;e<i.length;e++){let r=i[e];n.indexOf(r)===-1&&(n.push(r),t[r.id]=!0)}return{plugins:n,localIds:t}}function Yp(e,t){return!t&&e===!1?null:e===!0?{}:e}function Xp(e,{plugins:t,localIds:n},r,i){let a=[],o=e.getContext();for(let s of t){let t=s.id,c=Yp(r[t],i);c!==null&&a.push({plugin:s,options:Zp(e.config,{plugin:s,local:n[t]},c,o)})}return a}function Zp(e,{plugin:t,local:n},r,i){let a=e.pluginScopeKeys(t),o=e.getOptionScopes(r,a);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,i,[``],{scriptable:!1,indexable:!1,allKeys:!0})}function Qp(e,t){let n=Bl.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||`x`}function $p(e,t){let n=e;return e===`_index_`?n=t:e===`_value_`&&(n=t===`x`?`y`:`x`),n}function em(e,t){return e===t?`_index_`:`_value_`}function tm(e){if(e===`x`||e===`y`||e===`r`)return e}function nm(e){if(e===`top`||e===`bottom`)return`x`;if(e===`left`||e===`right`)return`y`}function rm(e,...t){if(tm(e))return e;for(let n of t){let t=n.axis||nm(n.position)||e.length>1&&tm(e[0].toLowerCase());if(t)return t}throw Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function im(e,t,n){if(n[t+`AxisID`]===e)return{axis:t}}function am(e,t){if(t.data&&t.data.datasets){let n=t.data.datasets.filter(t=>t.xAxisID===e||t.yAxisID===e);if(n.length)return im(e,`x`,n[0])||im(e,`y`,n[0])}return{}}function om(e,t){let n=Il[e.type]||{scales:{}},r=t.scales||{},i=Qp(e.type,t),a=Object.create(null);return Object.keys(r).forEach(t=>{let o=r[t];if(!ac(o))return console.error(`Invalid scale configuration for scale: ${t}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);let s=rm(t,o,am(t,e),Bl.scales[o.type]),c=em(s,i),l=n.scales||{};a[t]=_c(Object.create(null),[{axis:s},o,l[s],l[c]])}),e.data.datasets.forEach(n=>{let i=n.type||e.type,o=n.indexAxis||Qp(i,t),s=(Il[i]||{}).scales||{};Object.keys(s).forEach(e=>{let t=$p(e,o),i=n[t+`AxisID`]||t;a[i]=a[i]||Object.create(null),_c(a[i],[{axis:t},r[i],s[e]])})}),Object.keys(a).forEach(e=>{let t=a[e];_c(t,[Bl.scales[t.type],Bl.scale])}),a}function sm(e){let t=e.options||={};t.plugins=U(t.plugins,{}),t.scales=om(e,t)}function cm(e){return e||={},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function lm(e){return e||={},e.data=cm(e.data),sm(e),e}var um=new Map,dm=new Set;function fm(e,t){let n=um.get(e);return n||(n=t(),um.set(e,n),dm.add(n)),n}var pm=(e,t,n)=>{let r=Sc(t,n);r!==void 0&&e.add(r)},mm=class{constructor(e){this._config=lm(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=cm(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){let e=this._config;this.clearCache(),sm(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return fm(e,()=>[[`datasets.${e}`,``]])}datasetAnimationScopeKeys(e,t){return fm(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,``]])}datasetElementScopeKeys(e,t){return fm(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,``]])}pluginScopeKeys(e){let t=e.id,n=this.type;return fm(`${n}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){let n=this._scopeCache,r=n.get(e);return(!r||t)&&(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){let{options:r,type:i}=this,a=this._cachedScopes(e,n),o=a.get(t);if(o)return o;let s=new Set;t.forEach(t=>{e&&(s.add(e),t.forEach(t=>pm(s,e,t))),t.forEach(e=>pm(s,r,e)),t.forEach(e=>pm(s,Il[i]||{},e)),t.forEach(e=>pm(s,Bl,e)),t.forEach(e=>pm(s,Ll,e))});let c=Array.from(s);return c.length===0&&c.push(Object.create(null)),dm.has(t)&&a.set(t,c),c}chartOptionScopes(){let{options:e,type:t}=this;return[e,Il[t]||{},Bl.datasets[t]||{},{type:t},Bl,Ll]}resolveNamedOptions(e,t,n,r=[``]){let i={$shared:!0},{resolver:a,subPrefixes:o}=hm(this._resolverCache,e,r),s=a;if(_m(a,t)){i.$shared=!1,n=Tc(n)?n():n;let t=this.createResolver(e,n,o);s=_u(a,n,t)}for(let e of t)i[e]=s[e];return i}createResolver(e,t,n=[``],r){let{resolver:i}=hm(this._resolverCache,e,n);return ac(t)?_u(i,t,void 0,r):i}};function hm(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));let i=n.join(),a=r.get(i);return a||(a={resolver:gu(t,n),subPrefixes:n.filter(e=>!e.toLowerCase().includes(`hover`))},r.set(i,a)),a}var gm=e=>ac(e)&&Object.getOwnPropertyNames(e).some(t=>Tc(e[t]));function _m(e,t){let{isScriptable:n,isIndexable:r}=vu(e);for(let i of t){let t=n(i),a=r(i),o=(a||t)&&e[i];if(t&&(Tc(o)||gm(o))||a&&ic(o))return!0}return!1}var vm=`4.5.1`,ym=[`top`,`bottom`,`left`,`right`,`chartArea`];function bm(e,t){return e===`top`||e===`bottom`||ym.indexOf(e)===-1&&t===`x`}function xm(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Sm(e){let t=e.chart,n=t.options.animation;t.notifyPlugins(`afterRender`),uc(n&&n.onComplete,[e],t)}function Cm(e){let t=e.chart,n=t.options.animation;uc(n&&n.onProgress,[e],t)}function wm(e){return Gu()&&typeof e==`string`?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var Tm={},Em=e=>{let t=wm(e);return Object.values(Tm).filter(e=>e.canvas===t).pop()};function Dm(e,t,n){let r=Object.keys(e);for(let i of r){let r=+i;if(r>=t){let a=e[i];delete e[i],(n>0||r>t)&&(e[r+n]=a)}}}function Om(e,t,n,r){return!n||e.type===`mouseout`?null:r?t:e}var km=class{static defaults=Bl;static instances=Tm;static overrides=Il;static registry=Kp;static version=vm;static getChart=Em;static register(...e){Kp.add(...e),Am()}static unregister(...e){Kp.remove(...e),Am()}constructor(e,t){let n=this.config=new mm(t),r=wm(e),i=Em(r);if(i)throw 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.`);let a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||(bp(r))),this.platform.updateConfig(n);let o=this.platform.acquireContext(r,a.aspectRatio),s=o&&o.canvas,c=s&&s.height,l=s&&s.width;if(this.id=nc(),this.ctx=o,this.canvas=s,this.width=l,this.height=c,this._options=a,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 qp,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=fl(e=>this.update(e),a.resizeDelay||0),this._dataChanges=[],Tm[this.id]=this,!o||!s){console.error(`Failed to create chart: can't acquire context from the given item`);return}Ad.listen(this,`complete`,Sm),Ad.listen(this,`progress`,Cm),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:i}=this;return rc(e)?t&&i?i:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Kp}_initialize(){return this.notifyPlugins(`beforeInit`),this.options.responsive?this.resize():id(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins(`afterInit`),this}clear(){return Gl(this.canvas,this.ctx),this}stop(){return Ad.stop(this),this}resize(e,t){Ad.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){let n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,e,t,i),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?`resize`:`attach`;this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,id(this,o,!0)&&(this.notifyPlugins(`resize`,{size:a}),uc(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){dc(this.options.scales||{},(e,t)=>{e.id=t})}buildOrUpdateScales(){let e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce((e,t)=>(e[t]=!1,e),{}),i=[];t&&(i=i.concat(Object.keys(t).map(e=>{let n=t[e],r=rm(e,n),i=r===`r`,a=r===`x`;return{options:n,dposition:i?`chartArea`:a?`bottom`:`left`,dtype:i?`radialLinear`:a?`category`:`linear`}}))),dc(i,t=>{let i=t.options,a=i.id,o=rm(a,i),s=U(i.type,t.dtype);(i.position===void 0||bm(i.position,o)!==bm(t.dposition))&&(i.position=t.dposition),r[a]=!0;let c=null;a in n&&n[a].type===s?c=n[a]:(c=new(Kp.getScale(s))({id:a,type:s,ctx:this.ctx,chart:this}),n[c.id]=c),c.init(i,e)}),dc(r,(e,t)=>{e||delete n[t]}),dc(n,e=>{Zf.configure(this,e,e.options),Zf.addBox(this,e)})}_updateMetasets(){let e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((e,t)=>e.index-t.index),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(xm(`order`,`index`))}_removeUnreferencedMetasets(){let{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach((e,n)=>{t.filter(t=>t===e._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){let e=[],t=this.data.datasets,n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n<r;n++){let r=t[n],i=this.getDatasetMeta(n),a=r.type||this.config.type;if(i.type&&i.type!==a&&(this._destroyDatasetMeta(n),i=this.getDatasetMeta(n)),i.type=a,i.indexAxis=r.indexAxis||Qp(a,this.options),i.order=r.order||0,i.index=n,i.label=``+r.label,i.visible=this.isDatasetVisible(n),i.controller)i.controller.updateIndex(n),i.controller.linkScales();else{let t=Kp.getController(a),{datasetElementType:r,dataElementType:o}=Bl.datasets[a];Object.assign(t,{dataElementType:Kp.getElement(o),datasetElementType:r&&Kp.getElement(r)}),i.controller=new t(this,n),e.push(i.controller)}}return this._updateMetasets(),e}_resetElements(){dc(this.data.datasets,(e,t)=>{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins(`reset`)}update(e){let t=this.config;t.update();let n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins(`beforeUpdate`,{mode:e,cancelable:!0})===!1)return;let i=this.buildOrUpdateControllers();this.notifyPlugins(`beforeElementsUpdate`);let a=0;for(let e=0,t=this.data.datasets.length;e<t;e++){let{controller:t}=this.getDatasetMeta(e),n=!r&&i.indexOf(t)===-1;t.buildOrUpdateElements(n),a=Math.max(+t.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),r||dc(i,e=>{e.reset()}),this._updateDatasets(e),this.notifyPlugins(`afterUpdate`,{mode:e}),this._layers.sort(xm(`z`,`_idx`));let{_active:o,_lastEvent:s}=this;s?this._eventHandler(s,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){dc(this.scales,e=>{Zf.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options;(!Ec(new Set(Object.keys(this._listeners)),new Set(e.events))||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(let{method:n,start:r,count:i}of t)Dm(e,r,n===`_removeElements`?-i:i)}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let t=this.data.datasets.length,n=t=>new Set(e.filter(e=>e[0]===t).map((e,t)=>t+`,`+e.splice(1).join(`,`))),r=n(0);for(let e=1;e<t;e++)if(!Ec(r,n(e)))return;return Array.from(r).map(e=>e.split(`,`)).map(e=>({method:e[1],start:+e[2],count:+e[3]}))}_updateLayout(e){if(this.notifyPlugins(`beforeLayout`,{cancelable:!0})===!1)return;Zf.update(this,this.width,this.height,e);let t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],dc(this.boxes,e=>{n&&e.position===`chartArea`||(e.configure&&e.configure(),this._layers.push(...e._layers()))},this),this._layers.forEach((e,t)=>{e._idx=t}),this.notifyPlugins(`afterLayout`)}_updateDatasets(e){if(this.notifyPlugins(`beforeDatasetsUpdate`,{mode:e,cancelable:!0})!==!1){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,Tc(e)?e({datasetIndex:t}):e);this.notifyPlugins(`afterDatasetsUpdate`,{mode:e})}}_updateDataset(e,t){let n=this.getDatasetMeta(e),r={meta:n,index:e,mode:t,cancelable:!0};this.notifyPlugins(`beforeDatasetUpdate`,r)!==!1&&(n.controller._update(t),r.cancelable=!1,this.notifyPlugins(`afterDatasetUpdate`,r))}render(){this.notifyPlugins(`beforeRender`,{cancelable:!0})!==!1&&(Ad.has(this)?this.attached&&!Ad.running(this)&&Ad.start(this):(this.draw(),Sm({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){let{width:e,height:t}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(e,t)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins(`beforeDraw`,{cancelable:!0})===!1)return;let t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins(`afterDraw`)}_getSortedDatasetMetas(e){let t=this._sortedMetasets,n=[],r,i;for(r=0,i=t.length;r<i;++r){let i=t[r];(!e||i.visible)&&n.push(i)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins(`beforeDatasetsDraw`,{cancelable:!0})===!1)return;let e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins(`afterDatasetsDraw`)}_drawDataset(e){let t=this.ctx,n={meta:e,index:e.index,cancelable:!0},r=kd(this,e);this.notifyPlugins(`beforeDatasetDraw`,n)!==!1&&(r&&Yl(t,r),e.controller.draw(),r&&Xl(t),n.cancelable=!1,this.notifyPlugins(`afterDatasetDraw`,n))}isPointInArea(e){return Jl(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){let i=Pf.modes[t];return typeof i==`function`?i(this,e,n,r):[]}getDatasetMeta(e){let t=this.data.datasets[e],n=this._metasets,r=n.filter(e=>e&&e._dataset===t).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||=hu(null,{chart:this,type:`chart`})}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let t=this.data.datasets[e];if(!t)return!1;let n=this.getDatasetMeta(e);return typeof n.hidden==`boolean`?!n.hidden:!t.hidden}setDatasetVisibility(e,t){let n=this.getDatasetMeta(e);n.hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){let r=n?`show`:`hide`,i=this.getDatasetMeta(e),a=i.controller._resolveAnimations(void 0,r);wc(t)?(i.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),a.update(i,{visible:n}),this.update(t=>t.datasetIndex===e?r:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){let t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),Ad.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins(`beforeDestroy`);let{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Gl(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete Tm[this.id],this.notifyPlugins(`afterDestroy`)}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){let e=this._listeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};dc(this.options.events,e=>n(e,r))}bindResponsiveEvents(){this._responsiveListeners||={};let e=this._responsiveListeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(n,r)=>{e[n]&&(t.removeEventListener(this,n,r),delete e[n])},i=(e,t)=>{this.canvas&&this.resize(e,t)},a,o=()=>{r(`attach`,o),this.attached=!0,this.resize(),n(`resize`,i),n(`detach`,a)};a=()=>{this.attached=!1,r(`resize`,i),this._stop(),this._resize(0,0),n(`attach`,o)},t.isAttached(this.canvas)?o():a()}unbindEvents(){dc(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},dc(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){let r=n?`set`:`remove`,i,a,o,s;for(t===`dataset`&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller[`_`+r+`DatasetHoverStyle`]()),o=0,s=e.length;o<s;++o){a=e[o];let t=a&&this.getDatasetMeta(a.datasetIndex).controller;t&&t[r+`HoverStyle`](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){let t=this._active||[],n=e.map(({datasetIndex:e,index:t})=>{let n=this.getDatasetMeta(e);if(!n)throw Error(`No dataset found at index `+e);return{datasetIndex:e,element:n.data[t],index:t}});fc(n,t)||(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return this._plugins._cache.filter(t=>t.plugin.id===e).length===1}_updateHoverStyles(e,t,n){let r=this.options.hover,i=(e,t)=>e.filter(e=>!t.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),a=i(t,e),o=n?e:i(e,t);a.length&&this.updateHoverStyle(a,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}_eventHandler(e,t){let n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins(`beforeEvent`,n,r)===!1)return;let i=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins(`afterEvent`,n,r),(i||n.changed)&&this.render(),this}_handleEvent(e,t,n){let{_active:r=[],options:i}=this,a=t,o=this._getActiveElements(e,r,n,a),s=Dc(e),c=Om(e,this._lastEvent,n,s);n&&(this._lastEvent=null,uc(i.onHover,[e,o,this],this),s&&uc(i.onClick,[e,o,this],this));let l=!fc(o,r);return(l||t)&&(this._active=o,this._updateHoverStyles(o,r,t)),this._lastEvent=c,l}_getActiveElements(e,t,n,r){if(e.type===`mouseout`)return[];if(!n)return t;let i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}};function Am(){return dc(km.instances,e=>e._plugins.invalidate())}function jm(e,t,n){let{startAngle:r,x:i,y:a,outerRadius:o,innerRadius:s,options:c}=t,{borderWidth:l,borderJoinStyle:u}=c,d=Math.min(l/o,Zc(r-n));if(e.beginPath(),e.arc(i,a,o-l/2,r+d/2,n-d/2),s>0){let t=Math.min(l/s,Zc(r-n));e.arc(i,a,s+l/2,n-t/2,r+t/2,!0)}else{let t=Math.min(l/2,o*Zc(r-n));if(u===`round`)e.arc(i,a,t,n-Oc/2,r+Oc/2,!0);else if(u===`bevel`){let o=2*t*t,s=-o*Math.cos(n+Oc/2)+i,c=-o*Math.sin(n+Oc/2)+a,l=o*Math.cos(r+Oc/2)+i,u=o*Math.sin(r+Oc/2)+a;e.lineTo(s,c),e.lineTo(l,u)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip(`evenodd`)}function Mm(e,t,n){let{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:c}=t,l=i/s;e.beginPath(),e.arc(a,o,s,r-l,n+l),c>i?(l=i/c,e.arc(a,o,c,n+l,r-l,!0)):e.arc(a,o,i,n+Nc,r-Nc),e.closePath(),e.clip()}function Nm(e){return cu(e,[`outerStart`,`outerEnd`,`innerStart`,`innerEnd`])}function Pm(e,t,n,r){let i=Nm(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=e=>{let t=(n-Math.min(a,e))*r/2;return $c(e,0,Math.min(a,t))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:$c(i.innerStart,0,o),innerEnd:$c(i.innerEnd,0,o)}}function Fm(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Im(e,t,n,r,i,a){let{x:o,y:s,startAngle:c,pixelMargin:l,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-l,0),f=u>0?u+r+n+l:0,p=0,m=i-c;if(r){let e=((u>0?u-r:0)+(d>0?d-r:0))/2;p=(m-(e===0?m:m*e/(e+r)))/2}let h=(m-Math.max(.001,m*d-n/Oc)/d)/2,g=c+h+p,_=i-h-p,{outerStart:v,outerEnd:y,innerStart:b,innerEnd:x}=Pm(t,f,d,_-g),S=d-v,C=d-y,w=g+v/S,T=_-y/C,E=f+b,D=f+x,O=g+b/E,k=_-x/D;if(e.beginPath(),a){let t=(w+T)/2;if(e.arc(o,s,d,w,t),e.arc(o,s,d,t,T),y>0){let t=Fm(C,T,o,s);e.arc(t.x,t.y,y,T,_+Nc)}let n=Fm(D,_,o,s);if(e.lineTo(n.x,n.y),x>0){let t=Fm(D,k,o,s);e.arc(t.x,t.y,x,_+Nc,k+Math.PI)}let r=(_-x/f+(g+b/f))/2;if(e.arc(o,s,f,_-x/f,r,!0),e.arc(o,s,f,r,g+b/f,!0),b>0){let t=Fm(E,O,o,s);e.arc(t.x,t.y,b,O+Math.PI,g-Nc)}let i=Fm(S,g,o,s);if(e.lineTo(i.x,i.y),v>0){let t=Fm(S,w,o,s);e.arc(t.x,t.y,v,g-Nc,w)}}else{e.moveTo(o,s);let t=Math.cos(w)*d+o,n=Math.sin(w)*d+s;e.lineTo(t,n);let r=Math.cos(T)*d+o,i=Math.sin(T)*d+s;e.lineTo(r,i)}e.closePath()}function Lm(e,t,n,r,i){let{fullCircles:a,startAngle:o,circumference:s}=t,c=t.endAngle;if(a){Im(e,t,n,r,c,i);for(let t=0;t<a;++t)e.fill();isNaN(s)||(c=o+(s%kc||kc))}return Im(e,t,n,r,c,i),e.fill(),c}function Rm(e,t,n,r,i){let{fullCircles:a,startAngle:o,circumference:s,options:c}=t,{borderWidth:l,borderJoinStyle:u,borderDash:d,borderDashOffset:f,borderRadius:p}=c,m=c.borderAlign===`inner`;if(!l)return;e.setLineDash(d||[]),e.lineDashOffset=f,m?(e.lineWidth=l*2,e.lineJoin=u||`round`):(e.lineWidth=l,e.lineJoin=u||`bevel`);let h=t.endAngle;if(a){Im(e,t,n,r,h,i);for(let t=0;t<a;++t)e.stroke();isNaN(s)||(h=o+(s%kc||kc))}m&&Mm(e,t,h),c.selfJoin&&h-o>=Oc&&p===0&&u!==`miter`&&jm(e,t,h),a||(Im(e,t,n,r,h,i),e.stroke())}var zm=class extends xp{static id=`arc`;static defaults={borderAlign:`center`,borderColor:`#fff`,borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:`backgroundColor`};static descriptors={_scriptable:!0,_indexable:e=>e!==`borderDash`};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),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,e&&Object.assign(this,e)}inRange(e,t,n){let{angle:r,distance:i}=Jc(this.getProps([`x`,`y`],n),{x:e,y:t}),{startAngle:a,endAngle:o,innerRadius:s,outerRadius:c,circumference:l}=this.getProps([`startAngle`,`endAngle`,`innerRadius`,`outerRadius`,`circumference`],n),u=(this.options.spacing+this.options.borderWidth)/2,d=U(l,o-a),f=Qc(r,a,o)&&a!==o,p=d>=kc||f,m=tl(i,s+u,c+u);return p&&m}getCenterPoint(e){let{x:t,y:n,startAngle:r,endAngle:i,innerRadius:a,outerRadius:o}=this.getProps([`x`,`y`,`startAngle`,`endAngle`,`innerRadius`,`outerRadius`],e),{offset:s,spacing:c}=this.options,l=(r+i)/2,u=(a+o+c+s)/2;return{x:t+Math.cos(l)*u,y:n+Math.sin(l)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){let{options:t,circumference:n}=this,r=(t.offset||0)/4,i=(t.spacing||0)/2,a=t.circular;if(this.pixelMargin=t.borderAlign===`inner`?.33:0,this.fullCircles=n>kc?Math.floor(n/kc):0,n===0||this.innerRadius<0||this.outerRadius<0)return;e.save();let o=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(o)*r,Math.sin(o)*r);let s=r*(1-Math.sin(Math.min(Oc,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,Lm(e,this,s,i,a),Rm(e,this,s,i,a),e.restore()}};function Bm(e,t,n=t){e.lineCap=U(n.borderCapStyle,t.borderCapStyle),e.setLineDash(U(n.borderDash,t.borderDash)),e.lineDashOffset=U(n.borderDashOffset,t.borderDashOffset),e.lineJoin=U(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=U(n.borderWidth,t.borderWidth),e.strokeStyle=U(n.borderColor,t.borderColor)}function Vm(e,t,n){e.lineTo(n.x,n.y)}function Hm(e){return e.stepped?Zl:e.tension||e.cubicInterpolationMode===`monotone`?Ql:Vm}function Um(e,t,n={}){let r=e.length,{start:i=0,end:a=r-1}=n,{start:o,end:s}=t,c=Math.max(i,o),l=Math.min(a,s),u=i<o&&a<o||i>s&&a>s;return{count:r,start:c,loop:t.loop,ilen:l<c&&!u?r+l-c:l-c}}function Wm(e,t,n,r){let{points:i,options:a}=t,{count:o,start:s,loop:c,ilen:l}=Um(i,n,r),u=Hm(a),{move:d=!0,reverse:f}=r||{},p,m,h;for(p=0;p<=l;++p)m=i[(s+(f?l-p:p))%o],!m.skip&&(d?(e.moveTo(m.x,m.y),d=!1):u(e,h,m,f,a.stepped),h=m);return c&&(m=i[(s+(f?l:0))%o],u(e,h,m,f,a.stepped)),!!c}function Gm(e,t,n,r){let i=t.points,{count:a,start:o,ilen:s}=Um(i,n,r),{move:c=!0,reverse:l}=r||{},u=0,d=0,f,p,m,h,g,_,v=e=>(o+(l?s-e:e))%a,y=()=>{h!==g&&(e.lineTo(u,g),e.lineTo(u,h),e.lineTo(u,_))};for(c&&(p=i[v(0)],e.moveTo(p.x,p.y)),f=0;f<=s;++f){if(p=i[v(f)],p.skip)continue;let t=p.x,n=p.y,r=t|0;r===m?(n<h?h=n:n>g&&(g=n),u=(d*u+t)/++d):(y(),e.lineTo(t,n),m=r,d=0,h=g=n),_=n}y()}function Km(e){let t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!==`monotone`&&!t.stepped&&!n?Gm:Wm}function qm(e){return e.stepped?cd:e.tension||e.cubicInterpolationMode===`monotone`?ld:sd}function Jm(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),Bm(e,t.options),e.stroke(i)}function Ym(e,t,n,r){let{segments:i,options:a}=t,o=Km(t);for(let s of i)Bm(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}var Xm=typeof Path2D==`function`;function Zm(e,t,n,r){Xm&&!t.options.segment?Jm(e,t,n,r):Ym(e,t,n,r)}var Qm=class extends xp{static id=`line`;static defaults={borderCapStyle:`butt`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:`default`,fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:`backgroundColor`,borderColor:`borderColor`};static descriptors={_scriptable:!0,_indexable:e=>e!==`borderDash`&&e!==`fill`};constructor(e){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,e&&Object.assign(this,e)}updateControlPoints(e,t){let n=this.options;if((n.tension||n.cubicInterpolationMode===`monotone`)&&!n.stepped&&!this._pointsUpdated){let r=n.spanGaps?this._loop:this._fullLoop;Wu(this._points,n,e,r,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||=Sd(this,this.options.segment)}first(){let e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){let e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){let n=this.options,r=e[t],i=this.points,a=yd(this,{property:t,start:r,end:r});if(!a.length)return;let o=[],s=qm(n),c,l;for(c=0,l=a.length;c<l;++c){let{start:l,end:u}=a[c],d=i[l],f=i[u];if(d===f){o.push(d);continue}let p=s(d,f,Math.abs((r-d[t])/(f[t]-d[t])),n.stepped);p[t]=e[t],o.push(p)}return o.length===1?o[0]:o}pathSegment(e,t,n){return Km(this)(e,this,t,n)}path(e,t,n){let r=this.segments,i=Km(this),a=this._loop;t||=0,n||=this.points.length-t;for(let o of r)a&=i(e,this,o,{start:t,end:t+n-1});return!!a}draw(e,t,n,r){let i=this.options||{};(this.points||[]).length&&i.borderWidth&&(e.save(),Zm(e,this,n,r),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}};function $m(e,t,n,r){let i=e.options,{[n]:a}=e.getProps([n],r);return Math.abs(t-a)<i.radius+i.hitRadius}var eh=class extends xp{static id=`point`;parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:`circle`,radius:3,rotation:0};static defaultRoutes={backgroundColor:`backgroundColor`,borderColor:`borderColor`};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){let r=this.options,{x:i,y:a}=this.getProps([`x`,`y`],n);return(e-i)**2+(t-a)**2<(r.hitRadius+r.radius)**2}inXRange(e,t){return $m(this,e,`x`,t)}inYRange(e,t){return $m(this,e,`y`,t)}getCenterPoint(e){let{x:t,y:n}=this.getProps([`x`,`y`],e);return{x:t,y:n}}size(e){e=e||this.options||{};let t=e.radius||0;t=Math.max(t,t&&e.hoverRadius||0);let n=t&&e.borderWidth||0;return(t+n)*2}draw(e,t){let n=this.options;this.skip||n.radius<.1||!Jl(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,Kl(e,n,this.x,this.y))}getRange(){let e=this.options||{};return e.radius+e.hitRadius}};function th(e,t){let{x:n,y:r,base:i,width:a,height:o}=e.getProps([`x`,`y`,`base`,`width`,`height`],t),s,c,l,u,d;return e.horizontal?(d=o/2,s=Math.min(n,i),c=Math.max(n,i),l=r-d,u=r+d):(d=a/2,s=n-d,c=n+d,l=Math.min(r,i),u=Math.max(r,i)),{left:s,top:l,right:c,bottom:u}}function nh(e,t,n,r){return e?0:$c(t,n,r)}function rh(e,t,n){let r=e.options.borderWidth,i=e.borderSkipped,a=lu(r);return{t:nh(i.top,a.top,0,n),r:nh(i.right,a.right,0,t),b:nh(i.bottom,a.bottom,0,n),l:nh(i.left,a.left,0,t)}}function ih(e,t,n){let{enableBorderRadius:r}=e.getProps([`enableBorderRadius`]),i=e.options.borderRadius,a=uu(i),o=Math.min(t,n),s=e.borderSkipped,c=r||ac(i);return{topLeft:nh(!c||s.top||s.left,a.topLeft,0,o),topRight:nh(!c||s.top||s.right,a.topRight,0,o),bottomLeft:nh(!c||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:nh(!c||s.bottom||s.right,a.bottomRight,0,o)}}function ah(e){let t=th(e),n=t.right-t.left,r=t.bottom-t.top,i=rh(e,n/2,r/2),a=ih(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:a},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function oh(e,t,n,r){let i=t===null,a=n===null,o=e&&!(i&&a)&&th(e,r);return o&&(i||tl(t,o.left,o.right))&&(a||tl(n,o.top,o.bottom))}function sh(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function ch(e,t){e.rect(t.x,t.y,t.w,t.h)}function lh(e,t,n={}){let r=e.x===n.x?0:-t,i=e.y===n.y?0:-t,a=(e.x+e.w===n.x+n.w?0:t)-r,o=(e.y+e.h===n.y+n.h?0:t)-i;return{x:e.x+r,y:e.y+i,w:e.w+a,h:e.h+o,radius:e.radius}}var uh=class extends xp{static id=`bar`;static defaults={borderSkipped:`start`,borderWidth:0,borderRadius:0,inflateAmount:`auto`,pointStyle:void 0};static defaultRoutes={backgroundColor:`backgroundColor`,borderColor:`borderColor`};constructor(e){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,e&&Object.assign(this,e)}draw(e){let{inflateAmount:t,options:{borderColor:n,backgroundColor:r}}=this,{inner:i,outer:a}=ah(this),o=sh(a.radius)?ru:ch;e.save(),(a.w!==i.w||a.h!==i.h)&&(e.beginPath(),o(e,lh(a,t,i)),e.clip(),o(e,lh(i,-t,a)),e.fillStyle=n,e.fill(`evenodd`)),e.beginPath(),o(e,lh(i,t)),e.fillStyle=r,e.fill(),e.restore()}inRange(e,t,n){return oh(this,e,t,n)}inXRange(e,t){return oh(this,e,null,t)}inYRange(e,t){return oh(this,null,e,t)}getCenterPoint(e){let{x:t,y:n,base:r,horizontal:i}=this.getProps([`x`,`y`,`base`,`horizontal`],e);return{x:i?(t+r)/2:t,y:i?n:(n+r)/2}}getRange(e){return e===`x`?this.width/2:this.height/2}},dh=(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)}},fh=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index,ph=class extends xp{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.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(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,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(){let e=this.options.labels||{},t=uc(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter(t=>e.filter(t,this.chart.data))),e.sort&&(t=t.sort((t,n)=>e.sort(t,n,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){let{options:e,ctx:t}=this;if(!e.display){this.width=this.height=0;return}let n=e.labels,r=fu(n.font),i=r.size,a=this._computeTitleHeight(),{boxWidth:o,itemHeight:s}=dh(n,i),c,l;t.font=r.string,this.isHorizontal()?(c=this.maxWidth,l=this._fitRows(a,i,o,s)+10):(l=this.maxHeight,c=this._fitCols(a,r,o,s)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(l,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,r){let{ctx:i,maxWidth:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],l=r+o,u=e;i.textAlign=`left`,i.textBaseline=`middle`;let d=-1,f=-l;return this.legendItems.forEach((e,p)=>{let m=n+t/2+i.measureText(e.text).width;(p===0||c[c.length-1]+m+2*o>a)&&(u+=l,c[c.length-(p>0?0:1)]=0,f+=l,d++),s[p]={left:0,top:f,row:d,width:m,height:r},c[c.length-1]+=m+o}),u}_fitCols(e,t,n,r){let{ctx:i,maxHeight:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],l=a-e,u=o,d=0,f=0,p=0,m=0;return this.legendItems.forEach((e,a)=>{let{itemWidth:h,itemHeight:g}=mh(n,t,i,e,r);a>0&&f+g+2*o>l&&(u+=d+o,c.push({width:d,height:f}),p+=d+o,m++,d=f=0),s[a]={left:p,top:f,col:m,width:h,height:g},d=Math.max(d,h),f+=g+o}),u+=d,c.push({width:d,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;let e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:r},rtl:i}}=this,a=fd(i,this.left,this.width);if(this.isHorizontal()){let i=0,o=ml(n,this.left+r,this.right-this.lineWidths[i]);for(let s of t)i!==s.row&&(i=s.row,o=ml(n,this.left+r,this.right-this.lineWidths[i])),s.top+=this.top+e+r,s.left=a.leftForLtr(a.x(o),s.width),o+=s.width+r}else{let i=0,o=ml(n,this.top+e+r,this.bottom-this.columnSizes[i].height);for(let s of t)s.col!==i&&(i=s.col,o=ml(n,this.top+e+r,this.bottom-this.columnSizes[i].height)),s.top=o,s.left+=this.left+r,s.left=a.leftForLtr(a.x(s.left),s.width),o+=s.height+r}}isHorizontal(){return this.options.position===`top`||this.options.position===`bottom`}draw(){if(this.options.display){let e=this.ctx;Yl(e,this),this._draw(),Xl(e)}}_draw(){let{options:e,columnSizes:t,lineWidths:n,ctx:r}=this,{align:i,labels:a}=e,o=Bl.color,s=fd(e.rtl,this.left,this.width),c=fu(a.font),{padding:l}=a,u=c.size,d=u/2,f;this.drawTitle(),r.textAlign=s.textAlign(`left`),r.textBaseline=`middle`,r.lineWidth=.5,r.font=c.string;let{boxWidth:p,boxHeight:m,itemHeight:h}=dh(a,u),g=function(e,t,n){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;r.save();let i=U(n.lineWidth,1);if(r.fillStyle=U(n.fillStyle,o),r.lineCap=U(n.lineCap,`butt`),r.lineDashOffset=U(n.lineDashOffset,0),r.lineJoin=U(n.lineJoin,`miter`),r.lineWidth=i,r.strokeStyle=U(n.strokeStyle,o),r.setLineDash(U(n.lineDash,[])),a.usePointStyle)ql(r,{radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:i},s.xPlus(e,p/2),t+d,a.pointStyleWidth&&p);else{let a=t+Math.max((u-m)/2,0),o=s.leftForLtr(e,p),c=uu(n.borderRadius);r.beginPath(),Object.values(c).some(e=>e!==0)?ru(r,{x:o,y:a,w:p,h:m,radius:c}):r.rect(o,a,p,m),r.fill(),i!==0&&r.stroke()}r.restore()},_=function(e,t,n){nu(r,n.text,e,t+h/2,c,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})},v=this.isHorizontal(),y=this._computeTitleHeight();f=v?{x:ml(i,this.left+l,this.right-n[0]),y:this.top+l+y,line:0}:{x:this.left+l,y:ml(i,this.top+y+l,this.bottom-t[0].height),line:0},pd(this.ctx,e.textDirection);let b=h+l;this.legendItems.forEach((o,u)=>{r.strokeStyle=o.fontColor,r.fillStyle=o.fontColor;let m=r.measureText(o.text).width,h=s.textAlign(o.textAlign||=a.textAlign),x=p+d+m,S=f.x,C=f.y;if(s.setWidth(this.width),v?u>0&&S+x+l>this.right&&(C=f.y+=b,f.line++,S=f.x=ml(i,this.left+l,this.right-n[f.line])):u>0&&C+b>this.bottom&&(S=f.x=S+t[f.line].width+l,f.line++,C=f.y=ml(i,this.top+y+l,this.bottom-t[f.line].height)),g(s.x(S),C,o),S=hl(h,S+p+d,v?S+x:this.right,e.rtl),_(s.x(S),C,o),v)f.x+=x+l;else if(typeof o.text!=`string`){let e=c.lineHeight;f.y+=_h(o,e)+l}else f.y+=b}),md(this.ctx,e.textDirection)}drawTitle(){let e=this.options,t=e.title,n=fu(t.font),r=du(t.padding);if(!t.display)return;let i=fd(e.rtl,this.left,this.width),a=this.ctx,o=t.position,s=n.size/2,c=r.top+s,l,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),l=this.top+c,u=ml(e.align,u,this.right-d);else{let t=this.columnSizes.reduce((e,t)=>Math.max(e,t.height),0);l=c+ml(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}let f=ml(o,u,u+d);a.textAlign=i.textAlign(pl(o)),a.textBaseline=`middle`,a.strokeStyle=t.color,a.fillStyle=t.color,a.font=n.string,nu(a,t.text,f,l,n)}_computeTitleHeight(){let e=this.options.title,t=fu(e.font),n=du(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,r,i;if(tl(e,this.left,this.right)&&tl(t,this.top,this.bottom)){for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(r=i[n],tl(e,r.left,r.left+r.width)&&tl(t,r.top,r.top+r.height))return this.legendItems[n]}return null}handleEvent(e){let t=this.options;if(!vh(e.type,t))return;let n=this._getLegendItemAt(e.x,e.y);if(e.type===`mousemove`||e.type===`mouseout`){let r=this._hoveredItem,i=fh(r,n);r&&!i&&uc(t.onLeave,[e,r,this],this),this._hoveredItem=n,n&&!i&&uc(t.onHover,[e,n,this],this)}else n&&uc(t.onClick,[e,n,this],this)}};function mh(e,t,n,r,i){return{itemWidth:hh(r,e,t,n),itemHeight:gh(i,r,t.lineHeight)}}function hh(e,t,n,r){let i=e.text;return i&&typeof i!=`string`&&(i=i.reduce((e,t)=>e.length>t.length?e:t)),t+n.size/2+r.measureText(i).width}function gh(e,t,n){let r=e;return typeof t.text!=`string`&&(r=_h(t,n)),r}function _h(e,t){return t*(e.text?e.text.length:0)}function vh(e,t){return!!((e===`mousemove`||e===`mouseout`)&&(t.onHover||t.onLeave)||t.onClick&&(e===`click`||e===`mouseup`))}var yh={id:`legend`,_element:ph,start(e,t,n){let r=e.legend=new ph({ctx:e.ctx,options:n,chart:e});Zf.configure(e,r,n),Zf.addBox(e,r)},stop(e){Zf.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){let r=e.legend;Zf.configure(e,r,n),r.options=n},afterUpdate(e){let 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){let r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){let t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(e=>{let c=e.controller.getStyle(n?0:void 0),l=du(c.borderWidth);return{text:t[e.index].label,fillStyle:c.backgroundColor,fontColor:a,hidden:!e.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(s||c.borderRadius),datasetIndex:e.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)}}},bh=class extends xp{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.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(e,t){let n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=t;let r=ic(n.text)?n.text.length:1;this._padding=du(n.padding);let i=r*fu(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){let e=this.options.position;return e===`top`||e===`bottom`}_drawArgs(e){let{top:t,left:n,bottom:r,right:i,options:a}=this,o=a.align,s=0,c,l,u;return this.isHorizontal()?(l=ml(o,n,i),u=t+e,c=i-n):(a.position===`left`?(l=n+e,u=ml(o,r,t),s=Oc*-.5):(l=i-e,u=ml(o,t,r),s=Oc*.5),c=r-t),{titleX:l,titleY:u,maxWidth:c,rotation:s}}draw(){let e=this.ctx,t=this.options;if(!t.display)return;let n=fu(t.font),r=n.lineHeight/2+this._padding.top,{titleX:i,titleY:a,maxWidth:o,rotation:s}=this._drawArgs(r);nu(e,t.text,0,0,n,{color:t.color,maxWidth:o,rotation:s,textAlign:pl(t.align),textBaseline:`middle`,translation:[i,a]})}};function xh(e,t){let n=new bh({ctx:e.ctx,options:t,chart:e});Zf.configure(e,n,t),Zf.addBox(e,n),e.titleBlock=n}var Sh={id:`title`,_element:bh,start(e,t,n){xh(e,n)},stop(e){let t=e.titleBlock;Zf.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){let r=e.titleBlock;Zf.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}},Ch={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=0;for(t=0,n=e.length;t<n;++t){let n=e[t].element;if(n&&n.hasValue()){let e=n.tooltipPosition();r.add(e.x),i+=e.y,++a}}return a===0||r.size===0?!1:{x:[...r].reduce((e,t)=>e+t)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=1/0,a,o,s;for(a=0,o=e.length;a<o;++a){let n=e[a].element;if(n&&n.hasValue()){let e=Yc(t,n.getCenterPoint());e<i&&(i=e,s=n)}}if(s){let e=s.tooltipPosition();n=e.x,r=e.y}return{x:n,y:r}}};function wh(e,t){return t&&(ic(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Th(e){return(typeof e==`string`||e instanceof String)&&e.indexOf(`
122
45
  `)>-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`
46
+ `):e}function Eh(e,t){let{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Dh(e,t){let n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,c=fu(t.bodyFont),l=fu(t.titleFont),u=fu(t.footerFont),d=a.length,f=i.length,p=r.length,m=du(t.padding),h=m.height,g=0,_=r.reduce((e,t)=>e+t.before.length+t.lines.length+t.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,d&&(h+=d*l.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),_){let e=t.displayColors?Math.max(s,c.lineHeight):c.lineHeight;h+=p*e+(_-p)*c.lineHeight+(_-1)*t.bodySpacing}f&&(h+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let v=0,y=function(e){g=Math.max(g,n.measureText(e).width+v)};return n.save(),n.font=l.string,dc(e.title,y),n.font=c.string,dc(e.beforeBody.concat(e.afterBody),y),v=t.displayColors?o+2+t.boxPadding:0,dc(r,e=>{dc(e.before,y),dc(e.lines,y),dc(e.after,y)}),v=0,n.font=u.string,dc(e.footer,y),n.restore(),g+=m.width,{width:g,height:h}}function Oh(e,t){let{y:n,height:r}=t;return n<r/2?`top`:n>e.height-r/2?`bottom`:`center`}function kh(e,t,n,r){let{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e===`left`&&i+a+o>t.width||e===`right`&&i-a-o<0)return!0}function Ah(e,t,n,r){let{x:i,width:a}=n,{width:o,chartArea:{left:s,right:c}}=e,l=`center`;return r===`center`?l=i<=(s+c)/2?`left`:`right`:i<=a/2?l=`left`:i>=o-a/2&&(l=`right`),kh(l,e,t,n)&&(l=`center`),l}function jh(e,t,n){let r=n.yAlign||t.yAlign||Oh(e,n);return{xAlign:n.xAlign||t.xAlign||Ah(e,t,n,r),yAlign:r}}function Mh(e,t){let{x:n,width:r}=e;return t===`right`?n-=r:t===`center`&&(n-=r/2),n}function Nh(e,t,n){let{y:r,height:i}=e;return t===`top`?r+=n:t===`bottom`?r-=i+n:r-=i/2,r}function Ph(e,t,n,r){let{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:c}=n,l=i+a,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=uu(o),m=Mh(t,s),h=Nh(t,c,l);return c===`center`?s===`left`?m+=l:s===`right`&&(m-=l):s===`left`?m-=Math.max(u,f)+i:s===`right`&&(m+=Math.max(d,p)+i),{x:$c(m,0,r.width-t.width),y:$c(h,0,r.height-t.height)}}function Fh(e,t,n){let r=du(n.padding);return t===`center`?e.x+e.width/2:t===`right`?e.x+e.width-r.right:e.x+r.left}function Ih(e){return wh([],Th(e))}function Lh(e,t,n){return hu(e,{tooltip:t,tooltipItems:n,type:`tooltip`})}function Rh(e,t){let n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var zh={beforeTitle:tc,title(e){if(e.length>0){let 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:tc,beforeBody:tc,beforeLabel:tc,label(e){if(this&&this.options&&this.options.mode===`dataset`)return e.label+`: `+e.formattedValue||e.formattedValue;let t=e.dataset.label||``;t&&(t+=`: `);let n=e.formattedValue;return rc(n)||(t+=n),t},labelColor(e){let t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){let t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:tc,afterBody:tc,beforeFooter:tc,footer:tc,afterFooter:tc};function Bh(e,t,n,r){let i=e[t].call(n,r);return i===void 0?zh[t].call(n,r):i}var Vh=class extends xp{static positioners=Ch;constructor(e){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=e.chart,this.options=e.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(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let e=this._cachedAnimations;if(e)return e;let t=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&t.options.animation&&n.animations,i=new Pd(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||=Lh(this.chart.getContext(),this,this._tooltipItems)}getTitle(e,t){let{callbacks:n}=t,r=Bh(n,`beforeTitle`,this,e),i=Bh(n,`title`,this,e),a=Bh(n,`afterTitle`,this,e),o=[];return o=wh(o,Th(r)),o=wh(o,Th(i)),o=wh(o,Th(a)),o}getBeforeBody(e,t){return Ih(Bh(t.callbacks,`beforeBody`,this,e))}getBody(e,t){let{callbacks:n}=t,r=[];return dc(e,e=>{let t={before:[],lines:[],after:[]},i=Rh(n,e);wh(t.before,Th(Bh(i,`beforeLabel`,this,e))),wh(t.lines,Bh(i,`label`,this,e)),wh(t.after,Th(Bh(i,`afterLabel`,this,e))),r.push(t)}),r}getAfterBody(e,t){return Ih(Bh(t.callbacks,`afterBody`,this,e))}getFooter(e,t){let{callbacks:n}=t,r=Bh(n,`beforeFooter`,this,e),i=Bh(n,`footer`,this,e),a=Bh(n,`afterFooter`,this,e),o=[];return o=wh(o,Th(r)),o=wh(o,Th(i)),o=wh(o,Th(a)),o}_createItems(e){let t=this._active,n=this.chart.data,r=[],i=[],a=[],o=[],s,c;for(s=0,c=t.length;s<c;++s)o.push(Eh(this.chart,t[s]));return e.filter&&(o=o.filter((t,r,i)=>e.filter(t,r,i,n))),e.itemSort&&(o=o.sort((t,r)=>e.itemSort(t,r,n))),dc(o,t=>{let n=Rh(e.callbacks,t);r.push(Bh(n,`labelColor`,this,t)),i.push(Bh(n,`labelPointStyle`,this,t)),a.push(Bh(n,`labelTextColor`,this,t))}),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=o,o}update(e,t){let n=this.options.setContext(this.getContext()),r=this._active,i,a=[];if(!r.length)this.opacity!==0&&(i={opacity:0});else{let e=Ch[n.position].call(this,r,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);let t=this._size=Dh(this,n),o=Object.assign({},e,t),s=jh(this.chart,n,o),c=Ph(n,o,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,i={opacity:1,x:c.x,y:c.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){let i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}getCaretPosition(e,t,n){let{xAlign:r,yAlign:i}=this,{caretSize:a,cornerRadius:o}=n,{topLeft:s,topRight:c,bottomLeft:l,bottomRight:u}=uu(o),{x:d,y:f}=e,{width:p,height:m}=t,h,g,_,v,y,b;return i===`center`?(y=f+m/2,r===`left`?(h=d,g=h-a,v=y+a,b=y-a):(h=d+p,g=h+a,v=y-a,b=y+a),_=h):(g=r===`left`?d+Math.max(s,l)+a:r===`right`?d+p-Math.max(c,u)-a:this.caretX,i===`top`?(v=f,y=v-a,h=g-a,_=g+a):(v=f+m,y=v+a,h=g+a,_=g-a),b=v),{x1:h,x2:g,x3:_,y1:v,y2:y,y3:b}}drawTitle(e,t,n){let r=this.title,i=r.length,a,o,s;if(i){let c=fd(n.rtl,this.x,this.width);for(e.x=Fh(this,n.titleAlign,n),t.textAlign=c.textAlign(n.titleAlign),t.textBaseline=`middle`,a=fu(n.titleFont),o=n.titleSpacing,t.fillStyle=n.titleColor,t.font=a.string,s=0;s<i;++s)t.fillText(r[s],c.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+o,s+1===i&&(e.y+=n.titleMarginBottom-o)}}_drawColorBox(e,t,n,r,i){let a=this.labelColors[n],o=this.labelPointStyles[n],{boxHeight:s,boxWidth:c}=i,l=fu(i.bodyFont),u=Fh(this,`left`,i),d=r.x(u),f=s<l.lineHeight?(l.lineHeight-s)/2:0,p=t.y+f;if(i.usePointStyle){let t={radius:Math.min(c,s)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},n=r.leftForLtr(d,c)+c/2,l=p+s/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,Kl(e,t,n,l),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,Kl(e,t,n,l)}else{e.lineWidth=ac(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;let t=r.leftForLtr(d,c),n=r.leftForLtr(r.xPlus(d,1),c-2),o=uu(a.borderRadius);Object.values(o).some(e=>e!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,ru(e,{x:t,y:p,w:c,h:s,radius:o}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),ru(e,{x:n,y:p+1,w:c-2,h:s-2,radius:o}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(t,p,c,s),e.strokeRect(t,p,c,s),e.fillStyle=a.backgroundColor,e.fillRect(n,p+1,c-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){let{body:r}=this,{bodySpacing:i,bodyAlign:a,displayColors:o,boxHeight:s,boxWidth:c,boxPadding:l}=n,u=fu(n.bodyFont),d=u.lineHeight,f=0,p=fd(n.rtl,this.x,this.width),m=function(n){t.fillText(n,p.x(e.x+f),e.y+d/2),e.y+=d+i},h=p.textAlign(a),g,_,v,y,b,x,S;for(t.textAlign=a,t.textBaseline=`middle`,t.font=u.string,e.x=Fh(this,h,n),t.fillStyle=n.bodyColor,dc(this.beforeBody,m),f=o&&h!==`right`?a===`center`?c/2+l:c+2+l:0,y=0,x=r.length;y<x;++y){for(g=r[y],_=this.labelTextColors[y],t.fillStyle=_,dc(g.before,m),v=g.lines,o&&v.length&&(this._drawColorBox(t,e,y,p,n),d=Math.max(u.lineHeight,s)),b=0,S=v.length;b<S;++b)m(v[b]),d=u.lineHeight;dc(g.after,m)}f=0,d=u.lineHeight,dc(this.afterBody,m),e.y-=i}drawFooter(e,t,n){let r=this.footer,i=r.length,a,o;if(i){let s=fd(n.rtl,this.x,this.width);for(e.x=Fh(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline=`middle`,a=fu(n.footerFont),t.fillStyle=n.footerColor,t.font=a.string,o=0;o<i;++o)t.fillText(r[o],s.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+n.footerSpacing}}drawBackground(e,t,n,r){let{xAlign:i,yAlign:a}=this,{x:o,y:s}=e,{width:c,height:l}=n,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=uu(r.cornerRadius);t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(o+u,s),a===`top`&&this.drawCaret(e,t,n,r),t.lineTo(o+c-d,s),t.quadraticCurveTo(o+c,s,o+c,s+d),a===`center`&&i===`right`&&this.drawCaret(e,t,n,r),t.lineTo(o+c,s+l-p),t.quadraticCurveTo(o+c,s+l,o+c-p,s+l),a===`bottom`&&this.drawCaret(e,t,n,r),t.lineTo(o+f,s+l),t.quadraticCurveTo(o,s+l,o,s+l-f),a===`center`&&i===`left`&&this.drawCaret(e,t,n,r),t.lineTo(o,s+u),t.quadraticCurveTo(o,s,o+u,s),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){let t=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){let n=Ch[e.position].call(this,this._active,this._eventPosition);if(!n)return;let a=this._size=Dh(this,e),o=Object.assign({},n,this._size),s=jh(t,e,o),c=Ph(e,o,s,t);(r._to!==c.x||i._to!==c.y)&&(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=a.width,this.height=a.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){let t=this.options.setContext(this.getContext()),n=this.opacity;if(!n)return;this._updateAnimationTarget(t);let r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;let a=du(t.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&o&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,r,t),pd(e,t.textDirection),i.y+=a.top,this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),md(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){let n=this._active,r=e.map(({datasetIndex:e,index:t})=>{let n=this.chart.getDatasetMeta(e);if(!n)throw Error(`Cannot find a dataset at index `+e);return{datasetIndex:e,element:n.data[t],index:t}}),i=!fc(n,r),a=this._positionChanged(r,t);(i||a)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let r=this.options,i=this._active||[],a=this._getActiveElements(e,i,t,n),o=this._positionChanged(a,e),s=t||!fc(a,i)||o;return s&&(this._active=a,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,r){let i=this.options;if(e.type===`mouseout`)return[];if(!r)return t.filter(e=>this.chart.data.datasets[e.datasetIndex]&&this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)!==void 0);let a=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&a.reverse(),a}_positionChanged(e,t){let{caretX:n,caretY:r,options:i}=this,a=Ch[i.position].call(this,e,t);return a!==!1&&(n!==a.x||r!==a.y)}},Hh={id:`tooltip`,_element:Vh,positioners:Ch,afterInit(e,t,n){n&&(e.tooltip=new Vh({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){let t=e.tooltip;if(t&&t._willRender()){let 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){let 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:zh},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`]},Uh=(e,t,n,r)=>(typeof t==`string`?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function Wh(e,t,n,r){let i=e.indexOf(t);return i===-1?Uh(e,t,n,r):i===e.lastIndexOf(t)?i:n}var Gh=(e,t)=>e===null?null:$c(Math.round(e),0,t);function Kh(e){let t=this.getLabels();return e>=0&&e<t.length?t[e]:e}var qh=class extends Vp{static id=`category`;static defaults={ticks:{callback:Kh}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){let t=this._addedLabels;if(t.length){let e=this.getLabels();for(let{index:n,label:r}of t)e[n]===r&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(rc(e))return null;let n=this.getLabels();return t=isFinite(t)&&n[t]===e?t:Wh(n,e,U(t,e),this._addedLabels),Gh(t,n.length-1)}determineDataLimits(){let{minDefined:e,maxDefined:t}=this.getUserBounds(),{min:n,max:r}=this.getMinMax(!0);this.options.bounds===`ticks`&&(e||(n=0),t||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){let e=this.min,t=this.max,n=this.options.offset,r=[],i=this.getLabels();i=e===0&&t===i.length-1?i:i.slice(e,t+1),this._valueRange=Math.max(i.length-+!n,1),this._startValue=this.min-(n?.5:0);for(let n=e;n<=t;n++)r.push({value:n});return r}getLabelForValue(e){return Kh.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!=`number`&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){let t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}};function Jh(e,t){let n=[],{bounds:r,step:i,min:a,max:o,precision:s,count:c,maxTicks:l,maxDigits:u,includeBounds:d}=e,f=i||1,p=l-1,{min:m,max:h}=t,g=!rc(a),_=!rc(o),v=!rc(c),y=(h-m)/(u+1),b=zc((h-m)/p/f)*f,x,S,C,w;if(b<1e-14&&!g&&!_)return[{value:m},{value:h}];w=Math.ceil(h/b)-Math.floor(m/b),w>p&&(b=zc(w*b/p/f)*f),rc(s)||(x=10**s,b=Math.ceil(b*x)/x),r===`ticks`?(S=Math.floor(m/b)*b,C=Math.ceil(h/b)*b):(S=m,C=h),g&&_&&i&&Uc((o-a)/i,b/1e3)?(w=Math.round(Math.min((o-a)/b,l)),b=(o-a)/w,S=a,C=o):v?(S=g?a:S,C=_?o:C,w=c-1,b=(C-S)/w):(w=(C-S)/b,w=Rc(w,Math.round(w),b/1e3)?Math.round(w):Math.ceil(w));let T=Math.max(qc(b),qc(S));x=10**(rc(s)?T:s),S=Math.round(S*x)/x,C=Math.round(C*x)/x;let E=0;for(g&&(d&&S!==a?(n.push({value:a}),S<a&&E++,Rc(Math.round((S+E*b)*x)/x,a,Yh(a,y,e))&&E++):S<a&&E++);E<w;++E){let e=Math.round((S+E*b)*x)/x;if(_&&e>o)break;n.push({value:e})}return _&&d&&C!==o?n.length&&Rc(n[n.length-1].value,o,Yh(o,y,e))?n[n.length-1].value=o:n.push({value:o}):(!_||C===o)&&n.push({value:C}),n}function Yh(e,t,{horizontal:n,minRotation:r}){let i=Gc(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(``+e).length;return Math.min(t/a,o)}var Xh=class extends Vp{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return rc(e)||(typeof e==`number`||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){let{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds(),{min:r,max:i}=this,a=e=>r=t?r:e,o=e=>i=n?i:e;if(e){let e=Lc(r),t=Lc(i);e<0&&t<0?o(0):e>0&&t>0&&a(0)}if(r===i){let t=i===0?1:Math.abs(i*.05);o(i+t),e||a(r-t)}this.min=r,this.max=i}getTickLimit(){let{maxTicksLimit:e,stepSize:t}=this.options.ticks,n;return t?(n=Math.ceil(this.max/t)-Math.floor(this.min/t)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${t} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),e||=11),e&&(n=Math.min(e,n)),n}computeTickLimit(){return 1/0}buildTicks(){let e=this.options,t=e.ticks,n=this.getTickLimit();n=Math.max(2,n);let r=Jh({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:t.includeBounds!==!1},this._range||this);return e.bounds===`ticks`&&Wc(r,this,`value`),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){let e=this.ticks,t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){let r=(n-t)/Math.max(e.length-1,1)/2;t-=r,n+=r}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return jl(e,this.chart.options.locale,this.options.ticks.format)}},Zh=class extends Xh{static id=`linear`;static defaults={ticks:{callback:Pl.formatters.numeric}};determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=oc(e)?e:0,this.max=oc(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){let e=this.isHorizontal(),t=e?this.width:this.height,n=Gc(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,i.lineHeight/r))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}},Qh=e=>Math.floor(Ic(e)),$h=(e,t)=>10**(Qh(e)+t);function eg(e){return e/10**Qh(e)==1}function tg(e,t,n){let r=10**n,i=Math.floor(e/r);return Math.ceil(t/r)-i}function ng(e,t){let n=Qh(t-e);for(;tg(e,t,n)>10;)n++;for(;tg(e,t,n)<10;)n--;return Math.min(n,Qh(e))}function rg(e,{min:t,max:n}){t=sc(e.min,t);let r=[],i=Qh(t),a=ng(t,n),o=a<0?10**Math.abs(a):1,s=10**a,c=i>a?10**i:0,l=Math.round((t-c)*o)/o,u=Math.floor((t-c)/s/10)*s*10,d=Math.floor((l-u)/10**a),f=sc(e.min,Math.round((c+u+d*10**a)*o)/o);for(;f<n;)r.push({value:f,major:eg(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,o=a>=0?1:o),f=Math.round((c+u+d*10**a)*o)/o;let p=sc(e.max,f);return r.push({value:p,major:eg(p),significand:d}),r}(class extends Vp{static id=`logarithmic`;static defaults={ticks:{callback:Pl.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){let n=Xh.prototype.parse.apply(this,[e,t]);if(n===0){this._zero=!0;return}return oc(n)&&n>0?n:null}determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=oc(e)?Math.max(0,e):null,this.max=oc(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!oc(this._userMin)&&(this.min=e===$h(this.min,0)?$h(this.min,-1):$h(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:e,maxDefined:t}=this.getUserBounds(),n=this.min,r=this.max,i=t=>n=e?n:t,a=e=>r=t?r:e;n===r&&(n<=0?(i(1),a(10)):(i($h(n,-1)),a($h(r,1)))),n<=0&&i($h(r,-1)),r<=0&&a($h(n,1)),this.min=n,this.max=r}buildTicks(){let e=this.options,t=rg({min:this._userMin,max:this._userMax},this);return e.bounds===`ticks`&&Wc(t,this,`value`),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return e===void 0?`0`:jl(e,this.chart.options.locale,this.options.ticks.format)}configure(){let e=this.min;super.configure(),this._startValue=Ic(e),this._valueRange=Ic(this.max)-Ic(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Ic(e)-this._startValue)/this._valueRange)}getValueForPixel(e){let t=this.getDecimalForPixel(e);return 10**(this._startValue+t*this._valueRange)}});function ig(e){let t=e.ticks;if(t.display&&e.display){let e=du(t.backdropPadding);return U(t.font&&t.font.size,Bl.font.size)+e.height}return 0}function ag(e,t,n){return n=ic(n)?n:[n],{w:Ul(e,t.string,n),h:n.length*t.lineHeight}}function og(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function sg(e){let t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],a=e._pointLabels.length,o=e.options.pointLabels,s=o.centerPointLabels?Oc/a:0;for(let c=0;c<a;c++){let a=o.setContext(e.getPointLabelContext(c));i[c]=a.padding;let l=e.getPointPosition(c,e.drawingArea+i[c],s),u=fu(a.font),d=ag(e.ctx,u,e._pointLabels[c]);r[c]=d;let f=Zc(e.getIndexAngle(c)+s),p=Math.round(Kc(f));cg(n,t,f,og(p,l.x,d.w,0,180),og(p,l.y,d.h,90,270))}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=dg(e,r,i)}function cg(e,t,n,r,i){let a=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n)),s=0,c=0;r.start<t.l?(s=(t.l-r.start)/a,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),i.start<t.t?(c=(t.t-i.start)/o,e.t=Math.min(e.t,t.t-c)):i.end>t.b&&(c=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+c))}function lg(e,t,n){let r=e.drawingArea,{extra:i,additionalAngle:a,padding:o,size:s}=n,c=e.getPointPosition(t,r+i+o,a),l=Math.round(Kc(Zc(c.angle+Nc))),u=mg(c.y,s.h,l),d=fg(l),f=pg(c.x,s.w,d);return{visible:!0,x:c.x,y:u,textAlign:d,left:f,top:u,right:f+s.w,bottom:u+s.h}}function ug(e,t){if(!t)return!0;let{left:n,top:r,right:i,bottom:a}=e;return!(Jl({x:n,y:r},t)||Jl({x:n,y:a},t)||Jl({x:i,y:r},t)||Jl({x:i,y:a},t))}function dg(e,t,n){let r=[],i=e._pointLabels.length,a=e.options,{centerPointLabels:o,display:s}=a.pointLabels,c={extra:ig(a)/2,additionalAngle:o?Oc/i:0},l;for(let a=0;a<i;a++){c.padding=n[a],c.size=t[a];let i=lg(e,a,c);r.push(i),s===`auto`&&(i.visible=ug(i,l),i.visible&&(l=i))}return r}function fg(e){return e===0||e===180?`center`:e<180?`left`:`right`}function pg(e,t,n){return n===`right`?e-=t:n===`center`&&(e-=t/2),e}function mg(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function hg(e,t,n){let{left:r,top:i,right:a,bottom:o}=n,{backdropColor:s}=t;if(!rc(s)){let n=uu(t.borderRadius),c=du(t.backdropPadding);e.fillStyle=s;let l=r-c.left,u=i-c.top,d=a-r+c.width,f=o-i+c.height;Object.values(n).some(e=>e!==0)?(e.beginPath(),ru(e,{x:l,y:u,w:d,h:f,radius:n}),e.fill()):e.fillRect(l,u,d,f)}}function gg(e,t){let{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){let t=e._pointLabelItems[i];if(!t.visible)continue;let a=r.setContext(e.getPointLabelContext(i));hg(n,a,t);let o=fu(a.font),{x:s,y:c,textAlign:l}=t;nu(n,e._pointLabels[i],s,c+o.lineHeight/2,o,{color:a.color,textAlign:l,textBaseline:`middle`})}}function _g(e,t,n,r){let{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,kc);else{let n=e.getPointPosition(0,t);i.moveTo(n.x,n.y);for(let a=1;a<r;a++)n=e.getPointPosition(a,t),i.lineTo(n.x,n.y)}}function vg(e,t,n,r,i){let a=e.ctx,o=t.circular,{color:s,lineWidth:c}=t;!o&&!r||!s||!c||n<0||(a.save(),a.strokeStyle=s,a.lineWidth=c,a.setLineDash(i.dash||[]),a.lineDashOffset=i.dashOffset,a.beginPath(),_g(e,n,o,r),a.closePath(),a.stroke(),a.restore())}function yg(e,t,n){return hu(e,{label:n,index:t,type:`pointLabel`})}(class extends Xh{static id=`radialLinear`;static defaults={display:!0,animate:!0,position:`chartArea`,angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Pl.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":`borderColor`,"pointLabels.color":`color`,"ticks.color":`color`};static descriptors={angleLines:{_fallback:`grid`}};constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let e=this._padding=du(ig(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}determineDataLimits(){let{min:e,max:t}=this.getMinMax(!1);this.min=oc(e)&&!isNaN(e)?e:0,this.max=oc(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/ig(this.options))}generateTickLabels(e){Xh.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((e,t)=>{let n=uc(this.options.pointLabels.callback,[e,t],this);return n||n===0?n:``}).filter((e,t)=>this.chart.getDataVisibility(t))}fit(){let e=this.options;e.display&&e.pointLabels.display?sg(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}getIndexAngle(e){let t=kc/(this._pointLabels.length||1),n=this.options.startAngle||0;return Zc(e*t+Gc(n))}getDistanceFromCenterForValue(e){if(rc(e))return NaN;let t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(rc(e))return NaN;let t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){let t=this._pointLabels||[];if(e>=0&&e<t.length){let n=t[e];return yg(this.getContext(),e,n)}}getPointPosition(e,t,n=0){let r=this.getIndexAngle(e)-Nc+n;return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter,angle:r}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){let{left:t,top:n,right:r,bottom:i}=this._pointLabelItems[e];return{left:t,top:n,right:r,bottom:i}}drawBackground(){let{backgroundColor:e,grid:{circular:t}}=this.options;if(e){let n=this.ctx;n.save(),n.beginPath(),_g(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),n.closePath(),n.fillStyle=e,n.fill(),n.restore()}}drawGrid(){let e=this.ctx,t=this.options,{angleLines:n,grid:r,border:i}=t,a=this._pointLabels.length,o,s,c;if(t.pointLabels.display&&gg(this,a),r.display&&this.ticks.forEach((e,t)=>{if(t!==0||t===0&&this.min<0){s=this.getDistanceFromCenterForValue(e.value);let n=this.getContext(t),o=r.setContext(n),c=i.setContext(n);vg(this,o,s,a,c)}}),n.display){for(e.save(),o=a-1;o>=0;o--){let r=n.setContext(this.getPointLabelContext(o)),{color:i,lineWidth:a}=r;!a||!i||(e.lineWidth=a,e.strokeStyle=i,e.setLineDash(r.borderDash),e.lineDashOffset=r.borderDashOffset,s=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),c=this.getPointPosition(o,s),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){let e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;let r=this.getIndexAngle(0),i,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign=`center`,e.textBaseline=`middle`,this.ticks.forEach((r,o)=>{if(o===0&&this.min>=0&&!t.reverse)return;let s=n.setContext(this.getContext(o)),c=fu(s.font);if(i=this.getDistanceFromCenterForValue(this.ticks[o].value),s.showLabelBackdrop){e.font=c.string,a=e.measureText(r.label).width,e.fillStyle=s.backdropColor;let t=du(s.backdropPadding);e.fillRect(-a/2-t.left,-i-c.size/2-t.top,a+t.width,c.size+t.height)}nu(e,r.label,0,-i,c,{color:s.color,strokeColor:s.textStrokeColor,strokeWidth:s.textStrokeWidth})}),e.restore()}drawTitle(){}});var bg={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}},xg=Object.keys(bg);function Sg(e,t){return e-t}function Cg(e,t){if(rc(t))return null;let n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts,o=t;return typeof r==`function`&&(o=r(o)),oc(o)||(o=typeof r==`string`?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i===`week`&&(Hc(a)||a===!0)?n.startOf(o,`isoWeek`,a):n.startOf(o,i)),+o)}function wg(e,t,n,r){let i=xg.length;for(let a=xg.indexOf(e);a<i-1;++a){let e=bg[xg[a]],i=e.steps?e.steps:2**53-1;if(e.common&&Math.ceil((n-t)/(i*e.size))<=r)return xg[a]}return xg[i-1]}function Tg(e,t,n,r,i){for(let a=xg.length-1;a>=xg.indexOf(n);a--){let n=xg[a];if(bg[n].common&&e._adapter.diff(i,r,n)>=t-1)return n}return xg[n?xg.indexOf(n):0]}function Eg(e){for(let t=xg.indexOf(e)+1,n=xg.length;t<n;++t)if(bg[xg[t]].common)return xg[t]}function Dg(e,t,n){if(!n)e[t]=!0;else if(n.length){let{lo:r,hi:i}=nl(n,t),a=n[r]>=t?n[r]:n[i];e[a]=!0}}function Og(e,t,n,r){let i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value,s,c;for(s=a;s<=o;s=+i.add(s,1,r))c=n[s],c>=0&&(t[c].major=!0);return t}function kg(e,t,n){let r=[],i={},a=t.length,o,s;for(o=0;o<a;++o)s=t[o],i[s]=o,r.push({value:s,major:!1});return a===0||!n?r:Og(e,r,i,n)}var Ag=class extends Vp{static id=`time`;static defaults={bounds:`data`,adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:`millisecond`,displayFormats:{}},ticks:{source:`auto`,callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit=`day`,this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t={}){let n=e.time||={},r=this._adapter=new Tf._date(e.adapters.date);r.init(t),_c(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return e===void 0?null:Cg(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let e=this.options,t=this._adapter,n=e.time.unit||`day`,{min:r,max:i,minDefined:a,maxDefined:o}=this.getUserBounds();function s(e){!a&&!isNaN(e.min)&&(r=Math.min(r,e.min)),!o&&!isNaN(e.max)&&(i=Math.max(i,e.max))}(!a||!o)&&(s(this._getLabelBounds()),(e.bounds!==`ticks`||e.ticks.source!==`labels`)&&s(this.getMinMax(!1))),r=oc(r)&&!isNaN(r)?r:+t.startOf(Date.now(),n),i=oc(i)&&!isNaN(i)?i:+t.endOf(Date.now(),n)+1,this.min=Math.min(r,i-1),this.max=Math.max(r+1,i)}_getLabelBounds(){let e=this.getLabelTimestamps(),t=1/0,n=-1/0;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){let e=this.options,t=e.time,n=e.ticks,r=n.source===`labels`?this.getLabelTimestamps():this._generate();e.bounds===`ticks`&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);let i=this.min,a=this.max,o=al(r,i,a);return this._unit=t.unit||(n.autoSkip?wg(t.minUnit,this.min,this.max,this._getLabelCapacity(i)):Tg(this,o.length,t.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit===`year`?void 0:Eg(this._unit),this.initOffsets(r),e.reverse&&o.reverse(),kg(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let t=0,n=0,r,i;this.options.offset&&e.length&&(r=this.getDecimalForValue(e[0]),t=e.length===1?1-r:(this.getDecimalForValue(e[1])-r)/2,i=this.getDecimalForValue(e[e.length-1]),n=e.length===1?i:(i-this.getDecimalForValue(e[e.length-2]))/2);let a=e.length<3?.5:.25;t=$c(t,0,a),n=$c(n,0,a),this._offsets={start:t,end:n,factor:1/(t+1+n)}}_generate(){let e=this._adapter,t=this.min,n=this.max,r=this.options,i=r.time,a=i.unit||wg(i.minUnit,t,n,this._getLabelCapacity(t)),o=U(r.ticks.stepSize,1),s=a===`week`?i.isoWeekday:!1,c=Hc(s)||s===!0,l={},u=t,d,f;if(c&&(u=+e.startOf(u,`isoWeek`,s)),u=+e.startOf(u,c?`day`:a),e.diff(n,t,a)>1e5*o)throw Error(t+` and `+n+` are too far apart with stepSize of `+o+` `+a);let p=r.ticks.source===`data`&&this.getDataTimestamps();for(d=u,f=0;d<n;d=+e.add(d,o,a),f++)Dg(l,d,p);return(d===n||r.bounds===`ticks`||f===1)&&Dg(l,d,p),Object.keys(l).sort(Sg).map(e=>+e)}getLabelForValue(e){let t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){let n=this.options.time.displayFormats,r=this._unit,i=t||n[r];return this._adapter.format(e,i)}_tickFormatFunction(e,t,n,r){let i=this.options,a=i.ticks.callback;if(a)return uc(a,[e,t,n],this);let o=i.time.displayFormats,s=this._unit,c=this._majorUnit,l=s&&o[s],u=c&&o[c],d=n[t],f=c&&u&&d&&d.major;return this._adapter.format(e,r||(f?u:l))}generateTickLabels(e){let t,n,r;for(t=0,n=e.length;t<n;++t)r=e[t],r.label=this._tickFormatFunction(r.value,t,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){let t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}getValueForPixel(e){let t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){let t=this.options.ticks,n=this.ctx.measureText(e).width,r=Gc(this.isHorizontal()?t.maxRotation:t.minRotation),i=Math.cos(r),a=Math.sin(r),o=this._resolveTickFontOptions(0).size;return{w:n*i+o*a,h:n*a+o*i}}_getLabelCapacity(e){let t=this.options.time,n=t.displayFormats,r=n[t.unit]||n.millisecond,i=this._tickFormatFunction(e,0,kg(this,[e],this._majorUnit),r),a=this._getLabelSize(i),o=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return o>0?o:1}getDataTimestamps(){let e=this._cache.data||[],t,n;if(e.length)return e;let r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,n=r.length;t<n;++t)e=e.concat(r[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){let e=this._cache.labels||[],t,n;if(e.length)return e;let r=this.getLabels();for(t=0,n=r.length;t<n;++t)e.push(Cg(this,r[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return ll(e.sort(Sg))}};function jg(e,t,n){let r=0,i=e.length-1,a,o,s,c;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=rl(e,`pos`,t)),{pos:a,time:s}=e[r],{pos:o,time:c}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=rl(e,`time`,t)),{time:a,pos:s}=e[r],{time:o,pos:c}=e[i]);let l=o-a;return l?s+(c-s)*(t-a)/l:s}(class extends Ag{static id=`timeseries`;static defaults=Ag.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=jg(t,this.min),this._tableRange=jg(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){let{min:t,max:n}=this,r=[],i=[],a,o,s,c,l;for(a=0,o=e.length;a<o;++a)c=e[a],c>=t&&c<=n&&r.push(c);if(r.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(a=0,o=r.length;a<o;++a)l=r[a+1],s=r[a-1],c=r[a],Math.round((l+s)/2)!==c&&i.push({time:c,pos:a/(o-1)});return i}_generate(){let e=this.min,t=this.max,n=super.getDataTimestamps();return(!n.includes(e)||!n.length)&&n.splice(0,0,e),(!n.includes(t)||n.length===1)&&n.push(t),n.sort((e,t)=>e-t)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;let t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(jg(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){let t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return jg(this._table,n*this._tableRange+this._minPos,!0)}});var Mg=`label`;function Ng(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function Pg(e,t){let n=e.options;n&&t&&Object.assign(n,t)}function Fg(e,t){e.labels=t}function Ig(e,t,n=Mg){let r=[];e.datasets=t.map(t=>{let i=e.datasets.find(e=>e[n]===t[n]);return!i||!t.data||r.includes(i)?{...t}:(r.push(i),Object.assign(i,t),i)})}function Lg(e,t=Mg){let n={labels:[],datasets:[]};return Fg(n,e.labels),Ig(n,e.datasets,t),n}function Rg(e,t){let{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:o,data:s,options:c,plugins:l=[],fallbackContent:u,updateMode:d,...p}=e,m=(0,f.useRef)(null),h=(0,f.useRef)(null),g=()=>{m.current&&(h.current=new km(m.current,{type:o,data:Lg(s,a),options:c&&{...c},plugins:l}),Ng(t,h.current))},_=()=>{Ng(t,null),h.current&&=(h.current.destroy(),null)};return(0,f.useEffect)(()=>{!i&&h.current&&c&&Pg(h.current,c)},[i,c]),(0,f.useEffect)(()=>{!i&&h.current&&Fg(h.current.config.data,s.labels)},[i,s.labels]),(0,f.useEffect)(()=>{!i&&h.current&&s.datasets&&Ig(h.current.config.data,s.datasets,a)},[i,s.datasets]),(0,f.useEffect)(()=>{h.current&&(i?(_(),setTimeout(g)):h.current.update(d))},[i,c,s.labels,s.datasets,d]),(0,f.useEffect)(()=>{h.current&&(_(),setTimeout(g))},[o]),(0,f.useEffect)(()=>(g(),()=>_()),[]),(0,v.jsx)(`canvas`,{ref:m,role:`img`,height:n,width:r,...p,children:u})}var zg=(0,f.forwardRef)(Rg);function Bg(e,t){return km.register(t),(0,f.forwardRef)((t,n)=>(0,v.jsx)(zg,{...t,ref:n,type:e}))}var Vg=Bg(`line`,Sf),Hg=Bg(`bar`,yf),Ug=Bg(`pie`,Cf),Wg=365.2425,Gg=6048e5,Kg=864e5,qg=6e4,Jg=36e5,Yg=1e3,Xg=3600*24;Xg*7,Xg*Wg/12*3;var Zg=Symbol.for(`constructDateFrom`);function Qg(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Zg in e?e[Zg](t):e instanceof Date?new e.constructor(t):new Date(t)}function W(e,t){return Qg(t||e,e)}function $g(e,t,n){let r=W(e,n?.in);return isNaN(t)?Qg(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function e_(e,t,n){let r=W(e,n?.in);if(isNaN(t))return Qg(n?.in||e,NaN);if(!t)return r;let i=r.getDate(),a=Qg(n?.in||e,r.getTime());return a.setMonth(r.getMonth()+t+1,0),i>=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function t_(e,t,n){return Qg(n?.in||e,+W(e)+t)}function n_(e,t,n){return t_(e,t*Jg,n)}var r_={};function i_(){return r_}function a_(e,t){let n=i_(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=W(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function o_(e,t){return a_(e,{...t,weekStartsOn:1})}function s_(e,t){let n=W(e,t?.in),r=n.getFullYear(),i=Qg(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=o_(i),o=Qg(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=o_(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function c_(e){let t=W(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 l_(e,...t){let n=Qg.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function u_(e,t){let n=W(e,t?.in);return n.setHours(0,0,0,0),n}function d_(e,t,n){let[r,i]=l_(n?.in,e,t),a=u_(r),o=u_(i),s=+a-c_(a),c=+o-c_(o);return Math.round((s-c)/Kg)}function f_(e,t){let n=s_(e,t),r=Qg(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),o_(r)}function p_(e,t,n){let r=W(e,n?.in);return r.setTime(r.getTime()+t*qg),r}function m_(e,t,n){return e_(e,t*3,n)}function h_(e,t,n){return t_(e,t*1e3,n)}function g_(e,t,n){return $g(e,t*7,n)}function __(e,t,n){return e_(e,t*12,n)}function v_(e,t){let n=W(e)-+W(t);return n<0?-1:n>0?1:n}function y_(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function b_(e){return!(!y_(e)&&typeof e!=`number`||isNaN(+W(e)))}function x_(e,t,n){let[r,i]=l_(n?.in,e,t),a=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return a*12+o}function S_(e,t,n){let[r,i]=l_(n?.in,e,t);return r.getFullYear()-i.getFullYear()}function C_(e,t,n){let[r,i]=l_(n?.in,e,t),a=w_(r,i),o=Math.abs(d_(r,i));r.setDate(r.getDate()-a*o);let s=a*(o-Number(w_(r,i)===-a));return s===0?0:s}function w_(e,t){let 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 T_(e){return t=>{let n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function E_(e,t,n){let[r,i]=l_(n?.in,e,t),a=(r-+i)/Jg;return T_(n?.roundingMethod)(a)}function D_(e,t){return W(e)-+W(t)}function O_(e,t,n){let r=D_(e,t)/qg;return T_(n?.roundingMethod)(r)}function k_(e,t){let n=W(e,t?.in);return n.setHours(23,59,59,999),n}function A_(e,t){let n=W(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function j_(e,t){let n=W(e,t?.in);return+k_(n,t)==+A_(n,t)}function M_(e,t,n){let[r,i,a]=l_(n?.in,e,e,t),o=v_(i,a),s=Math.abs(x_(i,a));if(s<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-o*s);let c=v_(i,a)===-o;j_(r)&&s===1&&v_(r,a)===1&&(c=!1);let l=o*(s-+c);return l===0?0:l}function N_(e,t,n){let r=M_(e,t,n)/3;return T_(n?.roundingMethod)(r)}function P_(e,t,n){let r=D_(e,t)/1e3;return T_(n?.roundingMethod)(r)}function F_(e,t,n){let r=C_(e,t,n)/7;return T_(n?.roundingMethod)(r)}function I_(e,t,n){let[r,i]=l_(n?.in,e,t),a=v_(r,i),o=Math.abs(S_(r,i));r.setFullYear(1584),i.setFullYear(1584);let s=a*(o-+(v_(r,i)===-a));return s===0?0:s}function L_(e,t){let n=W(e,t?.in),r=n.getMonth(),i=r-r%3;return n.setMonth(i,1),n.setHours(0,0,0,0),n}function R_(e,t){let n=W(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function z_(e,t){let n=W(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function B_(e,t){let n=W(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function V_(e,t){let n=W(e,t?.in);return n.setMinutes(59,59,999),n}function H_(e,t){let n=i_(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=W(e,t?.in),a=i.getDay(),o=(a<r?-7:0)+6-(a-r);return i.setDate(i.getDate()+o),i.setHours(23,59,59,999),i}function U_(e,t){let n=W(e,t?.in);return n.setSeconds(59,999),n}function W_(e,t){let n=W(e,t?.in),r=n.getMonth(),i=r-r%3+3;return n.setMonth(i,0),n.setHours(23,59,59,999),n}function G_(e,t){let n=W(e,t?.in);return n.setMilliseconds(999),n}var K_={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`}},q_=(e,t,n)=>{let r,i=K_[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function J_(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var Y_={date:J_({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:J_({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:J_({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},X_={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},Z_=(e,t,n,r)=>X_[e];function Q_(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var $_={ordinalNumber:(e,t)=>{let 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:Q_({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:Q_({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:Q_({values:{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`]},defaultWidth:`wide`}),day:Q_({values:{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`]},defaultWidth:`wide`}),dayPeriod:Q_({values:{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`}},defaultWidth:`wide`,formattingValues:{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`}},defaultFormattingWidth:`wide`})};function ev(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?nv(s,e=>e.test(o)):tv(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function tv(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function nv(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function rv(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var iv={code:`en-US`,formatDistance:q_,formatLong:Y_,formatRelative:Z_,localize:$_,match:{ordinalNumber:rv({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:ev({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:ev({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:ev({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),day:ev({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),dayPeriod:ev({matchPatterns:{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},defaultMatchWidth:`any`,parsePatterns:{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}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function av(e,t){let n=W(e,t?.in);return d_(n,B_(n))+1}function ov(e,t){let n=W(e,t?.in),r=o_(n)-+f_(n);return Math.round(r/Gg)+1}function sv(e,t){let n=W(e,t?.in),r=n.getFullYear(),i=i_(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=Qg(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=a_(o,t),c=Qg(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=a_(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function cv(e,t){let n=i_(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=sv(e,t),a=Qg(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),a_(a,t)}function lv(e,t){let n=W(e,t?.in),r=a_(n,t)-+cv(n,t);return Math.round(r/Gg)+1}function uv(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var dv={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return uv(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):uv(n+1,2)},d(e,t){return uv(e.getDate(),t.length)},a(e,t){let 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];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return uv(e.getHours()%12||12,t.length)},H(e,t){return uv(e.getHours(),t.length)},m(e,t){return uv(e.getMinutes(),t.length)},s(e,t){return uv(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return uv(Math.trunc(r*10**(n-3)),t.length)}},fv={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},pv={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return dv.y(e,t)},Y:function(e,t,n,r){let i=sv(e,r),a=i>0?i:1-i;return t===`YY`?uv(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):uv(a,t.length)},R:function(e,t){return uv(s_(e),t.length)},u:function(e,t){return uv(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return uv(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`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return uv(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`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return dv.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`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return uv(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`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=lv(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):uv(i,t.length)},I:function(e,t,n){let r=ov(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):uv(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):dv.d(e,t)},D:function(e,t,n){let r=av(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):uv(r,t.length)},E:function(e,t,n){let 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`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return uv(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return uv(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return uv(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?fv.noon:r===0?fv.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?fv.evening:r>=12?fv.afternoon:r>=4?fv.morning:fv.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return dv.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):dv.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):uv(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):uv(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):dv.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):dv.s(e,t)},S:function(e,t){return dv.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return hv(r);case`XXXX`:case`XX`:return gv(r);default:return gv(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return hv(r);case`xxxx`:case`xx`:return gv(r);default:return gv(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+mv(r,`:`);default:return`GMT`+gv(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+mv(r,`:`);default:return`GMT`+gv(r,`:`)}},t:function(e,t,n){return uv(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return uv(+e,t.length)}};function mv(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+uv(a,2)}function hv(e,t){return e%60==0?(e>0?`-`:`+`)+uv(Math.abs(e)/60,2):gv(e,t)}function gv(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=uv(Math.trunc(r/60),2),a=uv(r%60,2);return n+i+t+a}var _v=(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`});default:return t.date({width:`full`})}},vv=(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`});default:return t.time({width:`full`})}},yv={p:vv,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return _v(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`});break}return a.replace(`{{date}}`,_v(r,t)).replace(`{{time}}`,vv(i,t))}},bv=/^D+$/,xv=/^Y+$/,Sv=[`D`,`DD`,`YY`,`YYYY`];function Cv(e){return bv.test(e)}function wv(e){return xv.test(e)}function Tv(e,t,n){let r=Ev(e,t,n);if(console.warn(r),Sv.includes(e))throw RangeError(r)}function Ev(e,t,n){let 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`}var Dv=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ov=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,kv=/^'([^]*?)'?$/,Av=/''/g,jv=/[a-zA-Z]/;function Mv(e,t,n){let r=i_(),i=n?.locale??r.locale??iv,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=W(e,n?.in);if(!b_(s))throw RangeError(`Invalid time value`);let c=t.match(Ov).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=yv[t];return n(e,i.formatLong)}return e}).join(``).match(Dv).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:Nv(e)};if(pv[t])return{isToken:!0,value:e};if(t.match(jv))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&wv(a)||!n?.useAdditionalDayOfYearTokens&&Cv(a))&&Tv(a,t,String(e));let o=pv[a[0]];return o(s,a,i.localize,l)}).join(``)}function Nv(e){let t=e.match(kv);return t?t[1].replace(Av,`'`):e}function Pv(){return Object.assign({},i_())}function Fv(e,t){let n=W(e,t?.in).getDay();return n===0?7:n}function Iv(e,t){let n=Lv(t)?new t(0):Qg(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function Lv(e){return typeof e==`function`&&e.prototype?.constructor===e}var Rv=10,zv=class{subPriority=0;validate(e,t){return!0}},Bv=class extends zv{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},Vv=class extends zv{priority=Rv;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>Qg(t,e))}set(e,t){return t.timestampIsSet?e:Qg(e,Iv(e,this.context))}},Hv=class{run(e,t,n,r){let i=this.parse(e,t,n,r);return i?{setter:new Bv(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}},Uv=class extends Hv{priority=140;parse(e,t,n){switch(t){case`G`:case`GG`:case`GGG`:return n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`});case`GGGGG`:return n.era(e,{width:`narrow`});default:return n.era(e,{width:`wide`})||n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`R`,`u`,`t`,`T`]},Wv={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}/},Gv={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 Kv(e,t){return e&&{value:t(e.value),rest:e.rest}}function qv(e,t){let n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Jv(e,t){let n=t.match(e);if(!n)return null;if(n[0]===`Z`)return{value:0,rest:t.slice(1)};let r=n[1]===`+`?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*Jg+a*qg+o*Yg),rest:t.slice(n[0].length)}}function Yv(e){return qv(Wv.anyDigitsSigned,e)}function Xv(e,t){switch(e){case 1:return qv(Wv.singleDigit,t);case 2:return qv(Wv.twoDigits,t);case 3:return qv(Wv.threeDigits,t);case 4:return qv(Wv.fourDigits,t);default:return qv(RegExp(`^\\d{1,`+e+`}`),t)}}function Zv(e,t){switch(e){case 1:return qv(Wv.singleDigitSigned,t);case 2:return qv(Wv.twoDigitsSigned,t);case 3:return qv(Wv.threeDigitsSigned,t);case 4:return qv(Wv.fourDigitsSigned,t);default:return qv(RegExp(`^-?\\d{1,`+e+`}`),t)}}function Qv(e){switch(e){case`morning`:return 4;case`evening`:return 17;case`pm`:case`noon`:case`afternoon`:return 12;default:return 0}}function $v(e,t){let n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{let t=r+50,n=Math.trunc(t/100)*100,a=e>=t%100;i=e+n-(a?100:0)}return n?i:1-i}function ey(e){return e%400==0||e%4==0&&e%100!=0}var ty=class extends Hv{priority=130;incompatibleTokens=[`Y`,`R`,`u`,`w`,`I`,`i`,`e`,`c`,`t`,`T`];parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`yy`});switch(t){case`y`:return Kv(Xv(4,e),r);case`yo`:return Kv(n.ordinalNumber(e,{unit:`year`}),r);default:return Kv(Xv(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){let r=e.getFullYear();if(n.isTwoDigitYear){let t=$v(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}let i=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}},ny=class extends Hv{priority=130;parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`YY`});switch(t){case`Y`:return Kv(Xv(4,e),r);case`Yo`:return Kv(n.ordinalNumber(e,{unit:`year`}),r);default:return Kv(Xv(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){let i=sv(e,r);if(n.isTwoDigitYear){let t=$v(n.year,i);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),a_(e,r)}let a=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),a_(e,r)}incompatibleTokens=[`y`,`R`,`u`,`Q`,`q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]},ry=class extends Hv{priority=130;parse(e,t){return Zv(t===`R`?4:t.length,e)}set(e,t,n){let r=Qg(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),o_(r)}incompatibleTokens=[`G`,`y`,`Y`,`u`,`Q`,`q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},iy=class extends Hv{priority=130;parse(e,t){return Zv(t===`u`?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`G`,`y`,`Y`,`R`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]},ay=class extends Hv{priority=120;parse(e,t,n){switch(t){case`Q`:case`QQ`:return Xv(t.length,e);case`Qo`:return n.ordinalNumber(e,{unit:`quarter`});case`QQQ`:return n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`});case`QQQQQ`:return n.quarter(e,{width:`narrow`,context:`formatting`});default:return n.quarter(e,{width:`wide`,context:`formatting`})||n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},oy=class extends Hv{priority=120;parse(e,t,n){switch(t){case`q`:case`qq`:return Xv(t.length,e);case`qo`:return n.ordinalNumber(e,{unit:`quarter`});case`qqq`:return n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`});case`qqqqq`:return n.quarter(e,{width:`narrow`,context:`standalone`});default:return n.quarter(e,{width:`wide`,context:`standalone`})||n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`Q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},sy=class extends Hv{incompatibleTokens=[`Y`,`R`,`q`,`Q`,`L`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`];priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`M`:return Kv(qv(Wv.month,e),r);case`MM`:return Kv(Xv(2,e),r);case`Mo`:return Kv(n.ordinalNumber(e,{unit:`month`}),r);case`MMM`:return n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`});case`MMMMM`:return n.month(e,{width:`narrow`,context:`formatting`});default:return n.month(e,{width:`wide`,context:`formatting`})||n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},cy=class extends Hv{priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`L`:return Kv(qv(Wv.month,e),r);case`LL`:return Kv(Xv(2,e),r);case`Lo`:return Kv(n.ordinalNumber(e,{unit:`month`}),r);case`LLL`:return n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`});case`LLLLL`:return n.month(e,{width:`narrow`,context:`standalone`});default:return n.month(e,{width:`wide`,context:`standalone`})||n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]};function ly(e,t,n){let r=W(e,n?.in),i=lv(r,n)-t;return r.setDate(r.getDate()-i*7),W(r,n?.in)}var uy=class extends Hv{priority=100;parse(e,t,n){switch(t){case`w`:return qv(Wv.week,e);case`wo`:return n.ordinalNumber(e,{unit:`week`});default:return Xv(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return a_(ly(e,n,r),r)}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]};function dy(e,t,n){let r=W(e,n?.in),i=ov(r,n)-t;return r.setDate(r.getDate()-i*7),r}var fy=class extends Hv{priority=100;parse(e,t,n){switch(t){case`I`:return qv(Wv.week,e);case`Io`:return n.ordinalNumber(e,{unit:`week`});default:return Xv(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return o_(dy(e,n))}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},py=[31,28,31,30,31,30,31,31,30,31,30,31],my=[31,29,31,30,31,30,31,31,30,31,30,31],hy=class extends Hv{priority=90;subPriority=1;parse(e,t,n){switch(t){case`d`:return qv(Wv.date,e);case`do`:return n.ordinalNumber(e,{unit:`date`});default:return Xv(t.length,e)}}validate(e,t){let n=ey(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=my[r]:t>=1&&t<=py[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]},gy=class extends Hv{priority=90;subpriority=1;parse(e,t,n){switch(t){case`D`:case`DD`:return qv(Wv.dayOfYear,e);case`Do`:return n.ordinalNumber(e,{unit:`date`});default:return Xv(t.length,e)}}validate(e,t){return ey(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`L`,`w`,`I`,`d`,`E`,`i`,`e`,`c`,`t`,`T`]};function _y(e,t,n){let r=i_(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=W(e,n?.in),o=a.getDay(),s=(t%7+7)%7,c=7-i;return $g(a,t<0||t>6?t-(o+c)%7:(s+c)%7-(o+c)%7,n)}var vy=class extends Hv{priority=90;parse(e,t,n){switch(t){case`E`:case`EE`:case`EEE`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`EEEEE`:return n.day(e,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=_y(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`D`,`i`,`e`,`c`,`t`,`T`]},yy=class extends Hv{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`e`:case`ee`:return Kv(Xv(t.length,e),i);case`eo`:return Kv(n.ordinalNumber(e,{unit:`day`}),i);case`eee`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`eeeee`:return n.day(e,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=_y(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`c`,`t`,`T`]},by=class extends Hv{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`c`:case`cc`:return Kv(Xv(t.length,e),i);case`co`:return Kv(n.ordinalNumber(e,{unit:`day`}),i);case`ccc`:return n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});case`ccccc`:return n.day(e,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});default:return n.day(e,{width:`wide`,context:`standalone`})||n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=_y(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`e`,`t`,`T`]};function xy(e,t,n){let r=W(e,n?.in);return $g(r,t-Fv(r,n),n)}var Sy=class extends Hv{priority=90;parse(e,t,n){let r=e=>e===0?7:e;switch(t){case`i`:case`ii`:return Xv(t.length,e);case`io`:return n.ordinalNumber(e,{unit:`day`});case`iii`:return Kv(n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiii`:return Kv(n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiiii`:return Kv(n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);default:return Kv(n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=xy(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`E`,`e`,`c`,`t`,`T`]},Cy=class extends Hv{priority=80;parse(e,t,n){switch(t){case`a`:case`aa`:case`aaa`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`aaaaa`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(Qv(n),0,0,0),e}incompatibleTokens=[`b`,`B`,`H`,`k`,`t`,`T`]},wy=class extends Hv{priority=80;parse(e,t,n){switch(t){case`b`:case`bb`:case`bbb`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`bbbbb`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(Qv(n),0,0,0),e}incompatibleTokens=[`a`,`B`,`H`,`k`,`t`,`T`]},Ty=class extends Hv{priority=80;parse(e,t,n){switch(t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`BBBBB`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(Qv(n),0,0,0),e}incompatibleTokens=[`a`,`b`,`t`,`T`]},Ey=class extends Hv{priority=70;parse(e,t,n){switch(t){case`h`:return qv(Wv.hour12h,e);case`ho`:return n.ordinalNumber(e,{unit:`hour`});default:return Xv(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){let r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):!r&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`H`,`K`,`k`,`t`,`T`]},Dy=class extends Hv{priority=70;parse(e,t,n){switch(t){case`H`:return qv(Wv.hour23h,e);case`Ho`:return n.ordinalNumber(e,{unit:`hour`});default:return Xv(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`K`,`k`,`t`,`T`]},Oy=class extends Hv{priority=70;parse(e,t,n){switch(t){case`K`:return qv(Wv.hour11h,e);case`Ko`:return n.ordinalNumber(e,{unit:`hour`});default:return Xv(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`h`,`H`,`k`,`t`,`T`]},ky=class extends Hv{priority=70;parse(e,t,n){switch(t){case`k`:return qv(Wv.hour24h,e);case`ko`:return n.ordinalNumber(e,{unit:`hour`});default:return Xv(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){let r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`H`,`K`,`t`,`T`]},Ay=class extends Hv{priority=60;parse(e,t,n){switch(t){case`m`:return qv(Wv.minute,e);case`mo`:return n.ordinalNumber(e,{unit:`minute`});default:return Xv(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=[`t`,`T`]},jy=class extends Hv{priority=50;parse(e,t,n){switch(t){case`s`:return qv(Wv.second,e);case`so`:return n.ordinalNumber(e,{unit:`second`});default:return Xv(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=[`t`,`T`]},My=class extends Hv{priority=30;parse(e,t){return Kv(Xv(t.length,e),e=>Math.trunc(e*10**(-t.length+3)))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=[`t`,`T`]},Ny=class extends Hv{priority=10;parse(e,t){switch(t){case`X`:return Jv(Gv.basicOptionalMinutes,e);case`XX`:return Jv(Gv.basic,e);case`XXXX`:return Jv(Gv.basicOptionalSeconds,e);case`XXXXX`:return Jv(Gv.extendedOptionalSeconds,e);default:return Jv(Gv.extended,e)}}set(e,t,n){return t.timestampIsSet?e:Qg(e,e.getTime()-c_(e)-n)}incompatibleTokens=[`t`,`T`,`x`]},Py=class extends Hv{priority=10;parse(e,t){switch(t){case`x`:return Jv(Gv.basicOptionalMinutes,e);case`xx`:return Jv(Gv.basic,e);case`xxxx`:return Jv(Gv.basicOptionalSeconds,e);case`xxxxx`:return Jv(Gv.extendedOptionalSeconds,e);default:return Jv(Gv.extended,e)}}set(e,t,n){return t.timestampIsSet?e:Qg(e,e.getTime()-c_(e)-n)}incompatibleTokens=[`t`,`T`,`X`]},Fy=class extends Hv{priority=40;parse(e){return Yv(e)}set(e,t,n){return[Qg(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens=`*`},Iy=class extends Hv{priority=20;parse(e){return Yv(e)}set(e,t,n){return[Qg(e,n),{timestampIsSet:!0}]}incompatibleTokens=`*`},Ly={G:new Uv,y:new ty,Y:new ny,R:new ry,u:new iy,Q:new ay,q:new oy,M:new sy,L:new cy,w:new uy,I:new fy,d:new hy,D:new gy,E:new vy,e:new yy,c:new by,i:new Sy,a:new Cy,b:new wy,B:new Ty,h:new Ey,H:new Dy,K:new Oy,k:new ky,m:new Ay,s:new jy,S:new My,X:new Ny,x:new Py,t:new Fy,T:new Iy},Ry=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zy=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,By=/^'([^]*?)'?$/,Vy=/''/g,Hy=/\S/,Uy=/[a-zA-Z]/;function Wy(e,t,n,r){let i=()=>Qg(r?.in||n,NaN),a=Pv(),o=r?.locale??a.locale??iv,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(!t)return e?i():W(n,r?.in);let l={firstWeekContainsDate:s,weekStartsOn:c,locale:o},u=[new Vv(r?.in,n)],d=t.match(zy).map(e=>{let t=e[0];if(t in yv){let n=yv[t];return n(e,o.formatLong)}return e}).join(``).match(Ry),f=[];for(let n of d){!r?.useAdditionalWeekYearTokens&&wv(n)&&Tv(n,t,e),!r?.useAdditionalDayOfYearTokens&&Cv(n)&&Tv(n,t,e);let a=n[0],s=Ly[a];if(s){let{incompatibleTokens:t}=s;if(Array.isArray(t)){let e=f.find(e=>t.includes(e.token)||e.token===a);if(e)throw RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${n}\` at the same time`)}else if(s.incompatibleTokens===`*`&&f.length>0)throw RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);f.push({token:a,fullToken:n});let r=s.run(e,n,o.match,l);if(!r)return i();u.push(r.setter),e=r.rest}else{if(a.match(Uy))throw RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if(n===`''`?n=`'`:a===`'`&&(n=Gy(n)),e.indexOf(n)===0)e=e.slice(n.length);else return i()}}if(e.length>0&&Hy.test(e))return i();let p=u.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,n)=>n.indexOf(e)===t).map(e=>u.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]),m=W(n,r?.in);if(isNaN(+m))return i();let h={};for(let e of p){if(!e.validate(m,l))return i();let t=e.set(m,h,l);Array.isArray(t)?(m=t[0],Object.assign(h,t[1])):m=t}return m}function Gy(e){return e.match(By)[1].replace(Vy,`'`)}function Ky(e,t){let n=W(e,t?.in);return n.setMinutes(0,0,0),n}function qy(e,t){let n=W(e,t?.in);return n.setSeconds(0,0),n}function Jy(e,t){let n=W(e,t?.in);return n.setMilliseconds(0),n}function Yy(e,t){let n=()=>Qg(t?.in,NaN),r=t?.additionalDigits??2,i=eb(e),a;if(i.date){let e=tb(i.date,r);a=nb(e.restDateString,e.year)}if(!a||isNaN(+a))return n();let o=+a,s=0,c;if(i.time&&(s=ib(i.time),isNaN(s)))return n();if(i.timezone){if(c=ob(i.timezone),isNaN(c))return n()}else{let e=new Date(o+s),n=W(0,t?.in);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}return W(o+s+c,t?.in)}var Xy={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Zy=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Qy=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,$y=/^([+-])(\d{2})(?::?(\d{2}))?$/;function eb(e){let t={},n=e.split(Xy.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Xy.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Xy.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){let e=Xy.timezone.exec(r);e?(t.time=r.replace(e[1],``),t.timezone=e[1]):t.time=r}return t}function tb(e,t){let n=RegExp(`^(?:(\\d{4}|[+-]\\d{`+(4+t)+`})|(\\d{2}|[+-]\\d{`+(2+t)+`})$)`),r=e.match(n);if(!r)return{year:NaN,restDateString:``};let i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function nb(e,t){if(t===null)return new Date(NaN);let n=e.match(Zy);if(!n)return new Date(NaN);let r=!!n[4],i=rb(n[1]),a=rb(n[2])-1,o=rb(n[3]),s=rb(n[4]),c=rb(n[5])-1;if(r)return fb(t,s,c)?sb(t,s,c):new Date(NaN);{let e=new Date(0);return!ub(t,a,o)||!db(t,i)?new Date(NaN):(e.setUTCFullYear(t,a,Math.max(i,o)),e)}}function rb(e){return e?parseInt(e):1}function ib(e){let t=e.match(Qy);if(!t)return NaN;let n=ab(t[1]),r=ab(t[2]),i=ab(t[3]);return pb(n,r,i)?n*Jg+r*qg+i*1e3:NaN}function ab(e){return e&&parseFloat(e.replace(`,`,`.`))||0}function ob(e){if(e===`Z`)return 0;let t=e.match($y);if(!t)return 0;let n=t[1]===`+`?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return mb(r,i)?n*(r*Jg+i*qg):NaN}function sb(e,t,n){let r=new Date(0);r.setUTCFullYear(e,0,4);let i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}var cb=[31,null,31,30,31,30,31,31,30,31,30,31];function lb(e){return e%400==0||e%4==0&&e%100!=0}function ub(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(cb[t]||(lb(e)?29:28))}function db(e,t){return t>=1&&t<=(lb(e)?366:365)}function fb(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function pb(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function mb(e,t){return t>=0&&t<=59}var hb={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`};Tf._date.override({_id:`date-fns`,formats:function(){return hb},parse:function(e,t){if(e==null)return null;let n=typeof e;return n===`number`||e instanceof Date?e=W(e):n===`string`&&(e=typeof t==`string`?Wy(e,t,new Date,this.options):Yy(e,this.options)),b_(e)?e.getTime():null},format:function(e,t){return Mv(e,t,this.options)},add:function(e,t,n){switch(n){case`millisecond`:return t_(e,t);case`second`:return h_(e,t);case`minute`:return p_(e,t);case`hour`:return n_(e,t);case`day`:return $g(e,t);case`week`:return g_(e,t);case`month`:return e_(e,t);case`quarter`:return m_(e,t);case`year`:return __(e,t);default:return e}},diff:function(e,t,n){switch(n){case`millisecond`:return D_(e,t);case`second`:return P_(e,t);case`minute`:return O_(e,t);case`hour`:return E_(e,t);case`day`:return C_(e,t);case`week`:return F_(e,t);case`month`:return M_(e,t);case`quarter`:return N_(e,t);case`year`:return I_(e,t);default:return 0}},startOf:function(e,t,n){switch(t){case`second`:return Jy(e);case`minute`:return qy(e);case`hour`:return Ky(e);case`day`:return u_(e);case`week`:return a_(e);case`isoWeek`:return a_(e,{weekStartsOn:+n});case`month`:return R_(e);case`quarter`:return L_(e);case`year`:return B_(e);default:return e}},endOf:function(e,t){switch(t){case`second`:return G_(e);case`minute`:return U_(e);case`hour`:return V_(e);case`day`:return k_(e);case`week`:return H_(e);case`month`:return A_(e);case`quarter`:return W_(e);case`year`:return z_(e);default:return e}}});function gb(e,t){return process.env.NODE_ENV===`production`?()=>null:function(...n){return e(...n)||t(...n)}}function _b(e){let{prototype:t={}}=e;return!!t.isReactComponent}function vb(e,t,n,r,i){let a=e[t],o=i||t;if(a==null||typeof window>`u`)return null;let s,c=a.type;return typeof c==`function`&&!_b(c)&&(s=`Did you accidentally use a plain function component for an element instead?`),s===void 0?null:Error(`Invalid ${r} \`${o}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`)}var yb=gb(F.default.element,vb);yb.isRequired=gb(F.default.element.isRequired,vb);function bb(e){let{prototype:t={}}=e;return!!t.isReactComponent}function xb(e,t,n,r,i){let a=e[t],o=i||t;if(a==null||typeof window>`u`)return null;let s;return typeof a==`function`&&!bb(a)&&(s=`Did you accidentally provide a plain function component instead?`),s===void 0?null:Error(`Invalid ${r} \`${o}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`)}var Sb=gb(F.default.elementType,xb),Cb=`exact-prop: ​`;function wb(e){return process.env.NODE_ENV===`production`?e:{...e,[Cb]:t=>{let n=Object.keys(t).filter(t=>!e.hasOwnProperty(t));return n.length>0?Error(`The following props are not supported: ${n.map(e=>`\`${e}\``).join(`, `)}. Please remove them.`):null}}}function Tb(e,t,n,r,i){if(process.env.NODE_ENV===`production`)return null;let a=e[t],o=i||t;return a==null?null:a&&a.nodeType!==1?Error(`Invalid ${r} \`${o}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var Eb=F.default.oneOfType([F.default.func,F.default.object]);function Db(e){if(typeof e!=`string`)throw Error(process.env.NODE_ENV===`production`?na(7):"MUI: `capitalize(string)` expects a string argument.");return e.charAt(0).toUpperCase()+e.slice(1)}function Ob(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function kb(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function Ab(e,n){return t.isValidElement(e)&&n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function jb(e){return e&&e.ownerDocument||document}function Mb(e){return jb(e).defaultView||window}function Nb(e,t){typeof e==`function`?e(t):e&&(e.current=t)}var Pb=typeof window<`u`?t.useLayoutEffect:t.useEffect,Fb=0;function Ib(e){let[n,r]=t.useState(e),i=e||n;return t.useEffect(()=>{n??(Fb+=1,r(`mui-${Fb}`))},[n]),i}var Lb={...t}.useId;function Rb(e){if(Lb!==void 0){let t=Lb();return e??t}return Ib(e)}function zb({controlled:e,default:n,name:r,state:i=`value`}){let{current:a}=t.useRef(e!==void 0),[o,s]=t.useState(n),c=a?e:o;if(process.env.NODE_ENV!==`production`){t.useEffect(()=>{a!==(e!==void 0)&&console.error([`MUI: A component is changing the ${a?``:`un`}controlled ${i} state of ${r} to be ${a?`un`:``}controlled.`,`Elements should not switch from uncontrolled to controlled (or vice versa).`,`Decide between using a controlled or uncontrolled ${r} 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(`
47
+ `))},[i,r,e]);let{current:o}=t.useRef(n);t.useEffect(()=>{!a&&!Object.is(o,n)&&console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
48
+ `))},[JSON.stringify(n)])}return[c,t.useCallback(e=>{a||s(e)},[])]}function Bb(e){let n=t.useRef(e);return Pb(()=>{n.current=e}),t.useRef((...e)=>(0,n.current)(...e)).current}function Vb(...e){let n=t.useRef(void 0),r=t.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return t.useMemo(()=>e.every(e=>e==null)?null:e=>{n.current&&=(n.current(),void 0),e!=null&&(n.current=r(e))},e)}var Hb={};function Ub(e,n){let r=t.useRef(Hb);return r.current===Hb&&(r.current=e(n)),r}var Wb=[];function Gb(e){t.useEffect(e,Wb)}var Kb=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function qb(){let e=Ub(Kb.create).current;return Gb(e.disposeEffect),e}function Jb(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(`
49
+ `))}return!1}function Yb(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Xb(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`NaN`:Number.isFinite(e)?e===Math.floor(e)?`number`:`float`:`Infinity`;case`object`:return e===null?`null`:e.constructor.name;default:return t}}function Zb(e,t,n,r){let i=e[t];if(i==null||!Number.isInteger(i)){let e=Xb(i);return RangeError(`Invalid ${r} \`${t}\` of type \`${e}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Qb(e,t,...n){return e[t]===void 0?null:Zb(e,t,...n)}function $b(){return null}Qb.isRequired=Zb,$b.isRequired=$b;var ex=process.env.NODE_ENV===`production`?$b:Qb;function tx(e,t){let n={...t};for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){let i=r;if(i===`components`||i===`slots`)n[i]={...e[i],...n[i]};else if(i===`componentsProps`||i===`slotProps`){let r=e[i],a=t[i];if(!a)n[i]=r||{};else if(!r)n[i]=a;else{n[i]={...a};for(let e in r)if(Object.prototype.hasOwnProperty.call(r,e)){let t=e;n[i][t]=tx(r[t],a[t])}}}else n[i]===void 0&&(n[i]=e[i])}return n}function nx(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e<a.length;e+=1){let r=a[e];r&&(o+=(s===!0?``:` `)+t(r),s=!1,n&&n[r]&&(o+=` `+n[r]))}r[i]=o}return r}function rx(e){return typeof e==`string`}function ix(e,t,n){return e===void 0||rx(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function ax(e,t=[]){if(e===void 0)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]==`function`&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function ox(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function sx(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=I(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=ax({...i,...r}),s=ox(r),c=ox(i),l=t(o),u=I(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function cx(e,t,n){return typeof e==`function`?e(t,n):e}function lx(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:cx(n,r),{props:s,internalRef:c}=sx({...a,externalSlotProps:o}),l=Vb(c,o?.ref,e.additionalProps?.ref);return ix(t,{...s,ref:l},r)}function ux(e){return parseInt(t.version,10)>=19?e?.props?.ref||null:e?.ref||null}var G=Db;function dx(e){return(0,v.jsx)(aa,{...e,defaultTheme:rs,themeId:ra})}process.env.NODE_ENV!==`production`&&(dx.propTypes={styles:F.default.oneOfType([F.default.array,F.default.func,F.default.number,F.default.object,F.default.string,F.default.bool])});function fx(e){return function(t){return(0,v.jsx)(dx,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}function px(){return si}var mx=Pa;function hx(e){return yo(`MuiSvgIcon`,e)}ls(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var gx=e=>{let{color:t,fontSize:n,classes:r}=e;return nx({root:[`root`,t!==`inherit`&&`color${G(t)}`,`fontSize${G(n)}`]},hx,r)},_x=V(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${G(n.color)}`],t[`fontSize${G(n.fontSize)}`]]}})(mx(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,transition:e.transitions?.create?.(`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),vx=t.forwardRef(function(e,n){let r=cs({props:e,name:`MuiSvgIcon`}),{children:i,className:a,color:o=`inherit`,component:s=`svg`,fontSize:c=`medium`,htmlColor:l,inheritViewBox:u=!1,titleAccess:d,viewBox:f=`0 0 24 24`,...p}=r,m=t.isValidElement(i)&&i.type===`svg`,h={...r,color:o,component:s,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:m},g={};return u||(g.viewBox=f),(0,v.jsxs)(_x,{as:s,className:I(gx(h).root,a),focusable:`false`,color:l,"aria-hidden":d?void 0:!0,role:d?`img`:void 0,ref:n,...g,...p,...m&&i.props,ownerState:h,children:[m?i.props.children:i,d?(0,v.jsx)(`title`,{children:d}):null]})});process.env.NODE_ENV!==`production`&&(vx.propTypes={children:F.default.node,classes:F.default.object,className:F.default.string,color:F.default.oneOfType([F.default.oneOf([`inherit`,`action`,`disabled`,`primary`,`secondary`,`error`,`info`,`success`,`warning`]),F.default.string]),component:F.default.elementType,fontSize:F.default.oneOfType([F.default.oneOf([`inherit`,`large`,`medium`,`small`]),F.default.string]),htmlColor:F.default.string,inheritViewBox:F.default.bool,shapeRendering:F.default.string,sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),titleAccess:F.default.string,viewBox:F.default.string}),vx.muiName=`SvgIcon`;function yx(e,n){function r(t,r){return(0,v.jsx)(vx,{"data-testid":`${n}Icon`,ref:r,...t,children:e})}return process.env.NODE_ENV!==`production`&&(r.displayName=`${n}Icon`),r.muiName=vx.muiName,t.memo(t.forwardRef(r))}var bx=kb,xx=Ab,Sx=jb,Cx=Mb,wx=Pb,Tx=Rb,Ex=zb,Dx=Bb,Ox=Vb;function kx(e,t){if(!e)return t;if(typeof e==`function`||typeof t==`function`)return n=>{let r=typeof t==`function`?t(n):t,i=typeof e==`function`?e({...n,...r}):e,a=I(n?.className,r?.className,i?.className);return{...r,...i,...!!a&&{className:a},...r?.style&&i?.style&&{style:{...r.style,...i.style}},...r?.sx&&i?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(i.sx)?i.sx:[i.sx]]}}};let n=t,r=I(n?.className,e?.className);return{...t,...e,...!!r&&{className:r},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function Ax(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function jx(e,t){return jx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jx(e,t)}function Mx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jx(e,t)}var Nx={disabled:!1},Px=process.env.NODE_ENV===`production`?null:F.default.oneOfType([F.default.number,F.default.shape({enter:F.default.number,exit:F.default.number,appear:F.default.number}).isRequired]);process.env.NODE_ENV===`production`||F.default.oneOfType([F.default.string,F.default.shape({enter:F.default.string,exit:F.default.string,active:F.default.string}),F.default.shape({enter:F.default.string,enterDone:F.default.string,enterActive:F.default.string,exit:F.default.string,exitDone:F.default.string,exitActive:F.default.string})]);var Fx=t.default.createContext(null),Ix=function(e){return e.scrollTop},Lx=`unmounted`,Rx=`exited`,zx=`entering`,Bx=`entered`,Vx=`exiting`,Hx=function(e){Mx(r,e);function r(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=Rx,r.appearStatus=zx):o=Bx:o=t.unmountOnExit||t.mountOnEnter?Lx:Rx,r.state={status:o},r.nextCallback=null,r}r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:Rx}:null};var i=r.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=zx):(n===`entering`||n===`entered`)&&(t=Vx)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},i.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:n.default.findDOMNode(this);r&&Ix(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:Lx})},i.performEnter=function(e){var t=this,r=this.props.enter,i=this.context?this.context.isMounting:e,a=this.props.nodeRef?[i]:[n.default.findDOMNode(this),i],o=a[0],s=a[1],c=this.getTimeouts(),l=i?c.appear:c.enter;if(!e&&!r||Nx.disabled){this.safeSetState({status:Bx},function(){t.props.onEntered(o)});return}this.props.onEnter(o,s),this.safeSetState({status:zx},function(){t.props.onEntering(o,s),t.onTransitionEnd(l,function(){t.safeSetState({status:Bx},function(){t.props.onEntered(o,s)})})})},i.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),i=this.props.nodeRef?void 0:n.default.findDOMNode(this);if(!t||Nx.disabled){this.safeSetState({status:Rx},function(){e.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:Vx},function(){e.props.onExiting(i),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:Rx},function(){e.props.onExited(i)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:n.default.findDOMNode(this),i=e==null&&!this.props.addEndListener;if(!r||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],o=a[0],s=a[1];this.props.addEndListener(o,s)}e!=null&&setTimeout(this.nextCallback,e)},i.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var n=this.props,r=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var i=Ax(n,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return t.default.createElement(Fx.Provider,{value:null},typeof r==`function`?r(e,i):t.default.cloneElement(t.default.Children.only(r),i))},r}(t.default.Component);Hx.contextType=Fx,Hx.propTypes=process.env.NODE_ENV===`production`?{}:{nodeRef:F.default.shape({current:typeof Element>`u`?F.default.any:function(e,t,n,r,i,a){var o=e[t];return F.default.instanceOf(o&&`ownerDocument`in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,a)}}),children:F.default.oneOfType([F.default.func.isRequired,F.default.element.isRequired]).isRequired,in:F.default.bool,mountOnEnter:F.default.bool,unmountOnExit:F.default.bool,appear:F.default.bool,enter:F.default.bool,exit:F.default.bool,timeout:function(e){var t=Px;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,[e].concat(r))},addEndListener:F.default.func,onEnter:F.default.func,onEntering:F.default.func,onEntered:F.default.func,onExit:F.default.func,onExiting:F.default.func,onExited:F.default.func};function Ux(){}Hx.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ux,onEntering:Ux,onEntered:Ux,onExit:Ux,onExiting:Ux,onExited:Ux},Hx.UNMOUNTED=Lx,Hx.EXITED=Rx,Hx.ENTERING=zx,Hx.ENTERED=Bx,Hx.EXITING=Vx;function Wx(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Gx(e,n){var r=function(e){return n&&(0,t.isValidElement)(e)?n(e):e},i=Object.create(null);return e&&t.Children.map(e,function(e){return e}).forEach(function(e){i[e.key]=r(e)}),i}function Kx(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function qx(e,t,n){return n[t]==null?e.props[t]:n[t]}function Jx(e,n){return Gx(e.children,function(r){return(0,t.cloneElement)(r,{onExited:n.bind(null,r),in:!0,appear:qx(r,`appear`,e),enter:qx(r,`enter`,e),exit:qx(r,`exit`,e)})})}function Yx(e,n,r){var i=Gx(e.children),a=Kx(n,i);return Object.keys(a).forEach(function(o){var s=a[o];if((0,t.isValidElement)(s)){var c=o in n,l=o in i,u=n[o],d=(0,t.isValidElement)(u)&&!u.props.in;l&&(!c||d)?a[o]=(0,t.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:qx(s,`exit`,e),enter:qx(s,`enter`,e)}):!l&&c&&!d?a[o]=(0,t.cloneElement)(s,{in:!1}):l&&c&&(0,t.isValidElement)(u)&&(a[o]=(0,t.cloneElement)(s,{onExited:r.bind(null,s),in:u.props.in,exit:qx(s,`exit`,e),enter:qx(s,`enter`,e)}))}}),a}var Xx=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Zx={component:`div`,childFactory:function(e){return e}},Qx=function(e){Mx(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(Wx(r)),firstRender:!0},r}var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?Jx(e,r):Yx(e,n,r),firstRender:!1}},r.handleExited=function(e,t){var n=Gx(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=ye({},t.children);return delete n[e.key],{children:n}}))},r.render=function(){var e=this.props,n=e.component,r=e.childFactory,i=Ax(e,[`component`,`childFactory`]),a=this.state.contextValue,o=Xx(this.state.children).map(r);return delete i.appear,delete i.enter,delete i.exit,n===null?t.default.createElement(Fx.Provider,{value:a},o):t.default.createElement(Fx.Provider,{value:a},t.default.createElement(n,i,o))},n}(t.default.Component);Qx.propTypes=process.env.NODE_ENV===`production`?{}:{component:F.default.any,children:F.default.node,appear:F.default.bool,enter:F.default.bool,exit:F.default.bool,childFactory:F.default.func},Qx.defaultProps=Zx;var $x=e=>e.scrollTop;function eS(e,t){let{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function tS(e){return yo(`MuiPaper`,e)}ls(`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`.split(`.`));var nS=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return nx({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},tS,i)},rS=V(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(mx(({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:e})=>!e.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)`}}]}))),iS=t.forwardRef(function(e,t){let n=cs({props:e,name:`MuiPaper`}),r=is(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=nS(u);return process.env.NODE_ENV!==`production`&&r.shadows[o]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${o}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${o}]\` is defined.`].join(`
50
+ `)),(0,v.jsx)(rS,{as:a,ownerState:u,className:I(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${va(`#fff`,zo(o))}, ${va(`#fff`,zo(o))})`}},...l.style}})});process.env.NODE_ENV!==`production`&&(iS.propTypes={children:F.default.node,classes:F.default.object,className:F.default.string,component:F.default.elementType,elevation:gb(ex,e=>{let{elevation:t,variant:n}=e;return t>0&&n===`outlined`?Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:F.default.bool,style:F.default.object,sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),variant:F.default.oneOfType([F.default.oneOf([`elevation`,`outlined`]),F.default.string])});function aS(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=cx(d[e],i),{props:{component:h,...g},internalRef:_}=sx({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=Vb(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,ix(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}var oS=class e{static create(){return new e}static use(){let n=Ub(e.create).current,[r,i]=t.useState(!1);return n.shouldMount=r,n.setShouldMount=i,t.useEffect(n.mountEffect,[r]),n}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=cS(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function sS(){return oS.use()}function cS(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function lS(e){let{className:n,classes:r,pulsate:i=!1,rippleX:a,rippleY:o,rippleSize:s,in:c,onExited:l,timeout:u}=e,[d,f]=t.useState(!1),p=I(n,r.ripple,r.rippleVisible,i&&r.ripplePulsate),m={width:s,height:s,top:-(s/2)+o,left:-(s/2)+a},h=I(r.child,d&&r.childLeaving,i&&r.childPulsate);return!c&&!d&&f(!0),t.useEffect(()=>{if(!c&&l!=null){let e=setTimeout(l,u);return()=>{clearTimeout(e)}}},[l,c,u]),(0,v.jsx)(`span`,{className:p,style:m,children:(0,v.jsx)(`span`,{className:h})})}process.env.NODE_ENV!==`production`&&(lS.propTypes={classes:F.default.object.isRequired,className:F.default.string,in:F.default.bool,onExited:F.default.func,pulsate:F.default.bool,rippleSize:F.default.number,rippleX:F.default.number,rippleY:F.default.number,timeout:F.default.number.isRequired});var uS=ls(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),dS=550,fS=hn`
146
51
  0% {
147
52
  transform: scale(0);
148
53
  opacity: 0.1;
@@ -152,7 +57,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
152
57
  transform: scale(1);
153
58
  opacity: 0.3;
154
59
  }
155
- `,hC=fc`
60
+ `,pS=hn`
156
61
  0% {
157
62
  opacity: 1;
158
63
  }
@@ -160,7 +65,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
160
65
  100% {
161
66
  opacity: 0;
162
67
  }
163
- `,pC=fc`
68
+ `,mS=hn`
164
69
  0% {
165
70
  transform: scale(1);
166
71
  }
@@ -172,23 +77,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
172
77
  100% {
173
78
  transform: scale(1);
174
79
  }
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"})`
80
+ `,hS=V(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),gS=V(lS,{name:`MuiTouchRipple`,slot:`Ripple`})`
176
81
  opacity: 0;
177
82
  position: absolute;
178
83
 
179
- &.${Sn.rippleVisible} {
84
+ &.${uS.rippleVisible} {
180
85
  opacity: 0.3;
181
86
  transform: scale(1);
182
- animation-name: ${fC};
183
- animation-duration: ${Lu}ms;
87
+ animation-name: ${fS};
88
+ animation-duration: ${dS}ms;
184
89
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
185
90
  }
186
91
 
187
- &.${Sn.ripplePulsate} {
92
+ &.${uS.ripplePulsate} {
188
93
  animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
189
94
  }
190
95
 
191
- & .${Sn.child} {
96
+ & .${uS.child} {
192
97
  opacity: 1;
193
98
  display: block;
194
99
  width: 100%;
@@ -197,43 +102,64 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
197
102
  background-color: currentColor;
198
103
  }
199
104
 
200
- & .${Sn.childLeaving} {
105
+ & .${uS.childLeaving} {
201
106
  opacity: 0;
202
- animation-name: ${hC};
203
- animation-duration: ${Lu}ms;
107
+ animation-name: ${pS};
108
+ animation-duration: ${dS}ms;
204
109
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
205
110
  }
206
111
 
207
- & .${Sn.childPulsate} {
112
+ & .${uS.childPulsate} {
208
113
  position: absolute;
209
114
  /* @noflip */
210
115
  left: 0px;
211
116
  top: 0;
212
- animation-name: ${pC};
117
+ animation-name: ${mS};
213
118
  animation-duration: 2500ms;
214
119
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
215
120
  animation-iteration-count: infinite;
216
121
  animation-delay: 200ms;
217
122
  }
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"})});
123
+ `,_S=t.forwardRef(function(e,n){let{center:r=!1,classes:i={},className:a,...o}=cs({props:e,name:`MuiTouchRipple`}),[s,c]=t.useState([]),l=t.useRef(0),u=t.useRef(null);t.useEffect(()=>{u.current&&=(u.current(),null)},[s]);let d=t.useRef(!1),f=qb(),p=t.useRef(null),m=t.useRef(null),h=t.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:o}=e;c(e=>[...e,(0,v.jsx)(gS,{classes:{ripple:I(i.ripple,uS.ripple),rippleVisible:I(i.rippleVisible,uS.rippleVisible),ripplePulsate:I(i.ripplePulsate,uS.ripplePulsate),child:I(i.child,uS.child),childLeaving:I(i.childLeaving,uS.childLeaving),childPulsate:I(i.childPulsate,uS.childPulsate)},timeout:dS,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},l.current)]),l.current+=1,u.current=o},[i]),g=t.useCallback((e={},t={},n=()=>{})=>{let{pulsate:i=!1,center:a=r||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&d.current){d.current=!1;return}e?.type===`touchstart`&&(d.current=!0);let s=o?null:m.current,c=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0},l,u,g;if(a||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)l=Math.round(c.width/2),u=Math.round(c.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;l=Math.round(t-c.left),u=Math.round(n-c.top)}if(a)g=Math.sqrt((2*c.width**2+c.height**2)/3),g%2==0&&(g+=1);else{let e=Math.max(Math.abs((s?s.clientWidth:0)-l),l)*2+2,t=Math.max(Math.abs((s?s.clientHeight:0)-u),u)*2+2;g=Math.sqrt(e**2+t**2)}e?.touches?p.current===null&&(p.current=()=>{h({pulsate:i,rippleX:l,rippleY:u,rippleSize:g,cb:n})},f.start(80,()=>{p.current&&=(p.current(),null)})):h({pulsate:i,rippleX:l,rippleY:u,rippleSize:g,cb:n})},[r,h,f]),_=t.useCallback(()=>{g({},{pulsate:!0})},[g]),y=t.useCallback((e,t)=>{if(f.clear(),e?.type===`touchend`&&p.current){p.current(),p.current=null,f.start(0,()=>{y(e,t)});return}p.current=null,c(e=>e.length>0?e.slice(1):e),u.current=t},[f]);return t.useImperativeHandle(n,()=>({pulsate:_,start:g,stop:y}),[_,g,y]),(0,v.jsx)(hS,{className:I(uS.root,i.root,a),ref:m,...o,children:(0,v.jsx)(Qx,{component:null,exit:!0,children:s})})});process.env.NODE_ENV!==`production`&&(_S.propTypes={center:F.default.bool,classes:F.default.object,className:F.default.string});function vS(e){return yo(`MuiButtonBase`,e)}var yS=ls(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),bS=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=nx({root:[`root`,t&&`disabled`,n&&`focusVisible`]},vS,i);return n&&r&&(a.root+=` ${r}`),a},xS=V(`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`},[`&.${yS.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),SS=t.forwardRef(function(e,n){let r=cs({props:e,name:`MuiButtonBase`}),{action:i,centerRipple:a=!1,children:o,className:s,component:c=`button`,disabled:l=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:p,LinkComponent:m=`a`,onBlur:h,onClick:g,onContextMenu:_,onDragLeave:y,onFocus:b,onFocusVisible:x,onKeyDown:S,onKeyUp:C,onMouseDown:w,onMouseLeave:T,onMouseUp:E,onTouchEnd:D,onTouchMove:O,onTouchStart:k,tabIndex:A=0,TouchRippleProps:j,touchRippleRef:M,type:N,...ee}=r,te=t.useRef(null),P=sS(),F=Ox(P.ref,M),[ne,re]=t.useState(!1);l&&ne&&re(!1),t.useImperativeHandle(i,()=>({focusVisible:()=>{re(!0),te.current.focus()}}),[]);let ie=P.shouldMount&&!u&&!l;t.useEffect(()=>{ne&&f&&!u&&P.pulsate()},[u,f,ne,P]);let ae=CS(P,`start`,w,d),oe=CS(P,`stop`,_,d),se=CS(P,`stop`,y,d),ce=CS(P,`stop`,E,d),le=CS(P,`stop`,e=>{ne&&e.preventDefault(),T&&T(e)},d),ue=CS(P,`start`,k,d),de=CS(P,`stop`,D,d),fe=CS(P,`stop`,O,d),pe=CS(P,`stop`,e=>{Jb(e.target)||re(!1),h&&h(e)},!1),me=Dx(e=>{te.current||=e.currentTarget,Jb(e.target)&&(re(!0),x&&x(e)),b&&b(e)}),L=()=>{let e=te.current;return c&&c!==`button`&&!(e.tagName===`A`&&e.href)},he=Dx(e=>{f&&!e.repeat&&ne&&e.key===` `&&P.stop(e,()=>{P.start(e)}),e.target===e.currentTarget&&L()&&e.key===` `&&e.preventDefault(),S&&S(e),e.target===e.currentTarget&&L()&&e.key===`Enter`&&!l&&(e.preventDefault(),g&&g(e))}),ge=Dx(e=>{f&&e.key===` `&&ne&&!e.defaultPrevented&&P.stop(e,()=>{P.pulsate(e)}),C&&C(e),g&&e.target===e.currentTarget&&L()&&e.key===` `&&!e.defaultPrevented&&g(e)}),_e=c;_e===`button`&&(ee.href||ee.to)&&(_e=m);let ve={};_e===`button`?(ve.type=N===void 0?`button`:N,ve.disabled=l):(!ee.href&&!ee.to&&(ve.role=`button`),l&&(ve[`aria-disabled`]=l));let ye=Ox(n,te),be={...r,centerRipple:a,component:c,disabled:l,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:A,focusVisible:ne},xe=bS(be);return(0,v.jsxs)(xS,{as:_e,className:I(xe.root,s),ownerState:be,onBlur:pe,onClick:g,onContextMenu:oe,onFocus:me,onKeyDown:he,onKeyUp:ge,onMouseDown:ae,onMouseLeave:le,onMouseUp:ce,onDragLeave:se,onTouchEnd:de,onTouchMove:fe,onTouchStart:ue,ref:ye,tabIndex:l?-1:A,type:N,...ve,...ee,children:[o,ie?(0,v.jsx)(_S,{ref:F,center:a,...j}):null]})});function CS(e,t,n,r=!1){return Dx(i=>(n&&n(i),r||e[t](i),!0))}process.env.NODE_ENV!==`production`&&(SS.propTypes={action:Eb,centerRipple:F.default.bool,children:F.default.node,classes:F.default.object,className:F.default.string,component:Sb,disabled:F.default.bool,disableRipple:F.default.bool,disableTouchRipple:F.default.bool,focusRipple:F.default.bool,focusVisibleClassName:F.default.string,href:F.default.any,LinkComponent:F.default.elementType,onBlur:F.default.func,onClick:F.default.func,onContextMenu:F.default.func,onDragLeave:F.default.func,onFocus:F.default.func,onFocusVisible:F.default.func,onKeyDown:F.default.func,onKeyUp:F.default.func,onMouseDown:F.default.func,onMouseLeave:F.default.func,onMouseUp:F.default.func,onTouchEnd:F.default.func,onTouchMove:F.default.func,onTouchStart:F.default.func,sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),tabIndex:F.default.number,TouchRippleProps:F.default.object,touchRippleRef:F.default.oneOfType([F.default.func,F.default.shape({current:F.default.shape({pulsate:F.default.func.isRequired,start:F.default.func.isRequired,stop:F.default.func.isRequired})})]),type:F.default.oneOfType([F.default.oneOf([`button`,`reset`,`submit`]),F.default.string])});function wS(e){return typeof e.main==`string`}function TS(e,t=[]){if(!wS(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function ES(e=[]){return([,t])=>t&&TS(t,e)}function DS(e){return yo(`MuiCircularProgress`,e)}ls(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`circle`,`circleDeterminate`,`circleIndeterminate`,`circleDisableShrink`]);var OS=44,kS=hn`
124
+ 0% {
125
+ transform: rotate(0deg);
126
+ }
127
+
128
+ 100% {
129
+ transform: rotate(360deg);
130
+ }
131
+ `,AS=hn`
132
+ 0% {
133
+ stroke-dasharray: 1px, 200px;
134
+ stroke-dashoffset: 0;
135
+ }
136
+
137
+ 50% {
138
+ stroke-dasharray: 100px, 200px;
139
+ stroke-dashoffset: -15px;
140
+ }
141
+
142
+ 100% {
143
+ stroke-dasharray: 1px, 200px;
144
+ stroke-dashoffset: -126px;
145
+ }
146
+ `,jS=typeof kS==`string`?null:mn`
147
+ animation: ${kS} 1.4s linear infinite;
148
+ `,MS=typeof AS==`string`?null:mn`
149
+ animation: ${AS} 1.4s ease-in-out infinite;
150
+ `,NS=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return nx({root:[`root`,n,`color${G(r)}`],svg:[`svg`],circle:[`circle`,`circle${G(n)}`,i&&`circleDisableShrink`]},DS,t)},PS=V(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${G(n.color)}`]]}})(mx(({theme:e})=>({display:`inline-block`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`transform`)}},{props:{variant:`indeterminate`},style:jS||{animation:`${kS} 1.4s linear infinite`}},...Object.entries(e.palette).filter(ES()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),FS=V(`svg`,{name:`MuiCircularProgress`,slot:`Svg`,overridesResolver:(e,t)=>t.svg})({display:`block`}),IS=V(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,t[`circle${G(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(mx(({theme:e})=>({stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:MS||{animation:`${AS} 1.4s ease-in-out infinite`}}]}))),LS=t.forwardRef(function(e,t){let n=cs({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,size:o=40,style:s,thickness:c=3.6,value:l=0,variant:u=`indeterminate`,...d}=n,f={...n,color:i,disableShrink:a,size:o,thickness:c,value:l,variant:u},p=NS(f),m={},h={},g={};if(u===`determinate`){let e=2*Math.PI*((OS-c)/2);m.strokeDasharray=e.toFixed(3),g[`aria-valuenow`]=Math.round(l),m.strokeDashoffset=`${((100-l)/100*e).toFixed(3)}px`,h.transform=`rotate(-90deg)`}return(0,v.jsx)(PS,{className:I(p.root,r),style:{width:o,height:o,...h,...s},ownerState:f,ref:t,role:`progressbar`,...g,...d,children:(0,v.jsx)(FS,{className:p.svg,ownerState:f,viewBox:`${OS/2} ${OS/2} ${OS} ${OS}`,children:(0,v.jsx)(IS,{className:p.circle,style:m,ownerState:f,cx:OS,cy:OS,r:(OS-c)/2,fill:`none`,strokeWidth:c})})})});process.env.NODE_ENV!==`production`&&(LS.propTypes={classes:F.default.object,className:F.default.string,color:F.default.oneOfType([F.default.oneOf([`inherit`,`primary`,`secondary`,`error`,`info`,`success`,`warning`]),F.default.string]),disableShrink:gb(F.default.bool,e=>e.disableShrink&&e.variant&&e.variant!==`indeterminate`?Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:F.default.oneOfType([F.default.number,F.default.string]),style:F.default.object,sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),thickness:F.default.number,value:F.default.number,variant:F.default.oneOf([`determinate`,`indeterminate`])});function RS(e){return yo(`MuiTypography`,e)}var zS=ls(`MuiTypography`,[`root`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`subtitle1`,`subtitle2`,`body1`,`body2`,`inherit`,`button`,`caption`,`overline`,`alignLeft`,`alignRight`,`alignCenter`,`alignJustify`,`noWrap`,`gutterBottom`,`paragraph`]),BS={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},VS=px(),HS=e=>{let{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:o}=e;return nx({root:[`root`,a,e.align!==`inherit`&&`align${G(t)}`,n&&`gutterBottom`,r&&`noWrap`,i&&`paragraph`]},RS,o)},US=V(`span`,{name:`MuiTypography`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!==`inherit`&&t[`align${G(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(mx(({theme:e})=>({margin:0,variants:[{props:{variant:`inherit`},style:{font:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},...Object.entries(e.typography).filter(([e,t])=>e!==`inherit`&&t&&typeof t==`object`).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(ES()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>typeof e==`string`).map(([t])=>({props:{color:`text${G(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>e.align!==`inherit`,style:{textAlign:`var(--Typography-textAlign)`}},{props:({ownerState:e})=>e.noWrap,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:`0.35em`}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}))),WS={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,subtitle1:`h6`,subtitle2:`h6`,body1:`p`,body2:`p`,inherit:`p`},GS=t.forwardRef(function(e,t){let{color:n,...r}=cs({props:e,name:`MuiTypography`}),i=!BS[n],a=VS({...r,...i&&{color:n}}),{align:o=`inherit`,className:s,component:c,gutterBottom:l=!1,noWrap:u=!1,paragraph:d=!1,variant:f=`body1`,variantMapping:p=WS,...m}=a,h={...a,align:o,color:n,className:s,component:c,gutterBottom:l,noWrap:u,paragraph:d,variant:f,variantMapping:p};return(0,v.jsx)(US,{as:c||(d?`p`:p[f]||WS[f])||`span`,ref:t,className:I(HS(h).root,s),...m,ownerState:h,style:{...o!==`inherit`&&{"--Typography-textAlign":o},...m.style}})});process.env.NODE_ENV!==`production`&&(GS.propTypes={align:F.default.oneOf([`center`,`inherit`,`justify`,`left`,`right`]),children:F.default.node,classes:F.default.object,className:F.default.string,color:F.default.oneOfType([F.default.oneOf([`primary`,`secondary`,`success`,`error`,`info`,`warning`,`textPrimary`,`textSecondary`,`textDisabled`]),F.default.string]),component:F.default.elementType,gutterBottom:F.default.bool,noWrap:F.default.bool,paragraph:F.default.bool,style:F.default.object,sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),variant:F.default.oneOfType([F.default.oneOf([`body1`,`body2`,`button`,`caption`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`inherit`,`overline`,`subtitle1`,`subtitle2`]),F.default.string]),variantMapping:F.default.object});function KS(e){return typeof e==`function`?e():e}var qS=t.forwardRef(function(e,r){let{children:i,container:a,disablePortal:o=!1}=e,[s,c]=t.useState(null),l=Vb(t.isValidElement(i)?ux(i):null,r);if(Pb(()=>{o||c(KS(a)||document.body)},[a,o]),Pb(()=>{if(s&&!o)return Nb(r,s),()=>{Nb(r,null)}},[r,s,o]),o){if(t.isValidElement(i)){let e={ref:l};return t.cloneElement(i,e)}return i}return s&&n.createPortal(i,s)});process.env.NODE_ENV!==`production`&&(qS.propTypes={children:F.default.node,container:F.default.oneOfType([Tb,F.default.func]),disablePortal:F.default.bool}),process.env.NODE_ENV!==`production`&&(qS.propTypes=wb(qS.propTypes));function JS(e){return parseInt(e,10)||0}var YS={shadow:{visibility:`hidden`,position:`absolute`,overflow:`hidden`,height:0,top:0,left:0,transform:`translateZ(0)`}};function XS(e){for(let t in e)return!1;return!0}function ZS(e){return XS(e)||e.outerHeightStyle===0&&!e.overflowing}var QS=t.forwardRef(function(e,n){let{onChange:r,maxRows:i,minRows:a=1,style:o,value:s,...c}=e,{current:l}=t.useRef(s!=null),u=t.useRef(null),d=Vb(n,u),f=t.useRef(null),p=t.useRef(null),m=t.useCallback(()=>{let t=u.current,n=p.current;if(!t||!n)return;let r=Mb(t).getComputedStyle(t);if(r.width===`0px`)return{outerHeightStyle:0,overflowing:!1};n.style.width=r.width,n.value=t.value||e.placeholder||`x`,n.value.slice(-1)===`
151
+ `&&(n.value+=` `);let o=r.boxSizing,s=JS(r.paddingBottom)+JS(r.paddingTop),c=JS(r.borderBottomWidth)+JS(r.borderTopWidth),l=n.scrollHeight;n.value=`x`;let d=n.scrollHeight,f=l;return a&&(f=Math.max(Number(a)*d,f)),i&&(f=Math.min(Number(i)*d,f)),f=Math.max(f,d),{outerHeightStyle:f+(o===`border-box`?s+c:0),overflowing:Math.abs(f-l)<=1}},[i,a,e.placeholder]),h=Bb(()=>{let e=u.current,t=m();if(!e||!t||ZS(t))return!1;let n=t.outerHeightStyle;return f.current!=null&&f.current!==n}),g=t.useCallback(()=>{let e=u.current,t=m();if(!e||!t||ZS(t))return;let n=t.outerHeightStyle;f.current!==n&&(f.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?`hidden`:``},[m]),_=t.useRef(-1);return Pb(()=>{let e=kb(g),t=u?.current;if(!t)return;let n=Mb(t);n.addEventListener(`resize`,e);let r;return typeof ResizeObserver<`u`&&(r=new ResizeObserver(()=>{h()&&(r.unobserve(t),cancelAnimationFrame(_.current),g(),_.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(_.current),n.removeEventListener(`resize`,e),r&&r.disconnect()}},[m,g,h]),Pb(()=>{g()}),(0,v.jsxs)(t.Fragment,{children:[(0,v.jsx)(`textarea`,{value:s,onChange:e=>{l||g(),r&&r(e)},ref:d,rows:a,style:o,...c}),(0,v.jsx)(`textarea`,{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:{...YS.shadow,...o,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!==`production`&&(QS.propTypes={className:F.default.string,maxRows:F.default.oneOfType([F.default.number,F.default.string]),minRows:F.default.oneOfType([F.default.number,F.default.string]),onChange:F.default.func,placeholder:F.default.string,style:F.default.object,value:F.default.oneOfType([F.default.arrayOf(F.default.string),F.default.number,F.default.string])});function $S(e){return typeof e==`string`}function eC({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&e[r]===void 0&&(t[r]=n[r]),t),{})}var tC=t.createContext(void 0);process.env.NODE_ENV!==`production`&&(tC.displayName=`FormControlContext`);function nC(){return t.useContext(tC)}function rC(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function iC(e,t=!1){return e&&(rC(e.value)&&e.value!==``||t&&rC(e.defaultValue)&&e.defaultValue!==``)}function aC(e){return e.startAdornment}function oC(e){return yo(`MuiInputBase`,e)}var sC=ls(`MuiInputBase`,[`root`,`formControl`,`focused`,`disabled`,`adornedStart`,`adornedEnd`,`error`,`sizeSmall`,`multiline`,`colorSecondary`,`fullWidth`,`hiddenLabel`,`readOnly`,`input`,`inputSizeSmall`,`inputMultiline`,`inputTypeSearch`,`inputAdornedStart`,`inputAdornedEnd`,`inputHiddenLabel`]),cC,lC=(e,t)=>{let{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${G(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},uC=(e,t)=>{let{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]},dC=e=>{let{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:c,hiddenLabel:l,multiline:u,readOnly:d,size:f,startAdornment:p,type:m}=e;return nx({root:[`root`,`color${G(n)}`,r&&`disabled`,i&&`error`,c&&`fullWidth`,o&&`focused`,s&&`formControl`,f&&f!==`medium`&&`size${G(f)}`,u&&`multiline`,p&&`adornedStart`,a&&`adornedEnd`,l&&`hiddenLabel`,d&&`readOnly`],input:[`input`,r&&`disabled`,m===`search`&&`inputTypeSearch`,u&&`inputMultiline`,f===`small`&&`inputSizeSmall`,l&&`inputHiddenLabel`,p&&`inputAdornedStart`,a&&`inputAdornedEnd`,d&&`readOnly`]},oC,t)},fC=V(`div`,{name:`MuiInputBase`,slot:`Root`,overridesResolver:lC})(mx(({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`,[`&.${sC.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:`default`},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:`4px 0 5px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:`100%`}}]}))),pC=V(`input`,{name:`MuiInputBase`,slot:`Input`,overridesResolver:uC})(mx(({theme:e})=>{let 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`},i=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] + .${sC.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${sC.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.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:e})=>e.multiline,style:{height:`auto`,resize:`none`,padding:0,paddingTop:0}},{props:{type:`search`},style:{MozAppearance:`textfield`}}]}})),mC=fx({"@keyframes mui-auto-fill":{from:{display:`block`}},"@keyframes mui-auto-fill-cancel":{from:{display:`block`}}}),hC=t.forwardRef(function(e,n){let r=cs({props:e,name:`MuiInputBase`}),{"aria-describedby":i,autoComplete:a,autoFocus:o,className:s,color:c,components:l={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:p,endAdornment:m,error:h,fullWidth:g=!1,id:_,inputComponent:y=`input`,inputProps:b={},inputRef:x,margin:S,maxRows:C,minRows:w,multiline:T=!1,name:E,onBlur:D,onChange:O,onClick:k,onFocus:A,onKeyDown:j,onKeyUp:M,placeholder:N,readOnly:ee,renderSuffix:te,rows:P,size:F,slotProps:ne={},slots:re={},startAdornment:ie,type:ae=`text`,value:oe,...se}=r,ce=b.value==null?oe:b.value,{current:le}=t.useRef(ce!=null),ue=t.useRef(),de=t.useCallback(e=>{process.env.NODE_ENV!==`production`&&e&&e.nodeName!==`INPUT`&&!e.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(`
152
+ `))},[]),fe=Ox(ue,x,b.ref,de),[pe,me]=t.useState(!1),L=nC();process.env.NODE_ENV!==`production`&&t.useEffect(()=>{if(L)return L.registerEffect()},[L]);let he=eC({props:r,muiFormControl:L,states:[`color`,`disabled`,`error`,`hiddenLabel`,`size`,`required`,`filled`]});he.focused=L?L.focused:pe,t.useEffect(()=>{!L&&f&&pe&&(me(!1),D&&D())},[L,f,pe,D]);let ge=L&&L.onFilled,_e=L&&L.onEmpty,ve=t.useCallback(e=>{iC(e)?ge&&ge():_e&&_e()},[ge,_e]);wx(()=>{le&&ve({value:ce})},[ce,ve,le]);let ye=e=>{A&&A(e),b.onFocus&&b.onFocus(e),L&&L.onFocus?L.onFocus(e):me(!0)},be=e=>{D&&D(e),b.onBlur&&b.onBlur(e),L&&L.onBlur?L.onBlur(e):me(!1)},xe=(e,...t)=>{if(!le){let t=e.target||ue.current;if(t==null)throw Error(process.env.NODE_ENV===`production`?na(1):"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.");ve({value:t.value})}b.onChange&&b.onChange(e,...t),O&&O(e,...t)};t.useEffect(()=>{ve(ue.current)},[]);let Se=e=>{ue.current&&e.currentTarget===e.target&&ue.current.focus(),k&&k(e)},Ce=y,we=b;T&&Ce===`input`&&(P?(process.env.NODE_ENV!==`production`&&(w||C)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),we={type:void 0,minRows:P,maxRows:P,...we}):we={type:void 0,maxRows:C,minRows:w,...we},Ce=QS);let Te=e=>{ve(e.animationName===`mui-auto-fill-cancel`?ue.current:{value:`x`})};t.useEffect(()=>{L&&L.setAdornedStart(!!ie)},[L,ie]);let R={...r,color:he.color||`primary`,disabled:he.disabled,endAdornment:m,error:he.error,focused:he.focused,formControl:L,fullWidth:g,hiddenLabel:he.hiddenLabel,multiline:T,size:he.size,startAdornment:ie,type:ae},Ee=dC(R),De=re.root||l.Root||fC,Oe=ne.root||u.root||{},ke=re.input||l.Input||pC;return we={...we,...ne.input??u.input},(0,v.jsxs)(t.Fragment,{children:[!p&&typeof mC==`function`&&(cC||=(0,v.jsx)(mC,{})),(0,v.jsxs)(De,{...Oe,ref:n,onClick:Se,...se,...!$S(De)&&{ownerState:{...R,...Oe.ownerState}},className:I(Ee.root,Oe.className,s,ee&&`MuiInputBase-readOnly`),children:[ie,(0,v.jsx)(tC.Provider,{value:null,children:(0,v.jsx)(ke,{"aria-invalid":he.error,"aria-describedby":i,autoComplete:a,autoFocus:o,defaultValue:d,disabled:he.disabled,id:_,onAnimationStart:Te,name:E,placeholder:N,readOnly:ee,required:he.required,rows:P,value:ce,onKeyDown:j,onKeyUp:M,type:ae,...we,...!$S(ke)&&{as:Ce,ownerState:{...R,...we.ownerState}},ref:fe,className:I(Ee.input,we.className,ee&&`MuiInputBase-readOnly`),onBlur:be,onChange:xe,onFocus:ye})}),m,te?te({...he,startAdornment:ie}):null]})]})});process.env.NODE_ENV!==`production`&&(hC.propTypes={"aria-describedby":F.default.string,autoComplete:F.default.string,autoFocus:F.default.bool,classes:F.default.object,className:F.default.string,color:F.default.oneOfType([F.default.oneOf([`primary`,`secondary`,`error`,`info`,`success`,`warning`]),F.default.string]),components:F.default.shape({Input:F.default.elementType,Root:F.default.elementType}),componentsProps:F.default.shape({input:F.default.object,root:F.default.object}),defaultValue:F.default.any,disabled:F.default.bool,disableInjectingGlobalStyles:F.default.bool,endAdornment:F.default.node,error:F.default.bool,fullWidth:F.default.bool,id:F.default.string,inputComponent:Sb,inputProps:F.default.object,inputRef:Eb,margin:F.default.oneOf([`dense`,`none`]),maxRows:F.default.oneOfType([F.default.number,F.default.string]),minRows:F.default.oneOfType([F.default.number,F.default.string]),multiline:F.default.bool,name:F.default.string,onBlur:F.default.func,onChange:F.default.func,onClick:F.default.func,onFocus:F.default.func,onInvalid:F.default.func,onKeyDown:F.default.func,onKeyUp:F.default.func,placeholder:F.default.string,readOnly:F.default.bool,renderSuffix:F.default.func,required:F.default.bool,rows:F.default.oneOfType([F.default.number,F.default.string]),size:F.default.oneOfType([F.default.oneOf([`medium`,`small`]),F.default.string]),slotProps:F.default.shape({input:F.default.object,root:F.default.object}),slots:F.default.shape({input:F.default.elementType,root:F.default.elementType}),startAdornment:F.default.node,sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),type:F.default.string,value:F.default.any});function gC(e){return yo(`MuiInput`,e)}var _C={...sC,...ls(`MuiInput`,[`root`,`underline`,`input`])};function vC(e){return yo(`MuiOutlinedInput`,e)}var yC={...sC,...ls(`MuiOutlinedInput`,[`root`,`notchedOutline`,`input`])};function bC(e){return yo(`MuiFilledInput`,e)}var xC={...sC,...ls(`MuiFilledInput`,[`root`,`underline`,`input`,`adornedStart`,`adornedEnd`,`sizeSmall`,`multiline`,`hiddenLabel`])},SC=yx((0,v.jsx)(`path`,{d:`M7 10l5 5 5-5z`}),`ArrowDropDown`),CC={entering:{opacity:1},entered:{opacity:1}},wC=t.forwardRef(function(e,n){let r=is(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,style:g,timeout:_=i,TransitionComponent:y=Hx,...b}=e,x=t.useRef(null),S=Ox(x,ux(s),n),C=e=>t=>{if(e){let n=x.current;t===void 0?e(n):e(n,t)}},w=C(f),T=C((e,t)=>{$x(e);let n=eS({style:g,timeout:_,easing:c},{mode:`enter`});e.style.webkitTransition=r.transitions.create(`opacity`,n),e.style.transition=r.transitions.create(`opacity`,n),u&&u(e,t)}),E=C(d),D=C(h),O=C(e=>{let t=eS({style:g,timeout:_,easing:c},{mode:`exit`});e.style.webkitTransition=r.transitions.create(`opacity`,t),e.style.transition=r.transitions.create(`opacity`,t),p&&p(e)}),k=C(m);return(0,v.jsx)(y,{appear:o,in:l,nodeRef:x,onEnter:T,onEntered:E,onEntering:w,onExit:O,onExited:k,onExiting:D,addEndListener:e=>{a&&a(x.current,e)},timeout:_,...b,children:(e,{ownerState:n,...r})=>t.cloneElement(s,{style:{opacity:0,visibility:e===`exited`&&!l?`hidden`:void 0,...CC[e],...g,...s.props.style},ref:S,...r})})});process.env.NODE_ENV!==`production`&&(wC.propTypes={addEndListener:F.default.func,appear:F.default.bool,children:yb.isRequired,easing:F.default.oneOfType([F.default.shape({enter:F.default.string,exit:F.default.string}),F.default.string]),in:F.default.bool,onEnter:F.default.func,onEntered:F.default.func,onEntering:F.default.func,onExit:F.default.func,onExited:F.default.func,onExiting:F.default.func,style:F.default.object,timeout:F.default.oneOfType([F.default.number,F.default.shape({appear:F.default.number,enter:F.default.number,exit:F.default.number})])});function TC(e){return yo(`MuiBackdrop`,e)}ls(`MuiBackdrop`,[`root`,`invisible`]);var EC=e=>{let{classes:t,invisible:n}=e;return nx({root:[`root`,n&&`invisible`]},TC,t)},DC=V(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{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`}}]}),OC=t.forwardRef(function(e,t){let n=cs({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,components:c={},componentsProps:l={},slotProps:u={},slots:d={},TransitionComponent:f,transitionDuration:p,...m}=n,h={...n,component:a,invisible:o},g=EC(h),_={slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[y,b]=aS(`root`,{elementType:DC,externalForwardedProps:_,className:I(g.root,i),ownerState:h}),[x,S]=aS(`transition`,{elementType:wC,externalForwardedProps:_,ownerState:h});return(0,v.jsx)(x,{in:s,timeout:p,...m,...S,children:(0,v.jsx)(y,{"aria-hidden":!0,...b,classes:g,ref:t,children:r})})});process.env.NODE_ENV!==`production`&&(OC.propTypes={children:F.default.node,classes:F.default.object,className:F.default.string,component:F.default.elementType,components:F.default.shape({Root:F.default.elementType}),componentsProps:F.default.shape({root:F.default.object}),invisible:F.default.bool,open:F.default.bool.isRequired,slotProps:F.default.shape({root:F.default.oneOfType([F.default.func,F.default.object]),transition:F.default.oneOfType([F.default.func,F.default.object])}),slots:F.default.shape({root:F.default.elementType,transition:F.default.elementType}),sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),TransitionComponent:F.default.elementType,transitionDuration:F.default.oneOfType([F.default.number,F.default.shape({appear:F.default.number,enter:F.default.number,exit:F.default.number})])});var kC=ls(`MuiBox`,[`root`]),AC=oa({themeId:ra,defaultTheme:ns(),defaultClassName:kC.root,generateClassName:_o.generate});process.env.NODE_ENV!==`production`&&(AC.propTypes={children:F.default.node,component:F.default.elementType,sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object])});function jC(e){return yo(`MuiButton`,e)}var MC=ls(`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.loading.loadingWrapper.loadingIconPlaceholder.loadingIndicator.loadingPositionCenter.loadingPositionStart.loadingPositionEnd`.split(`.`)),NC=t.createContext({});process.env.NODE_ENV!==`production`&&(NC.displayName=`ButtonGroupContext`);var PC=t.createContext(void 0);process.env.NODE_ENV!==`production`&&(PC.displayName=`ButtonGroupButtonContext`);var FC=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=nx({root:[`root`,o&&`loading`,a,`${a}${G(t)}`,`size${G(i)}`,`${a}Size${G(i)}`,`color${G(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${G(s)}`],startIcon:[`icon`,`startIcon`,`iconSize${G(i)}`],endIcon:[`icon`,`endIcon`,`iconSize${G(i)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},jC,c);return{...c,...l}},IC=[{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}}}],LC=V(SS,{shouldForwardProp:e=>os(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${G(n.color)}`],t[`size${G(n.size)}`],t[`${n.variant}Size${G(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(mx(({theme:e})=>{let 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`},[`&.${MC.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]},[`&.${MC.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${MC.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)`,[`&.${MC.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(ES()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:va(e.palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:va(e.palette[t].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:va(e.palette[t].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})`:va(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:va(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`},[`&.${MC.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${MC.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loadingPosition:`center`},style:{transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${MC.loading}`]:{color:`transparent`}}}]}})),RC=V(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${G(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:8,marginLeft:-4,variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},...IC]})),zC=V(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${G(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},...IC]})),BC=V(`span`,{name:`MuiButton`,slot:`LoadingIndicator`,overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,variants:[{props:{loading:!0},style:{display:`flex`}},{props:{loadingPosition:`start`},style:{left:14}},{props:{loadingPosition:`start`,size:`small`},style:{left:10}},{props:{variant:`text`,loadingPosition:`start`},style:{left:6}},{props:{loadingPosition:`center`},style:{left:`50%`,transform:`translate(-50%)`,color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:`end`},style:{right:14}},{props:{loadingPosition:`end`,size:`small`},style:{right:10}},{props:{variant:`text`,loadingPosition:`end`},style:{right:6}},{props:{loadingPosition:`start`,fullWidth:!0},style:{position:`relative`,left:-10}},{props:{loadingPosition:`end`,fullWidth:!0},style:{position:`relative`,right:-10}}]})),VC=V(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`,overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:`inline-block`,width:`1em`,height:`1em`}),HC=t.forwardRef(function(e,n){let r=t.useContext(NC),i=t.useContext(PC),a=cs({props:tx(r,e),name:`MuiButton`}),{children:o,color:s=`primary`,component:c=`button`,className:l,disabled:u=!1,disableElevation:d=!1,disableFocusRipple:f=!1,endIcon:p,focusVisibleClassName:m,fullWidth:h=!1,id:g,loading:_=null,loadingIndicator:y,loadingPosition:b=`center`,size:x=`medium`,startIcon:S,type:C,variant:w=`text`,...T}=a,E=Tx(g),D=y??(0,v.jsx)(LS,{"aria-labelledby":E,color:`inherit`,size:16}),O={...a,color:s,component:c,disabled:u,disableElevation:d,disableFocusRipple:f,fullWidth:h,loading:_,loadingIndicator:D,loadingPosition:b,size:x,type:C,variant:w},k=FC(O),A=(S||_&&b===`start`)&&(0,v.jsx)(RC,{className:k.startIcon,ownerState:O,children:S||(0,v.jsx)(VC,{className:k.loadingIconPlaceholder,ownerState:O})}),j=(p||_&&b===`end`)&&(0,v.jsx)(zC,{className:k.endIcon,ownerState:O,children:p||(0,v.jsx)(VC,{className:k.loadingIconPlaceholder,ownerState:O})}),M=i||``,N=typeof _==`boolean`?(0,v.jsx)(`span`,{className:k.loadingWrapper,style:{display:`contents`},children:_&&(0,v.jsx)(BC,{className:k.loadingIndicator,ownerState:O,children:D})}):null;return(0,v.jsxs)(LC,{ownerState:O,className:I(r.className,k.root,l,M),component:c,disabled:u||_,focusRipple:!f,focusVisibleClassName:I(k.focusVisible,m),ref:n,type:C,id:_?E:g,...T,classes:k,children:[A,b!==`end`&&N,o,b===`end`&&N,j]})});process.env.NODE_ENV!==`production`&&(HC.propTypes={children:F.default.node,classes:F.default.object,className:F.default.string,color:F.default.oneOfType([F.default.oneOf([`inherit`,`primary`,`secondary`,`success`,`error`,`info`,`warning`]),F.default.string]),component:F.default.elementType,disabled:F.default.bool,disableElevation:F.default.bool,disableFocusRipple:F.default.bool,disableRipple:F.default.bool,endIcon:F.default.node,focusVisibleClassName:F.default.string,fullWidth:F.default.bool,href:F.default.string,id:F.default.string,loading:F.default.bool,loadingIndicator:F.default.node,loadingPosition:F.default.oneOf([`center`,`end`,`start`]),size:F.default.oneOfType([F.default.oneOf([`small`,`medium`,`large`]),F.default.string]),startIcon:F.default.node,sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),type:F.default.oneOfType([F.default.oneOf([`button`,`reset`,`submit`]),F.default.string]),variant:F.default.oneOfType([F.default.oneOf([`contained`,`outlined`,`text`]),F.default.string])});function UC(e){return yo(`MuiCard`,e)}ls(`MuiCard`,[`root`]);var WC=e=>{let{classes:t}=e;return nx({root:[`root`]},UC,t)},GC=V(iS,{name:`MuiCard`,slot:`Root`,overridesResolver:(e,t)=>t.root})({overflow:`hidden`}),KC=t.forwardRef(function(e,t){let n=cs({props:e,name:`MuiCard`}),{className:r,raised:i=!1,...a}=n,o={...n,raised:i};return(0,v.jsx)(GC,{className:I(WC(o).root,r),elevation:i?8:void 0,ref:t,ownerState:o,...a})});process.env.NODE_ENV!==`production`&&(KC.propTypes={children:F.default.node,classes:F.default.object,className:F.default.string,raised:gb(F.default.bool,e=>e.raised&&e.variant===`outlined`?Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object])});function qC(e){return yo(`MuiCardActions`,e)}ls(`MuiCardActions`,[`root`,`spacing`]);var JC=e=>{let{classes:t,disableSpacing:n}=e;return nx({root:[`root`,!n&&`spacing`]},qC,t)},YC=V(`div`,{name:`MuiCardActions`,slot:`Root`,overridesResolver:(e,t)=>{let{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}}}]}),XC=t.forwardRef(function(e,t){let n=cs({props:e,name:`MuiCardActions`}),{disableSpacing:r=!1,className:i,...a}=n,o={...n,disableSpacing:r};return(0,v.jsx)(YC,{className:I(JC(o).root,i),ownerState:o,ref:t,...a})});process.env.NODE_ENV!==`production`&&(XC.propTypes={children:F.default.node,classes:F.default.object,className:F.default.string,disableSpacing:F.default.bool,sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object])});function ZC(e){return yo(`MuiCardContent`,e)}ls(`MuiCardContent`,[`root`]);var QC=e=>{let{classes:t}=e;return nx({root:[`root`]},ZC,t)},$C=V(`div`,{name:`MuiCardContent`,slot:`Root`,overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),ew=t.forwardRef(function(e,t){let n=cs({props:e,name:`MuiCardContent`}),{className:r,component:i=`div`,...a}=n,o={...n,component:i};return(0,v.jsx)($C,{as:i,className:I(QC(o).root,r),ownerState:o,ref:t,...a})});process.env.NODE_ENV!==`production`&&(ew.propTypes={children:F.default.node,classes:F.default.object,className:F.default.string,component:F.default.elementType,sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object])});function tw(e){return yo(`MuiCardHeader`,e)}var nw=ls(`MuiCardHeader`,[`root`,`avatar`,`action`,`content`,`title`,`subheader`]),rw=e=>{let{classes:t}=e;return nx({root:[`root`],avatar:[`avatar`],action:[`action`],content:[`content`],title:[`title`],subheader:[`subheader`]},tw,t)},iw=V(`div`,{name:`MuiCardHeader`,slot:`Root`,overridesResolver:(e,t)=>[{[`& .${nw.title}`]:t.title},{[`& .${nw.subheader}`]:t.subheader},t.root]})({display:`flex`,alignItems:`center`,padding:16}),aw=V(`div`,{name:`MuiCardHeader`,slot:`Avatar`,overridesResolver:(e,t)=>t.avatar})({display:`flex`,flex:`0 0 auto`,marginRight:16}),ow=V(`div`,{name:`MuiCardHeader`,slot:`Action`,overridesResolver:(e,t)=>t.action})({flex:`0 0 auto`,alignSelf:`flex-start`,marginTop:-4,marginRight:-8,marginBottom:-4}),sw=V(`div`,{name:`MuiCardHeader`,slot:`Content`,overridesResolver:(e,t)=>t.content})({flex:`1 1 auto`,[`.${zS.root}:where(& .${nw.title})`]:{display:`block`},[`.${zS.root}:where(& .${nw.subheader})`]:{display:`block`}}),cw=t.forwardRef(function(e,t){let n=cs({props:e,name:`MuiCardHeader`}),{action:r,avatar:i,component:a=`div`,disableTypography:o=!1,subheader:s,subheaderTypographyProps:c,title:l,titleTypographyProps:u,slots:d={},slotProps:f={},...p}=n,m={...n,component:a,disableTypography:o},h=rw(m),g={slots:d,slotProps:{title:u,subheader:c,...f}},_=l,[y,b]=aS(`title`,{className:h.title,elementType:GS,externalForwardedProps:g,ownerState:m,additionalProps:{variant:i?`body2`:`h5`,component:`span`}});_!=null&&_.type!==GS&&!o&&(_=(0,v.jsx)(y,{...b,children:_}));let x=s,[S,C]=aS(`subheader`,{className:h.subheader,elementType:GS,externalForwardedProps:g,ownerState:m,additionalProps:{variant:i?`body2`:`body1`,color:`textSecondary`,component:`span`}});x!=null&&x.type!==GS&&!o&&(x=(0,v.jsx)(S,{...C,children:x}));let[w,T]=aS(`root`,{ref:t,className:h.root,elementType:iw,externalForwardedProps:{...g,...p,component:a},ownerState:m}),[E,D]=aS(`avatar`,{className:h.avatar,elementType:aw,externalForwardedProps:g,ownerState:m}),[O,k]=aS(`content`,{className:h.content,elementType:sw,externalForwardedProps:g,ownerState:m}),[A,j]=aS(`action`,{className:h.action,elementType:ow,externalForwardedProps:g,ownerState:m});return(0,v.jsxs)(w,{...T,children:[i&&(0,v.jsx)(E,{...D,children:i}),(0,v.jsxs)(O,{...k,children:[_,x]}),r&&(0,v.jsx)(A,{...j,children:r})]})});process.env.NODE_ENV!==`production`&&(cw.propTypes={action:F.default.node,avatar:F.default.node,children:F.default.node,classes:F.default.object,component:F.default.elementType,disableTypography:F.default.bool,slotProps:F.default.shape({action:F.default.oneOfType([F.default.func,F.default.object]),avatar:F.default.oneOfType([F.default.func,F.default.object]),content:F.default.oneOfType([F.default.func,F.default.object]),root:F.default.oneOfType([F.default.func,F.default.object]),subheader:F.default.oneOfType([F.default.func,F.default.object]),title:F.default.oneOfType([F.default.func,F.default.object])}),slots:F.default.shape({action:F.default.elementType,avatar:F.default.elementType,content:F.default.elementType,root:F.default.elementType,subheader:F.default.elementType,title:F.default.elementType}),subheader:F.default.node,subheaderTypographyProps:F.default.object,sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),title:F.default.node,titleTypographyProps:F.default.object});function lw(e){let t=jb(e);return t.body===e?Mb(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function uw(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function dw(e){return parseInt(Mb(e).getComputedStyle(e).paddingRight,10)||0}function fw(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function pw(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!fw(e);t&&n&&uw(e,i)})}function mw(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function hw(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(lw(r)){let e=Yb(Mb(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${dw(r)+e}px`;let t=jb(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${dw(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=jb(r).body;else{let t=r.parentElement,n=Mb(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function gw(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var _w=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&uw(e.modalRef,!1);let r=gw(t);pw(t,e.mount,e.modalRef,r,!0);let i=mw(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=mw(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=hw(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=mw(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&uw(e.modalRef,t),pw(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&uw(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},vw=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function yw(e){let 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 bw(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function xw(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||bw(e))}function Sw(e){let t=[],n=[];return Array.from(e.querySelectorAll(vw)).forEach((e,r)=>{let i=yw(e);i===-1||!xw(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Cw(){return!0}function ww(e){let{children:n,disableAutoFocus:r=!1,disableEnforceFocus:i=!1,disableRestoreFocus:a=!1,getTabbable:o=Sw,isEnabled:s=Cw,open:c}=e,l=t.useRef(!1),u=t.useRef(null),d=t.useRef(null),f=t.useRef(null),p=t.useRef(null),m=t.useRef(!1),h=t.useRef(null),g=Vb(ux(n),h),_=t.useRef(null);t.useEffect(()=>{!c||!h.current||(m.current=!r)},[r,c]),t.useEffect(()=>{if(!c||!h.current)return;let e=jb(h.current);return h.current.contains(e.activeElement)||(h.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(`
153
+ `)),h.current.setAttribute(`tabIndex`,`-1`)),m.current&&h.current.focus()),()=>{a||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[c]),t.useEffect(()=>{if(!c||!h.current)return;let e=jb(h.current),t=t=>{_.current=t,!(i||!s()||t.key!==`Tab`)&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,d.current&&d.current.focus())},n=()=>{let t=h.current;if(t===null)return;if(!e.hasFocus()||!s()||l.current){l.current=!1;return}if(t.contains(e.activeElement)||i&&e.activeElement!==u.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let n=[];if((e.activeElement===u.current||e.activeElement===d.current)&&(n=o(h.current)),n.length>0){let e=!!(_.current?.shiftKey&&_.current?.key===`Tab`),t=n[0],r=n[n.length-1];typeof t!=`string`&&typeof r!=`string`&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let r=setInterval(()=>{e.activeElement&&e.activeElement.tagName===`BODY`&&n()},50);return()=>{clearInterval(r),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[r,i,a,s,c,o]);let y=e=>{f.current===null&&(f.current=e.relatedTarget),m.current=!0,p.current=e.target;let t=n.props.onFocus;t&&t(e)},b=e=>{f.current===null&&(f.current=e.relatedTarget),m.current=!0};return(0,v.jsxs)(t.Fragment,{children:[(0,v.jsx)(`div`,{tabIndex:c?0:-1,onFocus:b,ref:u,"data-testid":`sentinelStart`}),t.cloneElement(n,{ref:g,onFocus:y}),(0,v.jsx)(`div`,{tabIndex:c?0:-1,onFocus:b,ref:d,"data-testid":`sentinelEnd`})]})}process.env.NODE_ENV!==`production`&&(ww.propTypes={children:yb,disableAutoFocus:F.default.bool,disableEnforceFocus:F.default.bool,disableRestoreFocus:F.default.bool,getTabbable:F.default.func,isEnabled:F.default.func,open:F.default.bool.isRequired}),process.env.NODE_ENV!==`production`&&(ww.propTypes=wb(ww.propTypes));function Tw(e){return typeof e==`function`?e():e}function Ew(e){return e?e.props.hasOwnProperty(`in`):!1}var Dw=()=>{},Ow=new _w;function kw(e){let{container:n,disableEscapeKeyDown:r=!1,disableScrollLock:i=!1,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:c,onClose:l,open:u,rootRef:d}=e,f=t.useRef({}),p=t.useRef(null),m=t.useRef(null),h=Vb(m,d),[g,_]=t.useState(!u),v=Ew(c),y=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(y=!1);let b=()=>jb(p.current),x=()=>(f.current.modalRef=m.current,f.current.mount=p.current,f.current),S=()=>{Ow.mount(x(),{disableScrollLock:i}),m.current&&(m.current.scrollTop=0)},C=Bb(()=>{let e=Tw(n)||b().body;Ow.add(x(),e),m.current&&S()}),w=()=>Ow.isTopModal(x()),T=Bb(e=>{p.current=e,e&&(u&&w()?S():m.current&&uw(m.current,y))}),E=t.useCallback(()=>{Ow.remove(x(),y)},[y]);t.useEffect(()=>()=>{E()},[E]),t.useEffect(()=>{u?C():(!v||!a)&&E()},[u,E,v,a,C]);let D=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!w())&&(r||(t.stopPropagation(),l&&l(t,`escapeKeyDown`)))},O=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&l&&l(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=ax(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:D(r),ref:h}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:O(t),open:u}},getTransitionProps:()=>({onEnter:Ob(()=>{_(!1),o&&o()},c?.props.onEnter??Dw),onExited:Ob(()=>{_(!0),s&&s(),a&&E()},c?.props.onExited??Dw)}),rootRef:h,portalRef:T,isTopModal:w,exited:g,hasTransition:v}}function Aw(e){return yo(`MuiModal`,e)}ls(`MuiModal`,[`root`,`hidden`,`backdrop`]);var jw=e=>{let{open:t,exited:n,classes:r}=e;return nx({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},Aw,r)},Mw=V(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(mx(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),Nw=V(OC,{name:`MuiModal`,slot:`Backdrop`,overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Pw=t.forwardRef(function(e,n){let r=cs({name:`MuiModal`,props:e}),{BackdropComponent:i=Nw,BackdropProps:a,classes:o,className:s,closeAfterTransition:c=!1,children:l,container:u,component:d,components:f={},componentsProps:p={},disableAutoFocus:m=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:g=!1,disablePortal:_=!1,disableRestoreFocus:y=!1,disableScrollLock:b=!1,hideBackdrop:x=!1,keepMounted:S=!1,onBackdropClick:C,onClose:w,onTransitionEnter:T,onTransitionExited:E,open:D,slotProps:O={},slots:k={},theme:A,...j}=r,M={...r,closeAfterTransition:c,disableAutoFocus:m,disableEnforceFocus:h,disableEscapeKeyDown:g,disablePortal:_,disableRestoreFocus:y,disableScrollLock:b,hideBackdrop:x,keepMounted:S},{getRootProps:N,getBackdropProps:ee,getTransitionProps:te,portalRef:P,isTopModal:F,exited:ne,hasTransition:re}=kw({...M,rootRef:n}),ie={...M,exited:ne},ae=jw(ie),oe={};if(l.props.tabIndex===void 0&&(oe.tabIndex=`-1`),re){let{onEnter:e,onExited:t}=te();oe.onEnter=e,oe.onExited=t}let se={slots:{root:f.Root,backdrop:f.Backdrop,...k},slotProps:{...p,...O}},[ce,le]=aS(`root`,{ref:n,elementType:Mw,externalForwardedProps:{...se,...j,component:d},getSlotProps:N,ownerState:ie,className:I(s,ae?.root,!ie.open&&ie.exited&&ae?.hidden)}),[ue,de]=aS(`backdrop`,{ref:a?.ref,elementType:i,externalForwardedProps:se,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:e=>ee({...e,onClick:t=>{C&&C(t),e?.onClick&&e.onClick(t)}}),className:I(a?.className,ae?.backdrop),ownerState:ie});return!S&&!D&&(!re||ne)?null:(0,v.jsx)(qS,{ref:P,container:u,disablePortal:_,children:(0,v.jsxs)(ce,{...le,children:[!x&&i?(0,v.jsx)(ue,{...de}):null,(0,v.jsx)(ww,{disableEnforceFocus:h,disableAutoFocus:m,disableRestoreFocus:y,isEnabled:F,open:D,children:t.cloneElement(l,oe)})]})})});process.env.NODE_ENV!==`production`&&(Pw.propTypes={BackdropComponent:F.default.elementType,BackdropProps:F.default.object,children:yb.isRequired,classes:F.default.object,className:F.default.string,closeAfterTransition:F.default.bool,component:F.default.elementType,components:F.default.shape({Backdrop:F.default.elementType,Root:F.default.elementType}),componentsProps:F.default.shape({backdrop:F.default.oneOfType([F.default.func,F.default.object]),root:F.default.oneOfType([F.default.func,F.default.object])}),container:F.default.oneOfType([Tb,F.default.func]),disableAutoFocus:F.default.bool,disableEnforceFocus:F.default.bool,disableEscapeKeyDown:F.default.bool,disablePortal:F.default.bool,disableRestoreFocus:F.default.bool,disableScrollLock:F.default.bool,hideBackdrop:F.default.bool,keepMounted:F.default.bool,onBackdropClick:F.default.func,onClose:F.default.func,onTransitionEnter:F.default.func,onTransitionExited:F.default.func,open:F.default.bool.isRequired,slotProps:F.default.shape({backdrop:F.default.oneOfType([F.default.func,F.default.object]),root:F.default.oneOfType([F.default.func,F.default.object])}),slots:F.default.shape({backdrop:F.default.elementType,root:F.default.elementType}),sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object])});var Fw=ls(`MuiDivider`,[`root`,`absolute`,`fullWidth`,`inset`,`middle`,`flexItem`,`light`,`vertical`,`withChildren`,`withChildrenVertical`,`textAlignRight`,`textAlignLeft`,`wrapper`,`wrapperVertical`]),Iw=e=>{let{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:o,multiline:s}=e,c=nx({root:[`root`,!n&&`underline`,r&&`adornedStart`,i&&`adornedEnd`,a===`small`&&`size${G(a)}`,o&&`hiddenLabel`,s&&`multiline`],input:[`input`]},bC,t);return{...t,...c}},Lw=V(fC,{shouldForwardProp:e=>os(e)||e===`classes`,name:`MuiFilledInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...lC(e,t),!n.disableUnderline&&t.underline]}})(mx(({theme:e})=>{let 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)`,i=t?`rgba(0, 0, 0, 0.09)`:`rgba(255, 255, 255, 0.13)`,a=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:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${xC.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${xC.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:e})=>!e.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`},[`&.${xC.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${xC.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(.${xC.disabled}, .${xC.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xC.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(ES()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:`25px 12px 8px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}}]}})),Rw=V(pC,{name:`MuiFilledInput`,slot:`Input`,overridesResolver:uC})(mx(({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:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),zw=t.forwardRef(function(e,t){let n=cs({props:e,name:`MuiFilledInput`}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:o=!1,hiddenLabel:s,inputComponent:c=`input`,multiline:l=!1,slotProps:u,slots:d={},type:f=`text`,...p}=n,m={...n,disableUnderline:r,fullWidth:o,inputComponent:c,multiline:l,type:f},h=Iw(n),g={root:{ownerState:m},input:{ownerState:m}},_=u??a?qa(g,u??a):g;return(0,v.jsx)(hC,{slots:{root:d.root??i.Root??Lw,input:d.input??i.Input??Rw},slotProps:_,fullWidth:o,inputComponent:c,multiline:l,ref:t,type:f,...p,classes:h})});process.env.NODE_ENV!==`production`&&(zw.propTypes={autoComplete:F.default.string,autoFocus:F.default.bool,classes:F.default.object,color:F.default.oneOfType([F.default.oneOf([`primary`,`secondary`]),F.default.string]),components:F.default.shape({Input:F.default.elementType,Root:F.default.elementType}),componentsProps:F.default.shape({input:F.default.object,root:F.default.object}),defaultValue:F.default.any,disabled:F.default.bool,disableUnderline:F.default.bool,endAdornment:F.default.node,error:F.default.bool,fullWidth:F.default.bool,hiddenLabel:F.default.bool,id:F.default.string,inputComponent:F.default.elementType,inputProps:F.default.object,inputRef:Eb,margin:F.default.oneOf([`dense`,`none`]),maxRows:F.default.oneOfType([F.default.number,F.default.string]),minRows:F.default.oneOfType([F.default.number,F.default.string]),multiline:F.default.bool,name:F.default.string,onChange:F.default.func,placeholder:F.default.string,readOnly:F.default.bool,required:F.default.bool,rows:F.default.oneOfType([F.default.number,F.default.string]),slotProps:F.default.shape({input:F.default.object,root:F.default.object}),slots:F.default.shape({input:F.default.elementType,root:F.default.elementType}),startAdornment:F.default.node,sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),type:F.default.string,value:F.default.any}),zw.muiName=`Input`;function Bw(e){return yo(`MuiFormControl`,e)}ls(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var Vw=e=>{let{classes:t,margin:n,fullWidth:r}=e;return nx({root:[`root`,n!==`none`&&`margin${G(n)}`,r&&`fullWidth`]},Bw,t)},Hw=V(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${G(n.margin)}`],n.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%`}}]}),Uw=t.forwardRef(function(e,n){let r=cs({props:e,name:`MuiFormControl`}),{children:i,className:a,color:o=`primary`,component:s=`div`,disabled:c=!1,error:l=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:p=`none`,required:m=!1,size:h=`medium`,variant:g=`outlined`,..._}=r,y={...r,color:o,component:s,disabled:c,error:l,fullWidth:d,hiddenLabel:f,margin:p,required:m,size:h,variant:g},b=Vw(y),[x,S]=t.useState(()=>{let e=!1;return i&&t.Children.forEach(i,t=>{if(!xx(t,[`Input`,`Select`]))return;let n=xx(t,[`Select`])?t.props.input:t;n&&aC(n.props)&&(e=!0)}),e}),[C,w]=t.useState(()=>{let e=!1;return i&&t.Children.forEach(i,t=>{xx(t,[`Input`,`Select`])&&(iC(t.props,!0)||iC(t.props.inputProps,!0))&&(e=!0)}),e}),[T,E]=t.useState(!1);c&&T&&E(!1);let D=u!==void 0&&!c?u:T,O,k=t.useRef(!1);process.env.NODE_ENV!==`production`&&(O=()=>(k.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
154
+ `)),k.current=!0,()=>{k.current=!1}));let A=t.useCallback(()=>{w(!0)},[]),j=t.useCallback(()=>{w(!1)},[]),M=t.useMemo(()=>({adornedStart:x,setAdornedStart:S,color:o,disabled:c,error:l,filled:C,focused:D,fullWidth:d,hiddenLabel:f,size:h,onBlur:()=>{E(!1)},onFocus:()=>{E(!0)},onEmpty:j,onFilled:A,registerEffect:O,required:m,variant:g}),[x,o,c,l,C,D,d,f,O,j,A,m,h,g]);return(0,v.jsx)(tC.Provider,{value:M,children:(0,v.jsx)(Hw,{as:s,ownerState:y,className:I(b.root,a),ref:n,..._,children:i})})});process.env.NODE_ENV!==`production`&&(Uw.propTypes={children:F.default.node,classes:F.default.object,className:F.default.string,color:F.default.oneOfType([F.default.oneOf([`primary`,`secondary`,`error`,`info`,`success`,`warning`]),F.default.string]),component:F.default.elementType,disabled:F.default.bool,error:F.default.bool,focused:F.default.bool,fullWidth:F.default.bool,hiddenLabel:F.default.bool,margin:F.default.oneOf([`dense`,`none`,`normal`]),required:F.default.bool,size:F.default.oneOfType([F.default.oneOf([`medium`,`small`]),F.default.string]),sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),variant:F.default.oneOf([`filled`,`outlined`,`standard`])});function Ww(e){return yo(`MuiFormHelperText`,e)}var Gw=ls(`MuiFormHelperText`,[`root`,`error`,`disabled`,`sizeSmall`,`sizeMedium`,`contained`,`focused`,`filled`,`required`]),Kw,qw=e=>{let{classes:t,contained:n,size:r,disabled:i,error:a,filled:o,focused:s,required:c}=e;return nx({root:[`root`,i&&`disabled`,a&&`error`,r&&`size${G(r)}`,n&&`contained`,s&&`focused`,o&&`filled`,c&&`required`]},Ww,t)},Jw=V(`p`,{name:`MuiFormHelperText`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.size&&t[`size${G(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(mx(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:`left`,marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Gw.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Gw.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:`small`},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),Yw=t.forwardRef(function(e,t){let n=cs({props:e,name:`MuiFormHelperText`}),{children:r,className:i,component:a=`p`,disabled:o,error:s,filled:c,focused:l,margin:u,required:d,variant:f,...p}=n,m=eC({props:n,muiFormControl:nC(),states:[`variant`,`size`,`disabled`,`error`,`filled`,`focused`,`required`]}),h={...n,component:a,contained:m.variant===`filled`||m.variant===`outlined`,variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};return delete h.ownerState,(0,v.jsx)(Jw,{as:a,className:I(qw(h).root,i),ref:t,...p,ownerState:h,children:r===` `?Kw||=(0,v.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`}):r})});process.env.NODE_ENV!==`production`&&(Yw.propTypes={children:F.default.node,classes:F.default.object,className:F.default.string,component:F.default.elementType,disabled:F.default.bool,error:F.default.bool,filled:F.default.bool,focused:F.default.bool,margin:F.default.oneOf([`dense`]),required:F.default.bool,sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),variant:F.default.oneOfType([F.default.oneOf([`filled`,`outlined`,`standard`]),F.default.string])});function Xw(e){return yo(`MuiFormLabel`,e)}var Zw=ls(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]),Qw=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return nx({root:[`root`,`color${G(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},Xw,t)},$w=V(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(mx(({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(ES()).map(([t])=>({props:{color:t},style:{[`&.${Zw.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Zw.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Zw.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),eT=V(`span`,{name:`MuiFormLabel`,slot:`Asterisk`,overridesResolver:(e,t)=>t.asterisk})(mx(({theme:e})=>({[`&.${Zw.error}`]:{color:(e.vars||e).palette.error.main}}))),tT=t.forwardRef(function(e,t){let n=cs({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,p=eC({props:n,muiFormControl:nC(),states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=Qw(m);return(0,v.jsxs)($w,{as:o,ownerState:m,className:I(h.root,i),ref:t,...f,children:[r,p.required&&(0,v.jsxs)(eT,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});process.env.NODE_ENV!==`production`&&(tT.propTypes={children:F.default.node,classes:F.default.object,className:F.default.string,color:F.default.oneOfType([F.default.oneOf([`error`,`info`,`primary`,`secondary`,`success`,`warning`]),F.default.string]),component:F.default.elementType,disabled:F.default.bool,error:F.default.bool,filled:F.default.bool,focused:F.default.bool,required:F.default.bool,sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object])});function nT(e){return`scale(${e}, ${e**2})`}var rT={entering:{opacity:1,transform:nT(1)},entered:{opacity:1,transform:`none`}},iT=typeof navigator<`u`&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),aT=t.forwardRef(function(e,n){let{addEndListener:r,appear:i=!0,children:a,easing:o,in:s,onEnter:c,onEntered:l,onEntering:u,onExit:d,onExited:f,onExiting:p,style:m,timeout:h=`auto`,TransitionComponent:g=Hx,..._}=e,y=qb(),b=t.useRef(),x=is(),S=t.useRef(null),C=Ox(S,ux(a),n),w=e=>t=>{if(e){let n=S.current;t===void 0?e(n):e(n,t)}},T=w(u),E=w((e,t)=>{$x(e);let{duration:n,delay:r,easing:i}=eS({style:m,timeout:h,easing:o},{mode:`enter`}),a;h===`auto`?(a=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[x.transitions.create(`opacity`,{duration:a,delay:r}),x.transitions.create(`transform`,{duration:iT?a:a*.666,delay:r,easing:i})].join(`,`),c&&c(e,t)}),D=w(l),O=w(p),k=w(e=>{let{duration:t,delay:n,easing:r}=eS({style:m,timeout:h,easing:o},{mode:`exit`}),i;h===`auto`?(i=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=t,e.style.transition=[x.transitions.create(`opacity`,{duration:i,delay:n}),x.transitions.create(`transform`,{duration:iT?i:i*.666,delay:iT?n:n||i*.333,easing:r})].join(`,`),e.style.opacity=0,e.style.transform=nT(.75),d&&d(e)}),A=w(f);return(0,v.jsx)(g,{appear:i,in:s,nodeRef:S,onEnter:E,onEntered:D,onEntering:T,onExit:k,onExited:A,onExiting:O,addEndListener:e=>{h===`auto`&&y.start(b.current||0,e),r&&r(S.current,e)},timeout:h===`auto`?null:h,..._,children:(e,{ownerState:n,...r})=>t.cloneElement(a,{style:{opacity:0,transform:nT(.75),visibility:e===`exited`&&!s?`hidden`:void 0,...rT[e],...m,...a.props.style},ref:C,...r})})});process.env.NODE_ENV!==`production`&&(aT.propTypes={addEndListener:F.default.func,appear:F.default.bool,children:yb.isRequired,easing:F.default.oneOfType([F.default.shape({enter:F.default.string,exit:F.default.string}),F.default.string]),in:F.default.bool,onEnter:F.default.func,onEntered:F.default.func,onEntering:F.default.func,onExit:F.default.func,onExited:F.default.func,onExiting:F.default.func,style:F.default.object,timeout:F.default.oneOfType([F.default.oneOf([`auto`]),F.default.number,F.default.shape({appear:F.default.number,enter:F.default.number,exit:F.default.number})])}),aT&&(aT.muiSupportAuto=!0);var oT=e=>{let{classes:t,disableUnderline:n}=e,r=nx({root:[`root`,!n&&`underline`],input:[`input`]},gC,t);return{...t,...r}},sT=V(fC,{shouldForwardProp:e=>os(e)||e===`classes`,name:`MuiInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...lC(e,t),!n.disableUnderline&&t.underline]}})(mx(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`;return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:`relative`,variants:[{props:({ownerState:e})=>e.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:e})=>!e.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`},[`&.${_C.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${_C.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,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(.${_C.disabled}, .${_C.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${_C.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(ES()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),cT=V(pC,{name:`MuiInput`,slot:`Input`,overridesResolver:uC})({}),lT=t.forwardRef(function(e,t){let n=cs({props:e,name:`MuiInput`}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:o=!1,inputComponent:s=`input`,multiline:c=!1,slotProps:l,slots:u={},type:d=`text`,...f}=n,p=oT(n),m={root:{ownerState:{disableUnderline:r}}},h=l??a?qa(l??a,m):m;return(0,v.jsx)(hC,{slots:{root:u.root??i.Root??sT,input:u.input??i.Input??cT},slotProps:h,fullWidth:o,inputComponent:s,multiline:c,ref:t,type:d,...f,classes:p})});process.env.NODE_ENV!==`production`&&(lT.propTypes={autoComplete:F.default.string,autoFocus:F.default.bool,classes:F.default.object,color:F.default.oneOfType([F.default.oneOf([`primary`,`secondary`]),F.default.string]),components:F.default.shape({Input:F.default.elementType,Root:F.default.elementType}),componentsProps:F.default.shape({input:F.default.object,root:F.default.object}),defaultValue:F.default.any,disabled:F.default.bool,disableUnderline:F.default.bool,endAdornment:F.default.node,error:F.default.bool,fullWidth:F.default.bool,id:F.default.string,inputComponent:F.default.elementType,inputProps:F.default.object,inputRef:Eb,margin:F.default.oneOf([`dense`,`none`]),maxRows:F.default.oneOfType([F.default.number,F.default.string]),minRows:F.default.oneOfType([F.default.number,F.default.string]),multiline:F.default.bool,name:F.default.string,onChange:F.default.func,placeholder:F.default.string,readOnly:F.default.bool,required:F.default.bool,rows:F.default.oneOfType([F.default.number,F.default.string]),slotProps:F.default.shape({input:F.default.object,root:F.default.object}),slots:F.default.shape({input:F.default.elementType,root:F.default.elementType}),startAdornment:F.default.node,sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),type:F.default.string,value:F.default.any}),lT.muiName=`Input`;function uT(e){return yo(`MuiInputLabel`,e)}ls(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]);var dT=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=nx({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`normal`&&`size${G(r)}`,o],asterisk:[s&&`asterisk`]},uT,t);return{...t,...c}},fT=V(tT,{shouldForwardProp:e=>os(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Zw.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]]}})(mx(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.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:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.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:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`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:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),pT=t.forwardRef(function(e,t){let n=cs({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,l=nC(),u=a;u===void 0&&l&&(u=l.filled||l.focused||l.adornedStart);let d=eC({props:n,muiFormControl:l,states:[`size`,`variant`,`required`,`focused`]}),f={...n,disableAnimation:r,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused},p=dT(f);return(0,v.jsx)(fT,{"data-shrink":u,ref:t,className:I(p.root,s),...c,ownerState:f,classes:p})});process.env.NODE_ENV!==`production`&&(pT.propTypes={children:F.default.node,classes:F.default.object,className:F.default.string,color:F.default.oneOfType([F.default.oneOf([`error`,`info`,`primary`,`secondary`,`success`,`warning`]),F.default.string]),disableAnimation:F.default.bool,disabled:F.default.bool,error:F.default.bool,focused:F.default.bool,margin:F.default.oneOf([`dense`]),required:F.default.bool,shrink:F.default.bool,size:F.default.oneOfType([F.default.oneOf([`normal`,`small`]),F.default.string]),sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),variant:F.default.oneOf([`filled`,`outlined`,`standard`])});var mT=t.createContext({});process.env.NODE_ENV!==`production`&&(mT.displayName=`ListContext`);function hT(e){return yo(`MuiList`,e)}ls(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var gT=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return nx({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},hT,t)},_T=V(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{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}}]}),vT=t.forwardRef(function(e,n){let r=cs({props:e,name:`MuiList`}),{children:i,className:a,component:o=`ul`,dense:s=!1,disablePadding:c=!1,subheader:l,...u}=r,d=t.useMemo(()=>({dense:s}),[s]),f={...r,component:o,dense:s,disablePadding:c},p=gT(f);return(0,v.jsx)(mT.Provider,{value:d,children:(0,v.jsxs)(_T,{as:o,className:I(p.root,a),ref:n,ownerState:f,...u,children:[l,i]})})});process.env.NODE_ENV!==`production`&&(vT.propTypes={children:F.default.node,classes:F.default.object,className:F.default.string,component:F.default.elementType,dense:F.default.bool,disablePadding:F.default.bool,subheader:F.default.node,sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object])});var yT=ls(`MuiListItemIcon`,[`root`,`alignItemsFlexStart`]),bT=ls(`MuiListItemText`,[`root`,`multiline`,`dense`,`inset`,`primary`,`secondary`]),xT=Yb;function ST(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function CT(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function wT(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 TT(e,t,n,r,i,a){let o=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}let t=r?!1:s.disabled||s.getAttribute(`aria-disabled`)===`true`;if(!s.hasAttribute(`tabindex`)||!wT(s,a)||t)s=i(e,s,n);else return s.focus(),!0}return!1}var ET=t.forwardRef(function(e,n){let{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:o,className:s,disabledItemsFocusable:c=!1,disableListWrap:l=!1,onKeyDown:u,variant:d=`selectedMenu`,...f}=e,p=t.useRef(null),m=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});wx(()=>{i&&p.current.focus()},[i]),t.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){let n=`${xT(Cx(e))}px`;p.current.style[t===`rtl`?`paddingLeft`:`paddingRight`]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}}),[]);let h=e=>{let t=p.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey){u&&u(e);return}let r=Sx(t).activeElement;if(n===`ArrowDown`)e.preventDefault(),TT(t,r,l,c,ST);else if(n===`ArrowUp`)e.preventDefault(),TT(t,r,l,c,CT);else if(n===`Home`)e.preventDefault(),TT(t,null,l,c,ST);else if(n===`End`)e.preventDefault(),TT(t,null,l,c,CT);else if(n.length===1){let i=m.current,a=n.toLowerCase(),o=performance.now();i.keys.length>0&&(o-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=o,i.keys.push(a);let s=r&&!i.repeating&&wT(r,i);i.previousKeyMatched&&(s||TT(t,r,!1,c,ST,i))?e.preventDefault():i.previousKeyMatched=!1}u&&u(e)},g=Ox(p,n),_=-1;t.Children.forEach(o,(e,n)=>{if(!t.isValidElement(e)){_===n&&(_+=1,_>=o.length&&(_=-1));return}process.env.NODE_ENV!==`production`&&(0,Wa.isFragment)(e)&&console.error([`MUI: The Menu component doesn't accept a Fragment as a child.`,`Consider providing an array instead.`].join(`
155
+ `)),e.props.disabled||(d===`selectedMenu`&&e.props.selected||_===-1)&&(_=n),_===n&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(_+=1,_>=o.length&&(_=-1))});let y=t.Children.map(o,(e,n)=>{if(n===_){let n={};return a&&(n.autoFocus=!0),e.props.tabIndex===void 0&&d===`selectedMenu`&&(n.tabIndex=0),t.cloneElement(e,n)}return e});return(0,v.jsx)(vT,{role:`menu`,ref:g,className:s,onKeyDown:h,tabIndex:i?0:-1,...f,children:y})});process.env.NODE_ENV!==`production`&&(ET.propTypes={autoFocus:F.default.bool,autoFocusItem:F.default.bool,children:F.default.node,className:F.default.string,disabledItemsFocusable:F.default.bool,disableListWrap:F.default.bool,onKeyDown:F.default.func,variant:F.default.oneOf([`menu`,`selectedMenu`])});function DT(e){return yo(`MuiPopover`,e)}ls(`MuiPopover`,[`root`,`paper`]);function OT(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function kT(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function AT(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function jT(e){return typeof e==`function`?e():e}var MT=e=>{let{classes:t}=e;return nx({root:[`root`],paper:[`paper`]},DT,t)},NT=V(Pw,{name:`MuiPopover`,slot:`Root`,overridesResolver:(e,t)=>t.root})({}),PT=V(iS,{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}),FT=t.forwardRef(function(e,n){let r=cs({props:e,name:`MuiPopover`}),{action:i,anchorEl:a,anchorOrigin:o={vertical:`top`,horizontal:`left`},anchorPosition:s,anchorReference:c=`anchorEl`,children:l,className:u,container:d,elevation:f=8,marginThreshold:p=16,open:m,PaperProps:h={},slots:g={},slotProps:_={},transformOrigin:y={vertical:`top`,horizontal:`left`},TransitionComponent:b,transitionDuration:x=`auto`,TransitionProps:S={},disableScrollLock:C=!1,...w}=r,T=t.useRef(),E={...r,anchorOrigin:o,anchorReference:c,elevation:f,marginThreshold:p,transformOrigin:y,TransitionComponent:b,transitionDuration:x,TransitionProps:S},D=MT(E),O=t.useCallback(()=>{if(c===`anchorPosition`)return process.env.NODE_ENV!==`production`&&(s||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),s;let e=jT(a),t=e&&e.nodeType===1?e:Sx(T.current).body,n=t.getBoundingClientRect();if(process.env.NODE_ENV!==`production`){let e=t.getBoundingClientRect();process.env.NODE_ENV!==`test`&&e.top===0&&e.left===0&&e.right===0&&e.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(`
156
+ `))}return{top:n.top+OT(n,o.vertical),left:n.left+kT(n,o.horizontal)}},[a,o.horizontal,o.vertical,s,c]),k=t.useCallback(e=>({vertical:OT(e,y.vertical),horizontal:kT(e,y.horizontal)}),[y.horizontal,y.vertical]),A=t.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=k(t);if(c===`none`)return{top:null,left:null,transformOrigin:AT(n)};let r=O(),i=r.top-n.vertical,o=r.left-n.horizontal,s=i+t.height,l=o+t.width,u=Cx(jT(a)),d=u.innerHeight-p,f=u.innerWidth-p;if(p!==null&&i<p){let e=i-p;i-=e,n.vertical+=e}else if(p!==null&&s>d){let e=s-d;i-=e,n.vertical+=e}if(process.env.NODE_ENV!==`production`&&t.height>d&&t.height&&d&&console.error([`MUI: The popover component is too tall.`,`Some part of it can not be seen on the screen (${t.height-d}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
157
+ `)),p!==null&&o<p){let e=o-p;o-=e,n.horizontal+=e}else if(l>f){let e=l-f;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:AT(n)}},[a,c,O,k,p]),[j,M]=t.useState(m),N=t.useCallback(()=>{let e=T.current;if(!e)return;let t=A(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,M(!0)},[A]);t.useEffect(()=>(C&&window.addEventListener(`scroll`,N),()=>window.removeEventListener(`scroll`,N)),[a,C,N]);let ee=()=>{N()},te=()=>{M(!1)};t.useEffect(()=>{m&&N()}),t.useImperativeHandle(i,()=>m?{updatePosition:()=>{N()}}:null,[m,N]),t.useEffect(()=>{if(!m)return;let e=bx(()=>{N()}),t=Cx(jT(a));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[a,m,N]);let P=x,F={slots:{transition:b,...g},slotProps:{transition:S,paper:h,..._}},[ne,re]=aS(`transition`,{elementType:aT,externalForwardedProps:F,ownerState:E,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),ee()},onExited:t=>{e.onExited?.(t),te()}}),additionalProps:{appear:!0,in:m}});x===`auto`&&!ne.muiSupportAuto&&(P=void 0);let ie=d||(a?Sx(jT(a)).body:void 0),[ae,{slots:oe,slotProps:se,...ce}]=aS(`root`,{ref:n,elementType:NT,externalForwardedProps:{...F,...w},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:kx(typeof _.backdrop==`function`?_.backdrop(E):_.backdrop,{invisible:!0})},container:ie,open:m},ownerState:E,className:I(D.root,u)}),[le,ue]=aS(`paper`,{ref:T,className:D.paper,elementType:PT,externalForwardedProps:F,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:j?void 0:{opacity:0}},ownerState:E});return(0,v.jsx)(ae,{...ce,...!$S(ae)&&{slots:oe,slotProps:se,disableScrollLock:C},children:(0,v.jsx)(ne,{...re,timeout:P,children:(0,v.jsx)(le,{...ue,children:l})})})});process.env.NODE_ENV!==`production`&&(FT.propTypes={action:Eb,anchorEl:gb(F.default.oneOfType([Tb,F.default.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference===`anchorEl`)){let t=jT(e.anchorEl);if(t&&t.nodeType===1){let e=t.getBoundingClientRect();if(process.env.NODE_ENV!==`test`&&e.top===0&&e.left===0&&e.right===0&&e.bottom===0)return 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(`
158
+ `))}else return 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(`
159
+ `))}return null}),anchorOrigin:F.default.shape({horizontal:F.default.oneOfType([F.default.oneOf([`center`,`left`,`right`]),F.default.number]).isRequired,vertical:F.default.oneOfType([F.default.oneOf([`bottom`,`center`,`top`]),F.default.number]).isRequired}),anchorPosition:F.default.shape({left:F.default.number.isRequired,top:F.default.number.isRequired}),anchorReference:F.default.oneOf([`anchorEl`,`anchorPosition`,`none`]),BackdropComponent:F.default.elementType,BackdropProps:F.default.object,children:F.default.node,classes:F.default.object,className:F.default.string,container:F.default.oneOfType([Tb,F.default.func]),disableScrollLock:F.default.bool,elevation:ex,marginThreshold:F.default.number,onClose:F.default.func,open:F.default.bool.isRequired,PaperProps:F.default.shape({component:Sb}),slotProps:F.default.shape({backdrop:F.default.oneOfType([F.default.func,F.default.object]),paper:F.default.oneOfType([F.default.func,F.default.object]),root:F.default.oneOfType([F.default.func,F.default.object]),transition:F.default.oneOfType([F.default.func,F.default.object])}),slots:F.default.shape({backdrop:F.default.elementType,paper:F.default.elementType,root:F.default.elementType,transition:F.default.elementType}),sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),transformOrigin:F.default.shape({horizontal:F.default.oneOfType([F.default.oneOf([`center`,`left`,`right`]),F.default.number]).isRequired,vertical:F.default.oneOfType([F.default.oneOf([`bottom`,`center`,`top`]),F.default.number]).isRequired}),TransitionComponent:F.default.elementType,transitionDuration:F.default.oneOfType([F.default.oneOf([`auto`]),F.default.number,F.default.shape({appear:F.default.number,enter:F.default.number,exit:F.default.number})]),TransitionProps:F.default.object});function IT(e){return yo(`MuiMenu`,e)}ls(`MuiMenu`,[`root`,`paper`,`list`]);var LT={vertical:`top`,horizontal:`right`},RT={vertical:`top`,horizontal:`left`},zT=e=>{let{classes:t}=e;return nx({root:[`root`],paper:[`paper`],list:[`list`]},IT,t)},BT=V(FT,{shouldForwardProp:e=>os(e)||e===`classes`,name:`MuiMenu`,slot:`Root`,overridesResolver:(e,t)=>t.root})({}),VT=V(PT,{name:`MuiMenu`,slot:`Paper`,overridesResolver:(e,t)=>t.paper})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),HT=V(ET,{name:`MuiMenu`,slot:`List`,overridesResolver:(e,t)=>t.list})({outline:0}),UT=t.forwardRef(function(e,n){let r=cs({props:e,name:`MuiMenu`}),{autoFocus:i=!0,children:a,className:o,disableAutoFocusItem:s=!1,MenuListProps:c={},onClose:l,open:u,PaperProps:d={},PopoverClasses:f,transitionDuration:p=`auto`,TransitionProps:{onEntering:m,...h}={},variant:g=`selectedMenu`,slots:_={},slotProps:y={},...b}=r,x=Oa(),S={...r,autoFocus:i,disableAutoFocusItem:s,MenuListProps:c,onEntering:m,PaperProps:d,transitionDuration:p,TransitionProps:h,variant:g},C=zT(S),w=i&&!s&&u,T=t.useRef(null),E=(e,t)=>{T.current&&T.current.adjustStyleForScrollbar(e,{direction:x?`rtl`:`ltr`}),m&&m(e,t)},D=e=>{e.key===`Tab`&&(e.preventDefault(),l&&l(e,`tabKeyDown`))},O=-1;t.Children.map(a,(e,n)=>{t.isValidElement(e)&&(process.env.NODE_ENV!==`production`&&(0,Wa.isFragment)(e)&&console.error([`MUI: The Menu component doesn't accept a Fragment as a child.`,`Consider providing an array instead.`].join(`
160
+ `)),e.props.disabled||(g===`selectedMenu`&&e.props.selected||O===-1)&&(O=n))});let k={slots:_,slotProps:{list:c,transition:h,paper:d,...y}},A=lx({elementType:_.root,externalSlotProps:y.root,ownerState:S,className:[C.root,o]}),[j,M]=aS(`paper`,{className:C.paper,elementType:VT,externalForwardedProps:k,shouldForwardComponentProp:!0,ownerState:S}),[N,ee]=aS(`list`,{className:I(C.list,c.className),elementType:HT,shouldForwardComponentProp:!0,externalForwardedProps:k,getSlotProps:e=>({...e,onKeyDown:t=>{D(t),e.onKeyDown?.(t)}}),ownerState:S}),te=typeof k.slotProps.transition==`function`?k.slotProps.transition(S):k.slotProps.transition;return(0,v.jsx)(BT,{onClose:l,anchorOrigin:{vertical:`bottom`,horizontal:x?`right`:`left`},transformOrigin:x?LT:RT,slots:{root:_.root,paper:j,backdrop:_.backdrop,..._.transition&&{transition:_.transition}},slotProps:{root:A,paper:M,backdrop:typeof y.backdrop==`function`?y.backdrop(S):y.backdrop,transition:{...te,onEntering:(...e)=>{E(...e),te?.onEntering?.(...e)}}},open:u,ref:n,transitionDuration:p,ownerState:S,...b,classes:f,children:(0,v.jsx)(N,{actions:T,autoFocus:i&&(O===-1||s),autoFocusItem:w,variant:g,...ee,children:a})})});process.env.NODE_ENV!==`production`&&(UT.propTypes={anchorEl:F.default.oneOfType([Tb,F.default.func]),autoFocus:F.default.bool,children:F.default.node,classes:F.default.object,className:F.default.string,disableAutoFocusItem:F.default.bool,MenuListProps:F.default.object,onClose:F.default.func,open:F.default.bool.isRequired,PaperProps:F.default.object,PopoverClasses:F.default.object,slotProps:F.default.shape({backdrop:F.default.oneOfType([F.default.func,F.default.object]),list:F.default.oneOfType([F.default.func,F.default.object]),paper:F.default.oneOfType([F.default.func,F.default.object]),root:F.default.oneOfType([F.default.func,F.default.object]),transition:F.default.oneOfType([F.default.func,F.default.object])}),slots:F.default.shape({backdrop:F.default.elementType,list:F.default.elementType,paper:F.default.elementType,root:F.default.elementType,transition:F.default.elementType}),sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),transitionDuration:F.default.oneOfType([F.default.oneOf([`auto`]),F.default.number,F.default.shape({appear:F.default.number,enter:F.default.number,exit:F.default.number})]),TransitionProps:F.default.object,variant:F.default.oneOf([`menu`,`selectedMenu`])});function WT(e){return yo(`MuiMenuItem`,e)}var GT=ls(`MuiMenuItem`,[`root`,`focusVisible`,`dense`,`disabled`,`divider`,`gutters`,`selected`]),KT=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},qT=e=>{let{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:o}=e,s=nx({root:[`root`,n&&`dense`,t&&`disabled`,!i&&`gutters`,r&&`divider`,a&&`selected`]},WT,o);return{...o,...s}},JT=V(SS,{shouldForwardProp:e=>os(e)||e===`classes`,name:`MuiMenuItem`,slot:`Root`,overridesResolver:KT})(mx(({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`}},[`&.${GT.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:va(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${GT.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:va(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${GT.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:va(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})`:va(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${GT.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${GT.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Fw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Fw.inset}`]:{marginLeft:52},[`& .${bT.root}`]:{marginTop:0,marginBottom:0},[`& .${bT.inset}`]:{paddingLeft:36},[`& .${yT.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up(`sm`)]:{minHeight:`auto`}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${yT.root} svg`]:{fontSize:`1.25rem`}}}]}))),YT=t.forwardRef(function(e,n){let r=cs({props:e,name:`MuiMenuItem`}),{autoFocus:i=!1,component:a=`li`,dense:o=!1,divider:s=!1,disableGutters:c=!1,focusVisibleClassName:l,role:u=`menuitem`,tabIndex:d,className:f,...p}=r,m=t.useContext(mT),h=t.useMemo(()=>({dense:o||m.dense||!1,disableGutters:c}),[m.dense,o,c]),g=t.useRef(null);wx(()=>{i&&(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.`))},[i]);let _={...r,dense:h.dense,divider:s,disableGutters:c},y=qT(r),b=Ox(g,n),x;return r.disabled||(x=d===void 0?-1:d),(0,v.jsx)(mT.Provider,{value:h,children:(0,v.jsx)(JT,{ref:b,role:u,tabIndex:x,component:a,focusVisibleClassName:I(y.focusVisible,l),className:I(y.root,f),...p,ownerState:_,classes:y})})});process.env.NODE_ENV!==`production`&&(YT.propTypes={autoFocus:F.default.bool,children:F.default.node,classes:F.default.object,className:F.default.string,component:F.default.elementType,dense:F.default.bool,disabled:F.default.bool,disableGutters:F.default.bool,divider:F.default.bool,focusVisibleClassName:F.default.string,role:F.default.string,selected:F.default.bool,sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),tabIndex:F.default.number});function XT(e){return yo(`MuiNativeSelect`,e)}var ZT=ls(`MuiNativeSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]),QT=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return nx({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,`icon${G(n)}`,a&&`iconOpen`,r&&`disabled`]},XT,t)},$T=V(`select`,{name:`MuiNativeSelect`})(({theme:e})=>({MozAppearance:`none`,WebkitAppearance:`none`,userSelect:`none`,borderRadius:0,cursor:`pointer`,"&:focus":{borderRadius:0},[`&.${ZT.disabled}`]:{cursor:`default`},"&[multiple]":{height:`auto`},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!==`filled`&&e.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}}}]})),eE=V($T,{name:`MuiNativeSelect`,slot:`Select`,shouldForwardProp:os,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${ZT.multiple}`]:t.multiple}]}})({}),tE=V(`svg`,{name:`MuiNativeSelect`})(({theme:e})=>({position:`absolute`,right:0,top:`calc(50% - .5em)`,pointerEvents:`none`,color:(e.vars||e).palette.action.active,[`&.${ZT.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:`rotate(180deg)`}},{props:{variant:`filled`},style:{right:7}},{props:{variant:`outlined`},style:{right:7}}]})),nE=V(tE,{name:`MuiNativeSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${G(n.variant)}`],n.open&&t.iconOpen]}})({}),rE=t.forwardRef(function(e,n){let{className:r,disabled:i,error:a,IconComponent:o,inputRef:s,variant:c=`standard`,...l}=e,u={...e,disabled:i,variant:c,error:a},d=QT(u);return(0,v.jsxs)(t.Fragment,{children:[(0,v.jsx)(eE,{ownerState:u,className:I(d.select,r),disabled:i,ref:s||n,...l}),e.multiple?null:(0,v.jsx)(nE,{as:o,ownerState:u,className:d.icon})]})});process.env.NODE_ENV!==`production`&&(rE.propTypes={children:F.default.node,classes:F.default.object,className:F.default.string,disabled:F.default.bool,error:F.default.bool,IconComponent:F.default.elementType.isRequired,inputRef:Eb,multiple:F.default.bool,name:F.default.string,onChange:F.default.func,value:F.default.any,variant:F.default.oneOf([`standard`,`outlined`,`filled`])});var iE,aE=V(`fieldset`,{name:`MuiNotchedOutlined`,shouldForwardProp:os})({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%`}),oE=V(`legend`,{name:`MuiNotchedOutlined`,shouldForwardProp:os})(mx(({theme:e})=>({float:`unset`,width:`auto`,overflow:`hidden`,variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:`11px`,transition:e.transitions.create(`width`,{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.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:e})=>e.withLabel&&e.notched,style:{maxWidth:`100%`,transition:e.transitions.create(`max-width`,{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function sE(e){let{children:t,classes:n,className:r,label:i,notched:a,...o}=e,s=i!=null&&i!==``,c={...e,notched:a,withLabel:s};return(0,v.jsx)(aE,{"aria-hidden":!0,className:r,ownerState:c,...o,children:(0,v.jsx)(oE,{ownerState:c,children:s?(0,v.jsx)(`span`,{children:i}):iE||=(0,v.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`})})})}process.env.NODE_ENV!==`production`&&(sE.propTypes={children:F.default.node,classes:F.default.object,className:F.default.string,label:F.default.node,notched:F.default.bool.isRequired,style:F.default.object});var cE=e=>{let{classes:t}=e,n=nx({root:[`root`],notchedOutline:[`notchedOutline`],input:[`input`]},vC,t);return{...t,...n}},lE=V(fC,{shouldForwardProp:e=>os(e)||e===`classes`,name:`MuiOutlinedInput`,slot:`Root`,overridesResolver:lC})(mx(({theme:e})=>{let 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 .${yC.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${yC.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${yC.focused} .${yC.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(ES()).map(([t])=>({props:{color:t},style:{[`&.${yC.focused} .${yC.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${yC.error} .${yC.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${yC.disabled} .${yC.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:`16.5px 14px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{padding:`8.5px 14px`}}]}})),uE=V(sE,{name:`MuiOutlinedInput`,slot:`NotchedOutline`,overridesResolver:(e,t)=>t.notchedOutline})(mx(({theme:e})=>{let 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}})),dE=V(pC,{name:`MuiOutlinedInput`,slot:`Input`,overridesResolver:uC})(mx(({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:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),fE=t.forwardRef(function(e,n){let r=cs({props:e,name:`MuiOutlinedInput`}),{components:i={},fullWidth:a=!1,inputComponent:o=`input`,label:s,multiline:c=!1,notched:l,slots:u={},slotProps:d={},type:f=`text`,...p}=r,m=cE(r),h=nC(),g=eC({props:r,muiFormControl:h,states:[`color`,`disabled`,`error`,`focused`,`hiddenLabel`,`size`,`required`]}),_={...r,color:g.color||`primary`,disabled:g.disabled,error:g.error,focused:g.focused,formControl:h,fullWidth:a,hiddenLabel:g.hiddenLabel,multiline:c,size:g.size,type:f},y=u.root??i.Root??lE,b=u.input??i.Input??dE,[x,S]=aS(`notchedOutline`,{elementType:uE,className:m.notchedOutline,shouldForwardComponentProp:!0,ownerState:_,externalForwardedProps:{slots:u,slotProps:d},additionalProps:{label:s!=null&&s!==``&&g.required?(0,v.jsxs)(t.Fragment,{children:[s,` `,`*`]}):s}});return(0,v.jsx)(hC,{slots:{root:y,input:b},slotProps:d,renderSuffix:e=>(0,v.jsx)(x,{...S,notched:l===void 0?!!(e.startAdornment||e.filled||e.focused):l}),fullWidth:a,inputComponent:o,multiline:c,ref:n,type:f,...p,classes:{...m,notchedOutline:null}})});process.env.NODE_ENV!==`production`&&(fE.propTypes={autoComplete:F.default.string,autoFocus:F.default.bool,classes:F.default.object,color:F.default.oneOfType([F.default.oneOf([`primary`,`secondary`]),F.default.string]),components:F.default.shape({Input:F.default.elementType,Root:F.default.elementType}),defaultValue:F.default.any,disabled:F.default.bool,endAdornment:F.default.node,error:F.default.bool,fullWidth:F.default.bool,id:F.default.string,inputComponent:F.default.elementType,inputProps:F.default.object,inputRef:Eb,label:F.default.node,margin:F.default.oneOf([`dense`,`none`]),maxRows:F.default.oneOfType([F.default.number,F.default.string]),minRows:F.default.oneOfType([F.default.number,F.default.string]),multiline:F.default.bool,name:F.default.string,notched:F.default.bool,onChange:F.default.func,placeholder:F.default.string,readOnly:F.default.bool,required:F.default.bool,rows:F.default.oneOfType([F.default.number,F.default.string]),slotProps:F.default.shape({input:F.default.object,notchedOutline:F.default.oneOfType([F.default.func,F.default.object]),root:F.default.object}),slots:F.default.shape({input:F.default.elementType,notchedOutline:F.default.elementType,root:F.default.elementType}),startAdornment:F.default.node,sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),type:F.default.string,value:F.default.any}),fE.muiName=`Input`;function pE(e){return yo(`MuiSelect`,e)}var mE=ls(`MuiSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`focused`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]),hE,gE=V($T,{name:`MuiSelect`,slot:`Select`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`&.${mE.select}`]:t.select},{[`&.${mE.select}`]:t[n.variant]},{[`&.${mE.error}`]:t.error},{[`&.${mE.multiple}`]:t.multiple}]}})({[`&.${mE.select}`]:{height:`auto`,minHeight:`1.4375em`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`}}),_E=V(tE,{name:`MuiSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${G(n.variant)}`],n.open&&t.iconOpen]}})({}),vE=V(`input`,{shouldForwardProp:e=>as(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 yE(e,t){return typeof t==`object`&&t?e===t:String(e)===String(t)}function bE(e){return e==null||typeof e==`string`&&!e.trim()}var xE=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return nx({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,`icon${G(n)}`,a&&`iconOpen`,r&&`disabled`],nativeInput:[`nativeInput`]},pE,t)},SE=t.forwardRef(function(e,n){let{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:o,children:s,className:c,defaultOpen:l,defaultValue:u,disabled:d,displayEmpty:f,error:p=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:_={},multiple:y,name:b,onBlur:x,onChange:S,onClose:C,onFocus:w,onOpen:T,open:E,readOnly:D,renderValue:O,required:k,SelectDisplayProps:A={},tabIndex:j,type:M,value:N,variant:ee=`standard`,...te}=e,[P,F]=Ex({controlled:N,default:u,name:`Select`}),[ne,re]=Ex({controlled:E,default:l,name:`Select`}),ie=t.useRef(null),ae=t.useRef(null),[oe,se]=t.useState(null),{current:ce}=t.useRef(E!=null),[le,ue]=t.useState(),de=Ox(n,h),fe=t.useCallback(e=>{ae.current=e,e&&se(e)},[]),pe=oe?.parentNode;t.useImperativeHandle(de,()=>({focus:()=>{ae.current.focus()},node:ie.current,value:P}),[P]),t.useEffect(()=>{l&&ne&&oe&&!ce&&(ue(o?null:pe.clientWidth),ae.current.focus())},[oe,o]),t.useEffect(()=>{a&&ae.current.focus()},[a]),t.useEffect(()=>{if(!g)return;let e=Sx(ae.current).getElementById(g);if(e){let t=()=>{getSelection().isCollapsed&&ae.current.focus()};return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}}},[g]);let me=(e,t)=>{e?T&&T(t):C&&C(t),ce||(ue(o?null:pe.clientWidth),re(e))},L=e=>{e.button===0&&(e.preventDefault(),ae.current.focus(),me(!0,e))},he=e=>{me(!1,e)},ge=t.Children.toArray(s),_e=e=>{let t=ge.find(t=>t.props.value===e.target.value);t!==void 0&&(F(t.props.value),S&&S(e,t))},ve=e=>t=>{let n;if(t.currentTarget.hasAttribute(`tabindex`)){if(y){n=Array.isArray(P)?P.slice():[];let t=P.indexOf(e.props.value);t===-1?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),P!==n&&(F(n),S)){let r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:b}}),S(i,e)}y||me(!1,t)}},ye=e=>{D||[` `,`ArrowUp`,`ArrowDown`,`Enter`].includes(e.key)&&(e.preventDefault(),me(!0,e))},be=oe!==null&&ne,xe=e=>{!be&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:P,name:b}}),x(e))};delete te[`aria-invalid`];let Se,Ce,we=[],Te=!1,R=!1;(iC({value:P})||f)&&(O?Se=O(P):Te=!0);let Ee=ge.map(e=>{if(!t.isValidElement(e))return null;process.env.NODE_ENV!==`production`&&(0,Wa.isFragment)(e)&&console.error([`MUI: The Select component doesn't accept a Fragment as a child.`,`Consider providing an array instead.`].join(`
161
+ `));let n;if(y){if(!Array.isArray(P))throw Error(process.env.NODE_ENV===`production`?na(2):"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.");n=P.some(t=>yE(t,e.props.value)),n&&Te&&we.push(e.props.children)}else n=yE(P,e.props.value),n&&Te&&(Ce=e.props.children);return n&&(R=!0),t.cloneElement(e,{"aria-selected":n?`true`:`false`,onClick:ve(e),onKeyUp:t=>{t.key===` `&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:`option`,selected:n,value:void 0,"data-value":e.props.value})});process.env.NODE_ENV!==`production`&&t.useEffect(()=>{if(!R&&!y&&P!==``){let e=ge.map(e=>e.props.value);console.warn([`MUI: You have provided an out-of-range value \`${P}\` for the select ${b?`(name="${b}") `:``}component.`,`Consider providing a value that matches one of the available options or ''.`,`The available values are ${e.filter(e=>e!=null).map(e=>`\`${e}\``).join(`, `)||`""`}.`].join(`
162
+ `))}},[R,ge,y,b,P]),Te&&(Se=y?we.length===0?null:we.reduce((e,t,n)=>(e.push(t),n<we.length-1&&e.push(`, `),e),[]):Ce);let De=le;!o&&ce&&oe&&(De=pe.clientWidth);let Oe;Oe=j===void 0?d?null:0:j;let ke=A.id||(b?`mui-component-select-${b}`:void 0),Ae={...e,variant:ee,value:P,open:be,error:p},je=xE(Ae),Me={..._.PaperProps,..._.slotProps?.paper},Ne=Rb();return(0,v.jsxs)(t.Fragment,{children:[(0,v.jsx)(gE,{as:`div`,ref:fe,tabIndex:Oe,role:`combobox`,"aria-controls":be?Ne:void 0,"aria-disabled":d?`true`:void 0,"aria-expanded":be?`true`:`false`,"aria-haspopup":`listbox`,"aria-label":i,"aria-labelledby":[g,ke].filter(Boolean).join(` `)||void 0,"aria-describedby":r,"aria-required":k?`true`:void 0,"aria-invalid":p?`true`:void 0,onKeyDown:ye,onMouseDown:d||D?null:L,onBlur:xe,onFocus:w,...A,ownerState:Ae,className:I(A.className,je.select,c),id:ke,children:bE(Se)?hE||=(0,v.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`}):Se}),(0,v.jsx)(vE,{"aria-invalid":p,value:Array.isArray(P)?P.join(`,`):P,name:b,ref:ie,"aria-hidden":!0,onChange:_e,tabIndex:-1,disabled:d,className:je.nativeInput,autoFocus:a,required:k,...te,ownerState:Ae}),(0,v.jsx)(_E,{as:m,className:je.icon,ownerState:Ae}),(0,v.jsx)(UT,{id:`menu-${b||``}`,anchorEl:pe,open:be,onClose:he,anchorOrigin:{vertical:`bottom`,horizontal:`center`},transformOrigin:{vertical:`top`,horizontal:`center`},..._,slotProps:{..._.slotProps,list:{"aria-labelledby":g,role:`listbox`,"aria-multiselectable":y?`true`:void 0,disableListWrap:!0,id:Ne,..._.MenuListProps},paper:{...Me,style:{minWidth:De,...Me==null?null:Me.style}}},children:Ee})]})});process.env.NODE_ENV!==`production`&&(SE.propTypes={"aria-describedby":F.default.string,"aria-label":F.default.string,autoFocus:F.default.bool,autoWidth:F.default.bool,children:F.default.node,classes:F.default.object,className:F.default.string,defaultOpen:F.default.bool,defaultValue:F.default.any,disabled:F.default.bool,displayEmpty:F.default.bool,error:F.default.bool,IconComponent:F.default.elementType.isRequired,inputRef:Eb,labelId:F.default.string,MenuProps:F.default.object,multiple:F.default.bool,name:F.default.string,onBlur:F.default.func,onChange:F.default.func,onClose:F.default.func,onFocus:F.default.func,onOpen:F.default.func,open:F.default.bool,readOnly:F.default.bool,renderValue:F.default.func,required:F.default.bool,SelectDisplayProps:F.default.object,tabIndex:F.default.oneOfType([F.default.number,F.default.string]),type:F.default.any,value:F.default.any,variant:F.default.oneOf([`standard`,`outlined`,`filled`])});var CE=e=>{let{classes:t}=e,n=nx({root:[`root`]},pE,t);return{...t,...n}},wE={name:`MuiSelect`,overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>os(e)&&e!==`variant`,slot:`Root`},TE=V(lT,wE)(``),EE=V(fE,wE)(``),DE=V(zw,wE)(``),OE=t.forwardRef(function(e,n){let r=cs({name:`MuiSelect`,props:e}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:c=!1,displayEmpty:l=!1,IconComponent:u=SC,id:d,input:f,inputProps:p,label:m,labelId:h,MenuProps:g,multiple:_=!1,native:y=!1,onClose:b,onOpen:x,open:S,renderValue:C,SelectDisplayProps:w,variant:T=`outlined`,...E}=r,D=y?rE:SE,O=eC({props:r,muiFormControl:nC(),states:[`variant`,`error`]}),k=O.variant||T,A={...r,variant:k,classes:o},j=CE(A),{root:M,...N}=j,ee=f||{standard:(0,v.jsx)(TE,{ownerState:A}),outlined:(0,v.jsx)(EE,{label:m,ownerState:A}),filled:(0,v.jsx)(DE,{ownerState:A})}[k],te=Ox(n,ux(ee));return(0,v.jsx)(t.Fragment,{children:t.cloneElement(ee,{inputComponent:D,inputProps:{children:a,error:O.error,IconComponent:u,variant:k,type:void 0,multiple:_,...y?{id:d}:{autoWidth:i,defaultOpen:c,displayEmpty:l,labelId:h,MenuProps:g,onClose:b,onOpen:x,open:S,renderValue:C,SelectDisplayProps:{id:d,...w}},...p,classes:p?qa(N,p.classes):N,...f?f.props.inputProps:{}},...(_&&y||l)&&k===`outlined`?{notched:!0}:{},ref:te,className:I(ee.props.className,s,j.root),...!f&&{variant:k},...E})})});process.env.NODE_ENV!==`production`&&(OE.propTypes={autoWidth:F.default.bool,children:F.default.node,classes:F.default.object,className:F.default.string,defaultOpen:F.default.bool,defaultValue:F.default.any,displayEmpty:F.default.bool,IconComponent:F.default.elementType,id:F.default.string,input:F.default.element,inputProps:F.default.object,label:F.default.node,labelId:F.default.string,MenuProps:F.default.object,multiple:F.default.bool,native:F.default.bool,onChange:F.default.func,onClose:F.default.func,onOpen:F.default.func,open:F.default.bool,renderValue:F.default.func,SelectDisplayProps:F.default.object,sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),value:F.default.oneOfType([F.default.oneOf([``]),F.default.any]),variant:F.default.oneOf([`filled`,`outlined`,`standard`])}),OE.muiName=`Select`;function kE(e){return yo(`MuiTextField`,e)}ls(`MuiTextField`,[`root`]);var AE={standard:lT,filled:zw,outlined:fE},jE=e=>{let{classes:t}=e;return nx({root:[`root`]},kE,t)},ME=V(Uw,{name:`MuiTextField`,slot:`Root`,overridesResolver:(e,t)=>t.root})({}),NE=t.forwardRef(function(e,t){let n=cs({props:e,name:`MuiTextField`}),{autoComplete:r,autoFocus:i=!1,children:a,className:o,color:s=`primary`,defaultValue:c,disabled:l=!1,error:u=!1,FormHelperTextProps:d,fullWidth:f=!1,helperText:p,id:m,InputLabelProps:h,inputProps:g,InputProps:_,inputRef:y,label:b,maxRows:x,minRows:S,multiline:C=!1,name:w,onBlur:T,onChange:E,onFocus:D,placeholder:O,required:k=!1,rows:A,select:j=!1,SelectProps:M,slots:N={},slotProps:ee={},type:te,value:P,variant:F=`outlined`,...ne}=n,re={...n,autoFocus:i,color:s,disabled:l,error:u,fullWidth:f,multiline:C,required:k,select:j,variant:F},ie=jE(re);process.env.NODE_ENV!==`production`&&j&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");let ae=Rb(m),oe=p&&ae?`${ae}-helper-text`:void 0,se=b&&ae?`${ae}-label`:void 0,ce=AE[F],le={slots:N,slotProps:{input:_,inputLabel:h,htmlInput:g,formHelperText:d,select:M,...ee}},ue={},de=le.slotProps.inputLabel;F===`outlined`&&(de&&de.shrink!==void 0&&(ue.notched=de.shrink),ue.label=b),j&&((!M||!M.native)&&(ue.id=void 0),ue[`aria-describedby`]=void 0);let[fe,pe]=aS(`root`,{elementType:ME,shouldForwardComponentProp:!0,externalForwardedProps:{...le,...ne},ownerState:re,className:I(ie.root,o),ref:t,additionalProps:{disabled:l,error:u,fullWidth:f,required:k,color:s,variant:F}}),[me,L]=aS(`input`,{elementType:ce,externalForwardedProps:le,additionalProps:ue,ownerState:re}),[he,ge]=aS(`inputLabel`,{elementType:pT,externalForwardedProps:le,ownerState:re}),[_e,ve]=aS(`htmlInput`,{elementType:`input`,externalForwardedProps:le,ownerState:re}),[ye,be]=aS(`formHelperText`,{elementType:Yw,externalForwardedProps:le,ownerState:re}),[xe,Se]=aS(`select`,{elementType:OE,externalForwardedProps:le,ownerState:re}),Ce=(0,v.jsx)(me,{"aria-describedby":oe,autoComplete:r,autoFocus:i,defaultValue:c,fullWidth:f,multiline:C,name:w,rows:A,maxRows:x,minRows:S,type:te,value:P,id:ae,inputRef:y,onBlur:T,onChange:E,onFocus:D,placeholder:O,inputProps:ve,slots:{input:N.htmlInput?_e:void 0},...L});return(0,v.jsxs)(fe,{...pe,children:[b!=null&&b!==``&&(0,v.jsx)(he,{htmlFor:ae,id:se,...ge,children:b}),j?(0,v.jsx)(xe,{"aria-describedby":oe,id:ae,labelId:se,value:P,input:Ce,...Se,children:a}):Ce,p&&(0,v.jsx)(ye,{id:oe,...be,children:p})]})});process.env.NODE_ENV!==`production`&&(NE.propTypes={autoComplete:F.default.string,autoFocus:F.default.bool,children:F.default.node,classes:F.default.object,className:F.default.string,color:F.default.oneOfType([F.default.oneOf([`primary`,`secondary`,`error`,`info`,`success`,`warning`]),F.default.string]),defaultValue:F.default.any,disabled:F.default.bool,error:F.default.bool,FormHelperTextProps:F.default.object,fullWidth:F.default.bool,helperText:F.default.node,id:F.default.string,InputLabelProps:F.default.object,inputProps:F.default.object,InputProps:F.default.object,inputRef:Eb,label:F.default.node,margin:F.default.oneOf([`dense`,`none`,`normal`]),maxRows:F.default.oneOfType([F.default.number,F.default.string]),minRows:F.default.oneOfType([F.default.number,F.default.string]),multiline:F.default.bool,name:F.default.string,onBlur:F.default.func,onChange:F.default.func,onFocus:F.default.func,placeholder:F.default.string,required:F.default.bool,rows:F.default.oneOfType([F.default.number,F.default.string]),select:F.default.bool,SelectProps:F.default.object,size:F.default.oneOfType([F.default.oneOf([`medium`,`small`]),F.default.string]),slotProps:F.default.shape({formHelperText:F.default.oneOfType([F.default.func,F.default.object]),htmlInput:F.default.oneOfType([F.default.func,F.default.object]),input:F.default.oneOfType([F.default.func,F.default.object]),inputLabel:F.default.oneOfType([F.default.func,F.default.object]),select:F.default.oneOfType([F.default.func,F.default.object])}),slots:F.default.shape({formHelperText:F.default.elementType,htmlInput:F.default.elementType,input:F.default.elementType,inputLabel:F.default.elementType,root:F.default.elementType,select:F.default.elementType}),sx:F.default.oneOfType([F.default.arrayOf(F.default.oneOfType([F.default.func,F.default.object,F.default.bool])),F.default.func,F.default.object]),type:F.default.string,value:F.default.any,variant:F.default.oneOf([`filled`,`outlined`,`standard`])});var PE=yx((0,v.jsx)(`path`,{d:`M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z`}),`ArrowForwardIos`),FE=yx((0,v.jsx)(`path`,{d:`M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z`}),`ArrowBackIos`),IE=d(l(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|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,g={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(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))}))(),1);km.register(Sh,Hh,yh,Zh,qh,Qm,eh,Ag,uh,zm);function LE({execute:e,userId:t}){let[n,r]=(0,f.useState)([]),[i,a]=(0,f.useState)(null),[o,s]=(0,f.useState)(null),[c,l]=(0,f.useState)(new Date().getMonth()),[u,d]=(0,f.useState)(new Date().getFullYear()),[p,m]=(0,f.useState)({totalSearches:0,avgTimeBetweenSearches:0,topSearchKeywords:[],globalSearch:0,pageSearch:0}),[h,g]=(0,f.useState)(null),[_,y]=(0,f.useState)([]),[b,x]=(0,f.useState)(null),S=e=>{g(e.target.value)};(0,f.useEffect)(()=>{(async()=>{try{let n=await e({code:`get_analytics_data`,parameters:{userId:+t||null,eventName:`search_tracking`}}),i=await e({code:`get_analytics_data1`,parameters:{userId:+t||null,eventName:`search_tracking`}});i&&s({labels:i?.data?.result?.map(e=>e.page_source.split(`/`).filter(Boolean).slice(-2).join(`/`)),datasets:[{label:`Number of Searches`,data:i?.data?.result?.map(e=>e.total_visit),backgroundColor:`rgba(75, 192, 192, 0.6)`,borderColor:`rgba(75, 192, 192, 1)`,borderWidth:1}]}),r(n?.data?.result)}catch{throw Error(`Problem in getting search tracking data`)}})()},[e,t]),(0,f.useEffect)(()=>{let n=async()=>{let n=await e({code:`get_analytics_data_daywise`,parameters:{userId:+t||null,eventName:`search_tracking`,year:u,month:c+1}}),r=n?.data?.result?.map(e=>e.event_date),i=n?.data?.result?.map(e=>e.total_visit);a({labels:r,datasets:[{label:`Number of Searches`,data:i,fill:!1,borderColor:`rgba(75, 192, 192, 1)`,tension:.1}]})};try{n()}catch(e){throw Error(e)}},[c,u,t]),(0,f.useEffect)(()=>{let e=(0,IE.default)(),t=0,r=[],i={},a=0,o=0;t=n.filter(t=>(0,IE.default)(t?.event_time).isAfter(e.subtract(24,`hours`))).length,n.forEach(e=>{let t=JSON.parse(e?.event_data);t?.time_since_last_search&&r.push(t?.time_since_last_search);let n=t?.search_query;n&&(i[n]=(i[n]||0)+1),t?.search_type===`Global Search`?a+=1:o+=1});let s=r.length?(r.reduce((e,t)=>e+t,0)/r.length).toFixed(2):0,c=Object.entries(i).sort((e,t)=>t[1]-e[1]).slice(0,5).map(([e,t])=>({keyword:e,count:t}));m({totalSearches:t,avgTimeBetweenSearches:s,topSearchKeywords:c,globalSearch:a,pageSearch:o})},[n]);let C=e=>{let t=new Date;if(new Date(u,c+e,1)>t){alert(`You cannot go beyond the current month.`);return}let n=new Date(u,c+e,1);l(n.getMonth()),d(n.getFullYear())},w={plugins:{title:{display:!0,text:`Number of Searches Per Day (${c+1}/${u})`}},scales:{x:{type:`category`,title:{display:!0,text:`Date`}},y:{beginAtZero:!0,title:{display:!0,text:`Number of Searches`}}}};return(0,f.useEffect)(()=>{if(n){let e={},t=[];n.forEach(n=>{let r=JSON.parse(n?.event_data)?.interacted_page;t.push(r),r&&(e[r]=(e[r]||0)+1)});let r=[...new Set(t)];g(r[0]),y(r)}},[n]),(0,f.useEffect)(()=>{if(h){let e=n.reduce((e,t)=>{let n=JSON.parse(t?.event_data),r=n?.interacted_page,i=n?.search_query;return r===h&&i&&(e[i]=(e[i]||0)+1),e},{});x({labels:Object.keys(e),datasets:[{label:`Search Query Counts`,data:Object.values(e),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}]})}},[h,n]),(0,v.jsxs)(`div`,{style:{marginTop:`30px`,marginRight:`10px`},children:[(0,v.jsxs)(H,{container:!0,spacing:3,justifyContent:`center`,size:{xs:12},children:[(0,v.jsx)(H,{size:{md:6},children:(0,v.jsx)(KC,{elevation:6,style:{height:`423px`},children:(0,v.jsxs)(ew,{children:[(0,v.jsx)(XC,{children:(0,v.jsxs)(AC,{sx:{display:`flex`,justifyContent:`space-between`,width:`100%`},children:[(0,v.jsx)(`span`,{children:`${new Date(u,c).toLocaleString(`default`,{month:`long`})}, ${u}`}),(0,v.jsxs)(`div`,{children:[(0,v.jsx)(FE,{onClick:()=>C(-1)}),(0,v.jsx)(PE,{onClick:()=>C(1)})]})]})}),i&&(0,v.jsx)(Vg,{data:i,options:w})]})})}),(0,v.jsx)(H,{size:{md:6},children:(0,v.jsxs)(H,{container:!0,spacing:3,justifyContent:`center`,children:[(0,v.jsxs)(H,{container:!0,spacing:3,justifyContent:`center`,sx:{width:`100%`},children:[(0,v.jsx)(H,{size:{md:6},children:(0,v.jsx)(KC,{elevation:6,style:{height:`200px`},children:(0,v.jsxs)(ew,{children:[(0,v.jsx)(GS,{variant:`body2`,children:`Total Searches in Last 24 Hours`}),(0,v.jsx)(`h2`,{children:p.totalSearches})]})})}),(0,v.jsx)(H,{size:{md:6},children:(0,v.jsx)(KC,{elevation:6,style:{height:`200px`},children:(0,v.jsxs)(ew,{children:[(0,v.jsx)(GS,{variant:`body2`,children:`Average Time Between Searches`}),(0,v.jsx)(`h2`,{children:p.avgTimeBetweenSearches}),`seconds`]})})})]}),(0,v.jsxs)(H,{container:!0,spacing:3,justifyContent:`center`,sx:{width:`100%`},children:[(0,v.jsx)(H,{size:{md:6},children:(0,v.jsx)(KC,{elevation:6,style:{height:`200px`},sx:{width:`100%`},children:(0,v.jsxs)(ew,{children:[(0,v.jsx)(GS,{variant:`body2`,children:`Top 5 Most Searched Keywords:`}),(0,v.jsx)(`ul`,{children:p.topSearchKeywords.map((e,t)=>(0,v.jsxs)(`li`,{children:[e.keyword,`: `,e.count]},t))})]})})}),(0,v.jsx)(H,{size:{md:6},children:(0,v.jsx)(KC,{elevation:6,style:{height:`200px`},sx:{width:`100%`},children:(0,v.jsx)(ew,{children:(0,v.jsxs)(H,{container:!0,spacing:3,justifyContent:`center`,sx:{width:`100%`},children:[(0,v.jsxs)(H,{size:{md:6},children:[(0,v.jsx)(GS,{variant:`body2`,children:`Global Search`}),(0,v.jsx)(`h2`,{children:p.globalSearch})]}),(0,v.jsxs)(H,{size:{md:6},children:[(0,v.jsx)(GS,{variant:`body2`,children:`Page Search`}),(0,v.jsx)(`h2`,{children:p.pageSearch})]})]})})})})]})]})})]}),(0,v.jsxs)(H,{container:!0,spacing:3,justifyContent:`center`,sx:{marginTop:`30px`},children:[(0,v.jsx)(H,{Fde:!0,size:{md:6},sx:{height:`423px`},children:(0,v.jsx)(KC,{elevation:6,sx:{height:`100%`,width:`100%`,overflow:`hidden`},children:(0,v.jsxs)(ew,{sx:{height:`100%`,display:`flex`,flexDirection:`column`},children:[(0,v.jsx)(XC,{children:(0,v.jsx)(AC,{sx:{display:`flex`,justifyContent:`space-between`,width:`100%`},children:`Search Per Page`})}),o&&(0,v.jsx)(AC,{sx:{flexGrow:1,overflow:`hidden`},children:(0,v.jsx)(Hg,{data:o,options:{plugins:{legend:{display:!0,position:`top`}},scales:{x:{title:{display:!0,text:`Interacted Page`}},y:{title:{display:!0,text:`Number of Searches`},beginAtZero:!0}},responsive:!0,maintainAspectRatio:!1}})})]})})}),(0,v.jsx)(H,{Fde:!0,size:{md:6},sx:{height:`423px`},children:(0,v.jsx)(KC,{elevation:6,sx:{height:`100%`,width:`100%`,overflow:`hidden`},children:(0,v.jsxs)(ew,{sx:{height:`100%`,display:`flex`,flexDirection:`column`},children:[(0,v.jsx)(XC,{children:(0,v.jsxs)(`div`,{style:{marginBottom:`20px`},children:[(0,v.jsx)(AC,{sx:{display:`flex`,justifyContent:`space-between`,width:`100%`},children:`Keywords per page`}),(0,v.jsx)(`label`,{htmlFor:`page-select`,style:{marginRight:`10px`},children:`Select Page:`}),(0,v.jsx)(OE,{id:`page-select`,value:h,onChange:S,MenuProps:{PaperProps:{style:{maxHeight:200,overflow:`auto`}}},children:_.map(e=>(0,v.jsx)(YT,{value:e,children:e},e))})]})}),b?(0,v.jsx)(AC,{sx:{flexGrow:1,overflow:`hidden`},children:(0,v.jsx)(Ug,{data:b,options:{responsive:!0,maintainAspectRatio:!1}})}):(0,v.jsx)(`p`,{children:`No data available for the selected page.`})]})})})]})]})}km.register(zm,Hh,yh,uh,qh,Zh,Qm,eh);function RE({execute:e,userId:t}){let[n,r]=(0,f.useState)([]),[i,a]=(0,f.useState)([]),[o,s]=(0,f.useState)(null),[c,l]=(0,f.useState)(null),[u,d]=(0,f.useState)(null),p={callbacks:{title:e=>{let t=e[0].dataIndex;return n[t]?.page_source?.split(`techo/`)[1]?.replace(`techo/`,``)||n[t]?.page_source}}};return(0,f.useEffect)(()=>{(async()=>{try{r((await e({code:`get_analytics_data1`,parameters:{userId:t||null,eventName:`page_view`}}))?.data?.result),a((await e({code:`get_maxDepth_totalTimeSpent_data`,parameters:{userId:t||null,eventName:`page_view`}}))?.data?.result)}catch(e){throw console.log(`🚀 ~ fetchSessions ~ error:`,e),Error(`Problem in getting search tracking data`)}})()},[e,t]),(0,f.useEffect)(()=>{let e=(e,t=20)=>e?.length>t?e.substring(0,t)+`...`:e;s({labels:n.map(t=>e(t.page_source?.split(`techo/`)[1]?.replace(`techo/`,``)||t.page_source)),datasets:[{label:`Page Viewed`,data:n.map(e=>e.total_visit),backgroundColor:[`#FF6384`,`#36A2EB`,`#FFCE56`,`#4BC0C0`,`#9966FF`,`#FF9F40`,`#FF633`,`#36A23B`,`#FFCE57`,`#4BC1C1`,`#9923EE`,`#FF9F20`],hoverOffset:4}]});let t=i.reduce((e,t)=>{let{prev_state_id:n,max_scroll_depth:r}=t;return n=n?.split(`techo/`)[1]?.replace(`techo/`,``)||n,e[n]=Math.max(e[n]||0,r),e},{}),r=Object.entries(t).filter(([,e])=>e>0);l({labels:r.map(([t])=>e(t)),datasets:[{label:`Scroll Depth (%)`,data:r.map(([,e])=>e),backgroundColor:`#36A2EB`,borderColor:`#2980B9`,borderWidth:1}]}),d({labels:i.map(t=>e(t.prev_state_id?.split(`techo/`)[1]?.replace(`techo/`,``)||t.prev_state_id)),datasets:[{label:`Time Spent (seconds)`,data:i.map(e=>e.total_active_tab_time/1e3),borderColor:`#FF6384`,backgroundColor:`rgba(255,99,132,0.2)`,tension:.3}]})},[n,i]),(0,v.jsxs)(H,{container:!0,size:{xs:12},spacing:2,justifyContent:`center`,display:`flex`,flexDirection:`column`,mt:2,children:[(0,v.jsx)(H,{children:(0,v.jsx)(GS,{variant:`h5`,children:` PageView Analytics`})}),(0,v.jsxs)(H,{container:!0,children:[(0,v.jsx)(H,{size:{xs:6},children:(0,v.jsxs)(KC,{elevation:6,children:[(0,v.jsx)(cw,{title:`Total Page Views`}),(0,v.jsx)(ew,{children:o?(0,v.jsx)(Ug,{data:o,options:{plugins:{tooltip:p}},height:70,width:70}):`Loading pie chart...`})]})}),(0,v.jsx)(H,{size:{xs:6},children:(0,v.jsxs)(KC,{elevation:6,children:[(0,v.jsx)(cw,{title:`Scroll Depth Analysis`}),(0,v.jsx)(ew,{children:c?(0,v.jsx)(Hg,{data:c,options:{responsive:!0,plugins:{tooltip:p},scales:{y:{beginAtZero:!0,max:100,title:{display:!0,text:`Scroll Depth (%)`}}}},height:70,width:70}):`Loading bar chart...`})]})}),(0,v.jsx)(H,{size:{xs:12},children:(0,v.jsxs)(KC,{elevation:6,children:[(0,v.jsx)(cw,{title:`Time Spent Trends`}),(0,v.jsx)(ew,{children:u?(0,v.jsx)(Vg,{data:u,options:{responsive:!0,plugins:{tooltip:p},scales:{y:{beginAtZero:!0,title:{display:!0,text:`Time Spent (seconds)`}}}},height:20,width:100}):`Loading line chart...`})]})})]})]})}var zE=({execute:e})=>{let[t,n]=(0,f.useState)([]),[r,i]=(0,f.useState)(null);(0,f.useEffect)(()=>{a()},[]);let a=async()=>{n((await e({code:`analytics_event_names`,parameters:{}}))?.data?.result)};return(0,v.jsxs)(`div`,{children:[(0,v.jsx)(`h2`,{children:`Analytics Dashboard`}),(0,v.jsx)(`div`,{style:{padding:`20px`},children:(0,v.jsxs)(Uw,{fullWidth:!0,children:[(0,v.jsx)(`label`,{children:`Choose Event`}),(0,v.jsx)(OE,{value:r,onChange:e=>{i(e.target.value)},children:t?.filter(e=>e.event_name!==null).map(e=>(0,v.jsx)(YT,{value:e.event_name,children:e.event_name},e.id))})]})}),r===`search_tracking`&&(0,v.jsx)(LE,{execute:e}),r===`page_view`&&(0,v.jsx)(RE,{execute:e})]})},BE;function K(){return BE.apply(null,arguments)}function VE(e){BE=e}function HE(e){return e instanceof Array||Object.prototype.toString.call(e)===`[object Array]`}function UE(e){return e!=null&&Object.prototype.toString.call(e)===`[object Object]`}function WE(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function GE(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;for(var t in e)if(WE(e,t))return!1;return!0}function KE(e){return e===void 0}function qE(e){return typeof e==`number`||Object.prototype.toString.call(e)===`[object Number]`}function JE(e){return e instanceof Date||Object.prototype.toString.call(e)===`[object Date]`}function YE(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function XE(e,t){for(var n in t)WE(t,n)&&(e[n]=t[n]);return WE(t,`toString`)&&(e.toString=t.toString),WE(t,`valueOf`)&&(e.valueOf=t.valueOf),e}function ZE(e,t,n,r){return DA(e,t,n,r,!0).utc()}function QE(){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 q(e){return e._pf??=QE(),e._pf}var $E=Array.prototype.some?Array.prototype.some: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 eD(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=q(e),n=$E.call(t.parsedDateParts,function(e){return e!=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 tD(e){var t=ZE(NaN);return e==null?q(t).userInvalidated=!0:XE(q(t),e),t}var nD=K.momentProperties=[],rD=!1;function iD(e,t){var n,r,i,a=nD.length;if(KE(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),KE(t._i)||(e._i=t._i),KE(t._f)||(e._f=t._f),KE(t._l)||(e._l=t._l),KE(t._strict)||(e._strict=t._strict),KE(t._tzm)||(e._tzm=t._tzm),KE(t._isUTC)||(e._isUTC=t._isUTC),KE(t._offset)||(e._offset=t._offset),KE(t._pf)||(e._pf=q(t)),KE(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)r=nD[n],i=t[r],KE(i)||(e[r]=i);return e}function aD(e){iD(this,e),this._d=new Date(e._d==null?NaN:e._d.getTime()),this.isValid()||(this._d=new Date(NaN)),rD===!1&&(rD=!0,K.updateOffset(this),rD=!1)}function oD(e){return e instanceof aD||e!=null&&e._isAMomentObject!=null}function sD(e){K.suppressDeprecationWarnings===!1&&typeof console<`u`&&console.warn&&console.warn(`Deprecation warning: `+e)}function cD(e,t){var n=!0;return XE(function(){if(K.deprecationHandler!=null&&K.deprecationHandler(null,e),n){var r=[],i,a,o,s=arguments.length;for(a=0;a<s;a++){if(i=``,typeof arguments[a]==`object`){for(o in i+=`
163
+ [`+a+`] `,arguments[0])WE(arguments[0],o)&&(i+=o+`: `+arguments[0][o]+`, `);i=i.slice(0,-2)}else i=arguments[a];r.push(i)}sD(e+`
164
+ Arguments: `+Array.prototype.slice.call(r).join(``)+`
165
+ `+Error().stack),n=!1}return t.apply(this,arguments)},t)}var lD={};function uD(e,t){K.deprecationHandler!=null&&K.deprecationHandler(e,t),lD[e]||(sD(t),lD[e]=!0)}K.suppressDeprecationWarnings=!1,K.deprecationHandler=null;function dD(e){return typeof Function<`u`&&e instanceof Function||Object.prototype.toString.call(e)===`[object Function]`}function fD(e){var t,n;for(n in e)WE(e,n)&&(t=e[n],dD(t)?this[n]=t:this[`_`+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+`|\\d{1,2}`)}function pD(e,t){var n=XE({},e),r;for(r in t)WE(t,r)&&(UE(e[r])&&UE(t[r])?(n[r]={},XE(n[r],e[r]),XE(n[r],t[r])):t[r]==null?delete n[r]:n[r]=t[r]);for(r in e)WE(e,r)&&!WE(t,r)&&UE(e[r])&&(n[r]=XE({},n[r]));return n}function mD(e){e!=null&&this.set(e)}var hD=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)WE(e,t)&&n.push(t);return n},gD={sameDay:`[Today at] LT`,nextDay:`[Tomorrow at] LT`,nextWeek:`dddd [at] LT`,lastDay:`[Yesterday at] LT`,lastWeek:`[Last] dddd [at] LT`,sameElse:`L`};function _D(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return dD(r)?r.call(t,n):r}function vD(e,t,n){var r=``+Math.abs(e),i=t-r.length;return(e>=0?n?`+`:``:`-`)+(10**Math.max(0,i)).toString().substr(1)+r}var yD=/(\[[^\[]*\])|(\\)?([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,bD=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,xD={},SD={};function J(e,t,n,r){var i=r;typeof r==`string`&&(i=function(){return this[r]()}),e&&(SD[e]=i),t&&(SD[t[0]]=function(){return vD(i.apply(this,arguments),t[1],t[2])}),n&&(SD[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function CD(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,``):e.replace(/\\/g,``)}function wD(e){var t=e.match(yD),n,r;for(n=0,r=t.length;n<r;n++)SD[t[n]]?t[n]=SD[t[n]]:t[n]=CD(t[n]);return function(n){var i=``,a;for(a=0;a<r;a++)i+=dD(t[a])?t[a].call(n,e):t[a];return i}}function TD(e,t){return e.isValid()?(t=ED(t,e.localeData()),xD[t]=xD[t]||wD(t),xD[t](e)):e.localeData().invalidDate()}function ED(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(bD.lastIndex=0;n>=0&&bD.test(e);)e=e.replace(bD,r),bD.lastIndex=0,--n;return e}var DD={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 OD(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(yD).map(function(e){return e===`MMMM`||e===`MM`||e===`DD`||e===`dddd`?e.slice(1):e}).join(``),this._longDateFormat[e])}var kD=`Invalid date`;function AD(){return this._invalidDate}var jD=`%d`,MD=/\d{1,2}/;function ND(e){return this._ordinal.replace(`%d`,e)}var PD={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 FD(e,t,n,r){var i=this._relativeTime[n];return dD(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ID(e,t){var n=this._relativeTime[e>0?`future`:`past`];return dD(n)?n(t):n.replace(/%s/i,t)}var LD={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 RD(e){return typeof e==`string`?LD[e]||LD[e.toLowerCase()]:void 0}function zD(e){var t={},n,r;for(r in e)WE(e,r)&&(n=RD(r),n&&(t[n]=e[r]));return t}var BD={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 VD(e){var t=[],n;for(n in e)WE(e,n)&&t.push({unit:n,priority:BD[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}var HD=/\d/,UD=/\d\d/,WD=/\d{3}/,GD=/\d{4}/,KD=/[+-]?\d{6}/,qD=/\d\d?/,JD=/\d\d\d\d?/,YD=/\d\d\d\d\d\d?/,XD=/\d{1,3}/,ZD=/\d{1,4}/,QD=/[+-]?\d{1,6}/,$D=/\d+/,eO=/[+-]?\d+/,tO=/Z|[+-]\d\d:?\d\d/gi,nO=/Z|[+-]\d\d(?::?\d\d)?/gi,rO=/[+-]?\d+(\.\d{1,3})?/,iO=/[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,aO=/^[1-9]\d?/,oO=/^([1-9]\d|\d)/,sO={};function Y(e,t,n){sO[e]=dD(t)?t:function(e,r){return e&&n?n:t}}function cO(e,t){return WE(sO,e)?sO[e](t._strict,t._locale):new RegExp(lO(e))}function lO(e){return uO(e.replace(`\\`,``).replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function uO(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,`\\$&`)}function dO(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function X(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=dO(t)),n}var fO={};function pO(e,t){var n,r=t,i;for(typeof e==`string`&&(e=[e]),qE(t)&&(r=function(e,n){n[t]=X(e)}),i=e.length,n=0;n<i;n++)fO[e[n]]=r}function mO(e,t){pO(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function hO(e,t,n){t!=null&&WE(fO,e)&&fO[e](t,n._a,n,e)}function gO(e){return e%4==0&&e%100!=0||e%400==0}var _O=0,vO=1,yO=2,bO=3,xO=4,SO=5,CO=6,wO=7,TO=8;J(`Y`,0,0,function(){var e=this.year();return e<=9999?vD(e,4):`+`+e}),J(0,[`YY`,2],0,function(){return this.year()%100}),J(0,[`YYYY`,4],0,`year`),J(0,[`YYYYY`,5],0,`year`),J(0,[`YYYYYY`,6,!0],0,`year`),Y(`Y`,eO),Y(`YY`,qD,UD),Y(`YYYY`,ZD,GD),Y(`YYYYY`,QD,KD),Y(`YYYYYY`,QD,KD),pO([`YYYYY`,`YYYYYY`],_O),pO(`YYYY`,function(e,t){t[_O]=e.length===2?K.parseTwoDigitYear(e):X(e)}),pO(`YY`,function(e,t){t[_O]=K.parseTwoDigitYear(e)}),pO(`Y`,function(e,t){t[_O]=parseInt(e,10)});function EO(e){return gO(e)?366:365}K.parseTwoDigitYear=function(e){return X(e)+(X(e)>68?1900:2e3)};var DO=kO(`FullYear`,!0);function OO(){return gO(this.year())}function kO(e,t){return function(n){return n==null?AO(this,e):(jO(this,e,n),K.updateOffset(this,t),this)}}function AO(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 jO(e,t,n){var r,i,a,o,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case`Milliseconds`:i?r.setUTCMilliseconds(n):r.setMilliseconds(n);return;case`Seconds`:i?r.setUTCSeconds(n):r.setSeconds(n);return;case`Minutes`:i?r.setUTCMinutes(n):r.setMinutes(n);return;case`Hours`:i?r.setUTCHours(n):r.setHours(n);return;case`Date`:i?r.setUTCDate(n):r.setDate(n);return;case`FullYear`:break;default:return}a=n,o=e.month(),s=e.date(),s=s===29&&o===1&&!gO(a)?28:s,i?r.setUTCFullYear(a,o,s):r.setFullYear(a,o,s)}}function MO(e){return e=RD(e),dD(this[e])?this[e]():this}function NO(e,t){if(typeof e==`object`){e=zD(e);var n=VD(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=RD(e),dD(this[e]))return this[e](t);return this}function PO(e,t){return(e%t+t)%t}var FO=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function IO(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=PO(t,12);return e+=(t-n)/12,n===1?gO(e)?29:28:31-n%7%2}J(`M`,[`MM`,2],`Mo`,function(){return this.month()+1}),J(`MMM`,0,0,function(e){return this.localeData().monthsShort(this,e)}),J(`MMMM`,0,0,function(e){return this.localeData().months(this,e)}),Y(`M`,qD,aO),Y(`MM`,qD,UD),Y(`MMM`,function(e,t){return t.monthsShortRegex(e)}),Y(`MMMM`,function(e,t){return t.monthsRegex(e)}),pO([`M`,`MM`],function(e,t){t[vO]=X(e)-1}),pO([`MMM`,`MMMM`],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i==null?q(n).invalidMonth=e:t[vO]=i});var LO=`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),RO=`Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec`.split(`_`),zO=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,BO=iO,VO=iO;function HO(e,t){return e?HE(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||zO).test(t)?`format`:`standalone`][e.month()]:HE(this._months)?this._months:this._months.standalone}function UO(e,t){return e?HE(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[zO.test(t)?`format`:`standalone`][e.month()]:HE(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function WO(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=ZE([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,``).toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,``).toLocaleLowerCase();return n?t===`MMM`?(i=FO.call(this._shortMonthsParse,o),i===-1?null:i):(i=FO.call(this._longMonthsParse,o),i===-1?null:i):t===`MMM`?(i=FO.call(this._shortMonthsParse,o),i===-1?(i=FO.call(this._longMonthsParse,o),i===-1?null:i):i):(i=FO.call(this._longMonthsParse,o),i===-1?(i=FO.call(this._shortMonthsParse,o),i===-1?null:i):i)}function GO(e,t,n){var r,i,a;if(this._monthsParseExact)return WO.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if(i=ZE([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=RegExp(`^`+this.months(i,``).replace(`.`,``)+`$`,`i`),this._shortMonthsParse[r]=RegExp(`^`+this.monthsShort(i,``).replace(`.`,``)+`$`,`i`)),!n&&!this._monthsParse[r]&&(a=`^`+this.months(i,``)+`|^`+this.monthsShort(i,``),this._monthsParse[r]=new RegExp(a.replace(`.`,``),`i`)),n&&t===`MMMM`&&this._longMonthsParse[r].test(e)||n&&t===`MMM`&&this._shortMonthsParse[r].test(e)||!n&&this._monthsParse[r].test(e))return r}function KO(e,t){if(!e.isValid())return e;if(typeof t==`string`){if(/^\d+$/.test(t))t=X(t);else if(t=e.localeData().monthsParse(t),!qE(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,IO(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function qO(e){return e==null?AO(this,`Month`):(KO(this,e),K.updateOffset(this,!0),this)}function JO(){return IO(this.year(),this.month())}function YO(e){return this._monthsParseExact?(WE(this,`_monthsRegex`)||ZO.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(WE(this,`_monthsShortRegex`)||(this._monthsShortRegex=BO),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function XO(e){return this._monthsParseExact?(WE(this,`_monthsRegex`)||ZO.call(this),e?this._monthsStrictRegex:this._monthsRegex):(WE(this,`_monthsRegex`)||(this._monthsRegex=VO),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ZO(){function e(e,t){return t.length-e.length}var t=[],n=[],r=[],i,a,o,s;for(i=0;i<12;i++)a=ZE([2e3,i]),o=uO(this.monthsShort(a,``)),s=uO(this.months(a,``)),t.push(o),n.push(s),r.push(s),r.push(o);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=RegExp(`^(`+r.join(`|`)+`)`,`i`),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp(`^(`+n.join(`|`)+`)`,`i`),this._monthsShortStrictRegex=RegExp(`^(`+t.join(`|`)+`)`,`i`)}function QO(e,t,n,r,i,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function $O(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 ek(e,t,n){var r=7+t-n;return-((7+$O(e,0,r).getUTCDay()-t)%7)+r-1}function tk(e,t,n,r,i){var a=(7+n-r)%7,o=ek(e,r,i),s=1+7*(t-1)+a+o,c,l;return s<=0?(c=e-1,l=EO(c)+s):s>EO(e)?(c=e+1,l=s-EO(e)):(c=e,l=s),{year:c,dayOfYear:l}}function nk(e,t,n){var r=ek(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,o;return i<1?(o=e.year()-1,a=i+rk(o,t,n)):i>rk(e.year(),t,n)?(a=i-rk(e.year(),t,n),o=e.year()+1):(o=e.year(),a=i),{week:a,year:o}}function rk(e,t,n){var r=ek(e,t,n),i=ek(e+1,t,n);return(EO(e)-r+i)/7}J(`w`,[`ww`,2],`wo`,`week`),J(`W`,[`WW`,2],`Wo`,`isoWeek`),Y(`w`,qD,aO),Y(`ww`,qD,UD),Y(`W`,qD,aO),Y(`WW`,qD,UD),mO([`w`,`ww`,`W`,`WW`],function(e,t,n,r){t[r.substr(0,1)]=X(e)});function ik(e){return nk(e,this._week.dow,this._week.doy).week}var ak={dow:0,doy:6};function ok(){return this._week.dow}function sk(){return this._week.doy}function ck(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,`d`)}function lk(e){var t=nk(this,1,4).week;return e==null?t:this.add((e-t)*7,`d`)}J(`d`,0,`do`,`day`),J(`dd`,0,0,function(e){return this.localeData().weekdaysMin(this,e)}),J(`ddd`,0,0,function(e){return this.localeData().weekdaysShort(this,e)}),J(`dddd`,0,0,function(e){return this.localeData().weekdays(this,e)}),J(`e`,0,0,`weekday`),J(`E`,0,0,`isoWeekday`),Y(`d`,qD),Y(`e`,qD),Y(`E`,qD),Y(`dd`,function(e,t){return t.weekdaysMinRegex(e)}),Y(`ddd`,function(e,t){return t.weekdaysShortRegex(e)}),Y(`dddd`,function(e,t){return t.weekdaysRegex(e)}),mO([`dd`,`ddd`,`dddd`],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i==null?q(n).invalidWeekday=e:t.d=i}),mO([`d`,`e`,`E`],function(e,t,n,r){t[r]=X(e)});function uk(e,t){return typeof e==`string`?isNaN(e)?(e=t.weekdaysParse(e),typeof e==`number`?e:null):parseInt(e,10):e}function dk(e,t){return typeof e==`string`?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function fk(e,t){return e.slice(t,7).concat(e.slice(0,t))}var pk=`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),mk=`Sun_Mon_Tue_Wed_Thu_Fri_Sat`.split(`_`),hk=`Su_Mo_Tu_We_Th_Fr_Sa`.split(`_`),gk=iO,_k=iO,vk=iO;function yk(e,t){var n=HE(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?`format`:`standalone`];return e===!0?fk(n,this._week.dow):e?n[e.day()]:n}function bk(e){return e===!0?fk(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function xk(e){return e===!0?fk(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Sk(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=ZE([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,``).toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,``).toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,``).toLocaleLowerCase();return n?t===`dddd`?(i=FO.call(this._weekdaysParse,o),i===-1?null:i):t===`ddd`?(i=FO.call(this._shortWeekdaysParse,o),i===-1?null:i):(i=FO.call(this._minWeekdaysParse,o),i===-1?null:i):t===`dddd`?(i=FO.call(this._weekdaysParse,o),i!==-1||(i=FO.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=FO.call(this._minWeekdaysParse,o),i===-1?null:i)):t===`ddd`?(i=FO.call(this._shortWeekdaysParse,o),i!==-1||(i=FO.call(this._weekdaysParse,o),i!==-1)?i:(i=FO.call(this._minWeekdaysParse,o),i===-1?null:i)):(i=FO.call(this._minWeekdaysParse,o),i!==-1||(i=FO.call(this._weekdaysParse,o),i!==-1)?i:(i=FO.call(this._shortWeekdaysParse,o),i===-1?null:i))}function Ck(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Sk.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if(i=ZE([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=RegExp(`^`+this.weekdays(i,``).replace(`.`,`\\.?`)+`$`,`i`),this._shortWeekdaysParse[r]=RegExp(`^`+this.weekdaysShort(i,``).replace(`.`,`\\.?`)+`$`,`i`),this._minWeekdaysParse[r]=RegExp(`^`+this.weekdaysMin(i,``).replace(`.`,`\\.?`)+`$`,`i`)),this._weekdaysParse[r]||(a=`^`+this.weekdays(i,``)+`|^`+this.weekdaysShort(i,``)+`|^`+this.weekdaysMin(i,``),this._weekdaysParse[r]=new RegExp(a.replace(`.`,``),`i`)),n&&t===`dddd`&&this._fullWeekdaysParse[r].test(e)||n&&t===`ddd`&&this._shortWeekdaysParse[r].test(e)||n&&t===`dd`&&this._minWeekdaysParse[r].test(e)||!n&&this._weekdaysParse[r].test(e))return r}function wk(e){if(!this.isValid())return e==null?NaN:this;var t=AO(this,`Day`);return e==null?t:(e=uk(e,this.localeData()),this.add(e-t,`d`))}function Tk(e){if(!this.isValid())return e==null?NaN:this;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,`d`)}function Ek(e){if(!this.isValid())return e==null?NaN:this;if(e!=null){var t=dk(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Dk(e){return this._weekdaysParseExact?(WE(this,`_weekdaysRegex`)||Ak.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(WE(this,`_weekdaysRegex`)||(this._weekdaysRegex=gk),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ok(e){return this._weekdaysParseExact?(WE(this,`_weekdaysRegex`)||Ak.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(WE(this,`_weekdaysShortRegex`)||(this._weekdaysShortRegex=_k),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function kk(e){return this._weekdaysParseExact?(WE(this,`_weekdaysRegex`)||Ak.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(WE(this,`_weekdaysMinRegex`)||(this._weekdaysMinRegex=vk),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ak(){function e(e,t){return t.length-e.length}var t=[],n=[],r=[],i=[],a,o,s,c,l;for(a=0;a<7;a++)o=ZE([2e3,1]).day(a),s=uO(this.weekdaysMin(o,``)),c=uO(this.weekdaysShort(o,``)),l=uO(this.weekdays(o,``)),t.push(s),n.push(c),r.push(l),i.push(s),i.push(c),i.push(l);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=RegExp(`^(`+i.join(`|`)+`)`,`i`),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp(`^(`+r.join(`|`)+`)`,`i`),this._weekdaysShortStrictRegex=RegExp(`^(`+n.join(`|`)+`)`,`i`),this._weekdaysMinStrictRegex=RegExp(`^(`+t.join(`|`)+`)`,`i`)}function jk(){return this.hours()%12||12}function Mk(){return this.hours()||24}J(`H`,[`HH`,2],0,`hour`),J(`h`,[`hh`,2],0,jk),J(`k`,[`kk`,2],0,Mk),J(`hmm`,0,0,function(){return``+jk.apply(this)+vD(this.minutes(),2)}),J(`hmmss`,0,0,function(){return``+jk.apply(this)+vD(this.minutes(),2)+vD(this.seconds(),2)}),J(`Hmm`,0,0,function(){return``+this.hours()+vD(this.minutes(),2)}),J(`Hmmss`,0,0,function(){return``+this.hours()+vD(this.minutes(),2)+vD(this.seconds(),2)});function Nk(e,t){J(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Nk(`a`,!0),Nk(`A`,!1);function Pk(e,t){return t._meridiemParse}Y(`a`,Pk),Y(`A`,Pk),Y(`H`,qD,oO),Y(`h`,qD,aO),Y(`k`,qD,aO),Y(`HH`,qD,UD),Y(`hh`,qD,UD),Y(`kk`,qD,UD),Y(`hmm`,JD),Y(`hmmss`,YD),Y(`Hmm`,JD),Y(`Hmmss`,YD),pO([`H`,`HH`],bO),pO([`k`,`kk`],function(e,t,n){var r=X(e);t[bO]=r===24?0:r}),pO([`a`,`A`],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pO([`h`,`hh`],function(e,t,n){t[bO]=X(e),q(n).bigHour=!0}),pO(`hmm`,function(e,t,n){var r=e.length-2;t[bO]=X(e.substr(0,r)),t[xO]=X(e.substr(r)),q(n).bigHour=!0}),pO(`hmmss`,function(e,t,n){var r=e.length-4,i=e.length-2;t[bO]=X(e.substr(0,r)),t[xO]=X(e.substr(r,2)),t[SO]=X(e.substr(i)),q(n).bigHour=!0}),pO(`Hmm`,function(e,t,n){var r=e.length-2;t[bO]=X(e.substr(0,r)),t[xO]=X(e.substr(r))}),pO(`Hmmss`,function(e,t,n){var r=e.length-4,i=e.length-2;t[bO]=X(e.substr(0,r)),t[xO]=X(e.substr(r,2)),t[SO]=X(e.substr(i))});function Fk(e){return(e+``).toLowerCase().charAt(0)===`p`}var Ik=/[ap]\.?m?\.?/i,Lk=kO(`Hours`,!0);function Rk(e,t,n){return e>11?n?`pm`:`PM`:n?`am`:`AM`}var zk={calendar:gD,longDateFormat:DD,invalidDate:kD,ordinal:jD,dayOfMonthOrdinalParse:MD,relativeTime:PD,months:LO,monthsShort:RO,week:ak,weekdays:pk,weekdaysMin:hk,weekdaysShort:mk,meridiemParse:Ik},Bk={},Vk={},Hk;function Uk(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 Wk(e){return e&&e.toLowerCase().replace(`_`,`-`)}function Gk(e){for(var t=0,n,r,i,a;t<e.length;){for(a=Wk(e[t]).split(`-`),n=a.length,r=Wk(e[t+1]),r=r?r.split(`-`):null;n>0;){if(i=qk(a.slice(0,n).join(`-`)),i)return i;if(r&&r.length>=n&&Uk(a,r)>=n-1)break;n--}t++}return Hk}function Kk(e){return!!(e&&e.match(`^[^/\\\\]*$`))}function qk(e){var t=null,n;if(Bk[e]===void 0&&typeof module<`u`&&module&&module.exports&&Kk(e))try{t=Hk._abbr,n=require,n(`./locale/`+e),Jk(t)}catch{Bk[e]=null}return Bk[e]}function Jk(e,t){var n;return e&&(n=KE(t)?Zk(e):Yk(e,t),n?Hk=n:typeof console<`u`&&console.warn&&console.warn(`Locale `+e+` not found. Did you forget to load it?`)),Hk._abbr}function Yk(e,t){if(t!==null){var n,r=zk;if(t.abbr=e,Bk[e]!=null)uD(`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=Bk[e]._config;else if(t.parentLocale!=null)if(Bk[t.parentLocale]!=null)r=Bk[t.parentLocale]._config;else if(n=qk(t.parentLocale),n!=null)r=n._config;else return Vk[t.parentLocale]||(Vk[t.parentLocale]=[]),Vk[t.parentLocale].push({name:e,config:t}),null;return Bk[e]=new mD(pD(r,t)),Vk[e]&&Vk[e].forEach(function(e){Yk(e.name,e.config)}),Jk(e),Bk[e]}else return delete Bk[e],null}function Xk(e,t){if(t!=null){var n,r,i=zk;Bk[e]!=null&&Bk[e].parentLocale!=null?Bk[e].set(pD(Bk[e]._config,t)):(r=qk(e),r!=null&&(i=r._config),t=pD(i,t),r??(t.abbr=e),n=new mD(t),n.parentLocale=Bk[e],Bk[e]=n),Jk(e)}else Bk[e]!=null&&(Bk[e].parentLocale==null?Bk[e]!=null&&delete Bk[e]:(Bk[e]=Bk[e].parentLocale,e===Jk()&&Jk(e)));return Bk[e]}function Zk(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Hk;if(!HE(e)){if(t=qk(e),t)return t;e=[e]}return Gk(e)}function Qk(){return hD(Bk)}function $k(e){var t,n=e._a;return n&&q(e).overflow===-2&&(t=n[vO]<0||n[vO]>11?vO:n[yO]<1||n[yO]>IO(n[_O],n[vO])?yO:n[bO]<0||n[bO]>24||n[bO]===24&&(n[xO]!==0||n[SO]!==0||n[CO]!==0)?bO:n[xO]<0||n[xO]>59?xO:n[SO]<0||n[SO]>59?SO:n[CO]<0||n[CO]>999?CO:-1,q(e)._overflowDayOfYear&&(t<_O||t>yO)&&(t=yO),q(e)._overflowWeeks&&t===-1&&(t=wO),q(e)._overflowWeekday&&t===-1&&(t=TO),q(e).overflow=t),e}var eA=/^\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)?)?$/,tA=/^\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)?)?$/,nA=/Z|[+-]\d\d(?::?\d\d)?/,rA=[[`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]],iA=[[`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/]],aA=/^\/?Date\((-?\d+)/i,oA=/^(?:(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}))$/,sA={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function cA(e){var t,n,r=e._i,i=eA.exec(r)||tA.exec(r),a,o,s,c,l=rA.length,u=iA.length;if(i){for(q(e).iso=!0,t=0,n=l;t<n;t++)if(rA[t][1].exec(i[1])){o=rA[t][0],a=rA[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(i[3]){for(t=0,n=u;t<n;t++)if(iA[t][1].exec(i[3])){s=(i[2]||` `)+iA[t][0];break}if(s==null){e._isValid=!1;return}}if(!a&&s!=null){e._isValid=!1;return}if(i[4])if(nA.exec(i[4]))c=`Z`;else{e._isValid=!1;return}e._f=o+(s||``)+(c||``),bA(e)}else e._isValid=!1}function lA(e,t,n,r,i,a){var o=[uA(e),RO.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function uA(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function dA(e){return e.replace(/\([^()]*\)|[\n\t]/g,` `).replace(/(\s\s+)/g,` `).replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function fA(e,t,n){return e&&mk.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay()?(q(n).weekdayMismatch=!0,n._isValid=!1,!1):!0}function pA(e,t,n){if(e)return sA[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function mA(e){var t=oA.exec(dA(e._i)),n;if(t){if(n=lA(t[4],t[3],t[2],t[5],t[6],t[7]),!fA(t[1],n,e))return;e._a=n,e._tzm=pA(t[8],t[9],t[10]),e._d=$O.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),q(e).rfc2822=!0}else e._isValid=!1}function hA(e){var t=aA.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(cA(e),e._isValid===!1)delete e._isValid;else return;if(mA(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:K.createFromInputFallback(e)}K.createFromInputFallback=cD(`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 gA(e,t,n){return e??t??n}function _A(e){var t=new Date(K.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function vA(e){var t,n,r=[],i,a,o;if(!e._d){for(i=_A(e),e._w&&e._a[yO]==null&&e._a[vO]==null&&yA(e),e._dayOfYear!=null&&(o=gA(e._a[_O],i[_O]),(e._dayOfYear>EO(o)||e._dayOfYear===0)&&(q(e)._overflowDayOfYear=!0),n=$O(o,0,e._dayOfYear),e._a[vO]=n.getUTCMonth(),e._a[yO]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?+(t===2):e._a[t];e._a[bO]===24&&e._a[xO]===0&&e._a[SO]===0&&e._a[CO]===0&&(e._nextDay=!0,e._a[bO]=0),e._d=(e._useUTC?$O:QO).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[bO]=24),e._w&&e._w.d!==void 0&&e._w.d!==a&&(q(e).weekdayMismatch=!0)}}function yA(e){var t=e._w,n,r,i,a,o,s,c,l;t.GG!=null||t.W!=null||t.E!=null?(a=1,o=4,n=gA(t.GG,e._a[_O],nk(OA(),1,4).year),r=gA(t.W,1),i=gA(t.E,1),(i<1||i>7)&&(c=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,l=nk(OA(),a,o),n=gA(t.gg,e._a[_O],l.year),r=gA(t.w,l.week),t.d==null?t.e==null?i=a:(i=t.e+a,(t.e<0||t.e>6)&&(c=!0)):(i=t.d,(i<0||i>6)&&(c=!0))),r<1||r>rk(n,a,o)?q(e)._overflowWeeks=!0:c==null?(s=tk(n,r,i,a,o),e._a[_O]=s.year,e._dayOfYear=s.dayOfYear):q(e)._overflowWeekday=!0}K.ISO_8601=function(){},K.RFC_2822=function(){};function bA(e){if(e._f===K.ISO_8601){cA(e);return}if(e._f===K.RFC_2822){mA(e);return}e._a=[],q(e).empty=!0;var t=``+e._i,n,r,i,a,o,s=t.length,c=0,l,u;for(i=ED(e._f,e._locale).match(yD)||[],u=i.length,n=0;n<u;n++)a=i[n],r=(t.match(cO(a,e))||[])[0],r&&(o=t.substr(0,t.indexOf(r)),o.length>0&&q(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),c+=r.length),SD[a]?(r?q(e).empty=!1:q(e).unusedTokens.push(a),hO(a,r,e)):e._strict&&!r&&q(e).unusedTokens.push(a);q(e).charsLeftOver=s-c,t.length>0&&q(e).unusedInput.push(t),e._a[bO]<=12&&q(e).bigHour===!0&&e._a[bO]>0&&(q(e).bigHour=void 0),q(e).parsedDateParts=e._a.slice(0),q(e).meridiem=e._meridiem,e._a[bO]=xA(e._locale,e._a[bO],e._meridiem),l=q(e).era,l!==null&&(e._a[_O]=e._locale.erasConvertYear(l,e._a[_O])),vA(e),$k(e)}function xA(e,t,n){var r;return n==null?t:e.meridiemHour==null?e.isPM==null?t:(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0),t):e.meridiemHour(t,n)}function SA(e){var t,n,r,i,a,o,s=!1,c=e._f.length;if(c===0){q(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<c;i++)a=0,o=!1,t=iD({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],bA(t),eD(t)&&(o=!0),a+=q(t).charsLeftOver,a+=q(t).unusedTokens.length*10,q(t).score=a,s?a<r&&(r=a,n=t):(r==null||a<r||o)&&(r=a,n=t,o&&(s=!0));XE(e,n||t)}function CA(e){if(!e._d){var t=zD(e._i),n=t.day===void 0?t.date:t.day;e._a=YE([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),vA(e)}}function wA(e){var t=new aD($k(TA(e)));return t._nextDay&&=(t.add(1,`d`),void 0),t}function TA(e){var t=e._i,n=e._f;return e._locale=e._locale||Zk(e._l),t===null||n===void 0&&t===``?tD({nullInput:!0}):(typeof t==`string`&&(e._i=t=e._locale.preparse(t)),oD(t)?new aD($k(t)):(JE(t)?e._d=t:HE(n)?SA(e):n?bA(e):EA(e),eD(e)||(e._d=null),e))}function EA(e){var t=e._i;KE(t)?e._d=new Date(K.now()):JE(t)?e._d=new Date(t.valueOf()):typeof t==`string`?hA(e):HE(t)?(e._a=YE(t.slice(0),function(e){return parseInt(e,10)}),vA(e)):UE(t)?CA(e):qE(t)?e._d=new Date(t):K.createFromInputFallback(e)}function DA(e,t,n,r,i){var a={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(UE(e)&&GE(e)||HE(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=r,wA(a)}function OA(e,t,n,r){return DA(e,t,n,r,!1)}var kA=cD(`moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/`,function(){var e=OA.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:tD()}),AA=cD(`moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/`,function(){var e=OA.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:tD()});function jA(e,t){var n,r;if(t.length===1&&HE(t[0])&&(t=t[0]),!t.length)return OA();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function MA(){return jA(`isBefore`,[].slice.call(arguments,0))}function NA(){return jA(`isAfter`,[].slice.call(arguments,0))}var PA=function(){return Date.now?Date.now():+new Date},FA=[`year`,`quarter`,`month`,`week`,`day`,`hour`,`minute`,`second`,`millisecond`];function IA(e){var t,n=!1,r,i=FA.length;for(t in e)if(WE(e,t)&&!(FO.call(FA,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[FA[r]]){if(n)return!1;parseFloat(e[FA[r]])!==X(e[FA[r]])&&(n=!0)}return!0}function LA(){return this._isValid}function RA(){return sj(NaN)}function zA(e){var t=zD(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,c=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=IA(t),this._milliseconds=+u+l*1e3+c*6e4+s*1e3*60*60,this._days=+o+a*7,this._months=+i+r*3+n*12,this._data={},this._locale=Zk(),this._bubble()}function BA(e){return e instanceof zA}function VA(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function HA(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0,o;for(o=0;o<r;o++)(n&&e[o]!==t[o]||!n&&X(e[o])!==X(t[o]))&&a++;return a+i}function UA(e,t){J(e,0,0,function(){var e=this.utcOffset(),n=`+`;return e<0&&(e=-e,n=`-`),n+vD(~~(e/60),2)+t+vD(~~e%60,2)})}UA(`Z`,`:`),UA(`ZZ`,``),Y(`Z`,nO),Y(`ZZ`,nO),pO([`Z`,`ZZ`],function(e,t,n){n._useUTC=!0,n._tzm=GA(nO,e)});var WA=/([\+\-]|\d\d)/gi;function GA(e,t){var n=(t||``).match(e),r,i,a;return n===null?null:(r=n[n.length-1]||[],i=(r+``).match(WA)||[`-`,0,0],a=+(i[1]*60)+X(i[2]),a===0?0:i[0]===`+`?a:-a)}function KA(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(oD(e)||JE(e)?e.valueOf():OA(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),K.updateOffset(n,!1),n):OA(e).local()}function qA(e){return-Math.round(e._d.getTimezoneOffset())}K.updateOffset=function(){};function JA(e,t,n){var r=this._offset||0,i;if(!this.isValid())return e==null?NaN:this;if(e!=null){if(typeof e==`string`){if(e=GA(nO,e),e===null)return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=qA(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,`m`),r!==e&&(!t||this._changeInProgress?fj(this,sj(e-r,`m`),1,!1):this._changeInProgress||=(this._changeInProgress=!0,K.updateOffset(this,!0),null)),this}else return this._isUTC?r:qA(this)}function YA(e,t){return e==null?-this.utcOffset():(typeof e!=`string`&&(e=-e),this.utcOffset(e,t),this)}function XA(e){return this.utcOffset(0,e)}function ZA(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(qA(this),`m`)),this}function QA(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i==`string`){var e=GA(tO,this._i);e==null?this.utcOffset(0,!0):this.utcOffset(e)}return this}function $A(e){return this.isValid()?(e=e?OA(e).utcOffset():0,(this.utcOffset()-e)%60==0):!1}function ej(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function tj(){if(!KE(this._isDSTShifted))return this._isDSTShifted;var e={},t;return iD(e,this),e=TA(e),e._a?(t=e._isUTC?ZE(e._a):OA(e._a),this._isDSTShifted=this.isValid()&&HA(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function nj(){return this.isValid()?!this._isUTC:!1}function rj(){return this.isValid()?this._isUTC:!1}function ij(){return this.isValid()?this._isUTC&&this._offset===0:!1}var aj=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,oj=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function sj(e,t){var n=e,r=null,i,a,o;return BA(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:qE(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=aj.exec(e))?(i=r[1]===`-`?-1:1,n={y:0,d:X(r[yO])*i,h:X(r[bO])*i,m:X(r[xO])*i,s:X(r[SO])*i,ms:X(VA(r[CO]*1e3))*i}):(r=oj.exec(e))?(i=r[1]===`-`?-1:1,n={y:cj(r[2],i),M:cj(r[3],i),w:cj(r[4],i),d:cj(r[5],i),h:cj(r[6],i),m:cj(r[7],i),s:cj(r[8],i)}):n==null?n={}:typeof n==`object`&&(`from`in n||`to`in n)&&(o=uj(OA(n.from),OA(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),a=new zA(n),BA(e)&&WE(e,`_locale`)&&(a._locale=e._locale),BA(e)&&WE(e,`_isValid`)&&(a._isValid=e._isValid),a}sj.fn=zA.prototype,sj.invalid=RA;function cj(e,t){var n=e&&parseFloat(e.replace(`,`,`.`));return(isNaN(n)?0:n)*t}function lj(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 uj(e,t){var n;return e.isValid()&&t.isValid()?(t=KA(t,e),e.isBefore(t)?n=lj(e,t):(n=lj(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function dj(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(uD(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.`),a=n,n=r,r=a),i=sj(n,r),fj(this,i,e),this}}function fj(e,t,n,r){var i=t._milliseconds,a=VA(t._days),o=VA(t._months);e.isValid()&&(r??=!0,o&&KO(e,AO(e,`Month`)+o*n),a&&jO(e,`Date`,AO(e,`Date`)+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&K.updateOffset(e,a||o))}var pj=dj(1,`add`),mj=dj(-1,`subtract`);function hj(e){return typeof e==`string`||e instanceof String}function gj(e){return oD(e)||JE(e)||hj(e)||qE(e)||vj(e)||_j(e)||e==null}function _j(e){var t=UE(e)&&!GE(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`],i,a,o=r.length;for(i=0;i<o;i+=1)a=r[i],n||=WE(e,a);return t&&n}function vj(e){var t=HE(e),n=!1;return t&&(n=e.filter(function(t){return!qE(t)&&hj(e)}).length===0),t&&n}function yj(e){var t=UE(e)&&!GE(e),n=!1,r=[`sameDay`,`nextDay`,`lastDay`,`nextWeek`,`lastWeek`,`sameElse`],i,a;for(i=0;i<r.length;i+=1)a=r[i],n||=WE(e,a);return t&&n}function bj(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 xj(e,t){arguments.length===1&&(arguments[0]?gj(arguments[0])?(e=arguments[0],t=void 0):yj(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||OA(),r=KA(n,this).startOf(`day`),i=K.calendarFormat(this,r)||`sameElse`,a=t&&(dD(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,OA(n)))}function Sj(){return new aD(this)}function Cj(e,t){var n=oD(e)?e:OA(e);return this.isValid()&&n.isValid()?(t=RD(t)||`millisecond`,t===`millisecond`?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function wj(e,t){var n=oD(e)?e:OA(e);return this.isValid()&&n.isValid()?(t=RD(t)||`millisecond`,t===`millisecond`?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function Tj(e,t,n,r){var i=oD(e)?e:OA(e),a=oD(t)?t:OA(t);return this.isValid()&&i.isValid()&&a.isValid()?(r||=`()`,(r[0]===`(`?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===`)`?this.isBefore(a,n):!this.isAfter(a,n))):!1}function Ej(e,t){var n=oD(e)?e:OA(e),r;return this.isValid()&&n.isValid()?(t=RD(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 Dj(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Oj(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function kj(e,t,n){var r,i,a;if(!this.isValid()||(r=KA(e,this),!r.isValid()))return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=RD(t),t){case`year`:a=Aj(this,r)/12;break;case`month`:a=Aj(this,r);break;case`quarter`:a=Aj(this,r)/3;break;case`second`:a=(this-r)/1e3;break;case`minute`:a=(this-r)/6e4;break;case`hour`:a=(this-r)/36e5;break;case`day`:a=(this-r-i)/864e5;break;case`week`:a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:dO(a)}function Aj(e,t){if(e.date()<t.date())return-Aj(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,`months`),i,a;return t-r<0?(i=e.clone().add(n-1,`months`),a=(t-r)/(r-i)):(i=e.clone().add(n+1,`months`),a=(t-r)/(i-r)),-(n+a)||0}K.defaultFormat=`YYYY-MM-DDTHH:mm:ssZ`,K.defaultFormatUtc=`YYYY-MM-DDTHH:mm:ss[Z]`;function jj(){return this.clone().locale(`en`).format(`ddd MMM DD YYYY HH:mm:ss [GMT]ZZ`)}function Mj(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?TD(n,t?`YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]`:`YYYYYY-MM-DD[T]HH:mm:ss.SSSZ`):dD(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace(`Z`,TD(n,`Z`)):TD(n,t?`YYYY-MM-DD[T]HH:mm:ss.SSS[Z]`:`YYYY-MM-DD[T]HH:mm:ss.SSSZ`)}function Nj(){if(!this.isValid())return`moment.invalid(/* `+this._i+` */)`;var e=`moment`,t=``,n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?`moment.utc`:`moment.parseZone`,t=`Z`),n=`[`+e+`("]`,r=0<=this.year()&&this.year()<=9999?`YYYY`:`YYYYYY`,i=`-MM-DD[T]HH:mm:ss.SSS`,a=t+`[")]`,this.format(n+r+i+a)}function Pj(e){e||=this.isUtc()?K.defaultFormatUtc:K.defaultFormat;var t=TD(this,e);return this.localeData().postformat(t)}function Fj(e,t){return this.isValid()&&(oD(e)&&e.isValid()||OA(e).isValid())?sj({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ij(e){return this.from(OA(),e)}function Lj(e,t){return this.isValid()&&(oD(e)&&e.isValid()||OA(e).isValid())?sj({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Rj(e){return this.to(OA(),e)}function zj(e){var t;return e===void 0?this._locale._abbr:(t=Zk(e),t!=null&&(this._locale=t),this)}var Bj=cD(`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 Vj(){return this._locale}var Hj=1e3,Uj=60*Hj,Wj=60*Uj,Gj=146097*24*Wj;function Kj(e,t){return(e%t+t)%t}function qj(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Gj:new Date(e,t,n).valueOf()}function Jj(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Gj:Date.UTC(e,t,n)}function Yj(e){var t,n;if(e=RD(e),e===void 0||e===`millisecond`||!this.isValid())return this;switch(n=this._isUTC?Jj:qj,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-=Kj(t+(this._isUTC?0:this.utcOffset()*Uj),Wj);break;case`minute`:t=this._d.valueOf(),t-=Kj(t,Uj);break;case`second`:t=this._d.valueOf(),t-=Kj(t,Hj);break}return this._d.setTime(t),K.updateOffset(this,!0),this}function Xj(e){var t,n;if(e=RD(e),e===void 0||e===`millisecond`||!this.isValid())return this;switch(n=this._isUTC?Jj:qj,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+=Wj-Kj(t+(this._isUTC?0:this.utcOffset()*Uj),Wj)-1;break;case`minute`:t=this._d.valueOf(),t+=Uj-Kj(t,Uj)-1;break;case`second`:t=this._d.valueOf(),t+=Hj-Kj(t,Hj)-1;break}return this._d.setTime(t),K.updateOffset(this,!0),this}function Zj(){return this._d.valueOf()-(this._offset||0)*6e4}function Qj(){return Math.floor(this.valueOf()/1e3)}function $j(){return new Date(this.valueOf())}function eM(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function tM(){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 nM(){return this.isValid()?this.toISOString():null}function rM(){return eD(this)}function iM(){return XE({},q(this))}function aM(){return q(this).overflow}function oM(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}J(`N`,0,0,`eraAbbr`),J(`NN`,0,0,`eraAbbr`),J(`NNN`,0,0,`eraAbbr`),J(`NNNN`,0,0,`eraName`),J(`NNNNN`,0,0,`eraNarrow`),J(`y`,[`y`,1],`yo`,`eraYear`),J(`y`,[`yy`,2],0,`eraYear`),J(`y`,[`yyy`,3],0,`eraYear`),J(`y`,[`yyyy`,4],0,`eraYear`),Y(`N`,_M),Y(`NN`,_M),Y(`NNN`,_M),Y(`NNNN`,vM),Y(`NNNNN`,yM),pO([`N`,`NN`,`NNN`,`NNNN`,`NNNNN`],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?q(n).era=i:q(n).invalidEra=e}),Y(`y`,$D),Y(`yy`,$D),Y(`yyy`,$D),Y(`yyyy`,$D),Y(`yo`,bM),pO([`y`,`yy`,`yyy`,`yyyy`],_O),pO([`yo`],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[_O]=n._locale.eraYearOrdinalParse(e,i):t[_O]=parseInt(e,10)});function sM(e,t){var n,r,i,a=this._eras||Zk(`en`)._eras;for(n=0,r=a.length;n<r;++n){switch(typeof a[n].since){case`string`:i=K(a[n].since).startOf(`day`),a[n].since=i.valueOf();break}switch(typeof a[n].until){case`undefined`:a[n].until=1/0;break;case`string`:i=K(a[n].until).startOf(`day`).valueOf(),a[n].until=i.valueOf();break}}return a}function cM(e,t,n){var r,i,a=this.eras(),o,s,c;for(e=e.toUpperCase(),r=0,i=a.length;r<i;++r)if(o=a[r].name.toUpperCase(),s=a[r].abbr.toUpperCase(),c=a[r].narrow.toUpperCase(),n)switch(t){case`N`:case`NN`:case`NNN`:if(s===e)return a[r];break;case`NNNN`:if(o===e)return a[r];break;case`NNNNN`:if(c===e)return a[r];break}else if([o,s,c].indexOf(e)>=0)return a[r]}function lM(e,t){var n=e.since<=e.until?1:-1;return t===void 0?K(e.since).year():K(e.since).year()+(t-e.offset)*n}function uM(){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 dM(){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 fM(){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 pM(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf(`day`).valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-K(i[e].since).year())*n+i[e].offset;return this.year()}function mM(e){return WE(this,`_erasNameRegex`)||xM.call(this),e?this._erasNameRegex:this._erasRegex}function hM(e){return WE(this,`_erasAbbrRegex`)||xM.call(this),e?this._erasAbbrRegex:this._erasRegex}function gM(e){return WE(this,`_erasNarrowRegex`)||xM.call(this),e?this._erasNarrowRegex:this._erasRegex}function _M(e,t){return t.erasAbbrRegex(e)}function vM(e,t){return t.erasNameRegex(e)}function yM(e,t){return t.erasNarrowRegex(e)}function bM(e,t){return t._eraYearOrdinalRegex||$D}function xM(){var e=[],t=[],n=[],r=[],i,a,o,s,c,l=this.eras();for(i=0,a=l.length;i<a;++i)o=uO(l[i].name),s=uO(l[i].abbr),c=uO(l[i].narrow),t.push(o),e.push(s),n.push(c),r.push(o),r.push(s),r.push(c);this._erasRegex=RegExp(`^(`+r.join(`|`)+`)`,`i`),this._erasNameRegex=RegExp(`^(`+t.join(`|`)+`)`,`i`),this._erasAbbrRegex=RegExp(`^(`+e.join(`|`)+`)`,`i`),this._erasNarrowRegex=RegExp(`^(`+n.join(`|`)+`)`,`i`)}J(0,[`gg`,2],0,function(){return this.weekYear()%100}),J(0,[`GG`,2],0,function(){return this.isoWeekYear()%100});function SM(e,t){J(0,[e,e.length],0,t)}SM(`gggg`,`weekYear`),SM(`ggggg`,`weekYear`),SM(`GGGG`,`isoWeekYear`),SM(`GGGGG`,`isoWeekYear`),Y(`G`,eO),Y(`g`,eO),Y(`GG`,qD,UD),Y(`gg`,qD,UD),Y(`GGGG`,ZD,GD),Y(`gggg`,ZD,GD),Y(`GGGGG`,QD,KD),Y(`ggggg`,QD,KD),mO([`gggg`,`ggggg`,`GGGG`,`GGGGG`],function(e,t,n,r){t[r.substr(0,2)]=X(e)}),mO([`gg`,`GG`],function(e,t,n,r){t[r]=K.parseTwoDigitYear(e)});function CM(e){return kM.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function wM(e){return kM.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function TM(){return rk(this.year(),1,4)}function EM(){return rk(this.isoWeekYear(),1,4)}function DM(){var e=this.localeData()._week;return rk(this.year(),e.dow,e.doy)}function OM(){var e=this.localeData()._week;return rk(this.weekYear(),e.dow,e.doy)}function kM(e,t,n,r,i){var a;return e==null?nk(this,r,i).year:(a=rk(e,r,i),t>a&&(t=a),AM.call(this,e,t,n,r,i))}function AM(e,t,n,r,i){var a=tk(e,t,n,r,i),o=$O(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}J(`Q`,0,`Qo`,`quarter`),Y(`Q`,HD),pO(`Q`,function(e,t){t[vO]=(X(e)-1)*3});function jM(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}J(`D`,[`DD`,2],`Do`,`date`),Y(`D`,qD,aO),Y(`DD`,qD,UD),Y(`Do`,function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),pO([`D`,`DD`],yO),pO(`Do`,function(e,t){t[yO]=X(e.match(qD)[0])});var MM=kO(`Date`,!0);J(`DDD`,[`DDDD`,3],`DDDo`,`dayOfYear`),Y(`DDD`,XD),Y(`DDDD`,WD),pO([`DDD`,`DDDD`],function(e,t,n){n._dayOfYear=X(e)});function NM(e){var t=Math.round((this.clone().startOf(`day`)-this.clone().startOf(`year`))/864e5)+1;return e==null?t:this.add(e-t,`d`)}J(`m`,[`mm`,2],0,`minute`),Y(`m`,qD,oO),Y(`mm`,qD,UD),pO([`m`,`mm`],xO);var PM=kO(`Minutes`,!1);J(`s`,[`ss`,2],0,`second`),Y(`s`,qD,oO),Y(`ss`,qD,UD),pO([`s`,`ss`],SO);var FM=kO(`Seconds`,!1);J(`S`,0,0,function(){return~~(this.millisecond()/100)}),J(0,[`SS`,2],0,function(){return~~(this.millisecond()/10)}),J(0,[`SSS`,3],0,`millisecond`),J(0,[`SSSS`,4],0,function(){return this.millisecond()*10}),J(0,[`SSSSS`,5],0,function(){return this.millisecond()*100}),J(0,[`SSSSSS`,6],0,function(){return this.millisecond()*1e3}),J(0,[`SSSSSSS`,7],0,function(){return this.millisecond()*1e4}),J(0,[`SSSSSSSS`,8],0,function(){return this.millisecond()*1e5}),J(0,[`SSSSSSSSS`,9],0,function(){return this.millisecond()*1e6}),Y(`S`,XD,HD),Y(`SS`,XD,UD),Y(`SSS`,XD,WD);var IM,LM;for(IM=`SSSS`;IM.length<=9;IM+=`S`)Y(IM,$D);function RM(e,t){t[CO]=X((`0.`+e)*1e3)}for(IM=`S`;IM.length<=9;IM+=`S`)pO(IM,RM);LM=kO(`Milliseconds`,!1),J(`z`,0,0,`zoneAbbr`),J(`zz`,0,0,`zoneName`);function zM(){return this._isUTC?`UTC`:``}function BM(){return this._isUTC?`Coordinated Universal Time`:``}var Z=aD.prototype;Z.add=pj,Z.calendar=xj,Z.clone=Sj,Z.diff=kj,Z.endOf=Xj,Z.format=Pj,Z.from=Fj,Z.fromNow=Ij,Z.to=Lj,Z.toNow=Rj,Z.get=MO,Z.invalidAt=aM,Z.isAfter=Cj,Z.isBefore=wj,Z.isBetween=Tj,Z.isSame=Ej,Z.isSameOrAfter=Dj,Z.isSameOrBefore=Oj,Z.isValid=rM,Z.lang=Bj,Z.locale=zj,Z.localeData=Vj,Z.max=AA,Z.min=kA,Z.parsingFlags=iM,Z.set=NO,Z.startOf=Yj,Z.subtract=mj,Z.toArray=eM,Z.toObject=tM,Z.toDate=$j,Z.toISOString=Mj,Z.inspect=Nj,typeof Symbol<`u`&&Symbol.for!=null&&(Z[Symbol.for(`nodejs.util.inspect.custom`)]=function(){return`Moment<`+this.format()+`>`}),Z.toJSON=nM,Z.toString=jj,Z.unix=Qj,Z.valueOf=Zj,Z.creationData=oM,Z.eraName=uM,Z.eraNarrow=dM,Z.eraAbbr=fM,Z.eraYear=pM,Z.year=DO,Z.isLeapYear=OO,Z.weekYear=CM,Z.isoWeekYear=wM,Z.quarter=Z.quarters=jM,Z.month=qO,Z.daysInMonth=JO,Z.week=Z.weeks=ck,Z.isoWeek=Z.isoWeeks=lk,Z.weeksInYear=DM,Z.weeksInWeekYear=OM,Z.isoWeeksInYear=TM,Z.isoWeeksInISOWeekYear=EM,Z.date=MM,Z.day=Z.days=wk,Z.weekday=Tk,Z.isoWeekday=Ek,Z.dayOfYear=NM,Z.hour=Z.hours=Lk,Z.minute=Z.minutes=PM,Z.second=Z.seconds=FM,Z.millisecond=Z.milliseconds=LM,Z.utcOffset=JA,Z.utc=XA,Z.local=ZA,Z.parseZone=QA,Z.hasAlignedHourOffset=$A,Z.isDST=ej,Z.isLocal=nj,Z.isUtcOffset=rj,Z.isUtc=ij,Z.isUTC=ij,Z.zoneAbbr=zM,Z.zoneName=BM,Z.dates=cD(`dates accessor is deprecated. Use date instead.`,MM),Z.months=cD(`months accessor is deprecated. Use month instead`,qO),Z.years=cD(`years accessor is deprecated. Use year instead`,DO),Z.zone=cD(`moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/`,YA),Z.isDSTShifted=cD(`isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information`,tj);function VM(e){return OA(e*1e3)}function HM(){return OA.apply(null,arguments).parseZone()}function UM(e){return e}var WM=mD.prototype;WM.calendar=_D,WM.longDateFormat=OD,WM.invalidDate=AD,WM.ordinal=ND,WM.preparse=UM,WM.postformat=UM,WM.relativeTime=FD,WM.pastFuture=ID,WM.set=fD,WM.eras=sM,WM.erasParse=cM,WM.erasConvertYear=lM,WM.erasAbbrRegex=hM,WM.erasNameRegex=mM,WM.erasNarrowRegex=gM,WM.months=HO,WM.monthsShort=UO,WM.monthsParse=GO,WM.monthsRegex=XO,WM.monthsShortRegex=YO,WM.week=ik,WM.firstDayOfYear=sk,WM.firstDayOfWeek=ok,WM.weekdays=yk,WM.weekdaysMin=xk,WM.weekdaysShort=bk,WM.weekdaysParse=Ck,WM.weekdaysRegex=Dk,WM.weekdaysShortRegex=Ok,WM.weekdaysMinRegex=kk,WM.isPM=Fk,WM.meridiem=Rk;function GM(e,t,n,r){var i=Zk(),a=ZE().set(r,t);return i[n](a,e)}function KM(e,t,n){if(qE(e)&&(t=e,e=void 0),e||=``,t!=null)return GM(e,t,n,`month`);var r,i=[];for(r=0;r<12;r++)i[r]=GM(e,r,n,`month`);return i}function qM(e,t,n,r){typeof e==`boolean`?(qE(t)&&(n=t,t=void 0),t||=``):(t=e,n=t,e=!1,qE(t)&&(n=t,t=void 0),t||=``);var i=Zk(),a=e?i._week.dow:0,o,s=[];if(n!=null)return GM(t,(n+a)%7,r,`day`);for(o=0;o<7;o++)s[o]=GM(t,(o+a)%7,r,`day`);return s}function JM(e,t){return KM(e,t,`months`)}function YM(e,t){return KM(e,t,`monthsShort`)}function XM(e,t,n){return qM(e,t,n,`weekdays`)}function ZM(e,t,n){return qM(e,t,n,`weekdaysShort`)}function QM(e,t,n){return qM(e,t,n,`weekdaysMin`)}Jk(`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;return e+(X(e%100/10)===1?`th`:t===1?`st`:t===2?`nd`:t===3?`rd`:`th`)}}),K.lang=cD(`moment.lang is deprecated. Use moment.locale instead.`,Jk),K.langData=cD(`moment.langData is deprecated. Use moment.localeData instead.`,Zk);var $M=Math.abs;function eN(){var e=this._data;return this._milliseconds=$M(this._milliseconds),this._days=$M(this._days),this._months=$M(this._months),e.milliseconds=$M(e.milliseconds),e.seconds=$M(e.seconds),e.minutes=$M(e.minutes),e.hours=$M(e.hours),e.months=$M(e.months),e.years=$M(e.years),this}function tN(e,t,n,r){var i=sj(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function nN(e,t){return tN(this,e,t,1)}function rN(e,t){return tN(this,e,t,-1)}function iN(e){return e<0?Math.floor(e):Math.ceil(e)}function aN(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,o,s,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=iN(sN(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=dO(e/1e3),r.seconds=i%60,a=dO(i/60),r.minutes=a%60,o=dO(a/60),r.hours=o%24,t+=dO(o/24),c=dO(oN(t)),n+=c,t-=iN(sN(c)),s=dO(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function oN(e){return e*4800/146097}function sN(e){return e*146097/4800}function cN(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=RD(e),e===`month`||e===`quarter`||e===`year`)switch(t=this._days+r/864e5,n=this._months+oN(t),e){case`month`:return n;case`quarter`:return n/3;case`year`:return n/12}else switch(t=this._days+Math.round(sN(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 Error(`Unknown unit `+e)}}function lN(e){return function(){return this.as(e)}}var uN=lN(`ms`),dN=lN(`s`),fN=lN(`m`),pN=lN(`h`),mN=lN(`d`),hN=lN(`w`),gN=lN(`M`),_N=lN(`Q`),vN=lN(`y`),yN=uN;function bN(){return sj(this)}function xN(e){return e=RD(e),this.isValid()?this[e+`s`]():NaN}function SN(e){return function(){return this.isValid()?this._data[e]:NaN}}var CN=SN(`milliseconds`),wN=SN(`seconds`),TN=SN(`minutes`),EN=SN(`hours`),DN=SN(`days`),ON=SN(`months`),kN=SN(`years`);function AN(){return dO(this.days()/7)}var jN=Math.round,MN={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function NN(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function PN(e,t,n,r){var i=sj(e).abs(),a=jN(i.as(`s`)),o=jN(i.as(`m`)),s=jN(i.as(`h`)),c=jN(i.as(`d`)),l=jN(i.as(`M`)),u=jN(i.as(`w`)),d=jN(i.as(`y`)),f=a<=n.ss&&[`s`,a]||a<n.s&&[`ss`,a]||o<=1&&[`m`]||o<n.m&&[`mm`,o]||s<=1&&[`h`]||s<n.h&&[`hh`,s]||c<=1&&[`d`]||c<n.d&&[`dd`,c];return n.w!=null&&(f=f||u<=1&&[`w`]||u<n.w&&[`ww`,u]),f=f||l<=1&&[`M`]||l<n.M&&[`MM`,l]||d<=1&&[`y`]||[`yy`,d],f[2]=t,f[3]=+e>0,f[4]=r,NN.apply(null,f)}function FN(e){return e===void 0?jN:typeof e==`function`?(jN=e,!0):!1}function IN(e,t){return MN[e]===void 0?!1:t===void 0?MN[e]:(MN[e]=t,e===`s`&&(MN.ss=t-1),!0)}function LN(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=MN,i,a;return typeof e==`object`&&(t=e,e=!1),typeof e==`boolean`&&(n=e),typeof t==`object`&&(r=Object.assign({},MN,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=PN(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var RN=Math.abs;function zN(e){return(e>0)-(e<0)||+e}function BN(){if(!this.isValid())return this.localeData().invalidDate();var e=RN(this._milliseconds)/1e3,t=RN(this._days),n=RN(this._months),r,i,a,o,s=this.asSeconds(),c,l,u,d;return s?(r=dO(e/60),i=dO(r/60),e%=60,r%=60,a=dO(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,``):``,c=s<0?`-`:``,l=zN(this._months)===zN(s)?``:`-`,u=zN(this._days)===zN(s)?``:`-`,d=zN(this._milliseconds)===zN(s)?``:`-`,c+`P`+(a?l+a+`Y`:``)+(n?l+n+`M`:``)+(t?u+t+`D`:``)+(i||r||e?`T`:``)+(i?d+i+`H`:``)+(r?d+r+`M`:``)+(e?d+o+`S`:``)):`P0D`}var Q=zA.prototype;Q.isValid=LA,Q.abs=eN,Q.add=nN,Q.subtract=rN,Q.as=cN,Q.asMilliseconds=uN,Q.asSeconds=dN,Q.asMinutes=fN,Q.asHours=pN,Q.asDays=mN,Q.asWeeks=hN,Q.asMonths=gN,Q.asQuarters=_N,Q.asYears=vN,Q.valueOf=yN,Q._bubble=aN,Q.clone=bN,Q.get=xN,Q.milliseconds=CN,Q.seconds=wN,Q.minutes=TN,Q.hours=EN,Q.days=DN,Q.weeks=AN,Q.months=ON,Q.years=kN,Q.humanize=LN,Q.toISOString=BN,Q.toString=BN,Q.toJSON=BN,Q.locale=zj,Q.localeData=Vj,Q.toIsoString=cD(`toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)`,BN),Q.lang=Bj,J(`X`,0,0,`unix`),J(`x`,0,0,`valueOf`),Y(`x`,eO),Y(`X`,rO),pO(`X`,function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),pO(`x`,function(e,t,n){n._d=new Date(X(e))}),K.version=`2.30.1`,VE(OA),K.fn=Z,K.min=MA,K.max=NA,K.now=PA,K.utc=ZE,K.unix=VM,K.months=JM,K.isDate=JE,K.locale=Jk,K.invalid=tD,K.duration=sj,K.isMoment=oD,K.weekdays=XM,K.parseZone=HM,K.localeData=Zk,K.isDuration=BA,K.monthsShort=YM,K.weekdaysMin=QM,K.defineLocale=Yk,K.updateLocale=Xk,K.locales=Qk,K.weekdaysShort=ZM,K.normalizeUnits=RD,K.relativeTimeRounding=FN,K.relativeTimeThreshold=IN,K.calendarFormat=bj,K.prototype=Z,K.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 VN=e=>e.type===`checkbox`,HN=e=>e instanceof Date,UN=e=>e==null,WN=e=>typeof e==`object`,GN=e=>!UN(e)&&!Array.isArray(e)&&WN(e)&&!HN(e),KN=e=>GN(e)&&e.target?VN(e.target)?e.target.checked:e.target.value:e,qN=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),JN=e=>{let t=e.constructor&&e.constructor.prototype;return GN(t)&&t.hasOwnProperty(`isPrototypeOf`)},YN=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function XN(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(YN&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(GN(e)&&JN(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=XN(e[t]));return r}var ZN=e=>/^\w*$/.test(e),QN=e=>e===void 0,$N=e=>Array.isArray(e)?e.filter(Boolean):[],eP=e=>$N(e.replace(/["|']|\]/g,``).split(/\.|\[/)),$=(e,t,n)=>{if(!t||!GN(e))return n;let r=(ZN(t)?[t]:eP(t)).reduce((e,t)=>UN(e)?void 0:e[t],e);return QN(r)||r===e?QN(e[t])?n:e[t]:r},tP=e=>typeof e==`boolean`,nP=e=>typeof e==`function`,rP=(e,t,n)=>{let r=-1,i=ZN(t)?[t]:eP(t),a=i.length,o=a-1;for(;++r<a;){let t=i[r],a=n;if(r!==o){let n=e[t];a=GN(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(t===`__proto__`||t===`constructor`||t===`prototype`)return;e[t]=a,e=e[t]}},iP={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`,SUBMIT:`submit`,TRIGGER:`trigger`,VALID:`valid`},aP={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},oP={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`},sP=`form`,cP=`root`,lP=f.default.createContext(null);lP.displayName=`HookFormControlContext`;var uP=(e,t,n,r=!0)=>{let i={};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==aP.all&&(t._proxyFormState[i]=!r||aP.all),n&&(n[i]=!0),e[i]}});return i},dP=typeof window<`u`?f.default.useLayoutEffect:f.default.useEffect,fP=e=>typeof e==`string`,pP=(e,t,n,r,i)=>fP(e)?(r&&t.watch.add(e),$(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),$(n,e))):(r&&(t.watchAll=!0),n),mP=e=>UN(e)||!WN(e);function hP(e,t,n=new WeakSet){if(e===t)return!0;if(mP(e)||mP(t))return Object.is(e,t);if(HN(e)&&HN(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(HN(r)&&HN(e)||(GN(r)||Array.isArray(r))&&(GN(e)||Array.isArray(e))?!hP(r,e,n):!Object.is(r,e))return!1}}return!0}var gP=f.default.createContext(null);gP.displayName=`HookFormContext`;var _P=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},vP=e=>Array.isArray(e)?e:[e],yP=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function bP(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&GN(i)&&a){let e=bP(i,a);GN(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var xP=e=>GN(e)&&!Object.keys(e).length,SP=e=>e.type===`file`,CP=e=>{if(!YN)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},wP=e=>e.type===`select-multiple`,TP=e=>e.type===`radio`,EP=e=>TP(e)||VN(e),DP=e=>CP(e)&&e.isConnected;function OP(e,t){let n=t.slice(0,-1).length,r=0;for(;r<n;){if(UN(e)){e=void 0;break}e=e[t[r]],r++}return e}function kP(e){for(let t in e)if(e.hasOwnProperty(t)&&!QN(e[t]))return!1;return!0}function AP(e,t){if(fP(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let n=Array.isArray(t)?t:ZN(t)?[t]:eP(t),r=n.length===1?e:OP(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(GN(r)&&xP(r)||Array.isArray(r)&&kP(r))&&AP(e,n.slice(0,-1)),e}var jP=e=>{for(let t in e)if(nP(e[t]))return!0;return!1};function MP(e){return Array.isArray(e)||GN(e)&&!jP(e)}function NP(e,t={}){for(let n in e){let r=e[n];MP(r)?(t[n]=Array.isArray(r)?[]:{},NP(r,t[n])):QN(r)||(t[n]=!0)}return t}function PP(e){if(e!==!1){if(e===!0)return!0;if(Array.isArray(e)){let t=e.map(e=>PP(e));return t.some(e=>e!==void 0)?t:void 0}if(GN(e)){let t={};for(let n in e){let r=PP(e[n]);QN(r)||(t[n]=r)}return Object.keys(t).length?t:void 0}}}function FP(e,t,n){n||=NP(t);for(let r in e){let i=e[r];if(MP(i))QN(t)||mP(n[r])?n[r]=NP(i,Array.isArray(i)?[]:{}):FP(i,UN(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!hP(i,e)}}return PP(n)||{}}var IP={value:!1,isValid:!1},LP={value:!0,isValid:!0},RP=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!QN(e[0].attributes.value)?QN(e[0].value)||e[0].value===``?LP:{value:e[0].value,isValid:!0}:LP:IP}return IP},zP=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>QN(e)?e:t?e===``?NaN:e&&+e:n&&fP(e)?new Date(e):r?r(e):e,BP={isValid:!1,value:null},VP=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,BP):BP;function HP(e){let t=e.ref;return SP(t)?t.files:TP(t)?VP(e.refs).value:wP(t)?[...t.selectedOptions].map(({value:e})=>e):VN(t)?RP(e.refs).value:zP(QN(t.value)?e.ref.value:t.value,e)}var UP=(e,t,n,r)=>{let i={};for(let n of e){let e=$(t,n);e&&rP(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},WP=e=>e instanceof RegExp,GP=e=>QN(e)?e:WP(e)?e.source:GN(e)?WP(e.value)?e.value.source:e.value:e,KP=e=>({isOnSubmit:!e||e===aP.onSubmit,isOnBlur:e===aP.onBlur,isOnChange:e===aP.onChange,isOnAll:e===aP.all,isOnTouch:e===aP.onTouched}),qP=`AsyncFunction`,JP=e=>!!e&&!!e.validate&&!!(nP(e.validate)&&e.validate.constructor.name===qP||GN(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===qP)),YP=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),XP=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),ZP=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=$(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(ZP(a,t))break}else if(GN(a)&&ZP(a,t))break}}};function QP(e,t,n){let r=$(e,n);if(r||ZN(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=$(t,r),o=$(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var $P=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return xP(a)||r&&Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||aP.all))},eF=(e,t,n)=>!e||!t||e===t||vP(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))),tF=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,nF=(e,t)=>!$N($(e,t)).length&&AP(e,t),rF=(e,t,n)=>{let r=vP($(e,n));return rP(r,cP,t[n]),rP(e,n,r),e};function iF(e,t,n=`validate`){if(fP(e)||Array.isArray(e)&&e.every(fP)||tP(e)&&!e)return{type:n,message:fP(e)?e:``,ref:t}}var aF=e=>GN(e)&&!WP(e)?e:{value:e,message:``},oF=async(e,t,n,r,i,a)=>{let{ref:o,refs:s,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:m,name:h,valueAsNumber:g,mount:_}=e._f,v=$(n,h);if(!_||t.has(h))return{};let y=s?s[0]:o,b=e=>{i&&y.reportValidity&&(y.setCustomValidity(tP(e)?``:e||``),y.reportValidity())},x={},S=TP(o),C=VN(o),w=S||C,T=(g||SP(o))&&QN(o.value)&&QN(v)||CP(o)&&o.value===``||v===``||Array.isArray(v)&&!v.length||g&&typeof v==`number`&&isNaN(v),E=_P.bind(null,h,r,x),D=(e,t,n,r=oP.maxLength,i=oP.minLength)=>{let a=e?t:n;x[h]={type:e?r:i,message:a,ref:o,...E(e?r:i,a)}};if(a?!Array.isArray(v)||!v.length:c&&(!w&&(T||UN(v))||tP(v)&&!v||C&&!RP(s).isValid||S&&!VP(s).isValid)){let{value:e,message:t}=fP(c)?{value:!!c,message:c}:aF(c);if(e&&(x[h]={type:oP.required,message:t,ref:y,...E(oP.required,t)},!r))return b(t),x}if(!T&&(!UN(d)||!UN(f))){let e,t,n=aF(f),i=aF(d);if(!UN(v)&&!isNaN(v)){let r=o.valueAsNumber||v&&+v;UN(n.value)||(e=r>n.value),UN(i.value)||(t=r<i.value)}else{let r=o.valueAsDate||new Date(v),a=e=>new Date(new Date().toDateString()+` `+e),s=o.type==`time`,c=o.type==`week`;fP(n.value)&&v&&(e=s?a(v)>a(n.value):c?v>n.value:r>new Date(n.value)),fP(i.value)&&v&&(t=s?a(v)<a(i.value):c?v<i.value:r<new Date(i.value))}if((e||t)&&(D(!!e,n.message,i.message,oP.max,oP.min),!r))return b(x[h].message),x}if((l||u)&&!T&&(fP(v)||a&&Array.isArray(v))){let e=aF(l),t=aF(u),n=!UN(e.value)&&v.length>+e.value,i=!UN(t.value)&&v.length<+t.value;if((n||i)&&(D(n,e.message,t.message),!r))return b(x[h].message),x}if(p&&!T&&fP(v)){let{value:e,message:t}=aF(p);if(WP(e)&&!v.match(e)&&(x[h]={type:oP.pattern,message:t,ref:o,...E(oP.pattern,t)},!r))return b(t),x}if(m){if(nP(m)){let e=iF(await m(v,n),y);if(e&&(x[h]={...e,...E(oP.validate,e.message)},!r))return b(e.message),x}else if(GN(m)){let e={};for(let t in m){if(!xP(e)&&!r)break;let i=iF(await m[t](v,n),y,t);i&&(e={...i,...E(t,i.message)},b(i.message),r&&(x[h]=e))}if(!xP(e)&&(x[h]={ref:y,...e},!r))return x}}return b(!0),x},sF={mode:aP.onSubmit,reValidateMode:aP.onChange,shouldFocusError:!0},cF={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function lF(e={}){let t={...sF,...e},n={...XN(cF),isLoading:nP(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},i=(GN(t.defaultValues)||GN(t.values))&&XN(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:XN(i),o={action:!1,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},c,l=0,u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={...u},f={...d},p={array:yP(),state:yP()},m=t.criteriaMode===aP.all,h=e=>t=>{clearTimeout(l),l=setTimeout(e,t)},g=async e=>{if(!o.keepIsValid&&!t.disabled&&(d.isValid||f.isValid||e)){let e;t.resolver?(e=xP((await T()).errors),_()):e=await O({fields:r,onlyCheckValid:!0,eventType:iP.VALID}),e!==n.isValid&&p.state.next({isValid:e})}},_=(e,r)=>{!t.disabled&&(d.isValidating||d.validatingFields||f.isValidating||f.validatingFields)&&((e||Array.from(s.mount)).forEach(e=>{e&&(r?rP(n.validatingFields,e,r):AP(n.validatingFields,e))}),p.state.next({validatingFields:n.validatingFields,isValidating:!xP(n.validatingFields)}))},v=()=>{n.dirtyFields=FP(i,a)},y=(e,i=[],s,c,l=!0,u=!0)=>{if(c&&s&&!t.disabled){if(o.action=!0,u&&Array.isArray($(r,e))){let t=s($(r,e),c.argA,c.argB);l&&rP(r,e,t)}if(u&&Array.isArray($(n.errors,e))){let t=s($(n.errors,e),c.argA,c.argB);l&&rP(n.errors,e,t),nF(n.errors,e)}if((d.touchedFields||f.touchedFields)&&u&&Array.isArray($(n.touchedFields,e))){let t=s($(n.touchedFields,e),c.argA,c.argB);l&&rP(n.touchedFields,e,t)}(d.dirtyFields||f.dirtyFields)&&v(),p.state.next({name:e,isDirty:A(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else rP(a,e,i)},b=(e,t)=>{rP(n.errors,e,t),p.state.next({errors:n.errors})},x=e=>{n.errors=e,p.state.next({errors:n.errors,isValid:!1})},S=(e,t,s,c)=>{let l=$(r,e);if(l){let r=QN($(a,e)),u=$(a,e,QN(s)?$(i,e):s);QN(u)||c&&c.defaultChecked||t?rP(a,e,t?u:HP(l._f)):N(e,u),o.mount&&!o.action&&(g(),r&&n.isDirty&&(d.isDirty||f.isDirty)&&(A()||(n.isDirty=!1,p.state.next({...n}))))}},C=(e,r,a,o,s)=>{let c=!1,l=!1,u={name:e};if(!t.disabled){if(!a||o){(d.isDirty||f.isDirty)&&(l=n.isDirty,n.isDirty=u.isDirty=A(),c=l!==u.isDirty);let t=hP($(i,e),r);l=!!$(n.dirtyFields,e),t?AP(n.dirtyFields,e):rP(n.dirtyFields,e,!0),u.dirtyFields=n.dirtyFields,c||=(d.dirtyFields||f.dirtyFields)&&l!==!t}if(a){let t=$(n.touchedFields,e);t||(rP(n.touchedFields,e,a),u.touchedFields=n.touchedFields,c||=(d.touchedFields||f.touchedFields)&&t!==a)}c&&s&&p.state.next(u)}return c?u:{}},w=(e,r,i,a)=>{let o=$(n.errors,e),s=(d.isValid||f.isValid)&&tP(r)&&n.isValid!==r;if(t.delayError&&i?(c=h(()=>b(e,i)),c(t.delayError)):(clearTimeout(l),c=null,i?rP(n.errors,e,i):AP(n.errors,e)),(i?!hP(o,i):o)||!xP(a)||s){let t={...a,...s&&tP(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},p.state.next(t)}},T=async e=>(_(e,!0),await t.resolver(a,t.context,UP(e||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),E=async e=>{let{errors:t}=await T(e);if(_(e),e)for(let r of e){let e=$(t,r);e?rP(n.errors,r,e):AP(n.errors,r)}else n.errors=t;return t},D=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(GN(i))for(let e in i)i[e]&&se(`${sP}.${e}`,{message:fP(i.message)?i.message:``,type:oP.validate});else fP(i)||!i?se(sP,{message:i||``,type:oP.validate}):oe(sP);return i}return!0},O=async({fields:r,onlyCheckValid:i,name:o,eventType:c,context:l={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(l.runRootValidation=!0,!await D({name:o,eventType:c})&&(l.valid=!1,i)))return l.valid;for(let o in r){let u=r[o];if(u){let{_f:r,...f}=u;if(r){let o=s.array.has(r.name),c=u._f&&JP(u._f);c&&d.validatingFields&&_([r.name],!0);let f=await oF(u,s.disabled,a,m,t.shouldUseNativeValidation&&!i,o);if(c&&d.validatingFields&&_([r.name]),f[r.name]&&(l.valid=!1,i)||(!i&&($(f,r.name)?o?rF(n.errors,f,r.name):rP(n.errors,r.name,f[r.name]):AP(n.errors,r.name)),e.shouldUseNativeValidation&&f[r.name]))break}!xP(f)&&await O({context:l,onlyCheckValid:i,fields:f,name:o,eventType:c})}}return l.valid},k=()=>{for(let e of s.unMount){let t=$(r,e);t&&(t._f.refs?t._f.refs.every(e=>!DP(e)):!DP(t._f.ref))&&de(e)}s.unMount=new Set},A=(e,n)=>!t.disabled&&(e&&n&&rP(a,e,n),!hP(ie(),i)),j=(e,t,n)=>pP(e,s,{...o.mount?a:QN(t)?i:fP(e)?{[e]:t}:t},n,t),M=e=>$N($(o.mount?a:i,e,t.shouldUnregister?$(i,e,[]):[])),N=(e,t,n={})=>{let i=$(r,e),o=t;if(i){let n=i._f;n&&(!n.disabled&&rP(a,e,zP(t,n)),o=CP(n.ref)&&UN(t)?``:t,wP(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?VN(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(Array.isArray(o)?e.checked=!!o.find(t=>t===e.value):e.checked=o===e.value||!!o)}):n.refs.forEach(e=>e.checked=e.value===o):SP(n.ref)?n.ref.value=``:(n.ref.value=o,n.ref.type||p.state.next({name:e,values:XN(a)})))}(n.shouldDirty||n.shouldTouch)&&C(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&re(e)},ee=(e,t,n)=>{for(let i in t){if(!t.hasOwnProperty(i))return;let a=t[i],o=e+`.`+i,c=$(r,o);(s.array.has(e)||GN(a)||c&&!c._f)&&!HN(a)?ee(o,a,n):N(o,a,n)}},te=(e,t,i={})=>{let c=$(r,e),l=s.array.has(e),u=XN(t),m=hP($(a,e),u);if(rP(a,e,u),l)p.array.next({name:e,values:XN(a)}),(d.isDirty||d.dirtyFields||f.isDirty||f.dirtyFields)&&i.shouldDirty&&(v(),p.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:A(e,u)}));else{let t=Array.isArray(u)&&!u.length||xP(u);!c||c._f||UN(u)||t?N(e,u,i):ee(e,u,i)}if(!m){let t=XP(e,s);p.state.next({...t&&n,name:o.mount||t?e:void 0,values:XN(a)})}},P=e=>{let t=nP(e)?e(a):e;hP(a,t)||(a={...a,...t},p.state.next({...n,values:a}))},F=async i=>{o.mount=!0;let l=i.target,u=l.name,h=!0,v=$(r,u),y=e=>{h=Number.isNaN(e)||HN(e)&&isNaN(e.getTime())||hP(e,$(a,u,e))},b=KP(t.mode),x=KP(t.reValidateMode);if(v){let o,S,E=l.type?HP(v._f):KN(i),k=i.type===iP.BLUR||i.type===iP.FOCUS_OUT,A=!YP(v._f)&&!e.validate&&!t.resolver&&!$(n.errors,u)&&!v._f.deps||tF(k,$(n.touchedFields,u),n.isSubmitted,x,b),j=XP(u,s,k);rP(a,u,E),k?(!l||!l.readOnly)&&(v._f.onBlur&&v._f.onBlur(i),c&&c(0)):v._f.onChange&&v._f.onChange(i);let M=C(u,E,k),N=!xP(M)||j;if(!k&&p.state.next({name:u,type:i.type,values:XN(a)}),A)return(d.isValid||f.isValid)&&(t.mode===`onBlur`?k&&g():k||g()),N&&p.state.next({name:u,...j?{}:M});if(!t.resolver&&e.validate&&await D({name:u,eventType:i.type}),!k&&j&&p.state.next({...n}),t.resolver){let{errors:e}=await T([u]);if(_([u]),y(E),h){let t=QP(n.errors,r,u),i=QP(e,r,t.name||u);o=i.error,u=i.name,S=xP(e)}}else _([u],!0),o=(await oF(v,s.disabled,a,m,t.shouldUseNativeValidation))[u],_([u]),y(E),h&&(o?S=!1:(d.isValid||f.isValid)&&(S=await O({fields:r,onlyCheckValid:!0,name:u,eventType:i.type})));h&&(v._f.deps&&(!Array.isArray(v._f.deps)||v._f.deps.length>0)&&re(v._f.deps),w(u,S,o,M))}},ne=(e,t)=>{if($(n.errors,t)&&e.focus)return e.focus(),1},re=async(e,i={})=>{let a,o,c=vP(e);if(t.resolver){let t=await E(QN(e)?e:c);a=xP(t),o=e?!c.some(e=>$(t,e)):a}else e?(o=(await Promise.all(c.map(async e=>{let t=$(r,e);return await O({fields:t&&t._f?{[e]:t}:t,eventType:iP.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&g()):o=a=await O({fields:r,name:e,eventType:iP.TRIGGER});return p.state.next({...!fP(e)||(d.isValid||f.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&ZP(r,ne,e?c:s.mount),o},ie=(e,t)=>{let r={...o.mount?a:i};return t&&(r=bP(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),QN(e)?r:fP(e)?$(r,e):e.map(e=>$(r,e))},ae=(e,t)=>({invalid:!!$((t||n).errors,e),isDirty:!!$((t||n).dirtyFields,e),error:$((t||n).errors,e),isValidating:!!$(n.validatingFields,e),isTouched:!!$((t||n).touchedFields,e)}),oe=e=>{let t=e?vP(e):void 0;t?.forEach(e=>AP(n.errors,e)),t?t.forEach(e=>{p.state.next({name:e,errors:n.errors})}):p.state.next({errors:{}})},se=(e,t,i)=>{let a=($(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=$(n.errors,e)||{};rP(n.errors,e,{...l,...t,ref:a}),p.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},ce=(e,t)=>nP(e)?p.state.subscribe({next:n=>`values`in n&&e(n.values||j(void 0,t),n)}):j(e,t,!0),le=e=>p.state.subscribe({next:t=>{if(eF(e.name,t.name,e.exact)&&$P(t,e.formState||d,ye,e.reRenderRoot)){let r={...a};e.callback({values:r,...n,...t,defaultValues:i})}}}).unsubscribe,ue=e=>(o.mount=!0,f={...f,...e.formState},le({...e,formState:{...u,...e.formState}})),de=(e,o={})=>{for(let c of e?vP(e):s.mount)s.mount.delete(c),s.array.delete(c),o.keepValue||(AP(r,c),AP(a,c)),!o.keepError&&AP(n.errors,c),!o.keepDirty&&AP(n.dirtyFields,c),!o.keepTouched&&AP(n.touchedFields,c),!o.keepIsValidating&&AP(n.validatingFields,c),!t.shouldUnregister&&!o.keepDefaultValue&&AP(i,c);p.state.next({values:XN(a)}),p.state.next({...n,...o.keepDirty?{isDirty:A()}:{}}),!o.keepIsValid&&g()},fe=({disabled:e,name:t})=>{if(tP(e)&&o.mount||e||s.disabled.has(t)){let n=s.disabled.has(t)!==!!e;e?s.disabled.add(t):s.disabled.delete(t),n&&o.mount&&!o.action&&g()}},pe=(e,n={})=>{let a=$(r,e),c=tP(n.disabled)||tP(t.disabled),l=!s.registerName.has(e)&&a&&a._f&&!a._f.mount;return rP(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),a&&!l?fe({disabled:tP(n.disabled)?n.disabled:t.disabled,name:e}):S(e,!0,n.value),{...c?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:GP(n.min),max:GP(n.max),minLength:GP(n.minLength),maxLength:GP(n.maxLength),pattern:GP(n.pattern)}:{},name:e,onChange:F,onBlur:F,ref:c=>{if(c){s.registerName.add(e),pe(e,n),s.registerName.delete(e),a=$(r,e);let t=QN(c.value)&&c.querySelectorAll&&c.querySelectorAll(`input,select,textarea`)[0]||c,o=EP(t),l=a._f.refs||[];if(o?l.find(e=>e===t):t===a._f.ref)return;rP(r,e,{_f:{...a._f,...o?{refs:[...l.filter(DP),t,...Array.isArray($(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),S(e,!1,void 0,t)}else a=$(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(qN(s.array,e)&&o.action)&&s.unMount.add(e)}}},I=()=>t.shouldFocusError&&ZP(r,ne,s.mount),me=e=>{tP(e)&&(p.state.next({disabled:e}),ZP(r,(t,n)=>{let i=$(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},L=(e,i)=>async o=>{let c;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let l=XN(a);if(p.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await T();_(),n.errors=e,l=XN(t)}else await O({fields:r,eventType:iP.SUBMIT});if(s.disabled.size)for(let e of s.disabled)AP(l,e);if(AP(n.errors,cP),xP(n.errors)){p.state.next({errors:{}});try{await e(l,o)}catch(e){c=e}}else i&&await i({...n.errors},o),I(),setTimeout(I);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:xP(n.errors)&&!c,submitCount:n.submitCount+1,errors:n.errors}),c)throw c},he=(e,t={})=>{$(r,e)&&(QN(t.defaultValue)?te(e,XN($(i,e))):(te(e,t.defaultValue),rP(i,e,XN(t.defaultValue))),t.keepTouched||AP(n.touchedFields,e),t.keepDirty||(AP(n.dirtyFields,e),n.isDirty=t.defaultValue?A(e,XN($(i,e))):A()),t.keepError||(AP(n.errors,e),d.isValid&&g()),p.state.next({...n}))},ge=(e,c={})=>{let l=e?XN(e):i,u=XN(l),f=xP(e),m=f?i:u;if(c.keepDefaultValues||(i=l),!c.keepValues){if(c.keepDirtyValues){let e=new Set([...s.mount,...Object.keys(FP(i,a))]);for(let t of Array.from(e)){let e=$(n.dirtyFields,t),r=$(a,t),i=$(m,t);e&&!QN(r)?rP(m,t,r):!e&&!QN(i)&&te(t,i)}}else{if(YN&&QN(e))for(let e of s.mount){let t=$(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(CP(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(c.keepFieldsRef)for(let e of s.mount)te(e,$(m,e));else r={}}a=t.shouldUnregister?c.keepDefaultValues?XN(i):{}:XN(m),p.array.next({values:{...m}}),p.state.next({values:{...m}})}s={mount:c.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},o.mount=!d.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!t.shouldUnregister&&!xP(m),o.watch=!!t.shouldUnregister,o.keepIsValid=!!c.keepIsValid,o.action=!1,c.keepErrors||(n.errors={}),p.state.next({submitCount:c.keepSubmitCount?n.submitCount:0,isDirty:f?!1:c.keepDirty?n.isDirty:!!(c.keepDefaultValues&&!hP(e,i)),isSubmitted:c.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:f?{}:c.keepDirtyValues?c.keepDefaultValues&&a?FP(i,a):n.dirtyFields:c.keepDefaultValues&&e?FP(i,e):c.keepDirty?n.dirtyFields:{},touchedFields:c.keepTouched?n.touchedFields:{},errors:c.keepErrors?n.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},_e=(e,n)=>ge(nP(e)?e(a):e,{...t.resetOptions,...n}),ve=(e,t={})=>{let n=$(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&nP(e.select)&&e.select()})}},ye=e=>{n={...n,...e}},be={control:{register:pe,unregister:de,getFieldState:ae,handleSubmit:L,setError:se,_subscribe:le,_runSchema:T,_updateIsValidating:_,_focusError:I,_getWatch:j,_getDirty:A,_setValid:g,_setFieldArray:y,_setDisabledField:fe,_setErrors:x,_getFieldArray:M,_reset:ge,_resetDefaultValues:()=>nP(t.defaultValues)&&t.defaultValues().then(e=>{_e(e,t.resetOptions),p.state.next({isLoading:!1})}),_removeUnmounted:k,_disableForm:me,_subjects:p,_proxyFormState:d,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e}}},subscribe:ue,trigger:re,register:pe,handleSubmit:L,watch:ce,setValue:te,setValues:P,getValues:ie,reset:_e,resetField:he,clearErrors:oe,unregister:de,setError:se,setFocus:ve,getFieldState:ae};return{...be,formControl:be}}function uF(e={}){let t=f.default.useRef(void 0),n=f.default.useRef(void 0),[r,i]=f.default.useState(()=>({...XN(cF),isLoading:nP(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:nP(e.defaultValues)?void 0:e.defaultValues}));if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!nP(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...i}=lF(e);t.current={...i,formState:r}}let a=t.current.control;return a._options=e,dP(()=>{let e=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(e=>({...e,isReady:!0})),a._formState.isReady=!0,e},[a]),f.default.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),f.default.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),f.default.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),f.default.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),f.default.useEffect(()=>{if(a._proxyFormState.isDirty){let e=a._getDirty();e!==r.isDirty&&a._subjects.state.next({isDirty:e})}},[a,r.isDirty]),f.default.useEffect(()=>{e.values&&!hP(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),a._options.resetOptions?.keepIsValid||a._setValid(),n.current=e.values,i(e=>({...e}))):a._resetDefaultValues()},[a,e.values]),f.default.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=f.default.useMemo(()=>uP(r,a),[a,r]),t.current}var dF=e=>{let{firstName:t,lastName:n,userName:r}=e;return!t&&!n&&!r?``:t&&!n&&!r?t:`${t} ${n} (${r})`},fF=({eventProps:e,width:t})=>{let{fetchUserAPI:n,CustomComponents:r,onChange:i,setUser:a,fetchAPI:o}=e,{control:s}=uF(),[c,l]=(0,f.useState)([]),[u,d]=(0,f.useState)({}),{CustomAutocomplete:p}=r,m=bx(async(e,t,n)=>{let{data:r}=await o({code:`get_analytics_user_details`,parameters:{searchString:e}});console.log(`🚀 ~ debouncedFetch ~ users:`,r),t(r.result),n({firstName:e,lastName:``,userName:``})},500),h=(0,f.useCallback)(e=>{m(e,l,d)},[m]);(0,f.useEffect)(()=>{y()},[]);let g=(e,t)=>{e&&e.type===`change`&&h(t)},_=(e,t)=>{console.log(`🚀 ~ handleUserChange ~ newValue:`,t),d(t),a&&a(+t?.id||null),i&&i({target:{name:`userId`,value:t}})},y=async()=>{let{data:e}=await o({code:`get_analytics_user_details`,parameters:{searchString:null}});l(e.result),d({firstName:``,lastName:``,userName:``})};return(0,v.jsx)(p,{control:s,name:`users`,options:c,value:u,singleSelect:!0,onInputChange:g,onChange:(e,t)=>_(e,t),getOptionLabel:dF,sx:{width:t},"data-testid":`analytics-autocomplete-user`})},pF=({filterKey:e,filters:t,handleChange:n,eventProps:r,durationOptions:i,aggregationTypeOptions:a,aggregationFieldOptions:o,originalFilterOrder:s,durationTypeFilter:c,camelToSnake:l})=>e===`xAxis`?(0,v.jsx)(H,{size:{xs:12},children:(0,v.jsxs)(sa,{sx:{display:`flex`},children:[(0,v.jsxs)(GS,{sx:{width:250,m:1},children:[e.replace(/_/g,` `),`:`]}),(0,v.jsx)(Uw,{fullWidth:!0,children:(0,v.jsxs)(OE,{id:e,name:e,value:t[e]||``,onChange:n,size:`small`,children:[(0,v.jsx)(YT,{value:``,children:(0,v.jsx)(`em`,{children:`Select an option`})}),[...s,...c].filter(e=>![`xAxis`,`fileSizeMin`,`fileSizeMax`,`duration`,`aggregationType`,`aggregationField`,`eventTimeStart`,`eventTimeEnd`].includes(e)).map(e=>(0,v.jsx)(YT,{value:l(e),disabled:t.xAxis===l(e),children:l(e)},e))]})})]})}):e===`duration`?(0,v.jsx)(H,{size:{xs:12},children:(0,v.jsxs)(sa,{sx:{display:`flex`},children:[(0,v.jsxs)(GS,{sx:{width:250,m:1},children:[e.replace(/_/g,` `),`:`]}),(0,v.jsx)(Uw,{fullWidth:!0,children:(0,v.jsxs)(OE,{id:e,name:e,size:`small`,value:t[e]||``,onChange:n,children:[(0,v.jsx)(YT,{value:``,children:(0,v.jsx)(`em`,{children:`Select Duration`})}),i.map(e=>(0,v.jsx)(YT,{value:e,children:e},e))]})})]})}):e===`userId`&&r?.fetchUserAPI?(0,v.jsx)(H,{size:{xs:12},children:(0,v.jsxs)(sa,{sx:{display:`flex`},children:[(0,v.jsx)(GS,{sx:{width:250,m:1},children:`user:`}),(0,v.jsx)(fF,{eventProps:{...r,onChange:n}})]})}):e===`aggregationType`?(0,v.jsx)(H,{size:{xs:12},children:(0,v.jsxs)(sa,{sx:{display:`flex`},children:[(0,v.jsxs)(GS,{sx:{width:250,m:1},children:[e.replace(/_/g,` `),`:`]}),(0,v.jsx)(Uw,{fullWidth:!0,children:(0,v.jsxs)(OE,{id:e,name:e,size:`small`,value:t[e]||``,onChange:n,children:[(0,v.jsx)(YT,{value:``,children:(0,v.jsx)(`em`,{children:`Select Aggregation Type`})}),a.map(e=>(0,v.jsx)(YT,{value:e,children:e},e))]})})]})}):e===`buttonType`?(0,v.jsx)(H,{size:{xs:12},children:(0,v.jsxs)(sa,{sx:{display:`flex`},children:[(0,v.jsxs)(GS,{sx:{width:250,m:1},children:[e.replace(/_/g,` `),`:`]}),(0,v.jsx)(Uw,{fullWidth:!0,children:(0,v.jsxs)(OE,{id:e,name:e,size:`small`,value:t[e]||``,onChange:n,children:[(0,v.jsx)(YT,{value:``,children:(0,v.jsx)(`em`,{children:`Select Button Type`})}),[`filter`,`cancel`,`filter_open`,`menu`,`navigate`,`submit`].map(e=>(0,v.jsx)(YT,{value:e,children:e},e))]})})]})}):e===`aggregationField`?t.aggregationType===`count`?void 0:(console.log(`anccc`,t),(0,v.jsx)(H,{size:{xs:12},children:(0,v.jsxs)(sa,{sx:{display:`flex`},children:[(0,v.jsxs)(GS,{sx:{width:250,m:1},children:[e.replace(/_/g,` `),`:`]}),(0,v.jsx)(Uw,{fullWidth:!0,children:(0,v.jsxs)(OE,{fullWidth:!0,id:e,name:e,size:`small`,value:t[e]||``,onChange:n,children:[(0,v.jsx)(YT,{value:``,children:(0,v.jsx)(`em`,{children:`Select Aggregation Field`})}),o.map(e=>(0,v.jsx)(YT,{value:e,children:e},e))]})})]})})):[`device`,`sessionId`].includes(e)?void 0:(0,v.jsx)(H,{size:{xs:12},children:(0,v.jsxs)(sa,{sx:{display:`flex`},children:[(0,v.jsxs)(GS,{sx:{width:250,m:1},children:[e.replace(/_/g,` `),`:`]}),(0,v.jsx)(NE,{id:e,size:`small`,fullWidth:!0,name:e,value:t[e]||``,onChange:n,variant:`outlined`,disabled:[`eventTimeStart`,`eventTimeEnd`].includes(e)})]})}),mF=({filters:e,setFilters:t,eventType:n,setShowGraph:r,fetchData:i,eventProps:a})=>{let o={xAxis:null,aggregationType:`count`,aggregationField:null,duration:null,userId:null,sessionId:null,device:null,pageSource:null,eventTimeStart:null,eventTimeEnd:null},s=[`count`,`sum`,`avg`],c={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}},l={page_view:{aggregationField:[`active_tab_time`],aggregationType:s},inactivity_tracking:{aggregationField:[`duration`],aggregationType:s},search_tracking:{aggregationField:[`time_since_last_search`],aggregationType:s.filter(e=>e!==`sum`)},conversion_event:{aggregationField:[`progress`],aggregationType:s.filter(e=>e!==`sum`)}},u=[`decade`,`year`,`month`,`week`,`day`,`hour`,`minute`,`custom`],[d,p]=(0,f.useState)([]),[m,h]=(0,f.useState)([]),[g,_]=(0,f.useState)(u.filter(e=>![`decade`,`custom`].includes(e))),[y,b]=(0,f.useState)(Object.keys(o));(0,f.useEffect)(()=>{t(o)},[]),(0,f.useEffect)(()=>{let e=c[n]||{};t({...o,...c[n]}),b([...Object.keys(o),...Object.keys(e)]),h(l[n]?.aggregationField||[]),p(l[n]?.aggregationType||[`count`])},[n]);let x=e=>{let{name:n,value:r}=e.target,i=e=>e.replace(/(_\w)/g,e=>e[1].toUpperCase());n===`duration`?C(r):t(n===`xAxis`?e=>{let t={...e},a=e.xAxis;if(a){let e=i(a||``);t[e]=null}return t[i(r||``)]=null,t[n]=r,t}:n===`userId`?e=>({...e,[n]:+r?.id}):e=>({...e,[n]:r}))},S=(e,t)=>{let n=u.indexOf(e);if(n===-1)throw Error(`Selected duration is not valid.`);return t?u.includes(t)&&u.indexOf(t)<=n?u.filter(e=>e!==`custom`)[n+1]||null:t:u.filter(e=>e!==`custom`)[n+1]},C=n=>{let r=K(),i=null,a=null,o=e.xAxis,s=u.indexOf(n);if(s!==-1){if(o=S(n,o),n===`decade`){let e=r.year(),t=Math.floor(e/10)*10,n=t+9;i=r.year(t).startOf(`year`).toISOString(),a=r.year(n).endOf(`year`).toISOString()}else n===`custom`?(i=null,a=null):(i=r.startOf(n).toISOString(),a=r.endOf(n).toISOString());_(u.slice(s+1).filter(e=>e!==`custom`))}t(e=>({...e,eventTimeStart:i,eventTimeEnd:a,xAxis:o,duration:n}))},w=t=>{if(t.preventDefault(),!e.xAxis){console.error(`please select xAxis`);return}else if(e.aggregationType!==`count`&&!e.aggregationField){console.error(`please select aggregation field`);return}r(!0),i()},T=e=>e.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`);return(0,v.jsx)(AC,{component:`form`,onSubmit:w,children:(0,v.jsxs)(H,{container:!0,spacing:2,alignItems:`flex-start`,children:[y.filter(t=>!(e.xAxis&&T(t)===e.xAxis)).map(t=>(0,v.jsx)(pF,{filterKey:t,filters:e,handleChange:x,eventProps:a,durationOptions:u,aggregationTypeOptions:d,aggregationFieldOptions:m,originalFilterOrder:y,durationTypeFilter:g,camelToSnake:T})),(0,v.jsx)(H,{item:!0,size:{xs:12},children:(0,v.jsx)(HC,{variant:`contained`,type:`submit`,sx:{mt:1,fontSize:`0.75rem`,padding:`4px 8px`,backgroundColor:`#1976d2`,":hover":{backgroundColor:`#115293`}},children:`Apply Filters`})})]})})};km.register(qh,Zh,uh,Qm,eh,zm,Hh,yh,Sh);var hF=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>t!=null&&t!==``)),gF=({type:e,labels:t,datasets:n,title:r,appliedFilters:i})=>{let a=hF(i||{}),o={labels:t,datasets:n},s={responsive:!0,plugins:{legend:{display:!0,position:`top`},title:{display:!!r,text:r}}};return(0,v.jsxs)(AC,{children:[Object.keys(a).length>0&&(0,v.jsxs)(iS,{sx:{padding:2,mb:2},children:[(0,v.jsx)(GS,{variant:`subtitle1`,sx:{mb:1,textAlign:`center`},children:`Applied Filters`}),(0,v.jsx)(AC,{sx:{display:`flex`,flexWrap:`wrap`,gap:1,justifyContent:`center`,alignItems:`center`},children:Object.entries(a).map(([e,t])=>(0,v.jsx)(GS,{sx:{fontSize:`0.85rem`,backgroundColor:`#f0f0f0`,padding:`4px 8px`,borderRadius:`4px`},children:`${e}: ${t}`},e))})]}),(0,v.jsxs)(iS,{sx:{padding:2,maxHeight:800},children:[e===`bar`&&(0,v.jsx)(Hg,{data:o,options:s}),e===`line`&&(0,v.jsx)(Vg,{data:o,options:s}),e===`pie`&&(0,v.jsx)(Ug,{data:o,options:s}),![`bar`,`line`,`pie`].includes(e)&&(0,v.jsx)(GS,{variant:`h6`,color:`error`,align:`center`,children:`Invalid chart type`})]})]})};km.register(Sh,Hh,yh,Zh,qh,Qm,eh,Ag,uh,zm);function _F({execute:e,userId:t}){let[n,r]=(0,f.useState)([]),[i,a]=(0,f.useState)(null),[o,s]=(0,f.useState)(null),[c,l]=(0,f.useState)(new Date().getMonth()),[u,d]=(0,f.useState)(new Date().getFullYear()),[p,m]=(0,f.useState)({totalErrors:0,avgTimeBetweenErrors:0,topSearchKeywords:[],globalSearch:0,pageSearch:0}),[h,g]=(0,f.useState)(null),[_,y]=(0,f.useState)([]),[b,x]=(0,f.useState)(null);(0,f.useEffect)(()=>{(async()=>{try{let n=await e({code:`get_analytics_data`,parameters:{userId:t||null,eventName:`search_tracking`}}),i=await e({code:`get_analytics_data1`,parameters:{userId:t||null,eventName:`error_tracking`}});i&&s({labels:i?.data?.result?.map(e=>e.page_source.split(`/`).filter(Boolean).slice(-2).join(`/`)),datasets:[{label:`Number of Errors`,data:i?.data?.result?.map(e=>e.total_visit),backgroundColor:`rgba(75, 192, 192, 0.6)`,borderColor:`rgba(75, 192, 192, 1)`,borderWidth:1}]}),r(n?.data?.result)}catch{throw Error(`Problem in getting error tracking data`)}})()},[e,t]),(0,f.useEffect)(()=>{let n=async()=>{let n=await e({code:`get_analytics_data_daywise`,parameters:{userId:t||null,eventName:`error_tracking`,year:u,month:c+1}}),r=n?.data?.result?.map(e=>e.event_date),i=n?.data?.result?.map(e=>e.total_visit);a({labels:r,datasets:[{label:`Number of Errors`,data:i,fill:!1,borderColor:`rgba(75, 192, 192, 1)`,tension:.1}]})};try{n()}catch(e){throw Error(e)}},[c,u,t]);let S=e=>{let t=new Date;if(new Date(u,c+e,1)>t){alert(`You cannot go beyond the current month.`);return}let n=new Date(u,c+e,1);l(n.getMonth()),d(n.getFullYear())},C={plugins:{title:{display:!0,text:`Number of Errors Per Day (${c+1}/${u})`}},scales:{x:{type:`category`,title:{display:!0,text:`Date`}},y:{beginAtZero:!0,title:{display:!0,text:`Number of Errors`}}}};return(0,v.jsx)(`div`,{style:{marginTop:`30px`,marginRight:`10px`},children:(0,v.jsxs)(H,{container:!0,spacing:3,justifyContent:`center`,size:{xs:12},children:[(0,v.jsx)(H,{size:{md:6},children:(0,v.jsx)(KC,{elevation:6,style:{height:`423px`},children:(0,v.jsxs)(ew,{children:[(0,v.jsx)(XC,{children:(0,v.jsxs)(AC,{sx:{display:`flex`,justifyContent:`space-between`,width:`100%`},children:[(0,v.jsx)(`span`,{children:`${new Date(u,c).toLocaleString(`default`,{month:`long`})}, ${u}`}),(0,v.jsxs)(`div`,{children:[(0,v.jsx)(FE,{onClick:()=>S(-1)}),(0,v.jsx)(PE,{onClick:()=>S(1)})]})]})}),i&&(0,v.jsx)(Vg,{data:i,options:C})]})})}),(0,v.jsx)(H,{size:{md:6},children:(0,v.jsx)(KC,{elevation:6,style:{height:`423px`},children:(0,v.jsxs)(ew,{children:[(0,v.jsx)(XC,{children:(0,v.jsx)(AC,{sx:{display:`flex`,justifyContent:`space-between`,width:`100%`},children:`Error Per Page`})}),o&&(0,v.jsx)(Hg,{data:o,options:{plugins:{legend:{display:!0,position:`top`}},scales:{x:{title:{display:!0,text:`Interacted Page`}},y:{title:{display:!0,text:`Number of Searches`},beginAtZero:!0}}}})]})})})]})})}km.register(zm,Hh,yh,uh,qh,Zh,Qm,eh);function vF({execute:e,userId:t}){let[n,r]=(0,f.useState)([]),[i,a]=(0,f.useState)(null),[o,s]=(0,f.useState)(null),[c,l]=(0,f.useState)(null),u={callbacks:{title:e=>{let t=e[0].dataIndex;return n[t]?.page_source?.split(`techo/`)[1]?.replace(`techo/`,``)||n[t]?.page_source}}};return(0,f.useEffect)(()=>{(async()=>{try{r((await e({code:`get_inactivity_details`,parameters:{userId:t||null,eventName:`inactivity_tracking`}}))?.data?.result)}catch{throw Error(`Problem in getting search tracking data`)}})()},[e,t]),(0,f.useEffect)(()=>{let e=(e,t=20)=>e?.length>t?e.substring(0,t)+`...`:e;a({labels:n.map(t=>e(t.page_source?.replace(`/imtecho-ui/ui/techo/`,``)||t.page_source)),datasets:[{label:`Average Time Inactive (M) `,data:n.map(e=>e.total_inactive_tab_time/60/e.total_visits),backgroundColor:[`#FF6384`,`#36A2EB`,`#FFCE56`,`#4BC0C0`,`#9966FF`,`#FF9F40`,`#FF633`,`#36A23B`,`#FFCE57`,`#4BC1C1`,`#9923EE`,`#FF9F20`],hoverOffset:4}]}),s({labels:n.map(t=>e(t.page_source?.replace(`/imtecho-ui/ui/techo/`,``)||t.page_source)),datasets:[{label:`Inactive Time (minutes) `,data:n.map(e=>e.total_inactive_tab_time/60),backgroundColor:`#36A2EB`,borderColor:`#2980B9`,borderWidth:1}]}),l({labels:n.map(t=>e(t.page_source?.replace(`/imtecho-ui/ui/techo/`,``)||t.page_source)),datasets:[{label:`Inactivity Trends (count)`,data:n.map(e=>e.total_visits),borderColor:`#FF6384`,backgroundColor:`rgba(255,99,132,0.2)`,tension:.3}]})},[n]),(0,v.jsxs)(H,{container:!0,spacing:2,size:{xs:12},justifyContent:`center`,display:`flex`,flexDirection:`column`,mt:2,children:[(0,v.jsx)(H,{children:(0,v.jsx)(GS,{variant:`h5`,children:` Inactivity Analytics`})}),(0,v.jsxs)(H,{container:!0,display:`flex`,flexDirection:`column`,children:[(0,v.jsxs)(H,{container:!0,children:[(0,v.jsx)(H,{size:{xs:6},children:(0,v.jsxs)(KC,{elevation:4,children:[(0,v.jsx)(cw,{title:`Total InActive Time`}),(0,v.jsx)(ew,{children:o?(0,v.jsx)(Hg,{data:o,options:{responsive:!0,plugins:{legend:{position:`top`},tooltip:u},scales:{y:{beginAtZero:!0,title:{display:!0,text:`Total InActive Time(M)`}}}}}):`Loading bar chart...`})]})}),(0,v.jsx)(H,{size:{xs:6},children:(0,v.jsx)(H,{children:(0,v.jsxs)(KC,{elevation:4,children:[(0,v.jsx)(cw,{title:`Inactivity Trend`}),(0,v.jsx)(ew,{children:c?(0,v.jsx)(Vg,{data:c,options:{responsive:!0,plugins:{legend:{position:`top`},tooltip:u},scales:{y:{beginAtZero:!0,title:{display:!0,text:`Count`}}}}}):`Loading line chart...`})]})})})]}),(0,v.jsx)(H,{children:(0,v.jsx)(H,{size:{xs:6},children:(0,v.jsxs)(KC,{elevation:4,children:[(0,v.jsx)(cw,{title:`Average Trend`}),(0,v.jsx)(ew,{children:i?(0,v.jsx)(Ug,{data:i,height:50,width:100,options:{plugins:{tooltip:u}}}):`Loading pie chart...`})]})})})]})]})}km.register(zm,Hh,yh,uh,qh,Zh,Qm,eh);function yF({execute:e,userId:t}){let[n,r]=(0,f.useState)([]),[i,a]=(0,f.useState)(null),[o,s]=(0,f.useState)(null);return(0,f.useEffect)(()=>{(async()=>{try{r((await e({code:`get_conversion_event_data`,parameters:{userId:t||null,eventName:`conversion_event`}}))?.data?.result)}catch{throw Error(`Problem in getting search tracking data`)}})()},[e,t]),(0,f.useEffect)(()=>{a({labels:n.map(e=>e.form_name),datasets:[{label:`No of time form submitted `,data:n.map(e=>e.total_events_true),backgroundColor:`#36A2EB`,borderColor:`#2980B9`,borderWidth:1}]}),s({labels:n.map(e=>e.form_name),datasets:[{label:`Avg Percentage`,data:n.map(e=>e.avg_progress_false),backgroundColor:`#36A2EB`,borderColor:`#2980B9`,borderWidth:1}]})},[n]),(0,v.jsxs)(H,{container:!0,spacing:2,size:{xs:12},justifyContent:`center`,display:`flex`,flexDirection:`column`,mt:2,children:[(0,v.jsx)(H,{children:(0,v.jsx)(GS,{variant:`h5`,children:` Conversion Event Analytics`})}),(0,v.jsx)(H,{container:!0,display:`flex`,flexDirection:`column`,children:(0,v.jsxs)(H,{container:!0,children:[(0,v.jsx)(H,{size:{xs:6},children:(0,v.jsxs)(KC,{elevation:4,children:[(0,v.jsx)(cw,{title:`Count of Submitted Forms `}),(0,v.jsx)(ew,{children:i?(0,v.jsx)(Hg,{data:i,options:{responsive:!0,plugins:{legend:{position:`top`}},scales:{y:{beginAtZero:!0,title:{display:!0,text:`Submitted Forms count`}}}}}):`Loading bar chart...`})]})}),(0,v.jsx)(H,{size:{xs:6},children:(0,v.jsx)(H,{children:(0,v.jsxs)(KC,{elevation:4,children:[(0,v.jsx)(cw,{title:`Average Progress (%)`}),(0,v.jsx)(ew,{children:o?(0,v.jsx)(Hg,{data:o,options:{responsive:!0,plugins:{legend:{position:`top`}},scales:{y:{beginAtZero:!0,title:{display:!0,text:`Avg Progress`}}}}}):`Loading bar chart...`})]})})})]})})]})}km.register(zm,Hh,yh,uh,qh,Zh,Qm,eh);function bF({execute:e,userId:t}){let[n,r]=(0,f.useState)([]),[i,a]=(0,f.useState)(null),[o,s]=(0,f.useState)(null),[c,l]=(0,f.useState)(null),[u,d]=(0,f.useState)(null),[p,m]=(0,f.useState)([]),[h,g]=(0,f.useState)(0),[_,y]=(0,f.useState)(null),b=e=>{let t={};return e?.forEach(({form_name:e,submit:n,progress:r})=>{t[e]||(t[e]={form_name:e,count:0,totalProgress:0}),t[e].count+=1,t[e].totalProgress+=n?100:r}),Object.values(t).map(({form_name:e,count:t,totalProgress:n})=>({form_name:e,count:t,average_progress:parseFloat((n/t).toFixed(2))}))},x={callbacks:{title:e=>{let t=e[0].dataIndex;return n?.find(e=>e.event_name===`button_click`)?.event_data.filter(e=>e.button_type===`navigate`)[t]?.button_name}}};return(0,f.useEffect)(()=>{(async()=>{try{let n=(await e({code:`get_detailed_reports_data`,parameters:{userId:t||null}}))?.data?.result.map(e=>(e.event_data=JSON.parse(e.event_data).map(e=>JSON.parse(e)),e));r(n||[])}catch{throw Error(`Problem in getting search tracking data`)}})()},[e,t]),(0,f.useEffect)(()=>{let e=(e,t=20)=>e?.length>t?e.substring(0,t)+`...`:e;a({labels:n.map(e=>e.event_name),datasets:[{label:`No of Events `,data:n.map(e=>e.total_events),backgroundColor:`#36A2EB`,borderColor:`#2980B9`,borderWidth:1}]}),m(()=>{let e=0;return(n.find(e=>e.event_name===`inactivity_tracking`)?.event_data.map(e=>e.duration))?.forEach(t=>e+=t/60),parseFloat(e.toFixed(2))});let t=n.find(e=>e.event_name===`conversion_event`)?.event_data.map(e=>e),r=b(t);d({labels:r.map(e=>e.form_name),datasets:[{label:`Avg Percentage`,data:r.map(e=>e.average_progress),backgroundColor:`#36A2EB`,borderColor:`#2980B9`,borderWidth:1}]}),g(()=>{let e=n.find(e=>e.event_name===`page_view`)?.event_data.map(e=>e.max_scroll_depth);return e?Math.max(...e):0}),y(()=>n.find(e=>e.event_name===`page_view`)?.total_active_tab_time);let i=(n?.find(e=>e.event_name===`button_click`)?.event_data.filter(e=>e.button_type===`navigate`))?.reduce((e,t)=>(e[t?.button_name]=(e[t?.button_name]||0)+1,e),{});s({labels:Object.keys(i||[]).map(t=>e(t)),datasets:[{label:`Report Edited`,data:Object.values(i||[]),backgroundColor:[`#FF6384`,`#36A2EB`,`#FFCE56`,`#4BC0C0`,`#9966FF`,`#FF9F40`,`#FF633`,`#36A23B`,`#FFCE57`,`#4BC1C1`,`#9923EE`,`#FF9F20`],hoverOffset:4}]});let o=(n?.find(e=>e.event_name===`link_click`)?.event_data.filter(e=>!e.link_id||e.link_id===null||e.link_id===``))?.reduce((e,t)=>(e[t?.link_text]=(e[t?.link_text]||0)+1,e),{});l({labels:Object.keys(o||[]).map(t=>e(t)),datasets:[{label:`Viewed`,data:Object.values(o||[]),backgroundColor:[`#FF6384`,`#36A2EB`,`#FFCE56`,`#4BC0C0`,`#9966FF`,`#FF9F40`,`#FF633`,`#36A23B`,`#FFCE57`,`#4BC1C1`,`#9923EE`,`#FF9F20`],hoverOffset:4}]})},[n]),(0,v.jsxs)(H,{container:!0,size:{xs:12},spacing:2,justifyContent:`center`,display:`flex`,flexDirection:`column`,mt:2,children:[(0,v.jsx)(H,{children:(0,v.jsx)(GS,{variant:`h5`,children:` Reports Page Analytics`})}),(0,v.jsxs)(H,{container:!0,display:`flex`,flexDirection:`column`,children:[(0,v.jsxs)(H,{container:!0,children:[(0,v.jsx)(H,{size:{xs:6},children:(0,v.jsxs)(KC,{elevation:4,children:[(0,v.jsx)(cw,{title:`Count of total events`}),(0,v.jsx)(ew,{children:i?(0,v.jsx)(Hg,{data:i,options:{responsive:!0,plugins:{legend:{position:`top`}},scales:{y:{beginAtZero:!0,title:{display:!0,text:`events count`}}}}}):`Loading bar chart...`})]})}),(0,v.jsx)(H,{size:{xs:6},children:(0,v.jsx)(H,{children:(0,v.jsxs)(KC,{elevation:4,children:[(0,v.jsx)(cw,{title:`Average filling Progress (%)`}),(0,v.jsx)(ew,{children:u?(0,v.jsx)(Hg,{data:u,options:{responsive:!0,plugins:{legend:{position:`top`}},scales:{y:{beginAtZero:!0,title:{display:!0,text:`Avg Progress`}}}}}):`Loading bar chart...`})]})})})]}),(0,v.jsxs)(H,{container:!0,children:[(0,v.jsx)(H,{size:{xs:6},children:(0,v.jsxs)(KC,{elevation:4,sx:{height:`430px`},children:[(0,v.jsx)(cw,{title:`Edited reports`}),(0,v.jsx)(ew,{children:o?(0,v.jsx)(H,{sx:{height:`300px`,margin:`0 auto`},children:(0,v.jsx)(Ug,{data:o,options:{maintainAspectRatio:!1,plugins:{tooltip:x}}})}):`Loading pie chart...`})]})}),(0,v.jsx)(H,{size:{xs:6},children:(0,v.jsx)(H,{children:(0,v.jsxs)(KC,{elevation:4,sx:{height:`430px`},children:[(0,v.jsx)(cw,{title:`Reports Viewed`}),(0,v.jsx)(ew,{children:c?(0,v.jsx)(H,{sx:{height:`300px`,margin:`0 auto`},children:(0,v.jsx)(Ug,{data:c,options:{maintainAspectRatio:!1,plugins:{tooltip:x}}})}):`Loading line chart...`})]})})})]}),(0,v.jsx)(H,{container:!0,children:(0,v.jsxs)(H,{container:!0,spacing:2,display:`flex`,children:[(0,v.jsx)(H,{size:{xs:4},children:(0,v.jsxs)(KC,{elevation:4,sx:{height:`150px`},children:[(0,v.jsx)(cw,{title:`Average Inactivity Time`}),(0,v.jsxs)(ew,{children:[p,` minutes`]})]})}),(0,v.jsx)(H,{size:{xs:4},children:(0,v.jsxs)(KC,{elevation:4,sx:{height:`150px`},children:[(0,v.jsx)(cw,{title:`Maximum Scroll depth `}),(0,v.jsxs)(ew,{children:[parseFloat(h.toFixed(2)),`%`]})]})}),(0,v.jsx)(H,{size:{xs:4},children:(0,v.jsxs)(KC,{elevation:4,sx:{height:`150px`},children:[(0,v.jsx)(cw,{title:`Total Time Spent `}),(0,v.jsxs)(ew,{children:[parseFloat((_/6e4).toFixed(2)),` minutes`]})]})})]})})]})]})}var xF=({eventProps:e})=>{let{fetchAPI:t,fetchUserAPI:n,eventName:r,allEventTypes:i}=e,a={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,s]=(0,f.useState)(r||`button_click`),[c,l]=(0,f.useState)(`bar`),[u,d]=(0,f.useState)({}),[p,m]=(0,f.useState)(null),[h,g]=(0,f.useState)({}),[_,y]=(0,f.useState)({labels:[],datasets:[]}),[b,x]=(0,f.useState)(``),[S,C]=(0,f.useState)(a[r]||!1),[w,T]=(0,f.useState)(!1),[E,D]=(0,f.useState)(),{xAxis:O}=u;console.log(`🚀 ~ DynamicChartSelectorWithFilters ~ filters:`,u);let k=e=>{let t=[`decade`,`year`,`month`,`week`,`day`,`hour`,`minute`,`custom`,`duration`,`filterType`,`status`];return Object.fromEntries(Object.entries(e).filter(([e])=>!t.includes(e)).map(([e,t])=>e===`eventName`?[e,t||o]:e===`formSubmitted`?[e,t===`true`?!0:t===`false`?!1:null]:e===`reportId`?[e,t?+t:null]:[e,t||null]))},A=async()=>{try{let e;x(``),g(()=>j(u));let n=(await t({code:`get_user_event_data`,parameters:{...k(u),eventName:o}}))?.data?.result||[];if(!Array.isArray(n)||n.length===0){x(`No data available for the selected filters.`),y({labels:[`No Data`],datasets:[{label:`No Data Available`,data:[0],backgroundColor:[`#e74c3c`]}]});return}if(O===`user_id`){let{data:r}=await t({code:`get_user_details_from_user_ids`,parameters:{userIds:n.map(e=>+e?.x_value)}});e=r.result.map(e=>dF(e))}y({labels:e||n.map(e=>e?.x_value||`Unknown`),datasets:[{label:`${O||`Value`} Count`,data:n.map(e=>e?.y_value||0),backgroundColor:[`#3498db`,`#2ecc71`,`#e74c3c`,`#9b59b6`]}]})}catch(e){console.error(`Error fetching data:`,e),x(`An error occurred while fetching the data.`),y({labels:[`Error`],datasets:[{label:`Error Loading Data`,data:[0],backgroundColor:[`#e74c3c`]}]})}},j=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null&&e!==``));return(0,f.useEffect)(()=>{C(a[r]),s(r),T(!1)},[r]),(0,v.jsxs)(H,{container:!0,mt:2,children:[(0,v.jsx)(H,{size:{xs:12},container:!0,children:[`search_tracking`,`page_view`,`error_tracking`,`inactivity_tracking`,`conversion_event`,`reports_detail`].includes(r)&&(0,v.jsxs)(H,{container:!0,alignItems:`center`,spacing:2,direction:`row`,children:[(0,v.jsx)(H,{item:!0,minWidth:117,children:(0,v.jsx)(GS,{variant:`body`,sx:{fontWeight:`bold`,fontFamily:`Arial`,color:`#333`,letterSpacing:`0.5px`},children:`Select User`})}),(0,v.jsx)(H,{item:!0,children:n?(0,v.jsx)(fF,{eventProps:{...e,setUser:D},width:240}):(0,v.jsx)(NE,{id:`user_id`,type:`number`,size:`small`,name:`user_id`,onChange:e=>{D(+e.target.value)},variant:`outlined`,sx:{fontSize:`0.75rem`}})}),(0,v.jsx)(H,{item:!0,children:(0,v.jsx)(HC,{variant:`contained`,size:`medium`,onClick:()=>m(E),sx:{ml:2},children:`Apply`})})]})}),(0,v.jsxs)(H,{size:{xs:12},children:[r===`search_tracking`&&(0,v.jsx)(LE,{execute:t,userId:p}),r===`page_view`&&(0,v.jsx)(RE,{execute:t,userId:p}),r===`error_tracking`&&(0,v.jsx)(_F,{execute:t,userId:p}),r===`inactivity_tracking`&&(0,v.jsx)(vF,{execute:t,userId:p}),r===`conversion_event`&&(0,v.jsx)(yF,{execute:t,userId:p}),r===`report_dashboard`&&(0,v.jsx)(bF,{execute:t,userId:p})]}),(0,v.jsxs)(H,{container:!0,spacing:2,direction:`row`,children:[(0,v.jsx)(H,{size:{xs:4},children:S&&(0,v.jsx)(iS,{sx:{padding:2},children:(0,v.jsxs)(H,{container:!0,spacing:2,alignItems:`flex-start`,children:[(0,v.jsxs)(H,{size:{xs:12},children:[(0,v.jsxs)(AC,{sx:{display:`flex`},children:[(0,v.jsx)(GS,{variant:`subtitle1`,sx:{width:250,m:1},children:`Select Event Type:`}),(0,v.jsx)(Uw,{fullWidth:!0,children:(0,v.jsx)(OE,{value:o||``,size:`small`,onChange:e=>{T(!1),s(e.target.value||`button_click`)},sx:{marginBottom:2},children:i?.map(e=>(0,v.jsx)(YT,{value:e,children:e},e))})})]},`event_type`),(0,v.jsxs)(AC,{sx:{display:`flex`},children:[(0,v.jsx)(GS,{variant:`subtitle1`,sx:{width:250,m:1},children:`Select Chart Type:`}),(0,v.jsx)(Uw,{fullWidth:!0,children:(0,v.jsxs)(OE,{value:c||``,size:`small`,onChange:e=>l(e.target.value||`bar`),children:[(0,v.jsx)(YT,{value:`bar`,children:`Bar`}),(0,v.jsx)(YT,{value:`line`,children:`Line`}),(0,v.jsx)(YT,{value:`pie`,children:`Pie`})]})})]},`chart_type`)]}),(0,v.jsx)(H,{size:{xs:12},sx:{overflowY:`hidden`},children:(0,v.jsx)(mF,{filters:u,setFilters:d,eventType:o,setShowGraph:T,fetchData:A,eventProps:e})})]})})}),(0,v.jsx)(H,{size:{xs:8},children:w&&(b?(0,v.jsx)(GS,{variant:`h6`,color:`error`,align:`center`,children:b}):(0,v.jsx)(gF,{type:c||`bar`,labels:_.labels,datasets:_.datasets,title:`Count of ${h.xAxis||`Events`} by ${o}`,appliedFilters:h}))})]})]})};(0,p.createRoot)(document.getElementById(`root`)).render((0,v.jsx)(f.StrictMode,{children:(0,v.jsx)(y,{})})),e.ChartDashboard=({fetchAPI:e,fetchUserAPI:t,CustomComponents:n})=>{let[r,i]=(0,f.useState)([]),[a,o]=(0,f.useState)(),s=async()=>{let{data:t}=await e({code:`get_event_data_for_dashboard`});i(t.result)};(0,f.useEffect)(()=>{s()},[]);let c=e=>{o(e)};return(0,v.jsx)(H,{sx:{padding:`10px`},children:(0,v.jsxs)(H,{container:!0,display:`flex`,flexDirection:`column`,sx:{m:2},spacing:1,children:[(0,v.jsx)(H,{container:!0,alignItems:`flex-start`,justifyContent:`center`,children:(0,v.jsx)(GS,{variant:`h5`,sx:{fontWeight:`bold`,fontFamily:`Arial`,color:`#333`},children:`USER ANALYTICS`})}),(0,v.jsx)(H,{container:!0,display:`flex`,justifyContent:`space-between`,children:(0,v.jsxs)(H,{container:!0,display:`flex`,alignItems:`center`,children:[(0,v.jsx)(GS,{variant:`body`,sx:{fontWeight:`bold`,fontFamily:`Arial`,color:`#333`,letterSpacing:`0.5px`,mr:3},children:`Select Event`}),(0,v.jsx)(Uw,{sx:{minWidth:`240px`},children:(0,v.jsx)(OE,{value:a,onChange:e=>c(e.target.value),size:`small`,children:[...r,{event_name:`report_dashboard`}].map(e=>(0,v.jsx)(YT,{value:e.event_name,children:e.event_name},e.event_name))})})]})}),(0,v.jsx)(H,{children:(0,v.jsx)(xF,{eventProps:{eventName:a,fetchAPI:e,fetchUserAPI:t,CustomComponents:n,allEventTypes:r?.map(e=>e.event_name)}})})]})})},e.Dashboard=zE,e.PageView=fe,e.TrackingProvider=ue,e.useTracking=de});