react-luminus-components 1.4.17 → 1.4.18
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/README.md +349 -349
- package/dist/.vite/manifest.json +30 -30
- package/dist/FormDisabledProvider-CFVvRfQA.cjs +1 -0
- package/dist/{FormDisabledProvider-CdkJlYfk.js → FormDisabledProvider-Ivy5y4wP.js} +1 -1
- package/dist/components/Contacts/ContactButtonQrModal/ContactButtonQrModal.d.ts +6 -0
- package/dist/components/Contacts/ContactsLink/ContactsLink.d.ts +11 -0
- package/dist/components/Contacts/index.d.ts +2 -0
- package/dist/components/Form/ContactInput/ContactInput.d.ts +4 -0
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/HookForm/ContactInput/HookFormContactInput.d.ts +4 -0
- package/dist/components/HookForm/index.d.ts +1 -0
- package/dist/components/common/QrCode/QrCode.d.ts +11 -0
- package/dist/components/common/QrCode/utils/qrCodeComponentUtils.d.ts +86 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +5 -5
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +52 -52
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +28 -28
- package/dist/main.cjs.js +62 -62
- package/dist/main.d.ts +3 -2
- package/dist/main.es.js +9681 -9520
- package/dist/models/index.d.ts +3 -0
- package/dist/models/prop-types/FormInputProps/FormContactInputProp.d.ts +6 -0
- package/dist/models/prop-types/HookFormInputProps/HookFormContactInputProps.d.ts +5 -0
- package/dist/models/prop-types/InputProps/ContactInputProp.d.ts +6 -0
- package/dist/{ShortcutLinksContext-BjRebgUy.js → nivo-bar.es-Cr3RGn0C.js} +17871 -16184
- package/dist/nivo-bar.es-XyEWv2u7.cjs +281 -0
- package/dist/style.css +1 -1
- package/dist/useGetApiData-Csr4g-NL.cjs +1 -0
- package/dist/{useGetApiData-BRW203DN.js → useGetApiData-vqVw7uCt.js} +8 -8
- package/dist/utils/constants/CommonLuminusIconsArray.d.ts +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +22 -19
- package/dist/variables.scss +165 -165
- package/package.json +122 -121
- package/dist/FormDisabledProvider-DU9jpzIh.cjs +0 -1
- package/dist/ShortcutLinksContext-B2J2n2kF.cjs +0 -279
- package/dist/useGetApiData-DSsW3tlv.cjs +0 -1
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
"use strict";const m=require("react"),Ra=require("react-router-dom"),fg=require("@azure/msal-browser"),hg=require("@azure/msal-react"),Fr=require("react-dom"),rn=require("react-hook-form");require("react-flexmonster");function UT(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 ie=UT(m);var qs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ff={exports:{}},Ja={};/**
|
|
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 pg;function zT(){if(pg)return Ja;pg=1;var e=m,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(s,c,l){var u,d={},f=null,h=null;l!==void 0&&(f=""+l),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(h=c.ref);for(u in c)r.call(c,u)&&!a.hasOwnProperty(u)&&(d[u]=c[u]);if(s&&s.defaultProps)for(u in c=s.defaultProps,c)d[u]===void 0&&(d[u]=c[u]);return{$$typeof:t,type:s,key:f,ref:h,props:d,_owner:i.current}}return Ja.Fragment=n,Ja.jsx=o,Ja.jsxs=o,Ja}var eo={};/**
|
|
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 mg;function HT(){return mg||(mg=1,process.env.NODE_ENV!=="production"&&function(){var e=m,t=Symbol.for("react.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.provider"),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"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,p="@@iterator";function b(P){if(P===null||typeof P!="object")return null;var re=g&&P[g]||P[p];return typeof re=="function"?re:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(P){{for(var re=arguments.length,Z=new Array(re>1?re-1:0),te=1;te<re;te++)Z[te-1]=arguments[te];y("error",P,Z)}}function y(P,re,Z){{var te=x.ReactDebugCurrentFrame,ge=te.getStackAddendum();ge!==""&&(re+="%s",Z=Z.concat([ge]));var Ce=Z.map(function(pe){return String(pe)});Ce.unshift("Warning: "+re),Function.prototype.apply.call(console[P],console,Ce)}}var C=!1,w=!1,T=!1,$=!1,R=!1,S;S=Symbol.for("react.module.reference");function k(P){return!!(typeof P=="string"||typeof P=="function"||P===r||P===a||R||P===i||P===l||P===u||$||P===h||C||w||T||typeof P=="object"&&P!==null&&(P.$$typeof===f||P.$$typeof===d||P.$$typeof===o||P.$$typeof===s||P.$$typeof===c||P.$$typeof===S||P.getModuleId!==void 0))}function O(P,re,Z){var te=P.displayName;if(te)return te;var ge=re.displayName||re.name||"";return ge!==""?Z+"("+ge+")":Z}function D(P){return P.displayName||"Context"}function E(P){if(P==null)return null;if(typeof P.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof P=="function")return P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case u:return"SuspenseList"}if(typeof P=="object")switch(P.$$typeof){case s:var re=P;return D(re)+".Consumer";case o:var Z=P;return D(Z._context)+".Provider";case c:return O(P,P.render,"ForwardRef");case d:var te=P.displayName||null;return te!==null?te:E(P.type)||"Memo";case f:{var ge=P,Ce=ge._payload,pe=ge._init;try{return E(pe(Ce))}catch{return null}}}return null}var M=Object.assign,j=0,F,W,B,U,N,V,X;function ne(){}ne.__reactDisabledLog=!0;function K(){{if(j===0){F=console.log,W=console.info,B=console.warn,U=console.error,N=console.group,V=console.groupCollapsed,X=console.groupEnd;var P={configurable:!0,enumerable:!0,value:ne,writable:!0};Object.defineProperties(console,{info:P,log:P,warn:P,error:P,group:P,groupCollapsed:P,groupEnd:P})}j++}}function J(){{if(j--,j===0){var P={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},P,{value:F}),info:M({},P,{value:W}),warn:M({},P,{value:B}),error:M({},P,{value:U}),group:M({},P,{value:N}),groupCollapsed:M({},P,{value:V}),groupEnd:M({},P,{value:X})})}j<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=x.ReactCurrentDispatcher,G;function z(P,re,Z){{if(G===void 0)try{throw Error()}catch(ge){var te=ge.stack.trim().match(/\n( *(at )?)/);G=te&&te[1]||""}return`
|
|
18
|
-
`+G+P}}var L=!1,H;{var ee=typeof WeakMap=="function"?WeakMap:Map;H=new ee}function A(P,re){if(!P||L)return"";{var Z=H.get(P);if(Z!==void 0)return Z}var te;L=!0;var ge=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ce;Ce=q.current,q.current=null,K();try{if(re){var pe=function(){throw Error()};if(Object.defineProperty(pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pe,[])}catch(le){te=le}Reflect.construct(P,[],pe)}else{try{pe.call()}catch(le){te=le}P.call(pe.prototype)}}else{try{throw Error()}catch(le){te=le}P()}}catch(le){if(le&&te&&typeof le.stack=="string"){for(var be=le.stack.split(`
|
|
19
|
-
`),Ae=te.stack.split(`
|
|
20
|
-
`),Me=be.length-1,et=Ae.length-1;Me>=1&&et>=0&&be[Me]!==Ae[et];)et--;for(;Me>=1&&et>=0;Me--,et--)if(be[Me]!==Ae[et]){if(Me!==1||et!==1)do if(Me--,et--,et<0||be[Me]!==Ae[et]){var Nt=`
|
|
21
|
-
`+be[Me].replace(" at new "," at ");return P.displayName&&Nt.includes("<anonymous>")&&(Nt=Nt.replace("<anonymous>",P.displayName)),typeof P=="function"&&H.set(P,Nt),Nt}while(Me>=1&&et>=0);break}}}finally{L=!1,q.current=Ce,J(),Error.prepareStackTrace=ge}var wt=P?P.displayName||P.name:"",Ut=wt?z(wt):"";return typeof P=="function"&&H.set(P,Ut),Ut}function se(P,re,Z){return A(P,!1)}function ce(P){var re=P.prototype;return!!(re&&re.isReactComponent)}function ue(P,re,Z){if(P==null)return"";if(typeof P=="function")return A(P,ce(P));if(typeof P=="string")return z(P);switch(P){case l:return z("Suspense");case u:return z("SuspenseList")}if(typeof P=="object")switch(P.$$typeof){case c:return se(P.render);case d:return ue(P.type,re,Z);case f:{var te=P,ge=te._payload,Ce=te._init;try{return ue(Ce(ge),re,Z)}catch{}}}return""}var we=Object.prototype.hasOwnProperty,Te={},at=x.ReactDebugCurrentFrame;function tt(P){if(P){var re=P._owner,Z=ue(P.type,P._source,re?re.type:null);at.setExtraStackFrame(Z)}else at.setExtraStackFrame(null)}function Be(P,re,Z,te,ge){{var Ce=Function.call.bind(we);for(var pe in P)if(Ce(P,pe)){var be=void 0;try{if(typeof P[pe]!="function"){var Ae=Error((te||"React class")+": "+Z+" type `"+pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof P[pe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ae.name="Invariant Violation",Ae}be=P[pe](re,pe,te,Z,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Me){be=Me}be&&!(be instanceof Error)&&(tt(ge),_("%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).",te||"React class",Z,pe,typeof be),tt(null)),be instanceof Error&&!(be.message in Te)&&(Te[be.message]=!0,tt(ge),_("Failed %s type: %s",Z,be.message),tt(null))}}}var Ke=Array.isArray;function Ye(P){return Ke(P)}function de(P){{var re=typeof Symbol=="function"&&Symbol.toStringTag,Z=re&&P[Symbol.toStringTag]||P.constructor.name||"Object";return Z}}function ke(P){try{return Oe(P),!1}catch{return!0}}function Oe(P){return""+P}function ve(P){if(ke(P))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",de(P)),Oe(P)}var Ie=x.ReactCurrentOwner,Xe={key:!0,ref:!0,__self:!0,__source:!0},It,mt,Je;Je={};function bt(P){if(we.call(P,"ref")){var re=Object.getOwnPropertyDescriptor(P,"ref").get;if(re&&re.isReactWarning)return!1}return P.ref!==void 0}function At(P){if(we.call(P,"key")){var re=Object.getOwnPropertyDescriptor(P,"key").get;if(re&&re.isReactWarning)return!1}return P.key!==void 0}function it(P,re){if(typeof P.ref=="string"&&Ie.current&&re&&Ie.current.stateNode!==re){var Z=E(Ie.current.type);Je[Z]||(_('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',E(Ie.current.type),P.ref),Je[Z]=!0)}}function gt(P,re){{var Z=function(){It||(It=!0,_("%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)",re))};Z.isReactWarning=!0,Object.defineProperty(P,"key",{get:Z,configurable:!0})}}function yt(P,re){{var Z=function(){mt||(mt=!0,_("%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)",re))};Z.isReactWarning=!0,Object.defineProperty(P,"ref",{get:Z,configurable:!0})}}var Lt=function(P,re,Z,te,ge,Ce,pe){var be={$$typeof:t,type:P,key:re,ref:Z,props:pe,_owner:Ce};return be._store={},Object.defineProperty(be._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(be,"_self",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.defineProperty(be,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ge}),Object.freeze&&(Object.freeze(be.props),Object.freeze(be)),be};function $e(P,re,Z,te,ge){{var Ce,pe={},be=null,Ae=null;Z!==void 0&&(ve(Z),be=""+Z),At(re)&&(ve(re.key),be=""+re.key),bt(re)&&(Ae=re.ref,it(re,ge));for(Ce in re)we.call(re,Ce)&&!Xe.hasOwnProperty(Ce)&&(pe[Ce]=re[Ce]);if(P&&P.defaultProps){var Me=P.defaultProps;for(Ce in Me)pe[Ce]===void 0&&(pe[Ce]=Me[Ce])}if(be||Ae){var et=typeof P=="function"?P.displayName||P.name||"Unknown":P;be&>(pe,et),Ae&&yt(pe,et)}return Lt(P,be,Ae,ge,te,Ie.current,pe)}}var Pe=x.ReactCurrentOwner,ze=x.ReactDebugCurrentFrame;function nt(P){if(P){var re=P._owner,Z=ue(P.type,P._source,re?re.type:null);ze.setExtraStackFrame(Z)}else ze.setExtraStackFrame(null)}var vt;vt=!1;function kt(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function Xt(){{if(Pe.current){var P=E(Pe.current.type);if(P)return`
|
|
22
|
-
|
|
23
|
-
Check the render method of \``+P+"`."}return""}}function Dt(P){return""}var Bt={};function Ht(P){{var re=Xt();if(!re){var Z=typeof P=="string"?P:P.displayName||P.name;Z&&(re=`
|
|
24
|
-
|
|
25
|
-
Check the top-level render call using <`+Z+">.")}return re}}function Mt(P,re){{if(!P._store||P._store.validated||P.key!=null)return;P._store.validated=!0;var Z=Ht(re);if(Bt[Z])return;Bt[Z]=!0;var te="";P&&P._owner&&P._owner!==Pe.current&&(te=" It was passed a child from "+E(P._owner.type)+"."),nt(P),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Z,te),nt(null)}}function Wt(P,re){{if(typeof P!="object")return;if(Ye(P))for(var Z=0;Z<P.length;Z++){var te=P[Z];kt(te)&&Mt(te,re)}else if(kt(P))P._store&&(P._store.validated=!0);else if(P){var ge=b(P);if(typeof ge=="function"&&ge!==P.entries)for(var Ce=ge.call(P),pe;!(pe=Ce.next()).done;)kt(pe.value)&&Mt(pe.value,re)}}}function Jt(P){{var re=P.type;if(re==null||typeof re=="string")return;var Z;if(typeof re=="function")Z=re.propTypes;else if(typeof re=="object"&&(re.$$typeof===c||re.$$typeof===d))Z=re.propTypes;else return;if(Z){var te=E(re);Be(Z,P.props,"prop",te,P)}else if(re.PropTypes!==void 0&&!vt){vt=!0;var ge=E(re);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ge||"Unknown")}typeof re.getDefaultProps=="function"&&!re.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Vt(P){{for(var re=Object.keys(P.props),Z=0;Z<re.length;Z++){var te=re[Z];if(te!=="children"&&te!=="key"){nt(P),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",te),nt(null);break}}P.ref!==null&&(nt(P),_("Invalid attribute `ref` supplied to `React.Fragment`."),nt(null))}}var fe={};function ye(P,re,Z,te,ge,Ce){{var pe=k(P);if(!pe){var be="";(P===void 0||typeof P=="object"&&P!==null&&Object.keys(P).length===0)&&(be+=" 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 Ae=Dt();Ae?be+=Ae:be+=Xt();var Me;P===null?Me="null":Ye(P)?Me="array":P!==void 0&&P.$$typeof===t?(Me="<"+(E(P.type)||"Unknown")+" />",be=" Did you accidentally export a JSX literal instead of a component?"):Me=typeof P,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Me,be)}var et=$e(P,re,Z,ge,Ce);if(et==null)return et;if(pe){var Nt=re.children;if(Nt!==void 0)if(te)if(Ye(Nt)){for(var wt=0;wt<Nt.length;wt++)Wt(Nt[wt],P);Object.freeze&&Object.freeze(Nt)}else _("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 Wt(Nt,P)}if(we.call(re,"key")){var Ut=E(P),le=Object.keys(re).filter(function(dr){return dr!=="key"}),cn=le.length>0?"{key: someKey, "+le.join(": ..., ")+": ...}":"{key: someKey}";if(!fe[Ut+cn]){var Ft=le.length>0?"{"+le.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
-
let props = %s;
|
|
27
|
-
<%s {...props} />
|
|
28
|
-
React keys must be passed directly to JSX without using spread:
|
|
29
|
-
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,cn,Ut,Ft,Ut),fe[Ut+cn]=!0}}return P===r?Vt(et):Jt(et),et}}function Ee(P,re,Z){return ye(P,re,Z,!0)}function qe(P,re,Z){return ye(P,re,Z,!1)}var Ge=qe,ot=Ee;eo.Fragment=r,eo.jsx=Ge,eo.jsxs=ot}()),eo}process.env.NODE_ENV==="production"?ff.exports=zT():ff.exports=HT();var v=ff.exports,vy={exports:{}};/*!
|
|
31
|
-
Copyright (c) 2018 Jed Watson.
|
|
32
|
-
Licensed under the MIT License (MIT), see
|
|
33
|
-
http://jedwatson.github.io/classnames
|
|
34
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=i(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var s in a)t.call(a,s)&&a[s]&&(o=i(o,s));return o}function i(a,o){return o?a?a+" "+o:a+o:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(vy);var VT=vy.exports;const Q=Rt(VT);function sn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function zn(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function by(e,t){const n=sn(e);if(isNaN(t))return zn(e,NaN);if(!t)return n;const r=n.getDate(),i=zn(e,n.getTime());i.setMonth(n.getMonth()+t+1,0);const a=i.getDate();return r>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}function qT(e,t){const n=+sn(e);return zn(e,n+t)}const YT=365.2425,Ah=6048e5,GT=864e5,jh=6e4,kl=36e5,yy=3600,ZT=60,Ph=yy*24,KT=Ph*7,xy=Ph*YT,_y=xy/12,XT=_y*3;function wy(e,t){return qT(e,t*kl)}let QT={};function Sl(){return QT}function pa(e,t){var s,c,l,u;const n=Sl(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??0,i=sn(e),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Rc(e){return pa(e,{weekStartsOn:1})}function Cy(e){const t=sn(e),n=t.getFullYear(),r=zn(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Rc(r),a=zn(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const o=Rc(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function hf(e){const t=sn(e);return t.setHours(0,0,0,0),t}function pf(e){const t=sn(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 Ty(e,t){const n=hf(e),r=hf(t),i=+n-pf(n),a=+r-pf(r);return Math.round((i-a)/GT)}function JT(e){const t=Cy(e),n=zn(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Rc(n)}function ky(e,t){return by(e,t*12)}function ek(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function tk(e){if(!ek(e)&&typeof e!="number")return!1;const t=sn(e);return!isNaN(Number(t))}function nk(e){const t=sn(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function rk(e){const t=sn(e),n=zn(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const ik={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"}},ak=(e,t,n)=>{let r;const i=ik[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function pd(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const ok={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},sk={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ck={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},lk={date:pd({formats:ok,defaultWidth:"full"}),time:pd({formats:sk,defaultWidth:"full"}),dateTime:pd({formats:ck,defaultWidth:"full"})},uk={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},dk=(e,t,n,r)=>uk[e];function to(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const fk={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},hk={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},pk={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"]},mk={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"]},gk={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"}},vk={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"}},bk=(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"},yk={ordinalNumber:bk,era:to({values:fk,defaultWidth:"wide"}),quarter:to({values:hk,defaultWidth:"wide",argumentCallback:e=>e-1}),month:to({values:pk,defaultWidth:"wide"}),day:to({values:mk,defaultWidth:"wide"}),dayPeriod:to({values:gk,defaultWidth:"wide",formattingValues:vk,defaultFormattingWidth:"wide"})};function no(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?_k(s,d=>d.test(o)):xk(s,d=>d.test(o));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;const u=t.slice(o.length);return{value:l,rest:u}}}function xk(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function _k(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function wk(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(i.length);return{value:o,rest:s}}}const Ck=/^(\d+)(th|st|nd|rd)?/i,Tk=/\d+/i,kk={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]},Ok={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ek={any:[/1/i,/2/i,/3/i,/4/i]},Mk={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},$k={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]},Rk={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},Ak={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]},jk={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},Pk={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}},Ik={ordinalNumber:wk({matchPattern:Ck,parsePattern:Tk,valueCallback:e=>parseInt(e,10)}),era:no({matchPatterns:kk,defaultMatchWidth:"wide",parsePatterns:Sk,defaultParseWidth:"any"}),quarter:no({matchPatterns:Ok,defaultMatchWidth:"wide",parsePatterns:Ek,defaultParseWidth:"any",valueCallback:e=>e+1}),month:no({matchPatterns:Mk,defaultMatchWidth:"wide",parsePatterns:$k,defaultParseWidth:"any"}),day:no({matchPatterns:Rk,defaultMatchWidth:"wide",parsePatterns:Ak,defaultParseWidth:"any"}),dayPeriod:no({matchPatterns:jk,defaultMatchWidth:"any",parsePatterns:Pk,defaultParseWidth:"any"})},Dk={code:"en-US",formatDistance:ak,formatLong:lk,formatRelative:dk,localize:yk,match:Ik,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Nk(e){const t=sn(e);return Ty(t,rk(t))+1}function Fk(e){const t=sn(e),n=+Rc(t)-+JT(t);return Math.round(n/Ah)+1}function Sy(e,t){var u,d,f,h;const n=sn(e),r=n.getFullYear(),i=Sl(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((h=(f=i.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=zn(e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const s=pa(o,t),c=zn(e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const l=pa(c,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function Lk(e,t){var s,c,l,u;const n=Sl(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.firstWeekContainsDate)??1,i=Sy(e,t),a=zn(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),pa(a,t)}function Bk(e,t){const n=sn(e),r=+pa(n,t)-+Lk(n,t);return Math.round(r/Ah)+1}function dt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Er={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return dt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):dt(n+1,2)},d(e,t){return dt(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 dt(e.getHours()%12||12,t.length)},H(e,t){return dt(e.getHours(),t.length)},m(e,t){return dt(e.getMinutes(),t.length)},s(e,t){return dt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return dt(i,t.length)}},qi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},gg={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Er.y(e,t)},Y:function(e,t,n,r){const i=Sy(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return dt(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):dt(a,t.length)},R:function(e,t){const n=Cy(e);return dt(n,t.length)},u:function(e,t){const n=e.getFullYear();return dt(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 dt(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 dt(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 Er.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 dt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=Bk(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):dt(i,t.length)},I:function(e,t,n){const r=Fk(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):dt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Er.d(e,t)},D:function(e,t,n){const r=Nk(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):dt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return dt(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return dt(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return dt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=qi.noon:r===0?i=qi.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=qi.evening:r>=12?i=qi.afternoon:r>=4?i=qi.morning:i=qi.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Er.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Er.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):dt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):dt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Er.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Er.s(e,t)},S:function(e,t){return Er.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return bg(r);case"XXXX":case"XX":return si(r);case"XXXXX":case"XXX":default:return si(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return bg(r);case"xxxx":case"xx":return si(r);case"xxxxx":case"xxx":default:return si(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+vg(r,":");case"OOOO":default:return"GMT"+si(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+vg(r,":");case"zzzz":default:return"GMT"+si(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return dt(r,t.length)},T:function(e,t,n){const r=e.getTime();return dt(r,t.length)}};function vg(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+dt(a,2)}function bg(e,t){return e%60===0?(e>0?"-":"+")+dt(Math.abs(e)/60,2):si(e,t)}function si(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=dt(Math.trunc(r/60),2),a=dt(r%60,2);return n+i+t+a}const yg=(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"})}},Oy=(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"})}},Wk=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return yg(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",yg(r,t)).replace("{{time}}",Oy(i,t))},Uk={p:Oy,P:Wk},zk=/^D+$/,Hk=/^Y+$/,Vk=["D","DD","YY","YYYY"];function qk(e){return zk.test(e)}function Yk(e){return Hk.test(e)}function Gk(e,t,n){const r=Zk(e,t,n);if(console.warn(r),Vk.includes(e))throw new RangeError(r)}function Zk(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 Kk=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xk=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qk=/^'([^]*?)'?$/,Jk=/''/g,e4=/[a-zA-Z]/;function Ih(e,t,n){var u,d,f,h,g,p,b,x;const r=Sl(),i=(n==null?void 0:n.locale)??r.locale??Dk,a=(n==null?void 0:n.firstWeekContainsDate)??((d=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((p=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((x=(b=r.locale)==null?void 0:b.options)==null?void 0:x.weekStartsOn)??0,s=sn(e);if(!tk(s))throw new RangeError("Invalid time value");let c=t.match(Xk).map(_=>{const y=_[0];if(y==="p"||y==="P"){const C=Uk[y];return C(_,i.formatLong)}return _}).join("").match(Kk).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const y=_[0];if(y==="'")return{isToken:!1,value:t4(_)};if(gg[y])return{isToken:!0,value:_};if(y.match(e4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:_}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(_=>{if(!_.isToken)return _.value;const y=_.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Yk(y)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&qk(y))&&Gk(y,t,String(e));const C=gg[y[0]];return C(s,y,i.localize,l)}).join("")}function t4(e){const t=e.match(Qk);return t?t[1].replace(Jk,"'"):e}function n4(e){return+sn(e)<Date.now()}function Ol(e,t){const r=o4(e);let i;if(r.date){const c=s4(r.date,2);i=c4(c.restDateString,c.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const a=i.getTime();let o=0,s;if(r.time&&(o=l4(r.time),isNaN(o)))return new Date(NaN);if(r.timezone){if(s=u4(r.timezone),isNaN(s))return new Date(NaN)}else{const c=new Date(a+o),l=new Date(0);return l.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),l.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),l}return new Date(a+o+s)}const Ys={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},r4=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,i4=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,a4=/^([+-])(\d{2})(?::?(\d{2}))?$/;function o4(e){const t={},n=e.split(Ys.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Ys.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Ys.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Ys.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function s4(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 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 c4(e,t){if(t===null)return new Date(NaN);const n=e.match(r4);if(!n)return new Date(NaN);const r=!!n[4],i=ro(n[1]),a=ro(n[2])-1,o=ro(n[3]),s=ro(n[4]),c=ro(n[5])-1;if(r)return m4(t,s,c)?d4(t,s,c):new Date(NaN);{const l=new Date(0);return!h4(t,a,o)||!p4(t,i)?new Date(NaN):(l.setUTCFullYear(t,a,Math.max(i,o)),l)}}function ro(e){return e?parseInt(e):1}function l4(e){const t=e.match(i4);if(!t)return NaN;const n=md(t[1]),r=md(t[2]),i=md(t[3]);return g4(n,r,i)?n*kl+r*jh+i*1e3:NaN}function md(e){return e&&parseFloat(e.replace(",","."))||0}function u4(e){if(e==="Z")return 0;const t=e.match(a4);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return v4(r,i)?n*(r*kl+i*jh):NaN}function d4(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}const f4=[31,null,31,30,31,30,31,31,30,31,30,31];function Ey(e){return e%400===0||e%4===0&&e%100!==0}function h4(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(f4[t]||(Ey(e)?29:28))}function p4(e,t){return t>=1&&t<=(Ey(e)?366:365)}function m4(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function g4(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function v4(e,t){return t>=0&&t<=59}function Ac(){return Ac=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},Ac.apply(null,arguments)}function Dh(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}var b4=function(e,t,n,r,i,a,o,s){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,o,s],u=0;c=new Error(t.replace(/%s/g,function(){return l[u++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},y4=b4;const mf=Rt(y4);function xg(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function x4(e){var t=_4(e,"string");return typeof t=="symbol"?t:String(t)}function _4(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function My(e,t,n){var r=m.useRef(e!==void 0),i=m.useState(t),a=i[0],o=i[1],s=e!==void 0,c=r.current;return r.current=s,!s&&c&&a!==t&&o(t),[s?e:a,m.useCallback(function(l){for(var u=arguments.length,d=new Array(u>1?u-1:0),f=1;f<u;f++)d[f-1]=arguments[f];n&&n.apply(void 0,[l].concat(d)),o(l)},[n])]}function Nh(e,t){return Object.keys(t).reduce(function(n,r){var i,a=n,o=a[xg(r)],s=a[r],c=Dh(a,[xg(r),r].map(x4)),l=t[r],u=My(s,o,e[l]),d=u[0],f=u[1];return Ac({},c,(i={},i[r]=d,i[l]=f,i))},e)}function gf(e,t){return gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},gf(e,t)}function $y(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gf(e,t)}const w4=["xxl","xl","lg","md","sm","xs"],C4="xs",El=ie.createContext({prefixes:{},breakpoints:w4,minBreakpoint:C4});function He(e,t){const{prefixes:n}=m.useContext(El);return e||n[t]||t}function Ry(){const{breakpoints:e}=m.useContext(El);return e}function Ay(){const{minBreakpoint:e}=m.useContext(El);return e}function Ml(){const{dir:e}=m.useContext(El);return e==="rtl"}function Aa(e){return e&&e.ownerDocument||document}function T4(e){var t=Aa(e);return t&&t.defaultView||window}function k4(e,t){return T4(e).getComputedStyle(e,t)}var S4=/([A-Z])/g;function O4(e){return e.replace(S4,"-$1").toLowerCase()}var E4=/^ms-/;function Gs(e){return O4(e).replace(E4,"-ms-")}var M4=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function $4(e){return!!(e&&M4.test(e))}function Wr(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(Gs(t))||k4(e).getPropertyValue(Gs(t));Object.keys(t).forEach(function(i){var a=t[i];!a&&a!==0?e.style.removeProperty(Gs(i)):$4(i)?r+=i+"("+a+") ":n+=Gs(i)+": "+a+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var vf={exports:{}},Zs={exports:{}},st={};/** @license React v16.13.1
|
|
35
|
-
* react-is.production.min.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var _g;function R4(){if(_g)return st;_g=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,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function y(w){if(typeof w=="object"&&w!==null){var T=w.$$typeof;switch(T){case t:switch(w=w.type,w){case c:case l:case r:case a:case i:case d:return w;default:switch(w=w&&w.$$typeof,w){case s:case u:case g:case h:case o:return w;default:return T}}case n:return T}}}function C(w){return y(w)===l}return st.AsyncMode=c,st.ConcurrentMode=l,st.ContextConsumer=s,st.ContextProvider=o,st.Element=t,st.ForwardRef=u,st.Fragment=r,st.Lazy=g,st.Memo=h,st.Portal=n,st.Profiler=a,st.StrictMode=i,st.Suspense=d,st.isAsyncMode=function(w){return C(w)||y(w)===c},st.isConcurrentMode=C,st.isContextConsumer=function(w){return y(w)===s},st.isContextProvider=function(w){return y(w)===o},st.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},st.isForwardRef=function(w){return y(w)===u},st.isFragment=function(w){return y(w)===r},st.isLazy=function(w){return y(w)===g},st.isMemo=function(w){return y(w)===h},st.isPortal=function(w){return y(w)===n},st.isProfiler=function(w){return y(w)===a},st.isStrictMode=function(w){return y(w)===i},st.isSuspense=function(w){return y(w)===d},st.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===l||w===a||w===i||w===d||w===f||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===h||w.$$typeof===o||w.$$typeof===s||w.$$typeof===u||w.$$typeof===b||w.$$typeof===x||w.$$typeof===_||w.$$typeof===p)},st.typeOf=y,st}var ct={};/** @license React v16.13.1
|
|
42
|
-
* react-is.development.js
|
|
43
|
-
*
|
|
44
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
45
|
-
*
|
|
46
|
-
* This source code is licensed under the MIT license found in the
|
|
47
|
-
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var wg;function A4(){return wg||(wg=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,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function y(A){return typeof A=="string"||typeof A=="function"||A===r||A===l||A===a||A===i||A===d||A===f||typeof A=="object"&&A!==null&&(A.$$typeof===g||A.$$typeof===h||A.$$typeof===o||A.$$typeof===s||A.$$typeof===u||A.$$typeof===b||A.$$typeof===x||A.$$typeof===_||A.$$typeof===p)}function C(A){if(typeof A=="object"&&A!==null){var se=A.$$typeof;switch(se){case t:var ce=A.type;switch(ce){case c:case l:case r:case a:case i:case d:return ce;default:var ue=ce&&ce.$$typeof;switch(ue){case s:case u:case g:case h:case o:return ue;default:return se}}case n:return se}}}var w=c,T=l,$=s,R=o,S=t,k=u,O=r,D=g,E=h,M=n,j=a,F=i,W=d,B=!1;function U(A){return B||(B=!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.")),N(A)||C(A)===c}function N(A){return C(A)===l}function V(A){return C(A)===s}function X(A){return C(A)===o}function ne(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function K(A){return C(A)===u}function J(A){return C(A)===r}function q(A){return C(A)===g}function G(A){return C(A)===h}function z(A){return C(A)===n}function L(A){return C(A)===a}function H(A){return C(A)===i}function ee(A){return C(A)===d}ct.AsyncMode=w,ct.ConcurrentMode=T,ct.ContextConsumer=$,ct.ContextProvider=R,ct.Element=S,ct.ForwardRef=k,ct.Fragment=O,ct.Lazy=D,ct.Memo=E,ct.Portal=M,ct.Profiler=j,ct.StrictMode=F,ct.Suspense=W,ct.isAsyncMode=U,ct.isConcurrentMode=N,ct.isContextConsumer=V,ct.isContextProvider=X,ct.isElement=ne,ct.isForwardRef=K,ct.isFragment=J,ct.isLazy=q,ct.isMemo=G,ct.isPortal=z,ct.isProfiler=L,ct.isStrictMode=H,ct.isSuspense=ee,ct.isValidElementType=y,ct.typeOf=C}()),ct}var Cg;function Fh(){return Cg||(Cg=1,process.env.NODE_ENV==="production"?Zs.exports=R4():Zs.exports=A4()),Zs.exports}/*
|
|
49
|
-
object-assign
|
|
50
|
-
(c) Sindre Sorhus
|
|
51
|
-
@license MIT
|
|
52
|
-
*/var gd,Tg;function j4(){if(Tg)return gd;Tg=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(o).map(function(u){return o[u]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(u){l[u]=u}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return gd=i()?Object.assign:function(a,o){for(var s,c=r(a),l,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)t.call(s,d)&&(c[d]=s[d]);if(e){l=e(s);for(var f=0;f<l.length;f++)n.call(s,l[f])&&(c[l[f]]=s[l[f]])}}return c},gd}var vd,kg;function Lh(){if(kg)return vd;kg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return vd=e,vd}var bd,Sg;function jy(){return Sg||(Sg=1,bd=Function.call.bind(Object.prototype.hasOwnProperty)),bd}var yd,Og;function P4(){if(Og)return yd;Og=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Lh(),n={},r=jy();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,c,l){if(process.env.NODE_ENV!=="production"){for(var u in a)if(r(a,u)){var d;try{if(typeof a[u]!="function"){var f=Error((c||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=a[u](o,u,c,s,null,t)}catch(g){d=g}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var h=l?l():"";e("Failed "+s+" type: "+d.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},yd=i,yd}var xd,Eg;function I4(){if(Eg)return xd;Eg=1;var e=Fh(),t=j4(),n=Lh(),r=jy(),i=P4(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function o(){return null}return xd=function(s,c){var l=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(N){var V=N&&(l&&N[l]||N[u]);if(typeof V=="function")return V}var f="<<anonymous>>",h={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:_(),arrayOf:y,element:C(),elementType:w(),instanceOf:T,node:k(),objectOf:R,oneOf:$,oneOfType:S,shape:D,exact:E};function g(N,V){return N===V?N!==0||1/N===1/V:N!==N&&V!==V}function p(N,V){this.message=N,this.data=V&&typeof V=="object"?V:{},this.stack=""}p.prototype=Error.prototype;function b(N){if(process.env.NODE_ENV!=="production")var V={},X=0;function ne(J,q,G,z,L,H,ee){if(z=z||f,H=H||G,ee!==n){if(c){var A=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 A.name="Invariant Violation",A}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var se=z+":"+G;!V[se]&&X<3&&(a("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+z+"`. 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."),V[se]=!0,X++)}}return q[G]==null?J?q[G]===null?new p("The "+L+" `"+H+"` is marked as required "+("in `"+z+"`, but its value is `null`.")):new p("The "+L+" `"+H+"` is marked as required in "+("`"+z+"`, but its value is `undefined`.")):null:N(q,G,z,L,H)}var K=ne.bind(null,!1);return K.isRequired=ne.bind(null,!0),K}function x(N){function V(X,ne,K,J,q,G){var z=X[ne],L=F(z);if(L!==N){var H=W(z);return new p("Invalid "+J+" `"+q+"` of type "+("`"+H+"` supplied to `"+K+"`, expected ")+("`"+N+"`."),{expectedType:N})}return null}return b(V)}function _(){return b(o)}function y(N){function V(X,ne,K,J,q){if(typeof N!="function")return new p("Property `"+q+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var G=X[ne];if(!Array.isArray(G)){var z=F(G);return new p("Invalid "+J+" `"+q+"` of type "+("`"+z+"` supplied to `"+K+"`, expected an array."))}for(var L=0;L<G.length;L++){var H=N(G,L,K,J,q+"["+L+"]",n);if(H instanceof Error)return H}return null}return b(V)}function C(){function N(V,X,ne,K,J){var q=V[X];if(!s(q)){var G=F(q);return new p("Invalid "+K+" `"+J+"` of type "+("`"+G+"` supplied to `"+ne+"`, expected a single ReactElement."))}return null}return b(N)}function w(){function N(V,X,ne,K,J){var q=V[X];if(!e.isValidElementType(q)){var G=F(q);return new p("Invalid "+K+" `"+J+"` of type "+("`"+G+"` supplied to `"+ne+"`, expected a single ReactElement type."))}return null}return b(N)}function T(N){function V(X,ne,K,J,q){if(!(X[ne]instanceof N)){var G=N.name||f,z=U(X[ne]);return new p("Invalid "+J+" `"+q+"` of type "+("`"+z+"` supplied to `"+K+"`, expected ")+("instance of `"+G+"`."))}return null}return b(V)}function $(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function V(X,ne,K,J,q){for(var G=X[ne],z=0;z<N.length;z++)if(g(G,N[z]))return null;var L=JSON.stringify(N,function(ee,A){var se=W(A);return se==="symbol"?String(A):A});return new p("Invalid "+J+" `"+q+"` of value `"+String(G)+"` "+("supplied to `"+K+"`, expected one of "+L+"."))}return b(V)}function R(N){function V(X,ne,K,J,q){if(typeof N!="function")return new p("Property `"+q+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var G=X[ne],z=F(G);if(z!=="object")return new p("Invalid "+J+" `"+q+"` of type "+("`"+z+"` supplied to `"+K+"`, expected an object."));for(var L in G)if(r(G,L)){var H=N(G,L,K,J,q+"."+L,n);if(H instanceof Error)return H}return null}return b(V)}function S(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var V=0;V<N.length;V++){var X=N[V];if(typeof X!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(X)+" at index "+V+"."),o}function ne(K,J,q,G,z){for(var L=[],H=0;H<N.length;H++){var ee=N[H],A=ee(K,J,q,G,z,n);if(A==null)return null;A.data&&r(A.data,"expectedType")&&L.push(A.data.expectedType)}var se=L.length>0?", expected one of type ["+L.join(", ")+"]":"";return new p("Invalid "+G+" `"+z+"` supplied to "+("`"+q+"`"+se+"."))}return b(ne)}function k(){function N(V,X,ne,K,J){return M(V[X])?null:new p("Invalid "+K+" `"+J+"` supplied to "+("`"+ne+"`, expected a ReactNode."))}return b(N)}function O(N,V,X,ne,K){return new p((N||"React class")+": "+V+" type `"+X+"."+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function D(N){function V(X,ne,K,J,q){var G=X[ne],z=F(G);if(z!=="object")return new p("Invalid "+J+" `"+q+"` of type `"+z+"` "+("supplied to `"+K+"`, expected `object`."));for(var L in N){var H=N[L];if(typeof H!="function")return O(K,J,q,L,W(H));var ee=H(G,L,K,J,q+"."+L,n);if(ee)return ee}return null}return b(V)}function E(N){function V(X,ne,K,J,q){var G=X[ne],z=F(G);if(z!=="object")return new p("Invalid "+J+" `"+q+"` of type `"+z+"` "+("supplied to `"+K+"`, expected `object`."));var L=t({},X[ne],N);for(var H in L){var ee=N[H];if(r(N,H)&&typeof ee!="function")return O(K,J,q,H,W(ee));if(!ee)return new p("Invalid "+J+" `"+q+"` key `"+H+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(X[ne],null," ")+`
|
|
53
|
-
Valid keys: `+JSON.stringify(Object.keys(N),null," "));var A=ee(G,H,K,J,q+"."+H,n);if(A)return A}return null}return b(V)}function M(N){switch(typeof N){case"number":case"string":case"undefined":return!0;case"boolean":return!N;case"object":if(Array.isArray(N))return N.every(M);if(N===null||s(N))return!0;var V=d(N);if(V){var X=V.call(N),ne;if(V!==N.entries){for(;!(ne=X.next()).done;)if(!M(ne.value))return!1}else for(;!(ne=X.next()).done;){var K=ne.value;if(K&&!M(K[1]))return!1}}else return!1;return!0;default:return!1}}function j(N,V){return N==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function F(N){var V=typeof N;return Array.isArray(N)?"array":N instanceof RegExp?"object":j(V,N)?"symbol":V}function W(N){if(typeof N>"u"||N===null)return""+N;var V=F(N);if(V==="object"){if(N instanceof Date)return"date";if(N instanceof RegExp)return"regexp"}return V}function B(N){var V=W(N);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function U(N){return!N.constructor||!N.constructor.name?f:N.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},xd}var _d,Mg;function D4(){if(Mg)return _d;Mg=1;var e=Lh();function t(){}function n(){}return n.resetWarningCache=t,_d=function(){function r(o,s,c,l,u,d){if(d!==e){var f=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 f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},_d}if(process.env.NODE_ENV!=="production"){var N4=Fh(),F4=!0;vf.exports=I4()(N4.isElement,F4)}else vf.exports=D4()();var L4=vf.exports;const I=Rt(L4),$g={disabled:!1};var B4=process.env.NODE_ENV!=="production"?I.oneOfType([I.number,I.shape({enter:I.number,exit:I.number,appear:I.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&I.oneOfType([I.string,I.shape({enter:I.string,exit:I.string,active:I.string}),I.shape({enter:I.string,enterDone:I.string,enterActive:I.string,exit:I.string,exitDone:I.string,exitActive:I.string})]);const Py=m.createContext(null);var W4=function(t){return t.scrollTop},_o="unmounted",Pr="exited",mr="entering",Ir="entered",jc="exiting",Sr=function(e){$y(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var o=i,s=o&&!o.isMounting?r.enter:r.appear,c;return a.appearStatus=null,r.in?s?(c=Pr,a.appearStatus=mr):c=Ir:r.unmountOnExit||r.mountOnEnter?c=_o:c=Pr,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===_o?{status:Pr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==mr&&o!==Ir&&(a=mr):(o===mr||o===Ir)&&(a=jc)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,o,s;return a=o=s=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:s}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===mr){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Fr.findDOMNode(this);o&&W4(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pr&&this.setState({status:_o})},n.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[Fr.findDOMNode(this),s],l=c[0],u=c[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!i&&!o||$g.disabled){this.safeSetState({status:Ir},function(){a.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:mr},function(){a.props.onEntering(l,u),a.onTransitionEnd(f,function(){a.safeSetState({status:Ir},function(){a.props.onEntered(l,u)})})})},n.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:Fr.findDOMNode(this);if(!a||$g.disabled){this.safeSetState({status:Pr},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:jc},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Pr},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:Fr.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],l=c[0],u=c[1];this.props.addEndListener(l,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===_o)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=Dh(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(Py.Provider,{value:null},typeof o=="function"?o(i,s):m.cloneElement(m.Children.only(o),s))},t}(m.Component);Sr.contextType=Py;Sr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:I.shape({current:typeof Element>"u"?I.any:function(e,t,n,r,i,a){var o=e[t];return I.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,a)}}),children:I.oneOfType([I.func.isRequired,I.element.isRequired]).isRequired,in:I.bool,mountOnEnter:I.bool,unmountOnExit:I.bool,appear:I.bool,enter:I.bool,exit:I.bool,timeout:function(t){var n=B4;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return n.apply(void 0,[t].concat(i))},addEndListener:I.func,onEnter:I.func,onEntering:I.func,onEntered:I.func,onExit:I.func,onExiting:I.func,onExited:I.func}:{};function Yi(){}Sr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Yi,onEntering:Yi,onEntered:Yi,onExit:Yi,onExiting:Yi,onExited:Yi};Sr.UNMOUNTED=_o;Sr.EXITED=Pr;Sr.ENTERING=mr;Sr.ENTERED=Ir;Sr.EXITING=jc;const ja=!!(typeof window<"u"&&window.document&&window.document.createElement);var bf=!1,yf=!1;try{var wd={get passive(){return bf=!0},get once(){return yf=bf=!0}};ja&&(window.addEventListener("test",wd,wd),window.removeEventListener("test",wd,!0))}catch{}function Bh(e,t,n,r){if(r&&typeof r!="boolean"&&!yf){var i=r.once,a=r.capture,o=n;!yf&&i&&(o=n.__once||function s(c){this.removeEventListener(t,s,a),n.call(this,c)},n.__once=o),e.addEventListener(t,o,bf?r:a)}e.addEventListener(t,n,r)}function xf(e,t,n,r){var i=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}function vr(e,t,n,r){return Bh(e,t,n,r),function(){xf(e,t,n,r)}}function U4(e,t,n,r){if(r===void 0&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}function z4(e){var t=Wr(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function H4(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||U4(e,"transitionend",!0)},t+n),a=vr(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),a()}}function Iy(e,t,n,r){n==null&&(n=z4(e)||0);var i=H4(e,n,r),a=vr(e,"transitionend",t);return function(){i(),a()}}function Rg(e,t){const n=Wr(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function Dy(e,t){const n=Rg(e,"transitionDuration"),r=Rg(e,"transitionDelay"),i=Iy(e,a=>{a.target===e&&(i(),t(a))},n+r)}function Ny(e){e.offsetHeight}const Ag=e=>!e||typeof e=="function"?e:t=>{e.current=t};function V4(e,t){const n=Ag(e),r=Ag(t);return i=>{n&&n(i),r&&r(i)}}function Dn(e,t){return m.useMemo(()=>V4(e,t),[e,t])}function Pc(e){return e&&"setState"in e?Fr.findDOMNode(e):e??null}const Fy=m.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:a,addEndListener:o,children:s,childRef:c,...l},u)=>{const d=m.useRef(null),f=Dn(d,c),h=T=>{f(Pc(T))},g=T=>$=>{T&&d.current&&T(d.current,$)},p=m.useCallback(g(e),[e]),b=m.useCallback(g(t),[t]),x=m.useCallback(g(n),[n]),_=m.useCallback(g(r),[r]),y=m.useCallback(g(i),[i]),C=m.useCallback(g(a),[a]),w=m.useCallback(g(o),[o]);return v.jsx(Sr,{ref:u,...l,onEnter:p,onEntered:x,onEntering:b,onExit:_,onExited:C,onExiting:y,addEndListener:w,nodeRef:d,children:typeof s=="function"?(T,$)=>s(T,{...$,ref:h}):m.cloneElement(s,{ref:h})})});function q4(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e},[e]),t}function Et(e){const t=q4(e);return m.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const Wh=e=>ie.forwardRef((t,n)=>v.jsx("div",{...t,ref:n,className:Q(t.className,e)})),Ly=Wh("h4");Ly.displayName="DivStyledAsH4";const By=ie.forwardRef(({className:e,bsPrefix:t,as:n=Ly,...r},i)=>(t=He(t,"alert-heading"),v.jsx(n,{ref:i,className:Q(e,t),...r})));By.displayName="AlertHeading";function Ic(){return m.useState(null)}function Y4(e,t,n,r=!1){const i=Et(n);m.useEffect(()=>{const a=typeof e=="function"?e():e;return a.addEventListener(t,i,r),()=>a.removeEventListener(t,i,r)},[e])}function Uh(){const e=m.useRef(!0),t=m.useRef(()=>e.current);return m.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function Wy(e){const t=m.useRef(null);return m.useEffect(()=>{t.current=e}),t.current}const G4=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Z4=typeof document<"u",Po=Z4||G4?m.useLayoutEffect:m.useEffect,K4=["as","disabled"];function X4(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Q4(e){return!e||e.trim()==="#"}function zh({tagName:e,disabled:t,href:n,target:r,rel:i,role:a,onClick:o,tabIndex:s=0,type:c}){e||(n!=null||r!=null||i!=null?e="a":e="button");const l={tagName:e};if(e==="button")return[{type:c||"button",disabled:t},l];const u=f=>{if((t||e==="a"&&Q4(n))&&f.preventDefault(),t){f.stopPropagation();return}o==null||o(f)},d=f=>{f.key===" "&&(f.preventDefault(),u(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:a??"button",disabled:void 0,tabIndex:t?void 0:s,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:u,onKeyDown:d},l]}const Hh=ie.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=X4(e,K4);const[a,{tagName:o}]=zh(Object.assign({tagName:n,disabled:r},i));return v.jsx(o,Object.assign({},i,a,{ref:t}))});Hh.displayName="Button";const J4=["onKeyDown"];function e3(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function t3(e){return!e||e.trim()==="#"}const Vh=ie.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=e3(e,J4);const[i]=zh(Object.assign({tagName:"a"},r)),a=Et(o=>{i.onKeyDown(o),n==null||n(o)});return t3(r.href)||r.role==="button"?v.jsx("a",Object.assign({ref:t},r,i,{onKeyDown:a})):v.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});Vh.displayName="Anchor";const Uy=ie.forwardRef(({className:e,bsPrefix:t,as:n=Vh,...r},i)=>(t=He(t,"alert-link"),v.jsx(n,{ref:i,className:Q(e,t),...r})));Uy.displayName="AlertLink";function zy(e){return e.code==="Escape"||e.keyCode===27}function Hy(){const e=ie.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const n3={[mr]:"show",[Ir]:"show"},zr=ie.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},a)=>{const o={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},s=m.useCallback((u,d)=>{Ny(u),r==null||r(u,d)},[r]),{major:c}=Hy(),l=c>=19?t.props.ref:t.ref;return v.jsx(Fy,{ref:a,addEndListener:Dy,...o,onEnter:s,childRef:l,children:(u,d)=>ie.cloneElement(t,{...d,className:Q("fade",e,t.props.className,n3[u],n[u])})})});zr.displayName="Fade";const r3={"aria-label":I.string,onClick:I.func,variant:I.oneOf(["white"])},$l=ie.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>v.jsx("button",{ref:i,type:"button",className:Q("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));$l.displayName="CloseButton";$l.propTypes=r3;const Vy=ie.forwardRef((e,t)=>{const{bsPrefix:n,show:r=!0,closeLabel:i="Close alert",closeVariant:a,className:o,children:s,variant:c="primary",onClose:l,dismissible:u,transition:d=zr,...f}=Nh(e,{show:"onClose"}),h=He(n,"alert"),g=Et(x=>{l&&l(!1,x)}),p=d===!0?zr:d,b=v.jsxs("div",{role:"alert",...p?void 0:f,ref:t,className:Q(o,h,c&&`${h}-${c}`,u&&`${h}-dismissible`),children:[u&&v.jsx($l,{onClick:g,"aria-label":i,variant:a}),s]});return p?v.jsx(p,{unmountOnExit:!0,...f,ref:void 0,in:r,children:b}):r?b:null});Vy.displayName="Alert";const i3=Object.assign(Vy,{Link:Uy,Heading:By}),qh=ie.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:a=!1,className:o,...s},c)=>{const l=He(t,"btn"),[u,{tagName:d}]=zh({tagName:e,disabled:a,...s}),f=d;return v.jsx(f,{...u,...s,ref:c,disabled:a,className:Q(o,l,i&&"active",n&&`${l}-${n}`,r&&`${l}-${r}`,s.href&&a&&"disabled")})});qh.displayName="Button";function a3(e){const t=m.useRef(e);return t.current=e,t}function Yh(e){const t=a3(e);m.useEffect(()=>()=>t.current(),[])}const _f=2**31-1;function qy(e,t,n){const r=n-Date.now();e.current=r<=_f?setTimeout(t,r):setTimeout(()=>qy(e,t,n),_f)}function o3(){const e=Uh(),t=m.useRef();return Yh(()=>clearTimeout(t.current)),m.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(i,a=0){e()&&(n(),a<=_f?t.current=setTimeout(i,a):qy(t,i,Date.now()+a))}return{set:r,clear:n,handleRef:t}},[])}function s3(e,t){return ie.Children.toArray(e).some(n=>ie.isValidElement(n)&&n.type===t)}function Yy({as:e,bsPrefix:t,className:n,...r}){t=He(t,"col");const i=Ry(),a=Ay(),o=[],s=[];return i.forEach(c=>{const l=r[c];delete r[c];let u,d,f;typeof l=="object"&&l!=null?{span:u,offset:d,order:f}=l:u=l;const h=c!==a?`-${c}`:"";u&&o.push(u===!0?`${t}${h}`:`${t}${h}-${u}`),f!=null&&s.push(`order${h}-${f}`),d!=null&&s.push(`offset${h}-${d}`)}),[{...r,className:Q(n,...o,...s)},{as:e,bsPrefix:t,spans:o}]}const Gh=ie.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:a,spans:o}]=Yy(e);return v.jsx(i,{...r,ref:t,className:Q(n,!o.length&&a)})});Gh.displayName="Col";var c3=Function.prototype.bind.call(Function.prototype.call,[].slice);function gr(e,t){return c3(e.querySelectorAll(t))}function l3(e,t,n){const r=m.useRef(e!==void 0),[i,a]=m.useState(t),o=e!==void 0,s=r.current;return r.current=o,!o&&s&&i!==t&&a(t),[o?e:i,m.useCallback((...c)=>{const[l,...u]=c;let d=n==null?void 0:n(l,...u);return a(l),d},[n])]}function Gy(){const[,e]=m.useReducer(t=>!t,!1);return e}const Rl=ie.createContext(null);var jg=Object.prototype.hasOwnProperty;function Pg(e,t,n){for(n of e.keys())if(So(n,t))return n}function So(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&So(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i=="object"&&(i=Pg(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i=="object"&&(i=Pg(t,i),!i)||!So(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(jg.call(e,n)&&++r&&!jg.call(t,n)||!(n in t)||!So(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function u3(e){const t=Uh();return[e[0],m.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var yn="top",Pn="bottom",In="right",xn="left",Zh="auto",ws=[yn,Pn,In,xn],ma="start",Io="end",d3="clippingParents",Zy="viewport",io="popper",f3="reference",Ig=ws.reduce(function(e,t){return e.concat([t+"-"+ma,t+"-"+Io])},[]),Ky=[].concat(ws,[Zh]).reduce(function(e,t){return e.concat([t,t+"-"+ma,t+"-"+Io])},[]),h3="beforeRead",p3="read",m3="afterRead",g3="beforeMain",v3="main",b3="afterMain",y3="beforeWrite",x3="write",_3="afterWrite",w3=[h3,p3,m3,g3,v3,b3,y3,x3,_3];function Kn(e){return e.split("-")[0]}function On(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ki(e){var t=On(e).Element;return e instanceof t||e instanceof Element}function Xn(e){var t=On(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Kh(e){if(typeof ShadowRoot>"u")return!1;var t=On(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var bi=Math.max,Dc=Math.min,ga=Math.round;function wf(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Xy(){return!/^((?!chrome|android).)*safari/i.test(wf())}function va(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Xn(e)&&(i=e.offsetWidth>0&&ga(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ga(r.height)/e.offsetHeight||1);var o=ki(e)?On(e):window,s=o.visualViewport,c=!Xy()&&n,l=(r.left+(c&&s?s.offsetLeft:0))/i,u=(r.top+(c&&s?s.offsetTop:0))/a,d=r.width/i,f=r.height/a;return{width:d,height:f,top:u,right:l+d,bottom:u+f,left:l,x:l,y:u}}function Xh(e){var t=va(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Qy(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Kh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Hr(e){return e?(e.nodeName||"").toLowerCase():null}function _r(e){return On(e).getComputedStyle(e)}function C3(e){return["table","td","th"].indexOf(Hr(e))>=0}function ei(e){return((ki(e)?e.ownerDocument:e.document)||window.document).documentElement}function Al(e){return Hr(e)==="html"?e:e.assignedSlot||e.parentNode||(Kh(e)?e.host:null)||ei(e)}function Dg(e){return!Xn(e)||_r(e).position==="fixed"?null:e.offsetParent}function T3(e){var t=/firefox/i.test(wf()),n=/Trident/i.test(wf());if(n&&Xn(e)){var r=_r(e);if(r.position==="fixed")return null}var i=Al(e);for(Kh(i)&&(i=i.host);Xn(i)&&["html","body"].indexOf(Hr(i))<0;){var a=_r(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Cs(e){for(var t=On(e),n=Dg(e);n&&C3(n)&&_r(n).position==="static";)n=Dg(n);return n&&(Hr(n)==="html"||Hr(n)==="body"&&_r(n).position==="static")?t:n||T3(e)||t}function Qh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Oo(e,t,n){return bi(e,Dc(t,n))}function k3(e,t,n){var r=Oo(e,t,n);return r>n?n:r}function Jy(){return{top:0,right:0,bottom:0,left:0}}function e1(e){return Object.assign({},Jy(),e)}function t1(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var S3=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,e1(typeof t!="number"?t:t1(t,ws))};function O3(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Kn(n.placement),c=Qh(s),l=[xn,In].indexOf(s)>=0,u=l?"height":"width";if(!(!a||!o)){var d=S3(i.padding,n),f=Xh(a),h=c==="y"?yn:xn,g=c==="y"?Pn:In,p=n.rects.reference[u]+n.rects.reference[c]-o[c]-n.rects.popper[u],b=o[c]-n.rects.reference[c],x=Cs(a),_=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,y=p/2-b/2,C=d[h],w=_-f[u]-d[g],T=_/2-f[u]/2+y,$=Oo(C,T,w),R=c;n.modifiersData[r]=(t={},t[R]=$,t.centerOffset=$-T,t)}}function E3(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Qy(t.elements.popper,i)&&(t.elements.arrow=i))}const M3={name:"arrow",enabled:!0,phase:"main",fn:O3,effect:E3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ba(e){return e.split("-")[1]}var $3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function R3(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ga(n*i)/i||0,y:ga(r*i)/i||0}}function Ng(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,h=f===void 0?0:f,g=o.y,p=g===void 0?0:g,b=typeof u=="function"?u({x:h,y:p}):{x:h,y:p};h=b.x,p=b.y;var x=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),y=xn,C=yn,w=window;if(l){var T=Cs(n),$="clientHeight",R="clientWidth";if(T===On(n)&&(T=ei(n),_r(T).position!=="static"&&s==="absolute"&&($="scrollHeight",R="scrollWidth")),T=T,i===yn||(i===xn||i===In)&&a===Io){C=Pn;var S=d&&T===w&&w.visualViewport?w.visualViewport.height:T[$];p-=S-r.height,p*=c?1:-1}if(i===xn||(i===yn||i===Pn)&&a===Io){y=In;var k=d&&T===w&&w.visualViewport?w.visualViewport.width:T[R];h-=k-r.width,h*=c?1:-1}}var O=Object.assign({position:s},l&&$3),D=u===!0?R3({x:h,y:p},On(n)):{x:h,y:p};if(h=D.x,p=D.y,c){var E;return Object.assign({},O,(E={},E[C]=_?"0":"",E[y]=x?"0":"",E.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",E))}return Object.assign({},O,(t={},t[C]=_?p+"px":"",t[y]=x?h+"px":"",t.transform="",t))}function A3(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:Kn(t.placement),variation:ba(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ng(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ng(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const j3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:A3,data:{}};var Ks={passive:!0};function P3(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=On(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(u){u.addEventListener("scroll",n.update,Ks)}),s&&c.addEventListener("resize",n.update,Ks),function(){a&&l.forEach(function(u){u.removeEventListener("scroll",n.update,Ks)}),s&&c.removeEventListener("resize",n.update,Ks)}}const I3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:P3,data:{}};var D3={left:"right",right:"left",bottom:"top",top:"bottom"};function vc(e){return e.replace(/left|right|bottom|top/g,function(t){return D3[t]})}var N3={start:"end",end:"start"};function Fg(e){return e.replace(/start|end/g,function(t){return N3[t]})}function Jh(e){var t=On(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ep(e){return va(ei(e)).left+Jh(e).scrollLeft}function F3(e,t){var n=On(e),r=ei(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=Xy();(l||!l&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+ep(e),y:c}}function L3(e){var t,n=ei(e),r=Jh(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=bi(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=bi(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+ep(e),c=-r.scrollTop;return _r(i||n).direction==="rtl"&&(s+=bi(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:c}}function tp(e){var t=_r(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function n1(e){return["html","body","#document"].indexOf(Hr(e))>=0?e.ownerDocument.body:Xn(e)&&tp(e)?e:n1(Al(e))}function Eo(e,t){var n;t===void 0&&(t=[]);var r=n1(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=On(r),o=i?[a].concat(a.visualViewport||[],tp(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(Eo(Al(o)))}function Cf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function B3(e,t){var n=va(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Lg(e,t,n){return t===Zy?Cf(F3(e,n)):ki(t)?B3(t,n):Cf(L3(ei(e)))}function W3(e){var t=Eo(Al(e)),n=["absolute","fixed"].indexOf(_r(e).position)>=0,r=n&&Xn(e)?Cs(e):e;return ki(r)?t.filter(function(i){return ki(i)&&Qy(i,r)&&Hr(i)!=="body"}):[]}function U3(e,t,n,r){var i=t==="clippingParents"?W3(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(c,l){var u=Lg(e,l,r);return c.top=bi(u.top,c.top),c.right=Dc(u.right,c.right),c.bottom=Dc(u.bottom,c.bottom),c.left=bi(u.left,c.left),c},Lg(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function r1(e){var t=e.reference,n=e.element,r=e.placement,i=r?Kn(r):null,a=r?ba(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case yn:c={x:o,y:t.y-n.height};break;case Pn:c={x:o,y:t.y+t.height};break;case In:c={x:t.x+t.width,y:s};break;case xn:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?Qh(i):null;if(l!=null){var u=l==="y"?"height":"width";switch(a){case ma:c[l]=c[l]-(t[u]/2-n[u]/2);break;case Io:c[l]=c[l]+(t[u]/2-n[u]/2);break}}return c}function Do(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?d3:s,l=n.rootBoundary,u=l===void 0?Zy:l,d=n.elementContext,f=d===void 0?io:d,h=n.altBoundary,g=h===void 0?!1:h,p=n.padding,b=p===void 0?0:p,x=e1(typeof b!="number"?b:t1(b,ws)),_=f===io?f3:io,y=e.rects.popper,C=e.elements[g?_:f],w=U3(ki(C)?C:C.contextElement||ei(e.elements.popper),c,u,o),T=va(e.elements.reference),$=r1({reference:T,element:y,strategy:"absolute",placement:i}),R=Cf(Object.assign({},y,$)),S=f===io?R:T,k={top:w.top-S.top+x.top,bottom:S.bottom-w.bottom+x.bottom,left:w.left-S.left+x.left,right:S.right-w.right+x.right},O=e.modifiersData.offset;if(f===io&&O){var D=O[i];Object.keys(k).forEach(function(E){var M=[In,Pn].indexOf(E)>=0?1:-1,j=[yn,Pn].indexOf(E)>=0?"y":"x";k[E]+=D[j]*M})}return k}function z3(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?Ky:c,u=ba(r),d=u?s?Ig:Ig.filter(function(g){return ba(g)===u}):ws,f=d.filter(function(g){return l.indexOf(g)>=0});f.length===0&&(f=d);var h=f.reduce(function(g,p){return g[p]=Do(e,{placement:p,boundary:i,rootBoundary:a,padding:o})[Kn(p)],g},{});return Object.keys(h).sort(function(g,p){return h[g]-h[p]})}function H3(e){if(Kn(e)===Zh)return[];var t=vc(e);return[Fg(e),t,Fg(t)]}function V3(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,p=n.allowedAutoPlacements,b=t.options.placement,x=Kn(b),_=x===b,y=c||(_||!g?[vc(b)]:H3(b)),C=[b].concat(y).reduce(function(K,J){return K.concat(Kn(J)===Zh?z3(t,{placement:J,boundary:u,rootBoundary:d,padding:l,flipVariations:g,allowedAutoPlacements:p}):J)},[]),w=t.rects.reference,T=t.rects.popper,$=new Map,R=!0,S=C[0],k=0;k<C.length;k++){var O=C[k],D=Kn(O),E=ba(O)===ma,M=[yn,Pn].indexOf(D)>=0,j=M?"width":"height",F=Do(t,{placement:O,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),W=M?E?In:xn:E?Pn:yn;w[j]>T[j]&&(W=vc(W));var B=vc(W),U=[];if(a&&U.push(F[D]<=0),s&&U.push(F[W]<=0,F[B]<=0),U.every(function(K){return K})){S=O,R=!1;break}$.set(O,U)}if(R)for(var N=g?3:1,V=function(J){var q=C.find(function(G){var z=$.get(G);if(z)return z.slice(0,J).every(function(L){return L})});if(q)return S=q,"break"},X=N;X>0;X--){var ne=V(X);if(ne==="break")break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}}const q3={name:"flip",enabled:!0,phase:"main",fn:V3,requiresIfExists:["offset"],data:{_skip:!1}};function Bg(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Wg(e){return[yn,In,Pn,xn].some(function(t){return e[t]>=0})}function Y3(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Do(t,{elementContext:"reference"}),s=Do(t,{altBoundary:!0}),c=Bg(o,r),l=Bg(s,i,a),u=Wg(c),d=Wg(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const G3={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Y3};function Z3(e,t,n){var r=Kn(e),i=[xn,yn].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[xn,In].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function K3(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=Ky.reduce(function(u,d){return u[d]=Z3(d,t.rects,a),u},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}const X3={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:K3};function Q3(e){var t=e.state,n=e.name;t.modifiersData[n]=r1({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const J3={name:"popperOffsets",enabled:!0,phase:"read",fn:Q3,data:{}};function eS(e){return e==="x"?"y":"x"}function tS(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,g=n.tetherOffset,p=g===void 0?0:g,b=Do(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),x=Kn(t.placement),_=ba(t.placement),y=!_,C=Qh(x),w=eS(C),T=t.modifiersData.popperOffsets,$=t.rects.reference,R=t.rects.popper,S=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,k=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(T){if(a){var E,M=C==="y"?yn:xn,j=C==="y"?Pn:In,F=C==="y"?"height":"width",W=T[C],B=W+b[M],U=W-b[j],N=h?-R[F]/2:0,V=_===ma?$[F]:R[F],X=_===ma?-R[F]:-$[F],ne=t.elements.arrow,K=h&&ne?Xh(ne):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Jy(),q=J[M],G=J[j],z=Oo(0,$[F],K[F]),L=y?$[F]/2-N-z-q-k.mainAxis:V-z-q-k.mainAxis,H=y?-$[F]/2+N+z+G+k.mainAxis:X+z+G+k.mainAxis,ee=t.elements.arrow&&Cs(t.elements.arrow),A=ee?C==="y"?ee.clientTop||0:ee.clientLeft||0:0,se=(E=O==null?void 0:O[C])!=null?E:0,ce=W+L-se-A,ue=W+H-se,we=Oo(h?Dc(B,ce):B,W,h?bi(U,ue):U);T[C]=we,D[C]=we-W}if(s){var Te,at=C==="x"?yn:xn,tt=C==="x"?Pn:In,Be=T[w],Ke=w==="y"?"height":"width",Ye=Be+b[at],de=Be-b[tt],ke=[yn,xn].indexOf(x)!==-1,Oe=(Te=O==null?void 0:O[w])!=null?Te:0,ve=ke?Ye:Be-$[Ke]-R[Ke]-Oe+k.altAxis,Ie=ke?Be+$[Ke]+R[Ke]-Oe-k.altAxis:de,Xe=h&&ke?k3(ve,Be,Ie):Oo(h?ve:Ye,Be,h?Ie:de);T[w]=Xe,D[w]=Xe-Be}t.modifiersData[r]=D}}const nS={name:"preventOverflow",enabled:!0,phase:"main",fn:tS,requiresIfExists:["offset"]};function rS(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function iS(e){return e===On(e)||!Xn(e)?Jh(e):rS(e)}function aS(e){var t=e.getBoundingClientRect(),n=ga(t.width)/e.offsetWidth||1,r=ga(t.height)/e.offsetHeight||1;return n!==1||r!==1}function oS(e,t,n){n===void 0&&(n=!1);var r=Xn(t),i=Xn(t)&&aS(t),a=ei(t),o=va(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Hr(t)!=="body"||tp(a))&&(s=iS(t)),Xn(t)?(c=va(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=ep(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function sS(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var c=t.get(s);c&&i(c)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function cS(e){var t=sS(e);return w3.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function lS(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function uS(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ug={placement:"bottom",modifiers:[],strategy:"absolute"};function zg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function dS(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?Ug:i;return function(s,c,l){l===void 0&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ug,a),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},d=[],f=!1,h={state:u,setOptions:function(x){var _=typeof x=="function"?x(u.options):x;p(),u.options=Object.assign({},a,u.options,_),u.scrollParents={reference:ki(s)?Eo(s):s.contextElement?Eo(s.contextElement):[],popper:Eo(c)};var y=cS(uS([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(C){return C.enabled}),g(),h.update()},forceUpdate:function(){if(!f){var x=u.elements,_=x.reference,y=x.popper;if(zg(_,y)){u.rects={reference:oS(_,Cs(y),u.options.strategy==="fixed"),popper:Xh(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(k){return u.modifiersData[k.name]=Object.assign({},k.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var w=u.orderedModifiers[C],T=w.fn,$=w.options,R=$===void 0?{}:$,S=w.name;typeof T=="function"&&(u=T({state:u,options:R,name:S,instance:h})||u)}}}},update:lS(function(){return new Promise(function(b){h.forceUpdate(),b(u)})}),destroy:function(){p(),f=!0}};if(!zg(s,c))return h;h.setOptions(l).then(function(b){!f&&l.onFirstUpdate&&l.onFirstUpdate(b)});function g(){u.orderedModifiers.forEach(function(b){var x=b.name,_=b.options,y=_===void 0?{}:_,C=b.effect;if(typeof C=="function"){var w=C({state:u,name:x,instance:h,options:y}),T=function(){};d.push(w||T)}})}function p(){d.forEach(function(b){return b()}),d=[]}return h}}const fS=dS({defaultModifiers:[G3,J3,j3,I3,X3,q3,nS,M3]}),hS=["enabled","placement","strategy","modifiers"];function pS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const mS={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},gS={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(i=>i.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,i=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&i==="tooltip"&&"setAttribute"in r){const a=r.getAttribute("aria-describedby");if(a&&a.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",a?`${a},${n.id}`:n.id)}}},vS=[];function i1(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:a="absolute",modifiers:o=vS}=n,s=pS(n,hS);const c=m.useRef(o),l=m.useRef(),u=m.useCallback(()=>{var b;(b=l.current)==null||b.update()},[]),d=m.useCallback(()=>{var b;(b=l.current)==null||b.forceUpdate()},[]),[f,h]=u3(m.useState({placement:i,update:u,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=m.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:b})=>{const x={},_={};Object.keys(b.elements).forEach(y=>{x[y]=b.styles[y],_[y]=b.attributes[y]}),h({state:b,styles:x,attributes:_,update:u,forceUpdate:d,placement:b.placement})}}),[u,d,h]),p=m.useMemo(()=>(So(c.current,o)||(c.current=o),c.current),[o]);return m.useEffect(()=>{!l.current||!r||l.current.setOptions({placement:i,strategy:a,modifiers:[...p,g,mS]})},[a,i,g,r,p]),m.useEffect(()=>{if(!(!r||e==null||t==null))return l.current=fS(e,t,Object.assign({},s,{placement:i,strategy:a,modifiers:[...p,gS,g]})),()=>{l.current!=null&&(l.current.destroy(),l.current=void 0,h(b=>Object.assign({},b,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function No(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var bS=process.env.NODE_ENV!=="production",a1=function(){};if(bS){var yS=function(t,n){var r=arguments.length;n=new Array(r>1?r-1:0);for(var i=1;i<r;i++)n[i-1]=arguments[i];var a=0,o="Warning: "+t.replace(/%s/g,function(){return n[a++]});typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}};a1=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var i=2;i<r;i++)n[i-2]=arguments[i];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||yS.apply(null,[t].concat(n))}}var xS=a1;const Di=Rt(xS),Hg=()=>{};function _S(e){return e.button===0}function wS(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const bc=e=>e&&("current"in e?e.current:e),Vg={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function o1(e,t=Hg,{disabled:n,clickTrigger:r="click"}={}){const i=m.useRef(!1),a=m.useRef(!1),o=m.useCallback(l=>{const u=bc(e);Di(!!u,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!u||wS(l)||!_S(l)||!!No(u,l.target)||a.current,a.current=!1},[e]),s=Et(l=>{const u=bc(e);u&&No(u,l.target)&&(a.current=!0)}),c=Et(l=>{i.current||t(l)});m.useEffect(()=>{var l,u;if(n||e==null)return;const d=Aa(bc(e)),f=d.defaultView||window;let h=(l=f.event)!=null?l:(u=f.parent)==null?void 0:u.event,g=null;Vg[r]&&(g=vr(d,Vg[r],s,!0));const p=vr(d,r,o,!0),b=vr(d,r,_=>{if(_===h){h=void 0;return}c(_)});let x=[];return"ontouchstart"in d.documentElement&&(x=[].slice.call(d.body.children).map(_=>vr(_,"mousemove",Hg))),()=>{g==null||g(),p(),b(),x.forEach(_=>_())}},[e,n,r,o,s,c])}function CS(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function TS(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function s1({enabled:e,enableEvents:t,placement:n,flip:r,offset:i,fixed:a,containerPadding:o,arrowElement:s,popperConfig:c={}}){var l,u,d,f,h;const g=CS(c.modifiers);return Object.assign({},c,{placement:n,enabled:e,strategy:a?"fixed":c.strategy,modifiers:TS(Object.assign({},g,{eventListeners:{enabled:t,options:(l=g.eventListeners)==null?void 0:l.options},preventOverflow:Object.assign({},g.preventOverflow,{options:o?Object.assign({padding:o},(u=g.preventOverflow)==null?void 0:u.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:i},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!s,options:Object.assign({},(h=g.arrow)==null?void 0:h.options,{element:s})}),flip:Object.assign({enabled:!!r},g.flip)}))})}const kS=["children","usePopper"];function SS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const OS=()=>{};function c1(e={}){const t=m.useContext(Rl),[n,r]=Ic(),i=m.useRef(!1),{flip:a,offset:o,rootCloseEvent:s,fixed:c=!1,placement:l,popperConfig:u={},enableEventListeners:d=!0,usePopper:f=!!t}=e,h=(t==null?void 0:t.show)==null?!!e.show:t.show;h&&!i.current&&(i.current=!0);const g=T=>{t==null||t.toggle(!1,T)},{placement:p,setMenu:b,menuElement:x,toggleElement:_}=t||{},y=i1(_,x,s1({placement:l||p||"bottom-start",enabled:f,enableEvents:d??h,offset:o,flip:a,fixed:c,arrowElement:n,popperConfig:u})),C=Object.assign({ref:b||OS,"aria-labelledby":_==null?void 0:_.id},y.attributes.popper,{style:y.styles.popper}),w={show:h,placement:p,hasShown:i.current,toggle:t==null?void 0:t.toggle,popper:f?y:null,arrowProps:f?Object.assign({ref:r},y.attributes.arrow,{style:y.styles.arrow}):{}};return o1(x,g,{clickTrigger:s,disabled:!h}),[C,w]}function l1(e){let{children:t,usePopper:n=!0}=e,r=SS(e,kS);const[i,a]=c1(Object.assign({},r,{usePopper:n}));return v.jsx(v.Fragment,{children:t(i,a)})}l1.displayName="DropdownMenu";const Nc={prefix:String(Math.round(Math.random()*1e10)),current:0},u1=m.createContext(Nc),ES=m.createContext(!1);let MS=!!(typeof window<"u"&&window.document&&window.document.createElement),Cd=new WeakMap;function $S(e=!1){let t=m.useContext(u1),n=m.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let o=Cd.get(a);o==null?Cd.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,Cd.delete(a))}n.current=++t.current}return n.current}function RS(e){let t=m.useContext(u1);t===Nc&&!MS&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=$S(!!e),r=t===Nc&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function AS(e){let t=m.useId(),[n]=m.useState(NS()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Nc.prefix}`;return e||`${r}-${t}`}const jS=typeof m.useId=="function"?AS:RS;function PS(){return!1}function IS(){return!0}function DS(e){return()=>{}}function NS(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(DS,PS,IS):m.useContext(ES)}const d1=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},qg=()=>{};function f1(){const e=jS(),{show:t=!1,toggle:n=qg,setToggle:r,menuElement:i}=m.useContext(Rl)||{},a=m.useCallback(s=>{n(!t,s)},[t,n]),o={id:e,ref:r||qg,onClick:a,"aria-expanded":!!t};return i&&d1(i)&&(o["aria-haspopup"]=!0),[o,{show:t,toggle:n}]}function h1({children:e}){const[t,n]=f1();return v.jsx(v.Fragment,{children:e(t,n)})}h1.displayName="DropdownToggle";const ya=ie.createContext(null),Fo=(e,t=null)=>e!=null?String(e):t||null,jl=ie.createContext(null);jl.displayName="NavContext";const FS="data-rr-ui-",LS="rrUi";function Pa(e){return`${FS}${e}`}function BS(e){return`${LS}${e}`}const WS=["eventKey","disabled","onClick","active","as"];function US(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function p1({key:e,href:t,active:n,disabled:r,onClick:i}){const a=m.useContext(ya),o=m.useContext(jl),{activeKey:s}=o||{},c=Fo(e,t),l=n==null&&e!=null?Fo(s)===c:n;return[{onClick:Et(d=>{r||(i==null||i(d),a&&!d.isPropagationStopped()&&a(c,d))}),"aria-disabled":r||void 0,"aria-selected":l,[Pa("dropdown-item")]:""},{isActive:l}]}const m1=ie.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:a,as:o=Hh}=e,s=US(e,WS);const[c]=p1({key:n,href:s.href,disabled:r,onClick:i,active:a});return v.jsx(o,Object.assign({},s,{ref:t},c))});m1.displayName="DropdownItem";const g1=m.createContext(ja?window:void 0);g1.Provider;function Pl(){return m.useContext(g1)}function Yg(){const e=Gy(),t=m.useRef(null),n=m.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function Ts({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:i=`* [${Pa("dropdown-item")}]`,focusFirstItemOnShow:a,placement:o="bottom-start",children:s}){const c=Pl(),[l,u]=l3(t,e,r),[d,f]=Yg(),h=d.current,[g,p]=Yg(),b=g.current,x=Wy(l),_=m.useRef(null),y=m.useRef(!1),C=m.useContext(ya),w=m.useCallback((O,D,E=D==null?void 0:D.type)=>{u(O,{originalEvent:D,source:E})},[u]),T=Et((O,D)=>{n==null||n(O,D),w(!1,D,"select"),D.isPropagationStopped()||C==null||C(O,D)}),$=m.useMemo(()=>({toggle:w,placement:o,show:l,menuElement:h,toggleElement:b,setMenu:f,setToggle:p}),[w,o,l,h,b,f,p]);h&&x&&!l&&(y.current=h.contains(h.ownerDocument.activeElement));const R=Et(()=>{b&&b.focus&&b.focus()}),S=Et(()=>{const O=_.current;let D=a;if(D==null&&(D=d.current&&d1(d.current)?"keyboard":!1),D===!1||D==="keyboard"&&!/^key.+$/.test(O))return;const E=gr(d.current,i)[0];E&&E.focus&&E.focus()});m.useEffect(()=>{l?S():y.current&&(y.current=!1,R())},[l,y,R,S]),m.useEffect(()=>{_.current=null});const k=(O,D)=>{if(!d.current)return null;const E=gr(d.current,i);let M=E.indexOf(O)+D;return M=Math.max(0,Math.min(M,E.length)),E[M]};return Y4(m.useCallback(()=>c.document,[c]),"keydown",O=>{var D,E;const{key:M}=O,j=O.target,F=(D=d.current)==null?void 0:D.contains(j),W=(E=g.current)==null?void 0:E.contains(j);if(/input|textarea/i.test(j.tagName)&&(M===" "||M!=="Escape"&&F||M==="Escape"&&j.type==="search")||!F&&!W||M==="Tab"&&(!d.current||!l))return;_.current=O.type;const U={originalEvent:O,source:O.type};switch(M){case"ArrowUp":{const N=k(j,-1);N&&N.focus&&N.focus(),O.preventDefault();return}case"ArrowDown":if(O.preventDefault(),!l)u(!0,U);else{const N=k(j,1);N&&N.focus&&N.focus()}return;case"Tab":Bh(j.ownerDocument,"keyup",N=>{var V;(N.key==="Tab"&&!N.target||!((V=d.current)!=null&&V.contains(N.target)))&&u(!1,U)},{once:!0});break;case"Escape":M==="Escape"&&(O.preventDefault(),O.stopPropagation()),u(!1,U);break}}),v.jsx(ya.Provider,{value:T,children:v.jsx(Rl.Provider,{value:$,children:s})})}Ts.displayName="Dropdown";Ts.Menu=l1;Ts.Toggle=h1;Ts.Item=m1;const np=ie.createContext({});np.displayName="DropdownContext";const v1=ie.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...i},a)=>(t=He(t,"dropdown-divider"),v.jsx(n,{ref:a,className:Q(e,t),role:r,...i})));v1.displayName="DropdownDivider";const b1=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...i},a)=>(t=He(t,"dropdown-header"),v.jsx(n,{ref:a,className:Q(e,t),role:r,...i})));b1.displayName="DropdownHeader";const y1=ie.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:i,active:a,as:o=Vh,...s},c)=>{const l=He(e,"dropdown-item"),[u,d]=p1({key:n,href:s.href,disabled:r,onClick:i,active:a});return v.jsx(o,{...s,...u,ref:c,className:Q(t,l,d.isActive&&"active",r&&"disabled")})});y1.displayName="DropdownItem";const x1=ie.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=He(t,"dropdown-item-text"),v.jsx(n,{ref:i,className:Q(e,t),...r})));x1.displayName="DropdownItemText";const Il=ie.createContext(null);Il.displayName="InputGroupContext";const _1=ie.createContext(null);_1.displayName="NavbarContext";function w1(e,t){if(process.env.NODE_ENV==="production")return e;const n=m.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?mf(!1,`${t} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`):mf(!1))},[t]);return Dn(n,e)}function C1(e,t,n){const r=n?"top-end":"top-start",i=n?"top-start":"top-end",a=n?"bottom-end":"bottom-start",o=n?"bottom-start":"bottom-end",s=n?"right-start":"left-start",c=n?"right-end":"left-end",l=n?"left-start":"right-start",u=n?"left-end":"right-end";let d=e?o:a;return t==="up"?d=e?i:r:t==="end"?d=e?u:l:t==="start"?d=e?c:s:t==="down-centered"?d="bottom":t==="up-centered"&&(d="top"),d}const T1=ie.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:i=!0,show:a,renderOnMount:o,as:s="div",popperConfig:c,variant:l,...u},d)=>{let f=!1;const h=m.useContext(_1),g=He(e,"dropdown-menu"),{align:p,drop:b,isRTL:x}=m.useContext(np);n=n||p;const _=m.useContext(Il),y=[];if(n)if(typeof n=="object"){const O=Object.keys(n);if(process.env.NODE_ENV!=="production"&&Di(O.length===1,"There should only be 1 breakpoint when passing an object to `align`"),O.length){const D=O[0],E=n[D];f=E==="start",y.push(`${g}-${D}-${E}`)}}else n==="end"&&(f=!0);const C=C1(f,b,x),[w,{hasShown:T,popper:$,show:R,toggle:S}]=c1({flip:i,rootCloseEvent:r,show:a,usePopper:!h&&y.length===0,offset:[0,2],popperConfig:c,placement:C});if(w.ref=Dn(w1(d,"DropdownMenu"),w.ref),Po(()=>{R&&($==null||$.update())},[R]),!T&&!o&&!_)return null;typeof s!="string"&&(w.show=R,w.close=()=>S==null?void 0:S(!1),w.align=n);let k=u.style;return $!=null&&$.placement&&(k={...u.style,...w.style},u["x-placement"]=$.placement),v.jsx(s,{...u,...w,style:k,...(y.length||h)&&{"data-bs-popper":"static"},className:Q(t,g,R&&"show",f&&`${g}-end`,l&&`${g}-${l}`,...y)})});T1.displayName="DropdownMenu";const k1=ie.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:i=qh,...a},o)=>{const s=He(e,"dropdown-toggle"),c=m.useContext(Rl);r!==void 0&&(a.bsPrefix=r);const[l]=f1();return l.ref=Dn(l.ref,w1(o,"DropdownToggle")),v.jsx(i,{className:Q(n,s,t&&`${s}-split`,(c==null?void 0:c.show)&&"show"),...l,...a})});k1.displayName="DropdownToggle";const S1=ie.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:i,className:a,align:o="start",onSelect:s,onToggle:c,focusFirstItemOnShow:l,as:u="div",navbar:d,autoClose:f=!0,...h}=Nh(e,{show:"onToggle"}),g=m.useContext(Il),p=He(n,"dropdown"),b=Ml(),x=$=>f===!1?$==="click":f==="inside"?$!=="rootClose":f==="outside"?$!=="select":!0,_=Et(($,R)=>{var S;!((S=R.originalEvent)==null||(S=S.target)==null)&&S.classList.contains("dropdown-toggle")&&R.source==="mousedown"||(R.originalEvent.currentTarget===document&&(R.source!=="keydown"||R.originalEvent.key==="Escape")&&(R.source="rootClose"),x(R.source)&&(c==null||c($,R)))}),C=C1(o==="end",r,b),w=m.useMemo(()=>({align:o,drop:r,isRTL:b}),[o,r,b]),T={down:p,"down-centered":`${p}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return v.jsx(np.Provider,{value:w,children:v.jsx(Ts,{placement:C,show:i,onSelect:s,onToggle:_,focusFirstItemOnShow:l,itemSelector:`.${p}-item:not(.disabled):not(:disabled)`,children:g?h.children:v.jsx(u,{...h,ref:t,className:Q(a,i&&"show",T[r])})})})});S1.displayName="Dropdown";const Lo=Object.assign(S1,{Toggle:k1,Menu:T1,Item:y1,ItemText:x1,Divider:v1,Header:b1}),zS={type:I.string,tooltip:I.bool,as:I.elementType},Dl=ie.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},a)=>v.jsx(e,{...i,ref:a,className:Q(t,`${n}-${r?"tooltip":"feedback"}`)}));Dl.displayName="Feedback";Dl.propTypes=zS;const wr=ie.createContext({}),Nl=ie.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:a=!1,as:o="input",...s},c)=>{const{controlId:l}=m.useContext(wr);return t=He(t,"form-check-input"),v.jsx(o,{...s,ref:c,type:r,id:e||l,className:Q(n,t,i&&"is-valid",a&&"is-invalid")})});Nl.displayName="FormCheckInput";const Fc=ie.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:a}=m.useContext(wr);return e=He(e,"form-check-label"),v.jsx("label",{...r,ref:i,htmlFor:n||a,className:Q(t,e)})});Fc.displayName="FormCheckLabel";const O1=ie.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:i=!1,disabled:a=!1,isValid:o=!1,isInvalid:s=!1,feedbackTooltip:c=!1,feedback:l,feedbackType:u,className:d,style:f,title:h="",type:g="checkbox",label:p,children:b,as:x="input",..._},y)=>{t=He(t,"form-check"),n=He(n,"form-switch");const{controlId:C}=m.useContext(wr),w=m.useMemo(()=>({controlId:e||C}),[C,e]),T=!b&&p!=null&&p!==!1||s3(b,Fc),$=v.jsx(Nl,{..._,type:g==="switch"?"checkbox":g,ref:y,isValid:o,isInvalid:s,disabled:a,as:x});return v.jsx(wr.Provider,{value:w,children:v.jsx("div",{style:f,className:Q(d,T&&t,r&&`${t}-inline`,i&&`${t}-reverse`,g==="switch"&&n),children:b||v.jsxs(v.Fragment,{children:[$,T&&v.jsx(Fc,{title:h,children:p}),l&&v.jsx(Dl,{type:u,tooltip:c,children:l})]})})})});O1.displayName="FormCheck";const Lc=Object.assign(O1,{Input:Nl,Label:Fc}),E1=ie.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:i,className:a,isValid:o=!1,isInvalid:s=!1,plaintext:c,readOnly:l,as:u="input",...d},f)=>{const{controlId:h}=m.useContext(wr);return e=He(e,"form-control"),process.env.NODE_ENV!=="production"&&Di(h==null||!i,"`controlId` is ignored on `<FormControl>` when `id` is specified."),v.jsx(u,{...d,type:t,size:r,ref:f,readOnly:l,id:i||h,className:Q(a,c?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,o&&"is-valid",s&&"is-invalid")})});E1.displayName="FormControl";const M1=Object.assign(E1,{Feedback:Dl}),$1=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=He(t,"form-floating"),v.jsx(n,{ref:i,className:Q(e,t),...r})));$1.displayName="FormFloating";const rp=ie.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=m.useMemo(()=>({controlId:e}),[e]);return v.jsx(wr.Provider,{value:i,children:v.jsx(t,{...n,ref:r})})});rp.displayName="FormGroup";const R1=ie.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:a,...o},s)=>{const{controlId:c}=m.useContext(wr);t=He(t,"form-label");let l="col-form-label";typeof n=="string"&&(l=`${l} ${l}-${n}`);const u=Q(i,t,r&&"visually-hidden",n&&l);return process.env.NODE_ENV!=="production"&&Di(c==null||!a,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),a=a||c,n?v.jsx(Gh,{ref:s,as:"label",className:u,htmlFor:a,...o}):v.jsx(e,{ref:s,className:u,htmlFor:a,...o})});R1.displayName="FormLabel";const A1=ie.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:a}=m.useContext(wr);return e=He(e,"form-range"),v.jsx("input",{...r,type:"range",ref:i,className:Q(t,e),id:n||a})});A1.displayName="FormRange";const ip=ie.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:a=!1,id:o,...s},c)=>{const{controlId:l}=m.useContext(wr);return e=He(e,"form-select"),v.jsx("select",{...s,size:n,ref:c,className:Q(r,e,t&&`${e}-${t}`,i&&"is-valid",a&&"is-invalid"),id:o||l})});ip.displayName="FormSelect";const j1=ie.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},a)=>(e=He(e,"form-text"),v.jsx(n,{...i,ref:a,className:Q(t,e,r&&"text-muted")})));j1.displayName="FormText";const P1=ie.forwardRef((e,t)=>v.jsx(Lc,{...e,ref:t,type:"switch"}));P1.displayName="Switch";const HS=Object.assign(P1,{Input:Lc.Input,Label:Lc.Label}),ap=ie.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...a},o)=>(e=He(e,"form-floating"),v.jsxs(rp,{ref:o,className:Q(t,e),controlId:r,...a,children:[n,v.jsx("label",{htmlFor:r,children:i})]})));ap.displayName="FloatingLabel";const VS={_ref:I.any,validated:I.bool,as:I.elementType},op=ie.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>v.jsx(n,{...r,ref:i,className:Q(e,t&&"was-validated")}));op.displayName="Form";op.propTypes=VS;const sr=Object.assign(op,{Group:rp,Control:M1,Floating:$1,Check:Lc,Switch:HS,Label:R1,Text:j1,Range:A1,Select:ip,FloatingLabel:ap}),I1=ie.createContext(null),qS=["as","active","eventKey"];function YS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function D1({key:e,onClick:t,active:n,id:r,role:i,disabled:a}){const o=m.useContext(ya),s=m.useContext(jl),c=m.useContext(I1);let l=n;const u={role:i};if(s){!i&&s.role==="tablist"&&(u.role="tab");const d=s.getControllerId(e??null),f=s.getControlledId(e??null);u[Pa("event-key")]=e,u.id=d||r,l=n==null&&e!=null?s.activeKey===e:n,(l||!(c!=null&&c.unmountOnExit)&&!(c!=null&&c.mountOnEnter))&&(u["aria-controls"]=f)}return u.role==="tab"&&(u["aria-selected"]=l,l||(u.tabIndex=-1),a&&(u.tabIndex=-1,u["aria-disabled"]=!0)),u.onClick=Et(d=>{a||(t==null||t(d),e!=null&&o&&!d.isPropagationStopped()&&o(e,d))}),[u,{isActive:l}]}const N1=ie.forwardRef((e,t)=>{let{as:n=Hh,active:r,eventKey:i}=e,a=YS(e,qS);const[o,s]=D1(Object.assign({key:Fo(i,a.href),active:r},a));return o[Pa("active")]=s.isActive,v.jsx(n,Object.assign({},a,o,{ref:t}))});N1.displayName="NavItem";const GS=["as","onSelect","activeKey","role","onKeyDown"];function ZS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const Gg=()=>{},Zg=Pa("event-key"),F1=ie.forwardRef((e,t)=>{let{as:n="div",onSelect:r,activeKey:i,role:a,onKeyDown:o}=e,s=ZS(e,GS);const c=Gy(),l=m.useRef(!1),u=m.useContext(ya),d=m.useContext(I1);let f,h;d&&(a=a||"tablist",i=d.activeKey,f=d.getControlledId,h=d.getControllerId);const g=m.useRef(null),p=y=>{const C=g.current;if(!C)return null;const w=gr(C,`[${Zg}]:not([aria-disabled=true])`),T=C.querySelector("[aria-selected=true]");if(!T||T!==document.activeElement)return null;const $=w.indexOf(T);if($===-1)return null;let R=$+y;return R>=w.length&&(R=0),R<0&&(R=w.length-1),w[R]},b=(y,C)=>{y!=null&&(r==null||r(y,C),u==null||u(y,C))},x=y=>{if(o==null||o(y),!d)return;let C;switch(y.key){case"ArrowLeft":case"ArrowUp":C=p(-1);break;case"ArrowRight":case"ArrowDown":C=p(1);break;default:return}C&&(y.preventDefault(),b(C.dataset[BS("EventKey")]||null,y),l.current=!0,c())};m.useEffect(()=>{if(g.current&&l.current){const y=g.current.querySelector(`[${Zg}][aria-selected=true]`);y==null||y.focus()}l.current=!1});const _=Dn(t,g);return v.jsx(ya.Provider,{value:b,children:v.jsx(jl.Provider,{value:{role:a,activeKey:Fo(i),getControlledId:f||Gg,getControllerId:h||Gg},children:v.jsx(n,Object.assign({},s,{onKeyDown:x,ref:_,role:a}))})})});F1.displayName="Nav";const KS=Object.assign(F1,{Item:N1}),Fl=ie.forwardRef(({bsPrefix:e,active:t,disabled:n,eventKey:r,className:i,variant:a,action:o,as:s,...c},l)=>{e=He(e,"list-group-item");const[u,d]=D1({key:Fo(r,c.href),active:t,...c}),f=Et(g=>{if(n){g.preventDefault(),g.stopPropagation();return}u.onClick(g)});n&&c.tabIndex===void 0&&(c.tabIndex=-1,c["aria-disabled"]=!0);const h=s||(o?c.href?"a":"button":"div");return process.env.NODE_ENV!=="production"&&Di(s||!(!o&&c.href),"`action=false` and `href` should not be used together."),v.jsx(h,{ref:l,...c,...u,onClick:f,className:Q(i,e,d.isActive&&"active",n&&"disabled",a&&`${e}-${a}`,o&&`${e}-action`)})});Fl.displayName="ListGroupItem";const L1=ie.forwardRef((e,t)=>{const{className:n,bsPrefix:r,variant:i,horizontal:a,numbered:o,as:s="div",...c}=Nh(e,{activeKey:"onSelect"}),l=He(r,"list-group");let u;return a&&(u=a===!0?"horizontal":`horizontal-${a}`),process.env.NODE_ENV!=="production"&&Di(!(a&&i==="flush"),'`variant="flush"` and `horizontal` should not be used together.'),v.jsx(KS,{ref:t,...c,as:s,className:Q(n,l,i&&`${l}-${i}`,u&&`${l}-${u}`,o&&`${l}-numbered`)})});L1.displayName="ListGroup";const B1=Object.assign(L1,{Item:Fl});var Xs;function Kg(e){if((!Xs&&Xs!==0||e)&&ja){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Xs=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Xs}function Td(e){e===void 0&&(e=Aa());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function XS(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Xg=Pa("modal-open");class sp{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return XS(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(Wr(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(Xg,""),Wr(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Xg),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const kd=(e,t)=>ja?e==null?(t||Aa()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Tf(e,t){const n=Pl(),[r,i]=m.useState(()=>kd(e,n==null?void 0:n.document));if(!r){const a=kd(e);a&&i(a)}return m.useEffect(()=>{},[t,r]),m.useEffect(()=>{const a=kd(e);a!==r&&i(a)},[e,r]),r}function QS({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const a=m.useRef(null),o=m.useRef(t),s=Et(n);m.useEffect(()=>{t?o.current=!0:s(a.current)},[t,s]);const c=Dn(a,e.ref),l=m.cloneElement(e,{ref:c});return t?l:i||!o.current&&r?null:l}const JS=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function eO(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function tO(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:a,onExited:o,addEndListener:s,children:c}=e,l=eO(e,JS);const{major:u}=Hy(),d=u>=19?c.props.ref:c.ref,f=m.useRef(null),h=Dn(f,typeof c=="function"?null:d),g=T=>$=>{T&&f.current&&T(f.current,$)},p=m.useCallback(g(t),[t]),b=m.useCallback(g(n),[n]),x=m.useCallback(g(r),[r]),_=m.useCallback(g(i),[i]),y=m.useCallback(g(a),[a]),C=m.useCallback(g(o),[o]),w=m.useCallback(g(s),[s]);return Object.assign({},l,{nodeRef:f},t&&{onEnter:p},n&&{onEntering:b},r&&{onEntered:x},i&&{onExit:_},a&&{onExiting:y},o&&{onExited:C},s&&{addEndListener:w},{children:typeof c=="function"?(T,$)=>c(T,Object.assign({},$,{ref:h})):m.cloneElement(c,{ref:h})})}const nO=["component"];function rO(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const iO=ie.forwardRef((e,t)=>{let{component:n}=e,r=rO(e,nO);const i=tO(r);return v.jsx(n,Object.assign({ref:t},i))});function aO({in:e,onTransition:t}){const n=m.useRef(null),r=m.useRef(!0),i=Et(t);return Po(()=>{if(!n.current)return;let a=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>a}),()=>{a=!0}},[e,i]),Po(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function oO({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[a,o]=m.useState(!t);t&&a&&o(!1);const s=aO({in:!!t,onTransition:l=>{const u=()=>{l.isStale()||(l.in?r==null||r(l.element,l.initial):(o(!0),n==null||n(l.element)))};Promise.resolve(i(l)).then(u,d=>{throw l.in||o(!0),d})}}),c=Dn(s,e.ref);return a&&!t?null:m.cloneElement(e,{ref:c})}function kf(e,t,n){return e?v.jsx(iO,Object.assign({},n,{component:e})):t?v.jsx(oO,Object.assign({},n,{transition:t})):v.jsx(QS,Object.assign({},n))}const sO=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function cO(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}let Sd;function lO(e){return Sd||(Sd=new sp({ownerDocument:e==null?void 0:e.document})),Sd}function uO(e){const t=Pl(),n=e||lO(t),r=m.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:m.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:m.useCallback(i=>{r.current.backdrop=i},[])})}const W1=m.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:a,children:o,backdrop:s=!0,keyboard:c=!0,onBackdropClick:l,onEscapeKeyDown:u,transition:d,runTransition:f,backdropTransition:h,runBackdropTransition:g,autoFocus:p=!0,enforceFocus:b=!0,restoreFocus:x=!0,restoreFocusOptions:_,renderDialog:y,renderBackdrop:C=ue=>v.jsx("div",Object.assign({},ue)),manager:w,container:T,onShow:$,onHide:R=()=>{},onExit:S,onExited:k,onExiting:O,onEnter:D,onEntering:E,onEntered:M}=e,j=cO(e,sO);const F=Pl(),W=Tf(T),B=uO(w),U=Uh(),N=Wy(n),[V,X]=m.useState(!n),ne=m.useRef(null);m.useImperativeHandle(t,()=>B,[B]),ja&&!N&&n&&(ne.current=Td(F==null?void 0:F.document)),n&&V&&X(!1);const K=Et(()=>{if(B.add(),H.current=vr(document,"keydown",z),L.current=vr(document,"focus",()=>setTimeout(q),!0),$&&$(),p){var ue,we;const Te=Td((ue=(we=B.dialog)==null?void 0:we.ownerDocument)!=null?ue:F==null?void 0:F.document);B.dialog&&Te&&!No(B.dialog,Te)&&(ne.current=Te,B.dialog.focus())}}),J=Et(()=>{if(B.remove(),H.current==null||H.current(),L.current==null||L.current(),x){var ue;(ue=ne.current)==null||ue.focus==null||ue.focus(_),ne.current=null}});m.useEffect(()=>{!n||!W||K()},[n,W,K]),m.useEffect(()=>{V&&J()},[V,J]),Yh(()=>{J()});const q=Et(()=>{if(!b||!U()||!B.isTopModal())return;const ue=Td(F==null?void 0:F.document);B.dialog&&ue&&!No(B.dialog,ue)&&B.dialog.focus()}),G=Et(ue=>{ue.target===ue.currentTarget&&(l==null||l(ue),s===!0&&R())}),z=Et(ue=>{c&&zy(ue)&&B.isTopModal()&&(u==null||u(ue),ue.defaultPrevented||R())}),L=m.useRef(),H=m.useRef(),ee=(...ue)=>{X(!0),k==null||k(...ue)};if(!W)return null;const A=Object.assign({role:r,ref:B.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},j,{style:a,className:i,tabIndex:-1});let se=y?y(A):v.jsx("div",Object.assign({},A,{children:ie.cloneElement(o,{role:"document"})}));se=kf(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:S,onExiting:O,onExited:ee,onEnter:D,onEntering:E,onEntered:M,children:se});let ce=null;return s&&(ce=C({ref:B.setBackdropRef,onClick:G}),ce=kf(h,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ce})),v.jsx(v.Fragment,{children:Fr.createPortal(v.jsxs(v.Fragment,{children:[ce,se]}),W)})});W1.displayName="Modal";const U1=Object.assign(W1,{Manager:sp});function Sf(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function dO(e,t){e.classList?e.classList.add(t):Sf(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Qg(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function fO(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Qg(e.className,t):e.setAttribute("class",Qg(e.className&&e.className.baseVal||"",t))}const Gi={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class z1 extends sp{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,Wr(n,{[t]:`${parseFloat(Wr(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],Wr(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(dO(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";gr(n,Gi.FIXED_CONTENT).forEach(a=>this.adjustAndStore(r,a,t.scrollBarWidth)),gr(n,Gi.STICKY_CONTENT).forEach(a=>this.adjustAndStore(i,a,-t.scrollBarWidth)),gr(n,Gi.NAVBAR_TOGGLER).forEach(a=>this.adjustAndStore(i,a,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();fO(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";gr(n,Gi.FIXED_CONTENT).forEach(a=>this.restore(r,a)),gr(n,Gi.STICKY_CONTENT).forEach(a=>this.restore(i,a)),gr(n,Gi.NAVBAR_TOGGLER).forEach(a=>this.restore(i,a))}}let Od;function H1(e){return Od||(Od=new z1(e)),Od}const V1=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=He(t,"modal-body"),v.jsx(n,{ref:i,className:Q(e,t),...r})));V1.displayName="ModalBody";const cp=ie.createContext({onHide(){}}),lp=ie.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:a,children:o,scrollable:s,...c},l)=>{e=He(e,"modal");const u=`${e}-dialog`,d=typeof a=="string"?`${e}-fullscreen-${a}`:`${e}-fullscreen`;return v.jsx("div",{...c,ref:l,className:Q(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,a&&d),children:v.jsx("div",{className:Q(`${e}-content`,n),children:o})})});lp.displayName="ModalDialog";const q1=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=He(t,"modal-footer"),v.jsx(n,{ref:i,className:Q(e,t),...r})));q1.displayName="ModalFooter";const Y1=ie.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...a},o)=>{const s=m.useContext(cp),c=Et(()=>{s==null||s.onHide(),r==null||r()});return v.jsxs("div",{ref:o,...a,children:[i,n&&v.jsx($l,{"aria-label":e,variant:t,onClick:c})]})}),G1=ie.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},a)=>(e=He(e,"modal-header"),v.jsx(Y1,{ref:a,...i,className:Q(t,e),closeLabel:n,closeButton:r})));G1.displayName="ModalHeader";const hO=Wh("h4"),Z1=ie.forwardRef(({className:e,bsPrefix:t,as:n=hO,...r},i)=>(t=He(t,"modal-title"),v.jsx(n,{ref:i,className:Q(e,t),...r})));Z1.displayName="ModalTitle";function pO(e){return v.jsx(zr,{...e,timeout:null})}function mO(e){return v.jsx(zr,{...e,timeout:null})}const K1=ie.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:a,dialogAs:o=lp,"data-bs-theme":s,"aria-labelledby":c,"aria-describedby":l,"aria-label":u,show:d=!1,animation:f=!0,backdrop:h=!0,keyboard:g=!0,onEscapeKeyDown:p,onShow:b,onHide:x,container:_,autoFocus:y=!0,enforceFocus:C=!0,restoreFocus:w=!0,restoreFocusOptions:T,onEntered:$,onExit:R,onExiting:S,onEnter:k,onEntering:O,onExited:D,backdropClassName:E,manager:M,...j},F)=>{const[W,B]=m.useState({}),[U,N]=m.useState(!1),V=m.useRef(!1),X=m.useRef(!1),ne=m.useRef(null),[K,J]=Ic(),q=Dn(F,J),G=Et(x),z=Ml();e=He(e,"modal");const L=m.useMemo(()=>({onHide:G}),[G]);function H(){return M||H1({isRTL:z})}function ee(ve){if(!ja)return;const Ie=H().getScrollbarWidth()>0,Xe=ve.scrollHeight>Aa(ve).documentElement.clientHeight;B({paddingRight:Ie&&!Xe?Kg():void 0,paddingLeft:!Ie&&Xe?Kg():void 0})}const A=Et(()=>{K&&ee(K.dialog)});Yh(()=>{xf(window,"resize",A),ne.current==null||ne.current()});const se=()=>{V.current=!0},ce=ve=>{V.current&&K&&ve.target===K.dialog&&(X.current=!0),V.current=!1},ue=()=>{N(!0),ne.current=Iy(K.dialog,()=>{N(!1)})},we=ve=>{ve.target===ve.currentTarget&&ue()},Te=ve=>{if(h==="static"){we(ve);return}if(X.current||ve.target!==ve.currentTarget){X.current=!1;return}x==null||x()},at=ve=>{g?p==null||p(ve):(ve.preventDefault(),h==="static"&&ue())},tt=(ve,Ie)=>{ve&&ee(ve),k==null||k(ve,Ie)},Be=ve=>{ne.current==null||ne.current(),R==null||R(ve)},Ke=(ve,Ie)=>{O==null||O(ve,Ie),Bh(window,"resize",A)},Ye=ve=>{ve&&(ve.style.display=""),D==null||D(ve),xf(window,"resize",A)},de=m.useCallback(ve=>v.jsx("div",{...ve,className:Q(`${e}-backdrop`,E,!f&&"show")}),[f,E,e]),ke={...n,...W};ke.display="block";const Oe=ve=>v.jsx("div",{role:"dialog",...ve,style:ke,className:Q(t,e,U&&`${e}-static`,!f&&"show"),onClick:h?Te:void 0,onMouseUp:ce,"data-bs-theme":s,"aria-label":u,"aria-labelledby":c,"aria-describedby":l,children:v.jsx(o,{...j,onMouseDown:se,className:r,contentClassName:i,children:a})});return v.jsx(cp.Provider,{value:L,children:v.jsx(U1,{show:d,ref:q,backdrop:h,container:_,keyboard:!0,autoFocus:y,enforceFocus:C,restoreFocus:w,restoreFocusOptions:T,onEscapeKeyDown:at,onShow:b,onHide:x,onEnter:tt,onEntering:Ke,onEntered:$,onExit:Be,onExiting:S,onExited:Ye,manager:H(),transition:f?pO:void 0,backdropTransition:f?mO:void 0,renderBackdrop:de,renderDialog:Oe})})});K1.displayName="Modal";const bn=Object.assign(K1,{Body:V1,Header:G1,Title:Z1,Footer:q1,Dialog:lp,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),gO=()=>{};function vO(e,t,{disabled:n,clickTrigger:r}={}){const i=t||gO;o1(e,i,{disabled:n,clickTrigger:r});const a=Et(o=>{zy(o)&&i(o)});m.useEffect(()=>{if(n||e==null)return;const o=Aa(bc(e));let s=(o.defaultView||window).event;const c=vr(o,"keyup",l=>{if(l===s){s=void 0;return}a(l)});return()=>{c()}},[e,n,a])}const X1=ie.forwardRef((e,t)=>{const{flip:n,offset:r,placement:i,containerPadding:a,popperConfig:o={},transition:s,runTransition:c}=e,[l,u]=Ic(),[d,f]=Ic(),h=Dn(u,t),g=Tf(e.container),p=Tf(e.target),[b,x]=m.useState(!e.show),_=i1(p,l,s1({placement:i,enableEvents:!!e.show,containerPadding:a||5,flip:n,offset:r,arrowElement:d,popperConfig:o}));e.show&&b&&x(!1);const y=(...O)=>{x(!0),e.onExited&&e.onExited(...O)},C=e.show||!b;if(vO(l,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!C)return null;const{onExit:w,onExiting:T,onEnter:$,onEntering:R,onEntered:S}=e;let k=e.children(Object.assign({},_.attributes.popper,{style:_.styles.popper,ref:h}),{popper:_,placement:i,show:!!e.show,arrowProps:Object.assign({},_.attributes.arrow,{style:_.styles.arrow,ref:f})});return k=kf(s,c,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:k,onExit:w,onExiting:T,onExited:y,onEnter:$,onEntering:R,onEntered:S}),g?Fr.createPortal(k,g):null});X1.displayName="Overlay";const Q1=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=He(t,"popover-header"),v.jsx(n,{ref:i,className:Q(e,t),...r})));Q1.displayName="PopoverHeader";const up=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=He(t,"popover-body"),v.jsx(n,{ref:i,className:Q(e,t),...r})));up.displayName="PopoverBody";function J1(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function ex(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const bO=ie.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,body:a,arrowProps:o,hasDoneInitialMeasure:s,popper:c,show:l,...u},d)=>{const f=He(e,"popover"),h=Ml(),[g]=(t==null?void 0:t.split("-"))||[],p=J1(g,h);let b=r;return l&&!s&&(b={...r,...ex(c==null?void 0:c.strategy)}),v.jsxs("div",{ref:d,role:"tooltip",style:b,"x-placement":g,className:Q(n,f,g&&`bs-popover-${p}`),...u,children:[v.jsx("div",{className:"popover-arrow",...o}),a?v.jsx(up,{children:i}):i]})}),yc=Object.assign(bO,{Header:Q1,Body:up,POPPER_OFFSET:[0,8]}),tx=ie.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,arrowProps:a,hasDoneInitialMeasure:o,popper:s,show:c,...l},u)=>{e=He(e,"tooltip");const d=Ml(),[f]=(t==null?void 0:t.split("-"))||[],h=J1(f,d);let g=r;return c&&!o&&(g={...r,...ex(s==null?void 0:s.strategy)}),v.jsxs("div",{ref:u,style:g,role:"tooltip","x-placement":f,className:Q(n,e,`bs-tooltip-${h}`),...l,children:[v.jsx("div",{className:"tooltip-arrow",...a}),v.jsx("div",{className:`${e}-inner`,children:i})]})});tx.displayName="Tooltip";const nx=Object.assign(tx,{TOOLTIP_OFFSET:[0,6]});function yO(e){const t=m.useRef(null),n=He(void 0,"popover"),r=He(void 0,"tooltip"),i=m.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Sf(t.current,n))return yc.POPPER_OFFSET;if(Sf(t.current,r))return nx.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[i]]}function xO(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=i=>n(Pc(i))),t.ref=r.__wrapped||(r.__wrapped=i=>r(Pc(i)))}const rx=ie.forwardRef(({children:e,transition:t=zr,popperConfig:n={},rootClose:r=!1,placement:i="top",show:a=!1,...o},s)=>{const c=m.useRef({}),[l,u]=m.useState(null),[d,f]=yO(o.offset),h=Dn(s,d),g=t===!0?zr:t||void 0,p=Et(b=>{u(b),n==null||n.onFirstUpdate==null||n.onFirstUpdate(b)});return Po(()=>{l&&o.target&&(c.current.scheduleUpdate==null||c.current.scheduleUpdate())},[l,o.target]),m.useEffect(()=>{a||u(null)},[a]),v.jsx(X1,{...o,ref:h,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:p},transition:g,rootClose:r,placement:i,show:a,children:(b,{arrowProps:x,popper:_,show:y})=>{var C;xO(b,x);const w=_==null?void 0:_.placement,T=Object.assign(c.current,{state:_==null?void 0:_.state,scheduleUpdate:_==null?void 0:_.update,placement:w,outOfBoundaries:(_==null||(C=_.state)==null||(C=C.modifiersData.hide)==null?void 0:C.isReferenceHidden)||!1,strategy:n.strategy}),$=!!l;return typeof e=="function"?e({...b,placement:w,show:y,...!t&&y&&{className:"show"},popper:T,arrowProps:x,hasDoneInitialMeasure:$}):ie.cloneElement(e,{...b,placement:w,arrowProps:x,popper:T,hasDoneInitialMeasure:$,className:Q(e.props.className,!t&&y&&"show"),style:{...e.props.style,...b.style}})}})});rx.displayName="Overlay";function _O(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Jg(e,t,n){const[r]=t,i=r.currentTarget,a=r.relatedTarget||r.nativeEvent[n];(!a||a!==i)&&!No(i,a)&&e(...t)}I.oneOf(["click","hover","focus"]);const ix=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:i,defaultShow:a=!1,onToggle:o,delay:s,placement:c,flip:l=c&&c.indexOf("auto")!==-1,...u})=>{const d=m.useRef(null),f=Dn(d,n.ref),h=o3(),g=m.useRef(""),[p,b]=My(i,a,o),x=_O(s),{onFocus:_,onBlur:y,onClick:C}=typeof n!="function"?ie.Children.only(n).props:{},w=j=>{f(Pc(j))},T=m.useCallback(()=>{if(h.clear(),g.current="show",!x.show){b(!0);return}h.set(()=>{g.current==="show"&&b(!0)},x.show)},[x.show,b,h]),$=m.useCallback(()=>{if(h.clear(),g.current="hide",!x.hide){b(!1);return}h.set(()=>{g.current==="hide"&&b(!1)},x.hide)},[x.hide,b,h]),R=m.useCallback((...j)=>{T(),_==null||_(...j)},[T,_]),S=m.useCallback((...j)=>{$(),y==null||y(...j)},[$,y]),k=m.useCallback((...j)=>{b(!p),C==null||C(...j)},[C,b,p]),O=m.useCallback((...j)=>{Jg(T,j,"fromElement")},[T]),D=m.useCallback((...j)=>{Jg($,j,"toElement")},[$]),E=e==null?[]:[].concat(e),M={ref:w};return E.indexOf("click")!==-1&&(M.onClick=k),E.indexOf("focus")!==-1&&(M.onFocus=R,M.onBlur=S),E.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&Di(E.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),M.onMouseOver=O,M.onMouseOut=D),v.jsxs(v.Fragment,{children:[typeof n=="function"?n(M):m.cloneElement(n,M),v.jsx(rx,{...u,show:p,onHide:$,flip:l,placement:c,popperConfig:r,target:d.current,children:t})]})},dp=ie.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:i="div",className:a,...o},s)=>{e=He(e,"spinner");const c=`${e}-${n}`;return v.jsx(i,{ref:s,...o,className:Q(a,c,r&&`${c}-${r}`,t&&`text-${t}`)})});dp.displayName="Spinner";var ax={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},e0=m.createContext&&m.createContext(ax),wO=["attr","size","title"];function CO(e,t){if(e==null)return{};var n=TO(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TO(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Bc(){return Bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bc.apply(this,arguments)}function t0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t0(Object(n),!0).forEach(function(r){kO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kO(e,t,n){return t=SO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SO(e){var t=OO(e,"string");return typeof t=="symbol"?t:t+""}function OO(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ox(e){return e&&e.map((t,n)=>m.createElement(t.tag,Wc({key:n},t.attr),ox(t.child)))}function Ve(e){return t=>m.createElement(EO,Bc({attr:Wc({},e.attr)},t),ox(e.child))}function EO(e){var t=n=>{var{attr:r,size:i,title:a}=e,o=CO(e,wO),s=i||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),m.createElement("svg",Bc({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:c,style:Wc(Wc({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&m.createElement("title",null,a),e.children)};return e0!==void 0?m.createElement(e0.Consumer,null,n=>t(n)):t(ax)}function MO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"},child:[]}]})(e)}function ks(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}function $O(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 12.4V7l-4-4H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.4l8.6-8.6zM15 15c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zM6 6h9v4H6V6zm13.99 10.25 1.77 1.77L16.77 23H15v-1.77l4.99-4.98zm3.26.26-.85.85-1.77-1.77.85-.85c.2-.2.51-.2.71 0l1.06 1.06c.2.2.2.52 0 .71z"},child:[]}]})(e)}function RO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"},child:[]}]})(e)}function AO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"},child:[]}]})(e)}function jO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m10 17 5-5-5-5v10z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 24V0h24v24H0z"},child:[]}]})(e)}function PO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(e)}function IO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"},child:[]}]})(e)}function DO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a5.985 5.985 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-4 4v3c0 .22-.03.47-.07.7l-.1.65-.37.65c-.72 1.24-2.04 2-3.46 2s-2.74-.77-3.46-2l-.37-.64-.1-.65A4.27 4.27 0 0 1 8 15v-4c0-.23.03-.48.07-.7l.1-.65.37-.65c.3-.52.72-.97 1.21-1.31l.57-.39.74-.18a3.787 3.787 0 0 1 1.89 0l.68.16.61.42c.5.34.91.78 1.21 1.31l.38.65.1.65c.04.22.07.47.07.69v1zm-6 2h4v2h-4zm0-4h4v2h-4z"},child:[]}]})(e)}function sx(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"},child:[]}]})(e)}function NO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M4 20h16v2H4zM4 2h16v2H4zM9.41 13.59 8 15l4 4 4-4-1.41-1.41L13 15.17V8.83l1.59 1.58L16 9l-4-4-4 4 1.41 1.41L11 8.83v6.34z"},child:[]}]})(e)}function FO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"},child:[]}]})(e)}function LO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16c1.1 0 2-.9 2-2V6a2 2 0 0 0-2-2zm0 14H4V8h16v10zm-2-1h-6v-2h6v2zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4-4 4z"},child:[]}]})(e)}function BO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"},child:[]}]})(e)}function WO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"},child:[]}]})(e)}function UO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"},child:[]}]})(e)}function zO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"},child:[]}]})(e)}function cx(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z"},child:[]}]})(e)}function HO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"},child:[]}]})(e)}function VO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(e)}function qO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},child:[]},{tag:"path",attr:{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},child:[]}]})(e)}function YO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h4.05l1.83-2h4.24l1.83 2H20v12zM12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 8c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"},child:[]}]})(e)}function GO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 0 0 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"},child:[]}]})(e)}function ZO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67 1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"},child:[]}]})(e)}function KO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"},child:[]}]})(e)}function XO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"},child:[]}]})(e)}function lx(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"},child:[]}]})(e)}function QO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"},child:[]}]})(e)}function ux(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(e)}function JO(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},child:[]}]})(e)}function eE(e){return Ve({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{fill:"none"},child:[{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]}]},{tag:"path",attr:{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27z"},child:[]}]})(e)}const Pt=m.createContext({cookieDomain:"",axiosOptions:{},language:"",localizationContext:{},texts:{},ProjectIconComponent:{},chartColorPalette:void 0}),dx=m.createContext({show:!1,text:"",textSm:!1,showConfirm:(e,t)=>{},hideConfirm:()=>{}}),fx=m.createContext({isShown:!1,text:"",hidePrompt:()=>{},showPrompt:()=>{},resolveRef:{current:()=>{}},options:{input:"textarea",type:"text"},setOptions:()=>{}}),hx=()=>{const{isShown:e,text:t,showPrompt:n,hidePrompt:r,resolveRef:i,setOptions:a}=m.useContext(fx),o=m.useCallback(c=>{r(),i.current(c)},[r,i]),s=m.useCallback(async(c,l)=>(a(u=>({...u,...l})),n(c),new Promise(u=>{i.current=u})),[i,a,n]);return{isShown:e,text:t,prompt:s,onFinish:o}};let tE={data:""},nE=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||tE,rE=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,iE=/\/\*[^]*?\*\/| +/g,n0=/\n+/g,Dr=(e,t)=>{let n="",r="",i="";for(let a in e){let o=e[a];a[0]=="@"?a[1]=="i"?n=a+" "+o+";":r+=a[1]=="f"?Dr(o,a):a+"{"+Dr(o,a[1]=="k"?"":t)+"}":typeof o=="object"?r+=Dr(o,t?t.replace(/([^,])+/g,s=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,s):s?s+" "+c:c)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Dr.p?Dr.p(a,o):a+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},fr={},px=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+px(e[n]);return t}return e},aE=(e,t,n,r,i)=>{let a=px(e),o=fr[a]||(fr[a]=(c=>{let l=0,u=11;for(;l<c.length;)u=101*u+c.charCodeAt(l++)>>>0;return"go"+u})(a));if(!fr[o]){let c=a!==e?e:(l=>{let u,d,f=[{}];for(;u=rE.exec(l.replace(iE,""));)u[4]?f.shift():u[3]?(d=u[3].replace(n0," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][u[1]]=u[2].replace(n0," ").trim();return f[0]})(e);fr[o]=Dr(i?{["@keyframes "+o]:c}:c,n?"":"."+o)}let s=n&&fr.g?fr.g:null;return n&&(fr.g=fr[o]),((c,l,u,d)=>{d?l.data=l.data.replace(d,c):l.data.indexOf(c)===-1&&(l.data=u?c+l.data:l.data+c)})(fr[o],t,r,s),o},oE=(e,t,n)=>e.reduce((r,i,a)=>{let o=t[a];if(o&&o.call){let s=o(n),c=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=c?"."+c:s&&typeof s=="object"?s.props?"":Dr(s,""):s===!1?"":s}return r+i+(o??"")},"");function Ll(e){let t=this||{},n=e.call?e(t.p):e;return aE(n.unshift?n.raw?oE(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,nE(t.target),t.g,t.o,t.k)}let mx,Of,Ef;Ll.bind({g:1});let Cr=Ll.bind({k:1});function sE(e,t,n,r){Dr.p=t,mx=e,Of=n,Ef=r}function ti(e,t){let n=this||{};return function(){let r=arguments;function i(a,o){let s=Object.assign({},a),c=s.className||i.className;n.p=Object.assign({theme:Of&&Of()},s),n.o=/ *go\d+/.test(c),s.className=Ll.apply(n,r)+(c?" "+c:"");let l=e;return e[0]&&(l=s.as||e,delete s.as),Ef&&l[0]&&Ef(s),mx(l,s)}return i}}var cE=e=>typeof e=="function",Uc=(e,t)=>cE(e)?e(t):e,lE=(()=>{let e=0;return()=>(++e).toString()})(),gx=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),uE=20,xc=new Map,dE=1e3,r0=e=>{if(xc.has(e))return;let t=setTimeout(()=>{xc.delete(e),Ni({type:4,toastId:e})},dE);xc.set(e,t)},fE=e=>{let t=xc.get(e);t&&clearTimeout(t)},Mf=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,uE)};case 1:return t.toast.id&&fE(t.toast.id),{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:n}=t;return e.toasts.find(a=>a.id===n.id)?Mf(e,{type:1,toast:n}):Mf(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?r0(r):e.toasts.forEach(a=>{r0(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===r||r===void 0?{...a,visible:!1}:a)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+i}))}}},_c=[],wc={toasts:[],pausedAt:void 0},Ni=e=>{wc=Mf(wc,e),_c.forEach(t=>{t(wc)})},hE={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},pE=(e={})=>{let[t,n]=m.useState(wc);m.useEffect(()=>(_c.push(n),()=>{let i=_c.indexOf(n);i>-1&&_c.splice(i,1)}),[t]);let r=t.toasts.map(i=>{var a,o;return{...e,...e[i.type],...i,duration:i.duration||((a=e[i.type])==null?void 0:a.duration)||(e==null?void 0:e.duration)||hE[i.type],style:{...e.style,...(o=e[i.type])==null?void 0:o.style,...i.style}}});return{...t,toasts:r}},mE=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||lE()}),Ss=e=>(t,n)=>{let r=mE(t,e,n);return Ni({type:2,toast:r}),r.id},Tn=(e,t)=>Ss("blank")(e,t);Tn.error=Ss("error");Tn.success=Ss("success");Tn.loading=Ss("loading");Tn.custom=Ss("custom");Tn.dismiss=e=>{Ni({type:3,toastId:e})};Tn.remove=e=>Ni({type:4,toastId:e});Tn.promise=(e,t,n)=>{let r=Tn.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(Tn.success(Uc(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{Tn.error(Uc(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var gE=(e,t)=>{Ni({type:1,toast:{id:e,height:t}})},vE=()=>{Ni({type:5,time:Date.now()})},bE=e=>{let{toasts:t,pausedAt:n}=pE(e);m.useEffect(()=>{if(n)return;let a=Date.now(),o=t.map(s=>{if(s.duration===1/0)return;let c=(s.duration||0)+s.pauseDuration-(a-s.createdAt);if(c<0){s.visible&&Tn.dismiss(s.id);return}return setTimeout(()=>Tn.dismiss(s.id),c)});return()=>{o.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=m.useCallback(()=>{n&&Ni({type:6,time:Date.now()})},[n]),i=m.useCallback((a,o)=>{let{reverseOrder:s=!1,gutter:c=8,defaultPosition:l}=o||{},u=t.filter(h=>(h.position||l)===(a.position||l)&&h.height),d=u.findIndex(h=>h.id===a.id),f=u.filter((h,g)=>g<d&&h.visible).length;return u.filter(h=>h.visible).slice(...s?[f+1]:[0,f]).reduce((h,g)=>h+(g.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:gE,startPause:vE,endPause:r,calculateOffset:i}}},yE=Cr`
|
|
54
|
-
from {
|
|
55
|
-
transform: scale(0) rotate(45deg);
|
|
56
|
-
opacity: 0;
|
|
57
|
-
}
|
|
58
|
-
to {
|
|
59
|
-
transform: scale(1) rotate(45deg);
|
|
60
|
-
opacity: 1;
|
|
61
|
-
}`,xE=Cr`
|
|
62
|
-
from {
|
|
63
|
-
transform: scale(0);
|
|
64
|
-
opacity: 0;
|
|
65
|
-
}
|
|
66
|
-
to {
|
|
67
|
-
transform: scale(1);
|
|
68
|
-
opacity: 1;
|
|
69
|
-
}`,_E=Cr`
|
|
70
|
-
from {
|
|
71
|
-
transform: scale(0) rotate(90deg);
|
|
72
|
-
opacity: 0;
|
|
73
|
-
}
|
|
74
|
-
to {
|
|
75
|
-
transform: scale(1) rotate(90deg);
|
|
76
|
-
opacity: 1;
|
|
77
|
-
}`,wE=ti("div")`
|
|
78
|
-
width: 20px;
|
|
79
|
-
opacity: 0;
|
|
80
|
-
height: 20px;
|
|
81
|
-
border-radius: 10px;
|
|
82
|
-
background: ${e=>e.primary||"#ff4b4b"};
|
|
83
|
-
position: relative;
|
|
84
|
-
transform: rotate(45deg);
|
|
85
|
-
|
|
86
|
-
animation: ${yE} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
87
|
-
forwards;
|
|
88
|
-
animation-delay: 100ms;
|
|
89
|
-
|
|
90
|
-
&:after,
|
|
91
|
-
&:before {
|
|
92
|
-
content: '';
|
|
93
|
-
animation: ${xE} 0.15s ease-out forwards;
|
|
94
|
-
animation-delay: 150ms;
|
|
95
|
-
position: absolute;
|
|
96
|
-
border-radius: 3px;
|
|
97
|
-
opacity: 0;
|
|
98
|
-
background: ${e=>e.secondary||"#fff"};
|
|
99
|
-
bottom: 9px;
|
|
100
|
-
left: 4px;
|
|
101
|
-
height: 2px;
|
|
102
|
-
width: 12px;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
&:before {
|
|
106
|
-
animation: ${_E} 0.15s ease-out forwards;
|
|
107
|
-
animation-delay: 180ms;
|
|
108
|
-
transform: rotate(90deg);
|
|
109
|
-
}
|
|
110
|
-
`,CE=Cr`
|
|
111
|
-
from {
|
|
112
|
-
transform: rotate(0deg);
|
|
113
|
-
}
|
|
114
|
-
to {
|
|
115
|
-
transform: rotate(360deg);
|
|
116
|
-
}
|
|
117
|
-
`,TE=ti("div")`
|
|
118
|
-
width: 12px;
|
|
119
|
-
height: 12px;
|
|
120
|
-
box-sizing: border-box;
|
|
121
|
-
border: 2px solid;
|
|
122
|
-
border-radius: 100%;
|
|
123
|
-
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
124
|
-
border-right-color: ${e=>e.primary||"#616161"};
|
|
125
|
-
animation: ${CE} 1s linear infinite;
|
|
126
|
-
`,kE=Cr`
|
|
127
|
-
from {
|
|
128
|
-
transform: scale(0) rotate(45deg);
|
|
129
|
-
opacity: 0;
|
|
130
|
-
}
|
|
131
|
-
to {
|
|
132
|
-
transform: scale(1) rotate(45deg);
|
|
133
|
-
opacity: 1;
|
|
134
|
-
}`,SE=Cr`
|
|
135
|
-
0% {
|
|
136
|
-
height: 0;
|
|
137
|
-
width: 0;
|
|
138
|
-
opacity: 0;
|
|
139
|
-
}
|
|
140
|
-
40% {
|
|
141
|
-
height: 0;
|
|
142
|
-
width: 6px;
|
|
143
|
-
opacity: 1;
|
|
144
|
-
}
|
|
145
|
-
100% {
|
|
146
|
-
opacity: 1;
|
|
147
|
-
height: 10px;
|
|
148
|
-
}`,OE=ti("div")`
|
|
149
|
-
width: 20px;
|
|
150
|
-
opacity: 0;
|
|
151
|
-
height: 20px;
|
|
152
|
-
border-radius: 10px;
|
|
153
|
-
background: ${e=>e.primary||"#61d345"};
|
|
154
|
-
position: relative;
|
|
155
|
-
transform: rotate(45deg);
|
|
156
|
-
|
|
157
|
-
animation: ${kE} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
158
|
-
forwards;
|
|
159
|
-
animation-delay: 100ms;
|
|
160
|
-
&:after {
|
|
161
|
-
content: '';
|
|
162
|
-
box-sizing: border-box;
|
|
163
|
-
animation: ${SE} 0.2s ease-out forwards;
|
|
164
|
-
opacity: 0;
|
|
165
|
-
animation-delay: 200ms;
|
|
166
|
-
position: absolute;
|
|
167
|
-
border-right: 2px solid;
|
|
168
|
-
border-bottom: 2px solid;
|
|
169
|
-
border-color: ${e=>e.secondary||"#fff"};
|
|
170
|
-
bottom: 6px;
|
|
171
|
-
left: 6px;
|
|
172
|
-
height: 10px;
|
|
173
|
-
width: 6px;
|
|
174
|
-
}
|
|
175
|
-
`,EE=ti("div")`
|
|
176
|
-
position: absolute;
|
|
177
|
-
`,ME=ti("div")`
|
|
178
|
-
position: relative;
|
|
179
|
-
display: flex;
|
|
180
|
-
justify-content: center;
|
|
181
|
-
align-items: center;
|
|
182
|
-
min-width: 20px;
|
|
183
|
-
min-height: 20px;
|
|
184
|
-
`,$E=Cr`
|
|
185
|
-
from {
|
|
186
|
-
transform: scale(0.6);
|
|
187
|
-
opacity: 0.4;
|
|
188
|
-
}
|
|
189
|
-
to {
|
|
190
|
-
transform: scale(1);
|
|
191
|
-
opacity: 1;
|
|
192
|
-
}`,RE=ti("div")`
|
|
193
|
-
position: relative;
|
|
194
|
-
transform: scale(0.6);
|
|
195
|
-
opacity: 0.4;
|
|
196
|
-
min-width: 20px;
|
|
197
|
-
animation: ${$E} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
198
|
-
forwards;
|
|
199
|
-
`,AE=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?ie.createElement(RE,null,t):t:n==="blank"?null:ie.createElement(ME,null,ie.createElement(TE,{...r}),n!=="loading"&&ie.createElement(EE,null,n==="error"?ie.createElement(wE,{...r}):ie.createElement(OE,{...r})))},jE=e=>`
|
|
200
|
-
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
201
|
-
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
202
|
-
`,PE=e=>`
|
|
203
|
-
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
204
|
-
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
205
|
-
`,IE="0%{opacity:0;} 100%{opacity:1;}",DE="0%{opacity:1;} 100%{opacity:0;}",NE=ti("div")`
|
|
206
|
-
display: flex;
|
|
207
|
-
align-items: center;
|
|
208
|
-
background: #fff;
|
|
209
|
-
color: #363636;
|
|
210
|
-
line-height: 1.3;
|
|
211
|
-
will-change: transform;
|
|
212
|
-
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
|
|
213
|
-
max-width: 350px;
|
|
214
|
-
pointer-events: auto;
|
|
215
|
-
padding: 8px 10px;
|
|
216
|
-
border-radius: 8px;
|
|
217
|
-
`,FE=ti("div")`
|
|
218
|
-
display: flex;
|
|
219
|
-
justify-content: center;
|
|
220
|
-
margin: 4px 10px;
|
|
221
|
-
color: inherit;
|
|
222
|
-
flex: 1 1 auto;
|
|
223
|
-
white-space: pre-line;
|
|
224
|
-
`,LE=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=gx()?[IE,DE]:[jE(n),PE(n)];return{animation:t?`${Cr(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Cr(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},BE=ie.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?LE(e.position||t||"top-center",e.visible):{opacity:0},a=ie.createElement(AE,{toast:e}),o=ie.createElement(FE,{...e.ariaProps},Uc(e.message,e));return ie.createElement(NE,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:a,message:o}):ie.createElement(ie.Fragment,null,a,o))});sE(ie.createElement);var WE=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let a=ie.useCallback(o=>{if(o){let s=()=>{let c=o.getBoundingClientRect().height;r(e,c)};s(),new MutationObserver(s).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return ie.createElement("div",{ref:a,className:t,style:n},i)},UE=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:gx()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},zE=Ll`
|
|
225
|
-
z-index: 9999;
|
|
226
|
-
> * {
|
|
227
|
-
pointer-events: auto;
|
|
228
|
-
}
|
|
229
|
-
`,Qs=16,HE=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:a,containerClassName:o})=>{let{toasts:s,handlers:c}=bE(n);return ie.createElement("div",{style:{position:"fixed",zIndex:9999,top:Qs,left:Qs,right:Qs,bottom:Qs,pointerEvents:"none",...a},className:o,onMouseEnter:c.startPause,onMouseLeave:c.endPause},s.map(l=>{let u=l.position||t,d=c.calculateOffset(l,{reverseOrder:e,gutter:r,defaultPosition:t}),f=UE(u,d);return ie.createElement(WE,{id:l.id,key:l.id,onHeightUpdate:c.updateHeight,className:l.visible?zE:"",style:f},l.type==="custom"?Uc(l.message,l):i?i(l):ie.createElement(BE,{toast:l,position:u}))}))},Zi=Tn;const Bl=m.createContext({isLoading:!1,startLoading:e=>{},stopLoading:e=>{}});var $f;(function(e){e[e.LOGGING_IN=0]="LOGGING_IN",e[e.LOGGED_IN=1]="LOGGED_IN",e[e.LOGGED_OUT=2]="LOGGED_OUT",e[e.LOGIN_FAILED=3]="LOGIN_FAILED"})($f||($f={}));const vx=$f;var Rf;(function(e){e[e.Odebrano=-2]="Odebrano",e[e.Zamitnuto=-1]="Zamitnuto",e[e.Nevyrizeno=0]="Nevyrizeno",e[e.Schvaleno=1]="Schvaleno"})(Rf||(Rf={}));const VE=Rf,bx=m.createContext({user:null,userLoginState:{state:vx.LOGGED_OUT,user:null},loginUser:()=>Promise.resolve(!0),logoutUser:()=>{}}),zc=e=>e==null?!0:!(typeof e=="object"||typeof e=="function"),yx=e=>{zc(e)||Object.keys(e).forEach(t=>{const n=e[t];if(zc(n))return;const r=Object.keys(n);r.includes("id")&&r.length===1&&n.id===null?e[t]=null:yx(n)})},xx=e=>Object.values(e).every(t=>t===null),qE=e=>{const t={};return Object.entries(e).forEach(([n,r])=>{r&&typeof r=="object"&&xx(r)?t[n]=null:t[n]=r}),t},fp=e=>{var n;const t=(n=e.response)==null?void 0:n.data;return t&&t.errorFields&&t.errorFields.length>0?t.errorFields.map(r=>({name:r.name.split(".").map(a=>`${a.charAt(0).toLowerCase()}${a.slice(1)}`).join("."),errors:r.errors})):[]},YE=(e,t)=>{fp(t).forEach(r=>{e.setError(r.name,{message:r.errors,type:"server"},{shouldFocus:!0}),zc(e.getValues(r.name))||e.setError(`${r.name}.id`,{message:r.errors,type:"server"},{shouldFocus:!0})})},_x=e=>{var n;const t=(n=e.response)==null?void 0:n.data;return t!=null&&t.permissions&&t.permissions.length>0?t.permissions:null},wx=({heading:e,content:t,placement:n,children:r,trigger:i=["hover"],popoverClassName:a,small:o,delay:s,...c})=>{const l=i.includes("hover")&&!i.includes("focus")?[...i,"focus"]:i;return v.jsx(ix,{placement:n,overlay:v.jsxs(yc,{className:Q("luminus-popover",{"luminus-popover-sm":o},a),onClick:u=>u.stopPropagation(),children:[e&&v.jsx(yc.Header,{children:typeof e=="string"?v.jsx(dn,{variant:"h6",className:"text-primary",children:e}):e}),v.jsx(yc.Body,{children:t})]}),trigger:l,rootClose:!0,show:c.controlled?c.isOpen:void 0,onToggle:c.controlled?u=>c.setIsOpen(u):void 0,delay:s,children:r})},GE="_h1_14r4v_1",ZE="_h3_14r4v_8",KE="_h6_14r4v_15",XE="_subtitle_14r4v_22",QE="_body_14r4v_29",JE="_body2_14r4v_36",eM="_caption_14r4v_43",tM="_form-label_14r4v_50",Mr={h1:GE,h3:ZE,h6:KE,subtitle:XE,body:QE,body2:JE,caption:eM,"form-label":"_form-label_14r4v_50",formLabel:tM},nM=({variant:e,className:t,children:n})=>{switch(e){case"h1":return v.jsx("h1",{className:Q("luminus-text-primary luminus-h1",Mr.h1,t),children:n});case"h3":return v.jsx("h3",{className:Q("luminus-text luminus-h3",Mr.h3,t),children:n});case"h6":return v.jsx("h6",{className:Q("luminus-text luminus-h6",Mr.h6,t),children:n});case"subtitle":return v.jsx("div",{className:Q("luminus-text luminus-subtitle",Mr.subtitle,t),children:n});case"body":return v.jsx("div",{className:Q("luminus-text luminus-body",Mr.body,t),children:n});case"body2":return v.jsx("div",{className:Q("luminus-text luminus-body2",Mr.body2,t),children:n});case"caption":return v.jsx("div",{className:Q("luminus-text-muted luminus-caption",Mr.caption,t),children:n});case"form-label":return v.jsx("div",{className:Q("luminus-text luminus-form-label",Mr.formLabel,t),children:n});default:return v.jsx(v.Fragment,{children:n})}},dn=({variant:e,className:t,children:n})=>v.jsx(nM,{variant:e,className:t,children:n}),hp=({text:e,placement:t,children:n,delay:r})=>v.jsx(wx,{content:v.jsx(dn,{variant:"body2",className:"text-center",children:e}),placement:t,delay:r,small:!0,children:n}),Cx=e=>e.length<300?e:e.substring(0,300)+"...",xa=e=>e<1024?`${e.toFixed(2)} bytes`:e>=1024&&e<1048576?`${(e/1024).toFixed(1)} kB`:`${(e/1048576).toFixed(1)} MB`;function Bo(e=" ",...t){return t.filter(n=>n!=null&&n.length>0).join(e)}const Af=(e,t)=>e.map(n=>`&${t}=${n}`).join("").substring(1),rM=(e,t)=>e===null?null:e.length<=t?e:e.slice(0,t)+"…";function iM(e){return e==null?"":Ih(Ol(e),"dd.MM.yyyy")}function Wl(e){return(e==null?void 0:e.toString().split("T")[0])??""}function aM(e){return e==null?"":Ih(Ol(e),"dd.MM.yyyy HH:mm")}function oM(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const sM=(e,t)=>Bo(" ",e?`${e},`:void 0,t),cM=(e,t)=>`${t}${e!=null?` (${e})`:""}`,lM=(e,t)=>`[${e??""}] ${t??""}`,Tx=e=>decodeURIComponent(atob(e).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")),kx=e=>{const t=Ol(e);return!Number.isNaN(t.getTime())};function uM(){const e=new Date,t=new Date(e);return t.setHours(24,0,0,0),t.getTime()-e.getTime()}function dM(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function fM(e,t){const n=new Date(e),r=new Date(t);return n.setHours(0,0,0,0),r.setHours(0,0,0,0),n.getTime()-r.getTime()}function hM(e,t){const n=new Date(e),r=new Date(t);return n.getTime()-r.getTime()}function pM(e=Date.now(),t=Date.now()){const n=new Date(e),r=new Date(t);n.setHours(10,0,0,0),r.setHours(0,0,0,0);const i=n.getTime()-r.getTime();return Math.floor(i/(1e3*3600*24))}function Sx(e=new Date){const t=new Date(e);return t.setUTCDate(1),t}function Ox(e=new Date){return nk(e)}function mM(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),Sx(t)}function gM(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),Ox(t)}function vM(e){const t=e??new Date().getFullYear(),n=new Date(t,0,1);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function bM(e){const t=e??new Date().getFullYear(),n=new Date(t,11,31);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function yM(e){return Wl(e.toISOString())}function Ex(e){const t=/filename\*?=(?:UTF-8''|")?(.*?)(?:''|")?(?:;|$)/i,n=e.match(t);if(n&&n[1]){let r=n[1];const i=/=\?([^?]+)\?([BbQq])\?([^?]+)\?=/,a=r.match(i);if(a){const o=a[2].toUpperCase(),s=a[3];try{return o==="B"?r=Tx(s):o==="Q"&&(r=s.replace(/_/g," ").replace(/=([A-Fa-f0-9]{2})/g,(c,l)=>String.fromCharCode(parseInt(l,16)))),decodeURIComponent(r)}catch(c){return console.error("Error decoding MIME encoded filename:",c),r}}try{return decodeURIComponent(r)}catch(o){return console.error("Error decoding filename:",o),r}}return null}function Hc(e,t,n){const r=URL.createObjectURL(e),i=document.createElement("a");i.href=r,i.setAttribute("download",t),i.setAttribute("style","display: none"),n&&i.setAttribute("target","_blank"),document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r)}function xM(e,t){let n=(t==null?void 0:t.forcedName)??(t==null?void 0:t.fallbackName)??"file";if((t==null?void 0:t.forcedName)===void 0&&typeof e.headers.get=="function"){const r=e.headers.get("Content-disposition");typeof r=="string"&&r.length>0&&(n=Ex(e.headers.get("Content-disposition"))??n)}Hc(e.data,n,t==null?void 0:t.tryToOpen)}function _M(e){const t=URL.createObjectURL(e.data);window.open(t,"_blank")}function _a(e,t=_a.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}_a.characters={Á:"A",Ă:"A",Ắ:"A",Ặ:"A",Ằ:"A",Ẳ:"A",Ẵ:"A",Ǎ:"A",Â:"A",Ấ:"A",Ậ:"A",Ầ:"A",Ẩ:"A",Ẫ:"A",Ä:"A",Ǟ:"A",Ȧ:"A",Ǡ:"A",Ạ:"A",Ȁ:"A",À:"A",Ả:"A",Ȃ:"A",Ā:"A",Ą:"A",Å:"A",Ǻ:"A",Ḁ:"A","Ⱥ":"A",Ã:"A","Ꜳ":"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY",Ḃ:"B",Ḅ:"B",Ɓ:"B",Ḇ:"B","Ƀ":"B",Ƃ:"B",Ć:"C",Č:"C",Ç:"C",Ḉ:"C",Ĉ:"C",Ċ:"C",Ƈ:"C","Ȼ":"C",Ď:"D",Ḑ:"D",Ḓ:"D",Ḋ:"D",Ḍ:"D",Ɗ:"D",Ḏ:"D",Dz:"D",Dž:"D",Đ:"D",Ð:"D",Ƌ:"D",DZ:"DZ",DŽ:"DZ",É:"E",Ĕ:"E",Ě:"E",Ȩ:"E",Ḝ:"E",Ê:"E",Ế:"E",Ệ:"E",Ề:"E",Ể:"E",Ễ:"E",Ḙ:"E",Ë:"E",Ė:"E",Ẹ:"E",Ȅ:"E",È:"E",Ẻ:"E",Ȇ:"E",Ē:"E",Ḗ:"E",Ḕ:"E",Ę:"E","Ɇ":"E",Ẽ:"E",Ḛ:"E","Ꝫ":"ET",Ḟ:"F",Ƒ:"F",Ǵ:"G",Ğ:"G",Ǧ:"G",Ģ:"G",Ĝ:"G",Ġ:"G",Ɠ:"G",Ḡ:"G",Ǥ:"G",Ḫ:"H",Ȟ:"H",Ḩ:"H",Ĥ:"H","Ⱨ":"H",Ḧ:"H",Ḣ:"H",Ḥ:"H",Ħ:"H",Í:"I",Ĭ:"I",Ǐ:"I",Î:"I",Ï:"I",Ḯ:"I",İ:"I",Ị:"I",Ȉ:"I",Ì:"I",Ỉ:"I",Ȋ:"I",Ī:"I",Į:"I",Ɨ:"I",Ĩ:"I",Ḭ:"I",І:"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS",Ĵ:"J","Ɉ":"J",Ḱ:"K",Ǩ:"K",Ķ:"K","Ⱪ":"K","Ꝃ":"K",Ḳ:"K",Ƙ:"K",Ḵ:"K","Ꝁ":"K","Ꝅ":"K",Ĺ:"L","Ƚ":"L",Ľ:"L",Ļ:"L",Ḽ:"L",Ḷ:"L",Ḹ:"L","Ⱡ":"L","Ꝉ":"L",Ḻ:"L",Ŀ:"L","Ɫ":"L",Lj:"L",Ł:"L",LJ:"LJ",Ḿ:"M",Ṁ:"M",Ṃ:"M","Ɱ":"M",Ń:"N",Ň:"N",Ņ:"N",Ṋ:"N",Ṅ:"N",Ṇ:"N",Ǹ:"N",Ɲ:"N",Ṉ:"N","Ƞ":"N",Nj:"N",Ñ:"N",NJ:"NJ",Ó:"O",Ŏ:"O",Ǒ:"O",Ô:"O",Ố:"O",Ộ:"O",Ồ:"O",Ổ:"O",Ỗ:"O",Ö:"O",Ȫ:"O",Ȯ:"O",Ȱ:"O",Ọ:"O",Ő:"O",Ȍ:"O",Ò:"O",Ỏ:"O",Ơ:"O",Ớ:"O",Ợ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ȏ:"O","Ꝋ":"O","Ꝍ":"O",Ō:"O",Ṓ:"O",Ṑ:"O",Ɵ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Õ:"O",Ṍ:"O",Ṏ:"O",Ȭ:"O",Ƣ:"OI","Ꝏ":"OO",Ɛ:"E",Ɔ:"O",Ȣ:"OU",Ṕ:"P",Ṗ:"P","Ꝓ":"P",Ƥ:"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q",Ŕ:"R",Ř:"R",Ŗ:"R",Ṙ:"R",Ṛ:"R",Ṝ:"R",Ȑ:"R",Ȓ:"R",Ṟ:"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C",Ǝ:"E",Ś:"S",Ṥ:"S",Š:"S",Ṧ:"S",Ş:"S",Ŝ:"S",Ș:"S",Ṡ:"S",Ṣ:"S",Ṩ:"S",ß:"ss",Ť:"T",Ţ:"T",Ṱ:"T",Ț:"T","Ⱦ":"T",Ṫ:"T",Ṭ:"T",Ƭ:"T",Ṯ:"T",Ʈ:"T",Ŧ:"T","Ɐ":"A","Ꞁ":"L",Ɯ:"M","Ʌ":"V","Ꜩ":"TZ",Ú:"U",Ŭ:"U",Ǔ:"U",Û:"U",Ṷ:"U",Ü:"U",Ǘ:"U",Ǚ:"U",Ǜ:"U",Ǖ:"U",Ṳ:"U",Ụ:"U",Ű:"U",Ȕ:"U",Ù:"U",Ủ:"U",Ư:"U",Ứ:"U",Ự:"U",Ừ:"U",Ử:"U",Ữ:"U",Ȗ:"U",Ū:"U",Ṻ:"U",Ų:"U",Ů:"U",Ũ:"U",Ṹ:"U",Ṵ:"U","Ꝟ":"V",Ṿ:"V",Ʋ:"V",Ṽ:"V","Ꝡ":"VY",Ẃ:"W",Ŵ:"W",Ẅ:"W",Ẇ:"W",Ẉ:"W",Ẁ:"W","Ⱳ":"W",Ẍ:"X",Ẋ:"X",Ý:"Y",Ŷ:"Y",Ÿ:"Y",Ẏ:"Y",Ỵ:"Y",Ỳ:"Y",Ƴ:"Y",Ỷ:"Y","Ỿ":"Y",Ȳ:"Y","Ɏ":"Y",Ỹ:"Y",Ї:"YI",Ź:"Z",Ž:"Z",Ẑ:"Z","Ⱬ":"Z",Ż:"Z",Ẓ:"Z",Ȥ:"Z",Ẕ:"Z",Ƶ:"Z",Þ:"TH",IJ:"IJ",Œ:"OE","ᴀ":"A","ᴁ":"AE",ʙ:"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F",ɢ:"G",ʛ:"G",ʜ:"H",ɪ:"I",ʁ:"R","ᴊ":"J","ᴋ":"K",ʟ:"L","ᴌ":"L","ᴍ":"M",ɴ:"N","ᴏ":"O",ɶ:"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P",ʀ:"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W",ʏ:"Y","ᴢ":"Z",á:"a",ă:"a",ắ:"a",ặ:"a",ằ:"a",ẳ:"a",ẵ:"a",ǎ:"a",â:"a",ấ:"a",ậ:"a",ầ:"a",ẩ:"a",ẫ:"a",ä:"a",ǟ:"a",ȧ:"a",ǡ:"a",ạ:"a",ȁ:"a",à:"a",ả:"a",ȃ:"a",ā:"a",ą:"a","ᶏ":"a",ẚ:"a",å:"a",ǻ:"a",ḁ:"a","ⱥ":"a",ã:"a","ꜳ":"aa",æ:"ae",ǽ:"ae",ǣ:"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay",ḃ:"b",ḅ:"b",ɓ:"b",ḇ:"b","ᵬ":"b","ᶀ":"b",ƀ:"b",ƃ:"b",ɵ:"o",ć:"c",č:"c",ç:"c",ḉ:"c",ĉ:"c",ɕ:"c",ċ:"c",ƈ:"c","ȼ":"c",ď:"d",ḑ:"d",ḓ:"d","ȡ":"d",ḋ:"d",ḍ:"d",ɗ:"d","ᶑ":"d",ḏ:"d","ᵭ":"d","ᶁ":"d",đ:"d",ɖ:"d",ƌ:"d",ð:"d",ı:"i","ȷ":"j",ɟ:"j",ʄ:"j",dz:"dz",dž:"dz",é:"e",ĕ:"e",ě:"e",ȩ:"e",ḝ:"e",ê:"e",ế:"e",ệ:"e",ề:"e",ể:"e",ễ:"e",ḙ:"e",ë:"e",ė:"e",ẹ:"e",ȅ:"e",è:"e",ẻ:"e",ȇ:"e",ē:"e",ḗ:"e",ḕ:"e","ⱸ":"e",ę:"e","ᶒ":"e","ɇ":"e",ẽ:"e",ḛ:"e","ꝫ":"et",ḟ:"f",ƒ:"f","ᵮ":"f","ᶂ":"f",ǵ:"g",ğ:"g",ǧ:"g",ģ:"g",ĝ:"g",ġ:"g",ɠ:"g",ḡ:"g","ᶃ":"g",ǥ:"g",ḫ:"h",ȟ:"h",ḩ:"h",ĥ:"h","ⱨ":"h",ḧ:"h",ḣ:"h",ḥ:"h",ɦ:"h",ẖ:"h",ħ:"h",ƕ:"hv",í:"i",ĭ:"i",ǐ:"i",î:"i",ï:"i",ḯ:"i",ị:"i",ȉ:"i",ì:"i",ỉ:"i",ȋ:"i",ī:"i",į:"i","ᶖ":"i",ɨ:"i",ĩ:"i",ḭ:"i",і:"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is",ǰ:"j",ĵ:"j",ʝ:"j","ɉ":"j",ḱ:"k",ǩ:"k",ķ:"k","ⱪ":"k","ꝃ":"k",ḳ:"k",ƙ:"k",ḵ:"k","ᶄ":"k","ꝁ":"k","ꝅ":"k",ĺ:"l",ƚ:"l",ɬ:"l",ľ:"l",ļ:"l",ḽ:"l","ȴ":"l",ḷ:"l",ḹ:"l","ⱡ":"l","ꝉ":"l",ḻ:"l",ŀ:"l",ɫ:"l","ᶅ":"l",ɭ:"l",ł:"l",lj:"lj",ſ:"s","ẜ":"s",ẛ:"s","ẝ":"s",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m","ᵯ":"m","ᶆ":"m",ń:"n",ň:"n",ņ:"n",ṋ:"n","ȵ":"n",ṅ:"n",ṇ:"n",ǹ:"n",ɲ:"n",ṉ:"n",ƞ:"n","ᵰ":"n","ᶇ":"n",ɳ:"n",ñ:"n",nj:"nj",ó:"o",ŏ:"o",ǒ:"o",ô:"o",ố:"o",ộ:"o",ồ:"o",ổ:"o",ỗ:"o",ö:"o",ȫ:"o",ȯ:"o",ȱ:"o",ọ:"o",ő:"o",ȍ:"o",ò:"o",ỏ:"o",ơ:"o",ớ:"o",ợ:"o",ờ:"o",ở:"o",ỡ:"o",ȏ:"o","ꝋ":"o","ꝍ":"o","ⱺ":"o",ō:"o",ṓ:"o",ṑ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",õ:"o",ṍ:"o",ṏ:"o",ȭ:"o",ƣ:"oi","ꝏ":"oo",ɛ:"e","ᶓ":"e",ɔ:"o","ᶗ":"o",ȣ:"ou",ṕ:"p",ṗ:"p","ꝓ":"p",ƥ:"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q",ʠ:"q","ɋ":"q","ꝗ":"q",ŕ:"r",ř:"r",ŗ:"r",ṙ:"r",ṛ:"r",ṝ:"r",ȑ:"r",ɾ:"r","ᵳ":"r",ȓ:"r",ṟ:"r",ɼ:"r","ᵲ":"r","ᶉ":"r","ɍ":"r",ɽ:"r","ↄ":"c","ꜿ":"c",ɘ:"e",ɿ:"r",ś:"s",ṥ:"s",š:"s",ṧ:"s",ş:"s",ŝ:"s",ș:"s",ṡ:"s",ṣ:"s",ṩ:"s",ʂ:"s","ᵴ":"s","ᶊ":"s","ȿ":"s",ɡ:"g","ᴑ":"o","ᴓ":"o","ᴝ":"u",ť:"t",ţ:"t",ṱ:"t",ț:"t","ȶ":"t",ẗ:"t","ⱦ":"t",ṫ:"t",ṭ:"t",ƭ:"t",ṯ:"t","ᵵ":"t",ƫ:"t",ʈ:"t",ŧ:"t","ᵺ":"th",ɐ:"a","ᴂ":"ae",ǝ:"e","ᵷ":"g",ɥ:"h","ʮ":"h","ʯ":"h","ᴉ":"i",ʞ:"k","ꞁ":"l",ɯ:"m",ɰ:"m","ᴔ":"oe",ɹ:"r",ɻ:"r",ɺ:"r","ⱹ":"r",ʇ:"t",ʌ:"v",ʍ:"w",ʎ:"y","ꜩ":"tz",ú:"u",ŭ:"u",ǔ:"u",û:"u",ṷ:"u",ü:"u",ǘ:"u",ǚ:"u",ǜ:"u",ǖ:"u",ṳ:"u",ụ:"u",ű:"u",ȕ:"u",ù:"u",ủ:"u",ư:"u",ứ:"u",ự:"u",ừ:"u",ử:"u",ữ:"u",ȗ:"u",ū:"u",ṻ:"u",ų:"u","ᶙ":"u",ů:"u",ũ:"u",ṹ:"u",ṵ:"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v",ṿ:"v",ʋ:"v","ᶌ":"v","ⱱ":"v",ṽ:"v","ꝡ":"vy",ẃ:"w",ŵ:"w",ẅ:"w",ẇ:"w",ẉ:"w",ẁ:"w","ⱳ":"w",ẘ:"w",ẍ:"x",ẋ:"x","ᶍ":"x",ý:"y",ŷ:"y",ÿ:"y",ẏ:"y",ỵ:"y",ỳ:"y",ƴ:"y",ỷ:"y","ỿ":"y",ȳ:"y",ẙ:"y","ɏ":"y",ỹ:"y",ї:"yi",ź:"z",ž:"z",ẑ:"z",ʑ:"z","ⱬ":"z",ż:"z",ẓ:"z",ȥ:"z",ẕ:"z","ᵶ":"z","ᶎ":"z",ʐ:"z",ƶ:"z","ɀ":"z",þ:"th",ff:"ff",ffi:"ffi",ffl:"ffl",fi:"fi",fl:"fl",ij:"ij",œ:"oe",st:"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x",Ё:"YO",Й:"I",Ц:"TS",У:"U",К:"K",Е:"E",Н:"N",Г:"G",Ґ:"G",Ш:"SH",Щ:"SCH",З:"Z",Х:"H",Ъ:"'",ё:"yo",й:"i",ц:"ts",у:"u",к:"k",е:"e",н:"n",г:"g",ґ:"g",ш:"sh",щ:"sch",з:"z",х:"h",ъ:"'",Ф:"F",Ы:"I",В:"V",А:"a",П:"P",Р:"R",О:"O",Л:"L",Д:"D",Ж:"ZH",Э:"E",ф:"f",ы:"i",в:"v",а:"a",п:"p",р:"r",о:"o",л:"l",д:"d",ж:"zh",э:"e",Я:"Ya",Ч:"CH",С:"S",М:"M",И:"I",Т:"T",Ь:"'",Б:"B",Ю:"YU",я:"ya",ч:"ch",с:"s",м:"m",и:"i",т:"t",ь:"'",б:"b",ю:"yu"};const Mx=(e,t)=>t?e?_a(e).toLowerCase().includes(_a(t.toLowerCase())):!1:!0,$x=(e,t)=>t?e?_a(e).toLowerCase().startsWith(_a(t.toLowerCase())):!1:!0,pp=(e,t,n)=>{const r=n!=null&&n.trimSpaces?t==null?void 0:t.replaceAll(" ",""):t,i=n!=null&&n.trimSpaces?e==null?void 0:e.replaceAll(" ",""):e;return r?r.startsWith("*")?Mx(i,r.substring(1)):$x(i,r):!0};function Rx(e,t){return function(){return e.apply(t,arguments)}}const{toString:wM}=Object.prototype,{getPrototypeOf:mp}=Object,Ul=(e=>t=>{const n=wM.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),qn=e=>(e=e.toLowerCase(),t=>Ul(t)===e),zl=e=>t=>typeof t===e,{isArray:Ia}=Array,Wo=zl("undefined");function CM(e){return e!==null&&!Wo(e)&&e.constructor!==null&&!Wo(e.constructor)&&kn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ax=qn("ArrayBuffer");function TM(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ax(e.buffer),t}const kM=zl("string"),kn=zl("function"),jx=zl("number"),Hl=e=>e!==null&&typeof e=="object",SM=e=>e===!0||e===!1,Cc=e=>{if(Ul(e)!=="object")return!1;const t=mp(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},OM=qn("Date"),EM=qn("File"),MM=qn("Blob"),$M=qn("FileList"),RM=e=>Hl(e)&&kn(e.pipe),AM=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||kn(e.append)&&((t=Ul(e))==="formdata"||t==="object"&&kn(e.toString)&&e.toString()==="[object FormData]"))},jM=qn("URLSearchParams"),[PM,IM,DM,NM]=["ReadableStream","Request","Response","Headers"].map(qn),FM=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Os(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Ia(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let s;for(r=0;r<o;r++)s=a[r],t.call(null,e[s],s,e)}}function Px(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const di=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ix=e=>!Wo(e)&&e!==di;function jf(){const{caseless:e}=Ix(this)&&this||{},t={},n=(r,i)=>{const a=e&&Px(t,i)||i;Cc(t[a])&&Cc(r)?t[a]=jf(t[a],r):Cc(r)?t[a]=jf({},r):Ia(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Os(arguments[r],n);return t}const LM=(e,t,n,{allOwnKeys:r}={})=>(Os(t,(i,a)=>{n&&kn(i)?e[a]=Rx(i,n):e[a]=i},{allOwnKeys:r}),e),BM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),WM=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},UM=(e,t,n,r)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&mp(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},zM=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},HM=e=>{if(!e)return null;if(Ia(e))return e;let t=e.length;if(!jx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},VM=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&mp(Uint8Array)),qM=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},YM=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},GM=qn("HTMLFormElement"),ZM=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),i0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),KM=qn("RegExp"),Dx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Os(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},XM=e=>{Dx(e,(t,n)=>{if(kn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(kn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},QM=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return Ia(e)?r(e):r(String(e).split(t)),n},JM=()=>{},e6=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ed="abcdefghijklmnopqrstuvwxyz",a0="0123456789",Nx={DIGIT:a0,ALPHA:Ed,ALPHA_DIGIT:Ed+Ed.toUpperCase()+a0},t6=(e=16,t=Nx.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function n6(e){return!!(e&&kn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const r6=e=>{const t=new Array(10),n=(r,i)=>{if(Hl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=Ia(r)?[]:{};return Os(r,(o,s)=>{const c=n(o,i+1);!Wo(c)&&(a[s]=c)}),t[i]=void 0,a}}return r};return n(e,0)},i6=qn("AsyncFunction"),a6=e=>e&&(Hl(e)||kn(e))&&kn(e.then)&&kn(e.catch),Fx=((e,t)=>e?setImmediate:t?((n,r)=>(di.addEventListener("message",({source:i,data:a})=>{i===di&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),di.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",kn(di.postMessage)),o6=typeof queueMicrotask<"u"?queueMicrotask.bind(di):typeof process<"u"&&process.nextTick||Fx,Y={isArray:Ia,isArrayBuffer:Ax,isBuffer:CM,isFormData:AM,isArrayBufferView:TM,isString:kM,isNumber:jx,isBoolean:SM,isObject:Hl,isPlainObject:Cc,isReadableStream:PM,isRequest:IM,isResponse:DM,isHeaders:NM,isUndefined:Wo,isDate:OM,isFile:EM,isBlob:MM,isRegExp:KM,isFunction:kn,isStream:RM,isURLSearchParams:jM,isTypedArray:VM,isFileList:$M,forEach:Os,merge:jf,extend:LM,trim:FM,stripBOM:BM,inherits:WM,toFlatObject:UM,kindOf:Ul,kindOfTest:qn,endsWith:zM,toArray:HM,forEachEntry:qM,matchAll:YM,isHTMLForm:GM,hasOwnProperty:i0,hasOwnProp:i0,reduceDescriptors:Dx,freezeMethods:XM,toObjectSet:QM,toCamelCase:ZM,noop:JM,toFiniteNumber:e6,findKey:Px,global:di,isContextDefined:Ix,ALPHABET:Nx,generateString:t6,isSpecCompliantForm:n6,toJSONObject:r6,isAsyncFn:i6,isThenable:a6,setImmediate:Fx,asap:o6};function Fe(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Y.inherits(Fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Y.toJSONObject(this.config),code:this.code,status:this.status}}});const Lx=Fe.prototype,Bx={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Bx[e]={value:e}});Object.defineProperties(Fe,Bx);Object.defineProperty(Lx,"isAxiosError",{value:!0});Fe.from=(e,t,n,r,i,a)=>{const o=Object.create(Lx);return Y.toFlatObject(e,o,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),Fe.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const s6=null;function Pf(e){return Y.isPlainObject(e)||Y.isArray(e)}function Wx(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function o0(e,t,n){return e?e.concat(t).map(function(i,a){return i=Wx(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function c6(e){return Y.isArray(e)&&!e.some(Pf)}const l6=Y.toFlatObject(Y,{},null,function(t){return/^is[A-Z]/.test(t)});function Vl(e,t,n){if(!Y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,b){return!Y.isUndefined(b[p])});const r=n.metaTokens,i=n.visitor||u,a=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(i))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(Y.isDate(g))return g.toISOString();if(!c&&Y.isBlob(g))throw new Fe("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(g)||Y.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,p,b){let x=g;if(g&&!b&&typeof g=="object"){if(Y.endsWith(p,"{}"))p=r?p:p.slice(0,-2),g=JSON.stringify(g);else if(Y.isArray(g)&&c6(g)||(Y.isFileList(g)||Y.endsWith(p,"[]"))&&(x=Y.toArray(g)))return p=Wx(p),x.forEach(function(y,C){!(Y.isUndefined(y)||y===null)&&t.append(o===!0?o0([p],C,a):o===null?p:p+"[]",l(y))}),!1}return Pf(g)?!0:(t.append(o0(b,p,a),l(g)),!1)}const d=[],f=Object.assign(l6,{defaultVisitor:u,convertValue:l,isVisitable:Pf});function h(g,p){if(!Y.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(g),Y.forEach(g,function(x,_){(!(Y.isUndefined(x)||x===null)&&i.call(t,x,Y.isString(_)?_.trim():_,p,f))===!0&&h(x,p?p.concat(_):[_])}),d.pop()}}if(!Y.isObject(e))throw new TypeError("data must be an object");return h(e),t}function s0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function gp(e,t){this._pairs=[],e&&Vl(e,this,t)}const Ux=gp.prototype;Ux.append=function(t,n){this._pairs.push([t,n])};Ux.toString=function(t){const n=t?function(r){return t.call(this,r,s0)}:s0;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function u6(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function zx(e,t,n){if(!t)return e;const r=n&&n.encode||u6,i=n&&n.serialize;let a;if(i?a=i(t,n):a=Y.isURLSearchParams(t)?t.toString():new gp(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class c0{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Y.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Hx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},d6=typeof URLSearchParams<"u"?URLSearchParams:gp,f6=typeof FormData<"u"?FormData:null,h6=typeof Blob<"u"?Blob:null,p6={isBrowser:!0,classes:{URLSearchParams:d6,FormData:f6,Blob:h6},protocols:["http","https","file","blob","url","data"]},vp=typeof window<"u"&&typeof document<"u",If=typeof navigator=="object"&&navigator||void 0,m6=vp&&(!If||["ReactNative","NativeScript","NS"].indexOf(If.product)<0),g6=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",v6=vp&&window.location.href||"http://localhost",b6=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:vp,hasStandardBrowserEnv:m6,hasStandardBrowserWebWorkerEnv:g6,navigator:If,origin:v6},Symbol.toStringTag,{value:"Module"})),_n={...b6,...p6};function y6(e,t){return Vl(e,new _n.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return _n.isNode&&Y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function x6(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _6(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function Vx(e){function t(n,r,i,a){let o=n[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),c=a>=n.length;return o=!o&&Y.isArray(i)?i.length:o,c?(Y.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!Y.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&Y.isArray(i[o])&&(i[o]=_6(i[o])),!s)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){const n={};return Y.forEachEntry(e,(r,i)=>{t(x6(r),i,n,0)}),n}return null}function w6(e,t,n){if(Y.isString(e))try{return(t||JSON.parse)(e),Y.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Es={transitional:Hx,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=Y.isObject(t);if(a&&Y.isHTMLForm(t)&&(t=new FormData(t)),Y.isFormData(t))return i?JSON.stringify(Vx(t)):t;if(Y.isArrayBuffer(t)||Y.isBuffer(t)||Y.isStream(t)||Y.isFile(t)||Y.isBlob(t)||Y.isReadableStream(t))return t;if(Y.isArrayBufferView(t))return t.buffer;if(Y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return y6(t,this.formSerializer).toString();if((s=Y.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Vl(s?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),w6(t)):t}],transformResponse:[function(t){const n=this.transitional||Es.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Y.isResponse(t)||Y.isReadableStream(t))return t;if(t&&Y.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Fe.from(s,Fe.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_n.classes.FormData,Blob:_n.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{Es.headers[e]={}});const C6=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),T6=e=>{const t={};let n,r,i;return e&&e.split(`
|
|
230
|
-
`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&C6[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},l0=Symbol("internals");function ao(e){return e&&String(e).trim().toLowerCase()}function Tc(e){return e===!1||e==null?e:Y.isArray(e)?e.map(Tc):String(e)}function k6(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const S6=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Md(e,t,n,r,i){if(Y.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Y.isString(t)){if(Y.isString(r))return t.indexOf(r)!==-1;if(Y.isRegExp(r))return r.test(t)}}function O6(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function E6(e,t){const n=Y.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,o){return this[r].call(this,t,i,a,o)},configurable:!0})})}class wn{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(s,c,l){const u=ao(c);if(!u)throw new Error("header name must be a non-empty string");const d=Y.findKey(i,u);(!d||i[d]===void 0||l===!0||l===void 0&&i[d]!==!1)&&(i[d||c]=Tc(s))}const o=(s,c)=>Y.forEach(s,(l,u)=>a(l,u,c));if(Y.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(Y.isString(t)&&(t=t.trim())&&!S6(t))o(T6(t),n);else if(Y.isHeaders(t))for(const[s,c]of t.entries())a(c,s,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=ao(t),t){const r=Y.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return k6(i);if(Y.isFunction(n))return n.call(this,i,r);if(Y.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ao(t),t){const r=Y.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Md(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=ao(o),o){const s=Y.findKey(r,o);s&&(!n||Md(r,r[s],s,n))&&(delete r[s],i=!0)}}return Y.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||Md(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return Y.forEach(this,(i,a)=>{const o=Y.findKey(r,a);if(o){n[o]=Tc(i),delete n[a];return}const s=t?O6(a):String(a).trim();s!==a&&delete n[a],n[s]=Tc(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Y.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Y.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
231
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[l0]=this[l0]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=ao(o);r[s]||(E6(i,o),r[s]=!0)}return Y.isArray(t)?t.forEach(a):a(t),this}}wn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Y.reduceDescriptors(wn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Y.freezeMethods(wn);function $d(e,t){const n=this||Es,r=t||n,i=wn.from(r.headers);let a=r.data;return Y.forEach(e,function(s){a=s.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function qx(e){return!!(e&&e.__CANCEL__)}function Da(e,t,n){Fe.call(this,e??"canceled",Fe.ERR_CANCELED,t,n),this.name="CanceledError"}Y.inherits(Da,Fe,{__CANCEL__:!0});function Yx(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Fe("Request failed with status code "+n.status,[Fe.ERR_BAD_REQUEST,Fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function M6(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function $6(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=r[a];o||(o=l),n[i]=c,r[i]=l;let d=a,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const h=u&&l-u;return h?Math.round(f*1e3/h):void 0}}function R6(e,t){let n=0,r=1e3/t,i,a;const o=(l,u=Date.now())=>{n=u,i=null,a&&(clearTimeout(a),a=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=r?o(l,u):(i=l,a||(a=setTimeout(()=>{a=null,o(i)},r-d)))},()=>i&&o(i)]}const Vc=(e,t,n=3)=>{let r=0;const i=$6(50,250);return R6(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,c=o-r,l=i(c),u=o<=s;r=o;const d={loaded:o,total:s,progress:s?o/s:void 0,bytes:c,rate:l||void 0,estimated:l&&s&&u?(s-o)/l:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},u0=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},d0=e=>(...t)=>Y.asap(()=>e(...t)),A6=_n.hasStandardBrowserEnv?function(){const t=_n.navigator&&/(msie|trident)/i.test(_n.navigator.userAgent),n=document.createElement("a");let r;function i(a){let o=a;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const s=Y.isString(o)?i(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),j6=_n.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const o=[e+"="+encodeURIComponent(t)];Y.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),Y.isString(r)&&o.push("path="+r),Y.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function P6(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function I6(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Gx(e,t){return e&&!P6(t)?I6(e,t):t}const f0=e=>e instanceof wn?{...e}:e;function Si(e,t){t=t||{};const n={};function r(l,u,d){return Y.isPlainObject(l)&&Y.isPlainObject(u)?Y.merge.call({caseless:d},l,u):Y.isPlainObject(u)?Y.merge({},u):Y.isArray(u)?u.slice():u}function i(l,u,d){if(Y.isUndefined(u)){if(!Y.isUndefined(l))return r(void 0,l,d)}else return r(l,u,d)}function a(l,u){if(!Y.isUndefined(u))return r(void 0,u)}function o(l,u){if(Y.isUndefined(u)){if(!Y.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function s(l,u,d){if(d in t)return r(l,u);if(d in e)return r(void 0,l)}const c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(l,u)=>i(f0(l),f0(u),!0)};return Y.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=c[u]||i,f=d(e[u],t[u],u);Y.isUndefined(f)&&d!==s||(n[u]=f)}),n}const Zx=e=>{const t=Si({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=wn.from(o),t.url=zx(Gx(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let c;if(Y.isFormData(n)){if(_n.hasStandardBrowserEnv||_n.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[l,...u]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([l||"multipart/form-data",...u].join("; "))}}if(_n.hasStandardBrowserEnv&&(r&&Y.isFunction(r)&&(r=r(t)),r||r!==!1&&A6(t.url))){const l=i&&a&&j6.read(a);l&&o.set(i,l)}return t},D6=typeof XMLHttpRequest<"u",N6=D6&&function(e){return new Promise(function(n,r){const i=Zx(e);let a=i.data;const o=wn.from(i.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:l}=i,u,d,f,h,g;function p(){h&&h(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(i.method.toUpperCase(),i.url,!0),b.timeout=i.timeout;function x(){if(!b)return;const y=wn.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:y,config:e,request:b};Yx(function($){n($),p()},function($){r($),p()},w),b=null}"onloadend"in b?b.onloadend=x:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(x)},b.onabort=function(){b&&(r(new Fe("Request aborted",Fe.ECONNABORTED,e,b)),b=null)},b.onerror=function(){r(new Fe("Network Error",Fe.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||Hx;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new Fe(C,w.clarifyTimeoutError?Fe.ETIMEDOUT:Fe.ECONNABORTED,e,b)),b=null},a===void 0&&o.setContentType(null),"setRequestHeader"in b&&Y.forEach(o.toJSON(),function(C,w){b.setRequestHeader(w,C)}),Y.isUndefined(i.withCredentials)||(b.withCredentials=!!i.withCredentials),s&&s!=="json"&&(b.responseType=i.responseType),l&&([f,g]=Vc(l,!0),b.addEventListener("progress",f)),c&&b.upload&&([d,h]=Vc(c),b.upload.addEventListener("progress",d),b.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(u=y=>{b&&(r(!y||y.type?new Da(null,e,b):y),b.abort(),b=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const _=M6(i.url);if(_&&_n.protocols.indexOf(_)===-1){r(new Fe("Unsupported protocol "+_+":",Fe.ERR_BAD_REQUEST,e));return}b.send(a||null)})},F6=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(l){if(!i){i=!0,s();const u=l instanceof Error?l:this.reason;r.abort(u instanceof Fe?u:new Da(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,a(new Fe(`timeout ${t} of ms exceeded`,Fe.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(a):l.removeEventListener("abort",a)}),e=null)};e.forEach(l=>l.addEventListener("abort",a));const{signal:c}=r;return c.unsubscribe=()=>Y.asap(s),c}},L6=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},B6=async function*(e,t){for await(const n of W6(e))yield*L6(n,t)},W6=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},h0=(e,t,n,r)=>{const i=B6(e,t);let a=0,o,s=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await i.next();if(l){s(),c.close();return}let d=u.byteLength;if(n){let f=a+=d;n(f)}c.enqueue(new Uint8Array(u))}catch(l){throw s(l),l}},cancel(c){return s(c),i.return()}},{highWaterMark:2})},ql=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Kx=ql&&typeof ReadableStream=="function",U6=ql&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Xx=(e,...t)=>{try{return!!e(...t)}catch{return!1}},z6=Kx&&Xx(()=>{let e=!1;const t=new Request(_n.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),p0=64*1024,Df=Kx&&Xx(()=>Y.isReadableStream(new Response("").body)),qc={stream:Df&&(e=>e.body)};ql&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!qc[t]&&(qc[t]=Y.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Fe(`Response type '${t}' is not supported`,Fe.ERR_NOT_SUPPORT,r)})})})(new Response);const H6=async e=>{if(e==null)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e))return(await new Request(_n.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Y.isArrayBufferView(e)||Y.isArrayBuffer(e))return e.byteLength;if(Y.isURLSearchParams(e)&&(e=e+""),Y.isString(e))return(await U6(e)).byteLength},V6=async(e,t)=>{const n=Y.toFiniteNumber(e.getContentLength());return n??H6(t)},q6=ql&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Zx(e);l=l?(l+"").toLowerCase():"text";let h=F6([i,a&&a.toAbortSignal()],o),g;const p=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(c&&z6&&n!=="get"&&n!=="head"&&(b=await V6(u,r))!==0){let w=new Request(t,{method:"POST",body:r,duplex:"half"}),T;if(Y.isFormData(r)&&(T=w.headers.get("content-type"))&&u.setContentType(T),w.body){const[$,R]=u0(b,Vc(d0(c)));r=h0(w.body,p0,$,R)}}Y.isString(d)||(d=d?"include":"omit");const x="credentials"in Request.prototype;g=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:x?d:void 0});let _=await fetch(g);const y=Df&&(l==="stream"||l==="response");if(Df&&(s||y&&p)){const w={};["status","statusText","headers"].forEach(S=>{w[S]=_[S]});const T=Y.toFiniteNumber(_.headers.get("content-length")),[$,R]=s&&u0(T,Vc(d0(s),!0))||[];_=new Response(h0(_.body,p0,$,()=>{R&&R(),p&&p()}),w)}l=l||"text";let C=await qc[Y.findKey(qc,l)||"text"](_,e);return!y&&p&&p(),await new Promise((w,T)=>{Yx(w,T,{data:C,headers:wn.from(_.headers),status:_.status,statusText:_.statusText,config:e,request:g})})}catch(x){throw p&&p(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new Fe("Network Error",Fe.ERR_NETWORK,e,g),{cause:x.cause||x}):Fe.from(x,x&&x.code,e,g)}}),Nf={http:s6,xhr:N6,fetch:q6};Y.forEach(Nf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const m0=e=>`- ${e}`,Y6=e=>Y.isFunction(e)||e===null||e===!1,Qx={getAdapter:e=>{e=Y.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a<t;a++){n=e[a];let o;if(r=n,!Y6(n)&&(r=Nf[(o=String(n)).toLowerCase()],r===void 0))throw new Fe(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+a]=r}if(!r){const a=Object.entries(i).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since :
|
|
232
|
-
`+a.map(m0).join(`
|
|
233
|
-
`):" "+m0(a[0]):"as no adapter specified";throw new Fe("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Nf};function Rd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Da(null,e)}function g0(e){return Rd(e),e.headers=wn.from(e.headers),e.data=$d.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Qx.getAdapter(e.adapter||Es.adapter)(e).then(function(r){return Rd(e),r.data=$d.call(e,e.transformResponse,r),r.headers=wn.from(r.headers),r},function(r){return qx(r)||(Rd(e),r&&r.response&&(r.response.data=$d.call(e,e.transformResponse,r.response),r.response.headers=wn.from(r.response.headers))),Promise.reject(r)})}const Jx="1.7.7",bp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{bp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const v0={};bp.transitional=function(t,n,r){function i(a,o){return"[Axios v"+Jx+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(t===!1)throw new Fe(i(o," has been removed"+(n?" in "+n:"")),Fe.ERR_DEPRECATED);return n&&!v0[o]&&(v0[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}};function G6(e,t,n){if(typeof e!="object")throw new Fe("options must be an object",Fe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const s=e[a],c=s===void 0||o(s,a,e);if(c!==!0)throw new Fe("option "+a+" must be "+c,Fe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Fe("Unknown option "+a,Fe.ERR_BAD_OPTION)}}const Ff={assertOptions:G6,validators:bp},$r=Ff.validators;class yi{constructor(t){this.defaults=t,this.interceptors={request:new c0,response:new c0}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
234
|
-
`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Si(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&Ff.assertOptions(r,{silentJSONParsing:$r.transitional($r.boolean),forcedJSONParsing:$r.transitional($r.boolean),clarifyTimeoutError:$r.transitional($r.boolean)},!1),i!=null&&(Y.isFunction(i)?n.paramsSerializer={serialize:i}:Ff.assertOptions(i,{encode:$r.function,serialize:$r.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&Y.merge(a.common,a[n.method]);a&&Y.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=wn.concat(o,a);const s=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,d=0,f;if(!c){const g=[g0.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,l),f=g.length,u=Promise.resolve(n);d<f;)u=u.then(g[d++],g[d++]);return u}f=s.length;let h=n;for(d=0;d<f;){const g=s[d++],p=s[d++];try{h=g(h)}catch(b){p.call(this,b);break}}try{u=g0.call(this,h)}catch(g){return Promise.reject(g)}for(d=0,f=l.length;d<f;)u=u.then(l[d++],l[d++]);return u}getUri(t){t=Si(this.defaults,t);const n=Gx(t.baseURL,t.url);return zx(n,t.params,t.paramsSerializer)}}Y.forEach(["delete","get","head","options"],function(t){yi.prototype[t]=function(n,r){return this.request(Si(r||{},{method:t,url:n,data:(r||{}).data}))}});Y.forEach(["post","put","patch"],function(t){function n(r){return function(a,o,s){return this.request(Si(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}yi.prototype[t]=n(),yi.prototype[t+"Form"]=n(!0)});class yp{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,s){r.reason||(r.reason=new Da(a,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new yp(function(i){t=i}),cancel:t}}}function Z6(e){return function(n){return e.apply(null,n)}}function K6(e){return Y.isObject(e)&&e.isAxiosError===!0}const Lf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Lf).forEach(([e,t])=>{Lf[t]=e});function e2(e){const t=new yi(e),n=Rx(yi.prototype.request,t);return Y.extend(n,yi.prototype,t,{allOwnKeys:!0}),Y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return e2(Si(e,i))},n}const $t=e2(Es);$t.Axios=yi;$t.CanceledError=Da;$t.CancelToken=yp;$t.isCancel=qx;$t.VERSION=Jx;$t.toFormData=Vl;$t.AxiosError=Fe;$t.Cancel=$t.CanceledError;$t.all=function(t){return Promise.all(t)};$t.spread=Z6;$t.isAxiosError=K6;$t.mergeConfig=Si;$t.AxiosHeaders=wn;$t.formToJSON=e=>Vx(Y.isHTMLForm(e)?new FormData(e):e);$t.getAdapter=Qx.getAdapter;$t.HttpStatusCode=Lf;$t.default=$t;var Js={};/*!
|
|
235
|
-
* cookie
|
|
236
|
-
* Copyright(c) 2012-2014 Roman Shtylman
|
|
237
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
238
|
-
* MIT Licensed
|
|
239
|
-
*/var b0;function X6(){if(b0)return Js;b0=1,Js.parse=o,Js.serialize=l;var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,r=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/;function o(h,g){if(typeof h!="string")throw new TypeError("argument str must be a string");var p={},b=h.length;if(b<2)return p;var x=g&&g.decode||u,_=0,y=0,C=0;do{if(y=h.indexOf("=",_),y===-1)break;if(C=h.indexOf(";",_),C===-1)C=b;else if(y>C){_=h.lastIndexOf(";",y-1)+1;continue}var w=s(h,_,y),T=c(h,y,w),$=h.slice(w,T);if(!t.call(p,$)){var R=s(h,y+1,C),S=c(h,C,R);h.charCodeAt(R)===34&&h.charCodeAt(S-1)===34&&(R++,S--);var k=h.slice(R,S);p[$]=f(k,x)}_=C+1}while(_<b);return p}function s(h,g,p){do{var b=h.charCodeAt(g);if(b!==32&&b!==9)return g}while(++g<p);return p}function c(h,g,p){for(;g>p;){var b=h.charCodeAt(--g);if(b!==32&&b!==9)return g+1}return p}function l(h,g,p){var b=p&&p.encode||encodeURIComponent;if(typeof b!="function")throw new TypeError("option encode is invalid");if(!n.test(h))throw new TypeError("argument name is invalid");var x=b(g);if(!r.test(x))throw new TypeError("argument val is invalid");var _=h+"="+x;if(!p)return _;if(p.maxAge!=null){var y=Math.floor(p.maxAge);if(!isFinite(y))throw new TypeError("option maxAge is invalid");_+="; Max-Age="+y}if(p.domain){if(!i.test(p.domain))throw new TypeError("option domain is invalid");_+="; Domain="+p.domain}if(p.path){if(!a.test(p.path))throw new TypeError("option path is invalid");_+="; Path="+p.path}if(p.expires){var C=p.expires;if(!d(C)||isNaN(C.valueOf()))throw new TypeError("option expires is invalid");_+="; Expires="+C.toUTCString()}if(p.httpOnly&&(_+="; HttpOnly"),p.secure&&(_+="; Secure"),p.partitioned&&(_+="; Partitioned"),p.priority){var w=typeof p.priority=="string"?p.priority.toLowerCase():p.priority;switch(w){case"low":_+="; Priority=Low";break;case"medium":_+="; Priority=Medium";break;case"high":_+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(p.sameSite){var T=typeof p.sameSite=="string"?p.sameSite.toLowerCase():p.sameSite;switch(T){case!0:_+="; SameSite=Strict";break;case"lax":_+="; SameSite=Lax";break;case"strict":_+="; SameSite=Strict";break;case"none":_+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return _}function u(h){return h.indexOf("%")!==-1?decodeURIComponent(h):h}function d(h){return e.call(h)==="[object Date]"}function f(h,g){try{return g(h)}catch{return h}}return Js}var kc=X6();function Q6(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function J6(e){return typeof e=="string"?kc.parse(e):typeof e=="object"&&e!==null?e:{}}function Ad(e,t={}){const n=e$(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function e$(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class t${constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=kc.parse(document.cookie),this._checkChanges(i)};const r=typeof document>"u"?"":document.cookie;this.cookies=J6(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=Q6()}_emitChange(t){for(let n=0;n<this.changeListeners.length;++n)this.changeListeners[n](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(r=>{t[r]!==this.cookies[r]&&this._emitChange({name:r,value:Ad(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),Ad(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=Ad(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const i=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:i}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=kc.serialize(t,i,r)),this._emitChange({name:t,value:n,options:r})}remove(t,n){const r=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=kc.serialize(t,"",r)),this._emitChange({name:t,value:void 0,options:n})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const n$=ie.createContext(new t$);var ec={exports:{}},lt={};/** @license React v16.13.1
|
|
240
|
-
* react-is.production.min.js
|
|
241
|
-
*
|
|
242
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
243
|
-
*
|
|
244
|
-
* This source code is licensed under the MIT license found in the
|
|
245
|
-
* LICENSE file in the root directory of this source tree.
|
|
246
|
-
*/var y0;function r$(){if(y0)return lt;y0=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,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function y(w){if(typeof w=="object"&&w!==null){var T=w.$$typeof;switch(T){case t:switch(w=w.type,w){case c:case l:case r:case a:case i:case d:return w;default:switch(w=w&&w.$$typeof,w){case s:case u:case g:case h:case o:return w;default:return T}}case n:return T}}}function C(w){return y(w)===l}return lt.AsyncMode=c,lt.ConcurrentMode=l,lt.ContextConsumer=s,lt.ContextProvider=o,lt.Element=t,lt.ForwardRef=u,lt.Fragment=r,lt.Lazy=g,lt.Memo=h,lt.Portal=n,lt.Profiler=a,lt.StrictMode=i,lt.Suspense=d,lt.isAsyncMode=function(w){return C(w)||y(w)===c},lt.isConcurrentMode=C,lt.isContextConsumer=function(w){return y(w)===s},lt.isContextProvider=function(w){return y(w)===o},lt.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},lt.isForwardRef=function(w){return y(w)===u},lt.isFragment=function(w){return y(w)===r},lt.isLazy=function(w){return y(w)===g},lt.isMemo=function(w){return y(w)===h},lt.isPortal=function(w){return y(w)===n},lt.isProfiler=function(w){return y(w)===a},lt.isStrictMode=function(w){return y(w)===i},lt.isSuspense=function(w){return y(w)===d},lt.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===l||w===a||w===i||w===d||w===f||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===h||w.$$typeof===o||w.$$typeof===s||w.$$typeof===u||w.$$typeof===b||w.$$typeof===x||w.$$typeof===_||w.$$typeof===p)},lt.typeOf=y,lt}var ut={};/** @license React v16.13.1
|
|
247
|
-
* react-is.development.js
|
|
248
|
-
*
|
|
249
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
250
|
-
*
|
|
251
|
-
* This source code is licensed under the MIT license found in the
|
|
252
|
-
* LICENSE file in the root directory of this source tree.
|
|
253
|
-
*/var x0;function i$(){return x0||(x0=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,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function y(A){return typeof A=="string"||typeof A=="function"||A===r||A===l||A===a||A===i||A===d||A===f||typeof A=="object"&&A!==null&&(A.$$typeof===g||A.$$typeof===h||A.$$typeof===o||A.$$typeof===s||A.$$typeof===u||A.$$typeof===b||A.$$typeof===x||A.$$typeof===_||A.$$typeof===p)}function C(A){if(typeof A=="object"&&A!==null){var se=A.$$typeof;switch(se){case t:var ce=A.type;switch(ce){case c:case l:case r:case a:case i:case d:return ce;default:var ue=ce&&ce.$$typeof;switch(ue){case s:case u:case g:case h:case o:return ue;default:return se}}case n:return se}}}var w=c,T=l,$=s,R=o,S=t,k=u,O=r,D=g,E=h,M=n,j=a,F=i,W=d,B=!1;function U(A){return B||(B=!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.")),N(A)||C(A)===c}function N(A){return C(A)===l}function V(A){return C(A)===s}function X(A){return C(A)===o}function ne(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function K(A){return C(A)===u}function J(A){return C(A)===r}function q(A){return C(A)===g}function G(A){return C(A)===h}function z(A){return C(A)===n}function L(A){return C(A)===a}function H(A){return C(A)===i}function ee(A){return C(A)===d}ut.AsyncMode=w,ut.ConcurrentMode=T,ut.ContextConsumer=$,ut.ContextProvider=R,ut.Element=S,ut.ForwardRef=k,ut.Fragment=O,ut.Lazy=D,ut.Memo=E,ut.Portal=M,ut.Profiler=j,ut.StrictMode=F,ut.Suspense=W,ut.isAsyncMode=U,ut.isConcurrentMode=N,ut.isContextConsumer=V,ut.isContextProvider=X,ut.isElement=ne,ut.isForwardRef=K,ut.isFragment=J,ut.isLazy=q,ut.isMemo=G,ut.isPortal=z,ut.isProfiler=L,ut.isStrictMode=H,ut.isSuspense=ee,ut.isValidElementType=y,ut.typeOf=C}()),ut}var _0;function a$(){return _0||(_0=1,process.env.NODE_ENV==="production"?ec.exports=r$():ec.exports=i$()),ec.exports}var jd,w0;function o$(){if(w0)return jd;w0=1;var e=a$(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=r,a[e.Memo]=i;function o(g){return e.isMemo(g)?i:a[g.$$typeof]||t}var s=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function h(g,p,b){if(typeof p!="string"){if(f){var x=d(p);x&&x!==f&&h(g,x,b)}var _=c(p);l&&(_=_.concat(l(p)));for(var y=o(g),C=o(p),w=0;w<_.length;++w){var T=_[w];if(!n[T]&&!(b&&b[T])&&!(C&&C[T])&&!(y&&y[T])){var $=u(p,T);try{s(g,T,$)}catch{}}}}return g}return jd=h,jd}o$();function s$(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function xp(e,t){const n=m.useContext(n$);if(!n)throw new Error("Missing <CookiesProvider>");const i=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[a,o]=m.useState(()=>n.getAll(i));s$()&&m.useLayoutEffect(()=>{function u(){const d=n.getAll(i);c$(e||null,d,a)&&o(d)}return n.addChangeListener(u),()=>{n.removeChangeListener(u)}},[n,a]);const s=m.useMemo(()=>n.set.bind(n),[n]),c=m.useMemo(()=>n.remove.bind(n),[n]),l=m.useMemo(()=>n.update.bind(n),[n]);return[a,s,c,l]}function c$(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const l$=()=>{const{axiosOptions:e,cookieDomain:t}=m.useContext(Pt),[,n,r]=xp(["Authorization"]),i=$t.create(e),a=m.useCallback(()=>{const l=localStorage.getItem("token");return l?{token:l,expiresOn:ky(new Date(Date.now()),1)}:null},[]),o=m.useCallback(()=>{const l=a();return l!==null&&l.token.length>0},[a]),s=m.useCallback(async(l,u)=>i.post("/user/login",{kid:l,password:u}).then(d=>(localStorage.setItem("token",d.data),n("Authorization",d.data,{path:"/",secure:!0,sameSite:"none",domain:t,expires:wy(new Date(Date.now()),24)}),d.data)).catch(d=>(console.log(d),null)),[i,n,t]),c=m.useCallback(()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),r("Authorization")},[r]);return{isAuthenticated:o,login:s,logout:c,getToken:a}},u$=()=>{const[,,e]=xp(["Authorization"]),{msalScopes:t,msalExtraScopes:n}=m.useContext(Tp),{instance:r,inProgress:i}=hg.useMsal(),a=hg.useIsAuthenticated(),o=m.useCallback(async()=>{var h;const d=r.getActiveAccount(),f=d??((h=r.getAllAccounts())==null?void 0:h.at(0))??void 0;return f?(d||r.setActiveAccount(f),r.acquireTokenSilent({scopes:t,account:f}).then(g=>({token:g.accessToken,expiresOn:g.expiresOn??new Date(Date.now())})).catch(g=>{if(console.error("Error acquiring token",g),g instanceof fg.InteractionRequiredAuthError)return console.log("Silent token acquisition failed. Acquiring token using redirect"),r.acquireTokenRedirect({scopes:t,extraScopesToConsent:n}),null;throw g})):null},[r,t,n]),s=m.useCallback(()=>a,[a]),c=m.useCallback(()=>!s()&&i!==fg.InteractionStatus.None,[s,i]),l=m.useCallback(async()=>r.loginRedirect({scopes:t,extraScopesToConsent:n}).then(()=>"").catch(()=>null),[r,t,n]),u=m.useCallback(()=>{r.logout(),localStorage.removeItem("user"),e("Authorization")},[e,r]);return{isAuthenticated:s,isAuthenticating:c,login:l,logout:u,getToken:o}},t2=()=>{const{useMsal:e}=m.useContext(Tp),t=l$(),n=u$();return{isAuthenticated:e?n.isAuthenticated:t.isAuthenticated,isAuthenticating:e?n.isAuthenticating:()=>!1,getToken:e?n.getToken:t.getToken,login:e?n.login:t.login,logout:e?n.logout:t.logout}},d$="_toast_1s57i_1",oo={toast:d$},f$=e=>{switch(e){case"success":return 5e3;case"info":return 5e3;case"danger":return 1e4;case"warning":return 1e4;case"prompt":return 1e4;default:return 5e3}},Yl=()=>({addNotification:m.useCallback((t,n)=>{const r=Cx(t),i=f$(n),a=v.jsxs(v.Fragment,{children:[r,v.jsx(lx,{onClick:()=>Zi.dismiss(r),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});switch(n){case"success":{Zi(a,{id:r,duration:i,position:"top-center",icon:v.jsx(KO,{size:12}),className:Q("luminus-toast-success rounded shadow bg-success",oo.toast)});break}case"danger":{Zi(a,{id:r,duration:i,position:"top-center",icon:v.jsx(BO,{size:12}),className:Q("luminus-toast-danger rounded shadow bg-danger",oo.toast)});break}case"warning":{Zi(a,{id:r,duration:i,position:"top-center",icon:v.jsx(DO,{size:12}),className:Q("luminus-toast-warning rounded shadow bg-warning",oo.toast)});break}case"info":{Zi(a,{id:r,duration:i,position:"top-center",icon:v.jsx(FO,{size:12}),className:Q("luminus-toast-info rounded shadow bg-info",oo.toast)});break}case"prompt":{Zi(a,{id:r,duration:i,position:"top-center",icon:v.jsx(LO,{size:12}),className:Q("luminus-toast-prompt rounded shadow bg-light",oo.toast)});break}}},[])}),h$=$t.CancelToken,Gl=e=>{const{authenticated:t=!0,differentBaseUrl:n,silent:r=!1,customToken:i,ignoreDelegation:a,noToastOnStatus:o}={...e},{language:s,axiosOptions:c,texts:{axios:l}}=m.useContext(Pt),{delegation:u}=m.useContext(g2),d=m.useMemo(()=>(u==null?void 0:u.id)??null,[u==null?void 0:u.id]),{addNotification:f}=Yl(),{getToken:h}=t2(),g=m.useMemo(()=>$t.create(c),[c]),p=m.useCallback(async x=>{var _,y,C;if(t&&!x.headers.Authorization){const w=i?{token:i,expiresOn:wy(new Date(Date.now()),1)}:await h();if(!w)return console.log("No bearer token"),Promise.reject(new Error("No bearer token"));if(n4(w.expiresOn))return console.log("Token expired"),Promise.reject(new Error("Token expired"));x.headers.Authorization=`Bearer ${w.token}`}return d!==null&&!a&&(x.headers.DelegationId=d.toString()),(_=x.url)!=null&&_.includes("culture=")?x.url=(y=x.url)==null?void 0:y.replace(/culture=[a-z]{2}/,`culture=${s}`):x.url=`${x.url}${(C=x.url)!=null&&C.includes("?")?"&":"?"}culture=${s}`,x},[t,h,s,i,d,a]),b=m.useCallback(x=>{var C,w;if(console.log(x),$t.isCancel(x))return Promise.reject(x);const _=fp(x);if(_.length>0){const T=_.find($=>$.name.toLowerCase()==="others");return T?(!r&&f(T.errors,"danger"),Promise.reject(x)):(!r&&f(l.validationError,"warning"),Promise.reject(x))}const y=_x(x);return y!==null?(!r&&f(`${l.permissionError}: ${Bo(", ",...y)}`,"danger"),Promise.reject(x)):(o??[]).includes((C=x.response)==null?void 0:C.status)?Promise.reject(x):((w=x.response)==null?void 0:w.status)===403?(!r&&f(l.forbiddenError,"danger"),Promise.reject(x)):x.message&&x.message==="Network Error"?(!r&&f(l.networkError,"danger"),Promise.reject(x)):($t.isCancel(x)||(x.response||x.request)&&!r&&f(l.unexpectedError,"danger"),Promise.reject(x))},[f,l.forbiddenError,l.networkError,l.permissionError,l.unexpectedError,l.validationError,r,o]);return m.useEffect(()=>{n&&(g.defaults.baseURL=n),g.interceptors.request.clear(),g.interceptors.response.clear();const x=g.interceptors.request.use(p,y=>Promise.reject(y)),_=g.interceptors.response.use(y=>y,b);return()=>{g.interceptors.request.eject(x),g.interceptors.response.eject(_)}},[g.defaults,g.interceptors.request,g.interceptors.response,n,p,b]),g};let so;const _p=()=>{const{show:e,text:t,showConfirm:n,hideConfirm:r,textSm:i}=m.useContext(dx),a=()=>{r()};return{confirm:async(l,u)=>(n(l,u),new Promise(d=>{so=d})),onConfirm:()=>{a(),so&&so(!0)},onCancel:()=>{a(),so&&so(!1)},show:e,text:t,textSm:i}};var Qe;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const o of i)a[o]=o;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),o={};for(const s of a)o[s]=i[s];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},e.find=(i,a)=>{for(const o of i)if(a(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(Qe||(Qe={}));var Bf;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Bf||(Bf={}));const me=Qe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Nr=e=>{switch(typeof e){case"undefined":return me.undefined;case"string":return me.string;case"number":return isNaN(e)?me.nan:me.number;case"boolean":return me.boolean;case"function":return me.function;case"bigint":return me.bigint;case"symbol":return me.symbol;case"object":return Array.isArray(e)?me.array:e===null?me.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?me.promise:typeof Map<"u"&&e instanceof Map?me.map:typeof Set<"u"&&e instanceof Set?me.set:typeof Date<"u"&&e instanceof Date?me.date:me.object;default:return me.unknown}},oe=Qe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),p$=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Sn extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,c=0;for(;c<o.path.length;){const l=o.path[c];c===o.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(n(o))):s[l]=s[l]||{_errors:[]},s=s[l],c++}}};return i(this),r}static assert(t){if(!(t instanceof Sn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Qe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Sn.create=e=>new Sn(e);const wa=(e,t)=>{let n;switch(e.code){case oe.invalid_type:e.received===me.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case oe.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Qe.jsonStringifyReplacer)}`;break;case oe.unrecognized_keys:n=`Unrecognized key(s) in object: ${Qe.joinValues(e.keys,", ")}`;break;case oe.invalid_union:n="Invalid input";break;case oe.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Qe.joinValues(e.options)}`;break;case oe.invalid_enum_value:n=`Invalid enum value. Expected ${Qe.joinValues(e.options)}, received '${e.received}'`;break;case oe.invalid_arguments:n="Invalid function arguments";break;case oe.invalid_return_type:n="Invalid function return type";break;case oe.invalid_date:n="Invalid date";break;case oe.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Qe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case oe.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case oe.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case oe.custom:n="Invalid input";break;case oe.invalid_intersection_types:n="Intersection results could not be merged";break;case oe.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case oe.not_finite:n="Number must be finite";break;default:n=t.defaultError,Qe.assertNever(e)}return{message:n}};let n2=wa;function m$(e){n2=e}function Yc(){return n2}const Gc=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s="";const c=r.filter(l=>!!l).slice().reverse();for(const l of c)s=l(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}},g$=[];function he(e,t){const n=Yc(),r=Gc({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===wa?void 0:wa].filter(i=>!!i)});e.common.issues.push(r)}class on{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return je;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const a=await i.key,o=await i.value;r.push({key:a,value:o})}return on.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:o}=i;if(a.status==="aborted"||o.status==="aborted")return je;a.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(r[a.value]=o.value)}return{status:t.value,value:r}}}const je=Object.freeze({status:"aborted"}),ra=e=>({status:"dirty",value:e}),pn=e=>({status:"valid",value:e}),Wf=e=>e.status==="aborted",Uf=e=>e.status==="dirty",Uo=e=>e.status==="valid",zo=e=>typeof Promise<"u"&&e instanceof Promise;function Zc(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function r2(e,t,n,r,i){if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var _e;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(_e||(_e={}));var wo,Co;class er{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const C0=(e,t)=>{if(Uo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Sn(e.common.issues);return this._error=n,this._error}}};function Le(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(o,s)=>{var c,l;const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??s.defaultError}:typeof s.data>"u"?{message:(c=u??r)!==null&&c!==void 0?c:s.defaultError}:o.code!=="invalid_type"?{message:s.defaultError}:{message:(l=u??n)!==null&&l!==void 0?l:s.defaultError}},description:i}}class Ue{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Nr(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Nr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new on,ctx:{common:t.parent.common,data:t.data,parsedType:Nr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(zo(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Nr(t)},a=this._parseSync({data:t,path:i.path,parent:i});return C0(i,a)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Nr(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(zo(i)?i:Promise.resolve(i));return C0(r,a)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,a)=>{const o=t(i),s=()=>a.addIssue({code:oe.custom,...r(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new Hn({schema:this,typeName:Re.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Qn.create(this,this._def)}nullable(){return Gr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Un.create(this,this._def)}promise(){return Ta.create(this,this._def)}or(t){return Yo.create([this,t],this._def)}and(t){return Go.create(this,t,this._def)}transform(t){return new Hn({...Le(this._def),schema:this,typeName:Re.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Jo({...Le(this._def),innerType:this,defaultValue:n,typeName:Re.ZodDefault})}brand(){return new wp({typeName:Re.ZodBranded,type:this,...Le(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new es({...Le(this._def),innerType:this,catchValue:n,typeName:Re.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Ms.create(this,t)}readonly(){return ts.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const v$=/^c[^\s-]{8,}$/i,b$=/^[0-9a-z]+$/,y$=/^[0-9A-HJKMNP-TV-Z]{26}$/,x$=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,_$=/^[a-z0-9_-]{21}$/i,w$=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,C$=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,T$="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Pd;const k$=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,S$=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,O$=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,i2="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",E$=new RegExp(`^${i2}$`);function a2(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function M$(e){return new RegExp(`^${a2(e)}$`)}function o2(e){let t=`${i2}T${a2(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function $$(e,t){return!!((t==="v4"||!t)&&k$.test(e)||(t==="v6"||!t)&&S$.test(e))}class Bn extends Ue{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==me.string){const a=this._getOrReturnCtx(t);return he(a,{code:oe.invalid_type,expected:me.string,received:a.parsedType}),je}const r=new on;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),he(i,{code:oe.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="max")t.data.length>a.value&&(i=this._getOrReturnCtx(t,i),he(i,{code:oe.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const o=t.data.length>a.value,s=t.data.length<a.value;(o||s)&&(i=this._getOrReturnCtx(t,i),o?he(i,{code:oe.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):s&&he(i,{code:oe.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind==="email")C$.test(t.data)||(i=this._getOrReturnCtx(t,i),he(i,{validation:"email",code:oe.invalid_string,message:a.message}),r.dirty());else if(a.kind==="emoji")Pd||(Pd=new RegExp(T$,"u")),Pd.test(t.data)||(i=this._getOrReturnCtx(t,i),he(i,{validation:"emoji",code:oe.invalid_string,message:a.message}),r.dirty());else if(a.kind==="uuid")x$.test(t.data)||(i=this._getOrReturnCtx(t,i),he(i,{validation:"uuid",code:oe.invalid_string,message:a.message}),r.dirty());else if(a.kind==="nanoid")_$.test(t.data)||(i=this._getOrReturnCtx(t,i),he(i,{validation:"nanoid",code:oe.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid")v$.test(t.data)||(i=this._getOrReturnCtx(t,i),he(i,{validation:"cuid",code:oe.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid2")b$.test(t.data)||(i=this._getOrReturnCtx(t,i),he(i,{validation:"cuid2",code:oe.invalid_string,message:a.message}),r.dirty());else if(a.kind==="ulid")y$.test(t.data)||(i=this._getOrReturnCtx(t,i),he(i,{validation:"ulid",code:oe.invalid_string,message:a.message}),r.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),he(i,{validation:"url",code:oe.invalid_string,message:a.message}),r.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),he(i,{validation:"regex",code:oe.invalid_string,message:a.message}),r.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(t,i),he(i,{code:oe.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),r.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(i=this._getOrReturnCtx(t,i),he(i,{code:oe.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),he(i,{code:oe.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind==="datetime"?o2(a).test(t.data)||(i=this._getOrReturnCtx(t,i),he(i,{code:oe.invalid_string,validation:"datetime",message:a.message}),r.dirty()):a.kind==="date"?E$.test(t.data)||(i=this._getOrReturnCtx(t,i),he(i,{code:oe.invalid_string,validation:"date",message:a.message}),r.dirty()):a.kind==="time"?M$(a).test(t.data)||(i=this._getOrReturnCtx(t,i),he(i,{code:oe.invalid_string,validation:"time",message:a.message}),r.dirty()):a.kind==="duration"?w$.test(t.data)||(i=this._getOrReturnCtx(t,i),he(i,{validation:"duration",code:oe.invalid_string,message:a.message}),r.dirty()):a.kind==="ip"?$$(t.data,a.version)||(i=this._getOrReturnCtx(t,i),he(i,{validation:"ip",code:oe.invalid_string,message:a.message}),r.dirty()):a.kind==="base64"?O$.test(t.data)||(i=this._getOrReturnCtx(t,i),he(i,{validation:"base64",code:oe.invalid_string,message:a.message}),r.dirty()):Qe.assertNever(a);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:oe.invalid_string,..._e.errToObj(r)})}_addCheck(t){return new Bn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",..._e.errToObj(t)})}url(t){return this._addCheck({kind:"url",..._e.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",..._e.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",..._e.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",..._e.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",..._e.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",..._e.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",..._e.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",..._e.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",..._e.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,..._e.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,..._e.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",..._e.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,..._e.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,..._e.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,..._e.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,..._e.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,..._e.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,..._e.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,..._e.errToObj(n)})}nonempty(t){return this.min(1,_e.errToObj(t))}trim(){return new Bn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Bn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Bn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Bn.create=e=>{var t;return new Bn({checks:[],typeName:Re.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Le(e)})};function R$(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),o=parseInt(t.toFixed(i).replace(".",""));return a%o/Math.pow(10,i)}class Vr extends Ue{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==me.number){const a=this._getOrReturnCtx(t);return he(a,{code:oe.invalid_type,expected:me.number,received:a.parsedType}),je}let r;const i=new on;for(const a of this._def.checks)a.kind==="int"?Qe.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),he(r,{code:oe.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),he(r,{code:oe.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),he(r,{code:oe.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?R$(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),he(r,{code:oe.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),he(r,{code:oe.not_finite,message:a.message}),i.dirty()):Qe.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,_e.toString(n))}gt(t,n){return this.setLimit("min",t,!1,_e.toString(n))}lte(t,n){return this.setLimit("max",t,!0,_e.toString(n))}lt(t,n){return this.setLimit("max",t,!1,_e.toString(n))}setLimit(t,n,r,i){return new Vr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:_e.toString(i)}]})}_addCheck(t){return new Vr({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:_e.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:_e.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:_e.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:_e.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:_e.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:_e.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:_e.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:_e.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:_e.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Qe.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Vr.create=e=>new Vr({checks:[],typeName:Re.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Le(e)});class qr extends Ue{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==me.bigint){const a=this._getOrReturnCtx(t);return he(a,{code:oe.invalid_type,expected:me.bigint,received:a.parsedType}),je}let r;const i=new on;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),he(r,{code:oe.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),he(r,{code:oe.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),he(r,{code:oe.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):Qe.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,_e.toString(n))}gt(t,n){return this.setLimit("min",t,!1,_e.toString(n))}lte(t,n){return this.setLimit("max",t,!0,_e.toString(n))}lt(t,n){return this.setLimit("max",t,!1,_e.toString(n))}setLimit(t,n,r,i){return new qr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:_e.toString(i)}]})}_addCheck(t){return new qr({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:_e.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:_e.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:_e.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:_e.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:_e.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}qr.create=e=>{var t;return new qr({checks:[],typeName:Re.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Le(e)})};class Ho extends Ue{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==me.boolean){const r=this._getOrReturnCtx(t);return he(r,{code:oe.invalid_type,expected:me.boolean,received:r.parsedType}),je}return pn(t.data)}}Ho.create=e=>new Ho({typeName:Re.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Le(e)});class Oi extends Ue{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==me.date){const a=this._getOrReturnCtx(t);return he(a,{code:oe.invalid_type,expected:me.date,received:a.parsedType}),je}if(isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return he(a,{code:oe.invalid_date}),je}const r=new on;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),he(i,{code:oe.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),r.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(i=this._getOrReturnCtx(t,i),he(i,{code:oe.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):Qe.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Oi({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:_e.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:_e.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Oi.create=e=>new Oi({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Re.ZodDate,...Le(e)});class Kc extends Ue{_parse(t){if(this._getType(t)!==me.symbol){const r=this._getOrReturnCtx(t);return he(r,{code:oe.invalid_type,expected:me.symbol,received:r.parsedType}),je}return pn(t.data)}}Kc.create=e=>new Kc({typeName:Re.ZodSymbol,...Le(e)});class Vo extends Ue{_parse(t){if(this._getType(t)!==me.undefined){const r=this._getOrReturnCtx(t);return he(r,{code:oe.invalid_type,expected:me.undefined,received:r.parsedType}),je}return pn(t.data)}}Vo.create=e=>new Vo({typeName:Re.ZodUndefined,...Le(e)});class qo extends Ue{_parse(t){if(this._getType(t)!==me.null){const r=this._getOrReturnCtx(t);return he(r,{code:oe.invalid_type,expected:me.null,received:r.parsedType}),je}return pn(t.data)}}qo.create=e=>new qo({typeName:Re.ZodNull,...Le(e)});class Ca extends Ue{constructor(){super(...arguments),this._any=!0}_parse(t){return pn(t.data)}}Ca.create=e=>new Ca({typeName:Re.ZodAny,...Le(e)});class xi extends Ue{constructor(){super(...arguments),this._unknown=!0}_parse(t){return pn(t.data)}}xi.create=e=>new xi({typeName:Re.ZodUnknown,...Le(e)});class Tr extends Ue{_parse(t){const n=this._getOrReturnCtx(t);return he(n,{code:oe.invalid_type,expected:me.never,received:n.parsedType}),je}}Tr.create=e=>new Tr({typeName:Re.ZodNever,...Le(e)});class Xc extends Ue{_parse(t){if(this._getType(t)!==me.undefined){const r=this._getOrReturnCtx(t);return he(r,{code:oe.invalid_type,expected:me.void,received:r.parsedType}),je}return pn(t.data)}}Xc.create=e=>new Xc({typeName:Re.ZodVoid,...Le(e)});class Un extends Ue{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==me.array)return he(n,{code:oe.invalid_type,expected:me.array,received:n.parsedType}),je;if(i.exactLength!==null){const o=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(o||s)&&(he(n,{code:o?oe.too_big:oe.too_small,minimum:s?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(he(n,{code:oe.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(he(n,{code:oe.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,s)=>i.type._parseAsync(new er(n,o,n.path,s)))).then(o=>on.mergeArray(r,o));const a=[...n.data].map((o,s)=>i.type._parseSync(new er(n,o,n.path,s)));return on.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new Un({...this._def,minLength:{value:t,message:_e.toString(n)}})}max(t,n){return new Un({...this._def,maxLength:{value:t,message:_e.toString(n)}})}length(t,n){return new Un({...this._def,exactLength:{value:t,message:_e.toString(n)}})}nonempty(t){return this.min(1,t)}}Un.create=(e,t)=>new Un({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Re.ZodArray,...Le(t)});function na(e){if(e instanceof jt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Qn.create(na(r))}return new jt({...e._def,shape:()=>t})}else return e instanceof Un?new Un({...e._def,type:na(e.element)}):e instanceof Qn?Qn.create(na(e.unwrap())):e instanceof Gr?Gr.create(na(e.unwrap())):e instanceof tr?tr.create(e.items.map(t=>na(t))):e}class jt extends Ue{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Qe.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==me.object){const l=this._getOrReturnCtx(t);return he(l,{code:oe.invalid_type,expected:me.object,received:l.parsedType}),je}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof Tr&&this._def.unknownKeys==="strip"))for(const l in i.data)o.includes(l)||s.push(l);const c=[];for(const l of o){const u=a[l],d=i.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new er(i,d,i.path,l)),alwaysSet:l in i.data})}if(this._def.catchall instanceof Tr){const l=this._def.unknownKeys;if(l==="passthrough")for(const u of s)c.push({key:{status:"valid",value:u},value:{status:"valid",value:i.data[u]}});else if(l==="strict")s.length>0&&(he(i,{code:oe.unrecognized_keys,keys:s}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const u of s){const d=i.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new er(i,d,i.path,u)),alwaysSet:u in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const l=[];for(const u of c){const d=await u.key,f=await u.value;l.push({key:d,value:f,alwaysSet:u.alwaysSet})}return l}).then(l=>on.mergeObjectSync(r,l)):on.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return _e.errToObj,new jt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,a,o,s;const c=(o=(a=(i=this._def).errorMap)===null||a===void 0?void 0:a.call(i,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=_e.errToObj(t).message)!==null&&s!==void 0?s:c}:{message:c}}}:{}})}strip(){return new jt({...this._def,unknownKeys:"strip"})}passthrough(){return new jt({...this._def,unknownKeys:"passthrough"})}extend(t){return new jt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new jt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Re.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new jt({...this._def,catchall:t})}pick(t){const n={};return Qe.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new jt({...this._def,shape:()=>n})}omit(t){const n={};return Qe.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new jt({...this._def,shape:()=>n})}deepPartial(){return na(this)}partial(t){const n={};return Qe.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new jt({...this._def,shape:()=>n})}required(t){const n={};return Qe.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof Qn;)a=a._def.innerType;n[r]=a}}),new jt({...this._def,shape:()=>n})}keyof(){return s2(Qe.objectKeys(this.shape))}}jt.create=(e,t)=>new jt({shape:()=>e,unknownKeys:"strip",catchall:Tr.create(),typeName:Re.ZodObject,...Le(t)});jt.strictCreate=(e,t)=>new jt({shape:()=>e,unknownKeys:"strict",catchall:Tr.create(),typeName:Re.ZodObject,...Le(t)});jt.lazycreate=(e,t)=>new jt({shape:e,unknownKeys:"strip",catchall:Tr.create(),typeName:Re.ZodObject,...Le(t)});class Yo extends Ue{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const s of a)if(s.result.status==="valid")return s.result;for(const s of a)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const o=a.map(s=>new Sn(s.ctx.common.issues));return he(n,{code:oe.invalid_union,unionErrors:o}),je}if(n.common.async)return Promise.all(r.map(async a=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(i);{let a;const o=[];for(const c of r){const l={...n,common:{...n.common,issues:[]},parent:null},u=c._parseSync({data:n.data,path:n.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!a&&(a={result:u,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const s=o.map(c=>new Sn(c));return he(n,{code:oe.invalid_union,unionErrors:s}),je}}get options(){return this._def.options}}Yo.create=(e,t)=>new Yo({options:e,typeName:Re.ZodUnion,...Le(t)});const hr=e=>e instanceof Ko?hr(e.schema):e instanceof Hn?hr(e.innerType()):e instanceof Xo?[e.value]:e instanceof Yr?e.options:e instanceof Qo?Qe.objectValues(e.enum):e instanceof Jo?hr(e._def.innerType):e instanceof Vo?[void 0]:e instanceof qo?[null]:e instanceof Qn?[void 0,...hr(e.unwrap())]:e instanceof Gr?[null,...hr(e.unwrap())]:e instanceof wp||e instanceof ts?hr(e.unwrap()):e instanceof es?hr(e._def.innerType):[];class Zl extends Ue{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==me.object)return he(n,{code:oe.invalid_type,expected:me.object,received:n.parsedType}),je;const r=this.discriminator,i=n.data[r],a=this.optionsMap.get(i);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(he(n,{code:oe.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),je)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const a of n){const o=hr(a.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of o){if(i.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);i.set(s,a)}}return new Zl({typeName:Re.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...Le(r)})}}function zf(e,t){const n=Nr(e),r=Nr(t);if(e===t)return{valid:!0,data:e};if(n===me.object&&r===me.object){const i=Qe.objectKeys(t),a=Qe.objectKeys(e).filter(s=>i.indexOf(s)!==-1),o={...e,...t};for(const s of a){const c=zf(e[s],t[s]);if(!c.valid)return{valid:!1};o[s]=c.data}return{valid:!0,data:o}}else if(n===me.array&&r===me.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a<e.length;a++){const o=e[a],s=t[a],c=zf(o,s);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return n===me.date&&r===me.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Go extends Ue{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(a,o)=>{if(Wf(a)||Wf(o))return je;const s=zf(a.value,o.value);return s.valid?((Uf(a)||Uf(o))&&n.dirty(),{status:n.value,value:s.data}):(he(r,{code:oe.invalid_intersection_types}),je)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,o])=>i(a,o)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Go.create=(e,t,n)=>new Go({left:e,right:t,typeName:Re.ZodIntersection,...Le(n)});class tr extends Ue{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==me.array)return he(r,{code:oe.invalid_type,expected:me.array,received:r.parsedType}),je;if(r.data.length<this._def.items.length)return he(r,{code:oe.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),je;!this._def.rest&&r.data.length>this._def.items.length&&(he(r,{code:oe.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((o,s)=>{const c=this._def.items[s]||this._def.rest;return c?c._parse(new er(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(a).then(o=>on.mergeArray(n,o)):on.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new tr({...this._def,rest:t})}}tr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new tr({items:e,typeName:Re.ZodTuple,rest:null,...Le(t)})};class Zo extends Ue{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==me.object)return he(r,{code:oe.invalid_type,expected:me.object,received:r.parsedType}),je;const i=[],a=this._def.keyType,o=this._def.valueType;for(const s in r.data)i.push({key:a._parse(new er(r,s,r.path,s)),value:o._parse(new er(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?on.mergeObjectAsync(n,i):on.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Ue?new Zo({keyType:t,valueType:n,typeName:Re.ZodRecord,...Le(r)}):new Zo({keyType:Bn.create(),valueType:t,typeName:Re.ZodRecord,...Le(n)})}}class Qc extends Ue{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==me.map)return he(r,{code:oe.invalid_type,expected:me.map,received:r.parsedType}),je;const i=this._def.keyType,a=this._def.valueType,o=[...r.data.entries()].map(([s,c],l)=>({key:i._parse(new er(r,s,r.path,[l,"key"])),value:a._parse(new er(r,c,r.path,[l,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const c of o){const l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return je;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(l.value,u.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const c of o){const l=c.key,u=c.value;if(l.status==="aborted"||u.status==="aborted")return je;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(l.value,u.value)}return{status:n.value,value:s}}}}Qc.create=(e,t,n)=>new Qc({valueType:t,keyType:e,typeName:Re.ZodMap,...Le(n)});class Ei extends Ue{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==me.set)return he(r,{code:oe.invalid_type,expected:me.set,received:r.parsedType}),je;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(he(r,{code:oe.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(he(r,{code:oe.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function o(c){const l=new Set;for(const u of c){if(u.status==="aborted")return je;u.status==="dirty"&&n.dirty(),l.add(u.value)}return{status:n.value,value:l}}const s=[...r.data.values()].map((c,l)=>a._parse(new er(r,c,r.path,l)));return r.common.async?Promise.all(s).then(c=>o(c)):o(s)}min(t,n){return new Ei({...this._def,minSize:{value:t,message:_e.toString(n)}})}max(t,n){return new Ei({...this._def,maxSize:{value:t,message:_e.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Ei.create=(e,t)=>new Ei({valueType:e,minSize:null,maxSize:null,typeName:Re.ZodSet,...Le(t)});class ca extends Ue{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==me.function)return he(n,{code:oe.invalid_type,expected:me.function,received:n.parsedType}),je;function r(s,c){return Gc({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Yc(),wa].filter(l=>!!l),issueData:{code:oe.invalid_arguments,argumentsError:c}})}function i(s,c){return Gc({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Yc(),wa].filter(l=>!!l),issueData:{code:oe.invalid_return_type,returnTypeError:c}})}const a={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof Ta){const s=this;return pn(async function(...c){const l=new Sn([]),u=await s._def.args.parseAsync(c,a).catch(h=>{throw l.addIssue(r(c,h)),l}),d=await Reflect.apply(o,this,u);return await s._def.returns._def.type.parseAsync(d,a).catch(h=>{throw l.addIssue(i(d,h)),l})})}else{const s=this;return pn(function(...c){const l=s._def.args.safeParse(c,a);if(!l.success)throw new Sn([r(c,l.error)]);const u=Reflect.apply(o,this,l.data),d=s._def.returns.safeParse(u,a);if(!d.success)throw new Sn([i(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new ca({...this._def,args:tr.create(t).rest(xi.create())})}returns(t){return new ca({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new ca({args:t||tr.create([]).rest(xi.create()),returns:n||xi.create(),typeName:Re.ZodFunction,...Le(r)})}}class Ko extends Ue{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Ko.create=(e,t)=>new Ko({getter:e,typeName:Re.ZodLazy,...Le(t)});class Xo extends Ue{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return he(n,{received:n.data,code:oe.invalid_literal,expected:this._def.value}),je}return{status:"valid",value:t.data}}get value(){return this._def.value}}Xo.create=(e,t)=>new Xo({value:e,typeName:Re.ZodLiteral,...Le(t)});function s2(e,t){return new Yr({values:e,typeName:Re.ZodEnum,...Le(t)})}class Yr extends Ue{constructor(){super(...arguments),wo.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return he(n,{expected:Qe.joinValues(r),received:n.parsedType,code:oe.invalid_type}),je}if(Zc(this,wo)||r2(this,wo,new Set(this._def.values)),!Zc(this,wo).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return he(n,{received:n.data,code:oe.invalid_enum_value,options:r}),je}return pn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Yr.create(t,{...this._def,...n})}exclude(t,n=this._def){return Yr.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}wo=new WeakMap;Yr.create=s2;class Qo extends Ue{constructor(){super(...arguments),Co.set(this,void 0)}_parse(t){const n=Qe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==me.string&&r.parsedType!==me.number){const i=Qe.objectValues(n);return he(r,{expected:Qe.joinValues(i),received:r.parsedType,code:oe.invalid_type}),je}if(Zc(this,Co)||r2(this,Co,new Set(Qe.getValidEnumValues(this._def.values))),!Zc(this,Co).has(t.data)){const i=Qe.objectValues(n);return he(r,{received:r.data,code:oe.invalid_enum_value,options:i}),je}return pn(t.data)}get enum(){return this._def.values}}Co=new WeakMap;Qo.create=(e,t)=>new Qo({values:e,typeName:Re.ZodNativeEnum,...Le(t)});class Ta extends Ue{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==me.promise&&n.common.async===!1)return he(n,{code:oe.invalid_type,expected:me.promise,received:n.parsedType}),je;const r=n.parsedType===me.promise?n.data:Promise.resolve(n.data);return pn(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Ta.create=(e,t)=>new Ta({type:e,typeName:Re.ZodPromise,...Le(t)});class Hn extends Ue{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Re.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:o=>{he(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const o=i.transform(r.data,a);if(r.common.async)return Promise.resolve(o).then(async s=>{if(n.value==="aborted")return je;const c=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return c.status==="aborted"?je:c.status==="dirty"||n.value==="dirty"?ra(c.value):c});{if(n.value==="aborted")return je;const s=this._def.schema._parseSync({data:o,path:r.path,parent:r});return s.status==="aborted"?je:s.status==="dirty"||n.value==="dirty"?ra(s.value):s}}if(i.type==="refinement"){const o=s=>{const c=i.refinement(s,a);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?je:(s.status==="dirty"&&n.dirty(),o(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?je:(s.status==="dirty"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Uo(o))return o;const s=i.transform(o.value,a);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>Uo(o)?Promise.resolve(i.transform(o.value,a)).then(s=>({status:n.value,value:s})):o);Qe.assertNever(i)}}Hn.create=(e,t,n)=>new Hn({schema:e,typeName:Re.ZodEffects,effect:t,...Le(n)});Hn.createWithPreprocess=(e,t,n)=>new Hn({schema:t,effect:{type:"preprocess",transform:e},typeName:Re.ZodEffects,...Le(n)});class Qn extends Ue{_parse(t){return this._getType(t)===me.undefined?pn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Qn.create=(e,t)=>new Qn({innerType:e,typeName:Re.ZodOptional,...Le(t)});class Gr extends Ue{_parse(t){return this._getType(t)===me.null?pn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Gr.create=(e,t)=>new Gr({innerType:e,typeName:Re.ZodNullable,...Le(t)});class Jo extends Ue{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===me.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Jo.create=(e,t)=>new Jo({innerType:e,typeName:Re.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Le(t)});class es extends Ue{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return zo(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Sn(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Sn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}es.create=(e,t)=>new es({innerType:e,typeName:Re.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Le(t)});class Jc extends Ue{_parse(t){if(this._getType(t)!==me.nan){const r=this._getOrReturnCtx(t);return he(r,{code:oe.invalid_type,expected:me.nan,received:r.parsedType}),je}return{status:"valid",value:t.data}}}Jc.create=e=>new Jc({typeName:Re.ZodNaN,...Le(e)});const A$=Symbol("zod_brand");class wp extends Ue{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Ms extends Ue{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?je:a.status==="dirty"?(n.dirty(),ra(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?je:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new Ms({in:t,out:n,typeName:Re.ZodPipeline})}}class ts extends Ue{_parse(t){const n=this._def.innerType._parse(t),r=i=>(Uo(i)&&(i.value=Object.freeze(i.value)),i);return zo(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}ts.create=(e,t)=>new ts({innerType:e,typeName:Re.ZodReadonly,...Le(t)});function c2(e,t={},n){return e?Ca.create().superRefine((r,i)=>{var a,o;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,c=(o=(a=s.fatal)!==null&&a!==void 0?a:n)!==null&&o!==void 0?o:!0,l=typeof s=="string"?{message:s}:s;i.addIssue({code:"custom",...l,fatal:c})}}):Ca.create()}const j$={object:jt.lazycreate};var Re;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Re||(Re={}));const P$=(e,t={message:`Input not instance of ${e.name}`})=>c2(n=>n instanceof e,t),l2=Bn.create,u2=Vr.create,I$=Jc.create,D$=qr.create,d2=Ho.create,N$=Oi.create,F$=Kc.create,L$=Vo.create,B$=qo.create,W$=Ca.create,U$=xi.create,z$=Tr.create,H$=Xc.create,V$=Un.create,q$=jt.create,Y$=jt.strictCreate,G$=Yo.create,Z$=Zl.create,K$=Go.create,X$=tr.create,Q$=Zo.create,J$=Qc.create,e5=Ei.create,t5=ca.create,n5=Ko.create,r5=Xo.create,i5=Yr.create,a5=Qo.create,o5=Ta.create,T0=Hn.create,s5=Qn.create,c5=Gr.create,l5=Hn.createWithPreprocess,u5=Ms.create,d5=()=>l2().optional(),f5=()=>u2().optional(),h5=()=>d2().optional(),p5={string:e=>Bn.create({...e,coerce:!0}),number:e=>Vr.create({...e,coerce:!0}),boolean:e=>Ho.create({...e,coerce:!0}),bigint:e=>qr.create({...e,coerce:!0}),date:e=>Oi.create({...e,coerce:!0})},m5=je;var Zt=Object.freeze({__proto__:null,defaultErrorMap:wa,setErrorMap:m$,getErrorMap:Yc,makeIssue:Gc,EMPTY_PATH:g$,addIssueToContext:he,ParseStatus:on,INVALID:je,DIRTY:ra,OK:pn,isAborted:Wf,isDirty:Uf,isValid:Uo,isAsync:zo,get util(){return Qe},get objectUtil(){return Bf},ZodParsedType:me,getParsedType:Nr,ZodType:Ue,datetimeRegex:o2,ZodString:Bn,ZodNumber:Vr,ZodBigInt:qr,ZodBoolean:Ho,ZodDate:Oi,ZodSymbol:Kc,ZodUndefined:Vo,ZodNull:qo,ZodAny:Ca,ZodUnknown:xi,ZodNever:Tr,ZodVoid:Xc,ZodArray:Un,ZodObject:jt,ZodUnion:Yo,ZodDiscriminatedUnion:Zl,ZodIntersection:Go,ZodTuple:tr,ZodRecord:Zo,ZodMap:Qc,ZodSet:Ei,ZodFunction:ca,ZodLazy:Ko,ZodLiteral:Xo,ZodEnum:Yr,ZodNativeEnum:Qo,ZodPromise:Ta,ZodEffects:Hn,ZodTransformer:Hn,ZodOptional:Qn,ZodNullable:Gr,ZodDefault:Jo,ZodCatch:es,ZodNaN:Jc,BRAND:A$,ZodBranded:wp,ZodPipeline:Ms,ZodReadonly:ts,custom:c2,Schema:Ue,ZodSchema:Ue,late:j$,get ZodFirstPartyTypeKind(){return Re},coerce:p5,any:W$,array:V$,bigint:D$,boolean:d2,date:N$,discriminatedUnion:Z$,effect:T0,enum:i5,function:t5,instanceof:P$,intersection:K$,lazy:n5,literal:r5,map:J$,nan:I$,nativeEnum:a5,never:z$,null:B$,nullable:c5,number:u2,object:q$,oboolean:h5,onumber:f5,optional:s5,ostring:d5,pipeline:u5,preprocess:l5,promise:o5,record:Q$,set:e5,strictObject:Y$,string:l2,symbol:F$,transformer:T0,tuple:X$,undefined:L$,union:G$,unknown:U$,void:H$,NEVER:m5,ZodIssueCode:oe,quotelessJson:p$,ZodError:Sn});const Kl=()=>{const{texts:{formValidation:e}}=m.useContext(Pt),t=m.useCallback(p=>{let b=(p!=null&&p.useCoerce?Zt.coerce:Zt).string({invalid_type_error:e.required,required_error:e.required});return p!=null&&p.email&&(b=b.email(e.invalidEmail)),p!=null&&p.length&&(b=b.min(p.length,e.length(p.length))),p!=null&&p.minLength&&(b=b.min(p.minLength,e.minLength(p.minLength))),p!=null&&p.maxLength&&(b=b.max(p.maxLength,e.maxLength(p.maxLength))),p!=null&&p.numeric&&(b=b.regex(/^\d+$/,e.noCharactersOtherThanNumbers)),p!=null&&p.regex&&(b=b.regex(p.regex,e.invalidFormat)),b.transform(x=>x??null)},[e]),n=m.useCallback(p=>t(p).nullable().optional().transform(b=>b??null),[t]),r=m.useCallback(p=>{const b=(p==null?void 0:p.min)??Number.MIN_SAFE_INTEGER,x=(p==null?void 0:p.max)??Number.MAX_SAFE_INTEGER,_=(p!=null&&p.useCoerce?Zt.coerce:Zt).number({invalid_type_error:e.required,required_error:e.required}).min(b,e.lessThanMin(b)).max(x,e.moreThanMax(x));return _.transform(y=>y??null),_},[e]),i=m.useCallback(p=>r(p).nullable().optional().transform(b=>b??null),[r]),a=m.useCallback(p=>(p!=null&&p.useCoerce?Zt.coerce:Zt).boolean({invalid_type_error:e.required,required_error:e.required}).transform(b=>b??null),[e.required]),o=m.useCallback(p=>(p!=null&&p.useCoerce?Zt.coerce:Zt).string({invalid_type_error:e.required,required_error:e.required}).refine(kx,{message:e.invalidDate}).transform(x=>x??null),[e.invalidDate,e.required]),s=m.useCallback(p=>o(p).nullable().transform(b=>b??null),[o]),c=m.useCallback((p,b)=>Zt.enum(p,{invalid_type_error:e.required,required_error:e.required}).transform(_=>_??null),[e.required]),l=m.useCallback((p,b)=>c(p,b).nullable().transform(x=>x??null),[c]),u=m.useCallback(p=>Zt.object({id:i({useCoerce:!0})}).nullable().transform(x=>x??null),[i]),d=m.useCallback(p=>Zt.object({id:r()}).transform(x=>x??null),[r]),f=m.useCallback(p=>Zt.object({id:n({useCoerce:!0})}).nullable().transform(x=>x??null),[n]),h=m.useCallback(p=>Zt.object({id:t()}).transform(x=>x??null),[t]),g=m.useCallback(({required:p,multiple:b,maxFileSize:x})=>Zt.any().transform(y=>Array.from(y??[])).refine(y=>!p||(y==null?void 0:y.length)>0,"File is required.").refine(y=>b||(y==null?void 0:y.length)<=1,"Multiple files not allowed.").refine(y=>y.every(C=>C.size<=x),`Maximum file size is ${xa(x)}.`).transform(y=>(b?y:y==null?void 0:y[0])??null),[]);return{zString:n,zStringRequired:t,zNumber:i,zNumberRequired:r,zBool:a,zDate:s,zDateRequired:o,zEnum:l,zEnumRequired:c,zObjectIdInt:u,zObjectIdIntRequired:d,zObjectIdStr:f,zObjectIdStrRequired:h,zFile:g}},f2=(e,t)=>{m.useEffect(()=>{const n=r=>{e.some(i=>i.current&&i.current.contains(r.target))||t()};return document.addEventListener("mouseup",n),()=>{document.removeEventListener("mouseup",n)}},[e,t])},h2=()=>{const{user:e}=m.useContext(bx);return{checkUserHasPermissions:m.useCallback((n,r="any")=>n.length===0?!0:r==="any"?n.some(i=>{var a;return(a=e==null?void 0:e.permissions)==null?void 0:a.includes(i)}):n.every(i=>{var a;return(a=e==null?void 0:e.permissions)==null?void 0:a.includes(i)}),[e])}},p2=e=>{m.useEffect(()=>(document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}),[e])},Cp=(e,t,n)=>m.useMemo(()=>n||e!=="date"&&e!=="datetime-local"&&e!=="time"||t?e:"text",[t,e,n]),m2=()=>{const{addNotification:e}=Yl(),{texts:{clipboard:t}}=m.useContext(Pt);return{copyToClipboard:m.useCallback(async r=>{var i;try{await((i=navigator.clipboard)==null?void 0:i.writeText(r)),e(t.copySuccess(r),"prompt")}catch(a){console.error(a),e(t.copyError,"danger")}},[e,t])}},$s=()=>{const[e,t]=m.useState(window.innerWidth),[n,r]=m.useState(window.innerHeight),i=()=>{t(window.innerWidth),r(window.innerHeight)};return m.useEffect(()=>(window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)),[]),{width:e,height:n,isMobile:e<992}},Tp=m.createContext({useMsal:!1,msalInstance:null,msalScopes:[],msalExtraScopes:[]}),g2=m.createContext({delegation:null,setDelegation:()=>{},availableDelegations:null,setAvailableDelegations:()=>{},refreshAvailableDelegations:async()=>{}}),v2=m.createContext({addHelmet:e=>{},removeHelmet:()=>{}}),b2=m.createContext(void 0),k0={falseIfNotInit:!1},Xl=({falseIfNotInit:e=k0.falseIfNotInit}=k0)=>{const t=m.useContext(b2);if(!e&&t===void 0)throw new Error("FormDisabledProvider not initilized. Probably tried to use useFormDisabledContext outside FormDisabledProvider.");return t??!1},g5="_button_1wjon_1",v5="_filled_1wjon_7",b5="_sm_1wjon_13",y5="_md_1wjon_18",x5="_lg_1wjon_23",Ki={button:g5,filled:v5,sm:b5,md:y5,lg:x5},Mi=({variant:e="filled",color:t="primary",size:n="md",className:r,children:i,...a})=>a.as==="link"?v.jsx(Ra.Link,{to:a.href??"/",className:Q(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,Ki.button,Ki[e],Ki[n]),...a,children:i}):a.as==="button"||a.as===void 0?v.jsx("button",{type:"button",className:Q(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,Ki.button,Ki[e],Ki[n]),...a,children:i}):null,_5="_button_1r3i0_1",Hf={button:_5},Ql=({color:e="primary",icon:t,className:n,children:r,...i})=>i.as==="link"?v.jsxs(Ra.Link,{to:i.href??"/",className:Q(`luminus-context-button btn text-${e} ${n??""}`,Hf.button),...i,children:[t,r]}):i.as==="button"||i.as===void 0?v.jsxs("button",{type:"button",className:Q(`luminus-context-button btn text-${e} ${n??""}`,Hf.button),...i,children:[t,r]}):null,w5=m.forwardRef(({color:e="primary",icon:t=v.jsx(cx,{size:12}),inputId:n="context-file-input",accept:r="*",onUpload:i,className:a,children:o,multiple:s,...c},l)=>{const u=d=>{d.target.files&&(i(d.target.files),d.target.value="")};return v.jsxs(v.Fragment,{children:[v.jsxs("label",{ref:l,htmlFor:n,className:Q(`luminus-context-button btn text-${e} ${a??""}`,Hf.button),...c,children:[t,o]}),v.jsx("input",{id:n,type:"file",accept:r,onChange:u,hidden:!0,multiple:s})]})}),C5="_icon-button_15e26_1",T5="_sm_15e26_14",k5="_md_15e26_23",S5="_lg_15e26_32",tc={"icon-button":"_icon-button_15e26_1",iconButton:C5,sm:T5,md:k5,lg:S5},Rs=({type:e="button",color:t="primary",size:n="md",children:r,className:i,...a})=>a.as==="link"?v.jsx(Ra.Link,{to:a.href??"/",className:Q(`luminus-icon-button btn text-${t} ${i??""}`,tc.iconButton,tc[n]),...a,children:r}):a.as==="button"||a.as===void 0?v.jsx("button",{type:e,className:Q(`luminus-icon-button btn text-${t} ${i??""}`,tc.iconButton,tc[n]),...a,children:r}):null,O5="_feedback_esh1j_1",E5="_feedback-spacer_esh1j_8",S0={feedback:O5,"feedback-spacer":"_feedback-spacer_esh1j_8",feedbackSpacer:E5},Jl=({message:e})=>v.jsxs(v.Fragment,{children:[v.jsx("div",{className:Q("invalid-feedback luminus-invalid-feedback",S0.feedback),children:e}),v.jsx("div",{className:Q("invalid-feedback-spacer",S0.feedbackSpacer),children:e})]}),M5="_item_1dy8x_1",y2={item:M5},la=({color:e="primary",icon:t,className:n,children:r,to:i,as:a,...o})=>v.jsxs(Lo.Item,{className:Q(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${n??""}`,y2.item),as:a==="link"?Ra.Link:void 0,to:i??"",...o,children:[t,r]}),$5="_button_qhwih_1",R5={button:$5},kp=m.forwardRef(({color:e="primary",icon:t=v.jsx(ux,{size:21}),text:n,onClick:r,className:i,children:a,...o},s)=>v.jsxs("button",{type:"button",ref:s,onClick:c=>{c.preventDefault(),r(c)},"aria-label":"dropdown toggle",className:Q(`btn luminus-context-button text-${e} ${i??""}`,R5.button),...o,children:[t,n]})),A5="_avatar-icon_1axl6_1",j5={"avatar-icon":"_avatar-icon_1axl6_1",avatarIcon:A5},x2=({name:e,fontSize:t,size:n})=>{const r=m.useMemo(()=>{const o=e.split(" ");return o.length<2?e:Bo(" ",o.at(o.length-2),o.at(o.length-1))},[e]),i=m.useMemo(()=>{const o=r.split(" ");return Bo("",...o.map(s=>s.at(0)??void 0))},[r]),a=o=>{let s=0,c;for(c=0;c<o.length;c+=1)s=o.charCodeAt(c)+((s<<5)-s);let l="#";for(c=0;c<3;c+=1){const u=s>>c*8&255;l+=`00${u.toString(16)}`.slice(-2)}return l};return v.jsx(ix,{placement:"bottom",overlay:v.jsx(nx,{children:e}),children:v.jsx("div",{className:Q("luminus-avatar-icon",j5.avatarIcon),style:{backgroundColor:a(r),fontSize:t??void 0,minHeight:n??void 0,height:n??void 0,maxHeight:n??void 0,minWidth:n??void 0,width:n??void 0,maxWidth:n??void 0},children:v.jsx("div",{children:i})})})},P5=m.forwardRef(({userName:e,onClick:t,children:n},r)=>v.jsxs("button",{type:"button",ref:r,onClick:i=>{i.preventDefault(),t(i)},"aria-label":"User avatar toggle",className:"m-0 p-0",style:{backgroundColor:"transparent",border:"none",cursor:"pointer"},children:[v.jsx(x2,{name:e}),n]})),Sp=e=>v.jsx(Lo.Toggle,{...e}),I5="_divider_1e6rk_1",D5={divider:I5},_2=({className:e})=>v.jsx(Lo.Divider,{className:Q("luminus-dropdown-divider",e,D5.divider)}),N5="_dropdown_1lk66_1",F5={dropdown:N5},Op=({toggle:e,children:t,align:n,...r})=>v.jsxs(Lo,{...r,align:n,children:[e,v.jsx(Lo.Menu,{className:Q("luminus-dropdown rounded shadow",F5.dropdown),align:n,children:t})]});function L5(e,t,n){var r=this,i=m.useRef(null),a=m.useRef(0),o=m.useRef(null),s=m.useRef([]),c=m.useRef(),l=m.useRef(),u=m.useRef(e),d=m.useRef(!0);u.current=e;var f=typeof window<"u",h=!t&&t!==0&&f;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,p=!("trailing"in n)||!!n.trailing,b="maxWait"in n,x="debounceOnServer"in n&&!!n.debounceOnServer,_=b?Math.max(+n.maxWait||0,t):null;m.useEffect(function(){return d.current=!0,function(){d.current=!1}},[]);var y=m.useMemo(function(){var C=function(k){var O=s.current,D=c.current;return s.current=c.current=null,a.current=k,l.current=u.current.apply(D,O)},w=function(k,O){h&&cancelAnimationFrame(o.current),o.current=h?requestAnimationFrame(k):setTimeout(k,O)},T=function(k){if(!d.current)return!1;var O=k-i.current;return!i.current||O>=t||O<0||b&&k-a.current>=_},$=function(k){return o.current=null,p&&s.current?C(k):(s.current=c.current=null,l.current)},R=function k(){var O=Date.now();if(T(O))return $(O);if(d.current){var D=t-(O-i.current),E=b?Math.min(D,_-(O-a.current)):D;w(k,E)}},S=function(){if(f||x){var k=Date.now(),O=T(k);if(s.current=[].slice.call(arguments),c.current=r,i.current=k,O){if(!o.current&&d.current)return a.current=i.current,w(R,t),g?C(i.current):l.current;if(b)return w(R,t),C(i.current)}return o.current||w(R,t),l.current}};return S.cancel=function(){o.current&&(h?cancelAnimationFrame(o.current):clearTimeout(o.current)),a.current=0,s.current=i.current=c.current=o.current=null},S.isPending=function(){return!!o.current},S.flush=function(){return o.current?$(Date.now()):l.current},S},[g,b,t,_,p,h,f,x]);return y}function B5(e,t){return e===t}function w2(e,t,n){var r=B5,i=m.useRef(e),a=m.useState({})[1],o=L5(m.useCallback(function(c){i.current=c,a({})},[a]),t,n),s=m.useRef(e);return r(s.current,e)||(o(e),s.current=e),[i.current,o]}const W5="_wrapper_1mvyk_1",U5="_open_1mvyk_9",z5="_dropdown_1mvyk_13",H5="_search-input-container_1mvyk_19",V5="_search-input_1mvyk_19",q5="_loading-container_1mvyk_25",Y5="_items-container_1mvyk_32",G5="_header-row_1mvyk_38",Z5="_name_1mvyk_49",K5="_item_1mvyk_32",X5="_column-item_1mvyk_65",Q5="_icon_1mvyk_69",J5="_action-buttons-container_1mvyk_89",e8="_reverse_1mvyk_97",t8="_action-button_1mvyk_89",n8="_actions-dropdown_1mvyk_110",Gt={wrapper:W5,open:U5,dropdown:z5,"search-input-container":"_search-input-container_1mvyk_19",searchInputContainer:H5,"search-input":"_search-input_1mvyk_19",searchInput:V5,"loading-container":"_loading-container_1mvyk_25",loadingContainer:q5,"items-container":"_items-container_1mvyk_32",itemsContainer:Y5,"header-row":"_header-row_1mvyk_38",headerRow:G5,name:Z5,item:K5,"column-item":"_column-item_1mvyk_65",columnItem:X5,icon:Q5,"action-buttons-container":"_action-buttons-container_1mvyk_89",actionButtonsContainer:J5,reverse:e8,"action-button":"_action-button_1mvyk_89",actionButton:t8,"actions-dropdown":"_actions-dropdown_1mvyk_110",actionsDropdown:n8},C2=({show:e,onCancel:t,items:n,suggestedItems:r,suggestedItemsTitle:i,currentSelection:a,onSelectionChange:o,onSearchQueryChange:s,texts:c,itemsNameWidth:l,additionalColumns:u,displayIdAsName:d=!1,autoHideSearch:f=!1,allItemsLength:h,disabled:g,isLoading:p=!1,inputRef:b,archiveColumn:x="archive",addNewOptionPath:_,refreshOptions:y})=>{var Ye;const{texts:{customSelect:C}}=m.useContext(Pt),w=m.useRef(null),T=m.useRef(null),$=m.useRef(null),R=m.useRef(null),S=m.useRef(null),[k,O]=m.useState(""),[D]=w2(k,500),[,E]=m.useState(!1),{copyToClipboard:M}=m2(),j=(Ye=b.current)==null?void 0:Ye.getBoundingClientRect(),F=(j==null?void 0:j.x)??0,W=((j==null?void 0:j.x)??0)+((j==null?void 0:j.width)??0),B=(j==null?void 0:j.y)??0,U=((j==null?void 0:j.y)??0)+((j==null?void 0:j.height)??0),N=(j==null?void 0:j.width)??0,V=(j==null?void 0:j.height)??0,X=5,{isMobile:ne}=$s(),K=8,J=m.useMemo(()=>F?F>window.innerWidth/2-K:!1,[F]),q=m.useMemo(()=>B?B>window.innerHeight/2-K:!1,[B]);m.useEffect(()=>{var de;e&&((de=$.current)==null||de.focus())},[$,e]),m.useEffect(()=>{e||O("")},[e]),m.useEffect(()=>{s&&s(D)},[D,s]);const[G,z]=m.useState(null);m.useEffect(()=>{e&&n.length>0?z(0):z(null)},[n,e]);const L=m.useMemo(()=>G!==null?n.at(G)??null:null,[G,n]),H=m.useCallback((de,ke)=>{var ve,Ie;const Oe=document.getElementById(`item-${de}`);if(Oe){const Xe=Oe.clientHeight??0;ke==="down"?(ve=R.current)==null||ve.scrollBy({left:0,top:Xe,behavior:"smooth"}):(Ie=R.current)==null||Ie.scrollBy({left:0,top:-Xe,behavior:"smooth"})}},[]),ee=m.useCallback(de=>{if(G===null||g)return;const ke=G+de;ke<0||ke>=n.length||z(Oe=>(Oe!==null&&H(Oe,de>0?"down":"up"),ke))},[G,n,g,H]),A=m.useCallback(de=>{if(e)switch(de.key){case"Escape":de.stopPropagation(),de.preventDefault(),t();break;case"Enter":de.stopPropagation(),de.preventDefault(),g||o(L);break;case"ArrowUp":de.stopPropagation(),de.preventDefault(),ee(-1);break;case"ArrowDown":de.stopPropagation(),de.preventDefault(),ee(1);break}},[t,e,ee,L,g,o]),se=m.useCallback(()=>{E(de=>!de)},[]);m.useEffect(()=>(window.addEventListener("scroll",se),()=>{window.removeEventListener("scroll",se)}),[se]),m.useEffect(()=>(window.addEventListener("resize",se),()=>{window.removeEventListener("resize",se)}),[se]),p2(A),f2([w,T,S],t);const ce=l??(u&&u.length>0?250:0),ue=(u==null?void 0:u.reduce((de,ke)=>de+(ke.width??100),0))??0,we=m.useMemo(()=>(a&&e&&!g)??!1,[a,e,g]),Te=m.useMemo(()=>(a&&e)??!1,[a,e]),at=m.useMemo(()=>e&&(Te||_!==void 0||y!==void 0),[e,Te,_,y]),tt=32,Be=ne?`calc(100vw - ${tt}px)`:`calc(max(${N}px, calc(${ce}px + ${ue}px)))`,Ke=m.useMemo(()=>(k.length<1&&r&&r.length>0?r:n).map(de=>{var ke,Oe;return d?((ke=de.id)==null?void 0:ke.toString())??"":((Oe=de.name)==null?void 0:Oe.toString())??""}).reduce((de,ke)=>de.length>ke.length?de:ke,""),[k,r,n,d]);return v.jsxs(v.Fragment,{children:[v.jsx(A2,{show:e,onClick:t}),v.jsxs("div",{className:Q("luminus-dropdown-picker-actions",Gt.actionButtonsContainer,{[Gt.reverse]:J}),style:{top:`calc(${B}px + ${V/2}px - 12px)`,left:J?we&&Te?`calc(${F}px - 24px - 8px - 24px - 4px)`:`calc(${F}px - 24px - 8px)`:`calc(${W}px + 8px)`},children:[we&&v.jsx("button",{ref:T,type:"button",className:Q("luminus-dropdown-picker-clear-button",Gt.actionButton),onClick:()=>!g&&o(null),children:v.jsx(dn,{variant:"caption",className:"text-danger",children:v.jsx(sx,{size:16})})}),at?v.jsx("div",{ref:S,children:v.jsxs(Op,{toggle:v.jsx(Sp,{as:kp,className:Q("luminus-dropdown-picker-actions-dropdown",Gt.actionsDropdown),icon:v.jsx(dn,{variant:"caption",className:"text-primary",children:v.jsx(ux,{size:16})})}),children:[Te?v.jsx(la,{icon:v.jsx(zO,{}),onClick:()=>{var de,ke;M(d?((de=a==null?void 0:a.id)==null?void 0:de.toString())??"":((ke=a==null?void 0:a.name)==null?void 0:ke.toString())??"")},children:C.copySelection}):null,Te&&(_||y)?v.jsx(_2,{}):null,_?v.jsx(la,{icon:v.jsx(UO,{}),onClick:()=>{window.open(_,"_blank")},children:C.addNewOption}):null,y?v.jsx(la,{icon:v.jsx(JO,{}),onClick:()=>{y()},children:C.refreshOptions}):null]})}):null]}),v.jsx("div",{className:Q("luminus-dropdown-picker",Gt.wrapper,{[Gt.open]:e}),style:{top:q?`calc(${B}px - 50vh - 8px)`:`calc(${U}px + 8px)`,left:ne?`${tt/2}px`:J?`calc(${W}px - ${Be})`:F,right:ne?`${tt/2}px`:J?`${W}px`:`calc(${F}px + ${Be})`,width:Be,justifyContent:q?"flex-end":"flex-start"},children:v.jsx("div",{ref:w,className:Q("shadow rounded",Gt.dropdown),children:!g&&v.jsxs(v.Fragment,{children:[!s||f&&(h??n.length)<=X?null:v.jsx("div",{className:Q("search-input-container border-bottom",Gt.searchInputContainer),children:v.jsx(sr.Control,{ref:$,type:"search",size:"sm",className:Gt.searchInput,placeholder:c.searchPlaceholder,value:k,onChange:de=>{var ke;return O(((ke=de.target)==null?void 0:ke.value)??"")}})}),k.length<1&&r&&r.length>0?v.jsx(Ap,{variant:"info",size:"sm",children:i??C.suggestedItemsTitle}):null,p?v.jsx("div",{className:Gt.loadingContainer,children:v.jsx(dp,{animation:"border",variant:"primary"})}):(k.length<1&&r&&(r==null?void 0:r.length)>0||n.length>0)&&v.jsxs("div",{ref:R,className:Q("items",Gt.itemsContainer),children:[u&&u.length>0&&v.jsxs("div",{className:Q("header-row border-bottom",Gt.headerRow),children:[v.jsx("div",{className:Gt.name,children:v.jsx(dn,{variant:"body2",children:Ke})}),u==null?void 0:u.filter(de=>de.key!==x).map(de=>v.jsx("div",{className:Gt.columnItem,style:{width:`${de.width??100}px`,minWidth:`${de.width??100}px`,maxWidth:`${de.width??100}px`},children:v.jsx(dn,{variant:"caption",children:de.name})},de.key))]}),(k.length<1&&r&&r.length>0?r:n).map((de,ke)=>v.jsxs("button",{id:`item-${ke}`,type:"button",className:Q("item cursor-pointer",Gt.item,{[Gt.focused]:G===ke},{focused:G===ke},{archive:de.additionalColumns?de.additionalColumns[x]:!1}),onClick:()=>!g&&o(de),onMouseEnter:()=>z(ke),children:[v.jsx("div",{className:Gt.name,children:v.jsx(dn,{variant:"body2",children:d?de.id:de.name})}),u==null?void 0:u.filter(Oe=>Oe.key!==x).map(Oe=>v.jsx("div",{className:Gt.columnItem,style:{width:`${Oe.width??100}px`,minWidth:`${Oe.width??100}px`,maxWidth:`${Oe.width??100}px`},children:v.jsx(dn,{variant:"caption",className:Q("text-muted"),children:de.additionalColumns&&de.additionalColumns[Oe.key]})},Oe.key))]},de.id))]})]})})})]})};function r8(e){return Ve({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function i8(e){return Ve({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function a8(e){return Ve({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(e)}function o8(e){return Ve({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm250.2-143.7c-12.2-12-47-8.7-64.4-6.5-17.2-10.5-28.7-25-36.8-46.3 3.9-16.1 10.1-40.6 5.4-56-4.2-26.2-37.8-23.6-42.6-5.9-4.4 16.1-.4 38.5 7 67.1-10 23.9-24.9 56-35.4 74.4-20 10.3-47 26.2-51 46.2-3.3 15.8 26 55.2 76.1-31.2 22.4-7.4 46.8-16.5 68.4-20.1 18.9 10.2 41 17 55.8 17 25.5 0 28-28.2 17.5-38.7zm-198.1 77.8c5.1-13.7 24.5-29.5 30.4-35-19 30.3-30.4 35.7-30.4 35zm81.6-190.6c7.4 0 6.7 32.1 1.8 40.8-4.4-13.9-4.3-40.8-1.8-40.8zm-24.4 136.6c9.7-16.9 18-37 24.7-54.7 8.3 15.1 18.9 27.2 30.1 35.5-20.8 4.3-38.9 13.1-54.8 19.2zm131.6-5s-5 6-37.3-7.8c35.1-2.6 40.9 5.4 37.3 7.8z"},child:[]}]})(e)}var Ep={};Ep.match=f8;Ep.parse=T2;var s8=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,c8=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,l8=/^(?:(min|max)-)?(.+)/,u8=/(em|rem|px|cm|mm|in|pt|pc)?$/,d8=/(dpi|dpcm|dppx)?$/;function f8(e,t){return T2(e).some(function(n){var r=n.inverse,i=n.type==="all"||t.type===n.type;if(i&&r||!(i||r))return!1;var a=n.expressions.every(function(o){var s=o.feature,c=o.modifier,l=o.value,u=t[s];if(!u)return!1;switch(s){case"orientation":case"scan":return u.toLowerCase()===l.toLowerCase();case"width":case"height":case"device-width":case"device-height":l=M0(l),u=M0(u);break;case"resolution":l=E0(l),u=E0(u);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":l=O0(l),u=O0(u);break;case"grid":case"color":case"color-index":case"monochrome":l=parseInt(l,10)||1,u=parseInt(u,10)||0;break}switch(c){case"min":return u>=l;case"max":return u<=l;default:return u===l}});return a&&!r||!a&&r})}function T2(e){return e.split(",").map(function(t){t=t.trim();var n=t.match(s8),r=n[1],i=n[2],a=n[3]||"",o={};return o.inverse=!!r&&r.toLowerCase()==="not",o.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],o.expressions=a.map(function(s){var c=s.match(c8),l=c[1].toLowerCase().match(l8);return{modifier:l[1],feature:l[2],value:c[2]}}),o})}function O0(e){var t=Number(e),n;return t||(n=e.match(/^(\d+)\s*\/\s*(\d+)$/),t=n[1]/n[2]),t}function E0(e){var t=parseFloat(e),n=String(e).match(d8)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return t*96;default:return t}}function M0(e){var t=parseFloat(e),n=String(e).match(u8)[1];switch(n){case"em":return t*16;case"rem":return t*16;case"cm":return t*96/2.54;case"mm":return t*96/2.54/10;case"in":return t*96;case"pt":return t*72;case"pc":return t*72/12;default:return t}}var h8=Ep.match,$0=typeof window<"u"?window.matchMedia:null;function p8(e,t,n){var r=this,i;$0&&!n&&(i=$0.call(window,e)),i?(this.matches=i.matches,this.media=i.media,i.addListener(s)):(this.matches=h8(e,t),this.media=e),this.addListener=a,this.removeListener=o,this.dispose=c;function a(l){i&&i.addListener(l)}function o(l){i&&i.removeListener(l)}function s(l){r.matches=l.matches,r.media=l.media}function c(){i&&i.removeListener(s)}}function m8(e,t,n){return new p8(e,t,n)}var g8=m8;const v8=Rt(g8);var b8=/[A-Z]/g,y8=/^ms-/,Id={};function x8(e){return"-"+e.toLowerCase()}function k2(e){if(Id.hasOwnProperty(e))return Id[e];var t=e.replace(b8,x8);return Id[e]=y8.test(t)?"-"+t:t}function _8(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(let a=0;a<i;a++){const o=n[a];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}const un=I.oneOfType([I.string,I.number]),Mp={all:I.bool,grid:I.bool,aural:I.bool,braille:I.bool,handheld:I.bool,print:I.bool,projection:I.bool,screen:I.bool,tty:I.bool,tv:I.bool,embossed:I.bool},S2={orientation:I.oneOf(["portrait","landscape"]),scan:I.oneOf(["progressive","interlace"]),aspectRatio:I.string,deviceAspectRatio:I.string,height:un,deviceHeight:un,width:un,deviceWidth:un,color:I.bool,colorIndex:I.bool,monochrome:I.bool,resolution:un,type:Object.keys(Mp)},{type:Ate,...w8}=S2,O2={minAspectRatio:I.string,maxAspectRatio:I.string,minDeviceAspectRatio:I.string,maxDeviceAspectRatio:I.string,minHeight:un,maxHeight:un,minDeviceHeight:un,maxDeviceHeight:un,minWidth:un,maxWidth:un,minDeviceWidth:un,maxDeviceWidth:un,minColor:I.number,maxColor:I.number,minColorIndex:I.number,maxColorIndex:I.number,minMonochrome:I.number,maxMonochrome:I.number,minResolution:un,maxResolution:un,...w8},C8={...Mp,...O2};var T8={all:C8,types:Mp,matchers:S2,features:O2};const k8=e=>`not ${e}`,S8=(e,t)=>{const n=k2(e);return typeof t=="number"&&(t=`${t}px`),t===!0?n:t===!1?k8(n):`(${n}: ${t})`},O8=e=>e.join(" and "),E8=e=>{const t=[];return Object.keys(T8.all).forEach(n=>{const r=e[n];r!=null&&t.push(S8(n,r))}),O8(t)},M8=m.createContext(void 0),$8=e=>e.query||E8(e),R0=e=>e?Object.keys(e).reduce((n,r)=>(n[k2(r)]=e[r],n),{}):void 0,E2=()=>{const e=m.useRef(!1);return m.useEffect(()=>{e.current=!0},[]),e.current},R8=e=>{const t=m.useContext(M8),n=()=>R0(e)||R0(t),[r,i]=m.useState(n);return m.useEffect(()=>{const a=n();_8(r,a)||i(a)},[e,t]),r},A8=e=>{const t=()=>$8(e),[n,r]=m.useState(t);return m.useEffect(()=>{const i=t();n!==i&&r(i)},[e]),n},j8=(e,t)=>{const n=()=>v8(e,t||{},!!t),[r,i]=m.useState(n),a=E2();return m.useEffect(()=>{if(a){const o=n();return i(o),()=>{o&&o.dispose()}}},[e,t]),r},P8=e=>{const[t,n]=m.useState(e.matches);return m.useEffect(()=>{const r=i=>{n(i.matches)};return e.addListener(r),n(e.matches),()=>{e.removeListener(r)}},[e]),t},Dd=(e,t,n)=>{const r=R8(t),i=A8(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const a=j8(i,r),o=P8(a),s=E2();return m.useEffect(()=>{s&&n&&n(o)},[o]),m.useEffect(()=>()=>{a&&a.dispose()},[]),o},I8=["sm","md","lg","always"],M2="ResponsiveContextDropdownItem",D8=e=>e.type.displayName===M2,$p=e=>({});$p.displayName=M2;function N8(e){return e.type&&e.type===m.Fragment}const $2=e=>{const t=[];Array.isArray(e)?t.push(...e):t.push(e);const n=[];return t.forEach(r=>{if(r){if(N8(r)){n.push(...$2(r.props.children));return}n.push(r)}}),n},F8=(e,t)=>{if(t===void 0)return e;const{searchQueryString:n,...r}=t;return Ra.generatePath(e,r)+"?"+n},L8="_disabled_9mp5v_1",B8={disabled:L8},W8=()=>{const{ProjectIconComponent:e}=m.useContext(Pt),{checkUserHasPermissions:t}=h2();return{getProcessedChildren:m.useCallback((r,i)=>{const a=[],o=[];let s=null;const c=u=>{const{hideOn:d,children:f,cKey:h,to:g,toRoute:p,disabled:b,icon:x,pathParams:_,...y}=u.props,C=(p==null?void 0:p.permissions)!=null,w=(p==null?void 0:p.permissions)!=null&&t(p==null?void 0:p.permissions),T=(b??!1)||C&&!w,$=g??(p==null?void 0:F8(p==null?void 0:p.route,_)),R=f??(p==null?void 0:p.name),S=x??(p!=null?v.jsx(e,{icon:"link"}):void 0);if(d==="always"||I8.indexOf(d)>=i){s&&o.length>0&&o.push(s),s=null;const k=Q(y.className,{[B8.disabled]:T});$!=null?o.push(v.jsx(la,{...y,as:"link",to:$,disabled:T,icon:S,className:k,children:R},h)):o.push(v.jsx(la,{...y,icon:S,className:k,children:R},h))}else{const k=$!=null?{as:"link",href:$}:{};a.push(v.jsx(Ql,{...y,...k,icon:S,className:Q(T?"disabled":void 0,y.className),children:R},h))}};return $2(r).forEach(u=>{u&&m.isValidElement(u)&&(D8(u)?c(u):s=u)}),{buttons:a,dropdownItems:o}},[e,t])}},R2=({children:e})=>{const{getProcessedChildren:t}=W8(),n=Dd({maxWidth:768}),r=Dd({minWidth:769,maxWidth:1200}),i=Dd({minWidth:1201}),a=[n,r,i].indexOf(!0),{buttons:o,dropdownItems:s}=t(e,a);return v.jsxs("div",{className:"d-flex gap-1",children:[v.jsx(v.Fragment,{children:o}),s.length>0?v.jsx(Op,{toggle:v.jsx(Sp,{as:kp}),children:s}):null]})};R2.Item=$p;const U8="Left",z8="Right",H8="Up",V8="Down",ia={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Vf={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},A0="mousemove",j0="mouseup",q8="touchend",Y8="touchmove",G8="touchstart";function Z8(e,t,n,r){return e>t?n>0?z8:U8:r>0?V8:H8}function P0(e,t){if(t===0)return e;const n=Math.PI/180*t,r=e[0]*Math.cos(n)+e[1]*Math.sin(n),i=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[r,i]}function K8(e,t){const n=u=>{const d="touches"in u;d&&u.touches.length>1||e((f,h)=>{h.trackMouse&&!d&&(document.addEventListener(A0,r),document.addEventListener(j0,o));const{clientX:g,clientY:p}=d?u.touches[0]:u,b=P0([g,p],h.rotationAngle);return h.onTouchStartOrOnMouseDown&&h.onTouchStartOrOnMouseDown({event:u}),Object.assign(Object.assign(Object.assign({},f),Vf),{initial:b.slice(),xy:b,start:u.timeStamp||0})})},r=u=>{e((d,f)=>{const h="touches"in u;if(h&&u.touches.length>1)return d;if(u.timeStamp-d.start>f.swipeDuration)return d.swiping?Object.assign(Object.assign({},d),{swiping:!1}):d;const{clientX:g,clientY:p}=h?u.touches[0]:u,[b,x]=P0([g,p],f.rotationAngle),_=b-d.xy[0],y=x-d.xy[1],C=Math.abs(_),w=Math.abs(y),T=(u.timeStamp||0)-d.start,$=Math.sqrt(C*C+w*w)/(T||1),R=[_/(T||1),y/(T||1)],S=Z8(C,w,_,y),k=typeof f.delta=="number"?f.delta:f.delta[S.toLowerCase()]||ia.delta;if(C<k&&w<k&&!d.swiping)return d;const O={absX:C,absY:w,deltaX:_,deltaY:y,dir:S,event:u,first:d.first,initial:d.initial,velocity:$,vxvy:R};O.first&&f.onSwipeStart&&f.onSwipeStart(O),f.onSwiping&&f.onSwiping(O);let D=!1;return(f.onSwiping||f.onSwiped||f[`onSwiped${S}`])&&(D=!0),D&&f.preventScrollOnSwipe&&f.trackTouch&&u.cancelable&&u.preventDefault(),Object.assign(Object.assign({},d),{first:!1,eventData:O,swiping:!0})})},i=u=>{e((d,f)=>{let h;if(d.swiping&&d.eventData){if(u.timeStamp-d.start<f.swipeDuration){h=Object.assign(Object.assign({},d.eventData),{event:u}),f.onSwiped&&f.onSwiped(h);const g=f[`onSwiped${h.dir}`];g&&g(h)}}else f.onTap&&f.onTap({event:u});return f.onTouchEndOrOnMouseUp&&f.onTouchEndOrOnMouseUp({event:u}),Object.assign(Object.assign(Object.assign({},d),Vf),{eventData:h})})},a=()=>{document.removeEventListener(A0,r),document.removeEventListener(j0,o)},o=u=>{a(),i(u)},s=(u,d)=>{let f=()=>{};if(u&&u.addEventListener){const h=Object.assign(Object.assign({},ia.touchEventOptions),d.touchEventOptions),g=[[G8,n,h],[Y8,r,Object.assign(Object.assign({},h),d.preventScrollOnSwipe?{passive:!1}:{})],[q8,i,h]];g.forEach(([p,b,x])=>u.addEventListener(p,b,x)),f=()=>g.forEach(([p,b])=>u.removeEventListener(p,b))}return f},l={ref:u=>{u!==null&&e((d,f)=>{if(d.el===u)return d;const h={};return d.el&&d.el!==u&&d.cleanUpTouch&&(d.cleanUpTouch(),h.cleanUpTouch=void 0),f.trackTouch&&u&&(h.cleanUpTouch=s(u,f)),Object.assign(Object.assign(Object.assign({},d),{el:u}),h)})}};return t.trackMouse&&(l.onMouseDown=n),[l,s]}function X8(e,t,n,r){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})}function Rp(e){const{trackMouse:t}=e,n=ie.useRef(Object.assign({},Vf)),r=ie.useRef(Object.assign({},ia)),i=ie.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},ia),e);let a;for(a in ia)r.current[a]===void 0&&(r.current[a]=ia[a]);const[o,s]=ie.useMemo(()=>K8(c=>n.current=c(n.current,r.current),{trackMouse:t}),[t]);return n.current=X8(n.current,r.current,i.current,s),o}const Q8="_backdrop_3huvf_1",J8="_show_3huvf_11",I0={backdrop:Q8,show:J8},A2=({show:e,onClick:t})=>v.jsx("div",{className:Q("luminus-backdrop",I0.backdrop,{[I0.show]:e}),onClick:()=>t&&t()}),Ap=e=>{const{variant:t,children:n,className:r,size:i="md",typographyVariant:a=i==="sm"?"body2":"body",...o}={...e};return v.jsx(i3,{variant:t,className:`text-center ${i==="sm"?"p-1":i==="md"?"p-3":"p-4"} bg-${t} bg-opacity-10 border-none ${r??""}`,...o,children:v.jsx(dn,{variant:a,children:n})})},e7="_floating-label_3xm9u_1",t7="_without-label_3xm9u_21",n7="_floating-label-check_3xm9u_184",Nd={"floating-label":"_floating-label_3xm9u_1",floatingLabel:e7,"without-label":"_without-label_3xm9u_21",withoutLabel:t7,"floating-label-check":"_floating-label-check_3xm9u_184",floatingLabelCheck:n7},r7=({hint:e,children:t})=>e?v.jsx(hp,{text:e,placement:"top",children:t}):t,eu=m.forwardRef(({hidden:e,children:t,className:n,isInvalid:r,isForRadioInput:i,inputContainerClassName:a,isForCheckInput:o,hint:s,required:c,disabled:l,...u},d)=>{const{ProjectIconComponent:f}=m.useContext(Pt),h=u.withoutLabel?"":v.jsxs("div",{className:"d-flex gap-1 align-items-center",children:[u.label,c?v.jsx("span",{className:Q("fw-bold",{"text-danger":!l}),style:{fontSize:"16px"},children:"*"}):null,s?v.jsx("div",{className:"d-flex align-items-center",children:v.jsx(f,{icon:"info"})}):null]});return o?v.jsx("div",{className:Q("luminus-floating-label-check",Nd.floatingLabelCheck),children:t}):v.jsx(r7,{hint:s,children:v.jsx(ap,{ref:d,label:v.jsx("div",{className:"d-flex gap-1 align-items-center",children:h}),hidden:e??!1,className:Q(`luminus-floating-label ${n??""}`,Nd.floatingLabel,{[a??""]:a},{[Nd.withoutLabel]:u.withoutLabel}),children:t})})});eu.displayName="FloatingLabelInput";const i7="_row-label-input_mqkkx_1",a7="_label_mqkkx_4",o7="_input-container_mqkkx_9",s7="_invalid-feedback_mqkkx_104",c7="_keep-check-label_mqkkx_132",l7="_is-invalid_mqkkx_160",co={"row-label-input":"_row-label-input_mqkkx_1",rowLabelInput:i7,label:a7,"input-container":"_input-container_mqkkx_9",inputContainer:o7,"invalid-feedback":"_invalid-feedback_mqkkx_104",invalidFeedback:s7,"keep-check-label":"_keep-check-label_mqkkx_132",keepCheckLabel:c7,"is-invalid":"_is-invalid_mqkkx_160",isInvalid:l7},As=m.forwardRef(({hidden:e,children:t,required:n,disabled:r,className:i,isInvalid:a,isForRadioInput:o,isForTextAreaInput:s,inputContainerClassName:c,hint:l,...u},d)=>{const{ProjectIconComponent:f}=m.useContext(Pt),h=u.withoutLabel?v.jsx(v.Fragment,{}):v.jsx("label",{className:Q("label col-6",{"col-12":s},co.label),children:v.jsxs(dn,{variant:"form-label",className:Q("d-flex gap-1 align-items-center",a?"text-danger":""),children:[u.label,n?v.jsx("span",{className:Q("fw-bold",{"text-danger":!r}),style:{fontSize:"16px"},children:"*"}):null,l?v.jsx("div",{className:"d-flex align-items-center",style:{paddingTop:"2px"},children:v.jsx(f,{icon:"info"})}):null]})});return v.jsxs("div",{ref:d,className:Q("luminus-row-label row gx-0 gy-0",{"is-invalid":a},{[co.isInvalid]:a},{[i??""]:i},{"d-none":e},co.rowLabelInput),children:[l?v.jsx(hp,{text:l,placement:"top",children:h}):h,v.jsx("div",{className:Q("input-container",co.inputContainer,{"col-6":!u.withoutLabel&&!s},{"col-12":u.withoutLabel||s},{[co.keepCheckLabel]:o},{[c??""]:c}),children:t})]})});As.displayName="RowLabelInput";const j2=m.forwardRef(({children:e,className:t,hidden:n},r)=>v.jsx("div",{ref:r,className:`${n?"d-none":""} ${t}`,children:e}));j2.displayName="NoInputContainer";const P2=({currentSelection:e,selectedItemNavigateTo:t,children:n})=>{if(!e||!e.id||!t)return v.jsx("div",{className:"luminus-input-container position-relative w-100",children:n});const r=t(e);return v.jsx(Ra.Link,{to:r,className:"luminus-input-container position-relative w-100 text-decoration-none",children:n})},I2=({InputContainer:e=eu,type:t,value:n,onChange:r,debounceMs:i,label:a,withoutLabel:o,placeholder:s,size:c,hidden:l,disabled:u,showClearIcon:d,clearValue:f,list:h,className:g,step:p,minLength:b,maxLength:x,noSelectOnFocus:_,hint:y,onConfirm:C,autoComplete:w})=>{const T=t==="number",$=m.useCallback(()=>{if(!r)return;const W=f??null;r(T?W?Number(W):null:(W==null?void 0:W.toString())??"")},[f,T,r]),R=m.useRef(null),[S,k]=m.useState((n==null?void 0:n.toString())??""),O=m.useCallback(W=>{const B=W;r&&r(T?B==null||B===""?null:Number(B):B||null)},[T,r]),D=m.useCallback(W=>{var U;const B=(U=W.target)==null?void 0:U.value;if(!i){O(B);return}k(B),R.current!==null&&window.clearTimeout(R.current),R.current=window.setTimeout(()=>{O(B)},i)},[i,O]),E=m.useMemo(()=>{if(C!==void 0)return W=>{W.key==="Enter"&&C&&C()}},[C]);m.useEffect(()=>{k(n===null?"":n.toString())},[n]);const[M,j]=m.useState(!1),F=Cp(t,n?n.toString()??null:null,M);return v.jsxs(e,{withoutLabel:o,label:a??"",hidden:l,className:g,hint:y,disabled:u,children:[v.jsx(sr.Control,{type:F,placeholder:s??a,size:c,value:i?S:(n==null?void 0:n.toString())??"",onChange:D,className:g??"",hidden:l,disabled:u??!1,list:h,onFocus:W=>{j(!0),!_&&W.target.select()},onBlur:()=>j(!1),onKeyDown:E,step:p,minLength:b,maxLength:x,autoComplete:w}),d&&n!==null&&r&&!u&&v.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:v.jsx(Rs,{color:"secondary",size:"sm",onClick:$,children:v.jsx(ks,{})})})]})},D2=({value:e,MiniDetailComponent:t,children:n,miniDetailPlacement:r})=>!e||!t?n:v.jsx(t,{id:e.toString(),placement:r,children:n}),N2=({InputContainer:e=eu,value:t,options:n,onChange:r,label:i,withoutLabel:a,isNumber:o,size:s,hidden:c,disabled:l,noSortOptions:u,className:d,suffixIdToName:f,noEmptyOption:h,appendCurrentSelectionWithName:g,dropdownWidth:p,hint:b,addNewOptionPath:x,refreshOptions:_,MiniDetailComponent:y,miniDetailPlacement:C,selectedItemNavigateTo:w})=>{const{texts:{customSelect:T}}=m.useContext(Pt),[$,R]=m.useState(!1),[S,k]=m.useState(""),O=m.useCallback(B=>{k(B)},[]),D=m.useMemo(()=>n.find(B=>B.id===t)??null,[n,t]),E=m.useCallback(B=>{var U;return B===null?"":!B.name||B.name.length===0?((U=B.id)==null?void 0:U.toString())??"":f?`${B.name} (${B.id})`:B.name},[f]),M=m.useMemo(()=>{const B=n?[...n]:[];return g!==void 0&&t!==void 0&&t!==null&&(B.some(U=>U.id===t)||B.push({id:t,name:g})),B.map(U=>({id:U.id,name:E(U)})).filter(U=>pp(U.name,S)).sort((U,N)=>u?0:(U.name??"").localeCompare(N.name??""))},[n,u,S,E,g,t]),j=m.useCallback(B=>{var U;r&&r((B==null?void 0:B.id)===void 0||(B==null?void 0:B.id)===null?null:o?Number(B.id):(U=B.id)==null?void 0:U.toString())},[r,o]),F=m.useCallback(B=>{R(!1),j(B)},[j]),W=m.useRef(null);return v.jsx(v.Fragment,{children:v.jsxs(e,{withoutLabel:a,label:i??"",hidden:c,inputContainerClassName:Q({"luminus-dropdown-select-open":$}),className:d,hint:b,disabled:l,children:[v.jsx(P2,{currentSelection:D,selectedItemNavigateTo:w,children:v.jsx(D2,{value:t,MiniDetailComponent:y,miniDetailPlacement:C,children:v.jsxs(sr.Select,{ref:W,size:s,value:t??"",onMouseDown:B=>{B.currentTarget.focus(),B.preventDefault()},onClick:()=>{!l&&R(!0)},onChange:()=>{},className:Q("w-100",{"luminus-dropdown-picker-disabled":l}),hidden:c,children:[h&&!(t==null||t==="")?void 0:v.jsx("option",{value:""}),t!=null&&v.jsx("option",{value:t,children:E(D)})]})})}),W.current&&v.jsx(C2,{show:$,onCancel:()=>R(!1),items:M,currentSelection:D??null,onSelectionChange:F,onSearchQueryChange:O,texts:T,disabled:l,inputRef:W,autoHideSearch:!0,allItemsLength:n.length,itemsNameWidth:p,addNewOptionPath:x,refreshOptions:_})]})})},u7=m.forwardRef(({onClick:e,text:t},n)=>v.jsx("div",{ref:n,onClick:r=>{r.preventDefault(),e(r)},role:"button",className:"middle-div",children:v.jsxs("div",{className:"d-flex flex-column align-items-center",children:[v.jsx("div",{className:"mt-",children:"…"}),v.jsx("div",{className:"mt-1 middle-letter",children:t})]})}));var jp=Ps(),Ne=e=>js(e,jp),Pp=Ps();Ne.write=e=>js(e,Pp);var tu=Ps();Ne.onStart=e=>js(e,tu);var Ip=Ps();Ne.onFrame=e=>js(e,Ip);var Dp=Ps();Ne.onFinish=e=>js(e,Dp);var ua=[];Ne.setTimeout=(e,t)=>{const n=Ne.now()+t,r=()=>{const a=ua.findIndex(o=>o.cancel==r);~a&&ua.splice(a,1),Br-=~a?1:0},i={time:n,handler:e,cancel:r};return ua.splice(F2(n),0,i),Br+=1,L2(),i};var F2=e=>~(~ua.findIndex(t=>t.time>e)||~ua.length);Ne.cancel=e=>{tu.delete(e),Ip.delete(e),Dp.delete(e),jp.delete(e),Pp.delete(e)};Ne.sync=e=>{qf=!0,Ne.batchedUpdates(e),qf=!1};Ne.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,Ne.onStart(n)}return r.handler=e,r.cancel=()=>{tu.delete(n),t=null},r};var Np=typeof window<"u"?window.requestAnimationFrame:()=>{};Ne.use=e=>Np=e;Ne.now=typeof performance<"u"?()=>performance.now():Date.now;Ne.batchedUpdates=e=>e();Ne.catch=console.error;Ne.frameLoop="always";Ne.advance=()=>{Ne.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):W2()};var Lr=-1,Br=0,qf=!1;function js(e,t){qf?(t.delete(e),e(0)):(t.add(e),L2())}function L2(){Lr<0&&(Lr=0,Ne.frameLoop!=="demand"&&Np(B2))}function d7(){Lr=-1}function B2(){~Lr&&(Np(B2),Ne.batchedUpdates(W2))}function W2(){const e=Lr;Lr=Ne.now();const t=F2(Lr);if(t&&(U2(ua.splice(0,t),n=>n.handler()),Br-=t),!Br){d7();return}tu.flush(),jp.flush(e?Math.min(64,Lr-e):16.667),Ip.flush(),Pp.flush(),Dp.flush()}function Ps(){let e=new Set,t=e;return{add(n){Br+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Br-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Br-=t.size,U2(t,r=>r(n)&&e.add(r)),Br+=e.size,t=e)}}}function U2(e,t){e.forEach(n=>{try{t(n)}catch(r){Ne.catch(r)}})}var f7=Object.defineProperty,h7=(e,t)=>{for(var n in t)f7(e,n,{get:t[n],enumerable:!0})},Vn={};h7(Vn,{assign:()=>m7,colors:()=>Ur,createStringInterpolator:()=>Lp,skipAnimation:()=>H2,to:()=>z2,willAdvance:()=>Bp});function Yf(){}var p7=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ae={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function pr(e,t){if(ae.arr(e)){if(!ae.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var De=(e,t)=>e.forEach(t);function nr(e,t,n){if(ae.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var fn=e=>ae.und(e)?[]:ae.arr(e)?e:[e];function Mo(e,t){if(e.size){const n=Array.from(e);e.clear(),De(n,t)}}var To=(e,...t)=>Mo(e,n=>n(...t)),Fp=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Lp,z2,Ur=null,H2=!1,Bp=Yf,m7=e=>{e.to&&(z2=e.to),e.now&&(Ne.now=e.now),e.colors!==void 0&&(Ur=e.colors),e.skipAnimation!=null&&(H2=e.skipAnimation),e.createStringInterpolator&&(Lp=e.createStringInterpolator),e.requestAnimationFrame&&Ne.use(e.requestAnimationFrame),e.batchedUpdates&&(Ne.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Bp=e.willAdvance),e.frameLoop&&(Ne.frameLoop=e.frameLoop)},$o=new Set,Mn=[],Fd=[],el=0,nu={get idle(){return!$o.size&&!Mn.length},start(e){el>e.priority?($o.add(e),Ne.onStart(g7)):(V2(e),Ne(Gf))},advance:Gf,sort(e){if(el)Ne.onFrame(()=>nu.sort(e));else{const t=Mn.indexOf(e);~t&&(Mn.splice(t,1),q2(e))}},clear(){Mn=[],$o.clear()}};function g7(){$o.forEach(V2),$o.clear(),Ne(Gf)}function V2(e){Mn.includes(e)||q2(e)}function q2(e){Mn.splice(v7(Mn,t=>t.priority>e.priority),0,e)}function Gf(e){const t=Fd;for(let n=0;n<Mn.length;n++){const r=Mn[n];el=r.priority,r.idle||(Bp(r),r.advance(e),r.idle||t.push(r))}return el=0,Fd=Mn,Fd.length=0,Mn=t,Mn.length>0}function v7(e,t){const n=e.findIndex(t);return n<0?e.length:n}var b7=(e,t,n)=>Math.min(Math.max(n,e),t),y7={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Wn="[-+]?\\d*\\.?\\d+",tl=Wn+"%";function ru(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var x7=new RegExp("rgb"+ru(Wn,Wn,Wn)),_7=new RegExp("rgba"+ru(Wn,Wn,Wn,Wn)),w7=new RegExp("hsl"+ru(Wn,tl,tl)),C7=new RegExp("hsla"+ru(Wn,tl,tl,Wn)),T7=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,k7=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,S7=/^#([0-9a-fA-F]{6})$/,O7=/^#([0-9a-fA-F]{8})$/;function E7(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=S7.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ur&&Ur[e]!==void 0?Ur[e]:(t=x7.exec(e))?(Xi(t[1])<<24|Xi(t[2])<<16|Xi(t[3])<<8|255)>>>0:(t=_7.exec(e))?(Xi(t[1])<<24|Xi(t[2])<<16|Xi(t[3])<<8|F0(t[4]))>>>0:(t=T7.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=O7.exec(e))?parseInt(t[1],16)>>>0:(t=k7.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=w7.exec(e))?(D0(N0(t[1]),nc(t[2]),nc(t[3]))|255)>>>0:(t=C7.exec(e))?(D0(N0(t[1]),nc(t[2]),nc(t[3]))|F0(t[4]))>>>0:null}function Ld(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function D0(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=Ld(i,r,e+1/3),o=Ld(i,r,e),s=Ld(i,r,e-1/3);return Math.round(a*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function Xi(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function N0(e){return(parseFloat(e)%360+360)%360/360}function F0(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function nc(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function L0(e){let t=E7(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,a=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${a})`}var ns=(e,t,n)=>{if(ae.fun(e))return e;if(ae.arr(e))return ns({range:e,output:t,extrapolate:n});if(ae.str(e.output[0]))return Lp(e);const r=e,i=r.output,a=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",c=r.easing||(l=>l);return l=>{const u=$7(l,a);return M7(l,a[u],a[u+1],i[u],i[u+1],c,o,s,r.map)}};function M7(e,t,n,r,i,a,o,s,c){let l=c?c(e):e;if(l<t){if(o==="identity")return l;o==="clamp"&&(l=t)}if(l>n){if(s==="identity")return l;s==="clamp"&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l=l-t:l=(l-t)/(n-t),l=a(l),r===-1/0?l=-l:i===1/0?l=l+r:l=l*(i-r)+r,l)}function $7(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var R7=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return b7(0,1,i/e)},nl=1.70158,rc=nl*1.525,B0=nl+1,W0=2*Math.PI/3,U0=2*Math.PI/4.5,ic=e=>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,A7={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>B0*e*e*e-nl*e*e,easeOutBack:e=>1+B0*Math.pow(e-1,3)+nl*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((rc+1)*2*e-rc)/2:(Math.pow(2*e-2,2)*((rc+1)*(e*2-2)+rc)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*W0),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*W0)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*U0))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*U0)/2+1,easeInBounce:e=>1-ic(1-e),easeOutBounce:ic,easeInOutBounce:e=>e<.5?(1-ic(1-2*e))/2:(1+ic(2*e-1))/2,steps:R7},rs=Symbol.for("FluidValue.get"),ka=Symbol.for("FluidValue.observers"),En=e=>!!(e&&e[rs]),gn=e=>e&&e[rs]?e[rs]():e,z0=e=>e[ka]||null;function j7(e,t){e.eventObserved?e.eventObserved(t):e(t)}function is(e,t){const n=e[ka];n&&n.forEach(r=>{j7(r,t)})}var Y2=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");P7(this,e)}},P7=(e,t)=>G2(e,rs,t);function Na(e,t){if(e[rs]){let n=e[ka];n||G2(e,ka,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function as(e,t){const n=e[ka];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[ka]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var G2=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Sc=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,I7=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,H0=new RegExp(`(${Sc.source})(%|[a-z]+)`,"i"),D7=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,iu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Z2=e=>{const[t,n]=N7(e);if(!t||Fp())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&iu.test(n))return Z2(n);if(n)return n}return e},N7=e=>{const t=iu.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Bd,F7=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,K2=e=>{Bd||(Bd=Ur?new RegExp(`(${Object.keys(Ur).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(a=>gn(a).replace(iu,Z2).replace(I7,L0).replace(Bd,L0)),n=t.map(a=>a.match(Sc).map(Number)),i=n[0].map((a,o)=>n.map(s=>{if(!(o in s))throw Error('The arity of each "output" value must be equal');return s[o]})).map(a=>ns({...e,output:a}));return a=>{var c;const o=!H0.test(t[0])&&((c=t.find(l=>H0.test(l)))==null?void 0:c.replace(Sc,""));let s=0;return t[0].replace(Sc,()=>`${i[s++](a)}${o||""}`).replace(D7,F7)}},Wp="react-spring: ",X2=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Wp}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},L7=X2(console.warn);function B7(){L7(`${Wp}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var W7=X2(console.warn);function U7(){W7(`${Wp}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function au(e){return ae.str(e)&&(e[0]=="#"||/\d/.test(e)||!Fp()&&iu.test(e)||e in(Ur||{}))}var fi=Fp()?m.useEffect:m.useLayoutEffect,z7=()=>{const e=m.useRef(!1);return fi(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Up(){const e=m.useState()[1],t=z7();return()=>{t.current&&e(Math.random())}}function H7(e,t){const[n]=m.useState(()=>({inputs:t,result:e()})),r=m.useRef(),i=r.current;let a=i;return a?t&&a.inputs&&V7(t,a.inputs)||(a={inputs:t,result:e()}):a=n,m.useEffect(()=>{r.current=a,i==n&&(n.inputs=n.result=void 0)},[a]),a.result}function V7(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var zp=e=>m.useEffect(e,q7),q7=[];function Zf(e){const t=m.useRef();return m.useEffect(()=>{t.current=e}),t.current}var os=Symbol.for("Animated:node"),Y7=e=>!!e&&e[os]===e,Zn=e=>e&&e[os],Hp=(e,t)=>p7(e,os,t),ou=e=>e&&e[os]&&e[os].getPayload(),Q2=class{constructor(){Hp(this,this)}getPayload(){return this.payload||[]}},Is=class extends Q2{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,ae.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Is(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return ae.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,ae.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},ss=class extends Is{constructor(e){super(0),this._string=null,this._toString=ns({output:[e,e]})}static create(e){return new ss(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(ae.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=ns({output:[this.getValue(),e]})),this._value=0,super.reset()}},rl={dependencies:null},su=class extends Q2{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return nr(this.source,(n,r)=>{Y7(n)?t[r]=n.getValue(e):En(n)?t[r]=gn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&De(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return nr(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){rl.dependencies&&En(e)&&rl.dependencies.add(e);const t=ou(e);t&&De(t,n=>this.add(n))}},J2=class extends su{constructor(e){super(e)}static create(e){return new J2(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(G7)),!0)}};function G7(e){return(au(e)?ss:Is).create(e)}function Kf(e){const t=Zn(e);return t?t.constructor:ae.arr(e)?J2:au(e)?ss:Is}var V0=(e,t)=>{const n=!ae.fun(e)||e.prototype&&e.prototype.isReactComponent;return m.forwardRef((r,i)=>{const a=m.useRef(null),o=n&&m.useCallback(g=>{a.current=X7(i,g)},[i]),[s,c]=K7(r,t),l=Up(),u=()=>{const g=a.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,s.getValue(!0)):!1)===!1&&l()},d=new Z7(u,c),f=m.useRef();fi(()=>(f.current=d,De(c,g=>Na(g,d)),()=>{f.current&&(De(f.current.deps,g=>as(g,f.current)),Ne.cancel(f.current.update))})),m.useEffect(u,[]),zp(()=>()=>{const g=f.current;De(g.deps,p=>as(p,g))});const h=t.getComponentProps(s.getValue());return ie.createElement(e,{...h,ref:o})})},Z7=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Ne.write(this.update)}};function K7(e,t){const n=new Set;return rl.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new su(e),rl.dependencies=null,[e,n]}function X7(e,t){return e&&(ae.fun(e)?e(t):e.current=t),t}var q0=Symbol.for("AnimatedComponent"),Q7=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new su(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=o=>{const s=Y0(o)||"Anonymous";return ae.str(o)?o=a[o]||(a[o]=V0(o,i)):o=o[q0]||(o[q0]=V0(o,i)),o.displayName=`Animated(${s})`,o};return nr(e,(o,s)=>{ae.arr(e)&&(s=Y0(o)),a[s]=a(o)}),{animated:a}},Y0=e=>ae.str(e)?e:e&&ae.str(e.displayName)?e.displayName:ae.fun(e)&&e.name||null;function vn(e,...t){return ae.fun(e)?e(...t):e}var Ro=(e,t)=>e===!0||!!(t&&e&&(ae.fun(e)?e(t):fn(e).includes(t))),e_=(e,t)=>ae.obj(e)?t&&e[t]:e,t_=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,J7=e=>e,cu=(e,t=J7)=>{let n=eR;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const a=t(e[i],i);ae.und(a)||(r[i]=a)}return r},eR=["config","onProps","onStart","onChange","onPause","onResume","onRest"],tR={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function nR(e){const t={};let n=0;if(nr(e,(r,i)=>{tR[i]||(t[i]=r,n++)}),n)return t}function Vp(e){const t=nR(e);if(t){const n={to:t};return nr(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function cs(e){return e=gn(e),ae.arr(e)?e.map(cs):au(e)?Vn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function n_(e){for(const t in e)return!0;return!1}function Xf(e){return ae.fun(e)||ae.arr(e)&&ae.obj(e[0])}function Qf(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function r_(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var qp={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Jf={...qp.default,mass:1,damping:1,easing:A7.linear,clamp:!1},rR=class{constructor(){this.velocity=0,Object.assign(this,Jf)}};function iR(e,t,n){n&&(n={...n},G0(n,t),t={...n,...t}),G0(e,t),Object.assign(e,t);for(const o in Jf)e[o]==null&&(e[o]=Jf[o]);let{frequency:r,damping:i}=e;const{mass:a}=e;return ae.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*i*a/r),e}function G0(e,t){if(!ae.und(t.decay))e.duration=void 0;else{const n=!ae.und(t.tension)||!ae.und(t.friction);(n||!ae.und(t.frequency)||!ae.und(t.damping)||!ae.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Z0=[],aR=class{constructor(){this.changed=!1,this.values=Z0,this.toValues=null,this.fromValues=Z0,this.config=new rR,this.immediate=!1}};function i_(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let c,l,u=Ro(n.cancel??(r==null?void 0:r.cancel),t);if(u)h();else{ae.und(n.pause)||(i.paused=Ro(n.pause,t));let g=r==null?void 0:r.pause;g!==!0&&(g=i.paused||Ro(g,t)),c=vn(n.delay||0,t),g?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(l),l.cancel(),c=l.time-Ne.now()}function f(){c>0&&!Vn.skipAnimation?(i.delayed=!0,l=Ne.setTimeout(h,c),i.pauseQueue.add(d),i.timeouts.add(l)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(l),e<=(i.cancelId||0)&&(u=!0);try{a.start({...n,callId:e,cancel:u},o)}catch(g){s(g)}}})}var Yp=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?da(e.get()):t.every(n=>n.noop)?a_(e.get()):Fn(e.get(),t.every(n=>n.finished)),a_=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Fn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),da=e=>({value:e,cancelled:!0,finished:!1});function o_(e,t,n,r){const{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:c}=n;return!a&&e===s&&!t.reset?c:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const l=cu(t,(b,x)=>x==="onRest"?void 0:b);let u,d;const f=new Promise((b,x)=>(u=b,d=x)),h=b=>{const x=i<=(n.cancelId||0)&&da(r)||i!==n.asyncId&&Fn(r,!1);if(x)throw b.result=x,d(b),b},g=(b,x)=>{const _=new K0,y=new X0;return(async()=>{if(Vn.skipAnimation)throw ls(n),y.result=Fn(r,!1),d(y),y;h(_);const C=ae.obj(b)?{...b}:{...x,to:b};C.parentId=i,nr(l,(T,$)=>{ae.und(C[$])&&(C[$]=T)});const w=await r.start(C);return h(_),n.paused&&await new Promise(T=>{n.resumeQueue.add(T)}),w})()};let p;if(Vn.skipAnimation)return ls(n),Fn(r,!1);try{let b;ae.arr(e)?b=(async x=>{for(const _ of x)await g(_)})(e):b=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([b.then(u),f]),p=Fn(r.get(),!0,!1)}catch(b){if(b instanceof K0)p=b.result;else if(b instanceof X0)p=b.result;else throw b}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?c:void 0)}return ae.fun(o)&&Ne.batchedUpdates(()=>{o(p,r,r.item)}),p})()}function ls(e,t){Mo(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var K0=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},X0=class extends Error{constructor(){super("SkipAnimationSignal")}},eh=e=>e instanceof Gp,oR=1,Gp=class extends Y2{constructor(){super(...arguments),this.id=oR++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Zn(this);return e&&e.getValue()}to(...e){return Vn.to(this,e)}interpolate(...e){return B7(),Vn.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){is(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||nu.sort(this),is(this,{type:"priority",parent:this,priority:e})}},$i=Symbol.for("SpringPhase"),s_=1,th=2,nh=4,Wd=e=>(e[$i]&s_)>0,Rr=e=>(e[$i]&th)>0,lo=e=>(e[$i]&nh)>0,Q0=(e,t)=>t?e[$i]|=th|s_:e[$i]&=~th,J0=(e,t)=>t?e[$i]|=nh:e[$i]&=~nh,sR=class extends Gp{constructor(e,t){if(super(),this.animation=new aR,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!ae.und(e)||!ae.und(t)){const n=ae.obj(e)?{...e}:{...t,from:e};ae.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Rr(this)||this._state.asyncTo)||lo(this)}get goal(){return gn(this.animation.to)}get velocity(){const e=Zn(this);return e instanceof Is?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Wd(this)}get isAnimating(){return Rr(this)}get isPaused(){return lo(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:a}=r,o=ou(r.to);!o&&En(r.to)&&(i=fn(gn(r.to))),r.values.forEach((l,u)=>{if(l.done)return;const d=l.constructor==ss?1:o?o[u].lastPosition:i[u];let f=r.immediate,h=d;if(!f){if(h=l.lastPosition,a.tension<=0){l.done=!0;return}let g=l.elapsedTime+=e;const p=r.fromValues[u],b=l.v0!=null?l.v0:l.v0=ae.arr(a.velocity)?a.velocity[u]:a.velocity;let x;const _=a.precision||(p==d?.005:Math.min(1,Math.abs(d-p)*.001));if(ae.und(a.duration))if(a.decay){const y=a.decay===!0?.998:a.decay,C=Math.exp(-(1-y)*g);h=p+b/(1-y)*(1-C),f=Math.abs(l.lastPosition-h)<=_,x=b*C}else{x=l.lastVelocity==null?b:l.lastVelocity;const y=a.restVelocity||_/10,C=a.clamp?0:a.bounce,w=!ae.und(C),T=p==d?l.v0>0:p<d;let $,R=!1;const S=1,k=Math.ceil(e/S);for(let O=0;O<k&&($=Math.abs(x)>y,!(!$&&(f=Math.abs(d-h)<=_,f)));++O){w&&(R=h==d||h>d==T,R&&(x=-x*C,h=d));const D=-a.tension*1e-6*(h-d),E=-a.friction*.001*x,M=(D+E)/a.mass;x=x+M*S,h=h+x*S}}else{let y=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,l.durationProgress>0&&(l.elapsedTime=a.duration*l.durationProgress,g=l.elapsedTime+=e)),y=(a.progress||0)+g/this._memoizedDuration,y=y>1?1:y<0?0:y,l.durationProgress=y),h=p+a.easing(y)*(d-p),x=(h-l.lastPosition)/e,f=y==1}l.lastVelocity=x,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),f=!0)}o&&!o[u].done&&(f=!1),f?l.done=!0:t=!1,l.setValue(h,a.round)&&(n=!0)});const s=Zn(this),c=s.getValue();if(t){const l=gn(r.to);(c!==l||n)&&!a.decay?(s.setValue(l),this._onChange(l)):n&&a.decay&&this._onChange(c),this._stop()}else n&&this._onChange(c)}set(e){return Ne.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Rr(this)){const{to:e,config:t}=this.animation;Ne.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return ae.und(e)?(n=this.queue||[],this.queue=[]):n=[ae.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Yp(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),ls(this._state,e&&this._lastCallId),Ne.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=ae.obj(n)?n[t]:n,(n==null||Xf(n))&&(n=void 0),r=ae.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return Wd(this)||(e.reverse&&([n,r]=[r,n]),r=gn(r),ae.und(r)?Zn(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,cu(e,(o,s)=>/^on/.test(s)?e_(o,n):o)),tv(this,e,"onProps"),fo(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return i_(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{lo(this)||(J0(this,!0),To(a.pauseQueue),fo(this,"onPause",Fn(this,uo(this,this.animation.to)),this))},resume:()=>{lo(this)&&(J0(this,!1),Rr(this)&&this._resume(),To(a.resumeQueue),fo(this,"onResume",Fn(this,uo(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=c_(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(da(this));const r=!ae.und(e.to),i=!ae.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(da(this));const{key:a,defaultProps:o,animation:s}=this,{to:c,from:l}=s;let{to:u=c,from:d=l}=e;i&&!r&&(!t.default||ae.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);const f=!pr(d,l);f&&(s.from=d),d=gn(d);const h=!pr(u,c);h&&this._focus(u);const g=Xf(t.to),{config:p}=s,{decay:b,velocity:x}=p;(r||i)&&(p.velocity=0),t.config&&!g&&iR(p,vn(t.config,a),t.config!==o.config?vn(o.config,a):void 0);let _=Zn(this);if(!_||ae.und(u))return n(Fn(this,!0));const y=ae.und(t.reset)?i&&!t.default:!ae.und(d)&&Ro(t.reset,a),C=y?d:this.get(),w=cs(u),T=ae.num(w)||ae.arr(w)||au(w),$=!g&&(!T||Ro(o.immediate||t.immediate,a));if(h){const O=Kf(u);if(O!==_.constructor)if($)_=this._set(w);else throw Error(`Cannot animate between ${_.constructor.name} and ${O.name}, as the "to" prop suggests`)}const R=_.constructor;let S=En(u),k=!1;if(!S){const O=y||!Wd(this)&&f;(h||O)&&(k=pr(cs(C),w),S=!k),(!pr(s.immediate,$)&&!$||!pr(p.decay,b)||!pr(p.velocity,x))&&(S=!0)}if(k&&Rr(this)&&(s.changed&&!y?S=!0:S||this._stop(c)),!g&&((S||En(c))&&(s.values=_.getPayload(),s.toValues=En(u)?null:R==ss?[1]:fn(w)),s.immediate!=$&&(s.immediate=$,!$&&!y&&this._set(c)),S)){const{onRest:O}=s;De(lR,E=>tv(this,t,E));const D=Fn(this,uo(this,c));To(this._pendingCalls,D),this._pendingCalls.add(n),s.changed&&Ne.batchedUpdates(()=>{var E;s.changed=!y,O==null||O(D,this),y?vn(o.onRest,D):(E=s.onStart)==null||E.call(s,D,this)})}y&&this._set(C),g?n(o_(t.to,t,this._state,this)):S?this._start():Rr(this)&&!h?this._pendingCalls.add(n):n(a_(C))}_focus(e){const t=this.animation;e!==t.to&&(z0(this)&&this._detach(),t.to=e,z0(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;En(t)&&(Na(t,this),eh(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;En(e)&&as(e,this)}_set(e,t=!0){const n=gn(e);if(!ae.und(n)){const r=Zn(this);if(!r||!pr(n,r.getValue())){const i=Kf(n);!r||r.constructor!=i?Hp(this,i.create(n)):r.setValue(n),r&&Ne.batchedUpdates(()=>{this._onChange(n,t)})}}return Zn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,fo(this,"onStart",Fn(this,uo(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),vn(this.animation.onChange,e,this)),vn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Zn(this).reset(gn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Rr(this)||(Q0(this,!0),lo(this)||this._resume())}_resume(){Vn.skipAnimation?this.finish():nu.start(this)}_stop(e,t){if(Rr(this)){Q0(this,!1);const n=this.animation;De(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),is(this,{type:"idle",parent:this});const r=t?da(this.get()):Fn(this.get(),uo(this,e??n.to));To(this._pendingCalls,r),n.changed&&(n.changed=!1,fo(this,"onRest",r,this))}}};function uo(e,t){const n=cs(t),r=cs(e.get());return pr(r,n)}function c_(e,t=e.loop,n=e.to){const r=vn(t);if(r){const i=r!==!0&&Vp(r),a=(i||e).reverse,o=!i||i.reset;return us({...e,loop:t,default:!1,pause:void 0,to:!a||Xf(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function us(e){const{to:t,from:n}=e=Vp(e),r=new Set;return ae.obj(t)&&ev(t,r),ae.obj(n)&&ev(n,r),e.keys=r.size?Array.from(r):null,e}function cR(e){const t=us(e);return ae.und(t.default)&&(t.default=cu(t)),t}function ev(e,t){nr(e,(n,r)=>n!=null&&t.add(r))}var lR=["onStart","onRest","onChange","onPause","onResume"];function tv(e,t,n){e.animation[n]=t[n]!==t_(t,n)?e_(t[n],e.key):void 0}function fo(e,t,...n){var r,i,a,o;(i=(r=e.animation)[t])==null||i.call(r,...n),(o=(a=e.defaultProps)[t])==null||o.call(a,...n)}var uR=["onStart","onChange","onRest"],dR=1,l_=class{constructor(e,t){this.id=dR++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];ae.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(us(e)),this}start(e){let{queue:t}=this;return e?t=fn(e).map(us):this.queue=[],this._flush?this._flush(this,t):(p_(this,t),rh(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;De(fn(t),r=>n[r].stop(!!e))}else ls(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(ae.und(e))this.start({pause:!0});else{const t=this.springs;De(fn(e),n=>t[n].pause())}return this}resume(e){if(ae.und(e))this.start({pause:!1});else{const t=this.springs;De(fn(e),n=>t[n].resume())}return this}each(e){nr(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Mo(e,([s,c])=>{c.value=this.get(),s(c,this,this._item)}));const a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&Mo(t,([s,c])=>{c.value=o,s(c,this,this._item)}),a&&(this._started=!1,Mo(n,([s,c])=>{c.value=o,s(c,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Ne.onFrame(this._onFrame)}};function rh(e,t){return Promise.all(t.map(n=>u_(e,n))).then(n=>Yp(e,n))}async function u_(e,t,n){const{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:c}=t,l=ae.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),a===!1&&(t.from=null);const u=ae.arr(i)||ae.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):De(uR,p=>{const b=t[p];if(ae.fun(b)){const x=e._events[p];t[p]=({finished:_,cancelled:y})=>{const C=x.get(b);C?(_||(C.finished=!1),y&&(C.cancelled=!0)):x.set(b,{value:null,finished:_||!1,cancelled:y||!1})},l&&(l[p]=t[p])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,To(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(p=>e.springs[p].start(t)),h=t.cancel===!0||t_(t,"cancel")===!0;(u||h&&d.asyncId)&&f.push(i_(++e._lastAsyncId,{props:t,state:d,actions:{pause:Yf,resume:Yf,start(p,b){h?(ls(d,e._lastAsyncId),b(da(e))):(p.onRest=s,b(o_(u,p,d,e)))}}})),d.paused&&await new Promise(p=>{d.resumeQueue.add(p)});const g=Yp(e,await Promise.all(f));if(o&&g.finished&&!(n&&g.noop)){const p=c_(t,o,i);if(p)return p_(e,[p]),u_(e,p,!0)}return c&&Ne.batchedUpdates(()=>c(g,e,e.item)),g}function ih(e,t){const n={...e.springs};return t&&De(fn(t),r=>{ae.und(r.keys)&&(r=us(r)),ae.obj(r.to)||(r={...r,to:void 0}),h_(n,r,i=>f_(i))}),d_(e,n),n}function d_(e,t){nr(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Na(n,e))})}function f_(e,t){const n=new sR;return n.key=e,t&&Na(n,t),n}function h_(e,t,n){t.keys&&De(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function p_(e,t){De(t,n=>{h_(e.springs,n,r=>f_(r,e))})}var Ds=({children:e,...t})=>{const n=m.useContext(il),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=H7(()=>({pause:r,immediate:i}),[r,i]);const{Provider:a}=il;return ie.createElement(a,{value:t},e)},il=fR(Ds,{});Ds.Provider=il.Provider;Ds.Consumer=il.Consumer;function fR(e,t){return Object.assign(e,ie.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var m_=()=>{const e=[],t=function(r){U7();const i=[];return De(e,(a,o)=>{if(ae.und(r))i.push(a.start());else{const s=n(r,a,o);s&&i.push(a.start(s))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return De(e,r=>r.pause(...arguments)),this},t.resume=function(){return De(e,r=>r.resume(...arguments)),this},t.set=function(r){De(e,(i,a)=>{const o=ae.fun(r)?r(a,i):r;o&&i.set(o)})},t.start=function(r){const i=[];return De(e,(a,o)=>{if(ae.und(r))i.push(a.start());else{const s=this._getProps(r,a,o);s&&i.push(a.start(s))}}),i},t.stop=function(){return De(e,r=>r.stop(...arguments)),this},t.update=function(r){return De(e,(i,a)=>i.update(this._getProps(r,i,a))),this};const n=function(r,i,a){return ae.fun(r)?r(a,i):r};return t._getProps=n,t};function hR(e,t,n){const r=ae.fun(t)&&t;r&&!n&&(n=[]);const i=m.useMemo(()=>r||arguments.length==3?m_():void 0,[]),a=m.useRef(0),o=Up(),s=m.useMemo(()=>({ctrls:[],queue:[],flush(x,_){const y=ih(x,_);return a.current>0&&!s.queue.length&&!Object.keys(y).some(w=>!x.springs[w])?rh(x,_):new Promise(w=>{d_(x,y),s.queue.push(()=>{w(rh(x,_))}),o()})}}),[]),c=m.useRef([...s.ctrls]),l=[],u=Zf(e)||0;m.useMemo(()=>{De(c.current.slice(e,u),x=>{Qf(x,i),x.stop(!0)}),c.current.length=e,d(u,e)},[e]),m.useMemo(()=>{d(0,Math.min(u,e))},n);function d(x,_){for(let y=x;y<_;y++){const C=c.current[y]||(c.current[y]=new l_(null,s.flush)),w=r?r(y,C):t[y];w&&(l[y]=cR(w))}}const f=c.current.map((x,_)=>ih(x,l[_])),h=m.useContext(Ds),g=Zf(h),p=h!==g&&n_(h);fi(()=>{a.current++,s.ctrls=c.current;const{queue:x}=s;x.length&&(s.queue=[],De(x,_=>_())),De(c.current,(_,y)=>{i==null||i.add(_),p&&_.start({default:h});const C=l[y];C&&(r_(_,C.ref),_.ref?_.queue.push(C):_.start(C))})}),zp(()=>()=>{De(s.ctrls,x=>x.stop(!0))});const b=f.map(x=>({...x}));return i?[b,i]:b}function cr(e,t){const n=ae.fun(e),[[r],i]=hR(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}function Fi(e,t,n){const r=ae.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:c=!1,onDestroyed:l,ref:u,config:d}=r?r():t,f=m.useMemo(()=>r||arguments.length==3?m_():void 0,[]),h=fn(e),g=[],p=m.useRef(null),b=i?null:p.current;fi(()=>{p.current=g}),zp(()=>(De(g,M=>{f==null||f.add(M.ctrl),M.ctrl.ref=f}),()=>{De(p.current,M=>{M.expired&&clearTimeout(M.expirationId),Qf(M.ctrl,f),M.ctrl.stop(!0)})}));const x=mR(h,r?r():t,b),_=i&&p.current||[];fi(()=>De(_,({ctrl:M,item:j,key:F})=>{Qf(M,f),vn(l,j,F)}));const y=[];if(b&&De(b,(M,j)=>{M.expired?(clearTimeout(M.expirationId),_.push(M)):(j=y[j]=x.indexOf(M.key),~j&&(g[j]=M))}),De(h,(M,j)=>{g[j]||(g[j]={key:x[j],item:M,phase:"mount",ctrl:new l_},g[j].ctrl.item=M)}),y.length){let M=-1;const{leave:j}=r?r():t;De(y,(F,W)=>{const B=b[W];~F?(M=g.indexOf(B),g[M]={...B,item:h[F]}):j&&g.splice(++M,0,B)})}ae.fun(a)&&g.sort((M,j)=>a(M.item,j.item));let C=-o;const w=Up(),T=cu(t),$=new Map,R=m.useRef(new Map),S=m.useRef(!1);De(g,(M,j)=>{const F=M.key,W=M.phase,B=r?r():t;let U,N;const V=vn(B.delay||0,F);if(W=="mount")U=B.enter,N="enter";else{const J=x.indexOf(F)<0;if(W!="leave")if(J)U=B.leave,N="leave";else if(U=B.update)N="update";else return;else if(!J)U=B.enter,N="enter";else return}if(U=vn(U,M.item,j),U=ae.obj(U)?Vp(U):{to:U},!U.config){const J=d||T.config;U.config=vn(J,M.item,j,N)}C+=o;const X={...T,delay:V+C,ref:u,immediate:B.immediate,reset:!1,...U};if(N=="enter"&&ae.und(X.from)){const J=r?r():t,q=ae.und(J.initial)||b?J.from:J.initial;X.from=vn(q,M.item,j)}const{onResolve:ne}=X;X.onResolve=J=>{vn(ne,J);const q=p.current,G=q.find(z=>z.key===F);if(G&&!(J.cancelled&&G.phase!="update")&&G.ctrl.idle){const z=q.every(L=>L.ctrl.idle);if(G.phase=="leave"){const L=vn(s,G.item);if(L!==!1){const H=L===!0?0:L;if(G.expired=!0,!z&&H>0){H<=2147483647&&(G.expirationId=setTimeout(w,H));return}}}z&&q.some(L=>L.expired)&&(R.current.delete(G),c&&(S.current=!0),w())}};const K=ih(M.ctrl,X);N==="leave"&&c?R.current.set(M,{phase:N,springs:K,payload:X}):$.set(M,{phase:N,springs:K,payload:X})});const k=m.useContext(Ds),O=Zf(k),D=k!==O&&n_(k);fi(()=>{D&&De(g,M=>{M.ctrl.start({default:k})})},[k]),De($,(M,j)=>{if(R.current.size){const F=g.findIndex(W=>W.key===j.key);g.splice(F,1)}}),fi(()=>{De(R.current.size?R.current:$,({phase:M,payload:j},F)=>{const{ctrl:W}=F;F.phase=M,f==null||f.add(W),D&&M=="enter"&&W.start({default:k}),j&&(r_(W,j.ref),(W.ref||f)&&!S.current?W.update(j):(W.start(j),S.current&&(S.current=!1)))})},i?void 0:n);const E=M=>ie.createElement(ie.Fragment,null,g.map((j,F)=>{const{springs:W}=$.get(j)||j.ctrl,B=M({...W},j.item,j,F);return B&&B.type?ie.createElement(B.type,{...B.props,key:ae.str(j.key)||ae.num(j.key)?j.key:j.ctrl.id,ref:B.ref}):B}));return f?[E,f]:E}var pR=1;function mR(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(a=>{const o=r&&r.find(s=>s.item===a&&s.phase!=="leave"&&!i.has(s));return o?(i.add(o),o.key):pR++})}return ae.und(n)?e:ae.fun(n)?e.map(n):fn(n)}var g_=class extends Gp{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=ns(...t);const n=this._get(),r=Kf(n);Hp(this,r.create(n))}advance(e){const t=this._get(),n=this.get();pr(t,n)||(Zn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&nv(this._active)&&Ud(this)}_get(){const e=ae.arr(this.source)?this.source.map(gn):fn(gn(this.source));return this.calc(...e)}_start(){this.idle&&!nv(this._active)&&(this.idle=!1,De(ou(this),e=>{e.done=!1}),Vn.skipAnimation?(Ne.batchedUpdates(()=>this.advance()),Ud(this)):nu.start(this))}_attach(){let e=1;De(fn(this.source),t=>{En(t)&&Na(t,this),eh(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){De(fn(this.source),e=>{En(e)&&as(e,this)}),this._active.clear(),Ud(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=fn(this.source).reduce((t,n)=>Math.max(t,(eh(n)?n.priority:0)+1),0))}};function gR(e){return e.idle!==!1}function nv(e){return!e.size||Array.from(e).every(gR)}function Ud(e){e.idle||(e.idle=!0,De(ou(e),t=>{t.done=!0}),is(e,{type:"idle",parent:e}))}var Zr=(e,...t)=>new g_(e,t);Vn.assign({createStringInterpolator:K2,to:(e,t)=>new g_(e,t)});var v_=/^--/;function vR(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!v_.test(e)&&!(Ao.hasOwnProperty(e)&&Ao[e])?t+"px":(""+t).trim()}var rv={};function bR(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:i,children:a,scrollTop:o,scrollLeft:s,viewBox:c,...l}=t,u=Object.values(l),d=Object.keys(l).map(f=>n||e.hasAttribute(f)?f:rv[f]||(rv[f]=f.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));a!==void 0&&(e.textContent=a);for(const f in i)if(i.hasOwnProperty(f)){const h=vR(f,i[f]);v_.test(f)?e.style.setProperty(f,h):e.style[f]=h}d.forEach((f,h)=>{e.setAttribute(f,u[h])}),r!==void 0&&(e.className=r),o!==void 0&&(e.scrollTop=o),s!==void 0&&(e.scrollLeft=s),c!==void 0&&e.setAttribute("viewBox",c)}var Ao={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yR=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),xR=["Webkit","Ms","Moz","O"];Ao=Object.keys(Ao).reduce((e,t)=>(xR.forEach(n=>e[yR(n,t)]=e[t]),e),Ao);var _R=/^(matrix|translate|scale|rotate|skew)/,wR=/^(translate)/,CR=/^(rotate|skew)/,zd=(e,t)=>ae.num(e)&&e!==0?e+t:e,Oc=(e,t)=>ae.arr(e)?e.every(n=>Oc(n,t)):ae.num(e)?e===t:parseFloat(e)===t,TR=class extends su{constructor({x:e,y:t,z:n,...r}){const i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(o=>[`translate3d(${o.map(s=>zd(s,"px")).join(",")})`,Oc(o,0)])),nr(r,(o,s)=>{if(s==="transform")i.push([o||""]),a.push(c=>[c,c===""]);else if(_R.test(s)){if(delete r[s],ae.und(o))return;const c=wR.test(s)?"px":CR.test(s)?"deg":"";i.push(fn(o)),a.push(s==="rotate3d"?([l,u,d,f])=>[`rotate3d(${l},${u},${d},${zd(f,c)})`,Oc(f,0)]:l=>[`${s}(${l.map(u=>zd(u,c)).join(",")})`,Oc(l,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new kR(i,a)),super(r)}},kR=class extends Y2{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return De(this.inputs,(n,r)=>{const i=gn(n[0]),[a,o]=this.transforms[r](ae.arr(i)?i:n.map(gn));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){e==1&&De(this.inputs,t=>De(t,n=>En(n)&&Na(n,this)))}observerRemoved(e){e==0&&De(this.inputs,t=>De(t,n=>En(n)&&as(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),is(this,e)}},SR=["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","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"];Vn.assign({batchedUpdates:Fr.unstable_batchedUpdates,createStringInterpolator:K2,colors:y7});var OR=Q7(SR,{applyAnimatedValues:bR,createAnimatedStyle:e=>new TR(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),ft=OR.animated;function Ri(){return Ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ri.apply(this,arguments)}var ER={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},iv=function(e,t){return"translate("+e+"px, "+t+"px)"},b_=m.memo(function(e){var t,n=e.position,r=e.anchor,i=e.children,a=ht(),o=mn(),s=o.animate,c=o.config,l=TC(),u=l[0],d=l[1],f=m.useRef(!1),h=void 0,g=!1,p=d.width>0&&d.height>0,b=Math.round(n[0]),x=Math.round(n[1]);p&&(r==="top"?(b-=d.width/2,x-=d.height+14):r==="right"?(b+=14,x-=d.height/2):r==="bottom"?(b-=d.width/2,x+=14):r==="left"?(b-=d.width+14,x-=d.height/2):r==="center"&&(b-=d.width/2,x-=d.height/2),h={transform:iv(b,x)},f.current||(g=!0),f.current=[b,x]);var _=cr({to:h,config:c,immediate:!s||g}),y=Ri({},ER,a.tooltip.wrapper,{transform:(t=_.transform)!=null?t:iv(b,x),opacity:_.transform?1:0});return v.jsx(ft.div,{ref:u,style:y,children:i})});b_.displayName="TooltipWrapper";var y_=m.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return v.jsx("span",{style:Ri({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})}),Zp=m.memo(function(e){var t,n=e.id,r=e.value,i=e.format,a=e.enableChip,o=a!==void 0&&a,s=e.color,c=e.renderContent,l=ht(),u=Ma(i);if(typeof c=="function")t=c();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=v.jsxs("div",{style:l.tooltip.basic,children:[o&&v.jsx(y_,{color:s,style:l.tooltip.chip}),d!==void 0?v.jsxs("span",{children:[n,": ",v.jsx("strong",{children:""+d})]}):n]})}return v.jsx("div",{style:l.tooltip.container,children:t})}),MR={width:"100%",borderCollapse:"collapse"},x_=m.memo(function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,a=e.renderContent,o=ht();return i.length?(t=typeof a=="function"?a():v.jsxs("div",{children:[n&&n,v.jsx("table",{style:Ri({},MR,o.tooltip.table),children:v.jsx("tbody",{children:i.map(function(s,c){return v.jsx("tr",{children:s.map(function(l,u){return v.jsx("td",{style:o.tooltip.tableCell,children:l},u)})},c)})})})]}),v.jsx("div",{style:o.tooltip.container,children:t})):null});x_.displayName="TableTooltip";var ah=m.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,a=ht(),o=mn(),s=o.animate,c=o.config,l=m.useMemo(function(){return Ri({},a.crosshair.line,{pointerEvents:"none"})},[a.crosshair.line]),u=cr({x1:t,x2:n,y1:r,y2:i,config:c,immediate:!s});return v.jsx(ft.line,Ri({},u,{fill:"none",style:l}))});ah.displayName="CrosshairLine";var oh=m.memo(function(e){var t,n,r=e.width,i=e.height,a=e.type,o=e.x,s=e.y;return a==="cross"?(t={x0:o,x1:o,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):a==="top-left"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):a==="top"?t={x0:o,x1:o,y0:0,y1:s}:a==="top-right"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:r,y0:s,y1:s}):a==="right"?n={x0:o,x1:r,y0:s,y1:s}:a==="bottom-right"?(t={x0:o,x1:o,y0:s,y1:i},n={x0:o,x1:r,y0:s,y1:s}):a==="bottom"?t={x0:o,x1:o,y0:s,y1:i}:a==="bottom-left"?(t={x0:o,x1:o,y0:s,y1:i},n={x0:0,x1:o,y0:s,y1:s}):a==="left"?n={x0:0,x1:o,y0:s,y1:s}:a==="x"?t={x0:o,x1:o,y0:0,y1:i}:a==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),v.jsxs(v.Fragment,{children:[t&&v.jsx(ah,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&v.jsx(ah,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});oh.displayName="Crosshair";var __=m.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),sh={isVisible:!1,position:[null,null],content:null,anchor:null},w_=m.createContext(sh),$R=function(e){var t=m.useState(sh),n=t[0],r=t[1],i=m.useCallback(function(s,c,l){var u=c[0],d=c[1];l===void 0&&(l="top"),r({isVisible:!0,position:[u,d],anchor:l,content:s})},[r]),a=m.useCallback(function(s,c,l){l===void 0&&(l="top");var u=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===u.width?1:d/u.width,h="touches"in c?c.touches[0]:c,g=h.clientX,p=h.clientY,b=(g-u.left)*f,x=(p-u.top)*f;l!=="left"&&l!=="right"||(l=b<u.width/2?"right":"left"),r({isVisible:!0,position:[b,x],anchor:l,content:s})},[e,r]),o=m.useCallback(function(){r(sh)},[r]);return{actions:m.useMemo(function(){return{showTooltipAt:i,showTooltipFromEvent:a,hideTooltip:o}},[i,a,o]),state:n}},Li=function(){var e=m.useContext(__);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},RR=function(){var e=m.useContext(w_);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},AR=function(e){return e.isVisible},jR=function(){var e=RR();return AR(e)?v.jsx(b_,{position:e.position,anchor:e.anchor,children:e.content}):null},PR=function(e){var t=e.container,n=e.children,r=$R(t),i=r.actions,a=r.state;return v.jsx(__.Provider,{value:i,children:v.jsx(w_.Provider,{value:a,children:n})})};function IR(){this.__data__=[],this.size=0}var DR=IR;function NR(e,t){return e===t||e!==e&&t!==t}var Ns=NR,FR=Ns;function LR(e,t){for(var n=e.length;n--;)if(FR(e[n][0],t))return n;return-1}var lu=LR,BR=lu,WR=Array.prototype,UR=WR.splice;function zR(e){var t=this.__data__,n=BR(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():UR.call(t,n,1),--this.size,!0}var HR=zR,VR=lu;function qR(e){var t=this.__data__,n=VR(t,e);return n<0?void 0:t[n][1]}var YR=qR,GR=lu;function ZR(e){return GR(this.__data__,e)>-1}var KR=ZR,XR=lu;function QR(e,t){var n=this.__data__,r=XR(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var JR=QR,e9=DR,t9=HR,n9=YR,r9=KR,i9=JR;function Fa(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Fa.prototype.clear=e9;Fa.prototype.delete=t9;Fa.prototype.get=n9;Fa.prototype.has=r9;Fa.prototype.set=i9;var uu=Fa,a9=uu;function o9(){this.__data__=new a9,this.size=0}var s9=o9;function c9(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var l9=c9;function u9(e){return this.__data__.get(e)}var d9=u9;function f9(e){return this.__data__.has(e)}var h9=f9,p9=typeof qs=="object"&&qs&&qs.Object===Object&&qs,C_=p9,m9=C_,g9=typeof self=="object"&&self&&self.Object===Object&&self,v9=m9||g9||Function("return this")(),lr=v9,b9=lr,y9=b9.Symbol,La=y9,av=La,T_=Object.prototype,x9=T_.hasOwnProperty,_9=T_.toString,ho=av?av.toStringTag:void 0;function w9(e){var t=x9.call(e,ho),n=e[ho];try{e[ho]=void 0;var r=!0}catch{}var i=_9.call(e);return r&&(t?e[ho]=n:delete e[ho]),i}var C9=w9,T9=Object.prototype,k9=T9.toString;function S9(e){return k9.call(e)}var O9=S9,ov=La,E9=C9,M9=O9,$9="[object Null]",R9="[object Undefined]",sv=ov?ov.toStringTag:void 0;function A9(e){return e==null?e===void 0?R9:$9:sv&&sv in Object(e)?E9(e):M9(e)}var Or=A9;function j9(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ur=j9,P9=Or,I9=ur,D9="[object AsyncFunction]",N9="[object Function]",F9="[object GeneratorFunction]",L9="[object Proxy]";function B9(e){if(!I9(e))return!1;var t=P9(e);return t==N9||t==F9||t==D9||t==L9}var du=B9;const Kp=Rt(du);var W9=lr,U9=W9["__core-js_shared__"],z9=U9,Hd=z9,cv=function(){var e=/[^.]+$/.exec(Hd&&Hd.keys&&Hd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function H9(e){return!!cv&&cv in e}var V9=H9,q9=Function.prototype,Y9=q9.toString;function G9(e){if(e!=null){try{return Y9.call(e)}catch{}try{return e+""}catch{}}return""}var k_=G9,Z9=du,K9=V9,X9=ur,Q9=k_,J9=/[\\^$.*+?()[\]{}|]/g,eA=/^\[object .+?Constructor\]$/,tA=Function.prototype,nA=Object.prototype,rA=tA.toString,iA=nA.hasOwnProperty,aA=RegExp("^"+rA.call(iA).replace(J9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oA(e){if(!X9(e)||K9(e))return!1;var t=Z9(e)?aA:eA;return t.test(Q9(e))}var sA=oA;function cA(e,t){return e==null?void 0:e[t]}var lA=cA,uA=sA,dA=lA;function fA(e,t){var n=dA(e,t);return uA(n)?n:void 0}var Bi=fA,hA=Bi,pA=lr,mA=hA(pA,"Map"),Xp=mA,gA=Bi,vA=gA(Object,"create"),fu=vA,lv=fu;function bA(){this.__data__=lv?lv(null):{},this.size=0}var yA=bA;function xA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var _A=xA,wA=fu,CA="__lodash_hash_undefined__",TA=Object.prototype,kA=TA.hasOwnProperty;function SA(e){var t=this.__data__;if(wA){var n=t[e];return n===CA?void 0:n}return kA.call(t,e)?t[e]:void 0}var OA=SA,EA=fu,MA=Object.prototype,$A=MA.hasOwnProperty;function RA(e){var t=this.__data__;return EA?t[e]!==void 0:$A.call(t,e)}var AA=RA,jA=fu,PA="__lodash_hash_undefined__";function IA(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=jA&&t===void 0?PA:t,this}var DA=IA,NA=yA,FA=_A,LA=OA,BA=AA,WA=DA;function Ba(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ba.prototype.clear=NA;Ba.prototype.delete=FA;Ba.prototype.get=LA;Ba.prototype.has=BA;Ba.prototype.set=WA;var UA=Ba,uv=UA,zA=uu,HA=Xp;function VA(){this.size=0,this.__data__={hash:new uv,map:new(HA||zA),string:new uv}}var qA=VA;function YA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var GA=YA,ZA=GA;function KA(e,t){var n=e.__data__;return ZA(t)?n[typeof t=="string"?"string":"hash"]:n.map}var hu=KA,XA=hu;function QA(e){var t=XA(this,e).delete(e);return this.size-=t?1:0,t}var JA=QA,ej=hu;function tj(e){return ej(this,e).get(e)}var nj=tj,rj=hu;function ij(e){return rj(this,e).has(e)}var aj=ij,oj=hu;function sj(e,t){var n=oj(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var cj=sj,lj=qA,uj=JA,dj=nj,fj=aj,hj=cj;function Wa(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Wa.prototype.clear=lj;Wa.prototype.delete=uj;Wa.prototype.get=dj;Wa.prototype.has=fj;Wa.prototype.set=hj;var Qp=Wa,pj=uu,mj=Xp,gj=Qp,vj=200;function bj(e,t){var n=this.__data__;if(n instanceof pj){var r=n.__data__;if(!mj||r.length<vj-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new gj(r)}return n.set(e,t),this.size=n.size,this}var yj=bj,xj=uu,_j=s9,wj=l9,Cj=d9,Tj=h9,kj=yj;function Ua(e){var t=this.__data__=new xj(e);this.size=t.size}Ua.prototype.clear=_j;Ua.prototype.delete=wj;Ua.prototype.get=Cj;Ua.prototype.has=Tj;Ua.prototype.set=kj;var pu=Ua,Sj=Bi,Oj=function(){try{var e=Sj(Object,"defineProperty");return e({},"",{}),e}catch{}}(),S_=Oj,dv=S_;function Ej(e,t,n){t=="__proto__"&&dv?dv(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Jp=Ej,Mj=Jp,$j=Ns;function Rj(e,t,n){(n!==void 0&&!$j(e[t],n)||n===void 0&&!(t in e))&&Mj(e,t,n)}var O_=Rj;function Aj(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var jj=Aj,Pj=jj,Ij=Pj(),E_=Ij,al={exports:{}};al.exports;(function(e,t){var n=lr,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;function c(l,u){if(u)return l.slice();var d=l.length,f=s?s(d):new l.constructor(d);return l.copy(f),f}e.exports=c})(al,al.exports);var M_=al.exports,Dj=lr,Nj=Dj.Uint8Array,$_=Nj,fv=$_;function Fj(e){var t=new e.constructor(e.byteLength);return new fv(t).set(new fv(e)),t}var em=Fj,Lj=em;function Bj(e,t){var n=t?Lj(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var R_=Bj;function Wj(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var A_=Wj,Uj=ur,hv=Object.create,zj=function(){function e(){}return function(t){if(!Uj(t))return{};if(hv)return hv(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Hj=zj;function Vj(e,t){return function(n){return e(t(n))}}var j_=Vj,qj=j_,Yj=qj(Object.getPrototypeOf,Object),tm=Yj,Gj=Object.prototype;function Zj(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Gj;return e===n}var nm=Zj,Kj=Hj,Xj=tm,Qj=nm;function Jj(e){return typeof e.constructor=="function"&&!Qj(e)?Kj(Xj(e)):{}}var P_=Jj;function eP(e){return e!=null&&typeof e=="object"}var Nn=eP,tP=Or,nP=Nn,rP="[object Arguments]";function iP(e){return nP(e)&&tP(e)==rP}var aP=iP,pv=aP,oP=Nn,I_=Object.prototype,sP=I_.hasOwnProperty,cP=I_.propertyIsEnumerable,lP=pv(function(){return arguments}())?pv:function(e){return oP(e)&&sP.call(e,"callee")&&!cP.call(e,"callee")},mu=lP,uP=Array.isArray,Cn=uP,dP=9007199254740991;function fP(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=dP}var rm=fP,hP=du,pP=rm;function mP(e){return e!=null&&pP(e.length)&&!hP(e)}var za=mP,gP=za,vP=Nn;function bP(e){return vP(e)&&gP(e)}var D_=bP,ol={exports:{}};function yP(){return!1}var xP=yP;ol.exports;(function(e,t){var n=lr,r=xP,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?n.Buffer:void 0,c=s?s.isBuffer:void 0,l=c||r;e.exports=l})(ol,ol.exports);var gu=ol.exports,_P=Or,wP=tm,CP=Nn,TP="[object Object]",kP=Function.prototype,SP=Object.prototype,N_=kP.toString,OP=SP.hasOwnProperty,EP=N_.call(Object);function MP(e){if(!CP(e)||_P(e)!=TP)return!1;var t=wP(e);if(t===null)return!0;var n=OP.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&N_.call(n)==EP}var im=MP;const am=Rt(im);var $P=Or,RP=rm,AP=Nn,jP="[object Arguments]",PP="[object Array]",IP="[object Boolean]",DP="[object Date]",NP="[object Error]",FP="[object Function]",LP="[object Map]",BP="[object Number]",WP="[object Object]",UP="[object RegExp]",zP="[object Set]",HP="[object String]",VP="[object WeakMap]",qP="[object ArrayBuffer]",YP="[object DataView]",GP="[object Float32Array]",ZP="[object Float64Array]",KP="[object Int8Array]",XP="[object Int16Array]",QP="[object Int32Array]",JP="[object Uint8Array]",eI="[object Uint8ClampedArray]",tI="[object Uint16Array]",nI="[object Uint32Array]",Ot={};Ot[GP]=Ot[ZP]=Ot[KP]=Ot[XP]=Ot[QP]=Ot[JP]=Ot[eI]=Ot[tI]=Ot[nI]=!0;Ot[jP]=Ot[PP]=Ot[qP]=Ot[IP]=Ot[YP]=Ot[DP]=Ot[NP]=Ot[FP]=Ot[LP]=Ot[BP]=Ot[WP]=Ot[UP]=Ot[zP]=Ot[HP]=Ot[VP]=!1;function rI(e){return AP(e)&&RP(e.length)&&!!Ot[$P(e)]}var iI=rI;function aI(e){return function(t){return e(t)}}var Ha=aI,sl={exports:{}};sl.exports;(function(e,t){var n=C_,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(sl,sl.exports);var vu=sl.exports,oI=iI,sI=Ha,mv=vu,gv=mv&&mv.isTypedArray,cI=gv?sI(gv):oI,om=cI;function lI(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var F_=lI,uI=Jp,dI=Ns,fI=Object.prototype,hI=fI.hasOwnProperty;function pI(e,t,n){var r=e[t];(!(hI.call(e,t)&&dI(r,n))||n===void 0&&!(t in e))&&uI(e,t,n)}var sm=pI,mI=sm,gI=Jp;function vI(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?gI(n,s,c):mI(n,s,c)}return n}var Va=vI;function bI(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var yI=bI,xI=9007199254740991,_I=/^(?:0|[1-9]\d*)$/;function wI(e,t){var n=typeof e;return t=t??xI,!!t&&(n=="number"||n!="symbol"&&_I.test(e))&&e>-1&&e%1==0&&e<t}var bu=wI,CI=yI,TI=mu,kI=Cn,SI=gu,OI=bu,EI=om,MI=Object.prototype,$I=MI.hasOwnProperty;function RI(e,t){var n=kI(e),r=!n&&TI(e),i=!n&&!r&&SI(e),a=!n&&!r&&!i&&EI(e),o=n||r||i||a,s=o?CI(e.length,String):[],c=s.length;for(var l in e)(t||$I.call(e,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||OI(l,c)))&&s.push(l);return s}var L_=RI;function AI(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var jI=AI,PI=ur,II=nm,DI=jI,NI=Object.prototype,FI=NI.hasOwnProperty;function LI(e){if(!PI(e))return DI(e);var t=II(e),n=[];for(var r in e)r=="constructor"&&(t||!FI.call(e,r))||n.push(r);return n}var BI=LI,WI=L_,UI=BI,zI=za;function HI(e){return zI(e)?WI(e,!0):UI(e)}var Fs=HI,VI=Va,qI=Fs;function YI(e){return VI(e,qI(e))}var GI=YI,vv=O_,ZI=M_,KI=R_,XI=A_,QI=P_,bv=mu,yv=Cn,JI=D_,eD=gu,tD=du,nD=ur,rD=im,iD=om,xv=F_,aD=GI;function oD(e,t,n,r,i,a,o){var s=xv(e,n),c=xv(t,n),l=o.get(c);if(l){vv(e,n,l);return}var u=a?a(s,c,n+"",e,t,o):void 0,d=u===void 0;if(d){var f=yv(c),h=!f&&eD(c),g=!f&&!h&&iD(c);u=c,f||h||g?yv(s)?u=s:JI(s)?u=XI(s):h?(d=!1,u=ZI(c,!0)):g?(d=!1,u=KI(c,!0)):u=[]:rD(c)||bv(c)?(u=s,bv(s)?u=aD(s):(!nD(s)||tD(s))&&(u=QI(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),vv(e,n,u)}var sD=oD,cD=pu,lD=O_,uD=E_,dD=sD,fD=ur,hD=Fs,pD=F_;function B_(e,t,n,r,i){e!==t&&uD(t,function(a,o){if(i||(i=new cD),fD(a))dD(e,t,o,n,B_,r,i);else{var s=r?r(pD(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),lD(e,o,s)}},hD)}var mD=B_;function gD(e){return e}var yu=gD;function vD(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var bD=vD,yD=bD,_v=Math.max;function xD(e,t,n){return t=_v(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=_v(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),yD(e,this,s)}}var W_=xD;function _D(e){return function(){return e}}var wD=_D,CD=wD,wv=S_,TD=yu,kD=wv?function(e,t){return wv(e,"toString",{configurable:!0,enumerable:!1,value:CD(t),writable:!0})}:TD,SD=kD,OD=800,ED=16,MD=Date.now;function $D(e){var t=0,n=0;return function(){var r=MD(),i=ED-(r-n);if(n=r,i>0){if(++t>=OD)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var RD=$D,AD=SD,jD=RD,PD=jD(AD),U_=PD,ID=yu,DD=W_,ND=U_;function FD(e,t){return ND(DD(e,t,ID),e+"")}var cm=FD,LD=Ns,BD=za,WD=bu,UD=ur;function zD(e,t,n){if(!UD(n))return!1;var r=typeof t;return(r=="number"?BD(n)&&WD(t,n.length):r=="string"&&t in n)?LD(n[t],e):!1}var z_=zD,HD=cm,VD=z_;function qD(e){return HD(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&VD(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var YD=qD,GD=mD,ZD=YD,KD=ZD(function(e,t,n){GD(e,t,n)}),XD=KD;const QD=Rt(XD);var JD=Or,eN=Nn,tN="[object Symbol]";function nN(e){return typeof e=="symbol"||eN(e)&&JD(e)==tN}var xu=nN,rN=Cn,iN=xu,aN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oN=/^\w*$/;function sN(e,t){if(rN(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||iN(e)?!0:oN.test(e)||!aN.test(e)||t!=null&&e in Object(t)}var lm=sN,H_=Qp,cN="Expected a function";function um(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(cN);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(um.Cache||H_),n}um.Cache=H_;var lN=um,uN=lN,dN=500;function fN(e){var t=uN(e,function(r){return n.size===dN&&n.clear(),r}),n=t.cache;return t}var hN=fN,pN=hN,mN=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gN=/\\(\\)?/g,vN=pN(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(mN,function(n,r,i,a){t.push(i?a.replace(gN,"$1"):r||n)}),t}),bN=vN;function yN(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var _u=yN,Cv=La,xN=_u,_N=Cn,wN=xu,CN=1/0,Tv=Cv?Cv.prototype:void 0,kv=Tv?Tv.toString:void 0;function V_(e){if(typeof e=="string")return e;if(_N(e))return xN(e,V_)+"";if(wN(e))return kv?kv.call(e):"";var t=e+"";return t=="0"&&1/e==-CN?"-0":t}var TN=V_,kN=TN;function SN(e){return e==null?"":kN(e)}var q_=SN,ON=Cn,EN=lm,MN=bN,$N=q_;function RN(e,t){return ON(e)?e:EN(e,t)?[e]:MN($N(e))}var qa=RN,AN=xu,jN=1/0;function PN(e){if(typeof e=="string"||AN(e))return e;var t=e+"";return t=="0"&&1/e==-jN?"-0":t}var Ya=PN,IN=qa,DN=Ya;function NN(e,t){t=IN(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[DN(t[n++])];return n&&n==r?e:void 0}var Ls=NN,FN=Ls;function LN(e,t,n){var r=e==null?void 0:FN(e,t);return r===void 0?n:r}var Y_=LN;const rr=Rt(Y_);var BN=sm,WN=qa,UN=bu,Sv=ur,zN=Ya;function HN(e,t,n,r){if(!Sv(e))return e;t=WN(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var c=zN(t[i]),l=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=o){var u=s[c];l=r?r(u,c,s):void 0,l===void 0&&(l=Sv(u)?u:UN(t[i+1])?[]:{})}BN(s,c,l),s=s[c]}return e}var G_=HN,VN=G_;function qN(e,t,n){return e==null?e:VN(e,t,n)}var YN=qN;const ko=Rt(YN);function wu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function dm(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ga(){}var Ai=.7,Sa=1/Ai,fa="\\s*([+-]?\\d+)\\s*",ds="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Jn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",GN=/^#([0-9a-f]{3,8})$/,ZN=new RegExp(`^rgb\\(${fa},${fa},${fa}\\)$`),KN=new RegExp(`^rgb\\(${Jn},${Jn},${Jn}\\)$`),XN=new RegExp(`^rgba\\(${fa},${fa},${fa},${ds}\\)$`),QN=new RegExp(`^rgba\\(${Jn},${Jn},${Jn},${ds}\\)$`),JN=new RegExp(`^hsl\\(${ds},${Jn},${Jn}\\)$`),eF=new RegExp(`^hsla\\(${ds},${Jn},${Jn},${ds}\\)$`),Ov={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};wu(Ga,fs,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ev,formatHex:Ev,formatHex8:tF,formatHsl:nF,formatRgb:Mv,toString:Mv});function Ev(){return this.rgb().formatHex()}function tF(){return this.rgb().formatHex8()}function nF(){return K_(this).formatHsl()}function Mv(){return this.rgb().formatRgb()}function fs(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=GN.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?$v(t):n===3?new an(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ac(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ac(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ZN.exec(e))?new an(t[1],t[2],t[3],1):(t=KN.exec(e))?new an(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=XN.exec(e))?ac(t[1],t[2],t[3],t[4]):(t=QN.exec(e))?ac(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=JN.exec(e))?jv(t[1],t[2]/100,t[3]/100,1):(t=eF.exec(e))?jv(t[1],t[2]/100,t[3]/100,t[4]):Ov.hasOwnProperty(e)?$v(Ov[e]):e==="transparent"?new an(NaN,NaN,NaN,0):null}function $v(e){return new an(e>>16&255,e>>8&255,e&255,1)}function ac(e,t,n,r){return r<=0&&(e=t=n=NaN),new an(e,t,n,r)}function Z_(e){return e instanceof Ga||(e=fs(e)),e?(e=e.rgb(),new an(e.r,e.g,e.b,e.opacity)):new an}function Oa(e,t,n,r){return arguments.length===1?Z_(e):new an(e,t,n,r??1)}function an(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}wu(an,Oa,dm(Ga,{brighter(e){return e=e==null?Sa:Math.pow(Sa,e),new an(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ai:Math.pow(Ai,e),new an(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new an(_i(this.r),_i(this.g),_i(this.b),cl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Rv,formatHex:Rv,formatHex8:rF,formatRgb:Av,toString:Av}));function Rv(){return`#${hi(this.r)}${hi(this.g)}${hi(this.b)}`}function rF(){return`#${hi(this.r)}${hi(this.g)}${hi(this.b)}${hi((isNaN(this.opacity)?1:this.opacity)*255)}`}function Av(){const e=cl(this.opacity);return`${e===1?"rgb(":"rgba("}${_i(this.r)}, ${_i(this.g)}, ${_i(this.b)}${e===1?")":`, ${e})`}`}function cl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _i(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function hi(e){return e=_i(e),(e<16?"0":"")+e.toString(16)}function jv(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ln(e,t,n,r)}function K_(e){if(e instanceof Ln)return new Ln(e.h,e.s,e.l,e.opacity);if(e instanceof Ga||(e=fs(e)),!e)return new Ln;if(e instanceof Ln)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new Ln(o,s,c,e.opacity)}function iF(e,t,n,r){return arguments.length===1?K_(e):new Ln(e,t,n,r??1)}function Ln(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}wu(Ln,iF,dm(Ga,{brighter(e){return e=e==null?Sa:Math.pow(Sa,e),new Ln(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ai:Math.pow(Ai,e),new Ln(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new an(Vd(e>=240?e-240:e+120,i,r),Vd(e,i,r),Vd(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ln(Pv(this.h),oc(this.s),oc(this.l),cl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=cl(this.opacity);return`${e===1?"hsl(":"hsla("}${Pv(this.h)}, ${oc(this.s)*100}%, ${oc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Pv(e){return e=(e||0)%360,e<0?e+360:e}function oc(e){return Math.max(0,Math.min(1,e||0))}function Vd(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const aF=Math.PI/180,oF=180/Math.PI;var X_=-.14861,fm=1.78277,hm=-.29227,Cu=-.90649,hs=1.97294,Iv=hs*Cu,Dv=hs*fm,Nv=fm*hm-Cu*X_;function sF(e){if(e instanceof wi)return new wi(e.h,e.s,e.l,e.opacity);e instanceof an||(e=Z_(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(Nv*r+Iv*t-Dv*n)/(Nv+Iv-Dv),a=r-i,o=(hs*(n-i)-hm*a)/Cu,s=Math.sqrt(o*o+a*a)/(hs*i*(1-i)),c=s?Math.atan2(o,a)*oF-120:NaN;return new wi(c<0?c+360:c,s,i,e.opacity)}function ir(e,t,n,r){return arguments.length===1?sF(e):new wi(e,t,n,r??1)}function wi(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}wu(wi,ir,dm(Ga,{brighter(e){return e=e==null?Sa:Math.pow(Sa,e),new wi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ai:Math.pow(Ai,e),new wi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*aF,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new an(255*(t+n*(X_*r+fm*i)),255*(t+n*(hm*r+Cu*i)),255*(t+n*(hs*r)),this.opacity)}}));function cF(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function lF(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r<t-1?e[r+2]:2*a-i;return cF((n-r/t)*t,o,i,a,s)}}const Tu=e=>()=>e;function Q_(e,t){return function(n){return e+n*t}}function uF(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function dF(e,t){var n=t-e;return n?Q_(e,n>180||n<-180?n-360*Math.round(n/360):n):Tu(isNaN(e)?t:e)}function fF(e){return(e=+e)==1?ha:function(t,n){return n-t?uF(t,n,e):Tu(isNaN(t)?n:t)}}function ha(e,t){var n=t-e;return n?Q_(e,n):Tu(isNaN(e)?t:e)}const Fv=function e(t){var n=fF(t);function r(i,a){var o=n((i=Oa(i)).r,(a=Oa(a)).r),s=n(i.g,a.g),c=n(i.b,a.b),l=ha(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=c(u),i.opacity=l(u),i+""}}return r.gamma=e,r}(1);function hF(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),a=new Array(n),o,s;for(o=0;o<n;++o)s=Oa(t[o]),r[o]=s.r||0,i[o]=s.g||0,a[o]=s.b||0;return r=e(r),i=e(i),a=e(a),s.opacity=1,function(c){return s.r=r(c),s.g=i(c),s.b=a(c),s+""}}}var pF=hF(lF);function mF(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function gF(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function vF(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=pm(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(s){for(o=0;o<r;++o)a[o]=i[o](s);return a}}function bF(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function ll(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function yF(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=pm(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var ch=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qd=new RegExp(ch.source,"g");function xF(e){return function(){return e}}function _F(e){return function(t){return e(t)+""}}function J_(e,t){var n=ch.lastIndex=qd.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e=e+"",t=t+"";(r=ch.exec(e))&&(i=qd.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:ll(r,i)})),n=qd.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?_F(c[0].x):xF(t):(t=c.length,function(l){for(var u=0,d;u<t;++u)s[(d=c[u]).i]=d.x(l);return s.join("")})}function pm(e,t){var n=typeof t,r;return t==null||n==="boolean"?Tu(t):(n==="number"?ll:n==="string"?(r=fs(t))?(t=r,Fv):J_:t instanceof fs?Fv:t instanceof Date?bF:gF(t)?mF:Array.isArray(t)?vF:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?yF:ll)(e,t)}function wF(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function ew(e){return function t(n){n=+n;function r(i,a){var o=e((i=ir(i)).h,(a=ir(a)).h),s=ha(i.s,a.s),c=ha(i.l,a.l),l=ha(i.opacity,a.opacity);return function(u){return i.h=o(u),i.s=s(u),i.l=c(Math.pow(u,n)),i.opacity=l(u),i+""}}return r.gamma=t,r}(1)}ew(dF);var mm=ew(ha),CF=Or,TF=Cn,kF=Nn,SF="[object String]";function OF(e){return typeof e=="string"||!TF(e)&&kF(e)&&CF(e)==SF}var EF=OF;const MF=Rt(EF);function $F(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var tw=$F;const xe=Rt(tw);function Ec(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function RF(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gm(e){let t,n,r;e.length!==2?(t=Ec,n=(s,c)=>Ec(e(s),c),r=(s,c)=>e(s)-c):(t=e===Ec||e===RF?e:AF,n=e,r=e);function i(s,c,l=0,u=s.length){if(l<u){if(t(c,c)!==0)return u;do{const d=l+u>>>1;n(s[d],c)<0?l=d+1:u=d}while(l<u)}return l}function a(s,c,l=0,u=s.length){if(l<u){if(t(c,c)!==0)return u;do{const d=l+u>>>1;n(s[d],c)<=0?l=d+1:u=d}while(l<u)}return l}function o(s,c,l=0,u=s.length){const d=i(s,c,l,u-1);return d>l&&r(s[d-1],c)>-r(s[d],c)?d-1:d}return{left:i,center:o,right:a}}function AF(){return 0}function jF(e){return e===null?NaN:+e}const PF=gm(Ec),IF=PF.right;gm(jF).center;class Lv extends Map{constructor(t,n=FF){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Bv(this,t))}has(t){return super.has(Bv(this,t))}set(t,n){return super.set(DF(this,t),n)}delete(t){return super.delete(NF(this,t))}}function Bv({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function DF({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function NF({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function FF(e){return e!==null&&typeof e=="object"?e.valueOf():e}const LF=Math.sqrt(50),BF=Math.sqrt(10),WF=Math.sqrt(2);function ul(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=LF?10:a>=BF?5:a>=WF?2:1;let s,c,l;return i<0?(l=Math.pow(10,-i)/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=Math.pow(10,i)*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?ul(e,t,n*2):[s,c,l]}function lh(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?ul(t,e,n):ul(e,t,n);if(!(a>=i))return[];const s=a-i+1,c=new Array(s);if(r)if(o<0)for(let l=0;l<s;++l)c[l]=(a-l)/-o;else for(let l=0;l<s;++l)c[l]=(a-l)*o;else if(o<0)for(let l=0;l<s;++l)c[l]=(i+l)/-o;else for(let l=0;l<s;++l)c[l]=(i+l)*o;return c}function uh(e,t,n){return t=+t,e=+e,n=+n,ul(e,t,n)[2]}function dh(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?uh(t,e,n):uh(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function UF(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function Wi(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const Wv=Symbol("implicit");function pi(){var e=new Lv,t=[],n=[],r=Wv;function i(a){let o=e.get(a);if(o===void 0){if(r!==Wv)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Lv;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return pi(t,n).unknown(r)},Wi.apply(i,arguments),i}function vm(){var e=pi().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var f=t().length,h=i<r,g=h?i:r,p=h?r:i;a=(p-g)/Math.max(1,f-c+l*2),s&&(a=Math.floor(a)),g+=(p-g-a*(f-c))*u,o=a*(1-c),s&&(g=Math.round(g),o=Math.round(o));var b=UF(f).map(function(x){return g+a*x});return n(h?b.reverse():b)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(c=Math.min(1,l=+f),d()):c},e.paddingInner=function(f){return arguments.length?(c=Math.min(1,f),d()):c},e.paddingOuter=function(f){return arguments.length?(l=+f,d()):l},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return vm(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},Wi.apply(d(),arguments)}function nw(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return nw(t())},e}function zF(){return nw(vm.apply(null,arguments).paddingInner(1))}function HF(e){return function(){return e}}function VF(e){return+e}var Uv=[0,1];function aa(e){return e}function fh(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:HF(isNaN(t)?NaN:.5)}function qF(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function YF(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=fh(i,r),a=n(o,a)):(r=fh(r,i),a=n(a,o)),function(s){return a(r(s))}}function GF(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=fh(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(s){var c=IF(e,s,1,r)-1;return a[c](i[c](s))}}function ku(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function bm(){var e=Uv,t=Uv,n=pm,r,i,a,o=aa,s,c,l;function u(){var f=Math.min(e.length,t.length);return o!==aa&&(o=qF(e[0],e[f-1])),s=f>2?GF:YF,c=l=null,d}function d(f){return f==null||isNaN(f=+f)?a:(c||(c=s(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(i((l||(l=s(t,e.map(r),ll)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,VF),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=wF,u()},d.clamp=function(f){return arguments.length?(o=f?!0:aa,u()):o!==aa},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(a=f,d):a},function(f,h){return r=f,i=h,u()}}function rw(){return bm()(aa,aa)}function ZF(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function dl(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ea(e){return e=dl(Math.abs(e)),e?e[1]:NaN}function KF(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function XF(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var QF=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ps(e){if(!(t=QF.exec(e)))throw new Error("invalid format: "+e);var t;return new ym({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ps.prototype=ym.prototype;function ym(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}ym.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function JF(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var iw;function eL(e,t){var n=dl(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(iw=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+dl(e,Math.max(0,t+a-1))[0]}function zv(e,t){var n=dl(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Hv={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:ZF,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return zv(e*100,t)},r:zv,s:eL,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Vv(e){return e}var qv=Array.prototype.map,Yv=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function tL(e){var t=e.grouping===void 0||e.thousands===void 0?Vv:KF(qv.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Vv:XF(qv.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function l(d){d=ps(d);var f=d.fill,h=d.align,g=d.sign,p=d.symbol,b=d.zero,x=d.width,_=d.comma,y=d.precision,C=d.trim,w=d.type;w==="n"?(_=!0,w="g"):Hv[w]||(y===void 0&&(y=12),C=!0,w="g"),(b||f==="0"&&h==="=")&&(b=!0,f="0",h="=");var T=p==="$"?n:p==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",$=p==="$"?r:/[%p]/.test(w)?o:"",R=Hv[w],S=/[defgprs%]/.test(w);y=y===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function k(O){var D=T,E=$,M,j,F;if(w==="c")E=R(O)+E,O="";else{O=+O;var W=O<0||1/O<0;if(O=isNaN(O)?c:R(Math.abs(O),y),C&&(O=JF(O)),W&&+O==0&&g!=="+"&&(W=!1),D=(W?g==="("?g:s:g==="-"||g==="("?"":g)+D,E=(w==="s"?Yv[8+iw/3]:"")+E+(W&&g==="("?")":""),S){for(M=-1,j=O.length;++M<j;)if(F=O.charCodeAt(M),48>F||F>57){E=(F===46?i+O.slice(M+1):O.slice(M))+E,O=O.slice(0,M);break}}}_&&!b&&(O=t(O,1/0));var B=D.length+O.length+E.length,U=B<x?new Array(x-B+1).join(f):"";switch(_&&b&&(O=t(U+O,U.length?x-E.length:1/0),U=""),h){case"<":O=D+O+E+U;break;case"=":O=D+U+O+E;break;case"^":O=U.slice(0,B=U.length>>1)+D+O+E+U.slice(B);break;default:O=U+D+O+E;break}return a(O)}return k.toString=function(){return d+""},k}function u(d,f){var h=l((d=ps(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(Ea(f)/3)))*3,p=Math.pow(10,-g),b=Yv[8+g/3];return function(x){return h(p*x)+b}}return{format:l,formatPrefix:u}}var sc,Bs,aw;nL({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function nL(e){return sc=tL(e),Bs=sc.format,aw=sc.formatPrefix,sc}function rL(e){return Math.max(0,-Ea(Math.abs(e)))}function iL(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ea(t)/3)))*3-Ea(Math.abs(e)))}function aL(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ea(t)-Ea(e))+1}function oL(e,t,n,r){var i=dh(e,t,n),a;switch(r=ps(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=iL(i,o))&&(r.precision=a),aw(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=aL(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=rL(i))&&(r.precision=a-(r.type==="%")*2);break}}return Bs(r)}function ow(e){var t=e.domain;return e.ticks=function(n){var r=t();return lh(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return oL(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-- >0;){if(l=uh(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function sw(){var e=rw();return e.copy=function(){return ku(e,sw())},Wi.apply(e,arguments),ow(e)}function cw(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function Gv(e){return Math.log(e)}function Zv(e){return Math.exp(e)}function sL(e){return-Math.log(-e)}function cL(e){return-Math.exp(-e)}function lL(e){return isFinite(e)?+("1e"+e):e<0?0:e}function uL(e){return e===10?lL:e===Math.E?Math.exp:t=>Math.pow(e,t)}function dL(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Kv(e){return(t,n)=>-e(-t,n)}function fL(e){const t=e(Gv,Zv),n=t.domain;let r=10,i,a;function o(){return i=dL(r),a=uL(r),n()[0]<0?(i=Kv(i),a=Kv(a),e(sL,cL)):e(Gv,Zv),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const c=n();let l=c[0],u=c[c.length-1];const d=u<l;d&&([l,u]=[u,l]);let f=i(l),h=i(u),g,p;const b=s==null?10:+s;let x=[];if(!(r%1)&&h-f<b){if(f=Math.floor(f),h=Math.ceil(h),l>0){for(;f<=h;++f)for(g=1;g<r;++g)if(p=f<0?g/a(-f):g*a(f),!(p<l)){if(p>u)break;x.push(p)}}else for(;f<=h;++f)for(g=r-1;g>=1;--g)if(p=f>0?g/a(-f):g*a(f),!(p<l)){if(p>u)break;x.push(p)}x.length*2<b&&(x=lh(l,u,b))}else x=lh(f,h,Math.min(h-f,b)).map(a);return d?x.reverse():x},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=ps(c)).precision==null&&(c.trim=!0),c=Bs(c)),s===1/0)return c;const l=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/a(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=l?c(u):""}},t.nice=()=>n(cw(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function lw(){const e=fL(bm()).domain([1,10]);return e.copy=()=>ku(e,lw()).base(e.base()),Wi.apply(e,arguments),e}function Xv(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Qv(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function hL(e){var t=1,n=e(Xv(t),Qv(t));return n.constant=function(r){return arguments.length?e(Xv(t=+r),Qv(t)):t},ow(n)}function uw(){var e=hL(bm());return e.copy=function(){return ku(e,uw()).constant(e.constant())},Wi.apply(e,arguments)}const Yd=new Date,Gd=new Date;function Yt(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const c=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return c;let l;do c.push(l=new Date(+a)),t(a,s),e(a);while(l<a&&a<o);return c},i.filter=a=>Yt(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(Yd.setTime(+a),Gd.setTime(+o),e(Yd),e(Gd),Math.floor(n(Yd,Gd))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const fl=Yt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);fl.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Yt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):fl);fl.range;const br=1e3,$n=br*60,yr=$n*60,kr=yr*24,xm=kr*7,Jv=kr*30,Zd=kr*365,mi=Yt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*br)},(e,t)=>(t-e)/br,e=>e.getUTCSeconds());mi.range;const _m=Yt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*br)},(e,t)=>{e.setTime(+e+t*$n)},(e,t)=>(t-e)/$n,e=>e.getMinutes());_m.range;const wm=Yt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*$n)},(e,t)=>(t-e)/$n,e=>e.getUTCMinutes());wm.range;const Cm=Yt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*br-e.getMinutes()*$n)},(e,t)=>{e.setTime(+e+t*yr)},(e,t)=>(t-e)/yr,e=>e.getHours());Cm.range;const Tm=Yt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*yr)},(e,t)=>(t-e)/yr,e=>e.getUTCHours());Tm.range;const km=Yt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*$n)/kr,e=>e.getDate()-1);km.range;const dw=Yt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/kr,e=>e.getUTCDate()-1);dw.range;const fw=Yt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/kr,e=>Math.floor(e/kr));fw.range;function Ui(e){return Yt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*$n)/xm)}const Sm=Ui(0),pL=Ui(1),mL=Ui(2),gL=Ui(3),vL=Ui(4),bL=Ui(5),yL=Ui(6);Sm.range;pL.range;mL.range;gL.range;vL.range;bL.range;yL.range;function zi(e){return Yt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/xm)}const Om=zi(0),xL=zi(1),_L=zi(2),wL=zi(3),CL=zi(4),TL=zi(5),kL=zi(6);Om.range;xL.range;_L.range;wL.range;CL.range;TL.range;kL.range;const Em=Yt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Em.range;const Mm=Yt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Mm.range;const Su=Yt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Su.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Yt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Su.range;const Ou=Yt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Ou.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Yt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Ou.range;function hw(e,t,n,r,i,a){const o=[[mi,1,br],[mi,5,5*br],[mi,15,15*br],[mi,30,30*br],[a,1,$n],[a,5,5*$n],[a,15,15*$n],[a,30,30*$n],[i,1,yr],[i,3,3*yr],[i,6,6*yr],[i,12,12*yr],[r,1,kr],[r,2,2*kr],[n,1,xm],[t,1,Jv],[t,3,3*Jv],[e,1,Zd]];function s(l,u,d){const f=u<l;f&&([l,u]=[u,l]);const h=d&&typeof d.range=="function"?d:c(l,u,d),g=h?h.range(l,+u+1):[];return f?g.reverse():g}function c(l,u,d){const f=Math.abs(u-l)/d,h=gm(([,,b])=>b).right(o,f);if(h===o.length)return e.every(dh(l/Zd,u/Zd,d));if(h===0)return fl.every(Math.max(dh(l,u,d),1));const[g,p]=o[f/o[h-1][2]<o[h][2]/f?h-1:h];return g.every(p)}return[s,c]}const[SL,OL]=hw(Ou,Mm,Om,fw,Tm,wm),[EL,ML]=hw(Su,Em,Sm,km,Cm,_m);var Kd=new Date,Xd=new Date;function zt(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,s){var c=[],l;if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return c;do c.push(l=new Date(+a)),t(a,s),e(a);while(l<a&&a<o);return c},i.filter=function(a){return zt(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););})},n&&(i.count=function(a,o){return Kd.setTime(+a),Xd.setTime(+o),e(Kd),e(Xd),Math.floor(n(Kd,Xd))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?function(o){return r(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}var ms=zt(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});ms.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?zt(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):ms};ms.range;var hl=1e3,ji=6e4,pl=36e5,pw=864e5,mw=6048e5,hh=zt(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*hl)},function(e,t){return(t-e)/hl},function(e){return e.getUTCSeconds()});hh.range;var gw=zt(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*hl)},function(e,t){e.setTime(+e+t*ji)},function(e,t){return(t-e)/ji},function(e){return e.getMinutes()});gw.range;var vw=zt(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*hl-e.getMinutes()*ji)},function(e,t){e.setTime(+e+t*pl)},function(e,t){return(t-e)/pl},function(e){return e.getHours()});vw.range;var $m=zt(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ji)/pw},function(e){return e.getDate()-1});$m.range;function Hi(e){return zt(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ji)/mw})}var ml=Hi(0),gs=Hi(1),bw=Hi(2),yw=Hi(3),Pi=Hi(4),xw=Hi(5),_w=Hi(6);ml.range;gs.range;bw.range;yw.range;Pi.range;xw.range;_w.range;var ww=zt(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});ww.range;var Kr=zt(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Kr.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:zt(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};Kr.range;var Cw=zt(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*ji)},function(e,t){return(t-e)/ji},function(e){return e.getUTCMinutes()});Cw.range;var Tw=zt(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*pl)},function(e,t){return(t-e)/pl},function(e){return e.getUTCHours()});Tw.range;var Rm=zt(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/pw},function(e){return e.getUTCDate()-1});Rm.range;function Vi(e){return zt(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/mw})}var gl=Vi(0),vs=Vi(1),kw=Vi(2),Sw=Vi(3),Ii=Vi(4),Ow=Vi(5),Ew=Vi(6);gl.range;vs.range;kw.range;Sw.range;Ii.range;Ow.range;Ew.range;var Mw=zt(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});Mw.range;var Xr=zt(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Xr.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:zt(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};Xr.range;function Qd(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Jd(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function po(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function $L(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=mo(i),u=go(i),d=mo(a),f=go(a),h=mo(o),g=go(o),p=mo(s),b=go(s),x=mo(c),_=go(c),y={a:W,A:B,b:U,B:N,c:null,d:ab,e:ab,f:JL,g:lB,G:dB,H:KL,I:XL,j:QL,L:$w,m:eB,M:tB,p:V,q:X,Q:cb,s:lb,S:nB,u:rB,U:iB,V:aB,w:oB,W:sB,x:null,X:null,y:cB,Y:uB,Z:fB,"%":sb},C={a:ne,A:K,b:J,B:q,c:null,d:ob,e:ob,f:gB,g:SB,G:EB,H:hB,I:pB,j:mB,L:Aw,m:vB,M:bB,p:G,q:z,Q:cb,s:lb,S:yB,u:xB,U:_B,V:wB,w:CB,W:TB,x:null,X:null,y:kB,Y:OB,Z:MB,"%":sb},w={a:k,A:O,b:D,B:E,c:M,d:rb,e:rb,f:qL,g:nb,G:tb,H:ib,I:ib,j:UL,L:VL,m:WL,M:zL,p:S,q:BL,Q:GL,s:ZL,S:HL,u:IL,U:DL,V:NL,w:PL,W:FL,x:j,X:F,y:nb,Y:tb,Z:LL,"%":YL};y.x=T(n,y),y.X=T(r,y),y.c=T(t,y),C.x=T(n,C),C.X=T(r,C),C.c=T(t,C);function T(L,H){return function(ee){var A=[],se=-1,ce=0,ue=L.length,we,Te,at;for(ee instanceof Date||(ee=new Date(+ee));++se<ue;)L.charCodeAt(se)===37&&(A.push(L.slice(ce,se)),(Te=eb[we=L.charAt(++se)])!=null?we=L.charAt(++se):Te=we==="e"?" ":"0",(at=H[we])&&(we=at(ee,Te)),A.push(we),ce=se+1);return A.push(L.slice(ce,se)),A.join("")}}function $(L,H){return function(ee){var A=po(1900,void 0,1),se=R(A,L,ee+="",0),ce,ue;if(se!=ee.length)return null;if("Q"in A)return new Date(A.Q);if("s"in A)return new Date(A.s*1e3+("L"in A?A.L:0));if(H&&!("Z"in A)&&(A.Z=0),"p"in A&&(A.H=A.H%12+A.p*12),A.m===void 0&&(A.m="q"in A?A.q:0),"V"in A){if(A.V<1||A.V>53)return null;"w"in A||(A.w=1),"Z"in A?(ce=Jd(po(A.y,0,1)),ue=ce.getUTCDay(),ce=ue>4||ue===0?vs.ceil(ce):vs(ce),ce=Rm.offset(ce,(A.V-1)*7),A.y=ce.getUTCFullYear(),A.m=ce.getUTCMonth(),A.d=ce.getUTCDate()+(A.w+6)%7):(ce=Qd(po(A.y,0,1)),ue=ce.getDay(),ce=ue>4||ue===0?gs.ceil(ce):gs(ce),ce=$m.offset(ce,(A.V-1)*7),A.y=ce.getFullYear(),A.m=ce.getMonth(),A.d=ce.getDate()+(A.w+6)%7)}else("W"in A||"U"in A)&&("w"in A||(A.w="u"in A?A.u%7:"W"in A?1:0),ue="Z"in A?Jd(po(A.y,0,1)).getUTCDay():Qd(po(A.y,0,1)).getDay(),A.m=0,A.d="W"in A?(A.w+6)%7+A.W*7-(ue+5)%7:A.w+A.U*7-(ue+6)%7);return"Z"in A?(A.H+=A.Z/100|0,A.M+=A.Z%100,Jd(A)):Qd(A)}}function R(L,H,ee,A){for(var se=0,ce=H.length,ue=ee.length,we,Te;se<ce;){if(A>=ue)return-1;if(we=H.charCodeAt(se++),we===37){if(we=H.charAt(se++),Te=w[we in eb?H.charAt(se++):we],!Te||(A=Te(L,ee,A))<0)return-1}else if(we!=ee.charCodeAt(A++))return-1}return A}function S(L,H,ee){var A=l.exec(H.slice(ee));return A?(L.p=u.get(A[0].toLowerCase()),ee+A[0].length):-1}function k(L,H,ee){var A=h.exec(H.slice(ee));return A?(L.w=g.get(A[0].toLowerCase()),ee+A[0].length):-1}function O(L,H,ee){var A=d.exec(H.slice(ee));return A?(L.w=f.get(A[0].toLowerCase()),ee+A[0].length):-1}function D(L,H,ee){var A=x.exec(H.slice(ee));return A?(L.m=_.get(A[0].toLowerCase()),ee+A[0].length):-1}function E(L,H,ee){var A=p.exec(H.slice(ee));return A?(L.m=b.get(A[0].toLowerCase()),ee+A[0].length):-1}function M(L,H,ee){return R(L,t,H,ee)}function j(L,H,ee){return R(L,n,H,ee)}function F(L,H,ee){return R(L,r,H,ee)}function W(L){return o[L.getDay()]}function B(L){return a[L.getDay()]}function U(L){return c[L.getMonth()]}function N(L){return s[L.getMonth()]}function V(L){return i[+(L.getHours()>=12)]}function X(L){return 1+~~(L.getMonth()/3)}function ne(L){return o[L.getUTCDay()]}function K(L){return a[L.getUTCDay()]}function J(L){return c[L.getUTCMonth()]}function q(L){return s[L.getUTCMonth()]}function G(L){return i[+(L.getUTCHours()>=12)]}function z(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var H=T(L+="",y);return H.toString=function(){return L},H},parse:function(L){var H=$(L+="",!1);return H.toString=function(){return L},H},utcFormat:function(L){var H=T(L+="",C);return H.toString=function(){return L},H},utcParse:function(L){var H=$(L+="",!0);return H.toString=function(){return L},H}}}var eb={"-":"",_:" ",0:"0"},Kt=/^\s*\d+/,RL=/^%/,AL=/[\\^$*+?|[\]().{}]/g;function rt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function jL(e){return e.replace(AL,"\\$&")}function mo(e){return new RegExp("^(?:"+e.map(jL).join("|")+")","i")}function go(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function PL(e,t,n){var r=Kt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function IL(e,t,n){var r=Kt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function DL(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function NL(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function FL(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function tb(e,t,n){var r=Kt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function nb(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function LL(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function BL(e,t,n){var r=Kt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function WL(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function rb(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function UL(e,t,n){var r=Kt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ib(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function zL(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function HL(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function VL(e,t,n){var r=Kt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function qL(e,t,n){var r=Kt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function YL(e,t,n){var r=RL.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function GL(e,t,n){var r=Kt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ZL(e,t,n){var r=Kt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ab(e,t){return rt(e.getDate(),t,2)}function KL(e,t){return rt(e.getHours(),t,2)}function XL(e,t){return rt(e.getHours()%12||12,t,2)}function QL(e,t){return rt(1+$m.count(Kr(e),e),t,3)}function $w(e,t){return rt(e.getMilliseconds(),t,3)}function JL(e,t){return $w(e,t)+"000"}function eB(e,t){return rt(e.getMonth()+1,t,2)}function tB(e,t){return rt(e.getMinutes(),t,2)}function nB(e,t){return rt(e.getSeconds(),t,2)}function rB(e){var t=e.getDay();return t===0?7:t}function iB(e,t){return rt(ml.count(Kr(e)-1,e),t,2)}function Rw(e){var t=e.getDay();return t>=4||t===0?Pi(e):Pi.ceil(e)}function aB(e,t){return e=Rw(e),rt(Pi.count(Kr(e),e)+(Kr(e).getDay()===4),t,2)}function oB(e){return e.getDay()}function sB(e,t){return rt(gs.count(Kr(e)-1,e),t,2)}function cB(e,t){return rt(e.getFullYear()%100,t,2)}function lB(e,t){return e=Rw(e),rt(e.getFullYear()%100,t,2)}function uB(e,t){return rt(e.getFullYear()%1e4,t,4)}function dB(e,t){var n=e.getDay();return e=n>=4||n===0?Pi(e):Pi.ceil(e),rt(e.getFullYear()%1e4,t,4)}function fB(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+rt(t/60|0,"0",2)+rt(t%60,"0",2)}function ob(e,t){return rt(e.getUTCDate(),t,2)}function hB(e,t){return rt(e.getUTCHours(),t,2)}function pB(e,t){return rt(e.getUTCHours()%12||12,t,2)}function mB(e,t){return rt(1+Rm.count(Xr(e),e),t,3)}function Aw(e,t){return rt(e.getUTCMilliseconds(),t,3)}function gB(e,t){return Aw(e,t)+"000"}function vB(e,t){return rt(e.getUTCMonth()+1,t,2)}function bB(e,t){return rt(e.getUTCMinutes(),t,2)}function yB(e,t){return rt(e.getUTCSeconds(),t,2)}function xB(e){var t=e.getUTCDay();return t===0?7:t}function _B(e,t){return rt(gl.count(Xr(e)-1,e),t,2)}function jw(e){var t=e.getUTCDay();return t>=4||t===0?Ii(e):Ii.ceil(e)}function wB(e,t){return e=jw(e),rt(Ii.count(Xr(e),e)+(Xr(e).getUTCDay()===4),t,2)}function CB(e){return e.getUTCDay()}function TB(e,t){return rt(vs.count(Xr(e)-1,e),t,2)}function kB(e,t){return rt(e.getUTCFullYear()%100,t,2)}function SB(e,t){return e=jw(e),rt(e.getUTCFullYear()%100,t,2)}function OB(e,t){return rt(e.getUTCFullYear()%1e4,t,4)}function EB(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ii(e):Ii.ceil(e),rt(e.getUTCFullYear()%1e4,t,4)}function MB(){return"+0000"}function sb(){return"%"}function cb(e){return+e}function lb(e){return Math.floor(+e/1e3)}var Qi,Eu,Pw,Iw,Dw;$B({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function $B(e){return Qi=$L(e),Eu=Qi.format,Pw=Qi.parse,Iw=Qi.utcFormat,Dw=Qi.utcParse,Qi}function RB(e){return new Date(e)}function AB(e){return e instanceof Date?+e:+new Date(+e)}function Am(e,t,n,r,i,a,o,s,c,l){var u=rw(),d=u.invert,f=u.domain,h=l(".%L"),g=l(":%S"),p=l("%I:%M"),b=l("%I %p"),x=l("%a %d"),_=l("%b %d"),y=l("%B"),C=l("%Y");function w(T){return(c(T)<T?h:s(T)<T?g:o(T)<T?p:a(T)<T?b:r(T)<T?i(T)<T?x:_:n(T)<T?y:C)(T)}return u.invert=function(T){return new Date(d(T))},u.domain=function(T){return arguments.length?f(Array.from(T,AB)):f().map(RB)},u.ticks=function(T){var $=f();return e($[0],$[$.length-1],T??10)},u.tickFormat=function(T,$){return $==null?w:l($)},u.nice=function(T){var $=f();return(!T||typeof T.range!="function")&&(T=t($[0],$[$.length-1],T??10)),T?f(cw($,T)):u},u.copy=function(){return ku(u,Am(e,t,n,r,i,a,o,s,c,l))},u}function jB(){return Wi.apply(Am(EL,ML,Su,Em,Sm,km,Cm,_m,mi,Eu).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function PB(){return Wi.apply(Am(SL,OL,Ou,Mm,Om,dw,Tm,wm,mi,Iw).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function We(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const Nw=We("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Fw=We("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Lw=We("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Bw=We("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Ww=We("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Uw=We("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),zw=We("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Hw=We("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),jm=We("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),IB=We("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),_t=e=>pF(e[e.length-1]);var Mu=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(We);const DB=_t(Mu);var $u=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(We);const NB=_t($u);var Ru=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(We);const FB=_t(Ru);var Au=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(We);const LB=_t(Au);var ju=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(We);const BB=_t(ju);var Pu=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(We);const WB=_t(Pu);var Iu=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(We);const UB=_t(Iu);var Du=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(We);const zB=_t(Du);var Nu=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(We);const HB=_t(Nu);var Fu=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(We);const VB=_t(Fu);var Lu=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(We);const qB=_t(Lu);var Bu=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(We);const YB=_t(Bu);var Wu=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(We);const GB=_t(Wu);var Uu=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(We);const ZB=_t(Uu);var zu=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(We);const KB=_t(zu);var Hu=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(We);const XB=_t(Hu);var Vu=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(We);const QB=_t(Vu);var qu=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(We);const JB=_t(qu);var Yu=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(We);const eW=_t(Yu);var Gu=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(We);const tW=_t(Gu);var Zu=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(We);const nW=_t(Zu);var Ku=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(We);const rW=_t(Ku);var Xu=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(We);const iW=_t(Xu);var Qu=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(We);const aW=_t(Qu);var Ju=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(We);const oW=_t(Ju);var ed=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(We);const sW=_t(ed);var td=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(We);const cW=_t(td);function lW(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const uW=mm(ir(300,.5,0),ir(-240,.5,1));var dW=mm(ir(-100,.75,.35),ir(80,1.5,.8)),fW=mm(ir(260,.75,.35),ir(80,1.5,.8)),cc=ir();function hW(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return cc.h=360*e-100,cc.s=1.5-1.5*t,cc.l=.8-.9*t,cc+""}var lc=Oa(),pW=Math.PI/3,mW=Math.PI*2/3;function gW(e){var t;return e=(.5-e)*Math.PI,lc.r=255*(t=Math.sin(e))*t,lc.g=255*(t=Math.sin(e+pW))*t,lc.b=255*(t=Math.sin(e+mW))*t,lc+""}function vW(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function nd(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const bW=nd(We("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var yW=nd(We("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),xW=nd(We("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),_W=nd(We("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),wW="__lodash_hash_undefined__";function CW(e){return this.__data__.set(e,wW),this}var TW=CW;function kW(e){return this.__data__.has(e)}var SW=kW,OW=Qp,EW=TW,MW=SW;function vl(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new OW;++t<n;)this.add(e[t])}vl.prototype.add=vl.prototype.push=EW;vl.prototype.has=MW;var Pm=vl;function $W(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var RW=$W;function AW(e){return e!==e}var jW=AW;function PW(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var IW=PW,DW=RW,NW=jW,FW=IW;function LW(e,t,n){return t===t?FW(e,t,n):DW(e,NW,n)}var BW=LW,WW=BW;function UW(e,t){var n=e==null?0:e.length;return!!n&&WW(e,t,0)>-1}var Vw=UW;function zW(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var qw=zW;function HW(e,t){return e.has(t)}var Im=HW,VW=Pm,qW=Vw,YW=qw,GW=_u,ZW=Ha,KW=Im,XW=200;function QW(e,t,n,r){var i=-1,a=qW,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=GW(t,ZW(n))),r?(a=YW,o=!1):t.length>=XW&&(a=KW,o=!1,t=new VW(t));e:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue e;c.push(u)}else a(t,d,r)||c.push(u)}return c}var JW=QW,eU=JW,tU=cm,nU=D_,rU=tU(function(e,t){return nU(e)?eU(e,t):[]}),iU=rU;const Yw=Rt(iU);function Ze(e){return function(){return e}}const ub=Math.abs,en=Math.atan2,ii=Math.cos,aU=Math.max,ef=Math.min,Yn=Math.sin,oa=Math.sqrt,nn=1e-12,bs=Math.PI,bl=bs/2,Mc=2*bs;function oU(e){return e>1?0:e<-1?bs:Math.acos(e)}function db(e){return e>=1?bl:e<=-1?-bl:Math.asin(e)}const ph=Math.PI,mh=2*ph,ci=1e-6,sU=mh-ci;function Gw(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function cU(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Gw;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let lU=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Gw:cU(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,c=r-t,l=i-n,u=o-t,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>ci)if(!(Math.abs(d*c-l*u)>ci)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,g=i-s,p=c*c+l*l,b=h*h+g*g,x=Math.sqrt(p),_=Math.sqrt(f),y=a*Math.tan((ph-Math.acos((p+f-b)/(2*x*_)))/2),C=y/_,w=y/x;Math.abs(C-1)>ci&&this._append`L${t+C*u},${n+C*d}`,this._append`A${a},${a},0,0,${+(d*h>u*g)},${this._x1=t+w*c},${this._y1=n+w*l}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),c=r*Math.sin(i),l=t+s,u=n+c,d=1^o,f=o?i-a:a-i;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>ci||Math.abs(this._y1-u)>ci)&&this._append`L${l},${u}`,r&&(f<0&&(f=f%mh+mh),f>sU?this._append`A${r},${r},0,1,${d},${t-s},${n-c}A${r},${r},0,1,${d},${this._x1=l},${this._y1=u}`:f>ci&&this._append`A${r},${r},0,${+(f>=ph)},${d},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function Dm(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new lU(t)}function uU(e){return e.innerRadius}function dU(e){return e.outerRadius}function fU(e){return e.startAngle}function hU(e){return e.endAngle}function pU(e){return e&&e.padAngle}function mU(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<nn))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function uc(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/oa(s*s+c*c),u=l*c,d=-l*s,f=e+u,h=t+d,g=n+u,p=r+d,b=(f+g)/2,x=(h+p)/2,_=g-f,y=p-h,C=_*_+y*y,w=i-a,T=f*p-g*h,$=(y<0?-1:1)*oa(aU(0,w*w*C-T*T)),R=(T*y-_*$)/C,S=(-T*_-y*$)/C,k=(T*y+_*$)/C,O=(-T*_+y*$)/C,D=R-b,E=S-x,M=k-b,j=O-x;return D*D+E*E>M*M+j*j&&(R=k,S=O),{cx:R,cy:S,x01:-u,y01:-d,x11:R*(i/w-1),y11:S*(i/w-1)}}function gU(){var e=uU,t=dU,n=Ze(0),r=null,i=fU,a=hU,o=pU,s=null,c=Dm(l);function l(){var u,d,f=+e.apply(this,arguments),h=+t.apply(this,arguments),g=i.apply(this,arguments)-bl,p=a.apply(this,arguments)-bl,b=ub(p-g),x=p>g;if(s||(s=u=c()),h<f&&(d=h,h=f,f=d),!(h>nn))s.moveTo(0,0);else if(b>Mc-nn)s.moveTo(h*ii(g),h*Yn(g)),s.arc(0,0,h,g,p,!x),f>nn&&(s.moveTo(f*ii(p),f*Yn(p)),s.arc(0,0,f,p,g,x));else{var _=g,y=p,C=g,w=p,T=b,$=b,R=o.apply(this,arguments)/2,S=R>nn&&(r?+r.apply(this,arguments):oa(f*f+h*h)),k=ef(ub(h-f)/2,+n.apply(this,arguments)),O=k,D=k,E,M;if(S>nn){var j=db(S/f*Yn(R)),F=db(S/h*Yn(R));(T-=j*2)>nn?(j*=x?1:-1,C+=j,w-=j):(T=0,C=w=(g+p)/2),($-=F*2)>nn?(F*=x?1:-1,_+=F,y-=F):($=0,_=y=(g+p)/2)}var W=h*ii(_),B=h*Yn(_),U=f*ii(w),N=f*Yn(w);if(k>nn){var V=h*ii(y),X=h*Yn(y),ne=f*ii(C),K=f*Yn(C),J;if(b<bs)if(J=mU(W,B,ne,K,V,X,U,N)){var q=W-J[0],G=B-J[1],z=V-J[0],L=X-J[1],H=1/Yn(oU((q*z+G*L)/(oa(q*q+G*G)*oa(z*z+L*L)))/2),ee=oa(J[0]*J[0]+J[1]*J[1]);O=ef(k,(f-ee)/(H-1)),D=ef(k,(h-ee)/(H+1))}else O=D=0}$>nn?D>nn?(E=uc(ne,K,W,B,h,D,x),M=uc(V,X,U,N,h,D,x),s.moveTo(E.cx+E.x01,E.cy+E.y01),D<k?s.arc(E.cx,E.cy,D,en(E.y01,E.x01),en(M.y01,M.x01),!x):(s.arc(E.cx,E.cy,D,en(E.y01,E.x01),en(E.y11,E.x11),!x),s.arc(0,0,h,en(E.cy+E.y11,E.cx+E.x11),en(M.cy+M.y11,M.cx+M.x11),!x),s.arc(M.cx,M.cy,D,en(M.y11,M.x11),en(M.y01,M.x01),!x))):(s.moveTo(W,B),s.arc(0,0,h,_,y,!x)):s.moveTo(W,B),!(f>nn)||!(T>nn)?s.lineTo(U,N):O>nn?(E=uc(U,N,V,X,f,-O,x),M=uc(W,B,ne,K,f,-O,x),s.lineTo(E.cx+E.x01,E.cy+E.y01),O<k?s.arc(E.cx,E.cy,O,en(E.y01,E.x01),en(M.y01,M.x01),!x):(s.arc(E.cx,E.cy,O,en(E.y01,E.x01),en(E.y11,E.x11),!x),s.arc(0,0,f,en(E.cy+E.y11,E.cx+E.x11),en(M.cy+M.y11,M.cx+M.x11),x),s.arc(M.cx,M.cy,O,en(M.y11,M.x11),en(M.y01,M.x01),!x))):s.arc(0,0,f,w,C,x)}if(s.closePath(),u)return s=null,u+""||null}return l.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-bs/2;return[ii(d)*u,Yn(d)*u]},l.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:Ze(+u),l):e},l.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:Ze(+u),l):t},l.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:Ze(+u),l):n},l.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:Ze(+u),l):r},l.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:Ze(+u),l):i},l.endAngle=function(u){return arguments.length?(a=typeof u=="function"?u:Ze(+u),l):a},l.padAngle=function(u){return arguments.length?(o=typeof u=="function"?u:Ze(+u),l):o},l.context=function(u){return arguments.length?(s=u??null,l):s},l}function rd(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Zw(e){this._context=e}Zw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Nm(e){return new Zw(e)}function Kw(e){return e[0]}function Xw(e){return e[1]}function Fm(e,t){var n=Ze(!0),r=null,i=Nm,a=null,o=Dm(s);e=typeof e=="function"?e:e===void 0?Kw:Ze(e),t=typeof t=="function"?t:t===void 0?Xw:Ze(t);function s(c){var l,u=(c=rd(c)).length,d,f=!1,h;for(r==null&&(a=i(h=o())),l=0;l<=u;++l)!(l<u&&n(d=c[l],l,c))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(d,l,c),+t(d,l,c));if(h)return a=null,h+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:Ze(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:Ze(+c),s):t},s.defined=function(c){return arguments.length?(n=typeof c=="function"?c:Ze(!!c),s):n},s.curve=function(c){return arguments.length?(i=c,r!=null&&(a=i(r)),s):i},s.context=function(c){return arguments.length?(c==null?r=a=null:a=i(r=c),s):r},s}function vU(e,t,n){var r=null,i=Ze(!0),a=null,o=Nm,s=null,c=Dm(l);e=typeof e=="function"?e:e===void 0?Kw:Ze(+e),t=typeof t=="function"?t:Ze(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Xw:Ze(+n);function l(d){var f,h,g,p=(d=rd(d)).length,b,x=!1,_,y=new Array(p),C=new Array(p);for(a==null&&(s=o(_=c())),f=0;f<=p;++f){if(!(f<p&&i(b=d[f],f,d))===x)if(x=!x)h=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=f-1;g>=h;--g)s.point(y[g],C[g]);s.lineEnd(),s.areaEnd()}x&&(y[f]=+e(b,f,d),C[f]=+t(b,f,d),s.point(r?+r(b,f,d):y[f],n?+n(b,f,d):C[f]))}if(_)return s=null,_+""||null}function u(){return Fm().defined(i).curve(o).context(a)}return l.x=function(d){return arguments.length?(e=typeof d=="function"?d:Ze(+d),r=null,l):e},l.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Ze(+d),l):e},l.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Ze(+d),l):r},l.y=function(d){return arguments.length?(t=typeof d=="function"?d:Ze(+d),n=null,l):t},l.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Ze(+d),l):t},l.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Ze(+d),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(d){return arguments.length?(i=typeof d=="function"?d:Ze(!!d),l):i},l.curve=function(d){return arguments.length?(o=d,a!=null&&(s=o(a)),l):o},l.context=function(d){return arguments.length?(d==null?a=s=null:s=o(a=d),l):a},l}function bU(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function yU(e){return e}function xU(){var e=yU,t=bU,n=null,r=Ze(0),i=Ze(Mc),a=Ze(0);function o(s){var c,l=(s=rd(s)).length,u,d,f=0,h=new Array(l),g=new Array(l),p=+r.apply(this,arguments),b=Math.min(Mc,Math.max(-Mc,i.apply(this,arguments)-p)),x,_=Math.min(Math.abs(b)/l,a.apply(this,arguments)),y=_*(b<0?-1:1),C;for(c=0;c<l;++c)(C=g[h[c]=c]=+e(s[c],c,s))>0&&(f+=C);for(t!=null?h.sort(function(w,T){return t(g[w],g[T])}):n!=null&&h.sort(function(w,T){return n(s[w],s[T])}),c=0,d=f?(b-l*y)/f:0;c<l;++c,p=x)u=h[c],C=g[u],x=p+(C>0?C*d:0)+y,g[u]={data:s[u],index:c,value:C,startAngle:p,endAngle:x,padAngle:_};return g}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:Ze(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,n=null,o):t},o.sort=function(s){return arguments.length?(n=s,t=null,o):n},o.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:Ze(+s),o):r},o.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:Ze(+s),o):i},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:Ze(+s),o):a},o}function Qr(){}function yl(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function id(e){this._context=e}id.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:yl(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:yl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function _U(e){return new id(e)}function Qw(e){this._context=e}Qw.prototype={areaStart:Qr,areaEnd:Qr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:yl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function wU(e){return new Qw(e)}function Jw(e){this._context=e}Jw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:yl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function CU(e){return new Jw(e)}function eC(e,t){this._basis=new id(e),this._beta=t}eC.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const TU=function e(t){function n(r){return t===1?new id(r):new eC(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function xl(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Lm(e,t){this._context=e,this._k=(1-t)/6}Lm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:xl(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:xl(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const kU=function e(t){function n(r){return new Lm(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Bm(e,t){this._context=e,this._k=(1-t)/6}Bm.prototype={areaStart:Qr,areaEnd:Qr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:xl(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const SU=function e(t){function n(r){return new Bm(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Wm(e,t){this._context=e,this._k=(1-t)/6}Wm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:xl(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const OU=function e(t){function n(r){return new Wm(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Um(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>nn){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>nn){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function tC(e,t){this._context=e,this._alpha=t}tC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Um(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const EU=function e(t){function n(r){return t?new tC(r,t):new Lm(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function nC(e,t){this._context=e,this._alpha=t}nC.prototype={areaStart:Qr,areaEnd:Qr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Um(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const MU=function e(t){function n(r){return t?new nC(r,t):new Bm(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function rC(e,t){this._context=e,this._alpha=t}rC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Um(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const $U=function e(t){function n(r){return t?new rC(r,t):new Wm(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function iC(e){this._context=e}iC.prototype={areaStart:Qr,areaEnd:Qr,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function RU(e){return new iC(e)}function fb(e){return e<0?-1:1}function hb(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(fb(a)+fb(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function pb(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function tf(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function _l(e){this._context=e}_l.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:tf(this,this._t0,pb(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,tf(this,pb(this,n=hb(this,e,t)),n);break;default:tf(this,this._t0,n=hb(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function aC(e){this._context=new oC(e)}(aC.prototype=Object.create(_l.prototype)).point=function(e,t){_l.prototype.point.call(this,t,e)};function oC(e){this._context=e}oC.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function AU(e){return new _l(e)}function jU(e){return new aC(e)}function sC(e){this._context=e}sC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=mb(e),i=mb(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function mb(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function PU(e){return new sC(e)}function ad(e,t){this._context=e,this._t=t}ad.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function IU(e){return new ad(e,.5)}function DU(e){return new ad(e,0)}function NU(e){return new ad(e,1)}function gb(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function vb(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function FU(e,t){return e[t]}function LU(e){const t=[];return t.key=e,t}function BU(){var e=Ze([]),t=vb,n=gb,r=FU;function i(a){var o=Array.from(e.apply(this,arguments),LU),s,c=o.length,l=-1,u;for(const d of a)for(s=0,++l;s<c;++s)(o[s][l]=[0,+r(d,o[s].key,l,a)]).data=d;for(s=0,u=rd(t(o));s<c;++s)o[u[s]].index=s;return n(o,u),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Ze(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:Ze(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?vb:typeof a=="function"?a:Ze(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??gb,i):n},i}function WU(e,t){if((c=e.length)>0)for(var n,r=0,i,a,o,s,c,l=e[t[0]].length;r<l;++r)for(o=s=0,n=0;n<c;++n)(a=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=o,i[1]=o+=a):a<0?(i[1]=s,i[0]=s+=a):(i[0]=0,i[1]=a)}var UU=Ls,zU=G_,HU=qa;function VU(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=UU(e,o);n(s,o)&&zU(a,HU(o,e),s)}return a}var qU=VU;function YU(e,t){return e!=null&&t in Object(e)}var GU=YU,ZU=qa,KU=mu,XU=Cn,QU=bu,JU=rm,ez=Ya;function tz(e,t,n){t=ZU(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=ez(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&JU(i)&&QU(o,i)&&(XU(e)||KU(e)))}var nz=tz,rz=GU,iz=nz;function az(e,t){return e!=null&&iz(e,t,rz)}var cC=az,oz=qU,sz=cC;function cz(e,t){return oz(e,t,function(n,r){return sz(e,r)})}var lz=cz;function uz(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var zm=uz,bb=La,dz=mu,fz=Cn,yb=bb?bb.isConcatSpreadable:void 0;function hz(e){return fz(e)||dz(e)||!!(yb&&e&&e[yb])}var pz=hz,mz=zm,gz=pz;function lC(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=gz),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?lC(s,t-1,n,r,i):mz(i,s):r||(i[i.length]=s)}return i}var uC=lC,vz=uC;function bz(e){var t=e==null?0:e.length;return t?vz(e,1):[]}var yz=bz,xz=yz,_z=W_,wz=U_;function Cz(e){return wz(_z(e,void 0,xz),e+"")}var dC=Cz,Tz=lz,kz=dC,Sz=kz(function(e,t){return e==null?{}:Tz(e,t)}),Oz=Sz;const Ez=Rt(Oz);function Mz(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var $z=Mz,Rz=Pm,Az=$z,jz=Im,Pz=1,Iz=2;function Dz(e,t,n,r,i,a){var o=n&Pz,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,h=n&Iz?new Rz:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var g=e[d],p=t[d];if(r)var b=o?r(p,g,d,t,e,a):r(g,p,d,e,t,a);if(b!==void 0){if(b)continue;f=!1;break}if(h){if(!Az(t,function(x,_){if(!jz(h,_)&&(g===x||i(g,x,n,r,a)))return h.push(_)})){f=!1;break}}else if(!(g===p||i(g,p,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var fC=Dz;function Nz(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var Fz=Nz;function Lz(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Hm=Lz,xb=La,_b=$_,Bz=Ns,Wz=fC,Uz=Fz,zz=Hm,Hz=1,Vz=2,qz="[object Boolean]",Yz="[object Date]",Gz="[object Error]",Zz="[object Map]",Kz="[object Number]",Xz="[object RegExp]",Qz="[object Set]",Jz="[object String]",eH="[object Symbol]",tH="[object ArrayBuffer]",nH="[object DataView]",wb=xb?xb.prototype:void 0,nf=wb?wb.valueOf:void 0;function rH(e,t,n,r,i,a,o){switch(n){case nH:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case tH:return!(e.byteLength!=t.byteLength||!a(new _b(e),new _b(t)));case qz:case Yz:case Kz:return Bz(+e,+t);case Gz:return e.name==t.name&&e.message==t.message;case Xz:case Jz:return e==t+"";case Zz:var s=Uz;case Qz:var c=r&Hz;if(s||(s=zz),e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=Vz,o.set(e,t);var u=Wz(s(e),s(t),r,i,a,o);return o.delete(e),u;case eH:if(nf)return nf.call(e)==nf.call(t)}return!1}var iH=rH,aH=zm,oH=Cn;function sH(e,t,n){var r=t(e);return oH(e)?r:aH(r,n(e))}var hC=sH;function cH(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var pC=cH;function lH(){return[]}var mC=lH,uH=pC,dH=mC,fH=Object.prototype,hH=fH.propertyIsEnumerable,Cb=Object.getOwnPropertySymbols,pH=Cb?function(e){return e==null?[]:(e=Object(e),uH(Cb(e),function(t){return hH.call(e,t)}))}:dH,Vm=pH,mH=j_,gH=mH(Object.keys,Object),vH=gH,bH=nm,yH=vH,xH=Object.prototype,_H=xH.hasOwnProperty;function wH(e){if(!bH(e))return yH(e);var t=[];for(var n in Object(e))_H.call(e,n)&&n!="constructor"&&t.push(n);return t}var CH=wH,TH=L_,kH=CH,SH=za;function OH(e){return SH(e)?TH(e):kH(e)}var Ws=OH,EH=hC,MH=Vm,$H=Ws;function RH(e){return EH(e,$H,MH)}var gC=RH,Tb=gC,AH=1,jH=Object.prototype,PH=jH.hasOwnProperty;function IH(e,t,n,r,i,a){var o=n&AH,s=Tb(e),c=s.length,l=Tb(t),u=l.length;if(c!=u&&!o)return!1;for(var d=c;d--;){var f=s[d];if(!(o?f in t:PH.call(t,f)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var p=!0;a.set(e,t),a.set(t,e);for(var b=o;++d<c;){f=s[d];var x=e[f],_=t[f];if(r)var y=o?r(_,x,f,t,e,a):r(x,_,f,e,t,a);if(!(y===void 0?x===_||i(x,_,n,r,a):y)){p=!1;break}b||(b=f=="constructor")}if(p&&!b){var C=e.constructor,w=t.constructor;C!=w&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof w=="function"&&w instanceof w)&&(p=!1)}return a.delete(e),a.delete(t),p}var DH=IH,NH=Bi,FH=lr,LH=NH(FH,"DataView"),BH=LH,WH=Bi,UH=lr,zH=WH(UH,"Promise"),HH=zH,VH=Bi,qH=lr,YH=VH(qH,"Set"),vC=YH,GH=Bi,ZH=lr,KH=GH(ZH,"WeakMap"),XH=KH,gh=BH,vh=Xp,bh=HH,yh=vC,xh=XH,bC=Or,Za=k_,kb="[object Map]",QH="[object Object]",Sb="[object Promise]",Ob="[object Set]",Eb="[object WeakMap]",Mb="[object DataView]",JH=Za(gh),eV=Za(vh),tV=Za(bh),nV=Za(yh),rV=Za(xh),li=bC;(gh&&li(new gh(new ArrayBuffer(1)))!=Mb||vh&&li(new vh)!=kb||bh&&li(bh.resolve())!=Sb||yh&&li(new yh)!=Ob||xh&&li(new xh)!=Eb)&&(li=function(e){var t=bC(e),n=t==QH?e.constructor:void 0,r=n?Za(n):"";if(r)switch(r){case JH:return Mb;case eV:return kb;case tV:return Sb;case nV:return Ob;case rV:return Eb}return t});var od=li,rf=pu,iV=fC,aV=iH,oV=DH,$b=od,Rb=Cn,Ab=gu,sV=om,cV=1,jb="[object Arguments]",Pb="[object Array]",dc="[object Object]",lV=Object.prototype,Ib=lV.hasOwnProperty;function uV(e,t,n,r,i,a){var o=Rb(e),s=Rb(t),c=o?Pb:$b(e),l=s?Pb:$b(t);c=c==jb?dc:c,l=l==jb?dc:l;var u=c==dc,d=l==dc,f=c==l;if(f&&Ab(e)){if(!Ab(t))return!1;o=!0,u=!1}if(f&&!u)return a||(a=new rf),o||sV(e)?iV(e,t,n,r,i,a):aV(e,t,c,n,r,i,a);if(!(n&cV)){var h=u&&Ib.call(e,"__wrapped__"),g=d&&Ib.call(t,"__wrapped__");if(h||g){var p=h?e.value():e,b=g?t.value():t;return a||(a=new rf),i(p,b,n,r,a)}}return f?(a||(a=new rf),oV(e,t,n,r,i,a)):!1}var dV=uV,fV=dV,Db=Nn;function yC(e,t,n,r,i){return e===t?!0:e==null||t==null||!Db(e)&&!Db(t)?e!==e&&t!==t:fV(e,t,n,r,yC,i)}var qm=yC,hV=qm;function pV(e,t){return hV(e,t)}var mV=pV;const gV=Rt(mV);var vV={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"transparent",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}};function Rn(){return Rn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rn.apply(this,arguments)}function _h(e,t){return _h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},_h(e,t)}function sd(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var bV=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],yV=function(e,t){return Rn({},t,e)},xV=function(e,t){var n=QD({},e,t);return bV.forEach(function(r){ko(n,r,yV(rr(n,r),n.text))}),n},xC=m.createContext(),_C=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,a=i===void 0?"default":i,o=m.useMemo(function(){var s=MF(a)?qp[a]:a;return{animate:r,config:s}},[r,a]);return v.jsx(xC.Provider,{value:o,children:t})},Nb={animate:I.bool,motionConfig:I.oneOfType([I.oneOf(Object.keys(qp)),I.shape({mass:I.number,tension:I.number,friction:I.number,clamp:I.bool,precision:I.number,velocity:I.number,duration:I.number,easing:I.func})])};_C.propTypes={children:I.node.isRequired,animate:Nb.animate,config:Nb.motionConfig};var mn=function(){return m.useContext(xC)},Ym=function(e){var t=mn(),n=t.animate,r=t.config,i=function(s){var c=m.useRef();return m.useEffect(function(){c.current=s},[s]),c.current}(e),a=m.useMemo(function(){return J_(i,e)},[i,e]),o=cr({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return Zr(o,a)},_V={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:xe(Mu),PRGn:xe($u),PiYG:xe(Ru),PuOr:xe(Au),RdBu:xe(ju),RdGy:xe(Pu),RdYlBu:xe(Iu),RdYlGn:xe(Du),spectral:xe(Nu),blues:xe(Ku),greens:xe(Xu),greys:xe(Qu),oranges:xe(td),purples:xe(Ju),reds:xe(ed),BuGn:xe(Fu),BuPu:xe(Lu),GnBu:xe(Bu),OrRd:xe(Wu),PuBuGn:xe(Uu),PuBu:xe(zu),PuRd:xe(Hu),RdPu:xe(Vu),YlGnBu:xe(qu),YlGn:xe(Yu),YlOrBr:xe(Gu),YlOrRd:xe(Zu)},wV=Object.keys(_V);xe(Mu),xe($u),xe(Ru),xe(Au),xe(ju),xe(Pu),xe(Iu),xe(Du),xe(Nu),xe(Ku),xe(Xu),xe(Qu),xe(td),xe(Ju),xe(ed),xe(Fu),xe(Lu),xe(Bu),xe(Wu),xe(Uu),xe(zu),xe(Hu),xe(Vu),xe(qu),xe(Yu),xe(Gu),xe(Zu);I.oneOfType([I.oneOf(wV),I.func,I.arrayOf(I.string)]);var wh={basis:_U,basisClosed:wU,basisOpen:CU,bundle:TU,cardinal:kU,cardinalClosed:SU,cardinalOpen:OU,catmullRom:EU,catmullRomClosed:MU,catmullRomOpen:$U,linear:Nm,linearClosed:RU,monotoneX:AU,monotoneY:jU,natural:PU,step:IU,stepAfter:NU,stepBefore:DU},Gm=Object.keys(wh);Gm.filter(function(e){return e.endsWith("Closed")});Yw(Gm,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");Yw(Gm,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var wC=function(e){if(!wh[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return wh[e]};I.shape({top:I.number,right:I.number,bottom:I.number,left:I.number}).isRequired;var CV=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];I.oneOf(CV);pi(jm);var CC={top:0,right:0,bottom:0,left:0},Us=function(e,t,n){return n===void 0&&(n={}),m.useMemo(function(){var r=Rn({},CC,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},TC=function(){var e=m.useRef(null),t=m.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=m.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(a){var o=a[0];return r(o.contentRect)})})[0];return m.useEffect(function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}},[]),[e,n]},TV=function(e){return m.useMemo(function(){return xV(vV,e)},[e])},kV=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?Eu(e.slice("5")):Bs(e):function(t){return""+t}},Ma=function(e){return m.useMemo(function(){return kV(e)},[e])},kC=m.createContext(),SV={},SC=function(e){var t=e.theme,n=t===void 0?SV:t,r=e.children,i=TV(n);return v.jsx(kC.Provider,{value:i,children:r})};SC.propTypes={children:I.node.isRequired,theme:I.object};var ht=function(){return m.useContext(kC)},OV=["outlineWidth","outlineColor","outlineOpacity"],Zm=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,sd(e,OV)},OC=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?m.cloneElement(r,{},t):t};OC.propTypes={children:I.node.isRequired,condition:I.bool.isRequired,wrapper:I.element.isRequired};var EV={position:"relative"},zs=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,a=e.isInteractive,o=a===void 0||a,s=e.animate,c=e.motionConfig,l=m.useRef(null);return v.jsx(SC,{theme:n,children:v.jsx(_C,{animate:s,config:c,children:v.jsx(PR,{container:l,children:v.jsxs(OC,{condition:i,wrapper:v.jsx("div",{style:EV,ref:l}),children:[t,o&&v.jsx(jR,{})]})})})})};zs.propTypes={children:I.element.isRequired,isInteractive:I.bool,renderWrapper:I.bool,theme:I.object,animate:I.bool,motionConfig:I.string};I.func.isRequired,I.bool,I.bool,I.object.isRequired,I.bool.isRequired,I.string;var Ka=function(e){var t=e.children,n=TC(),r=n[0],i=n[1],a=i.width>0&&i.height>0;return v.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:a&&t({width:i.width,height:i.height})})};Ka.propTypes={children:I.func.isRequired};var MV=["id","colors"],EC=function(e){var t=e.id,n=e.colors,r=sd(e,MV);return v.jsx("linearGradient",Rn({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(i){var a=i.offset,o=i.color,s=i.opacity;return v.jsx("stop",{offset:a+"%",stopColor:o,stopOpacity:s!==void 0?s:1},a)})}))};EC.propTypes={id:I.string.isRequired,colors:I.arrayOf(I.shape({offset:I.number.isRequired,color:I.string.isRequired,opacity:I.number})).isRequired,gradientTransform:I.string};var MC={linearGradient:EC},vo={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Ch=m.memo(function(e){var t=e.id,n=e.background,r=n===void 0?vo.background:n,i=e.color,a=i===void 0?vo.color:i,o=e.size,s=o===void 0?vo.size:o,c=e.padding,l=c===void 0?vo.padding:c,u=e.stagger,d=u===void 0?vo.stagger:u,f=s+l,h=s/2,g=l/2;return d===!0&&(f=2*s+2*l),v.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[v.jsx("rect",{width:f,height:f,fill:r}),v.jsx("circle",{cx:g+h,cy:g+h,r:h,fill:a}),d&&v.jsx("circle",{cx:1.5*l+s+h,cy:1.5*l+s+h,r:h,fill:a})]})});Ch.displayName="PatternDots",Ch.propTypes={id:I.string.isRequired,color:I.string.isRequired,background:I.string.isRequired,size:I.number.isRequired,padding:I.number.isRequired,stagger:I.bool.isRequired};var An=function(e){return e*Math.PI/180},cd=function(e){return 180*e/Math.PI},$V=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},Ci=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},RV=function(e){var t=e%360;return t<0&&(t+=360),t},AV={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},bo={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},Th=m.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?bo.spacing:n,i=e.rotation,a=i===void 0?bo.rotation:i,o=e.background,s=o===void 0?bo.background:o,c=e.color,l=c===void 0?bo.color:c,u=e.lineWidth,d=u===void 0?bo.lineWidth:u,f=Math.round(a)%360,h=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var g,p=h,b=h;return f===0?g=`
|
|
254
|
-
M 0 0 L `+p+` 0
|
|
255
|
-
M 0 `+b+" L "+p+" "+b+`
|
|
256
|
-
`:f===90?g=`
|
|
257
|
-
M 0 0 L 0 `+b+`
|
|
258
|
-
M `+p+" 0 L "+p+" "+b+`
|
|
259
|
-
`:(p=Math.abs(h/Math.sin(An(f))),b=h/Math.sin(An(90-f)),g=f>0?`
|
|
260
|
-
M 0 `+-b+" L "+2*p+" "+b+`
|
|
261
|
-
M `+-p+" "+-b+" L "+p+" "+b+`
|
|
262
|
-
M `+-p+" 0 L "+p+" "+2*b+`
|
|
263
|
-
`:`
|
|
264
|
-
M `+-p+" "+b+" L "+p+" "+-b+`
|
|
265
|
-
M `+-p+" "+2*b+" L "+2*p+" "+-b+`
|
|
266
|
-
M 0 `+2*b+" L "+2*p+` 0
|
|
267
|
-
`),v.jsxs("pattern",{id:t,width:p,height:b,patternUnits:"userSpaceOnUse",children:[v.jsx("rect",{width:p,height:b,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),v.jsx("path",{d:g,strokeWidth:d,stroke:l,strokeLinecap:"square"})]})});Th.displayName="PatternLines",Th.propTypes={id:I.string.isRequired,spacing:I.number.isRequired,rotation:I.number.isRequired,background:I.string.isRequired,color:I.string.isRequired,lineWidth:I.number.isRequired};var yo={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},kh=m.memo(function(e){var t=e.id,n=e.color,r=n===void 0?yo.color:n,i=e.background,a=i===void 0?yo.background:i,o=e.size,s=o===void 0?yo.size:o,c=e.padding,l=c===void 0?yo.padding:c,u=e.stagger,d=u===void 0?yo.stagger:u,f=s+l,h=l/2;return d===!0&&(f=2*s+2*l),v.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[v.jsx("rect",{width:f,height:f,fill:a}),v.jsx("rect",{x:h,y:h,width:s,height:s,fill:r}),d&&v.jsx("rect",{x:1.5*l+s,y:1.5*l+s,width:s,height:s,fill:r})]})});kh.displayName="PatternSquares",kh.propTypes={id:I.string.isRequired,color:I.string.isRequired,background:I.string.isRequired,size:I.number.isRequired,padding:I.number.isRequired,stagger:I.bool.isRequired};var $C={patternDots:Ch,patternLines:Th,patternSquares:kh},jV=["type"],Sh=Rn({},MC,$C),RC=function(e){var t=e.defs;return!t||t.length<1?null:v.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,i=sd(n,jV);return Sh[r]?m.createElement(Sh[r],Rn({key:i.id},i)):null})})};RC.propTypes={defs:I.arrayOf(I.shape({type:I.oneOf(Object.keys(Sh)).isRequired,id:I.string.isRequired}))};var PV=m.memo(RC),ld=function(e){var t=e.width,n=e.height,r=e.margin,i=e.defs,a=e.children,o=e.role,s=e.ariaLabel,c=e.ariaLabelledBy,l=e.ariaDescribedBy,u=e.isFocusable,d=ht();return v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,role:o,"aria-label":s,"aria-labelledby":c,"aria-describedby":l,focusable:u,tabIndex:u?0:void 0,children:[v.jsx(PV,{defs:i}),v.jsx("rect",{width:t,height:n,fill:d.background}),v.jsx("g",{transform:"translate("+r.left+","+r.top+")",children:a})]})};ld.propTypes={width:I.number.isRequired,height:I.number.isRequired,margin:I.shape({top:I.number.isRequired,left:I.number.isRequired}).isRequired,defs:I.array,children:I.oneOfType([I.arrayOf(I.node),I.node]).isRequired,role:I.string,isFocusable:I.bool,ariaLabel:I.string,ariaLabelledBy:I.string,ariaDescribedBy:I.string};var AC=function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return v.jsx("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})};AC.propTypes={size:I.number.isRequired,color:I.string.isRequired,borderWidth:I.number.isRequired,borderColor:I.string.isRequired};var IV=m.memo(AC),jC=function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?IV:r,a=e.size,o=e.datum,s=e.color,c=e.borderWidth,l=e.borderColor,u=e.label,d=e.labelTextAnchor,f=d===void 0?"middle":d,h=e.labelYOffset,g=h===void 0?-12:h,p=ht(),b=mn(),x=b.animate,_=b.config,y=cr({transform:"translate("+t+", "+n+")",config:_,immediate:!x});return v.jsxs(ft.g,{transform:y.transform,style:{pointerEvents:"none"},children:[m.createElement(i,{size:a,color:s,datum:o,borderWidth:c,borderColor:l}),u&&v.jsx("text",{textAnchor:f,y:g,style:Zm(p.dots.text),children:u})]})};jC.propTypes={x:I.number.isRequired,y:I.number.isRequired,datum:I.object.isRequired,size:I.number.isRequired,color:I.string.isRequired,borderWidth:I.number.isRequired,borderColor:I.string.isRequired,symbol:I.oneOfType([I.func,I.object]),label:I.oneOfType([I.string,I.number]),labelTextAnchor:I.oneOf(["start","middle","end"]),labelYOffset:I.number};var DV=m.memo(jC),PC=function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,a=e.value,o=e.lineStyle,s=e.textStyle,c=e.legend,l=e.legendPosition,u=l===void 0?"top-right":l,d=e.legendOffsetX,f=d===void 0?14:d,h=e.legendOffsetY,g=h===void 0?14:h,p=e.legendOrientation,b=p===void 0?"horizontal":p,x=ht(),_=0,y=0,C=0,w=0;r==="y"?(C=i(a),y=t):(_=i(a),w=n);var T=null;if(c){var $=function(R){var S=R.axis,k=R.width,O=R.height,D=R.position,E=R.offsetX,M=R.offsetY,j=R.orientation,F=0,W=0,B=j==="vertical"?-90:0,U="start";if(S==="x")switch(D){case"top-left":F=-E,W=M,U="end";break;case"top":W=-M,U=j==="horizontal"?"middle":"start";break;case"top-right":F=E,W=M,U=j==="horizontal"?"start":"end";break;case"right":F=E,W=O/2,U=j==="horizontal"?"start":"middle";break;case"bottom-right":F=E,W=O-M,U="start";break;case"bottom":W=O+M,U=j==="horizontal"?"middle":"end";break;case"bottom-left":W=O-M,F=-E,U=j==="horizontal"?"end":"start";break;case"left":F=-E,W=O/2,U=j==="horizontal"?"end":"middle"}else switch(D){case"top-left":F=E,W=-M,U="start";break;case"top":F=k/2,W=-M,U=j==="horizontal"?"middle":"start";break;case"top-right":F=k-E,W=-M,U=j==="horizontal"?"end":"start";break;case"right":F=k+E,U=j==="horizontal"?"start":"middle";break;case"bottom-right":F=k-E,W=M,U="end";break;case"bottom":F=k/2,W=M,U=j==="horizontal"?"middle":"end";break;case"bottom-left":F=E,W=M,U=j==="horizontal"?"start":"end";break;case"left":F=-E,U=j==="horizontal"?"end":"middle"}return{x:F,y:W,rotation:B,textAnchor:U}}({axis:r,width:t,height:n,position:u,offsetX:f,offsetY:g,orientation:b});T=v.jsx("text",{transform:"translate("+$.x+", "+$.y+") rotate("+$.rotation+")",textAnchor:$.textAnchor,dominantBaseline:"central",style:s,children:c})}return v.jsxs("g",{transform:"translate("+_+", "+C+")",children:[v.jsx("line",{x1:0,x2:y,y1:0,y2:w,stroke:x.markers.lineColor,strokeWidth:x.markers.lineStrokeWidth,style:o}),T]})};PC.propTypes={width:I.number.isRequired,height:I.number.isRequired,axis:I.oneOf(["x","y"]).isRequired,scale:I.func.isRequired,value:I.oneOfType([I.number,I.string,I.instanceOf(Date)]).isRequired,lineStyle:I.object,textStyle:I.object,legend:I.string,legendPosition:I.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:I.number.isRequired,legendOffsetY:I.number.isRequired,legendOrientation:I.oneOf(["horizontal","vertical"]).isRequired};var NV=m.memo(PC),IC=function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,a=e.yScale;return t&&t.length!==0?t.map(function(o,s){return v.jsx(NV,Rn({},o,{width:n,height:r,scale:o.axis==="y"?a:i}),s)}):null};IC.propTypes={width:I.number.isRequired,height:I.number.isRequired,xScale:I.func.isRequired,yScale:I.func.isRequired,markers:I.arrayOf(I.shape({axis:I.oneOf(["x","y"]).isRequired,value:I.oneOfType([I.number,I.string,I.instanceOf(Date)]).isRequired,lineStyle:I.object,textStyle:I.object}))};var DC=m.memo(IC),FV=["theme","renderWrapper","animate","motionConfig"],NC=function(e){return function(t){var n,r;function i(){return t.apply(this,arguments)||this}return r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,_h(n,r),i.prototype.render=function(){var a=this.props,o=a.theme,s=a.renderWrapper,c=a.animate,l=a.motionConfig,u=sd(a,FV);return v.jsx(zs,{theme:o,renderWrapper:s,isInteractive:u.isInteractive,animate:c,motionConfig:l,children:v.jsx(e,Rn({},u))})},i}(m.Component)},LV=function(e,t){var n=Kp(e)?e:function(r){return rr(r,e)};return n},FC=function(e){return Kp(e)?e:function(t){return rr(t,e)}},Ti=function(e){return m.useMemo(function(){return FC(e)},[e])},BV=function(e,t,n,r){var i=n-e,a=r-t;return i*=i,a*=a,Math.sqrt(i+a)},LC=function(e,t,n,r,i,a){return e<=i&&i<=e+n&&t<=a&&a<=t+r},jo=function(e,t){var n,r="touches"in t?t.touches[0]:t,i=r.clientX,a=r.clientY,o=e.getBoundingClientRect(),s=(n=e.getBBox!==void 0?e.getBBox():{width:e.offsetWidth||0,height:e.offsetHeight||0}).width===o.width?1:n.width/o.width;return[(i-o.left)*s,(a-o.top)*s]},WV=Object.keys(MC),UV=Object.keys($C),zV=function(e,t,n){if(e==="*")return!0;if(Kp(e))return e(t);if(am(e)){var r=n?rr(t,n):t;return gV(Ez(r,Object.keys(e)),e)}return!1},Km=function(e,t,n,r){var i=r===void 0?{}:r,a=i.dataKey,o=i.colorKey,s=o===void 0?"color":o,c=i.targetKey,l=c===void 0?"fill":c,u=[],d={};return e.length&&t.length&&(u=[].concat(e),t.forEach(function(f){for(var h=function(){var p=n[g],b=p.id,x=p.match;if(zV(x,f,a)){var _=e.find(function(k){return k.id===b});if(_){if(UV.includes(_.type))if(_.background==="inherit"||_.color==="inherit"){var y=rr(f,s),C=_.background,w=_.color,T=b;_.background==="inherit"&&(T=T+".bg."+y,C=y),_.color==="inherit"&&(T=T+".fg."+y,w=y),ko(f,l,"url(#"+T+")"),d[T]||(u.push(Rn({},_,{id:T,background:C,color:w})),d[T]=1)}else ko(f,l,"url(#"+b+")");else if(WV.includes(_.type))if(_.colors.map(function(k){return k.color}).includes("inherit")){var $=rr(f,s),R=b,S=Rn({},_,{colors:_.colors.map(function(k,O){return k.color!=="inherit"?k:(R=R+"."+O+"."+$,Rn({},k,{color:k.color==="inherit"?$:k.color}))})});S.id=R,ko(f,l,"url(#"+R+")"),d[R]||(u.push(S),d[R]=1)}else ko(f,l,"url(#"+b+")")}return"break"}},g=0;g<n.length&&h()!=="break";g++);})),u};function wl(){return wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wl.apply(this,arguments)}function Fb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function HV(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(i,a){if(i){if(typeof i=="string")return Fb(i,a);var o=Object.prototype.toString.call(i).slice(8,-1);return o==="Object"&&i.constructor&&(o=i.constructor.name),o==="Map"||o==="Set"?Array.from(i):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Fb(i,a):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
268
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var BC={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:Nw,accent:Fw,dark2:Lw,paired:Bw,pastel1:Ww,pastel2:Uw,set1:zw,set2:Hw,set3:jm,tableau10:IB},VV=Object.keys(BC),WC={brown_blueGreen:Mu,purpleRed_green:$u,pink_yellowGreen:Ru,purple_orange:Au,red_blue:ju,red_grey:Pu,red_yellow_blue:Iu,red_yellow_green:Du,spectral:Nu},qV=Object.keys(WC),YV={brown_blueGreen:DB,purpleRed_green:NB,pink_yellowGreen:FB,purple_orange:LB,red_blue:BB,red_grey:WB,red_yellow_blue:UB,red_yellow_green:zB,spectral:HB},UC={blues:Ku,greens:Xu,greys:Qu,oranges:td,purples:Ju,reds:ed,blue_green:Fu,blue_purple:Lu,green_blue:Bu,orange_red:Wu,purple_blue_green:Uu,purple_blue:zu,purple_red:Hu,red_purple:Vu,yellow_green_blue:qu,yellow_green:Yu,yellow_orange_brown:Gu,yellow_orange_red:Zu},GV=Object.keys(UC),ZV={blues:rW,greens:iW,greys:aW,oranges:cW,purples:oW,reds:sW,turbo:vW,viridis:bW,inferno:xW,magma:yW,plasma:_W,cividis:lW,warm:dW,cool:fW,cubehelixDefault:uW,blue_green:VB,blue_purple:qB,green_blue:YB,orange_red:GB,purple_blue_green:ZB,purple_blue:KB,purple_red:XB,red_purple:QB,yellow_green_blue:JB,yellow_green:eW,yellow_orange_brown:tW,yellow_orange_red:nW},af=wl({},BC,WC,UC),KV=function(e){return VV.includes(e)},XV=function(e){return qV.includes(e)},QV=function(e){return GV.includes(e)},JV={rainbow:hW,sinebow:gW};wl({},YV,ZV,JV);var eq=function(e,t){if(typeof e=="function")return e;if(am(e)){if(function(c){return c.theme!==void 0}(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=rr(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(c){return c.from!==void 0}(e)){var r=function(c){return rr(c,e.from)};if(Array.isArray(e.modifiers)){for(var i,a=[],o=function(){var c=i.value,l=c[0],u=c[1];if(l==="brighter")a.push(function(d){return d.brighter(u)});else if(l==="darker")a.push(function(d){return d.darker(u)});else{if(l!=="opacity")throw new Error("Invalid color modifier: '"+l+"', must be one of: 'brighter', 'darker', 'opacity'");a.push(function(d){return d.opacity=u,d})}},s=HV(e.modifiers);!(i=s()).done;)o();return a.length===0?r:function(c){return a.reduce(function(l,u){return u(l)},Oa(r(c))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},ar=function(e,t){return m.useMemo(function(){return eq(e,t)},[e,t])};I.oneOfType([I.string,I.func,I.shape({theme:I.string.isRequired}),I.shape({from:I.string.isRequired,modifiers:I.arrayOf(I.array)})]);var tq=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(d){return rr(d,t)};if(Array.isArray(e)){var r=pi(e),i=function(d){return r(n(d))};return i.scale=r,i}if(am(e)){if(function(d){return d.datum!==void 0}(e))return function(d){return rr(d,e.datum)};if(function(d){return d.scheme!==void 0}(e)){if(KV(e.scheme)){var a=pi(af[e.scheme]),o=function(d){return a(n(d))};return o.scale=a,o}if(XV(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var s=pi(af[e.scheme][e.size||11]),c=function(d){return s(n(d))};return c.scale=s,c}if(QV(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var l=pi(af[e.scheme][e.size||9]),u=function(d){return l(n(d))};return u.scale=l,u}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},Xm=function(e,t){return m.useMemo(function(){return tq(e,t)},[e,t])};function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tt.apply(this,arguments)}var nq={pointerEvents:"none"},rq=function(e){var t=e.label,n=e.style,r=ht();return v.jsx(ft.g,{transform:n.transform,opacity:n.progress,style:nq,children:v.jsx(ft.text,{textAnchor:"middle",dominantBaseline:"central",style:Tt({},r.labels.text,{fill:n.textColor}),children:t})})},zC=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},iq=function(e,t){return e.filter(function(n){return Math.abs(cd(n.arc.endAngle-n.arc.startAngle))>=t})},aq={startAngle:{enter:function(e){return Tt({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return Tt({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Tt({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Tt({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return Tt({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return Tt({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return Tt({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Tt({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Tt({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Tt({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return Tt({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return Tt({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return Tt({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Tt({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return Tt({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return Tt({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},HC=function(e,t){return m.useMemo(function(){var n=aq[e];return{enter:function(r){return Tt({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return Tt({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return Tt({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},oq=function(e,t){var n=$V(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return Ci(n,r)},sq=function(e){return function(t,n,r,i){return Zr([t,n,r,i],function(a,o,s,c){var l=oq({startAngle:a,endAngle:o,innerRadius:s,outerRadius:c},e);return"translate("+l.x+","+l.y+")"})}},cq=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var i=mn(),a=i.animate,o=i.config,s=HC(n,r);return{transition:Fi(e,{keys:function(c){return c.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:o,immediate:!a}),interpolate:sq(t)}},lq=function(e){var t=e.center,n=e.data,r=e.transitionMode,i=e.label,a=e.radiusOffset,o=e.skipAngle,s=e.textColor,c=e.component,l=c===void 0?rq:c,u=Ti(i),d=ht(),f=ar(s,d),h=m.useMemo(function(){return n.filter(function(_){return Math.abs(cd(_.arc.endAngle-_.arc.startAngle))>=o})},[n,o]),g=cq(h,a,r),p=g.transition,b=g.interpolate,x=l;return v.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:p(function(_,y){return m.createElement(x,{key:y.id,datum:y,label:u(y),style:Tt({},_,{transform:b(_.startAngle,_.endAngle,_.innerRadius,_.outerRadius),textColor:f(y)})})})})},uq=function(e){var t=e.label,n=e.style,r=ht();return v.jsxs(ft.g,{opacity:n.opacity,children:[v.jsx(ft.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),v.jsx(ft.text,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Tt({},r.labels.text,{fill:n.textColor}),children:t})]})},dq=function(e){var t=zC(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},VC=function(e,t,n,r){var i,a,o=zC(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=Ci(o,e.outerRadius+t),c=Ci(o,e.outerRadius+t+n);return o<Math.PI/2||o>1.5*Math.PI?(i="after",a={x:c.x+r,y:c.y}):(i="before",a={x:c.x-r,y:c.y}),{side:i,points:[s,c,a]}},fq=Fm().x(function(e){return e.x}).y(function(e){return e.y}),hq=function(e,t,n,r,i,a,o){return Zr([e,t,n,r,i,a,o],function(s,c,l,u,d,f,h){var g=VC({startAngle:s,endAngle:c,innerRadius:l,outerRadius:u},d,f,h).points;return fq(g)})},pq=function(e,t,n,r){return Zr([e,t,n,r],function(i,a,o,s){return dq({startAngle:i,endAngle:a,innerRadius:o,outerRadius:s})})},mq=function(e,t,n,r,i,a,o,s){return Zr([e,t,n,r,i,a,o,s],function(c,l,u,d,f,h,g,p){var b=VC({startAngle:c,endAngle:l,innerRadius:u,outerRadius:d},f,h,g),x=b.points,_=b.side,y=x[2];return _==="before"?y.x-=p:y.x+=p,"translate("+y.x+","+y.y+")"})},gq=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,i=e.diagonalLength,a=e.straightLength,o=e.skipAngle,s=o===void 0?0:o,c=e.textOffset,l=e.linkColor,u=e.textColor,d=mn(),f=d.animate,h=d.config,g=ht(),p=ar(l,g),b=ar(u,g),x=function(y,C){return m.useMemo(function(){return iq(y,C)},[y,C])}(t,s),_=function(y){var C=y.offset,w=y.diagonalLength,T=y.straightLength,$=y.textOffset,R=y.getLinkColor,S=y.getTextColor;return m.useMemo(function(){return{enter:function(k){return{startAngle:k.arc.startAngle,endAngle:k.arc.endAngle,innerRadius:k.arc.innerRadius,outerRadius:k.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:$,linkColor:R(k),textColor:S(k),opacity:0}},update:function(k){return{startAngle:k.arc.startAngle,endAngle:k.arc.endAngle,innerRadius:k.arc.innerRadius,outerRadius:k.arc.outerRadius,offset:C,diagonalLength:w,straightLength:T,textOffset:$,linkColor:R(k),textColor:S(k),opacity:1}},leave:function(k){return{startAngle:k.arc.startAngle,endAngle:k.arc.endAngle,innerRadius:k.arc.innerRadius,outerRadius:k.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:$,linkColor:R(k),textColor:S(k),opacity:0}}}},[w,T,$,R,S,C])}({offset:r,diagonalLength:i,straightLength:a,textOffset:c,getLinkColor:p,getTextColor:b});return{transition:Fi(x,{keys:function(y){return y.id},initial:_.update,from:_.enter,enter:_.update,update:_.update,leave:_.leave,config:h,immediate:!f}),interpolateLink:hq,interpolateTextAnchor:pq,interpolateTextPosition:mq}},vq=function(e){var t=e.center,n=e.data,r=e.label,i=e.skipAngle,a=e.offset,o=e.diagonalLength,s=e.straightLength,c=e.strokeWidth,l=e.textOffset,u=e.textColor,d=e.linkColor,f=e.component,h=f===void 0?uq:f,g=Ti(r),p=gq({data:n,skipAngle:i,offset:a,diagonalLength:o,straightLength:s,textOffset:l,linkColor:d,textColor:u}),b=p.transition,x=p.interpolateLink,_=p.interpolateTextAnchor,y=p.interpolateTextPosition,C=h;return v.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:b(function(w,T){return m.createElement(C,{key:T.id,datum:T,label:g(T),style:Tt({},w,{thickness:c,path:x(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius,w.offset,w.diagonalLength,w.straightLength),textAnchor:_(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius),textPosition:y(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius,w.offset,w.diagonalLength,w.straightLength,w.textOffset)})})})})},bq=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,a=e.onMouseMove,o=e.onMouseLeave,s=m.useCallback(function(d){return r==null?void 0:r(t,d)},[r,t]),c=m.useCallback(function(d){return i==null?void 0:i(t,d)},[i,t]),l=m.useCallback(function(d){return a==null?void 0:a(t,d)},[a,t]),u=m.useCallback(function(d){return o==null?void 0:o(t,d)},[o,t]);return v.jsx(ft.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?s:void 0,onMouseEnter:i?c:void 0,onMouseMove:a?l:void 0,onMouseLeave:o?u:void 0})},yq=function(e,t,n,r,i){return Zr([e,t,n,r],function(a,o,s,c){return i({startAngle:a,endAngle:o,innerRadius:Math.max(0,s),outerRadius:Math.max(0,c)})})},xq=function(e,t,n){t===void 0&&(t="innerRadius");var r=mn(),i=r.animate,a=r.config,o=HC(t,n);return{transition:Fi(e,{keys:function(s){return s.id},initial:o.update,from:o.enter,enter:o.update,update:o.update,leave:o.leave,config:a,immediate:!i}),interpolate:yq}},_q=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,a=e.borderColor,o=e.onClick,s=e.onMouseEnter,c=e.onMouseMove,l=e.onMouseLeave,u=e.transitionMode,d=e.component,f=d===void 0?bq:d,h=ht(),g=ar(a,h),p=xq(n,u,{enter:function(y){return{opacity:0,color:y.color,borderColor:g(y)}},update:function(y){return{opacity:1,color:y.color,borderColor:g(y)}},leave:function(y){return{opacity:0,color:y.color,borderColor:g(y)}}}),b=p.transition,x=p.interpolate,_=f;return v.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:b(function(y,C){return m.createElement(_,{key:C.id,datum:C,style:Tt({},y,{borderWidth:i,path:x(y.startAngle,y.endAngle,y.innerRadius,y.outerRadius,r)}),onClick:o,onMouseEnter:s,onMouseMove:c,onMouseLeave:l})})})},wq=function(e,t,n,r,i,a){a===void 0&&(a=!0);var o=[],s=Ci(An(r),n);o.push([s.x,s.y]);var c=Ci(An(i),n);o.push([c.x,c.y]);for(var l=Math.round(Math.min(r,i));l<=Math.round(Math.max(r,i));l++)if(l%90==0){var u=Ci(An(l),n);o.push([u.x,u.y])}o=o.map(function(b){var x=b[0],_=b[1];return[e+x,t+_]}),a&&o.push([e,t]);var d=o.map(function(b){return b[0]}),f=o.map(function(b){return b[1]}),h=Math.min.apply(Math,d),g=Math.max.apply(Math,d),p=Math.min.apply(Math,f);return{points:o,x:h,y:p,width:g-h,height:Math.max.apply(Math,f)-p}},Cq=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,i=t.padAngle,a=i===void 0?0:i;return m.useMemo(function(){return gU().innerRadius(function(o){return o.innerRadius}).outerRadius(function(o){return o.outerRadius}).cornerRadius(r).padAngle(a)},[r,a])},Tq=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return v.jsx("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:i,opacity:o,strokeWidth:c,stroke:l===void 0?"transparent":l,style:{pointerEvents:"none"}})},kq=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return v.jsx("g",{transform:"translate("+t+","+n+")",children:v.jsx("path",{d:`
|
|
269
|
-
M`+r/2+` 0
|
|
270
|
-
L`+.8*r+" "+r/2+`
|
|
271
|
-
L`+r/2+" "+r+`
|
|
272
|
-
L`+.2*r+" "+r/2+`
|
|
273
|
-
L`+r/2+` 0
|
|
274
|
-
`,fill:i,opacity:o,strokeWidth:c,stroke:l===void 0?"transparent":l,style:{pointerEvents:"none"}})})},Sq=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return v.jsx("rect",{x:t,y:n,fill:i,opacity:o,strokeWidth:c,stroke:l===void 0?"transparent":l,width:r,height:r,style:{pointerEvents:"none"}})},Oq=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return v.jsx("g",{transform:"translate("+t+","+n+")",children:v.jsx("path",{d:`
|
|
275
|
-
M`+r/2+` 0
|
|
276
|
-
L`+r+" "+r+`
|
|
277
|
-
L0 `+r+`
|
|
278
|
-
L`+r/2+` 0
|
|
279
|
-
`,fill:i,opacity:o,strokeWidth:c,stroke:l===void 0?"transparent":l,style:{pointerEvents:"none"}})})};function gi(){return gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gi.apply(this,arguments)}var Eq={top:0,right:0,bottom:0,left:0},Qm=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,a=e.itemCount,o=e.itemWidth,s=e.itemHeight;if(typeof i!="number"&&(typeof(t=i)!="object"||Array.isArray(t)||t===null))throw new Error("Invalid property padding, must be one of: number, object");var c=typeof i=="number"?{top:i,right:i,bottom:i,left:i}:gi({},Eq,i),l=c.left+c.right,u=c.top+c.bottom,d=o+l,f=s+u,h=(a-1)*r;return n==="row"?d=o*a+h+l:n==="column"&&(f=s*a+h+u),{width:d,height:f,padding:c}},qC=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,a=e.containerHeight,o=e.width,s=e.height,c=n,l=r;switch(t){case"top":c+=(i-o)/2;break;case"top-right":c+=i-o;break;case"right":c+=i-o,l+=(a-s)/2;break;case"bottom-right":c+=i-o,l+=a-s;break;case"bottom":c+=(i-o)/2,l+=a-s;break;case"bottom-left":l+=a-s;break;case"left":l+=(a-s)/2;break;case"center":c+=(i-o)/2,l+=(a-s)/2}return{x:c,y:l}},YC=function(e){var t,n,r,i,a,o,s=e.direction,c=e.justify,l=e.symbolSize,u=e.symbolSpacing,d=e.width,f=e.height;switch(s){case"left-to-right":t=0,n=(f-l)/2,i=f/2,o="central",c?(r=d,a="end"):(r=l+u,a="start");break;case"right-to-left":t=d-l,n=(f-l)/2,i=f/2,o="central",c?(r=0,a="start"):(r=d-l-u,a="end");break;case"top-to-bottom":t=(d-l)/2,n=0,r=d/2,a="middle",c?(i=f,o="alphabetic"):(i=l+u,o="text-before-edge");break;case"bottom-to-top":t=(d-l)/2,n=f-l,r=d/2,a="middle",c?(i=0,o="text-before-edge"):(i=f-l-u,o="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:a,labelAlignment:o}},Mq={circle:Tq,diamond:kq,square:Sq,triangle:Oq},$q=function(e){var t,n,r,i,a,o,s,c,l,u,d,f=e.x,h=e.y,g=e.width,p=e.height,b=e.data,x=e.direction,_=x===void 0?"left-to-right":x,y=e.justify,C=y!==void 0&&y,w=e.textColor,T=e.background,$=T===void 0?"transparent":T,R=e.opacity,S=R===void 0?1:R,k=e.symbolShape,O=k===void 0?"square":k,D=e.symbolSize,E=D===void 0?16:D,M=e.symbolSpacing,j=M===void 0?8:M,F=e.symbolBorderWidth,W=F===void 0?0:F,B=e.symbolBorderColor,U=B===void 0?"transparent":B,N=e.onClick,V=e.onMouseEnter,X=e.onMouseLeave,ne=e.toggleSerie,K=e.effects,J=m.useState({}),q=J[0],G=J[1],z=ht(),L=m.useCallback(function(Be){if(K){var Ke=K.filter(function(Ye){return Ye.on==="hover"}).reduce(function(Ye,de){return gi({},Ye,de.style)},{});G(Ke)}V==null||V(b,Be)},[V,b,K]),H=m.useCallback(function(Be){if(K){var Ke=K.filter(function(Ye){return Ye.on!=="hover"}).reduce(function(Ye,de){return gi({},Ye,de.style)},{});G(Ke)}X==null||X(b,Be)},[X,b,K]),ee=YC({direction:_,justify:C,symbolSize:(t=q.symbolSize)!=null?t:E,symbolSpacing:j,width:g,height:p}),A=ee.symbolX,se=ee.symbolY,ce=ee.labelX,ue=ee.labelY,we=ee.labelAnchor,Te=ee.labelAlignment,at=[N,V,X,ne].some(function(Be){return Be!==void 0}),tt=typeof O=="function"?O:Mq[O];return v.jsxs("g",{transform:"translate("+f+","+h+")",style:{opacity:(n=q.itemOpacity)!=null?n:S},children:[v.jsx("rect",{width:g,height:p,fill:(r=q.itemBackground)!=null?r:$,style:{cursor:at?"pointer":"auto"},onClick:function(Be){N==null||N(b,Be),ne==null||ne(b.id)},onMouseEnter:L,onMouseLeave:H}),ie.createElement(tt,gi({id:b.id,x:A,y:se,size:(i=q.symbolSize)!=null?i:E,fill:(a=(o=b.fill)!=null?o:b.color)!=null?a:"black",borderWidth:(s=q.symbolBorderWidth)!=null?s:W,borderColor:(c=q.symbolBorderColor)!=null?c:U},b.hidden?z.legends.hidden.symbol:void 0)),v.jsx("text",{textAnchor:we,style:gi({},Zm(z.legends.text),{fill:(l=(u=(d=q.itemTextColor)!=null?d:w)!=null?u:z.legends.text.fill)!=null?l:"black",dominantBaseline:Te,pointerEvents:"none",userSelect:"none"},b.hidden?z.legends.hidden.text:void 0),x:ce,y:ue,children:b.label})]})},Rq=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,a=e.padding,o=a===void 0?0:a,s=e.justify,c=e.effects,l=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=d===void 0?"left-to-right":d,h=e.itemsSpacing,g=h===void 0?0:h,p=e.itemTextColor,b=e.itemBackground,x=b===void 0?"transparent":b,_=e.itemOpacity,y=_===void 0?1:_,C=e.symbolShape,w=e.symbolSize,T=e.symbolSpacing,$=e.symbolBorderWidth,R=e.symbolBorderColor,S=e.onClick,k=e.onMouseEnter,O=e.onMouseLeave,D=e.toggleSerie,E=Qm({itemCount:t.length,itemWidth:l,itemHeight:u,itemsSpacing:g,direction:i,padding:o}).padding,M=i==="row"?l+g:0,j=i==="column"?u+g:0;return v.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(F,W){return v.jsx($q,{data:F,x:W*M+E.left,y:W*j+E.top,width:l,height:u,direction:f,justify:s,effects:c,textColor:p,background:x,opacity:y,symbolShape:C,symbolSize:w,symbolSpacing:T,symbolBorderWidth:$,symbolBorderColor:R,onClick:S,onMouseEnter:k,onMouseLeave:O,toggleSerie:D},W)})})},Jm=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,a=i===void 0?0:i,o=e.translateY,s=o===void 0?0:o,c=e.anchor,l=e.direction,u=e.padding,d=u===void 0?0:u,f=e.justify,h=e.itemsSpacing,g=h===void 0?0:h,p=e.itemWidth,b=e.itemHeight,x=e.itemDirection,_=e.itemTextColor,y=e.itemBackground,C=e.itemOpacity,w=e.symbolShape,T=e.symbolSize,$=e.symbolSpacing,R=e.symbolBorderWidth,S=e.symbolBorderColor,k=e.onClick,O=e.onMouseEnter,D=e.onMouseLeave,E=e.toggleSerie,M=e.effects,j=Qm({itemCount:t.length,itemsSpacing:g,itemWidth:p,itemHeight:b,direction:l,padding:d}),F=j.width,W=j.height,B=qC({anchor:c,translateX:a,translateY:s,containerWidth:n,containerHeight:r,width:F,height:W}),U=B.x,N=B.y;return v.jsx(Rq,{data:t,x:U,y:N,direction:l,padding:d,justify:f,effects:M,itemsSpacing:g,itemWidth:p,itemHeight:b,itemDirection:x,itemTextColor:_,itemBackground:y,itemOpacity:C,symbolShape:w,symbolSize:T,symbolSpacing:$,symbolBorderWidth:R,symbolBorderColor:S,onClick:k,onMouseEnter:O,onMouseLeave:D,toggleSerie:typeof E=="boolean"?void 0:E})},Aq={start:"left",middle:"center",end:"right"},GC=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,a=t.translateX,o=a===void 0?0:a,s=t.translateY,c=s===void 0?0:s,l=t.anchor,u=t.direction,d=t.padding,f=d===void 0?0:d,h=t.justify,g=h!==void 0&&h,p=t.itemsSpacing,b=p===void 0?0:p,x=t.itemWidth,_=t.itemHeight,y=t.itemDirection,C=y===void 0?"left-to-right":y,w=t.itemTextColor,T=t.symbolSize,$=T===void 0?16:T,R=t.symbolSpacing,S=R===void 0?8:R,k=t.theme,O=Qm({itemCount:n.length,itemWidth:x,itemHeight:_,itemsSpacing:b,direction:u,padding:f}),D=O.width,E=O.height,M=O.padding,j=qC({anchor:l,translateX:o,translateY:c,containerWidth:r,containerHeight:i,width:D,height:E}),F=j.x,W=j.y,B=u==="row"?x+b:0,U=u==="column"?_+b:0;e.save(),e.translate(F,W),e.font=k.legends.text.fontSize+"px "+(k.legends.text.fontFamily||"sans-serif"),n.forEach(function(N,V){var X,ne,K=V*B+M.left,J=V*U+M.top,q=YC({direction:C,justify:g,symbolSize:$,symbolSpacing:S,width:x,height:_}),G=q.symbolX,z=q.symbolY,L=q.labelX,H=q.labelY,ee=q.labelAnchor,A=q.labelAlignment;e.fillStyle=(X=N.color)!=null?X:"black",e.fillRect(K+G,J+z,$,$),e.textAlign=Aq[ee],A==="central"&&(e.textBaseline="middle"),e.fillStyle=(ne=w??k.legends.text.fill)!=null?ne:"black",e.fillText(String(N.label),K+L,J+H)}),e.restore()};function Jr(){return Jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jr.apply(this,arguments)}function ZC(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Lb,jq=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,a=e.toggleSerie;return v.jsx(v.Fragment,{children:r.map(function(o,s){var c;return v.jsx(Jm,Jr({},o,{containerWidth:t,containerHeight:n,data:(c=o.data)!=null?c:i,toggleSerie:o.toggleSerie?a:void 0}),s)})})},Se={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcs","arcLinkLabels","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return v.jsx(Zp,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(Lb=window.devicePixelRatio)!=null?Lb:1},Pq=["points"],Iq=function(e){var t=e.data,n=e.id,r=n===void 0?Se.id:n,i=e.value,a=i===void 0?Se.value:i,o=e.valueFormat,s=e.colors,c=s===void 0?Se.colors:s,l=Ti(r),u=Ti(a),d=Ma(o),f=Xm(c,"id");return m.useMemo(function(){return t.map(function(h){var g,p=l(h),b=u(h),x={id:p,label:(g=h.label)!=null?g:p,hidden:!1,value:b,formattedValue:d(b),data:h};return Jr({},x,{color:f(x)})})},[t,l,u,d,f])},Dq=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,i=e.innerRadius,a=e.outerRadius,o=e.padAngle,s=e.sortByValue,c=e.activeId,l=e.activeInnerRadiusOffset,u=e.activeOuterRadiusOffset,d=e.hiddenIds,f=e.forwardLegendData,h=m.useMemo(function(){var x=xU().value(function(_){return _.value}).startAngle(An(n)).endAngle(An(r)).padAngle(An(o));return s||x.sortValues(null),x},[n,r,o,s]),g=m.useMemo(function(){var x=t.filter(function(_){return!d.includes(_.id)});return{dataWithArc:h(x).map(function(_){var y=Math.abs(_.endAngle-_.startAngle);return Jr({},_.data,{arc:{index:_.index,startAngle:_.startAngle,endAngle:_.endAngle,innerRadius:c===_.data.id?i-l:i,outerRadius:c===_.data.id?a+u:a,thickness:a-i,padAngle:_.padAngle,angle:y,angleDeg:cd(y)}})}),legendData:t.map(function(_){return{id:_.id,label:_.label,color:_.color,hidden:d.includes(_.id),data:_}})}},[h,t,d,c,i,l,a,u]),p=g.legendData,b=m.useRef(f);return m.useEffect(function(){typeof b.current=="function"&&b.current(p)},[b,p]),g},Nq=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,i=t!==void 0,a=m.useState(i||r===void 0?null:r),o=a[0],s=a[1];return{activeId:i?t:o,setActiveId:m.useCallback(function(c){n&&n(c),i||s(c)},[i,n,s])}},Fq=function(e){var t=e.data,n=e.width,r=e.height,i=e.innerRadius,a=i===void 0?Se.innerRadius:i,o=e.startAngle,s=o===void 0?Se.startAngle:o,c=e.endAngle,l=c===void 0?Se.endAngle:c,u=e.padAngle,d=u===void 0?Se.padAngle:u,f=e.sortByValue,h=f===void 0?Se.sortByValue:f,g=e.cornerRadius,p=g===void 0?Se.cornerRadius:g,b=e.fit,x=b===void 0?Se.fit:b,_=e.activeInnerRadiusOffset,y=_===void 0?Se.activeInnerRadiusOffset:_,C=e.activeOuterRadiusOffset,w=C===void 0?Se.activeOuterRadiusOffset:C,T=e.activeId,$=e.onActiveIdChange,R=e.defaultActiveId,S=e.forwardLegendData,k=Nq({activeId:T,onActiveIdChange:$,defaultActiveId:R}),O=k.activeId,D=k.setActiveId,E=m.useState([]),M=E[0],j=E[1],F=m.useMemo(function(){var U,N=Math.min(n,r)/2,V=N*Math.min(a,1),X=n/2,ne=r/2;if(x){var K=wq(X,ne,N,s-90,l-90),J=K.points,q=ZC(K,Pq),G=Math.min(n/q.width,r/q.height),z={width:q.width*G,height:q.height*G};z.x=(n-z.width)/2,z.y=(r-z.height)/2,X=(X-q.x)/q.width*q.width*G+z.x,ne=(ne-q.y)/q.height*q.height*G+z.y,U={box:q,ratio:G,points:J},N*=G,V*=G}return{centerX:X,centerY:ne,radius:N,innerRadius:V,debug:U}},[n,r,a,s,l,x]),W=Dq({data:t,startAngle:s,endAngle:l,innerRadius:F.innerRadius,outerRadius:F.radius,padAngle:d,sortByValue:h,activeId:O,activeInnerRadiusOffset:y,activeOuterRadiusOffset:w,hiddenIds:M,forwardLegendData:S}),B=m.useCallback(function(U){j(function(N){return N.indexOf(U)>-1?N.filter(function(V){return V!==U}):[].concat(N,[U])})},[]);return Jr({arcGenerator:Cq({cornerRadius:p,padAngle:An(d)}),activeId:O,setActiveId:D,toggleSerie:B},W,F)},Lq=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,a=e.radius,o=e.innerRadius;return m.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:a,innerRadius:o}},[t,n,r,i,a,o])},Bq=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,a=e.borderColor,o=e.isInteractive,s=e.onClick,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.setActiveId,f=e.tooltip,h=e.transitionMode,g=Li(),p=g.showTooltipFromEvent,b=g.hideTooltip,x=m.useMemo(function(){if(o)return function(w,T){s==null||s(w,T)}},[o,s]),_=m.useMemo(function(){if(o)return function(w,T){p(m.createElement(f,{datum:w}),T),d(w.id),c==null||c(w,T)}},[o,p,d,c,f]),y=m.useMemo(function(){if(o)return function(w,T){p(m.createElement(f,{datum:w}),T),l==null||l(w,T)}},[o,p,l,f]),C=m.useMemo(function(){if(o)return function(w,T){b(),d(null),u==null||u(w,T)}},[o,b,d,u]);return v.jsx(_q,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:a,transitionMode:h,onClick:x,onMouseEnter:_,onMouseMove:y,onMouseLeave:C})},Wq=["isInteractive","animate","motionConfig","theme","renderWrapper"],Uq=function(e){var t=e.data,n=e.id,r=n===void 0?Se.id:n,i=e.value,a=i===void 0?Se.value:i,o=e.valueFormat,s=e.sortByValue,c=s===void 0?Se.sortByValue:s,l=e.layers,u=l===void 0?Se.layers:l,d=e.startAngle,f=d===void 0?Se.startAngle:d,h=e.endAngle,g=h===void 0?Se.endAngle:h,p=e.padAngle,b=p===void 0?Se.padAngle:p,x=e.fit,_=x===void 0?Se.fit:x,y=e.innerRadius,C=y===void 0?Se.innerRadius:y,w=e.cornerRadius,T=w===void 0?Se.cornerRadius:w,$=e.activeInnerRadiusOffset,R=$===void 0?Se.activeInnerRadiusOffset:$,S=e.activeOuterRadiusOffset,k=S===void 0?Se.activeOuterRadiusOffset:S,O=e.width,D=e.height,E=e.margin,M=e.colors,j=M===void 0?Se.colors:M,F=e.borderWidth,W=F===void 0?Se.borderWidth:F,B=e.borderColor,U=B===void 0?Se.borderColor:B,N=e.enableArcLabels,V=N===void 0?Se.enableArcLabels:N,X=e.arcLabel,ne=X===void 0?Se.arcLabel:X,K=e.arcLabelsSkipAngle,J=K===void 0?Se.arcLabelsSkipAngle:K,q=e.arcLabelsTextColor,G=q===void 0?Se.arcLabelsTextColor:q,z=e.arcLabelsRadiusOffset,L=z===void 0?Se.arcLabelsRadiusOffset:z,H=e.arcLabelsComponent,ee=e.enableArcLinkLabels,A=ee===void 0?Se.enableArcLinkLabels:ee,se=e.arcLinkLabel,ce=se===void 0?Se.arcLinkLabel:se,ue=e.arcLinkLabelsSkipAngle,we=ue===void 0?Se.arcLinkLabelsSkipAngle:ue,Te=e.arcLinkLabelsOffset,at=Te===void 0?Se.arcLinkLabelsOffset:Te,tt=e.arcLinkLabelsDiagonalLength,Be=tt===void 0?Se.arcLinkLabelsDiagonalLength:tt,Ke=e.arcLinkLabelsStraightLength,Ye=Ke===void 0?Se.arcLinkLabelsStraightLength:Ke,de=e.arcLinkLabelsThickness,ke=de===void 0?Se.arcLinkLabelsThickness:de,Oe=e.arcLinkLabelsTextOffset,ve=Oe===void 0?Se.arcLinkLabelsTextOffset:Oe,Ie=e.arcLinkLabelsTextColor,Xe=Ie===void 0?Se.arcLinkLabelsTextColor:Ie,It=e.arcLinkLabelsColor,mt=It===void 0?Se.arcLinkLabelsColor:It,Je=e.arcLinkLabelComponent,bt=e.defs,At=bt===void 0?Se.defs:bt,it=e.fill,gt=it===void 0?Se.fill:it,yt=e.isInteractive,Lt=yt===void 0?Se.isInteractive:yt,$e=e.onClick,Pe=e.onMouseEnter,ze=e.onMouseMove,nt=e.onMouseLeave,vt=e.tooltip,kt=vt===void 0?Se.tooltip:vt,Xt=e.activeId,Dt=e.onActiveIdChange,Bt=e.defaultActiveId,Ht=e.transitionMode,Mt=Ht===void 0?Se.transitionMode:Ht,Wt=e.legends,Jt=Wt===void 0?Se.legends:Wt,Vt=e.forwardLegendData,fe=e.role,ye=fe===void 0?Se.role:fe,Ee=Us(O,D,E),qe=Ee.outerWidth,Ge=Ee.outerHeight,ot=Ee.margin,P=Ee.innerWidth,re=Ee.innerHeight,Z=Iq({data:t,id:r,value:a,valueFormat:o,colors:j}),te=Fq({data:Z,width:P,height:re,fit:_,innerRadius:C,startAngle:f,endAngle:g,padAngle:b,sortByValue:c,cornerRadius:T,activeInnerRadiusOffset:R,activeOuterRadiusOffset:k,activeId:Xt,onActiveIdChange:Dt,defaultActiveId:Bt,forwardLegendData:Vt}),ge=te.dataWithArc,Ce=te.legendData,pe=te.arcGenerator,be=te.centerX,Ae=te.centerY,Me=te.radius,et=te.innerRadius,Nt=te.setActiveId,wt=te.toggleSerie,Ut=Km(At,ge,gt),le={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes("arcs")&&(le.arcs=v.jsx(Bq,{center:[be,Ae],data:ge,arcGenerator:pe,borderWidth:W,borderColor:U,isInteractive:Lt,onClick:$e,onMouseEnter:Pe,onMouseMove:ze,onMouseLeave:nt,setActiveId:Nt,tooltip:kt,transitionMode:Mt},"arcs")),A&&u.includes("arcLinkLabels")&&(le.arcLinkLabels=v.jsx(vq,{center:[be,Ae],data:ge,label:ce,skipAngle:we,offset:at,diagonalLength:Be,straightLength:Ye,strokeWidth:ke,textOffset:ve,textColor:Xe,linkColor:mt,component:Je},"arcLinkLabels")),V&&u.includes("arcLabels")&&(le.arcLabels=v.jsx(lq,{center:[be,Ae],data:ge,label:ne,radiusOffset:L,skipAngle:J,textColor:G,transitionMode:Mt,component:H},"arcLabels")),Jt.length>0&&u.includes("legends")&&(le.legends=v.jsx(jq,{width:P,height:re,data:Ce,legends:Jt,toggleSerie:wt},"legends"));var cn=Lq({dataWithArc:ge,arcGenerator:pe,centerX:be,centerY:Ae,radius:Me,innerRadius:et});return v.jsx(ld,{width:qe,height:Ge,margin:ot,defs:Ut,role:ye,children:u.map(function(Ft,dr){return le[Ft]!==void 0?le[Ft]:typeof Ft=="function"?v.jsx(m.Fragment,{children:m.createElement(Ft,cn)},dr):null})})},zq=function(e){var t=e.isInteractive,n=t===void 0?Se.isInteractive:t,r=e.animate,i=r===void 0?Se.animate:r,a=e.motionConfig,o=a===void 0?Se.motionConfig:a,s=e.theme,c=e.renderWrapper,l=ZC(e,Wq);return v.jsx(zs,{animate:i,isInteractive:n,motionConfig:o,renderWrapper:c,theme:s,children:v.jsx(Uq,Jr({isInteractive:n},l))})},Hq=function(e){return v.jsx(Ka,{children:function(t){var n=t.width,r=t.height;return v.jsx(zq,Jr({width:n,height:r},e))}})};function Vq(){}var qq=Vq,of=vC,Yq=qq,Gq=Hm,Zq=1/0,Kq=of&&1/Gq(new of([,-0]))[1]==Zq?function(e){return new of(e)}:Yq,Xq=Kq,Qq=Pm,Jq=Vw,eY=qw,tY=Im,nY=Xq,rY=Hm,iY=200;function aY(e,t,n){var r=-1,i=Jq,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=eY;else if(a>=iY){var l=t?null:nY(e);if(l)return rY(l);o=!1,i=tY,c=new Qq}else c=t?[]:s;e:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}var KC=aY,oY=KC;function sY(e){return e&&e.length?oY(e):[]}var cY=sY;const Bb=Rt(cY);var lY=pu,uY=qm,dY=1,fY=2;function hY(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new lY;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?uY(u,l,dY|fY,r,d):f))return!1}}return!0}var pY=hY,mY=ur;function gY(e){return e===e&&!mY(e)}var XC=gY,vY=XC,bY=Ws;function yY(e){for(var t=bY(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,vY(i)]}return t}var xY=yY;function _Y(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var QC=_Y,wY=pY,CY=xY,TY=QC;function kY(e){var t=CY(e);return t.length==1&&t[0][2]?TY(t[0][0],t[0][1]):function(n){return n===e||wY(n,e,t)}}var SY=kY,OY=qm,EY=Y_,MY=cC,$Y=lm,RY=XC,AY=QC,jY=Ya,PY=1,IY=2;function DY(e,t){return $Y(e)&&RY(t)?AY(jY(e),t):function(n){var r=EY(n,e);return r===void 0&&r===t?MY(n,e):OY(t,r,PY|IY)}}var NY=DY;function FY(e){return function(t){return t==null?void 0:t[e]}}var LY=FY,BY=Ls;function WY(e){return function(t){return BY(t,e)}}var UY=WY,zY=LY,HY=UY,VY=lm,qY=Ya;function YY(e){return VY(e)?zY(qY(e)):HY(e)}var GY=YY,ZY=SY,KY=NY,XY=yu,QY=Cn,JY=GY;function eG(e){return typeof e=="function"?e:e==null?XY:typeof e=="object"?QY(e)?KY(e[0],e[1]):ZY(e):JY(e)}var eg=eG,tG=eg,nG=KC;function rG(e,t){return e&&e.length?nG(e,tG(t)):[]}var iG=rG;const Oh=Rt(iG);var aG=E_,oG=Ws;function sG(e,t){return e&&aG(e,t,oG)}var cG=sG,lG=za;function uG(e,t){return function(n,r){if(n==null)return n;if(!lG(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var dG=uG,fG=cG,hG=dG,pG=hG(fG),JC=pG,mG=JC,gG=za;function vG(e,t){var n=-1,r=gG(e)?Array(e.length):[];return mG(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var bG=vG;function yG(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var xG=yG,Wb=xu;function _G(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=Wb(e),o=t!==void 0,s=t===null,c=t===t,l=Wb(t);if(!s&&!l&&!a&&e>t||a&&o&&c&&!s&&!l||r&&o&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!c)return-1}return 0}var wG=_G,CG=wG;function TG(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=CG(i[r],a[r]);if(c){if(r>=s)return c;var l=n[r];return c*(l=="desc"?-1:1)}}return e.index-t.index}var kG=TG,sf=_u,SG=Ls,OG=eg,EG=bG,MG=xG,$G=Ha,RG=kG,AG=yu,jG=Cn;function PG(e,t,n){t.length?t=sf(t,function(a){return jG(a)?function(o){return SG(o,a.length===1?a[0]:a)}:a}):t=[AG];var r=-1;t=sf(t,$G(OG));var i=EG(e,function(a,o,s){var c=sf(t,function(l){return l(a)});return{criteria:c,index:++r,value:a}});return MG(i,function(a,o){return RG(a,o,n)})}var IG=PG,DG=uC,NG=IG,FG=cm,Ub=z_,LG=FG(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ub(e,t[0],t[1])?t=[]:n>2&&Ub(t[0],t[1],t[2])&&(t=[t[0]]),NG(e,DG(t,1),[])}),BG=LG;const WG=Rt(BG);var UG=Or,zG=Nn,HG="[object Date]";function VG(e){return zG(e)&&UG(e)==HG}var qG=VG,YG=qG,GG=Ha,zb=vu,Hb=zb&&zb.isDate,ZG=Hb?GG(Hb):YG,KG=ZG;const XG=Rt(KG);function ui(){return ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ui.apply(this,arguments)}var Ji=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],QG={millisecond:[],second:Ji.slice(0,1),minute:Ji.slice(0,2),hour:Ji.slice(0,3),day:Ji.slice(0,4),month:Ji.slice(0,5),year:Ji.slice(0,6)},JG=function(e){return function(t){return QG[e].forEach(function(n){n(t)}),t}},eT=function(e){var t=e.format,n=t===void 0?"native":t,r=e.precision,i=r===void 0?"millisecond":r,a=e.useUTC,o=a===void 0||a,s=JG(i);return function(c){if(c===void 0)return c;if(n==="native"||c instanceof Date)return s(c);var l=o?Dw(n):Pw(n);return s(l(c))}},eZ=function(e,t,n,r){var i,a,o,s,c=e.min,l=c===void 0?0:c,u=e.max,d=u===void 0?"auto":u,f=e.stacked,h=f!==void 0&&f,g=e.reverse,p=g!==void 0&&g,b=e.clamp,x=b!==void 0&&b,_=e.nice,y=_!==void 0&&_;l==="auto"?i=h===!0?(a=t.minStacked)!=null?a:0:t.min:i=l,d==="auto"?o=h===!0?(s=t.maxStacked)!=null?s:0:t.max:o=d;var C=sw().rangeRound(r==="x"?[0,n]:[n,0]).domain(p?[o,i]:[i,o]).clamp(x);return y===!0?C.nice():typeof y=="number"&&C.nice(y),tZ(C,h)},tZ=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},nZ=function(e,t,n){var r=zF().range([0,n]).domain(t.all);return r.type="point",r},rZ=function(e,t,n,r){var i=e.round,a=i===void 0||i,o=vm().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(a);return iZ(o)},iZ=function(e){var t=e;return t.type="band",t},aZ=function(e,t,n){var r,i,a=e.format,o=a===void 0?"native":a,s=e.precision,c=s===void 0?"millisecond":s,l=e.min,u=l===void 0?"auto":l,d=e.max,f=d===void 0?"auto":d,h=e.useUTC,g=h===void 0||h,p=e.nice,b=p!==void 0&&p,x=eT({format:o,precision:c,useUTC:g});r=u==="auto"?x(t.min):o!=="native"?x(u):u,i=f==="auto"?x(t.max):o!=="native"?x(f):f;var _=g?PB():jB();_.range([0,n]),r&&i&&_.domain([r,i]),b===!0?_.nice():typeof b!="object"&&typeof b!="number"||_.nice(b);var y=_;return y.type="time",y.useUTC=g,y},oZ=function(e,t,n,r){var i,a=e.base,o=a===void 0?10:a,s=e.min,c=s===void 0?"auto":s,l=e.max,u=l===void 0?"auto":l;if(t.all.some(function(p){return p===0}))throw new Error("a log scale domain must not include or cross zero");var d,f,h=!1;if(t.all.filter(function(p){return p!=null}).forEach(function(p){h||(i===void 0?i=Math.sign(p):Math.sign(p)!==i&&(h=!0))}),h)throw new Error("a log scale domain must be strictly-positive or strictly-negative");d=c==="auto"?t.min:c,f=u==="auto"?t.max:u;var g=lw().domain([d,f]).rangeRound(r==="x"?[0,n]:[n,0]).base(o).nice();return g.type="log",g},sZ=function(e,t,n,r){var i,a,o=e.constant,s=o===void 0?1:o,c=e.min,l=c===void 0?"auto":c,u=e.max,d=u===void 0?"auto":u,f=e.reverse,h=f!==void 0&&f;i=l==="auto"?t.min:l,a=d==="auto"?t.max:d;var g=uw().constant(s).rangeRound(r==="x"?[0,n]:[n,0]).nice();h===!0?g.domain([a,i]):g.domain([i,a]);var p=g;return p.type="symlog",p},cZ=function(e){return e==="x"?"y":"x"},lZ=function(e,t){return e===t},uZ=function(e,t){return e.getTime()===t.getTime()};function ys(e,t,n,r){switch(e.type){case"linear":return eZ(e,t,n,r);case"point":return nZ(e,t,n);case"band":return rZ(e,t,n,r);case"time":return aZ(e,t,n);case"log":return oZ(e,t,n,r);case"symlog":return sZ(e,t,n,r);default:throw new Error("invalid scale spec")}}var Vb=function(e,t,n){var r;if("stacked"in n&&n.stacked){var i=e.data[t==="x"?"xStacked":"yStacked"];return i==null?null:n(i)}return(r=n(e.data[t]))!=null?r:null},dZ=function(e,t,n,r,i){var a=e.map(function(u){return function(d){return ui({},d,{data:d.data.map(function(f){return{data:ui({},f)}})})}(u)}),o=fZ(a,t,n);"stacked"in t&&t.stacked===!0&&hZ(o,a),"stacked"in n&&n.stacked===!0&&pZ(o,a);var s=ys(t,o.x,r,"x"),c=ys(n,o.y,i,"y"),l=a.map(function(u){return ui({},u,{data:u.data.map(function(d){return ui({},d,{position:{x:Vb(d,"x",s),y:Vb(d,"y",c)}})})})});return ui({},o,{series:l,xScale:s,yScale:c})},fZ=function(e,t,n){return{x:qb(e,"x",t),y:qb(e,"y",n)}},qb=function(e,t,n,r){var i={},a=i.getValue,o=a===void 0?function(g){return g.data[t]}:a,s=i.setValue,c=s===void 0?function(g,p){g.data[t]=p}:s;if(n.type==="linear")e.forEach(function(g){g.data.forEach(function(p){var b=o(p);b&&c(p,parseFloat(String(b)))})});else if(n.type==="time"&&n.format!=="native"){var l=eT(n);e.forEach(function(g){g.data.forEach(function(p){var b=o(p);b&&c(p,l(b))})})}var u=[];switch(e.forEach(function(g){g.data.forEach(function(p){u.push(o(p))})}),n.type){case"linear":var d=WG(Bb(u).filter(function(g){return g!==null}),function(g){return g});return{all:d,min:Math.min.apply(Math,d),max:Math.max.apply(Math,d)};case"time":var f=Oh(u,function(g){return g.getTime()}).slice(0).sort(function(g,p){return p.getTime()-g.getTime()}).reverse();return{all:f,min:f[0],max:xe(f)};default:var h=Bb(u);return{all:h,min:h[0],max:xe(h)}}},tT=function(e,t,n){var r=cZ(e),i=[];t[r].all.forEach(function(a){var o=XG(a)?uZ:lZ,s=[];n.forEach(function(c){var l=c.data.find(function(h){return o(h.data[r],a)}),u=null,d=null;if(l!==void 0){if((u=l.data[e])!==null){var f=xe(s);f===void 0?d=u:f!==null&&(d=f+u)}l.data[e==="x"?"xStacked":"yStacked"]=d}s.push(d),d!==null&&i.push(d)})}),t[e].minStacked=Math.min.apply(Math,i),t[e].maxStacked=Math.max.apply(Math,i)},hZ=function(e,t){return tT("x",e,t)},pZ=function(e,t){return tT("y",e,t)},nT=function(e){var t=e.bandwidth();if(t===0)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(r){var i;return((i=e(r))!=null?i:0)+n}},rT={millisecond:[ms,ms],second:[hh,hh],minute:[gw,Cw],hour:[vw,Tw],day:[zt(function(e){return e.setHours(0,0,0,0)},function(e,t){return e.setDate(e.getDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)}),zt(function(e){return e.setUTCHours(0,0,0,0)},function(e,t){return e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)})],week:[ml,gl],sunday:[ml,gl],monday:[gs,vs],tuesday:[bw,kw],wednesday:[yw,Sw],thursday:[Pi,Ii],friday:[xw,Ow],saturday:[_w,Ew],month:[ww,Mw],year:[Kr,Xr]},mZ=Object.keys(rT),gZ=new RegExp("^every\\s*(\\d+)?\\s*("+mZ.join("|")+")s?$","i"),iT=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(gZ);if(n){var r=n[1],i=n[2],a=rT[i][e.useUTC?1:0];if(i==="day"){var o,s,c=e.domain(),l=c[0],u=c[1],d=new Date(u);return d.setDate(d.getDate()+1),(o=(s=a.every(Number(r??1)))==null?void 0:s.range(l,d))!=null?o:[]}if(r===void 0)return e.ticks(a);var f=a.every(Number(r));if(f)return e.ticks(f)}throw new Error("Invalid tickValues: "+t)}if("ticks"in e){if(t===void 0)return e.ticks();if(typeof(h=t)=="number"&&isFinite(h)&&Math.floor(h)===h)return e.ticks(t)}var h;return e.domain()};function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jn.apply(this,arguments)}var aT=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,a=e.tickValues,o=e.tickSize,s=e.tickPadding,c=e.tickRotation,l=e.truncateTickAt,u=e.engine,d=u===void 0?"svg":u,f=iT(r,a),h=AV[d],g="bandwidth"in r?nT(r):r,p={lineX:0,lineY:0},b={textX:0,textY:0},x=typeof document=="object"&&document.dir==="rtl",_=h.align.center,y=h.baseline.center;return n==="x"?(t=function(C){var w;return{x:(w=g(C))!=null?w:0,y:0}},p.lineY=o*(i==="after"?1:-1),b.textY=(o+s)*(i==="after"?1:-1),y=i==="after"?h.baseline.top:h.baseline.bottom,c===0?_=h.align.center:i==="after"&&c<0||i==="before"&&c>0?(_=h.align[x?"left":"right"],y=h.baseline.center):(i==="after"&&c>0||i==="before"&&c<0)&&(_=h.align[x?"right":"left"],y=h.baseline.center)):(t=function(C){var w;return{x:0,y:(w=g(C))!=null?w:0}},p.lineX=o*(i==="after"?1:-1),b.textX=(o+s)*(i==="after"?1:-1),_=i==="after"?h.align.left:h.align.right),{ticks:f.map(function(C){var w=typeof C=="string"?function(T){var $=String(T).length;return l&&l>0&&$>l?""+String(T).slice(0,l).concat("..."):""+T}(C):C;return jn({key:C instanceof Date?""+C.valueOf():""+C,value:w},t(C),p,b)}),textAlign:_,textBaseline:y}},oT=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=Eu(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return Bs(e)},Eh=function(e){var t,n=e.width,r=e.height,i=e.scale,a=e.axis,o=e.values,s=(t=o,(Array.isArray(t)?o:void 0)||iT(i,o)),c="bandwidth"in i?nT(i):i,l=a==="x"?s.map(function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:(d=c(u))!=null?d:0,x2:(f=c(u))!=null?f:0,y1:0,y2:r}}):s.map(function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:0,x2:n,y1:(d=c(u))!=null?d:0,y2:(f=c(u))!=null?f:0}});return l},vZ=m.memo(function(e){var t,n=e.value,r=e.format,i=e.lineX,a=e.lineY,o=e.onClick,s=e.textBaseline,c=e.textAnchor,l=e.animatedProps,u=ht(),d=u.axis.ticks.line,f=u.axis.ticks.text,h=(t=r==null?void 0:r(n))!=null?t:n,g=m.useMemo(function(){var p={opacity:l.opacity};return o?{style:jn({},p,{cursor:"pointer"}),onClick:function(b){return o(b,h)}}:{style:p}},[l.opacity,o,h]);return v.jsxs(ft.g,jn({transform:l.transform},g,{children:[v.jsx("line",{x1:0,x2:i,y1:0,y2:a,style:d}),f.outlineWidth>0&&v.jsx(ft.text,{dominantBaseline:s,textAnchor:c,transform:l.textTransform,style:f,strokeWidth:2*f.outlineWidth,stroke:f.outlineColor,strokeLinejoin:"round",children:""+h}),v.jsx(ft.text,{dominantBaseline:s,textAnchor:c,transform:l.textTransform,style:Zm(f),children:""+h})]}))}),bZ=function(e){var t=e.axis,n=e.scale,r=e.x,i=r===void 0?0:r,a=e.y,o=a===void 0?0:a,s=e.length,c=e.ticksPosition,l=e.tickValues,u=e.tickSize,d=u===void 0?5:u,f=e.tickPadding,h=f===void 0?5:f,g=e.tickRotation,p=g===void 0?0:g,b=e.format,x=e.renderTick,_=x===void 0?vZ:x,y=e.truncateTickAt,C=e.legend,w=e.legendPosition,T=w===void 0?"end":w,$=e.legendOffset,R=$===void 0?0:$,S=e.onClick,k=e.ariaHidden,O=ht(),D=O.axis.legend.text,E=m.useMemo(function(){return oT(b,n)},[b,n]),M=aT({axis:t,scale:n,ticksPosition:c,tickValues:l,tickSize:d,tickPadding:h,tickRotation:p,truncateTickAt:y}),j=M.ticks,F=M.textAlign,W=M.textBaseline,B=null;if(C!==void 0){var U,N=0,V=0,X=0;t==="y"?(X=-90,N=R,T==="start"?(U="start",V=s):T==="middle"?(U="middle",V=s/2):T==="end"&&(U="end")):(V=R,T==="start"?U="start":T==="middle"?(U="middle",N=s/2):T==="end"&&(U="end",N=s)),B=v.jsxs(v.Fragment,{children:[D.outlineWidth>0&&v.jsx("text",{transform:"translate("+N+", "+V+") rotate("+X+")",textAnchor:U,style:jn({dominantBaseline:"central"},D),strokeWidth:2*D.outlineWidth,stroke:D.outlineColor,strokeLinejoin:"round",children:C}),v.jsx("text",{transform:"translate("+N+", "+V+") rotate("+X+")",textAnchor:U,style:jn({dominantBaseline:"central"},D),children:C})]})}var ne=mn(),K=ne.animate,J=ne.config,q=cr({transform:"translate("+i+","+o+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:J,immediate:!K}),G=m.useCallback(function(H){return{opacity:1,transform:"translate("+H.x+","+H.y+")",textTransform:"translate("+H.textX+","+H.textY+") rotate("+p+")"}},[p]),z=m.useCallback(function(H){return{opacity:0,transform:"translate("+H.x+","+H.y+")",textTransform:"translate("+H.textX+","+H.textY+") rotate("+p+")"}},[p]),L=Fi(j,{keys:function(H){return H.key},initial:G,from:z,enter:G,update:G,leave:{opacity:0},config:J,immediate:!K});return v.jsxs(ft.g,{transform:q.transform,"aria-hidden":k,children:[L(function(H,ee,A,se){return ie.createElement(_,jn({tickIndex:se,format:E,rotate:p,textBaseline:W,textAnchor:F,truncateTickAt:y,animatedProps:H},ee,S?{onClick:S}:{}))}),v.jsx(ft.line,{style:O.axis.domain.line,x1:0,x2:q.lineX2,y1:0,y2:q.lineY2}),B]})},yZ=m.memo(bZ),sT=["top","right","bottom","left"],cT=m.memo(function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,a={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return v.jsx(v.Fragment,{children:sT.map(function(o){var s=a[o];if(!s)return null;var c=o==="top"||o==="bottom";return v.jsx(yZ,jn({},s,{axis:c?"x":"y",x:o==="right"?r:0,y:o==="bottom"?i:0,scale:c?t:n,length:c?r:i,ticksPosition:o==="top"||o==="left"?"before":"after",truncateTickAt:s.truncateTickAt}),o)})})}),xZ=m.memo(function(e){var t=e.animatedProps,n=ht();return v.jsx(ft.line,jn({},t,n.grid.line))}),Yb=m.memo(function(e){var t=e.lines,n=mn(),r=n.animate,i=n.config,a=Fi(t,{keys:function(o){return o.key},initial:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},from:function(o){return{opacity:0,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},enter:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},update:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},leave:{opacity:0},config:i,immediate:!r});return v.jsx("g",{children:a(function(o,s){return m.createElement(xZ,jn({},s,{key:s.key,animatedProps:o}))})})}),lT=m.memo(function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,a=e.xValues,o=e.yValues,s=m.useMemo(function(){return!!r&&Eh({width:t,height:n,scale:r,axis:"x",values:a})},[r,a,t,n]),c=m.useMemo(function(){return!!i&&Eh({width:t,height:n,scale:i,axis:"y",values:o})},[n,t,i,o]);return v.jsxs(v.Fragment,{children:[s&&v.jsx(Yb,{lines:s}),c&&v.jsx(Yb,{lines:c})]})}),_Z=function(e,t){var n,r=t.axis,i=t.scale,a=t.x,o=a===void 0?0:a,s=t.y,c=s===void 0?0:s,l=t.length,u=t.ticksPosition,d=t.tickValues,f=t.tickSize,h=f===void 0?5:f,g=t.tickPadding,p=g===void 0?5:g,b=t.tickRotation,x=b===void 0?0:b,_=t.format,y=t.legend,C=t.legendPosition,w=C===void 0?"end":C,T=t.legendOffset,$=T===void 0?0:T,R=t.theme,S=aT({axis:r,scale:i,ticksPosition:u,tickValues:d,tickSize:h,tickPadding:p,tickRotation:x,engine:"canvas"}),k=S.ticks,O=S.textAlign,D=S.textBaseline;e.save(),e.translate(o,c),e.textAlign=O,e.textBaseline=D;var E=R.axis.ticks.text;e.font=(E.fontWeight?E.fontWeight+" ":"")+E.fontSize+"px "+E.fontFamily,((n=R.axis.domain.line.strokeWidth)!=null?n:0)>0&&(e.lineWidth=Number(R.axis.domain.line.strokeWidth),e.lineCap="square",R.axis.domain.line.stroke&&(e.strokeStyle=R.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(r==="x"?l:0,r==="x"?0:l),e.stroke());var M=typeof _=="function"?_:function(U){return""+U};if(k.forEach(function(U){var N;((N=R.axis.ticks.line.strokeWidth)!=null?N:0)>0&&(e.lineWidth=Number(R.axis.ticks.line.strokeWidth),e.lineCap="square",R.axis.ticks.line.stroke&&(e.strokeStyle=R.axis.ticks.line.stroke),e.beginPath(),e.moveTo(U.x,U.y),e.lineTo(U.x+U.lineX,U.y+U.lineY),e.stroke());var V=M(U.value);e.save(),e.translate(U.x+U.textX,U.y+U.textY),e.rotate(An(x)),E.outlineWidth>0&&(e.strokeStyle=E.outlineColor,e.lineWidth=2*E.outlineWidth,e.lineJoin="round",e.strokeText(""+V,0,0)),R.axis.ticks.text.fill&&(e.fillStyle=E.fill),e.fillText(""+V,0,0),e.restore()}),y!==void 0){var j=0,F=0,W=0,B="center";r==="y"?(W=-90,j=$,w==="start"?(B="start",F=l):w==="middle"?(B="center",F=l/2):w==="end"&&(B="end")):(F=$,w==="start"?B="start":w==="middle"?(B="center",j=l/2):w==="end"&&(B="end",j=l)),e.translate(j,F),e.rotate(An(W)),e.font=(R.axis.legend.text.fontWeight?R.axis.legend.text.fontWeight+" ":"")+R.axis.legend.text.fontSize+"px "+R.axis.legend.text.fontFamily,R.axis.legend.text.fill&&(e.fillStyle=R.axis.legend.text.fill),e.textAlign=B,e.textBaseline="middle",e.fillText(y,0,0)}e.restore()},uT=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,a=t.height,o=t.top,s=t.right,c=t.bottom,l=t.left,u=t.theme,d={top:o,right:s,bottom:c,left:l};sT.forEach(function(f){var h=d[f];if(!h)return null;var g=f==="top"||f==="bottom",p=f==="top"||f==="left"?"before":"after",b=g?n:r,x=oT(h.format,b);_Z(e,jn({},h,{axis:g?"x":"y",x:f==="right"?i:0,y:f==="bottom"?a:0,scale:b,format:x,length:g?i:a,ticksPosition:p,theme:u}))})},Cl=function(e,t){var n=t.width,r=t.height,i=t.scale,a=t.axis,o=t.values;Eh({width:n,height:r,scale:i,axis:a,values:o}).forEach(function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()})},wZ=q_,CZ=0;function TZ(e){var t=++CZ;return wZ(e)+t}var kZ=TZ;const SZ=Rt(kZ),xr=11102230246251565e-32,tn=134217729,OZ=(3+8*xr)*xr;function cf(e,t,n,r,i){let a,o,s,c,l=t[0],u=r[0],d=0,f=0;u>l==u>-l?(a=l,l=t[++d]):(a=u,u=r[++f]);let h=0;if(d<e&&f<n)for(u>l==u>-l?(o=l+a,s=a-(o-l),l=t[++d]):(o=u+a,s=a-(o-u),u=r[++f]),a=o,s!==0&&(i[h++]=s);d<e&&f<n;)u>l==u>-l?(o=a+l,c=o-a,s=a-(o-c)+(l-c),l=t[++d]):(o=a+u,c=o-a,s=a-(o-c)+(u-c),u=r[++f]),a=o,s!==0&&(i[h++]=s);for(;d<e;)o=a+l,c=o-a,s=a-(o-c)+(l-c),l=t[++d],a=o,s!==0&&(i[h++]=s);for(;f<n;)o=a+u,c=o-a,s=a-(o-c)+(u-c),u=r[++f],a=o,s!==0&&(i[h++]=s);return(a!==0||h===0)&&(i[h++]=a),h}function EZ(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function Hs(e){return new Float64Array(e)}const MZ=(3+16*xr)*xr,$Z=(2+12*xr)*xr,RZ=(9+64*xr)*xr*xr,ea=Hs(4),Gb=Hs(8),Zb=Hs(12),Kb=Hs(16),ln=Hs(4);function AZ(e,t,n,r,i,a,o){let s,c,l,u,d,f,h,g,p,b,x,_,y,C,w,T,$,R;const S=e-i,k=n-i,O=t-a,D=r-a;C=S*D,f=tn*S,h=f-(f-S),g=S-h,f=tn*D,p=f-(f-D),b=D-p,w=g*b-(C-h*p-g*p-h*b),T=O*k,f=tn*O,h=f-(f-O),g=O-h,f=tn*k,p=f-(f-k),b=k-p,$=g*b-(T-h*p-g*p-h*b),x=w-$,d=w-x,ea[0]=w-(x+d)+(d-$),_=C+x,d=_-C,y=C-(_-d)+(x-d),x=y-T,d=y-x,ea[1]=y-(x+d)+(d-T),R=_+x,d=R-_,ea[2]=_-(R-d)+(x-d),ea[3]=R;let E=EZ(4,ea),M=$Z*o;if(E>=M||-E>=M||(d=e-S,s=e-(S+d)+(d-i),d=n-k,l=n-(k+d)+(d-i),d=t-O,c=t-(O+d)+(d-a),d=r-D,u=r-(D+d)+(d-a),s===0&&c===0&&l===0&&u===0)||(M=RZ*o+OZ*Math.abs(E),E+=S*u+D*s-(O*l+k*c),E>=M||-E>=M))return E;C=s*D,f=tn*s,h=f-(f-s),g=s-h,f=tn*D,p=f-(f-D),b=D-p,w=g*b-(C-h*p-g*p-h*b),T=c*k,f=tn*c,h=f-(f-c),g=c-h,f=tn*k,p=f-(f-k),b=k-p,$=g*b-(T-h*p-g*p-h*b),x=w-$,d=w-x,ln[0]=w-(x+d)+(d-$),_=C+x,d=_-C,y=C-(_-d)+(x-d),x=y-T,d=y-x,ln[1]=y-(x+d)+(d-T),R=_+x,d=R-_,ln[2]=_-(R-d)+(x-d),ln[3]=R;const j=cf(4,ea,4,ln,Gb);C=S*u,f=tn*S,h=f-(f-S),g=S-h,f=tn*u,p=f-(f-u),b=u-p,w=g*b-(C-h*p-g*p-h*b),T=O*l,f=tn*O,h=f-(f-O),g=O-h,f=tn*l,p=f-(f-l),b=l-p,$=g*b-(T-h*p-g*p-h*b),x=w-$,d=w-x,ln[0]=w-(x+d)+(d-$),_=C+x,d=_-C,y=C-(_-d)+(x-d),x=y-T,d=y-x,ln[1]=y-(x+d)+(d-T),R=_+x,d=R-_,ln[2]=_-(R-d)+(x-d),ln[3]=R;const F=cf(j,Gb,4,ln,Zb);C=s*u,f=tn*s,h=f-(f-s),g=s-h,f=tn*u,p=f-(f-u),b=u-p,w=g*b-(C-h*p-g*p-h*b),T=c*l,f=tn*c,h=f-(f-c),g=c-h,f=tn*l,p=f-(f-l),b=l-p,$=g*b-(T-h*p-g*p-h*b),x=w-$,d=w-x,ln[0]=w-(x+d)+(d-$),_=C+x,d=_-C,y=C-(_-d)+(x-d),x=y-T,d=y-x,ln[1]=y-(x+d)+(d-T),R=_+x,d=R-_,ln[2]=_-(R-d)+(x-d),ln[3]=R;const W=cf(F,Zb,4,ln,Kb);return Kb[W-1]}function fc(e,t,n,r,i,a){const o=(t-a)*(n-i),s=(e-i)*(r-a),c=o-s,l=Math.abs(o+s);return Math.abs(c)>=MZ*l?c:-AZ(e,t,n,r,i,a,l)}const Xb=Math.pow(2,-52),hc=new Uint32Array(512);class Tl{static from(t,n=NZ,r=FZ){const i=t.length,a=new Float64Array(i*2);for(let o=0;o<i;o++){const s=t[o];a[2*o]=n(s),a[2*o+1]=r(s)}return new Tl(a)}constructor(t){const n=t.length>>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:i,_hullHash:a}=this,o=t.length>>1;let s=1/0,c=1/0,l=-1/0,u=-1/0;for(let S=0;S<o;S++){const k=t[2*S],O=t[2*S+1];k<s&&(s=k),O<c&&(c=O),k>l&&(l=k),O>u&&(u=O),this._ids[S]=S}const d=(s+l)/2,f=(c+u)/2;let h,g,p;for(let S=0,k=1/0;S<o;S++){const O=lf(d,f,t[2*S],t[2*S+1]);O<k&&(h=S,k=O)}const b=t[2*h],x=t[2*h+1];for(let S=0,k=1/0;S<o;S++){if(S===h)continue;const O=lf(b,x,t[2*S],t[2*S+1]);O<k&&O>0&&(g=S,k=O)}let _=t[2*g],y=t[2*g+1],C=1/0;for(let S=0;S<o;S++){if(S===h||S===g)continue;const k=IZ(b,x,_,y,t[2*S],t[2*S+1]);k<C&&(p=S,C=k)}let w=t[2*p],T=t[2*p+1];if(C===1/0){for(let O=0;O<o;O++)this._dists[O]=t[2*O]-t[0]||t[2*O+1]-t[1];sa(this._ids,this._dists,0,o-1);const S=new Uint32Array(o);let k=0;for(let O=0,D=-1/0;O<o;O++){const E=this._ids[O],M=this._dists[E];M>D&&(S[k++]=E,D=M)}this.hull=S.subarray(0,k),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(fc(b,x,_,y,w,T)<0){const S=g,k=_,O=y;g=p,_=w,y=T,p=S,w=k,T=O}const $=DZ(b,x,_,y,w,T);this._cx=$.x,this._cy=$.y;for(let S=0;S<o;S++)this._dists[S]=lf(t[2*S],t[2*S+1],$.x,$.y);sa(this._ids,this._dists,0,o-1),this._hullStart=h;let R=3;r[h]=n[p]=g,r[g]=n[h]=p,r[p]=n[g]=h,i[h]=0,i[g]=1,i[p]=2,a.fill(-1),a[this._hashKey(b,x)]=h,a[this._hashKey(_,y)]=g,a[this._hashKey(w,T)]=p,this.trianglesLen=0,this._addTriangle(h,g,p,-1,-1,-1);for(let S=0,k,O;S<this._ids.length;S++){const D=this._ids[S],E=t[2*D],M=t[2*D+1];if(S>0&&Math.abs(E-k)<=Xb&&Math.abs(M-O)<=Xb||(k=E,O=M,D===h||D===g||D===p))continue;let j=0;for(let N=0,V=this._hashKey(E,M);N<this._hashSize&&(j=a[(V+N)%this._hashSize],!(j!==-1&&j!==r[j]));N++);j=n[j];let F=j,W;for(;W=r[F],fc(E,M,t[2*F],t[2*F+1],t[2*W],t[2*W+1])>=0;)if(F=W,F===j){F=-1;break}if(F===-1)continue;let B=this._addTriangle(F,D,r[F],-1,-1,i[F]);i[D]=this._legalize(B+2),i[F]=B,R++;let U=r[F];for(;W=r[U],fc(E,M,t[2*U],t[2*U+1],t[2*W],t[2*W+1])<0;)B=this._addTriangle(U,D,W,i[D],-1,i[U]),i[D]=this._legalize(B+2),r[U]=U,R--,U=W;if(F===j)for(;W=n[F],fc(E,M,t[2*W],t[2*W+1],t[2*F],t[2*F+1])<0;)B=this._addTriangle(W,D,F,-1,i[F],i[W]),this._legalize(B+2),i[W]=B,r[F]=F,R--,F=W;this._hullStart=n[D]=F,r[F]=n[U]=D,r[D]=U,a[this._hashKey(E,M)]=D,a[this._hashKey(t[2*F],t[2*F+1])]=F}this.hull=new Uint32Array(R);for(let S=0,k=this._hullStart;S<R;S++)this.hull[S]=k,k=r[k];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(jZ(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:r,coords:i}=this;let a=0,o=0;for(;;){const s=r[t],c=t-t%3;if(o=c+(t+2)%3,s===-1){if(a===0)break;t=hc[--a];continue}const l=s-s%3,u=c+(t+1)%3,d=l+(s+2)%3,f=n[o],h=n[t],g=n[u],p=n[d];if(PZ(i[2*f],i[2*f+1],i[2*h],i[2*h+1],i[2*g],i[2*g+1],i[2*p],i[2*p+1])){n[t]=p,n[s]=f;const x=r[d];if(x===-1){let y=this._hullStart;do{if(this._hullTri[y]===d){this._hullTri[y]=t;break}y=this._hullPrev[y]}while(y!==this._hullStart)}this._link(t,x),this._link(s,r[o]),this._link(o,d);const _=l+(s+1)%3;a<hc.length&&(hc[a++]=_)}else{if(a===0)break;t=hc[--a]}}return o}_link(t,n){this._halfedges[t]=n,n!==-1&&(this._halfedges[n]=t)}_addTriangle(t,n,r,i,a,o){const s=this.trianglesLen;return this._triangles[s]=t,this._triangles[s+1]=n,this._triangles[s+2]=r,this._link(s,i),this._link(s+1,a),this._link(s+2,o),this.trianglesLen+=3,s}}function jZ(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function lf(e,t,n,r){const i=e-n,a=t-r;return i*i+a*a}function PZ(e,t,n,r,i,a,o,s){const c=e-o,l=t-s,u=n-o,d=r-s,f=i-o,h=a-s,g=c*c+l*l,p=u*u+d*d,b=f*f+h*h;return c*(d*b-p*h)-l*(u*b-p*f)+g*(u*h-d*f)<0}function IZ(e,t,n,r,i,a){const o=n-e,s=r-t,c=i-e,l=a-t,u=o*o+s*s,d=c*c+l*l,f=.5/(o*l-s*c),h=(l*u-s*d)*f,g=(o*d-c*u)*f;return h*h+g*g}function DZ(e,t,n,r,i,a){const o=n-e,s=r-t,c=i-e,l=a-t,u=o*o+s*s,d=c*c+l*l,f=.5/(o*l-s*c),h=e+(l*u-s*d)*f,g=t+(o*d-c*u)*f;return{x:h,y:g}}function sa(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const a=e[i],o=t[a];let s=i-1;for(;s>=n&&t[e[s]]>o;)e[s+1]=e[s--];e[s+1]=a}else{const i=n+r>>1;let a=n+1,o=r;xo(e,i,a),t[e[n]]>t[e[r]]&&xo(e,n,r),t[e[a]]>t[e[r]]&&xo(e,a,r),t[e[n]]>t[e[a]]&&xo(e,n,a);const s=e[a],c=t[s];for(;;){do a++;while(t[e[a]]<c);do o--;while(t[e[o]]>c);if(o<a)break;xo(e,a,o)}e[n+1]=e[o],e[o]=s,r-a+1>=o-n?(sa(e,t,a,r),sa(e,t,n,o-1)):(sa(e,t,n,o-1),sa(e,t,a,r))}}function xo(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function NZ(e){return e[0]}function FZ(e){return e[1]}const Qb=1e-6;class vi{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const i=t+r,a=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${i},${a}`:(Math.abs(this._x1-i)>Qb||Math.abs(this._y1-a)>Qb)&&(this._+="L"+i+","+a),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=i},${this._y1=a}`)}rect(t,n,r,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+i}h${-r}Z`}value(){return this._||null}}class Mh{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class LZ{constructor(t,[n,r,i,a]=[0,0,960,500]){if(!((i=+i)>=(n=+n))||!((a=+a)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=i,this.xmin=n,this.ymax=a,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:i}=this;let a,o;const s=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let p=0,b=0,x=r.length,_,y;p<x;p+=3,b+=2){const C=r[p]*2,w=r[p+1]*2,T=r[p+2]*2,$=t[C],R=t[C+1],S=t[w],k=t[w+1],O=t[T],D=t[T+1],E=S-$,M=k-R,j=O-$,F=D-R,W=(E*F-M*j)*2;if(Math.abs(W)<1e-9){if(a===void 0){a=o=0;for(const U of n)a+=t[U*2],o+=t[U*2+1];a/=n.length,o/=n.length}const B=1e9*Math.sign((a-$)*F-(o-R)*j);_=($+O)/2-B*F,y=(R+D)/2+B*j}else{const B=1/W,U=E*E+M*M,N=j*j+F*F;_=$+(F*U-M*N)*B,y=R+(E*N-j*U)*B}s[b]=_,s[b+1]=y}let c=n[n.length-1],l,u=c*4,d,f=t[2*c],h,g=t[2*c+1];i.fill(0);for(let p=0;p<n.length;++p)c=n[p],l=u,d=f,h=g,u=c*4,f=t[2*c],g=t[2*c+1],i[l+2]=i[u]=h-g,i[l+3]=i[u+1]=f-d}render(t){const n=t==null?t=new vi:void 0,{delaunay:{halfedges:r,inedges:i,hull:a},circumcenters:o,vectors:s}=this;if(a.length<=1)return null;for(let u=0,d=r.length;u<d;++u){const f=r[u];if(f<u)continue;const h=Math.floor(u/3)*2,g=Math.floor(f/3)*2,p=o[h],b=o[h+1],x=o[g],_=o[g+1];this._renderSegment(p,b,x,_,t)}let c,l=a[a.length-1];for(let u=0;u<a.length;++u){c=l,l=a[u];const d=Math.floor(i[l]/3)*2,f=o[d],h=o[d+1],g=c*4,p=this._project(f,h,s[g+2],s[g+3]);p&&this._renderSegment(f,h,p[0],p[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new vi:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const r=n==null?n=new vi:void 0,i=this._clip(t);if(i===null||!i.length)return;n.moveTo(i[0],i[1]);let a=i.length;for(;i[0]===i[a-2]&&i[1]===i[a-1]&&a>1;)a-=2;for(let o=2;o<a;o+=2)(i[o]!==i[o-2]||i[o+1]!==i[o-1])&&n.lineTo(i[o],i[o+1]);return n.closePath(),r&&r.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,r=t.length/2;n<r;++n){const i=this.cellPolygon(n);i&&(i.index=n,yield i)}}cellPolygon(t){const n=new Mh;return this.renderCell(t,n),n.value()}_renderSegment(t,n,r,i,a){let o;const s=this._regioncode(t,n),c=this._regioncode(r,i);s===0&&c===0?(a.moveTo(t,n),a.lineTo(r,i)):(o=this._clipSegment(t,n,r,i,s,c))&&(a.moveTo(o[0],o[1]),a.lineTo(o[2],o[3]))}contains(t,n,r){return n=+n,n!==n||(r=+r,r!==r)?!1:this.delaunay._step(t,n,r)===t}*neighbors(t){const n=this._clip(t);if(n)for(const r of this.delaunay.neighbors(t)){const i=this._clip(r);if(i){e:for(let a=0,o=n.length;a<o;a+=2)for(let s=0,c=i.length;s<c;s+=2)if(n[a]===i[s]&&n[a+1]===i[s+1]&&n[(a+2)%o]===i[(s+c-2)%c]&&n[(a+3)%o]===i[(s+c-1)%c]){yield r;break e}}}}_cell(t){const{circumcenters:n,delaunay:{inedges:r,halfedges:i,triangles:a}}=this,o=r[t];if(o===-1)return null;const s=[];let c=o;do{const l=Math.floor(c/3);if(s.push(n[l*2],n[l*2+1]),c=c%3===2?c-2:c+1,a[c]!==t)break;c=i[c]}while(c!==o&&c!==-1);return s}_clip(t){if(t===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(n===null)return null;const{vectors:r}=this,i=t*4;return this._simplify(r[i]||r[i+1]?this._clipInfinite(t,n,r[i],r[i+1],r[i+2],r[i+3]):this._clipFinite(t,n))}_clipFinite(t,n){const r=n.length;let i=null,a,o,s=n[r-2],c=n[r-1],l,u=this._regioncode(s,c),d,f=0;for(let h=0;h<r;h+=2)if(a=s,o=c,s=n[h],c=n[h+1],l=u,u=this._regioncode(s,c),l===0&&u===0)d=f,f=0,i?i.push(s,c):i=[s,c];else{let g,p,b,x,_;if(l===0){if((g=this._clipSegment(a,o,s,c,l,u))===null)continue;[p,b,x,_]=g}else{if((g=this._clipSegment(s,c,a,o,u,l))===null)continue;[x,_,p,b]=g,d=f,f=this._edgecode(p,b),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(p,b):i=[p,b]}d=f,f=this._edgecode(x,_),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(x,_):i=[x,_]}if(i)d=f,f=this._edgecode(i[0],i[1]),d&&f&&this._edge(t,d,f,i,i.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return i}_clipSegment(t,n,r,i,a,o){const s=a<o;for(s&&([t,n,r,i,a,o]=[r,i,t,n,o,a]);;){if(a===0&&o===0)return s?[r,i,t,n]:[t,n,r,i];if(a&o)return null;let c,l,u=a||o;u&8?(c=t+(r-t)*(this.ymax-n)/(i-n),l=this.ymax):u&4?(c=t+(r-t)*(this.ymin-n)/(i-n),l=this.ymin):u&2?(l=n+(i-n)*(this.xmax-t)/(r-t),c=this.xmax):(l=n+(i-n)*(this.xmin-t)/(r-t),c=this.xmin),a?(t=c,n=l,a=this._regioncode(t,n)):(r=c,i=l,o=this._regioncode(r,i))}}_clipInfinite(t,n,r,i,a,o){let s=Array.from(n),c;if((c=this._project(s[0],s[1],r,i))&&s.unshift(c[0],c[1]),(c=this._project(s[s.length-2],s[s.length-1],a,o))&&s.push(c[0],c[1]),s=this._clipFinite(t,s))for(let l=0,u=s.length,d,f=this._edgecode(s[u-2],s[u-1]);l<u;l+=2)d=f,f=this._edgecode(s[l],s[l+1]),d&&f&&(l=this._edge(t,d,f,s,l),u=s.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(t,n,r,i,a){for(;n!==r;){let o,s;switch(n){case 5:n=4;continue;case 4:n=6,o=this.xmax,s=this.ymin;break;case 6:n=2;continue;case 2:n=10,o=this.xmax,s=this.ymax;break;case 10:n=8;continue;case 8:n=9,o=this.xmin,s=this.ymax;break;case 9:n=1;continue;case 1:n=5,o=this.xmin,s=this.ymin;break}(i[a]!==o||i[a+1]!==s)&&this.contains(t,o,s)&&(i.splice(a,0,o,s),a+=2)}return a}_project(t,n,r,i){let a=1/0,o,s,c;if(i<0){if(n<=this.ymin)return null;(o=(this.ymin-n)/i)<a&&(c=this.ymin,s=t+(a=o)*r)}else if(i>0){if(n>=this.ymax)return null;(o=(this.ymax-n)/i)<a&&(c=this.ymax,s=t+(a=o)*r)}if(r>0){if(t>=this.xmax)return null;(o=(this.xmax-t)/r)<a&&(s=this.xmax,c=n+(a=o)*i)}else if(r<0){if(t<=this.xmin)return null;(o=(this.xmin-t)/r)<a&&(s=this.xmin,c=n+(a=o)*i)}return[s,c]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let n=0;n<t.length;n+=2){const r=(n+2)%t.length,i=(n+4)%t.length;(t[n]===t[r]&&t[r]===t[i]||t[n+1]===t[r+1]&&t[r+1]===t[i+1])&&(t.splice(r,2),n-=2)}t.length||(t=null)}return t}}const BZ=2*Math.PI,ta=Math.pow;function WZ(e){return e[0]}function UZ(e){return e[1]}function zZ(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const i=2*t[r],a=2*t[r+1],o=2*t[r+2];if((n[o]-n[i])*(n[a+1]-n[i+1])-(n[a]-n[i])*(n[o+1]-n[i+1])>1e-10)return!1}return!0}function HZ(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class tg{static from(t,n=WZ,r=UZ,i){return new tg("length"in t?VZ(t,n,r,i):Float64Array.from(qZ(t,n,r,i)))}constructor(t){this._delaunator=new Tl(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&zZ(t)){this.collinear=Int32Array.from({length:n.length/2},(f,h)=>h).sort((f,h)=>n[2*f]-n[2*h]||n[2*f+1]-n[2*h+1]);const c=this.collinear[0],l=this.collinear[this.collinear.length-1],u=[n[2*c],n[2*c+1],n[2*l],n[2*l+1]],d=1e-8*Math.hypot(u[3]-u[1],u[2]-u[0]);for(let f=0,h=n.length/2;f<h;++f){const g=HZ(n[2*f],n[2*f+1],d);n[2*f]=g[0],n[2*f+1]=g[1]}this._delaunator=new Tl(n)}else delete this.collinear;const r=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,a=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let c=0,l=r.length;c<l;++c){const u=a[c%3===2?c-2:c+1];(r[c]===-1||o[u]===-1)&&(o[u]=c)}for(let c=0,l=i.length;c<l;++c)s[i[c]]=c;i.length<=2&&i.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=i[0],o[i[0]]=1,i.length===2&&(o[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(t){return new LZ(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:i,halfedges:a,triangles:o,collinear:s}=this;if(s){const d=s.indexOf(t);d>0&&(yield s[d-1]),d<s.length-1&&(yield s[d+1]);return}const c=n[t];if(c===-1)return;let l=c,u=-1;do{if(yield u=o[l],l=l%3===2?l-2:l+1,o[l]!==t)return;if(l=a[l],l===-1){const d=r[(i[t]+1)%r.length];d!==u&&(yield d);return}}while(l!==c)}find(t,n,r=0){if(t=+t,t!==t||(n=+n,n!==n))return-1;const i=r;let a;for(;(a=this._step(r,t,n))>=0&&a!==r&&a!==i;)r=a;return a}_step(t,n,r){const{inedges:i,hull:a,_hullIndex:o,halfedges:s,triangles:c,points:l}=this;if(i[t]===-1||!l.length)return(t+1)%(l.length>>1);let u=t,d=ta(n-l[t*2],2)+ta(r-l[t*2+1],2);const f=i[t];let h=f;do{let g=c[h];const p=ta(n-l[g*2],2)+ta(r-l[g*2+1],2);if(p<d&&(d=p,u=g),h=h%3===2?h-2:h+1,c[h]!==t)break;if(h=s[h],h===-1){if(h=a[(o[t]+1)%a.length],h!==g&&ta(n-l[h*2],2)+ta(r-l[h*2+1],2)<d)return h;break}}while(h!==f);return u}render(t){const n=t==null?t=new vi:void 0,{points:r,halfedges:i,triangles:a}=this;for(let o=0,s=i.length;o<s;++o){const c=i[o];if(c<o)continue;const l=a[o]*2,u=a[c]*2;t.moveTo(r[l],r[l+1]),t.lineTo(r[u],r[u+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n){n===void 0&&(!t||typeof t.moveTo!="function")&&(n=t,t=null),n=n==null?2:+n;const r=t==null?t=new vi:void 0,{points:i}=this;for(let a=0,o=i.length;a<o;a+=2){const s=i[a],c=i[a+1];t.moveTo(s+n,c),t.arc(s,c,n,0,BZ)}return r&&r.value()}renderHull(t){const n=t==null?t=new vi:void 0,{hull:r,points:i}=this,a=r[0]*2,o=r.length;t.moveTo(i[a],i[a+1]);for(let s=1;s<o;++s){const c=2*r[s];t.lineTo(i[c],i[c+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new Mh;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new vi:void 0,{points:i,triangles:a}=this,o=a[t*=3]*2,s=a[t+1]*2,c=a[t+2]*2;return n.moveTo(i[o],i[o+1]),n.lineTo(i[s],i[s+1]),n.lineTo(i[c],i[c+1]),n.closePath(),r&&r.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,r=t.length/3;n<r;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new Mh;return this.renderTriangle(t,n),n.value()}}function VZ(e,t,n,r){const i=e.length,a=new Float64Array(i*2);for(let o=0;o<i;++o){const s=e[o];a[o*2]=t.call(r,s,o,e),a[o*2+1]=n.call(r,s,o,e)}return a}function*qZ(e,t,n,r){let i=0;for(const a of e)yield t.call(r,a,i,e),yield n.call(r,a,i,e),++i}var ng=function(e){return[e.x,e.y]},Vs=CC,dT="cursor",fT="top",YZ=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?ng:n,i=e.margin,a=i===void 0?Vs:i;return t.map(function(o){var s=r(o),c=s[0],l=s[1];return[c+a.left,l+a.top]})},GZ=function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,a=i===void 0?Vs:i,o=e.debug,s=tg.from(t),c=o?s.voronoi([0,0,a.left+n+a.right,a.top+r+a.bottom]):void 0;return{points:t,delaunay:s,voronoi:c}},hT=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?ng:n,i=e.width,a=e.height,o=e.margin,s=o===void 0?Vs:o,c=e.debug;return m.useMemo(function(){return GZ({points:YZ({points:t,margin:s,getNodePosition:r}),width:i,height:a,margin:s,debug:c})},[t,i,a,s,c])},ZZ=function(e){var t=e.elementRef,n=e.nodes,r=e.getNodePosition,i=r===void 0?ng:r,a=e.delaunay,o=e.setCurrent,s=e.margin,c=s===void 0?Vs:s,l=e.detectionRadius,u=l===void 0?1/0:l,d=e.isInteractive,f=d===void 0||d,h=e.onMouseEnter,g=e.onMouseMove,p=e.onMouseLeave,b=e.onClick,x=e.onTouchStart,_=e.onTouchMove,y=e.onTouchEnd,C=e.enableTouchCrosshair,w=C!==void 0&&C,T=e.tooltip,$=e.tooltipPosition,R=$===void 0?dT:$,S=e.tooltipAnchor,k=S===void 0?fT:S,O=m.useState(null),D=O[0],E=O[1],M=m.useRef(null);m.useEffect(function(){M.current=D},[M,D]);var j=m.useCallback(function(z){if(!t.current)return null;var L=jo(t.current,z),H=L[0],ee=L[1],A=a.find(H,ee),se=A!==void 0?n[A]:null;if(se&&u!==1/0){var ce=i(se),ue=ce[0],we=ce[1];BV(H,ee,ue+c.left,we+c.top)>u&&(A=null,se=null)}return A===null||se===null?null:[A,se]},[t,a,n,i,c,u]),F=Li(),W=F.showTooltipAt,B=F.showTooltipFromEvent,U=F.hideTooltip,N=m.useMemo(function(){if(T)return R==="cursor"?function(z,L){B(T(z),L,k)}:function(z){var L=i(z),H=L[0],ee=L[1];W(T(z),[H+c.left,ee+c.top],k)}},[W,B,T,R,k,i,c]),V=m.useCallback(function(z){var L=j(z);if(E(L),o==null||o(L?L[1]:null),L){var H=L[1];N==null||N(H,z),h==null||h(L[1],z)}},[j,E,o,N,h]),X=m.useCallback(function(z){var L=j(z);if(E(L),L){var H=L[0],ee=L[1];if(o==null||o(ee),N==null||N(ee,z),M.current){var A=M.current,se=A[0],ce=A[1];H!==se?p==null||p(ce,z):g==null||g(ee,z)}else h==null||h(ee,z)}else o==null||o(null),U==null||U(),M.current&&(p==null||p(M.current[1],z))},[j,E,M,h,g,p,N,U]),ne=m.useCallback(function(z){E(null),o==null||o(null),U(),p&&M.current&&p(M.current[1],z)},[E,o,M,U,p]),K=m.useCallback(function(z){var L=j(z);E(L),L&&(b==null||b(L[1],z))},[j,E,b]),J=m.useCallback(function(z){var L=j(z);w&&(E(L),o==null||o(L?L[1]:null)),L&&(x==null||x(L[1],z))},[j,E,o,w,x]),q=m.useCallback(function(z){var L=j(z);w&&(E(L),o==null||o(L?L[1]:null)),L&&(_==null||_(L[1],z))},[j,E,o,w,_]),G=m.useCallback(function(z){w&&(E(null),o==null||o(null)),y&&M.current&&y(M.current[1],z)},[w,E,o,y,M]);return{current:D,handleMouseEnter:f?V:void 0,handleMouseMove:f?X:void 0,handleMouseLeave:f?ne:void 0,handleClick:f?K:void 0,handleTouchStart:f?J:void 0,handleTouchMove:f?q:void 0,handleTouchEnd:f?G:void 0}},KZ=function(e){var t=e.nodes,n=e.width,r=e.height,i=e.margin,a=i===void 0?Vs:i,o=e.getNodePosition,s=e.setCurrent,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,h=e.onTouchMove,g=e.onTouchEnd,p=e.enableTouchCrosshair,b=p!==void 0&&p,x=e.detectionRadius,_=x===void 0?1/0:x,y=e.tooltip,C=e.tooltipPosition,w=C===void 0?dT:C,T=e.tooltipAnchor,$=T===void 0?fT:T,R=e.debug,S=m.useRef(null),k=hT({points:t,getNodePosition:o,width:n,height:r,margin:a,debug:R}),O=k.delaunay,D=k.voronoi,E=ZZ({elementRef:S,nodes:t,delaunay:O,margin:a,detectionRadius:_,setCurrent:s,onMouseEnter:c,onMouseMove:l,onMouseLeave:u,onClick:d,onTouchStart:f,onTouchMove:h,onTouchEnd:g,enableTouchCrosshair:b,tooltip:y,tooltipPosition:w,tooltipAnchor:$}),M=E.current,j=E.handleMouseEnter,F=E.handleMouseMove,W=E.handleMouseLeave,B=E.handleClick,U=E.handleTouchStart,N=E.handleTouchMove,V=E.handleTouchEnd,X=m.useMemo(function(){if(R&&D)return D.render()},[R,D]);return v.jsxs("g",{ref:S,transform:"translate("+-a.left+","+-a.top+")",children:[R&&D&&v.jsxs(v.Fragment,{children:[v.jsx("path",{d:X,stroke:"red",strokeWidth:1,opacity:.75}),_<1/0&&v.jsx("path",{stroke:"red",strokeWidth:.35,fill:"none",d:O.renderPoints(void 0,_)}),M&&v.jsx("path",{fill:"pink",opacity:.35,d:D.renderCell(M[0])})]}),v.jsx("rect",{"data-ref":"mesh-interceptor",width:a.left+n+a.right,height:a.top+r+a.bottom,fill:"red",opacity:0,style:{cursor:"auto"},onMouseEnter:j,onMouseMove:F,onMouseLeave:W,onTouchStart:U,onTouchMove:N,onTouchEnd:V,onClick:B})]})},XZ=function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()},QZ=function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle="pink",e.fill(),e.restore()};function hn(){return hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hn.apply(this,arguments)}var rg=m.memo(function(e){var t=e.point;return v.jsx(Zp,{id:v.jsxs("span",{children:["x: ",v.jsx("strong",{children:t.data.xFormatted}),", y:"," ",v.jsx("strong",{children:t.data.yFormatted})]}),enableChip:!0,color:t.serieColor})}),pT=m.memo(function(e){var t=e.slice,n=e.axis,r=ht(),i=n==="x"?"y":"x";return v.jsx(x_,{rows:t.points.map(function(a){return[v.jsx(y_,{color:a.serieColor,style:r.tooltip.chip},"chip"),a.serieId,v.jsx("span",{style:r.tooltip.tableCellValue,children:a.data[i+"Formatted"]},"value")]})})}),mT={curve:"linear",xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto"},layers:["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"],axisBottom:{},axisLeft:{},enableGridX:!0,enableGridY:!0,enablePoints:!0,pointSize:6,pointColor:{from:"color"},pointBorderWidth:0,pointBorderColor:{theme:"background"},enablePointLabel:!1,pointLabel:"yFormatted",colors:{scheme:"nivo"},enableArea:!1,areaBaselineValue:0,areaOpacity:.2,areaBlendMode:"normal",lineWidth:2,legends:[],isInteractive:!0,tooltip:rg,enableSlices:!1,debugSlices:!1,sliceTooltip:pT,debugMesh:!1,enableCrosshair:!0,crosshairType:"bottom-left"},Ar=hn({},mT,{enablePointLabel:!1,useMesh:!1,enableTouchCrosshair:!1,animate:!0,motionConfig:"gentle",defs:[],fill:[],role:"img"});hn({},mT,{pixelRatio:typeof window<"u"&&window.devicePixelRatio||1});var JZ=function(e){var t=e.curve;return m.useMemo(function(){return Fm().defined(function(n){return n.x!==null&&n.y!==null}).x(function(n){return n.x}).y(function(n){return n.y}).curve(wC(t))},[t])},eK=function(e){var t=e.curve,n=e.yScale,r=e.areaBaselineValue;return m.useMemo(function(){return vU().defined(function(i){return i.x!==null&&i.y!==null}).x(function(i){return i.x}).y1(function(i){return i.y}).curve(wC(t)).y0(n(r))},[t,n,r])},tK=function(e){var t=e.componentId,n=e.enableSlices,r=e.points,i=e.width,a=e.height;return m.useMemo(function(){if(n===!1)return[];if(n==="x"){var o=new Map;return r.forEach(function(c){c.data.x!==null&&c.data.y!==null&&(o.has(c.x)?o.get(c.x).push(c):o.set(c.x,[c]))}),Array.from(o.entries()).sort(function(c,l){return c[0]-l[0]}).map(function(c,l,u){var d,f,h=c[0],g=c[1],p=u[l-1],b=u[l+1];return d=p?h-(h-p[0])/2:h,f=b?h-d+(b[0]-h)/2:i-d,{id:"slice:"+t+":"+h,x0:d,x:h,y0:0,y:0,width:f,height:a,points:g.reverse()}})}if(n==="y"){var s=new Map;return r.forEach(function(c){c.data.x!==null&&c.data.y!==null&&(s.has(c.y)?s.get(c.y).push(c):s.set(c.y,[c]))}),Array.from(s.entries()).sort(function(c,l){return c[0]-l[0]}).map(function(c,l,u){var d,f,h=c[0],g=c[1],p=u[l-1],b=u[l+1];return d=p?h-(h-p[0])/2:h,f=b?h-d+(b[0]-h)/2:a-d,{id:h,x0:0,x:0,y0:d,y:h,width:i,height:f,points:g.reverse()}})}},[t,n,a,r,i])},nK="line",gT=function(e){var t=e.data,n=e.xScale,r=n===void 0?Ar.xScale:n,i=e.xFormat,a=e.yScale,o=a===void 0?Ar.yScale:a,s=e.yFormat,c=e.width,l=e.height,u=e.colors,d=u===void 0?Ar.colors:u,f=e.curve,h=f===void 0?Ar.curve:f,g=e.areaBaselineValue,p=g===void 0?Ar.areaBaselineValue:g,b=e.pointColor,x=b===void 0?Ar.pointColor:b,_=e.pointBorderColor,y=_===void 0?Ar.pointBorderColor:_,C=e.enableSlices,w=C===void 0?Ar.enableSlicesTooltip:C,T=m.useState(SZ(nK))[0],$=Ma(i),R=Ma(s),S=Xm(d,"id"),k=ht(),O=ar(x,k),D=ar(y,k),E=m.useState([]),M=E[0],j=E[1],F=m.useMemo(function(){return dZ(t.filter(function(q){return M.indexOf(q.id)===-1}),r,o,c,l)},[t,M,r,o,c,l]),W=F.xScale,B=F.yScale,U=F.series,N=m.useMemo(function(){var q=t.map(function(z){return{id:z.id,label:z.id,color:S(z)}}),G=q.map(function(z){return hn({},U.find(function(L){return L.id===z.id}),{color:z.color})}).filter(function(z){return!!z.id});return{legendData:q.map(function(z){return hn({},z,{hidden:!G.find(function(L){return L.id===z.id})})}).reverse(),series:G}},[t,U,S]),V=N.legendData,X=N.series,ne=m.useCallback(function(q){j(function(G){return G.indexOf(q)>-1?G.filter(function(z){return z!==q}):[].concat(G,[q])})},[]),K=function(q){var G=q.series,z=q.getPointColor,L=q.getPointBorderColor,H=q.formatX,ee=q.formatY;return m.useMemo(function(){return G.reduce(function(A,se){return[].concat(A,se.data.filter(function(ce){return ce.position.x!==null&&ce.position.y!==null}).map(function(ce,ue){var we={id:se.id+"."+ue,index:A.length+ue,serieId:se.id,serieColor:se.color,x:ce.position.x,y:ce.position.y};return we.color=z(se),we.borderColor=L(we),we.data=hn({},ce.data,{xFormatted:H(ce.data.x),yFormatted:ee(ce.data.y)}),we}))},[])},[G,z,L,H,ee])}({series:X,getPointColor:O,getPointBorderColor:D,formatX:$,formatY:R}),J=tK({componentId:T,enableSlices:w,points:K,width:c,height:l});return{legendData:V,toggleSerie:ne,lineGenerator:JZ({curve:h}),areaGenerator:eK({curve:h,yScale:B,areaBaselineValue:p}),getColor:S,series:X,xScale:W,yScale:B,slices:J,points:K}},rK=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,i=e.fill,a=e.path,o=mn(),s=o.animate,c=o.config,l=Ym(a),u=cr({color:r,config:c,immediate:!s});return v.jsx(ft.path,{d:l,fill:i||u.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})},iK=m.memo(function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,i=e.lines.slice(0).reverse();return v.jsx("g",{children:i.map(function(a){return v.jsx(rK,hn({path:t(a.data.map(function(o){return o.position}))},hn({areaOpacity:n,areaBlendMode:r},a)),a.id)})})}),aK=m.memo(function(e){var t=e.lineGenerator,n=e.points,r=e.color,i=e.thickness,a=m.useMemo(function(){return t(n)},[t,n]),o=Ym(a);return v.jsx(ft.path,{d:o,fill:"none",strokeWidth:i,stroke:r})}),oK=m.memo(function(e){var t=e.lines,n=e.lineGenerator,r=e.lineWidth;return t.slice(0).reverse().map(function(i){var a=i.id,o=i.data,s=i.color;return v.jsx(aK,{id:a,points:o.map(function(c){return c.position}),lineGenerator:n,color:s,thickness:r},a)})}),sK=m.memo(function(e){var t=e.slice,n=e.slices,r=e.axis,i=e.debug,a=e.tooltip,o=e.isCurrent,s=e.setCurrent,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,h=e.onTouchMove,g=e.onTouchEnd,p=Li(),b=p.showTooltipFromEvent,x=p.hideTooltip,_=m.useCallback(function(S){b(m.createElement(a,{slice:t,axis:r}),S,"right"),s(t),c&&c(t,S)},[b,a,t,r,s,c]),y=m.useCallback(function(S){b(m.createElement(a,{slice:t,axis:r}),S,"right"),l&&l(t,S)},[b,a,t,r,l]),C=m.useCallback(function(S){x(),s(null),u&&u(t,S)},[x,s,u,t]),w=m.useCallback(function(S){d&&d(t,S)},[t,d]),T=m.useCallback(function(S){b(m.createElement(a,{slice:t,axis:r}),S,"right"),s(t),f&&f(t,S)},[r,f,s,b,t,a]),$=m.useCallback(function(S){var k=S.touches[0],O=document.elementFromPoint(k.clientX,k.clientY),D=O==null?void 0:O.getAttribute("data-ref");if(D){var E=n.find(function(M){return M.id===D});E&&(b(m.createElement(a,{slice:E,axis:r}),S,"right"),s(E))}h&&h(t,S)},[r,h,s,b,t,n,a]),R=m.useCallback(function(S){x(),s(null),g&&g(t,S)},[x,s,g,t]);return v.jsx("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:i?1:0,strokeOpacity:.75,fill:"red",fillOpacity:o&&i?.35:0,onMouseEnter:_,onMouseMove:y,onMouseLeave:C,onClick:w,onTouchStart:T,onTouchMove:$,onTouchEnd:R,"data-ref":t.id})}),cK=m.memo(function(e){var t=e.slices,n=e.axis,r=e.debug,i=e.height,a=e.tooltip,o=e.current,s=e.setCurrent,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,h=e.onTouchMove,g=e.onTouchEnd;return t.map(function(p){return v.jsx(sK,{slice:p,slices:t,axis:n,debug:r,height:i,tooltip:a,setCurrent:s,isCurrent:o!==null&&o.id===p.id,onMouseEnter:c,onMouseMove:l,onMouseLeave:u,onClick:d,onTouchStart:f,onTouchMove:h,onTouchEnd:g},p.id)})}),lK=m.memo(function(e){var t=e.points,n=e.symbol,r=e.size,i=e.borderWidth,a=e.enableLabel,o=e.label,s=e.labelYOffset,c=ht(),l=LV(o),u=t.slice(0).reverse().map(function(d){return{id:d.id,x:d.x,y:d.y,datum:d.data,fill:d.color,stroke:d.borderColor,label:a?l(d):null}});return v.jsx("g",{children:u.map(function(d){return v.jsx(DV,{x:d.x,y:d.y,datum:d.datum,symbol:n,size:r,color:d.fill,borderWidth:i,borderColor:d.stroke,label:d.label,labelYOffset:s,theme:c},d.id)})})}),uK=m.memo(function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,a=e.setCurrent,o=e.onMouseEnter,s=e.onMouseMove,c=e.onMouseLeave,l=e.onClick,u=e.onTouchStart,d=e.onTouchMove,f=e.onTouchEnd,h=e.tooltip,g=e.debug,p=e.enableTouchCrosshair,b=Li(),x=b.showTooltipAt,_=b.hideTooltip,y=m.useCallback(function(k,O){x(m.createElement(h,{point:k}),[k.x+i.left,k.y+i.top],"top"),o&&o(k,O)},[x,h,o,i]),C=m.useCallback(function(k,O){x(m.createElement(h,{point:k}),[k.x+i.left,k.y+i.top],"top"),s&&s(k,O)},[x,h,i.left,i.top,s]),w=m.useCallback(function(k,O){_(),c&&c(k,O)},[_,c]),T=m.useCallback(function(k,O){l&&l(k,O)},[l]),$=m.useCallback(function(k,O){x(m.createElement(h,{point:k}),[k.x+i.left,k.y+i.top],"top"),u&&u(k,O)},[i.left,i.top,u,x,h]),R=m.useCallback(function(k,O){x(m.createElement(h,{point:k}),[k.x+i.left,k.y+i.top],"top"),d&&d(k,O)},[i.left,i.top,d,x,h]),S=m.useCallback(function(k,O){_(),f&&f(k,O)},[f,_]);return v.jsx(KZ,{nodes:t,width:n,height:r,setCurrent:a,onMouseEnter:y,onMouseMove:C,onMouseLeave:w,onClick:T,onTouchStart:$,onTouchMove:R,onTouchEnd:S,enableTouchCrosshair:p,debug:g})}),dK=NC(function(e){var t=e.data,n=e.xScale,r=n===void 0?{type:"point"}:n,i=e.xFormat,a=e.yScale,o=a===void 0?{type:"linear",min:0,max:"auto"}:a,s=e.yFormat,c=e.layers,l=c===void 0?["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"]:c,u=e.curve,d=u===void 0?"linear":u,f=e.areaBaselineValue,h=f===void 0?0:f,g=e.colors,p=g===void 0?{scheme:"nivo"}:g,b=e.margin,x=e.width,_=e.height,y=e.axisTop,C=e.axisRight,w=e.axisBottom,T=w===void 0?{}:w,$=e.axisLeft,R=$===void 0?{}:$,S=e.enableGridX,k=S===void 0||S,O=e.enableGridY,D=O===void 0||O,E=e.gridXValues,M=e.gridYValues,j=e.lineWidth,F=j===void 0?2:j,W=e.enableArea,B=W!==void 0&&W,U=e.areaOpacity,N=U===void 0?.2:U,V=e.areaBlendMode,X=V===void 0?"normal":V,ne=e.enablePoints,K=ne===void 0||ne,J=e.pointSymbol,q=e.pointSize,G=q===void 0?6:q,z=e.pointColor,L=z===void 0?{from:"color"}:z,H=e.pointBorderWidth,ee=H===void 0?0:H,A=e.pointBorderColor,se=A===void 0?{theme:"background"}:A,ce=e.enablePointLabel,ue=ce!==void 0&&ce,we=e.pointLabel,Te=we===void 0?"data.yFormatted":we,at=e.pointLabelYOffset,tt=e.defs,Be=tt===void 0?[]:tt,Ke=e.fill,Ye=Ke===void 0?[]:Ke,de=e.markers,ke=e.legends,Oe=ke===void 0?[]:ke,ve=e.isInteractive,Ie=ve===void 0||ve,Xe=e.useMesh,It=Xe!==void 0&&Xe,mt=e.debugMesh,Je=mt!==void 0&&mt,bt=e.onMouseEnter,At=e.onMouseMove,it=e.onMouseLeave,gt=e.onClick,yt=e.onTouchStart,Lt=e.onTouchMove,$e=e.onTouchEnd,Pe=e.tooltip,ze=Pe===void 0?rg:Pe,nt=e.enableSlices,vt=nt!==void 0&&nt,kt=e.debugSlices,Xt=kt!==void 0&&kt,Dt=e.sliceTooltip,Bt=Dt===void 0?pT:Dt,Ht=e.enableCrosshair,Mt=Ht===void 0||Ht,Wt=e.crosshairType,Jt=Wt===void 0?"bottom-left":Wt,Vt=e.enableTouchCrosshair,fe=Vt!==void 0&&Vt,ye=e.role,Ee=ye===void 0?"img":ye,qe=Us(x,_,b),Ge=qe.margin,ot=qe.innerWidth,P=qe.innerHeight,re=qe.outerWidth,Z=qe.outerHeight,te=gT({data:t,xScale:r,xFormat:i,yScale:o,yFormat:s,width:ot,height:P,colors:p,curve:d,areaBaselineValue:h,pointColor:L,pointBorderColor:se,enableSlices:vt}),ge=te.legendData,Ce=te.toggleSerie,pe=te.lineGenerator,be=te.areaGenerator,Ae=te.series,Me=te.xScale,et=te.yScale,Nt=te.slices,wt=te.points,Ut=ht(),le=ar(L,Ut),cn=ar(se,Ut),Ft=m.useState(null),dr=Ft[0],lg=Ft[1],ug=m.useState(null),Qa=ug[0],dg=ug[1],ni={grid:v.jsx(lT,{theme:Ut,width:ot,height:P,xScale:k?Me:null,yScale:D?et:null,xValues:E,yValues:M},"grid"),markers:v.jsx(DC,{markers:de,width:ot,height:P,xScale:Me,yScale:et,theme:Ut},"markers"),axes:v.jsx(cT,{xScale:Me,yScale:et,width:ot,height:P,theme:Ut,top:y,right:C,bottom:T,left:R},"axes"),areas:null,lines:v.jsx(oK,{lines:Ae,lineGenerator:pe,lineWidth:F},"lines"),slices:null,points:null,crosshair:null,mesh:null,legends:Oe.map(function(ri,hd){return v.jsx(Jm,hn({},ri,{containerWidth:ot,containerHeight:P,data:ri.data||ge,theme:Ut,toggleSerie:ri.toggleSerie?Ce:void 0}),"legend."+hd)})},WT=Km(Be,Ae,Ye);return B&&(ni.areas=v.jsx(iK,{areaGenerator:be,areaOpacity:N,areaBlendMode:X,lines:Ae},"areas")),Ie&&vt!==!1&&(ni.slices=v.jsx(cK,{slices:Nt,axis:vt,debug:Xt,height:P,tooltip:Bt,current:Qa,setCurrent:dg,onMouseEnter:bt,onMouseMove:At,onMouseLeave:it,onClick:gt,onTouchStart:yt,onTouchMove:Lt,onTouchEnd:$e},"slices")),K&&(ni.points=v.jsx(lK,{points:wt,symbol:J,size:G,color:le,borderWidth:ee,borderColor:cn,enableLabel:ue,label:Te,labelYOffset:at},"points")),Ie&&Mt&&(dr!==null&&(ni.crosshair=v.jsx(oh,{width:ot,height:P,x:dr.x,y:dr.y,type:Jt},"crosshair")),Qa!==null&&(ni.crosshair=v.jsx(oh,{width:ot,height:P,x:Qa.x,y:Qa.y,type:vt},"crosshair"))),Ie&&It&&vt===!1&&(ni.mesh=v.jsx(uK,{points:wt,width:ot,height:P,margin:Ge,current:dr,setCurrent:lg,onMouseEnter:bt,onMouseMove:At,onMouseLeave:it,onClick:gt,onTouchStart:yt,onTouchMove:Lt,onTouchEnd:$e,tooltip:ze,enableTouchCrosshair:fe,debug:Je},"mesh")),v.jsx(ld,{defs:WT,width:re,height:Z,margin:Ge,role:Ee,children:l.map(function(ri,hd){return typeof ri=="function"?v.jsx(m.Fragment,{children:ri(hn({},e,{innerWidth:ot,innerHeight:P,series:Ae,slices:Nt,points:wt,xScale:Me,yScale:et,lineGenerator:pe,areaGenerator:be,currentPoint:dr,setCurrentPoint:lg,currentSlice:Qa,setCurrentSlice:dg}))},hd):ni[ri]})})}),fK=function(e){return v.jsx(Ka,{children:function(t){var n=t.width,r=t.height;return v.jsx(dK,hn({width:n,height:r},e))}})},hK=NC(function(e){var t=m.useRef(null),n=e.width,r=e.height,i=e.margin,a=e.pixelRatio,o=a===void 0?typeof window<"u"&&window.devicePixelRatio||1:a,s=e.data,c=e.xScale,l=c===void 0?{type:"point"}:c,u=e.xFormat,d=e.yScale,f=d===void 0?{type:"linear",min:0,max:"auto"}:d,h=e.yFormat,g=e.curve,p=g===void 0?"linear":g,b=e.layers,x=b===void 0?["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"]:b,_=e.colors,y=_===void 0?{scheme:"nivo"}:_,C=e.lineWidth,w=C===void 0?2:C,T=e.enableArea,$=T!==void 0&&T,R=e.areaBaselineValue,S=R===void 0?0:R,k=e.areaOpacity,O=k===void 0?.2:k,D=e.enablePoints,E=D===void 0||D,M=e.pointSize,j=M===void 0?6:M,F=e.pointColor,W=F===void 0?{from:"color"}:F,B=e.pointBorderWidth,U=B===void 0?0:B,N=e.pointBorderColor,V=N===void 0?{theme:"background"}:N,X=e.enableGridX,ne=X===void 0||X,K=e.gridXValues,J=e.enableGridY,q=J===void 0||J,G=e.gridYValues,z=e.axisTop,L=e.axisRight,H=e.axisBottom,ee=H===void 0?{}:H,A=e.axisLeft,se=A===void 0?{}:A,ce=e.legends,ue=ce===void 0?[]:ce,we=e.isInteractive,Te=we===void 0||we,at=e.debugMesh,tt=at!==void 0&&at,Be=e.onMouseLeave,Ke=e.onClick,Ye=e.tooltip,de=Ye===void 0?rg:Ye,ke=e.canvasRef,Oe=Us(n,r,i),ve=Oe.margin,Ie=Oe.innerWidth,Xe=Oe.innerHeight,It=Oe.outerWidth,mt=Oe.outerHeight,Je=ht(),bt=m.useState(null),At=bt[0],it=bt[1],gt=gT({data:s,xScale:l,xFormat:u,yScale:f,yFormat:h,width:Ie,height:Xe,colors:y,curve:p,areaBaselineValue:S,pointColor:W,pointBorderColor:V}),yt=gt.lineGenerator,Lt=gt.areaGenerator,$e=gt.series,Pe=gt.xScale,ze=gt.yScale,nt=gt.points,vt=hT({points:nt,width:Ie,height:Xe,debug:tt}),kt=vt.delaunay,Xt=vt.voronoi;m.useEffect(function(){ke&&(ke.current=t.current),t.current.width=It*o,t.current.height=mt*o;var fe=t.current.getContext("2d");fe.scale(o,o),fe.fillStyle=Je.background,fe.fillRect(0,0,It,mt),fe.translate(ve.left,ve.top),x.forEach(function(ye){if(typeof ye=="function"&&ye({ctx:fe,innerWidth:Ie,innerHeight:Xe,series:$e,points:nt,xScale:Pe,yScale:ze,lineWidth:w,lineGenerator:yt,areaGenerator:Lt,currentPoint:At,setCurrentPoint:it}),ye==="grid"&&Je.grid.line.strokeWidth>0&&(fe.lineWidth=Je.grid.line.strokeWidth,fe.strokeStyle=Je.grid.line.stroke,ne&&Cl(fe,{width:Ie,height:Xe,scale:Pe,axis:"x",values:K}),q&&Cl(fe,{width:Ie,height:Xe,scale:ze,axis:"y",values:G})),ye==="axes"&&uT(fe,{xScale:Pe,yScale:ze,width:Ie,height:Xe,top:z,right:L,bottom:ee,left:se,theme:Je}),ye==="areas"&&$===!0){fe.save(),fe.globalAlpha=O,Lt.context(fe);for(var Ee=$e.length-1;Ee>=0;Ee--)fe.fillStyle=$e[Ee].color,fe.beginPath(),Lt($e[Ee].data.map(function(Ge){return Ge.position})),fe.fill();fe.restore()}if(ye==="lines"&&(yt.context(fe),$e.forEach(function(Ge){fe.strokeStyle=Ge.color,fe.lineWidth=w,fe.beginPath(),yt(Ge.data.map(function(ot){return ot.position})),fe.stroke()})),ye==="points"&&E===!0&&j>0&&nt.forEach(function(Ge){fe.fillStyle=Ge.color,fe.beginPath(),fe.arc(Ge.x,Ge.y,j/2,0,2*Math.PI),fe.fill(),U>0&&(fe.strokeStyle=Ge.borderColor,fe.lineWidth=U,fe.stroke())}),ye==="mesh"&&tt===!0&&(XZ(fe,Xt),At&&QZ(fe,Xt,At.index)),ye==="legends"){var qe=$e.map(function(Ge){return{id:Ge.id,label:Ge.id,color:Ge.color}}).reverse();ue.forEach(function(Ge){GC(fe,hn({},Ge,{data:Ge.data||qe,containerWidth:Ie,containerHeight:Xe,theme:Je}))})}})},[t,It,mt,x,Je,yt,$e,Pe,ze,ne,K,q,G,z,L,ee,se,ue,nt,E,j,At]);var Dt=m.useCallback(function(fe){var ye=jo(t.current,fe),Ee=ye[0],qe=ye[1];if(!LC(ve.left,ve.top,Ie,Xe,Ee,qe))return null;var Ge=kt.find(Ee-ve.left,qe-ve.top);return nt[Ge]},[t,ve,Ie,Xe,kt]),Bt=Li(),Ht=Bt.showTooltipFromEvent,Mt=Bt.hideTooltip,Wt=m.useCallback(function(fe){var ye=Dt(fe);it(ye),ye?Ht(m.createElement(de,{point:ye}),fe):Mt()},[Dt,it,Ht,Mt,de]),Jt=m.useCallback(function(fe){Mt(),it(null),At&&Be&&Be(At,fe)},[Mt,it,Be]),Vt=m.useCallback(function(fe){if(Ke){var ye=Dt(fe);ye&&Ke(ye,fe)}},[Dt,Ke]);return v.jsx("canvas",{ref:t,width:It*o,height:mt*o,style:{width:It,height:mt,cursor:Te?"auto":"normal"},onMouseEnter:Te?Wt:void 0,onMouseMove:Te?Wt:void 0,onMouseLeave:Te?Jt:void 0,onClick:Te?Vt:void 0})}),pK=m.forwardRef(function(e,t){return v.jsx(hK,hn({},e,{canvasRef:t}))});m.forwardRef(function(e,t){return v.jsx(Ka,{children:function(n){var r=n.width,i=n.height;return v.jsx(pK,hn({width:r,height:i},e,{ref:t}))}})});var mK=JC;function gK(e,t){var n=[];return mK(e,function(r,i,a){t(r,i,a)&&n.push(r)}),n}var vK=gK,bK=pC,yK=vK,xK=eg,_K=Cn;function wK(e,t){var n=_K(e)?bK:yK;return n(e,xK(t))}var CK=wK;const TK=Rt(CK);var kK=Or,SK=Nn,OK="[object Number]";function EK(e){return typeof e=="number"||SK(e)&&kK(e)==OK}var MK=EK;const Jb=Rt(MK);function $K(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var RK=$K,AK=Va,jK=Ws;function PK(e,t){return e&&AK(t,jK(t),e)}var IK=PK,DK=Va,NK=Fs;function FK(e,t){return e&&DK(t,NK(t),e)}var LK=FK,BK=Va,WK=Vm;function UK(e,t){return BK(e,WK(e),t)}var zK=UK,HK=zm,VK=tm,qK=Vm,YK=mC,GK=Object.getOwnPropertySymbols,ZK=GK?function(e){for(var t=[];e;)HK(t,qK(e)),e=VK(e);return t}:YK,vT=ZK,KK=Va,XK=vT;function QK(e,t){return KK(e,XK(e),t)}var JK=QK,eX=hC,tX=vT,nX=Fs;function rX(e){return eX(e,nX,tX)}var bT=rX,iX=Object.prototype,aX=iX.hasOwnProperty;function oX(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&aX.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var sX=oX,cX=em;function lX(e,t){var n=t?cX(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var uX=lX,dX=/\w*$/;function fX(e){var t=new e.constructor(e.source,dX.exec(e));return t.lastIndex=e.lastIndex,t}var hX=fX,ey=La,ty=ey?ey.prototype:void 0,ny=ty?ty.valueOf:void 0;function pX(e){return ny?Object(ny.call(e)):{}}var mX=pX,gX=em,vX=uX,bX=hX,yX=mX,xX=R_,_X="[object Boolean]",wX="[object Date]",CX="[object Map]",TX="[object Number]",kX="[object RegExp]",SX="[object Set]",OX="[object String]",EX="[object Symbol]",MX="[object ArrayBuffer]",$X="[object DataView]",RX="[object Float32Array]",AX="[object Float64Array]",jX="[object Int8Array]",PX="[object Int16Array]",IX="[object Int32Array]",DX="[object Uint8Array]",NX="[object Uint8ClampedArray]",FX="[object Uint16Array]",LX="[object Uint32Array]";function BX(e,t,n){var r=e.constructor;switch(t){case MX:return gX(e);case _X:case wX:return new r(+e);case $X:return vX(e,n);case RX:case AX:case jX:case PX:case IX:case DX:case NX:case FX:case LX:return xX(e,n);case CX:return new r;case TX:case OX:return new r(e);case kX:return bX(e);case SX:return new r;case EX:return yX(e)}}var WX=BX,UX=od,zX=Nn,HX="[object Map]";function VX(e){return zX(e)&&UX(e)==HX}var qX=VX,YX=qX,GX=Ha,ry=vu,iy=ry&&ry.isMap,ZX=iy?GX(iy):YX,KX=ZX,XX=od,QX=Nn,JX="[object Set]";function eQ(e){return QX(e)&&XX(e)==JX}var tQ=eQ,nQ=tQ,rQ=Ha,ay=vu,oy=ay&&ay.isSet,iQ=oy?rQ(oy):nQ,aQ=iQ,oQ=pu,sQ=RK,cQ=sm,lQ=IK,uQ=LK,dQ=M_,fQ=A_,hQ=zK,pQ=JK,mQ=gC,gQ=bT,vQ=od,bQ=sX,yQ=WX,xQ=P_,_Q=Cn,wQ=gu,CQ=KX,TQ=ur,kQ=aQ,SQ=Ws,OQ=Fs,EQ=1,MQ=2,$Q=4,yT="[object Arguments]",RQ="[object Array]",AQ="[object Boolean]",jQ="[object Date]",PQ="[object Error]",xT="[object Function]",IQ="[object GeneratorFunction]",DQ="[object Map]",NQ="[object Number]",_T="[object Object]",FQ="[object RegExp]",LQ="[object Set]",BQ="[object String]",WQ="[object Symbol]",UQ="[object WeakMap]",zQ="[object ArrayBuffer]",HQ="[object DataView]",VQ="[object Float32Array]",qQ="[object Float64Array]",YQ="[object Int8Array]",GQ="[object Int16Array]",ZQ="[object Int32Array]",KQ="[object Uint8Array]",XQ="[object Uint8ClampedArray]",QQ="[object Uint16Array]",JQ="[object Uint32Array]",Ct={};Ct[yT]=Ct[RQ]=Ct[zQ]=Ct[HQ]=Ct[AQ]=Ct[jQ]=Ct[VQ]=Ct[qQ]=Ct[YQ]=Ct[GQ]=Ct[ZQ]=Ct[DQ]=Ct[NQ]=Ct[_T]=Ct[FQ]=Ct[LQ]=Ct[BQ]=Ct[WQ]=Ct[KQ]=Ct[XQ]=Ct[QQ]=Ct[JQ]=!0;Ct[PQ]=Ct[xT]=Ct[UQ]=!1;function $c(e,t,n,r,i,a){var o,s=t&EQ,c=t&MQ,l=t&$Q;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!TQ(e))return e;var u=_Q(e);if(u){if(o=bQ(e),!s)return fQ(e,o)}else{var d=vQ(e),f=d==xT||d==IQ;if(wQ(e))return dQ(e,s);if(d==_T||d==yT||f&&!i){if(o=c||f?{}:xQ(e),!s)return c?pQ(e,uQ(o,e)):hQ(e,lQ(o,e))}else{if(!Ct[d])return i?e:{};o=yQ(e,d,s)}}a||(a=new oQ);var h=a.get(e);if(h)return h;a.set(e,o),kQ(e)?e.forEach(function(b){o.add($c(b,t,n,b,e,a))}):CQ(e)&&e.forEach(function(b,x){o.set(x,$c(b,t,n,x,e,a))});var g=l?c?gQ:mQ:c?OQ:SQ,p=u?void 0:g(e);return sQ(p||e,function(b,x){p&&(x=b,b=e[x]),cQ(o,x,$c(b,t,n,x,e,a))}),o}var eJ=$c;function tJ(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}var nJ=tJ,rJ=Ls,iJ=nJ;function aJ(e,t){return t.length<2?e:rJ(e,iJ(t,0,-1))}var oJ=aJ,sJ=qa,cJ=tw,lJ=oJ,uJ=Ya;function dJ(e,t){return t=sJ(t,e),e=lJ(e,t),e==null||delete e[uJ(cJ(t))]}var fJ=dJ,hJ=im;function pJ(e){return hJ(e)?void 0:e}var mJ=pJ,gJ=_u,vJ=eJ,bJ=fJ,yJ=qa,xJ=Va,_J=mJ,wJ=dC,CJ=bT,TJ=1,kJ=2,SJ=4,OJ=wJ(function(e,t){var n={};if(e==null)return n;var r=!1;t=gJ(t,function(a){return a=yJ(a,e),r||(r=a.length>1),a}),xJ(e,CJ(e),n),r&&(n=vJ(n,TJ|kJ|SJ,_J));for(var i=t.length;i--;)bJ(n,t[i]);return n}),EJ=OJ;const wT=Rt(EJ);function or(){return or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},or.apply(this,arguments)}var $h={dotSize:4,noteWidth:120,noteTextOffset:8,animate:!0},MJ=function(e){var t=typeof e;return m.isValidElement(e)||t==="string"||t==="function"||t==="object"},$J=function(e){var t=typeof e;return t==="string"||t==="function"},xs=function(e){return e.type==="circle"},Rh=function(e){return e.type==="dot"},_s=function(e){return e.type==="rect"},RJ=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce(function(a,o){var s=o.offset||0;return[].concat(a,TK(t,o.match).map(function(c){var l=r(c),u=i(c);return(xs(o)||_s(o))&&(u.size=u.size+2*s,u.width=u.width+2*s,u.height=u.height+2*s),or({},wT(o,["match","offset"]),l,u,{size:o.size||u.size,datum:c})}))},[])},AJ=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return RV(cd(i))},CT=function(e){var t,n,r=e.x,i=e.y,a=e.noteX,o=e.noteY,s=e.noteWidth,c=s===void 0?$h.noteWidth:s,l=e.noteTextOffset,u=l===void 0?$h.noteTextOffset:l;if(Jb(a))t=r+a;else{if(a.abs===void 0)throw new Error("noteX should be either a number or an object containing an 'abs' property");t=a.abs}if(Jb(o))n=i+o;else{if(o.abs===void 0)throw new Error("noteY should be either a number or an object containing an 'abs' property");n=o.abs}var d=r,f=i,h=AJ(r,i,t,n);if(xs(e)){var g=Ci(An(h),e.size/2);d+=g.x,f+=g.y}if(_s(e)){var p=Math.round((h+90)/45)%8;p===0&&(f-=e.height/2),p===1&&(d+=e.width/2,f-=e.height/2),p===2&&(d+=e.width/2),p===3&&(d+=e.width/2,f+=e.height/2),p===4&&(f+=e.height/2),p===5&&(d-=e.width/2,f+=e.height/2),p===6&&(d-=e.width/2),p===7&&(d-=e.width/2,f-=e.height/2)}var b=t,x=t;return(h+90)%360>180?(b-=c,x-=c):x+=c,{points:[[d,f],[t,n],[x,n]],text:[b,n-u],angle:h+90}},TT=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return m.useMemo(function(){return RJ({data:t,annotations:n,getPosition:r,getDimensions:i})},[t,n,r,i])},jJ=function(e){var t=e.annotations;return m.useMemo(function(){return t.map(function(n){return or({},n,{computed:CT(or({},n))})})},[t])},PJ=function(e){return m.useMemo(function(){return CT(e)},[e])},IJ=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,a=ht(),o=mn(),s=o.animate,c=o.config,l=cr({x:n,y:r,config:c,immediate:!s});return typeof i=="function"?m.createElement(i,{x:n,y:r,datum:t}):v.jsxs(v.Fragment,{children:[a.annotations.text.outlineWidth>0&&v.jsx(ft.text,{x:l.x,y:l.y,style:or({},a.annotations.text,{strokeLinejoin:"round",strokeWidth:2*a.annotations.text.outlineWidth,stroke:a.annotations.text.outlineColor}),children:i}),v.jsx(ft.text,{x:l.x,y:l.y,style:wT(a.annotations.text,["outlineWidth","outlineColor"]),children:i})]})},sy=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,i=ht(),a=m.useMemo(function(){var c=t[0];return t.slice(1).reduce(function(l,u){return l+" L"+u[0]+","+u[1]},"M"+c[0]+","+c[1])},[t]),o=Ym(a);if(r&&i.annotations.link.outlineWidth<=0)return null;var s=or({},i.annotations.link);return r&&(s.strokeLinecap="square",s.strokeWidth=i.annotations.link.strokeWidth+2*i.annotations.link.outlineWidth,s.stroke=i.annotations.link.outlineColor,s.opacity=i.annotations.link.outlineOpacity),v.jsx(ft.path,{fill:"none",d:o,style:s})},DJ=function(e){var t=e.x,n=e.y,r=e.size,i=ht(),a=mn(),o=a.animate,s=a.config,c=cr({x:t,y:n,radius:r/2,config:s,immediate:!o});return v.jsxs(v.Fragment,{children:[i.annotations.outline.outlineWidth>0&&v.jsx(ft.circle,{cx:c.x,cy:c.y,r:c.radius,style:or({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),v.jsx(ft.circle,{cx:c.x,cy:c.y,r:c.radius,style:i.annotations.outline})]})},NJ=function(e){var t=e.x,n=e.y,r=e.size,i=r===void 0?$h.dotSize:r,a=ht(),o=mn(),s=o.animate,c=o.config,l=cr({x:t,y:n,radius:i/2,config:c,immediate:!s});return v.jsxs(v.Fragment,{children:[a.annotations.outline.outlineWidth>0&&v.jsx(ft.circle,{cx:l.x,cy:l.y,r:l.radius,style:or({},a.annotations.outline,{fill:"none",strokeWidth:2*a.annotations.outline.outlineWidth,stroke:a.annotations.outline.outlineColor,opacity:a.annotations.outline.outlineOpacity})}),v.jsx(ft.circle,{cx:l.x,cy:l.y,r:l.radius,style:a.annotations.symbol})]})},FJ=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.borderRadius,o=a===void 0?6:a,s=ht(),c=mn(),l=c.animate,u=c.config,d=cr({x:t-r/2,y:n-i/2,width:r,height:i,config:u,immediate:!l});return v.jsxs(v.Fragment,{children:[s.annotations.outline.outlineWidth>0&&v.jsx(ft.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:or({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+2*s.annotations.outline.outlineWidth,stroke:s.annotations.outline.outlineColor,opacity:s.annotations.outline.outlineOpacity})}),v.jsx(ft.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:s.annotations.outline})]})},LJ=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,a=PJ(e);if(!MJ(i))throw new Error("note should be a valid react element");return v.jsxs(v.Fragment,{children:[v.jsx(sy,{points:a.points,isOutline:!0}),xs(e)&&v.jsx(DJ,{x:n,y:r,size:e.size}),Rh(e)&&v.jsx(NJ,{x:n,y:r,size:e.size}),_s(e)&&v.jsx(FJ,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),v.jsx(sy,{points:a.points}),v.jsx(IJ,{datum:t,x:a.text[0],y:a.text[1],note:i})]})},cy=function(e,t){t.forEach(function(n,r){var i=n[0],a=n[1];r===0?e.moveTo(i,a):e.lineTo(i,a)})},BJ=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(i){if(!$J(i.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),cy(e,i.computed.points),e.stroke(),e.lineCap="butt"),xs(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),Rh(i)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),_s(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),cy(e,i.computed.points),e.stroke(),xs(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),Rh(i)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.fill()),_s(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),typeof i.note=="function"?i.note(e,{datum:i.datum,x:i.computed.text[0],y:i.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+"px "+r.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(i.note,i.computed.text[0],i.computed.text[1]),e.lineJoin="miter"),e.fillText(i.note,i.computed.text[0],i.computed.text[1]))}),e.restore())};function pt(){return pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pt.apply(this,arguments)}function Xa(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var ly,WJ=function(e){var t=e.bars,n=e.annotations,r=TT({data:t,annotations:n,getPosition:function(i){return{x:i.x+i.width/2,y:i.y+i.height/2}},getDimensions:function(i){var a=i.height,o=i.width;return{width:o,height:a,size:Math.max(o,a)}}});return v.jsx(v.Fragment,{children:r.map(function(i,a){return v.jsx(LJ,pt({},i),a)})})},UJ=function(e){var t=e.width,n=e.height,r=e.legends,i=e.toggleSerie;return v.jsx(v.Fragment,{children:r.map(function(a,o){var s,c=a[0],l=a[1];return v.jsx(Jm,pt({},c,{containerWidth:t,containerHeight:n,data:(s=c.data)!=null?s:l,toggleSerie:c.toggleSerie&&c.dataFrom==="keys"?i:void 0}),o)})})},zJ=["data"],HJ=function(e){var t,n=e.bar,r=n.data,i=Xa(n,zJ),a=e.style,o=a.borderColor,s=a.color,c=a.height,l=a.labelColor,u=a.labelOpacity,d=a.labelX,f=a.labelY,h=a.transform,g=a.width,p=e.borderRadius,b=e.borderWidth,x=e.label,_=e.shouldRenderLabel,y=e.isInteractive,C=e.onClick,w=e.onMouseEnter,T=e.onMouseLeave,$=e.tooltip,R=e.isFocusable,S=e.ariaLabel,k=e.ariaLabelledBy,O=e.ariaDescribedBy,D=ht(),E=Li(),M=E.showTooltipFromEvent,j=E.showTooltipAt,F=E.hideTooltip,W=m.useMemo(function(){return function(){return m.createElement($,pt({},i,r))}},[$,i,r]),B=m.useCallback(function(K){C==null||C(pt({color:i.color},r),K)},[i,r,C]),U=m.useCallback(function(K){return M(W(),K)},[M,W]),N=m.useCallback(function(K){w==null||w(r,K),M(W(),K)},[r,w,M,W]),V=m.useCallback(function(K){T==null||T(r,K),F()},[r,F,T]),X=m.useCallback(function(){j(W(),[i.absX+i.width/2,i.absY])},[j,W,i]),ne=m.useCallback(function(){F()},[F]);return v.jsxs(ft.g,{transform:h,children:[v.jsx(ft.rect,{width:Zr(g,function(K){return Math.max(K,0)}),height:Zr(c,function(K){return Math.max(K,0)}),rx:p,ry:p,fill:(t=r.fill)!=null?t:s,strokeWidth:b,stroke:o,focusable:R,tabIndex:R?0:void 0,"aria-label":S?S(r):void 0,"aria-labelledby":k?k(r):void 0,"aria-describedby":O?O(r):void 0,onMouseEnter:y?N:void 0,onMouseMove:y?U:void 0,onMouseLeave:y?V:void 0,onClick:y?B:void 0,onFocus:y&&R?X:void 0,onBlur:y&&R?ne:void 0}),_&&v.jsx(ft.text,{x:d,y:f,textAnchor:"middle",dominantBaseline:"central",fillOpacity:u,style:pt({},D.labels.text,{pointerEvents:"none",fill:l}),children:x})]})},VJ=["color","label"],qJ=function(e){var t=e.color,n=e.label,r=Xa(e,VJ);return v.jsx(Zp,{id:n,value:r.formattedValue,enableChip:!0,color:t})},xt={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",reverse:!1,minValue:"auto",maxValue:"auto",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},padding:.1,innerPadding:0,axisBottom:{},axisLeft:{},enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{from:"theme",theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:qJ,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],markers:[],enableTotals:!1,totalsOffset:10},St=pt({},xt,{layers:["grid","axes","bars","totals","markers","legends","annotations"],barComponent:HJ,defs:[],fill:[],animate:!0,motionConfig:"default",role:"img",isFocusable:!1}),Qt=pt({},xt,{layers:["grid","axes","bars","totals","legends","annotations"],pixelRatio:typeof window<"u"&&(ly=window.devicePixelRatio)!=null?ly:1}),kT=function(e,t,n,r,i,a){return ys(r,{all:e.map(t),min:0,max:0},i,a).padding(n)},ST=function(e,t){return e.map(function(n){return pt({},t.reduce(function(r,i){return r[i]=null,r},{}),n)})},ud=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},dd=function(e){return[e,Number(e)]},YJ=["layout","minValue","maxValue","reverse","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],ig=function(e,t){return e>t},OT=function(e,t){return e<t},ET=function(e,t){return Array.from(" ".repeat(t-e),function(n,r){return e+r})},GJ=function(e){return ig(e,0)?0:e},ZJ=function(e,t,n,r){var i=e.data,a=e.formatValue,o=e.getColor,s=e.getIndex,c=e.getTooltipLabel,l=e.innerPadding,u=l===void 0?0:l,d=e.keys,f=e.xScale,h=e.yScale,g=e.margin,p=n?OT:ig,b=i.map(ud),x=[];return d.forEach(function(_,y){return ET(0,f.domain().length).forEach(function(C){var w,T,$,R=dd(i[C][_]),S=R[0],k=R[1],O=s(i[C]),D=((w=f(O))!=null?w:0)+t*y+u*y,E=p(T=k,0)?($=h(T))!=null?$:0:r,M=function(F,W){var B;return p(F,0)?r-W:((B=h(F))!=null?B:0)-r}(k,E),j={id:_,value:S===null?S:k,formattedValue:a(k),hidden:!1,index:C,indexValue:O,data:b[C]};x.push({key:_+"."+j.indexValue,index:x.length,data:j,x:D,y:E,absX:g.left+D,absY:g.top+E,width:t,height:M,color:o(j),label:c(j)})})}),x},KJ=function(e,t,n,r){var i=e.data,a=e.formatValue,o=e.getIndex,s=e.getColor,c=e.getTooltipLabel,l=e.keys,u=e.innerPadding,d=u===void 0?0:u,f=e.xScale,h=e.yScale,g=e.margin,p=n?OT:ig,b=i.map(ud),x=[];return l.forEach(function(_,y){return ET(0,h.domain().length).forEach(function(C){var w,T,$,R=dd(i[C][_]),S=R[0],k=R[1],O=o(i[C]),D=p(T=k,0)?r:($=f(T))!=null?$:0,E=((w=h(O))!=null?w:0)+t*y+d*y,M=function(F,W){var B;return p(F,0)?((B=f(F))!=null?B:0)-r:r-W}(k,D),j={id:_,value:S===null?S:k,formattedValue:a(k),hidden:!1,index:C,indexValue:O,data:b[C]};x.push({key:_+"."+j.indexValue,index:x.length,data:j,x:D,y:E,absX:g.left+D,absY:g.top+E,width:M,height:t,color:s(j),label:c(j)})})}),x},XJ=function(e){var t,n,r=e.layout,i=e.minValue,a=e.maxValue,o=e.reverse,s=e.width,c=e.height,l=e.padding,u=l===void 0?0:l,d=e.innerPadding,f=d===void 0?0:d,h=e.valueScale,g=e.indexScale,p=e.hiddenIds,b=p===void 0?[]:p,x=Xa(e,YJ),_=x.keys.filter(function(N){return!b.includes(N)}),y=ST(x.data,_),C=r==="vertical"?["y","x",s]:["x","y",c],w=C[0],T=C[1],$=C[2],R=kT(y,x.getIndex,u,g,$,T),S=pt({max:a,min:i,reverse:o},h),k=S.min==="auto"?GJ:function(N){return N},O=y.reduce(function(N,V){return[].concat(N,_.map(function(X){return V[X]}))},[]).filter(Boolean),D=k(Math.min.apply(Math,O)),E=(n=Math.max.apply(Math,O),isFinite(n)?n:0),M=ys(S,{all:O,min:D,max:E},w==="x"?s:c,w),j=r==="vertical"?[R,M]:[M,R],F=j[0],W=j[1],B=(R.bandwidth()-f*(_.length-1))/_.length,U=[pt({},x,{data:y,keys:_,innerPadding:f,xScale:F,yScale:W}),B,S.reverse,(t=M(0))!=null?t:0];return{xScale:F,yScale:W,bars:B>0?r==="vertical"?ZJ.apply(void 0,U):KJ.apply(void 0,U):[]}},QJ=["data","layout","minValue","maxValue","reverse","width","height","padding","valueScale","indexScale","hiddenIds"],JJ=function e(t){var n;return t.some(Array.isArray)?e((n=[]).concat.apply(n,t)):t},eee=function(e,t,n){var r=e.formatValue,i=e.getColor,a=e.getIndex,o=e.getTooltipLabel,s=e.innerPadding,c=e.stackedData,l=e.xScale,u=e.yScale,d=e.margin,f=[];return c.forEach(function(h){return l.domain().forEach(function(g,p){var b,x,_=h[p],y=(b=l(a(_.data)))!=null?b:0,C=((x=function(k){return u(k[n?0:1])}(_))!=null?x:0)+.5*s,w=function(k,O){var D;return((D=u(k[n?1:0]))!=null?D:0)-O}(_,C)-s,T=dd(_.data[h.key]),$=T[0],R=T[1],S={id:h.key,value:$===null?$:R,formattedValue:r(R),hidden:!1,index:p,indexValue:g,data:ud(_.data)};f.push({key:h.key+"."+g,index:f.length,data:S,x:y,y:C,absX:d.left+y,absY:d.top+C,width:t,height:w,color:i(S),label:o(S)})})}),f},tee=function(e,t,n){var r=e.formatValue,i=e.getColor,a=e.getIndex,o=e.getTooltipLabel,s=e.innerPadding,c=e.stackedData,l=e.xScale,u=e.yScale,d=e.margin,f=[];return c.forEach(function(h){return u.domain().forEach(function(g,p){var b,x,_=h[p],y=(b=u(a(_.data)))!=null?b:0,C=((x=function(k){return l(k[n?1:0])}(_))!=null?x:0)+.5*s,w=function(k,O){var D;return((D=l(k[n?0:1]))!=null?D:0)-O}(_,C)-s,T=dd(_.data[h.key]),$=T[0],R=T[1],S={id:h.key,value:$===null?$:R,formattedValue:r(R),hidden:!1,index:p,indexValue:g,data:ud(_.data)};f.push({key:h.key+"."+g,index:f.length,data:S,x:C,y,absX:d.left+C,absY:d.top+y,width:w,height:t,color:i(S),label:o(S)})})}),f},nee=function(e){var t,n=e.data,r=e.layout,i=e.minValue,a=e.maxValue,o=e.reverse,s=e.width,c=e.height,l=e.padding,u=l===void 0?0:l,d=e.valueScale,f=e.indexScale,h=e.hiddenIds,g=h===void 0?[]:h,p=Xa(e,QJ),b=p.keys.filter(function(B){return!g.includes(B)}),x=BU().keys(b).offset(WU)(ST(n,b)),_=r==="vertical"?["y","x",s]:["x","y",c],y=_[0],C=_[1],w=_[2],T=kT(n,p.getIndex,u,f,w,C),$=pt({max:a,min:i,reverse:o},d),R=(t=JJ(x),d.type==="log"?t.filter(function(B){return B!==0}):t),S=Math.min.apply(Math,R),k=Math.max.apply(Math,R),O=ys($,{all:R,min:S,max:k},y==="x"?s:c,y),D=r==="vertical"?[T,O]:[O,T],E=D[0],M=D[1],j=p.innerPadding>0?p.innerPadding:0,F=T.bandwidth(),W=[pt({},p,{innerPadding:j,stackedData:x,xScale:E,yScale:M}),F,$.reverse];return{xScale:E,yScale:M,bars:F>0?r==="vertical"?eee.apply(void 0,W):tee.apply(void 0,W):[]}},ree=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,a=e.layout,o=e.legendLabel,s=e.reverse,c=FC(o??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(l,u,d){var f=Oh(l.map(function(h){var g,p;return{id:(g=h.data.indexValue)!=null?g:"",label:d(h.data),hidden:h.data.hidden,color:(p=h.color)!=null?p:"#000"}}),function(h){return h.id});return u==="horizontal"&&f.reverse(),f}(t,a,c):function(l,u,d,f,h,g){var p=Oh(l.map(function(b){var x;return{id:b.data.id,label:g(b.data),hidden:b.data.hidden,color:(x=b.color)!=null?x:"#000"}}),function(b){return b.id});return(u==="vertical"&&f==="stacked"&&d==="column"&&h!==!0||u==="horizontal"&&f==="stacked"&&h===!0)&&p.reverse(),p}(t,a,n,i,s,c)},uy=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},iee=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},aee=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},oee=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},MT=function(e){var t=e.indexBy,n=t===void 0?xt.indexBy:t,r=e.keys,i=r===void 0?xt.keys:r,a=e.label,o=a===void 0?xt.label:a,s=e.tooltipLabel,c=s===void 0?xt.tooltipLabel:s,l=e.valueFormat,u=e.colors,d=u===void 0?xt.colors:u,f=e.colorBy,h=f===void 0?xt.colorBy:f,g=e.borderColor,p=g===void 0?xt.borderColor:g,b=e.labelTextColor,x=b===void 0?xt.labelTextColor:b,_=e.groupMode,y=_===void 0?xt.groupMode:_,C=e.layout,w=C===void 0?xt.layout:C,T=e.reverse,$=T===void 0?xt.reverse:T,R=e.data,S=e.minValue,k=S===void 0?xt.minValue:S,O=e.maxValue,D=O===void 0?xt.maxValue:O,E=e.margin,M=e.width,j=e.height,F=e.padding,W=F===void 0?xt.padding:F,B=e.innerPadding,U=B===void 0?xt.innerPadding:B,N=e.valueScale,V=N===void 0?xt.valueScale:N,X=e.indexScale,ne=X===void 0?xt.indexScale:X,K=e.initialHiddenIds,J=K===void 0?xt.initialHiddenIds:K,q=e.enableLabel,G=q===void 0?xt.enableLabel:q,z=e.labelSkipWidth,L=z===void 0?xt.labelSkipWidth:z,H=e.labelSkipHeight,ee=H===void 0?xt.labelSkipHeight:H,A=e.legends,se=A===void 0?xt.legends:A,ce=e.legendLabel,ue=e.totalsOffset,we=ue===void 0?xt.totalsOffset:ue,Te=m.useState(J??[]),at=Te[0],tt=Te[1],Be=m.useCallback(function($e){tt(function(Pe){return Pe.indexOf($e)>-1?Pe.filter(function(ze){return ze!==$e}):[].concat(Pe,[$e])})},[]),Ke=Ti(n),Ye=Ti(o),de=Ti(c),ke=Ma(l),Oe=ht(),ve=Xm(d,h),Ie=ar(p,Oe),Xe=ar(x,Oe),It=(y==="grouped"?XJ:nee)({layout:w,reverse:$,data:R,getIndex:Ke,keys:i,minValue:k,maxValue:D,width:M,height:j,getColor:ve,padding:W,innerPadding:U,valueScale:V,indexScale:ne,hiddenIds:at,formatValue:ke,getTooltipLabel:de,margin:E}),mt=It.bars,Je=It.xScale,bt=It.yScale,At=m.useMemo(function(){return mt.filter(function($e){return $e.data.value!==null}).map(function($e,Pe){return pt({},$e,{index:Pe})})},[mt]),it=m.useCallback(function($e){var Pe=$e.width,ze=$e.height;return!!G&&!(L>0&&Pe<L)&&!(ee>0&&ze<ee)},[G,L,ee]),gt=m.useMemo(function(){return i.map(function($e){var Pe=mt.find(function(ze){return ze.data.id===$e});return pt({},Pe,{data:pt({id:$e},Pe==null?void 0:Pe.data,{hidden:at.includes($e)})})})},[at,i,mt]),yt=m.useMemo(function(){return se.map(function($e){return[$e,ree({bars:$e.dataFrom==="keys"?gt:mt,direction:$e.direction,from:$e.dataFrom,groupMode:y,layout:w,legendLabel:ce,reverse:$})]})},[se,gt,mt,y,w,ce,$]),Lt=m.useMemo(function(){return function($e,Pe,ze,nt,vt,kt,Xt){nt===void 0&&(nt=xt.layout),vt===void 0&&(vt=xt.groupMode);var Dt=[];if($e.length===0)return Dt;var Bt=new Map,Ht=$e[0].width,Mt=$e[0].height;if(vt==="stacked"){var Wt=new Map;$e.forEach(function(fe){var ye=fe.data,Ee=ye.indexValue,qe=ye.value;uy(Bt,Ee,Number(qe)),iee(Wt,Ee,Number(qe))}),Wt.forEach(function(fe,ye){var Ee,qe,Ge,ot=Bt.get(ye)||0;nt==="vertical"?(Ee=Pe(ye),qe=ze(fe),Ge=ze(fe/2)):(Ee=Pe(fe),qe=ze(ye),Ge=Pe(fe/2)),Ee+=nt==="vertical"?Ht/2:kt,qe+=nt==="vertical"?-kt:Mt/2,Dt.push({key:"total_"+ye,x:Ee,y:qe,value:ot,formattedValue:Xt(ot),animationOffset:Ge})})}else if(vt==="grouped"){var Jt=new Map,Vt=new Map;$e.forEach(function(fe){var ye=fe.data,Ee=ye.indexValue,qe=ye.value;uy(Bt,Ee,Number(qe)),aee(Jt,Ee,Number(qe)),oee(Vt,Ee)}),Jt.forEach(function(fe,ye){var Ee,qe,Ge,ot=Bt.get(ye)||0,P=Vt.get(ye);nt==="vertical"?(Ee=Pe(ye),qe=ze(fe),Ge=ze(fe/2)):(Ee=Pe(fe),qe=ze(ye),Ge=Pe(fe/2)),Ee+=nt==="vertical"?P*Ht/2:kt,qe+=nt==="vertical"?-kt:P*Mt/2,Dt.push({key:"total_"+ye,x:Ee,y:qe,value:ot,formattedValue:Xt(ot),animationOffset:Ge})})}return Dt}(mt,Je,bt,w,y,we,ke)},[mt,Je,bt,w,y,we,ke]);return{bars:mt,barsWithValue:At,xScale:Je,yScale:bt,getIndex:Ke,getLabel:Ye,getTooltipLabel:de,formatValue:ke,getColor:ve,getBorderColor:Ie,getLabelColor:Xe,shouldRenderBarLabel:it,hiddenIds:at,toggleSerie:Be,legendsWithData:yt,barTotals:Lt}},see=function(e){var t=e.data,n=e.springConfig,r=e.animate,i=e.layout,a=i===void 0?St.layout:i,o=ht();return Fi(t,{keys:function(s){return s.key},from:function(s){return{x:a==="vertical"?s.x:s.animationOffset,y:a==="vertical"?s.animationOffset:s.y,labelOpacity:0}},enter:function(s){return{x:s.x,y:s.y,labelOpacity:1}},update:function(s){return{x:s.x,y:s.y,labelOpacity:1}},leave:function(s){return{x:a==="vertical"?s.x:s.animationOffset,y:a==="vertical"?s.animationOffset:s.y,labelOpacity:0}},config:n,immediate:!r,initial:r?void 0:null})(function(s,c){return v.jsx(ft.text,{x:s.x,y:s.y,fillOpacity:s.labelOpacity,style:pt({},o.labels.text,{pointerEvents:"none",fill:o.text.fill}),fontWeight:"bold",fontSize:o.labels.text.fontSize,fontFamily:o.labels.text.fontFamily,textAnchor:a==="vertical"?"middle":"start",alignmentBaseline:a==="vertical"?"alphabetic":"middle",children:c.formattedValue},c.key)})},cee=["isInteractive","animate","motionConfig","theme","renderWrapper"],lee=function(e){var t=e.data,n=e.indexBy,r=e.keys,i=e.margin,a=e.width,o=e.height,s=e.groupMode,c=e.layout,l=e.reverse,u=e.minValue,d=e.maxValue,f=e.valueScale,h=e.indexScale,g=e.padding,p=e.innerPadding,b=e.axisTop,x=e.axisRight,_=e.axisBottom,y=_===void 0?St.axisBottom:_,C=e.axisLeft,w=C===void 0?St.axisLeft:C,T=e.enableGridX,$=T===void 0?St.enableGridX:T,R=e.enableGridY,S=R===void 0?St.enableGridY:R,k=e.gridXValues,O=e.gridYValues,D=e.layers,E=D===void 0?St.layers:D,M=e.barComponent,j=M===void 0?St.barComponent:M,F=e.enableLabel,W=F===void 0?St.enableLabel:F,B=e.label,U=e.labelSkipWidth,N=U===void 0?St.labelSkipWidth:U,V=e.labelSkipHeight,X=V===void 0?St.labelSkipHeight:V,ne=e.labelTextColor,K=e.markers,J=K===void 0?St.markers:K,q=e.colorBy,G=e.colors,z=e.defs,L=z===void 0?St.defs:z,H=e.fill,ee=H===void 0?St.fill:H,A=e.borderRadius,se=A===void 0?St.borderRadius:A,ce=e.borderWidth,ue=ce===void 0?St.borderWidth:ce,we=e.borderColor,Te=e.annotations,at=Te===void 0?St.annotations:Te,tt=e.legendLabel,Be=e.tooltipLabel,Ke=e.valueFormat,Ye=e.isInteractive,de=Ye===void 0?St.isInteractive:Ye,ke=e.tooltip,Oe=ke===void 0?St.tooltip:ke,ve=e.onClick,Ie=e.onMouseEnter,Xe=e.onMouseLeave,It=e.legends,mt=e.role,Je=mt===void 0?St.role:mt,bt=e.ariaLabel,At=e.ariaLabelledBy,it=e.ariaDescribedBy,gt=e.isFocusable,yt=gt===void 0?St.isFocusable:gt,Lt=e.barAriaLabel,$e=e.barAriaLabelledBy,Pe=e.barAriaDescribedBy,ze=e.initialHiddenIds,nt=e.enableTotals,vt=nt===void 0?St.enableTotals:nt,kt=e.totalsOffset,Xt=kt===void 0?St.totalsOffset:kt,Dt=mn(),Bt=Dt.animate,Ht=Dt.config,Mt=Us(a,o,i),Wt=Mt.outerWidth,Jt=Mt.outerHeight,Vt=Mt.margin,fe=Mt.innerWidth,ye=Mt.innerHeight,Ee=MT({indexBy:n,label:B,tooltipLabel:Be,valueFormat:Ke,colors:G,colorBy:q,borderColor:we,labelTextColor:ne,groupMode:s,layout:c,reverse:l,data:t,keys:r,minValue:u,maxValue:d,margin:Vt,width:fe,height:ye,padding:g,innerPadding:p,valueScale:f,indexScale:h,enableLabel:W,labelSkipWidth:N,labelSkipHeight:X,legends:It,legendLabel:tt,initialHiddenIds:ze,totalsOffset:Xt}),qe=Ee.bars,Ge=Ee.barsWithValue,ot=Ee.xScale,P=Ee.yScale,re=Ee.getLabel,Z=Ee.getTooltipLabel,te=Ee.getBorderColor,ge=Ee.getLabelColor,Ce=Ee.shouldRenderBarLabel,pe=Ee.toggleSerie,be=Ee.legendsWithData,Ae=Ee.barTotals,Me=Fi(Ge,{keys:function(le){return le.key},from:function(le){return pt({borderColor:te(le),color:le.color,height:0,labelColor:ge(le),labelOpacity:0,labelX:le.width/2,labelY:le.height/2,transform:"translate("+le.x+", "+(le.y+le.height)+")",width:le.width},c==="vertical"?{}:{height:le.height,transform:"translate("+le.x+", "+le.y+")",width:0})},enter:function(le){return{borderColor:te(le),color:le.color,height:le.height,labelColor:ge(le),labelOpacity:1,labelX:le.width/2,labelY:le.height/2,transform:"translate("+le.x+", "+le.y+")",width:le.width}},update:function(le){return{borderColor:te(le),color:le.color,height:le.height,labelColor:ge(le),labelOpacity:1,labelX:le.width/2,labelY:le.height/2,transform:"translate("+le.x+", "+le.y+")",width:le.width}},leave:function(le){return pt({borderColor:te(le),color:le.color,height:0,labelColor:ge(le),labelOpacity:0,labelX:le.width/2,labelY:0,transform:"translate("+le.x+", "+(le.y+le.height)+")",width:le.width},c==="vertical"?{}:{labelX:0,labelY:le.height/2,height:le.height,transform:"translate("+le.x+", "+le.y+")",width:0})},config:Ht,immediate:!Bt,initial:Bt?void 0:null}),et=m.useMemo(function(){return{borderRadius:se,borderWidth:ue,enableLabel:W,isInteractive:de,labelSkipWidth:N,labelSkipHeight:X,onClick:ve,onMouseEnter:Ie,onMouseLeave:Xe,getTooltipLabel:Z,tooltip:Oe,isFocusable:yt,ariaLabel:Lt,ariaLabelledBy:$e,ariaDescribedBy:Pe}},[se,ue,W,Z,de,X,N,ve,Ie,Xe,Oe,yt,Lt,$e,Pe]),Nt=Km(L,qe,ee,{dataKey:"data",targetKey:"data.fill"}),wt={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};E.includes("annotations")&&(wt.annotations=v.jsx(WJ,{bars:qe,annotations:at},"annotations")),E.includes("axes")&&(wt.axes=v.jsx(cT,{xScale:ot,yScale:P,width:fe,height:ye,top:b,right:x,bottom:y,left:w},"axes")),E.includes("bars")&&(wt.bars=v.jsx(m.Fragment,{children:Me(function(le,cn){return m.createElement(j,pt({},et,{bar:cn,style:le,shouldRenderLabel:Ce(cn),label:re(cn.data)}))})},"bars")),E.includes("grid")&&(wt.grid=v.jsx(lT,{width:fe,height:ye,xScale:$?ot:null,yScale:S?P:null,xValues:k,yValues:O},"grid")),E.includes("legends")&&(wt.legends=v.jsx(UJ,{width:fe,height:ye,legends:be,toggleSerie:pe},"legends")),E.includes("markers")&&(wt.markers=v.jsx(DC,{markers:J,width:fe,height:ye,xScale:ot,yScale:P},"markers")),E.includes("totals")&&vt&&(wt.totals=v.jsx(see,{data:Ae,springConfig:Ht,animate:Bt,layout:c},"totals"));var Ut=m.useMemo(function(){return pt({},et,{margin:Vt,width:a,height:o,innerWidth:fe,innerHeight:ye,bars:qe,legendData:be,enableLabel:W,xScale:ot,yScale:P,tooltip:Oe,getTooltipLabel:Z,onClick:ve,onMouseEnter:Ie,onMouseLeave:Xe})},[et,Vt,a,o,fe,ye,qe,be,W,ot,P,Oe,Z,ve,Ie,Xe]);return v.jsx(ld,{width:Wt,height:Jt,margin:Vt,defs:Nt,role:Je,ariaLabel:bt,ariaLabelledBy:At,ariaDescribedBy:it,isFocusable:yt,children:E.map(function(le,cn){var Ft;return typeof le=="function"?v.jsx(m.Fragment,{children:m.createElement(le,Ut)},cn):(Ft=wt==null?void 0:wt[le])!=null?Ft:null})})},uee=function(e){var t=e.isInteractive,n=t===void 0?St.isInteractive:t,r=e.animate,i=r===void 0?St.animate:r,a=e.motionConfig,o=a===void 0?St.motionConfig:a,s=e.theme,c=e.renderWrapper,l=Xa(e,cee);return v.jsx(zs,{animate:i,isInteractive:n,motionConfig:o,renderWrapper:c,theme:s,children:v.jsx(lee,pt({isInteractive:n},l))})},dee=["isInteractive","renderWrapper","theme"],uf=function(e,t,n,r){return e.find(function(i){return LC(i.x+t.left,i.y+t.top,i.width,i.height,n,r)})},fee=function(e){var t=e.data,n=e.indexBy,r=e.keys,i=e.margin,a=e.width,o=e.height,s=e.groupMode,c=e.layout,l=e.reverse,u=e.minValue,d=e.maxValue,f=e.valueScale,h=e.indexScale,g=e.padding,p=e.innerPadding,b=e.axisTop,x=e.axisRight,_=e.axisBottom,y=_===void 0?Qt.axisBottom:_,C=e.axisLeft,w=C===void 0?Qt.axisLeft:C,T=e.enableGridX,$=T===void 0?Qt.enableGridX:T,R=e.enableGridY,S=R===void 0?Qt.enableGridY:R,k=e.gridXValues,O=e.gridYValues,D=e.layers,E=D===void 0?Qt.layers:D,M=e.renderBar,j=M===void 0?function(Z,te){var ge=te.bar,Ce=ge.color,pe=ge.height,be=ge.width,Ae=ge.x,Me=ge.y,et=te.borderColor,Nt=te.borderRadius,wt=te.borderWidth,Ut=te.label,le=te.labelColor,cn=te.shouldRenderLabel;if(Z.fillStyle=Ce,wt>0&&(Z.strokeStyle=et,Z.lineWidth=wt),Z.beginPath(),Nt>0){var Ft=Math.min(Nt,pe);Z.moveTo(Ae+Ft,Me),Z.lineTo(Ae+be-Ft,Me),Z.quadraticCurveTo(Ae+be,Me,Ae+be,Me+Ft),Z.lineTo(Ae+be,Me+pe-Ft),Z.quadraticCurveTo(Ae+be,Me+pe,Ae+be-Ft,Me+pe),Z.lineTo(Ae+Ft,Me+pe),Z.quadraticCurveTo(Ae,Me+pe,Ae,Me+pe-Ft),Z.lineTo(Ae,Me+Ft),Z.quadraticCurveTo(Ae,Me,Ae+Ft,Me),Z.closePath()}else Z.rect(Ae,Me,be,pe);Z.fill(),wt>0&&Z.stroke(),cn&&(Z.textBaseline="middle",Z.textAlign="center",Z.fillStyle=le,Z.fillText(Ut,Ae+be/2,Me+pe/2))}:M,F=e.enableLabel,W=F===void 0?Qt.enableLabel:F,B=e.label,U=e.labelSkipWidth,N=U===void 0?Qt.labelSkipWidth:U,V=e.labelSkipHeight,X=V===void 0?Qt.labelSkipHeight:V,ne=e.labelTextColor,K=e.colorBy,J=e.colors,q=e.borderRadius,G=q===void 0?Qt.borderRadius:q,z=e.borderWidth,L=z===void 0?Qt.borderWidth:z,H=e.borderColor,ee=e.annotations,A=ee===void 0?Qt.annotations:ee,se=e.legendLabel,ce=e.tooltipLabel,ue=e.valueFormat,we=e.isInteractive,Te=we===void 0?Qt.isInteractive:we,at=e.tooltip,tt=at===void 0?Qt.tooltip:at,Be=e.onClick,Ke=e.onMouseEnter,Ye=e.onMouseLeave,de=e.legends,ke=e.pixelRatio,Oe=ke===void 0?Qt.pixelRatio:ke,ve=e.canvasRef,Ie=e.enableTotals,Xe=Ie===void 0?Qt.enableTotals:Ie,It=e.totalsOffset,mt=It===void 0?Qt.totalsOffset:It,Je=m.useRef(null),bt=ht(),At=Us(a,o,i),it=At.margin,gt=At.innerWidth,yt=At.innerHeight,Lt=At.outerWidth,$e=At.outerHeight,Pe=MT({indexBy:n,label:B,tooltipLabel:ce,valueFormat:ue,colors:J,colorBy:K,borderColor:H,labelTextColor:ne,groupMode:s,layout:c,reverse:l,data:t,keys:r,minValue:u,maxValue:d,margin:it,width:gt,height:yt,padding:g,innerPadding:p,valueScale:f,indexScale:h,enableLabel:W,labelSkipWidth:N,labelSkipHeight:X,legends:de,legendLabel:se,totalsOffset:mt}),ze=Pe.bars,nt=Pe.barsWithValue,vt=Pe.xScale,kt=Pe.yScale,Xt=Pe.getLabel,Dt=Pe.getTooltipLabel,Bt=Pe.getBorderColor,Ht=Pe.getLabelColor,Mt=Pe.shouldRenderBarLabel,Wt=Pe.legendsWithData,Jt=Pe.barTotals,Vt=Li(),fe=Vt.showTooltipFromEvent,ye=Vt.hideTooltip,Ee=jJ({annotations:TT({data:ze,annotations:A,getPosition:function(Z){return{x:Z.x,y:Z.y}},getDimensions:function(Z){var te=Z.width,ge=Z.height;return{width:te,height:ge,size:Math.max(te,ge)}}})}),qe=m.useMemo(function(){return{borderRadius:G,borderWidth:L,isInteractive:Te,isFocusable:!1,labelSkipWidth:N,labelSkipHeight:X,margin:it,width:a,height:o,innerWidth:gt,innerHeight:yt,bars:ze,legendData:Wt,enableLabel:W,xScale:vt,yScale:kt,tooltip:tt,getTooltipLabel:Dt,onClick:Be,onMouseEnter:Ke,onMouseLeave:Ye}},[G,L,Te,N,X,it,a,o,gt,yt,ze,Wt,W,vt,kt,tt,Dt,Be,Ke,Ye]),Ge=Ma(ue);m.useEffect(function(){var Z,te=(Z=Je.current)==null?void 0:Z.getContext("2d");Je.current&&te&&(Je.current.width=Lt*Oe,Je.current.height=$e*Oe,te.scale(Oe,Oe),te.fillStyle=bt.background,te.fillRect(0,0,Lt,$e),te.translate(it.left,it.top),E.forEach(function(ge){ge==="grid"?typeof bt.grid.line.strokeWidth=="number"&&bt.grid.line.strokeWidth>0&&(te.lineWidth=bt.grid.line.strokeWidth,te.strokeStyle=bt.grid.line.stroke,$&&Cl(te,{width:gt,height:yt,scale:vt,axis:"x",values:k}),S&&Cl(te,{width:gt,height:yt,scale:kt,axis:"y",values:O})):ge==="axes"?uT(te,{xScale:vt,yScale:kt,width:gt,height:yt,top:b,right:x,bottom:y,left:w,theme:bt}):ge==="bars"?nt.forEach(function(Ce){j(te,{bar:Ce,borderColor:Bt(Ce),borderRadius:G,borderWidth:L,label:Xt(Ce.data),labelColor:Ht(Ce),shouldRenderLabel:Mt(Ce)})}):ge==="legends"?Wt.forEach(function(Ce){var pe=Ce[0],be=Ce[1];GC(te,pt({},pe,{data:be,containerWidth:gt,containerHeight:yt,theme:bt}))}):ge==="annotations"?BJ(te,{annotations:Ee,theme:bt}):ge==="totals"&&Xe?function(Ce,pe,be,Ae){Ae===void 0&&(Ae=Qt.layout),Ce.fillStyle=be.text.fill,Ce.font="bold "+be.labels.text.fontSize+"px "+be.labels.text.fontFamily,Ce.textBaseline=Ae==="vertical"?"alphabetic":"middle",Ce.textAlign=Ae==="vertical"?"center":"start",pe.forEach(function(Me){Ce.fillText(Me.formattedValue,Me.x,Me.y)})}(te,Jt,bt,c):typeof ge=="function"&&ge(te,qe)}),te.save())},[y,w,x,b,nt,G,L,Ee,$,S,Bt,Xt,Ht,k,O,s,o,yt,gt,qe,E,c,Wt,it.left,it.top,$e,Lt,Oe,j,vt,kt,l,Mt,bt,a,Jt,Xe,Ge]);var ot=m.useCallback(function(Z){if(ze&&Je.current){var te=jo(Je.current,Z),ge=te[0],Ce=te[1],pe=uf(ze,it,ge,Ce);pe!==void 0?(fe(m.createElement(tt,pt({},pe.data,{color:pe.color,label:pe.label,value:Number(pe.data.value)})),Z),Z.type==="mouseenter"&&(Ke==null||Ke(pe.data,Z))):ye()}},[ye,it,Ke,ze,fe,tt]),P=m.useCallback(function(Z){if(ze&&Je.current){ye();var te=jo(Je.current,Z),ge=te[0],Ce=te[1],pe=uf(ze,it,ge,Ce);pe&&(Ye==null||Ye(pe.data,Z))}},[ye,it,Ye,ze]),re=m.useCallback(function(Z){if(ze&&Je.current){var te=jo(Je.current,Z),ge=te[0],Ce=te[1],pe=uf(ze,it,ge,Ce);pe!==void 0&&(Be==null||Be(pt({},pe.data,{color:pe.color}),Z))}},[it,Be,ze]);return v.jsx("canvas",{ref:function(Z){Je.current=Z,ve&&"current"in ve&&(ve.current=Z)},width:Lt*Oe,height:$e*Oe,style:{width:Lt,height:$e,cursor:Te?"auto":"normal"},onMouseEnter:Te?ot:void 0,onMouseMove:Te?ot:void 0,onMouseLeave:Te?P:void 0,onClick:Te?re:void 0})},hee=m.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,a=Xa(e,dee);return v.jsx(zs,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:v.jsx(fee,pt({},a,{canvasRef:t}))})}),pee=function(e){return v.jsx(Ka,{children:function(t){var n=t.width,r=t.height;return v.jsx(uee,pt({width:n,height:r},e))}})};m.forwardRef(function(e,t){return v.jsx(Ka,{children:function(n){var r=n.width,i=n.height;return v.jsx(hee,pt({width:r,height:i},e,{ref:t}))}})});const mee="_side-content-bar_7crz7_1",gee="_mobile_7crz7_12",vee="_expanded_7crz7_20",bee="_resizer_7crz7_23",yee="_expander_7crz7_38",xee="_icon_7crz7_57",jr={"side-content-bar":"_side-content-bar_7crz7_1",sideContentBar:mee,mobile:gee,expanded:vee,resizer:bee,expander:yee,icon:xee},$T=({width:e,children:t,isExpandedOnMobileState:[n,r],resizeable:i=!0,onResize:a})=>{const{ProjectIconComponent:o}=m.useContext(Pt),{isMobile:s}=$s(),c=Rp({onSwipedRight:d=>{d.velocity>.8&&r(!1)},delta:100}),[l,u]=m.useState(null);return v.jsxs(v.Fragment,{children:[v.jsxs("section",{className:Q("luminus-side-content-bar shadow",jr.sideContentBar,{[jr.mobile]:s},{[jr.expanded]:n}),style:{width:`${e}px`},...c,children:[i&&!s?v.jsx("div",{role:"button",className:Q(jr.resizer,"luminus-side-content-bar-resizer","shadow"),draggable:!0,onDragStart:d=>u({startX:d.clientX,widthStart:e}),onDrag:d=>a(((l==null?void 0:l.widthStart)??0)+(((l==null?void 0:l.startX)??0)-d.clientX)),onDragEnd:()=>u(null),children:v.jsx(o,{className:jr.icon,icon:"resizer-horizontal"})}):null,t]}),s?v.jsx("div",{role:"button",onClick:()=>r(!n),className:Q(jr.expander,{[jr.expanded]:n},"luminus-side-content-bar-expander","shadow"),children:v.jsx(o,{className:jr.icon,icon:"chevron-left"})}):null]})},_ee=({title:e})=>v.jsx("div",{className:"mb-3",children:typeof e=="string"?v.jsx(dn,{variant:"h3",children:e}):e}),wee="_full-screen-container_1rm4r_1",RT={"full-screen-container":"_full-screen-container_1rm4r_1",fullScreenContainer:wee},Cee=Q("overflow-hidden luminus-full-screen-container",RT.fullScreenContainer),Tee="container-fluid",kee=({title:e,children:t,sideContent:n,sideContentWidth:r=250,sideContentResizeable:i=!0,noPadding:a,className:o,variant:s="main",helmet:c,unavailableOnMobile:l})=>{const{addHelmet:u,removeHelmet:d}=m.useContext(v2),{texts:{container:f}}=m.useContext(Pt),[h,g]=m.useState(r),[p,b]=m.useState(!1),x=m.useMemo(()=>{switch(s){case"fullScreen":return Cee;case"main":return Tee;default:throw new Error(`PageContainer got incorrect variant type: ${s}`)}},[s]);m.useEffect(()=>(c?u(c):typeof e=="string"&&e&&u(e),()=>d()),[c,u,d,e]);const _=Rp({onSwipedLeft:w=>{w.velocity>.8&&b(!0)},delta:100}),{isMobile:y}=$s(),C=m.useMemo(()=>y&&l,[y,l]);return m.useEffect(()=>{g(r)},[r]),v.jsxs(v.Fragment,{children:[v.jsx("div",{className:Q(x,a?"p-0":"p-3",o),style:s==="fullScreen"?{width:n?`calc(100% - ${h}px)`:"100%"}:void 0,..._,children:v.jsx("div",{className:s==="fullScreen"?RT.fullScreenContainer:void 0,style:s==="main"?{paddingRight:n?`${h}px`:void 0}:{height:"100%",width:"100%"},children:C?v.jsx(Ap,{variant:"warning",children:f.unavailableOnMobile}):v.jsxs(v.Fragment,{children:[e?v.jsx(_ee,{title:e}):null,t]})})}),n&&!C?v.jsx($T,{width:h,isExpandedOnMobileState:[p,b],resizeable:i,onResize:w=>i?g(w):{},children:n}):null]})},ag=({InputContainer:e=As,formField:t,label:n,resetsFields:r,options:i,isNumber:a,size:o,showClearIcon:s,clearValue:c,noSortOptions:l,required:u,hidden:d,disabled:f,withoutLabel:h,hint:g,className:p})=>{const{register:b,formState:x,getValues:_,setValue:y,watch:C}=rn.useFormContext(),w=Xl({falseIfNotInit:!0});console.log("disabled ",f),console.log("formDisabled ",w);const[T,$]=m.useState(void 0),[R,S]=m.useState(!1),k=m.useMemo(()=>i.toSorted((M,j)=>l?0:(M.name??"").localeCompare(j.name??"")),[i,l]),O=m.useCallback(()=>{const M=c??null;a?y(t,M===null?null:Number(M),{shouldDirty:!0,shouldValidate:R}):y(t,(M==null?void 0:M.toString())??"",{shouldDirty:!0,shouldValidate:R})},[c,a,y,t,R]);m.useEffect(()=>{const M=t.split(".");let j=x.errors;M.forEach(F=>{j!==void 0&&(j=j[F])}),$(j)},[x,t]);const D=m.useMemo(()=>f||w,[f,w]);console.log(D),m.useEffect(()=>{y(t,_(t))},[k,t,_,y]),m.useEffect(()=>{x.isSubmitted&&S(!0)},[x]);const E=T!==void 0;return v.jsx(v.Fragment,{children:v.jsxs(e,{label:n??"",required:u,disabled:D,hidden:d,withoutLabel:h,isInvalid:E,hint:g,className:p,children:[v.jsxs(sr.Select,{size:o,...b(t,{setValueAs:M=>a?M==null||M===""?null:parseInt(M,10):M==null||M===""?null:M,onChange:()=>{r&&r.forEach(M=>y(M,null,{shouldDirty:!0,shouldValidate:R}))}}),isInvalid:E,hidden:d,disabled:D,className:"w-100",children:[v.jsx("option",{value:""}),k.map(M=>v.jsx("option",{value:M.id??"",children:M.name},M.id))]}),s&&C(t)&&v.jsx("div",{className:"luminus-input-remove-icon inset",children:v.jsx(Rs,{color:"secondary",size:"sm",onClick:O,children:v.jsx(ks,{})})}),T&&v.jsx(Jl,{message:T.message})]})})},og=({InputContainer:e=As,formField:t,label:n,resetsFields:r,size:i,showClearIcon:a,clearValue:o,required:s,hidden:c,disabled:l,rows:u,withoutLabel:d,customFormControlProps:f,minLength:h,maxLength:g,hint:p,onChange:b,className:x})=>{const{register:_,formState:y,setValue:C,watch:w}=rn.useFormContext(),T=Xl({falseIfNotInit:!0}),[$,R]=m.useState(void 0),[S,k]=m.useState(!1),O=m.useCallback(()=>{const j=o??null;C(t,(j==null?void 0:j.toString())??"",{shouldDirty:!0,shouldValidate:S})},[o,C,t,S]),D=m.useCallback(()=>{const j=t.split(".");let F=y.errors;j.forEach(W=>{F!==void 0&&(F=F[W])}),R(F)},[y,t]),E=m.useMemo(()=>l||T,[l,T]);m.useEffect(()=>{D()},[D]),m.useEffect(()=>{y.isSubmitted&&k(!0)},[y]);const M=$!==void 0;return v.jsxs(e,{label:n??"",required:s,disabled:E,hidden:c,withoutLabel:d,isInvalid:M,className:x,hint:p,isForTextAreaInput:!0,children:[v.jsx(sr.Control,{as:"textarea",size:i,..._(t,{setValueAs:j=>j==null||j===""?null:j,onChange:j=>{var F;r&&r.forEach(W=>C(W,null,{shouldDirty:!0,shouldValidate:S})),b&&b((F=j.target)!=null&&F.value?j.target.value.toString():null)}}),isInvalid:M,hidden:c,disabled:E,rows:u??2,className:"w-100",minLength:h,maxLength:g,...f}),a&&w(t)&&v.jsx("div",{className:"luminus-input-remove-icon",children:v.jsx(Rs,{color:"secondary",size:"sm",onClick:O,children:v.jsx(ks,{})})}),$&&v.jsx(Jl,{message:$.message})]})},$a=m.forwardRef(({InputContainer:e=As,type:t,formField:n,label:r,placeholder:i,size:a,resetsFields:o,showClearIcon:s,clearValue:c,required:l,hidden:u,disabled:d,withoutLabel:f,list:h,step:g,CustomOnChangeComponent:p,noSelectOnFocus:b,minLength:x,maxLength:_,hint:y,onChange:C,className:w,autoComplete:T},$)=>{const{register:R,formState:S,setValue:k,watch:O}=rn.useFormContext(),D=Xl({falseIfNotInit:!0}),[E,M]=m.useState(void 0),[j,F]=m.useState(!1),W=m.useCallback(()=>{const z=c??null;t==="number"?k(n,z!==null?Number(z):null,{shouldDirty:!0,shouldValidate:j}):k(n,(z==null?void 0:z.toString())??"",{shouldDirty:!0,shouldValidate:j})},[c,t,k,n,j]),B=m.useCallback(()=>{const z=n.split(".");let L=S.errors;z.forEach(H=>{L!==void 0&&(L=L[H])}),M(L)},[S,n]),U=m.useMemo(()=>d||D,[d,D]);m.useEffect(()=>{B()},[B]),m.useEffect(()=>{S.isSubmitted&&F(!0)},[S]);const N=E!==void 0,[V,X]=m.useState(!1),ne=O(n),K=Cp(t,ne??null,V),{ref:J,...q}=R(n,{setValueAs:z=>t==="number"?z==null||z===""?null:Number(z):z==null||z===""?null:z,onChange:z=>{var L;o&&o.forEach(H=>k(H,null,{shouldDirty:!0,shouldValidate:j})),C&&C((L=z.target)!=null&&L.value?t==="number"?Number(z.target.value)??null:z.target.value.toString():null)},onBlur:()=>X(!1)}),G=m.useRef(null);return m.useImperativeHandle($,()=>G.current,[G]),v.jsxs(e,{label:r??"",required:l,disabled:U,hidden:u,withoutLabel:f,isInvalid:N,hint:y,className:w,children:[v.jsxs("div",{className:"luminus-input-container position-relative w-100",children:[v.jsx(sr.Control,{type:K,placeholder:i??r,size:a,onFocus:z=>{X(!0),!b&&z.target.select()},...q,ref:z=>{J(z),G.current=z},isInvalid:N,hidden:u,disabled:U,list:h,className:"w-100",step:g,minLength:x,maxLength:_,autoComplete:T}),p&&v.jsx("div",{className:"custom-picker-button",children:p})]}),s&&O(n)&&v.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:v.jsx(Rs,{color:"secondary",size:"sm",onClick:W,children:v.jsx(ks,{})})}),E&&v.jsx(Jl,{message:E.message})]})}),dy=(e,t,n)=>{if(e&&"reportValidity"in e){const r=rn.get(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},AT=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?dy(r.ref,n,e):r.refs&&r.refs.forEach(i=>dy(i,n,e))}},See=(e,t)=>{t.shouldUseNativeValidation&&AT(e,t);const n={};for(const r in e){const i=rn.get(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(Oee(t.names||Object.keys(e),r)){const o=Object.assign({},rn.get(n,r));rn.set(o,"root",a),rn.set(n,r,o)}else rn.set(n,r,a)}return n},Oee=(e,t)=>e.some(n=>n.startsWith(t+"."));var Eee=function(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=rn.appendErrors(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n},fd=function(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,s){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return a.shouldUseNativeValidation&&AT({},a),{errors:{},values:n.raw?r:l}})}catch(l){return s(l)}return c&&c.then?c.then(void 0,s):c}(0,function(o){if(function(s){return Array.isArray(s==null?void 0:s.errors)}(o))return{values:{},errors:See(Eee(o.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw o}))}catch(o){return Promise.reject(o)}}};const Mee="_wrapper_9omw0_1",$ee="_controls_9omw0_16",Ree="_explorerWindow_9omw0_20",Aee="_folderList_9omw0_28",jee="_fileList_9omw0_35",Pee="_dndText_9omw0_61",ai={wrapper:Mee,controls:$ee,explorerWindow:Ree,folderList:Aee,fileList:jee,dndText:Pee},qt=m.createContext({apiActions:{},loadDocuments(){throw new Error("DocumentsContext was not initialized.")},reducer:[{},{}],entityType:"",entityId:-1}),Iee="_folderIcon_vxg2z_1",Dee="_defaultFolder_vxg2z_5",Nee="_names_vxg2z_9",Fee="_folderType_vxg2z_13",pc={folderIcon:Iee,defaultFolder:Dee,names:Nee,folderType:Fee},jT=({isActive:e,isDefault:t,folderName:n,typeName:r})=>{const{ProjectIconComponent:i}=m.useContext(Pt);return v.jsxs("div",{className:"d-flex gap-2 align-items-center",children:[v.jsx(i,{icon:`folder${e?"-filled":""}`,className:Q("d-inline-block",t?pc.defaultFolder:"text-primary"),iconProps:{className:pc.folderIcon}}),v.jsxs("div",{className:Q("d-flex flex-column gap-0 align-items-start",pc.names),children:[v.jsx("span",{className:e?"fw-bold":"",children:n}),r?v.jsxs("span",{className:pc.folderType,children:["(",r,")"]}):null]})]})},Lee=({customText:e})=>{const{reducer:[t,n]}=m.useContext(qt),r=m.useCallback(()=>{n({type:"select-folder",folderId:"root"})},[n]);return v.jsx("li",{children:v.jsx("button",{onClick:r,type:"button",className:Q("border-0 bg-transparent"),children:v.jsx(jT,{folderName:e??"root",isActive:t.activeFolder==="root",typeName:"",isDefault:!0})})})};function Bee(e){if(e.state!=="openned-modal")throw new Error('Not in "openned-modal" state!')}const PT=()=>{const e=Gl(),{startLoading:t,stopLoading:n}=m.useContext(Bl),{reducer:[,r]}=m.useContext(qt),i=m.useCallback(async(o,s)=>{t("documents-renameFolder");try{await e.put("/documents/folder/rename",{folderId:o,name:s}),r({type:"update-folders",folderIds:[o],newProperties:{name:s}})}finally{n("documents-renameFolder")}},[e,r,t,n]),a=m.useCallback(async o=>{t("documentsFolderCreate");try{const s=await e.post("/documents/folder",o);r({type:"create-folder",folderData:o,folderId:s.data.id,isOnlyRead:s.data.onlyRead})}finally{n("documentsFolderCreate")}},[e,r,t,n]);return{renameFolder:i,createFolder:a}},Wee=()=>{const{reducer:[e],entityId:t,entityType:n}=m.useContext(qt),{zNumberRequired:r,zStringRequired:i}=Kl(),{createFolder:a}=PT(),o=Zt.object({name:i(),documentTypeId:r()}),s=rn.useForm({resolver:fd(o)}),c=m.useCallback(async l=>{const u={...l,dbObjectId:t.toString(),entity:n,parentFolderId:e.activeFolder==="root"?null:e.activeFolder};await a(u)},[a,t,n,e.activeFolder]);return{formMethods:s,onSubmit:c}},Uee=({handleClose:e})=>{var o;const{texts:{documents:t}}=m.useContext(Pt),{reducer:[n],entityType:r}=m.useContext(qt);if(Bee(n),n.modalType!=="create-folder")throw new Error("Tried to render CreateFolderModal without create-folder modal type reducer state.");const{onSubmit:i,formMethods:a}=Wee();return v.jsx(v.Fragment,{children:v.jsx(rn.FormProvider,{...a,children:v.jsxs(sr,{onSubmit:a.handleSubmit(i),children:[v.jsx(bn.Header,{closeButton:!0,children:v.jsx(bn.Title,{children:t.createFolderInFolder(((o=n.foldersMap.get(n.chosenFolderId))==null?void 0:o.name)??r)})}),v.jsxs(bn.Body,{children:[v.jsx($a,{formField:"name",type:"text",label:t.name,required:!0}),v.jsx(ag,{options:n.documentTypes,formField:"documentTypeId",label:t.folderType,isNumber:!0,required:!0})]}),v.jsxs(bn.Footer,{children:[v.jsx(Mi,{onClick:e,variant:"outlined",color:"secondary",children:t.cancel}),v.jsx(Mi,{type:"submit",children:t.createFolder})]})]})})})},IT=100,zee=(e,t)=>{const n=Gl(),{startLoading:r,stopLoading:i}=m.useContext(Bl),{loadDocuments:a}=m.useContext(qt),{zStringRequired:o,zString:s,zNumberRequired:c,zDateRequired:l}=Kl(),u=Zt.object({name:o(),description:s(),validToDate:l(),documentTypeId:c()}),d=rn.useForm({resolver:fd(u),defaultValues:{...e,validToDate:Wl(e.validToDate)}}),f=m.useCallback(async h=>{r("documents-updateProperties");try{await n.put(`/documents/${e.id}/update-info`,h),await a(),t()}finally{i("documents-updateProperties")}},[n,e.id,t,a,r,i]);return{formMethods:d,onSubmit:f}},Hee=({handleClose:e,file:t})=>{const{texts:{documents:n}}=m.useContext(Pt),{reducer:[r]}=m.useContext(qt),{formMethods:i,onSubmit:a}=zee(t,e);return v.jsxs(v.Fragment,{children:[v.jsx(bn.Header,{closeButton:!0,children:v.jsx(bn.Title,{children:n.editFileProperties})}),v.jsx(rn.FormProvider,{...i,children:v.jsxs(sr,{onSubmit:i.handleSubmit(a),children:[v.jsxs(bn.Body,{children:[v.jsx($a,{formField:"name",type:"text",label:n.name,required:!0}),v.jsx($a,{formField:"validToDate",type:"date",label:n.validSince,required:!0}),v.jsx(ag,{formField:"documentTypeId",label:n.category,options:r.documentTypes,isNumber:!0,required:!0}),v.jsx(og,{formField:"description",label:n.description,customFormControlProps:{maxLength:IT}})]}),v.jsxs(bn.Footer,{children:[v.jsx(Mi,{onClick:e,color:"secondary",variant:"outlined",children:n.cancel}),v.jsx(Mi,{type:"submit",children:n.save})]})]})})]})},Vee=({handleClose:e})=>{const{reducer:[t]}=m.useContext(qt),n=m.useMemo(()=>{if(t.markedFiles.length===1)return t.constantFiles.find(r=>r.id===t.markedFiles[0])},[t.constantFiles,t.markedFiles]);return n===void 0?(e(),v.jsx(v.Fragment,{})):v.jsx(Hee,{file:n,handleClose:e})},qee=()=>{const{reducer:[e,t]}=m.useContext(qt),n=m.useCallback(()=>{t({type:"close-modal"})},[t]),r=m.useMemo(()=>{if(e.state!=="openned-modal")return null;switch(e.modalType){case"create-folder":return v.jsx(Uee,{handleClose:n});case"edit-file-properties":return v.jsx(Vee,{handleClose:n});default:return null}},[e.state,e.modalType]);return v.jsx(bn,{show:e.state==="openned-modal",onHide:n,children:r})},fy="documents_drag_image_element",mc="drop-container-highlight-class",hy="data-drop-container-id",py="data-draggable-id",Yee=()=>{const e=document.getElementById(fy);if(e!==null)return e;const t=document.createElement("div");return t.id=fy,t.style.position="absolute",t.style.top=`${-window.outerHeight}px`,t.style.left=`${-window.outerWidth}px`,t.style.width="50px",t.style.height="50px",t.style.backgroundColor="rgba(0, 0, 0, 0.5)",t.style.color="white",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.fontSize="16px",t.style.borderRadius="5px",document.body.appendChild(t),t},sg=()=>{const{apiActions:{moveDocuments:e},reducer:[t]}=m.useContext(qt),n=m.useCallback(l=>{var u;if(t.markedFiles.length>0){const d=Yee();d.innerHTML=t.markedFiles.length.toString(),l.dataTransfer.setDragImage(d,0,0),l.dataTransfer.clearData(),l.dataTransfer.setData("application/json",JSON.stringify(t.markedFiles)),l.dataTransfer.dropEffect="none",l.dataTransfer.effectAllowed="move"}else l.dataTransfer.setData("application/json",JSON.stringify([parseInt(((u=l.currentTarget.attributes.getNamedItem(py))==null?void 0:u.nodeValue)??"",10)])),l.dataTransfer.dropEffect="none",l.dataTransfer.effectAllowed="move"},[t.markedFiles]),r=m.useCallback(l=>({[py]:l,draggable:t.markedFiles.length===0||t.markedFiles.includes(l),onDragStart:n}),[n,t.markedFiles]),i=m.useCallback(l=>u=>{var h;u.preventDefault(),u.stopPropagation(),u.currentTarget.classList.remove(mc);const d=u.dataTransfer.files;if(l&&d&&d.length>0){l(d);return}const f=u.dataTransfer.getData("application/json");if(f){const g=JSON.parse(f),p=parseInt(((h=u.currentTarget.attributes.getNamedItem(hy))==null?void 0:h.value)??"",10);e(p,g)}},[e]),a=m.useCallback(()=>l=>{l.preventDefault(),l.stopPropagation()},[]),o=m.useCallback(l=>u=>{u.preventDefault(),u.stopPropagation(),u.dataTransfer.types.includes("Files")?(u.dataTransfer.dropEffect="copy",u.currentTarget.classList.add(mc)):!l&&u.dataTransfer.types.includes("application/json")?(u.dataTransfer.dropEffect="move",u.currentTarget.classList.add(mc)):u.dataTransfer.dropEffect="none"},[]),s=m.useCallback(l=>{l.preventDefault(),l.stopPropagation(),l.target===l.currentTarget&&(l.dataTransfer.dropEffect="none",l.currentTarget.classList.remove(mc))},[]),c=m.useCallback((l,u)=>({onDrop:i(u==null?void 0:u.onFilesDrop),onDragOver:a(),onDragEnter:o(u==null?void 0:u.ignoreInner),onDragLeave:s,[hy]:l}),[i,a,o,s]);return{getDraggableProps:r,getDropProps:c}};function DT(e,t,n){for(let r=0;r<e.childrenIds.length;r++){const i=e.childrenIds[r];if(i===t)return!0;const a=n.get(i);if(a&&DT(a,t,n))return!0}return!1}function Gee(e){if(e.activeFolder==="root")return!1;const t=e.foldersMap.get(e.activeFolder);return!(t!=null&&t.onlyRead)}function NT(e,t){const n=t.get(e);return n===void 0?"":n.parentId===null?n.name:`${NT(n.parentId,t)}/${n.name}`}const Zee=()=>{const{zString:e,zStringRequired:t,zNumberRequired:n}=Kl();return{formSchema:m.useMemo(()=>Zt.object({validTo:t(),description:e(),name:e(),documentTypeId:n()}),[n,e,t])}},cg=({handleClose:e,files:t,targetFolderId:n})=>{var f;const{texts:{documents:r}}=m.useContext(Pt),{reducer:[i],apiActions:{uploadFiles:a}}=m.useContext(qt),o=m.useMemo(()=>[...t],[t]),s=m.useMemo(()=>n??i.activeFolder,[i.activeFolder,n]),c=m.useMemo(()=>s==="root"?void 0:i.foldersMap.get(s),[s,i.foldersMap]),{formSchema:l}=Zee(),u=rn.useForm({resolver:fd(l),defaultValues:{validTo:Wl(new Date().toISOString()),documentTypeId:(f=i.documentTypes.find(h=>{var g;return h.name===((g=i.foldersMap.get(s))==null?void 0:g.defaultDocType)}))==null?void 0:f.id}}),d=m.useCallback(async h=>{s!=="root"&&(await a(t,{folderId:s,...h}),e())},[t,e,s,a]);return v.jsxs(bn,{show:!0,onHide:e,children:[v.jsx(bn.Header,{closeButton:!0,children:v.jsxs("div",{children:[r.uploadFilesPrompt(t.length,c.name),v.jsx("ul",{children:o.map((h,g)=>v.jsxs("li",{children:[h.name," - ",xa(h.size)]},`${h.name}-${g}`))})]})}),v.jsx(rn.FormProvider,{...u,children:v.jsxs(sr,{onSubmit:u.handleSubmit(d),children:[v.jsxs(bn.Body,{children:[v.jsx(ag,{formField:"documentTypeId",label:r.documentType,options:i.documentTypes,isNumber:!0,required:!0}),v.jsx($a,{formField:"validTo",label:r.validSince,type:"date",required:!0}),o.length===1?v.jsx($a,{formField:"name",label:r.name,type:"text"}):null,v.jsx(og,{formField:"description",label:r.description,customFormControlProps:{maxLength:IT}})]}),v.jsxs(bn.Footer,{children:[v.jsx(Mi,{variant:"outlined",color:"secondary",onClick:e,children:r.cancel}),v.jsx(Mi,{type:"submit",children:r.upload})]})]})})]})},Kee="_folder_1cktt_1",Xee="_collapseArrowDiv_1cktt_8",Qee="_button_1cktt_20",Jee="_nestedList_1cktt_24",ete="_numberOfFiles_1cktt_31",tte="_collapseArrow_1cktt_8",oi={folder:Kee,collapseArrowDiv:Xee,button:Qee,nestedList:Jee,numberOfFiles:ete,collapseArrow:tte},FT=({dirId:e,writePermissions:t})=>{const{ProjectIconComponent:n}=m.useContext(Pt),{reducer:[r,i]}=m.useContext(qt),{getDropProps:a}=sg(),[o,s]=m.useState(null),[c,l]=m.useState(!0),u=m.useMemo(()=>{const p=r.foldersMap.get(e);if(p===void 0)throw new Error(`tried to get dir with id ${e}`);return p},[e,r.foldersMap]),d=m.useCallback(()=>{r.activeFolder!=="root"&&DT(u,r.activeFolder,r.foldersMap)&&i({type:"select-folder",folderId:e}),l(!0)},[e,u,i,r.activeFolder,r.foldersMap]),f=m.useMemo(()=>u.childrenIds.length>0,[u.childrenIds.length]),h=m.useCallback(()=>{i({type:"select-folder",folderId:e})},[e,i]),g=m.useMemo(()=>r.filteredFiles.filter(p=>p.folderId===e&&p.archive===!1).length,[e,r.filteredFiles]);return v.jsxs(v.Fragment,{children:[v.jsxs("li",{className:oi.folder,children:[v.jsx("div",{className:oi.collapseArrowDiv,children:f?c?v.jsx("button",{onClick:()=>l(!1),type:"button",children:v.jsx(n,{icon:"chevron-right",iconProps:{className:oi.collapseArrow}})}):v.jsx("button",{onClick:d,type:"button",children:v.jsx(n,{icon:"chevron-down",iconProps:{className:oi.collapseArrow}})}):null}),v.jsx("button",{className:Q(oi.button),onClick:h,type:"button",...t&&!u.onlyRead?a(e,{onFilesDrop:p=>s(p)}):{},children:v.jsxs("div",{className:"d-flex align-items-center gap-2",children:[v.jsx(jT,{isDefault:u.isDefault,folderName:u.name,typeName:u.defaultDocType??"",isActive:e===r.activeFolder}),g>0?v.jsxs("span",{className:oi.numberOfFiles,children:["[",g,"]"]}):void 0]})}),f?c?null:v.jsx("ul",{className:oi.nestedList,children:u==null?void 0:u.childrenIds.map(p=>v.jsx(FT,{dirId:p,writePermissions:t},p))}):void 0]}),o!==null?v.jsx(cg,{files:o,handleClose:()=>s(null),targetFolderId:e}):null]})},nte="_wrapper_1th2u_1",rte="_downloadButton_1th2u_9",LT={wrapper:nte,downloadButton:rte};function ite(e){return Ve({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M320 464c8.8 0 16-7.2 16-16V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16H320zM0 64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64z"},child:[]}]})(e)}function ate(e){return Ve({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M448 80c8.8 0 16 7.2 16 16V415.8l-5-6.5-136-176c-4.5-5.9-11.6-9.3-19-9.3s-14.4 3.4-19 9.3L202 340.7l-30.5-42.7C167 291.7 159.8 288 152 288s-15 3.7-19.5 10.1l-80 112L48 416.3l0-.3V96c0-8.8 7.2-16 16-16H448zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm80 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"},child:[]}]})(e)}function ote(e){return Ve({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M23 1.5q.41 0 .7.3.3.29.3.7v19q0 .41-.3.7-.29.3-.7.3H7q-.41 0-.7-.3-.3-.29-.3-.7V18H1q-.41 0-.7-.3-.3-.29-.3-.7V7q0-.41.3-.7Q.58 6 1 6h5V2.5q0-.41.3-.7.29-.3.7-.3zM6 13.28l1.42 2.66h2.14l-2.38-3.87 2.34-3.8H7.46l-1.3 2.4-.05.08-.04.09-.64-1.28-.66-1.29H2.59l2.27 3.82-2.48 3.85h2.16zM14.25 21v-3H7.5v3zm0-4.5v-3.75H12v3.75zm0-5.25V7.5H12v3.75zm0-5.25V3H7.5v3zm8.25 15v-3h-6.75v3zm0-4.5v-3.75h-6.75v3.75zm0-5.25V7.5h-6.75v3.75zm0-5.25V3h-6.75v3Z"},child:[]}]})(e)}function ste(e){return Ve({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M23.004 1.5q.41 0 .703.293t.293.703v19.008q0 .41-.293.703t-.703.293H6.996q-.41 0-.703-.293T6 21.504V18H.996q-.41 0-.703-.293T0 17.004V6.996q0-.41.293-.703T.996 6H6V2.496q0-.41.293-.703t.703-.293zM6.035 11.203l1.442 4.735h1.64l1.57-7.876H9.036l-.937 4.653-1.325-4.5H5.38l-1.406 4.523-.938-4.675H1.312l1.57 7.874h1.641zM22.5 21v-3h-15v3zm0-4.5v-3.75H12v3.75zm0-5.25V7.5H12v3.75zm0-5.25V3h-15v3Z"},child:[]}]})(e)}const cte="_excel_18ggp_1",lte="_word_18ggp_5",ute="_pdf_18ggp_9",dte="_image_18ggp_13",gc={excel:cte,word:lte,pdf:ute,image:dte},BT=({fileExtension:e,className:t,...n})=>{switch(e==null?void 0:e.toUpperCase()){case"JPG":case"JPEG":case"BMP":case"PNG":return v.jsx("span",{className:Q(t,gc.image),children:v.jsx(ate,{...n})});case"XLS":case"XLSX":case"CSV":return v.jsx(ote,{className:Q(t,gc.excel),...n});case"DOC":case"DOCM":case"DOCX":return v.jsx(ste,{className:Q(t,gc.word),...n});case"PDF":return v.jsx(o8,{className:Q(t,gc.pdf),...n});default:return v.jsx(ite,{})}},fte=()=>{const{ProjectIconComponent:e,texts:{documents:t}}=m.useContext(Pt),{apiActions:{downloadFile:n},reducer:[r]}=m.useContext(qt),i=m.useMemo(()=>r.activeFolder==="root",[r.activeFolder]);return{columns:m.useMemo(()=>[{fieldName:"id",caption:"id",type:"number",isVisible:!1},...i?[{fieldName:"folderName",caption:t.folder,type:"string"}]:[],{fieldName:"--icon",caption:"",type:"string",valueFormat:o=>v.jsx(BT,{fileExtension:o.row.original.fileExtension}),width:36,align:"center",filterType:"none",noSort:!0},{fieldName:"name",caption:t.name,type:"string"},{fieldName:"description",caption:t.description,type:"string"},{fieldName:"fileExtension",caption:t.fileExtension,type:"string",filterType:"select",width:50},{fieldName:"--downloadButton",caption:"",type:"number",filterType:"none",width:38,align:"center",noSort:!0,valueFormat:o=>v.jsx(Ql,{className:LT.downloadButton,onClick:()=>n(o.row.original.id,!0),children:v.jsx(e,{icon:"file-download"})})},{fieldName:"documentTypeName",caption:t.documentType,type:"string",filterType:"select"},{fieldName:"validToDate",caption:t.validSince,type:"date"},{fieldName:"size",caption:t.size,type:"number",valueFormat:({cell:{value:o}})=>o!==void 0?xa(o*1024*1024):"",filterType:"none"},{fieldName:"archive",caption:t.archived,type:"boolean",filterType:"select",valueFormat:({cell:{value:o}})=>o?t.yes[0]:t.no[0]}],[e,t.archived,t.description,t.documentType,t.fileExtension,t.folder,t.name,t.no,t.size,t.validSince,t.yes,n,i])}},hte=({BnfTableComponent:e,tableIdentifier:t,writePermissions:n})=>{const{reducer:[r,i]}=m.useContext(qt),{columns:a}=fte(),o=m.useCallback(h=>{i({type:"mark-files-by-action",setStateAction:h})},[i]),s=m.useMemo(()=>r.activeFolder==="root",[r.activeFolder]),c=m.useMemo(()=>{var h;return r.activeFolder==="root"?!1:((h=r.foldersMap.get(r.activeFolder))==null?void 0:h.onlyRead)??!1},[r.activeFolder,r.foldersMap]),l=m.useMemo(()=>({enabled:n&&!s,idField:"id",selectedRows:r.markedFiles,setSelectedRows:o}),[s,o,r.markedFiles,n]),u=m.useMemo(()=>r.activeFolder==="root"?r.filteredFiles:r.filteredFiles.filter(h=>h.folderId===r.activeFolder),[r.activeFolder,r.filteredFiles]),{getDraggableProps:d}=sg(),f=m.useCallback(h=>n===!1||c?{}:d(h.id),[d,c,n]);return v.jsx("div",{className:Q(LT.wrapper),children:v.jsx(e,{data:u,columnsDef:a,rowSelection:l,useScrollableContainer:!0,getRowProps:f,defaultConfig:{defaultFilters:[{id:"archive",value:"false"}]},tableId:t,searchStatePrefix:"docs",useSearchState:!0,hideBottomBar:!0},r.activeFolder)})},pte="_wrapper_1q562_1",mte="_divButtons_1q562_10",df={wrapper:pte,divButtons:mte},gte="_wrapper_1bpdd_1",vte="_fileInput_1bpdd_5",my={wrapper:gte,fileInput:vte},bte=({entityId:e,entityType:t,children:n,disabled:r})=>{const i=m.useRef(null),[a,o]=m.useState(null),{reducer:[s]}=m.useContext(qt),c=f=>{var h;(((h=f.target.files)==null?void 0:h.length)??0)>0&&o(f.target.files)},l=m.useCallback(()=>{o(null),i.current&&(i.current.value="")},[]),u=m.useMemo(()=>`documents-upload-${t}-${e}`,[e,t]),d=m.useMemo(()=>r||s.activeFolder==="root",[r,s.activeFolder]);return v.jsxs("div",{className:my.wrapper,children:[v.jsx("label",{htmlFor:u,className:Q("btn btn-context luminus-context-button",d?"disabled":void 0),children:n}),v.jsx("input",{id:u,type:"file",multiple:!0,onChange:c,className:my.fileInput,ref:i,disabled:d}),a!==null?v.jsx(cg,{handleClose:l,files:a}):void 0]})},Gn=({children:e,onClick:t,className:n,disabled:r=!1})=>v.jsx(Ql,{onClick:t,className:n,disabled:r,children:e}),yte=({className:e,entityId:t,entityType:n})=>{var $,R;const{texts:{documents:r}}=m.useContext(Pt),{prompt:i}=hx(),{confirm:a}=_p(),{apiActions:o,reducer:[s,c]}=m.useContext(qt),{deleteFiles:l,renameFiles:u,downloadAsZip:d,archivateFiles:f,deleteDirectory:h}=o,{renameFolder:g}=PT(),p=m.useMemo(()=>s.markedFiles.length===0,[s.markedFiles.length]),b=m.useMemo(()=>s.markedFiles.length===1,[s.markedFiles.length]),x=m.useCallback(async()=>{if(s.activeFolder==="root")return;const S=await i(r.enterNewFolderName,{input:"input"});S!==null&&g(s.activeFolder,S)},[r.enterNewFolderName,i,g,s.activeFolder]),_=m.useCallback(async()=>{if(s.activeFolder==="root")return;const S=await i(r.enterNewFileName,{input:"input"});S!==null&&u(S)},[r.enterNewFileName,i,u,s.activeFolder]),y=m.useMemo(()=>s.activeFolder==="root",[s.activeFolder]),C=m.useMemo(()=>{var S;return s.activeFolder==="root"?!1:((S=s.foldersMap.get(s.activeFolder))==null?void 0:S.onlyRead)??!1},[s.activeFolder,s.foldersMap]),w=m.useMemo(()=>s.markedFiles.every(S=>{var k;return((k=s.constantFiles.find(O=>O.id===S))==null?void 0:k.archive)===!1}),[s.constantFiles,s.markedFiles]),T=m.useMemo(()=>s.markedFiles.every(S=>{var k;return((k=s.constantFiles.find(O=>O.id===S))==null?void 0:k.archive)===!0}),[s.constantFiles,s.markedFiles]);return v.jsx("div",{className:Q(e,df.wrapper,s.state==="folder-choosing"?"ignore-dim":void 0,"d-flex justify-content-between"),children:s.state!=="folder-choosing"?v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:df.divButtons,children:[v.jsx(bte,{entityId:t,entityType:n,disabled:C,children:r.uploadFiles}),v.jsx(Gn,{onClick:()=>{c({type:"open-modal",modalType:"create-folder",chosenFolderId:s.activeFolder??"root"})},disabled:C,children:r.createFolder}),v.jsx(Gn,{disabled:s.activeFolder==="root"||(($=s.foldersMap.get(s.activeFolder))==null?void 0:$.isDefault),onClick:async()=>{var k;await a(`${r.deleteFolder} ${(k=s.foldersMap.get(s.activeFolder))==null?void 0:k.name}?`)&&h(s.activeFolder)},children:r.deleteFolder}),v.jsx(Gn,{disabled:s.activeFolder==="root"||((R=s.foldersMap.get(s.activeFolder))==null?void 0:R.isDefault),onClick:x,children:r.renameFolder})]}),!y&&!C?v.jsxs("div",{className:df.divButtons,children:[v.jsx(Gn,{onClick:()=>{c({type:"open-modal",modalType:"edit-file-properties"})},disabled:!b,children:r.editFileProperties}),v.jsx(Gn,{onClick:async()=>{await a(r.confirmDeleteFile(s.markedFiles.length))&&l(s.markedFiles)},disabled:p,children:r.delete}),T?v.jsx(Gn,{onClick:async()=>{await a(r.confirmDearchiveFile(s.markedFiles.length))&&await f(!0)},disabled:p,children:r.dearchivate}):v.jsx(Gn,{onClick:async()=>{await a(r.confirmArchiveFile(s.markedFiles.length))&&await f()},disabled:p||!w,children:r.archivate}),v.jsx(Gn,{onClick:_,disabled:p,children:r.rename}),v.jsx(Gn,{onClick:d,disabled:p,children:r.downloadZip})]}):null]}):s.state==="folder-choosing"?v.jsx(v.Fragment,{children:v.jsx(Gn,{onClick:()=>c({type:"return-from-folder-choosing"}),className:Q("ignore-dim","body-background-color"),children:r.back})}):void 0})},xte=({file:e})=>{const{confirm:t}=_p(),{reducer:[n],apiActions:{downloadFile:r}}=m.useContext(qt),{texts:{documents:i}}=m.useContext(Pt),a=m.useCallback(async()=>{await t(i.confirmFileDownload(e.name,e.size==null?void 0:xa(e.size*1024*1024)))&&r(e.id)},[t,i,r,e.id,e.name,e.size]);return v.jsxs(Fl,{action:!0,onClick:a,children:[v.jsx(dn,{variant:"body",className:"text-muted",children:NT(e.folderId,n.foldersMap)}),v.jsxs("div",{className:"d-flex justify-content-between gap-2",children:[v.jsx(dn,{variant:"body",children:e.name}),v.jsx(dn,{variant:"body",children:e.size==null?null:xa(e.size*1024*1024)})]})]})},_te="_typeSelect_m3myk_1",wte={typeSelect:_te},Cte=()=>{const{reducer:[e]}=m.useContext(qt),{texts:{documents:t}}=m.useContext(Pt),[n,r]=m.useState(""),[i,a]=m.useState(null),o=m.useMemo(()=>{const c=new Map;return e.filteredFiles.forEach(u=>{c.get(u.documentTypeId)===void 0&&c.set(u.documentTypeId,u.documentTypeName)}),[{id:null,name:t.all},...Array.from(c).map(u=>({id:u[0],name:u[1]}))]},[t.all,e.filteredFiles]),s=m.useMemo(()=>e.filteredFiles.filter(c=>pp(c.name,n)&&(i===null||c.documentTypeId===i)),[n,i,e.filteredFiles]);return v.jsxs("div",{className:"d-flex h-100 flex-column",children:[v.jsxs("div",{className:"d-flex gap-1 mb-1",children:[v.jsx(N2,{options:o,label:t.documentType,value:i,onChange:a,isNumber:!0,size:"sm",className:wte.typeSelect}),v.jsx(I2,{label:t.search,type:"text",value:n,onChange:c=>r(c===null?"":c),className:"flex-grow-1",size:"sm"})]}),v.jsx(B1,{className:"overflow-y-auto",children:s.map(c=>v.jsx(xte,{file:c},c.id))})]})};function Tte(e){return{name:e.name,defaultDocType:e.defaultDocType,childrenIds:[],parentId:e.parentId??null,isDefault:e.isDefault,onlyRead:e.onlyRead}}function kte(e){const t=[],n=new Map,r=new Map;return e.forEach(i=>{n.set(i.id,Tte(i)),i.parentId===null?t.push(i.id):r.set(i.id,i.parentId)}),r.forEach((i,a)=>{const o=n.get(i);if(o===void 0)throw new Error(`Did not get folder with ID ${i}, which is supposed to be parent directory of folder with ID ${a}`);o.childrenIds.push(a)}),{dirsMap:n,rootIds:t}}function gy(e,t){const n=t.toUpperCase();return e.filter(r=>{var a;const i=(a=r.name)==null?void 0:a.toUpperCase();return i==null?void 0:i.includes(n)})}function Ste(e,t){return e.map(n=>{var r;return{...n,folderName:((r=t.get(n.folderId))==null?void 0:r.name)??""}})}const Ote=([e,t],n,r)=>{const{texts:{documents:i}}=m.useContext(Pt),{startLoading:a,stopLoading:o}=m.useContext(Bl),{addNotification:s}=Yl(),c=Gl(),l=m.useCallback(async y=>{a("documentList");try{const w=(await c.get(`/documents/${n}/${r}`)).data,{dirsMap:T,rootIds:$}=kte(w.folders),R=Ste(w.documents,T);t({type:"load-data",files:R,foldersMap:T,rootFolderIds:$,setActiveFolder:y})}finally{o("documentList")}},[c,t,r,n,a,o]);m.useEffect(()=>{l(!0)},[l]);const u=m.useCallback(async()=>{a("documents-types");try{const y=await c.get(`/documents/types/${n}`);if(y.status!==200)throw new Error(`Unexpected status code: ${y.status}`);t({type:"load-document-types",documentTypes:y.data})}finally{o("documents-types")}},[c,t,n,a,o]);m.useEffect(()=>{u()},[u]);const d=m.useCallback(async(y,C)=>{const w=C??e.markedFiles;a("documentsMove");try{await c.put(`/documents/move-to-folder?folderId=${y}`,w),t({type:"update-files",fileIds:w,newProperties:{folderId:y}}),s(i.fileMoveSuccessful(w.length,e.foldersMap.get(y).name),"success")}finally{o("documentsMove")}},[e.markedFiles,e.foldersMap,a,c,t,s,i,o]),f=m.useCallback(async y=>{const C=y??e.markedFiles;a("documentsFilesDelete");try{const w=await c.delete(`/documents/delete?${Af(C,"documentIds")}`);if(w.status!==200)throw new Error(`Unexpected status code: ${w.status}`);t({type:"delete-files",fileIds:C}),s(i.fileDeleteSuccessful(C.length),"success")}finally{o("documentsFilesDelete")}},[e.markedFiles,a,c,t,s,i,o]),h=m.useCallback(async y=>{var C;if(!(y==="root"||(C=e.foldersMap.get(y))!=null&&C.isDefault)){a("documentsFolderDelete");try{const w=await c.delete(`/documents/folder/${y}`);if(w.status!==200)throw new Error(`Unexpected status code: ${w.status}`);t({type:"delete-folder",folderId:y}),s(i.folderDeleteSuccessful(e.foldersMap.get(y).name),"success")}finally{o("documentsFolderDelete")}}},[e.foldersMap,a,c,t,s,i,o]),g=m.useCallback(async y=>{a("documentsRename");try{const C=await c.put("/documents/update-name",{documentIds:e.markedFiles,name:y});if(C.status!==200)throw new Error(`Unexpected status code: ${C.status}`);l()}finally{o("documentsRename")}},[a,c,e.markedFiles,l,o]),p=m.useCallback(async y=>{a("documents-archivate");try{const C=await c.put(`/documents/${y?"dearchive":"archive"}`,e.markedFiles);if(C.status!==200)throw new Error(`Unexpected status code: ${C.status}`);t({type:"update-files",fileIds:e.markedFiles,newProperties:{archive:!y}}),s((y?i.dearchivateSuccessful:i.archivateSuccessful)(e.markedFiles.length),"success")}finally{o("documents-archivate")}},[a,c,e.markedFiles,t,s,i.archivateSuccessful,i.dearchivateSuccessful,o]),b=m.useCallback(async()=>{var C;if(e.activeFolder==="root")return;const y=e.markedFiles.length;s(i.downloadAsZip(y),"info"),a("documents-ZIP_download");try{const w=await c.get(`/documents/download-zip?${Af(e.markedFiles,"documentIds")}`,{responseType:"blob"});Hc(w.data,(((C=e.foldersMap.get(e.activeFolder))==null?void 0:C.name)??"")+"_files")}finally{o("documents-ZIP_download")}},[e.activeFolder,e.markedFiles,e.foldersMap,s,i,a,c,o]),x=m.useCallback(async(y,C)=>{s(i.downloadingFile,"info"),a("documents-downloading_file");try{const w=await c.get(`/documents/${y}?isSmall=true`,{responseType:"blob"}),T=e.constantFiles.find(R=>R.id===y),$=`${(T==null?void 0:T.name)??y.toString()}.${T!=null&&T.fileExtension?T==null?void 0:T.fileExtension.toLowerCase():"unknown"}`;Hc(w.data,$,C)}finally{o("documents-downloading_file")}},[s,i.downloadingFile,a,c,e.constantFiles,o]),_=m.useCallback(async(y,C)=>{a("documents-upload"),s(i.uploadingDocuments,"info");try{await c.postForm("/documents/upload",{files:y,...C}),await l()}finally{o("documents-upload")}},[a,s,i.uploadingDocuments,c,l,o]);return{loadDocuments:l,moveDocuments:d,deleteFiles:f,deleteDirectory:h,renameFiles:g,archivateFiles:p,downloadAsZip:b,downloadFile:x,uploadFiles:_}},Ete=(e,t)=>{var n,r;switch(t.type){case"load-data":{const i={...e,constantFiles:t.files,filteredFiles:gy(t.files,e.searchString),foldersMap:t.foldersMap,rootFolderIds:t.rootFolderIds};if(t.setActiveFolder){const a=t.rootFolderIds.find(o=>t.files.some(s=>s.archive===!1&&s.folderId===o))??"root";i.activeFolder=a}return i}case"load-document-types":return{...e,documentTypes:t.documentTypes};case"select-folder":return{...e,activeFolder:t.folderId,markedFiles:[]};case"mark-file":{const i=e.markedFiles.includes(t.fileId)?[...e.markedFiles.filter(a=>a!==t.fileId)]:[...e.markedFiles,t.fileId];return{...e,state:i.length>0?"selection-file":"explorer",markedFiles:i}}case"mark-files-by-action":{const i=typeof t.setStateAction=="function"?t.setStateAction(e.markedFiles):t.setStateAction;return{...e,state:i.length>0?"selection-file":"explorer",markedFiles:i}}case"mark-all-files":return e.markedFiles.length<e.filteredFiles.filter(i=>i.folderId===e.activeFolder).length?{...e,markedFiles:e.filteredFiles.filter(i=>i.folderId===e.activeFolder).map(i=>i.id),state:"explorer"}:{...e,markedFiles:[],state:"explorer"};case"enter-folder-choosing":return e.state==="folder-choosing"||e.state==="openned-modal"?e:{...e,state:"folder-choosing",canTargetRoot:t.canTargetRoot??!1,previousState:e.state,choosingType:t.choosingType};case"return-from-folder-choosing":return e.state!=="folder-choosing"?e:{...e,state:e.previousState};case"update-files":return{...e,filteredFiles:[...e.filteredFiles.map(i=>t.fileIds.includes(i.id)?{...i,...t.newProperties}:i)],constantFiles:[...e.constantFiles.map(i=>t.fileIds.includes(i.id)?{...i,...t.newProperties}:i)],markedFiles:[],state:"explorer"};case"update-folders":{const i=new Map(e.foldersMap);return t.folderIds.forEach(a=>{i.set(a,{...e.foldersMap.get(a),...t.newProperties})}),{...e,foldersMap:i}}case"delete-files":return{...e,filteredFiles:[...e.filteredFiles.filter(i=>!t.fileIds.includes(i.id))],constantFiles:[...e.constantFiles.filter(i=>!t.fileIds.includes(i.id))],markedFiles:e.markedFiles.filter(i=>!t.fileIds.includes(i)),state:"explorer"};case"open-modal":switch(t.modalType){case"create-folder":return{...e,state:"openned-modal",modalType:t.modalType,chosenFolderId:t.chosenFolderId};default:return{...e,state:"openned-modal",modalType:t.modalType}}case"close-modal":return{...e,state:"explorer"};case"delete-folder":{const i=new Map(e.foldersMap),a=(n=i.get(t.folderId))==null?void 0:n.parentId;let o=[...e.rootFolderIds];if(a){const s=JSON.parse(JSON.stringify(i.get(a)));s.childrenIds=s.childrenIds.filter(c=>c!==t.folderId),i.set(a,s)}else o=o.filter(s=>s!==t.folderId);return i.delete(t.folderId),{...e,rootFolderIds:o,foldersMap:i,activeFolder:"root"}}case"create-folder":{const i=new Map(e.foldersMap);i.set(t.folderId,{name:t.folderData.name,defaultDocType:(r=e.documentTypes.find(o=>o.id===t.folderData.documentTypeId))==null?void 0:r.name,childrenIds:[],parentId:t.folderData.parentFolderId,isDefault:!1,onlyRead:t.isOnlyRead});const a=[...e.rootFolderIds];if(t.folderData.parentFolderId===null)a.push(t.folderId);else{const o=i.get(t.folderData.parentFolderId),s=JSON.parse(JSON.stringify(o));s.childrenIds.push(t.folderId),i.set(t.folderData.parentFolderId,s)}return{...e,state:"explorer",rootFolderIds:a,foldersMap:i}}case"search-files":{const i=gy(e.constantFiles,t.searchString);return{...e,searchString:t.searchString,filteredFiles:i,markedFiles:e.markedFiles.filter(a=>i.map(o=>o.id).includes(a))}}default:throw new Error("Wrong action.type specified.")}},Mte=()=>{const e={state:"explorer",activeFolder:"root",searchString:"",filteredFiles:[],constantFiles:[],foldersMap:new Map,rootFolderIds:[],markedFiles:[],documentTypes:[]},[t,n]=m.useReducer(Ete,e);return[t,n]},$te=m.memo(({entityType:e,entityId:t,className:n,BnfTableComponent:r,tableIdentifier:i,customRootFolderName:a,writePermissions:o=!0,...s})=>{const{isMobile:c}=$s(),{ProjectIconComponent:l,texts:{documents:u}}=m.useContext(Pt),[d,f]=Mte(),[h,g]=m.useState(null),{loadDocuments:p,...b}=Ote([d,f],e,t),x=m.useMemo(()=>({entityId:t,entityType:e,apiActions:b,loadDocuments:p,reducer:[d,f]}),[t,e,b,p,d,f]),{getDropProps:_}=sg();return c?v.jsx(qt.Provider,{value:x,children:v.jsx(Cte,{})}):v.jsx("div",{...s,className:Q(ai.wrapper,n),onDragOver:y=>{y.dataTransfer.dropEffect="none",y.stopPropagation(),y.preventDefault()},onDragEnter:y=>{y.dataTransfer.dropEffect="none",y.stopPropagation(),y.preventDefault()},children:v.jsxs(qt.Provider,{value:x,children:[v.jsx("div",{className:Q(d.state==="folder-choosing"?"dim-others":void 0,ai.explorerWindow),children:v.jsxs("ul",{className:ai.folderList,children:[v.jsx(Lee,{customText:a??e}),d.rootFolderIds.map(y=>v.jsx(FT,{dirId:y,writePermissions:o},y))]})}),v.jsxs("div",{className:Q(ai.explorerWindow,ai.fileList),...o&&Gee(d)?_(d.activeFolder,{onFilesDrop:y=>g(y),ignoreInner:!0}):{},children:[v.jsxs("div",{className:ai.dndText,children:[v.jsx(l,{icon:"file-upload",iconProps:{style:{marginRight:0}}}),v.jsx("span",{children:u.dropToUpload})]}),v.jsx(hte,{tableIdentifier:i,BnfTableComponent:r,writePermissions:o},(d.activeFolder==="root").toString())]}),o?v.jsx(yte,{className:ai.controls,entityType:e,entityId:t}):null,v.jsx(qee,{}),h!==null?v.jsx(cg,{files:h,handleClose:()=>g(null),targetFolderId:d.activeFolder==="root"?void 0:d.activeFolder}):null]})})}),Rte=m.createContext(void 0);exports.AbstractModalHeader=Y1;exports.Alert=Ap;exports.ApprovalState=VE;exports.AuthContext=Tp;exports.AvatarIcon=x2;exports.Backdrop=A2;exports.BaseModal=U1;exports.BootstrapModalManager=z1;exports.Button=qh;exports.Col=Gh;exports.ConfirmContext=dx;exports.ContextButton=Ql;exports.CustomSelectInput=N2;exports.DelegationContext=g2;exports.Documents=$te;exports.Dropdown=Op;exports.DropdownDivider=_2;exports.DropdownItem=la;exports.DropdownToggle=Sp;exports.ENTERED=Ir;exports.ENTERING=mr;exports.EXITED=Pr;exports.EXITING=jc;exports.FaMinus=r8;exports.FaPlus=i8;exports.FaSearch=a8;exports.Fade=zr;exports.FileExtensionIcon=BT;exports.FileUploadContextButton=w5;exports.FloatingLabelInput=eu;exports.Form=sr;exports.FormCheckInput=Nl;exports.FormControl=M1;exports.FormDisabledContext=b2;exports.FormSelect=ip;exports.FromToDatePickerDropdownToggle=u7;exports.HelmetContext=v2;exports.HookFormTextAreaInput=og;exports.HookFormTextInput=$a;exports.HtmlTooltip=wx;exports.IconButton=Rs;exports.Ie=HE;exports.InputAnchorContainer=P2;exports.InvalidFeedback=Jl;exports.ListGroup=B1;exports.ListGroupItem=Fl;exports.LoadingContext=Bl;exports.LoginState=vx;exports.LuminusComponentsContext=Pt;exports.MdArrowRight=jO;exports.MdCheck=PO;exports.MdCircle=AO;exports.MdClear=ks;exports.MdOutlineAddCircleOutline=WO;exports.MdOutlineArrowOutward=IO;exports.MdOutlineCameraAlt=YO;exports.MdOutlineChevronRight=XO;exports.MdOutlineClose=lx;exports.MdOutlineDelete=sx;exports.MdOutlineEdit=GO;exports.MdOutlineExpand=NO;exports.MdOutlineFileUpload=cx;exports.MdOutlineKeyboardArrowLeft=HO;exports.MdOutlineKeyboardArrowRight=VO;exports.MdOutlineKeyboardDoubleArrowLeft=qO;exports.MdOutlineMenu=QO;exports.MdOutlinePhotoLibrary=ZO;exports.MdOutlineStar=eE;exports.MdSave=RO;exports.MdSaveAs=$O;exports.MdSearch=MO;exports.MiniDetailWrapper=D2;exports.Modal=bn;exports.ModalContext=cp;exports.NoInputContainer=j2;exports.Oe=I;exports.PageContainer=kee;exports.PrimaryButton=Mi;exports.PromptContext=fx;exports.Re=pee;exports.ResponsiveContextDropdown=R2;exports.ResponsiveContextDropdownItem=$p;exports.RowLabelInput=As;exports.ShortcutLinksContext=Rte;exports.SideContentBar=$T;exports.SimpleDropdownToggle=kp;exports.SimplePicker=C2;exports.SimpleTooltip=hp;exports.Spinner=dp;exports.TextInput=I2;exports.TransitionWrapper=Fy;exports.Typography=dn;exports.UserAvatarToggle=P5;exports.UserContext=bx;exports._=Hq;exports._extends=Ac;exports._inheritsLoose=$y;exports._objectWithoutPropertiesLoose=Dh;exports.a=w2;exports.addLeadingZeros=dt;exports.addMonths=by;exports.addYears=ky;exports.atobUtf8=Tx;exports.buildEmployeeNameString=cM;exports.buildOrgUnitString=lM;exports.buildVehicleNameString=sM;exports.cancelToken=h$;exports.capitalizeFirstLetter=oM;exports.classNames=Q;exports.classes=y2;exports.compareDate=fM;exports.compareDateTime=hM;exports.constructFrom=zn;exports.context=Il;exports.differenceInCalendarDays=Ty;exports.divWithClassName=Wh;exports.extractErrorsFromResponse=fp;exports.extractFilename=Ex;exports.extractPermissionsFromResponse=_x;exports.fixNameIdNulls=yx;exports.format=Ih;exports.formatDate=iM;exports.formatDateTime=aM;exports.formatFileSize=xa;exports.getDateString=yM;exports.getDaysDifference=pM;exports.getDefaultExportFromCjs=Rt;exports.getFirstDayOfMonth=Sx;exports.getFirstDayOfOffsetMonth=mM;exports.getFirstDayOfYear=vM;exports.getLastDayOfMonth=Ox;exports.getLastDayOfOffsetMonth=gM;exports.getLastDayOfYear=bM;exports.getSharedManager=H1;exports.getTimezoneOffsetInMilliseconds=pf;exports.hasOnlyNullValues=xx;exports.hookFormSetServerErrors=YE;exports.invariant=mf;exports.isISODate=kx;exports.isPrimitive=zc;exports.isValidDate=dM;exports.joinStrings=Bo;exports.jsxRuntimeExports=v;exports.millisecondsInHour=kl;exports.millisecondsInMinute=jh;exports.millisecondsInWeek=Ah;exports.msToStartOfNextDay=uM;exports.openFileFromResponse=_M;exports.parseISO=Ol;exports.pe=fK;exports.replaceNullValuesOnlyObjectsWithNulls=qE;exports.requireReactIs=Fh;exports.saveFile=Hc;exports.saveFileFromResponse=xM;exports.secondsInDay=Ph;exports.secondsInHour=yy;exports.secondsInMinute=ZT;exports.secondsInMonth=_y;exports.secondsInQuarter=XT;exports.secondsInWeek=KT;exports.secondsInYear=xy;exports.shortenText=rM;exports.startOfDay=hf;exports.startOfWeek=pa;exports.stringContains=Mx;exports.stringSearchWithin=pp;exports.stringStartsWith=$x;exports.style=Wr;exports.t=fd;exports.toDate=sn;exports.transitionEndListener=Dy;exports.triggerBrowserReflow=Ny;exports.trimIsoDate=Wl;exports.truncateText=Cx;exports.urlfyArray=Af;exports.useAuth=t2;exports.useAxios=Gl;exports.useBootstrapBreakpoints=Ry;exports.useBootstrapMinBreakpoint=Ay;exports.useBootstrapPrefix=He;exports.useClickOutside=f2;exports.useClipboard=m2;exports.useCol=Yy;exports.useConfirm=_p;exports.useCookies=xp;exports.useEventCallback=Et;exports.useFormControlType=Cp;exports.useFormDisabledContext=Xl;exports.useIsomorphicEffect=Po;exports.useKeyPress=p2;exports.useNotifications=Yl;exports.usePermissions=h2;exports.usePrompt=hx;exports.useSwipeable=Rp;exports.useWindowSize=$s;exports.useZodSchemaTypes=Kl;exports.z=Zt;
|