react-luminus-components 1.3.120 → 1.3.121

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.
Files changed (29) hide show
  1. package/dist/.vite/manifest.json +67 -67
  2. package/dist/{FullScreenContainer-B16MCDSu.js → FullScreenContainer-BMcXQcwD.js} +1 -1
  3. package/dist/{FullScreenContainer-DHWRqa45.cjs → FullScreenContainer-Be4xECEA.cjs} +1 -1
  4. package/dist/{Loading-BF7iFJAc.js → Loading-CxR72kEX.js} +1 -1
  5. package/dist/{Loading-DmqXBWvb.cjs → Loading-DqzdnM-F.cjs} +1 -1
  6. package/dist/{ResponsiveContextDropdown-Dwu3bJs8.cjs → ResponsiveContextDropdown-CCyCN5zZ.cjs} +34 -34
  7. package/dist/{ResponsiveContextDropdown-DTOhvk2l.js → ResponsiveContextDropdown-D3jCWIdM.js} +1915 -1915
  8. package/dist/{SimpleTooltip-D7DVtOSV.cjs → SimpleTooltip-BH16nnST.cjs} +1 -1
  9. package/dist/{SimpleTooltip-hOtil_nZ.js → SimpleTooltip-DhHV2ArN.js} +1 -1
  10. package/dist/components/Documents/Documents.d.ts +2 -1
  11. package/dist/contexts.cjs.js +1 -1
  12. package/dist/contexts.es.js +3 -3
  13. package/dist/hooks.cjs.js +1 -1
  14. package/dist/hooks.es.js +5 -5
  15. package/dist/layout.cjs.js +1 -1
  16. package/dist/layout.es.js +5 -5
  17. package/dist/main.cjs.js +1 -1
  18. package/dist/main.es.js +8 -8
  19. package/dist/{searchUtils-DGa2hd6S.cjs → searchUtils-oHRImzZL.cjs} +1 -1
  20. package/dist/{searchUtils-DSA3PPH_.js → searchUtils-xtbzIMRT.js} +1 -1
  21. package/dist/{useClipboard-CrMTxA6K.js → useClipboard-CpegveXu.js} +1 -1
  22. package/dist/{useClipboard-BeWG2V5x.cjs → useClipboard-DC7sfSoH.cjs} +1 -1
  23. package/dist/{useGetApiData-DQiU5XzD.js → useGetApiData--cIxA2Je.js} +1 -1
  24. package/dist/{useGetApiData-DjoQxGG_.cjs → useGetApiData-B3rSSLIR.cjs} +1 -1
  25. package/dist/{usePermissions-5iEBMhRa.cjs → usePermissions-CcYHna1U.cjs} +1 -1
  26. package/dist/{usePermissions-lGanLvqB.js → usePermissions-Us5YI-6o.js} +1 -1
  27. package/dist/utils.cjs.js +1 -1
  28. package/dist/utils.es.js +4 -4
  29. package/package.json +1 -1
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var cm;function Uw(){if(cm)return Oi;cm=1;var e=h,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(s,c,u){var l,d={},f=null,p=null;u!==void 0&&(f=""+u),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(p=c.ref);for(l in c)r.call(c,l)&&!i.hasOwnProperty(l)&&(d[l]=c[l]);if(s&&s.defaultProps)for(l in c=s.defaultProps,c)d[l]===void 0&&(d[l]=c[l]);return{$$typeof:t,type:s,key:f,ref:p,props:d,_owner:a.current}}return Oi.Fragment=n,Oi.jsx=o,Oi.jsxs=o,Oi}var Ei={};/**
9
+ */var cm;function Uw(){if(cm)return Oi;cm=1;var e=h,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(s,u,c){var l,d={},f=null,p=null;c!==void 0&&(f=""+c),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(p=u.ref);for(l in u)r.call(u,l)&&!i.hasOwnProperty(l)&&(d[l]=u[l]);if(s&&s.defaultProps)for(l in u=s.defaultProps,u)d[l]===void 0&&(d[l]=u[l]);return{$$typeof:t,type:s,key:f,ref:p,props:d,_owner:a.current}}return Oi.Fragment=n,Oi.jsx=o,Oi.jsxs=o,Oi}var Ei={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,15 +14,15 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var um;function Bw(){return um||(um=1,process.env.NODE_ENV!=="production"&&function(){var e=h,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g=Symbol.iterator,v="@@iterator";function m(S){if(S===null||typeof S!="object")return null;var K=g&&S[g]||S[v];return typeof K=="function"?K:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(S){{for(var K=arguments.length,H=new Array(K>1?K-1:0),X=1;X<K;X++)H[X-1]=arguments[X];b("error",S,H)}}function b(S,K,H){{var X=x.ReactDebugCurrentFrame,fe=X.getStackAddendum();fe!==""&&(K+="%s",H=H.concat([fe]));var ve=H.map(function(le){return String(le)});ve.unshift("Warning: "+K),Function.prototype.apply.call(console[S],console,ve)}}var T=!1,_=!1,C=!1,$=!1,A=!1,D;D=Symbol.for("react.module.reference");function j(S){return!!(typeof S=="string"||typeof S=="function"||S===r||S===i||A||S===a||S===u||S===l||$||S===p||T||_||C||typeof S=="object"&&S!==null&&(S.$$typeof===f||S.$$typeof===d||S.$$typeof===o||S.$$typeof===s||S.$$typeof===c||S.$$typeof===D||S.getModuleId!==void 0))}function E(S,K,H){var X=S.displayName;if(X)return X;var fe=K.displayName||K.name||"";return fe!==""?H+"("+fe+")":H}function F(S){return S.displayName||"Context"}function M(S){if(S==null)return null;if(typeof S.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case a:return"StrictMode";case u:return"Suspense";case l:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case s:var K=S;return F(K)+".Consumer";case o:var H=S;return F(H._context)+".Provider";case c:return E(S,S.render,"ForwardRef");case d:var X=S.displayName||null;return X!==null?X:M(S.type)||"Memo";case f:{var fe=S,ve=fe._payload,le=fe._init;try{return M(le(ve))}catch{return null}}}return null}var R=Object.assign,I=0,U,N,q,z,P,W,Z;function ne(){}ne.__reactDisabledLog=!0;function Y(){{if(I===0){U=console.log,N=console.info,q=console.warn,z=console.error,P=console.group,W=console.groupCollapsed,Z=console.groupEnd;var S={configurable:!0,enumerable:!0,value:ne,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}I++}}function Q(){{if(I--,I===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},S,{value:U}),info:R({},S,{value:N}),warn:R({},S,{value:q}),error:R({},S,{value:z}),group:R({},S,{value:P}),groupCollapsed:R({},S,{value:W}),groupEnd:R({},S,{value:Z})})}I<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var G=x.ReactCurrentDispatcher,J;function re(S,K,H){{if(J===void 0)try{throw Error()}catch(fe){var X=fe.stack.trim().match(/\n( *(at )?)/);J=X&&X[1]||""}return`
17
+ */var um;function Bw(){return um||(um=1,process.env.NODE_ENV!=="production"&&function(){var e=h,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=Symbol.iterator,g="@@iterator";function v(S){if(S===null||typeof S!="object")return null;var K=m&&S[m]||S[g];return typeof K=="function"?K:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(S){{for(var K=arguments.length,H=new Array(K>1?K-1:0),X=1;X<K;X++)H[X-1]=arguments[X];b("error",S,H)}}function b(S,K,H){{var X=x.ReactDebugCurrentFrame,fe=X.getStackAddendum();fe!==""&&(K+="%s",H=H.concat([fe]));var ve=H.map(function(le){return String(le)});ve.unshift("Warning: "+K),Function.prototype.apply.call(console[S],console,ve)}}var T=!1,_=!1,C=!1,$=!1,A=!1,D;D=Symbol.for("react.module.reference");function j(S){return!!(typeof S=="string"||typeof S=="function"||S===r||S===i||A||S===a||S===c||S===l||$||S===p||T||_||C||typeof S=="object"&&S!==null&&(S.$$typeof===f||S.$$typeof===d||S.$$typeof===o||S.$$typeof===s||S.$$typeof===u||S.$$typeof===D||S.getModuleId!==void 0))}function E(S,K,H){var X=S.displayName;if(X)return X;var fe=K.displayName||K.name||"";return fe!==""?H+"("+fe+")":H}function F(S){return S.displayName||"Context"}function M(S){if(S==null)return null;if(typeof S.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case a:return"StrictMode";case c:return"Suspense";case l:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case s:var K=S;return F(K)+".Consumer";case o:var H=S;return F(H._context)+".Provider";case u:return E(S,S.render,"ForwardRef");case d:var X=S.displayName||null;return X!==null?X:M(S.type)||"Memo";case f:{var fe=S,ve=fe._payload,le=fe._init;try{return M(le(ve))}catch{return null}}}return null}var R=Object.assign,I=0,U,N,q,z,P,W,Z;function ne(){}ne.__reactDisabledLog=!0;function Y(){{if(I===0){U=console.log,N=console.info,q=console.warn,z=console.error,P=console.group,W=console.groupCollapsed,Z=console.groupEnd;var S={configurable:!0,enumerable:!0,value:ne,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}I++}}function Q(){{if(I--,I===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},S,{value:U}),info:R({},S,{value:N}),warn:R({},S,{value:q}),error:R({},S,{value:z}),group:R({},S,{value:P}),groupCollapsed:R({},S,{value:W}),groupEnd:R({},S,{value:Z})})}I<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var G=x.ReactCurrentDispatcher,J;function re(S,K,H){{if(J===void 0)try{throw Error()}catch(fe){var X=fe.stack.trim().match(/\n( *(at )?)/);J=X&&X[1]||""}return`
18
18
  `+J+S}}var L=!1,V;{var ae=typeof WeakMap=="function"?WeakMap:Map;V=new ae}function k(S,K){if(!S||L)return"";{var H=V.get(S);if(H!==void 0)return H}var X;L=!0;var fe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ve;ve=G.current,G.current=null,Y();try{if(K){var le=function(){throw Error()};if(Object.defineProperty(le.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(le,[])}catch(se){X=se}Reflect.construct(S,[],le)}else{try{le.call()}catch(se){X=se}S.call(le.prototype)}}else{try{throw Error()}catch(se){X=se}S()}}catch(se){if(se&&X&&typeof se.stack=="string"){for(var he=se.stack.split(`
19
19
  `),ke=X.stack.split(`
20
20
  `),Te=he.length-1,Je=ke.length-1;Te>=1&&Je>=0&&he[Te]!==ke[Je];)Je--;for(;Te>=1&&Je>=0;Te--,Je--)if(he[Te]!==ke[Je]){if(Te!==1||Je!==1)do if(Te--,Je--,Je<0||he[Te]!==ke[Je]){var $t=`
21
- `+he[Te].replace(" at new "," at ");return S.displayName&&$t.includes("<anonymous>")&&($t=$t.replace("<anonymous>",S.displayName)),typeof S=="function"&&V.set(S,$t),$t}while(Te>=1&&Je>=0);break}}}finally{L=!1,G.current=ve,Q(),Error.prepareStackTrace=fe}var yt=S?S.displayName||S.name:"",fn=yt?re(yt):"";return typeof S=="function"&&V.set(S,fn),fn}function ge(S,K,H){return k(S,!1)}function pe(S){var K=S.prototype;return!!(K&&K.isReactComponent)}function de(S,K,H){if(S==null)return"";if(typeof S=="function")return k(S,pe(S));if(typeof S=="string")return re(S);switch(S){case u:return re("Suspense");case l:return re("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case c:return ge(S.render);case d:return de(S.type,K,H);case f:{var X=S,fe=X._payload,ve=X._init;try{return de(ve(fe),K,H)}catch{}}}return""}var Ae=Object.prototype.hasOwnProperty,Pe={},ft=x.ReactDebugCurrentFrame;function gt(S){if(S){var K=S._owner,H=de(S.type,S._source,K?K.type:null);ft.setExtraStackFrame(H)}else ft.setExtraStackFrame(null)}function We(S,K,H,X,fe){{var ve=Function.call.bind(Ae);for(var le in S)if(ve(S,le)){var he=void 0;try{if(typeof S[le]!="function"){var ke=Error((X||"React class")+": "+H+" type `"+le+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[le]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ke.name="Invariant Violation",ke}he=S[le](K,le,X,H,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Te){he=Te}he&&!(he instanceof Error)&&(gt(fe),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",X||"React class",H,le,typeof he),gt(null)),he instanceof Error&&!(he.message in Pe)&&(Pe[he.message]=!0,gt(fe),w("Failed %s type: %s",H,he.message),gt(null))}}}var rt=Array.isArray;function Ze(S){return rt(S)}function xt(S){{var K=typeof Symbol=="function"&&Symbol.toStringTag,H=K&&S[Symbol.toStringTag]||S.constructor.name||"Object";return H}}function _t(S){try{return at(S),!1}catch{return!0}}function at(S){return""+S}function xe(S){if(_t(S))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt(S)),at(S)}var Xe=x.ReactCurrentOwner,Ct={key:!0,ref:!0,__self:!0,__source:!0},Xt,kt,ht;ht={};function wt(S){if(Ae.call(S,"ref")){var K=Object.getOwnPropertyDescriptor(S,"ref").get;if(K&&K.isReactWarning)return!1}return S.ref!==void 0}function ln(S){if(Ae.call(S,"key")){var K=Object.getOwnPropertyDescriptor(S,"key").get;if(K&&K.isReactWarning)return!1}return S.key!==void 0}function vt(S,K){if(typeof S.ref=="string"&&Xe.current&&K&&Xe.current.stateNode!==K){var H=M(Xe.current.type);ht[H]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',M(Xe.current.type),S.ref),ht[H]=!0)}}function At(S,K){{var H=function(){Xt||(Xt=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",K))};H.isReactWarning=!0,Object.defineProperty(S,"key",{get:H,configurable:!0})}}function St(S,K){{var H=function(){kt||(kt=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",K))};H.isReactWarning=!0,Object.defineProperty(S,"ref",{get:H,configurable:!0})}}var Jt=function(S,K,H,X,fe,ve,le){var he={$$typeof:t,type:S,key:K,ref:H,props:le,_owner:ve};return he._store={},Object.defineProperty(he._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(he,"_self",{configurable:!1,enumerable:!1,writable:!1,value:X}),Object.defineProperty(he,"_source",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.freeze&&(Object.freeze(he.props),Object.freeze(he)),he};function De(S,K,H,X,fe){{var ve,le={},he=null,ke=null;H!==void 0&&(xe(H),he=""+H),ln(K)&&(xe(K.key),he=""+K.key),wt(K)&&(ke=K.ref,vt(K,fe));for(ve in K)Ae.call(K,ve)&&!Ct.hasOwnProperty(ve)&&(le[ve]=K[ve]);if(S&&S.defaultProps){var Te=S.defaultProps;for(ve in Te)le[ve]===void 0&&(le[ve]=Te[ve])}if(he||ke){var Je=typeof S=="function"?S.displayName||S.name||"Unknown":S;he&&At(le,Je),ke&&St(le,Je)}return Jt(S,he,ke,fe,X,Xe.current,le)}}var je=x.ReactCurrentOwner,Ue=x.ReactDebugCurrentFrame;function pt(S){if(S){var K=S._owner,H=de(S.type,S._source,K?K.type:null);Ue.setExtraStackFrame(H)}else Ue.setExtraStackFrame(null)}var Ot;Ot=!1;function Et(S){return typeof S=="object"&&S!==null&&S.$$typeof===t}function xn(){{if(je.current){var S=M(je.current.type);if(S)return`
21
+ `+he[Te].replace(" at new "," at ");return S.displayName&&$t.includes("<anonymous>")&&($t=$t.replace("<anonymous>",S.displayName)),typeof S=="function"&&V.set(S,$t),$t}while(Te>=1&&Je>=0);break}}}finally{L=!1,G.current=ve,Q(),Error.prepareStackTrace=fe}var yt=S?S.displayName||S.name:"",fn=yt?re(yt):"";return typeof S=="function"&&V.set(S,fn),fn}function ge(S,K,H){return k(S,!1)}function pe(S){var K=S.prototype;return!!(K&&K.isReactComponent)}function de(S,K,H){if(S==null)return"";if(typeof S=="function")return k(S,pe(S));if(typeof S=="string")return re(S);switch(S){case c:return re("Suspense");case l:return re("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case u:return ge(S.render);case d:return de(S.type,K,H);case f:{var X=S,fe=X._payload,ve=X._init;try{return de(ve(fe),K,H)}catch{}}}return""}var Ae=Object.prototype.hasOwnProperty,Pe={},ft=x.ReactDebugCurrentFrame;function gt(S){if(S){var K=S._owner,H=de(S.type,S._source,K?K.type:null);ft.setExtraStackFrame(H)}else ft.setExtraStackFrame(null)}function We(S,K,H,X,fe){{var ve=Function.call.bind(Ae);for(var le in S)if(ve(S,le)){var he=void 0;try{if(typeof S[le]!="function"){var ke=Error((X||"React class")+": "+H+" type `"+le+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[le]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ke.name="Invariant Violation",ke}he=S[le](K,le,X,H,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Te){he=Te}he&&!(he instanceof Error)&&(gt(fe),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",X||"React class",H,le,typeof he),gt(null)),he instanceof Error&&!(he.message in Pe)&&(Pe[he.message]=!0,gt(fe),w("Failed %s type: %s",H,he.message),gt(null))}}}var rt=Array.isArray;function Ze(S){return rt(S)}function xt(S){{var K=typeof Symbol=="function"&&Symbol.toStringTag,H=K&&S[Symbol.toStringTag]||S.constructor.name||"Object";return H}}function _t(S){try{return at(S),!1}catch{return!0}}function at(S){return""+S}function xe(S){if(_t(S))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt(S)),at(S)}var Xe=x.ReactCurrentOwner,Ct={key:!0,ref:!0,__self:!0,__source:!0},Xt,kt,ht;ht={};function wt(S){if(Ae.call(S,"ref")){var K=Object.getOwnPropertyDescriptor(S,"ref").get;if(K&&K.isReactWarning)return!1}return S.ref!==void 0}function ln(S){if(Ae.call(S,"key")){var K=Object.getOwnPropertyDescriptor(S,"key").get;if(K&&K.isReactWarning)return!1}return S.key!==void 0}function vt(S,K){if(typeof S.ref=="string"&&Xe.current&&K&&Xe.current.stateNode!==K){var H=M(Xe.current.type);ht[H]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',M(Xe.current.type),S.ref),ht[H]=!0)}}function At(S,K){{var H=function(){Xt||(Xt=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",K))};H.isReactWarning=!0,Object.defineProperty(S,"key",{get:H,configurable:!0})}}function St(S,K){{var H=function(){kt||(kt=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",K))};H.isReactWarning=!0,Object.defineProperty(S,"ref",{get:H,configurable:!0})}}var Jt=function(S,K,H,X,fe,ve,le){var he={$$typeof:t,type:S,key:K,ref:H,props:le,_owner:ve};return he._store={},Object.defineProperty(he._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(he,"_self",{configurable:!1,enumerable:!1,writable:!1,value:X}),Object.defineProperty(he,"_source",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.freeze&&(Object.freeze(he.props),Object.freeze(he)),he};function De(S,K,H,X,fe){{var ve,le={},he=null,ke=null;H!==void 0&&(xe(H),he=""+H),ln(K)&&(xe(K.key),he=""+K.key),wt(K)&&(ke=K.ref,vt(K,fe));for(ve in K)Ae.call(K,ve)&&!Ct.hasOwnProperty(ve)&&(le[ve]=K[ve]);if(S&&S.defaultProps){var Te=S.defaultProps;for(ve in Te)le[ve]===void 0&&(le[ve]=Te[ve])}if(he||ke){var Je=typeof S=="function"?S.displayName||S.name||"Unknown":S;he&&At(le,Je),ke&&St(le,Je)}return Jt(S,he,ke,fe,X,Xe.current,le)}}var je=x.ReactCurrentOwner,Ue=x.ReactDebugCurrentFrame;function pt(S){if(S){var K=S._owner,H=de(S.type,S._source,K?K.type:null);Ue.setExtraStackFrame(H)}else Ue.setExtraStackFrame(null)}var Ot;Ot=!1;function Et(S){return typeof S=="object"&&S!==null&&S.$$typeof===t}function xn(){{if(je.current){var S=M(je.current.type);if(S)return`
22
22
 
23
23
  Check the render method of \``+S+"`."}return""}}function Qt(S){return""}var Lt={};function dn(S){{var K=xn();if(!K){var H=typeof S=="string"?S:S.displayName||S.name;H&&(K=`
24
24
 
25
- Check the top-level render call using <`+H+">.")}return K}}function It(S,K){{if(!S._store||S._store.validated||S.key!=null)return;S._store.validated=!0;var H=dn(K);if(Lt[H])return;Lt[H]=!0;var X="";S&&S._owner&&S._owner!==je.current&&(X=" It was passed a child from "+M(S._owner.type)+"."),pt(S),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',H,X),pt(null)}}function qt(S,K){{if(typeof S!="object")return;if(Ze(S))for(var H=0;H<S.length;H++){var X=S[H];Et(X)&&It(X,K)}else if(Et(S))S._store&&(S._store.validated=!0);else if(S){var fe=m(S);if(typeof fe=="function"&&fe!==S.entries)for(var ve=fe.call(S),le;!(le=ve.next()).done;)Et(le.value)&&It(le.value,K)}}}function _n(S){{var K=S.type;if(K==null||typeof K=="string")return;var H;if(typeof K=="function")H=K.propTypes;else if(typeof K=="object"&&(K.$$typeof===c||K.$$typeof===d))H=K.propTypes;else return;if(H){var X=M(K);We(H,S.props,"prop",X,S)}else if(K.PropTypes!==void 0&&!Ot){Ot=!0;var fe=M(K);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",fe||"Unknown")}typeof K.getDefaultProps=="function"&&!K.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function en(S){{for(var K=Object.keys(S.props),H=0;H<K.length;H++){var X=K[H];if(X!=="children"&&X!=="key"){pt(S),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",X),pt(null);break}}S.ref!==null&&(pt(S),w("Invalid attribute `ref` supplied to `React.Fragment`."),pt(null))}}var ze={};function Ne(S,K,H,X,fe,ve){{var le=j(S);if(!le){var he="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(he+=" 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 ke=Qt();ke?he+=ke:he+=xn();var Te;S===null?Te="null":Ze(S)?Te="array":S!==void 0&&S.$$typeof===t?(Te="<"+(M(S.type)||"Unknown")+" />",he=" Did you accidentally export a JSX literal instead of a component?"):Te=typeof S,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Te,he)}var Je=De(S,K,H,fe,ve);if(Je==null)return Je;if(le){var $t=K.children;if($t!==void 0)if(X)if(Ze($t)){for(var yt=0;yt<$t.length;yt++)qt($t[yt],S);Object.freeze&&Object.freeze($t)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else qt($t,S)}if(Ae.call(K,"key")){var fn=M(S),se=Object.keys(K).filter(function(xl){return xl!=="key"}),hn=se.length>0?"{key: someKey, "+se.join(": ..., ")+": ...}":"{key: someKey}";if(!ze[fn+hn]){var Mt=se.length>0?"{"+se.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+H+">.")}return K}}function It(S,K){{if(!S._store||S._store.validated||S.key!=null)return;S._store.validated=!0;var H=dn(K);if(Lt[H])return;Lt[H]=!0;var X="";S&&S._owner&&S._owner!==je.current&&(X=" It was passed a child from "+M(S._owner.type)+"."),pt(S),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',H,X),pt(null)}}function qt(S,K){{if(typeof S!="object")return;if(Ze(S))for(var H=0;H<S.length;H++){var X=S[H];Et(X)&&It(X,K)}else if(Et(S))S._store&&(S._store.validated=!0);else if(S){var fe=v(S);if(typeof fe=="function"&&fe!==S.entries)for(var ve=fe.call(S),le;!(le=ve.next()).done;)Et(le.value)&&It(le.value,K)}}}function _n(S){{var K=S.type;if(K==null||typeof K=="string")return;var H;if(typeof K=="function")H=K.propTypes;else if(typeof K=="object"&&(K.$$typeof===u||K.$$typeof===d))H=K.propTypes;else return;if(H){var X=M(K);We(H,S.props,"prop",X,S)}else if(K.PropTypes!==void 0&&!Ot){Ot=!0;var fe=M(K);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",fe||"Unknown")}typeof K.getDefaultProps=="function"&&!K.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function en(S){{for(var K=Object.keys(S.props),H=0;H<K.length;H++){var X=K[H];if(X!=="children"&&X!=="key"){pt(S),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",X),pt(null);break}}S.ref!==null&&(pt(S),w("Invalid attribute `ref` supplied to `React.Fragment`."),pt(null))}}var ze={};function Ne(S,K,H,X,fe,ve){{var le=j(S);if(!le){var he="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(he+=" 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 ke=Qt();ke?he+=ke:he+=xn();var Te;S===null?Te="null":Ze(S)?Te="array":S!==void 0&&S.$$typeof===t?(Te="<"+(M(S.type)||"Unknown")+" />",he=" Did you accidentally export a JSX literal instead of a component?"):Te=typeof S,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Te,he)}var Je=De(S,K,H,fe,ve);if(Je==null)return Je;if(le){var $t=K.children;if($t!==void 0)if(X)if(Ze($t)){for(var yt=0;yt<$t.length;yt++)qt($t[yt],S);Object.freeze&&Object.freeze($t)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else qt($t,S)}if(Ae.call(K,"key")){var fn=M(S),se=Object.keys(K).filter(function(xl){return xl!=="key"}),hn=se.length>0?"{key: someKey, "+se.join(": ..., ")+": ...}":"{key: someKey}";if(!ze[fn+hn]){var Mt=se.length>0?"{"+se.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
@@ -31,26 +31,26 @@ React keys must be passed directly to JSX without using spread:
31
31
  Copyright (c) 2018 Jed Watson.
32
32
  Licensed under the MIT License (MIT), see
33
33
  http://jedwatson.github.io/classnames
34
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(i=a(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var s in i)t.call(i,s)&&i[s]&&(o=a(o,s));return o}function a(i,o){return o?i?i+" "+o:i+o:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Kv);var Ww=Kv.exports;const ie=Tt(Ww);function yn(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 ur(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function zw(e,t){const n=+yn(e);return ur(e,n+t)}const Hw=365.2425,Lf=6048e5,Vw=864e5,Uf=6e4,Pc=36e5,Xv=3600,qw=60,Bf=Xv*24,Yw=Bf*7,Jv=Bf*Hw,Qv=Jv/12,Gw=Qv*3;function Zw(e,t){return zw(e,t*Pc)}let Kw={};function Dc(){return Kw}function qa(e,t){var s,c,u,l;const n=Dc(),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??((l=(u=n.locale)==null?void 0:u.options)==null?void 0:l.weekStartsOn)??0,a=yn(e),i=a.getDay(),o=(i<r?7:0)+i-r;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function Bs(e){return qa(e,{weekStartsOn:1})}function ey(e){const t=yn(e),n=t.getFullYear(),r=ur(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=Bs(r),i=ur(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const o=Bs(i);return t.getTime()>=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function xd(e){const t=yn(e);return t.setHours(0,0,0,0),t}function _d(e){const t=yn(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=xd(e),r=xd(t),a=+n-_d(n),i=+r-_d(r);return Math.round((a-i)/Vw)}function Xw(e){const t=ey(e),n=ur(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Bs(n)}function Jw(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Qw(e){if(!Jw(e)&&typeof e!="number")return!1;const t=yn(e);return!isNaN(Number(t))}function e4(e){const t=yn(e),n=ur(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const t4={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"}},n4=(e,t,n)=>{let r;const a=t4[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function _l(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const r4={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},a4={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},i4={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},o4={date:_l({formats:r4,defaultWidth:"full"}),time:_l({formats:a4,defaultWidth:"full"}),dateTime:_l({formats:i4,defaultWidth:"full"})},s4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},c4=(e,t,n,r)=>s4[e];function $i(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;a=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[s]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return a[i]}}const u4={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},l4={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},d4={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"]},f4={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"]},h4={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"}},p4={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"}},m4=(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"},g4={ordinalNumber:m4,era:$i({values:u4,defaultWidth:"wide"}),quarter:$i({values:l4,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$i({values:d4,defaultWidth:"wide"}),day:$i({values:f4,defaultWidth:"wide"}),dayPeriod:$i({values:h4,defaultWidth:"wide",formattingValues:p4,defaultFormattingWidth:"wide"})};function Mi(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;const o=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?y4(s,d=>d.test(o)):v4(s,d=>d.test(o));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;const l=t.slice(o.length);return{value:u,rest:l}}}function v4(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function y4(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function b4(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(a.length);return{value:o,rest:s}}}const x4=/^(\d+)(th|st|nd|rd)?/i,_4=/\d+/i,w4={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},T4={any:[/^b/i,/^(a|c)/i]},C4={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},k4={any:[/1/i,/2/i,/3/i,/4/i]},S4={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},O4={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]},E4={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},$4={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]},M4={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},R4={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}},A4={ordinalNumber:b4({matchPattern:x4,parsePattern:_4,valueCallback:e=>parseInt(e,10)}),era:Mi({matchPatterns:w4,defaultMatchWidth:"wide",parsePatterns:T4,defaultParseWidth:"any"}),quarter:Mi({matchPatterns:C4,defaultMatchWidth:"wide",parsePatterns:k4,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Mi({matchPatterns:S4,defaultMatchWidth:"wide",parsePatterns:O4,defaultParseWidth:"any"}),day:Mi({matchPatterns:E4,defaultMatchWidth:"wide",parsePatterns:$4,defaultParseWidth:"any"}),dayPeriod:Mi({matchPatterns:M4,defaultMatchWidth:"any",parsePatterns:R4,defaultParseWidth:"any"})},j4={code:"en-US",formatDistance:n4,formatLong:o4,formatRelative:c4,localize:g4,match:A4,options:{weekStartsOn:0,firstWeekContainsDate:1}};function P4(e){const t=yn(e);return ty(t,e4(t))+1}function D4(e){const t=yn(e),n=+Bs(t)-+Xw(t);return Math.round(n/Lf)+1}function ny(e,t){var l,d,f,p;const n=yn(e),r=n.getFullYear(),a=Dc(),i=(t==null?void 0:t.firstWeekContainsDate)??((d=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:d.firstWeekContainsDate)??a.firstWeekContainsDate??((p=(f=a.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,o=ur(e,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const s=qa(o,t),c=ur(e,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const u=qa(c,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function I4(e,t){var s,c,u,l;const n=Dc(),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??((l=(u=n.locale)==null?void 0:u.options)==null?void 0:l.firstWeekContainsDate)??1,a=ny(e,t),i=ur(e,0);return i.setFullYear(a,0,r),i.setHours(0,0,0,0),qa(i,t)}function N4(e,t){const n=yn(e),r=+qa(n,t)-+I4(n,t);return Math.round(r/Lf)+1}function Ge(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const br={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ge(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ge(n+1,2)},d(e,t){return Ge(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 Ge(e.getHours()%12||12,t.length)},H(e,t){return Ge(e.getHours(),t.length)},m(e,t){return Ge(e.getMinutes(),t.length)},s(e,t){return Ge(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return Ge(a,t.length)}},$a={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},lm={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(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return br.y(e,t)},Y:function(e,t,n,r){const a=ny(e,r),i=a>0?a:1-a;if(t==="YY"){const o=i%100;return Ge(o,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):Ge(i,t.length)},R:function(e,t){const n=ey(e);return Ge(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ge(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 Ge(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 Ge(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 br.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 Ge(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 a=N4(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):Ge(a,t.length)},I:function(e,t,n){const r=D4(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ge(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):br.d(e,t)},D:function(e,t,n){const r=P4(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ge(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 a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Ge(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Ge(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return Ge(a,t.length);case"io":return n.ordinalNumber(a,{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 a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(r===12?a=$a.noon:r===0?a=$a.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(r>=17?a=$a.evening:r>=12?a=$a.afternoon:r>=4?a=$a.morning:a=$a.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{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 br.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):br.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ge(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ge(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):br.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):br.s(e,t)},S:function(e,t){return br.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return fm(r);case"XXXX":case"XX":return qr(r);case"XXXXX":case"XXX":default:return qr(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return fm(r);case"xxxx":case"xx":return qr(r);case"xxxxx":case"xxx":default:return qr(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+dm(r,":");case"OOOO":default:return"GMT"+qr(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+dm(r,":");case"zzzz":default:return"GMT"+qr(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Ge(r,t.length)},T:function(e,t,n){const r=e.getTime();return Ge(r,t.length)}};function dm(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),i=r%60;return i===0?n+String(a):n+String(a)+t+Ge(i,2)}function fm(e,t){return e%60===0?(e>0?"-":"+")+Ge(Math.abs(e)/60,2):qr(e,t)}function qr(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Ge(Math.trunc(r/60),2),i=Ge(r%60,2);return n+a+t+i}const hm=(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"})}},ry=(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"})}},F4=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return hm(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",hm(r,t)).replace("{{time}}",ry(a,t))},L4={p:ry,P:F4},U4=/^D+$/,B4=/^Y+$/,W4=["D","DD","YY","YYYY"];function z4(e){return U4.test(e)}function H4(e){return B4.test(e)}function V4(e,t,n){const r=q4(e,t,n);if(console.warn(r),W4.includes(e))throw new RangeError(r)}function q4(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 Y4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,G4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Z4=/^'([^]*?)'?$/,K4=/''/g,X4=/[a-zA-Z]/;function Wf(e,t,n){var l,d,f,p,g,v,m,x;const r=Dc(),a=(n==null?void 0:n.locale)??r.locale??j4,i=(n==null?void 0:n.firstWeekContainsDate)??((d=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((v=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:v.weekStartsOn)??r.weekStartsOn??((x=(m=r.locale)==null?void 0:m.options)==null?void 0:x.weekStartsOn)??0,s=yn(e);if(!Qw(s))throw new RangeError("Invalid time value");let c=t.match(G4).map(w=>{const b=w[0];if(b==="p"||b==="P"){const T=L4[b];return T(w,a.formatLong)}return w}).join("").match(Y4).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const b=w[0];if(b==="'")return{isToken:!1,value:J4(w)};if(lm[b])return{isToken:!0,value:w};if(b.match(X4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:w}});a.localize.preprocessor&&(c=a.localize.preprocessor(s,c));const u={firstWeekContainsDate:i,weekStartsOn:o,locale:a};return c.map(w=>{if(!w.isToken)return w.value;const b=w.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&H4(b)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&z4(b))&&V4(b,t,String(e));const T=lm[b[0]];return T(s,b,a.localize,u)}).join("")}function J4(e){const t=e.match(Z4);return t?t[1].replace(K4,"'"):e}function Ic(e,t){const r=nT(e);let a;if(r.date){const c=rT(r.date,2);a=aT(c.restDateString,c.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);const i=a.getTime();let o=0,s;if(r.time&&(o=iT(r.time),isNaN(o)))return new Date(NaN);if(r.timezone){if(s=oT(r.timezone),isNaN(s))return new Date(NaN)}else{const c=new Date(i+o),u=new Date(0);return u.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),u.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),u}return new Date(i+o+s)}const us={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Q4=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,eT=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,tT=/^([+-])(\d{2})(?::?(\d{2}))?$/;function nT(e){const t={},n=e.split(us.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],us.timeZoneDelimiter.test(t.date)&&(t.date=e.split(us.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const a=us.timezone.exec(r);a?(t.time=r.replace(a[1],""),t.timezone=a[1]):t.time=r}return t}function rT(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 a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function aT(e,t){if(t===null)return new Date(NaN);const n=e.match(Q4);if(!n)return new Date(NaN);const r=!!n[4],a=Ri(n[1]),i=Ri(n[2])-1,o=Ri(n[3]),s=Ri(n[4]),c=Ri(n[5])-1;if(r)return dT(t,s,c)?sT(t,s,c):new Date(NaN);{const u=new Date(0);return!uT(t,i,o)||!lT(t,a)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(a,o)),u)}}function Ri(e){return e?parseInt(e):1}function iT(e){const t=e.match(eT);if(!t)return NaN;const n=wl(t[1]),r=wl(t[2]),a=wl(t[3]);return fT(n,r,a)?n*Pc+r*Uf+a*1e3:NaN}function wl(e){return e&&parseFloat(e.replace(",","."))||0}function oT(e){if(e==="Z")return 0;const t=e.match(tT);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return hT(r,a)?n*(r*Pc+a*Uf):NaN}function sT(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const a=r.getUTCDay()||7,i=(t-1)*7+n+1-a;return r.setUTCDate(r.getUTCDate()+i),r}const cT=[31,null,31,30,31,30,31,31,30,31,30,31];function ay(e){return e%400===0||e%4===0&&e%100!==0}function uT(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(cT[t]||(ay(e)?29:28))}function lT(e,t){return t>=1&&t<=(ay(e)?366:365)}function dT(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function fT(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function hT(e,t){return t>=0&&t<=59}function wd(){return wd=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},wd.apply(null,arguments)}function iy(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 pT=function(e,t,n,r,a,i,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 u=[n,r,a,i,o,s],l=0;c=new Error(t.replace(/%s/g,function(){return u[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},mT=pT;const Td=Tt(mT);function pm(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function gT(e){var t=vT(e,"string");return typeof t=="symbol"?t:String(t)}function vT(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 oy(e,t,n){var r=h.useRef(e!==void 0),a=h.useState(t),i=a[0],o=a[1],s=e!==void 0,c=r.current;return r.current=s,!s&&c&&i!==t&&o(t),[s?e:i,h.useCallback(function(u){for(var l=arguments.length,d=new Array(l>1?l-1:0),f=1;f<l;f++)d[f-1]=arguments[f];n&&n.apply(void 0,[u].concat(d)),o(u)},[n])]}function sy(e,t){return Object.keys(t).reduce(function(n,r){var a,i=n,o=i[pm(r)],s=i[r],c=iy(i,[pm(r),r].map(gT)),u=t[r],l=oy(s,o,e[u]),d=l[0],f=l[1];return wd({},c,(a={},a[r]=d,a[u]=f,a))},e)}function Cd(e,t){return Cd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Cd(e,t)}function yT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cd(e,t)}const bT=["xxl","xl","lg","md","sm","xs"],xT="xs",Nc=oe.createContext({prefixes:{},breakpoints:bT,minBreakpoint:xT});function Le(e,t){const{prefixes:n}=h.useContext(Nc);return e||n[t]||t}function _T(){const{breakpoints:e}=h.useContext(Nc);return e}function wT(){const{minBreakpoint:e}=h.useContext(Nc);return e}function Fc(){const{dir:e}=h.useContext(Nc);return e==="rtl"}function ui(e){return e&&e.ownerDocument||document}function TT(e){var t=ui(e);return t&&t.defaultView||window}function CT(e,t){return TT(e).getComputedStyle(e,t)}var kT=/([A-Z])/g;function ST(e){return e.replace(kT,"-$1").toLowerCase()}var OT=/^ms-/;function ls(e){return ST(e).replace(OT,"-ms-")}var ET=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function $T(e){return!!(e&&ET.test(e))}function Rr(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(ls(t))||CT(e).getPropertyValue(ls(t));Object.keys(t).forEach(function(a){var i=t[a];!i&&i!==0?e.style.removeProperty(ls(a)):$T(a)?r+=a+"("+i+") ":n+=ls(a)+": "+i+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var kd={exports:{}},ds={exports:{}},He={};/** @license React v16.13.1
34
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(i=a(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var s in i)t.call(i,s)&&i[s]&&(o=a(o,s));return o}function a(i,o){return o?i?i+" "+o:i+o:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Kv);var Ww=Kv.exports;const ie=Tt(Ww);function yn(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 ur(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function zw(e,t){const n=+yn(e);return ur(e,n+t)}const Hw=365.2425,Lf=6048e5,Vw=864e5,Uf=6e4,Pc=36e5,Xv=3600,qw=60,Bf=Xv*24,Yw=Bf*7,Jv=Bf*Hw,Qv=Jv/12,Gw=Qv*3;function Zw(e,t){return zw(e,t*Pc)}let Kw={};function Dc(){return Kw}function qa(e,t){var s,u,c,l;const n=Dc(),r=(t==null?void 0:t.weekStartsOn)??((u=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((l=(c=n.locale)==null?void 0:c.options)==null?void 0:l.weekStartsOn)??0,a=yn(e),i=a.getDay(),o=(i<r?7:0)+i-r;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function Bs(e){return qa(e,{weekStartsOn:1})}function ey(e){const t=yn(e),n=t.getFullYear(),r=ur(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=Bs(r),i=ur(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const o=Bs(i);return t.getTime()>=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function xd(e){const t=yn(e);return t.setHours(0,0,0,0),t}function _d(e){const t=yn(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=xd(e),r=xd(t),a=+n-_d(n),i=+r-_d(r);return Math.round((a-i)/Vw)}function Xw(e){const t=ey(e),n=ur(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Bs(n)}function Jw(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Qw(e){if(!Jw(e)&&typeof e!="number")return!1;const t=yn(e);return!isNaN(Number(t))}function e4(e){const t=yn(e),n=ur(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const t4={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"}},n4=(e,t,n)=>{let r;const a=t4[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function _l(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const r4={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},a4={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},i4={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},o4={date:_l({formats:r4,defaultWidth:"full"}),time:_l({formats:a4,defaultWidth:"full"}),dateTime:_l({formats:i4,defaultWidth:"full"})},s4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},c4=(e,t,n,r)=>s4[e];function $i(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;a=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[s]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return a[i]}}const u4={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},l4={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},d4={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"]},f4={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"]},h4={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"}},p4={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"}},m4=(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"},g4={ordinalNumber:m4,era:$i({values:u4,defaultWidth:"wide"}),quarter:$i({values:l4,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$i({values:d4,defaultWidth:"wide"}),day:$i({values:f4,defaultWidth:"wide"}),dayPeriod:$i({values:h4,defaultWidth:"wide",formattingValues:p4,defaultFormattingWidth:"wide"})};function Mi(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;const o=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?y4(s,d=>d.test(o)):v4(s,d=>d.test(o));let c;c=e.valueCallback?e.valueCallback(u):u,c=n.valueCallback?n.valueCallback(c):c;const l=t.slice(o.length);return{value:c,rest:l}}}function v4(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function y4(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function b4(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(a.length);return{value:o,rest:s}}}const x4=/^(\d+)(th|st|nd|rd)?/i,_4=/\d+/i,w4={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},T4={any:[/^b/i,/^(a|c)/i]},C4={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},k4={any:[/1/i,/2/i,/3/i,/4/i]},S4={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},O4={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]},E4={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},$4={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]},M4={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},R4={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}},A4={ordinalNumber:b4({matchPattern:x4,parsePattern:_4,valueCallback:e=>parseInt(e,10)}),era:Mi({matchPatterns:w4,defaultMatchWidth:"wide",parsePatterns:T4,defaultParseWidth:"any"}),quarter:Mi({matchPatterns:C4,defaultMatchWidth:"wide",parsePatterns:k4,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Mi({matchPatterns:S4,defaultMatchWidth:"wide",parsePatterns:O4,defaultParseWidth:"any"}),day:Mi({matchPatterns:E4,defaultMatchWidth:"wide",parsePatterns:$4,defaultParseWidth:"any"}),dayPeriod:Mi({matchPatterns:M4,defaultMatchWidth:"any",parsePatterns:R4,defaultParseWidth:"any"})},j4={code:"en-US",formatDistance:n4,formatLong:o4,formatRelative:c4,localize:g4,match:A4,options:{weekStartsOn:0,firstWeekContainsDate:1}};function P4(e){const t=yn(e);return ty(t,e4(t))+1}function D4(e){const t=yn(e),n=+Bs(t)-+Xw(t);return Math.round(n/Lf)+1}function ny(e,t){var l,d,f,p;const n=yn(e),r=n.getFullYear(),a=Dc(),i=(t==null?void 0:t.firstWeekContainsDate)??((d=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:d.firstWeekContainsDate)??a.firstWeekContainsDate??((p=(f=a.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,o=ur(e,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const s=qa(o,t),u=ur(e,0);u.setFullYear(r,0,i),u.setHours(0,0,0,0);const c=qa(u,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function I4(e,t){var s,u,c,l;const n=Dc(),r=(t==null?void 0:t.firstWeekContainsDate)??((u=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((l=(c=n.locale)==null?void 0:c.options)==null?void 0:l.firstWeekContainsDate)??1,a=ny(e,t),i=ur(e,0);return i.setFullYear(a,0,r),i.setHours(0,0,0,0),qa(i,t)}function N4(e,t){const n=yn(e),r=+qa(n,t)-+I4(n,t);return Math.round(r/Lf)+1}function Ge(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const br={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ge(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ge(n+1,2)},d(e,t){return Ge(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 Ge(e.getHours()%12||12,t.length)},H(e,t){return Ge(e.getHours(),t.length)},m(e,t){return Ge(e.getMinutes(),t.length)},s(e,t){return Ge(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return Ge(a,t.length)}},$a={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},lm={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(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return br.y(e,t)},Y:function(e,t,n,r){const a=ny(e,r),i=a>0?a:1-a;if(t==="YY"){const o=i%100;return Ge(o,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):Ge(i,t.length)},R:function(e,t){const n=ey(e);return Ge(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ge(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 Ge(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 Ge(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 br.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 Ge(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 a=N4(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):Ge(a,t.length)},I:function(e,t,n){const r=D4(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ge(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):br.d(e,t)},D:function(e,t,n){const r=P4(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ge(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 a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Ge(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Ge(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return Ge(a,t.length);case"io":return n.ordinalNumber(a,{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 a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(r===12?a=$a.noon:r===0?a=$a.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(r>=17?a=$a.evening:r>=12?a=$a.afternoon:r>=4?a=$a.morning:a=$a.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{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 br.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):br.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ge(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ge(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):br.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):br.s(e,t)},S:function(e,t){return br.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return fm(r);case"XXXX":case"XX":return qr(r);case"XXXXX":case"XXX":default:return qr(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return fm(r);case"xxxx":case"xx":return qr(r);case"xxxxx":case"xxx":default:return qr(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+dm(r,":");case"OOOO":default:return"GMT"+qr(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+dm(r,":");case"zzzz":default:return"GMT"+qr(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Ge(r,t.length)},T:function(e,t,n){const r=e.getTime();return Ge(r,t.length)}};function dm(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),i=r%60;return i===0?n+String(a):n+String(a)+t+Ge(i,2)}function fm(e,t){return e%60===0?(e>0?"-":"+")+Ge(Math.abs(e)/60,2):qr(e,t)}function qr(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Ge(Math.trunc(r/60),2),i=Ge(r%60,2);return n+a+t+i}const hm=(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"})}},ry=(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"})}},F4=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return hm(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",hm(r,t)).replace("{{time}}",ry(a,t))},L4={p:ry,P:F4},U4=/^D+$/,B4=/^Y+$/,W4=["D","DD","YY","YYYY"];function z4(e){return U4.test(e)}function H4(e){return B4.test(e)}function V4(e,t,n){const r=q4(e,t,n);if(console.warn(r),W4.includes(e))throw new RangeError(r)}function q4(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 Y4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,G4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Z4=/^'([^]*?)'?$/,K4=/''/g,X4=/[a-zA-Z]/;function Wf(e,t,n){var l,d,f,p,m,g,v,x;const r=Dc(),a=(n==null?void 0:n.locale)??r.locale??j4,i=(n==null?void 0:n.firstWeekContainsDate)??((d=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((g=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((x=(v=r.locale)==null?void 0:v.options)==null?void 0:x.weekStartsOn)??0,s=yn(e);if(!Qw(s))throw new RangeError("Invalid time value");let u=t.match(G4).map(w=>{const b=w[0];if(b==="p"||b==="P"){const T=L4[b];return T(w,a.formatLong)}return w}).join("").match(Y4).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const b=w[0];if(b==="'")return{isToken:!1,value:J4(w)};if(lm[b])return{isToken:!0,value:w};if(b.match(X4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:w}});a.localize.preprocessor&&(u=a.localize.preprocessor(s,u));const c={firstWeekContainsDate:i,weekStartsOn:o,locale:a};return u.map(w=>{if(!w.isToken)return w.value;const b=w.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&H4(b)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&z4(b))&&V4(b,t,String(e));const T=lm[b[0]];return T(s,b,a.localize,c)}).join("")}function J4(e){const t=e.match(Z4);return t?t[1].replace(K4,"'"):e}function Ic(e,t){const r=nT(e);let a;if(r.date){const u=rT(r.date,2);a=aT(u.restDateString,u.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);const i=a.getTime();let o=0,s;if(r.time&&(o=iT(r.time),isNaN(o)))return new Date(NaN);if(r.timezone){if(s=oT(r.timezone),isNaN(s))return new Date(NaN)}else{const u=new Date(i+o),c=new Date(0);return c.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),c.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),c}return new Date(i+o+s)}const us={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Q4=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,eT=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,tT=/^([+-])(\d{2})(?::?(\d{2}))?$/;function nT(e){const t={},n=e.split(us.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],us.timeZoneDelimiter.test(t.date)&&(t.date=e.split(us.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const a=us.timezone.exec(r);a?(t.time=r.replace(a[1],""),t.timezone=a[1]):t.time=r}return t}function rT(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 a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function aT(e,t){if(t===null)return new Date(NaN);const n=e.match(Q4);if(!n)return new Date(NaN);const r=!!n[4],a=Ri(n[1]),i=Ri(n[2])-1,o=Ri(n[3]),s=Ri(n[4]),u=Ri(n[5])-1;if(r)return dT(t,s,u)?sT(t,s,u):new Date(NaN);{const c=new Date(0);return!uT(t,i,o)||!lT(t,a)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(a,o)),c)}}function Ri(e){return e?parseInt(e):1}function iT(e){const t=e.match(eT);if(!t)return NaN;const n=wl(t[1]),r=wl(t[2]),a=wl(t[3]);return fT(n,r,a)?n*Pc+r*Uf+a*1e3:NaN}function wl(e){return e&&parseFloat(e.replace(",","."))||0}function oT(e){if(e==="Z")return 0;const t=e.match(tT);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return hT(r,a)?n*(r*Pc+a*Uf):NaN}function sT(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const a=r.getUTCDay()||7,i=(t-1)*7+n+1-a;return r.setUTCDate(r.getUTCDate()+i),r}const cT=[31,null,31,30,31,30,31,31,30,31,30,31];function ay(e){return e%400===0||e%4===0&&e%100!==0}function uT(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(cT[t]||(ay(e)?29:28))}function lT(e,t){return t>=1&&t<=(ay(e)?366:365)}function dT(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function fT(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function hT(e,t){return t>=0&&t<=59}function wd(){return wd=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},wd.apply(null,arguments)}function iy(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 pT=function(e,t,n,r,a,i,o,s){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){var u;if(t===void 0)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,a,i,o,s],l=0;u=new Error(t.replace(/%s/g,function(){return c[l++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}},mT=pT;const Td=Tt(mT);function pm(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function gT(e){var t=vT(e,"string");return typeof t=="symbol"?t:String(t)}function vT(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 oy(e,t,n){var r=h.useRef(e!==void 0),a=h.useState(t),i=a[0],o=a[1],s=e!==void 0,u=r.current;return r.current=s,!s&&u&&i!==t&&o(t),[s?e:i,h.useCallback(function(c){for(var l=arguments.length,d=new Array(l>1?l-1:0),f=1;f<l;f++)d[f-1]=arguments[f];n&&n.apply(void 0,[c].concat(d)),o(c)},[n])]}function sy(e,t){return Object.keys(t).reduce(function(n,r){var a,i=n,o=i[pm(r)],s=i[r],u=iy(i,[pm(r),r].map(gT)),c=t[r],l=oy(s,o,e[c]),d=l[0],f=l[1];return wd({},u,(a={},a[r]=d,a[c]=f,a))},e)}function Cd(e,t){return Cd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Cd(e,t)}function yT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cd(e,t)}const bT=["xxl","xl","lg","md","sm","xs"],xT="xs",Nc=oe.createContext({prefixes:{},breakpoints:bT,minBreakpoint:xT});function Le(e,t){const{prefixes:n}=h.useContext(Nc);return e||n[t]||t}function _T(){const{breakpoints:e}=h.useContext(Nc);return e}function wT(){const{minBreakpoint:e}=h.useContext(Nc);return e}function Fc(){const{dir:e}=h.useContext(Nc);return e==="rtl"}function ui(e){return e&&e.ownerDocument||document}function TT(e){var t=ui(e);return t&&t.defaultView||window}function CT(e,t){return TT(e).getComputedStyle(e,t)}var kT=/([A-Z])/g;function ST(e){return e.replace(kT,"-$1").toLowerCase()}var OT=/^ms-/;function ls(e){return ST(e).replace(OT,"-ms-")}var ET=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function $T(e){return!!(e&&ET.test(e))}function Rr(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(ls(t))||CT(e).getPropertyValue(ls(t));Object.keys(t).forEach(function(a){var i=t[a];!i&&i!==0?e.style.removeProperty(ls(a)):$T(a)?r+=a+"("+i+") ":n+=ls(a)+": "+i+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var kd={exports:{}},ds={exports:{}},He={};/** @license React v16.13.1
35
35
  * react-is.production.min.js
36
36
  *
37
37
  * Copyright (c) Facebook, Inc. and its affiliates.
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var mm;function MT(){if(mm)return He;mm=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,a=e?Symbol.for("react.strict_mode"):60108,i=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,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(_){if(typeof _=="object"&&_!==null){var C=_.$$typeof;switch(C){case t:switch(_=_.type,_){case c:case u:case r:case i:case a:case d:return _;default:switch(_=_&&_.$$typeof,_){case s:case l:case g:case p:case o:return _;default:return C}}case n:return C}}}function T(_){return b(_)===u}return He.AsyncMode=c,He.ConcurrentMode=u,He.ContextConsumer=s,He.ContextProvider=o,He.Element=t,He.ForwardRef=l,He.Fragment=r,He.Lazy=g,He.Memo=p,He.Portal=n,He.Profiler=i,He.StrictMode=a,He.Suspense=d,He.isAsyncMode=function(_){return T(_)||b(_)===c},He.isConcurrentMode=T,He.isContextConsumer=function(_){return b(_)===s},He.isContextProvider=function(_){return b(_)===o},He.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},He.isForwardRef=function(_){return b(_)===l},He.isFragment=function(_){return b(_)===r},He.isLazy=function(_){return b(_)===g},He.isMemo=function(_){return b(_)===p},He.isPortal=function(_){return b(_)===n},He.isProfiler=function(_){return b(_)===i},He.isStrictMode=function(_){return b(_)===a},He.isSuspense=function(_){return b(_)===d},He.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===u||_===i||_===a||_===d||_===f||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===p||_.$$typeof===o||_.$$typeof===s||_.$$typeof===l||_.$$typeof===m||_.$$typeof===x||_.$$typeof===w||_.$$typeof===v)},He.typeOf=b,He}var Ve={};/** @license React v16.13.1
41
+ */var mm;function MT(){if(mm)return He;mm=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,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(_){if(typeof _=="object"&&_!==null){var C=_.$$typeof;switch(C){case t:switch(_=_.type,_){case u:case c:case r:case i:case a:case d:return _;default:switch(_=_&&_.$$typeof,_){case s:case l:case m:case p:case o:return _;default:return C}}case n:return C}}}function T(_){return b(_)===c}return He.AsyncMode=u,He.ConcurrentMode=c,He.ContextConsumer=s,He.ContextProvider=o,He.Element=t,He.ForwardRef=l,He.Fragment=r,He.Lazy=m,He.Memo=p,He.Portal=n,He.Profiler=i,He.StrictMode=a,He.Suspense=d,He.isAsyncMode=function(_){return T(_)||b(_)===u},He.isConcurrentMode=T,He.isContextConsumer=function(_){return b(_)===s},He.isContextProvider=function(_){return b(_)===o},He.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},He.isForwardRef=function(_){return b(_)===l},He.isFragment=function(_){return b(_)===r},He.isLazy=function(_){return b(_)===m},He.isMemo=function(_){return b(_)===p},He.isPortal=function(_){return b(_)===n},He.isProfiler=function(_){return b(_)===i},He.isStrictMode=function(_){return b(_)===a},He.isSuspense=function(_){return b(_)===d},He.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===c||_===i||_===a||_===d||_===f||typeof _=="object"&&_!==null&&(_.$$typeof===m||_.$$typeof===p||_.$$typeof===o||_.$$typeof===s||_.$$typeof===l||_.$$typeof===v||_.$$typeof===x||_.$$typeof===w||_.$$typeof===g)},He.typeOf=b,He}var Ve={};/** @license React v16.13.1
42
42
  * react-is.development.js
43
43
  *
44
44
  * Copyright (c) Facebook, Inc. and its affiliates.
45
45
  *
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
- */var gm;function RT(){return gm||(gm=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,a=e?Symbol.for("react.strict_mode"):60108,i=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,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(k){return typeof k=="string"||typeof k=="function"||k===r||k===u||k===i||k===a||k===d||k===f||typeof k=="object"&&k!==null&&(k.$$typeof===g||k.$$typeof===p||k.$$typeof===o||k.$$typeof===s||k.$$typeof===l||k.$$typeof===m||k.$$typeof===x||k.$$typeof===w||k.$$typeof===v)}function T(k){if(typeof k=="object"&&k!==null){var ge=k.$$typeof;switch(ge){case t:var pe=k.type;switch(pe){case c:case u:case r:case i:case a:case d:return pe;default:var de=pe&&pe.$$typeof;switch(de){case s:case l:case g:case p:case o:return de;default:return ge}}case n:return ge}}}var _=c,C=u,$=s,A=o,D=t,j=l,E=r,F=g,M=p,R=n,I=i,U=a,N=d,q=!1;function z(k){return q||(q=!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.")),P(k)||T(k)===c}function P(k){return T(k)===u}function W(k){return T(k)===s}function Z(k){return T(k)===o}function ne(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function Y(k){return T(k)===l}function Q(k){return T(k)===r}function G(k){return T(k)===g}function J(k){return T(k)===p}function re(k){return T(k)===n}function L(k){return T(k)===i}function V(k){return T(k)===a}function ae(k){return T(k)===d}Ve.AsyncMode=_,Ve.ConcurrentMode=C,Ve.ContextConsumer=$,Ve.ContextProvider=A,Ve.Element=D,Ve.ForwardRef=j,Ve.Fragment=E,Ve.Lazy=F,Ve.Memo=M,Ve.Portal=R,Ve.Profiler=I,Ve.StrictMode=U,Ve.Suspense=N,Ve.isAsyncMode=z,Ve.isConcurrentMode=P,Ve.isContextConsumer=W,Ve.isContextProvider=Z,Ve.isElement=ne,Ve.isForwardRef=Y,Ve.isFragment=Q,Ve.isLazy=G,Ve.isMemo=J,Ve.isPortal=re,Ve.isProfiler=L,Ve.isStrictMode=V,Ve.isSuspense=ae,Ve.isValidElementType=b,Ve.typeOf=T}()),Ve}var vm;function cy(){return vm||(vm=1,process.env.NODE_ENV==="production"?ds.exports=MT():ds.exports=RT()),ds.exports}/*
48
+ */var gm;function RT(){return gm||(gm=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,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(k){return typeof k=="string"||typeof k=="function"||k===r||k===c||k===i||k===a||k===d||k===f||typeof k=="object"&&k!==null&&(k.$$typeof===m||k.$$typeof===p||k.$$typeof===o||k.$$typeof===s||k.$$typeof===l||k.$$typeof===v||k.$$typeof===x||k.$$typeof===w||k.$$typeof===g)}function T(k){if(typeof k=="object"&&k!==null){var ge=k.$$typeof;switch(ge){case t:var pe=k.type;switch(pe){case u:case c:case r:case i:case a:case d:return pe;default:var de=pe&&pe.$$typeof;switch(de){case s:case l:case m:case p:case o:return de;default:return ge}}case n:return ge}}}var _=u,C=c,$=s,A=o,D=t,j=l,E=r,F=m,M=p,R=n,I=i,U=a,N=d,q=!1;function z(k){return q||(q=!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.")),P(k)||T(k)===u}function P(k){return T(k)===c}function W(k){return T(k)===s}function Z(k){return T(k)===o}function ne(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function Y(k){return T(k)===l}function Q(k){return T(k)===r}function G(k){return T(k)===m}function J(k){return T(k)===p}function re(k){return T(k)===n}function L(k){return T(k)===i}function V(k){return T(k)===a}function ae(k){return T(k)===d}Ve.AsyncMode=_,Ve.ConcurrentMode=C,Ve.ContextConsumer=$,Ve.ContextProvider=A,Ve.Element=D,Ve.ForwardRef=j,Ve.Fragment=E,Ve.Lazy=F,Ve.Memo=M,Ve.Portal=R,Ve.Profiler=I,Ve.StrictMode=U,Ve.Suspense=N,Ve.isAsyncMode=z,Ve.isConcurrentMode=P,Ve.isContextConsumer=W,Ve.isContextProvider=Z,Ve.isElement=ne,Ve.isForwardRef=Y,Ve.isFragment=Q,Ve.isLazy=G,Ve.isMemo=J,Ve.isPortal=re,Ve.isProfiler=L,Ve.isStrictMode=V,Ve.isSuspense=ae,Ve.isValidElementType=b,Ve.typeOf=T}()),Ve}var vm;function cy(){return vm||(vm=1,process.env.NODE_ENV==="production"?ds.exports=MT():ds.exports=RT()),ds.exports}/*
49
49
  object-assign
50
50
  (c) Sindre Sorhus
51
51
  @license MIT
52
- */var Tl,ym;function AT(){if(ym)return Tl;ym=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(o).map(function(l){return o[l]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(l){u[l]=l}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Tl=a()?Object.assign:function(i,o){for(var s,c=r(i),u,l=1;l<arguments.length;l++){s=Object(arguments[l]);for(var d in s)t.call(s,d)&&(c[d]=s[d]);if(e){u=e(s);for(var f=0;f<u.length;f++)n.call(s,u[f])&&(c[u[f]]=s[u[f]])}}return c},Tl}var Cl,bm;function zf(){if(bm)return Cl;bm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Cl=e,Cl}var kl,xm;function uy(){return xm||(xm=1,kl=Function.call.bind(Object.prototype.hasOwnProperty)),kl}var Sl,_m;function jT(){if(_m)return Sl;_m=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=zf(),n={},r=uy();e=function(i){var o="Warning: "+i;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(i,o,s,c,u){if(process.env.NODE_ENV!=="production"){for(var l in i)if(r(i,l)){var d;try{if(typeof i[l]!="function"){var f=Error((c||"React class")+": "+s+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=i[l](o,l,c,s,null,t)}catch(g){d=g}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+l+"` 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 p=u?u():"";e("Failed "+s+" type: "+d.message+(p??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Sl=a,Sl}var Ol,wm;function PT(){if(wm)return Ol;wm=1;var e=cy(),t=AT(),n=zf(),r=uy(),a=jT(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function o(){return null}return Ol=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function d(P){var W=P&&(u&&P[u]||P[l]);if(typeof W=="function")return W}var f="<<anonymous>>",p={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:w(),arrayOf:b,element:T(),elementType:_(),instanceOf:C,node:j(),objectOf:A,oneOf:$,oneOfType:D,shape:F,exact:M};function g(P,W){return P===W?P!==0||1/P===1/W:P!==P&&W!==W}function v(P,W){this.message=P,this.data=W&&typeof W=="object"?W:{},this.stack=""}v.prototype=Error.prototype;function m(P){if(process.env.NODE_ENV!=="production")var W={},Z=0;function ne(Q,G,J,re,L,V,ae){if(re=re||f,V=V||J,ae!==n){if(c){var k=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 k.name="Invariant Violation",k}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ge=re+":"+J;!W[ge]&&Z<3&&(i("You are manually calling a React.PropTypes validation function for the `"+V+"` prop on `"+re+"`. 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."),W[ge]=!0,Z++)}}return G[J]==null?Q?G[J]===null?new v("The "+L+" `"+V+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new v("The "+L+" `"+V+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:P(G,J,re,L,V)}var Y=ne.bind(null,!1);return Y.isRequired=ne.bind(null,!0),Y}function x(P){function W(Z,ne,Y,Q,G,J){var re=Z[ne],L=U(re);if(L!==P){var V=N(re);return new v("Invalid "+Q+" `"+G+"` of type "+("`"+V+"` supplied to `"+Y+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return m(W)}function w(){return m(o)}function b(P){function W(Z,ne,Y,Q,G){if(typeof P!="function")return new v("Property `"+G+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var J=Z[ne];if(!Array.isArray(J)){var re=U(J);return new v("Invalid "+Q+" `"+G+"` of type "+("`"+re+"` supplied to `"+Y+"`, expected an array."))}for(var L=0;L<J.length;L++){var V=P(J,L,Y,Q,G+"["+L+"]",n);if(V instanceof Error)return V}return null}return m(W)}function T(){function P(W,Z,ne,Y,Q){var G=W[Z];if(!s(G)){var J=U(G);return new v("Invalid "+Y+" `"+Q+"` of type "+("`"+J+"` supplied to `"+ne+"`, expected a single ReactElement."))}return null}return m(P)}function _(){function P(W,Z,ne,Y,Q){var G=W[Z];if(!e.isValidElementType(G)){var J=U(G);return new v("Invalid "+Y+" `"+Q+"` of type "+("`"+J+"` supplied to `"+ne+"`, expected a single ReactElement type."))}return null}return m(P)}function C(P){function W(Z,ne,Y,Q,G){if(!(Z[ne]instanceof P)){var J=P.name||f,re=z(Z[ne]);return new v("Invalid "+Q+" `"+G+"` of type "+("`"+re+"` supplied to `"+Y+"`, expected ")+("instance of `"+J+"`."))}return null}return m(W)}function $(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),o;function W(Z,ne,Y,Q,G){for(var J=Z[ne],re=0;re<P.length;re++)if(g(J,P[re]))return null;var L=JSON.stringify(P,function(ae,k){var ge=N(k);return ge==="symbol"?String(k):k});return new v("Invalid "+Q+" `"+G+"` of value `"+String(J)+"` "+("supplied to `"+Y+"`, expected one of "+L+"."))}return m(W)}function A(P){function W(Z,ne,Y,Q,G){if(typeof P!="function")return new v("Property `"+G+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var J=Z[ne],re=U(J);if(re!=="object")return new v("Invalid "+Q+" `"+G+"` of type "+("`"+re+"` supplied to `"+Y+"`, expected an object."));for(var L in J)if(r(J,L)){var V=P(J,L,Y,Q,G+"."+L,n);if(V instanceof Error)return V}return null}return m(W)}function D(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var W=0;W<P.length;W++){var Z=P[W];if(typeof Z!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(Z)+" at index "+W+"."),o}function ne(Y,Q,G,J,re){for(var L=[],V=0;V<P.length;V++){var ae=P[V],k=ae(Y,Q,G,J,re,n);if(k==null)return null;k.data&&r(k.data,"expectedType")&&L.push(k.data.expectedType)}var ge=L.length>0?", expected one of type ["+L.join(", ")+"]":"";return new v("Invalid "+J+" `"+re+"` supplied to "+("`"+G+"`"+ge+"."))}return m(ne)}function j(){function P(W,Z,ne,Y,Q){return R(W[Z])?null:new v("Invalid "+Y+" `"+Q+"` supplied to "+("`"+ne+"`, expected a ReactNode."))}return m(P)}function E(P,W,Z,ne,Y){return new v((P||"React class")+": "+W+" type `"+Z+"."+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function F(P){function W(Z,ne,Y,Q,G){var J=Z[ne],re=U(J);if(re!=="object")return new v("Invalid "+Q+" `"+G+"` of type `"+re+"` "+("supplied to `"+Y+"`, expected `object`."));for(var L in P){var V=P[L];if(typeof V!="function")return E(Y,Q,G,L,N(V));var ae=V(J,L,Y,Q,G+"."+L,n);if(ae)return ae}return null}return m(W)}function M(P){function W(Z,ne,Y,Q,G){var J=Z[ne],re=U(J);if(re!=="object")return new v("Invalid "+Q+" `"+G+"` of type `"+re+"` "+("supplied to `"+Y+"`, expected `object`."));var L=t({},Z[ne],P);for(var V in L){var ae=P[V];if(r(P,V)&&typeof ae!="function")return E(Y,Q,G,V,N(ae));if(!ae)return new v("Invalid "+Q+" `"+G+"` key `"+V+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(Z[ne],null," ")+`
53
- Valid keys: `+JSON.stringify(Object.keys(P),null," "));var k=ae(J,V,Y,Q,G+"."+V,n);if(k)return k}return null}return m(W)}function R(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(R);if(P===null||s(P))return!0;var W=d(P);if(W){var Z=W.call(P),ne;if(W!==P.entries){for(;!(ne=Z.next()).done;)if(!R(ne.value))return!1}else for(;!(ne=Z.next()).done;){var Y=ne.value;if(Y&&!R(Y[1]))return!1}}else return!1;return!0;default:return!1}}function I(P,W){return P==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function U(P){var W=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":I(W,P)?"symbol":W}function N(P){if(typeof P>"u"||P===null)return""+P;var W=U(P);if(W==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return W}function q(P){var W=N(P);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function z(P){return!P.constructor||!P.constructor.name?f:P.constructor.name}return p.checkPropTypes=a,p.resetWarningCache=a.resetWarningCache,p.PropTypes=p,p},Ol}var El,Tm;function DT(){if(Tm)return El;Tm=1;var e=zf();function t(){}function n(){}return n.resetWarningCache=t,El=function(){function r(o,s,c,u,l,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 a(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},El}if(process.env.NODE_ENV!=="production"){var IT=cy(),NT=!0;kd.exports=PT()(IT.isElement,NT)}else kd.exports=DT()();var FT=kd.exports;const O=Tt(FT),Cm={disabled:!1};var LT=process.env.NODE_ENV!=="production"?O.oneOfType([O.number,O.shape({enter:O.number,exit:O.number,appear:O.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&O.oneOfType([O.string,O.shape({enter:O.string,exit:O.string,active:O.string}),O.shape({enter:O.string,enterDone:O.string,enterActive:O.string,exit:O.string,exitDone:O.string,exitActive:O.string})]);const ly=h.createContext(null);var UT=function(t){return t.scrollTop},qi="unmounted",Cr="exited",ar="entering",kr="entered",Ws="exiting",gr=function(e){yT(t,e);function t(r,a){var i;i=e.call(this,r,a)||this;var o=a,s=o&&!o.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?s?(c=Cr,i.appearStatus=ar):c=kr:r.unmountOnExit||r.mountOnEnter?c=qi:c=Cr,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var o=a.in;return o&&i.status===qi?{status:Cr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var i=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==ar&&o!==kr&&(i=ar):(o===ar||o===kr)&&(i=Ws)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,i,o,s;return i=o=s=a,a!=null&&typeof a!="number"&&(i=a.exit,o=a.enter,s=a.appear!==void 0?a.appear:o),{exit:i,enter:o,appear:s}},n.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===ar){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Er.findDOMNode(this);o&&UT(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Cr&&this.setState({status:qi})},n.performEnter=function(a){var i=this,o=this.props.enter,s=this.context?this.context.isMounting:a,c=this.props.nodeRef?[s]:[Er.findDOMNode(this),s],u=c[0],l=c[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!a&&!o||Cm.disabled){this.safeSetState({status:kr},function(){i.props.onEntered(u)});return}this.props.onEnter(u,l),this.safeSetState({status:ar},function(){i.props.onEntering(u,l),i.onTransitionEnd(f,function(){i.safeSetState({status:kr},function(){i.props.onEntered(u,l)})})})},n.performExit=function(){var a=this,i=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:Er.findDOMNode(this);if(!i||Cm.disabled){this.safeSetState({status:Cr},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Ws},function(){a.props.onExiting(s),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:Cr},function(){a.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},n.setNextCallback=function(a){var i=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,i.nextCallback=null,a(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(a,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:Er.findDOMNode(this),s=a==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],u=c[0],l=c[1];this.props.addEndListener(u,l)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===qi)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=iy(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return h.createElement(ly.Provider,{value:null},typeof o=="function"?o(a,s):h.cloneElement(h.Children.only(o),s))},t}(h.Component);gr.contextType=ly;gr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:O.shape({current:typeof Element>"u"?O.any:function(e,t,n,r,a,i){var o=e[t];return O.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,r,a,i)}}),children:O.oneOfType([O.func.isRequired,O.element.isRequired]).isRequired,in:O.bool,mountOnEnter:O.bool,unmountOnExit:O.bool,appear:O.bool,enter:O.bool,exit:O.bool,timeout:function(t){var n=LT;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return n.apply(void 0,[t].concat(a))},addEndListener:O.func,onEnter:O.func,onEntering:O.func,onEntered:O.func,onExit:O.func,onExiting:O.func,onExited:O.func}:{};function Ma(){}gr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ma,onEntering:Ma,onEntered:Ma,onExit:Ma,onExiting:Ma,onExited:Ma};gr.UNMOUNTED=qi;gr.EXITED=Cr;gr.ENTERING=ar;gr.ENTERED=kr;gr.EXITING=Ws;const li=!!(typeof window<"u"&&window.document&&window.document.createElement);var Sd=!1,Od=!1;try{var $l={get passive(){return Sd=!0},get once(){return Od=Sd=!0}};li&&(window.addEventListener("test",$l,$l),window.removeEventListener("test",$l,!0))}catch{}function Hf(e,t,n,r){if(r&&typeof r!="boolean"&&!Od){var a=r.once,i=r.capture,o=n;!Od&&a&&(o=n.__once||function s(c){this.removeEventListener(t,s,i),n.call(this,c)},n.__once=o),e.addEventListener(t,o,Sd?r:i)}e.addEventListener(t,n,r)}function Ed(e,t,n,r){var a=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,a),n.__once&&e.removeEventListener(t,n.__once,a)}function or(e,t,n,r){return Hf(e,t,n,r),function(){Ed(e,t,n,r)}}function BT(e,t,n,r){if(r===void 0&&(r=!0),e){var a=document.createEvent("HTMLEvents");a.initEvent(t,n,r),e.dispatchEvent(a)}}function WT(e){var t=Rr(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function zT(e,t,n){n===void 0&&(n=5);var r=!1,a=setTimeout(function(){r||BT(e,"transitionend",!0)},t+n),i=or(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(a),i()}}function dy(e,t,n,r){n==null&&(n=WT(e)||0);var a=zT(e,n,r),i=or(e,"transitionend",t);return function(){a(),i()}}function km(e,t){const n=Rr(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function fy(e,t){const n=km(e,"transitionDuration"),r=km(e,"transitionDelay"),a=dy(e,i=>{i.target===e&&(a(),t(i))},n+r)}function hy(e){e.offsetHeight}const Sm=e=>!e||typeof e=="function"?e:t=>{e.current=t};function HT(e,t){const n=Sm(e),r=Sm(t);return a=>{n&&n(a),r&&r(a)}}function $n(e,t){return h.useMemo(()=>HT(e,t),[e,t])}function zs(e){return e&&"setState"in e?Er.findDOMNode(e):e??null}const py=h.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:a,onExited:i,addEndListener:o,children:s,childRef:c,...u},l)=>{const d=h.useRef(null),f=$n(d,c),p=C=>{f(zs(C))},g=C=>$=>{C&&d.current&&C(d.current,$)},v=h.useCallback(g(e),[e]),m=h.useCallback(g(t),[t]),x=h.useCallback(g(n),[n]),w=h.useCallback(g(r),[r]),b=h.useCallback(g(a),[a]),T=h.useCallback(g(i),[i]),_=h.useCallback(g(o),[o]);return y.jsx(gr,{ref:l,...u,onEnter:v,onEntered:x,onEntering:m,onExit:w,onExited:T,onExiting:b,addEndListener:_,nodeRef:d,children:typeof s=="function"?(C,$)=>s(C,{...$,ref:p}):h.cloneElement(s,{ref:p})})});function VT(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function bt(e){const t=VT(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const my=e=>oe.forwardRef((t,n)=>y.jsx("div",{...t,ref:n,className:ie(t.className,e)}));function Hs(){return h.useState(null)}function qT(e,t,n,r=!1){const a=bt(n);h.useEffect(()=>{const i=typeof e=="function"?e():e;return i.addEventListener(t,a,r),()=>i.removeEventListener(t,a,r)},[e])}function Vf(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function gy(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current}const YT=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",GT=typeof document<"u",ao=GT||YT?h.useLayoutEffect:h.useEffect,ZT=["as","disabled"];function KT(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 XT(e){return!e||e.trim()==="#"}function qf({tagName:e,disabled:t,href:n,target:r,rel:a,role:i,onClick:o,tabIndex:s=0,type:c}){e||(n!=null||r!=null||a!=null?e="a":e="button");const u={tagName:e};if(e==="button")return[{type:c||"button",disabled:t},u];const l=f=>{if((t||e==="a"&&XT(n))&&f.preventDefault(),t){f.stopPropagation();return}o==null||o(f)},d=f=>{f.key===" "&&(f.preventDefault(),l(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"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"?a:void 0,onClick:l,onKeyDown:d},u]}const Yf=oe.forwardRef((e,t)=>{let{as:n,disabled:r}=e,a=KT(e,ZT);const[i,{tagName:o}]=qf(Object.assign({tagName:n,disabled:r},a));return y.jsx(o,Object.assign({},a,i,{ref:t}))});Yf.displayName="Button";const JT=["onKeyDown"];function QT(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 e3(e){return!e||e.trim()==="#"}const Gf=oe.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=QT(e,JT);const[a]=qf(Object.assign({tagName:"a"},r)),i=bt(o=>{a.onKeyDown(o),n==null||n(o)});return e3(r.href)||r.role==="button"?y.jsx("a",Object.assign({ref:t},r,a,{onKeyDown:i})):y.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});Gf.displayName="Anchor";const t3={[ar]:"show",[kr]:"show"},Ya=oe.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...a},i)=>{const o={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},s=h.useCallback((c,u)=>{hy(c),r==null||r(c,u)},[r]);return y.jsx(py,{ref:i,addEndListener:fy,...o,onEnter:s,childRef:t.ref,children:(c,u)=>oe.cloneElement(t,{...u,className:ie("fade",e,t.props.className,t3[c],n[c])})})});Ya.displayName="Fade";const n3={"aria-label":O.string,onClick:O.func,variant:O.oneOf(["white"])},Lc=oe.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},a)=>y.jsx("button",{ref:a,type:"button",className:ie("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Lc.displayName="CloseButton";Lc.propTypes=n3;const Zf=oe.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:a=!1,disabled:i=!1,className:o,...s},c)=>{const u=Le(t,"btn"),[l,{tagName:d}]=qf({tagName:e,disabled:i,...s}),f=d;return y.jsx(f,{...l,...s,ref:c,disabled:i,className:ie(o,u,a&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,s.href&&i&&"disabled")})});Zf.displayName="Button";function r3(e){const t=h.useRef(e);return t.current=e,t}function Kf(e){const t=r3(e);h.useEffect(()=>()=>t.current(),[])}const $d=2**31-1;function vy(e,t,n){const r=n-Date.now();e.current=r<=$d?setTimeout(t,r):setTimeout(()=>vy(e,t,n),$d)}function a3(){const e=Vf(),t=h.useRef();return Kf(()=>clearTimeout(t.current)),h.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(a,i=0){e()&&(n(),i<=$d?t.current=setTimeout(a,i):vy(t,a,Date.now()+i))}return{set:r,clear:n,handleRef:t}},[])}function i3(e,t){return oe.Children.toArray(e).some(n=>oe.isValidElement(n)&&n.type===t)}function yy({as:e,bsPrefix:t,className:n,...r}){t=Le(t,"col");const a=_T(),i=wT(),o=[],s=[];return a.forEach(c=>{const u=r[c];delete r[c];let l,d,f;typeof u=="object"&&u!=null?{span:l,offset:d,order:f}=u:l=u;const p=c!==i?`-${c}`:"";l&&o.push(l===!0?`${t}${p}`:`${t}${p}-${l}`),f!=null&&s.push(`order${p}-${f}`),d!=null&&s.push(`offset${p}-${d}`)}),[{...r,className:ie(n,...o,...s)},{as:e,bsPrefix:t,spans:o}]}const by=oe.forwardRef((e,t)=>{const[{className:n,...r},{as:a="div",bsPrefix:i,spans:o}]=yy(e);return y.jsx(a,{...r,ref:t,className:ie(n,!o.length&&i)})});by.displayName="Col";var o3=Function.prototype.bind.call(Function.prototype.call,[].slice);function ir(e,t){return o3(e.querySelectorAll(t))}function s3(e,t,n){const r=h.useRef(e!==void 0),[a,i]=h.useState(t),o=e!==void 0,s=r.current;return r.current=o,!o&&s&&a!==t&&i(t),[o?e:a,h.useCallback((...c)=>{const[u,...l]=c;let d=n==null?void 0:n(u,...l);return i(u),d},[n])]}function xy(){const[,e]=h.useReducer(t=>!t,!1);return e}const Uc=oe.createContext(null);var Om=Object.prototype.hasOwnProperty;function Em(e,t,n){for(n of e.keys())if(Xi(n,t))return n}function Xi(e,t){var n,r,a;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--&&Xi(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(a=r,a&&typeof a=="object"&&(a=Em(t,a),!a)||!t.has(a))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(a=r[0],a&&typeof a=="object"&&(a=Em(t,a),!a)||!Xi(r[1],t.get(a)))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(Om.call(e,n)&&++r&&!Om.call(t,n)||!(n in t)||!Xi(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function c3(e){const t=Vf();return[e[0],h.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var an="top",On="bottom",En="right",on="left",Xf="auto",Ho=[an,On,En,on],Ga="start",io="end",u3="clippingParents",_y="viewport",Ai="popper",l3="reference",$m=Ho.reduce(function(e,t){return e.concat([t+"-"+Ga,t+"-"+io])},[]),wy=[].concat(Ho,[Xf]).reduce(function(e,t){return e.concat([t,t+"-"+Ga,t+"-"+io])},[]),d3="beforeRead",f3="read",h3="afterRead",p3="beforeMain",m3="main",g3="afterMain",v3="beforeWrite",y3="write",b3="afterWrite",x3=[d3,f3,h3,p3,m3,g3,v3,y3,b3];function Hn(e){return e.split("-")[0]}function vn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ca(e){var t=vn(e).Element;return e instanceof t||e instanceof Element}function Vn(e){var t=vn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Jf(e){if(typeof ShadowRoot>"u")return!1;var t=vn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var ta=Math.max,Vs=Math.min,Za=Math.round;function Md(){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 Ty(){return!/^((?!chrome|android).)*safari/i.test(Md())}function Ka(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,i=1;t&&Vn(e)&&(a=e.offsetWidth>0&&Za(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Za(r.height)/e.offsetHeight||1);var o=ca(e)?vn(e):window,s=o.visualViewport,c=!Ty()&&n,u=(r.left+(c&&s?s.offsetLeft:0))/a,l=(r.top+(c&&s?s.offsetTop:0))/i,d=r.width/a,f=r.height/i;return{width:d,height:f,top:l,right:u+d,bottom:l+f,left:u,x:u,y:l}}function Qf(e){var t=Ka(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 Cy(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Jf(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function jr(e){return e?(e.nodeName||"").toLowerCase():null}function lr(e){return vn(e).getComputedStyle(e)}function _3(e){return["table","td","th"].indexOf(jr(e))>=0}function Br(e){return((ca(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bc(e){return jr(e)==="html"?e:e.assignedSlot||e.parentNode||(Jf(e)?e.host:null)||Br(e)}function Mm(e){return!Vn(e)||lr(e).position==="fixed"?null:e.offsetParent}function w3(e){var t=/firefox/i.test(Md()),n=/Trident/i.test(Md());if(n&&Vn(e)){var r=lr(e);if(r.position==="fixed")return null}var a=Bc(e);for(Jf(a)&&(a=a.host);Vn(a)&&["html","body"].indexOf(jr(a))<0;){var i=lr(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function Vo(e){for(var t=vn(e),n=Mm(e);n&&_3(n)&&lr(n).position==="static";)n=Mm(n);return n&&(jr(n)==="html"||jr(n)==="body"&&lr(n).position==="static")?t:n||w3(e)||t}function eh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ji(e,t,n){return ta(e,Vs(t,n))}function T3(e,t,n){var r=Ji(e,t,n);return r>n?n:r}function ky(){return{top:0,right:0,bottom:0,left:0}}function Sy(e){return Object.assign({},ky(),e)}function Oy(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var C3=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Sy(typeof t!="number"?t:Oy(t,Ho))};function k3(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Hn(n.placement),c=eh(s),u=[on,En].indexOf(s)>=0,l=u?"height":"width";if(!(!i||!o)){var d=C3(a.padding,n),f=Qf(i),p=c==="y"?an:on,g=c==="y"?On:En,v=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],m=o[c]-n.rects.reference[c],x=Vo(i),w=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,b=v/2-m/2,T=d[p],_=w-f[l]-d[g],C=w/2-f[l]/2+b,$=Ji(T,C,_),A=c;n.modifiersData[r]=(t={},t[A]=$,t.centerOffset=$-C,t)}}function S3(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Cy(t.elements.popper,a)&&(t.elements.arrow=a))}const O3={name:"arrow",enabled:!0,phase:"main",fn:k3,effect:S3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xa(e){return e.split("-")[1]}var E3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $3(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:Za(n*a)/a||0,y:Za(r*a)/a||0}}function Rm(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,g=o.y,v=g===void 0?0:g,m=typeof l=="function"?l({x:p,y:v}):{x:p,y:v};p=m.x,v=m.y;var x=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),b=on,T=an,_=window;if(u){var C=Vo(n),$="clientHeight",A="clientWidth";if(C===vn(n)&&(C=Br(n),lr(C).position!=="static"&&s==="absolute"&&($="scrollHeight",A="scrollWidth")),C=C,a===an||(a===on||a===En)&&i===io){T=On;var D=d&&C===_&&_.visualViewport?_.visualViewport.height:C[$];v-=D-r.height,v*=c?1:-1}if(a===on||(a===an||a===On)&&i===io){b=En;var j=d&&C===_&&_.visualViewport?_.visualViewport.width:C[A];p-=j-r.width,p*=c?1:-1}}var E=Object.assign({position:s},u&&E3),F=l===!0?$3({x:p,y:v},vn(n)):{x:p,y:v};if(p=F.x,v=F.y,c){var M;return Object.assign({},E,(M={},M[T]=w?"0":"",M[b]=x?"0":"",M.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",M))}return Object.assign({},E,(t={},t[T]=w?v+"px":"",t[b]=x?p+"px":"",t.transform="",t))}function M3(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,s=n.roundOffsets,c=s===void 0?!0:s,u={placement:Hn(t.placement),variation:Xa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Rm(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Rm(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const R3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:M3,data:{}};var fs={passive:!0};function A3(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,o=r.resize,s=o===void 0?!0:o,c=vn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(l){l.addEventListener("scroll",n.update,fs)}),s&&c.addEventListener("resize",n.update,fs),function(){i&&u.forEach(function(l){l.removeEventListener("scroll",n.update,fs)}),s&&c.removeEventListener("resize",n.update,fs)}}const j3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:A3,data:{}};var P3={left:"right",right:"left",bottom:"top",top:"bottom"};function $s(e){return e.replace(/left|right|bottom|top/g,function(t){return P3[t]})}var D3={start:"end",end:"start"};function Am(e){return e.replace(/start|end/g,function(t){return D3[t]})}function th(e){var t=vn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function nh(e){return Ka(Br(e)).left+th(e).scrollLeft}function I3(e,t){var n=vn(e),r=Br(e),a=n.visualViewport,i=r.clientWidth,o=r.clientHeight,s=0,c=0;if(a){i=a.width,o=a.height;var u=Ty();(u||!u&&t==="fixed")&&(s=a.offsetLeft,c=a.offsetTop)}return{width:i,height:o,x:s+nh(e),y:c}}function N3(e){var t,n=Br(e),r=th(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=ta(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=ta(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+nh(e),c=-r.scrollTop;return lr(a||n).direction==="rtl"&&(s+=ta(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:c}}function rh(e){var t=lr(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function Ey(e){return["html","body","#document"].indexOf(jr(e))>=0?e.ownerDocument.body:Vn(e)&&rh(e)?e:Ey(Bc(e))}function Qi(e,t){var n;t===void 0&&(t=[]);var r=Ey(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=vn(r),o=a?[i].concat(i.visualViewport||[],rh(r)?r:[]):r,s=t.concat(o);return a?s:s.concat(Qi(Bc(o)))}function Rd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function F3(e,t){var n=Ka(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 jm(e,t,n){return t===_y?Rd(I3(e,n)):ca(t)?F3(t,n):Rd(N3(Br(e)))}function L3(e){var t=Qi(Bc(e)),n=["absolute","fixed"].indexOf(lr(e).position)>=0,r=n&&Vn(e)?Vo(e):e;return ca(r)?t.filter(function(a){return ca(a)&&Cy(a,r)&&jr(a)!=="body"}):[]}function U3(e,t,n,r){var a=t==="clippingParents"?L3(e):[].concat(t),i=[].concat(a,[n]),o=i[0],s=i.reduce(function(c,u){var l=jm(e,u,r);return c.top=ta(l.top,c.top),c.right=Vs(l.right,c.right),c.bottom=Vs(l.bottom,c.bottom),c.left=ta(l.left,c.left),c},jm(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 $y(e){var t=e.reference,n=e.element,r=e.placement,a=r?Hn(r):null,i=r?Xa(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(a){case an:c={x:o,y:t.y-n.height};break;case On:c={x:o,y:t.y+t.height};break;case En:c={x:t.x+t.width,y:s};break;case on:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var u=a?eh(a):null;if(u!=null){var l=u==="y"?"height":"width";switch(i){case Ga:c[u]=c[u]-(t[l]/2-n[l]/2);break;case io:c[u]=c[u]+(t[l]/2-n[l]/2);break}}return c}function oo(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,i=n.strategy,o=i===void 0?e.strategy:i,s=n.boundary,c=s===void 0?u3:s,u=n.rootBoundary,l=u===void 0?_y:u,d=n.elementContext,f=d===void 0?Ai:d,p=n.altBoundary,g=p===void 0?!1:p,v=n.padding,m=v===void 0?0:v,x=Sy(typeof m!="number"?m:Oy(m,Ho)),w=f===Ai?l3:Ai,b=e.rects.popper,T=e.elements[g?w:f],_=U3(ca(T)?T:T.contextElement||Br(e.elements.popper),c,l,o),C=Ka(e.elements.reference),$=$y({reference:C,element:b,strategy:"absolute",placement:a}),A=Rd(Object.assign({},b,$)),D=f===Ai?A:C,j={top:_.top-D.top+x.top,bottom:D.bottom-_.bottom+x.bottom,left:_.left-D.left+x.left,right:D.right-_.right+x.right},E=e.modifiersData.offset;if(f===Ai&&E){var F=E[a];Object.keys(j).forEach(function(M){var R=[En,On].indexOf(M)>=0?1:-1,I=[an,On].indexOf(M)>=0?"y":"x";j[M]+=F[I]*R})}return j}function B3(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?wy:c,l=Xa(r),d=l?s?$m:$m.filter(function(g){return Xa(g)===l}):Ho,f=d.filter(function(g){return u.indexOf(g)>=0});f.length===0&&(f=d);var p=f.reduce(function(g,v){return g[v]=oo(e,{placement:v,boundary:a,rootBoundary:i,padding:o})[Hn(v)],g},{});return Object.keys(p).sort(function(g,v){return p[g]-p[v]})}function W3(e){if(Hn(e)===Xf)return[];var t=$s(e);return[Am(e),t,Am(t)]}function z3(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,u=n.padding,l=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,g=p===void 0?!0:p,v=n.allowedAutoPlacements,m=t.options.placement,x=Hn(m),w=x===m,b=c||(w||!g?[$s(m)]:W3(m)),T=[m].concat(b).reduce(function(Y,Q){return Y.concat(Hn(Q)===Xf?B3(t,{placement:Q,boundary:l,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:v}):Q)},[]),_=t.rects.reference,C=t.rects.popper,$=new Map,A=!0,D=T[0],j=0;j<T.length;j++){var E=T[j],F=Hn(E),M=Xa(E)===Ga,R=[an,On].indexOf(F)>=0,I=R?"width":"height",U=oo(t,{placement:E,boundary:l,rootBoundary:d,altBoundary:f,padding:u}),N=R?M?En:on:M?On:an;_[I]>C[I]&&(N=$s(N));var q=$s(N),z=[];if(i&&z.push(U[F]<=0),s&&z.push(U[N]<=0,U[q]<=0),z.every(function(Y){return Y})){D=E,A=!1;break}$.set(E,z)}if(A)for(var P=g?3:1,W=function(Q){var G=T.find(function(J){var re=$.get(J);if(re)return re.slice(0,Q).every(function(L){return L})});if(G)return D=G,"break"},Z=P;Z>0;Z--){var ne=W(Z);if(ne==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const H3={name:"flip",enabled:!0,phase:"main",fn:z3,requiresIfExists:["offset"],data:{_skip:!1}};function Pm(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 Dm(e){return[an,En,On,on].some(function(t){return e[t]>=0})}function V3(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=oo(t,{elementContext:"reference"}),s=oo(t,{altBoundary:!0}),c=Pm(o,r),u=Pm(s,a,i),l=Dm(c),d=Dm(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}const q3={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V3};function Y3(e,t,n){var r=Hn(e),a=[on,an].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[on,En].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function G3(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,o=wy.reduce(function(l,d){return l[d]=Y3(d,t.rects,i),l},{}),s=o[t.placement],c=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const Z3={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:G3};function K3(e){var t=e.state,n=e.name;t.modifiersData[n]=$y({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const X3={name:"popperOffsets",enabled:!0,phase:"read",fn:K3,data:{}};function J3(e){return e==="x"?"y":"x"}function Q3(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,g=n.tetherOffset,v=g===void 0?0:g,m=oo(t,{boundary:c,rootBoundary:u,padding:d,altBoundary:l}),x=Hn(t.placement),w=Xa(t.placement),b=!w,T=eh(x),_=J3(T),C=t.modifiersData.popperOffsets,$=t.rects.reference,A=t.rects.popper,D=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,j=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(C){if(i){var M,R=T==="y"?an:on,I=T==="y"?On:En,U=T==="y"?"height":"width",N=C[T],q=N+m[R],z=N-m[I],P=p?-A[U]/2:0,W=w===Ga?$[U]:A[U],Z=w===Ga?-A[U]:-$[U],ne=t.elements.arrow,Y=p&&ne?Qf(ne):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ky(),G=Q[R],J=Q[I],re=Ji(0,$[U],Y[U]),L=b?$[U]/2-P-re-G-j.mainAxis:W-re-G-j.mainAxis,V=b?-$[U]/2+P+re+J+j.mainAxis:Z+re+J+j.mainAxis,ae=t.elements.arrow&&Vo(t.elements.arrow),k=ae?T==="y"?ae.clientTop||0:ae.clientLeft||0:0,ge=(M=E==null?void 0:E[T])!=null?M:0,pe=N+L-ge-k,de=N+V-ge,Ae=Ji(p?Vs(q,pe):q,N,p?ta(z,de):z);C[T]=Ae,F[T]=Ae-N}if(s){var Pe,ft=T==="x"?an:on,gt=T==="x"?On:En,We=C[_],rt=_==="y"?"height":"width",Ze=We+m[ft],xt=We-m[gt],_t=[an,on].indexOf(x)!==-1,at=(Pe=E==null?void 0:E[_])!=null?Pe:0,xe=_t?Ze:We-$[rt]-A[rt]-at+j.altAxis,Xe=_t?We+$[rt]+A[rt]-at-j.altAxis:xt,Ct=p&&_t?T3(xe,We,Xe):Ji(p?xe:Ze,We,p?Xe:xt);C[_]=Ct,F[_]=Ct-We}t.modifiersData[r]=F}}const eC={name:"preventOverflow",enabled:!0,phase:"main",fn:Q3,requiresIfExists:["offset"]};function tC(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function nC(e){return e===vn(e)||!Vn(e)?th(e):tC(e)}function rC(e){var t=e.getBoundingClientRect(),n=Za(t.width)/e.offsetWidth||1,r=Za(t.height)/e.offsetHeight||1;return n!==1||r!==1}function aC(e,t,n){n===void 0&&(n=!1);var r=Vn(t),a=Vn(t)&&rC(t),i=Br(t),o=Ka(e,a,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((jr(t)!=="body"||rh(i))&&(s=nC(t)),Vn(t)?(c=Ka(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=nh(i))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function iC(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var c=t.get(s);c&&a(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function oC(e){var t=iC(e);return x3.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function sC(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function cC(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Im={placement:"bottom",modifiers:[],strategy:"absolute"};function Nm(){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 uC(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?Im:a;return function(s,c,u){u===void 0&&(u=i);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Im,i),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},d=[],f=!1,p={state:l,setOptions:function(x){var w=typeof x=="function"?x(l.options):x;v(),l.options=Object.assign({},i,l.options,w),l.scrollParents={reference:ca(s)?Qi(s):s.contextElement?Qi(s.contextElement):[],popper:Qi(c)};var b=oC(cC([].concat(r,l.options.modifiers)));return l.orderedModifiers=b.filter(function(T){return T.enabled}),g(),p.update()},forceUpdate:function(){if(!f){var x=l.elements,w=x.reference,b=x.popper;if(Nm(w,b)){l.rects={reference:aC(w,Vo(b),l.options.strategy==="fixed"),popper:Qf(b)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(j){return l.modifiersData[j.name]=Object.assign({},j.data)});for(var T=0;T<l.orderedModifiers.length;T++){if(l.reset===!0){l.reset=!1,T=-1;continue}var _=l.orderedModifiers[T],C=_.fn,$=_.options,A=$===void 0?{}:$,D=_.name;typeof C=="function"&&(l=C({state:l,options:A,name:D,instance:p})||l)}}}},update:sC(function(){return new Promise(function(m){p.forceUpdate(),m(l)})}),destroy:function(){v(),f=!0}};if(!Nm(s,c))return p;p.setOptions(u).then(function(m){!f&&u.onFirstUpdate&&u.onFirstUpdate(m)});function g(){l.orderedModifiers.forEach(function(m){var x=m.name,w=m.options,b=w===void 0?{}:w,T=m.effect;if(typeof T=="function"){var _=T({state:l,name:x,instance:p,options:b}),C=function(){};d.push(_||C)}})}function v(){d.forEach(function(m){return m()}),d=[]}return p}}const lC=uC({defaultModifiers:[q3,X3,R3,j3,Z3,H3,eC,O3]}),dC=["enabled","placement","strategy","modifiers"];function fC(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 hC={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},pC={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(a=>a.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,a=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&a==="tooltip"&&"setAttribute"in r){const i=r.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",i?`${i},${n.id}`:n.id)}}},mC=[];function My(e,t,n={}){let{enabled:r=!0,placement:a="bottom",strategy:i="absolute",modifiers:o=mC}=n,s=fC(n,dC);const c=h.useRef(o),u=h.useRef(),l=h.useCallback(()=>{var m;(m=u.current)==null||m.update()},[]),d=h.useCallback(()=>{var m;(m=u.current)==null||m.forceUpdate()},[]),[f,p]=c3(h.useState({placement:a,update:l,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=h.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:m})=>{const x={},w={};Object.keys(m.elements).forEach(b=>{x[b]=m.styles[b],w[b]=m.attributes[b]}),p({state:m,styles:x,attributes:w,update:l,forceUpdate:d,placement:m.placement})}}),[l,d,p]),v=h.useMemo(()=>(Xi(c.current,o)||(c.current=o),c.current),[o]);return h.useEffect(()=>{!u.current||!r||u.current.setOptions({placement:a,strategy:i,modifiers:[...v,g,hC]})},[i,a,g,r,v]),h.useEffect(()=>{if(!(!r||e==null||t==null))return u.current=lC(e,t,Object.assign({},s,{placement:a,strategy:i,modifiers:[...v,pC,g]})),()=>{u.current!=null&&(u.current.destroy(),u.current=void 0,p(m=>Object.assign({},m,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function so(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var gC=process.env.NODE_ENV!=="production",Ry=function(){};if(gC){var vC=function(t,n){var r=arguments.length;n=new Array(r>1?r-1:0);for(var a=1;a<r;a++)n[a-1]=arguments[a];var i=0,o="Warning: "+t.replace(/%s/g,function(){return n[i++]});typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}};Ry=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var a=2;a<r;a++)n[a-2]=arguments[a];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||vC.apply(null,[t].concat(n))}}var yC=Ry;const di=Tt(yC),Fm=()=>{};function bC(e){return e.button===0}function xC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Ms=e=>e&&("current"in e?e.current:e),Lm={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Ay(e,t=Fm,{disabled:n,clickTrigger:r="click"}={}){const a=h.useRef(!1),i=h.useRef(!1),o=h.useCallback(u=>{const l=Ms(e);di(!!l,"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"),a.current=!l||xC(u)||!bC(u)||!!so(l,u.target)||i.current,i.current=!1},[e]),s=bt(u=>{const l=Ms(e);l&&so(l,u.target)&&(i.current=!0)}),c=bt(u=>{a.current||t(u)});h.useEffect(()=>{var u,l;if(n||e==null)return;const d=ui(Ms(e)),f=d.defaultView||window;let p=(u=f.event)!=null?u:(l=f.parent)==null?void 0:l.event,g=null;Lm[r]&&(g=or(d,Lm[r],s,!0));const v=or(d,r,o,!0),m=or(d,r,w=>{if(w===p){p=void 0;return}c(w)});let x=[];return"ontouchstart"in d.documentElement&&(x=[].slice.call(d.body.children).map(w=>or(w,"mousemove",Fm))),()=>{g==null||g(),v(),m(),x.forEach(w=>w())}},[e,n,r,o,s,c])}function _C(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function wC(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function jy({enabled:e,enableEvents:t,placement:n,flip:r,offset:a,fixed:i,containerPadding:o,arrowElement:s,popperConfig:c={}}){var u,l,d,f,p;const g=_C(c.modifiers);return Object.assign({},c,{placement:n,enabled:e,strategy:i?"fixed":c.strategy,modifiers:wC(Object.assign({},g,{eventListeners:{enabled:t,options:(u=g.eventListeners)==null?void 0:u.options},preventOverflow:Object.assign({},g.preventOverflow,{options:o?Object.assign({padding:o},(l=g.preventOverflow)==null?void 0:l.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:a},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!s,options:Object.assign({},(p=g.arrow)==null?void 0:p.options,{element:s})}),flip:Object.assign({enabled:!!r},g.flip)}))})}const TC=["children","usePopper"];function CC(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 kC=()=>{};function Py(e={}){const t=h.useContext(Uc),[n,r]=Hs(),a=h.useRef(!1),{flip:i,offset:o,rootCloseEvent:s,fixed:c=!1,placement:u,popperConfig:l={},enableEventListeners:d=!0,usePopper:f=!!t}=e,p=(t==null?void 0:t.show)==null?!!e.show:t.show;p&&!a.current&&(a.current=!0);const g=C=>{t==null||t.toggle(!1,C)},{placement:v,setMenu:m,menuElement:x,toggleElement:w}=t||{},b=My(w,x,jy({placement:u||v||"bottom-start",enabled:f,enableEvents:d??p,offset:o,flip:i,fixed:c,arrowElement:n,popperConfig:l})),T=Object.assign({ref:m||kC,"aria-labelledby":w==null?void 0:w.id},b.attributes.popper,{style:b.styles.popper}),_={show:p,placement:v,hasShown:a.current,toggle:t==null?void 0:t.toggle,popper:f?b:null,arrowProps:f?Object.assign({ref:r},b.attributes.arrow,{style:b.styles.arrow}):{}};return Ay(x,g,{clickTrigger:s,disabled:!p}),[T,_]}function Dy(e){let{children:t,usePopper:n=!0}=e,r=CC(e,TC);const[a,i]=Py(Object.assign({},r,{usePopper:n}));return y.jsx(y.Fragment,{children:t(a,i)})}Dy.displayName="DropdownMenu";const qs={prefix:String(Math.round(Math.random()*1e10)),current:0},Iy=h.createContext(qs),SC=h.createContext(!1);let OC=!!(typeof window<"u"&&window.document&&window.document.createElement),Ml=new WeakMap;function EC(e=!1){let t=h.useContext(Iy),n=h.useRef(null);if(n.current===null&&!e){var r,a;let i=(a=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let o=Ml.get(i);o==null?Ml.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==o.state&&(t.current=o.id,Ml.delete(i))}n.current=++t.current}return n.current}function $C(e){let t=h.useContext(Iy);t===qs&&!OC&&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=EC(!!e),r=t===qs&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function MC(e){let t=h.useId(),[n]=h.useState(DC()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${qs.prefix}`;return e||`${r}-${t}`}const RC=typeof h.useId=="function"?MC:$C;function AC(){return!1}function jC(){return!0}function PC(e){return()=>{}}function DC(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(PC,AC,jC):h.useContext(SC)}const Ny=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},Um=()=>{};function Fy(){const e=RC(),{show:t=!1,toggle:n=Um,setToggle:r,menuElement:a}=h.useContext(Uc)||{},i=h.useCallback(s=>{n(!t,s)},[t,n]),o={id:e,ref:r||Um,onClick:i,"aria-expanded":!!t};return a&&Ny(a)&&(o["aria-haspopup"]=!0),[o,{show:t,toggle:n}]}function Ly({children:e}){const[t,n]=Fy();return y.jsx(y.Fragment,{children:e(t,n)})}Ly.displayName="DropdownToggle";const Ys=oe.createContext(null),Ad=(e,t=null)=>e!=null?String(e):t||null,ah=oe.createContext(null);ah.displayName="NavContext";const IC="data-rr-ui-",NC="rrUi";function Wc(e){return`${IC}${e}`}function FC(e){return`${NC}${e}`}const LC=["eventKey","disabled","onClick","active","as"];function UC(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 Uy({key:e,href:t,active:n,disabled:r,onClick:a}){const i=h.useContext(Ys),o=h.useContext(ah),{activeKey:s}=o||{},c=Ad(e,t),u=n==null&&e!=null?Ad(s)===c:n;return[{onClick:bt(d=>{r||(a==null||a(d),i&&!d.isPropagationStopped()&&i(c,d))}),"aria-disabled":r||void 0,"aria-selected":u,[Wc("dropdown-item")]:""},{isActive:u}]}const By=oe.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:a,active:i,as:o=Yf}=e,s=UC(e,LC);const[c]=Uy({key:n,href:s.href,disabled:r,onClick:a,active:i});return y.jsx(o,Object.assign({},s,{ref:t},c))});By.displayName="DropdownItem";const Wy=h.createContext(li?window:void 0);Wy.Provider;function zc(){return h.useContext(Wy)}function Bm(){const e=xy(),t=h.useRef(null),n=h.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function qo({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:a=`* [${Wc("dropdown-item")}]`,focusFirstItemOnShow:i,placement:o="bottom-start",children:s}){const c=zc(),[u,l]=s3(t,e,r),[d,f]=Bm(),p=d.current,[g,v]=Bm(),m=g.current,x=gy(u),w=h.useRef(null),b=h.useRef(!1),T=h.useContext(Ys),_=h.useCallback((E,F,M=F==null?void 0:F.type)=>{l(E,{originalEvent:F,source:M})},[l]),C=bt((E,F)=>{n==null||n(E,F),_(!1,F,"select"),F.isPropagationStopped()||T==null||T(E,F)}),$=h.useMemo(()=>({toggle:_,placement:o,show:u,menuElement:p,toggleElement:m,setMenu:f,setToggle:v}),[_,o,u,p,m,f,v]);p&&x&&!u&&(b.current=p.contains(p.ownerDocument.activeElement));const A=bt(()=>{m&&m.focus&&m.focus()}),D=bt(()=>{const E=w.current;let F=i;if(F==null&&(F=d.current&&Ny(d.current)?"keyboard":!1),F===!1||F==="keyboard"&&!/^key.+$/.test(E))return;const M=ir(d.current,a)[0];M&&M.focus&&M.focus()});h.useEffect(()=>{u?D():b.current&&(b.current=!1,A())},[u,b,A,D]),h.useEffect(()=>{w.current=null});const j=(E,F)=>{if(!d.current)return null;const M=ir(d.current,a);let R=M.indexOf(E)+F;return R=Math.max(0,Math.min(R,M.length)),M[R]};return qT(h.useCallback(()=>c.document,[c]),"keydown",E=>{var F,M;const{key:R}=E,I=E.target,U=(F=d.current)==null?void 0:F.contains(I),N=(M=g.current)==null?void 0:M.contains(I);if(/input|textarea/i.test(I.tagName)&&(R===" "||R!=="Escape"&&U||R==="Escape"&&I.type==="search")||!U&&!N||R==="Tab"&&(!d.current||!u))return;w.current=E.type;const z={originalEvent:E,source:E.type};switch(R){case"ArrowUp":{const P=j(I,-1);P&&P.focus&&P.focus(),E.preventDefault();return}case"ArrowDown":if(E.preventDefault(),!u)l(!0,z);else{const P=j(I,1);P&&P.focus&&P.focus()}return;case"Tab":Hf(I.ownerDocument,"keyup",P=>{var W;(P.key==="Tab"&&!P.target||!((W=d.current)!=null&&W.contains(P.target)))&&l(!1,z)},{once:!0});break;case"Escape":R==="Escape"&&(E.preventDefault(),E.stopPropagation()),l(!1,z);break}}),y.jsx(Ys.Provider,{value:C,children:y.jsx(Uc.Provider,{value:$,children:s})})}qo.displayName="Dropdown";qo.Menu=Dy;qo.Toggle=Ly;qo.Item=By;const ih=oe.createContext({});ih.displayName="DropdownContext";const zy=oe.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...a},i)=>(t=Le(t,"dropdown-divider"),y.jsx(n,{ref:i,className:ie(e,t),role:r,...a})));zy.displayName="DropdownDivider";const Hy=oe.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...a},i)=>(t=Le(t,"dropdown-header"),y.jsx(n,{ref:i,className:ie(e,t),role:r,...a})));Hy.displayName="DropdownHeader";const Vy=oe.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:a,active:i,as:o=Gf,...s},c)=>{const u=Le(e,"dropdown-item"),[l,d]=Uy({key:n,href:s.href,disabled:r,onClick:a,active:i});return y.jsx(o,{...s,...l,ref:c,className:ie(t,u,d.isActive&&"active",r&&"disabled")})});Vy.displayName="DropdownItem";const qy=oe.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},a)=>(t=Le(t,"dropdown-item-text"),y.jsx(n,{ref:a,className:ie(e,t),...r})));qy.displayName="DropdownItemText";const Hc=oe.createContext(null);Hc.displayName="InputGroupContext";const oh=oe.createContext(null);oh.displayName="NavbarContext";function Yy(e,t){if(process.env.NODE_ENV==="production")return e;const n=h.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?Td(!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`):Td(!1))},[t]);return $n(n,e)}function Gy(e,t,n){const r=n?"top-end":"top-start",a=n?"top-start":"top-end",i=n?"bottom-end":"bottom-start",o=n?"bottom-start":"bottom-end",s=n?"right-start":"left-start",c=n?"right-end":"left-end",u=n?"left-start":"right-start",l=n?"left-end":"right-end";let d=e?o:i;return t==="up"?d=e?a:r:t==="end"?d=e?l:u:t==="start"?d=e?c:s:t==="down-centered"?d="bottom":t==="up-centered"&&(d="top"),d}const Zy=oe.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:a=!0,show:i,renderOnMount:o,as:s="div",popperConfig:c,variant:u,...l},d)=>{let f=!1;const p=h.useContext(oh),g=Le(e,"dropdown-menu"),{align:v,drop:m,isRTL:x}=h.useContext(ih);n=n||v;const w=h.useContext(Hc),b=[];if(n)if(typeof n=="object"){const E=Object.keys(n);if(process.env.NODE_ENV!=="production"&&di(E.length===1,"There should only be 1 breakpoint when passing an object to `align`"),E.length){const F=E[0],M=n[F];f=M==="start",b.push(`${g}-${F}-${M}`)}}else n==="end"&&(f=!0);const T=Gy(f,m,x),[_,{hasShown:C,popper:$,show:A,toggle:D}]=Py({flip:a,rootCloseEvent:r,show:i,usePopper:!p&&b.length===0,offset:[0,2],popperConfig:c,placement:T});if(_.ref=$n(Yy(d,"DropdownMenu"),_.ref),ao(()=>{A&&($==null||$.update())},[A]),!C&&!o&&!w)return null;typeof s!="string"&&(_.show=A,_.close=()=>D==null?void 0:D(!1),_.align=n);let j=l.style;return $!=null&&$.placement&&(j={...l.style,..._.style},l["x-placement"]=$.placement),y.jsx(s,{...l,..._,style:j,...(b.length||p)&&{"data-bs-popper":"static"},className:ie(t,g,A&&"show",f&&`${g}-end`,u&&`${g}-${u}`,...b)})});Zy.displayName="DropdownMenu";const Ky=oe.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:a=Zf,...i},o)=>{const s=Le(e,"dropdown-toggle"),c=h.useContext(Uc);r!==void 0&&(i.bsPrefix=r);const[u]=Fy();return u.ref=$n(u.ref,Yy(o,"DropdownToggle")),y.jsx(a,{className:ie(n,s,t&&`${s}-split`,(c==null?void 0:c.show)&&"show"),...u,...i})});Ky.displayName="DropdownToggle";const Xy=oe.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:a,className:i,align:o="start",onSelect:s,onToggle:c,focusFirstItemOnShow:u,as:l="div",navbar:d,autoClose:f=!0,...p}=sy(e,{show:"onToggle"}),g=h.useContext(Hc),v=Le(n,"dropdown"),m=Fc(),x=$=>f===!1?$==="click":f==="inside"?$!=="rootClose":f==="outside"?$!=="select":!0,w=bt(($,A)=>{var D;!((D=A.originalEvent)==null||(D=D.target)==null)&&D.classList.contains("dropdown-toggle")&&A.source==="mousedown"||(A.originalEvent.currentTarget===document&&(A.source!=="keydown"||A.originalEvent.key==="Escape")&&(A.source="rootClose"),x(A.source)&&(c==null||c($,A)))}),T=Gy(o==="end",r,m),_=h.useMemo(()=>({align:o,drop:r,isRTL:m}),[o,r,m]),C={down:v,"down-centered":`${v}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return y.jsx(ih.Provider,{value:_,children:y.jsx(qo,{placement:T,show:a,onSelect:s,onToggle:w,focusFirstItemOnShow:u,itemSelector:`.${v}-item:not(.disabled):not(:disabled)`,children:g?p.children:y.jsx(l,{...p,ref:t,className:ie(i,a&&"show",C[r])})})})});Xy.displayName="Dropdown";const co=Object.assign(Xy,{Toggle:Ky,Menu:Zy,Item:Vy,ItemText:qy,Divider:zy,Header:Hy}),BC={type:O.string,tooltip:O.bool,as:O.elementType},Vc=oe.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...a},i)=>y.jsx(e,{...a,ref:i,className:ie(t,`${n}-${r?"tooltip":"feedback"}`)}));Vc.displayName="Feedback";Vc.propTypes=BC;const dr=oe.createContext({}),qc=oe.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:a=!1,isInvalid:i=!1,as:o="input",...s},c)=>{const{controlId:u}=h.useContext(dr);return t=Le(t,"form-check-input"),y.jsx(o,{...s,ref:c,type:r,id:e||u,className:ie(n,t,a&&"is-valid",i&&"is-invalid")})});qc.displayName="FormCheckInput";const Gs=oe.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},a)=>{const{controlId:i}=h.useContext(dr);return e=Le(e,"form-check-label"),y.jsx("label",{...r,ref:a,htmlFor:n||i,className:ie(t,e)})});Gs.displayName="FormCheckLabel";const Jy=oe.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:a=!1,disabled:i=!1,isValid:o=!1,isInvalid:s=!1,feedbackTooltip:c=!1,feedback:u,feedbackType:l,className:d,style:f,title:p="",type:g="checkbox",label:v,children:m,as:x="input",...w},b)=>{t=Le(t,"form-check"),n=Le(n,"form-switch");const{controlId:T}=h.useContext(dr),_=h.useMemo(()=>({controlId:e||T}),[T,e]),C=!m&&v!=null&&v!==!1||i3(m,Gs),$=y.jsx(qc,{...w,type:g==="switch"?"checkbox":g,ref:b,isValid:o,isInvalid:s,disabled:i,as:x});return y.jsx(dr.Provider,{value:_,children:y.jsx("div",{style:f,className:ie(d,C&&t,r&&`${t}-inline`,a&&`${t}-reverse`,g==="switch"&&n),children:m||y.jsxs(y.Fragment,{children:[$,C&&y.jsx(Gs,{title:p,children:v}),u&&y.jsx(Vc,{type:l,tooltip:c,children:u})]})})})});Jy.displayName="FormCheck";const Zs=Object.assign(Jy,{Input:qc,Label:Gs}),Qy=oe.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:a,className:i,isValid:o=!1,isInvalid:s=!1,plaintext:c,readOnly:u,as:l="input",...d},f)=>{const{controlId:p}=h.useContext(dr);return e=Le(e,"form-control"),process.env.NODE_ENV!=="production"&&di(p==null||!a,"`controlId` is ignored on `<FormControl>` when `id` is specified."),y.jsx(l,{...d,type:t,size:r,ref:f,readOnly:u,id:a||p,className:ie(i,c?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,o&&"is-valid",s&&"is-invalid")})});Qy.displayName="FormControl";const eb=Object.assign(Qy,{Feedback:Vc}),tb=oe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Le(t,"form-floating"),y.jsx(n,{ref:a,className:ie(e,t),...r})));tb.displayName="FormFloating";const sh=oe.forwardRef(({controlId:e,as:t="div",...n},r)=>{const a=h.useMemo(()=>({controlId:e}),[e]);return y.jsx(dr.Provider,{value:a,children:y.jsx(t,{...n,ref:r})})});sh.displayName="FormGroup";const nb=oe.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:a,htmlFor:i,...o},s)=>{const{controlId:c}=h.useContext(dr);t=Le(t,"form-label");let u="col-form-label";typeof n=="string"&&(u=`${u} ${u}-${n}`);const l=ie(a,t,r&&"visually-hidden",n&&u);return process.env.NODE_ENV!=="production"&&di(c==null||!i,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),i=i||c,n?y.jsx(by,{ref:s,as:"label",className:l,htmlFor:i,...o}):y.jsx(e,{ref:s,className:l,htmlFor:i,...o})});nb.displayName="FormLabel";const rb=oe.forwardRef(({bsPrefix:e,className:t,id:n,...r},a)=>{const{controlId:i}=h.useContext(dr);return e=Le(e,"form-range"),y.jsx("input",{...r,type:"range",ref:a,className:ie(t,e),id:n||i})});rb.displayName="FormRange";const ch=oe.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:a=!1,isInvalid:i=!1,id:o,...s},c)=>{const{controlId:u}=h.useContext(dr);return e=Le(e,"form-select"),y.jsx("select",{...s,size:n,ref:c,className:ie(r,e,t&&`${e}-${t}`,a&&"is-valid",i&&"is-invalid"),id:o||u})});ch.displayName="FormSelect";const ab=oe.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...a},i)=>(e=Le(e,"form-text"),y.jsx(n,{...a,ref:i,className:ie(t,e,r&&"text-muted")})));ab.displayName="FormText";const ib=oe.forwardRef((e,t)=>y.jsx(Zs,{...e,ref:t,type:"switch"}));ib.displayName="Switch";const WC=Object.assign(ib,{Input:Zs.Input,Label:Zs.Label}),uh=oe.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:a,...i},o)=>(e=Le(e,"form-floating"),y.jsxs(sh,{ref:o,className:ie(t,e),controlId:r,...i,children:[n,y.jsx("label",{htmlFor:r,children:a})]})));uh.displayName="FloatingLabel";const zC={_ref:O.any,validated:O.bool,as:O.elementType},lh=oe.forwardRef(({className:e,validated:t,as:n="form",...r},a)=>y.jsx(n,{...r,ref:a,className:ie(e,t&&"was-validated")}));lh.displayName="Form";lh.propTypes=zC;const ya=Object.assign(lh,{Group:sh,Control:eb,Floating:tb,Check:Zs,Switch:WC,Label:nb,Text:ab,Range:rb,Select:ch,FloatingLabel:uh});var hs;function Wm(e){if((!hs&&hs!==0||e)&&li){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),hs=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return hs}function Rl(e){e===void 0&&(e=ui());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function HC(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const zm=Wc("modal-open");class dh{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return HC(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",a=this.getElement();t.style={overflow:a.style.overflow,[r]:a.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(Rr(a,r)||"0",10)+t.scrollBarWidth}px`),a.setAttribute(zm,""),Rr(a,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(zm),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 Al=(e,t)=>li?e==null?(t||ui()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function jd(e,t){const n=zc(),[r,a]=h.useState(()=>Al(e,n==null?void 0:n.document));if(!r){const i=Al(e);i&&a(i)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const i=Al(e);i!==r&&a(i)},[e,r]),r}function VC({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:a}){const i=h.useRef(null),o=h.useRef(t),s=bt(n);h.useEffect(()=>{t?o.current=!0:s(i.current)},[t,s]);const c=$n(i,e.ref),u=h.cloneElement(e,{ref:c});return t?u:a||!o.current&&r?null:u}function ob(e){return e.code==="Escape"||e.keyCode===27}function qC(){const e=oe.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const YC=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function GC(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 ZC(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:a,onExiting:i,onExited:o,addEndListener:s,children:c}=e,u=GC(e,YC);const{major:l}=qC(),d=l>=19?c.props.ref:c.ref,f=h.useRef(null),p=$n(f,typeof c=="function"?null:d),g=C=>$=>{C&&f.current&&C(f.current,$)},v=h.useCallback(g(t),[t]),m=h.useCallback(g(n),[n]),x=h.useCallback(g(r),[r]),w=h.useCallback(g(a),[a]),b=h.useCallback(g(i),[i]),T=h.useCallback(g(o),[o]),_=h.useCallback(g(s),[s]);return Object.assign({},u,{nodeRef:f},t&&{onEnter:v},n&&{onEntering:m},r&&{onEntered:x},a&&{onExit:w},i&&{onExiting:b},o&&{onExited:T},s&&{addEndListener:_},{children:typeof c=="function"?(C,$)=>c(C,Object.assign({},$,{ref:p})):h.cloneElement(c,{ref:p})})}const KC=["component"];function XC(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 JC=oe.forwardRef((e,t)=>{let{component:n}=e,r=XC(e,KC);const a=ZC(r);return y.jsx(n,Object.assign({ref:t},a))});function QC({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),a=bt(t);return ao(()=>{if(!n.current)return;let i=!1;return a({in:e,element:n.current,initial:r.current,isStale:()=>i}),()=>{i=!0}},[e,a]),ao(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function ek({children:e,in:t,onExited:n,onEntered:r,transition:a}){const[i,o]=h.useState(!t);t&&i&&o(!1);const s=QC({in:!!t,onTransition:u=>{const l=()=>{u.isStale()||(u.in?r==null||r(u.element,u.initial):(o(!0),n==null||n(u.element)))};Promise.resolve(a(u)).then(l,d=>{throw u.in||o(!0),d})}}),c=$n(s,e.ref);return i&&!t?null:h.cloneElement(e,{ref:c})}function Pd(e,t,n){return e?y.jsx(JC,Object.assign({},n,{component:e})):t?y.jsx(ek,Object.assign({},n,{transition:t})):y.jsx(VC,Object.assign({},n))}const tk=["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 nk(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 jl;function rk(e){return jl||(jl=new dh({ownerDocument:e==null?void 0:e.document})),jl}function ak(e){const t=zc(),n=e||rk(t),r=h.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:h.useCallback(a=>{r.current.dialog=a},[]),setBackdropRef:h.useCallback(a=>{r.current.backdrop=a},[])})}const sb=h.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:a,style:i,children:o,backdrop:s=!0,keyboard:c=!0,onBackdropClick:u,onEscapeKeyDown:l,transition:d,runTransition:f,backdropTransition:p,runBackdropTransition:g,autoFocus:v=!0,enforceFocus:m=!0,restoreFocus:x=!0,restoreFocusOptions:w,renderDialog:b,renderBackdrop:T=de=>y.jsx("div",Object.assign({},de)),manager:_,container:C,onShow:$,onHide:A=()=>{},onExit:D,onExited:j,onExiting:E,onEnter:F,onEntering:M,onEntered:R}=e,I=nk(e,tk);const U=zc(),N=jd(C),q=ak(_),z=Vf(),P=gy(n),[W,Z]=h.useState(!n),ne=h.useRef(null);h.useImperativeHandle(t,()=>q,[q]),li&&!P&&n&&(ne.current=Rl(U==null?void 0:U.document)),n&&W&&Z(!1);const Y=bt(()=>{if(q.add(),V.current=or(document,"keydown",re),L.current=or(document,"focus",()=>setTimeout(G),!0),$&&$(),v){var de,Ae;const Pe=Rl((de=(Ae=q.dialog)==null?void 0:Ae.ownerDocument)!=null?de:U==null?void 0:U.document);q.dialog&&Pe&&!so(q.dialog,Pe)&&(ne.current=Pe,q.dialog.focus())}}),Q=bt(()=>{if(q.remove(),V.current==null||V.current(),L.current==null||L.current(),x){var de;(de=ne.current)==null||de.focus==null||de.focus(w),ne.current=null}});h.useEffect(()=>{!n||!N||Y()},[n,N,Y]),h.useEffect(()=>{W&&Q()},[W,Q]),Kf(()=>{Q()});const G=bt(()=>{if(!m||!z()||!q.isTopModal())return;const de=Rl(U==null?void 0:U.document);q.dialog&&de&&!so(q.dialog,de)&&q.dialog.focus()}),J=bt(de=>{de.target===de.currentTarget&&(u==null||u(de),s===!0&&A())}),re=bt(de=>{c&&ob(de)&&q.isTopModal()&&(l==null||l(de),de.defaultPrevented||A())}),L=h.useRef(),V=h.useRef(),ae=(...de)=>{Z(!0),j==null||j(...de)};if(!N)return null;const k=Object.assign({role:r,ref:q.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},I,{style:i,className:a,tabIndex:-1});let ge=b?b(k):y.jsx("div",Object.assign({},k,{children:oe.cloneElement(o,{role:"document"})}));ge=Pd(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:D,onExiting:E,onExited:ae,onEnter:F,onEntering:M,onEntered:R,children:ge});let pe=null;return s&&(pe=T({ref:q.setBackdropRef,onClick:J}),pe=Pd(p,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:pe})),y.jsx(y.Fragment,{children:Er.createPortal(y.jsxs(y.Fragment,{children:[pe,ge]}),N)})});sb.displayName="Modal";const cb=Object.assign(sb,{Manager:dh});function Dd(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function ik(e,t){e.classList?e.classList.add(t):Dd(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Hm(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function ok(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Hm(e.className,t):e.setAttribute("class",Hm(e.className&&e.className.baseVal||"",t))}const Ra={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class ub extends dh{adjustAndStore(t,n,r){const a=n.style[t];n.dataset[t]=a,Rr(n,{[t]:`${parseFloat(Rr(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],Rr(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(ik(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";ir(n,Ra.FIXED_CONTENT).forEach(i=>this.adjustAndStore(r,i,t.scrollBarWidth)),ir(n,Ra.STICKY_CONTENT).forEach(i=>this.adjustAndStore(a,i,-t.scrollBarWidth)),ir(n,Ra.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(a,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();ok(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";ir(n,Ra.FIXED_CONTENT).forEach(i=>this.restore(r,i)),ir(n,Ra.STICKY_CONTENT).forEach(i=>this.restore(a,i)),ir(n,Ra.NAVBAR_TOGGLER).forEach(i=>this.restore(a,i))}}let Pl;function lb(e){return Pl||(Pl=new ub(e)),Pl}const sk=ub,db=oe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Le(t,"modal-body"),y.jsx(n,{ref:a,className:ie(e,t),...r})));db.displayName="ModalBody";const fh=oe.createContext({onHide(){}}),hh=oe.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:a,fullscreen:i,children:o,scrollable:s,...c},u)=>{e=Le(e,"modal");const l=`${e}-dialog`,d=typeof i=="string"?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return y.jsx("div",{...c,ref:u,className:ie(l,t,a&&`${e}-${a}`,r&&`${l}-centered`,s&&`${l}-scrollable`,i&&d),children:y.jsx("div",{className:ie(`${e}-content`,n),children:o})})});hh.displayName="ModalDialog";const fb=oe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Le(t,"modal-footer"),y.jsx(n,{ref:a,className:ie(e,t),...r})));fb.displayName="ModalFooter";const hb=oe.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:a,...i},o)=>{const s=h.useContext(fh),c=bt(()=>{s==null||s.onHide(),r==null||r()});return y.jsxs("div",{ref:o,...i,children:[a,n&&y.jsx(Lc,{"aria-label":e,variant:t,onClick:c})]})}),pb=oe.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...a},i)=>(e=Le(e,"modal-header"),y.jsx(hb,{ref:i,...a,className:ie(t,e),closeLabel:n,closeButton:r})));pb.displayName="ModalHeader";const ck=my("h4"),mb=oe.forwardRef(({className:e,bsPrefix:t,as:n=ck,...r},a)=>(t=Le(t,"modal-title"),y.jsx(n,{ref:a,className:ie(e,t),...r})));mb.displayName="ModalTitle";function uk(e){return y.jsx(Ya,{...e,timeout:null})}function lk(e){return y.jsx(Ya,{...e,timeout:null})}const gb=oe.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:a,children:i,dialogAs:o=hh,"data-bs-theme":s,"aria-labelledby":c,"aria-describedby":u,"aria-label":l,show:d=!1,animation:f=!0,backdrop:p=!0,keyboard:g=!0,onEscapeKeyDown:v,onShow:m,onHide:x,container:w,autoFocus:b=!0,enforceFocus:T=!0,restoreFocus:_=!0,restoreFocusOptions:C,onEntered:$,onExit:A,onExiting:D,onEnter:j,onEntering:E,onExited:F,backdropClassName:M,manager:R,...I},U)=>{const[N,q]=h.useState({}),[z,P]=h.useState(!1),W=h.useRef(!1),Z=h.useRef(!1),ne=h.useRef(null),[Y,Q]=Hs(),G=$n(U,Q),J=bt(x),re=Fc();e=Le(e,"modal");const L=h.useMemo(()=>({onHide:J}),[J]);function V(){return R||lb({isRTL:re})}function ae(xe){if(!li)return;const Xe=V().getScrollbarWidth()>0,Ct=xe.scrollHeight>ui(xe).documentElement.clientHeight;q({paddingRight:Xe&&!Ct?Wm():void 0,paddingLeft:!Xe&&Ct?Wm():void 0})}const k=bt(()=>{Y&&ae(Y.dialog)});Kf(()=>{Ed(window,"resize",k),ne.current==null||ne.current()});const ge=()=>{W.current=!0},pe=xe=>{W.current&&Y&&xe.target===Y.dialog&&(Z.current=!0),W.current=!1},de=()=>{P(!0),ne.current=dy(Y.dialog,()=>{P(!1)})},Ae=xe=>{xe.target===xe.currentTarget&&de()},Pe=xe=>{if(p==="static"){Ae(xe);return}if(Z.current||xe.target!==xe.currentTarget){Z.current=!1;return}x==null||x()},ft=xe=>{g?v==null||v(xe):(xe.preventDefault(),p==="static"&&de())},gt=(xe,Xe)=>{xe&&ae(xe),j==null||j(xe,Xe)},We=xe=>{ne.current==null||ne.current(),A==null||A(xe)},rt=(xe,Xe)=>{E==null||E(xe,Xe),Hf(window,"resize",k)},Ze=xe=>{xe&&(xe.style.display=""),F==null||F(xe),Ed(window,"resize",k)},xt=h.useCallback(xe=>y.jsx("div",{...xe,className:ie(`${e}-backdrop`,M,!f&&"show")}),[f,M,e]),_t={...n,...N};_t.display="block";const at=xe=>y.jsx("div",{role:"dialog",...xe,style:_t,className:ie(t,e,z&&`${e}-static`,!f&&"show"),onClick:p?Pe:void 0,onMouseUp:pe,"data-bs-theme":s,"aria-label":l,"aria-labelledby":c,"aria-describedby":u,children:y.jsx(o,{...I,onMouseDown:ge,className:r,contentClassName:a,children:i})});return y.jsx(fh.Provider,{value:L,children:y.jsx(cb,{show:d,ref:G,backdrop:p,container:w,keyboard:!0,autoFocus:b,enforceFocus:T,restoreFocus:_,restoreFocusOptions:C,onEscapeKeyDown:ft,onShow:m,onHide:x,onEnter:gt,onEntering:rt,onEntered:$,onExit:We,onExiting:D,onExited:Ze,manager:V(),transition:f?uk:void 0,backdropTransition:f?lk:void 0,renderBackdrop:xt,renderDialog:at})})});gb.displayName="Modal";const rn=Object.assign(gb,{Body:db,Header:pb,Title:mb,Footer:fb,Dialog:hh,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),dk=()=>{};function fk(e,t,{disabled:n,clickTrigger:r}={}){const a=t||dk;Ay(e,a,{disabled:n,clickTrigger:r});const i=bt(o=>{ob(o)&&a(o)});h.useEffect(()=>{if(n||e==null)return;const o=ui(Ms(e));let s=(o.defaultView||window).event;const c=or(o,"keyup",u=>{if(u===s){s=void 0;return}i(u)});return()=>{c()}},[e,n,i])}const vb=oe.forwardRef((e,t)=>{const{flip:n,offset:r,placement:a,containerPadding:i,popperConfig:o={},transition:s,runTransition:c}=e,[u,l]=Hs(),[d,f]=Hs(),p=$n(l,t),g=jd(e.container),v=jd(e.target),[m,x]=h.useState(!e.show),w=My(v,u,jy({placement:a,enableEvents:!!e.show,containerPadding:i||5,flip:n,offset:r,arrowElement:d,popperConfig:o}));e.show&&m&&x(!1);const b=(...E)=>{x(!0),e.onExited&&e.onExited(...E)},T=e.show||!m;if(fk(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!T)return null;const{onExit:_,onExiting:C,onEnter:$,onEntering:A,onEntered:D}=e;let j=e.children(Object.assign({},w.attributes.popper,{style:w.styles.popper,ref:p}),{popper:w,placement:a,show:!!e.show,arrowProps:Object.assign({},w.attributes.arrow,{style:w.styles.arrow,ref:f})});return j=Pd(s,c,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:j,onExit:_,onExiting:C,onExited:b,onEnter:$,onEntering:A,onEntered:D}),g?Er.createPortal(j,g):null});vb.displayName="Overlay";const yb=oe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Le(t,"popover-header"),y.jsx(n,{ref:a,className:ie(e,t),...r})));yb.displayName="PopoverHeader";const ph=oe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Le(t,"popover-body"),y.jsx(n,{ref:a,className:ie(e,t),...r})));ph.displayName="PopoverBody";function bb(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function xb(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const hk=oe.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:a,body:i,arrowProps:o,hasDoneInitialMeasure:s,popper:c,show:u,...l},d)=>{const f=Le(e,"popover"),p=Fc(),[g]=(t==null?void 0:t.split("-"))||[],v=bb(g,p);let m=r;return u&&!s&&(m={...r,...xb(c==null?void 0:c.strategy)}),y.jsxs("div",{ref:d,role:"tooltip",style:m,"x-placement":g,className:ie(n,f,g&&`bs-popover-${v}`),...l,children:[y.jsx("div",{className:"popover-arrow",...o}),i?y.jsx(ph,{children:a}):a]})}),_b=Object.assign(hk,{Header:yb,Body:ph,POPPER_OFFSET:[0,8]}),wb=oe.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:a,arrowProps:i,hasDoneInitialMeasure:o,popper:s,show:c,...u},l)=>{e=Le(e,"tooltip");const d=Fc(),[f]=(t==null?void 0:t.split("-"))||[],p=bb(f,d);let g=r;return c&&!o&&(g={...r,...xb(s==null?void 0:s.strategy)}),y.jsxs("div",{ref:l,style:g,role:"tooltip","x-placement":f,className:ie(n,e,`bs-tooltip-${p}`),...u,children:[y.jsx("div",{className:"tooltip-arrow",...i}),y.jsx("div",{className:`${e}-inner`,children:a})]})});wb.displayName="Tooltip";const mh=Object.assign(wb,{TOOLTIP_OFFSET:[0,6]});function pk(e){const t=h.useRef(null),n=Le(void 0,"popover"),r=Le(void 0,"tooltip"),a=h.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Dd(t.current,n))return _b.POPPER_OFFSET;if(Dd(t.current,r))return mh.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[a]]}function mk(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=a=>n(zs(a))),t.ref=r.__wrapped||(r.__wrapped=a=>r(zs(a)))}const Tb=oe.forwardRef(({children:e,transition:t=Ya,popperConfig:n={},rootClose:r=!1,placement:a="top",show:i=!1,...o},s)=>{const c=h.useRef({}),[u,l]=h.useState(null),[d,f]=pk(o.offset),p=$n(s,d),g=t===!0?Ya:t||void 0,v=bt(m=>{l(m),n==null||n.onFirstUpdate==null||n.onFirstUpdate(m)});return ao(()=>{u&&o.target&&(c.current.scheduleUpdate==null||c.current.scheduleUpdate())},[u,o.target]),h.useEffect(()=>{i||l(null)},[i]),y.jsx(vb,{...o,ref:p,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:v},transition:g,rootClose:r,placement:a,show:i,children:(m,{arrowProps:x,popper:w,show:b})=>{var T;mk(m,x);const _=w==null?void 0:w.placement,C=Object.assign(c.current,{state:w==null?void 0:w.state,scheduleUpdate:w==null?void 0:w.update,placement:_,outOfBoundaries:(w==null||(T=w.state)==null||(T=T.modifiersData.hide)==null?void 0:T.isReferenceHidden)||!1,strategy:n.strategy}),$=!!u;return typeof e=="function"?e({...m,placement:_,show:b,...!t&&b&&{className:"show"},popper:C,arrowProps:x,hasDoneInitialMeasure:$}):oe.cloneElement(e,{...m,placement:_,arrowProps:x,popper:C,hasDoneInitialMeasure:$,className:ie(e.props.className,!t&&b&&"show"),style:{...e.props.style,...m.style}})}})});Tb.displayName="Overlay";function gk(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Vm(e,t,n){const[r]=t,a=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];(!i||i!==a)&&!so(a,i)&&e(...t)}O.oneOf(["click","hover","focus"]);const Cb=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:a,defaultShow:i=!1,onToggle:o,delay:s,placement:c,flip:u=c&&c.indexOf("auto")!==-1,...l})=>{const d=h.useRef(null),f=$n(d,n.ref),p=a3(),g=h.useRef(""),[v,m]=oy(a,i,o),x=gk(s),{onFocus:w,onBlur:b,onClick:T}=typeof n!="function"?oe.Children.only(n).props:{},_=I=>{f(zs(I))},C=h.useCallback(()=>{if(p.clear(),g.current="show",!x.show){m(!0);return}p.set(()=>{g.current==="show"&&m(!0)},x.show)},[x.show,m,p]),$=h.useCallback(()=>{if(p.clear(),g.current="hide",!x.hide){m(!1);return}p.set(()=>{g.current==="hide"&&m(!1)},x.hide)},[x.hide,m,p]),A=h.useCallback((...I)=>{C(),w==null||w(...I)},[C,w]),D=h.useCallback((...I)=>{$(),b==null||b(...I)},[$,b]),j=h.useCallback((...I)=>{m(!v),T==null||T(...I)},[T,m,v]),E=h.useCallback((...I)=>{Vm(C,I,"fromElement")},[C]),F=h.useCallback((...I)=>{Vm($,I,"toElement")},[$]),M=e==null?[]:[].concat(e),R={ref:_};return M.indexOf("click")!==-1&&(R.onClick=j),M.indexOf("focus")!==-1&&(R.onFocus=A,R.onBlur=D),M.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&di(M.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.'),R.onMouseOver=E,R.onMouseOut=F),y.jsxs(y.Fragment,{children:[typeof n=="function"?n(R):h.cloneElement(n,R),y.jsx(Tb,{...l,show:v,onHide:$,flip:u,placement:c,popperConfig:r,target:d.current,children:t})]})};var kb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},qm=h.createContext&&h.createContext(kb),vk=["attr","size","title"];function yk(e,t){if(e==null)return{};var n=bk(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bk(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 Ks(){return Ks=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},Ks.apply(this,arguments)}function Ym(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Xs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ym(Object(n),!0).forEach(function(r){xk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ym(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xk(e,t,n){return t=_k(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _k(e){var t=wk(e,"string");return typeof t=="symbol"?t:t+""}function wk(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 Sb(e){return e&&e.map((t,n)=>h.createElement(t.tag,Xs({key:n},t.attr),Sb(t.child)))}function Ie(e){return t=>h.createElement(Tk,Ks({attr:Xs({},e.attr)},t),Sb(e.child))}function Tk(e){var t=n=>{var{attr:r,size:a,title:i}=e,o=yk(e,vk),s=a||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),h.createElement("svg",Ks({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:c,style:Xs(Xs({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&h.createElement("title",null,i),e.children)};return qm!==void 0?h.createElement(qm.Consumer,null,n=>t(n)):t(kb)}function Ck(e){return Ie({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 Yc(e){return Ie({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 kk(e){return Ie({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 Sk(e){return Ie({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 Ok(e){return Ie({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 Ek(e){return Ie({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 $k(e){return Ie({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 Mk(e){return Ie({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 Rk(e){return Ie({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 Ak(e){return Ie({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 jk(e){return Ie({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 Pk(e){return Ie({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 Dk(e){return Ie({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 Ik(e){return Ie({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 Nk(e){return Ie({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 Fk(e){return Ie({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 Lk(e){return Ie({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 Uk(e){return Ie({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 Bk(e){return Ie({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 Wk(e){return Ie({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 zk(e){return Ie({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 Hk(e){return Ie({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 Vk(e){return Ie({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 qk(e){return Ie({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 Yk(e){return Ie({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 Ob(e){return Ie({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 Gk(e){return Ie({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 Zk(e){return Ie({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 Kk(e){return Ie({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 bn=h.createContext({cookieDomain:"",axiosOptions:{},language:"",localizationContext:{},texts:{},ProjectIconComponent:{},chartColorPalette:void 0}),Eb=h.createContext({show:!1,text:"",showConfirm:e=>{},hideConfirm:()=>{}}),$b=h.createContext({isShown:!1,text:"",hidePrompt:()=>{},showPrompt:()=>{},resolveRef:{current:()=>{}},options:{input:"textarea",type:"text"},setOptions:()=>{}}),Mb=()=>{const{isShown:e,text:t,showPrompt:n,hidePrompt:r,resolveRef:a,setOptions:i}=h.useContext($b),o=h.useCallback(c=>{r(),a.current(c)},[r,a]),s=h.useCallback(async(c,u)=>(i(l=>({...l,...u})),n(c),new Promise(l=>{a.current=l})),[a,i,n]);return{isShown:e,text:t,prompt:s,onFinish:o}};let Xk={data:""},Jk=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Xk,Qk=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,e6=/\/\*[^]*?\*\/| +/g,Gm=/\n+/g,Sr=(e,t)=>{let n="",r="",a="";for(let i in e){let o=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+o+";":r+=i[1]=="f"?Sr(o,i):i+"{"+Sr(o,i[1]=="k"?"":t)+"}":typeof o=="object"?r+=Sr(o,t?t.replace(/([^,])+/g,s=>i.replace(/(^:.*)|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,s):s?s+" "+c:c)):i):o!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),a+=Sr.p?Sr.p(i,o):i+":"+o+";")}return n+(t&&a?t+"{"+a+"}":a)+r},tr={},Rb=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Rb(e[n]);return t}return e},t6=(e,t,n,r,a)=>{let i=Rb(e),o=tr[i]||(tr[i]=(c=>{let u=0,l=11;for(;u<c.length;)l=101*l+c.charCodeAt(u++)>>>0;return"go"+l})(i));if(!tr[o]){let c=i!==e?e:(u=>{let l,d,f=[{}];for(;l=Qk.exec(u.replace(e6,""));)l[4]?f.shift():l[3]?(d=l[3].replace(Gm," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][l[1]]=l[2].replace(Gm," ").trim();return f[0]})(e);tr[o]=Sr(a?{["@keyframes "+o]:c}:c,n?"":"."+o)}let s=n&&tr.g?tr.g:null;return n&&(tr.g=tr[o]),((c,u,l,d)=>{d?u.data=u.data.replace(d,c):u.data.indexOf(c)===-1&&(u.data=l?c+u.data:u.data+c)})(tr[o],t,r,s),o},n6=(e,t,n)=>e.reduce((r,a,i)=>{let o=t[i];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?"":Sr(s,""):s===!1?"":s}return r+a+(o??"")},"");function Gc(e){let t=this||{},n=e.call?e(t.p):e;return t6(n.unshift?n.raw?n6(n,[].slice.call(arguments,1),t.p):n.reduce((r,a)=>Object.assign(r,a&&a.call?a(t.p):a),{}):n,Jk(t.target),t.g,t.o,t.k)}let Ab,Id,Nd;Gc.bind({g:1});let fr=Gc.bind({k:1});function r6(e,t,n,r){Sr.p=t,Ab=e,Id=n,Nd=r}function Wr(e,t){let n=this||{};return function(){let r=arguments;function a(i,o){let s=Object.assign({},i),c=s.className||a.className;n.p=Object.assign({theme:Id&&Id()},s),n.o=/ *go\d+/.test(c),s.className=Gc.apply(n,r)+(c?" "+c:"");let u=e;return e[0]&&(u=s.as||e,delete s.as),Nd&&u[0]&&Nd(s),Ab(u,s)}return a}}var a6=e=>typeof e=="function",Js=(e,t)=>a6(e)?e(t):e,i6=(()=>{let e=0;return()=>(++e).toString()})(),jb=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),o6=20,Rs=new Map,s6=1e3,Zm=e=>{if(Rs.has(e))return;let t=setTimeout(()=>{Rs.delete(e),ba({type:4,toastId:e})},s6);Rs.set(e,t)},c6=e=>{let t=Rs.get(e);t&&clearTimeout(t)},Fd=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,o6)};case 1:return t.toast.id&&c6(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?Fd(e,{type:1,toast:n}):Fd(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Zm(r):e.toasts.forEach(i=>{Zm(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+a}))}}},As=[],js={toasts:[],pausedAt:void 0},ba=e=>{js=Fd(js,e),As.forEach(t=>{t(js)})},u6={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},l6=(e={})=>{let[t,n]=h.useState(js);h.useEffect(()=>(As.push(n),()=>{let a=As.indexOf(n);a>-1&&As.splice(a,1)}),[t]);let r=t.toasts.map(a=>{var i,o;return{...e,...e[a.type],...a,duration:a.duration||((i=e[a.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||u6[a.type],style:{...e.style,...(o=e[a.type])==null?void 0:o.style,...a.style}}});return{...t,toasts:r}},d6=(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)||i6()}),Yo=e=>(t,n)=>{let r=d6(t,e,n);return ba({type:2,toast:r}),r.id},pn=(e,t)=>Yo("blank")(e,t);pn.error=Yo("error");pn.success=Yo("success");pn.loading=Yo("loading");pn.custom=Yo("custom");pn.dismiss=e=>{ba({type:3,toastId:e})};pn.remove=e=>ba({type:4,toastId:e});pn.promise=(e,t,n)=>{let r=pn.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(a=>(pn.success(Js(t.success,a),{id:r,...n,...n==null?void 0:n.success}),a)).catch(a=>{pn.error(Js(t.error,a),{id:r,...n,...n==null?void 0:n.error})}),e};var f6=(e,t)=>{ba({type:1,toast:{id:e,height:t}})},h6=()=>{ba({type:5,time:Date.now()})},p6=e=>{let{toasts:t,pausedAt:n}=l6(e);h.useEffect(()=>{if(n)return;let i=Date.now(),o=t.map(s=>{if(s.duration===1/0)return;let c=(s.duration||0)+s.pauseDuration-(i-s.createdAt);if(c<0){s.visible&&pn.dismiss(s.id);return}return setTimeout(()=>pn.dismiss(s.id),c)});return()=>{o.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=h.useCallback(()=>{n&&ba({type:6,time:Date.now()})},[n]),a=h.useCallback((i,o)=>{let{reverseOrder:s=!1,gutter:c=8,defaultPosition:u}=o||{},l=t.filter(p=>(p.position||u)===(i.position||u)&&p.height),d=l.findIndex(p=>p.id===i.id),f=l.filter((p,g)=>g<d&&p.visible).length;return l.filter(p=>p.visible).slice(...s?[f+1]:[0,f]).reduce((p,g)=>p+(g.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:f6,startPause:h6,endPause:r,calculateOffset:a}}},m6=fr`
52
+ */var Tl,ym;function AT(){if(ym)return Tl;ym=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(o).map(function(l){return o[l]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(l){c[l]=l}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Tl=a()?Object.assign:function(i,o){for(var s,u=r(i),c,l=1;l<arguments.length;l++){s=Object(arguments[l]);for(var d in s)t.call(s,d)&&(u[d]=s[d]);if(e){c=e(s);for(var f=0;f<c.length;f++)n.call(s,c[f])&&(u[c[f]]=s[c[f]])}}return u},Tl}var Cl,bm;function zf(){if(bm)return Cl;bm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Cl=e,Cl}var kl,xm;function uy(){return xm||(xm=1,kl=Function.call.bind(Object.prototype.hasOwnProperty)),kl}var Sl,_m;function jT(){if(_m)return Sl;_m=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=zf(),n={},r=uy();e=function(i){var o="Warning: "+i;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(i,o,s,u,c){if(process.env.NODE_ENV!=="production"){for(var l in i)if(r(i,l)){var d;try{if(typeof i[l]!="function"){var f=Error((u||"React class")+": "+s+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=i[l](o,l,u,s,null,t)}catch(m){d=m}if(d&&!(d instanceof Error)&&e((u||"React class")+": type specification of "+s+" `"+l+"` 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 p=c?c():"";e("Failed "+s+" type: "+d.message+(p??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Sl=a,Sl}var Ol,wm;function PT(){if(wm)return Ol;wm=1;var e=cy(),t=AT(),n=zf(),r=uy(),a=jT(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function o(){return null}return Ol=function(s,u){var c=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function d(P){var W=P&&(c&&P[c]||P[l]);if(typeof W=="function")return W}var f="<<anonymous>>",p={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:w(),arrayOf:b,element:T(),elementType:_(),instanceOf:C,node:j(),objectOf:A,oneOf:$,oneOfType:D,shape:F,exact:M};function m(P,W){return P===W?P!==0||1/P===1/W:P!==P&&W!==W}function g(P,W){this.message=P,this.data=W&&typeof W=="object"?W:{},this.stack=""}g.prototype=Error.prototype;function v(P){if(process.env.NODE_ENV!=="production")var W={},Z=0;function ne(Q,G,J,re,L,V,ae){if(re=re||f,V=V||J,ae!==n){if(u){var k=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 k.name="Invariant Violation",k}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ge=re+":"+J;!W[ge]&&Z<3&&(i("You are manually calling a React.PropTypes validation function for the `"+V+"` prop on `"+re+"`. 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."),W[ge]=!0,Z++)}}return G[J]==null?Q?G[J]===null?new g("The "+L+" `"+V+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new g("The "+L+" `"+V+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:P(G,J,re,L,V)}var Y=ne.bind(null,!1);return Y.isRequired=ne.bind(null,!0),Y}function x(P){function W(Z,ne,Y,Q,G,J){var re=Z[ne],L=U(re);if(L!==P){var V=N(re);return new g("Invalid "+Q+" `"+G+"` of type "+("`"+V+"` supplied to `"+Y+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return v(W)}function w(){return v(o)}function b(P){function W(Z,ne,Y,Q,G){if(typeof P!="function")return new g("Property `"+G+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var J=Z[ne];if(!Array.isArray(J)){var re=U(J);return new g("Invalid "+Q+" `"+G+"` of type "+("`"+re+"` supplied to `"+Y+"`, expected an array."))}for(var L=0;L<J.length;L++){var V=P(J,L,Y,Q,G+"["+L+"]",n);if(V instanceof Error)return V}return null}return v(W)}function T(){function P(W,Z,ne,Y,Q){var G=W[Z];if(!s(G)){var J=U(G);return new g("Invalid "+Y+" `"+Q+"` of type "+("`"+J+"` supplied to `"+ne+"`, expected a single ReactElement."))}return null}return v(P)}function _(){function P(W,Z,ne,Y,Q){var G=W[Z];if(!e.isValidElementType(G)){var J=U(G);return new g("Invalid "+Y+" `"+Q+"` of type "+("`"+J+"` supplied to `"+ne+"`, expected a single ReactElement type."))}return null}return v(P)}function C(P){function W(Z,ne,Y,Q,G){if(!(Z[ne]instanceof P)){var J=P.name||f,re=z(Z[ne]);return new g("Invalid "+Q+" `"+G+"` of type "+("`"+re+"` supplied to `"+Y+"`, expected ")+("instance of `"+J+"`."))}return null}return v(W)}function $(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),o;function W(Z,ne,Y,Q,G){for(var J=Z[ne],re=0;re<P.length;re++)if(m(J,P[re]))return null;var L=JSON.stringify(P,function(ae,k){var ge=N(k);return ge==="symbol"?String(k):k});return new g("Invalid "+Q+" `"+G+"` of value `"+String(J)+"` "+("supplied to `"+Y+"`, expected one of "+L+"."))}return v(W)}function A(P){function W(Z,ne,Y,Q,G){if(typeof P!="function")return new g("Property `"+G+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var J=Z[ne],re=U(J);if(re!=="object")return new g("Invalid "+Q+" `"+G+"` of type "+("`"+re+"` supplied to `"+Y+"`, expected an object."));for(var L in J)if(r(J,L)){var V=P(J,L,Y,Q,G+"."+L,n);if(V instanceof Error)return V}return null}return v(W)}function D(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var W=0;W<P.length;W++){var Z=P[W];if(typeof Z!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(Z)+" at index "+W+"."),o}function ne(Y,Q,G,J,re){for(var L=[],V=0;V<P.length;V++){var ae=P[V],k=ae(Y,Q,G,J,re,n);if(k==null)return null;k.data&&r(k.data,"expectedType")&&L.push(k.data.expectedType)}var ge=L.length>0?", expected one of type ["+L.join(", ")+"]":"";return new g("Invalid "+J+" `"+re+"` supplied to "+("`"+G+"`"+ge+"."))}return v(ne)}function j(){function P(W,Z,ne,Y,Q){return R(W[Z])?null:new g("Invalid "+Y+" `"+Q+"` supplied to "+("`"+ne+"`, expected a ReactNode."))}return v(P)}function E(P,W,Z,ne,Y){return new g((P||"React class")+": "+W+" type `"+Z+"."+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function F(P){function W(Z,ne,Y,Q,G){var J=Z[ne],re=U(J);if(re!=="object")return new g("Invalid "+Q+" `"+G+"` of type `"+re+"` "+("supplied to `"+Y+"`, expected `object`."));for(var L in P){var V=P[L];if(typeof V!="function")return E(Y,Q,G,L,N(V));var ae=V(J,L,Y,Q,G+"."+L,n);if(ae)return ae}return null}return v(W)}function M(P){function W(Z,ne,Y,Q,G){var J=Z[ne],re=U(J);if(re!=="object")return new g("Invalid "+Q+" `"+G+"` of type `"+re+"` "+("supplied to `"+Y+"`, expected `object`."));var L=t({},Z[ne],P);for(var V in L){var ae=P[V];if(r(P,V)&&typeof ae!="function")return E(Y,Q,G,V,N(ae));if(!ae)return new g("Invalid "+Q+" `"+G+"` key `"+V+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(Z[ne],null," ")+`
53
+ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var k=ae(J,V,Y,Q,G+"."+V,n);if(k)return k}return null}return v(W)}function R(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(R);if(P===null||s(P))return!0;var W=d(P);if(W){var Z=W.call(P),ne;if(W!==P.entries){for(;!(ne=Z.next()).done;)if(!R(ne.value))return!1}else for(;!(ne=Z.next()).done;){var Y=ne.value;if(Y&&!R(Y[1]))return!1}}else return!1;return!0;default:return!1}}function I(P,W){return P==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function U(P){var W=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":I(W,P)?"symbol":W}function N(P){if(typeof P>"u"||P===null)return""+P;var W=U(P);if(W==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return W}function q(P){var W=N(P);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function z(P){return!P.constructor||!P.constructor.name?f:P.constructor.name}return p.checkPropTypes=a,p.resetWarningCache=a.resetWarningCache,p.PropTypes=p,p},Ol}var El,Tm;function DT(){if(Tm)return El;Tm=1;var e=zf();function t(){}function n(){}return n.resetWarningCache=t,El=function(){function r(o,s,u,c,l,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 a(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},El}if(process.env.NODE_ENV!=="production"){var IT=cy(),NT=!0;kd.exports=PT()(IT.isElement,NT)}else kd.exports=DT()();var FT=kd.exports;const O=Tt(FT),Cm={disabled:!1};var LT=process.env.NODE_ENV!=="production"?O.oneOfType([O.number,O.shape({enter:O.number,exit:O.number,appear:O.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&O.oneOfType([O.string,O.shape({enter:O.string,exit:O.string,active:O.string}),O.shape({enter:O.string,enterDone:O.string,enterActive:O.string,exit:O.string,exitDone:O.string,exitActive:O.string})]);const ly=h.createContext(null);var UT=function(t){return t.scrollTop},qi="unmounted",Cr="exited",ar="entering",kr="entered",Ws="exiting",gr=function(e){yT(t,e);function t(r,a){var i;i=e.call(this,r,a)||this;var o=a,s=o&&!o.isMounting?r.enter:r.appear,u;return i.appearStatus=null,r.in?s?(u=Cr,i.appearStatus=ar):u=kr:r.unmountOnExit||r.mountOnEnter?u=qi:u=Cr,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var o=a.in;return o&&i.status===qi?{status:Cr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var i=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==ar&&o!==kr&&(i=ar):(o===ar||o===kr)&&(i=Ws)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,i,o,s;return i=o=s=a,a!=null&&typeof a!="number"&&(i=a.exit,o=a.enter,s=a.appear!==void 0?a.appear:o),{exit:i,enter:o,appear:s}},n.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===ar){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Er.findDOMNode(this);o&&UT(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Cr&&this.setState({status:qi})},n.performEnter=function(a){var i=this,o=this.props.enter,s=this.context?this.context.isMounting:a,u=this.props.nodeRef?[s]:[Er.findDOMNode(this),s],c=u[0],l=u[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!a&&!o||Cm.disabled){this.safeSetState({status:kr},function(){i.props.onEntered(c)});return}this.props.onEnter(c,l),this.safeSetState({status:ar},function(){i.props.onEntering(c,l),i.onTransitionEnd(f,function(){i.safeSetState({status:kr},function(){i.props.onEntered(c,l)})})})},n.performExit=function(){var a=this,i=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:Er.findDOMNode(this);if(!i||Cm.disabled){this.safeSetState({status:Cr},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Ws},function(){a.props.onExiting(s),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:Cr},function(){a.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},n.setNextCallback=function(a){var i=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,i.nextCallback=null,a(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(a,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:Er.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],c=u[0],l=u[1];this.props.addEndListener(c,l)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===qi)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=iy(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return h.createElement(ly.Provider,{value:null},typeof o=="function"?o(a,s):h.cloneElement(h.Children.only(o),s))},t}(h.Component);gr.contextType=ly;gr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:O.shape({current:typeof Element>"u"?O.any:function(e,t,n,r,a,i){var o=e[t];return O.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,r,a,i)}}),children:O.oneOfType([O.func.isRequired,O.element.isRequired]).isRequired,in:O.bool,mountOnEnter:O.bool,unmountOnExit:O.bool,appear:O.bool,enter:O.bool,exit:O.bool,timeout:function(t){var n=LT;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return n.apply(void 0,[t].concat(a))},addEndListener:O.func,onEnter:O.func,onEntering:O.func,onEntered:O.func,onExit:O.func,onExiting:O.func,onExited:O.func}:{};function Ma(){}gr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ma,onEntering:Ma,onEntered:Ma,onExit:Ma,onExiting:Ma,onExited:Ma};gr.UNMOUNTED=qi;gr.EXITED=Cr;gr.ENTERING=ar;gr.ENTERED=kr;gr.EXITING=Ws;const li=!!(typeof window<"u"&&window.document&&window.document.createElement);var Sd=!1,Od=!1;try{var $l={get passive(){return Sd=!0},get once(){return Od=Sd=!0}};li&&(window.addEventListener("test",$l,$l),window.removeEventListener("test",$l,!0))}catch{}function Hf(e,t,n,r){if(r&&typeof r!="boolean"&&!Od){var a=r.once,i=r.capture,o=n;!Od&&a&&(o=n.__once||function s(u){this.removeEventListener(t,s,i),n.call(this,u)},n.__once=o),e.addEventListener(t,o,Sd?r:i)}e.addEventListener(t,n,r)}function Ed(e,t,n,r){var a=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,a),n.__once&&e.removeEventListener(t,n.__once,a)}function or(e,t,n,r){return Hf(e,t,n,r),function(){Ed(e,t,n,r)}}function BT(e,t,n,r){if(r===void 0&&(r=!0),e){var a=document.createEvent("HTMLEvents");a.initEvent(t,n,r),e.dispatchEvent(a)}}function WT(e){var t=Rr(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function zT(e,t,n){n===void 0&&(n=5);var r=!1,a=setTimeout(function(){r||BT(e,"transitionend",!0)},t+n),i=or(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(a),i()}}function dy(e,t,n,r){n==null&&(n=WT(e)||0);var a=zT(e,n,r),i=or(e,"transitionend",t);return function(){a(),i()}}function km(e,t){const n=Rr(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function fy(e,t){const n=km(e,"transitionDuration"),r=km(e,"transitionDelay"),a=dy(e,i=>{i.target===e&&(a(),t(i))},n+r)}function hy(e){e.offsetHeight}const Sm=e=>!e||typeof e=="function"?e:t=>{e.current=t};function HT(e,t){const n=Sm(e),r=Sm(t);return a=>{n&&n(a),r&&r(a)}}function $n(e,t){return h.useMemo(()=>HT(e,t),[e,t])}function zs(e){return e&&"setState"in e?Er.findDOMNode(e):e??null}const py=h.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:a,onExited:i,addEndListener:o,children:s,childRef:u,...c},l)=>{const d=h.useRef(null),f=$n(d,u),p=C=>{f(zs(C))},m=C=>$=>{C&&d.current&&C(d.current,$)},g=h.useCallback(m(e),[e]),v=h.useCallback(m(t),[t]),x=h.useCallback(m(n),[n]),w=h.useCallback(m(r),[r]),b=h.useCallback(m(a),[a]),T=h.useCallback(m(i),[i]),_=h.useCallback(m(o),[o]);return y.jsx(gr,{ref:l,...c,onEnter:g,onEntered:x,onEntering:v,onExit:w,onExited:T,onExiting:b,addEndListener:_,nodeRef:d,children:typeof s=="function"?(C,$)=>s(C,{...$,ref:p}):h.cloneElement(s,{ref:p})})});function VT(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function bt(e){const t=VT(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const my=e=>oe.forwardRef((t,n)=>y.jsx("div",{...t,ref:n,className:ie(t.className,e)}));function Hs(){return h.useState(null)}function qT(e,t,n,r=!1){const a=bt(n);h.useEffect(()=>{const i=typeof e=="function"?e():e;return i.addEventListener(t,a,r),()=>i.removeEventListener(t,a,r)},[e])}function Vf(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function gy(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current}const YT=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",GT=typeof document<"u",ao=GT||YT?h.useLayoutEffect:h.useEffect,ZT=["as","disabled"];function KT(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 XT(e){return!e||e.trim()==="#"}function qf({tagName:e,disabled:t,href:n,target:r,rel:a,role:i,onClick:o,tabIndex:s=0,type:u}){e||(n!=null||r!=null||a!=null?e="a":e="button");const c={tagName:e};if(e==="button")return[{type:u||"button",disabled:t},c];const l=f=>{if((t||e==="a"&&XT(n))&&f.preventDefault(),t){f.stopPropagation();return}o==null||o(f)},d=f=>{f.key===" "&&(f.preventDefault(),l(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"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"?a:void 0,onClick:l,onKeyDown:d},c]}const Yf=oe.forwardRef((e,t)=>{let{as:n,disabled:r}=e,a=KT(e,ZT);const[i,{tagName:o}]=qf(Object.assign({tagName:n,disabled:r},a));return y.jsx(o,Object.assign({},a,i,{ref:t}))});Yf.displayName="Button";const JT=["onKeyDown"];function QT(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 e3(e){return!e||e.trim()==="#"}const Gf=oe.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=QT(e,JT);const[a]=qf(Object.assign({tagName:"a"},r)),i=bt(o=>{a.onKeyDown(o),n==null||n(o)});return e3(r.href)||r.role==="button"?y.jsx("a",Object.assign({ref:t},r,a,{onKeyDown:i})):y.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});Gf.displayName="Anchor";const t3={[ar]:"show",[kr]:"show"},Ya=oe.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...a},i)=>{const o={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},s=h.useCallback((u,c)=>{hy(u),r==null||r(u,c)},[r]);return y.jsx(py,{ref:i,addEndListener:fy,...o,onEnter:s,childRef:t.ref,children:(u,c)=>oe.cloneElement(t,{...c,className:ie("fade",e,t.props.className,t3[u],n[u])})})});Ya.displayName="Fade";const n3={"aria-label":O.string,onClick:O.func,variant:O.oneOf(["white"])},Lc=oe.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},a)=>y.jsx("button",{ref:a,type:"button",className:ie("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Lc.displayName="CloseButton";Lc.propTypes=n3;const Zf=oe.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:a=!1,disabled:i=!1,className:o,...s},u)=>{const c=Le(t,"btn"),[l,{tagName:d}]=qf({tagName:e,disabled:i,...s}),f=d;return y.jsx(f,{...l,...s,ref:u,disabled:i,className:ie(o,c,a&&"active",n&&`${c}-${n}`,r&&`${c}-${r}`,s.href&&i&&"disabled")})});Zf.displayName="Button";function r3(e){const t=h.useRef(e);return t.current=e,t}function Kf(e){const t=r3(e);h.useEffect(()=>()=>t.current(),[])}const $d=2**31-1;function vy(e,t,n){const r=n-Date.now();e.current=r<=$d?setTimeout(t,r):setTimeout(()=>vy(e,t,n),$d)}function a3(){const e=Vf(),t=h.useRef();return Kf(()=>clearTimeout(t.current)),h.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(a,i=0){e()&&(n(),i<=$d?t.current=setTimeout(a,i):vy(t,a,Date.now()+i))}return{set:r,clear:n,handleRef:t}},[])}function i3(e,t){return oe.Children.toArray(e).some(n=>oe.isValidElement(n)&&n.type===t)}function yy({as:e,bsPrefix:t,className:n,...r}){t=Le(t,"col");const a=_T(),i=wT(),o=[],s=[];return a.forEach(u=>{const c=r[u];delete r[u];let l,d,f;typeof c=="object"&&c!=null?{span:l,offset:d,order:f}=c:l=c;const p=u!==i?`-${u}`:"";l&&o.push(l===!0?`${t}${p}`:`${t}${p}-${l}`),f!=null&&s.push(`order${p}-${f}`),d!=null&&s.push(`offset${p}-${d}`)}),[{...r,className:ie(n,...o,...s)},{as:e,bsPrefix:t,spans:o}]}const by=oe.forwardRef((e,t)=>{const[{className:n,...r},{as:a="div",bsPrefix:i,spans:o}]=yy(e);return y.jsx(a,{...r,ref:t,className:ie(n,!o.length&&i)})});by.displayName="Col";var o3=Function.prototype.bind.call(Function.prototype.call,[].slice);function ir(e,t){return o3(e.querySelectorAll(t))}function s3(e,t,n){const r=h.useRef(e!==void 0),[a,i]=h.useState(t),o=e!==void 0,s=r.current;return r.current=o,!o&&s&&a!==t&&i(t),[o?e:a,h.useCallback((...u)=>{const[c,...l]=u;let d=n==null?void 0:n(c,...l);return i(c),d},[n])]}function xy(){const[,e]=h.useReducer(t=>!t,!1);return e}const Uc=oe.createContext(null);var Om=Object.prototype.hasOwnProperty;function Em(e,t,n){for(n of e.keys())if(Xi(n,t))return n}function Xi(e,t){var n,r,a;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--&&Xi(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(a=r,a&&typeof a=="object"&&(a=Em(t,a),!a)||!t.has(a))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(a=r[0],a&&typeof a=="object"&&(a=Em(t,a),!a)||!Xi(r[1],t.get(a)))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(Om.call(e,n)&&++r&&!Om.call(t,n)||!(n in t)||!Xi(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function c3(e){const t=Vf();return[e[0],h.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var an="top",On="bottom",En="right",on="left",Xf="auto",Ho=[an,On,En,on],Ga="start",io="end",u3="clippingParents",_y="viewport",Ai="popper",l3="reference",$m=Ho.reduce(function(e,t){return e.concat([t+"-"+Ga,t+"-"+io])},[]),wy=[].concat(Ho,[Xf]).reduce(function(e,t){return e.concat([t,t+"-"+Ga,t+"-"+io])},[]),d3="beforeRead",f3="read",h3="afterRead",p3="beforeMain",m3="main",g3="afterMain",v3="beforeWrite",y3="write",b3="afterWrite",x3=[d3,f3,h3,p3,m3,g3,v3,y3,b3];function Hn(e){return e.split("-")[0]}function vn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ca(e){var t=vn(e).Element;return e instanceof t||e instanceof Element}function Vn(e){var t=vn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Jf(e){if(typeof ShadowRoot>"u")return!1;var t=vn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var ta=Math.max,Vs=Math.min,Za=Math.round;function Md(){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 Ty(){return!/^((?!chrome|android).)*safari/i.test(Md())}function Ka(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,i=1;t&&Vn(e)&&(a=e.offsetWidth>0&&Za(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Za(r.height)/e.offsetHeight||1);var o=ca(e)?vn(e):window,s=o.visualViewport,u=!Ty()&&n,c=(r.left+(u&&s?s.offsetLeft:0))/a,l=(r.top+(u&&s?s.offsetTop:0))/i,d=r.width/a,f=r.height/i;return{width:d,height:f,top:l,right:c+d,bottom:l+f,left:c,x:c,y:l}}function Qf(e){var t=Ka(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 Cy(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Jf(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function jr(e){return e?(e.nodeName||"").toLowerCase():null}function lr(e){return vn(e).getComputedStyle(e)}function _3(e){return["table","td","th"].indexOf(jr(e))>=0}function Br(e){return((ca(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bc(e){return jr(e)==="html"?e:e.assignedSlot||e.parentNode||(Jf(e)?e.host:null)||Br(e)}function Mm(e){return!Vn(e)||lr(e).position==="fixed"?null:e.offsetParent}function w3(e){var t=/firefox/i.test(Md()),n=/Trident/i.test(Md());if(n&&Vn(e)){var r=lr(e);if(r.position==="fixed")return null}var a=Bc(e);for(Jf(a)&&(a=a.host);Vn(a)&&["html","body"].indexOf(jr(a))<0;){var i=lr(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function Vo(e){for(var t=vn(e),n=Mm(e);n&&_3(n)&&lr(n).position==="static";)n=Mm(n);return n&&(jr(n)==="html"||jr(n)==="body"&&lr(n).position==="static")?t:n||w3(e)||t}function eh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ji(e,t,n){return ta(e,Vs(t,n))}function T3(e,t,n){var r=Ji(e,t,n);return r>n?n:r}function ky(){return{top:0,right:0,bottom:0,left:0}}function Sy(e){return Object.assign({},ky(),e)}function Oy(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var C3=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Sy(typeof t!="number"?t:Oy(t,Ho))};function k3(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Hn(n.placement),u=eh(s),c=[on,En].indexOf(s)>=0,l=c?"height":"width";if(!(!i||!o)){var d=C3(a.padding,n),f=Qf(i),p=u==="y"?an:on,m=u==="y"?On:En,g=n.rects.reference[l]+n.rects.reference[u]-o[u]-n.rects.popper[l],v=o[u]-n.rects.reference[u],x=Vo(i),w=x?u==="y"?x.clientHeight||0:x.clientWidth||0:0,b=g/2-v/2,T=d[p],_=w-f[l]-d[m],C=w/2-f[l]/2+b,$=Ji(T,C,_),A=u;n.modifiersData[r]=(t={},t[A]=$,t.centerOffset=$-C,t)}}function S3(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Cy(t.elements.popper,a)&&(t.elements.arrow=a))}const O3={name:"arrow",enabled:!0,phase:"main",fn:k3,effect:S3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xa(e){return e.split("-")[1]}var E3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $3(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:Za(n*a)/a||0,y:Za(r*a)/a||0}}function Rm(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,o=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,l=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,g=m===void 0?0:m,v=typeof l=="function"?l({x:p,y:g}):{x:p,y:g};p=v.x,g=v.y;var x=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),b=on,T=an,_=window;if(c){var C=Vo(n),$="clientHeight",A="clientWidth";if(C===vn(n)&&(C=Br(n),lr(C).position!=="static"&&s==="absolute"&&($="scrollHeight",A="scrollWidth")),C=C,a===an||(a===on||a===En)&&i===io){T=On;var D=d&&C===_&&_.visualViewport?_.visualViewport.height:C[$];g-=D-r.height,g*=u?1:-1}if(a===on||(a===an||a===On)&&i===io){b=En;var j=d&&C===_&&_.visualViewport?_.visualViewport.width:C[A];p-=j-r.width,p*=u?1:-1}}var E=Object.assign({position:s},c&&E3),F=l===!0?$3({x:p,y:g},vn(n)):{x:p,y:g};if(p=F.x,g=F.y,u){var M;return Object.assign({},E,(M={},M[T]=w?"0":"",M[b]=x?"0":"",M.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",M))}return Object.assign({},E,(t={},t[T]=w?g+"px":"",t[b]=x?p+"px":"",t.transform="",t))}function M3(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,s=n.roundOffsets,u=s===void 0?!0:s,c={placement:Hn(t.placement),variation:Xa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Rm(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Rm(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const R3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:M3,data:{}};var fs={passive:!0};function A3(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,o=r.resize,s=o===void 0?!0:o,u=vn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(l){l.addEventListener("scroll",n.update,fs)}),s&&u.addEventListener("resize",n.update,fs),function(){i&&c.forEach(function(l){l.removeEventListener("scroll",n.update,fs)}),s&&u.removeEventListener("resize",n.update,fs)}}const j3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:A3,data:{}};var P3={left:"right",right:"left",bottom:"top",top:"bottom"};function $s(e){return e.replace(/left|right|bottom|top/g,function(t){return P3[t]})}var D3={start:"end",end:"start"};function Am(e){return e.replace(/start|end/g,function(t){return D3[t]})}function th(e){var t=vn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function nh(e){return Ka(Br(e)).left+th(e).scrollLeft}function I3(e,t){var n=vn(e),r=Br(e),a=n.visualViewport,i=r.clientWidth,o=r.clientHeight,s=0,u=0;if(a){i=a.width,o=a.height;var c=Ty();(c||!c&&t==="fixed")&&(s=a.offsetLeft,u=a.offsetTop)}return{width:i,height:o,x:s+nh(e),y:u}}function N3(e){var t,n=Br(e),r=th(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=ta(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=ta(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+nh(e),u=-r.scrollTop;return lr(a||n).direction==="rtl"&&(s+=ta(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:u}}function rh(e){var t=lr(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function Ey(e){return["html","body","#document"].indexOf(jr(e))>=0?e.ownerDocument.body:Vn(e)&&rh(e)?e:Ey(Bc(e))}function Qi(e,t){var n;t===void 0&&(t=[]);var r=Ey(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=vn(r),o=a?[i].concat(i.visualViewport||[],rh(r)?r:[]):r,s=t.concat(o);return a?s:s.concat(Qi(Bc(o)))}function Rd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function F3(e,t){var n=Ka(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 jm(e,t,n){return t===_y?Rd(I3(e,n)):ca(t)?F3(t,n):Rd(N3(Br(e)))}function L3(e){var t=Qi(Bc(e)),n=["absolute","fixed"].indexOf(lr(e).position)>=0,r=n&&Vn(e)?Vo(e):e;return ca(r)?t.filter(function(a){return ca(a)&&Cy(a,r)&&jr(a)!=="body"}):[]}function U3(e,t,n,r){var a=t==="clippingParents"?L3(e):[].concat(t),i=[].concat(a,[n]),o=i[0],s=i.reduce(function(u,c){var l=jm(e,c,r);return u.top=ta(l.top,u.top),u.right=Vs(l.right,u.right),u.bottom=Vs(l.bottom,u.bottom),u.left=ta(l.left,u.left),u},jm(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 $y(e){var t=e.reference,n=e.element,r=e.placement,a=r?Hn(r):null,i=r?Xa(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,u;switch(a){case an:u={x:o,y:t.y-n.height};break;case On:u={x:o,y:t.y+t.height};break;case En:u={x:t.x+t.width,y:s};break;case on:u={x:t.x-n.width,y:s};break;default:u={x:t.x,y:t.y}}var c=a?eh(a):null;if(c!=null){var l=c==="y"?"height":"width";switch(i){case Ga:u[c]=u[c]-(t[l]/2-n[l]/2);break;case io:u[c]=u[c]+(t[l]/2-n[l]/2);break}}return u}function oo(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,i=n.strategy,o=i===void 0?e.strategy:i,s=n.boundary,u=s===void 0?u3:s,c=n.rootBoundary,l=c===void 0?_y:c,d=n.elementContext,f=d===void 0?Ai:d,p=n.altBoundary,m=p===void 0?!1:p,g=n.padding,v=g===void 0?0:g,x=Sy(typeof v!="number"?v:Oy(v,Ho)),w=f===Ai?l3:Ai,b=e.rects.popper,T=e.elements[m?w:f],_=U3(ca(T)?T:T.contextElement||Br(e.elements.popper),u,l,o),C=Ka(e.elements.reference),$=$y({reference:C,element:b,strategy:"absolute",placement:a}),A=Rd(Object.assign({},b,$)),D=f===Ai?A:C,j={top:_.top-D.top+x.top,bottom:D.bottom-_.bottom+x.bottom,left:_.left-D.left+x.left,right:D.right-_.right+x.right},E=e.modifiersData.offset;if(f===Ai&&E){var F=E[a];Object.keys(j).forEach(function(M){var R=[En,On].indexOf(M)>=0?1:-1,I=[an,On].indexOf(M)>=0?"y":"x";j[M]+=F[I]*R})}return j}function B3(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?wy:u,l=Xa(r),d=l?s?$m:$m.filter(function(m){return Xa(m)===l}):Ho,f=d.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=d);var p=f.reduce(function(m,g){return m[g]=oo(e,{placement:g,boundary:a,rootBoundary:i,padding:o})[Hn(g)],m},{});return Object.keys(p).sort(function(m,g){return p[m]-p[g]})}function W3(e){if(Hn(e)===Xf)return[];var t=$s(e);return[Am(e),t,Am(t)]}function z3(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!0:o,u=n.fallbackPlacements,c=n.padding,l=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,g=n.allowedAutoPlacements,v=t.options.placement,x=Hn(v),w=x===v,b=u||(w||!m?[$s(v)]:W3(v)),T=[v].concat(b).reduce(function(Y,Q){return Y.concat(Hn(Q)===Xf?B3(t,{placement:Q,boundary:l,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:g}):Q)},[]),_=t.rects.reference,C=t.rects.popper,$=new Map,A=!0,D=T[0],j=0;j<T.length;j++){var E=T[j],F=Hn(E),M=Xa(E)===Ga,R=[an,On].indexOf(F)>=0,I=R?"width":"height",U=oo(t,{placement:E,boundary:l,rootBoundary:d,altBoundary:f,padding:c}),N=R?M?En:on:M?On:an;_[I]>C[I]&&(N=$s(N));var q=$s(N),z=[];if(i&&z.push(U[F]<=0),s&&z.push(U[N]<=0,U[q]<=0),z.every(function(Y){return Y})){D=E,A=!1;break}$.set(E,z)}if(A)for(var P=m?3:1,W=function(Q){var G=T.find(function(J){var re=$.get(J);if(re)return re.slice(0,Q).every(function(L){return L})});if(G)return D=G,"break"},Z=P;Z>0;Z--){var ne=W(Z);if(ne==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const H3={name:"flip",enabled:!0,phase:"main",fn:z3,requiresIfExists:["offset"],data:{_skip:!1}};function Pm(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 Dm(e){return[an,En,On,on].some(function(t){return e[t]>=0})}function V3(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=oo(t,{elementContext:"reference"}),s=oo(t,{altBoundary:!0}),u=Pm(o,r),c=Pm(s,a,i),l=Dm(u),d=Dm(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}const q3={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V3};function Y3(e,t,n){var r=Hn(e),a=[on,an].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[on,En].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function G3(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,o=wy.reduce(function(l,d){return l[d]=Y3(d,t.rects,i),l},{}),s=o[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}const Z3={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:G3};function K3(e){var t=e.state,n=e.name;t.modifiersData[n]=$y({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const X3={name:"popperOffsets",enabled:!0,phase:"read",fn:K3,data:{}};function J3(e){return e==="x"?"y":"x"}function Q3(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!1:o,u=n.boundary,c=n.rootBoundary,l=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,g=m===void 0?0:m,v=oo(t,{boundary:u,rootBoundary:c,padding:d,altBoundary:l}),x=Hn(t.placement),w=Xa(t.placement),b=!w,T=eh(x),_=J3(T),C=t.modifiersData.popperOffsets,$=t.rects.reference,A=t.rects.popper,D=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,j=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(C){if(i){var M,R=T==="y"?an:on,I=T==="y"?On:En,U=T==="y"?"height":"width",N=C[T],q=N+v[R],z=N-v[I],P=p?-A[U]/2:0,W=w===Ga?$[U]:A[U],Z=w===Ga?-A[U]:-$[U],ne=t.elements.arrow,Y=p&&ne?Qf(ne):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ky(),G=Q[R],J=Q[I],re=Ji(0,$[U],Y[U]),L=b?$[U]/2-P-re-G-j.mainAxis:W-re-G-j.mainAxis,V=b?-$[U]/2+P+re+J+j.mainAxis:Z+re+J+j.mainAxis,ae=t.elements.arrow&&Vo(t.elements.arrow),k=ae?T==="y"?ae.clientTop||0:ae.clientLeft||0:0,ge=(M=E==null?void 0:E[T])!=null?M:0,pe=N+L-ge-k,de=N+V-ge,Ae=Ji(p?Vs(q,pe):q,N,p?ta(z,de):z);C[T]=Ae,F[T]=Ae-N}if(s){var Pe,ft=T==="x"?an:on,gt=T==="x"?On:En,We=C[_],rt=_==="y"?"height":"width",Ze=We+v[ft],xt=We-v[gt],_t=[an,on].indexOf(x)!==-1,at=(Pe=E==null?void 0:E[_])!=null?Pe:0,xe=_t?Ze:We-$[rt]-A[rt]-at+j.altAxis,Xe=_t?We+$[rt]+A[rt]-at-j.altAxis:xt,Ct=p&&_t?T3(xe,We,Xe):Ji(p?xe:Ze,We,p?Xe:xt);C[_]=Ct,F[_]=Ct-We}t.modifiersData[r]=F}}const eC={name:"preventOverflow",enabled:!0,phase:"main",fn:Q3,requiresIfExists:["offset"]};function tC(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function nC(e){return e===vn(e)||!Vn(e)?th(e):tC(e)}function rC(e){var t=e.getBoundingClientRect(),n=Za(t.width)/e.offsetWidth||1,r=Za(t.height)/e.offsetHeight||1;return n!==1||r!==1}function aC(e,t,n){n===void 0&&(n=!1);var r=Vn(t),a=Vn(t)&&rC(t),i=Br(t),o=Ka(e,a,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((jr(t)!=="body"||rh(i))&&(s=nC(t)),Vn(t)?(u=Ka(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=nh(i))),{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function iC(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var u=t.get(s);u&&a(u)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function oC(e){var t=iC(e);return x3.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function sC(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function cC(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Im={placement:"bottom",modifiers:[],strategy:"absolute"};function Nm(){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 uC(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?Im:a;return function(s,u,c){c===void 0&&(c=i);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Im,i),modifiersData:{},elements:{reference:s,popper:u},attributes:{},styles:{}},d=[],f=!1,p={state:l,setOptions:function(x){var w=typeof x=="function"?x(l.options):x;g(),l.options=Object.assign({},i,l.options,w),l.scrollParents={reference:ca(s)?Qi(s):s.contextElement?Qi(s.contextElement):[],popper:Qi(u)};var b=oC(cC([].concat(r,l.options.modifiers)));return l.orderedModifiers=b.filter(function(T){return T.enabled}),m(),p.update()},forceUpdate:function(){if(!f){var x=l.elements,w=x.reference,b=x.popper;if(Nm(w,b)){l.rects={reference:aC(w,Vo(b),l.options.strategy==="fixed"),popper:Qf(b)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(j){return l.modifiersData[j.name]=Object.assign({},j.data)});for(var T=0;T<l.orderedModifiers.length;T++){if(l.reset===!0){l.reset=!1,T=-1;continue}var _=l.orderedModifiers[T],C=_.fn,$=_.options,A=$===void 0?{}:$,D=_.name;typeof C=="function"&&(l=C({state:l,options:A,name:D,instance:p})||l)}}}},update:sC(function(){return new Promise(function(v){p.forceUpdate(),v(l)})}),destroy:function(){g(),f=!0}};if(!Nm(s,u))return p;p.setOptions(c).then(function(v){!f&&c.onFirstUpdate&&c.onFirstUpdate(v)});function m(){l.orderedModifiers.forEach(function(v){var x=v.name,w=v.options,b=w===void 0?{}:w,T=v.effect;if(typeof T=="function"){var _=T({state:l,name:x,instance:p,options:b}),C=function(){};d.push(_||C)}})}function g(){d.forEach(function(v){return v()}),d=[]}return p}}const lC=uC({defaultModifiers:[q3,X3,R3,j3,Z3,H3,eC,O3]}),dC=["enabled","placement","strategy","modifiers"];function fC(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 hC={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},pC={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(a=>a.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,a=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&a==="tooltip"&&"setAttribute"in r){const i=r.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",i?`${i},${n.id}`:n.id)}}},mC=[];function My(e,t,n={}){let{enabled:r=!0,placement:a="bottom",strategy:i="absolute",modifiers:o=mC}=n,s=fC(n,dC);const u=h.useRef(o),c=h.useRef(),l=h.useCallback(()=>{var v;(v=c.current)==null||v.update()},[]),d=h.useCallback(()=>{var v;(v=c.current)==null||v.forceUpdate()},[]),[f,p]=c3(h.useState({placement:a,update:l,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),m=h.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:v})=>{const x={},w={};Object.keys(v.elements).forEach(b=>{x[b]=v.styles[b],w[b]=v.attributes[b]}),p({state:v,styles:x,attributes:w,update:l,forceUpdate:d,placement:v.placement})}}),[l,d,p]),g=h.useMemo(()=>(Xi(u.current,o)||(u.current=o),u.current),[o]);return h.useEffect(()=>{!c.current||!r||c.current.setOptions({placement:a,strategy:i,modifiers:[...g,m,hC]})},[i,a,m,r,g]),h.useEffect(()=>{if(!(!r||e==null||t==null))return c.current=lC(e,t,Object.assign({},s,{placement:a,strategy:i,modifiers:[...g,pC,m]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,p(v=>Object.assign({},v,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function so(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var gC=process.env.NODE_ENV!=="production",Ry=function(){};if(gC){var vC=function(t,n){var r=arguments.length;n=new Array(r>1?r-1:0);for(var a=1;a<r;a++)n[a-1]=arguments[a];var i=0,o="Warning: "+t.replace(/%s/g,function(){return n[i++]});typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}};Ry=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var a=2;a<r;a++)n[a-2]=arguments[a];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||vC.apply(null,[t].concat(n))}}var yC=Ry;const di=Tt(yC),Fm=()=>{};function bC(e){return e.button===0}function xC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Ms=e=>e&&("current"in e?e.current:e),Lm={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Ay(e,t=Fm,{disabled:n,clickTrigger:r="click"}={}){const a=h.useRef(!1),i=h.useRef(!1),o=h.useCallback(c=>{const l=Ms(e);di(!!l,"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"),a.current=!l||xC(c)||!bC(c)||!!so(l,c.target)||i.current,i.current=!1},[e]),s=bt(c=>{const l=Ms(e);l&&so(l,c.target)&&(i.current=!0)}),u=bt(c=>{a.current||t(c)});h.useEffect(()=>{var c,l;if(n||e==null)return;const d=ui(Ms(e)),f=d.defaultView||window;let p=(c=f.event)!=null?c:(l=f.parent)==null?void 0:l.event,m=null;Lm[r]&&(m=or(d,Lm[r],s,!0));const g=or(d,r,o,!0),v=or(d,r,w=>{if(w===p){p=void 0;return}u(w)});let x=[];return"ontouchstart"in d.documentElement&&(x=[].slice.call(d.body.children).map(w=>or(w,"mousemove",Fm))),()=>{m==null||m(),g(),v(),x.forEach(w=>w())}},[e,n,r,o,s,u])}function _C(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function wC(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function jy({enabled:e,enableEvents:t,placement:n,flip:r,offset:a,fixed:i,containerPadding:o,arrowElement:s,popperConfig:u={}}){var c,l,d,f,p;const m=_C(u.modifiers);return Object.assign({},u,{placement:n,enabled:e,strategy:i?"fixed":u.strategy,modifiers:wC(Object.assign({},m,{eventListeners:{enabled:t,options:(c=m.eventListeners)==null?void 0:c.options},preventOverflow:Object.assign({},m.preventOverflow,{options:o?Object.assign({padding:o},(l=m.preventOverflow)==null?void 0:l.options):(d=m.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:a},(f=m.offset)==null?void 0:f.options)},arrow:Object.assign({},m.arrow,{enabled:!!s,options:Object.assign({},(p=m.arrow)==null?void 0:p.options,{element:s})}),flip:Object.assign({enabled:!!r},m.flip)}))})}const TC=["children","usePopper"];function CC(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 kC=()=>{};function Py(e={}){const t=h.useContext(Uc),[n,r]=Hs(),a=h.useRef(!1),{flip:i,offset:o,rootCloseEvent:s,fixed:u=!1,placement:c,popperConfig:l={},enableEventListeners:d=!0,usePopper:f=!!t}=e,p=(t==null?void 0:t.show)==null?!!e.show:t.show;p&&!a.current&&(a.current=!0);const m=C=>{t==null||t.toggle(!1,C)},{placement:g,setMenu:v,menuElement:x,toggleElement:w}=t||{},b=My(w,x,jy({placement:c||g||"bottom-start",enabled:f,enableEvents:d??p,offset:o,flip:i,fixed:u,arrowElement:n,popperConfig:l})),T=Object.assign({ref:v||kC,"aria-labelledby":w==null?void 0:w.id},b.attributes.popper,{style:b.styles.popper}),_={show:p,placement:g,hasShown:a.current,toggle:t==null?void 0:t.toggle,popper:f?b:null,arrowProps:f?Object.assign({ref:r},b.attributes.arrow,{style:b.styles.arrow}):{}};return Ay(x,m,{clickTrigger:s,disabled:!p}),[T,_]}function Dy(e){let{children:t,usePopper:n=!0}=e,r=CC(e,TC);const[a,i]=Py(Object.assign({},r,{usePopper:n}));return y.jsx(y.Fragment,{children:t(a,i)})}Dy.displayName="DropdownMenu";const qs={prefix:String(Math.round(Math.random()*1e10)),current:0},Iy=h.createContext(qs),SC=h.createContext(!1);let OC=!!(typeof window<"u"&&window.document&&window.document.createElement),Ml=new WeakMap;function EC(e=!1){let t=h.useContext(Iy),n=h.useRef(null);if(n.current===null&&!e){var r,a;let i=(a=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let o=Ml.get(i);o==null?Ml.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==o.state&&(t.current=o.id,Ml.delete(i))}n.current=++t.current}return n.current}function $C(e){let t=h.useContext(Iy);t===qs&&!OC&&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=EC(!!e),r=t===qs&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function MC(e){let t=h.useId(),[n]=h.useState(DC()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${qs.prefix}`;return e||`${r}-${t}`}const RC=typeof h.useId=="function"?MC:$C;function AC(){return!1}function jC(){return!0}function PC(e){return()=>{}}function DC(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(PC,AC,jC):h.useContext(SC)}const Ny=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},Um=()=>{};function Fy(){const e=RC(),{show:t=!1,toggle:n=Um,setToggle:r,menuElement:a}=h.useContext(Uc)||{},i=h.useCallback(s=>{n(!t,s)},[t,n]),o={id:e,ref:r||Um,onClick:i,"aria-expanded":!!t};return a&&Ny(a)&&(o["aria-haspopup"]=!0),[o,{show:t,toggle:n}]}function Ly({children:e}){const[t,n]=Fy();return y.jsx(y.Fragment,{children:e(t,n)})}Ly.displayName="DropdownToggle";const Ys=oe.createContext(null),Ad=(e,t=null)=>e!=null?String(e):t||null,ah=oe.createContext(null);ah.displayName="NavContext";const IC="data-rr-ui-",NC="rrUi";function Wc(e){return`${IC}${e}`}function FC(e){return`${NC}${e}`}const LC=["eventKey","disabled","onClick","active","as"];function UC(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 Uy({key:e,href:t,active:n,disabled:r,onClick:a}){const i=h.useContext(Ys),o=h.useContext(ah),{activeKey:s}=o||{},u=Ad(e,t),c=n==null&&e!=null?Ad(s)===u:n;return[{onClick:bt(d=>{r||(a==null||a(d),i&&!d.isPropagationStopped()&&i(u,d))}),"aria-disabled":r||void 0,"aria-selected":c,[Wc("dropdown-item")]:""},{isActive:c}]}const By=oe.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:a,active:i,as:o=Yf}=e,s=UC(e,LC);const[u]=Uy({key:n,href:s.href,disabled:r,onClick:a,active:i});return y.jsx(o,Object.assign({},s,{ref:t},u))});By.displayName="DropdownItem";const Wy=h.createContext(li?window:void 0);Wy.Provider;function zc(){return h.useContext(Wy)}function Bm(){const e=xy(),t=h.useRef(null),n=h.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function qo({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:a=`* [${Wc("dropdown-item")}]`,focusFirstItemOnShow:i,placement:o="bottom-start",children:s}){const u=zc(),[c,l]=s3(t,e,r),[d,f]=Bm(),p=d.current,[m,g]=Bm(),v=m.current,x=gy(c),w=h.useRef(null),b=h.useRef(!1),T=h.useContext(Ys),_=h.useCallback((E,F,M=F==null?void 0:F.type)=>{l(E,{originalEvent:F,source:M})},[l]),C=bt((E,F)=>{n==null||n(E,F),_(!1,F,"select"),F.isPropagationStopped()||T==null||T(E,F)}),$=h.useMemo(()=>({toggle:_,placement:o,show:c,menuElement:p,toggleElement:v,setMenu:f,setToggle:g}),[_,o,c,p,v,f,g]);p&&x&&!c&&(b.current=p.contains(p.ownerDocument.activeElement));const A=bt(()=>{v&&v.focus&&v.focus()}),D=bt(()=>{const E=w.current;let F=i;if(F==null&&(F=d.current&&Ny(d.current)?"keyboard":!1),F===!1||F==="keyboard"&&!/^key.+$/.test(E))return;const M=ir(d.current,a)[0];M&&M.focus&&M.focus()});h.useEffect(()=>{c?D():b.current&&(b.current=!1,A())},[c,b,A,D]),h.useEffect(()=>{w.current=null});const j=(E,F)=>{if(!d.current)return null;const M=ir(d.current,a);let R=M.indexOf(E)+F;return R=Math.max(0,Math.min(R,M.length)),M[R]};return qT(h.useCallback(()=>u.document,[u]),"keydown",E=>{var F,M;const{key:R}=E,I=E.target,U=(F=d.current)==null?void 0:F.contains(I),N=(M=m.current)==null?void 0:M.contains(I);if(/input|textarea/i.test(I.tagName)&&(R===" "||R!=="Escape"&&U||R==="Escape"&&I.type==="search")||!U&&!N||R==="Tab"&&(!d.current||!c))return;w.current=E.type;const z={originalEvent:E,source:E.type};switch(R){case"ArrowUp":{const P=j(I,-1);P&&P.focus&&P.focus(),E.preventDefault();return}case"ArrowDown":if(E.preventDefault(),!c)l(!0,z);else{const P=j(I,1);P&&P.focus&&P.focus()}return;case"Tab":Hf(I.ownerDocument,"keyup",P=>{var W;(P.key==="Tab"&&!P.target||!((W=d.current)!=null&&W.contains(P.target)))&&l(!1,z)},{once:!0});break;case"Escape":R==="Escape"&&(E.preventDefault(),E.stopPropagation()),l(!1,z);break}}),y.jsx(Ys.Provider,{value:C,children:y.jsx(Uc.Provider,{value:$,children:s})})}qo.displayName="Dropdown";qo.Menu=Dy;qo.Toggle=Ly;qo.Item=By;const ih=oe.createContext({});ih.displayName="DropdownContext";const zy=oe.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...a},i)=>(t=Le(t,"dropdown-divider"),y.jsx(n,{ref:i,className:ie(e,t),role:r,...a})));zy.displayName="DropdownDivider";const Hy=oe.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...a},i)=>(t=Le(t,"dropdown-header"),y.jsx(n,{ref:i,className:ie(e,t),role:r,...a})));Hy.displayName="DropdownHeader";const Vy=oe.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:a,active:i,as:o=Gf,...s},u)=>{const c=Le(e,"dropdown-item"),[l,d]=Uy({key:n,href:s.href,disabled:r,onClick:a,active:i});return y.jsx(o,{...s,...l,ref:u,className:ie(t,c,d.isActive&&"active",r&&"disabled")})});Vy.displayName="DropdownItem";const qy=oe.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},a)=>(t=Le(t,"dropdown-item-text"),y.jsx(n,{ref:a,className:ie(e,t),...r})));qy.displayName="DropdownItemText";const Hc=oe.createContext(null);Hc.displayName="InputGroupContext";const oh=oe.createContext(null);oh.displayName="NavbarContext";function Yy(e,t){if(process.env.NODE_ENV==="production")return e;const n=h.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?Td(!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`):Td(!1))},[t]);return $n(n,e)}function Gy(e,t,n){const r=n?"top-end":"top-start",a=n?"top-start":"top-end",i=n?"bottom-end":"bottom-start",o=n?"bottom-start":"bottom-end",s=n?"right-start":"left-start",u=n?"right-end":"left-end",c=n?"left-start":"right-start",l=n?"left-end":"right-end";let d=e?o:i;return t==="up"?d=e?a:r:t==="end"?d=e?l:c:t==="start"?d=e?u:s:t==="down-centered"?d="bottom":t==="up-centered"&&(d="top"),d}const Zy=oe.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:a=!0,show:i,renderOnMount:o,as:s="div",popperConfig:u,variant:c,...l},d)=>{let f=!1;const p=h.useContext(oh),m=Le(e,"dropdown-menu"),{align:g,drop:v,isRTL:x}=h.useContext(ih);n=n||g;const w=h.useContext(Hc),b=[];if(n)if(typeof n=="object"){const E=Object.keys(n);if(process.env.NODE_ENV!=="production"&&di(E.length===1,"There should only be 1 breakpoint when passing an object to `align`"),E.length){const F=E[0],M=n[F];f=M==="start",b.push(`${m}-${F}-${M}`)}}else n==="end"&&(f=!0);const T=Gy(f,v,x),[_,{hasShown:C,popper:$,show:A,toggle:D}]=Py({flip:a,rootCloseEvent:r,show:i,usePopper:!p&&b.length===0,offset:[0,2],popperConfig:u,placement:T});if(_.ref=$n(Yy(d,"DropdownMenu"),_.ref),ao(()=>{A&&($==null||$.update())},[A]),!C&&!o&&!w)return null;typeof s!="string"&&(_.show=A,_.close=()=>D==null?void 0:D(!1),_.align=n);let j=l.style;return $!=null&&$.placement&&(j={...l.style,..._.style},l["x-placement"]=$.placement),y.jsx(s,{...l,..._,style:j,...(b.length||p)&&{"data-bs-popper":"static"},className:ie(t,m,A&&"show",f&&`${m}-end`,c&&`${m}-${c}`,...b)})});Zy.displayName="DropdownMenu";const Ky=oe.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:a=Zf,...i},o)=>{const s=Le(e,"dropdown-toggle"),u=h.useContext(Uc);r!==void 0&&(i.bsPrefix=r);const[c]=Fy();return c.ref=$n(c.ref,Yy(o,"DropdownToggle")),y.jsx(a,{className:ie(n,s,t&&`${s}-split`,(u==null?void 0:u.show)&&"show"),...c,...i})});Ky.displayName="DropdownToggle";const Xy=oe.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:a,className:i,align:o="start",onSelect:s,onToggle:u,focusFirstItemOnShow:c,as:l="div",navbar:d,autoClose:f=!0,...p}=sy(e,{show:"onToggle"}),m=h.useContext(Hc),g=Le(n,"dropdown"),v=Fc(),x=$=>f===!1?$==="click":f==="inside"?$!=="rootClose":f==="outside"?$!=="select":!0,w=bt(($,A)=>{var D;!((D=A.originalEvent)==null||(D=D.target)==null)&&D.classList.contains("dropdown-toggle")&&A.source==="mousedown"||(A.originalEvent.currentTarget===document&&(A.source!=="keydown"||A.originalEvent.key==="Escape")&&(A.source="rootClose"),x(A.source)&&(u==null||u($,A)))}),T=Gy(o==="end",r,v),_=h.useMemo(()=>({align:o,drop:r,isRTL:v}),[o,r,v]),C={down:g,"down-centered":`${g}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return y.jsx(ih.Provider,{value:_,children:y.jsx(qo,{placement:T,show:a,onSelect:s,onToggle:w,focusFirstItemOnShow:c,itemSelector:`.${g}-item:not(.disabled):not(:disabled)`,children:m?p.children:y.jsx(l,{...p,ref:t,className:ie(i,a&&"show",C[r])})})})});Xy.displayName="Dropdown";const co=Object.assign(Xy,{Toggle:Ky,Menu:Zy,Item:Vy,ItemText:qy,Divider:zy,Header:Hy}),BC={type:O.string,tooltip:O.bool,as:O.elementType},Vc=oe.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...a},i)=>y.jsx(e,{...a,ref:i,className:ie(t,`${n}-${r?"tooltip":"feedback"}`)}));Vc.displayName="Feedback";Vc.propTypes=BC;const dr=oe.createContext({}),qc=oe.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:a=!1,isInvalid:i=!1,as:o="input",...s},u)=>{const{controlId:c}=h.useContext(dr);return t=Le(t,"form-check-input"),y.jsx(o,{...s,ref:u,type:r,id:e||c,className:ie(n,t,a&&"is-valid",i&&"is-invalid")})});qc.displayName="FormCheckInput";const Gs=oe.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},a)=>{const{controlId:i}=h.useContext(dr);return e=Le(e,"form-check-label"),y.jsx("label",{...r,ref:a,htmlFor:n||i,className:ie(t,e)})});Gs.displayName="FormCheckLabel";const Jy=oe.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:a=!1,disabled:i=!1,isValid:o=!1,isInvalid:s=!1,feedbackTooltip:u=!1,feedback:c,feedbackType:l,className:d,style:f,title:p="",type:m="checkbox",label:g,children:v,as:x="input",...w},b)=>{t=Le(t,"form-check"),n=Le(n,"form-switch");const{controlId:T}=h.useContext(dr),_=h.useMemo(()=>({controlId:e||T}),[T,e]),C=!v&&g!=null&&g!==!1||i3(v,Gs),$=y.jsx(qc,{...w,type:m==="switch"?"checkbox":m,ref:b,isValid:o,isInvalid:s,disabled:i,as:x});return y.jsx(dr.Provider,{value:_,children:y.jsx("div",{style:f,className:ie(d,C&&t,r&&`${t}-inline`,a&&`${t}-reverse`,m==="switch"&&n),children:v||y.jsxs(y.Fragment,{children:[$,C&&y.jsx(Gs,{title:p,children:g}),c&&y.jsx(Vc,{type:l,tooltip:u,children:c})]})})})});Jy.displayName="FormCheck";const Zs=Object.assign(Jy,{Input:qc,Label:Gs}),Qy=oe.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:a,className:i,isValid:o=!1,isInvalid:s=!1,plaintext:u,readOnly:c,as:l="input",...d},f)=>{const{controlId:p}=h.useContext(dr);return e=Le(e,"form-control"),process.env.NODE_ENV!=="production"&&di(p==null||!a,"`controlId` is ignored on `<FormControl>` when `id` is specified."),y.jsx(l,{...d,type:t,size:r,ref:f,readOnly:c,id:a||p,className:ie(i,u?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,o&&"is-valid",s&&"is-invalid")})});Qy.displayName="FormControl";const eb=Object.assign(Qy,{Feedback:Vc}),tb=oe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Le(t,"form-floating"),y.jsx(n,{ref:a,className:ie(e,t),...r})));tb.displayName="FormFloating";const sh=oe.forwardRef(({controlId:e,as:t="div",...n},r)=>{const a=h.useMemo(()=>({controlId:e}),[e]);return y.jsx(dr.Provider,{value:a,children:y.jsx(t,{...n,ref:r})})});sh.displayName="FormGroup";const nb=oe.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:a,htmlFor:i,...o},s)=>{const{controlId:u}=h.useContext(dr);t=Le(t,"form-label");let c="col-form-label";typeof n=="string"&&(c=`${c} ${c}-${n}`);const l=ie(a,t,r&&"visually-hidden",n&&c);return process.env.NODE_ENV!=="production"&&di(u==null||!i,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),i=i||u,n?y.jsx(by,{ref:s,as:"label",className:l,htmlFor:i,...o}):y.jsx(e,{ref:s,className:l,htmlFor:i,...o})});nb.displayName="FormLabel";const rb=oe.forwardRef(({bsPrefix:e,className:t,id:n,...r},a)=>{const{controlId:i}=h.useContext(dr);return e=Le(e,"form-range"),y.jsx("input",{...r,type:"range",ref:a,className:ie(t,e),id:n||i})});rb.displayName="FormRange";const ch=oe.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:a=!1,isInvalid:i=!1,id:o,...s},u)=>{const{controlId:c}=h.useContext(dr);return e=Le(e,"form-select"),y.jsx("select",{...s,size:n,ref:u,className:ie(r,e,t&&`${e}-${t}`,a&&"is-valid",i&&"is-invalid"),id:o||c})});ch.displayName="FormSelect";const ab=oe.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...a},i)=>(e=Le(e,"form-text"),y.jsx(n,{...a,ref:i,className:ie(t,e,r&&"text-muted")})));ab.displayName="FormText";const ib=oe.forwardRef((e,t)=>y.jsx(Zs,{...e,ref:t,type:"switch"}));ib.displayName="Switch";const WC=Object.assign(ib,{Input:Zs.Input,Label:Zs.Label}),uh=oe.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:a,...i},o)=>(e=Le(e,"form-floating"),y.jsxs(sh,{ref:o,className:ie(t,e),controlId:r,...i,children:[n,y.jsx("label",{htmlFor:r,children:a})]})));uh.displayName="FloatingLabel";const zC={_ref:O.any,validated:O.bool,as:O.elementType},lh=oe.forwardRef(({className:e,validated:t,as:n="form",...r},a)=>y.jsx(n,{...r,ref:a,className:ie(e,t&&"was-validated")}));lh.displayName="Form";lh.propTypes=zC;const ya=Object.assign(lh,{Group:sh,Control:eb,Floating:tb,Check:Zs,Switch:WC,Label:nb,Text:ab,Range:rb,Select:ch,FloatingLabel:uh});var hs;function Wm(e){if((!hs&&hs!==0||e)&&li){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),hs=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return hs}function Rl(e){e===void 0&&(e=ui());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function HC(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const zm=Wc("modal-open");class dh{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return HC(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",a=this.getElement();t.style={overflow:a.style.overflow,[r]:a.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(Rr(a,r)||"0",10)+t.scrollBarWidth}px`),a.setAttribute(zm,""),Rr(a,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(zm),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 Al=(e,t)=>li?e==null?(t||ui()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function jd(e,t){const n=zc(),[r,a]=h.useState(()=>Al(e,n==null?void 0:n.document));if(!r){const i=Al(e);i&&a(i)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const i=Al(e);i!==r&&a(i)},[e,r]),r}function VC({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:a}){const i=h.useRef(null),o=h.useRef(t),s=bt(n);h.useEffect(()=>{t?o.current=!0:s(i.current)},[t,s]);const u=$n(i,e.ref),c=h.cloneElement(e,{ref:u});return t?c:a||!o.current&&r?null:c}function ob(e){return e.code==="Escape"||e.keyCode===27}function qC(){const e=oe.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const YC=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function GC(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 ZC(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:a,onExiting:i,onExited:o,addEndListener:s,children:u}=e,c=GC(e,YC);const{major:l}=qC(),d=l>=19?u.props.ref:u.ref,f=h.useRef(null),p=$n(f,typeof u=="function"?null:d),m=C=>$=>{C&&f.current&&C(f.current,$)},g=h.useCallback(m(t),[t]),v=h.useCallback(m(n),[n]),x=h.useCallback(m(r),[r]),w=h.useCallback(m(a),[a]),b=h.useCallback(m(i),[i]),T=h.useCallback(m(o),[o]),_=h.useCallback(m(s),[s]);return Object.assign({},c,{nodeRef:f},t&&{onEnter:g},n&&{onEntering:v},r&&{onEntered:x},a&&{onExit:w},i&&{onExiting:b},o&&{onExited:T},s&&{addEndListener:_},{children:typeof u=="function"?(C,$)=>u(C,Object.assign({},$,{ref:p})):h.cloneElement(u,{ref:p})})}const KC=["component"];function XC(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 JC=oe.forwardRef((e,t)=>{let{component:n}=e,r=XC(e,KC);const a=ZC(r);return y.jsx(n,Object.assign({ref:t},a))});function QC({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),a=bt(t);return ao(()=>{if(!n.current)return;let i=!1;return a({in:e,element:n.current,initial:r.current,isStale:()=>i}),()=>{i=!0}},[e,a]),ao(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function ek({children:e,in:t,onExited:n,onEntered:r,transition:a}){const[i,o]=h.useState(!t);t&&i&&o(!1);const s=QC({in:!!t,onTransition:c=>{const l=()=>{c.isStale()||(c.in?r==null||r(c.element,c.initial):(o(!0),n==null||n(c.element)))};Promise.resolve(a(c)).then(l,d=>{throw c.in||o(!0),d})}}),u=$n(s,e.ref);return i&&!t?null:h.cloneElement(e,{ref:u})}function Pd(e,t,n){return e?y.jsx(JC,Object.assign({},n,{component:e})):t?y.jsx(ek,Object.assign({},n,{transition:t})):y.jsx(VC,Object.assign({},n))}const tk=["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 nk(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 jl;function rk(e){return jl||(jl=new dh({ownerDocument:e==null?void 0:e.document})),jl}function ak(e){const t=zc(),n=e||rk(t),r=h.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:h.useCallback(a=>{r.current.dialog=a},[]),setBackdropRef:h.useCallback(a=>{r.current.backdrop=a},[])})}const sb=h.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:a,style:i,children:o,backdrop:s=!0,keyboard:u=!0,onBackdropClick:c,onEscapeKeyDown:l,transition:d,runTransition:f,backdropTransition:p,runBackdropTransition:m,autoFocus:g=!0,enforceFocus:v=!0,restoreFocus:x=!0,restoreFocusOptions:w,renderDialog:b,renderBackdrop:T=de=>y.jsx("div",Object.assign({},de)),manager:_,container:C,onShow:$,onHide:A=()=>{},onExit:D,onExited:j,onExiting:E,onEnter:F,onEntering:M,onEntered:R}=e,I=nk(e,tk);const U=zc(),N=jd(C),q=ak(_),z=Vf(),P=gy(n),[W,Z]=h.useState(!n),ne=h.useRef(null);h.useImperativeHandle(t,()=>q,[q]),li&&!P&&n&&(ne.current=Rl(U==null?void 0:U.document)),n&&W&&Z(!1);const Y=bt(()=>{if(q.add(),V.current=or(document,"keydown",re),L.current=or(document,"focus",()=>setTimeout(G),!0),$&&$(),g){var de,Ae;const Pe=Rl((de=(Ae=q.dialog)==null?void 0:Ae.ownerDocument)!=null?de:U==null?void 0:U.document);q.dialog&&Pe&&!so(q.dialog,Pe)&&(ne.current=Pe,q.dialog.focus())}}),Q=bt(()=>{if(q.remove(),V.current==null||V.current(),L.current==null||L.current(),x){var de;(de=ne.current)==null||de.focus==null||de.focus(w),ne.current=null}});h.useEffect(()=>{!n||!N||Y()},[n,N,Y]),h.useEffect(()=>{W&&Q()},[W,Q]),Kf(()=>{Q()});const G=bt(()=>{if(!v||!z()||!q.isTopModal())return;const de=Rl(U==null?void 0:U.document);q.dialog&&de&&!so(q.dialog,de)&&q.dialog.focus()}),J=bt(de=>{de.target===de.currentTarget&&(c==null||c(de),s===!0&&A())}),re=bt(de=>{u&&ob(de)&&q.isTopModal()&&(l==null||l(de),de.defaultPrevented||A())}),L=h.useRef(),V=h.useRef(),ae=(...de)=>{Z(!0),j==null||j(...de)};if(!N)return null;const k=Object.assign({role:r,ref:q.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},I,{style:i,className:a,tabIndex:-1});let ge=b?b(k):y.jsx("div",Object.assign({},k,{children:oe.cloneElement(o,{role:"document"})}));ge=Pd(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:D,onExiting:E,onExited:ae,onEnter:F,onEntering:M,onEntered:R,children:ge});let pe=null;return s&&(pe=T({ref:q.setBackdropRef,onClick:J}),pe=Pd(p,m,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:pe})),y.jsx(y.Fragment,{children:Er.createPortal(y.jsxs(y.Fragment,{children:[pe,ge]}),N)})});sb.displayName="Modal";const cb=Object.assign(sb,{Manager:dh});function Dd(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function ik(e,t){e.classList?e.classList.add(t):Dd(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Hm(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function ok(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Hm(e.className,t):e.setAttribute("class",Hm(e.className&&e.className.baseVal||"",t))}const Ra={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class ub extends dh{adjustAndStore(t,n,r){const a=n.style[t];n.dataset[t]=a,Rr(n,{[t]:`${parseFloat(Rr(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],Rr(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(ik(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";ir(n,Ra.FIXED_CONTENT).forEach(i=>this.adjustAndStore(r,i,t.scrollBarWidth)),ir(n,Ra.STICKY_CONTENT).forEach(i=>this.adjustAndStore(a,i,-t.scrollBarWidth)),ir(n,Ra.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(a,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();ok(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";ir(n,Ra.FIXED_CONTENT).forEach(i=>this.restore(r,i)),ir(n,Ra.STICKY_CONTENT).forEach(i=>this.restore(a,i)),ir(n,Ra.NAVBAR_TOGGLER).forEach(i=>this.restore(a,i))}}let Pl;function lb(e){return Pl||(Pl=new ub(e)),Pl}const sk=ub,db=oe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Le(t,"modal-body"),y.jsx(n,{ref:a,className:ie(e,t),...r})));db.displayName="ModalBody";const fh=oe.createContext({onHide(){}}),hh=oe.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:a,fullscreen:i,children:o,scrollable:s,...u},c)=>{e=Le(e,"modal");const l=`${e}-dialog`,d=typeof i=="string"?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return y.jsx("div",{...u,ref:c,className:ie(l,t,a&&`${e}-${a}`,r&&`${l}-centered`,s&&`${l}-scrollable`,i&&d),children:y.jsx("div",{className:ie(`${e}-content`,n),children:o})})});hh.displayName="ModalDialog";const fb=oe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Le(t,"modal-footer"),y.jsx(n,{ref:a,className:ie(e,t),...r})));fb.displayName="ModalFooter";const hb=oe.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:a,...i},o)=>{const s=h.useContext(fh),u=bt(()=>{s==null||s.onHide(),r==null||r()});return y.jsxs("div",{ref:o,...i,children:[a,n&&y.jsx(Lc,{"aria-label":e,variant:t,onClick:u})]})}),pb=oe.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...a},i)=>(e=Le(e,"modal-header"),y.jsx(hb,{ref:i,...a,className:ie(t,e),closeLabel:n,closeButton:r})));pb.displayName="ModalHeader";const ck=my("h4"),mb=oe.forwardRef(({className:e,bsPrefix:t,as:n=ck,...r},a)=>(t=Le(t,"modal-title"),y.jsx(n,{ref:a,className:ie(e,t),...r})));mb.displayName="ModalTitle";function uk(e){return y.jsx(Ya,{...e,timeout:null})}function lk(e){return y.jsx(Ya,{...e,timeout:null})}const gb=oe.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:a,children:i,dialogAs:o=hh,"data-bs-theme":s,"aria-labelledby":u,"aria-describedby":c,"aria-label":l,show:d=!1,animation:f=!0,backdrop:p=!0,keyboard:m=!0,onEscapeKeyDown:g,onShow:v,onHide:x,container:w,autoFocus:b=!0,enforceFocus:T=!0,restoreFocus:_=!0,restoreFocusOptions:C,onEntered:$,onExit:A,onExiting:D,onEnter:j,onEntering:E,onExited:F,backdropClassName:M,manager:R,...I},U)=>{const[N,q]=h.useState({}),[z,P]=h.useState(!1),W=h.useRef(!1),Z=h.useRef(!1),ne=h.useRef(null),[Y,Q]=Hs(),G=$n(U,Q),J=bt(x),re=Fc();e=Le(e,"modal");const L=h.useMemo(()=>({onHide:J}),[J]);function V(){return R||lb({isRTL:re})}function ae(xe){if(!li)return;const Xe=V().getScrollbarWidth()>0,Ct=xe.scrollHeight>ui(xe).documentElement.clientHeight;q({paddingRight:Xe&&!Ct?Wm():void 0,paddingLeft:!Xe&&Ct?Wm():void 0})}const k=bt(()=>{Y&&ae(Y.dialog)});Kf(()=>{Ed(window,"resize",k),ne.current==null||ne.current()});const ge=()=>{W.current=!0},pe=xe=>{W.current&&Y&&xe.target===Y.dialog&&(Z.current=!0),W.current=!1},de=()=>{P(!0),ne.current=dy(Y.dialog,()=>{P(!1)})},Ae=xe=>{xe.target===xe.currentTarget&&de()},Pe=xe=>{if(p==="static"){Ae(xe);return}if(Z.current||xe.target!==xe.currentTarget){Z.current=!1;return}x==null||x()},ft=xe=>{m?g==null||g(xe):(xe.preventDefault(),p==="static"&&de())},gt=(xe,Xe)=>{xe&&ae(xe),j==null||j(xe,Xe)},We=xe=>{ne.current==null||ne.current(),A==null||A(xe)},rt=(xe,Xe)=>{E==null||E(xe,Xe),Hf(window,"resize",k)},Ze=xe=>{xe&&(xe.style.display=""),F==null||F(xe),Ed(window,"resize",k)},xt=h.useCallback(xe=>y.jsx("div",{...xe,className:ie(`${e}-backdrop`,M,!f&&"show")}),[f,M,e]),_t={...n,...N};_t.display="block";const at=xe=>y.jsx("div",{role:"dialog",...xe,style:_t,className:ie(t,e,z&&`${e}-static`,!f&&"show"),onClick:p?Pe:void 0,onMouseUp:pe,"data-bs-theme":s,"aria-label":l,"aria-labelledby":u,"aria-describedby":c,children:y.jsx(o,{...I,onMouseDown:ge,className:r,contentClassName:a,children:i})});return y.jsx(fh.Provider,{value:L,children:y.jsx(cb,{show:d,ref:G,backdrop:p,container:w,keyboard:!0,autoFocus:b,enforceFocus:T,restoreFocus:_,restoreFocusOptions:C,onEscapeKeyDown:ft,onShow:v,onHide:x,onEnter:gt,onEntering:rt,onEntered:$,onExit:We,onExiting:D,onExited:Ze,manager:V(),transition:f?uk:void 0,backdropTransition:f?lk:void 0,renderBackdrop:xt,renderDialog:at})})});gb.displayName="Modal";const rn=Object.assign(gb,{Body:db,Header:pb,Title:mb,Footer:fb,Dialog:hh,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),dk=()=>{};function fk(e,t,{disabled:n,clickTrigger:r}={}){const a=t||dk;Ay(e,a,{disabled:n,clickTrigger:r});const i=bt(o=>{ob(o)&&a(o)});h.useEffect(()=>{if(n||e==null)return;const o=ui(Ms(e));let s=(o.defaultView||window).event;const u=or(o,"keyup",c=>{if(c===s){s=void 0;return}i(c)});return()=>{u()}},[e,n,i])}const vb=oe.forwardRef((e,t)=>{const{flip:n,offset:r,placement:a,containerPadding:i,popperConfig:o={},transition:s,runTransition:u}=e,[c,l]=Hs(),[d,f]=Hs(),p=$n(l,t),m=jd(e.container),g=jd(e.target),[v,x]=h.useState(!e.show),w=My(g,c,jy({placement:a,enableEvents:!!e.show,containerPadding:i||5,flip:n,offset:r,arrowElement:d,popperConfig:o}));e.show&&v&&x(!1);const b=(...E)=>{x(!0),e.onExited&&e.onExited(...E)},T=e.show||!v;if(fk(c,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!T)return null;const{onExit:_,onExiting:C,onEnter:$,onEntering:A,onEntered:D}=e;let j=e.children(Object.assign({},w.attributes.popper,{style:w.styles.popper,ref:p}),{popper:w,placement:a,show:!!e.show,arrowProps:Object.assign({},w.attributes.arrow,{style:w.styles.arrow,ref:f})});return j=Pd(s,u,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:j,onExit:_,onExiting:C,onExited:b,onEnter:$,onEntering:A,onEntered:D}),m?Er.createPortal(j,m):null});vb.displayName="Overlay";const yb=oe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Le(t,"popover-header"),y.jsx(n,{ref:a,className:ie(e,t),...r})));yb.displayName="PopoverHeader";const ph=oe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Le(t,"popover-body"),y.jsx(n,{ref:a,className:ie(e,t),...r})));ph.displayName="PopoverBody";function bb(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function xb(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const hk=oe.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:a,body:i,arrowProps:o,hasDoneInitialMeasure:s,popper:u,show:c,...l},d)=>{const f=Le(e,"popover"),p=Fc(),[m]=(t==null?void 0:t.split("-"))||[],g=bb(m,p);let v=r;return c&&!s&&(v={...r,...xb(u==null?void 0:u.strategy)}),y.jsxs("div",{ref:d,role:"tooltip",style:v,"x-placement":m,className:ie(n,f,m&&`bs-popover-${g}`),...l,children:[y.jsx("div",{className:"popover-arrow",...o}),i?y.jsx(ph,{children:a}):a]})}),_b=Object.assign(hk,{Header:yb,Body:ph,POPPER_OFFSET:[0,8]}),wb=oe.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:a,arrowProps:i,hasDoneInitialMeasure:o,popper:s,show:u,...c},l)=>{e=Le(e,"tooltip");const d=Fc(),[f]=(t==null?void 0:t.split("-"))||[],p=bb(f,d);let m=r;return u&&!o&&(m={...r,...xb(s==null?void 0:s.strategy)}),y.jsxs("div",{ref:l,style:m,role:"tooltip","x-placement":f,className:ie(n,e,`bs-tooltip-${p}`),...c,children:[y.jsx("div",{className:"tooltip-arrow",...i}),y.jsx("div",{className:`${e}-inner`,children:a})]})});wb.displayName="Tooltip";const mh=Object.assign(wb,{TOOLTIP_OFFSET:[0,6]});function pk(e){const t=h.useRef(null),n=Le(void 0,"popover"),r=Le(void 0,"tooltip"),a=h.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Dd(t.current,n))return _b.POPPER_OFFSET;if(Dd(t.current,r))return mh.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[a]]}function mk(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=a=>n(zs(a))),t.ref=r.__wrapped||(r.__wrapped=a=>r(zs(a)))}const Tb=oe.forwardRef(({children:e,transition:t=Ya,popperConfig:n={},rootClose:r=!1,placement:a="top",show:i=!1,...o},s)=>{const u=h.useRef({}),[c,l]=h.useState(null),[d,f]=pk(o.offset),p=$n(s,d),m=t===!0?Ya:t||void 0,g=bt(v=>{l(v),n==null||n.onFirstUpdate==null||n.onFirstUpdate(v)});return ao(()=>{c&&o.target&&(u.current.scheduleUpdate==null||u.current.scheduleUpdate())},[c,o.target]),h.useEffect(()=>{i||l(null)},[i]),y.jsx(vb,{...o,ref:p,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:g},transition:m,rootClose:r,placement:a,show:i,children:(v,{arrowProps:x,popper:w,show:b})=>{var T;mk(v,x);const _=w==null?void 0:w.placement,C=Object.assign(u.current,{state:w==null?void 0:w.state,scheduleUpdate:w==null?void 0:w.update,placement:_,outOfBoundaries:(w==null||(T=w.state)==null||(T=T.modifiersData.hide)==null?void 0:T.isReferenceHidden)||!1,strategy:n.strategy}),$=!!c;return typeof e=="function"?e({...v,placement:_,show:b,...!t&&b&&{className:"show"},popper:C,arrowProps:x,hasDoneInitialMeasure:$}):oe.cloneElement(e,{...v,placement:_,arrowProps:x,popper:C,hasDoneInitialMeasure:$,className:ie(e.props.className,!t&&b&&"show"),style:{...e.props.style,...v.style}})}})});Tb.displayName="Overlay";function gk(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Vm(e,t,n){const[r]=t,a=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];(!i||i!==a)&&!so(a,i)&&e(...t)}O.oneOf(["click","hover","focus"]);const Cb=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:a,defaultShow:i=!1,onToggle:o,delay:s,placement:u,flip:c=u&&u.indexOf("auto")!==-1,...l})=>{const d=h.useRef(null),f=$n(d,n.ref),p=a3(),m=h.useRef(""),[g,v]=oy(a,i,o),x=gk(s),{onFocus:w,onBlur:b,onClick:T}=typeof n!="function"?oe.Children.only(n).props:{},_=I=>{f(zs(I))},C=h.useCallback(()=>{if(p.clear(),m.current="show",!x.show){v(!0);return}p.set(()=>{m.current==="show"&&v(!0)},x.show)},[x.show,v,p]),$=h.useCallback(()=>{if(p.clear(),m.current="hide",!x.hide){v(!1);return}p.set(()=>{m.current==="hide"&&v(!1)},x.hide)},[x.hide,v,p]),A=h.useCallback((...I)=>{C(),w==null||w(...I)},[C,w]),D=h.useCallback((...I)=>{$(),b==null||b(...I)},[$,b]),j=h.useCallback((...I)=>{v(!g),T==null||T(...I)},[T,v,g]),E=h.useCallback((...I)=>{Vm(C,I,"fromElement")},[C]),F=h.useCallback((...I)=>{Vm($,I,"toElement")},[$]),M=e==null?[]:[].concat(e),R={ref:_};return M.indexOf("click")!==-1&&(R.onClick=j),M.indexOf("focus")!==-1&&(R.onFocus=A,R.onBlur=D),M.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&di(M.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.'),R.onMouseOver=E,R.onMouseOut=F),y.jsxs(y.Fragment,{children:[typeof n=="function"?n(R):h.cloneElement(n,R),y.jsx(Tb,{...l,show:g,onHide:$,flip:c,placement:u,popperConfig:r,target:d.current,children:t})]})};var kb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},qm=h.createContext&&h.createContext(kb),vk=["attr","size","title"];function yk(e,t){if(e==null)return{};var n=bk(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bk(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 Ks(){return Ks=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},Ks.apply(this,arguments)}function Ym(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Xs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ym(Object(n),!0).forEach(function(r){xk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ym(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xk(e,t,n){return t=_k(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _k(e){var t=wk(e,"string");return typeof t=="symbol"?t:t+""}function wk(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 Sb(e){return e&&e.map((t,n)=>h.createElement(t.tag,Xs({key:n},t.attr),Sb(t.child)))}function Ie(e){return t=>h.createElement(Tk,Ks({attr:Xs({},e.attr)},t),Sb(e.child))}function Tk(e){var t=n=>{var{attr:r,size:a,title:i}=e,o=yk(e,vk),s=a||n.size||"1em",u;return n.className&&(u=n.className),e.className&&(u=(u?u+" ":"")+e.className),h.createElement("svg",Ks({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:u,style:Xs(Xs({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&h.createElement("title",null,i),e.children)};return qm!==void 0?h.createElement(qm.Consumer,null,n=>t(n)):t(kb)}function Ck(e){return Ie({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 Yc(e){return Ie({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 kk(e){return Ie({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 Sk(e){return Ie({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 Ok(e){return Ie({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 Ek(e){return Ie({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 $k(e){return Ie({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 Mk(e){return Ie({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 Rk(e){return Ie({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 Ak(e){return Ie({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 jk(e){return Ie({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 Pk(e){return Ie({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 Dk(e){return Ie({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 Ik(e){return Ie({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 Nk(e){return Ie({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 Fk(e){return Ie({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 Lk(e){return Ie({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 Uk(e){return Ie({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 Bk(e){return Ie({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 Wk(e){return Ie({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 zk(e){return Ie({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 Hk(e){return Ie({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 Vk(e){return Ie({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 qk(e){return Ie({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 Yk(e){return Ie({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 Ob(e){return Ie({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 Gk(e){return Ie({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 Zk(e){return Ie({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 Kk(e){return Ie({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 bn=h.createContext({cookieDomain:"",axiosOptions:{},language:"",localizationContext:{},texts:{},ProjectIconComponent:{},chartColorPalette:void 0}),Eb=h.createContext({show:!1,text:"",showConfirm:e=>{},hideConfirm:()=>{}}),$b=h.createContext({isShown:!1,text:"",hidePrompt:()=>{},showPrompt:()=>{},resolveRef:{current:()=>{}},options:{input:"textarea",type:"text"},setOptions:()=>{}}),Mb=()=>{const{isShown:e,text:t,showPrompt:n,hidePrompt:r,resolveRef:a,setOptions:i}=h.useContext($b),o=h.useCallback(u=>{r(),a.current(u)},[r,a]),s=h.useCallback(async(u,c)=>(i(l=>({...l,...c})),n(u),new Promise(l=>{a.current=l})),[a,i,n]);return{isShown:e,text:t,prompt:s,onFinish:o}};let Xk={data:""},Jk=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Xk,Qk=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,e6=/\/\*[^]*?\*\/| +/g,Gm=/\n+/g,Sr=(e,t)=>{let n="",r="",a="";for(let i in e){let o=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+o+";":r+=i[1]=="f"?Sr(o,i):i+"{"+Sr(o,i[1]=="k"?"":t)+"}":typeof o=="object"?r+=Sr(o,t?t.replace(/([^,])+/g,s=>i.replace(/(^:.*)|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,s):s?s+" "+u:u)):i):o!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),a+=Sr.p?Sr.p(i,o):i+":"+o+";")}return n+(t&&a?t+"{"+a+"}":a)+r},tr={},Rb=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Rb(e[n]);return t}return e},t6=(e,t,n,r,a)=>{let i=Rb(e),o=tr[i]||(tr[i]=(u=>{let c=0,l=11;for(;c<u.length;)l=101*l+u.charCodeAt(c++)>>>0;return"go"+l})(i));if(!tr[o]){let u=i!==e?e:(c=>{let l,d,f=[{}];for(;l=Qk.exec(c.replace(e6,""));)l[4]?f.shift():l[3]?(d=l[3].replace(Gm," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][l[1]]=l[2].replace(Gm," ").trim();return f[0]})(e);tr[o]=Sr(a?{["@keyframes "+o]:u}:u,n?"":"."+o)}let s=n&&tr.g?tr.g:null;return n&&(tr.g=tr[o]),((u,c,l,d)=>{d?c.data=c.data.replace(d,u):c.data.indexOf(u)===-1&&(c.data=l?u+c.data:c.data+u)})(tr[o],t,r,s),o},n6=(e,t,n)=>e.reduce((r,a,i)=>{let o=t[i];if(o&&o.call){let s=o(n),u=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=u?"."+u:s&&typeof s=="object"?s.props?"":Sr(s,""):s===!1?"":s}return r+a+(o??"")},"");function Gc(e){let t=this||{},n=e.call?e(t.p):e;return t6(n.unshift?n.raw?n6(n,[].slice.call(arguments,1),t.p):n.reduce((r,a)=>Object.assign(r,a&&a.call?a(t.p):a),{}):n,Jk(t.target),t.g,t.o,t.k)}let Ab,Id,Nd;Gc.bind({g:1});let fr=Gc.bind({k:1});function r6(e,t,n,r){Sr.p=t,Ab=e,Id=n,Nd=r}function Wr(e,t){let n=this||{};return function(){let r=arguments;function a(i,o){let s=Object.assign({},i),u=s.className||a.className;n.p=Object.assign({theme:Id&&Id()},s),n.o=/ *go\d+/.test(u),s.className=Gc.apply(n,r)+(u?" "+u:"");let c=e;return e[0]&&(c=s.as||e,delete s.as),Nd&&c[0]&&Nd(s),Ab(c,s)}return a}}var a6=e=>typeof e=="function",Js=(e,t)=>a6(e)?e(t):e,i6=(()=>{let e=0;return()=>(++e).toString()})(),jb=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),o6=20,Rs=new Map,s6=1e3,Zm=e=>{if(Rs.has(e))return;let t=setTimeout(()=>{Rs.delete(e),ba({type:4,toastId:e})},s6);Rs.set(e,t)},c6=e=>{let t=Rs.get(e);t&&clearTimeout(t)},Fd=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,o6)};case 1:return t.toast.id&&c6(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?Fd(e,{type:1,toast:n}):Fd(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Zm(r):e.toasts.forEach(i=>{Zm(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+a}))}}},As=[],js={toasts:[],pausedAt:void 0},ba=e=>{js=Fd(js,e),As.forEach(t=>{t(js)})},u6={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},l6=(e={})=>{let[t,n]=h.useState(js);h.useEffect(()=>(As.push(n),()=>{let a=As.indexOf(n);a>-1&&As.splice(a,1)}),[t]);let r=t.toasts.map(a=>{var i,o;return{...e,...e[a.type],...a,duration:a.duration||((i=e[a.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||u6[a.type],style:{...e.style,...(o=e[a.type])==null?void 0:o.style,...a.style}}});return{...t,toasts:r}},d6=(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)||i6()}),Yo=e=>(t,n)=>{let r=d6(t,e,n);return ba({type:2,toast:r}),r.id},pn=(e,t)=>Yo("blank")(e,t);pn.error=Yo("error");pn.success=Yo("success");pn.loading=Yo("loading");pn.custom=Yo("custom");pn.dismiss=e=>{ba({type:3,toastId:e})};pn.remove=e=>ba({type:4,toastId:e});pn.promise=(e,t,n)=>{let r=pn.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(a=>(pn.success(Js(t.success,a),{id:r,...n,...n==null?void 0:n.success}),a)).catch(a=>{pn.error(Js(t.error,a),{id:r,...n,...n==null?void 0:n.error})}),e};var f6=(e,t)=>{ba({type:1,toast:{id:e,height:t}})},h6=()=>{ba({type:5,time:Date.now()})},p6=e=>{let{toasts:t,pausedAt:n}=l6(e);h.useEffect(()=>{if(n)return;let i=Date.now(),o=t.map(s=>{if(s.duration===1/0)return;let u=(s.duration||0)+s.pauseDuration-(i-s.createdAt);if(u<0){s.visible&&pn.dismiss(s.id);return}return setTimeout(()=>pn.dismiss(s.id),u)});return()=>{o.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=h.useCallback(()=>{n&&ba({type:6,time:Date.now()})},[n]),a=h.useCallback((i,o)=>{let{reverseOrder:s=!1,gutter:u=8,defaultPosition:c}=o||{},l=t.filter(p=>(p.position||c)===(i.position||c)&&p.height),d=l.findIndex(p=>p.id===i.id),f=l.filter((p,m)=>m<d&&p.visible).length;return l.filter(p=>p.visible).slice(...s?[f+1]:[0,f]).reduce((p,m)=>p+(m.height||0)+u,0)},[t]);return{toasts:t,handlers:{updateHeight:f6,startPause:h6,endPause:r,calculateOffset:a}}},m6=fr`
54
54
  from {
55
55
  transform: scale(0) rotate(45deg);
56
56
  opacity: 0;
@@ -221,59 +221,59 @@ to {
221
221
  color: inherit;
222
222
  flex: 1 1 auto;
223
223
  white-space: pre-line;
224
- `,D6=(e,t)=>{let n=e.includes("top")?1:-1,[r,a]=jb()?[R6,A6]:[$6(n),M6(n)];return{animation:t?`${fr(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${fr(a)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},I6=oe.memo(({toast:e,position:t,style:n,children:r})=>{let a=e.height?D6(e.position||t||"top-center",e.visible):{opacity:0},i=oe.createElement(E6,{toast:e}),o=oe.createElement(P6,{...e.ariaProps},Js(e.message,e));return oe.createElement(j6,{className:e.className,style:{...a,...n,...e.style}},typeof r=="function"?r({icon:i,message:o}):oe.createElement(oe.Fragment,null,i,o))});r6(oe.createElement);var N6=({id:e,className:t,style:n,onHeightUpdate:r,children:a})=>{let i=oe.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 oe.createElement("div",{ref:i,className:t,style:n},a)},F6=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},a=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:jb()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...a}},L6=Gc`
224
+ `,D6=(e,t)=>{let n=e.includes("top")?1:-1,[r,a]=jb()?[R6,A6]:[$6(n),M6(n)];return{animation:t?`${fr(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${fr(a)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},I6=oe.memo(({toast:e,position:t,style:n,children:r})=>{let a=e.height?D6(e.position||t||"top-center",e.visible):{opacity:0},i=oe.createElement(E6,{toast:e}),o=oe.createElement(P6,{...e.ariaProps},Js(e.message,e));return oe.createElement(j6,{className:e.className,style:{...a,...n,...e.style}},typeof r=="function"?r({icon:i,message:o}):oe.createElement(oe.Fragment,null,i,o))});r6(oe.createElement);var N6=({id:e,className:t,style:n,onHeightUpdate:r,children:a})=>{let i=oe.useCallback(o=>{if(o){let s=()=>{let u=o.getBoundingClientRect().height;r(e,u)};s(),new MutationObserver(s).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return oe.createElement("div",{ref:i,className:t,style:n},a)},F6=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},a=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:jb()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...a}},L6=Gc`
225
225
  z-index: 9999;
226
226
  > * {
227
227
  pointer-events: auto;
228
228
  }
229
- `,ps=16,U6=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:a,containerStyle:i,containerClassName:o})=>{let{toasts:s,handlers:c}=p6(n);return oe.createElement("div",{style:{position:"fixed",zIndex:9999,top:ps,left:ps,right:ps,bottom:ps,pointerEvents:"none",...i},className:o,onMouseEnter:c.startPause,onMouseLeave:c.endPause},s.map(u=>{let l=u.position||t,d=c.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),f=F6(l,d);return oe.createElement(N6,{id:u.id,key:u.id,onHeightUpdate:c.updateHeight,className:u.visible?L6:"",style:f},u.type==="custom"?Js(u.message,u):a?a(u):oe.createElement(I6,{toast:u,position:l}))}))},Aa=pn;const Zc=h.createContext({isLoading:!1,startLoading:e=>{},stopLoading:e=>{}});var Ld;(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"})(Ld||(Ld={}));const Pb=Ld,B6=h.createContext({user:null,userLoginState:{state:Pb.LOGGED_OUT,user:null},loginUser:()=>Promise.resolve(!0),logoutUser:()=>{}});function Db(e,t){return function(){return e.apply(t,arguments)}}const{toString:W6}=Object.prototype,{getPrototypeOf:gh}=Object,Kc=(e=>t=>{const n=W6.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ln=e=>(e=e.toLowerCase(),t=>Kc(t)===e),Xc=e=>t=>typeof t===e,{isArray:fi}=Array,uo=Xc("undefined");function z6(e){return e!==null&&!uo(e)&&e.constructor!==null&&!uo(e.constructor)&&mn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ib=Ln("ArrayBuffer");function H6(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ib(e.buffer),t}const V6=Xc("string"),mn=Xc("function"),Nb=Xc("number"),Jc=e=>e!==null&&typeof e=="object",q6=e=>e===!0||e===!1,Ps=e=>{if(Kc(e)!=="object")return!1;const t=gh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Y6=Ln("Date"),G6=Ln("File"),Z6=Ln("Blob"),K6=Ln("FileList"),X6=e=>Jc(e)&&mn(e.pipe),J6=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mn(e.append)&&((t=Kc(e))==="formdata"||t==="object"&&mn(e.toString)&&e.toString()==="[object FormData]"))},Q6=Ln("URLSearchParams"),[e5,t5,n5,r5]=["ReadableStream","Request","Response","Headers"].map(Ln),a5=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Go(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),fi(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(r=0;r<o;r++)s=i[r],t.call(null,e[s],s,e)}}function Fb(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const Zr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Lb=e=>!uo(e)&&e!==Zr;function Ud(){const{caseless:e}=Lb(this)&&this||{},t={},n=(r,a)=>{const i=e&&Fb(t,a)||a;Ps(t[i])&&Ps(r)?t[i]=Ud(t[i],r):Ps(r)?t[i]=Ud({},r):fi(r)?t[i]=r.slice():t[i]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&Go(arguments[r],n);return t}const i5=(e,t,n,{allOwnKeys:r}={})=>(Go(t,(a,i)=>{n&&mn(a)?e[i]=Db(a,n):e[i]=a},{allOwnKeys:r}),e),o5=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),s5=(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)},c5=(e,t,n,r)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&gh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},u5=(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},l5=e=>{if(!e)return null;if(fi(e))return e;let t=e.length;if(!Nb(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},d5=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&gh(Uint8Array)),f5=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},h5=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},p5=Ln("HTMLFormElement"),m5=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Km=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),g5=Ln("RegExp"),Ub=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Go(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},v5=e=>{Ub(e,(t,n)=>{if(mn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(mn(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+"'")})}})},y5=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return fi(e)?r(e):r(String(e).split(t)),n},b5=()=>{},x5=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Dl="abcdefghijklmnopqrstuvwxyz",Xm="0123456789",Bb={DIGIT:Xm,ALPHA:Dl,ALPHA_DIGIT:Dl+Dl.toUpperCase()+Xm},_5=(e=16,t=Bb.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function w5(e){return!!(e&&mn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const T5=e=>{const t=new Array(10),n=(r,a)=>{if(Jc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const i=fi(r)?[]:{};return Go(r,(o,s)=>{const c=n(o,a+1);!uo(c)&&(i[s]=c)}),t[a]=void 0,i}}return r};return n(e,0)},C5=Ln("AsyncFunction"),k5=e=>e&&(Jc(e)||mn(e))&&mn(e.then)&&mn(e.catch),Wb=((e,t)=>e?setImmediate:t?((n,r)=>(Zr.addEventListener("message",({source:a,data:i})=>{a===Zr&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),Zr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",mn(Zr.postMessage)),S5=typeof queueMicrotask<"u"?queueMicrotask.bind(Zr):typeof process<"u"&&process.nextTick||Wb,B={isArray:fi,isArrayBuffer:Ib,isBuffer:z6,isFormData:J6,isArrayBufferView:H6,isString:V6,isNumber:Nb,isBoolean:q6,isObject:Jc,isPlainObject:Ps,isReadableStream:e5,isRequest:t5,isResponse:n5,isHeaders:r5,isUndefined:uo,isDate:Y6,isFile:G6,isBlob:Z6,isRegExp:g5,isFunction:mn,isStream:X6,isURLSearchParams:Q6,isTypedArray:d5,isFileList:K6,forEach:Go,merge:Ud,extend:i5,trim:a5,stripBOM:o5,inherits:s5,toFlatObject:c5,kindOf:Kc,kindOfTest:Ln,endsWith:u5,toArray:l5,forEachEntry:f5,matchAll:h5,isHTMLForm:p5,hasOwnProperty:Km,hasOwnProp:Km,reduceDescriptors:Ub,freezeMethods:v5,toObjectSet:y5,toCamelCase:m5,noop:b5,toFiniteNumber:x5,findKey:Fb,global:Zr,isContextDefined:Lb,ALPHABET:Bb,generateString:_5,isSpecCompliantForm:w5,toJSONObject:T5,isAsyncFn:C5,isThenable:k5,setImmediate:Wb,asap:S5};function Oe(e,t,n,r,a){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),a&&(this.response=a)}B.inherits(Oe,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:B.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const zb=Oe.prototype,Hb={};["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=>{Hb[e]={value:e}});Object.defineProperties(Oe,Hb);Object.defineProperty(zb,"isAxiosError",{value:!0});Oe.from=(e,t,n,r,a,i)=>{const o=Object.create(zb);return B.toFlatObject(e,o,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),Oe.call(o,e.message,t,n,r,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const O5=null;function Bd(e){return B.isPlainObject(e)||B.isArray(e)}function Vb(e){return B.endsWith(e,"[]")?e.slice(0,-2):e}function Jm(e,t,n){return e?e.concat(t).map(function(a,i){return a=Vb(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function E5(e){return B.isArray(e)&&!e.some(Bd)}const $5=B.toFlatObject(B,{},null,function(t){return/^is[A-Z]/.test(t)});function Qc(e,t,n){if(!B.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=B.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,m){return!B.isUndefined(m[v])});const r=n.metaTokens,a=n.visitor||l,i=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&B.isSpecCompliantForm(t);if(!B.isFunction(a))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(B.isDate(g))return g.toISOString();if(!c&&B.isBlob(g))throw new Oe("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(g)||B.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function l(g,v,m){let x=g;if(g&&!m&&typeof g=="object"){if(B.endsWith(v,"{}"))v=r?v:v.slice(0,-2),g=JSON.stringify(g);else if(B.isArray(g)&&E5(g)||(B.isFileList(g)||B.endsWith(v,"[]"))&&(x=B.toArray(g)))return v=Vb(v),x.forEach(function(b,T){!(B.isUndefined(b)||b===null)&&t.append(o===!0?Jm([v],T,i):o===null?v:v+"[]",u(b))}),!1}return Bd(g)?!0:(t.append(Jm(m,v,i),u(g)),!1)}const d=[],f=Object.assign($5,{defaultVisitor:l,convertValue:u,isVisitable:Bd});function p(g,v){if(!B.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(g),B.forEach(g,function(x,w){(!(B.isUndefined(x)||x===null)&&a.call(t,x,B.isString(w)?w.trim():w,v,f))===!0&&p(x,v?v.concat(w):[w])}),d.pop()}}if(!B.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Qm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function vh(e,t){this._pairs=[],e&&Qc(e,this,t)}const qb=vh.prototype;qb.append=function(t,n){this._pairs.push([t,n])};qb.toString=function(t){const n=t?function(r){return t.call(this,r,Qm)}:Qm;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function M5(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Yb(e,t,n){if(!t)return e;const r=n&&n.encode||M5,a=n&&n.serialize;let i;if(a?i=a(t,n):i=B.isURLSearchParams(t)?t.toString():new vh(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class eg{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){B.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Gb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},R5=typeof URLSearchParams<"u"?URLSearchParams:vh,A5=typeof FormData<"u"?FormData:null,j5=typeof Blob<"u"?Blob:null,P5={isBrowser:!0,classes:{URLSearchParams:R5,FormData:A5,Blob:j5},protocols:["http","https","file","blob","url","data"]},yh=typeof window<"u"&&typeof document<"u",D5=(e=>yh&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),I5=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",N5=yh&&window.location.href||"http://localhost",F5=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:yh,hasStandardBrowserEnv:D5,hasStandardBrowserWebWorkerEnv:I5,origin:N5},Symbol.toStringTag,{value:"Module"})),Pn={...F5,...P5};function L5(e,t){return Qc(e,new Pn.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return Pn.isNode&&B.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function U5(e){return B.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function B5(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],t[i]=e[i];return t}function Zb(e){function t(n,r,a,i){let o=n[i++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),c=i>=n.length;return o=!o&&B.isArray(a)?a.length:o,c?(B.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):((!a[o]||!B.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&B.isArray(a[o])&&(a[o]=B5(a[o])),!s)}if(B.isFormData(e)&&B.isFunction(e.entries)){const n={};return B.forEachEntry(e,(r,a)=>{t(U5(r),a,n,0)}),n}return null}function W5(e,t,n){if(B.isString(e))try{return(t||JSON.parse)(e),B.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Zo={transitional:Gb,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=B.isObject(t);if(i&&B.isHTMLForm(t)&&(t=new FormData(t)),B.isFormData(t))return a?JSON.stringify(Zb(t)):t;if(B.isArrayBuffer(t)||B.isBuffer(t)||B.isStream(t)||B.isFile(t)||B.isBlob(t)||B.isReadableStream(t))return t;if(B.isArrayBufferView(t))return t.buffer;if(B.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return L5(t,this.formSerializer).toString();if((s=B.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Qc(s?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),W5(t)):t}],transformResponse:[function(t){const n=this.transitional||Zo.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(B.isResponse(t)||B.isReadableStream(t))return t;if(t&&B.isString(t)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Oe.from(s,Oe.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:Pn.classes.FormData,Blob:Pn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],e=>{Zo.headers[e]={}});const z5=B.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"]),H5=e=>{const t={};let n,r,a;return e&&e.split(`
230
- `).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&z5[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},tg=Symbol("internals");function ji(e){return e&&String(e).trim().toLowerCase()}function Ds(e){return e===!1||e==null?e:B.isArray(e)?e.map(Ds):String(e)}function V5(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 q5=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Il(e,t,n,r,a){if(B.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!B.isString(t)){if(B.isString(r))return t.indexOf(r)!==-1;if(B.isRegExp(r))return r.test(t)}}function Y5(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function G5(e,t){const n=B.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}class sn{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(s,c,u){const l=ji(c);if(!l)throw new Error("header name must be a non-empty string");const d=B.findKey(a,l);(!d||a[d]===void 0||u===!0||u===void 0&&a[d]!==!1)&&(a[d||c]=Ds(s))}const o=(s,c)=>B.forEach(s,(u,l)=>i(u,l,c));if(B.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(B.isString(t)&&(t=t.trim())&&!q5(t))o(H5(t),n);else if(B.isHeaders(t))for(const[s,c]of t.entries())i(c,s,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=ji(t),t){const r=B.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return V5(a);if(B.isFunction(n))return n.call(this,a,r);if(B.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ji(t),t){const r=B.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Il(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=ji(o),o){const s=B.findKey(r,o);s&&(!n||Il(r,r[s],s,n))&&(delete r[s],a=!0)}}return B.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||Il(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return B.forEach(this,(a,i)=>{const o=B.findKey(r,i);if(o){n[o]=Ds(a),delete n[i];return}const s=t?Y5(i):String(i).trim();s!==i&&delete n[i],n[s]=Ds(a),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return B.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&B.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(a=>r.set(a)),r}static accessor(t){const r=(this[tg]=this[tg]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=ji(o);r[s]||(G5(a,o),r[s]=!0)}return B.isArray(t)?t.forEach(i):i(t),this}}sn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);B.reduceDescriptors(sn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});B.freezeMethods(sn);function Nl(e,t){const n=this||Zo,r=t||n,a=sn.from(r.headers);let i=r.data;return B.forEach(e,function(s){i=s.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function Kb(e){return!!(e&&e.__CANCEL__)}function hi(e,t,n){Oe.call(this,e??"canceled",Oe.ERR_CANCELED,t,n),this.name="CanceledError"}B.inherits(hi,Oe,{__CANCEL__:!0});function Xb(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Oe("Request failed with status code "+n.status,[Oe.ERR_BAD_REQUEST,Oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Z5(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function K5(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),l=r[i];o||(o=u),n[a]=c,r[a]=u;let d=i,f=0;for(;d!==a;)f+=n[d++],d=d%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o<t)return;const p=l&&u-l;return p?Math.round(f*1e3/p):void 0}}function X5(e,t){let n=0,r=1e3/t,a,i;const o=(u,l=Date.now())=>{n=l,a=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const l=Date.now(),d=l-n;d>=r?o(u,l):(a=u,i||(i=setTimeout(()=>{i=null,o(a)},r-d)))},()=>a&&o(a)]}const Qs=(e,t,n=3)=>{let r=0;const a=K5(50,250);return X5(i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,c=o-r,u=a(c),l=o<=s;r=o;const d={loaded:o,total:s,progress:s?o/s:void 0,bytes:c,rate:u||void 0,estimated:u&&s&&l?(s-o)/u:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},ng=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},rg=e=>(...t)=>B.asap(()=>e(...t)),J5=Pn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let o=i;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=a(window.location.href),function(o){const s=B.isString(o)?a(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),Q5=Pn.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const o=[e+"="+encodeURIComponent(t)];B.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),B.isString(r)&&o.push("path="+r),B.isString(a)&&o.push("domain="+a),i===!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 eS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Jb(e,t){return e&&!eS(t)?tS(e,t):t}const ag=e=>e instanceof sn?{...e}:e;function ua(e,t){t=t||{};const n={};function r(u,l,d){return B.isPlainObject(u)&&B.isPlainObject(l)?B.merge.call({caseless:d},u,l):B.isPlainObject(l)?B.merge({},l):B.isArray(l)?l.slice():l}function a(u,l,d){if(B.isUndefined(l)){if(!B.isUndefined(u))return r(void 0,u,d)}else return r(u,l,d)}function i(u,l){if(!B.isUndefined(l))return r(void 0,l)}function o(u,l){if(B.isUndefined(l)){if(!B.isUndefined(u))return r(void 0,u)}else return r(void 0,l)}function s(u,l,d){if(d in t)return r(u,l);if(d in e)return r(void 0,u)}const c={url:i,method:i,data:i,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:(u,l)=>a(ag(u),ag(l),!0)};return B.forEach(Object.keys(Object.assign({},e,t)),function(l){const d=c[l]||a,f=d(e[l],t[l],l);B.isUndefined(f)&&d!==s||(n[l]=f)}),n}const Qb=e=>{const t=ua({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:s}=t;t.headers=o=sn.from(o),t.url=Yb(Jb(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(B.isFormData(n)){if(Pn.hasStandardBrowserEnv||Pn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[u,...l]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...l].join("; "))}}if(Pn.hasStandardBrowserEnv&&(r&&B.isFunction(r)&&(r=r(t)),r||r!==!1&&J5(t.url))){const u=a&&i&&Q5.read(i);u&&o.set(a,u)}return t},nS=typeof XMLHttpRequest<"u",rS=nS&&function(e){return new Promise(function(n,r){const a=Qb(e);let i=a.data;const o=sn.from(a.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:u}=a,l,d,f,p,g;function v(){p&&p(),g&&g(),a.cancelToken&&a.cancelToken.unsubscribe(l),a.signal&&a.signal.removeEventListener("abort",l)}let m=new XMLHttpRequest;m.open(a.method.toUpperCase(),a.url,!0),m.timeout=a.timeout;function x(){if(!m)return;const b=sn.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),_={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:b,config:e,request:m};Xb(function($){n($),v()},function($){r($),v()},_),m=null}"onloadend"in m?m.onloadend=x:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(x)},m.onabort=function(){m&&(r(new Oe("Request aborted",Oe.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new Oe("Network Error",Oe.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let T=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const _=a.transitional||Gb;a.timeoutErrorMessage&&(T=a.timeoutErrorMessage),r(new Oe(T,_.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,m)),m=null},i===void 0&&o.setContentType(null),"setRequestHeader"in m&&B.forEach(o.toJSON(),function(T,_){m.setRequestHeader(_,T)}),B.isUndefined(a.withCredentials)||(m.withCredentials=!!a.withCredentials),s&&s!=="json"&&(m.responseType=a.responseType),u&&([f,g]=Qs(u,!0),m.addEventListener("progress",f)),c&&m.upload&&([d,p]=Qs(c),m.upload.addEventListener("progress",d),m.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(l=b=>{m&&(r(!b||b.type?new hi(null,e,m):b),m.abort(),m=null)},a.cancelToken&&a.cancelToken.subscribe(l),a.signal&&(a.signal.aborted?l():a.signal.addEventListener("abort",l)));const w=Z5(a.url);if(w&&Pn.protocols.indexOf(w)===-1){r(new Oe("Unsupported protocol "+w+":",Oe.ERR_BAD_REQUEST,e));return}m.send(i||null)})},aS=(e,t)=>{let n=new AbortController,r;const a=function(c){if(!r){r=!0,o();const u=c instanceof Error?c:this.reason;n.abort(u instanceof Oe?u:new hi(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{a(new Oe(`timeout ${t} of ms exceeded`,Oe.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",a):c.unsubscribe(a))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",a));const{signal:s}=n;return s.unsubscribe=o,[s,()=>{i&&clearTimeout(i),i=null}]},iS=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},oS=async function*(e,t,n){for await(const r of e)yield*iS(ArrayBuffer.isView(r)?r:await n(String(r)),t)},ig=(e,t,n,r,a)=>{const i=oS(e,t,a);let o=0,s,c=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:l,value:d}=await i.next();if(l){c(),u.close();return}let f=d.byteLength;if(n){let p=o+=f;n(p)}u.enqueue(new Uint8Array(d))}catch(l){throw c(l),l}},cancel(u){return c(u),i.return()}},{highWaterMark:2})},eu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",e1=eu&&typeof ReadableStream=="function",Wd=eu&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),t1=(e,...t)=>{try{return!!e(...t)}catch{return!1}},sS=e1&&t1(()=>{let e=!1;const t=new Request(Pn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),og=64*1024,zd=e1&&t1(()=>B.isReadableStream(new Response("").body)),ec={stream:zd&&(e=>e.body)};eu&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ec[t]&&(ec[t]=B.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Oe(`Response type '${t}' is not supported`,Oe.ERR_NOT_SUPPORT,r)})})})(new Response);const cS=async e=>{if(e==null)return 0;if(B.isBlob(e))return e.size;if(B.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(B.isArrayBufferView(e)||B.isArrayBuffer(e))return e.byteLength;if(B.isURLSearchParams(e)&&(e=e+""),B.isString(e))return(await Wd(e)).byteLength},uS=async(e,t)=>{const n=B.toFiniteNumber(e.getContentLength());return n??cS(t)},lS=eu&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:i,timeout:o,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:f}=Qb(e);u=u?(u+"").toLowerCase():"text";let[p,g]=a||i||o?aS([a,i],o):[],v,m;const x=()=>{!v&&setTimeout(()=>{p&&p.unsubscribe()}),v=!0};let w;try{if(c&&sS&&n!=="get"&&n!=="head"&&(w=await uS(l,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),$;if(B.isFormData(r)&&($=C.headers.get("content-type"))&&l.setContentType($),C.body){const[A,D]=ng(w,Qs(rg(c)));r=ig(C.body,og,A,D,Wd)}}B.isString(d)||(d=d?"include":"omit"),m=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:d});let b=await fetch(m);const T=zd&&(u==="stream"||u==="response");if(zd&&(s||T)){const C={};["status","statusText","headers"].forEach(j=>{C[j]=b[j]});const $=B.toFiniteNumber(b.headers.get("content-length")),[A,D]=s&&ng($,Qs(rg(s),!0))||[];b=new Response(ig(b.body,og,A,()=>{D&&D(),T&&x()},Wd),C)}u=u||"text";let _=await ec[B.findKey(ec,u)||"text"](b,e);return!T&&x(),g&&g(),await new Promise((C,$)=>{Xb(C,$,{data:_,headers:sn.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:m})})}catch(b){throw x(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new Oe("Network Error",Oe.ERR_NETWORK,e,m),{cause:b.cause||b}):Oe.from(b,b&&b.code,e,m)}}),Hd={http:O5,xhr:rS,fetch:lS};B.forEach(Hd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const sg=e=>`- ${e}`,dS=e=>B.isFunction(e)||e===null||e===!1,n1={getAdapter:e=>{e=B.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i<t;i++){n=e[i];let o;if(r=n,!dS(n)&&(r=Hd[(o=String(n)).toLowerCase()],r===void 0))throw new Oe(`Unknown adapter '${o}'`);if(r)break;a[o||"#"+i]=r}if(!r){const i=Object.entries(a).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since :
229
+ `,ps=16,U6=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:a,containerStyle:i,containerClassName:o})=>{let{toasts:s,handlers:u}=p6(n);return oe.createElement("div",{style:{position:"fixed",zIndex:9999,top:ps,left:ps,right:ps,bottom:ps,pointerEvents:"none",...i},className:o,onMouseEnter:u.startPause,onMouseLeave:u.endPause},s.map(c=>{let l=c.position||t,d=u.calculateOffset(c,{reverseOrder:e,gutter:r,defaultPosition:t}),f=F6(l,d);return oe.createElement(N6,{id:c.id,key:c.id,onHeightUpdate:u.updateHeight,className:c.visible?L6:"",style:f},c.type==="custom"?Js(c.message,c):a?a(c):oe.createElement(I6,{toast:c,position:l}))}))},Aa=pn;const Zc=h.createContext({isLoading:!1,startLoading:e=>{},stopLoading:e=>{}});var Ld;(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"})(Ld||(Ld={}));const Pb=Ld,B6=h.createContext({user:null,userLoginState:{state:Pb.LOGGED_OUT,user:null},loginUser:()=>Promise.resolve(!0),logoutUser:()=>{}});function Db(e,t){return function(){return e.apply(t,arguments)}}const{toString:W6}=Object.prototype,{getPrototypeOf:gh}=Object,Kc=(e=>t=>{const n=W6.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ln=e=>(e=e.toLowerCase(),t=>Kc(t)===e),Xc=e=>t=>typeof t===e,{isArray:fi}=Array,uo=Xc("undefined");function z6(e){return e!==null&&!uo(e)&&e.constructor!==null&&!uo(e.constructor)&&mn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ib=Ln("ArrayBuffer");function H6(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ib(e.buffer),t}const V6=Xc("string"),mn=Xc("function"),Nb=Xc("number"),Jc=e=>e!==null&&typeof e=="object",q6=e=>e===!0||e===!1,Ps=e=>{if(Kc(e)!=="object")return!1;const t=gh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Y6=Ln("Date"),G6=Ln("File"),Z6=Ln("Blob"),K6=Ln("FileList"),X6=e=>Jc(e)&&mn(e.pipe),J6=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mn(e.append)&&((t=Kc(e))==="formdata"||t==="object"&&mn(e.toString)&&e.toString()==="[object FormData]"))},Q6=Ln("URLSearchParams"),[e5,t5,n5,r5]=["ReadableStream","Request","Response","Headers"].map(Ln),a5=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Go(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),fi(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(r=0;r<o;r++)s=i[r],t.call(null,e[s],s,e)}}function Fb(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const Zr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Lb=e=>!uo(e)&&e!==Zr;function Ud(){const{caseless:e}=Lb(this)&&this||{},t={},n=(r,a)=>{const i=e&&Fb(t,a)||a;Ps(t[i])&&Ps(r)?t[i]=Ud(t[i],r):Ps(r)?t[i]=Ud({},r):fi(r)?t[i]=r.slice():t[i]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&Go(arguments[r],n);return t}const i5=(e,t,n,{allOwnKeys:r}={})=>(Go(t,(a,i)=>{n&&mn(a)?e[i]=Db(a,n):e[i]=a},{allOwnKeys:r}),e),o5=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),s5=(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)},c5=(e,t,n,r)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&gh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},u5=(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},l5=e=>{if(!e)return null;if(fi(e))return e;let t=e.length;if(!Nb(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},d5=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&gh(Uint8Array)),f5=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},h5=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},p5=Ln("HTMLFormElement"),m5=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Km=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),g5=Ln("RegExp"),Ub=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Go(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},v5=e=>{Ub(e,(t,n)=>{if(mn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(mn(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+"'")})}})},y5=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return fi(e)?r(e):r(String(e).split(t)),n},b5=()=>{},x5=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Dl="abcdefghijklmnopqrstuvwxyz",Xm="0123456789",Bb={DIGIT:Xm,ALPHA:Dl,ALPHA_DIGIT:Dl+Dl.toUpperCase()+Xm},_5=(e=16,t=Bb.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function w5(e){return!!(e&&mn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const T5=e=>{const t=new Array(10),n=(r,a)=>{if(Jc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const i=fi(r)?[]:{};return Go(r,(o,s)=>{const u=n(o,a+1);!uo(u)&&(i[s]=u)}),t[a]=void 0,i}}return r};return n(e,0)},C5=Ln("AsyncFunction"),k5=e=>e&&(Jc(e)||mn(e))&&mn(e.then)&&mn(e.catch),Wb=((e,t)=>e?setImmediate:t?((n,r)=>(Zr.addEventListener("message",({source:a,data:i})=>{a===Zr&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),Zr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",mn(Zr.postMessage)),S5=typeof queueMicrotask<"u"?queueMicrotask.bind(Zr):typeof process<"u"&&process.nextTick||Wb,B={isArray:fi,isArrayBuffer:Ib,isBuffer:z6,isFormData:J6,isArrayBufferView:H6,isString:V6,isNumber:Nb,isBoolean:q6,isObject:Jc,isPlainObject:Ps,isReadableStream:e5,isRequest:t5,isResponse:n5,isHeaders:r5,isUndefined:uo,isDate:Y6,isFile:G6,isBlob:Z6,isRegExp:g5,isFunction:mn,isStream:X6,isURLSearchParams:Q6,isTypedArray:d5,isFileList:K6,forEach:Go,merge:Ud,extend:i5,trim:a5,stripBOM:o5,inherits:s5,toFlatObject:c5,kindOf:Kc,kindOfTest:Ln,endsWith:u5,toArray:l5,forEachEntry:f5,matchAll:h5,isHTMLForm:p5,hasOwnProperty:Km,hasOwnProp:Km,reduceDescriptors:Ub,freezeMethods:v5,toObjectSet:y5,toCamelCase:m5,noop:b5,toFiniteNumber:x5,findKey:Fb,global:Zr,isContextDefined:Lb,ALPHABET:Bb,generateString:_5,isSpecCompliantForm:w5,toJSONObject:T5,isAsyncFn:C5,isThenable:k5,setImmediate:Wb,asap:S5};function Oe(e,t,n,r,a){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),a&&(this.response=a)}B.inherits(Oe,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:B.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const zb=Oe.prototype,Hb={};["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=>{Hb[e]={value:e}});Object.defineProperties(Oe,Hb);Object.defineProperty(zb,"isAxiosError",{value:!0});Oe.from=(e,t,n,r,a,i)=>{const o=Object.create(zb);return B.toFlatObject(e,o,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),Oe.call(o,e.message,t,n,r,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const O5=null;function Bd(e){return B.isPlainObject(e)||B.isArray(e)}function Vb(e){return B.endsWith(e,"[]")?e.slice(0,-2):e}function Jm(e,t,n){return e?e.concat(t).map(function(a,i){return a=Vb(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function E5(e){return B.isArray(e)&&!e.some(Bd)}const $5=B.toFlatObject(B,{},null,function(t){return/^is[A-Z]/.test(t)});function Qc(e,t,n){if(!B.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=B.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!B.isUndefined(v[g])});const r=n.metaTokens,a=n.visitor||l,i=n.dots,o=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&B.isSpecCompliantForm(t);if(!B.isFunction(a))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(B.isDate(m))return m.toISOString();if(!u&&B.isBlob(m))throw new Oe("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(m)||B.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function l(m,g,v){let x=m;if(m&&!v&&typeof m=="object"){if(B.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(B.isArray(m)&&E5(m)||(B.isFileList(m)||B.endsWith(g,"[]"))&&(x=B.toArray(m)))return g=Vb(g),x.forEach(function(b,T){!(B.isUndefined(b)||b===null)&&t.append(o===!0?Jm([g],T,i):o===null?g:g+"[]",c(b))}),!1}return Bd(m)?!0:(t.append(Jm(v,g,i),c(m)),!1)}const d=[],f=Object.assign($5,{defaultVisitor:l,convertValue:c,isVisitable:Bd});function p(m,g){if(!B.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(m),B.forEach(m,function(x,w){(!(B.isUndefined(x)||x===null)&&a.call(t,x,B.isString(w)?w.trim():w,g,f))===!0&&p(x,g?g.concat(w):[w])}),d.pop()}}if(!B.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Qm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function vh(e,t){this._pairs=[],e&&Qc(e,this,t)}const qb=vh.prototype;qb.append=function(t,n){this._pairs.push([t,n])};qb.toString=function(t){const n=t?function(r){return t.call(this,r,Qm)}:Qm;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function M5(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Yb(e,t,n){if(!t)return e;const r=n&&n.encode||M5,a=n&&n.serialize;let i;if(a?i=a(t,n):i=B.isURLSearchParams(t)?t.toString():new vh(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class eg{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){B.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Gb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},R5=typeof URLSearchParams<"u"?URLSearchParams:vh,A5=typeof FormData<"u"?FormData:null,j5=typeof Blob<"u"?Blob:null,P5={isBrowser:!0,classes:{URLSearchParams:R5,FormData:A5,Blob:j5},protocols:["http","https","file","blob","url","data"]},yh=typeof window<"u"&&typeof document<"u",D5=(e=>yh&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),I5=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",N5=yh&&window.location.href||"http://localhost",F5=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:yh,hasStandardBrowserEnv:D5,hasStandardBrowserWebWorkerEnv:I5,origin:N5},Symbol.toStringTag,{value:"Module"})),Pn={...F5,...P5};function L5(e,t){return Qc(e,new Pn.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return Pn.isNode&&B.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function U5(e){return B.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function B5(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],t[i]=e[i];return t}function Zb(e){function t(n,r,a,i){let o=n[i++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),u=i>=n.length;return o=!o&&B.isArray(a)?a.length:o,u?(B.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):((!a[o]||!B.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&B.isArray(a[o])&&(a[o]=B5(a[o])),!s)}if(B.isFormData(e)&&B.isFunction(e.entries)){const n={};return B.forEachEntry(e,(r,a)=>{t(U5(r),a,n,0)}),n}return null}function W5(e,t,n){if(B.isString(e))try{return(t||JSON.parse)(e),B.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Zo={transitional:Gb,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=B.isObject(t);if(i&&B.isHTMLForm(t)&&(t=new FormData(t)),B.isFormData(t))return a?JSON.stringify(Zb(t)):t;if(B.isArrayBuffer(t)||B.isBuffer(t)||B.isStream(t)||B.isFile(t)||B.isBlob(t)||B.isReadableStream(t))return t;if(B.isArrayBufferView(t))return t.buffer;if(B.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return L5(t,this.formSerializer).toString();if((s=B.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Qc(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),W5(t)):t}],transformResponse:[function(t){const n=this.transitional||Zo.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(B.isResponse(t)||B.isReadableStream(t))return t;if(t&&B.isString(t)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Oe.from(s,Oe.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:Pn.classes.FormData,Blob:Pn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],e=>{Zo.headers[e]={}});const z5=B.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"]),H5=e=>{const t={};let n,r,a;return e&&e.split(`
230
+ `).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&z5[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},tg=Symbol("internals");function ji(e){return e&&String(e).trim().toLowerCase()}function Ds(e){return e===!1||e==null?e:B.isArray(e)?e.map(Ds):String(e)}function V5(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 q5=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Il(e,t,n,r,a){if(B.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!B.isString(t)){if(B.isString(r))return t.indexOf(r)!==-1;if(B.isRegExp(r))return r.test(t)}}function Y5(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function G5(e,t){const n=B.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}class sn{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(s,u,c){const l=ji(u);if(!l)throw new Error("header name must be a non-empty string");const d=B.findKey(a,l);(!d||a[d]===void 0||c===!0||c===void 0&&a[d]!==!1)&&(a[d||u]=Ds(s))}const o=(s,u)=>B.forEach(s,(c,l)=>i(c,l,u));if(B.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(B.isString(t)&&(t=t.trim())&&!q5(t))o(H5(t),n);else if(B.isHeaders(t))for(const[s,u]of t.entries())i(u,s,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=ji(t),t){const r=B.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return V5(a);if(B.isFunction(n))return n.call(this,a,r);if(B.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ji(t),t){const r=B.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Il(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=ji(o),o){const s=B.findKey(r,o);s&&(!n||Il(r,r[s],s,n))&&(delete r[s],a=!0)}}return B.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||Il(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return B.forEach(this,(a,i)=>{const o=B.findKey(r,i);if(o){n[o]=Ds(a),delete n[i];return}const s=t?Y5(i):String(i).trim();s!==i&&delete n[i],n[s]=Ds(a),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return B.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&B.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(a=>r.set(a)),r}static accessor(t){const r=(this[tg]=this[tg]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=ji(o);r[s]||(G5(a,o),r[s]=!0)}return B.isArray(t)?t.forEach(i):i(t),this}}sn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);B.reduceDescriptors(sn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});B.freezeMethods(sn);function Nl(e,t){const n=this||Zo,r=t||n,a=sn.from(r.headers);let i=r.data;return B.forEach(e,function(s){i=s.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function Kb(e){return!!(e&&e.__CANCEL__)}function hi(e,t,n){Oe.call(this,e??"canceled",Oe.ERR_CANCELED,t,n),this.name="CanceledError"}B.inherits(hi,Oe,{__CANCEL__:!0});function Xb(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Oe("Request failed with status code "+n.status,[Oe.ERR_BAD_REQUEST,Oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Z5(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function K5(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),l=r[i];o||(o=c),n[a]=u,r[a]=c;let d=i,f=0;for(;d!==a;)f+=n[d++],d=d%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-o<t)return;const p=l&&c-l;return p?Math.round(f*1e3/p):void 0}}function X5(e,t){let n=0,r=1e3/t,a,i;const o=(c,l=Date.now())=>{n=l,a=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const l=Date.now(),d=l-n;d>=r?o(c,l):(a=c,i||(i=setTimeout(()=>{i=null,o(a)},r-d)))},()=>a&&o(a)]}const Qs=(e,t,n=3)=>{let r=0;const a=K5(50,250);return X5(i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,u=o-r,c=a(u),l=o<=s;r=o;const d={loaded:o,total:s,progress:s?o/s:void 0,bytes:u,rate:c||void 0,estimated:c&&s&&l?(s-o)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},ng=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},rg=e=>(...t)=>B.asap(()=>e(...t)),J5=Pn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let o=i;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=a(window.location.href),function(o){const s=B.isString(o)?a(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),Q5=Pn.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const o=[e+"="+encodeURIComponent(t)];B.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),B.isString(r)&&o.push("path="+r),B.isString(a)&&o.push("domain="+a),i===!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 eS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Jb(e,t){return e&&!eS(t)?tS(e,t):t}const ag=e=>e instanceof sn?{...e}:e;function ua(e,t){t=t||{};const n={};function r(c,l,d){return B.isPlainObject(c)&&B.isPlainObject(l)?B.merge.call({caseless:d},c,l):B.isPlainObject(l)?B.merge({},l):B.isArray(l)?l.slice():l}function a(c,l,d){if(B.isUndefined(l)){if(!B.isUndefined(c))return r(void 0,c,d)}else return r(c,l,d)}function i(c,l){if(!B.isUndefined(l))return r(void 0,l)}function o(c,l){if(B.isUndefined(l)){if(!B.isUndefined(c))return r(void 0,c)}else return r(void 0,l)}function s(c,l,d){if(d in t)return r(c,l);if(d in e)return r(void 0,c)}const u={url:i,method:i,data:i,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:(c,l)=>a(ag(c),ag(l),!0)};return B.forEach(Object.keys(Object.assign({},e,t)),function(l){const d=u[l]||a,f=d(e[l],t[l],l);B.isUndefined(f)&&d!==s||(n[l]=f)}),n}const Qb=e=>{const t=ua({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:s}=t;t.headers=o=sn.from(o),t.url=Yb(Jb(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let u;if(B.isFormData(n)){if(Pn.hasStandardBrowserEnv||Pn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((u=o.getContentType())!==!1){const[c,...l]=u?u.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...l].join("; "))}}if(Pn.hasStandardBrowserEnv&&(r&&B.isFunction(r)&&(r=r(t)),r||r!==!1&&J5(t.url))){const c=a&&i&&Q5.read(i);c&&o.set(a,c)}return t},nS=typeof XMLHttpRequest<"u",rS=nS&&function(e){return new Promise(function(n,r){const a=Qb(e);let i=a.data;const o=sn.from(a.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:c}=a,l,d,f,p,m;function g(){p&&p(),m&&m(),a.cancelToken&&a.cancelToken.unsubscribe(l),a.signal&&a.signal.removeEventListener("abort",l)}let v=new XMLHttpRequest;v.open(a.method.toUpperCase(),a.url,!0),v.timeout=a.timeout;function x(){if(!v)return;const b=sn.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),_={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:b,config:e,request:v};Xb(function($){n($),g()},function($){r($),g()},_),v=null}"onloadend"in v?v.onloadend=x:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(x)},v.onabort=function(){v&&(r(new Oe("Request aborted",Oe.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new Oe("Network Error",Oe.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let T=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const _=a.transitional||Gb;a.timeoutErrorMessage&&(T=a.timeoutErrorMessage),r(new Oe(T,_.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,v)),v=null},i===void 0&&o.setContentType(null),"setRequestHeader"in v&&B.forEach(o.toJSON(),function(T,_){v.setRequestHeader(_,T)}),B.isUndefined(a.withCredentials)||(v.withCredentials=!!a.withCredentials),s&&s!=="json"&&(v.responseType=a.responseType),c&&([f,m]=Qs(c,!0),v.addEventListener("progress",f)),u&&v.upload&&([d,p]=Qs(u),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(l=b=>{v&&(r(!b||b.type?new hi(null,e,v):b),v.abort(),v=null)},a.cancelToken&&a.cancelToken.subscribe(l),a.signal&&(a.signal.aborted?l():a.signal.addEventListener("abort",l)));const w=Z5(a.url);if(w&&Pn.protocols.indexOf(w)===-1){r(new Oe("Unsupported protocol "+w+":",Oe.ERR_BAD_REQUEST,e));return}v.send(i||null)})},aS=(e,t)=>{let n=new AbortController,r;const a=function(u){if(!r){r=!0,o();const c=u instanceof Error?u:this.reason;n.abort(c instanceof Oe?c:new hi(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{a(new Oe(`timeout ${t} of ms exceeded`,Oe.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u&&(u.removeEventListener?u.removeEventListener("abort",a):u.unsubscribe(a))}),e=null)};e.forEach(u=>u&&u.addEventListener&&u.addEventListener("abort",a));const{signal:s}=n;return s.unsubscribe=o,[s,()=>{i&&clearTimeout(i),i=null}]},iS=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},oS=async function*(e,t,n){for await(const r of e)yield*iS(ArrayBuffer.isView(r)?r:await n(String(r)),t)},ig=(e,t,n,r,a)=>{const i=oS(e,t,a);let o=0,s,u=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:d}=await i.next();if(l){u(),c.close();return}let f=d.byteLength;if(n){let p=o+=f;n(p)}c.enqueue(new Uint8Array(d))}catch(l){throw u(l),l}},cancel(c){return u(c),i.return()}},{highWaterMark:2})},eu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",e1=eu&&typeof ReadableStream=="function",Wd=eu&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),t1=(e,...t)=>{try{return!!e(...t)}catch{return!1}},sS=e1&&t1(()=>{let e=!1;const t=new Request(Pn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),og=64*1024,zd=e1&&t1(()=>B.isReadableStream(new Response("").body)),ec={stream:zd&&(e=>e.body)};eu&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ec[t]&&(ec[t]=B.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Oe(`Response type '${t}' is not supported`,Oe.ERR_NOT_SUPPORT,r)})})})(new Response);const cS=async e=>{if(e==null)return 0;if(B.isBlob(e))return e.size;if(B.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(B.isArrayBufferView(e)||B.isArrayBuffer(e))return e.byteLength;if(B.isURLSearchParams(e)&&(e=e+""),B.isString(e))return(await Wd(e)).byteLength},uS=async(e,t)=>{const n=B.toFiniteNumber(e.getContentLength());return n??cS(t)},lS=eu&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:i,timeout:o,onDownloadProgress:s,onUploadProgress:u,responseType:c,headers:l,withCredentials:d="same-origin",fetchOptions:f}=Qb(e);c=c?(c+"").toLowerCase():"text";let[p,m]=a||i||o?aS([a,i],o):[],g,v;const x=()=>{!g&&setTimeout(()=>{p&&p.unsubscribe()}),g=!0};let w;try{if(u&&sS&&n!=="get"&&n!=="head"&&(w=await uS(l,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),$;if(B.isFormData(r)&&($=C.headers.get("content-type"))&&l.setContentType($),C.body){const[A,D]=ng(w,Qs(rg(u)));r=ig(C.body,og,A,D,Wd)}}B.isString(d)||(d=d?"include":"omit"),v=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:d});let b=await fetch(v);const T=zd&&(c==="stream"||c==="response");if(zd&&(s||T)){const C={};["status","statusText","headers"].forEach(j=>{C[j]=b[j]});const $=B.toFiniteNumber(b.headers.get("content-length")),[A,D]=s&&ng($,Qs(rg(s),!0))||[];b=new Response(ig(b.body,og,A,()=>{D&&D(),T&&x()},Wd),C)}c=c||"text";let _=await ec[B.findKey(ec,c)||"text"](b,e);return!T&&x(),m&&m(),await new Promise((C,$)=>{Xb(C,$,{data:_,headers:sn.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:v})})}catch(b){throw x(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new Oe("Network Error",Oe.ERR_NETWORK,e,v),{cause:b.cause||b}):Oe.from(b,b&&b.code,e,v)}}),Hd={http:O5,xhr:rS,fetch:lS};B.forEach(Hd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const sg=e=>`- ${e}`,dS=e=>B.isFunction(e)||e===null||e===!1,n1={getAdapter:e=>{e=B.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i<t;i++){n=e[i];let o;if(r=n,!dS(n)&&(r=Hd[(o=String(n)).toLowerCase()],r===void 0))throw new Oe(`Unknown adapter '${o}'`);if(r)break;a[o||"#"+i]=r}if(!r){const i=Object.entries(a).map(([s,u])=>`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since :
232
232
  `+i.map(sg).join(`
233
- `):" "+sg(i[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Hd};function Fl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hi(null,e)}function cg(e){return Fl(e),e.headers=sn.from(e.headers),e.data=Nl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),n1.getAdapter(e.adapter||Zo.adapter)(e).then(function(r){return Fl(e),r.data=Nl.call(e,e.transformResponse,r),r.headers=sn.from(r.headers),r},function(r){return Kb(r)||(Fl(e),r&&r.response&&(r.response.data=Nl.call(e,e.transformResponse,r.response),r.response.headers=sn.from(r.response.headers))),Promise.reject(r)})}const r1="1.7.3",bh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{bh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ug={};bh.transitional=function(t,n,r){function a(i,o){return"[Axios v"+r1+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(t===!1)throw new Oe(a(o," has been removed"+(n?" in "+n:"")),Oe.ERR_DEPRECATED);return n&&!ug[o]&&(ug[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,s):!0}};function fS(e,t,n){if(typeof e!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const s=e[i],c=s===void 0||o(s,i,e);if(c!==!0)throw new Oe("option "+i+" must be "+c,Oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Oe("Unknown option "+i,Oe.ERR_BAD_OPTION)}}const Vd={assertOptions:fS,validators:bh},xr=Vd.validators;class na{constructor(t){this.defaults=t,this.interceptors={request:new eg,response:new eg}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
234
- `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ua(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Vd.assertOptions(r,{silentJSONParsing:xr.transitional(xr.boolean),forcedJSONParsing:xr.transitional(xr.boolean),clarifyTimeoutError:xr.transitional(xr.boolean)},!1),a!=null&&(B.isFunction(a)?n.paramsSerializer={serialize:a}:Vd.assertOptions(a,{encode:xr.function,serialize:xr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&B.merge(i.common,i[n.method]);i&&B.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=sn.concat(o,i);const s=[];let c=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(c=c&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let l,d=0,f;if(!c){const g=[cg.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,u),f=g.length,l=Promise.resolve(n);d<f;)l=l.then(g[d++],g[d++]);return l}f=s.length;let p=n;for(d=0;d<f;){const g=s[d++],v=s[d++];try{p=g(p)}catch(m){v.call(this,m);break}}try{l=cg.call(this,p)}catch(g){return Promise.reject(g)}for(d=0,f=u.length;d<f;)l=l.then(u[d++],u[d++]);return l}getUri(t){t=ua(this.defaults,t);const n=Jb(t.baseURL,t.url);return Yb(n,t.params,t.paramsSerializer)}}B.forEach(["delete","get","head","options"],function(t){na.prototype[t]=function(n,r){return this.request(ua(r||{},{method:t,url:n,data:(r||{}).data}))}});B.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,s){return this.request(ua(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}na.prototype[t]=n(),na.prototype[t+"Form"]=n(!0)});class xh{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,s){r.reason||(r.reason=new hi(i,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)}static source(){let t;return{token:new xh(function(a){t=a}),cancel:t}}}function hS(e){return function(n){return e.apply(null,n)}}function pS(e){return B.isObject(e)&&e.isAxiosError===!0}const qd={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(qd).forEach(([e,t])=>{qd[t]=e});function a1(e){const t=new na(e),n=Db(na.prototype.request,t);return B.extend(n,na.prototype,t,{allOwnKeys:!0}),B.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return a1(ua(e,a))},n}const dt=a1(Zo);dt.Axios=na;dt.CanceledError=hi;dt.CancelToken=xh;dt.isCancel=Kb;dt.VERSION=r1;dt.toFormData=Qc;dt.AxiosError=Oe;dt.Cancel=dt.CanceledError;dt.all=function(t){return Promise.all(t)};dt.spread=hS;dt.isAxiosError=pS;dt.mergeConfig=ua;dt.AxiosHeaders=sn;dt.formToJSON=e=>Zb(B.isHTMLForm(e)?new FormData(e):e);dt.getAdapter=n1.getAdapter;dt.HttpStatusCode=qd;dt.default=dt;const tc=e=>e==null?!0:!(typeof e=="object"||typeof e=="function"),i1=e=>{tc(e)||Object.keys(e).forEach(t=>{const n=e[t];if(tc(n))return;const r=Object.keys(n);r.includes("id")&&r.length===1&&n.id===null?e[t]=null:i1(n)})},o1=e=>Object.values(e).every(t=>t===null),mS=e=>{const t={};return Object.entries(e).forEach(([n,r])=>{r&&typeof r=="object"&&o1(r)?t[n]=null:t[n]=r}),t},_h=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(i=>`${i.charAt(0).toLowerCase()}${i.slice(1)}`).join("."),errors:r.errors})):[]},gS=(e,t)=>{_h(t).forEach(r=>{e.setError(r.name,{message:r.errors,type:"server"},{shouldFocus:!0}),tc(e.getValues(r.name))||e.setError(`${r.name}.id`,{message:r.errors,type:"server"},{shouldFocus:!0})})},s1=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},c1=e=>e.length<300?e:e.substring(0,300)+"...",tu=e=>e<1024?`${e} bytes`:e>=1024&&e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`;function lo(e=" ",...t){return t.filter(n=>n!=null&&n.length>0).join(e)}const Yd=(e,t)=>e.map(n=>`&${t}=${n}`).join("").substring(1),vS=(e,t)=>e===null?null:e.length<=t?e:e.slice(0,t)+"…";function yS(e){return e==null?"":Wf(Ic(e),"dd.MM.yyyy")}function nu(e){return(e==null?void 0:e.toString().split("T")[0])??""}function bS(e){return e==null?"":Wf(Ic(e),"dd.MM.yyyy HH:mm")}function xS(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const _S=(e,t)=>lo(" ",e?`${e},`:void 0,t),wS=(e,t)=>`${t}${e!=null?` (${e})`:""}`,TS=(e,t)=>`[${e??""}] ${t??""}`,u1=e=>decodeURIComponent(atob(e).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")),l1=e=>{const t=Ic(e);return!Number.isNaN(t.getTime())};function CS(){const e=new Date,t=new Date(e);return t.setHours(24,0,0,0),t.getTime()-e.getTime()}function kS(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function SS(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 OS(e,t){const n=new Date(e),r=new Date(t);return n.getTime()-r.getTime()}function ES(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 a=n.getTime()-r.getTime();return Math.floor(a/(1e3*3600*24))}function d1(e=new Date){const t=new Date(e);return t.setDate(1),t}function f1(e=new Date){const t=new Date(e);return t.setMonth(t.getMonth()+1),t.setDate(0),t}function $S(e){const t=new Date;return t.setMonth(t.getMonth()+e),d1(t)}function MS(e){const t=new Date;return t.setMonth(t.getMonth()+e),f1(t)}function RS(e){const t=e??new Date().getFullYear(),n=new Date(t,0,1);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function AS(e){const t=e??new Date().getFullYear(),n=new Date(t,11,31);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function jS(e){return nu(e.toISOString())}function h1(e){const t=/filename\*?=(?:UTF-8''|")?(.*?)(?:''|")?(?:;|$)/i,n=e.match(t);if(n&&n[1]){let r=n[1];const a=/=\?([^?]+)\?([BbQq])\?([^?]+)\?=/,i=r.match(a);if(i){const o=i[2].toUpperCase(),s=i[3];try{return o==="B"?r=u1(s):o==="Q"&&(r=s.replace(/_/g," ").replace(/=([A-Fa-f0-9]{2})/g,(c,u)=>String.fromCharCode(parseInt(u,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 nc(e,t,n){const r=URL.createObjectURL(e),a=document.createElement("a");a.href=r,a.setAttribute("download",t),a.setAttribute("style","display: none"),n&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(r)}function PS(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=h1(e.headers.get("Content-disposition"))??n)}nc(e.data,n,t==null?void 0:t.tryToOpen)}function wh(e,t=wh.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}wh.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"};/*!
233
+ `):" "+sg(i[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Hd};function Fl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hi(null,e)}function cg(e){return Fl(e),e.headers=sn.from(e.headers),e.data=Nl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),n1.getAdapter(e.adapter||Zo.adapter)(e).then(function(r){return Fl(e),r.data=Nl.call(e,e.transformResponse,r),r.headers=sn.from(r.headers),r},function(r){return Kb(r)||(Fl(e),r&&r.response&&(r.response.data=Nl.call(e,e.transformResponse,r.response),r.response.headers=sn.from(r.response.headers))),Promise.reject(r)})}const r1="1.7.3",bh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{bh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ug={};bh.transitional=function(t,n,r){function a(i,o){return"[Axios v"+r1+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(t===!1)throw new Oe(a(o," has been removed"+(n?" in "+n:"")),Oe.ERR_DEPRECATED);return n&&!ug[o]&&(ug[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,s):!0}};function fS(e,t,n){if(typeof e!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const s=e[i],u=s===void 0||o(s,i,e);if(u!==!0)throw new Oe("option "+i+" must be "+u,Oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Oe("Unknown option "+i,Oe.ERR_BAD_OPTION)}}const Vd={assertOptions:fS,validators:bh},xr=Vd.validators;class na{constructor(t){this.defaults=t,this.interceptors={request:new eg,response:new eg}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
234
+ `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ua(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Vd.assertOptions(r,{silentJSONParsing:xr.transitional(xr.boolean),forcedJSONParsing:xr.transitional(xr.boolean),clarifyTimeoutError:xr.transitional(xr.boolean)},!1),a!=null&&(B.isFunction(a)?n.paramsSerializer={serialize:a}:Vd.assertOptions(a,{encode:xr.function,serialize:xr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&B.merge(i.common,i[n.method]);i&&B.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=sn.concat(o,i);const s=[];let u=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(u=u&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let l,d=0,f;if(!u){const m=[cg.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,c),f=m.length,l=Promise.resolve(n);d<f;)l=l.then(m[d++],m[d++]);return l}f=s.length;let p=n;for(d=0;d<f;){const m=s[d++],g=s[d++];try{p=m(p)}catch(v){g.call(this,v);break}}try{l=cg.call(this,p)}catch(m){return Promise.reject(m)}for(d=0,f=c.length;d<f;)l=l.then(c[d++],c[d++]);return l}getUri(t){t=ua(this.defaults,t);const n=Jb(t.baseURL,t.url);return Yb(n,t.params,t.paramsSerializer)}}B.forEach(["delete","get","head","options"],function(t){na.prototype[t]=function(n,r){return this.request(ua(r||{},{method:t,url:n,data:(r||{}).data}))}});B.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,s){return this.request(ua(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}na.prototype[t]=n(),na.prototype[t+"Form"]=n(!0)});class xh{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,s){r.reason||(r.reason=new hi(i,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)}static source(){let t;return{token:new xh(function(a){t=a}),cancel:t}}}function hS(e){return function(n){return e.apply(null,n)}}function pS(e){return B.isObject(e)&&e.isAxiosError===!0}const qd={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(qd).forEach(([e,t])=>{qd[t]=e});function a1(e){const t=new na(e),n=Db(na.prototype.request,t);return B.extend(n,na.prototype,t,{allOwnKeys:!0}),B.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return a1(ua(e,a))},n}const dt=a1(Zo);dt.Axios=na;dt.CanceledError=hi;dt.CancelToken=xh;dt.isCancel=Kb;dt.VERSION=r1;dt.toFormData=Qc;dt.AxiosError=Oe;dt.Cancel=dt.CanceledError;dt.all=function(t){return Promise.all(t)};dt.spread=hS;dt.isAxiosError=pS;dt.mergeConfig=ua;dt.AxiosHeaders=sn;dt.formToJSON=e=>Zb(B.isHTMLForm(e)?new FormData(e):e);dt.getAdapter=n1.getAdapter;dt.HttpStatusCode=qd;dt.default=dt;const tc=e=>e==null?!0:!(typeof e=="object"||typeof e=="function"),i1=e=>{tc(e)||Object.keys(e).forEach(t=>{const n=e[t];if(tc(n))return;const r=Object.keys(n);r.includes("id")&&r.length===1&&n.id===null?e[t]=null:i1(n)})},o1=e=>Object.values(e).every(t=>t===null),mS=e=>{const t={};return Object.entries(e).forEach(([n,r])=>{r&&typeof r=="object"&&o1(r)?t[n]=null:t[n]=r}),t},_h=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(i=>`${i.charAt(0).toLowerCase()}${i.slice(1)}`).join("."),errors:r.errors})):[]},gS=(e,t)=>{_h(t).forEach(r=>{e.setError(r.name,{message:r.errors,type:"server"},{shouldFocus:!0}),tc(e.getValues(r.name))||e.setError(`${r.name}.id`,{message:r.errors,type:"server"},{shouldFocus:!0})})},s1=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},c1=e=>e.length<300?e:e.substring(0,300)+"...",tu=e=>e<1024?`${e} bytes`:e>=1024&&e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`;function lo(e=" ",...t){return t.filter(n=>n!=null&&n.length>0).join(e)}const Yd=(e,t)=>e.map(n=>`&${t}=${n}`).join("").substring(1),vS=(e,t)=>e===null?null:e.length<=t?e:e.slice(0,t)+"…";function yS(e){return e==null?"":Wf(Ic(e),"dd.MM.yyyy")}function nu(e){return(e==null?void 0:e.toString().split("T")[0])??""}function bS(e){return e==null?"":Wf(Ic(e),"dd.MM.yyyy HH:mm")}function xS(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const _S=(e,t)=>lo(" ",e?`${e},`:void 0,t),wS=(e,t)=>`${t}${e!=null?` (${e})`:""}`,TS=(e,t)=>`[${e??""}] ${t??""}`,u1=e=>decodeURIComponent(atob(e).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")),l1=e=>{const t=Ic(e);return!Number.isNaN(t.getTime())};function CS(){const e=new Date,t=new Date(e);return t.setHours(24,0,0,0),t.getTime()-e.getTime()}function kS(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function SS(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 OS(e,t){const n=new Date(e),r=new Date(t);return n.getTime()-r.getTime()}function ES(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 a=n.getTime()-r.getTime();return Math.floor(a/(1e3*3600*24))}function d1(e=new Date){const t=new Date(e);return t.setDate(1),t}function f1(e=new Date){const t=new Date(e);return t.setMonth(t.getMonth()+1),t.setDate(0),t}function $S(e){const t=new Date;return t.setMonth(t.getMonth()+e),d1(t)}function MS(e){const t=new Date;return t.setMonth(t.getMonth()+e),f1(t)}function RS(e){const t=e??new Date().getFullYear(),n=new Date(t,0,1);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function AS(e){const t=e??new Date().getFullYear(),n=new Date(t,11,31);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function jS(e){return nu(e.toISOString())}function h1(e){const t=/filename\*?=(?:UTF-8''|")?(.*?)(?:''|")?(?:;|$)/i,n=e.match(t);if(n&&n[1]){let r=n[1];const a=/=\?([^?]+)\?([BbQq])\?([^?]+)\?=/,i=r.match(a);if(i){const o=i[2].toUpperCase(),s=i[3];try{return o==="B"?r=u1(s):o==="Q"&&(r=s.replace(/_/g," ").replace(/=([A-Fa-f0-9]{2})/g,(u,c)=>String.fromCharCode(parseInt(c,16)))),decodeURIComponent(r)}catch(u){return console.error("Error decoding MIME encoded filename:",u),r}}try{return decodeURIComponent(r)}catch(o){return console.error("Error decoding filename:",o),r}}return null}function nc(e,t,n){const r=URL.createObjectURL(e),a=document.createElement("a");a.href=r,a.setAttribute("download",t),a.setAttribute("style","display: none"),n&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(r)}function PS(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=h1(e.headers.get("Content-disposition"))??n)}nc(e.data,n,t==null?void 0:t.tryToOpen)}function wh(e,t=wh.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}wh.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"};/*!
235
235
  * cookie
236
236
  * Copyright(c) 2012-2014 Roman Shtylman
237
237
  * Copyright(c) 2015 Douglas Christopher Wilson
238
238
  * MIT Licensed
239
- */var p1=IS,lg=NS,DS=Object.prototype.toString,ms=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function IS(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var n={},r=t||{},a=r.decode||FS,i=0;i<e.length;){var o=e.indexOf("=",i);if(o===-1)break;var s=e.indexOf(";",i);if(s===-1)s=e.length;else if(s<o){i=e.lastIndexOf(";",o-1)+1;continue}var c=e.slice(i,o).trim();if(n[c]===void 0){var u=e.slice(o+1,s).trim();u.charCodeAt(0)===34&&(u=u.slice(1,-1)),n[c]=BS(u,a)}i=s+1}return n}function NS(e,t,n){var r=n||{},a=r.encode||LS;if(typeof a!="function")throw new TypeError("option encode is invalid");if(!ms.test(e))throw new TypeError("argument name is invalid");var i=a(t);if(i&&!ms.test(i))throw new TypeError("argument val is invalid");var o=e+"="+i;if(r.maxAge!=null){var s=r.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(s)}if(r.domain){if(!ms.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!ms.test(r.path))throw new TypeError("option path is invalid");o+="; Path="+r.path}if(r.expires){var c=r.expires;if(!US(c)||isNaN(c.valueOf()))throw new TypeError("option expires is invalid");o+="; Expires="+c.toUTCString()}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.partitioned&&(o+="; Partitioned"),r.priority){var u=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(u){case"low":o+="; Priority=Low";break;case"medium":o+="; Priority=Medium";break;case"high":o+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o}function FS(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function LS(e){return encodeURIComponent(e)}function US(e){return DS.call(e)==="[object Date]"||e instanceof Date}function BS(e,t){try{return t(e)}catch{return e}}function WS(){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 zS(e){return typeof e=="string"?p1(e):typeof e=="object"&&e!==null?e:{}}function Ll(e,t={}){const n=HS(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function HS(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class VS{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const a=this.cookies;this.cookies=p1(document.cookie),this._checkChanges(a)};const r=typeof document>"u"?"":document.cookie;this.cookies=zS(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=WS()}_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:Ll(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),Ll(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=Ll(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const a=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:a}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=lg(t,a,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=lg(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 qS=oe.createContext(new VS);var Gd={exports:{}},qe={};/** @license React v16.13.1
239
+ */var p1=IS,lg=NS,DS=Object.prototype.toString,ms=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function IS(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var n={},r=t||{},a=r.decode||FS,i=0;i<e.length;){var o=e.indexOf("=",i);if(o===-1)break;var s=e.indexOf(";",i);if(s===-1)s=e.length;else if(s<o){i=e.lastIndexOf(";",o-1)+1;continue}var u=e.slice(i,o).trim();if(n[u]===void 0){var c=e.slice(o+1,s).trim();c.charCodeAt(0)===34&&(c=c.slice(1,-1)),n[u]=BS(c,a)}i=s+1}return n}function NS(e,t,n){var r=n||{},a=r.encode||LS;if(typeof a!="function")throw new TypeError("option encode is invalid");if(!ms.test(e))throw new TypeError("argument name is invalid");var i=a(t);if(i&&!ms.test(i))throw new TypeError("argument val is invalid");var o=e+"="+i;if(r.maxAge!=null){var s=r.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(s)}if(r.domain){if(!ms.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!ms.test(r.path))throw new TypeError("option path is invalid");o+="; Path="+r.path}if(r.expires){var u=r.expires;if(!US(u)||isNaN(u.valueOf()))throw new TypeError("option expires is invalid");o+="; Expires="+u.toUTCString()}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.partitioned&&(o+="; Partitioned"),r.priority){var c=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(c){case"low":o+="; Priority=Low";break;case"medium":o+="; Priority=Medium";break;case"high":o+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o}function FS(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function LS(e){return encodeURIComponent(e)}function US(e){return DS.call(e)==="[object Date]"||e instanceof Date}function BS(e,t){try{return t(e)}catch{return e}}function WS(){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 zS(e){return typeof e=="string"?p1(e):typeof e=="object"&&e!==null?e:{}}function Ll(e,t={}){const n=HS(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function HS(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class VS{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const a=this.cookies;this.cookies=p1(document.cookie),this._checkChanges(a)};const r=typeof document>"u"?"":document.cookie;this.cookies=zS(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=WS()}_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:Ll(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),Ll(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=Ll(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const a=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:a}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=lg(t,a,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=lg(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 qS=oe.createContext(new VS);var Gd={exports:{}},qe={};/** @license React v16.13.1
240
240
  * react-is.production.min.js
241
241
  *
242
242
  * Copyright (c) Facebook, Inc. and its affiliates.
243
243
  *
244
244
  * This source code is licensed under the MIT license found in the
245
245
  * LICENSE file in the root directory of this source tree.
246
- */var dg;function YS(){if(dg)return qe;dg=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,a=e?Symbol.for("react.strict_mode"):60108,i=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,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(_){if(typeof _=="object"&&_!==null){var C=_.$$typeof;switch(C){case t:switch(_=_.type,_){case c:case u:case r:case i:case a:case d:return _;default:switch(_=_&&_.$$typeof,_){case s:case l:case g:case p:case o:return _;default:return C}}case n:return C}}}function T(_){return b(_)===u}return qe.AsyncMode=c,qe.ConcurrentMode=u,qe.ContextConsumer=s,qe.ContextProvider=o,qe.Element=t,qe.ForwardRef=l,qe.Fragment=r,qe.Lazy=g,qe.Memo=p,qe.Portal=n,qe.Profiler=i,qe.StrictMode=a,qe.Suspense=d,qe.isAsyncMode=function(_){return T(_)||b(_)===c},qe.isConcurrentMode=T,qe.isContextConsumer=function(_){return b(_)===s},qe.isContextProvider=function(_){return b(_)===o},qe.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},qe.isForwardRef=function(_){return b(_)===l},qe.isFragment=function(_){return b(_)===r},qe.isLazy=function(_){return b(_)===g},qe.isMemo=function(_){return b(_)===p},qe.isPortal=function(_){return b(_)===n},qe.isProfiler=function(_){return b(_)===i},qe.isStrictMode=function(_){return b(_)===a},qe.isSuspense=function(_){return b(_)===d},qe.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===u||_===i||_===a||_===d||_===f||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===p||_.$$typeof===o||_.$$typeof===s||_.$$typeof===l||_.$$typeof===m||_.$$typeof===x||_.$$typeof===w||_.$$typeof===v)},qe.typeOf=b,qe}var Ye={};/** @license React v16.13.1
246
+ */var dg;function YS(){if(dg)return qe;dg=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,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(_){if(typeof _=="object"&&_!==null){var C=_.$$typeof;switch(C){case t:switch(_=_.type,_){case u:case c:case r:case i:case a:case d:return _;default:switch(_=_&&_.$$typeof,_){case s:case l:case m:case p:case o:return _;default:return C}}case n:return C}}}function T(_){return b(_)===c}return qe.AsyncMode=u,qe.ConcurrentMode=c,qe.ContextConsumer=s,qe.ContextProvider=o,qe.Element=t,qe.ForwardRef=l,qe.Fragment=r,qe.Lazy=m,qe.Memo=p,qe.Portal=n,qe.Profiler=i,qe.StrictMode=a,qe.Suspense=d,qe.isAsyncMode=function(_){return T(_)||b(_)===u},qe.isConcurrentMode=T,qe.isContextConsumer=function(_){return b(_)===s},qe.isContextProvider=function(_){return b(_)===o},qe.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},qe.isForwardRef=function(_){return b(_)===l},qe.isFragment=function(_){return b(_)===r},qe.isLazy=function(_){return b(_)===m},qe.isMemo=function(_){return b(_)===p},qe.isPortal=function(_){return b(_)===n},qe.isProfiler=function(_){return b(_)===i},qe.isStrictMode=function(_){return b(_)===a},qe.isSuspense=function(_){return b(_)===d},qe.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===c||_===i||_===a||_===d||_===f||typeof _=="object"&&_!==null&&(_.$$typeof===m||_.$$typeof===p||_.$$typeof===o||_.$$typeof===s||_.$$typeof===l||_.$$typeof===v||_.$$typeof===x||_.$$typeof===w||_.$$typeof===g)},qe.typeOf=b,qe}var Ye={};/** @license React v16.13.1
247
247
  * react-is.development.js
248
248
  *
249
249
  * Copyright (c) Facebook, Inc. and its affiliates.
250
250
  *
251
251
  * This source code is licensed under the MIT license found in the
252
252
  * LICENSE file in the root directory of this source tree.
253
- */var fg;function GS(){return fg||(fg=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,a=e?Symbol.for("react.strict_mode"):60108,i=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,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(k){return typeof k=="string"||typeof k=="function"||k===r||k===u||k===i||k===a||k===d||k===f||typeof k=="object"&&k!==null&&(k.$$typeof===g||k.$$typeof===p||k.$$typeof===o||k.$$typeof===s||k.$$typeof===l||k.$$typeof===m||k.$$typeof===x||k.$$typeof===w||k.$$typeof===v)}function T(k){if(typeof k=="object"&&k!==null){var ge=k.$$typeof;switch(ge){case t:var pe=k.type;switch(pe){case c:case u:case r:case i:case a:case d:return pe;default:var de=pe&&pe.$$typeof;switch(de){case s:case l:case g:case p:case o:return de;default:return ge}}case n:return ge}}}var _=c,C=u,$=s,A=o,D=t,j=l,E=r,F=g,M=p,R=n,I=i,U=a,N=d,q=!1;function z(k){return q||(q=!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.")),P(k)||T(k)===c}function P(k){return T(k)===u}function W(k){return T(k)===s}function Z(k){return T(k)===o}function ne(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function Y(k){return T(k)===l}function Q(k){return T(k)===r}function G(k){return T(k)===g}function J(k){return T(k)===p}function re(k){return T(k)===n}function L(k){return T(k)===i}function V(k){return T(k)===a}function ae(k){return T(k)===d}Ye.AsyncMode=_,Ye.ConcurrentMode=C,Ye.ContextConsumer=$,Ye.ContextProvider=A,Ye.Element=D,Ye.ForwardRef=j,Ye.Fragment=E,Ye.Lazy=F,Ye.Memo=M,Ye.Portal=R,Ye.Profiler=I,Ye.StrictMode=U,Ye.Suspense=N,Ye.isAsyncMode=z,Ye.isConcurrentMode=P,Ye.isContextConsumer=W,Ye.isContextProvider=Z,Ye.isElement=ne,Ye.isForwardRef=Y,Ye.isFragment=Q,Ye.isLazy=G,Ye.isMemo=J,Ye.isPortal=re,Ye.isProfiler=L,Ye.isStrictMode=V,Ye.isSuspense=ae,Ye.isValidElementType=b,Ye.typeOf=T}()),Ye}process.env.NODE_ENV==="production"?Gd.exports=YS():Gd.exports=GS();var ZS=Gd.exports,m1=ZS,KS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},XS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},g1={};g1[m1.ForwardRef]=KS;g1[m1.Memo]=XS;function JS(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function Th(e,t){const n=h.useContext(qS);if(!n)throw new Error("Missing <CookiesProvider>");const a=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[i,o]=h.useState(()=>n.getAll(a));JS()&&h.useLayoutEffect(()=>{function l(){const d=n.getAll(a);QS(e||null,d,i)&&o(d)}return n.addChangeListener(l),()=>{n.removeChangeListener(l)}},[n,i]);const s=h.useMemo(()=>n.set.bind(n),[n]),c=h.useMemo(()=>n.remove.bind(n),[n]),u=h.useMemo(()=>n.update.bind(n),[n]);return[i,s,c,u]}function QS(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const eO=()=>{const{axiosOptions:e,cookieDomain:t}=h.useContext(bn),[,n,r]=Th(["Authorization"]),a=dt.create(e),i=h.useCallback(()=>localStorage.getItem("token")??null,[]),o=h.useCallback(()=>{const u=i();return u!==null&&u.length>0},[i]),s=h.useCallback(async(u,l)=>a.post("/user/login",{kid:u,password:l}).then(d=>(localStorage.setItem("token",d.data),n("Authorization",d.data,{path:"/",secure:!0,sameSite:"none",domain:t,expires:Zw(new Date(Date.now()),24)}),d.data)).catch(d=>(console.log(d),null)),[a,n,t]),c=h.useCallback(()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),r("Authorization")},[r]);return{isAuthenticated:o,login:s,logout:c,getToken:i}},tO=()=>{const[,,e]=Th(["Authorization"]),{msalScopes:t}=h.useContext(Sh),{instance:n,inProgress:r}=sm.useMsal(),a=sm.useIsAuthenticated(),i=h.useCallback(async()=>{var f;const l=n.getActiveAccount(),d=l??((f=n.getAllAccounts())==null?void 0:f.at(0))??void 0;return d?(l||n.setActiveAccount(d),n.acquireTokenSilent({scopes:t,account:d}).then(p=>p.accessToken).catch(p=>{if(console.error("Error acquiring token",p),p instanceof om.InteractionRequiredAuthError)return console.log("Silent token acquisition failed. Acquiring token using redirect"),n.acquireTokenRedirect({scopes:t}),null;throw p})):null},[n,t]),o=h.useCallback(()=>a,[a]),s=h.useCallback(()=>!o()&&r!==om.InteractionStatus.None,[o,r]),c=h.useCallback(async()=>n.loginRedirect({scopes:t}).then(()=>"").catch(()=>null),[n,t]),u=h.useCallback(()=>{n.logout(),localStorage.removeItem("user"),e("Authorization")},[e,n]);return{isAuthenticated:o,isAuthenticating:s,login:c,logout:u,getToken:i}},v1=()=>{const{useMsal:e}=h.useContext(Sh),t=eO(),n=tO();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}},nO="_toast_1s57i_1",Pi={toast:nO},rO=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}},Ch=()=>({addNotification:h.useCallback((t,n)=>{const r=c1(t),a=rO(n),i=y.jsxs(y.Fragment,{children:[r,y.jsx(Ob,{onClick:()=>Aa.dismiss(r),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});switch(n){case"success":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(qk,{size:12}),className:ie("luminus-toast-success rounded shadow bg-success",Pi.toast)});break}case"danger":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Ik,{size:12}),className:ie("luminus-toast-danger rounded shadow bg-danger",Pi.toast)});break}case"warning":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Rk,{size:12}),className:ie("luminus-toast-warning rounded shadow bg-warning",Pi.toast)});break}case"info":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Pk,{size:12}),className:ie("luminus-toast-info rounded shadow bg-info",Pi.toast)});break}case"prompt":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Dk,{size:12}),className:ie("luminus-toast-prompt rounded shadow bg-light",Pi.toast)});break}}},[])}),aO=dt.CancelToken,ru=e=>{const{authenticated:t=!0,differentBaseUrl:n,silent:r=!1,customToken:a,ignoreDelegation:i,noToastOnStatus:o}={...e},{language:s,axiosOptions:c,texts:{axios:u}}=h.useContext(bn),{delegation:l}=h.useContext(M1),d=h.useMemo(()=>(l==null?void 0:l.id)??null,[l==null?void 0:l.id]),{addNotification:f}=Ch(),{getToken:p}=v1(),g=h.useMemo(()=>dt.create(c),[c]),v=h.useCallback(async x=>{var w,b,T;if(t&&!x.headers.Authorization){const _=a??await p();if(!_)return Promise.reject(new Error("No bearer token"));x.headers.Authorization=`Bearer ${_}`}return d!==null&&!i&&(x.headers.DelegationId=d.toString()),(w=x.url)!=null&&w.includes("culture=")?x.url=(b=x.url)==null?void 0:b.replace(/culture=[a-z]{2}/,`culture=${s}`):x.url=`${x.url}${(T=x.url)!=null&&T.includes("?")?"&":"?"}culture=${s}`,x},[t,p,s,a,d,i]),m=h.useCallback(x=>{var T,_;if(console.log(x),dt.isCancel(x))return Promise.reject(x);const w=_h(x);if(w.length>0){const C=w.find($=>$.name.toLowerCase()==="others");return C?(!r&&f(C.errors,"danger"),Promise.reject(x)):(!r&&f(u.validationError,"warning"),Promise.reject(x))}const b=s1(x);return b!==null?(!r&&f(`${u.permissionError}: ${lo(", ",...b)}`,"danger"),Promise.reject(x)):(o??[]).includes((T=x.response)==null?void 0:T.status)?Promise.reject(x):((_=x.response)==null?void 0:_.status)===403?(!r&&f(u.forbiddenError,"danger"),Promise.reject(x)):x.message&&x.message==="Network Error"?(!r&&f(u.networkError,"danger"),Promise.reject(x)):(dt.isCancel(x)||!r&&f(u.unexpectedError,"danger"),Promise.reject(x))},[f,u.forbiddenError,u.networkError,u.permissionError,u.unexpectedError,u.validationError,r,o]);return h.useEffect(()=>{n&&(g.defaults.baseURL=n),g.interceptors.request.clear(),g.interceptors.response.clear();const x=g.interceptors.request.use(v,b=>Promise.reject(b)),w=g.interceptors.response.use(b=>b,m);return()=>{g.interceptors.request.eject(x),g.interceptors.response.eject(w)}},[g.defaults,g.interceptors.request,g.interceptors.response,n,v,m]),g};let Ul;const y1=()=>{const{show:e,text:t,showConfirm:n,hideConfirm:r}=h.useContext(Eb),a=()=>{r()};return{confirm:async c=>(n(c),new Promise(u=>{Ul=u})),onConfirm:()=>{a(),Ul(!0)},onCancel:()=>{a(),Ul(!1)},show:e,text:t}};var Fe;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const i={};for(const o of a)i[o]=o;return i},e.getValidEnumValues=a=>{const i=e.objectKeys(a).filter(s=>typeof a[a[s]]!="number"),o={};for(const s of i)o[s]=a[s];return e.objectValues(o)},e.objectValues=a=>e.objectKeys(a).map(function(i){return a[i]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&i.push(o);return i},e.find=(a,i)=>{for(const o of a)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function r(a,i=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(Fe||(Fe={}));var Zd;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Zd||(Zd={}));const ue=Fe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Or=e=>{switch(typeof e){case"undefined":return ue.undefined;case"string":return ue.string;case"number":return isNaN(e)?ue.nan:ue.number;case"boolean":return ue.boolean;case"function":return ue.function;case"bigint":return ue.bigint;case"symbol":return ue.symbol;case"object":return Array.isArray(e)?ue.array:e===null?ue.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ue.promise:typeof Map<"u"&&e instanceof Map?ue.map:typeof Set<"u"&&e instanceof Set?ue.set:typeof Date<"u"&&e instanceof Date?ue.date:ue.object;default:return ue.unknown}},te=Fe.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"]),iO=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class gn 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(i){return i.message},r={_errors:[]},a=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(a);else if(o.code==="invalid_return_type")a(o.returnTypeError);else if(o.code==="invalid_arguments")a(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 u=o.path[c];c===o.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(n(o))):s[u]=s[u]||{_errors:[]},s=s[u],c++}}};return a(this),r}static assert(t){if(!(t instanceof gn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Fe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}gn.create=e=>new gn(e);const Ja=(e,t)=>{let n;switch(e.code){case te.invalid_type:e.received===ue.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case te.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Fe.jsonStringifyReplacer)}`;break;case te.unrecognized_keys:n=`Unrecognized key(s) in object: ${Fe.joinValues(e.keys,", ")}`;break;case te.invalid_union:n="Invalid input";break;case te.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Fe.joinValues(e.options)}`;break;case te.invalid_enum_value:n=`Invalid enum value. Expected ${Fe.joinValues(e.options)}, received '${e.received}'`;break;case te.invalid_arguments:n="Invalid function arguments";break;case te.invalid_return_type:n="Invalid function return type";break;case te.invalid_date:n="Invalid date";break;case te.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}"`:Fe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case te.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 te.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 te.custom:n="Invalid input";break;case te.invalid_intersection_types:n="Intersection results could not be merged";break;case te.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case te.not_finite:n="Number must be finite";break;default:n=t.defaultError,Fe.assertNever(e)}return{message:n}};let b1=Ja;function oO(e){b1=e}function rc(){return b1}const ac=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,i=[...n,...a.path||[]],o={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let s="";const c=r.filter(u=>!!u).slice().reverse();for(const u of c)s=u(o,{data:t,defaultError:s}).message;return{...a,path:i,message:s}},sO=[];function ce(e,t){const n=rc(),r=ac({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ja?void 0:Ja].filter(a=>!!a)});e.common.issues.push(r)}class Ht{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 a of n){if(a.status==="aborted")return we;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const i=await a.key,o=await a.value;r.push({key:i,value:o})}return Ht.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:i,value:o}=a;if(i.status==="aborted"||o.status==="aborted")return we;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const we=Object.freeze({status:"aborted"}),Fa=e=>({status:"dirty",value:e}),Kt=e=>({status:"valid",value:e}),Kd=e=>e.status==="aborted",Xd=e=>e.status==="dirty",fo=e=>e.status==="valid",ho=e=>typeof Promise<"u"&&e instanceof Promise;function ic(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 x1(e,t,n,r,a){if(typeof t=="function"?e!==t||!a:!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 me;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(me||(me={}));var Yi,Gi;class Gn{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}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 hg=(e,t)=>{if(fo(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 gn(e.common.issues);return this._error=n,this._error}}};function Ee(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=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:a}:{errorMap:(o,s)=>{var c,u;const{message:l}=e;return o.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:(c=l??r)!==null&&c!==void 0?c:s.defaultError}:o.code!=="invalid_type"?{message:s.defaultError}:{message:(u=l??n)!==null&&u!==void 0?u:s.defaultError}},description:a}}class Re{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 Or(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Or(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ht,ctx:{common:t.parent.common,data:t.data,parsedType:Or(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(ho(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 a={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:Or(t)},i=this._parseSync({data:t,path:a.path,parent:a});return hg(a,i)}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:Or(t)},a=this._parse({data:t,path:r.path,parent:r}),i=await(ho(a)?a:Promise.resolve(a));return hg(r,i)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,i)=>{const o=t(a),s=()=>i.addIssue({code:te.custom,...r(a)});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,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new Nn({schema:this,typeName:_e.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return qn.create(this,this._def)}nullable(){return Nr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Dn.create(this,this._def)}promise(){return ei.create(this,this._def)}or(t){return vo.create([this,t],this._def)}and(t){return yo.create(this,t,this._def)}transform(t){return new Nn({...Ee(this._def),schema:this,typeName:_e.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new To({...Ee(this._def),innerType:this,defaultValue:n,typeName:_e.ZodDefault})}brand(){return new kh({typeName:_e.ZodBranded,type:this,...Ee(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Co({...Ee(this._def),innerType:this,catchValue:n,typeName:_e.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Ko.create(this,t)}readonly(){return ko.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const cO=/^c[^\s-]{8,}$/i,uO=/^[0-9a-z]+$/,lO=/^[0-9A-HJKMNP-TV-Z]{26}$/,dO=/^[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,fO=/^[a-z0-9_-]{21}$/i,hO=/^[-+]?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)?)??$/,pO=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,mO="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Bl;const gO=/^(?:(?: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])$/,vO=/^(([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})))$/,yO=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,_1="((\\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])))",bO=new RegExp(`^${_1}$`);function w1(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 xO(e){return new RegExp(`^${w1(e)}$`)}function T1(e){let t=`${_1}T${w1(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 _O(e,t){return!!((t==="v4"||!t)&&gO.test(e)||(t==="v6"||!t)&&vO.test(e))}class An extends Re{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ue.string){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.string,received:i.parsedType}),we}const r=new Ht;let a;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,s=t.data.length<i.value;(o||s)&&(a=this._getOrReturnCtx(t,a),o?ce(a,{code:te.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):s&&ce(a,{code:te.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")pO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"email",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")Bl||(Bl=new RegExp(mO,"u")),Bl.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"emoji",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")dO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"uuid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")fO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"nanoid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")cO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"cuid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")uO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"cuid2",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")lO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"ulid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),ce(a,{validation:"url",code:te.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"regex",code:te.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?T1(i).test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?bO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?xO(i).test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?hO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"duration",code:te.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?_O(t.data,i.version)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"ip",code:te.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?yO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"base64",code:te.invalid_string,message:i.message}),r.dirty()):Fe.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:te.invalid_string,...me.errToObj(r)})}_addCheck(t){return new An({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...me.errToObj(t)})}url(t){return this._addCheck({kind:"url",...me.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...me.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...me.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...me.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...me.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...me.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...me.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...me.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...me.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,...me.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,...me.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...me.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...me.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...me.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...me.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...me.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...me.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...me.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...me.errToObj(n)})}nonempty(t){return this.min(1,me.errToObj(t))}trim(){return new An({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new An({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new An({...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}}An.create=e=>{var t;return new An({checks:[],typeName:_e.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ee(e)})};function wO(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,i=parseInt(e.toFixed(a).replace(".","")),o=parseInt(t.toFixed(a).replace(".",""));return i%o/Math.pow(10,a)}class Pr extends Re{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)!==ue.number){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.number,received:i.parsedType}),we}let r;const a=new Ht;for(const i of this._def.checks)i.kind==="int"?Fe.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ce(r,{code:te.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?wO(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ce(r,{code:te.not_finite,message:i.message}),a.dirty()):Fe.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,me.toString(n))}gt(t,n){return this.setLimit("min",t,!1,me.toString(n))}lte(t,n){return this.setLimit("max",t,!0,me.toString(n))}lt(t,n){return this.setLimit("max",t,!1,me.toString(n))}setLimit(t,n,r,a){return new Pr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:me.toString(a)}]})}_addCheck(t){return new Pr({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:me.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:me.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:me.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:me.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:me.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:me.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:me.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:me.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:me.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"&&Fe.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)}}Pr.create=e=>new Pr({checks:[],typeName:_e.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ee(e)});class Dr extends Re{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)!==ue.bigint){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.bigint,received:i.parsedType}),we}let r;const a=new Ht;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):Fe.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,me.toString(n))}gt(t,n){return this.setLimit("min",t,!1,me.toString(n))}lte(t,n){return this.setLimit("max",t,!0,me.toString(n))}lt(t,n){return this.setLimit("max",t,!1,me.toString(n))}setLimit(t,n,r,a){return new Dr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:me.toString(a)}]})}_addCheck(t){return new Dr({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:me.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:me.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:me.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:me.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:me.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}}Dr.create=e=>{var t;return new Dr({checks:[],typeName:_e.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ee(e)})};class po extends Re{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ue.boolean){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.boolean,received:r.parsedType}),we}return Kt(t.data)}}po.create=e=>new po({typeName:_e.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ee(e)});class la extends Re{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ue.date){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.date,received:i.parsedType}),we}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_date}),we}const r=new Ht;let a;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Fe.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new la({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:me.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:me.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}}la.create=e=>new la({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:_e.ZodDate,...Ee(e)});class oc extends Re{_parse(t){if(this._getType(t)!==ue.symbol){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.symbol,received:r.parsedType}),we}return Kt(t.data)}}oc.create=e=>new oc({typeName:_e.ZodSymbol,...Ee(e)});class mo extends Re{_parse(t){if(this._getType(t)!==ue.undefined){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.undefined,received:r.parsedType}),we}return Kt(t.data)}}mo.create=e=>new mo({typeName:_e.ZodUndefined,...Ee(e)});class go extends Re{_parse(t){if(this._getType(t)!==ue.null){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.null,received:r.parsedType}),we}return Kt(t.data)}}go.create=e=>new go({typeName:_e.ZodNull,...Ee(e)});class Qa extends Re{constructor(){super(...arguments),this._any=!0}_parse(t){return Kt(t.data)}}Qa.create=e=>new Qa({typeName:_e.ZodAny,...Ee(e)});class ra extends Re{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Kt(t.data)}}ra.create=e=>new ra({typeName:_e.ZodUnknown,...Ee(e)});class hr extends Re{_parse(t){const n=this._getOrReturnCtx(t);return ce(n,{code:te.invalid_type,expected:ue.never,received:n.parsedType}),we}}hr.create=e=>new hr({typeName:_e.ZodNever,...Ee(e)});class sc extends Re{_parse(t){if(this._getType(t)!==ue.undefined){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.void,received:r.parsedType}),we}return Kt(t.data)}}sc.create=e=>new sc({typeName:_e.ZodVoid,...Ee(e)});class Dn extends Re{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==ue.array)return ce(n,{code:te.invalid_type,expected:ue.array,received:n.parsedType}),we;if(a.exactLength!==null){const o=n.data.length>a.exactLength.value,s=n.data.length<a.exactLength.value;(o||s)&&(ce(n,{code:o?te.too_big:te.too_small,minimum:s?a.exactLength.value:void 0,maximum:o?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(ce(n,{code:te.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(ce(n,{code:te.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,s)=>a.type._parseAsync(new Gn(n,o,n.path,s)))).then(o=>Ht.mergeArray(r,o));const i=[...n.data].map((o,s)=>a.type._parseSync(new Gn(n,o,n.path,s)));return Ht.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Dn({...this._def,minLength:{value:t,message:me.toString(n)}})}max(t,n){return new Dn({...this._def,maxLength:{value:t,message:me.toString(n)}})}length(t,n){return new Dn({...this._def,exactLength:{value:t,message:me.toString(n)}})}nonempty(t){return this.min(1,t)}}Dn.create=(e,t)=>new Dn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:_e.ZodArray,...Ee(t)});function Na(e){if(e instanceof mt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=qn.create(Na(r))}return new mt({...e._def,shape:()=>t})}else return e instanceof Dn?new Dn({...e._def,type:Na(e.element)}):e instanceof qn?qn.create(Na(e.unwrap())):e instanceof Nr?Nr.create(Na(e.unwrap())):e instanceof Zn?Zn.create(e.items.map(t=>Na(t))):e}class mt extends Re{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=Fe.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==ue.object){const u=this._getOrReturnCtx(t);return ce(u,{code:te.invalid_type,expected:ue.object,received:u.parsedType}),we}const{status:r,ctx:a}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof hr&&this._def.unknownKeys==="strip"))for(const u in a.data)o.includes(u)||s.push(u);const c=[];for(const u of o){const l=i[u],d=a.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new Gn(a,d,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof hr){const u=this._def.unknownKeys;if(u==="passthrough")for(const l of s)c.push({key:{status:"valid",value:l},value:{status:"valid",value:a.data[l]}});else if(u==="strict")s.length>0&&(ce(a,{code:te.unrecognized_keys,keys:s}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const l of s){const d=a.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new Gn(a,d,a.path,l)),alwaysSet:l in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const u=[];for(const l of c){const d=await l.key,f=await l.value;u.push({key:d,value:f,alwaysSet:l.alwaysSet})}return u}).then(u=>Ht.mergeObjectSync(r,u)):Ht.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return me.errToObj,new mt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,i,o,s;const c=(o=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=me.errToObj(t).message)!==null&&s!==void 0?s:c}:{message:c}}}:{}})}strip(){return new mt({...this._def,unknownKeys:"strip"})}passthrough(){return new mt({...this._def,unknownKeys:"passthrough"})}extend(t){return new mt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new mt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:_e.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new mt({...this._def,catchall:t})}pick(t){const n={};return Fe.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new mt({...this._def,shape:()=>n})}omit(t){const n={};return Fe.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new mt({...this._def,shape:()=>n})}deepPartial(){return Na(this)}partial(t){const n={};return Fe.objectKeys(this.shape).forEach(r=>{const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}),new mt({...this._def,shape:()=>n})}required(t){const n={};return Fe.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof qn;)i=i._def.innerType;n[r]=i}}),new mt({...this._def,shape:()=>n})}keyof(){return C1(Fe.objectKeys(this.shape))}}mt.create=(e,t)=>new mt({shape:()=>e,unknownKeys:"strip",catchall:hr.create(),typeName:_e.ZodObject,...Ee(t)});mt.strictCreate=(e,t)=>new mt({shape:()=>e,unknownKeys:"strict",catchall:hr.create(),typeName:_e.ZodObject,...Ee(t)});mt.lazycreate=(e,t)=>new mt({shape:e,unknownKeys:"strip",catchall:hr.create(),typeName:_e.ZodObject,...Ee(t)});class vo extends Re{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(i){for(const s of i)if(s.result.status==="valid")return s.result;for(const s of i)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const o=i.map(s=>new gn(s.ctx.common.issues));return ce(n,{code:te.invalid_union,unionErrors:o}),we}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(a);{let i;const o=[];for(const c of r){const u={...n,common:{...n.common,issues:[]},parent:null},l=c._parseSync({data:n.data,path:n.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!i&&(i={result:l,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const s=o.map(c=>new gn(c));return ce(n,{code:te.invalid_union,unionErrors:s}),we}}get options(){return this._def.options}}vo.create=(e,t)=>new vo({options:e,typeName:_e.ZodUnion,...Ee(t)});const nr=e=>e instanceof xo?nr(e.schema):e instanceof Nn?nr(e.innerType()):e instanceof _o?[e.value]:e instanceof Ir?e.options:e instanceof wo?Fe.objectValues(e.enum):e instanceof To?nr(e._def.innerType):e instanceof mo?[void 0]:e instanceof go?[null]:e instanceof qn?[void 0,...nr(e.unwrap())]:e instanceof Nr?[null,...nr(e.unwrap())]:e instanceof kh||e instanceof ko?nr(e.unwrap()):e instanceof Co?nr(e._def.innerType):[];class au extends Re{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ue.object)return ce(n,{code:te.invalid_type,expected:ue.object,received:n.parsedType}),we;const r=this.discriminator,a=n.data[r],i=this.optionsMap.get(a);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(ce(n,{code:te.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),we)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const a=new Map;for(const i of n){const o=nr(i.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(a.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);a.set(s,i)}}return new au({typeName:_e.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a,...Ee(r)})}}function Jd(e,t){const n=Or(e),r=Or(t);if(e===t)return{valid:!0,data:e};if(n===ue.object&&r===ue.object){const a=Fe.objectKeys(t),i=Fe.objectKeys(e).filter(s=>a.indexOf(s)!==-1),o={...e,...t};for(const s of i){const c=Jd(e[s],t[s]);if(!c.valid)return{valid:!1};o[s]=c.data}return{valid:!0,data:o}}else if(n===ue.array&&r===ue.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let i=0;i<e.length;i++){const o=e[i],s=t[i],c=Jd(o,s);if(!c.valid)return{valid:!1};a.push(c.data)}return{valid:!0,data:a}}else return n===ue.date&&r===ue.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class yo extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(i,o)=>{if(Kd(i)||Kd(o))return we;const s=Jd(i.value,o.value);return s.valid?((Xd(i)||Xd(o))&&n.dirty(),{status:n.value,value:s.data}):(ce(r,{code:te.invalid_intersection_types}),we)};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(([i,o])=>a(i,o)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}yo.create=(e,t,n)=>new yo({left:e,right:t,typeName:_e.ZodIntersection,...Ee(n)});class Zn extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.array)return ce(r,{code:te.invalid_type,expected:ue.array,received:r.parsedType}),we;if(r.data.length<this._def.items.length)return ce(r,{code:te.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),we;!this._def.rest&&r.data.length>this._def.items.length&&(ce(r,{code:te.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,s)=>{const c=this._def.items[s]||this._def.rest;return c?c._parse(new Gn(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>Ht.mergeArray(n,o)):Ht.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Zn({...this._def,rest:t})}}Zn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Zn({items:e,typeName:_e.ZodTuple,rest:null,...Ee(t)})};class bo extends Re{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!==ue.object)return ce(r,{code:te.invalid_type,expected:ue.object,received:r.parsedType}),we;const a=[],i=this._def.keyType,o=this._def.valueType;for(const s in r.data)a.push({key:i._parse(new Gn(r,s,r.path,s)),value:o._parse(new Gn(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?Ht.mergeObjectAsync(n,a):Ht.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Re?new bo({keyType:t,valueType:n,typeName:_e.ZodRecord,...Ee(r)}):new bo({keyType:An.create(),valueType:t,typeName:_e.ZodRecord,...Ee(n)})}}class cc extends Re{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!==ue.map)return ce(r,{code:te.invalid_type,expected:ue.map,received:r.parsedType}),we;const a=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([s,c],u)=>({key:a._parse(new Gn(r,s,r.path,[u,"key"])),value:i._parse(new Gn(r,c,r.path,[u,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const c of o){const u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return we;(u.status==="dirty"||l.status==="dirty")&&n.dirty(),s.set(u.value,l.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const c of o){const u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return we;(u.status==="dirty"||l.status==="dirty")&&n.dirty(),s.set(u.value,l.value)}return{status:n.value,value:s}}}}cc.create=(e,t,n)=>new cc({valueType:t,keyType:e,typeName:_e.ZodMap,...Ee(n)});class da extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.set)return ce(r,{code:te.invalid_type,expected:ue.set,received:r.parsedType}),we;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(ce(r,{code:te.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(ce(r,{code:te.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const i=this._def.valueType;function o(c){const u=new Set;for(const l of c){if(l.status==="aborted")return we;l.status==="dirty"&&n.dirty(),u.add(l.value)}return{status:n.value,value:u}}const s=[...r.data.values()].map((c,u)=>i._parse(new Gn(r,c,r.path,u)));return r.common.async?Promise.all(s).then(c=>o(c)):o(s)}min(t,n){return new da({...this._def,minSize:{value:t,message:me.toString(n)}})}max(t,n){return new da({...this._def,maxSize:{value:t,message:me.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}da.create=(e,t)=>new da({valueType:e,minSize:null,maxSize:null,typeName:_e.ZodSet,...Ee(t)});class Ba extends Re{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ue.function)return ce(n,{code:te.invalid_type,expected:ue.function,received:n.parsedType}),we;function r(s,c){return ac({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,rc(),Ja].filter(u=>!!u),issueData:{code:te.invalid_arguments,argumentsError:c}})}function a(s,c){return ac({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,rc(),Ja].filter(u=>!!u),issueData:{code:te.invalid_return_type,returnTypeError:c}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof ei){const s=this;return Kt(async function(...c){const u=new gn([]),l=await s._def.args.parseAsync(c,i).catch(p=>{throw u.addIssue(r(c,p)),u}),d=await Reflect.apply(o,this,l);return await s._def.returns._def.type.parseAsync(d,i).catch(p=>{throw u.addIssue(a(d,p)),u})})}else{const s=this;return Kt(function(...c){const u=s._def.args.safeParse(c,i);if(!u.success)throw new gn([r(c,u.error)]);const l=Reflect.apply(o,this,u.data),d=s._def.returns.safeParse(l,i);if(!d.success)throw new gn([a(l,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ba({...this._def,args:Zn.create(t).rest(ra.create())})}returns(t){return new Ba({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ba({args:t||Zn.create([]).rest(ra.create()),returns:n||ra.create(),typeName:_e.ZodFunction,...Ee(r)})}}class xo extends Re{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})}}xo.create=(e,t)=>new xo({getter:e,typeName:_e.ZodLazy,...Ee(t)});class _o extends Re{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ce(n,{received:n.data,code:te.invalid_literal,expected:this._def.value}),we}return{status:"valid",value:t.data}}get value(){return this._def.value}}_o.create=(e,t)=>new _o({value:e,typeName:_e.ZodLiteral,...Ee(t)});function C1(e,t){return new Ir({values:e,typeName:_e.ZodEnum,...Ee(t)})}class Ir extends Re{constructor(){super(...arguments),Yi.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ce(n,{expected:Fe.joinValues(r),received:n.parsedType,code:te.invalid_type}),we}if(ic(this,Yi)||x1(this,Yi,new Set(this._def.values)),!ic(this,Yi).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ce(n,{received:n.data,code:te.invalid_enum_value,options:r}),we}return Kt(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 Ir.create(t,{...this._def,...n})}exclude(t,n=this._def){return Ir.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Yi=new WeakMap;Ir.create=C1;class wo extends Re{constructor(){super(...arguments),Gi.set(this,void 0)}_parse(t){const n=Fe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ue.string&&r.parsedType!==ue.number){const a=Fe.objectValues(n);return ce(r,{expected:Fe.joinValues(a),received:r.parsedType,code:te.invalid_type}),we}if(ic(this,Gi)||x1(this,Gi,new Set(Fe.getValidEnumValues(this._def.values))),!ic(this,Gi).has(t.data)){const a=Fe.objectValues(n);return ce(r,{received:r.data,code:te.invalid_enum_value,options:a}),we}return Kt(t.data)}get enum(){return this._def.values}}Gi=new WeakMap;wo.create=(e,t)=>new wo({values:e,typeName:_e.ZodNativeEnum,...Ee(t)});class ei extends Re{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ue.promise&&n.common.async===!1)return ce(n,{code:te.invalid_type,expected:ue.promise,received:n.parsedType}),we;const r=n.parsedType===ue.promise?n.data:Promise.resolve(n.data);return Kt(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ei.create=(e,t)=>new ei({type:e,typeName:_e.ZodPromise,...Ee(t)});class Nn extends Re{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===_e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,i={addIssue:o=>{ce(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const o=a.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async s=>{if(n.value==="aborted")return we;const c=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return c.status==="aborted"?we:c.status==="dirty"||n.value==="dirty"?Fa(c.value):c});{if(n.value==="aborted")return we;const s=this._def.schema._parseSync({data:o,path:r.path,parent:r});return s.status==="aborted"?we:s.status==="dirty"||n.value==="dirty"?Fa(s.value):s}}if(a.type==="refinement"){const o=s=>{const c=a.refinement(s,i);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"?we:(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"?we:(s.status==="dirty"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(a.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!fo(o))return o;const s=a.transform(o.value,i);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=>fo(o)?Promise.resolve(a.transform(o.value,i)).then(s=>({status:n.value,value:s})):o);Fe.assertNever(a)}}Nn.create=(e,t,n)=>new Nn({schema:e,typeName:_e.ZodEffects,effect:t,...Ee(n)});Nn.createWithPreprocess=(e,t,n)=>new Nn({schema:t,effect:{type:"preprocess",transform:e},typeName:_e.ZodEffects,...Ee(n)});class qn extends Re{_parse(t){return this._getType(t)===ue.undefined?Kt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}qn.create=(e,t)=>new qn({innerType:e,typeName:_e.ZodOptional,...Ee(t)});class Nr extends Re{_parse(t){return this._getType(t)===ue.null?Kt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Nr.create=(e,t)=>new Nr({innerType:e,typeName:_e.ZodNullable,...Ee(t)});class To extends Re{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ue.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}To.create=(e,t)=>new To({innerType:e,typeName:_e.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ee(t)});class Co extends Re{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ho(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new gn(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new gn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Co.create=(e,t)=>new Co({innerType:e,typeName:_e.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ee(t)});class uc extends Re{_parse(t){if(this._getType(t)!==ue.nan){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.nan,received:r.parsedType}),we}return{status:"valid",value:t.data}}}uc.create=e=>new uc({typeName:_e.ZodNaN,...Ee(e)});const TO=Symbol("zod_brand");class kh extends Re{_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 Ko extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?we:i.status==="dirty"?(n.dirty(),Fa(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?we:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new Ko({in:t,out:n,typeName:_e.ZodPipeline})}}class ko extends Re{_parse(t){const n=this._def.innerType._parse(t),r=a=>(fo(a)&&(a.value=Object.freeze(a.value)),a);return ho(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}ko.create=(e,t)=>new ko({innerType:e,typeName:_e.ZodReadonly,...Ee(t)});function k1(e,t={},n){return e?Qa.create().superRefine((r,a)=>{var i,o;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,c=(o=(i=s.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,u=typeof s=="string"?{message:s}:s;a.addIssue({code:"custom",...u,fatal:c})}}):Qa.create()}const CO={object:mt.lazycreate};var _e;(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"})(_e||(_e={}));const kO=(e,t={message:`Input not instance of ${e.name}`})=>k1(n=>n instanceof e,t),S1=An.create,O1=Pr.create,SO=uc.create,OO=Dr.create,E1=po.create,EO=la.create,$O=oc.create,MO=mo.create,RO=go.create,AO=Qa.create,jO=ra.create,PO=hr.create,DO=sc.create,IO=Dn.create,NO=mt.create,FO=mt.strictCreate,LO=vo.create,UO=au.create,BO=yo.create,WO=Zn.create,zO=bo.create,HO=cc.create,VO=da.create,qO=Ba.create,YO=xo.create,GO=_o.create,ZO=Ir.create,KO=wo.create,XO=ei.create,pg=Nn.create,JO=qn.create,QO=Nr.create,eE=Nn.createWithPreprocess,tE=Ko.create,nE=()=>S1().optional(),rE=()=>O1().optional(),aE=()=>E1().optional(),iE={string:e=>An.create({...e,coerce:!0}),number:e=>Pr.create({...e,coerce:!0}),boolean:e=>po.create({...e,coerce:!0}),bigint:e=>Dr.create({...e,coerce:!0}),date:e=>la.create({...e,coerce:!0})},oE=we;var Ft=Object.freeze({__proto__:null,defaultErrorMap:Ja,setErrorMap:oO,getErrorMap:rc,makeIssue:ac,EMPTY_PATH:sO,addIssueToContext:ce,ParseStatus:Ht,INVALID:we,DIRTY:Fa,OK:Kt,isAborted:Kd,isDirty:Xd,isValid:fo,isAsync:ho,get util(){return Fe},get objectUtil(){return Zd},ZodParsedType:ue,getParsedType:Or,ZodType:Re,datetimeRegex:T1,ZodString:An,ZodNumber:Pr,ZodBigInt:Dr,ZodBoolean:po,ZodDate:la,ZodSymbol:oc,ZodUndefined:mo,ZodNull:go,ZodAny:Qa,ZodUnknown:ra,ZodNever:hr,ZodVoid:sc,ZodArray:Dn,ZodObject:mt,ZodUnion:vo,ZodDiscriminatedUnion:au,ZodIntersection:yo,ZodTuple:Zn,ZodRecord:bo,ZodMap:cc,ZodSet:da,ZodFunction:Ba,ZodLazy:xo,ZodLiteral:_o,ZodEnum:Ir,ZodNativeEnum:wo,ZodPromise:ei,ZodEffects:Nn,ZodTransformer:Nn,ZodOptional:qn,ZodNullable:Nr,ZodDefault:To,ZodCatch:Co,ZodNaN:uc,BRAND:TO,ZodBranded:kh,ZodPipeline:Ko,ZodReadonly:ko,custom:k1,Schema:Re,ZodSchema:Re,late:CO,get ZodFirstPartyTypeKind(){return _e},coerce:iE,any:AO,array:IO,bigint:OO,boolean:E1,date:EO,discriminatedUnion:UO,effect:pg,enum:ZO,function:qO,instanceof:kO,intersection:BO,lazy:YO,literal:GO,map:HO,nan:SO,nativeEnum:KO,never:PO,null:RO,nullable:QO,number:O1,object:NO,oboolean:aE,onumber:rE,optional:JO,ostring:nE,pipeline:tE,preprocess:eE,promise:XO,record:zO,set:VO,strictObject:FO,string:S1,symbol:$O,transformer:pg,tuple:WO,undefined:MO,union:LO,unknown:jO,void:DO,NEVER:oE,ZodIssueCode:te,quotelessJson:iO,ZodError:gn});const iu=()=>{const{texts:{formValidation:e}}=h.useContext(bn),t=h.useCallback(v=>{let m=(v!=null&&v.useCoerce?Ft.coerce:Ft).string({invalid_type_error:e.required,required_error:e.required});return v!=null&&v.email&&(m=m.email(e.invalidEmail)),v!=null&&v.length&&(m=m.min(v.length,e.length(v.length))),v!=null&&v.minLength&&(m=m.min(v.minLength,e.minLength(v.minLength))),v!=null&&v.maxLength&&(m=m.max(v.maxLength,e.maxLength(v.maxLength))),v!=null&&v.numeric&&(m=m.regex(/^\d+$/,e.noCharactersOtherThanNumbers)),m.transform(x=>x??null)},[e]),n=h.useCallback(v=>t(v).nullable().optional().transform(m=>m??null),[t]),r=h.useCallback(v=>{const m=(v==null?void 0:v.min)??Number.MIN_SAFE_INTEGER,x=(v==null?void 0:v.max)??Number.MAX_SAFE_INTEGER,w=(v!=null&&v.useCoerce?Ft.coerce:Ft).number({invalid_type_error:e.required,required_error:e.required}).min(m,e.lessThanMin(m)).max(x,e.moreThanMax(x));return w.transform(b=>b??null),w},[e]),a=h.useCallback(v=>r(v).nullable().optional().transform(m=>m??null),[r]),i=h.useCallback(v=>(v!=null&&v.useCoerce?Ft.coerce:Ft).boolean({invalid_type_error:e.required,required_error:e.required}).transform(m=>m??null),[e.required]),o=h.useCallback(v=>(v!=null&&v.useCoerce?Ft.coerce:Ft).string({invalid_type_error:e.required,required_error:e.required}).refine(l1,{message:e.invalidDate}).transform(x=>x??null),[e.invalidDate,e.required]),s=h.useCallback(v=>o(v).nullable().transform(m=>m??null),[o]),c=h.useCallback((v,m)=>Ft.enum(v,{invalid_type_error:e.required,required_error:e.required}).transform(w=>w??null),[e.required]),u=h.useCallback((v,m)=>c(v,m).nullable().transform(x=>x??null),[c]),l=h.useCallback(v=>Ft.object({id:a({useCoerce:!0})}).nullable().transform(x=>x??null),[a]),d=h.useCallback(v=>Ft.object({id:r()}).transform(x=>x??null),[r]),f=h.useCallback(v=>Ft.object({id:n({useCoerce:!0})}).nullable().transform(x=>x??null),[n]),p=h.useCallback(v=>Ft.object({id:t()}).transform(x=>x??null),[t]),g=h.useCallback(({required:v,multiple:m,maxFileSize:x})=>Ft.any().transform(b=>Array.from(b??[])).refine(b=>!v||(b==null?void 0:b.length)>0,"File is required.").refine(b=>m||(b==null?void 0:b.length)<=1,"Multiple files not allowed.").refine(b=>b.every(T=>T.size<=x),`Maximum file size is ${tu(x)}.`).transform(b=>(m?b:b==null?void 0:b[0])??null),[]);return{zString:n,zStringRequired:t,zNumber:a,zNumberRequired:r,zBool:i,zDate:s,zDateRequired:o,zEnum:u,zEnumRequired:c,zObjectIdInt:l,zObjectIdIntRequired:d,zObjectIdStr:f,zObjectIdStrRequired:p,zFile:g}},$1=(e,t,n)=>h.useMemo(()=>n||e!=="date"&&e!=="datetime-local"&&e!=="time"||t?e:"text",[t,e,n]),Sh=h.createContext({useMsal:!1,msalInstance:null,msalScopes:[]}),M1=h.createContext({delegation:null,setDelegation:()=>{},availableDelegations:null,setAvailableDelegations:()=>{},refreshAvailableDelegations:async()=>{}}),R1=h.createContext({addHelmet:e=>{},removeHelmet:()=>{}}),sE="_button_1wjon_1",cE="_filled_1wjon_7",uE="_sm_1wjon_13",lE="_md_1wjon_18",dE="_lg_1wjon_23",ja={button:sE,filled:cE,sm:uE,md:lE,lg:dE},fa=({variant:e="filled",color:t="primary",size:n="md",className:r,children:a,...i})=>i.as==="link"?y.jsx(jc.Link,{to:i.href??"/",className:ie(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,ja.button,ja[e],ja[n]),...i,children:a}):i.as==="button"||i.as===void 0?y.jsx("button",{type:"button",className:ie(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,ja.button,ja[e],ja[n]),...i,children:a}):null,fE="_button_1r3i0_1",Qd={button:fE},ou=({color:e="primary",icon:t,className:n,children:r,...a})=>a.as==="link"?y.jsxs(jc.Link,{to:a.href??"/",className:ie(`luminus-context-button btn text-${e} ${n??""}`,Qd.button),...a,children:[t,r]}):a.as==="button"||a.as===void 0?y.jsxs("button",{type:"button",className:ie(`luminus-context-button btn text-${e} ${n??""}`,Qd.button),...a,children:[t,r]}):null,hE="_icon-button_15e26_1",pE="_sm_15e26_14",mE="_md_15e26_23",gE="_lg_15e26_32",gs={"icon-button":"_icon-button_15e26_1",iconButton:hE,sm:pE,md:mE,lg:gE},su=({type:e="button",color:t="primary",size:n="md",children:r,className:a,...i})=>i.as==="link"?y.jsx(jc.Link,{to:i.href??"/",className:ie(`luminus-icon-button btn text-${t} ${a??""}`,gs.iconButton,gs[n]),...i,children:r}):i.as==="button"||i.as===void 0?y.jsx("button",{type:e,className:ie(`luminus-icon-button btn text-${t} ${a??""}`,gs.iconButton,gs[n]),...i,children:r}):null,vE="_h1_14r4v_1",yE="_h3_14r4v_8",bE="_h6_14r4v_15",xE="_subtitle_14r4v_22",_E="_body_14r4v_29",wE="_body2_14r4v_36",TE="_caption_14r4v_43",CE="_form-label_14r4v_50",_r={h1:vE,h3:yE,h6:bE,subtitle:xE,body:_E,body2:wE,caption:TE,"form-label":"_form-label_14r4v_50",formLabel:CE},kE=({variant:e,className:t,children:n})=>{switch(e){case"h1":return y.jsx("h1",{className:ie("luminus-text-primary luminus-h1",_r.h1,t),children:n});case"h3":return y.jsx("h3",{className:ie("luminus-text luminus-h3",_r.h3,t),children:n});case"h6":return y.jsx("h6",{className:ie("luminus-text luminus-h6",_r.h6,t),children:n});case"subtitle":return y.jsx("div",{className:ie("luminus-text luminus-subtitle",_r.subtitle,t),children:n});case"body":return y.jsx("div",{className:ie("luminus-text luminus-body",_r.body,t),children:n});case"body2":return y.jsx("div",{className:ie("luminus-text luminus-body2",_r.body2,t),children:n});case"caption":return y.jsx("div",{className:ie("luminus-text-muted luminus-caption",_r.caption,t),children:n});case"form-label":return y.jsx("div",{className:ie("luminus-text luminus-form-label",_r.formLabel,t),children:n});default:return y.jsx(y.Fragment,{children:n})}},Oh=({variant:e,className:t,children:n})=>y.jsx(kE,{variant:e,className:t,children:n}),SE="_feedback_esh1j_1",OE="_feedback-spacer_esh1j_8",mg={feedback:SE,"feedback-spacer":"_feedback-spacer_esh1j_8",feedbackSpacer:OE},cu=({message:e})=>y.jsxs(y.Fragment,{children:[y.jsx("div",{className:ie("invalid-feedback luminus-invalid-feedback",mg.feedback),children:e}),y.jsx("div",{className:ie("invalid-feedback-spacer",mg.feedbackSpacer),children:e})]});function EE(e){return Ie({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 $E(e){return Ie({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 ME(e){return Ie({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 RE(e){return Ie({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)}const AE="_item_1dy8x_1",A1={item:AE},ef=({color:e="primary",icon:t,className:n,children:r,...a})=>y.jsxs(co.Item,{className:ie(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${n??""}`,A1.item),...a,children:[t,r]}),jE="_button_qhwih_1",PE={button:jE},j1=h.forwardRef(({color:e="primary",icon:t=y.jsx(Zk,{size:21}),text:n,onClick:r,className:a,children:i,...o},s)=>y.jsxs("button",{type:"button",ref:s,onClick:c=>{c.preventDefault(),r(c)},"aria-label":"dropdown toggle",className:ie(`btn luminus-context-button text-${e} ${a??""}`,PE.button),...o,children:[t,n]})),DE="_avatar-icon_1axl6_1",IE={"avatar-icon":"_avatar-icon_1axl6_1",avatarIcon:DE},P1=({name:e,fontSize:t,size:n})=>{const r=h.useMemo(()=>{const o=e.split(" ");return o.length<2?e:lo(" ",o.at(o.length-2),o.at(o.length-1))},[e]),a=h.useMemo(()=>{const o=r.split(" ");return lo("",...o.map(s=>s.at(0)??void 0))},[r]),i=o=>{let s=0,c;for(c=0;c<o.length;c+=1)s=o.charCodeAt(c)+((s<<5)-s);let u="#";for(c=0;c<3;c+=1){const l=s>>c*8&255;u+=`00${l.toString(16)}`.slice(-2)}return u};return y.jsx(Cb,{placement:"bottom",overlay:y.jsx(mh,{children:e}),children:y.jsx("div",{className:ie("luminus-avatar-icon",IE.avatarIcon),style:{backgroundColor:i(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:y.jsx("div",{children:a})})})},NE=h.forwardRef(({userName:e,onClick:t,children:n},r)=>y.jsxs("button",{type:"button",ref:r,onClick:a=>{a.preventDefault(),t(a)},"aria-label":"User avatar toggle",className:"m-0 p-0",style:{backgroundColor:"transparent",border:"none",cursor:"pointer"},children:[y.jsx(P1,{name:e}),n]})),D1=e=>y.jsx(co.Toggle,{...e}),FE="_dropdown_1lk66_1",LE={dropdown:FE},I1=({toggle:e,children:t,...n})=>y.jsxs(co,{...n,children:[e,y.jsx(co.Menu,{className:ie("luminus-dropdown rounded shadow",LE.dropdown),children:t})]}),UE="_floating-label_1lxzn_1",BE="_without-label_1lxzn_21",WE="_floating-label-check_1lxzn_184",Wl={"floating-label":"_floating-label_1lxzn_1",floatingLabel:UE,"without-label":"_without-label_1lxzn_21",withoutLabel:BE,"floating-label-check":"_floating-label-check_1lxzn_184",floatingLabelCheck:WE},N1=h.forwardRef(({hidden:e,children:t,className:n,isInvalid:r,isForRadioInput:a,inputContainerClassName:i,isForCheckInput:o,...s},c)=>o?y.jsx("div",{className:ie("luminus-floating-label-check",Wl.floatingLabelCheck),children:t}):y.jsx(uh,{ref:c,label:s.withoutLabel?"":s.label,hidden:e??!1,className:ie(`luminus-floating-label ${n??""}`,Wl.floatingLabel,{[i??""]:i},{[Wl.withoutLabel]:s.withoutLabel}),children:t}));N1.displayName="FloatingLabelInput";const zE="_row-label-input_mqkkx_1",HE="_label_mqkkx_4",VE="_input-container_mqkkx_9",qE="_invalid-feedback_mqkkx_104",YE="_keep-check-label_mqkkx_132",GE="_is-invalid_mqkkx_160",Di={"row-label-input":"_row-label-input_mqkkx_1",rowLabelInput:zE,label:HE,"input-container":"_input-container_mqkkx_9",inputContainer:VE,"invalid-feedback":"_invalid-feedback_mqkkx_104",invalidFeedback:qE,"keep-check-label":"_keep-check-label_mqkkx_132",keepCheckLabel:YE,"is-invalid":"_is-invalid_mqkkx_160",isInvalid:GE},Xo=h.forwardRef(({hidden:e,children:t,className:n,isInvalid:r,isForRadioInput:a,isForTextAreaInput:i,inputContainerClassName:o,...s},c)=>y.jsxs("div",{ref:c,className:ie("luminus-row-label row gx-0 gy-0",{"is-invalid":r},{[Di.isInvalid]:r},{[n??""]:n},{"d-none":e},Di.rowLabelInput),children:[!s.withoutLabel&&y.jsx("label",{className:ie("label col-6",{"col-12":i},Di.label),children:y.jsx(Oh,{variant:"form-label",className:r?"text-danger":"",children:s.label})}),y.jsx("div",{className:ie("input-container",Di.inputContainer,{"col-6":!s.withoutLabel&&!i},{"col-12":s.withoutLabel||i},{[Di.keepCheckLabel]:a},{[o??""]:o}),children:t})]}));Xo.displayName="RowLabelInput";const F1=h.forwardRef(({children:e,className:t,hidden:n},r)=>y.jsx("div",{ref:r,className:`${n?"d-none":""} ${t}`,children:e}));F1.displayName="NoInputContainer";const ZE=h.forwardRef(({onClick:e,text:t},n)=>y.jsx("div",{ref:n,onClick:r=>{r.preventDefault(),e(r)},role:"button",className:"middle-div",children:y.jsxs("div",{className:"d-flex flex-column align-items-center",children:[y.jsx("div",{className:"mt-",children:"…"}),y.jsx("div",{className:"mt-1 middle-letter",children:t})]})}));var Eh=Qo(),Se=e=>Jo(e,Eh),$h=Qo();Se.write=e=>Jo(e,$h);var uu=Qo();Se.onStart=e=>Jo(e,uu);var Mh=Qo();Se.onFrame=e=>Jo(e,Mh);var Rh=Qo();Se.onFinish=e=>Jo(e,Rh);var Wa=[];Se.setTimeout=(e,t)=>{const n=Se.now()+t,r=()=>{const i=Wa.findIndex(o=>o.cancel==r);~i&&Wa.splice(i,1),Mr-=~i?1:0},a={time:n,handler:e,cancel:r};return Wa.splice(L1(n),0,a),Mr+=1,U1(),a};var L1=e=>~(~Wa.findIndex(t=>t.time>e)||~Wa.length);Se.cancel=e=>{uu.delete(e),Mh.delete(e),Rh.delete(e),Eh.delete(e),$h.delete(e)};Se.sync=e=>{tf=!0,Se.batchedUpdates(e),tf=!1};Se.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...a){t=a,Se.onStart(n)}return r.handler=e,r.cancel=()=>{uu.delete(n),t=null},r};var Ah=typeof window<"u"?window.requestAnimationFrame:()=>{};Se.use=e=>Ah=e;Se.now=typeof performance<"u"?()=>performance.now():Date.now;Se.batchedUpdates=e=>e();Se.catch=console.error;Se.frameLoop="always";Se.advance=()=>{Se.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):W1()};var $r=-1,Mr=0,tf=!1;function Jo(e,t){tf?(t.delete(e),e(0)):(t.add(e),U1())}function U1(){$r<0&&($r=0,Se.frameLoop!=="demand"&&Ah(B1))}function KE(){$r=-1}function B1(){~$r&&(Ah(B1),Se.batchedUpdates(W1))}function W1(){const e=$r;$r=Se.now();const t=L1($r);if(t&&(z1(Wa.splice(0,t),n=>n.handler()),Mr-=t),!Mr){KE();return}uu.flush(),Eh.flush(e?Math.min(64,$r-e):16.667),Mh.flush(),$h.flush(),Rh.flush()}function Qo(){let e=new Set,t=e;return{add(n){Mr+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Mr-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Mr-=t.size,z1(t,r=>r(n)&&e.add(r)),Mr+=e.size,t=e)}}}function z1(e,t){e.forEach(n=>{try{t(n)}catch(r){Se.catch(r)}})}var XE=Object.defineProperty,JE=(e,t)=>{for(var n in t)XE(e,n,{get:t[n],enumerable:!0})},Fn={};JE(Fn,{assign:()=>e$,colors:()=>Ar,createStringInterpolator:()=>Ph,skipAnimation:()=>V1,to:()=>H1,willAdvance:()=>Dh});function nf(){}var QE=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ee={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 rr(e,t){if(ee.arr(e)){if(!ee.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 Ce=(e,t)=>e.forEach(t);function Kn(e,t,n){if(ee.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 Zt=e=>ee.und(e)?[]:ee.arr(e)?e:[e];function eo(e,t){if(e.size){const n=Array.from(e);e.clear(),Ce(n,t)}}var Zi=(e,...t)=>eo(e,n=>n(...t)),jh=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Ph,H1,Ar=null,V1=!1,Dh=nf,e$=e=>{e.to&&(H1=e.to),e.now&&(Se.now=e.now),e.colors!==void 0&&(Ar=e.colors),e.skipAnimation!=null&&(V1=e.skipAnimation),e.createStringInterpolator&&(Ph=e.createStringInterpolator),e.requestAnimationFrame&&Se.use(e.requestAnimationFrame),e.batchedUpdates&&(Se.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Dh=e.willAdvance),e.frameLoop&&(Se.frameLoop=e.frameLoop)},to=new Set,Tn=[],zl=[],lc=0,lu={get idle(){return!to.size&&!Tn.length},start(e){lc>e.priority?(to.add(e),Se.onStart(t$)):(q1(e),Se(rf))},advance:rf,sort(e){if(lc)Se.onFrame(()=>lu.sort(e));else{const t=Tn.indexOf(e);~t&&(Tn.splice(t,1),Y1(e))}},clear(){Tn=[],to.clear()}};function t$(){to.forEach(q1),to.clear(),Se(rf)}function q1(e){Tn.includes(e)||Y1(e)}function Y1(e){Tn.splice(n$(Tn,t=>t.priority>e.priority),0,e)}function rf(e){const t=zl;for(let n=0;n<Tn.length;n++){const r=Tn[n];lc=r.priority,r.idle||(Dh(r),r.advance(e),r.idle||t.push(r))}return lc=0,zl=Tn,zl.length=0,Tn=t,Tn.length>0}function n$(e,t){const n=e.findIndex(t);return n<0?e.length:n}var r$=(e,t,n)=>Math.min(Math.max(n,e),t),a$={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},jn="[-+]?\\d*\\.?\\d+",dc=jn+"%";function du(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var i$=new RegExp("rgb"+du(jn,jn,jn)),o$=new RegExp("rgba"+du(jn,jn,jn,jn)),s$=new RegExp("hsl"+du(jn,dc,dc)),c$=new RegExp("hsla"+du(jn,dc,dc,jn)),u$=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,l$=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,d$=/^#([0-9a-fA-F]{6})$/,f$=/^#([0-9a-fA-F]{8})$/;function h$(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=d$.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ar&&Ar[e]!==void 0?Ar[e]:(t=i$.exec(e))?(Pa(t[1])<<24|Pa(t[2])<<16|Pa(t[3])<<8|255)>>>0:(t=o$.exec(e))?(Pa(t[1])<<24|Pa(t[2])<<16|Pa(t[3])<<8|yg(t[4]))>>>0:(t=u$.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=f$.exec(e))?parseInt(t[1],16)>>>0:(t=l$.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=s$.exec(e))?(gg(vg(t[1]),vs(t[2]),vs(t[3]))|255)>>>0:(t=c$.exec(e))?(gg(vg(t[1]),vs(t[2]),vs(t[3]))|yg(t[4]))>>>0:null}function Hl(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 gg(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,i=Hl(a,r,e+1/3),o=Hl(a,r,e),s=Hl(a,r,e-1/3);return Math.round(i*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function Pa(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function vg(e){return(parseFloat(e)%360+360)%360/360}function yg(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function vs(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function bg(e){let t=h$(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,a=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${a}, ${i})`}var So=(e,t,n)=>{if(ee.fun(e))return e;if(ee.arr(e))return So({range:e,output:t,extrapolate:n});if(ee.str(e.output[0]))return Ph(e);const r=e,a=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",c=r.easing||(u=>u);return u=>{const l=m$(u,i);return p$(u,i[l],i[l+1],a[l],a[l+1],c,o,s,r.map)}};function p$(e,t,n,r,a,i,o,s,c){let u=c?c(e):e;if(u<t){if(o==="identity")return u;o==="clamp"&&(u=t)}if(u>n){if(s==="identity")return u;s==="clamp"&&(u=n)}return r===a?r:t===n?e<=t?r:a:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:a===1/0?u=u+r:u=u*(a-r)+r,u)}function m$(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var g$=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,a=t==="end"?Math.floor(r):Math.ceil(r);return r$(0,1,a/e)},fc=1.70158,ys=fc*1.525,xg=fc+1,_g=2*Math.PI/3,wg=2*Math.PI/4.5,bs=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,v$={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=>xg*e*e*e-fc*e*e,easeOutBack:e=>1+xg*Math.pow(e-1,3)+fc*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((ys+1)*2*e-ys)/2:(Math.pow(2*e-2,2)*((ys+1)*(e*2-2)+ys)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*_g),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*_g)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*wg))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*wg)/2+1,easeInBounce:e=>1-bs(1-e),easeOutBounce:bs,easeInOutBounce:e=>e<.5?(1-bs(1-2*e))/2:(1+bs(2*e-1))/2,steps:g$},Oo=Symbol.for("FluidValue.get"),ti=Symbol.for("FluidValue.observers"),wn=e=>!!(e&&e[Oo]),tn=e=>e&&e[Oo]?e[Oo]():e,Tg=e=>e[ti]||null;function y$(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Eo(e,t){const n=e[ti];n&&n.forEach(r=>{y$(r,t)})}var G1=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");b$(this,e)}},b$=(e,t)=>Z1(e,Oo,t);function pi(e,t){if(e[Oo]){let n=e[ti];n||Z1(e,ti,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function $o(e,t){const n=e[ti];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[ti]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Z1=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Is=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,x$=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Cg=new RegExp(`(${Is.source})(%|[a-z]+)`,"i"),_$=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,fu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,K1=e=>{const[t,n]=w$(e);if(!t||jh())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const a=window.getComputedStyle(document.documentElement).getPropertyValue(n);return a||e}else{if(n&&fu.test(n))return K1(n);if(n)return n}return e},w$=e=>{const t=fu.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Vl,T$=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,X1=e=>{Vl||(Vl=Ar?new RegExp(`(${Object.keys(Ar).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>tn(i).replace(fu,K1).replace(x$,bg).replace(Vl,bg)),n=t.map(i=>i.match(Is).map(Number)),a=n[0].map((i,o)=>n.map(s=>{if(!(o in s))throw Error('The arity of each "output" value must be equal');return s[o]})).map(i=>So({...e,output:i}));return i=>{var c;const o=!Cg.test(t[0])&&((c=t.find(u=>Cg.test(u)))==null?void 0:c.replace(Is,""));let s=0;return t[0].replace(Is,()=>`${a[s++](i)}${o||""}`).replace(_$,T$)}},Ih="react-spring: ",J1=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Ih}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},C$=J1(console.warn);function k$(){C$(`${Ih}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var S$=J1(console.warn);function O$(){S$(`${Ih}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 hu(e){return ee.str(e)&&(e[0]=="#"||/\d/.test(e)||!jh()&&fu.test(e)||e in(Ar||{}))}var Kr=jh()?h.useEffect:h.useLayoutEffect,E$=()=>{const e=h.useRef(!1);return Kr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Nh(){const e=h.useState()[1],t=E$();return()=>{t.current&&e(Math.random())}}function $$(e,t){const[n]=h.useState(()=>({inputs:t,result:e()})),r=h.useRef(),a=r.current;let i=a;return i?t&&i.inputs&&M$(t,i.inputs)||(i={inputs:t,result:e()}):i=n,h.useEffect(()=>{r.current=i,a==n&&(n.inputs=n.result=void 0)},[i]),i.result}function M$(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 Fh=e=>h.useEffect(e,R$),R$=[];function af(e){const t=h.useRef();return h.useEffect(()=>{t.current=e}),t.current}var Mo=Symbol.for("Animated:node"),A$=e=>!!e&&e[Mo]===e,zn=e=>e&&e[Mo],Lh=(e,t)=>QE(e,Mo,t),pu=e=>e&&e[Mo]&&e[Mo].getPayload(),Q1=class{constructor(){Lh(this,this)}getPayload(){return this.payload||[]}},es=class extends Q1{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,ee.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new es(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return ee.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,ee.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Ro=class extends es{constructor(e){super(0),this._string=null,this._toString=So({output:[e,e]})}static create(e){return new Ro(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(ee.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=So({output:[this.getValue(),e]})),this._value=0,super.reset()}},hc={dependencies:null},mu=class extends Q1{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Kn(this.source,(n,r)=>{A$(n)?t[r]=n.getValue(e):wn(n)?t[r]=tn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ce(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Kn(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){hc.dependencies&&wn(e)&&hc.dependencies.add(e);const t=pu(e);t&&Ce(t,n=>this.add(n))}},ex=class extends mu{constructor(e){super(e)}static create(e){return new ex(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(j$)),!0)}};function j$(e){return(hu(e)?Ro:es).create(e)}function of(e){const t=zn(e);return t?t.constructor:ee.arr(e)?ex:hu(e)?Ro:es}var kg=(e,t)=>{const n=!ee.fun(e)||e.prototype&&e.prototype.isReactComponent;return h.forwardRef((r,a)=>{const i=h.useRef(null),o=n&&h.useCallback(g=>{i.current=I$(a,g)},[a]),[s,c]=D$(r,t),u=Nh(),l=()=>{const g=i.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,s.getValue(!0)):!1)===!1&&u()},d=new P$(l,c),f=h.useRef();Kr(()=>(f.current=d,Ce(c,g=>pi(g,d)),()=>{f.current&&(Ce(f.current.deps,g=>$o(g,f.current)),Se.cancel(f.current.update))})),h.useEffect(l,[]),Fh(()=>()=>{const g=f.current;Ce(g.deps,v=>$o(v,g))});const p=t.getComponentProps(s.getValue());return oe.createElement(e,{...p,ref:o})})},P$=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Se.write(this.update)}};function D$(e,t){const n=new Set;return hc.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new mu(e),hc.dependencies=null,[e,n]}function I$(e,t){return e&&(ee.fun(e)?e(t):e.current=t),t}var Sg=Symbol.for("AnimatedComponent"),N$=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=a=>new mu(a),getComponentProps:r=a=>a}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=o=>{const s=Og(o)||"Anonymous";return ee.str(o)?o=i[o]||(i[o]=kg(o,a)):o=o[Sg]||(o[Sg]=kg(o,a)),o.displayName=`Animated(${s})`,o};return Kn(e,(o,s)=>{ee.arr(e)&&(s=Og(o)),i[s]=i(o)}),{animated:i}},Og=e=>ee.str(e)?e:e&&ee.str(e.displayName)?e.displayName:ee.fun(e)&&e.name||null;function nn(e,...t){return ee.fun(e)?e(...t):e}var no=(e,t)=>e===!0||!!(t&&e&&(ee.fun(e)?e(t):Zt(e).includes(t))),tx=(e,t)=>ee.obj(e)?t&&e[t]:e,nx=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,F$=e=>e,gu=(e,t=F$)=>{let n=L$;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const a of n){const i=t(e[a],a);ee.und(i)||(r[a]=i)}return r},L$=["config","onProps","onStart","onChange","onPause","onResume","onRest"],U$={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 B$(e){const t={};let n=0;if(Kn(e,(r,a)=>{U$[a]||(t[a]=r,n++)}),n)return t}function Uh(e){const t=B$(e);if(t){const n={to:t};return Kn(e,(r,a)=>a in t||(n[a]=r)),n}return{...e}}function Ao(e){return e=tn(e),ee.arr(e)?e.map(Ao):hu(e)?Fn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function rx(e){for(const t in e)return!0;return!1}function sf(e){return ee.fun(e)||ee.arr(e)&&ee.obj(e[0])}function cf(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function ax(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var Bh={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}},uf={...Bh.default,mass:1,damping:1,easing:v$.linear,clamp:!1},W$=class{constructor(){this.velocity=0,Object.assign(this,uf)}};function z$(e,t,n){n&&(n={...n},Eg(n,t),t={...n,...t}),Eg(e,t),Object.assign(e,t);for(const o in uf)e[o]==null&&(e[o]=uf[o]);let{frequency:r,damping:a}=e;const{mass:i}=e;return ee.und(r)||(r<.01&&(r=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*a*i/r),e}function Eg(e,t){if(!ee.und(t.decay))e.duration=void 0;else{const n=!ee.und(t.tension)||!ee.und(t.friction);(n||!ee.und(t.frequency)||!ee.und(t.damping)||!ee.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var $g=[],H$=class{constructor(){this.changed=!1,this.values=$g,this.toValues=null,this.fromValues=$g,this.config=new W$,this.immediate=!1}};function ix(e,{key:t,props:n,defaultProps:r,state:a,actions:i}){return new Promise((o,s)=>{let c,u,l=no(n.cancel??(r==null?void 0:r.cancel),t);if(l)p();else{ee.und(n.pause)||(a.paused=no(n.pause,t));let g=r==null?void 0:r.pause;g!==!0&&(g=a.paused||no(g,t)),c=nn(n.delay||0,t),g?(a.resumeQueue.add(f),i.pause()):(i.resume(),f())}function d(){a.resumeQueue.add(f),a.timeouts.delete(u),u.cancel(),c=u.time-Se.now()}function f(){c>0&&!Fn.skipAnimation?(a.delayed=!0,u=Se.setTimeout(p,c),a.pauseQueue.add(d),a.timeouts.add(u)):p()}function p(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(d),a.timeouts.delete(u),e<=(a.cancelId||0)&&(l=!0);try{i.start({...n,callId:e,cancel:l},o)}catch(g){s(g)}}})}var Wh=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?za(e.get()):t.every(n=>n.noop)?ox(e.get()):Mn(e.get(),t.every(n=>n.finished)),ox=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Mn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),za=e=>({value:e,cancelled:!0,finished:!1});function sx(e,t,n,r){const{callId:a,parentId:i,onRest:o}=t,{asyncTo:s,promise:c}=n;return!i&&e===s&&!t.reset?c:n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const u=gu(t,(m,x)=>x==="onRest"?void 0:m);let l,d;const f=new Promise((m,x)=>(l=m,d=x)),p=m=>{const x=a<=(n.cancelId||0)&&za(r)||a!==n.asyncId&&Mn(r,!1);if(x)throw m.result=x,d(m),m},g=(m,x)=>{const w=new Mg,b=new Rg;return(async()=>{if(Fn.skipAnimation)throw jo(n),b.result=Mn(r,!1),d(b),b;p(w);const T=ee.obj(m)?{...m}:{...x,to:m};T.parentId=a,Kn(u,(C,$)=>{ee.und(T[$])&&(T[$]=C)});const _=await r.start(T);return p(w),n.paused&&await new Promise(C=>{n.resumeQueue.add(C)}),_})()};let v;if(Fn.skipAnimation)return jo(n),Mn(r,!1);try{let m;ee.arr(e)?m=(async x=>{for(const w of x)await g(w)})(e):m=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([m.then(l),f]),v=Mn(r.get(),!0,!1)}catch(m){if(m instanceof Mg)v=m.result;else if(m instanceof Rg)v=m.result;else throw m}finally{a==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?c:void 0)}return ee.fun(o)&&Se.batchedUpdates(()=>{o(v,r,r.item)}),v})()}function jo(e,t){eo(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Mg=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.")}},Rg=class extends Error{constructor(){super("SkipAnimationSignal")}},lf=e=>e instanceof zh,V$=1,zh=class extends G1{constructor(){super(...arguments),this.id=V$++,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 Fn.to(this,e)}interpolate(...e){return k$(),Fn.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){Eo(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||lu.sort(this),Eo(this,{type:"priority",parent:this,priority:e})}},ha=Symbol.for("SpringPhase"),cx=1,df=2,ff=4,ql=e=>(e[ha]&cx)>0,wr=e=>(e[ha]&df)>0,Ii=e=>(e[ha]&ff)>0,Ag=(e,t)=>t?e[ha]|=df|cx:e[ha]&=~df,jg=(e,t)=>t?e[ha]|=ff:e[ha]&=~ff,q$=class extends zh{constructor(e,t){if(super(),this.animation=new H$,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,!ee.und(e)||!ee.und(t)){const n=ee.obj(e)?{...e}:{...t,from:e};ee.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(wr(this)||this._state.asyncTo)||Ii(this)}get goal(){return tn(this.animation.to)}get velocity(){const e=zn(this);return e instanceof es?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return ql(this)}get isAnimating(){return wr(this)}get isPaused(){return Ii(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:a}=r;const{config:i}=r,o=pu(r.to);!o&&wn(r.to)&&(a=Zt(tn(r.to))),r.values.forEach((u,l)=>{if(u.done)return;const d=u.constructor==Ro?1:o?o[l].lastPosition:a[l];let f=r.immediate,p=d;if(!f){if(p=u.lastPosition,i.tension<=0){u.done=!0;return}let g=u.elapsedTime+=e;const v=r.fromValues[l],m=u.v0!=null?u.v0:u.v0=ee.arr(i.velocity)?i.velocity[l]:i.velocity;let x;const w=i.precision||(v==d?.005:Math.min(1,Math.abs(d-v)*.001));if(ee.und(i.duration))if(i.decay){const b=i.decay===!0?.998:i.decay,T=Math.exp(-(1-b)*g);p=v+m/(1-b)*(1-T),f=Math.abs(u.lastPosition-p)<=w,x=m*T}else{x=u.lastVelocity==null?m:u.lastVelocity;const b=i.restVelocity||w/10,T=i.clamp?0:i.bounce,_=!ee.und(T),C=v==d?u.v0>0:v<d;let $,A=!1;const D=1,j=Math.ceil(e/D);for(let E=0;E<j&&($=Math.abs(x)>b,!(!$&&(f=Math.abs(d-p)<=w,f)));++E){_&&(A=p==d||p>d==C,A&&(x=-x*T,p=d));const F=-i.tension*1e-6*(p-d),M=-i.friction*.001*x,R=(F+M)/i.mass;x=x+R*D,p=p+x*D}}else{let b=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,g=u.elapsedTime+=e)),b=(i.progress||0)+g/this._memoizedDuration,b=b>1?1:b<0?0:b,u.durationProgress=b),p=v+i.easing(b)*(d-v),x=(p-u.lastPosition)/e,f=b==1}u.lastVelocity=x,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}o&&!o[l].done&&(f=!1),f?u.done=!0:t=!1,u.setValue(p,i.round)&&(n=!0)});const s=zn(this),c=s.getValue();if(t){const u=tn(r.to);(c!==u||n)&&!i.decay?(s.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(c),this._stop()}else n&&this._onChange(c)}set(e){return Se.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(wr(this)){const{to:e,config:t}=this.animation;Se.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 ee.und(e)?(n=this.queue||[],this.queue=[]):n=[ee.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Wh(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),jo(this._state,e&&this._lastCallId),Se.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=ee.obj(n)?n[t]:n,(n==null||sf(n))&&(n=void 0),r=ee.obj(r)?r[t]:r,r==null&&(r=void 0);const a={to:n,from:r};return ql(this)||(e.reverse&&([n,r]=[r,n]),r=tn(r),ee.und(r)?zn(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,gu(e,(o,s)=>/^on/.test(s)?tx(o,n):o)),Dg(this,e,"onProps"),Fi(this,"onProps",e,this);const a=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 i=this._state;return ix(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Ii(this)||(jg(this,!0),Zi(i.pauseQueue),Fi(this,"onPause",Mn(this,Ni(this,this.animation.to)),this))},resume:()=>{Ii(this)&&(jg(this,!1),wr(this)&&this._resume(),Zi(i.resumeQueue),Fi(this,"onResume",Mn(this,Ni(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=ux(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(za(this));const r=!ee.und(e.to),a=!ee.und(e.from);if(r||a)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(za(this));const{key:i,defaultProps:o,animation:s}=this,{to:c,from:u}=s;let{to:l=c,from:d=u}=e;a&&!r&&(!t.default||ee.und(l))&&(l=d),t.reverse&&([l,d]=[d,l]);const f=!rr(d,u);f&&(s.from=d),d=tn(d);const p=!rr(l,c);p&&this._focus(l);const g=sf(t.to),{config:v}=s,{decay:m,velocity:x}=v;(r||a)&&(v.velocity=0),t.config&&!g&&z$(v,nn(t.config,i),t.config!==o.config?nn(o.config,i):void 0);let w=zn(this);if(!w||ee.und(l))return n(Mn(this,!0));const b=ee.und(t.reset)?a&&!t.default:!ee.und(d)&&no(t.reset,i),T=b?d:this.get(),_=Ao(l),C=ee.num(_)||ee.arr(_)||hu(_),$=!g&&(!C||no(o.immediate||t.immediate,i));if(p){const E=of(l);if(E!==w.constructor)if($)w=this._set(_);else throw Error(`Cannot animate between ${w.constructor.name} and ${E.name}, as the "to" prop suggests`)}const A=w.constructor;let D=wn(l),j=!1;if(!D){const E=b||!ql(this)&&f;(p||E)&&(j=rr(Ao(T),_),D=!j),(!rr(s.immediate,$)&&!$||!rr(v.decay,m)||!rr(v.velocity,x))&&(D=!0)}if(j&&wr(this)&&(s.changed&&!b?D=!0:D||this._stop(c)),!g&&((D||wn(c))&&(s.values=w.getPayload(),s.toValues=wn(l)?null:A==Ro?[1]:Zt(_)),s.immediate!=$&&(s.immediate=$,!$&&!b&&this._set(c)),D)){const{onRest:E}=s;Ce(G$,M=>Dg(this,t,M));const F=Mn(this,Ni(this,c));Zi(this._pendingCalls,F),this._pendingCalls.add(n),s.changed&&Se.batchedUpdates(()=>{var M;s.changed=!b,E==null||E(F,this),b?nn(o.onRest,F):(M=s.onStart)==null||M.call(s,F,this)})}b&&this._set(T),g?n(sx(t.to,t,this._state,this)):D?this._start():wr(this)&&!p?this._pendingCalls.add(n):n(ox(T))}_focus(e){const t=this.animation;e!==t.to&&(Tg(this)&&this._detach(),t.to=e,Tg(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;wn(t)&&(pi(t,this),lf(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;wn(e)&&$o(e,this)}_set(e,t=!0){const n=tn(e);if(!ee.und(n)){const r=zn(this);if(!r||!rr(n,r.getValue())){const a=of(n);!r||r.constructor!=a?Lh(this,a.create(n)):r.setValue(n),r&&Se.batchedUpdates(()=>{this._onChange(n,t)})}}return zn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Fi(this,"onStart",Mn(this,Ni(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),nn(this.animation.onChange,e,this)),nn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;zn(this).reset(tn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),wr(this)||(Ag(this,!0),Ii(this)||this._resume())}_resume(){Fn.skipAnimation?this.finish():lu.start(this)}_stop(e,t){if(wr(this)){Ag(this,!1);const n=this.animation;Ce(n.values,a=>{a.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Eo(this,{type:"idle",parent:this});const r=t?za(this.get()):Mn(this.get(),Ni(this,e??n.to));Zi(this._pendingCalls,r),n.changed&&(n.changed=!1,Fi(this,"onRest",r,this))}}};function Ni(e,t){const n=Ao(t),r=Ao(e.get());return rr(r,n)}function ux(e,t=e.loop,n=e.to){const r=nn(t);if(r){const a=r!==!0&&Uh(r),i=(a||e).reverse,o=!a||a.reset;return Po({...e,loop:t,default:!1,pause:void 0,to:!i||sf(n)?n:void 0,from:o?e.from:void 0,reset:o,...a})}}function Po(e){const{to:t,from:n}=e=Uh(e),r=new Set;return ee.obj(t)&&Pg(t,r),ee.obj(n)&&Pg(n,r),e.keys=r.size?Array.from(r):null,e}function Y$(e){const t=Po(e);return ee.und(t.default)&&(t.default=gu(t)),t}function Pg(e,t){Kn(e,(n,r)=>n!=null&&t.add(r))}var G$=["onStart","onRest","onChange","onPause","onResume"];function Dg(e,t,n){e.animation[n]=t[n]!==nx(t,n)?tx(t[n],e.key):void 0}function Fi(e,t,...n){var r,a,i,o;(a=(r=e.animation)[t])==null||a.call(r,...n),(o=(i=e.defaultProps)[t])==null||o.call(i,...n)}var Z$=["onStart","onChange","onRest"],K$=1,lx=class{constructor(e,t){this.id=K$++,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];ee.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Po(e)),this}start(e){let{queue:t}=this;return e?t=Zt(e).map(Po):this.queue=[],this._flush?this._flush(this,t):(mx(this,t),hf(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ce(Zt(t),r=>n[r].stop(!!e))}else jo(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(ee.und(e))this.start({pause:!0});else{const t=this.springs;Ce(Zt(e),n=>t[n].pause())}return this}resume(e){if(ee.und(e))this.start({pause:!1});else{const t=this.springs;Ce(Zt(e),n=>t[n].resume())}return this}each(e){Kn(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,a=this._changed.size>0;(r&&!this._started||a&&!this._started)&&(this._started=!0,eo(e,([s,c])=>{c.value=this.get(),s(c,this,this._item)}));const i=!r&&this._started,o=a||i&&n.size?this.get():null;a&&t.size&&eo(t,([s,c])=>{c.value=o,s(c,this,this._item)}),i&&(this._started=!1,eo(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;Se.onFrame(this._onFrame)}};function hf(e,t){return Promise.all(t.map(n=>dx(e,n))).then(n=>Wh(e,n))}async function dx(e,t,n){const{keys:r,to:a,from:i,loop:o,onRest:s,onResolve:c}=t,u=ee.obj(t.default)&&t.default;o&&(t.loop=!1),a===!1&&(t.to=null),i===!1&&(t.from=null);const l=ee.arr(a)||ee.fun(a)?a:void 0;l?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Ce(Z$,v=>{const m=t[v];if(ee.fun(m)){const x=e._events[v];t[v]=({finished:w,cancelled:b})=>{const T=x.get(m);T?(w||(T.finished=!1),b&&(T.cancelled=!0)):x.set(m,{value:null,finished:w||!1,cancelled:b||!1})},u&&(u[v]=t[v])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Zi(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(v=>e.springs[v].start(t)),p=t.cancel===!0||nx(t,"cancel")===!0;(l||p&&d.asyncId)&&f.push(ix(++e._lastAsyncId,{props:t,state:d,actions:{pause:nf,resume:nf,start(v,m){p?(jo(d,e._lastAsyncId),m(za(e))):(v.onRest=s,m(sx(l,v,d,e)))}}})),d.paused&&await new Promise(v=>{d.resumeQueue.add(v)});const g=Wh(e,await Promise.all(f));if(o&&g.finished&&!(n&&g.noop)){const v=ux(t,o,a);if(v)return mx(e,[v]),dx(e,v,!0)}return c&&Se.batchedUpdates(()=>c(g,e,e.item)),g}function pf(e,t){const n={...e.springs};return t&&Ce(Zt(t),r=>{ee.und(r.keys)&&(r=Po(r)),ee.obj(r.to)||(r={...r,to:void 0}),px(n,r,a=>hx(a))}),fx(e,n),n}function fx(e,t){Kn(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,pi(n,e))})}function hx(e,t){const n=new q$;return n.key=e,t&&pi(n,t),n}function px(e,t,n){t.keys&&Ce(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function mx(e,t){Ce(t,n=>{px(e.springs,n,r=>hx(r,e))})}var ts=({children:e,...t})=>{const n=h.useContext(pc),r=t.pause||!!n.pause,a=t.immediate||!!n.immediate;t=$$(()=>({pause:r,immediate:a}),[r,a]);const{Provider:i}=pc;return oe.createElement(i,{value:t},e)},pc=X$(ts,{});ts.Provider=pc.Provider;ts.Consumer=pc.Consumer;function X$(e,t){return Object.assign(e,oe.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var gx=()=>{const e=[],t=function(r){O$();const a=[];return Ce(e,(i,o)=>{if(ee.und(r))a.push(i.start());else{const s=n(r,i,o);s&&a.push(i.start(s))}}),a};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const a=e.indexOf(r);~a&&e.splice(a,1)},t.pause=function(){return Ce(e,r=>r.pause(...arguments)),this},t.resume=function(){return Ce(e,r=>r.resume(...arguments)),this},t.set=function(r){Ce(e,(a,i)=>{const o=ee.fun(r)?r(i,a):r;o&&a.set(o)})},t.start=function(r){const a=[];return Ce(e,(i,o)=>{if(ee.und(r))a.push(i.start());else{const s=this._getProps(r,i,o);s&&a.push(i.start(s))}}),a},t.stop=function(){return Ce(e,r=>r.stop(...arguments)),this},t.update=function(r){return Ce(e,(a,i)=>a.update(this._getProps(r,a,i))),this};const n=function(r,a,i){return ee.fun(r)?r(i,a):r};return t._getProps=n,t};function J$(e,t,n){const r=ee.fun(t)&&t;r&&!n&&(n=[]);const a=h.useMemo(()=>r||arguments.length==3?gx():void 0,[]),i=h.useRef(0),o=Nh(),s=h.useMemo(()=>({ctrls:[],queue:[],flush(x,w){const b=pf(x,w);return i.current>0&&!s.queue.length&&!Object.keys(b).some(_=>!x.springs[_])?hf(x,w):new Promise(_=>{fx(x,b),s.queue.push(()=>{_(hf(x,w))}),o()})}}),[]),c=h.useRef([...s.ctrls]),u=[],l=af(e)||0;h.useMemo(()=>{Ce(c.current.slice(e,l),x=>{cf(x,a),x.stop(!0)}),c.current.length=e,d(l,e)},[e]),h.useMemo(()=>{d(0,Math.min(l,e))},n);function d(x,w){for(let b=x;b<w;b++){const T=c.current[b]||(c.current[b]=new lx(null,s.flush)),_=r?r(b,T):t[b];_&&(u[b]=Y$(_))}}const f=c.current.map((x,w)=>pf(x,u[w])),p=h.useContext(ts),g=af(p),v=p!==g&&rx(p);Kr(()=>{i.current++,s.ctrls=c.current;const{queue:x}=s;x.length&&(s.queue=[],Ce(x,w=>w())),Ce(c.current,(w,b)=>{a==null||a.add(w),v&&w.start({default:p});const T=u[b];T&&(ax(w,T.ref),w.ref?w.queue.push(T):w.start(T))})}),Fh(()=>()=>{Ce(s.ctrls,x=>x.stop(!0))});const m=f.map(x=>({...x}));return a?[m,a]:m}function vr(e,t){const n=ee.fun(e),[[r],a]=J$(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,a]:r}function xa(e,t,n){const r=ee.fun(t)&&t,{reset:a,sort:i,trail:o=0,expires:s=!0,exitBeforeEnter:c=!1,onDestroyed:u,ref:l,config:d}=r?r():t,f=h.useMemo(()=>r||arguments.length==3?gx():void 0,[]),p=Zt(e),g=[],v=h.useRef(null),m=a?null:v.current;Kr(()=>{v.current=g}),Fh(()=>(Ce(g,R=>{f==null||f.add(R.ctrl),R.ctrl.ref=f}),()=>{Ce(v.current,R=>{R.expired&&clearTimeout(R.expirationId),cf(R.ctrl,f),R.ctrl.stop(!0)})}));const x=e8(p,r?r():t,m),w=a&&v.current||[];Kr(()=>Ce(w,({ctrl:R,item:I,key:U})=>{cf(R,f),nn(u,I,U)}));const b=[];if(m&&Ce(m,(R,I)=>{R.expired?(clearTimeout(R.expirationId),w.push(R)):(I=b[I]=x.indexOf(R.key),~I&&(g[I]=R))}),Ce(p,(R,I)=>{g[I]||(g[I]={key:x[I],item:R,phase:"mount",ctrl:new lx},g[I].ctrl.item=R)}),b.length){let R=-1;const{leave:I}=r?r():t;Ce(b,(U,N)=>{const q=m[N];~U?(R=g.indexOf(q),g[R]={...q,item:p[U]}):I&&g.splice(++R,0,q)})}ee.fun(i)&&g.sort((R,I)=>i(R.item,I.item));let T=-o;const _=Nh(),C=gu(t),$=new Map,A=h.useRef(new Map),D=h.useRef(!1);Ce(g,(R,I)=>{const U=R.key,N=R.phase,q=r?r():t;let z,P;const W=nn(q.delay||0,U);if(N=="mount")z=q.enter,P="enter";else{const Q=x.indexOf(U)<0;if(N!="leave")if(Q)z=q.leave,P="leave";else if(z=q.update)P="update";else return;else if(!Q)z=q.enter,P="enter";else return}if(z=nn(z,R.item,I),z=ee.obj(z)?Uh(z):{to:z},!z.config){const Q=d||C.config;z.config=nn(Q,R.item,I,P)}T+=o;const Z={...C,delay:W+T,ref:l,immediate:q.immediate,reset:!1,...z};if(P=="enter"&&ee.und(Z.from)){const Q=r?r():t,G=ee.und(Q.initial)||m?Q.from:Q.initial;Z.from=nn(G,R.item,I)}const{onResolve:ne}=Z;Z.onResolve=Q=>{nn(ne,Q);const G=v.current,J=G.find(re=>re.key===U);if(J&&!(Q.cancelled&&J.phase!="update")&&J.ctrl.idle){const re=G.every(L=>L.ctrl.idle);if(J.phase=="leave"){const L=nn(s,J.item);if(L!==!1){const V=L===!0?0:L;if(J.expired=!0,!re&&V>0){V<=2147483647&&(J.expirationId=setTimeout(_,V));return}}}re&&G.some(L=>L.expired)&&(A.current.delete(J),c&&(D.current=!0),_())}};const Y=pf(R.ctrl,Z);P==="leave"&&c?A.current.set(R,{phase:P,springs:Y,payload:Z}):$.set(R,{phase:P,springs:Y,payload:Z})});const j=h.useContext(ts),E=af(j),F=j!==E&&rx(j);Kr(()=>{F&&Ce(g,R=>{R.ctrl.start({default:j})})},[j]),Ce($,(R,I)=>{if(A.current.size){const U=g.findIndex(N=>N.key===I.key);g.splice(U,1)}}),Kr(()=>{Ce(A.current.size?A.current:$,({phase:R,payload:I},U)=>{const{ctrl:N}=U;U.phase=R,f==null||f.add(N),F&&R=="enter"&&N.start({default:j}),I&&(ax(N,I.ref),(N.ref||f)&&!D.current?N.update(I):(N.start(I),D.current&&(D.current=!1)))})},a?void 0:n);const M=R=>oe.createElement(oe.Fragment,null,g.map((I,U)=>{const{springs:N}=$.get(I)||I.ctrl,q=R({...N},I.item,I,U);return q&&q.type?oe.createElement(q.type,{...q.props,key:ee.str(I.key)||ee.num(I.key)?I.key:I.ctrl.id,ref:q.ref}):q}));return f?[M,f]:M}var Q$=1;function e8(e,{key:t,keys:n=t},r){if(n===null){const a=new Set;return e.map(i=>{const o=r&&r.find(s=>s.item===i&&s.phase!=="leave"&&!a.has(s));return o?(a.add(o),o.key):Q$++})}return ee.und(n)?e:ee.fun(n)?e.map(n):Zt(n)}var vx=class extends zh{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=So(...t);const n=this._get(),r=of(n);Lh(this,r.create(n))}advance(e){const t=this._get(),n=this.get();rr(t,n)||(zn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Ig(this._active)&&Yl(this)}_get(){const e=ee.arr(this.source)?this.source.map(tn):Zt(tn(this.source));return this.calc(...e)}_start(){this.idle&&!Ig(this._active)&&(this.idle=!1,Ce(pu(this),e=>{e.done=!1}),Fn.skipAnimation?(Se.batchedUpdates(()=>this.advance()),Yl(this)):lu.start(this))}_attach(){let e=1;Ce(Zt(this.source),t=>{wn(t)&&pi(t,this),lf(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Ce(Zt(this.source),e=>{wn(e)&&$o(e,this)}),this._active.clear(),Yl(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=Zt(this.source).reduce((t,n)=>Math.max(t,(lf(n)?n.priority:0)+1),0))}};function t8(e){return e.idle!==!1}function Ig(e){return!e.size||Array.from(e).every(t8)}function Yl(e){e.idle||(e.idle=!0,Ce(pu(e),t=>{t.done=!0}),Eo(e,{type:"idle",parent:e}))}var Fr=(e,...t)=>new vx(e,t);Fn.assign({createStringInterpolator:X1,to:(e,t)=>new vx(e,t)});var yx=/^--/;function n8(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!yx.test(e)&&!(ro.hasOwnProperty(e)&&ro[e])?t+"px":(""+t).trim()}var Ng={};function r8(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:a,scrollTop:i,scrollLeft:o,viewBox:s,...c}=t,u=Object.values(c),l=Object.keys(c).map(d=>n||e.hasAttribute(d)?d:Ng[d]||(Ng[d]=d.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));a!==void 0&&(e.textContent=a);for(const d in r)if(r.hasOwnProperty(d)){const f=n8(d,r[d]);yx.test(d)?e.style.setProperty(d,f):e.style[d]=f}l.forEach((d,f)=>{e.setAttribute(d,u[f])}),i!==void 0&&(e.scrollTop=i),o!==void 0&&(e.scrollLeft=o),s!==void 0&&e.setAttribute("viewBox",s)}var ro={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},a8=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),i8=["Webkit","Ms","Moz","O"];ro=Object.keys(ro).reduce((e,t)=>(i8.forEach(n=>e[a8(n,t)]=e[t]),e),ro);var o8=/^(matrix|translate|scale|rotate|skew)/,s8=/^(translate)/,c8=/^(rotate|skew)/,Gl=(e,t)=>ee.num(e)&&e!==0?e+t:e,Ns=(e,t)=>ee.arr(e)?e.every(n=>Ns(n,t)):ee.num(e)?e===t:parseFloat(e)===t,u8=class extends mu{constructor({x:e,y:t,z:n,...r}){const a=[],i=[];(e||t||n)&&(a.push([e||0,t||0,n||0]),i.push(o=>[`translate3d(${o.map(s=>Gl(s,"px")).join(",")})`,Ns(o,0)])),Kn(r,(o,s)=>{if(s==="transform")a.push([o||""]),i.push(c=>[c,c===""]);else if(o8.test(s)){if(delete r[s],ee.und(o))return;const c=s8.test(s)?"px":c8.test(s)?"deg":"";a.push(Zt(o)),i.push(s==="rotate3d"?([u,l,d,f])=>[`rotate3d(${u},${l},${d},${Gl(f,c)})`,Ns(f,0)]:u=>[`${s}(${u.map(l=>Gl(l,c)).join(",")})`,Ns(u,s.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new l8(a,i)),super(r)}},l8=class extends G1{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 Ce(this.inputs,(n,r)=>{const a=tn(n[0]),[i,o]=this.transforms[r](ee.arr(a)?a:n.map(tn));e+=" "+i,t=t&&o}),t?"none":e}observerAdded(e){e==1&&Ce(this.inputs,t=>Ce(t,n=>wn(n)&&pi(n,this)))}observerRemoved(e){e==0&&Ce(this.inputs,t=>Ce(t,n=>wn(n)&&$o(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Eo(this,e)}},d8=["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"];Fn.assign({batchedUpdates:Er.unstable_batchedUpdates,createStringInterpolator:X1,colors:a$});var f8=N$(d8,{applyAnimatedValues:r8,createAnimatedStyle:e=>new u8(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Qe=f8.animated;function pa(){return pa=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},pa.apply(this,arguments)}var h8={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},Fg=function(e,t){return"translate("+e+"px, "+t+"px)"},bx=h.memo(function(e){var t,n=e.position,r=e.anchor,a=e.children,i=lt(),o=un(),s=o.animate,c=o.config,u=u_(),l=u[0],d=u[1],f=h.useRef(!1),p=void 0,g=!1,v=d.width>0&&d.height>0,m=Math.round(n[0]),x=Math.round(n[1]);v&&(r==="top"?(m-=d.width/2,x-=d.height+14):r==="right"?(m+=14,x-=d.height/2):r==="bottom"?(m-=d.width/2,x+=14):r==="left"?(m-=d.width+14,x-=d.height/2):r==="center"&&(m-=d.width/2,x-=d.height/2),p={transform:Fg(m,x)},f.current||(g=!0),f.current=[m,x]);var w=vr({to:p,config:c,immediate:!s||g}),b=pa({},h8,i.tooltip.wrapper,{transform:(t=w.transform)!=null?t:Fg(m,x),opacity:w.transform?1:0});return y.jsx(Qe.div,{ref:l,style:b,children:a})});bx.displayName="TooltipWrapper";var p8=h.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,a=e.style;return y.jsx("span",{style:pa({display:"block",width:n,height:n,background:r},a===void 0?{}:a)})}),xx=h.memo(function(e){var t,n=e.id,r=e.value,a=e.format,i=e.enableChip,o=i!==void 0&&i,s=e.color,c=e.renderContent,u=lt(),l=pl(a);if(typeof c=="function")t=c();else{var d=r;l!==void 0&&d!==void 0&&(d=l(d)),t=y.jsxs("div",{style:u.tooltip.basic,children:[o&&y.jsx(p8,{color:s,style:u.tooltip.chip}),d!==void 0?y.jsxs("span",{children:[n,": ",y.jsx("strong",{children:""+d})]}):n]})}return y.jsx("div",{style:u.tooltip.container,children:t})}),m8={width:"100%",borderCollapse:"collapse"},g8=h.memo(function(e){var t,n=e.title,r=e.rows,a=r===void 0?[]:r,i=e.renderContent,o=lt();return a.length?(t=typeof i=="function"?i():y.jsxs("div",{children:[n&&n,y.jsx("table",{style:pa({},m8,o.tooltip.table),children:y.jsx("tbody",{children:a.map(function(s,c){return y.jsx("tr",{children:s.map(function(u,l){return y.jsx("td",{style:o.tooltip.tableCell,children:u},l)})},c)})})})]}),y.jsx("div",{style:o.tooltip.container,children:t})):null});g8.displayName="TableTooltip";var mf=h.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,a=e.y1,i=lt(),o=un(),s=o.animate,c=o.config,u=h.useMemo(function(){return pa({},i.crosshair.line,{pointerEvents:"none"})},[i.crosshair.line]),l=vr({x1:t,x2:n,y1:r,y2:a,config:c,immediate:!s});return y.jsx(Qe.line,pa({},l,{fill:"none",style:u}))});mf.displayName="CrosshairLine";var v8=h.memo(function(e){var t,n,r=e.width,a=e.height,i=e.type,o=e.x,s=e.y;return i==="cross"?(t={x0:o,x1:o,y0:0,y1:a},n={x0:0,x1:r,y0:s,y1:s}):i==="top-left"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):i==="top"?t={x0:o,x1:o,y0:0,y1:s}:i==="top-right"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:r,y0:s,y1:s}):i==="right"?n={x0:o,x1:r,y0:s,y1:s}:i==="bottom-right"?(t={x0:o,x1:o,y0:s,y1:a},n={x0:o,x1:r,y0:s,y1:s}):i==="bottom"?t={x0:o,x1:o,y0:s,y1:a}:i==="bottom-left"?(t={x0:o,x1:o,y0:s,y1:a},n={x0:0,x1:o,y0:s,y1:s}):i==="left"?n={x0:0,x1:o,y0:s,y1:s}:i==="x"?t={x0:o,x1:o,y0:0,y1:a}:i==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),y.jsxs(y.Fragment,{children:[t&&y.jsx(mf,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&y.jsx(mf,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});v8.displayName="Crosshair";var _x=h.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),gf={isVisible:!1,position:[null,null],content:null,anchor:null},wx=h.createContext(gf),y8=function(e){var t=h.useState(gf),n=t[0],r=t[1],a=h.useCallback(function(s,c,u){var l=c[0],d=c[1];u===void 0&&(u="top"),r({isVisible:!0,position:[l,d],anchor:u,content:s})},[r]),i=h.useCallback(function(s,c,u){u===void 0&&(u="top");var l=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===l.width?1:d/l.width,p="touches"in c?c.touches[0]:c,g=p.clientX,v=p.clientY,m=(g-l.left)*f,x=(v-l.top)*f;u!=="left"&&u!=="right"||(u=m<l.width/2?"right":"left"),r({isVisible:!0,position:[m,x],anchor:u,content:s})},[e,r]),o=h.useCallback(function(){r(gf)},[r]);return{actions:h.useMemo(function(){return{showTooltipAt:a,showTooltipFromEvent:i,hideTooltip:o}},[a,i,o]),state:n}},Hh=function(){var e=h.useContext(_x);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},b8=function(){var e=h.useContext(wx);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},x8=function(e){return e.isVisible},_8=function(){var e=b8();return x8(e)?y.jsx(bx,{position:e.position,anchor:e.anchor,children:e.content}):null},w8=function(e){var t=e.container,n=e.children,r=y8(t),a=r.actions,i=r.state;return y.jsx(_x.Provider,{value:a,children:y.jsx(wx.Provider,{value:i,children:n})})};function T8(){this.__data__=[],this.size=0}var C8=T8;function k8(e,t){return e===t||e!==e&&t!==t}var ns=k8,S8=ns;function O8(e,t){for(var n=e.length;n--;)if(S8(e[n][0],t))return n;return-1}var vu=O8,E8=vu,$8=Array.prototype,M8=$8.splice;function R8(e){var t=this.__data__,n=E8(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():M8.call(t,n,1),--this.size,!0}var A8=R8,j8=vu;function P8(e){var t=this.__data__,n=j8(t,e);return n<0?void 0:t[n][1]}var D8=P8,I8=vu;function N8(e){return I8(this.__data__,e)>-1}var F8=N8,L8=vu;function U8(e,t){var n=this.__data__,r=L8(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var B8=U8,W8=C8,z8=A8,H8=D8,V8=F8,q8=B8;function mi(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])}}mi.prototype.clear=W8;mi.prototype.delete=z8;mi.prototype.get=H8;mi.prototype.has=V8;mi.prototype.set=q8;var yu=mi,Y8=yu;function G8(){this.__data__=new Y8,this.size=0}var Z8=G8;function K8(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var X8=K8;function J8(e){return this.__data__.get(e)}var Q8=J8;function eM(e){return this.__data__.has(e)}var tM=eM,nM=typeof cs=="object"&&cs&&cs.Object===Object&&cs,Tx=nM,rM=Tx,aM=typeof self=="object"&&self&&self.Object===Object&&self,iM=rM||aM||Function("return this")(),Qn=iM,oM=Qn,sM=oM.Symbol,gi=sM,Lg=gi,Cx=Object.prototype,cM=Cx.hasOwnProperty,uM=Cx.toString,Li=Lg?Lg.toStringTag:void 0;function lM(e){var t=cM.call(e,Li),n=e[Li];try{e[Li]=void 0;var r=!0}catch{}var a=uM.call(e);return r&&(t?e[Li]=n:delete e[Li]),a}var dM=lM,fM=Object.prototype,hM=fM.toString;function pM(e){return hM.call(e)}var mM=pM,Ug=gi,gM=dM,vM=mM,yM="[object Null]",bM="[object Undefined]",Bg=Ug?Ug.toStringTag:void 0;function xM(e){return e==null?e===void 0?bM:yM:Bg&&Bg in Object(e)?gM(e):vM(e)}var zr=xM;function _M(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var er=_M,wM=zr,TM=er,CM="[object AsyncFunction]",kM="[object Function]",SM="[object GeneratorFunction]",OM="[object Proxy]";function EM(e){if(!TM(e))return!1;var t=wM(e);return t==kM||t==SM||t==CM||t==OM}var bu=EM;const kx=Tt(bu);var $M=Qn,MM=$M["__core-js_shared__"],RM=MM,Zl=RM,Wg=function(){var e=/[^.]+$/.exec(Zl&&Zl.keys&&Zl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function AM(e){return!!Wg&&Wg in e}var jM=AM,PM=Function.prototype,DM=PM.toString;function IM(e){if(e!=null){try{return DM.call(e)}catch{}try{return e+""}catch{}}return""}var Sx=IM,NM=bu,FM=jM,LM=er,UM=Sx,BM=/[\\^$.*+?()[\]{}|]/g,WM=/^\[object .+?Constructor\]$/,zM=Function.prototype,HM=Object.prototype,VM=zM.toString,qM=HM.hasOwnProperty,YM=RegExp("^"+VM.call(qM).replace(BM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function GM(e){if(!LM(e)||FM(e))return!1;var t=NM(e)?YM:WM;return t.test(UM(e))}var ZM=GM;function KM(e,t){return e==null?void 0:e[t]}var XM=KM,JM=ZM,QM=XM;function e7(e,t){var n=QM(e,t);return JM(n)?n:void 0}var _a=e7,t7=_a,n7=Qn,r7=t7(n7,"Map"),Vh=r7,a7=_a,i7=a7(Object,"create"),xu=i7,zg=xu;function o7(){this.__data__=zg?zg(null):{},this.size=0}var s7=o7;function c7(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var u7=c7,l7=xu,d7="__lodash_hash_undefined__",f7=Object.prototype,h7=f7.hasOwnProperty;function p7(e){var t=this.__data__;if(l7){var n=t[e];return n===d7?void 0:n}return h7.call(t,e)?t[e]:void 0}var m7=p7,g7=xu,v7=Object.prototype,y7=v7.hasOwnProperty;function b7(e){var t=this.__data__;return g7?t[e]!==void 0:y7.call(t,e)}var x7=b7,_7=xu,w7="__lodash_hash_undefined__";function T7(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=_7&&t===void 0?w7:t,this}var C7=T7,k7=s7,S7=u7,O7=m7,E7=x7,$7=C7;function vi(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])}}vi.prototype.clear=k7;vi.prototype.delete=S7;vi.prototype.get=O7;vi.prototype.has=E7;vi.prototype.set=$7;var M7=vi,Hg=M7,R7=yu,A7=Vh;function j7(){this.size=0,this.__data__={hash:new Hg,map:new(A7||R7),string:new Hg}}var P7=j7;function D7(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var I7=D7,N7=I7;function F7(e,t){var n=e.__data__;return N7(t)?n[typeof t=="string"?"string":"hash"]:n.map}var _u=F7,L7=_u;function U7(e){var t=L7(this,e).delete(e);return this.size-=t?1:0,t}var B7=U7,W7=_u;function z7(e){return W7(this,e).get(e)}var H7=z7,V7=_u;function q7(e){return V7(this,e).has(e)}var Y7=q7,G7=_u;function Z7(e,t){var n=G7(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var K7=Z7,X7=P7,J7=B7,Q7=H7,e9=Y7,t9=K7;function yi(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])}}yi.prototype.clear=X7;yi.prototype.delete=J7;yi.prototype.get=Q7;yi.prototype.has=e9;yi.prototype.set=t9;var qh=yi,n9=yu,r9=Vh,a9=qh,i9=200;function o9(e,t){var n=this.__data__;if(n instanceof n9){var r=n.__data__;if(!r9||r.length<i9-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new a9(r)}return n.set(e,t),this.size=n.size,this}var s9=o9,c9=yu,u9=Z8,l9=X8,d9=Q8,f9=tM,h9=s9;function bi(e){var t=this.__data__=new c9(e);this.size=t.size}bi.prototype.clear=u9;bi.prototype.delete=l9;bi.prototype.get=d9;bi.prototype.has=f9;bi.prototype.set=h9;var wu=bi,p9=_a,m9=function(){try{var e=p9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ox=m9,Vg=Ox;function g9(e,t,n){t=="__proto__"&&Vg?Vg(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Yh=g9,v9=Yh,y9=ns;function b9(e,t,n){(n!==void 0&&!y9(e[t],n)||n===void 0&&!(t in e))&&v9(e,t,n)}var Ex=b9;function x9(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++a];if(n(i[c],c,i)===!1)break}return t}}var _9=x9,w9=_9,T9=w9(),$x=T9,mc={exports:{}};mc.exports;(function(e,t){var n=Qn,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;function c(u,l){if(l)return u.slice();var d=u.length,f=s?s(d):new u.constructor(d);return u.copy(f),f}e.exports=c})(mc,mc.exports);var Mx=mc.exports,C9=Qn,k9=C9.Uint8Array,Rx=k9,qg=Rx;function S9(e){var t=new e.constructor(e.byteLength);return new qg(t).set(new qg(e)),t}var Gh=S9,O9=Gh;function E9(e,t){var n=t?O9(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Ax=E9;function $9(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var jx=$9,M9=er,Yg=Object.create,R9=function(){function e(){}return function(t){if(!M9(t))return{};if(Yg)return Yg(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),A9=R9;function j9(e,t){return function(n){return e(t(n))}}var Px=j9,P9=Px,D9=P9(Object.getPrototypeOf,Object),Zh=D9,I9=Object.prototype;function N9(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||I9;return e===n}var Kh=N9,F9=A9,L9=Zh,U9=Kh;function B9(e){return typeof e.constructor=="function"&&!U9(e)?F9(L9(e)):{}}var Dx=B9;function W9(e){return e!=null&&typeof e=="object"}var Un=W9,z9=zr,H9=Un,V9="[object Arguments]";function q9(e){return H9(e)&&z9(e)==V9}var Y9=q9,Gg=Y9,G9=Un,Ix=Object.prototype,Z9=Ix.hasOwnProperty,K9=Ix.propertyIsEnumerable,X9=Gg(function(){return arguments}())?Gg:function(e){return G9(e)&&Z9.call(e,"callee")&&!K9.call(e,"callee")},Tu=X9,J9=Array.isArray,cn=J9,Q9=9007199254740991;function eR(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Q9}var Xh=eR,tR=bu,nR=Xh;function rR(e){return e!=null&&nR(e.length)&&!tR(e)}var xi=rR,aR=xi,iR=Un;function oR(e){return iR(e)&&aR(e)}var Nx=oR,gc={exports:{}};function sR(){return!1}var cR=sR;gc.exports;(function(e,t){var n=Qn,r=cR,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?n.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||r;e.exports=u})(gc,gc.exports);var Cu=gc.exports,uR=zr,lR=Zh,dR=Un,fR="[object Object]",hR=Function.prototype,pR=Object.prototype,Fx=hR.toString,mR=pR.hasOwnProperty,gR=Fx.call(Object);function vR(e){if(!dR(e)||uR(e)!=fR)return!1;var t=lR(e);if(t===null)return!0;var n=mR.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Fx.call(n)==gR}var Jh=vR;const Qh=Tt(Jh);var yR=zr,bR=Xh,xR=Un,_R="[object Arguments]",wR="[object Array]",TR="[object Boolean]",CR="[object Date]",kR="[object Error]",SR="[object Function]",OR="[object Map]",ER="[object Number]",$R="[object Object]",MR="[object RegExp]",RR="[object Set]",AR="[object String]",jR="[object WeakMap]",PR="[object ArrayBuffer]",DR="[object DataView]",IR="[object Float32Array]",NR="[object Float64Array]",FR="[object Int8Array]",LR="[object Int16Array]",UR="[object Int32Array]",BR="[object Uint8Array]",WR="[object Uint8ClampedArray]",zR="[object Uint16Array]",HR="[object Uint32Array]",ct={};ct[IR]=ct[NR]=ct[FR]=ct[LR]=ct[UR]=ct[BR]=ct[WR]=ct[zR]=ct[HR]=!0;ct[_R]=ct[wR]=ct[PR]=ct[TR]=ct[DR]=ct[CR]=ct[kR]=ct[SR]=ct[OR]=ct[ER]=ct[$R]=ct[MR]=ct[RR]=ct[AR]=ct[jR]=!1;function VR(e){return xR(e)&&bR(e.length)&&!!ct[yR(e)]}var qR=VR;function YR(e){return function(t){return e(t)}}var rs=YR,vc={exports:{}};vc.exports;(function(e,t){var n=Tx,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,s=function(){try{var c=a&&a.require&&a.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(vc,vc.exports);var ku=vc.exports,GR=qR,ZR=rs,Zg=ku,Kg=Zg&&Zg.isTypedArray,KR=Kg?ZR(Kg):GR,ep=KR;function XR(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Lx=XR,JR=Yh,QR=ns,eA=Object.prototype,tA=eA.hasOwnProperty;function nA(e,t,n){var r=e[t];(!(tA.call(e,t)&&QR(r,n))||n===void 0&&!(t in e))&&JR(e,t,n)}var tp=nA,rA=tp,aA=Yh;function iA(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),a?aA(n,s,c):rA(n,s,c)}return n}var _i=iA;function oA(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var sA=oA,cA=9007199254740991,uA=/^(?:0|[1-9]\d*)$/;function lA(e,t){var n=typeof e;return t=t??cA,!!t&&(n=="number"||n!="symbol"&&uA.test(e))&&e>-1&&e%1==0&&e<t}var Su=lA,dA=sA,fA=Tu,hA=cn,pA=Cu,mA=Su,gA=ep,vA=Object.prototype,yA=vA.hasOwnProperty;function bA(e,t){var n=hA(e),r=!n&&fA(e),a=!n&&!r&&pA(e),i=!n&&!r&&!a&&gA(e),o=n||r||a||i,s=o?dA(e.length,String):[],c=s.length;for(var u in e)(t||yA.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||mA(u,c)))&&s.push(u);return s}var Ux=bA;function xA(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var _A=xA,wA=er,TA=Kh,CA=_A,kA=Object.prototype,SA=kA.hasOwnProperty;function OA(e){if(!wA(e))return CA(e);var t=TA(e),n=[];for(var r in e)r=="constructor"&&(t||!SA.call(e,r))||n.push(r);return n}var EA=OA,$A=Ux,MA=EA,RA=xi;function AA(e){return RA(e)?$A(e,!0):MA(e)}var as=AA,jA=_i,PA=as;function DA(e){return jA(e,PA(e))}var IA=DA,Xg=Ex,NA=Mx,FA=Ax,LA=jx,UA=Dx,Jg=Tu,Qg=cn,BA=Nx,WA=Cu,zA=bu,HA=er,VA=Jh,qA=ep,e0=Lx,YA=IA;function GA(e,t,n,r,a,i,o){var s=e0(e,n),c=e0(t,n),u=o.get(c);if(u){Xg(e,n,u);return}var l=i?i(s,c,n+"",e,t,o):void 0,d=l===void 0;if(d){var f=Qg(c),p=!f&&WA(c),g=!f&&!p&&qA(c);l=c,f||p||g?Qg(s)?l=s:BA(s)?l=LA(s):p?(d=!1,l=NA(c,!0)):g?(d=!1,l=FA(c,!0)):l=[]:VA(c)||Jg(c)?(l=s,Jg(s)?l=YA(s):(!HA(s)||zA(s))&&(l=UA(c))):d=!1}d&&(o.set(c,l),a(l,c,r,i,o),o.delete(c)),Xg(e,n,l)}var ZA=GA,KA=wu,XA=Ex,JA=$x,QA=ZA,ej=er,tj=as,nj=Lx;function Bx(e,t,n,r,a){e!==t&&JA(t,function(i,o){if(a||(a=new KA),ej(i))QA(e,t,o,n,Bx,r,a);else{var s=r?r(nj(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),XA(e,o,s)}},tj)}var rj=Bx;function aj(e){return e}var Ou=aj;function ij(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 oj=ij,sj=oj,t0=Math.max;function cj(e,t,n){return t=t0(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=t0(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=r[a];return s[t]=n(o),sj(e,this,s)}}var Wx=cj;function uj(e){return function(){return e}}var lj=uj,dj=lj,n0=Ox,fj=Ou,hj=n0?function(e,t){return n0(e,"toString",{configurable:!0,enumerable:!1,value:dj(t),writable:!0})}:fj,pj=hj,mj=800,gj=16,vj=Date.now;function yj(e){var t=0,n=0;return function(){var r=vj(),a=gj-(r-n);if(n=r,a>0){if(++t>=mj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var bj=yj,xj=pj,_j=bj,wj=_j(xj),zx=wj,Tj=Ou,Cj=Wx,kj=zx;function Sj(e,t){return kj(Cj(e,t,Tj),e+"")}var np=Sj,Oj=ns,Ej=xi,$j=Su,Mj=er;function Rj(e,t,n){if(!Mj(n))return!1;var r=typeof t;return(r=="number"?Ej(n)&&$j(t,n.length):r=="string"&&t in n)?Oj(n[t],e):!1}var Hx=Rj,Aj=np,jj=Hx;function Pj(e){return Aj(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&jj(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,i)}return t})}var Dj=Pj,Ij=rj,Nj=Dj,Fj=Nj(function(e,t,n){Ij(e,t,n)}),Lj=Fj;const Uj=Tt(Lj);var Bj=zr,Wj=Un,zj="[object Symbol]";function Hj(e){return typeof e=="symbol"||Wj(e)&&Bj(e)==zj}var Eu=Hj,Vj=cn,qj=Eu,Yj=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gj=/^\w*$/;function Zj(e,t){if(Vj(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||qj(e)?!0:Gj.test(e)||!Yj.test(e)||t!=null&&e in Object(t)}var rp=Zj,Vx=qh,Kj="Expected a function";function ap(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Kj);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(ap.Cache||Vx),n}ap.Cache=Vx;var Xj=ap,Jj=Xj,Qj=500;function eP(e){var t=Jj(e,function(r){return n.size===Qj&&n.clear(),r}),n=t.cache;return t}var tP=eP,nP=tP,rP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,aP=/\\(\\)?/g,iP=nP(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(rP,function(n,r,a,i){t.push(a?i.replace(aP,"$1"):r||n)}),t}),oP=iP;function sP(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var $u=sP,r0=gi,cP=$u,uP=cn,lP=Eu,dP=1/0,a0=r0?r0.prototype:void 0,i0=a0?a0.toString:void 0;function qx(e){if(typeof e=="string")return e;if(uP(e))return cP(e,qx)+"";if(lP(e))return i0?i0.call(e):"";var t=e+"";return t=="0"&&1/e==-dP?"-0":t}var fP=qx,hP=fP;function pP(e){return e==null?"":hP(e)}var mP=pP,gP=cn,vP=rp,yP=oP,bP=mP;function xP(e,t){return gP(e)?e:vP(e,t)?[e]:yP(bP(e))}var wi=xP,_P=Eu,wP=1/0;function TP(e){if(typeof e=="string"||_P(e))return e;var t=e+"";return t=="0"&&1/e==-wP?"-0":t}var Ti=TP,CP=wi,kP=Ti;function SP(e,t){t=CP(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[kP(t[n++])];return n&&n==r?e:void 0}var is=SP,OP=is;function EP(e,t,n){var r=e==null?void 0:OP(e,t);return r===void 0?n:r}var Yx=EP;const pr=Tt(Yx);var $P=tp,MP=wi,RP=Su,o0=er,AP=Ti;function jP(e,t,n,r){if(!o0(e))return e;t=MP(t,e);for(var a=-1,i=t.length,o=i-1,s=e;s!=null&&++a<i;){var c=AP(t[a]),u=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=o){var l=s[c];u=r?r(l,c,s):void 0,u===void 0&&(u=o0(l)?l:RP(t[a+1])?[]:{})}$P(s,c,u),s=s[c]}return e}var Gx=jP,PP=Gx;function DP(e,t,n){return e==null?e:PP(e,t,n)}var IP=DP;const Ki=Tt(IP);function Mu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ip(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ci(){}var ma=.7,ni=1/ma,Ha="\\s*([+-]?\\d+)\\s*",Do="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",NP=/^#([0-9a-f]{3,8})$/,FP=new RegExp(`^rgb\\(${Ha},${Ha},${Ha}\\)$`),LP=new RegExp(`^rgb\\(${Yn},${Yn},${Yn}\\)$`),UP=new RegExp(`^rgba\\(${Ha},${Ha},${Ha},${Do}\\)$`),BP=new RegExp(`^rgba\\(${Yn},${Yn},${Yn},${Do}\\)$`),WP=new RegExp(`^hsl\\(${Do},${Yn},${Yn}\\)$`),zP=new RegExp(`^hsla\\(${Do},${Yn},${Yn},${Do}\\)$`),s0={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};Mu(Ci,Io,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:c0,formatHex:c0,formatHex8:HP,formatHsl:VP,formatRgb:u0,toString:u0});function c0(){return this.rgb().formatHex()}function HP(){return this.rgb().formatHex8()}function VP(){return Kx(this).formatHsl()}function u0(){return this.rgb().formatRgb()}function Io(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=NP.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?l0(t):n===3?new zt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?xs(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?xs(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=FP.exec(e))?new zt(t[1],t[2],t[3],1):(t=LP.exec(e))?new zt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=UP.exec(e))?xs(t[1],t[2],t[3],t[4]):(t=BP.exec(e))?xs(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=WP.exec(e))?h0(t[1],t[2]/100,t[3]/100,1):(t=zP.exec(e))?h0(t[1],t[2]/100,t[3]/100,t[4]):s0.hasOwnProperty(e)?l0(s0[e]):e==="transparent"?new zt(NaN,NaN,NaN,0):null}function l0(e){return new zt(e>>16&255,e>>8&255,e&255,1)}function xs(e,t,n,r){return r<=0&&(e=t=n=NaN),new zt(e,t,n,r)}function Zx(e){return e instanceof Ci||(e=Io(e)),e?(e=e.rgb(),new zt(e.r,e.g,e.b,e.opacity)):new zt}function ri(e,t,n,r){return arguments.length===1?Zx(e):new zt(e,t,n,r??1)}function zt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Mu(zt,ri,ip(Ci,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new zt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new zt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new zt(aa(this.r),aa(this.g),aa(this.b),yc(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:d0,formatHex:d0,formatHex8:qP,formatRgb:f0,toString:f0}));function d0(){return`#${Xr(this.r)}${Xr(this.g)}${Xr(this.b)}`}function qP(){return`#${Xr(this.r)}${Xr(this.g)}${Xr(this.b)}${Xr((isNaN(this.opacity)?1:this.opacity)*255)}`}function f0(){const e=yc(this.opacity);return`${e===1?"rgb(":"rgba("}${aa(this.r)}, ${aa(this.g)}, ${aa(this.b)}${e===1?")":`, ${e})`}`}function yc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function aa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xr(e){return e=aa(e),(e<16?"0":"")+e.toString(16)}function h0(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Rn(e,t,n,r)}function Kx(e){if(e instanceof Rn)return new Rn(e.h,e.s,e.l,e.opacity);if(e instanceof Ci||(e=Io(e)),!e)return new Rn;if(e instanceof Rn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,s=i-a,c=(i+a)/2;return s?(t===i?o=(n-r)/s+(n<r)*6:n===i?o=(r-t)/s+2:o=(t-n)/s+4,s/=c<.5?i+a:2-i-a,o*=60):s=c>0&&c<1?0:o,new Rn(o,s,c,e.opacity)}function YP(e,t,n,r){return arguments.length===1?Kx(e):new Rn(e,t,n,r??1)}function Rn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Mu(Rn,YP,ip(Ci,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new Rn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new Rn(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,a=2*n-r;return new zt(Kl(e>=240?e-240:e+120,a,r),Kl(e,a,r),Kl(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Rn(p0(this.h),_s(this.s),_s(this.l),yc(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=yc(this.opacity);return`${e===1?"hsl(":"hsla("}${p0(this.h)}, ${_s(this.s)*100}%, ${_s(this.l)*100}%${e===1?")":`, ${e})`}`}}));function p0(e){return e=(e||0)%360,e<0?e+360:e}function _s(e){return Math.max(0,Math.min(1,e||0))}function Kl(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 GP=Math.PI/180,ZP=180/Math.PI;var Xx=-.14861,op=1.78277,sp=-.29227,Ru=-.90649,No=1.97294,m0=No*Ru,g0=No*op,v0=op*sp-Ru*Xx;function KP(e){if(e instanceof ia)return new ia(e.h,e.s,e.l,e.opacity);e instanceof zt||(e=Zx(e));var t=e.r/255,n=e.g/255,r=e.b/255,a=(v0*r+m0*t-g0*n)/(v0+m0-g0),i=r-a,o=(No*(n-a)-sp*i)/Ru,s=Math.sqrt(o*o+i*i)/(No*a*(1-a)),c=s?Math.atan2(o,i)*ZP-120:NaN;return new ia(c<0?c+360:c,s,a,e.opacity)}function Xn(e,t,n,r){return arguments.length===1?KP(e):new ia(e,t,n,r??1)}function ia(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Mu(ia,Xn,ip(Ci,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new ia(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new ia(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*GP,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new zt(255*(t+n*(Xx*r+op*a)),255*(t+n*(sp*r+Ru*a)),255*(t+n*(No*r)),this.opacity)}}));function XP(e,t,n,r,a){var i=e*e,o=i*e;return((1-3*e+3*i-o)*t+(4-6*i+3*o)*n+(1+3*e+3*i-3*o)*r+o*a)/6}function JP(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),a=e[r],i=e[r+1],o=r>0?e[r-1]:2*a-i,s=r<t-1?e[r+2]:2*i-a;return XP((n-r/t)*t,o,a,i,s)}}const Au=e=>()=>e;function Jx(e,t){return function(n){return e+n*t}}function QP(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 eD(e,t){var n=t-e;return n?Jx(e,n>180||n<-180?n-360*Math.round(n/360):n):Au(isNaN(e)?t:e)}function tD(e){return(e=+e)==1?Va:function(t,n){return n-t?QP(t,n,e):Au(isNaN(t)?n:t)}}function Va(e,t){var n=t-e;return n?Jx(e,n):Au(isNaN(e)?t:e)}const y0=function e(t){var n=tD(t);function r(a,i){var o=n((a=ri(a)).r,(i=ri(i)).r),s=n(a.g,i.g),c=n(a.b,i.b),u=Va(a.opacity,i.opacity);return function(l){return a.r=o(l),a.g=s(l),a.b=c(l),a.opacity=u(l),a+""}}return r.gamma=e,r}(1);function nD(e){return function(t){var n=t.length,r=new Array(n),a=new Array(n),i=new Array(n),o,s;for(o=0;o<n;++o)s=ri(t[o]),r[o]=s.r||0,a[o]=s.g||0,i[o]=s.b||0;return r=e(r),a=e(a),i=e(i),s.opacity=1,function(c){return s.r=r(c),s.g=a(c),s.b=i(c),s+""}}}var rD=nD(JP);function aD(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function iD(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function oD(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),o;for(o=0;o<r;++o)a[o]=cp(e[o],t[o]);for(;o<n;++o)i[o]=t[o];return function(s){for(o=0;o<r;++o)i[o]=a[o](s);return i}}function sD(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function bc(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function cD(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=cp(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var vf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xl=new RegExp(vf.source,"g");function uD(e){return function(){return e}}function lD(e){return function(t){return e(t)+""}}function Qx(e,t){var n=vf.lastIndex=Xl.lastIndex=0,r,a,i,o=-1,s=[],c=[];for(e=e+"",t=t+"";(r=vf.exec(e))&&(a=Xl.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,c.push({i:o,x:bc(r,a)})),n=Xl.lastIndex;return n<t.length&&(i=t.slice(n),s[o]?s[o]+=i:s[++o]=i),s.length<2?c[0]?lD(c[0].x):uD(t):(t=c.length,function(u){for(var l=0,d;l<t;++l)s[(d=c[l]).i]=d.x(u);return s.join("")})}function cp(e,t){var n=typeof t,r;return t==null||n==="boolean"?Au(t):(n==="number"?bc:n==="string"?(r=Io(t))?(t=r,y0):Qx:t instanceof Io?y0:t instanceof Date?sD:iD(t)?aD:Array.isArray(t)?oD:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?cD:bc)(e,t)}function dD(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function e2(e){return function t(n){n=+n;function r(a,i){var o=e((a=Xn(a)).h,(i=Xn(i)).h),s=Va(a.s,i.s),c=Va(a.l,i.l),u=Va(a.opacity,i.opacity);return function(l){return a.h=o(l),a.s=s(l),a.l=c(Math.pow(l,n)),a.opacity=u(l),a+""}}return r.gamma=t,r}(1)}e2(eD);var up=e2(Va),fD=zr,hD=cn,pD=Un,mD="[object String]";function gD(e){return typeof e=="string"||!hD(e)&&pD(e)&&fD(e)==mD}var vD=gD;const yD=Tt(vD);function bD(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var t2=bD;const ye=Tt(t2);function Fs(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function xD(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function lp(e){let t,n,r;e.length!==2?(t=Fs,n=(s,c)=>Fs(e(s),c),r=(s,c)=>e(s)-c):(t=e===Fs||e===xD?e:_D,n=e,r=e);function a(s,c,u=0,l=s.length){if(u<l){if(t(c,c)!==0)return l;do{const d=u+l>>>1;n(s[d],c)<0?u=d+1:l=d}while(u<l)}return u}function i(s,c,u=0,l=s.length){if(u<l){if(t(c,c)!==0)return l;do{const d=u+l>>>1;n(s[d],c)<=0?u=d+1:l=d}while(u<l)}return u}function o(s,c,u=0,l=s.length){const d=a(s,c,u,l-1);return d>u&&r(s[d-1],c)>-r(s[d],c)?d-1:d}return{left:a,center:o,right:i}}function _D(){return 0}function wD(e){return e===null?NaN:+e}const TD=lp(Fs),CD=TD.right;lp(wD).center;class b0 extends Map{constructor(t,n=OD){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(x0(this,t))}has(t){return super.has(x0(this,t))}set(t,n){return super.set(kD(this,t),n)}delete(t){return super.delete(SD(this,t))}}function x0({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function kD({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function SD({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function OD(e){return e!==null&&typeof e=="object"?e.valueOf():e}const ED=Math.sqrt(50),$D=Math.sqrt(10),MD=Math.sqrt(2);function xc(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=ED?10:i>=$D?5:i>=MD?2:1;let s,c,u;return a<0?(u=Math.pow(10,-a)/o,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,a)*o,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=n&&n<2?xc(e,t,n*2):[s,c,u]}function yf(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,o]=r?xc(t,e,n):xc(e,t,n);if(!(i>=a))return[];const s=i-a+1,c=new Array(s);if(r)if(o<0)for(let u=0;u<s;++u)c[u]=(i-u)/-o;else for(let u=0;u<s;++u)c[u]=(i-u)*o;else if(o<0)for(let u=0;u<s;++u)c[u]=(a+u)/-o;else for(let u=0;u<s;++u)c[u]=(a+u)*o;return c}function bf(e,t,n){return t=+t,e=+e,n=+n,xc(e,t,n)[2]}function xf(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?bf(t,e,n):bf(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function RD(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r<a;)i[r]=e+r*n;return i}function wa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const _0=Symbol("implicit");function Jr(){var e=new b0,t=[],n=[],r=_0;function a(i){let o=e.get(i);if(o===void 0){if(r!==_0)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new b0;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Jr(t,n).unknown(r)},wa.apply(a,arguments),a}function dp(){var e=Jr().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,o,s=!1,c=0,u=0,l=.5;delete e.unknown;function d(){var f=t().length,p=a<r,g=p?a:r,v=p?r:a;i=(v-g)/Math.max(1,f-c+u*2),s&&(i=Math.floor(i)),g+=(v-g-i*(f-c))*l,o=i*(1-c),s&&(g=Math.round(g),o=Math.round(o));var m=RD(f).map(function(x){return g+i*x});return n(p?m.reverse():m)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,a]=f,r=+r,a=+a,d()):[r,a]},e.rangeRound=function(f){return[r,a]=f,r=+r,a=+a,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(c=Math.min(1,u=+f),d()):c},e.paddingInner=function(f){return arguments.length?(c=Math.min(1,f),d()):c},e.paddingOuter=function(f){return arguments.length?(u=+f,d()):u},e.align=function(f){return arguments.length?(l=Math.max(0,Math.min(1,f)),d()):l},e.copy=function(){return dp(t(),[r,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},wa.apply(d(),arguments)}function n2(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return n2(t())},e}function AD(){return n2(dp.apply(null,arguments).paddingInner(1))}function jD(e){return function(){return e}}function PD(e){return+e}var w0=[0,1];function La(e){return e}function _f(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:jD(isNaN(t)?NaN:.5)}function DD(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function ID(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=_f(a,r),i=n(o,i)):(r=_f(r,a),i=n(i,o)),function(s){return i(r(s))}}function ND(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)a[o]=_f(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(s){var c=CD(e,s,1,r)-1;return i[c](a[c](s))}}function ju(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function fp(){var e=w0,t=w0,n=cp,r,a,i,o=La,s,c,u;function l(){var f=Math.min(e.length,t.length);return o!==La&&(o=DD(e[0],e[f-1])),s=f>2?ND:ID,c=u=null,d}function d(f){return f==null||isNaN(f=+f)?i:(c||(c=s(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(a((u||(u=s(t,e.map(r),bc)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,PD),l()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),l()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=dD,l()},d.clamp=function(f){return arguments.length?(o=f?!0:La,l()):o!==La},d.interpolate=function(f){return arguments.length?(n=f,l()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,p){return r=f,a=p,l()}}function r2(){return fp()(La,La)}function FD(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function _c(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 ai(e){return e=_c(Math.abs(e)),e?e[1]:NaN}function LD(e,t){return function(n,r){for(var a=n.length,i=[],o=0,s=e[0],c=0;a>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(n.substring(a-=s,a+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function UD(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var BD=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fo(e){if(!(t=BD.exec(e)))throw new Error("invalid format: "+e);var t;return new hp({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]})}Fo.prototype=hp.prototype;function hp(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+""}hp.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 WD(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var a2;function zD(e,t){var n=_c(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(a2=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+_c(e,Math.max(0,t+i-1))[0]}function T0(e,t){var n=_c(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const C0={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:FD,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 T0(e*100,t)},r:T0,s:zD,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function k0(e){return e}var S0=Array.prototype.map,O0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function HD(e){var t=e.grouping===void 0||e.thousands===void 0?k0:LD(S0.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?k0:UD(S0.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 u(d){d=Fo(d);var f=d.fill,p=d.align,g=d.sign,v=d.symbol,m=d.zero,x=d.width,w=d.comma,b=d.precision,T=d.trim,_=d.type;_==="n"?(w=!0,_="g"):C0[_]||(b===void 0&&(b=12),T=!0,_="g"),(m||f==="0"&&p==="=")&&(m=!0,f="0",p="=");var C=v==="$"?n:v==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",$=v==="$"?r:/[%p]/.test(_)?o:"",A=C0[_],D=/[defgprs%]/.test(_);b=b===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function j(E){var F=C,M=$,R,I,U;if(_==="c")M=A(E)+M,E="";else{E=+E;var N=E<0||1/E<0;if(E=isNaN(E)?c:A(Math.abs(E),b),T&&(E=WD(E)),N&&+E==0&&g!=="+"&&(N=!1),F=(N?g==="("?g:s:g==="-"||g==="("?"":g)+F,M=(_==="s"?O0[8+a2/3]:"")+M+(N&&g==="("?")":""),D){for(R=-1,I=E.length;++R<I;)if(U=E.charCodeAt(R),48>U||U>57){M=(U===46?a+E.slice(R+1):E.slice(R))+M,E=E.slice(0,R);break}}}w&&!m&&(E=t(E,1/0));var q=F.length+E.length+M.length,z=q<x?new Array(x-q+1).join(f):"";switch(w&&m&&(E=t(z+E,z.length?x-M.length:1/0),z=""),p){case"<":E=F+E+M+z;break;case"=":E=F+z+E+M;break;case"^":E=z.slice(0,q=z.length>>1)+F+E+M+z.slice(q);break;default:E=z+F+E+M;break}return i(E)}return j.toString=function(){return d+""},j}function l(d,f){var p=u((d=Fo(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(ai(f)/3)))*3,v=Math.pow(10,-g),m=O0[8+g/3];return function(x){return p(v*x)+m}}return{format:u,formatPrefix:l}}var ws,os,i2;VD({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function VD(e){return ws=HD(e),os=ws.format,i2=ws.formatPrefix,ws}function qD(e){return Math.max(0,-ai(Math.abs(e)))}function YD(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ai(t)/3)))*3-ai(Math.abs(e)))}function GD(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ai(t)-ai(e))+1}function ZD(e,t,n,r){var a=xf(e,t,n),i;switch(r=Fo(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=YD(a,o))&&(r.precision=i),i2(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=GD(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=qD(a))&&(r.precision=i-(r.type==="%")*2);break}}return os(r)}function o2(e){var t=e.domain;return e.ticks=function(n){var r=t();return yf(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return ZD(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],s=r[i],c,u,l=10;for(s<o&&(u=o,o=s,s=u,u=a,a=i,i=u);l-- >0;){if(u=bf(o,s,n),u===c)return r[a]=o,r[i]=s,t(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;c=u}return e},e}function s2(){var e=r2();return e.copy=function(){return ju(e,s2())},wa.apply(e,arguments),o2(e)}function c2(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}function E0(e){return Math.log(e)}function $0(e){return Math.exp(e)}function KD(e){return-Math.log(-e)}function XD(e){return-Math.exp(-e)}function JD(e){return isFinite(e)?+("1e"+e):e<0?0:e}function QD(e){return e===10?JD:e===Math.E?Math.exp:t=>Math.pow(e,t)}function eI(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 M0(e){return(t,n)=>-e(-t,n)}function tI(e){const t=e(E0,$0),n=t.domain;let r=10,a,i;function o(){return a=eI(r),i=QD(r),n()[0]<0?(a=M0(a),i=M0(i),e(KD,XD)):e(E0,$0),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 u=c[0],l=c[c.length-1];const d=l<u;d&&([u,l]=[l,u]);let f=a(u),p=a(l),g,v;const m=s==null?10:+s;let x=[];if(!(r%1)&&p-f<m){if(f=Math.floor(f),p=Math.ceil(p),u>0){for(;f<=p;++f)for(g=1;g<r;++g)if(v=f<0?g/i(-f):g*i(f),!(v<u)){if(v>l)break;x.push(v)}}else for(;f<=p;++f)for(g=r-1;g>=1;--g)if(v=f>0?g/i(-f):g*i(f),!(v<u)){if(v>l)break;x.push(v)}x.length*2<m&&(x=yf(u,l,m))}else x=yf(f,p,Math.min(p-f,m)).map(i);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=Fo(c)).precision==null&&(c.trim=!0),c=os(c)),s===1/0)return c;const u=Math.max(1,r*s/t.ticks().length);return l=>{let d=l/i(Math.round(a(l)));return d*r<r-.5&&(d*=r),d<=u?c(l):""}},t.nice=()=>n(c2(n(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function u2(){const e=tI(fp()).domain([1,10]);return e.copy=()=>ju(e,u2()).base(e.base()),wa.apply(e,arguments),e}function R0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function A0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function nI(e){var t=1,n=e(R0(t),A0(t));return n.constant=function(r){return arguments.length?e(R0(t=+r),A0(t)):t},o2(n)}function l2(){var e=nI(fp());return e.copy=function(){return ju(e,l2()).constant(e.constant())},wa.apply(e,arguments)}const Jl=new Date,Ql=new Date;function Rt(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const c=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return c;let u;do c.push(u=new Date(+i)),t(i,s),e(i);while(u<i&&i<o);return c},a.filter=i=>Rt(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(Jl.setTime(+i),Ql.setTime(+o),e(Jl),e(Ql),Math.floor(n(Jl,Ql))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const wc=Rt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);wc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Rt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):wc);wc.range;const sr=1e3,Cn=sr*60,cr=Cn*60,mr=cr*24,pp=mr*7,j0=mr*30,ed=mr*365,Qr=Rt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*sr)},(e,t)=>(t-e)/sr,e=>e.getUTCSeconds());Qr.range;const mp=Rt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*sr)},(e,t)=>{e.setTime(+e+t*Cn)},(e,t)=>(t-e)/Cn,e=>e.getMinutes());mp.range;const gp=Rt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Cn)},(e,t)=>(t-e)/Cn,e=>e.getUTCMinutes());gp.range;const vp=Rt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*sr-e.getMinutes()*Cn)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getHours());vp.range;const yp=Rt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getUTCHours());yp.range;const bp=Rt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Cn)/mr,e=>e.getDate()-1);bp.range;const d2=Rt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mr,e=>e.getUTCDate()-1);d2.range;const f2=Rt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mr,e=>Math.floor(e/mr));f2.range;function Ta(e){return Rt(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())*Cn)/pp)}const xp=Ta(0),rI=Ta(1),aI=Ta(2),iI=Ta(3),oI=Ta(4),sI=Ta(5),cI=Ta(6);xp.range;rI.range;aI.range;iI.range;oI.range;sI.range;cI.range;function Ca(e){return Rt(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)/pp)}const _p=Ca(0),uI=Ca(1),lI=Ca(2),dI=Ca(3),fI=Ca(4),hI=Ca(5),pI=Ca(6);_p.range;uI.range;lI.range;dI.range;fI.range;hI.range;pI.range;const wp=Rt(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());wp.range;const Tp=Rt(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());Tp.range;const Pu=Rt(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());Pu.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Rt(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)});Pu.range;const Du=Rt(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());Du.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Rt(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)});Du.range;function h2(e,t,n,r,a,i){const o=[[Qr,1,sr],[Qr,5,5*sr],[Qr,15,15*sr],[Qr,30,30*sr],[i,1,Cn],[i,5,5*Cn],[i,15,15*Cn],[i,30,30*Cn],[a,1,cr],[a,3,3*cr],[a,6,6*cr],[a,12,12*cr],[r,1,mr],[r,2,2*mr],[n,1,pp],[t,1,j0],[t,3,3*j0],[e,1,ed]];function s(u,l,d){const f=l<u;f&&([u,l]=[l,u]);const p=d&&typeof d.range=="function"?d:c(u,l,d),g=p?p.range(u,+l+1):[];return f?g.reverse():g}function c(u,l,d){const f=Math.abs(l-u)/d,p=lp(([,,m])=>m).right(o,f);if(p===o.length)return e.every(xf(u/ed,l/ed,d));if(p===0)return wc.every(Math.max(xf(u,l,d),1));const[g,v]=o[f/o[p-1][2]<o[p][2]/f?p-1:p];return g.every(v)}return[s,c]}const[mI,gI]=h2(Du,Tp,_p,f2,yp,gp),[vI,yI]=h2(Pu,wp,xp,bp,vp,mp);var td=new Date,nd=new Date;function yr(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=function(i){return e(i=new Date(+i)),i},a.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},a.round=function(i){var o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=function(i,o){return t(i=new Date(+i),o==null?1:Math.floor(o)),i},a.range=function(i,o,s){var c=[],u;if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return c;do c.push(u=new Date(+i)),t(i,s),e(i);while(u<i&&i<o);return c},a.filter=function(i){return yr(function(o){if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););})},n&&(a.count=function(i,o){return td.setTime(+i),nd.setTime(+o),e(td),e(nd),Math.floor(n(td,nd))},a.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?function(o){return r(o)%i===0}:function(o){return a.count(0,o)%i===0}):a}),a}const bI=1e3,Cp=bI*60,xI=Cp*60,kp=xI*24,p2=kp*7;var Sp=yr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Cp)/kp,e=>e.getDate()-1);Sp.range;function ka(e){return yr(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())*Cp)/p2})}var m2=ka(0),Tc=ka(1),_I=ka(2),wI=ka(3),ii=ka(4),TI=ka(5),CI=ka(6);m2.range;Tc.range;_I.range;wI.range;ii.range;TI.range;CI.range;var ga=yr(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()});ga.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yr(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)})};ga.range;var Op=yr(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/kp},function(e){return e.getUTCDate()-1});Op.range;function Sa(e){return yr(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)/p2})}var g2=Sa(0),Cc=Sa(1),kI=Sa(2),SI=Sa(3),oi=Sa(4),OI=Sa(5),EI=Sa(6);g2.range;Cc.range;kI.range;SI.range;oi.range;OI.range;EI.range;var va=yr(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()});va.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yr(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)})};va.range;function rd(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 ad(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 Ui(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function $I(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,u=Bi(a),l=Wi(a),d=Bi(i),f=Wi(i),p=Bi(o),g=Wi(o),v=Bi(s),m=Wi(s),x=Bi(c),w=Wi(c),b={a:N,A:q,b:z,B:P,c:null,d:L0,e:L0,f:JI,g:cN,G:lN,H:ZI,I:KI,j:XI,L:v2,m:QI,M:eN,p:W,q:Z,Q:W0,s:z0,S:tN,u:nN,U:rN,V:aN,w:iN,W:oN,x:null,X:null,y:sN,Y:uN,Z:dN,"%":B0},T={a:ne,A:Y,b:Q,B:G,c:null,d:U0,e:U0,f:mN,g:kN,G:ON,H:fN,I:hN,j:pN,L:b2,m:gN,M:vN,p:J,q:re,Q:W0,s:z0,S:yN,u:bN,U:xN,V:_N,w:wN,W:TN,x:null,X:null,y:CN,Y:SN,Z:EN,"%":B0},_={a:j,A:E,b:F,B:M,c:R,d:N0,e:N0,f:VI,g:I0,G:D0,H:F0,I:F0,j:BI,L:HI,m:UI,M:WI,p:D,q:LI,Q:YI,s:GI,S:zI,u:PI,U:DI,V:II,w:jI,W:NI,x:I,X:U,y:I0,Y:D0,Z:FI,"%":qI};b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),T.x=C(n,T),T.X=C(r,T),T.c=C(t,T);function C(L,V){return function(ae){var k=[],ge=-1,pe=0,de=L.length,Ae,Pe,ft;for(ae instanceof Date||(ae=new Date(+ae));++ge<de;)L.charCodeAt(ge)===37&&(k.push(L.slice(pe,ge)),(Pe=P0[Ae=L.charAt(++ge)])!=null?Ae=L.charAt(++ge):Pe=Ae==="e"?" ":"0",(ft=V[Ae])&&(Ae=ft(ae,Pe)),k.push(Ae),pe=ge+1);return k.push(L.slice(pe,ge)),k.join("")}}function $(L,V){return function(ae){var k=Ui(1900,void 0,1),ge=A(k,L,ae+="",0),pe,de;if(ge!=ae.length)return null;if("Q"in k)return new Date(k.Q);if("s"in k)return new Date(k.s*1e3+("L"in k?k.L:0));if(V&&!("Z"in k)&&(k.Z=0),"p"in k&&(k.H=k.H%12+k.p*12),k.m===void 0&&(k.m="q"in k?k.q:0),"V"in k){if(k.V<1||k.V>53)return null;"w"in k||(k.w=1),"Z"in k?(pe=ad(Ui(k.y,0,1)),de=pe.getUTCDay(),pe=de>4||de===0?Cc.ceil(pe):Cc(pe),pe=Op.offset(pe,(k.V-1)*7),k.y=pe.getUTCFullYear(),k.m=pe.getUTCMonth(),k.d=pe.getUTCDate()+(k.w+6)%7):(pe=rd(Ui(k.y,0,1)),de=pe.getDay(),pe=de>4||de===0?Tc.ceil(pe):Tc(pe),pe=Sp.offset(pe,(k.V-1)*7),k.y=pe.getFullYear(),k.m=pe.getMonth(),k.d=pe.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),de="Z"in k?ad(Ui(k.y,0,1)).getUTCDay():rd(Ui(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(de+5)%7:k.w+k.U*7-(de+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,ad(k)):rd(k)}}function A(L,V,ae,k){for(var ge=0,pe=V.length,de=ae.length,Ae,Pe;ge<pe;){if(k>=de)return-1;if(Ae=V.charCodeAt(ge++),Ae===37){if(Ae=V.charAt(ge++),Pe=_[Ae in P0?V.charAt(ge++):Ae],!Pe||(k=Pe(L,ae,k))<0)return-1}else if(Ae!=ae.charCodeAt(k++))return-1}return k}function D(L,V,ae){var k=u.exec(V.slice(ae));return k?(L.p=l.get(k[0].toLowerCase()),ae+k[0].length):-1}function j(L,V,ae){var k=p.exec(V.slice(ae));return k?(L.w=g.get(k[0].toLowerCase()),ae+k[0].length):-1}function E(L,V,ae){var k=d.exec(V.slice(ae));return k?(L.w=f.get(k[0].toLowerCase()),ae+k[0].length):-1}function F(L,V,ae){var k=x.exec(V.slice(ae));return k?(L.m=w.get(k[0].toLowerCase()),ae+k[0].length):-1}function M(L,V,ae){var k=v.exec(V.slice(ae));return k?(L.m=m.get(k[0].toLowerCase()),ae+k[0].length):-1}function R(L,V,ae){return A(L,t,V,ae)}function I(L,V,ae){return A(L,n,V,ae)}function U(L,V,ae){return A(L,r,V,ae)}function N(L){return o[L.getDay()]}function q(L){return i[L.getDay()]}function z(L){return c[L.getMonth()]}function P(L){return s[L.getMonth()]}function W(L){return a[+(L.getHours()>=12)]}function Z(L){return 1+~~(L.getMonth()/3)}function ne(L){return o[L.getUTCDay()]}function Y(L){return i[L.getUTCDay()]}function Q(L){return c[L.getUTCMonth()]}function G(L){return s[L.getUTCMonth()]}function J(L){return a[+(L.getUTCHours()>=12)]}function re(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var V=C(L+="",b);return V.toString=function(){return L},V},parse:function(L){var V=$(L+="",!1);return V.toString=function(){return L},V},utcFormat:function(L){var V=C(L+="",T);return V.toString=function(){return L},V},utcParse:function(L){var V=$(L+="",!0);return V.toString=function(){return L},V}}}var P0={"-":"",_:" ",0:"0"},Dt=/^\s*\d+/,MI=/^%/,RI=/[\\^$*+?|[\]().{}]/g;function Be(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function AI(e){return e.replace(RI,"\\$&")}function Bi(e){return new RegExp("^(?:"+e.map(AI).join("|")+")","i")}function Wi(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function jI(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function PI(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function DI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function II(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function NI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function D0(e,t,n){var r=Dt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function I0(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function FI(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 LI(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function UI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function N0(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function BI(e,t,n){var r=Dt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function F0(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function WI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function zI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function HI(e,t,n){var r=Dt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function VI(e,t,n){var r=Dt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function qI(e,t,n){var r=MI.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function YI(e,t,n){var r=Dt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function GI(e,t,n){var r=Dt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function L0(e,t){return Be(e.getDate(),t,2)}function ZI(e,t){return Be(e.getHours(),t,2)}function KI(e,t){return Be(e.getHours()%12||12,t,2)}function XI(e,t){return Be(1+Sp.count(ga(e),e),t,3)}function v2(e,t){return Be(e.getMilliseconds(),t,3)}function JI(e,t){return v2(e,t)+"000"}function QI(e,t){return Be(e.getMonth()+1,t,2)}function eN(e,t){return Be(e.getMinutes(),t,2)}function tN(e,t){return Be(e.getSeconds(),t,2)}function nN(e){var t=e.getDay();return t===0?7:t}function rN(e,t){return Be(m2.count(ga(e)-1,e),t,2)}function y2(e){var t=e.getDay();return t>=4||t===0?ii(e):ii.ceil(e)}function aN(e,t){return e=y2(e),Be(ii.count(ga(e),e)+(ga(e).getDay()===4),t,2)}function iN(e){return e.getDay()}function oN(e,t){return Be(Tc.count(ga(e)-1,e),t,2)}function sN(e,t){return Be(e.getFullYear()%100,t,2)}function cN(e,t){return e=y2(e),Be(e.getFullYear()%100,t,2)}function uN(e,t){return Be(e.getFullYear()%1e4,t,4)}function lN(e,t){var n=e.getDay();return e=n>=4||n===0?ii(e):ii.ceil(e),Be(e.getFullYear()%1e4,t,4)}function dN(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Be(t/60|0,"0",2)+Be(t%60,"0",2)}function U0(e,t){return Be(e.getUTCDate(),t,2)}function fN(e,t){return Be(e.getUTCHours(),t,2)}function hN(e,t){return Be(e.getUTCHours()%12||12,t,2)}function pN(e,t){return Be(1+Op.count(va(e),e),t,3)}function b2(e,t){return Be(e.getUTCMilliseconds(),t,3)}function mN(e,t){return b2(e,t)+"000"}function gN(e,t){return Be(e.getUTCMonth()+1,t,2)}function vN(e,t){return Be(e.getUTCMinutes(),t,2)}function yN(e,t){return Be(e.getUTCSeconds(),t,2)}function bN(e){var t=e.getUTCDay();return t===0?7:t}function xN(e,t){return Be(g2.count(va(e)-1,e),t,2)}function x2(e){var t=e.getUTCDay();return t>=4||t===0?oi(e):oi.ceil(e)}function _N(e,t){return e=x2(e),Be(oi.count(va(e),e)+(va(e).getUTCDay()===4),t,2)}function wN(e){return e.getUTCDay()}function TN(e,t){return Be(Cc.count(va(e)-1,e),t,2)}function CN(e,t){return Be(e.getUTCFullYear()%100,t,2)}function kN(e,t){return e=x2(e),Be(e.getUTCFullYear()%100,t,2)}function SN(e,t){return Be(e.getUTCFullYear()%1e4,t,4)}function ON(e,t){var n=e.getUTCDay();return e=n>=4||n===0?oi(e):oi.ceil(e),Be(e.getUTCFullYear()%1e4,t,4)}function EN(){return"+0000"}function B0(){return"%"}function W0(e){return+e}function z0(e){return Math.floor(+e/1e3)}var Da,Iu,_2,w2,T2;$N({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 $N(e){return Da=$I(e),Iu=Da.format,_2=Da.parse,w2=Da.utcFormat,T2=Da.utcParse,Da}function MN(e){return new Date(e)}function RN(e){return e instanceof Date?+e:+new Date(+e)}function Ep(e,t,n,r,a,i,o,s,c,u){var l=r2(),d=l.invert,f=l.domain,p=u(".%L"),g=u(":%S"),v=u("%I:%M"),m=u("%I %p"),x=u("%a %d"),w=u("%b %d"),b=u("%B"),T=u("%Y");function _(C){return(c(C)<C?p:s(C)<C?g:o(C)<C?v:i(C)<C?m:r(C)<C?a(C)<C?x:w:n(C)<C?b:T)(C)}return l.invert=function(C){return new Date(d(C))},l.domain=function(C){return arguments.length?f(Array.from(C,RN)):f().map(MN)},l.ticks=function(C){var $=f();return e($[0],$[$.length-1],C??10)},l.tickFormat=function(C,$){return $==null?_:u($)},l.nice=function(C){var $=f();return(!C||typeof C.range!="function")&&(C=t($[0],$[$.length-1],C??10)),C?f(c2($,C)):l},l.copy=function(){return ju(l,Ep(e,t,n,r,a,i,o,s,c,u))},l}function AN(){return wa.apply(Ep(vI,yI,Pu,wp,xp,bp,vp,mp,Qr,Iu).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function jN(){return wa.apply(Ep(mI,gI,Du,Tp,_p,d2,yp,gp,Qr,w2).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function $e(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 C2=$e("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),k2=$e("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),S2=$e("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),O2=$e("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),E2=$e("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),$2=$e("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),M2=$e("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),R2=$e("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),$p=$e("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),PN=$e("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),nt=e=>rD(e[e.length-1]);var Nu=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map($e);const DN=nt(Nu);var Fu=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map($e);const IN=nt(Fu);var Lu=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map($e);const NN=nt(Lu);var Uu=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map($e);const FN=nt(Uu);var Bu=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map($e);const LN=nt(Bu);var Wu=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map($e);const UN=nt(Wu);var zu=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map($e);const BN=nt(zu);var Hu=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map($e);const WN=nt(Hu);var Vu=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map($e);const zN=nt(Vu);var qu=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map($e);const HN=nt(qu);var Yu=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map($e);const VN=nt(Yu);var Gu=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map($e);const qN=nt(Gu);var Zu=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map($e);const YN=nt(Zu);var Ku=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map($e);const GN=nt(Ku);var Xu=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map($e);const ZN=nt(Xu);var Ju=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map($e);const KN=nt(Ju);var Qu=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map($e);const XN=nt(Qu);var el=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map($e);const JN=nt(el);var tl=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map($e);const QN=nt(tl);var nl=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map($e);const eF=nt(nl);var rl=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map($e);const tF=nt(rl);var al=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map($e);const nF=nt(al);var il=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map($e);const rF=nt(il);var ol=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map($e);const aF=nt(ol);var sl=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map($e);const iF=nt(sl);var cl=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map($e);const oF=nt(cl);var ul=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map($e);const sF=nt(ul);function cF(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 uF=up(Xn(300,.5,0),Xn(-240,.5,1));var lF=up(Xn(-100,.75,.35),Xn(80,1.5,.8)),dF=up(Xn(260,.75,.35),Xn(80,1.5,.8)),Ts=Xn();function fF(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Ts.h=360*e-100,Ts.s=1.5-1.5*t,Ts.l=.8-.9*t,Ts+""}var Cs=ri(),hF=Math.PI/3,pF=Math.PI*2/3;function mF(e){var t;return e=(.5-e)*Math.PI,Cs.r=255*(t=Math.sin(e))*t,Cs.g=255*(t=Math.sin(e+hF))*t,Cs.b=255*(t=Math.sin(e+pF))*t,Cs+""}function gF(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 ll(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const vF=ll($e("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var yF=ll($e("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),bF=ll($e("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),xF=ll($e("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),_F="__lodash_hash_undefined__";function wF(e){return this.__data__.set(e,_F),this}var TF=wF;function CF(e){return this.__data__.has(e)}var kF=CF,SF=qh,OF=TF,EF=kF;function kc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new SF;++t<n;)this.add(e[t])}kc.prototype.add=kc.prototype.push=OF;kc.prototype.has=EF;var Mp=kc;function $F(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var MF=$F;function RF(e){return e!==e}var AF=RF;function jF(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var PF=jF,DF=MF,IF=AF,NF=PF;function FF(e,t,n){return t===t?NF(e,t,n):DF(e,IF,n)}var LF=FF,UF=LF;function BF(e,t){var n=e==null?0:e.length;return!!n&&UF(e,t,0)>-1}var A2=BF;function WF(e,t,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}var j2=WF;function zF(e,t){return e.has(t)}var Rp=zF,HF=Mp,VF=A2,qF=j2,YF=$u,GF=rs,ZF=Rp,KF=200;function XF(e,t,n,r){var a=-1,i=VF,o=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=YF(t,GF(n))),r?(i=qF,o=!1):t.length>=KF&&(i=ZF,o=!1,t=new HF(t));e:for(;++a<s;){var l=e[a],d=n==null?l:n(l);if(l=r||l!==0?l:0,o&&d===d){for(var f=u;f--;)if(t[f]===d)continue e;c.push(l)}else i(t,d,r)||c.push(l)}return c}var JF=XF,QF=JF,eL=np,tL=Nx,nL=eL(function(e,t){return tL(e)?QF(e,t):[]}),rL=nL;const P2=Tt(rL);function ut(e){return function(){return e}}const H0=Math.abs,Ut=Math.atan2,Hr=Math.cos,aL=Math.max,id=Math.min,Bn=Math.sin,Ua=Math.sqrt,Bt=1e-12,Lo=Math.PI,Sc=Lo/2,Ls=2*Lo;function iL(e){return e>1?0:e<-1?Lo:Math.acos(e)}function V0(e){return e>=1?Sc:e<=-1?-Sc:Math.asin(e)}const wf=Math.PI,Tf=2*wf,Yr=1e-6,oL=Tf-Yr;function D2(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function sL(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return D2;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;a<i;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class cL{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?D2:sL(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,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,i,o){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,n,r,a,i){if(t=+t,n=+n,r=+r,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,s=this._y1,c=r-t,u=a-n,l=o-t,d=s-n,f=l*l+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Yr)if(!(Math.abs(d*c-u*l)>Yr)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-o,g=a-s,v=c*c+u*u,m=p*p+g*g,x=Math.sqrt(v),w=Math.sqrt(f),b=i*Math.tan((wf-Math.acos((v+f-m)/(2*x*w)))/2),T=b/w,_=b/x;Math.abs(T-1)>Yr&&this._append`L${t+T*l},${n+T*d}`,this._append`A${i},${i},0,0,${+(d*p>l*g)},${this._x1=t+_*c},${this._y1=n+_*u}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(a),c=r*Math.sin(a),u=t+s,l=n+c,d=1^o,f=o?a-i:i-a;this._x1===null?this._append`M${u},${l}`:(Math.abs(this._x1-u)>Yr||Math.abs(this._y1-l)>Yr)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%Tf+Tf),f>oL?this._append`A${r},${r},0,1,${d},${t-s},${n-c}A${r},${r},0,1,${d},${this._x1=u},${this._y1=l}`:f>Yr&&this._append`A${r},${r},0,${+(f>=wf)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function I2(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 cL(t)}function uL(e){return e.innerRadius}function lL(e){return e.outerRadius}function dL(e){return e.startAngle}function fL(e){return e.endAngle}function hL(e){return e&&e.padAngle}function pL(e,t,n,r,a,i,o,s){var c=n-e,u=r-t,l=o-a,d=s-i,f=d*c-l*u;if(!(f*f<Bt))return f=(l*(t-i)-d*(e-a))/f,[e+f*c,t+f*u]}function ks(e,t,n,r,a,i,o){var s=e-n,c=t-r,u=(o?i:-i)/Ua(s*s+c*c),l=u*c,d=-u*s,f=e+l,p=t+d,g=n+l,v=r+d,m=(f+g)/2,x=(p+v)/2,w=g-f,b=v-p,T=w*w+b*b,_=a-i,C=f*v-g*p,$=(b<0?-1:1)*Ua(aL(0,_*_*T-C*C)),A=(C*b-w*$)/T,D=(-C*w-b*$)/T,j=(C*b+w*$)/T,E=(-C*w+b*$)/T,F=A-m,M=D-x,R=j-m,I=E-x;return F*F+M*M>R*R+I*I&&(A=j,D=E),{cx:A,cy:D,x01:-l,y01:-d,x11:A*(a/_-1),y11:D*(a/_-1)}}function mL(){var e=uL,t=lL,n=ut(0),r=null,a=dL,i=fL,o=hL,s=null,c=I2(u);function u(){var l,d,f=+e.apply(this,arguments),p=+t.apply(this,arguments),g=a.apply(this,arguments)-Sc,v=i.apply(this,arguments)-Sc,m=H0(v-g),x=v>g;if(s||(s=l=c()),p<f&&(d=p,p=f,f=d),!(p>Bt))s.moveTo(0,0);else if(m>Ls-Bt)s.moveTo(p*Hr(g),p*Bn(g)),s.arc(0,0,p,g,v,!x),f>Bt&&(s.moveTo(f*Hr(v),f*Bn(v)),s.arc(0,0,f,v,g,x));else{var w=g,b=v,T=g,_=v,C=m,$=m,A=o.apply(this,arguments)/2,D=A>Bt&&(r?+r.apply(this,arguments):Ua(f*f+p*p)),j=id(H0(p-f)/2,+n.apply(this,arguments)),E=j,F=j,M,R;if(D>Bt){var I=V0(D/f*Bn(A)),U=V0(D/p*Bn(A));(C-=I*2)>Bt?(I*=x?1:-1,T+=I,_-=I):(C=0,T=_=(g+v)/2),($-=U*2)>Bt?(U*=x?1:-1,w+=U,b-=U):($=0,w=b=(g+v)/2)}var N=p*Hr(w),q=p*Bn(w),z=f*Hr(_),P=f*Bn(_);if(j>Bt){var W=p*Hr(b),Z=p*Bn(b),ne=f*Hr(T),Y=f*Bn(T),Q;if(m<Lo)if(Q=pL(N,q,ne,Y,W,Z,z,P)){var G=N-Q[0],J=q-Q[1],re=W-Q[0],L=Z-Q[1],V=1/Bn(iL((G*re+J*L)/(Ua(G*G+J*J)*Ua(re*re+L*L)))/2),ae=Ua(Q[0]*Q[0]+Q[1]*Q[1]);E=id(j,(f-ae)/(V-1)),F=id(j,(p-ae)/(V+1))}else E=F=0}$>Bt?F>Bt?(M=ks(ne,Y,N,q,p,F,x),R=ks(W,Z,z,P,p,F,x),s.moveTo(M.cx+M.x01,M.cy+M.y01),F<j?s.arc(M.cx,M.cy,F,Ut(M.y01,M.x01),Ut(R.y01,R.x01),!x):(s.arc(M.cx,M.cy,F,Ut(M.y01,M.x01),Ut(M.y11,M.x11),!x),s.arc(0,0,p,Ut(M.cy+M.y11,M.cx+M.x11),Ut(R.cy+R.y11,R.cx+R.x11),!x),s.arc(R.cx,R.cy,F,Ut(R.y11,R.x11),Ut(R.y01,R.x01),!x))):(s.moveTo(N,q),s.arc(0,0,p,w,b,!x)):s.moveTo(N,q),!(f>Bt)||!(C>Bt)?s.lineTo(z,P):E>Bt?(M=ks(z,P,W,Z,f,-E,x),R=ks(N,q,ne,Y,f,-E,x),s.lineTo(M.cx+M.x01,M.cy+M.y01),E<j?s.arc(M.cx,M.cy,E,Ut(M.y01,M.x01),Ut(R.y01,R.x01),!x):(s.arc(M.cx,M.cy,E,Ut(M.y01,M.x01),Ut(M.y11,M.x11),!x),s.arc(0,0,f,Ut(M.cy+M.y11,M.cx+M.x11),Ut(R.cy+R.y11,R.cx+R.x11),x),s.arc(R.cx,R.cy,E,Ut(R.y11,R.x11),Ut(R.y01,R.x01),!x))):s.arc(0,0,f,_,T,x)}if(s.closePath(),l)return s=null,l+""||null}return u.centroid=function(){var l=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-Lo/2;return[Hr(d)*l,Bn(d)*l]},u.innerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:ut(+l),u):e},u.outerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:ut(+l),u):t},u.cornerRadius=function(l){return arguments.length?(n=typeof l=="function"?l:ut(+l),u):n},u.padRadius=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ut(+l),u):r},u.startAngle=function(l){return arguments.length?(a=typeof l=="function"?l:ut(+l),u):a},u.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:ut(+l),u):i},u.padAngle=function(l){return arguments.length?(o=typeof l=="function"?l:ut(+l),u):o},u.context=function(l){return arguments.length?(s=l??null,u):s},u}function Ap(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function N2(e){this._context=e}N2.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 F2(e){return new N2(e)}function gL(e){return e[0]}function vL(e){return e[1]}function yL(e,t){var n=ut(!0),r=null,a=F2,i=null,o=I2(s);e=typeof e=="function"?e:e===void 0?gL:ut(e),t=typeof t=="function"?t:t===void 0?vL:ut(t);function s(c){var u,l=(c=Ap(c)).length,d,f=!1,p;for(r==null&&(i=a(p=o())),u=0;u<=l;++u)!(u<l&&n(d=c[u],u,c))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(d,u,c),+t(d,u,c));if(p)return i=null,p+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:ut(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:ut(+c),s):t},s.defined=function(c){return arguments.length?(n=typeof c=="function"?c:ut(!!c),s):n},s.curve=function(c){return arguments.length?(a=c,r!=null&&(i=a(r)),s):a},s.context=function(c){return arguments.length?(c==null?r=i=null:i=a(r=c),s):r},s}function bL(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function xL(e){return e}function _L(){var e=xL,t=bL,n=null,r=ut(0),a=ut(Ls),i=ut(0);function o(s){var c,u=(s=Ap(s)).length,l,d,f=0,p=new Array(u),g=new Array(u),v=+r.apply(this,arguments),m=Math.min(Ls,Math.max(-Ls,a.apply(this,arguments)-v)),x,w=Math.min(Math.abs(m)/u,i.apply(this,arguments)),b=w*(m<0?-1:1),T;for(c=0;c<u;++c)(T=g[p[c]=c]=+e(s[c],c,s))>0&&(f+=T);for(t!=null?p.sort(function(_,C){return t(g[_],g[C])}):n!=null&&p.sort(function(_,C){return n(s[_],s[C])}),c=0,d=f?(m-u*b)/f:0;c<u;++c,v=x)l=p[c],T=g[l],x=v+(T>0?T*d:0)+b,g[l]={data:s[l],index:c,value:T,startAngle:v,endAngle:x,padAngle:w};return g}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:ut(+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:ut(+s),o):r},o.endAngle=function(s){return arguments.length?(a=typeof s=="function"?s:ut(+s),o):a},o.padAngle=function(s){return arguments.length?(i=typeof s=="function"?s:ut(+s),o):i},o}function Lr(){}function Oc(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 dl(e){this._context=e}dl.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:Oc(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:Oc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function wL(e){return new dl(e)}function L2(e){this._context=e}L2.prototype={areaStart:Lr,areaEnd:Lr,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:Oc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function TL(e){return new L2(e)}function U2(e){this._context=e}U2.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:Oc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function CL(e){return new U2(e)}function B2(e,t){this._basis=new dl(e),this._beta=t}B2.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],a=t[0],i=e[n]-r,o=t[n]-a,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*i),this._beta*t[s]+(1-this._beta)*(a+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const kL=function e(t){function n(r){return t===1?new dl(r):new B2(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Ec(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 jp(e,t){this._context=e,this._k=(1-t)/6}jp.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:Ec(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:Ec(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 SL=function e(t){function n(r){return new jp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Pp(e,t){this._context=e,this._k=(1-t)/6}Pp.prototype={areaStart:Lr,areaEnd:Lr,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:Ec(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 OL=function e(t){function n(r){return new Pp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Dp(e,t){this._context=e,this._k=(1-t)/6}Dp.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:Ec(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 EL=function e(t){function n(r){return new Dp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Ip(e,t,n){var r=e._x1,a=e._y1,i=e._x2,o=e._y2;if(e._l01_a>Bt){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,a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>Bt){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/l,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,a,i,o,e._x2,e._y2)}function W2(e,t){this._context=e,this._alpha=t}W2.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:Ip(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 $L=function e(t){function n(r){return t?new W2(r,t):new jp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function z2(e,t){this._context=e,this._alpha=t}z2.prototype={areaStart:Lr,areaEnd:Lr,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:Ip(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 ML=function e(t){function n(r){return t?new z2(r,t):new Pp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function H2(e,t){this._context=e,this._alpha=t}H2.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:Ip(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 RL=function e(t){function n(r){return t?new H2(r,t):new Dp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function V2(e){this._context=e}V2.prototype={areaStart:Lr,areaEnd:Lr,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 AL(e){return new V2(e)}function q0(e){return e<0?-1:1}function Y0(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),s=(i*a+o*r)/(r+a);return(q0(i)+q0(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function G0(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function od(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,a+s*t,i-s,o-s*n,i,o)}function $c(e){this._context=e}$c.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:od(this,this._t0,G0(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,od(this,G0(this,n=Y0(this,e,t)),n);break;default:od(this,this._t0,n=Y0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function q2(e){this._context=new Y2(e)}(q2.prototype=Object.create($c.prototype)).point=function(e,t){$c.prototype.point.call(this,t,e)};function Y2(e){this._context=e}Y2.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,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function jL(e){return new $c(e)}function PL(e){return new q2(e)}function G2(e){this._context=e}G2.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=Z0(e),a=Z0(t),i=0,o=1;o<n;++i,++o)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],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 Z0(e){var t,n=e.length-1,r,a=new Array(n),i=new Array(n),o=new Array(n);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,o[t]-=r*o[t-1];for(a[n-1]=o[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function DL(e){return new G2(e)}function fl(e,t){this._context=e,this._t=t}fl.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 IL(e){return new fl(e,.5)}function NL(e){return new fl(e,0)}function FL(e){return new fl(e,1)}function K0(e,t){if((o=e.length)>1)for(var n=1,r,a,i=e[t[0]],o,s=i.length;n<o;++n)for(a=i,i=e[t[n]],r=0;r<s;++r)i[r][1]+=i[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function X0(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function LL(e,t){return e[t]}function UL(e){const t=[];return t.key=e,t}function BL(){var e=ut([]),t=X0,n=K0,r=LL;function a(i){var o=Array.from(e.apply(this,arguments),UL),s,c=o.length,u=-1,l;for(const d of i)for(s=0,++u;s<c;++s)(o[s][u]=[0,+r(d,o[s].key,u,i)]).data=d;for(s=0,l=Ap(t(o));s<c;++s)o[l[s]].index=s;return n(o,l),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:ut(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:ut(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?X0:typeof i=="function"?i:ut(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??K0,a):n},a}function WL(e,t){if((c=e.length)>0)for(var n,r=0,a,i,o,s,c,u=e[t[0]].length;r<u;++r)for(o=s=0,n=0;n<c;++n)(i=(a=e[t[n]][r])[1]-a[0])>0?(a[0]=o,a[1]=o+=i):i<0?(a[1]=s,a[0]=s+=i):(a[0]=0,a[1]=i)}var zL=is,HL=Gx,VL=wi;function qL(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],s=zL(e,o);n(s,o)&&HL(i,VL(o,e),s)}return i}var YL=qL;function GL(e,t){return e!=null&&t in Object(e)}var ZL=GL,KL=wi,XL=Tu,JL=cn,QL=Su,eU=Xh,tU=Ti;function nU(e,t,n){t=KL(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=tU(t[r]);if(!(i=e!=null&&n(e,o)))break;e=e[o]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&eU(a)&&QL(o,a)&&(JL(e)||XL(e)))}var rU=nU,aU=ZL,iU=rU;function oU(e,t){return e!=null&&iU(e,t,aU)}var Z2=oU,sU=YL,cU=Z2;function uU(e,t){return sU(e,t,function(n,r){return cU(e,r)})}var lU=uU;function dU(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var Np=dU,J0=gi,fU=Tu,hU=cn,Q0=J0?J0.isConcatSpreadable:void 0;function pU(e){return hU(e)||fU(e)||!!(Q0&&e&&e[Q0])}var mU=pU,gU=Np,vU=mU;function K2(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=vU),a||(a=[]);++i<o;){var s=e[i];t>0&&n(s)?t>1?K2(s,t-1,n,r,a):gU(a,s):r||(a[a.length]=s)}return a}var X2=K2,yU=X2;function bU(e){var t=e==null?0:e.length;return t?yU(e,1):[]}var xU=bU,_U=xU,wU=Wx,TU=zx;function CU(e){return TU(wU(e,void 0,_U),e+"")}var J2=CU,kU=lU,SU=J2,OU=SU(function(e,t){return e==null?{}:kU(e,t)}),EU=OU;const $U=Tt(EU);function MU(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 RU=MU,AU=Mp,jU=RU,PU=Rp,DU=1,IU=2;function NU(e,t,n,r,a,i){var o=n&DU,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var u=i.get(e),l=i.get(t);if(u&&l)return u==t&&l==e;var d=-1,f=!0,p=n&IU?new AU:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var g=e[d],v=t[d];if(r)var m=o?r(v,g,d,t,e,i):r(g,v,d,e,t,i);if(m!==void 0){if(m)continue;f=!1;break}if(p){if(!jU(t,function(x,w){if(!PU(p,w)&&(g===x||a(g,x,n,r,i)))return p.push(w)})){f=!1;break}}else if(!(g===v||a(g,v,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var Q2=NU;function FU(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var LU=FU;function UU(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Fp=UU,ev=gi,tv=Rx,BU=ns,WU=Q2,zU=LU,HU=Fp,VU=1,qU=2,YU="[object Boolean]",GU="[object Date]",ZU="[object Error]",KU="[object Map]",XU="[object Number]",JU="[object RegExp]",QU="[object Set]",eB="[object String]",tB="[object Symbol]",nB="[object ArrayBuffer]",rB="[object DataView]",nv=ev?ev.prototype:void 0,sd=nv?nv.valueOf:void 0;function aB(e,t,n,r,a,i,o){switch(n){case rB:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case nB:return!(e.byteLength!=t.byteLength||!i(new tv(e),new tv(t)));case YU:case GU:case XU:return BU(+e,+t);case ZU:return e.name==t.name&&e.message==t.message;case JU:case eB:return e==t+"";case KU:var s=zU;case QU:var c=r&VU;if(s||(s=HU),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;r|=qU,o.set(e,t);var l=WU(s(e),s(t),r,a,i,o);return o.delete(e),l;case tB:if(sd)return sd.call(e)==sd.call(t)}return!1}var iB=aB,oB=Np,sB=cn;function cB(e,t,n){var r=t(e);return sB(e)?r:oB(r,n(e))}var e_=cB;function uB(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}var t_=uB;function lB(){return[]}var n_=lB,dB=t_,fB=n_,hB=Object.prototype,pB=hB.propertyIsEnumerable,rv=Object.getOwnPropertySymbols,mB=rv?function(e){return e==null?[]:(e=Object(e),dB(rv(e),function(t){return pB.call(e,t)}))}:fB,Lp=mB,gB=Px,vB=gB(Object.keys,Object),yB=vB,bB=Kh,xB=yB,_B=Object.prototype,wB=_B.hasOwnProperty;function TB(e){if(!bB(e))return xB(e);var t=[];for(var n in Object(e))wB.call(e,n)&&n!="constructor"&&t.push(n);return t}var CB=TB,kB=Ux,SB=CB,OB=xi;function EB(e){return OB(e)?kB(e):SB(e)}var ss=EB,$B=e_,MB=Lp,RB=ss;function AB(e){return $B(e,RB,MB)}var r_=AB,av=r_,jB=1,PB=Object.prototype,DB=PB.hasOwnProperty;function IB(e,t,n,r,a,i){var o=n&jB,s=av(e),c=s.length,u=av(t),l=u.length;if(c!=l&&!o)return!1;for(var d=c;d--;){var f=s[d];if(!(o?f in t:DB.call(t,f)))return!1}var p=i.get(e),g=i.get(t);if(p&&g)return p==t&&g==e;var v=!0;i.set(e,t),i.set(t,e);for(var m=o;++d<c;){f=s[d];var x=e[f],w=t[f];if(r)var b=o?r(w,x,f,t,e,i):r(x,w,f,e,t,i);if(!(b===void 0?x===w||a(x,w,n,r,i):b)){v=!1;break}m||(m=f=="constructor")}if(v&&!m){var T=e.constructor,_=t.constructor;T!=_&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof _=="function"&&_ instanceof _)&&(v=!1)}return i.delete(e),i.delete(t),v}var NB=IB,FB=_a,LB=Qn,UB=FB(LB,"DataView"),BB=UB,WB=_a,zB=Qn,HB=WB(zB,"Promise"),VB=HB,qB=_a,YB=Qn,GB=qB(YB,"Set"),a_=GB,ZB=_a,KB=Qn,XB=ZB(KB,"WeakMap"),JB=XB,Cf=BB,kf=Vh,Sf=VB,Of=a_,Ef=JB,i_=zr,ki=Sx,iv="[object Map]",QB="[object Object]",ov="[object Promise]",sv="[object Set]",cv="[object WeakMap]",uv="[object DataView]",eW=ki(Cf),tW=ki(kf),nW=ki(Sf),rW=ki(Of),aW=ki(Ef),Gr=i_;(Cf&&Gr(new Cf(new ArrayBuffer(1)))!=uv||kf&&Gr(new kf)!=iv||Sf&&Gr(Sf.resolve())!=ov||Of&&Gr(new Of)!=sv||Ef&&Gr(new Ef)!=cv)&&(Gr=function(e){var t=i_(e),n=t==QB?e.constructor:void 0,r=n?ki(n):"";if(r)switch(r){case eW:return uv;case tW:return iv;case nW:return ov;case rW:return sv;case aW:return cv}return t});var hl=Gr,cd=wu,iW=Q2,oW=iB,sW=NB,lv=hl,dv=cn,fv=Cu,cW=ep,uW=1,hv="[object Arguments]",pv="[object Array]",Ss="[object Object]",lW=Object.prototype,mv=lW.hasOwnProperty;function dW(e,t,n,r,a,i){var o=dv(e),s=dv(t),c=o?pv:lv(e),u=s?pv:lv(t);c=c==hv?Ss:c,u=u==hv?Ss:u;var l=c==Ss,d=u==Ss,f=c==u;if(f&&fv(e)){if(!fv(t))return!1;o=!0,l=!1}if(f&&!l)return i||(i=new cd),o||cW(e)?iW(e,t,n,r,a,i):oW(e,t,c,n,r,a,i);if(!(n&uW)){var p=l&&mv.call(e,"__wrapped__"),g=d&&mv.call(t,"__wrapped__");if(p||g){var v=p?e.value():e,m=g?t.value():t;return i||(i=new cd),a(v,m,n,r,i)}}return f?(i||(i=new cd),sW(e,t,n,r,a,i)):!1}var fW=dW,hW=fW,gv=Un;function o_(e,t,n,r,a){return e===t?!0:e==null||t==null||!gv(e)&&!gv(t)?e!==e&&t!==t:hW(e,t,n,r,o_,a)}var Up=o_,pW=Up;function mW(e,t){return pW(e,t)}var gW=mW;const vW=Tt(gW);var yW={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 In(){return In=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},In.apply(this,arguments)}function Bp(e,t){if(e==null)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var bW=["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"],xW=function(e,t){return In({},t,e)},_W=function(e,t){var n=Uj({},e,t);return bW.forEach(function(r){Ki(n,r,xW(pr(n,r),n.text))}),n},s_=h.createContext(),c_=function(e){var t=e.children,n=e.animate,r=n===void 0||n,a=e.config,i=a===void 0?"default":a,o=h.useMemo(function(){var s=yD(i)?Bh[i]:i;return{animate:r,config:s}},[r,i]);return y.jsx(s_.Provider,{value:o,children:t})},vv={animate:O.bool,motionConfig:O.oneOfType([O.oneOf(Object.keys(Bh)),O.shape({mass:O.number,tension:O.number,friction:O.number,clamp:O.bool,precision:O.number,velocity:O.number,duration:O.number,easing:O.func})])};c_.propTypes={children:O.node.isRequired,animate:vv.animate,config:vv.motionConfig};var un=function(){return h.useContext(s_)},wW=function(e){var t=un(),n=t.animate,r=t.config,a=function(s){var c=h.useRef();return h.useEffect(function(){c.current=s},[s]),c.current}(e),i=h.useMemo(function(){return Qx(a,e)},[a,e]),o=vr({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return Fr(o,i)},TW={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:ye(Nu),PRGn:ye(Fu),PiYG:ye(Lu),PuOr:ye(Uu),RdBu:ye(Bu),RdGy:ye(Wu),RdYlBu:ye(zu),RdYlGn:ye(Hu),spectral:ye(Vu),blues:ye(al),greens:ye(il),greys:ye(ol),oranges:ye(ul),purples:ye(sl),reds:ye(cl),BuGn:ye(qu),BuPu:ye(Yu),GnBu:ye(Gu),OrRd:ye(Zu),PuBuGn:ye(Ku),PuBu:ye(Xu),PuRd:ye(Ju),RdPu:ye(Qu),YlGnBu:ye(el),YlGn:ye(tl),YlOrBr:ye(nl),YlOrRd:ye(rl)},CW=Object.keys(TW);ye(Nu),ye(Fu),ye(Lu),ye(Uu),ye(Bu),ye(Wu),ye(zu),ye(Hu),ye(Vu),ye(al),ye(il),ye(ol),ye(ul),ye(sl),ye(cl),ye(qu),ye(Yu),ye(Gu),ye(Zu),ye(Ku),ye(Xu),ye(Ju),ye(Qu),ye(el),ye(tl),ye(nl),ye(rl);O.oneOfType([O.oneOf(CW),O.func,O.arrayOf(O.string)]);var kW={basis:wL,basisClosed:TL,basisOpen:CL,bundle:kL,cardinal:SL,cardinalClosed:OL,cardinalOpen:EL,catmullRom:$L,catmullRomClosed:ML,catmullRomOpen:RL,linear:F2,linearClosed:AL,monotoneX:jL,monotoneY:PL,natural:DL,step:IL,stepAfter:FL,stepBefore:NL},Wp=Object.keys(kW);Wp.filter(function(e){return e.endsWith("Closed")});P2(Wp,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");P2(Wp,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");O.shape({top:O.number,right:O.number,bottom:O.number,left:O.number}).isRequired;var SW=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];O.oneOf(SW);Jr($p);var OW={top:0,right:0,bottom:0,left:0},zp=function(e,t,n){return n===void 0&&(n={}),h.useMemo(function(){var r=In({},OW,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])},u_=function(){var e=h.useRef(null),t=h.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],a=h.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(i){var o=i[0];return r(o.contentRect)})})[0];return h.useEffect(function(){return e.current&&a!==null&&a.observe(e.current),function(){a!==null&&a.disconnect()}},[]),[e,n]},EW=function(e){return h.useMemo(function(){return _W(yW,e)},[e])},$W=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?Iu(e.slice("5")):os(e):function(t){return""+t}},pl=function(e){return h.useMemo(function(){return $W(e)},[e])},l_=h.createContext(),MW={},d_=function(e){var t=e.theme,n=t===void 0?MW:t,r=e.children,a=EW(n);return y.jsx(l_.Provider,{value:a,children:r})};d_.propTypes={children:O.node.isRequired,theme:O.object};var lt=function(){return h.useContext(l_)},RW=["outlineWidth","outlineColor","outlineOpacity"],Hp=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,Bp(e,RW)},f_=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?h.cloneElement(r,{},t):t};f_.propTypes={children:O.node.isRequired,condition:O.bool.isRequired,wrapper:O.element.isRequired};var AW={position:"relative"},ml=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,a=r===void 0||r,i=e.isInteractive,o=i===void 0||i,s=e.animate,c=e.motionConfig,u=h.useRef(null);return y.jsx(d_,{theme:n,children:y.jsx(c_,{animate:s,config:c,children:y.jsx(w8,{container:u,children:y.jsxs(f_,{condition:a,wrapper:y.jsx("div",{style:AW,ref:u}),children:[t,o&&y.jsx(_8,{})]})})})})};ml.propTypes={children:O.element.isRequired,isInteractive:O.bool,renderWrapper:O.bool,theme:O.object,animate:O.bool,motionConfig:O.string};O.func.isRequired,O.bool,O.bool,O.object.isRequired,O.bool.isRequired,O.string;var gl=function(e){var t=e.children,n=u_(),r=n[0],a=n[1],i=a.width>0&&a.height>0;return y.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:i&&t({width:a.width,height:a.height})})};gl.propTypes={children:O.func.isRequired};var jW=["id","colors"],h_=function(e){var t=e.id,n=e.colors,r=Bp(e,jW);return y.jsx("linearGradient",In({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(a){var i=a.offset,o=a.color,s=a.opacity;return y.jsx("stop",{offset:i+"%",stopColor:o,stopOpacity:s!==void 0?s:1},i)})}))};h_.propTypes={id:O.string.isRequired,colors:O.arrayOf(O.shape({offset:O.number.isRequired,color:O.string.isRequired,opacity:O.number})).isRequired,gradientTransform:O.string};var p_={linearGradient:h_},zi={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},$f=h.memo(function(e){var t=e.id,n=e.background,r=n===void 0?zi.background:n,a=e.color,i=a===void 0?zi.color:a,o=e.size,s=o===void 0?zi.size:o,c=e.padding,u=c===void 0?zi.padding:c,l=e.stagger,d=l===void 0?zi.stagger:l,f=s+u,p=s/2,g=u/2;return d===!0&&(f=2*s+2*u),y.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:f,height:f,fill:r}),y.jsx("circle",{cx:g+p,cy:g+p,r:p,fill:i}),d&&y.jsx("circle",{cx:1.5*u+s+p,cy:1.5*u+s+p,r:p,fill:i})]})});$f.displayName="PatternDots",$f.propTypes={id:O.string.isRequired,color:O.string.isRequired,background:O.string.isRequired,size:O.number.isRequired,padding:O.number.isRequired,stagger:O.bool.isRequired};var kn=function(e){return e*Math.PI/180},vl=function(e){return 180*e/Math.PI},PW=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},oa=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},DW=function(e){var t=e%360;return t<0&&(t+=360),t},IW={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"}}},Hi={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},Mf=h.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Hi.spacing:n,a=e.rotation,i=a===void 0?Hi.rotation:a,o=e.background,s=o===void 0?Hi.background:o,c=e.color,u=c===void 0?Hi.color:c,l=e.lineWidth,d=l===void 0?Hi.lineWidth:l,f=Math.round(i)%360,p=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var g,v=p,m=p;return f===0?g=`
254
- M 0 0 L `+v+` 0
255
- M 0 `+m+" L "+v+" "+m+`
256
- `:f===90?g=`
257
- M 0 0 L 0 `+m+`
258
- M `+v+" 0 L "+v+" "+m+`
259
- `:(v=Math.abs(p/Math.sin(kn(f))),m=p/Math.sin(kn(90-f)),g=f>0?`
260
- M 0 `+-m+" L "+2*v+" "+m+`
261
- M `+-v+" "+-m+" L "+v+" "+m+`
262
- M `+-v+" 0 L "+v+" "+2*m+`
253
+ */var fg;function GS(){return fg||(fg=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,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(k){return typeof k=="string"||typeof k=="function"||k===r||k===c||k===i||k===a||k===d||k===f||typeof k=="object"&&k!==null&&(k.$$typeof===m||k.$$typeof===p||k.$$typeof===o||k.$$typeof===s||k.$$typeof===l||k.$$typeof===v||k.$$typeof===x||k.$$typeof===w||k.$$typeof===g)}function T(k){if(typeof k=="object"&&k!==null){var ge=k.$$typeof;switch(ge){case t:var pe=k.type;switch(pe){case u:case c:case r:case i:case a:case d:return pe;default:var de=pe&&pe.$$typeof;switch(de){case s:case l:case m:case p:case o:return de;default:return ge}}case n:return ge}}}var _=u,C=c,$=s,A=o,D=t,j=l,E=r,F=m,M=p,R=n,I=i,U=a,N=d,q=!1;function z(k){return q||(q=!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.")),P(k)||T(k)===u}function P(k){return T(k)===c}function W(k){return T(k)===s}function Z(k){return T(k)===o}function ne(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function Y(k){return T(k)===l}function Q(k){return T(k)===r}function G(k){return T(k)===m}function J(k){return T(k)===p}function re(k){return T(k)===n}function L(k){return T(k)===i}function V(k){return T(k)===a}function ae(k){return T(k)===d}Ye.AsyncMode=_,Ye.ConcurrentMode=C,Ye.ContextConsumer=$,Ye.ContextProvider=A,Ye.Element=D,Ye.ForwardRef=j,Ye.Fragment=E,Ye.Lazy=F,Ye.Memo=M,Ye.Portal=R,Ye.Profiler=I,Ye.StrictMode=U,Ye.Suspense=N,Ye.isAsyncMode=z,Ye.isConcurrentMode=P,Ye.isContextConsumer=W,Ye.isContextProvider=Z,Ye.isElement=ne,Ye.isForwardRef=Y,Ye.isFragment=Q,Ye.isLazy=G,Ye.isMemo=J,Ye.isPortal=re,Ye.isProfiler=L,Ye.isStrictMode=V,Ye.isSuspense=ae,Ye.isValidElementType=b,Ye.typeOf=T}()),Ye}process.env.NODE_ENV==="production"?Gd.exports=YS():Gd.exports=GS();var ZS=Gd.exports,m1=ZS,KS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},XS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},g1={};g1[m1.ForwardRef]=KS;g1[m1.Memo]=XS;function JS(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function Th(e,t){const n=h.useContext(qS);if(!n)throw new Error("Missing <CookiesProvider>");const a=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[i,o]=h.useState(()=>n.getAll(a));JS()&&h.useLayoutEffect(()=>{function l(){const d=n.getAll(a);QS(e||null,d,i)&&o(d)}return n.addChangeListener(l),()=>{n.removeChangeListener(l)}},[n,i]);const s=h.useMemo(()=>n.set.bind(n),[n]),u=h.useMemo(()=>n.remove.bind(n),[n]),c=h.useMemo(()=>n.update.bind(n),[n]);return[i,s,u,c]}function QS(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const eO=()=>{const{axiosOptions:e,cookieDomain:t}=h.useContext(bn),[,n,r]=Th(["Authorization"]),a=dt.create(e),i=h.useCallback(()=>localStorage.getItem("token")??null,[]),o=h.useCallback(()=>{const c=i();return c!==null&&c.length>0},[i]),s=h.useCallback(async(c,l)=>a.post("/user/login",{kid:c,password:l}).then(d=>(localStorage.setItem("token",d.data),n("Authorization",d.data,{path:"/",secure:!0,sameSite:"none",domain:t,expires:Zw(new Date(Date.now()),24)}),d.data)).catch(d=>(console.log(d),null)),[a,n,t]),u=h.useCallback(()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),r("Authorization")},[r]);return{isAuthenticated:o,login:s,logout:u,getToken:i}},tO=()=>{const[,,e]=Th(["Authorization"]),{msalScopes:t}=h.useContext(Sh),{instance:n,inProgress:r}=sm.useMsal(),a=sm.useIsAuthenticated(),i=h.useCallback(async()=>{var f;const l=n.getActiveAccount(),d=l??((f=n.getAllAccounts())==null?void 0:f.at(0))??void 0;return d?(l||n.setActiveAccount(d),n.acquireTokenSilent({scopes:t,account:d}).then(p=>p.accessToken).catch(p=>{if(console.error("Error acquiring token",p),p instanceof om.InteractionRequiredAuthError)return console.log("Silent token acquisition failed. Acquiring token using redirect"),n.acquireTokenRedirect({scopes:t}),null;throw p})):null},[n,t]),o=h.useCallback(()=>a,[a]),s=h.useCallback(()=>!o()&&r!==om.InteractionStatus.None,[o,r]),u=h.useCallback(async()=>n.loginRedirect({scopes:t}).then(()=>"").catch(()=>null),[n,t]),c=h.useCallback(()=>{n.logout(),localStorage.removeItem("user"),e("Authorization")},[e,n]);return{isAuthenticated:o,isAuthenticating:s,login:u,logout:c,getToken:i}},v1=()=>{const{useMsal:e}=h.useContext(Sh),t=eO(),n=tO();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}},nO="_toast_1s57i_1",Pi={toast:nO},rO=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}},Ch=()=>({addNotification:h.useCallback((t,n)=>{const r=c1(t),a=rO(n),i=y.jsxs(y.Fragment,{children:[r,y.jsx(Ob,{onClick:()=>Aa.dismiss(r),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});switch(n){case"success":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(qk,{size:12}),className:ie("luminus-toast-success rounded shadow bg-success",Pi.toast)});break}case"danger":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Ik,{size:12}),className:ie("luminus-toast-danger rounded shadow bg-danger",Pi.toast)});break}case"warning":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Rk,{size:12}),className:ie("luminus-toast-warning rounded shadow bg-warning",Pi.toast)});break}case"info":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Pk,{size:12}),className:ie("luminus-toast-info rounded shadow bg-info",Pi.toast)});break}case"prompt":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Dk,{size:12}),className:ie("luminus-toast-prompt rounded shadow bg-light",Pi.toast)});break}}},[])}),aO=dt.CancelToken,ru=e=>{const{authenticated:t=!0,differentBaseUrl:n,silent:r=!1,customToken:a,ignoreDelegation:i,noToastOnStatus:o}={...e},{language:s,axiosOptions:u,texts:{axios:c}}=h.useContext(bn),{delegation:l}=h.useContext(M1),d=h.useMemo(()=>(l==null?void 0:l.id)??null,[l==null?void 0:l.id]),{addNotification:f}=Ch(),{getToken:p}=v1(),m=h.useMemo(()=>dt.create(u),[u]),g=h.useCallback(async x=>{var w,b,T;if(t&&!x.headers.Authorization){const _=a??await p();if(!_)return Promise.reject(new Error("No bearer token"));x.headers.Authorization=`Bearer ${_}`}return d!==null&&!i&&(x.headers.DelegationId=d.toString()),(w=x.url)!=null&&w.includes("culture=")?x.url=(b=x.url)==null?void 0:b.replace(/culture=[a-z]{2}/,`culture=${s}`):x.url=`${x.url}${(T=x.url)!=null&&T.includes("?")?"&":"?"}culture=${s}`,x},[t,p,s,a,d,i]),v=h.useCallback(x=>{var T,_;if(console.log(x),dt.isCancel(x))return Promise.reject(x);const w=_h(x);if(w.length>0){const C=w.find($=>$.name.toLowerCase()==="others");return C?(!r&&f(C.errors,"danger"),Promise.reject(x)):(!r&&f(c.validationError,"warning"),Promise.reject(x))}const b=s1(x);return b!==null?(!r&&f(`${c.permissionError}: ${lo(", ",...b)}`,"danger"),Promise.reject(x)):(o??[]).includes((T=x.response)==null?void 0:T.status)?Promise.reject(x):((_=x.response)==null?void 0:_.status)===403?(!r&&f(c.forbiddenError,"danger"),Promise.reject(x)):x.message&&x.message==="Network Error"?(!r&&f(c.networkError,"danger"),Promise.reject(x)):(dt.isCancel(x)||!r&&f(c.unexpectedError,"danger"),Promise.reject(x))},[f,c.forbiddenError,c.networkError,c.permissionError,c.unexpectedError,c.validationError,r,o]);return h.useEffect(()=>{n&&(m.defaults.baseURL=n),m.interceptors.request.clear(),m.interceptors.response.clear();const x=m.interceptors.request.use(g,b=>Promise.reject(b)),w=m.interceptors.response.use(b=>b,v);return()=>{m.interceptors.request.eject(x),m.interceptors.response.eject(w)}},[m.defaults,m.interceptors.request,m.interceptors.response,n,g,v]),m};let Ul;const y1=()=>{const{show:e,text:t,showConfirm:n,hideConfirm:r}=h.useContext(Eb),a=()=>{r()};return{confirm:async u=>(n(u),new Promise(c=>{Ul=c})),onConfirm:()=>{a(),Ul(!0)},onCancel:()=>{a(),Ul(!1)},show:e,text:t}};var Fe;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const i={};for(const o of a)i[o]=o;return i},e.getValidEnumValues=a=>{const i=e.objectKeys(a).filter(s=>typeof a[a[s]]!="number"),o={};for(const s of i)o[s]=a[s];return e.objectValues(o)},e.objectValues=a=>e.objectKeys(a).map(function(i){return a[i]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&i.push(o);return i},e.find=(a,i)=>{for(const o of a)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function r(a,i=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(Fe||(Fe={}));var Zd;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Zd||(Zd={}));const ue=Fe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Or=e=>{switch(typeof e){case"undefined":return ue.undefined;case"string":return ue.string;case"number":return isNaN(e)?ue.nan:ue.number;case"boolean":return ue.boolean;case"function":return ue.function;case"bigint":return ue.bigint;case"symbol":return ue.symbol;case"object":return Array.isArray(e)?ue.array:e===null?ue.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ue.promise:typeof Map<"u"&&e instanceof Map?ue.map:typeof Set<"u"&&e instanceof Set?ue.set:typeof Date<"u"&&e instanceof Date?ue.date:ue.object;default:return ue.unknown}},te=Fe.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"]),iO=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class gn 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(i){return i.message},r={_errors:[]},a=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(a);else if(o.code==="invalid_return_type")a(o.returnTypeError);else if(o.code==="invalid_arguments")a(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,u=0;for(;u<o.path.length;){const c=o.path[u];u===o.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(n(o))):s[c]=s[c]||{_errors:[]},s=s[c],u++}}};return a(this),r}static assert(t){if(!(t instanceof gn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Fe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}gn.create=e=>new gn(e);const Ja=(e,t)=>{let n;switch(e.code){case te.invalid_type:e.received===ue.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case te.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Fe.jsonStringifyReplacer)}`;break;case te.unrecognized_keys:n=`Unrecognized key(s) in object: ${Fe.joinValues(e.keys,", ")}`;break;case te.invalid_union:n="Invalid input";break;case te.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Fe.joinValues(e.options)}`;break;case te.invalid_enum_value:n=`Invalid enum value. Expected ${Fe.joinValues(e.options)}, received '${e.received}'`;break;case te.invalid_arguments:n="Invalid function arguments";break;case te.invalid_return_type:n="Invalid function return type";break;case te.invalid_date:n="Invalid date";break;case te.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}"`:Fe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case te.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 te.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 te.custom:n="Invalid input";break;case te.invalid_intersection_types:n="Intersection results could not be merged";break;case te.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case te.not_finite:n="Number must be finite";break;default:n=t.defaultError,Fe.assertNever(e)}return{message:n}};let b1=Ja;function oO(e){b1=e}function rc(){return b1}const ac=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,i=[...n,...a.path||[]],o={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let s="";const u=r.filter(c=>!!c).slice().reverse();for(const c of u)s=c(o,{data:t,defaultError:s}).message;return{...a,path:i,message:s}},sO=[];function ce(e,t){const n=rc(),r=ac({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ja?void 0:Ja].filter(a=>!!a)});e.common.issues.push(r)}class Ht{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 a of n){if(a.status==="aborted")return we;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const i=await a.key,o=await a.value;r.push({key:i,value:o})}return Ht.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:i,value:o}=a;if(i.status==="aborted"||o.status==="aborted")return we;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const we=Object.freeze({status:"aborted"}),Fa=e=>({status:"dirty",value:e}),Kt=e=>({status:"valid",value:e}),Kd=e=>e.status==="aborted",Xd=e=>e.status==="dirty",fo=e=>e.status==="valid",ho=e=>typeof Promise<"u"&&e instanceof Promise;function ic(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 x1(e,t,n,r,a){if(typeof t=="function"?e!==t||!a:!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 me;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(me||(me={}));var Yi,Gi;class Gn{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}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 hg=(e,t)=>{if(fo(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 gn(e.common.issues);return this._error=n,this._error}}};function Ee(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=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:a}:{errorMap:(o,s)=>{var u,c;const{message:l}=e;return o.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:(u=l??r)!==null&&u!==void 0?u:s.defaultError}:o.code!=="invalid_type"?{message:s.defaultError}:{message:(c=l??n)!==null&&c!==void 0?c:s.defaultError}},description:a}}class Re{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 Or(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Or(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ht,ctx:{common:t.parent.common,data:t.data,parsedType:Or(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(ho(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 a={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:Or(t)},i=this._parseSync({data:t,path:a.path,parent:a});return hg(a,i)}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:Or(t)},a=this._parse({data:t,path:r.path,parent:r}),i=await(ho(a)?a:Promise.resolve(a));return hg(r,i)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,i)=>{const o=t(a),s=()=>i.addIssue({code:te.custom,...r(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(u=>u?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new Nn({schema:this,typeName:_e.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return qn.create(this,this._def)}nullable(){return Nr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Dn.create(this,this._def)}promise(){return ei.create(this,this._def)}or(t){return vo.create([this,t],this._def)}and(t){return yo.create(this,t,this._def)}transform(t){return new Nn({...Ee(this._def),schema:this,typeName:_e.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new To({...Ee(this._def),innerType:this,defaultValue:n,typeName:_e.ZodDefault})}brand(){return new kh({typeName:_e.ZodBranded,type:this,...Ee(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Co({...Ee(this._def),innerType:this,catchValue:n,typeName:_e.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Ko.create(this,t)}readonly(){return ko.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const cO=/^c[^\s-]{8,}$/i,uO=/^[0-9a-z]+$/,lO=/^[0-9A-HJKMNP-TV-Z]{26}$/,dO=/^[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,fO=/^[a-z0-9_-]{21}$/i,hO=/^[-+]?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)?)??$/,pO=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,mO="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Bl;const gO=/^(?:(?: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])$/,vO=/^(([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})))$/,yO=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,_1="((\\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])))",bO=new RegExp(`^${_1}$`);function w1(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 xO(e){return new RegExp(`^${w1(e)}$`)}function T1(e){let t=`${_1}T${w1(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 _O(e,t){return!!((t==="v4"||!t)&&gO.test(e)||(t==="v6"||!t)&&vO.test(e))}class An extends Re{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ue.string){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.string,received:i.parsedType}),we}const r=new Ht;let a;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,s=t.data.length<i.value;(o||s)&&(a=this._getOrReturnCtx(t,a),o?ce(a,{code:te.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):s&&ce(a,{code:te.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")pO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"email",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")Bl||(Bl=new RegExp(mO,"u")),Bl.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"emoji",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")dO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"uuid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")fO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"nanoid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")cO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"cuid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")uO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"cuid2",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")lO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"ulid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),ce(a,{validation:"url",code:te.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"regex",code:te.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?T1(i).test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?bO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?xO(i).test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?hO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"duration",code:te.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?_O(t.data,i.version)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"ip",code:te.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?yO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"base64",code:te.invalid_string,message:i.message}),r.dirty()):Fe.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:te.invalid_string,...me.errToObj(r)})}_addCheck(t){return new An({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...me.errToObj(t)})}url(t){return this._addCheck({kind:"url",...me.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...me.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...me.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...me.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...me.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...me.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...me.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...me.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...me.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,...me.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,...me.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...me.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...me.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...me.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...me.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...me.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...me.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...me.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...me.errToObj(n)})}nonempty(t){return this.min(1,me.errToObj(t))}trim(){return new An({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new An({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new An({...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}}An.create=e=>{var t;return new An({checks:[],typeName:_e.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ee(e)})};function wO(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,i=parseInt(e.toFixed(a).replace(".","")),o=parseInt(t.toFixed(a).replace(".",""));return i%o/Math.pow(10,a)}class Pr extends Re{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)!==ue.number){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.number,received:i.parsedType}),we}let r;const a=new Ht;for(const i of this._def.checks)i.kind==="int"?Fe.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ce(r,{code:te.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?wO(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ce(r,{code:te.not_finite,message:i.message}),a.dirty()):Fe.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,me.toString(n))}gt(t,n){return this.setLimit("min",t,!1,me.toString(n))}lte(t,n){return this.setLimit("max",t,!0,me.toString(n))}lt(t,n){return this.setLimit("max",t,!1,me.toString(n))}setLimit(t,n,r,a){return new Pr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:me.toString(a)}]})}_addCheck(t){return new Pr({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:me.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:me.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:me.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:me.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:me.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:me.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:me.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:me.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:me.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"&&Fe.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)}}Pr.create=e=>new Pr({checks:[],typeName:_e.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ee(e)});class Dr extends Re{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)!==ue.bigint){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.bigint,received:i.parsedType}),we}let r;const a=new Ht;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):Fe.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,me.toString(n))}gt(t,n){return this.setLimit("min",t,!1,me.toString(n))}lte(t,n){return this.setLimit("max",t,!0,me.toString(n))}lt(t,n){return this.setLimit("max",t,!1,me.toString(n))}setLimit(t,n,r,a){return new Dr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:me.toString(a)}]})}_addCheck(t){return new Dr({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:me.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:me.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:me.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:me.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:me.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}}Dr.create=e=>{var t;return new Dr({checks:[],typeName:_e.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ee(e)})};class po extends Re{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ue.boolean){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.boolean,received:r.parsedType}),we}return Kt(t.data)}}po.create=e=>new po({typeName:_e.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ee(e)});class la extends Re{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ue.date){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.date,received:i.parsedType}),we}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_date}),we}const r=new Ht;let a;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Fe.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new la({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:me.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:me.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}}la.create=e=>new la({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:_e.ZodDate,...Ee(e)});class oc extends Re{_parse(t){if(this._getType(t)!==ue.symbol){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.symbol,received:r.parsedType}),we}return Kt(t.data)}}oc.create=e=>new oc({typeName:_e.ZodSymbol,...Ee(e)});class mo extends Re{_parse(t){if(this._getType(t)!==ue.undefined){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.undefined,received:r.parsedType}),we}return Kt(t.data)}}mo.create=e=>new mo({typeName:_e.ZodUndefined,...Ee(e)});class go extends Re{_parse(t){if(this._getType(t)!==ue.null){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.null,received:r.parsedType}),we}return Kt(t.data)}}go.create=e=>new go({typeName:_e.ZodNull,...Ee(e)});class Qa extends Re{constructor(){super(...arguments),this._any=!0}_parse(t){return Kt(t.data)}}Qa.create=e=>new Qa({typeName:_e.ZodAny,...Ee(e)});class ra extends Re{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Kt(t.data)}}ra.create=e=>new ra({typeName:_e.ZodUnknown,...Ee(e)});class hr extends Re{_parse(t){const n=this._getOrReturnCtx(t);return ce(n,{code:te.invalid_type,expected:ue.never,received:n.parsedType}),we}}hr.create=e=>new hr({typeName:_e.ZodNever,...Ee(e)});class sc extends Re{_parse(t){if(this._getType(t)!==ue.undefined){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.void,received:r.parsedType}),we}return Kt(t.data)}}sc.create=e=>new sc({typeName:_e.ZodVoid,...Ee(e)});class Dn extends Re{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==ue.array)return ce(n,{code:te.invalid_type,expected:ue.array,received:n.parsedType}),we;if(a.exactLength!==null){const o=n.data.length>a.exactLength.value,s=n.data.length<a.exactLength.value;(o||s)&&(ce(n,{code:o?te.too_big:te.too_small,minimum:s?a.exactLength.value:void 0,maximum:o?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(ce(n,{code:te.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(ce(n,{code:te.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,s)=>a.type._parseAsync(new Gn(n,o,n.path,s)))).then(o=>Ht.mergeArray(r,o));const i=[...n.data].map((o,s)=>a.type._parseSync(new Gn(n,o,n.path,s)));return Ht.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Dn({...this._def,minLength:{value:t,message:me.toString(n)}})}max(t,n){return new Dn({...this._def,maxLength:{value:t,message:me.toString(n)}})}length(t,n){return new Dn({...this._def,exactLength:{value:t,message:me.toString(n)}})}nonempty(t){return this.min(1,t)}}Dn.create=(e,t)=>new Dn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:_e.ZodArray,...Ee(t)});function Na(e){if(e instanceof mt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=qn.create(Na(r))}return new mt({...e._def,shape:()=>t})}else return e instanceof Dn?new Dn({...e._def,type:Na(e.element)}):e instanceof qn?qn.create(Na(e.unwrap())):e instanceof Nr?Nr.create(Na(e.unwrap())):e instanceof Zn?Zn.create(e.items.map(t=>Na(t))):e}class mt extends Re{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=Fe.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==ue.object){const c=this._getOrReturnCtx(t);return ce(c,{code:te.invalid_type,expected:ue.object,received:c.parsedType}),we}const{status:r,ctx:a}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof hr&&this._def.unknownKeys==="strip"))for(const c in a.data)o.includes(c)||s.push(c);const u=[];for(const c of o){const l=i[c],d=a.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new Gn(a,d,a.path,c)),alwaysSet:c in a.data})}if(this._def.catchall instanceof hr){const c=this._def.unknownKeys;if(c==="passthrough")for(const l of s)u.push({key:{status:"valid",value:l},value:{status:"valid",value:a.data[l]}});else if(c==="strict")s.length>0&&(ce(a,{code:te.unrecognized_keys,keys:s}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const l of s){const d=a.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new Gn(a,d,a.path,l)),alwaysSet:l in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const c=[];for(const l of u){const d=await l.key,f=await l.value;c.push({key:d,value:f,alwaysSet:l.alwaysSet})}return c}).then(c=>Ht.mergeObjectSync(r,c)):Ht.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(t){return me.errToObj,new mt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,i,o,s;const u=(o=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=me.errToObj(t).message)!==null&&s!==void 0?s:u}:{message:u}}}:{}})}strip(){return new mt({...this._def,unknownKeys:"strip"})}passthrough(){return new mt({...this._def,unknownKeys:"passthrough"})}extend(t){return new mt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new mt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:_e.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new mt({...this._def,catchall:t})}pick(t){const n={};return Fe.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new mt({...this._def,shape:()=>n})}omit(t){const n={};return Fe.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new mt({...this._def,shape:()=>n})}deepPartial(){return Na(this)}partial(t){const n={};return Fe.objectKeys(this.shape).forEach(r=>{const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}),new mt({...this._def,shape:()=>n})}required(t){const n={};return Fe.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof qn;)i=i._def.innerType;n[r]=i}}),new mt({...this._def,shape:()=>n})}keyof(){return C1(Fe.objectKeys(this.shape))}}mt.create=(e,t)=>new mt({shape:()=>e,unknownKeys:"strip",catchall:hr.create(),typeName:_e.ZodObject,...Ee(t)});mt.strictCreate=(e,t)=>new mt({shape:()=>e,unknownKeys:"strict",catchall:hr.create(),typeName:_e.ZodObject,...Ee(t)});mt.lazycreate=(e,t)=>new mt({shape:e,unknownKeys:"strip",catchall:hr.create(),typeName:_e.ZodObject,...Ee(t)});class vo extends Re{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(i){for(const s of i)if(s.result.status==="valid")return s.result;for(const s of i)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const o=i.map(s=>new gn(s.ctx.common.issues));return ce(n,{code:te.invalid_union,unionErrors:o}),we}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(a);{let i;const o=[];for(const u of r){const c={...n,common:{...n.common,issues:[]},parent:null},l=u._parseSync({data:n.data,path:n.path,parent:c});if(l.status==="valid")return l;l.status==="dirty"&&!i&&(i={result:l,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const s=o.map(u=>new gn(u));return ce(n,{code:te.invalid_union,unionErrors:s}),we}}get options(){return this._def.options}}vo.create=(e,t)=>new vo({options:e,typeName:_e.ZodUnion,...Ee(t)});const nr=e=>e instanceof xo?nr(e.schema):e instanceof Nn?nr(e.innerType()):e instanceof _o?[e.value]:e instanceof Ir?e.options:e instanceof wo?Fe.objectValues(e.enum):e instanceof To?nr(e._def.innerType):e instanceof mo?[void 0]:e instanceof go?[null]:e instanceof qn?[void 0,...nr(e.unwrap())]:e instanceof Nr?[null,...nr(e.unwrap())]:e instanceof kh||e instanceof ko?nr(e.unwrap()):e instanceof Co?nr(e._def.innerType):[];class au extends Re{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ue.object)return ce(n,{code:te.invalid_type,expected:ue.object,received:n.parsedType}),we;const r=this.discriminator,a=n.data[r],i=this.optionsMap.get(a);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(ce(n,{code:te.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),we)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const a=new Map;for(const i of n){const o=nr(i.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(a.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);a.set(s,i)}}return new au({typeName:_e.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a,...Ee(r)})}}function Jd(e,t){const n=Or(e),r=Or(t);if(e===t)return{valid:!0,data:e};if(n===ue.object&&r===ue.object){const a=Fe.objectKeys(t),i=Fe.objectKeys(e).filter(s=>a.indexOf(s)!==-1),o={...e,...t};for(const s of i){const u=Jd(e[s],t[s]);if(!u.valid)return{valid:!1};o[s]=u.data}return{valid:!0,data:o}}else if(n===ue.array&&r===ue.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let i=0;i<e.length;i++){const o=e[i],s=t[i],u=Jd(o,s);if(!u.valid)return{valid:!1};a.push(u.data)}return{valid:!0,data:a}}else return n===ue.date&&r===ue.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class yo extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(i,o)=>{if(Kd(i)||Kd(o))return we;const s=Jd(i.value,o.value);return s.valid?((Xd(i)||Xd(o))&&n.dirty(),{status:n.value,value:s.data}):(ce(r,{code:te.invalid_intersection_types}),we)};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(([i,o])=>a(i,o)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}yo.create=(e,t,n)=>new yo({left:e,right:t,typeName:_e.ZodIntersection,...Ee(n)});class Zn extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.array)return ce(r,{code:te.invalid_type,expected:ue.array,received:r.parsedType}),we;if(r.data.length<this._def.items.length)return ce(r,{code:te.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),we;!this._def.rest&&r.data.length>this._def.items.length&&(ce(r,{code:te.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,s)=>{const u=this._def.items[s]||this._def.rest;return u?u._parse(new Gn(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>Ht.mergeArray(n,o)):Ht.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Zn({...this._def,rest:t})}}Zn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Zn({items:e,typeName:_e.ZodTuple,rest:null,...Ee(t)})};class bo extends Re{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!==ue.object)return ce(r,{code:te.invalid_type,expected:ue.object,received:r.parsedType}),we;const a=[],i=this._def.keyType,o=this._def.valueType;for(const s in r.data)a.push({key:i._parse(new Gn(r,s,r.path,s)),value:o._parse(new Gn(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?Ht.mergeObjectAsync(n,a):Ht.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Re?new bo({keyType:t,valueType:n,typeName:_e.ZodRecord,...Ee(r)}):new bo({keyType:An.create(),valueType:t,typeName:_e.ZodRecord,...Ee(n)})}}class cc extends Re{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!==ue.map)return ce(r,{code:te.invalid_type,expected:ue.map,received:r.parsedType}),we;const a=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([s,u],c)=>({key:a._parse(new Gn(r,s,r.path,[c,"key"])),value:i._parse(new Gn(r,u,r.path,[c,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const u of o){const c=await u.key,l=await u.value;if(c.status==="aborted"||l.status==="aborted")return we;(c.status==="dirty"||l.status==="dirty")&&n.dirty(),s.set(c.value,l.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const u of o){const c=u.key,l=u.value;if(c.status==="aborted"||l.status==="aborted")return we;(c.status==="dirty"||l.status==="dirty")&&n.dirty(),s.set(c.value,l.value)}return{status:n.value,value:s}}}}cc.create=(e,t,n)=>new cc({valueType:t,keyType:e,typeName:_e.ZodMap,...Ee(n)});class da extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.set)return ce(r,{code:te.invalid_type,expected:ue.set,received:r.parsedType}),we;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(ce(r,{code:te.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(ce(r,{code:te.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const i=this._def.valueType;function o(u){const c=new Set;for(const l of u){if(l.status==="aborted")return we;l.status==="dirty"&&n.dirty(),c.add(l.value)}return{status:n.value,value:c}}const s=[...r.data.values()].map((u,c)=>i._parse(new Gn(r,u,r.path,c)));return r.common.async?Promise.all(s).then(u=>o(u)):o(s)}min(t,n){return new da({...this._def,minSize:{value:t,message:me.toString(n)}})}max(t,n){return new da({...this._def,maxSize:{value:t,message:me.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}da.create=(e,t)=>new da({valueType:e,minSize:null,maxSize:null,typeName:_e.ZodSet,...Ee(t)});class Ba extends Re{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ue.function)return ce(n,{code:te.invalid_type,expected:ue.function,received:n.parsedType}),we;function r(s,u){return ac({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,rc(),Ja].filter(c=>!!c),issueData:{code:te.invalid_arguments,argumentsError:u}})}function a(s,u){return ac({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,rc(),Ja].filter(c=>!!c),issueData:{code:te.invalid_return_type,returnTypeError:u}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof ei){const s=this;return Kt(async function(...u){const c=new gn([]),l=await s._def.args.parseAsync(u,i).catch(p=>{throw c.addIssue(r(u,p)),c}),d=await Reflect.apply(o,this,l);return await s._def.returns._def.type.parseAsync(d,i).catch(p=>{throw c.addIssue(a(d,p)),c})})}else{const s=this;return Kt(function(...u){const c=s._def.args.safeParse(u,i);if(!c.success)throw new gn([r(u,c.error)]);const l=Reflect.apply(o,this,c.data),d=s._def.returns.safeParse(l,i);if(!d.success)throw new gn([a(l,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ba({...this._def,args:Zn.create(t).rest(ra.create())})}returns(t){return new Ba({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ba({args:t||Zn.create([]).rest(ra.create()),returns:n||ra.create(),typeName:_e.ZodFunction,...Ee(r)})}}class xo extends Re{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})}}xo.create=(e,t)=>new xo({getter:e,typeName:_e.ZodLazy,...Ee(t)});class _o extends Re{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ce(n,{received:n.data,code:te.invalid_literal,expected:this._def.value}),we}return{status:"valid",value:t.data}}get value(){return this._def.value}}_o.create=(e,t)=>new _o({value:e,typeName:_e.ZodLiteral,...Ee(t)});function C1(e,t){return new Ir({values:e,typeName:_e.ZodEnum,...Ee(t)})}class Ir extends Re{constructor(){super(...arguments),Yi.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ce(n,{expected:Fe.joinValues(r),received:n.parsedType,code:te.invalid_type}),we}if(ic(this,Yi)||x1(this,Yi,new Set(this._def.values)),!ic(this,Yi).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ce(n,{received:n.data,code:te.invalid_enum_value,options:r}),we}return Kt(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 Ir.create(t,{...this._def,...n})}exclude(t,n=this._def){return Ir.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Yi=new WeakMap;Ir.create=C1;class wo extends Re{constructor(){super(...arguments),Gi.set(this,void 0)}_parse(t){const n=Fe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ue.string&&r.parsedType!==ue.number){const a=Fe.objectValues(n);return ce(r,{expected:Fe.joinValues(a),received:r.parsedType,code:te.invalid_type}),we}if(ic(this,Gi)||x1(this,Gi,new Set(Fe.getValidEnumValues(this._def.values))),!ic(this,Gi).has(t.data)){const a=Fe.objectValues(n);return ce(r,{received:r.data,code:te.invalid_enum_value,options:a}),we}return Kt(t.data)}get enum(){return this._def.values}}Gi=new WeakMap;wo.create=(e,t)=>new wo({values:e,typeName:_e.ZodNativeEnum,...Ee(t)});class ei extends Re{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ue.promise&&n.common.async===!1)return ce(n,{code:te.invalid_type,expected:ue.promise,received:n.parsedType}),we;const r=n.parsedType===ue.promise?n.data:Promise.resolve(n.data);return Kt(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ei.create=(e,t)=>new ei({type:e,typeName:_e.ZodPromise,...Ee(t)});class Nn extends Re{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===_e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,i={addIssue:o=>{ce(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const o=a.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async s=>{if(n.value==="aborted")return we;const u=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return u.status==="aborted"?we:u.status==="dirty"||n.value==="dirty"?Fa(u.value):u});{if(n.value==="aborted")return we;const s=this._def.schema._parseSync({data:o,path:r.path,parent:r});return s.status==="aborted"?we:s.status==="dirty"||n.value==="dirty"?Fa(s.value):s}}if(a.type==="refinement"){const o=s=>{const u=a.refinement(s,i);if(r.common.async)return Promise.resolve(u);if(u 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"?we:(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"?we:(s.status==="dirty"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(a.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!fo(o))return o;const s=a.transform(o.value,i);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=>fo(o)?Promise.resolve(a.transform(o.value,i)).then(s=>({status:n.value,value:s})):o);Fe.assertNever(a)}}Nn.create=(e,t,n)=>new Nn({schema:e,typeName:_e.ZodEffects,effect:t,...Ee(n)});Nn.createWithPreprocess=(e,t,n)=>new Nn({schema:t,effect:{type:"preprocess",transform:e},typeName:_e.ZodEffects,...Ee(n)});class qn extends Re{_parse(t){return this._getType(t)===ue.undefined?Kt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}qn.create=(e,t)=>new qn({innerType:e,typeName:_e.ZodOptional,...Ee(t)});class Nr extends Re{_parse(t){return this._getType(t)===ue.null?Kt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Nr.create=(e,t)=>new Nr({innerType:e,typeName:_e.ZodNullable,...Ee(t)});class To extends Re{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ue.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}To.create=(e,t)=>new To({innerType:e,typeName:_e.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ee(t)});class Co extends Re{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ho(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new gn(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new gn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Co.create=(e,t)=>new Co({innerType:e,typeName:_e.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ee(t)});class uc extends Re{_parse(t){if(this._getType(t)!==ue.nan){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.nan,received:r.parsedType}),we}return{status:"valid",value:t.data}}}uc.create=e=>new uc({typeName:_e.ZodNaN,...Ee(e)});const TO=Symbol("zod_brand");class kh extends Re{_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 Ko extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?we:i.status==="dirty"?(n.dirty(),Fa(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?we:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new Ko({in:t,out:n,typeName:_e.ZodPipeline})}}class ko extends Re{_parse(t){const n=this._def.innerType._parse(t),r=a=>(fo(a)&&(a.value=Object.freeze(a.value)),a);return ho(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}ko.create=(e,t)=>new ko({innerType:e,typeName:_e.ZodReadonly,...Ee(t)});function k1(e,t={},n){return e?Qa.create().superRefine((r,a)=>{var i,o;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,u=(o=(i=s.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,c=typeof s=="string"?{message:s}:s;a.addIssue({code:"custom",...c,fatal:u})}}):Qa.create()}const CO={object:mt.lazycreate};var _e;(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"})(_e||(_e={}));const kO=(e,t={message:`Input not instance of ${e.name}`})=>k1(n=>n instanceof e,t),S1=An.create,O1=Pr.create,SO=uc.create,OO=Dr.create,E1=po.create,EO=la.create,$O=oc.create,MO=mo.create,RO=go.create,AO=Qa.create,jO=ra.create,PO=hr.create,DO=sc.create,IO=Dn.create,NO=mt.create,FO=mt.strictCreate,LO=vo.create,UO=au.create,BO=yo.create,WO=Zn.create,zO=bo.create,HO=cc.create,VO=da.create,qO=Ba.create,YO=xo.create,GO=_o.create,ZO=Ir.create,KO=wo.create,XO=ei.create,pg=Nn.create,JO=qn.create,QO=Nr.create,eE=Nn.createWithPreprocess,tE=Ko.create,nE=()=>S1().optional(),rE=()=>O1().optional(),aE=()=>E1().optional(),iE={string:e=>An.create({...e,coerce:!0}),number:e=>Pr.create({...e,coerce:!0}),boolean:e=>po.create({...e,coerce:!0}),bigint:e=>Dr.create({...e,coerce:!0}),date:e=>la.create({...e,coerce:!0})},oE=we;var Ft=Object.freeze({__proto__:null,defaultErrorMap:Ja,setErrorMap:oO,getErrorMap:rc,makeIssue:ac,EMPTY_PATH:sO,addIssueToContext:ce,ParseStatus:Ht,INVALID:we,DIRTY:Fa,OK:Kt,isAborted:Kd,isDirty:Xd,isValid:fo,isAsync:ho,get util(){return Fe},get objectUtil(){return Zd},ZodParsedType:ue,getParsedType:Or,ZodType:Re,datetimeRegex:T1,ZodString:An,ZodNumber:Pr,ZodBigInt:Dr,ZodBoolean:po,ZodDate:la,ZodSymbol:oc,ZodUndefined:mo,ZodNull:go,ZodAny:Qa,ZodUnknown:ra,ZodNever:hr,ZodVoid:sc,ZodArray:Dn,ZodObject:mt,ZodUnion:vo,ZodDiscriminatedUnion:au,ZodIntersection:yo,ZodTuple:Zn,ZodRecord:bo,ZodMap:cc,ZodSet:da,ZodFunction:Ba,ZodLazy:xo,ZodLiteral:_o,ZodEnum:Ir,ZodNativeEnum:wo,ZodPromise:ei,ZodEffects:Nn,ZodTransformer:Nn,ZodOptional:qn,ZodNullable:Nr,ZodDefault:To,ZodCatch:Co,ZodNaN:uc,BRAND:TO,ZodBranded:kh,ZodPipeline:Ko,ZodReadonly:ko,custom:k1,Schema:Re,ZodSchema:Re,late:CO,get ZodFirstPartyTypeKind(){return _e},coerce:iE,any:AO,array:IO,bigint:OO,boolean:E1,date:EO,discriminatedUnion:UO,effect:pg,enum:ZO,function:qO,instanceof:kO,intersection:BO,lazy:YO,literal:GO,map:HO,nan:SO,nativeEnum:KO,never:PO,null:RO,nullable:QO,number:O1,object:NO,oboolean:aE,onumber:rE,optional:JO,ostring:nE,pipeline:tE,preprocess:eE,promise:XO,record:zO,set:VO,strictObject:FO,string:S1,symbol:$O,transformer:pg,tuple:WO,undefined:MO,union:LO,unknown:jO,void:DO,NEVER:oE,ZodIssueCode:te,quotelessJson:iO,ZodError:gn});const iu=()=>{const{texts:{formValidation:e}}=h.useContext(bn),t=h.useCallback(g=>{let v=(g!=null&&g.useCoerce?Ft.coerce:Ft).string({invalid_type_error:e.required,required_error:e.required});return g!=null&&g.email&&(v=v.email(e.invalidEmail)),g!=null&&g.length&&(v=v.min(g.length,e.length(g.length))),g!=null&&g.minLength&&(v=v.min(g.minLength,e.minLength(g.minLength))),g!=null&&g.maxLength&&(v=v.max(g.maxLength,e.maxLength(g.maxLength))),g!=null&&g.numeric&&(v=v.regex(/^\d+$/,e.noCharactersOtherThanNumbers)),v.transform(x=>x??null)},[e]),n=h.useCallback(g=>t(g).nullable().optional().transform(v=>v??null),[t]),r=h.useCallback(g=>{const v=(g==null?void 0:g.min)??Number.MIN_SAFE_INTEGER,x=(g==null?void 0:g.max)??Number.MAX_SAFE_INTEGER,w=(g!=null&&g.useCoerce?Ft.coerce:Ft).number({invalid_type_error:e.required,required_error:e.required}).min(v,e.lessThanMin(v)).max(x,e.moreThanMax(x));return w.transform(b=>b??null),w},[e]),a=h.useCallback(g=>r(g).nullable().optional().transform(v=>v??null),[r]),i=h.useCallback(g=>(g!=null&&g.useCoerce?Ft.coerce:Ft).boolean({invalid_type_error:e.required,required_error:e.required}).transform(v=>v??null),[e.required]),o=h.useCallback(g=>(g!=null&&g.useCoerce?Ft.coerce:Ft).string({invalid_type_error:e.required,required_error:e.required}).refine(l1,{message:e.invalidDate}).transform(x=>x??null),[e.invalidDate,e.required]),s=h.useCallback(g=>o(g).nullable().transform(v=>v??null),[o]),u=h.useCallback((g,v)=>Ft.enum(g,{invalid_type_error:e.required,required_error:e.required}).transform(w=>w??null),[e.required]),c=h.useCallback((g,v)=>u(g,v).nullable().transform(x=>x??null),[u]),l=h.useCallback(g=>Ft.object({id:a({useCoerce:!0})}).nullable().transform(x=>x??null),[a]),d=h.useCallback(g=>Ft.object({id:r()}).transform(x=>x??null),[r]),f=h.useCallback(g=>Ft.object({id:n({useCoerce:!0})}).nullable().transform(x=>x??null),[n]),p=h.useCallback(g=>Ft.object({id:t()}).transform(x=>x??null),[t]),m=h.useCallback(({required:g,multiple:v,maxFileSize:x})=>Ft.any().transform(b=>Array.from(b??[])).refine(b=>!g||(b==null?void 0:b.length)>0,"File is required.").refine(b=>v||(b==null?void 0:b.length)<=1,"Multiple files not allowed.").refine(b=>b.every(T=>T.size<=x),`Maximum file size is ${tu(x)}.`).transform(b=>(v?b:b==null?void 0:b[0])??null),[]);return{zString:n,zStringRequired:t,zNumber:a,zNumberRequired:r,zBool:i,zDate:s,zDateRequired:o,zEnum:c,zEnumRequired:u,zObjectIdInt:l,zObjectIdIntRequired:d,zObjectIdStr:f,zObjectIdStrRequired:p,zFile:m}},$1=(e,t,n)=>h.useMemo(()=>n||e!=="date"&&e!=="datetime-local"&&e!=="time"||t?e:"text",[t,e,n]),Sh=h.createContext({useMsal:!1,msalInstance:null,msalScopes:[]}),M1=h.createContext({delegation:null,setDelegation:()=>{},availableDelegations:null,setAvailableDelegations:()=>{},refreshAvailableDelegations:async()=>{}}),R1=h.createContext({addHelmet:e=>{},removeHelmet:()=>{}}),sE="_button_1wjon_1",cE="_filled_1wjon_7",uE="_sm_1wjon_13",lE="_md_1wjon_18",dE="_lg_1wjon_23",ja={button:sE,filled:cE,sm:uE,md:lE,lg:dE},fa=({variant:e="filled",color:t="primary",size:n="md",className:r,children:a,...i})=>i.as==="link"?y.jsx(jc.Link,{to:i.href??"/",className:ie(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,ja.button,ja[e],ja[n]),...i,children:a}):i.as==="button"||i.as===void 0?y.jsx("button",{type:"button",className:ie(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,ja.button,ja[e],ja[n]),...i,children:a}):null,fE="_button_1r3i0_1",Qd={button:fE},ou=({color:e="primary",icon:t,className:n,children:r,...a})=>a.as==="link"?y.jsxs(jc.Link,{to:a.href??"/",className:ie(`luminus-context-button btn text-${e} ${n??""}`,Qd.button),...a,children:[t,r]}):a.as==="button"||a.as===void 0?y.jsxs("button",{type:"button",className:ie(`luminus-context-button btn text-${e} ${n??""}`,Qd.button),...a,children:[t,r]}):null,hE="_icon-button_15e26_1",pE="_sm_15e26_14",mE="_md_15e26_23",gE="_lg_15e26_32",gs={"icon-button":"_icon-button_15e26_1",iconButton:hE,sm:pE,md:mE,lg:gE},su=({type:e="button",color:t="primary",size:n="md",children:r,className:a,...i})=>i.as==="link"?y.jsx(jc.Link,{to:i.href??"/",className:ie(`luminus-icon-button btn text-${t} ${a??""}`,gs.iconButton,gs[n]),...i,children:r}):i.as==="button"||i.as===void 0?y.jsx("button",{type:e,className:ie(`luminus-icon-button btn text-${t} ${a??""}`,gs.iconButton,gs[n]),...i,children:r}):null,vE="_h1_14r4v_1",yE="_h3_14r4v_8",bE="_h6_14r4v_15",xE="_subtitle_14r4v_22",_E="_body_14r4v_29",wE="_body2_14r4v_36",TE="_caption_14r4v_43",CE="_form-label_14r4v_50",_r={h1:vE,h3:yE,h6:bE,subtitle:xE,body:_E,body2:wE,caption:TE,"form-label":"_form-label_14r4v_50",formLabel:CE},kE=({variant:e,className:t,children:n})=>{switch(e){case"h1":return y.jsx("h1",{className:ie("luminus-text-primary luminus-h1",_r.h1,t),children:n});case"h3":return y.jsx("h3",{className:ie("luminus-text luminus-h3",_r.h3,t),children:n});case"h6":return y.jsx("h6",{className:ie("luminus-text luminus-h6",_r.h6,t),children:n});case"subtitle":return y.jsx("div",{className:ie("luminus-text luminus-subtitle",_r.subtitle,t),children:n});case"body":return y.jsx("div",{className:ie("luminus-text luminus-body",_r.body,t),children:n});case"body2":return y.jsx("div",{className:ie("luminus-text luminus-body2",_r.body2,t),children:n});case"caption":return y.jsx("div",{className:ie("luminus-text-muted luminus-caption",_r.caption,t),children:n});case"form-label":return y.jsx("div",{className:ie("luminus-text luminus-form-label",_r.formLabel,t),children:n});default:return y.jsx(y.Fragment,{children:n})}},Oh=({variant:e,className:t,children:n})=>y.jsx(kE,{variant:e,className:t,children:n}),SE="_feedback_esh1j_1",OE="_feedback-spacer_esh1j_8",mg={feedback:SE,"feedback-spacer":"_feedback-spacer_esh1j_8",feedbackSpacer:OE},cu=({message:e})=>y.jsxs(y.Fragment,{children:[y.jsx("div",{className:ie("invalid-feedback luminus-invalid-feedback",mg.feedback),children:e}),y.jsx("div",{className:ie("invalid-feedback-spacer",mg.feedbackSpacer),children:e})]});function EE(e){return Ie({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 $E(e){return Ie({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 ME(e){return Ie({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 RE(e){return Ie({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)}const AE="_item_1dy8x_1",A1={item:AE},ef=({color:e="primary",icon:t,className:n,children:r,...a})=>y.jsxs(co.Item,{className:ie(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${n??""}`,A1.item),...a,children:[t,r]}),jE="_button_qhwih_1",PE={button:jE},j1=h.forwardRef(({color:e="primary",icon:t=y.jsx(Zk,{size:21}),text:n,onClick:r,className:a,children:i,...o},s)=>y.jsxs("button",{type:"button",ref:s,onClick:u=>{u.preventDefault(),r(u)},"aria-label":"dropdown toggle",className:ie(`btn luminus-context-button text-${e} ${a??""}`,PE.button),...o,children:[t,n]})),DE="_avatar-icon_1axl6_1",IE={"avatar-icon":"_avatar-icon_1axl6_1",avatarIcon:DE},P1=({name:e,fontSize:t,size:n})=>{const r=h.useMemo(()=>{const o=e.split(" ");return o.length<2?e:lo(" ",o.at(o.length-2),o.at(o.length-1))},[e]),a=h.useMemo(()=>{const o=r.split(" ");return lo("",...o.map(s=>s.at(0)??void 0))},[r]),i=o=>{let s=0,u;for(u=0;u<o.length;u+=1)s=o.charCodeAt(u)+((s<<5)-s);let c="#";for(u=0;u<3;u+=1){const l=s>>u*8&255;c+=`00${l.toString(16)}`.slice(-2)}return c};return y.jsx(Cb,{placement:"bottom",overlay:y.jsx(mh,{children:e}),children:y.jsx("div",{className:ie("luminus-avatar-icon",IE.avatarIcon),style:{backgroundColor:i(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:y.jsx("div",{children:a})})})},NE=h.forwardRef(({userName:e,onClick:t,children:n},r)=>y.jsxs("button",{type:"button",ref:r,onClick:a=>{a.preventDefault(),t(a)},"aria-label":"User avatar toggle",className:"m-0 p-0",style:{backgroundColor:"transparent",border:"none",cursor:"pointer"},children:[y.jsx(P1,{name:e}),n]})),D1=e=>y.jsx(co.Toggle,{...e}),FE="_dropdown_1lk66_1",LE={dropdown:FE},I1=({toggle:e,children:t,...n})=>y.jsxs(co,{...n,children:[e,y.jsx(co.Menu,{className:ie("luminus-dropdown rounded shadow",LE.dropdown),children:t})]}),UE="_floating-label_1lxzn_1",BE="_without-label_1lxzn_21",WE="_floating-label-check_1lxzn_184",Wl={"floating-label":"_floating-label_1lxzn_1",floatingLabel:UE,"without-label":"_without-label_1lxzn_21",withoutLabel:BE,"floating-label-check":"_floating-label-check_1lxzn_184",floatingLabelCheck:WE},N1=h.forwardRef(({hidden:e,children:t,className:n,isInvalid:r,isForRadioInput:a,inputContainerClassName:i,isForCheckInput:o,...s},u)=>o?y.jsx("div",{className:ie("luminus-floating-label-check",Wl.floatingLabelCheck),children:t}):y.jsx(uh,{ref:u,label:s.withoutLabel?"":s.label,hidden:e??!1,className:ie(`luminus-floating-label ${n??""}`,Wl.floatingLabel,{[i??""]:i},{[Wl.withoutLabel]:s.withoutLabel}),children:t}));N1.displayName="FloatingLabelInput";const zE="_row-label-input_mqkkx_1",HE="_label_mqkkx_4",VE="_input-container_mqkkx_9",qE="_invalid-feedback_mqkkx_104",YE="_keep-check-label_mqkkx_132",GE="_is-invalid_mqkkx_160",Di={"row-label-input":"_row-label-input_mqkkx_1",rowLabelInput:zE,label:HE,"input-container":"_input-container_mqkkx_9",inputContainer:VE,"invalid-feedback":"_invalid-feedback_mqkkx_104",invalidFeedback:qE,"keep-check-label":"_keep-check-label_mqkkx_132",keepCheckLabel:YE,"is-invalid":"_is-invalid_mqkkx_160",isInvalid:GE},Xo=h.forwardRef(({hidden:e,children:t,className:n,isInvalid:r,isForRadioInput:a,isForTextAreaInput:i,inputContainerClassName:o,...s},u)=>y.jsxs("div",{ref:u,className:ie("luminus-row-label row gx-0 gy-0",{"is-invalid":r},{[Di.isInvalid]:r},{[n??""]:n},{"d-none":e},Di.rowLabelInput),children:[!s.withoutLabel&&y.jsx("label",{className:ie("label col-6",{"col-12":i},Di.label),children:y.jsx(Oh,{variant:"form-label",className:r?"text-danger":"",children:s.label})}),y.jsx("div",{className:ie("input-container",Di.inputContainer,{"col-6":!s.withoutLabel&&!i},{"col-12":s.withoutLabel||i},{[Di.keepCheckLabel]:a},{[o??""]:o}),children:t})]}));Xo.displayName="RowLabelInput";const F1=h.forwardRef(({children:e,className:t,hidden:n},r)=>y.jsx("div",{ref:r,className:`${n?"d-none":""} ${t}`,children:e}));F1.displayName="NoInputContainer";const ZE=h.forwardRef(({onClick:e,text:t},n)=>y.jsx("div",{ref:n,onClick:r=>{r.preventDefault(),e(r)},role:"button",className:"middle-div",children:y.jsxs("div",{className:"d-flex flex-column align-items-center",children:[y.jsx("div",{className:"mt-",children:"…"}),y.jsx("div",{className:"mt-1 middle-letter",children:t})]})}));var Eh=Qo(),Se=e=>Jo(e,Eh),$h=Qo();Se.write=e=>Jo(e,$h);var uu=Qo();Se.onStart=e=>Jo(e,uu);var Mh=Qo();Se.onFrame=e=>Jo(e,Mh);var Rh=Qo();Se.onFinish=e=>Jo(e,Rh);var Wa=[];Se.setTimeout=(e,t)=>{const n=Se.now()+t,r=()=>{const i=Wa.findIndex(o=>o.cancel==r);~i&&Wa.splice(i,1),Mr-=~i?1:0},a={time:n,handler:e,cancel:r};return Wa.splice(L1(n),0,a),Mr+=1,U1(),a};var L1=e=>~(~Wa.findIndex(t=>t.time>e)||~Wa.length);Se.cancel=e=>{uu.delete(e),Mh.delete(e),Rh.delete(e),Eh.delete(e),$h.delete(e)};Se.sync=e=>{tf=!0,Se.batchedUpdates(e),tf=!1};Se.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...a){t=a,Se.onStart(n)}return r.handler=e,r.cancel=()=>{uu.delete(n),t=null},r};var Ah=typeof window<"u"?window.requestAnimationFrame:()=>{};Se.use=e=>Ah=e;Se.now=typeof performance<"u"?()=>performance.now():Date.now;Se.batchedUpdates=e=>e();Se.catch=console.error;Se.frameLoop="always";Se.advance=()=>{Se.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):W1()};var $r=-1,Mr=0,tf=!1;function Jo(e,t){tf?(t.delete(e),e(0)):(t.add(e),U1())}function U1(){$r<0&&($r=0,Se.frameLoop!=="demand"&&Ah(B1))}function KE(){$r=-1}function B1(){~$r&&(Ah(B1),Se.batchedUpdates(W1))}function W1(){const e=$r;$r=Se.now();const t=L1($r);if(t&&(z1(Wa.splice(0,t),n=>n.handler()),Mr-=t),!Mr){KE();return}uu.flush(),Eh.flush(e?Math.min(64,$r-e):16.667),Mh.flush(),$h.flush(),Rh.flush()}function Qo(){let e=new Set,t=e;return{add(n){Mr+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Mr-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Mr-=t.size,z1(t,r=>r(n)&&e.add(r)),Mr+=e.size,t=e)}}}function z1(e,t){e.forEach(n=>{try{t(n)}catch(r){Se.catch(r)}})}var XE=Object.defineProperty,JE=(e,t)=>{for(var n in t)XE(e,n,{get:t[n],enumerable:!0})},Fn={};JE(Fn,{assign:()=>e$,colors:()=>Ar,createStringInterpolator:()=>Ph,skipAnimation:()=>V1,to:()=>H1,willAdvance:()=>Dh});function nf(){}var QE=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ee={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 rr(e,t){if(ee.arr(e)){if(!ee.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 Ce=(e,t)=>e.forEach(t);function Kn(e,t,n){if(ee.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 Zt=e=>ee.und(e)?[]:ee.arr(e)?e:[e];function eo(e,t){if(e.size){const n=Array.from(e);e.clear(),Ce(n,t)}}var Zi=(e,...t)=>eo(e,n=>n(...t)),jh=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Ph,H1,Ar=null,V1=!1,Dh=nf,e$=e=>{e.to&&(H1=e.to),e.now&&(Se.now=e.now),e.colors!==void 0&&(Ar=e.colors),e.skipAnimation!=null&&(V1=e.skipAnimation),e.createStringInterpolator&&(Ph=e.createStringInterpolator),e.requestAnimationFrame&&Se.use(e.requestAnimationFrame),e.batchedUpdates&&(Se.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Dh=e.willAdvance),e.frameLoop&&(Se.frameLoop=e.frameLoop)},to=new Set,Tn=[],zl=[],lc=0,lu={get idle(){return!to.size&&!Tn.length},start(e){lc>e.priority?(to.add(e),Se.onStart(t$)):(q1(e),Se(rf))},advance:rf,sort(e){if(lc)Se.onFrame(()=>lu.sort(e));else{const t=Tn.indexOf(e);~t&&(Tn.splice(t,1),Y1(e))}},clear(){Tn=[],to.clear()}};function t$(){to.forEach(q1),to.clear(),Se(rf)}function q1(e){Tn.includes(e)||Y1(e)}function Y1(e){Tn.splice(n$(Tn,t=>t.priority>e.priority),0,e)}function rf(e){const t=zl;for(let n=0;n<Tn.length;n++){const r=Tn[n];lc=r.priority,r.idle||(Dh(r),r.advance(e),r.idle||t.push(r))}return lc=0,zl=Tn,zl.length=0,Tn=t,Tn.length>0}function n$(e,t){const n=e.findIndex(t);return n<0?e.length:n}var r$=(e,t,n)=>Math.min(Math.max(n,e),t),a$={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},jn="[-+]?\\d*\\.?\\d+",dc=jn+"%";function du(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var i$=new RegExp("rgb"+du(jn,jn,jn)),o$=new RegExp("rgba"+du(jn,jn,jn,jn)),s$=new RegExp("hsl"+du(jn,dc,dc)),c$=new RegExp("hsla"+du(jn,dc,dc,jn)),u$=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,l$=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,d$=/^#([0-9a-fA-F]{6})$/,f$=/^#([0-9a-fA-F]{8})$/;function h$(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=d$.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ar&&Ar[e]!==void 0?Ar[e]:(t=i$.exec(e))?(Pa(t[1])<<24|Pa(t[2])<<16|Pa(t[3])<<8|255)>>>0:(t=o$.exec(e))?(Pa(t[1])<<24|Pa(t[2])<<16|Pa(t[3])<<8|yg(t[4]))>>>0:(t=u$.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=f$.exec(e))?parseInt(t[1],16)>>>0:(t=l$.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=s$.exec(e))?(gg(vg(t[1]),vs(t[2]),vs(t[3]))|255)>>>0:(t=c$.exec(e))?(gg(vg(t[1]),vs(t[2]),vs(t[3]))|yg(t[4]))>>>0:null}function Hl(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 gg(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,i=Hl(a,r,e+1/3),o=Hl(a,r,e),s=Hl(a,r,e-1/3);return Math.round(i*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function Pa(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function vg(e){return(parseFloat(e)%360+360)%360/360}function yg(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function vs(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function bg(e){let t=h$(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,a=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${a}, ${i})`}var So=(e,t,n)=>{if(ee.fun(e))return e;if(ee.arr(e))return So({range:e,output:t,extrapolate:n});if(ee.str(e.output[0]))return Ph(e);const r=e,a=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||(c=>c);return c=>{const l=m$(c,i);return p$(c,i[l],i[l+1],a[l],a[l+1],u,o,s,r.map)}};function p$(e,t,n,r,a,i,o,s,u){let c=u?u(e):e;if(c<t){if(o==="identity")return c;o==="clamp"&&(c=t)}if(c>n){if(s==="identity")return c;s==="clamp"&&(c=n)}return r===a?r:t===n?e<=t?r:a:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=i(c),r===-1/0?c=-c:a===1/0?c=c+r:c=c*(a-r)+r,c)}function m$(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var g$=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,a=t==="end"?Math.floor(r):Math.ceil(r);return r$(0,1,a/e)},fc=1.70158,ys=fc*1.525,xg=fc+1,_g=2*Math.PI/3,wg=2*Math.PI/4.5,bs=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,v$={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=>xg*e*e*e-fc*e*e,easeOutBack:e=>1+xg*Math.pow(e-1,3)+fc*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((ys+1)*2*e-ys)/2:(Math.pow(2*e-2,2)*((ys+1)*(e*2-2)+ys)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*_g),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*_g)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*wg))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*wg)/2+1,easeInBounce:e=>1-bs(1-e),easeOutBounce:bs,easeInOutBounce:e=>e<.5?(1-bs(1-2*e))/2:(1+bs(2*e-1))/2,steps:g$},Oo=Symbol.for("FluidValue.get"),ti=Symbol.for("FluidValue.observers"),wn=e=>!!(e&&e[Oo]),tn=e=>e&&e[Oo]?e[Oo]():e,Tg=e=>e[ti]||null;function y$(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Eo(e,t){const n=e[ti];n&&n.forEach(r=>{y$(r,t)})}var G1=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");b$(this,e)}},b$=(e,t)=>Z1(e,Oo,t);function pi(e,t){if(e[Oo]){let n=e[ti];n||Z1(e,ti,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function $o(e,t){const n=e[ti];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[ti]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Z1=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Is=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,x$=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Cg=new RegExp(`(${Is.source})(%|[a-z]+)`,"i"),_$=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,fu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,K1=e=>{const[t,n]=w$(e);if(!t||jh())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const a=window.getComputedStyle(document.documentElement).getPropertyValue(n);return a||e}else{if(n&&fu.test(n))return K1(n);if(n)return n}return e},w$=e=>{const t=fu.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Vl,T$=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,X1=e=>{Vl||(Vl=Ar?new RegExp(`(${Object.keys(Ar).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>tn(i).replace(fu,K1).replace(x$,bg).replace(Vl,bg)),n=t.map(i=>i.match(Is).map(Number)),a=n[0].map((i,o)=>n.map(s=>{if(!(o in s))throw Error('The arity of each "output" value must be equal');return s[o]})).map(i=>So({...e,output:i}));return i=>{var u;const o=!Cg.test(t[0])&&((u=t.find(c=>Cg.test(c)))==null?void 0:u.replace(Is,""));let s=0;return t[0].replace(Is,()=>`${a[s++](i)}${o||""}`).replace(_$,T$)}},Ih="react-spring: ",J1=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Ih}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},C$=J1(console.warn);function k$(){C$(`${Ih}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var S$=J1(console.warn);function O$(){S$(`${Ih}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 hu(e){return ee.str(e)&&(e[0]=="#"||/\d/.test(e)||!jh()&&fu.test(e)||e in(Ar||{}))}var Kr=jh()?h.useEffect:h.useLayoutEffect,E$=()=>{const e=h.useRef(!1);return Kr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Nh(){const e=h.useState()[1],t=E$();return()=>{t.current&&e(Math.random())}}function $$(e,t){const[n]=h.useState(()=>({inputs:t,result:e()})),r=h.useRef(),a=r.current;let i=a;return i?t&&i.inputs&&M$(t,i.inputs)||(i={inputs:t,result:e()}):i=n,h.useEffect(()=>{r.current=i,a==n&&(n.inputs=n.result=void 0)},[i]),i.result}function M$(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 Fh=e=>h.useEffect(e,R$),R$=[];function af(e){const t=h.useRef();return h.useEffect(()=>{t.current=e}),t.current}var Mo=Symbol.for("Animated:node"),A$=e=>!!e&&e[Mo]===e,zn=e=>e&&e[Mo],Lh=(e,t)=>QE(e,Mo,t),pu=e=>e&&e[Mo]&&e[Mo].getPayload(),Q1=class{constructor(){Lh(this,this)}getPayload(){return this.payload||[]}},es=class extends Q1{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,ee.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new es(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return ee.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,ee.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Ro=class extends es{constructor(e){super(0),this._string=null,this._toString=So({output:[e,e]})}static create(e){return new Ro(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(ee.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=So({output:[this.getValue(),e]})),this._value=0,super.reset()}},hc={dependencies:null},mu=class extends Q1{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Kn(this.source,(n,r)=>{A$(n)?t[r]=n.getValue(e):wn(n)?t[r]=tn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ce(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Kn(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){hc.dependencies&&wn(e)&&hc.dependencies.add(e);const t=pu(e);t&&Ce(t,n=>this.add(n))}},ex=class extends mu{constructor(e){super(e)}static create(e){return new ex(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(j$)),!0)}};function j$(e){return(hu(e)?Ro:es).create(e)}function of(e){const t=zn(e);return t?t.constructor:ee.arr(e)?ex:hu(e)?Ro:es}var kg=(e,t)=>{const n=!ee.fun(e)||e.prototype&&e.prototype.isReactComponent;return h.forwardRef((r,a)=>{const i=h.useRef(null),o=n&&h.useCallback(m=>{i.current=I$(a,m)},[a]),[s,u]=D$(r,t),c=Nh(),l=()=>{const m=i.current;if(n&&!m)return;(m?t.applyAnimatedValues(m,s.getValue(!0)):!1)===!1&&c()},d=new P$(l,u),f=h.useRef();Kr(()=>(f.current=d,Ce(u,m=>pi(m,d)),()=>{f.current&&(Ce(f.current.deps,m=>$o(m,f.current)),Se.cancel(f.current.update))})),h.useEffect(l,[]),Fh(()=>()=>{const m=f.current;Ce(m.deps,g=>$o(g,m))});const p=t.getComponentProps(s.getValue());return oe.createElement(e,{...p,ref:o})})},P$=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Se.write(this.update)}};function D$(e,t){const n=new Set;return hc.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new mu(e),hc.dependencies=null,[e,n]}function I$(e,t){return e&&(ee.fun(e)?e(t):e.current=t),t}var Sg=Symbol.for("AnimatedComponent"),N$=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=a=>new mu(a),getComponentProps:r=a=>a}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=o=>{const s=Og(o)||"Anonymous";return ee.str(o)?o=i[o]||(i[o]=kg(o,a)):o=o[Sg]||(o[Sg]=kg(o,a)),o.displayName=`Animated(${s})`,o};return Kn(e,(o,s)=>{ee.arr(e)&&(s=Og(o)),i[s]=i(o)}),{animated:i}},Og=e=>ee.str(e)?e:e&&ee.str(e.displayName)?e.displayName:ee.fun(e)&&e.name||null;function nn(e,...t){return ee.fun(e)?e(...t):e}var no=(e,t)=>e===!0||!!(t&&e&&(ee.fun(e)?e(t):Zt(e).includes(t))),tx=(e,t)=>ee.obj(e)?t&&e[t]:e,nx=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,F$=e=>e,gu=(e,t=F$)=>{let n=L$;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const a of n){const i=t(e[a],a);ee.und(i)||(r[a]=i)}return r},L$=["config","onProps","onStart","onChange","onPause","onResume","onRest"],U$={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 B$(e){const t={};let n=0;if(Kn(e,(r,a)=>{U$[a]||(t[a]=r,n++)}),n)return t}function Uh(e){const t=B$(e);if(t){const n={to:t};return Kn(e,(r,a)=>a in t||(n[a]=r)),n}return{...e}}function Ao(e){return e=tn(e),ee.arr(e)?e.map(Ao):hu(e)?Fn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function rx(e){for(const t in e)return!0;return!1}function sf(e){return ee.fun(e)||ee.arr(e)&&ee.obj(e[0])}function cf(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function ax(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var Bh={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}},uf={...Bh.default,mass:1,damping:1,easing:v$.linear,clamp:!1},W$=class{constructor(){this.velocity=0,Object.assign(this,uf)}};function z$(e,t,n){n&&(n={...n},Eg(n,t),t={...n,...t}),Eg(e,t),Object.assign(e,t);for(const o in uf)e[o]==null&&(e[o]=uf[o]);let{frequency:r,damping:a}=e;const{mass:i}=e;return ee.und(r)||(r<.01&&(r=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*a*i/r),e}function Eg(e,t){if(!ee.und(t.decay))e.duration=void 0;else{const n=!ee.und(t.tension)||!ee.und(t.friction);(n||!ee.und(t.frequency)||!ee.und(t.damping)||!ee.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var $g=[],H$=class{constructor(){this.changed=!1,this.values=$g,this.toValues=null,this.fromValues=$g,this.config=new W$,this.immediate=!1}};function ix(e,{key:t,props:n,defaultProps:r,state:a,actions:i}){return new Promise((o,s)=>{let u,c,l=no(n.cancel??(r==null?void 0:r.cancel),t);if(l)p();else{ee.und(n.pause)||(a.paused=no(n.pause,t));let m=r==null?void 0:r.pause;m!==!0&&(m=a.paused||no(m,t)),u=nn(n.delay||0,t),m?(a.resumeQueue.add(f),i.pause()):(i.resume(),f())}function d(){a.resumeQueue.add(f),a.timeouts.delete(c),c.cancel(),u=c.time-Se.now()}function f(){u>0&&!Fn.skipAnimation?(a.delayed=!0,c=Se.setTimeout(p,u),a.pauseQueue.add(d),a.timeouts.add(c)):p()}function p(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(d),a.timeouts.delete(c),e<=(a.cancelId||0)&&(l=!0);try{i.start({...n,callId:e,cancel:l},o)}catch(m){s(m)}}})}var Wh=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?za(e.get()):t.every(n=>n.noop)?ox(e.get()):Mn(e.get(),t.every(n=>n.finished)),ox=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Mn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),za=e=>({value:e,cancelled:!0,finished:!1});function sx(e,t,n,r){const{callId:a,parentId:i,onRest:o}=t,{asyncTo:s,promise:u}=n;return!i&&e===s&&!t.reset?u:n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const c=gu(t,(v,x)=>x==="onRest"?void 0:v);let l,d;const f=new Promise((v,x)=>(l=v,d=x)),p=v=>{const x=a<=(n.cancelId||0)&&za(r)||a!==n.asyncId&&Mn(r,!1);if(x)throw v.result=x,d(v),v},m=(v,x)=>{const w=new Mg,b=new Rg;return(async()=>{if(Fn.skipAnimation)throw jo(n),b.result=Mn(r,!1),d(b),b;p(w);const T=ee.obj(v)?{...v}:{...x,to:v};T.parentId=a,Kn(c,(C,$)=>{ee.und(T[$])&&(T[$]=C)});const _=await r.start(T);return p(w),n.paused&&await new Promise(C=>{n.resumeQueue.add(C)}),_})()};let g;if(Fn.skipAnimation)return jo(n),Mn(r,!1);try{let v;ee.arr(e)?v=(async x=>{for(const w of x)await m(w)})(e):v=Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([v.then(l),f]),g=Mn(r.get(),!0,!1)}catch(v){if(v instanceof Mg)g=v.result;else if(v instanceof Rg)g=v.result;else throw v}finally{a==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?u:void 0)}return ee.fun(o)&&Se.batchedUpdates(()=>{o(g,r,r.item)}),g})()}function jo(e,t){eo(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Mg=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.")}},Rg=class extends Error{constructor(){super("SkipAnimationSignal")}},lf=e=>e instanceof zh,V$=1,zh=class extends G1{constructor(){super(...arguments),this.id=V$++,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 Fn.to(this,e)}interpolate(...e){return k$(),Fn.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){Eo(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||lu.sort(this),Eo(this,{type:"priority",parent:this,priority:e})}},ha=Symbol.for("SpringPhase"),cx=1,df=2,ff=4,ql=e=>(e[ha]&cx)>0,wr=e=>(e[ha]&df)>0,Ii=e=>(e[ha]&ff)>0,Ag=(e,t)=>t?e[ha]|=df|cx:e[ha]&=~df,jg=(e,t)=>t?e[ha]|=ff:e[ha]&=~ff,q$=class extends zh{constructor(e,t){if(super(),this.animation=new H$,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,!ee.und(e)||!ee.und(t)){const n=ee.obj(e)?{...e}:{...t,from:e};ee.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(wr(this)||this._state.asyncTo)||Ii(this)}get goal(){return tn(this.animation.to)}get velocity(){const e=zn(this);return e instanceof es?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return ql(this)}get isAnimating(){return wr(this)}get isPaused(){return Ii(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:a}=r;const{config:i}=r,o=pu(r.to);!o&&wn(r.to)&&(a=Zt(tn(r.to))),r.values.forEach((c,l)=>{if(c.done)return;const d=c.constructor==Ro?1:o?o[l].lastPosition:a[l];let f=r.immediate,p=d;if(!f){if(p=c.lastPosition,i.tension<=0){c.done=!0;return}let m=c.elapsedTime+=e;const g=r.fromValues[l],v=c.v0!=null?c.v0:c.v0=ee.arr(i.velocity)?i.velocity[l]:i.velocity;let x;const w=i.precision||(g==d?.005:Math.min(1,Math.abs(d-g)*.001));if(ee.und(i.duration))if(i.decay){const b=i.decay===!0?.998:i.decay,T=Math.exp(-(1-b)*m);p=g+v/(1-b)*(1-T),f=Math.abs(c.lastPosition-p)<=w,x=v*T}else{x=c.lastVelocity==null?v:c.lastVelocity;const b=i.restVelocity||w/10,T=i.clamp?0:i.bounce,_=!ee.und(T),C=g==d?c.v0>0:g<d;let $,A=!1;const D=1,j=Math.ceil(e/D);for(let E=0;E<j&&($=Math.abs(x)>b,!(!$&&(f=Math.abs(d-p)<=w,f)));++E){_&&(A=p==d||p>d==C,A&&(x=-x*T,p=d));const F=-i.tension*1e-6*(p-d),M=-i.friction*.001*x,R=(F+M)/i.mass;x=x+R*D,p=p+x*D}}else{let b=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,c.durationProgress>0&&(c.elapsedTime=i.duration*c.durationProgress,m=c.elapsedTime+=e)),b=(i.progress||0)+m/this._memoizedDuration,b=b>1?1:b<0?0:b,c.durationProgress=b),p=g+i.easing(b)*(d-g),x=(p-c.lastPosition)/e,f=b==1}c.lastVelocity=x,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}o&&!o[l].done&&(f=!1),f?c.done=!0:t=!1,c.setValue(p,i.round)&&(n=!0)});const s=zn(this),u=s.getValue();if(t){const c=tn(r.to);(u!==c||n)&&!i.decay?(s.setValue(c),this._onChange(c)):n&&i.decay&&this._onChange(u),this._stop()}else n&&this._onChange(u)}set(e){return Se.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(wr(this)){const{to:e,config:t}=this.animation;Se.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 ee.und(e)?(n=this.queue||[],this.queue=[]):n=[ee.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Wh(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),jo(this._state,e&&this._lastCallId),Se.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=ee.obj(n)?n[t]:n,(n==null||sf(n))&&(n=void 0),r=ee.obj(r)?r[t]:r,r==null&&(r=void 0);const a={to:n,from:r};return ql(this)||(e.reverse&&([n,r]=[r,n]),r=tn(r),ee.und(r)?zn(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,gu(e,(o,s)=>/^on/.test(s)?tx(o,n):o)),Dg(this,e,"onProps"),Fi(this,"onProps",e,this);const a=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 i=this._state;return ix(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Ii(this)||(jg(this,!0),Zi(i.pauseQueue),Fi(this,"onPause",Mn(this,Ni(this,this.animation.to)),this))},resume:()=>{Ii(this)&&(jg(this,!1),wr(this)&&this._resume(),Zi(i.resumeQueue),Fi(this,"onResume",Mn(this,Ni(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=ux(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(za(this));const r=!ee.und(e.to),a=!ee.und(e.from);if(r||a)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(za(this));const{key:i,defaultProps:o,animation:s}=this,{to:u,from:c}=s;let{to:l=u,from:d=c}=e;a&&!r&&(!t.default||ee.und(l))&&(l=d),t.reverse&&([l,d]=[d,l]);const f=!rr(d,c);f&&(s.from=d),d=tn(d);const p=!rr(l,u);p&&this._focus(l);const m=sf(t.to),{config:g}=s,{decay:v,velocity:x}=g;(r||a)&&(g.velocity=0),t.config&&!m&&z$(g,nn(t.config,i),t.config!==o.config?nn(o.config,i):void 0);let w=zn(this);if(!w||ee.und(l))return n(Mn(this,!0));const b=ee.und(t.reset)?a&&!t.default:!ee.und(d)&&no(t.reset,i),T=b?d:this.get(),_=Ao(l),C=ee.num(_)||ee.arr(_)||hu(_),$=!m&&(!C||no(o.immediate||t.immediate,i));if(p){const E=of(l);if(E!==w.constructor)if($)w=this._set(_);else throw Error(`Cannot animate between ${w.constructor.name} and ${E.name}, as the "to" prop suggests`)}const A=w.constructor;let D=wn(l),j=!1;if(!D){const E=b||!ql(this)&&f;(p||E)&&(j=rr(Ao(T),_),D=!j),(!rr(s.immediate,$)&&!$||!rr(g.decay,v)||!rr(g.velocity,x))&&(D=!0)}if(j&&wr(this)&&(s.changed&&!b?D=!0:D||this._stop(u)),!m&&((D||wn(u))&&(s.values=w.getPayload(),s.toValues=wn(l)?null:A==Ro?[1]:Zt(_)),s.immediate!=$&&(s.immediate=$,!$&&!b&&this._set(u)),D)){const{onRest:E}=s;Ce(G$,M=>Dg(this,t,M));const F=Mn(this,Ni(this,u));Zi(this._pendingCalls,F),this._pendingCalls.add(n),s.changed&&Se.batchedUpdates(()=>{var M;s.changed=!b,E==null||E(F,this),b?nn(o.onRest,F):(M=s.onStart)==null||M.call(s,F,this)})}b&&this._set(T),m?n(sx(t.to,t,this._state,this)):D?this._start():wr(this)&&!p?this._pendingCalls.add(n):n(ox(T))}_focus(e){const t=this.animation;e!==t.to&&(Tg(this)&&this._detach(),t.to=e,Tg(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;wn(t)&&(pi(t,this),lf(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;wn(e)&&$o(e,this)}_set(e,t=!0){const n=tn(e);if(!ee.und(n)){const r=zn(this);if(!r||!rr(n,r.getValue())){const a=of(n);!r||r.constructor!=a?Lh(this,a.create(n)):r.setValue(n),r&&Se.batchedUpdates(()=>{this._onChange(n,t)})}}return zn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Fi(this,"onStart",Mn(this,Ni(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),nn(this.animation.onChange,e,this)),nn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;zn(this).reset(tn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),wr(this)||(Ag(this,!0),Ii(this)||this._resume())}_resume(){Fn.skipAnimation?this.finish():lu.start(this)}_stop(e,t){if(wr(this)){Ag(this,!1);const n=this.animation;Ce(n.values,a=>{a.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Eo(this,{type:"idle",parent:this});const r=t?za(this.get()):Mn(this.get(),Ni(this,e??n.to));Zi(this._pendingCalls,r),n.changed&&(n.changed=!1,Fi(this,"onRest",r,this))}}};function Ni(e,t){const n=Ao(t),r=Ao(e.get());return rr(r,n)}function ux(e,t=e.loop,n=e.to){const r=nn(t);if(r){const a=r!==!0&&Uh(r),i=(a||e).reverse,o=!a||a.reset;return Po({...e,loop:t,default:!1,pause:void 0,to:!i||sf(n)?n:void 0,from:o?e.from:void 0,reset:o,...a})}}function Po(e){const{to:t,from:n}=e=Uh(e),r=new Set;return ee.obj(t)&&Pg(t,r),ee.obj(n)&&Pg(n,r),e.keys=r.size?Array.from(r):null,e}function Y$(e){const t=Po(e);return ee.und(t.default)&&(t.default=gu(t)),t}function Pg(e,t){Kn(e,(n,r)=>n!=null&&t.add(r))}var G$=["onStart","onRest","onChange","onPause","onResume"];function Dg(e,t,n){e.animation[n]=t[n]!==nx(t,n)?tx(t[n],e.key):void 0}function Fi(e,t,...n){var r,a,i,o;(a=(r=e.animation)[t])==null||a.call(r,...n),(o=(i=e.defaultProps)[t])==null||o.call(i,...n)}var Z$=["onStart","onChange","onRest"],K$=1,lx=class{constructor(e,t){this.id=K$++,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];ee.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Po(e)),this}start(e){let{queue:t}=this;return e?t=Zt(e).map(Po):this.queue=[],this._flush?this._flush(this,t):(mx(this,t),hf(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ce(Zt(t),r=>n[r].stop(!!e))}else jo(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(ee.und(e))this.start({pause:!0});else{const t=this.springs;Ce(Zt(e),n=>t[n].pause())}return this}resume(e){if(ee.und(e))this.start({pause:!1});else{const t=this.springs;Ce(Zt(e),n=>t[n].resume())}return this}each(e){Kn(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,a=this._changed.size>0;(r&&!this._started||a&&!this._started)&&(this._started=!0,eo(e,([s,u])=>{u.value=this.get(),s(u,this,this._item)}));const i=!r&&this._started,o=a||i&&n.size?this.get():null;a&&t.size&&eo(t,([s,u])=>{u.value=o,s(u,this,this._item)}),i&&(this._started=!1,eo(n,([s,u])=>{u.value=o,s(u,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;Se.onFrame(this._onFrame)}};function hf(e,t){return Promise.all(t.map(n=>dx(e,n))).then(n=>Wh(e,n))}async function dx(e,t,n){const{keys:r,to:a,from:i,loop:o,onRest:s,onResolve:u}=t,c=ee.obj(t.default)&&t.default;o&&(t.loop=!1),a===!1&&(t.to=null),i===!1&&(t.from=null);const l=ee.arr(a)||ee.fun(a)?a:void 0;l?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Ce(Z$,g=>{const v=t[g];if(ee.fun(v)){const x=e._events[g];t[g]=({finished:w,cancelled:b})=>{const T=x.get(v);T?(w||(T.finished=!1),b&&(T.cancelled=!0)):x.set(v,{value:null,finished:w||!1,cancelled:b||!1})},c&&(c[g]=t[g])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Zi(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(g=>e.springs[g].start(t)),p=t.cancel===!0||nx(t,"cancel")===!0;(l||p&&d.asyncId)&&f.push(ix(++e._lastAsyncId,{props:t,state:d,actions:{pause:nf,resume:nf,start(g,v){p?(jo(d,e._lastAsyncId),v(za(e))):(g.onRest=s,v(sx(l,g,d,e)))}}})),d.paused&&await new Promise(g=>{d.resumeQueue.add(g)});const m=Wh(e,await Promise.all(f));if(o&&m.finished&&!(n&&m.noop)){const g=ux(t,o,a);if(g)return mx(e,[g]),dx(e,g,!0)}return u&&Se.batchedUpdates(()=>u(m,e,e.item)),m}function pf(e,t){const n={...e.springs};return t&&Ce(Zt(t),r=>{ee.und(r.keys)&&(r=Po(r)),ee.obj(r.to)||(r={...r,to:void 0}),px(n,r,a=>hx(a))}),fx(e,n),n}function fx(e,t){Kn(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,pi(n,e))})}function hx(e,t){const n=new q$;return n.key=e,t&&pi(n,t),n}function px(e,t,n){t.keys&&Ce(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function mx(e,t){Ce(t,n=>{px(e.springs,n,r=>hx(r,e))})}var ts=({children:e,...t})=>{const n=h.useContext(pc),r=t.pause||!!n.pause,a=t.immediate||!!n.immediate;t=$$(()=>({pause:r,immediate:a}),[r,a]);const{Provider:i}=pc;return oe.createElement(i,{value:t},e)},pc=X$(ts,{});ts.Provider=pc.Provider;ts.Consumer=pc.Consumer;function X$(e,t){return Object.assign(e,oe.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var gx=()=>{const e=[],t=function(r){O$();const a=[];return Ce(e,(i,o)=>{if(ee.und(r))a.push(i.start());else{const s=n(r,i,o);s&&a.push(i.start(s))}}),a};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const a=e.indexOf(r);~a&&e.splice(a,1)},t.pause=function(){return Ce(e,r=>r.pause(...arguments)),this},t.resume=function(){return Ce(e,r=>r.resume(...arguments)),this},t.set=function(r){Ce(e,(a,i)=>{const o=ee.fun(r)?r(i,a):r;o&&a.set(o)})},t.start=function(r){const a=[];return Ce(e,(i,o)=>{if(ee.und(r))a.push(i.start());else{const s=this._getProps(r,i,o);s&&a.push(i.start(s))}}),a},t.stop=function(){return Ce(e,r=>r.stop(...arguments)),this},t.update=function(r){return Ce(e,(a,i)=>a.update(this._getProps(r,a,i))),this};const n=function(r,a,i){return ee.fun(r)?r(i,a):r};return t._getProps=n,t};function J$(e,t,n){const r=ee.fun(t)&&t;r&&!n&&(n=[]);const a=h.useMemo(()=>r||arguments.length==3?gx():void 0,[]),i=h.useRef(0),o=Nh(),s=h.useMemo(()=>({ctrls:[],queue:[],flush(x,w){const b=pf(x,w);return i.current>0&&!s.queue.length&&!Object.keys(b).some(_=>!x.springs[_])?hf(x,w):new Promise(_=>{fx(x,b),s.queue.push(()=>{_(hf(x,w))}),o()})}}),[]),u=h.useRef([...s.ctrls]),c=[],l=af(e)||0;h.useMemo(()=>{Ce(u.current.slice(e,l),x=>{cf(x,a),x.stop(!0)}),u.current.length=e,d(l,e)},[e]),h.useMemo(()=>{d(0,Math.min(l,e))},n);function d(x,w){for(let b=x;b<w;b++){const T=u.current[b]||(u.current[b]=new lx(null,s.flush)),_=r?r(b,T):t[b];_&&(c[b]=Y$(_))}}const f=u.current.map((x,w)=>pf(x,c[w])),p=h.useContext(ts),m=af(p),g=p!==m&&rx(p);Kr(()=>{i.current++,s.ctrls=u.current;const{queue:x}=s;x.length&&(s.queue=[],Ce(x,w=>w())),Ce(u.current,(w,b)=>{a==null||a.add(w),g&&w.start({default:p});const T=c[b];T&&(ax(w,T.ref),w.ref?w.queue.push(T):w.start(T))})}),Fh(()=>()=>{Ce(s.ctrls,x=>x.stop(!0))});const v=f.map(x=>({...x}));return a?[v,a]:v}function vr(e,t){const n=ee.fun(e),[[r],a]=J$(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,a]:r}function xa(e,t,n){const r=ee.fun(t)&&t,{reset:a,sort:i,trail:o=0,expires:s=!0,exitBeforeEnter:u=!1,onDestroyed:c,ref:l,config:d}=r?r():t,f=h.useMemo(()=>r||arguments.length==3?gx():void 0,[]),p=Zt(e),m=[],g=h.useRef(null),v=a?null:g.current;Kr(()=>{g.current=m}),Fh(()=>(Ce(m,R=>{f==null||f.add(R.ctrl),R.ctrl.ref=f}),()=>{Ce(g.current,R=>{R.expired&&clearTimeout(R.expirationId),cf(R.ctrl,f),R.ctrl.stop(!0)})}));const x=e8(p,r?r():t,v),w=a&&g.current||[];Kr(()=>Ce(w,({ctrl:R,item:I,key:U})=>{cf(R,f),nn(c,I,U)}));const b=[];if(v&&Ce(v,(R,I)=>{R.expired?(clearTimeout(R.expirationId),w.push(R)):(I=b[I]=x.indexOf(R.key),~I&&(m[I]=R))}),Ce(p,(R,I)=>{m[I]||(m[I]={key:x[I],item:R,phase:"mount",ctrl:new lx},m[I].ctrl.item=R)}),b.length){let R=-1;const{leave:I}=r?r():t;Ce(b,(U,N)=>{const q=v[N];~U?(R=m.indexOf(q),m[R]={...q,item:p[U]}):I&&m.splice(++R,0,q)})}ee.fun(i)&&m.sort((R,I)=>i(R.item,I.item));let T=-o;const _=Nh(),C=gu(t),$=new Map,A=h.useRef(new Map),D=h.useRef(!1);Ce(m,(R,I)=>{const U=R.key,N=R.phase,q=r?r():t;let z,P;const W=nn(q.delay||0,U);if(N=="mount")z=q.enter,P="enter";else{const Q=x.indexOf(U)<0;if(N!="leave")if(Q)z=q.leave,P="leave";else if(z=q.update)P="update";else return;else if(!Q)z=q.enter,P="enter";else return}if(z=nn(z,R.item,I),z=ee.obj(z)?Uh(z):{to:z},!z.config){const Q=d||C.config;z.config=nn(Q,R.item,I,P)}T+=o;const Z={...C,delay:W+T,ref:l,immediate:q.immediate,reset:!1,...z};if(P=="enter"&&ee.und(Z.from)){const Q=r?r():t,G=ee.und(Q.initial)||v?Q.from:Q.initial;Z.from=nn(G,R.item,I)}const{onResolve:ne}=Z;Z.onResolve=Q=>{nn(ne,Q);const G=g.current,J=G.find(re=>re.key===U);if(J&&!(Q.cancelled&&J.phase!="update")&&J.ctrl.idle){const re=G.every(L=>L.ctrl.idle);if(J.phase=="leave"){const L=nn(s,J.item);if(L!==!1){const V=L===!0?0:L;if(J.expired=!0,!re&&V>0){V<=2147483647&&(J.expirationId=setTimeout(_,V));return}}}re&&G.some(L=>L.expired)&&(A.current.delete(J),u&&(D.current=!0),_())}};const Y=pf(R.ctrl,Z);P==="leave"&&u?A.current.set(R,{phase:P,springs:Y,payload:Z}):$.set(R,{phase:P,springs:Y,payload:Z})});const j=h.useContext(ts),E=af(j),F=j!==E&&rx(j);Kr(()=>{F&&Ce(m,R=>{R.ctrl.start({default:j})})},[j]),Ce($,(R,I)=>{if(A.current.size){const U=m.findIndex(N=>N.key===I.key);m.splice(U,1)}}),Kr(()=>{Ce(A.current.size?A.current:$,({phase:R,payload:I},U)=>{const{ctrl:N}=U;U.phase=R,f==null||f.add(N),F&&R=="enter"&&N.start({default:j}),I&&(ax(N,I.ref),(N.ref||f)&&!D.current?N.update(I):(N.start(I),D.current&&(D.current=!1)))})},a?void 0:n);const M=R=>oe.createElement(oe.Fragment,null,m.map((I,U)=>{const{springs:N}=$.get(I)||I.ctrl,q=R({...N},I.item,I,U);return q&&q.type?oe.createElement(q.type,{...q.props,key:ee.str(I.key)||ee.num(I.key)?I.key:I.ctrl.id,ref:q.ref}):q}));return f?[M,f]:M}var Q$=1;function e8(e,{key:t,keys:n=t},r){if(n===null){const a=new Set;return e.map(i=>{const o=r&&r.find(s=>s.item===i&&s.phase!=="leave"&&!a.has(s));return o?(a.add(o),o.key):Q$++})}return ee.und(n)?e:ee.fun(n)?e.map(n):Zt(n)}var vx=class extends zh{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=So(...t);const n=this._get(),r=of(n);Lh(this,r.create(n))}advance(e){const t=this._get(),n=this.get();rr(t,n)||(zn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Ig(this._active)&&Yl(this)}_get(){const e=ee.arr(this.source)?this.source.map(tn):Zt(tn(this.source));return this.calc(...e)}_start(){this.idle&&!Ig(this._active)&&(this.idle=!1,Ce(pu(this),e=>{e.done=!1}),Fn.skipAnimation?(Se.batchedUpdates(()=>this.advance()),Yl(this)):lu.start(this))}_attach(){let e=1;Ce(Zt(this.source),t=>{wn(t)&&pi(t,this),lf(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Ce(Zt(this.source),e=>{wn(e)&&$o(e,this)}),this._active.clear(),Yl(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=Zt(this.source).reduce((t,n)=>Math.max(t,(lf(n)?n.priority:0)+1),0))}};function t8(e){return e.idle!==!1}function Ig(e){return!e.size||Array.from(e).every(t8)}function Yl(e){e.idle||(e.idle=!0,Ce(pu(e),t=>{t.done=!0}),Eo(e,{type:"idle",parent:e}))}var Fr=(e,...t)=>new vx(e,t);Fn.assign({createStringInterpolator:X1,to:(e,t)=>new vx(e,t)});var yx=/^--/;function n8(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!yx.test(e)&&!(ro.hasOwnProperty(e)&&ro[e])?t+"px":(""+t).trim()}var Ng={};function r8(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:a,scrollTop:i,scrollLeft:o,viewBox:s,...u}=t,c=Object.values(u),l=Object.keys(u).map(d=>n||e.hasAttribute(d)?d:Ng[d]||(Ng[d]=d.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));a!==void 0&&(e.textContent=a);for(const d in r)if(r.hasOwnProperty(d)){const f=n8(d,r[d]);yx.test(d)?e.style.setProperty(d,f):e.style[d]=f}l.forEach((d,f)=>{e.setAttribute(d,c[f])}),i!==void 0&&(e.scrollTop=i),o!==void 0&&(e.scrollLeft=o),s!==void 0&&e.setAttribute("viewBox",s)}var ro={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},a8=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),i8=["Webkit","Ms","Moz","O"];ro=Object.keys(ro).reduce((e,t)=>(i8.forEach(n=>e[a8(n,t)]=e[t]),e),ro);var o8=/^(matrix|translate|scale|rotate|skew)/,s8=/^(translate)/,c8=/^(rotate|skew)/,Gl=(e,t)=>ee.num(e)&&e!==0?e+t:e,Ns=(e,t)=>ee.arr(e)?e.every(n=>Ns(n,t)):ee.num(e)?e===t:parseFloat(e)===t,u8=class extends mu{constructor({x:e,y:t,z:n,...r}){const a=[],i=[];(e||t||n)&&(a.push([e||0,t||0,n||0]),i.push(o=>[`translate3d(${o.map(s=>Gl(s,"px")).join(",")})`,Ns(o,0)])),Kn(r,(o,s)=>{if(s==="transform")a.push([o||""]),i.push(u=>[u,u===""]);else if(o8.test(s)){if(delete r[s],ee.und(o))return;const u=s8.test(s)?"px":c8.test(s)?"deg":"";a.push(Zt(o)),i.push(s==="rotate3d"?([c,l,d,f])=>[`rotate3d(${c},${l},${d},${Gl(f,u)})`,Ns(f,0)]:c=>[`${s}(${c.map(l=>Gl(l,u)).join(",")})`,Ns(c,s.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new l8(a,i)),super(r)}},l8=class extends G1{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 Ce(this.inputs,(n,r)=>{const a=tn(n[0]),[i,o]=this.transforms[r](ee.arr(a)?a:n.map(tn));e+=" "+i,t=t&&o}),t?"none":e}observerAdded(e){e==1&&Ce(this.inputs,t=>Ce(t,n=>wn(n)&&pi(n,this)))}observerRemoved(e){e==0&&Ce(this.inputs,t=>Ce(t,n=>wn(n)&&$o(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Eo(this,e)}},d8=["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"];Fn.assign({batchedUpdates:Er.unstable_batchedUpdates,createStringInterpolator:X1,colors:a$});var f8=N$(d8,{applyAnimatedValues:r8,createAnimatedStyle:e=>new u8(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Qe=f8.animated;function pa(){return pa=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},pa.apply(this,arguments)}var h8={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},Fg=function(e,t){return"translate("+e+"px, "+t+"px)"},bx=h.memo(function(e){var t,n=e.position,r=e.anchor,a=e.children,i=lt(),o=un(),s=o.animate,u=o.config,c=u_(),l=c[0],d=c[1],f=h.useRef(!1),p=void 0,m=!1,g=d.width>0&&d.height>0,v=Math.round(n[0]),x=Math.round(n[1]);g&&(r==="top"?(v-=d.width/2,x-=d.height+14):r==="right"?(v+=14,x-=d.height/2):r==="bottom"?(v-=d.width/2,x+=14):r==="left"?(v-=d.width+14,x-=d.height/2):r==="center"&&(v-=d.width/2,x-=d.height/2),p={transform:Fg(v,x)},f.current||(m=!0),f.current=[v,x]);var w=vr({to:p,config:u,immediate:!s||m}),b=pa({},h8,i.tooltip.wrapper,{transform:(t=w.transform)!=null?t:Fg(v,x),opacity:w.transform?1:0});return y.jsx(Qe.div,{ref:l,style:b,children:a})});bx.displayName="TooltipWrapper";var p8=h.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,a=e.style;return y.jsx("span",{style:pa({display:"block",width:n,height:n,background:r},a===void 0?{}:a)})}),xx=h.memo(function(e){var t,n=e.id,r=e.value,a=e.format,i=e.enableChip,o=i!==void 0&&i,s=e.color,u=e.renderContent,c=lt(),l=pl(a);if(typeof u=="function")t=u();else{var d=r;l!==void 0&&d!==void 0&&(d=l(d)),t=y.jsxs("div",{style:c.tooltip.basic,children:[o&&y.jsx(p8,{color:s,style:c.tooltip.chip}),d!==void 0?y.jsxs("span",{children:[n,": ",y.jsx("strong",{children:""+d})]}):n]})}return y.jsx("div",{style:c.tooltip.container,children:t})}),m8={width:"100%",borderCollapse:"collapse"},g8=h.memo(function(e){var t,n=e.title,r=e.rows,a=r===void 0?[]:r,i=e.renderContent,o=lt();return a.length?(t=typeof i=="function"?i():y.jsxs("div",{children:[n&&n,y.jsx("table",{style:pa({},m8,o.tooltip.table),children:y.jsx("tbody",{children:a.map(function(s,u){return y.jsx("tr",{children:s.map(function(c,l){return y.jsx("td",{style:o.tooltip.tableCell,children:c},l)})},u)})})})]}),y.jsx("div",{style:o.tooltip.container,children:t})):null});g8.displayName="TableTooltip";var mf=h.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,a=e.y1,i=lt(),o=un(),s=o.animate,u=o.config,c=h.useMemo(function(){return pa({},i.crosshair.line,{pointerEvents:"none"})},[i.crosshair.line]),l=vr({x1:t,x2:n,y1:r,y2:a,config:u,immediate:!s});return y.jsx(Qe.line,pa({},l,{fill:"none",style:c}))});mf.displayName="CrosshairLine";var v8=h.memo(function(e){var t,n,r=e.width,a=e.height,i=e.type,o=e.x,s=e.y;return i==="cross"?(t={x0:o,x1:o,y0:0,y1:a},n={x0:0,x1:r,y0:s,y1:s}):i==="top-left"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):i==="top"?t={x0:o,x1:o,y0:0,y1:s}:i==="top-right"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:r,y0:s,y1:s}):i==="right"?n={x0:o,x1:r,y0:s,y1:s}:i==="bottom-right"?(t={x0:o,x1:o,y0:s,y1:a},n={x0:o,x1:r,y0:s,y1:s}):i==="bottom"?t={x0:o,x1:o,y0:s,y1:a}:i==="bottom-left"?(t={x0:o,x1:o,y0:s,y1:a},n={x0:0,x1:o,y0:s,y1:s}):i==="left"?n={x0:0,x1:o,y0:s,y1:s}:i==="x"?t={x0:o,x1:o,y0:0,y1:a}:i==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),y.jsxs(y.Fragment,{children:[t&&y.jsx(mf,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&y.jsx(mf,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});v8.displayName="Crosshair";var _x=h.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),gf={isVisible:!1,position:[null,null],content:null,anchor:null},wx=h.createContext(gf),y8=function(e){var t=h.useState(gf),n=t[0],r=t[1],a=h.useCallback(function(s,u,c){var l=u[0],d=u[1];c===void 0&&(c="top"),r({isVisible:!0,position:[l,d],anchor:c,content:s})},[r]),i=h.useCallback(function(s,u,c){c===void 0&&(c="top");var l=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===l.width?1:d/l.width,p="touches"in u?u.touches[0]:u,m=p.clientX,g=p.clientY,v=(m-l.left)*f,x=(g-l.top)*f;c!=="left"&&c!=="right"||(c=v<l.width/2?"right":"left"),r({isVisible:!0,position:[v,x],anchor:c,content:s})},[e,r]),o=h.useCallback(function(){r(gf)},[r]);return{actions:h.useMemo(function(){return{showTooltipAt:a,showTooltipFromEvent:i,hideTooltip:o}},[a,i,o]),state:n}},Hh=function(){var e=h.useContext(_x);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},b8=function(){var e=h.useContext(wx);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},x8=function(e){return e.isVisible},_8=function(){var e=b8();return x8(e)?y.jsx(bx,{position:e.position,anchor:e.anchor,children:e.content}):null},w8=function(e){var t=e.container,n=e.children,r=y8(t),a=r.actions,i=r.state;return y.jsx(_x.Provider,{value:a,children:y.jsx(wx.Provider,{value:i,children:n})})};function T8(){this.__data__=[],this.size=0}var C8=T8;function k8(e,t){return e===t||e!==e&&t!==t}var ns=k8,S8=ns;function O8(e,t){for(var n=e.length;n--;)if(S8(e[n][0],t))return n;return-1}var vu=O8,E8=vu,$8=Array.prototype,M8=$8.splice;function R8(e){var t=this.__data__,n=E8(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():M8.call(t,n,1),--this.size,!0}var A8=R8,j8=vu;function P8(e){var t=this.__data__,n=j8(t,e);return n<0?void 0:t[n][1]}var D8=P8,I8=vu;function N8(e){return I8(this.__data__,e)>-1}var F8=N8,L8=vu;function U8(e,t){var n=this.__data__,r=L8(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var B8=U8,W8=C8,z8=A8,H8=D8,V8=F8,q8=B8;function mi(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])}}mi.prototype.clear=W8;mi.prototype.delete=z8;mi.prototype.get=H8;mi.prototype.has=V8;mi.prototype.set=q8;var yu=mi,Y8=yu;function G8(){this.__data__=new Y8,this.size=0}var Z8=G8;function K8(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var X8=K8;function J8(e){return this.__data__.get(e)}var Q8=J8;function eM(e){return this.__data__.has(e)}var tM=eM,nM=typeof cs=="object"&&cs&&cs.Object===Object&&cs,Tx=nM,rM=Tx,aM=typeof self=="object"&&self&&self.Object===Object&&self,iM=rM||aM||Function("return this")(),Qn=iM,oM=Qn,sM=oM.Symbol,gi=sM,Lg=gi,Cx=Object.prototype,cM=Cx.hasOwnProperty,uM=Cx.toString,Li=Lg?Lg.toStringTag:void 0;function lM(e){var t=cM.call(e,Li),n=e[Li];try{e[Li]=void 0;var r=!0}catch{}var a=uM.call(e);return r&&(t?e[Li]=n:delete e[Li]),a}var dM=lM,fM=Object.prototype,hM=fM.toString;function pM(e){return hM.call(e)}var mM=pM,Ug=gi,gM=dM,vM=mM,yM="[object Null]",bM="[object Undefined]",Bg=Ug?Ug.toStringTag:void 0;function xM(e){return e==null?e===void 0?bM:yM:Bg&&Bg in Object(e)?gM(e):vM(e)}var zr=xM;function _M(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var er=_M,wM=zr,TM=er,CM="[object AsyncFunction]",kM="[object Function]",SM="[object GeneratorFunction]",OM="[object Proxy]";function EM(e){if(!TM(e))return!1;var t=wM(e);return t==kM||t==SM||t==CM||t==OM}var bu=EM;const kx=Tt(bu);var $M=Qn,MM=$M["__core-js_shared__"],RM=MM,Zl=RM,Wg=function(){var e=/[^.]+$/.exec(Zl&&Zl.keys&&Zl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function AM(e){return!!Wg&&Wg in e}var jM=AM,PM=Function.prototype,DM=PM.toString;function IM(e){if(e!=null){try{return DM.call(e)}catch{}try{return e+""}catch{}}return""}var Sx=IM,NM=bu,FM=jM,LM=er,UM=Sx,BM=/[\\^$.*+?()[\]{}|]/g,WM=/^\[object .+?Constructor\]$/,zM=Function.prototype,HM=Object.prototype,VM=zM.toString,qM=HM.hasOwnProperty,YM=RegExp("^"+VM.call(qM).replace(BM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function GM(e){if(!LM(e)||FM(e))return!1;var t=NM(e)?YM:WM;return t.test(UM(e))}var ZM=GM;function KM(e,t){return e==null?void 0:e[t]}var XM=KM,JM=ZM,QM=XM;function e7(e,t){var n=QM(e,t);return JM(n)?n:void 0}var _a=e7,t7=_a,n7=Qn,r7=t7(n7,"Map"),Vh=r7,a7=_a,i7=a7(Object,"create"),xu=i7,zg=xu;function o7(){this.__data__=zg?zg(null):{},this.size=0}var s7=o7;function c7(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var u7=c7,l7=xu,d7="__lodash_hash_undefined__",f7=Object.prototype,h7=f7.hasOwnProperty;function p7(e){var t=this.__data__;if(l7){var n=t[e];return n===d7?void 0:n}return h7.call(t,e)?t[e]:void 0}var m7=p7,g7=xu,v7=Object.prototype,y7=v7.hasOwnProperty;function b7(e){var t=this.__data__;return g7?t[e]!==void 0:y7.call(t,e)}var x7=b7,_7=xu,w7="__lodash_hash_undefined__";function T7(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=_7&&t===void 0?w7:t,this}var C7=T7,k7=s7,S7=u7,O7=m7,E7=x7,$7=C7;function vi(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])}}vi.prototype.clear=k7;vi.prototype.delete=S7;vi.prototype.get=O7;vi.prototype.has=E7;vi.prototype.set=$7;var M7=vi,Hg=M7,R7=yu,A7=Vh;function j7(){this.size=0,this.__data__={hash:new Hg,map:new(A7||R7),string:new Hg}}var P7=j7;function D7(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var I7=D7,N7=I7;function F7(e,t){var n=e.__data__;return N7(t)?n[typeof t=="string"?"string":"hash"]:n.map}var _u=F7,L7=_u;function U7(e){var t=L7(this,e).delete(e);return this.size-=t?1:0,t}var B7=U7,W7=_u;function z7(e){return W7(this,e).get(e)}var H7=z7,V7=_u;function q7(e){return V7(this,e).has(e)}var Y7=q7,G7=_u;function Z7(e,t){var n=G7(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var K7=Z7,X7=P7,J7=B7,Q7=H7,e9=Y7,t9=K7;function yi(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])}}yi.prototype.clear=X7;yi.prototype.delete=J7;yi.prototype.get=Q7;yi.prototype.has=e9;yi.prototype.set=t9;var qh=yi,n9=yu,r9=Vh,a9=qh,i9=200;function o9(e,t){var n=this.__data__;if(n instanceof n9){var r=n.__data__;if(!r9||r.length<i9-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new a9(r)}return n.set(e,t),this.size=n.size,this}var s9=o9,c9=yu,u9=Z8,l9=X8,d9=Q8,f9=tM,h9=s9;function bi(e){var t=this.__data__=new c9(e);this.size=t.size}bi.prototype.clear=u9;bi.prototype.delete=l9;bi.prototype.get=d9;bi.prototype.has=f9;bi.prototype.set=h9;var wu=bi,p9=_a,m9=function(){try{var e=p9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ox=m9,Vg=Ox;function g9(e,t,n){t=="__proto__"&&Vg?Vg(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Yh=g9,v9=Yh,y9=ns;function b9(e,t,n){(n!==void 0&&!y9(e[t],n)||n===void 0&&!(t in e))&&v9(e,t,n)}var Ex=b9;function x9(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var u=o[e?s:++a];if(n(i[u],u,i)===!1)break}return t}}var _9=x9,w9=_9,T9=w9(),$x=T9,mc={exports:{}};mc.exports;(function(e,t){var n=Qn,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;function u(c,l){if(l)return c.slice();var d=c.length,f=s?s(d):new c.constructor(d);return c.copy(f),f}e.exports=u})(mc,mc.exports);var Mx=mc.exports,C9=Qn,k9=C9.Uint8Array,Rx=k9,qg=Rx;function S9(e){var t=new e.constructor(e.byteLength);return new qg(t).set(new qg(e)),t}var Gh=S9,O9=Gh;function E9(e,t){var n=t?O9(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Ax=E9;function $9(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var jx=$9,M9=er,Yg=Object.create,R9=function(){function e(){}return function(t){if(!M9(t))return{};if(Yg)return Yg(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),A9=R9;function j9(e,t){return function(n){return e(t(n))}}var Px=j9,P9=Px,D9=P9(Object.getPrototypeOf,Object),Zh=D9,I9=Object.prototype;function N9(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||I9;return e===n}var Kh=N9,F9=A9,L9=Zh,U9=Kh;function B9(e){return typeof e.constructor=="function"&&!U9(e)?F9(L9(e)):{}}var Dx=B9;function W9(e){return e!=null&&typeof e=="object"}var Un=W9,z9=zr,H9=Un,V9="[object Arguments]";function q9(e){return H9(e)&&z9(e)==V9}var Y9=q9,Gg=Y9,G9=Un,Ix=Object.prototype,Z9=Ix.hasOwnProperty,K9=Ix.propertyIsEnumerable,X9=Gg(function(){return arguments}())?Gg:function(e){return G9(e)&&Z9.call(e,"callee")&&!K9.call(e,"callee")},Tu=X9,J9=Array.isArray,cn=J9,Q9=9007199254740991;function eR(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Q9}var Xh=eR,tR=bu,nR=Xh;function rR(e){return e!=null&&nR(e.length)&&!tR(e)}var xi=rR,aR=xi,iR=Un;function oR(e){return iR(e)&&aR(e)}var Nx=oR,gc={exports:{}};function sR(){return!1}var cR=sR;gc.exports;(function(e,t){var n=Qn,r=cR,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?n.Buffer:void 0,u=s?s.isBuffer:void 0,c=u||r;e.exports=c})(gc,gc.exports);var Cu=gc.exports,uR=zr,lR=Zh,dR=Un,fR="[object Object]",hR=Function.prototype,pR=Object.prototype,Fx=hR.toString,mR=pR.hasOwnProperty,gR=Fx.call(Object);function vR(e){if(!dR(e)||uR(e)!=fR)return!1;var t=lR(e);if(t===null)return!0;var n=mR.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Fx.call(n)==gR}var Jh=vR;const Qh=Tt(Jh);var yR=zr,bR=Xh,xR=Un,_R="[object Arguments]",wR="[object Array]",TR="[object Boolean]",CR="[object Date]",kR="[object Error]",SR="[object Function]",OR="[object Map]",ER="[object Number]",$R="[object Object]",MR="[object RegExp]",RR="[object Set]",AR="[object String]",jR="[object WeakMap]",PR="[object ArrayBuffer]",DR="[object DataView]",IR="[object Float32Array]",NR="[object Float64Array]",FR="[object Int8Array]",LR="[object Int16Array]",UR="[object Int32Array]",BR="[object Uint8Array]",WR="[object Uint8ClampedArray]",zR="[object Uint16Array]",HR="[object Uint32Array]",ct={};ct[IR]=ct[NR]=ct[FR]=ct[LR]=ct[UR]=ct[BR]=ct[WR]=ct[zR]=ct[HR]=!0;ct[_R]=ct[wR]=ct[PR]=ct[TR]=ct[DR]=ct[CR]=ct[kR]=ct[SR]=ct[OR]=ct[ER]=ct[$R]=ct[MR]=ct[RR]=ct[AR]=ct[jR]=!1;function VR(e){return xR(e)&&bR(e.length)&&!!ct[yR(e)]}var qR=VR;function YR(e){return function(t){return e(t)}}var rs=YR,vc={exports:{}};vc.exports;(function(e,t){var n=Tx,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(vc,vc.exports);var ku=vc.exports,GR=qR,ZR=rs,Zg=ku,Kg=Zg&&Zg.isTypedArray,KR=Kg?ZR(Kg):GR,ep=KR;function XR(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Lx=XR,JR=Yh,QR=ns,eA=Object.prototype,tA=eA.hasOwnProperty;function nA(e,t,n){var r=e[t];(!(tA.call(e,t)&&QR(r,n))||n===void 0&&!(t in e))&&JR(e,t,n)}var tp=nA,rA=tp,aA=Yh;function iA(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var s=t[i],u=r?r(n[s],e[s],s,n,e):void 0;u===void 0&&(u=e[s]),a?aA(n,s,u):rA(n,s,u)}return n}var _i=iA;function oA(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var sA=oA,cA=9007199254740991,uA=/^(?:0|[1-9]\d*)$/;function lA(e,t){var n=typeof e;return t=t??cA,!!t&&(n=="number"||n!="symbol"&&uA.test(e))&&e>-1&&e%1==0&&e<t}var Su=lA,dA=sA,fA=Tu,hA=cn,pA=Cu,mA=Su,gA=ep,vA=Object.prototype,yA=vA.hasOwnProperty;function bA(e,t){var n=hA(e),r=!n&&fA(e),a=!n&&!r&&pA(e),i=!n&&!r&&!a&&gA(e),o=n||r||a||i,s=o?dA(e.length,String):[],u=s.length;for(var c in e)(t||yA.call(e,c))&&!(o&&(c=="length"||a&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||mA(c,u)))&&s.push(c);return s}var Ux=bA;function xA(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var _A=xA,wA=er,TA=Kh,CA=_A,kA=Object.prototype,SA=kA.hasOwnProperty;function OA(e){if(!wA(e))return CA(e);var t=TA(e),n=[];for(var r in e)r=="constructor"&&(t||!SA.call(e,r))||n.push(r);return n}var EA=OA,$A=Ux,MA=EA,RA=xi;function AA(e){return RA(e)?$A(e,!0):MA(e)}var as=AA,jA=_i,PA=as;function DA(e){return jA(e,PA(e))}var IA=DA,Xg=Ex,NA=Mx,FA=Ax,LA=jx,UA=Dx,Jg=Tu,Qg=cn,BA=Nx,WA=Cu,zA=bu,HA=er,VA=Jh,qA=ep,e0=Lx,YA=IA;function GA(e,t,n,r,a,i,o){var s=e0(e,n),u=e0(t,n),c=o.get(u);if(c){Xg(e,n,c);return}var l=i?i(s,u,n+"",e,t,o):void 0,d=l===void 0;if(d){var f=Qg(u),p=!f&&WA(u),m=!f&&!p&&qA(u);l=u,f||p||m?Qg(s)?l=s:BA(s)?l=LA(s):p?(d=!1,l=NA(u,!0)):m?(d=!1,l=FA(u,!0)):l=[]:VA(u)||Jg(u)?(l=s,Jg(s)?l=YA(s):(!HA(s)||zA(s))&&(l=UA(u))):d=!1}d&&(o.set(u,l),a(l,u,r,i,o),o.delete(u)),Xg(e,n,l)}var ZA=GA,KA=wu,XA=Ex,JA=$x,QA=ZA,ej=er,tj=as,nj=Lx;function Bx(e,t,n,r,a){e!==t&&JA(t,function(i,o){if(a||(a=new KA),ej(i))QA(e,t,o,n,Bx,r,a);else{var s=r?r(nj(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),XA(e,o,s)}},tj)}var rj=Bx;function aj(e){return e}var Ou=aj;function ij(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 oj=ij,sj=oj,t0=Math.max;function cj(e,t,n){return t=t0(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=t0(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=r[a];return s[t]=n(o),sj(e,this,s)}}var Wx=cj;function uj(e){return function(){return e}}var lj=uj,dj=lj,n0=Ox,fj=Ou,hj=n0?function(e,t){return n0(e,"toString",{configurable:!0,enumerable:!1,value:dj(t),writable:!0})}:fj,pj=hj,mj=800,gj=16,vj=Date.now;function yj(e){var t=0,n=0;return function(){var r=vj(),a=gj-(r-n);if(n=r,a>0){if(++t>=mj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var bj=yj,xj=pj,_j=bj,wj=_j(xj),zx=wj,Tj=Ou,Cj=Wx,kj=zx;function Sj(e,t){return kj(Cj(e,t,Tj),e+"")}var np=Sj,Oj=ns,Ej=xi,$j=Su,Mj=er;function Rj(e,t,n){if(!Mj(n))return!1;var r=typeof t;return(r=="number"?Ej(n)&&$j(t,n.length):r=="string"&&t in n)?Oj(n[t],e):!1}var Hx=Rj,Aj=np,jj=Hx;function Pj(e){return Aj(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&jj(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,i)}return t})}var Dj=Pj,Ij=rj,Nj=Dj,Fj=Nj(function(e,t,n){Ij(e,t,n)}),Lj=Fj;const Uj=Tt(Lj);var Bj=zr,Wj=Un,zj="[object Symbol]";function Hj(e){return typeof e=="symbol"||Wj(e)&&Bj(e)==zj}var Eu=Hj,Vj=cn,qj=Eu,Yj=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gj=/^\w*$/;function Zj(e,t){if(Vj(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||qj(e)?!0:Gj.test(e)||!Yj.test(e)||t!=null&&e in Object(t)}var rp=Zj,Vx=qh,Kj="Expected a function";function ap(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Kj);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(ap.Cache||Vx),n}ap.Cache=Vx;var Xj=ap,Jj=Xj,Qj=500;function eP(e){var t=Jj(e,function(r){return n.size===Qj&&n.clear(),r}),n=t.cache;return t}var tP=eP,nP=tP,rP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,aP=/\\(\\)?/g,iP=nP(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(rP,function(n,r,a,i){t.push(a?i.replace(aP,"$1"):r||n)}),t}),oP=iP;function sP(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var $u=sP,r0=gi,cP=$u,uP=cn,lP=Eu,dP=1/0,a0=r0?r0.prototype:void 0,i0=a0?a0.toString:void 0;function qx(e){if(typeof e=="string")return e;if(uP(e))return cP(e,qx)+"";if(lP(e))return i0?i0.call(e):"";var t=e+"";return t=="0"&&1/e==-dP?"-0":t}var fP=qx,hP=fP;function pP(e){return e==null?"":hP(e)}var mP=pP,gP=cn,vP=rp,yP=oP,bP=mP;function xP(e,t){return gP(e)?e:vP(e,t)?[e]:yP(bP(e))}var wi=xP,_P=Eu,wP=1/0;function TP(e){if(typeof e=="string"||_P(e))return e;var t=e+"";return t=="0"&&1/e==-wP?"-0":t}var Ti=TP,CP=wi,kP=Ti;function SP(e,t){t=CP(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[kP(t[n++])];return n&&n==r?e:void 0}var is=SP,OP=is;function EP(e,t,n){var r=e==null?void 0:OP(e,t);return r===void 0?n:r}var Yx=EP;const pr=Tt(Yx);var $P=tp,MP=wi,RP=Su,o0=er,AP=Ti;function jP(e,t,n,r){if(!o0(e))return e;t=MP(t,e);for(var a=-1,i=t.length,o=i-1,s=e;s!=null&&++a<i;){var u=AP(t[a]),c=n;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(a!=o){var l=s[u];c=r?r(l,u,s):void 0,c===void 0&&(c=o0(l)?l:RP(t[a+1])?[]:{})}$P(s,u,c),s=s[u]}return e}var Gx=jP,PP=Gx;function DP(e,t,n){return e==null?e:PP(e,t,n)}var IP=DP;const Ki=Tt(IP);function Mu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ip(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ci(){}var ma=.7,ni=1/ma,Ha="\\s*([+-]?\\d+)\\s*",Do="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",NP=/^#([0-9a-f]{3,8})$/,FP=new RegExp(`^rgb\\(${Ha},${Ha},${Ha}\\)$`),LP=new RegExp(`^rgb\\(${Yn},${Yn},${Yn}\\)$`),UP=new RegExp(`^rgba\\(${Ha},${Ha},${Ha},${Do}\\)$`),BP=new RegExp(`^rgba\\(${Yn},${Yn},${Yn},${Do}\\)$`),WP=new RegExp(`^hsl\\(${Do},${Yn},${Yn}\\)$`),zP=new RegExp(`^hsla\\(${Do},${Yn},${Yn},${Do}\\)$`),s0={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};Mu(Ci,Io,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:c0,formatHex:c0,formatHex8:HP,formatHsl:VP,formatRgb:u0,toString:u0});function c0(){return this.rgb().formatHex()}function HP(){return this.rgb().formatHex8()}function VP(){return Kx(this).formatHsl()}function u0(){return this.rgb().formatRgb()}function Io(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=NP.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?l0(t):n===3?new zt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?xs(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?xs(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=FP.exec(e))?new zt(t[1],t[2],t[3],1):(t=LP.exec(e))?new zt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=UP.exec(e))?xs(t[1],t[2],t[3],t[4]):(t=BP.exec(e))?xs(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=WP.exec(e))?h0(t[1],t[2]/100,t[3]/100,1):(t=zP.exec(e))?h0(t[1],t[2]/100,t[3]/100,t[4]):s0.hasOwnProperty(e)?l0(s0[e]):e==="transparent"?new zt(NaN,NaN,NaN,0):null}function l0(e){return new zt(e>>16&255,e>>8&255,e&255,1)}function xs(e,t,n,r){return r<=0&&(e=t=n=NaN),new zt(e,t,n,r)}function Zx(e){return e instanceof Ci||(e=Io(e)),e?(e=e.rgb(),new zt(e.r,e.g,e.b,e.opacity)):new zt}function ri(e,t,n,r){return arguments.length===1?Zx(e):new zt(e,t,n,r??1)}function zt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Mu(zt,ri,ip(Ci,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new zt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new zt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new zt(aa(this.r),aa(this.g),aa(this.b),yc(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:d0,formatHex:d0,formatHex8:qP,formatRgb:f0,toString:f0}));function d0(){return`#${Xr(this.r)}${Xr(this.g)}${Xr(this.b)}`}function qP(){return`#${Xr(this.r)}${Xr(this.g)}${Xr(this.b)}${Xr((isNaN(this.opacity)?1:this.opacity)*255)}`}function f0(){const e=yc(this.opacity);return`${e===1?"rgb(":"rgba("}${aa(this.r)}, ${aa(this.g)}, ${aa(this.b)}${e===1?")":`, ${e})`}`}function yc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function aa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xr(e){return e=aa(e),(e<16?"0":"")+e.toString(16)}function h0(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Rn(e,t,n,r)}function Kx(e){if(e instanceof Rn)return new Rn(e.h,e.s,e.l,e.opacity);if(e instanceof Ci||(e=Io(e)),!e)return new Rn;if(e instanceof Rn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,s=i-a,u=(i+a)/2;return s?(t===i?o=(n-r)/s+(n<r)*6:n===i?o=(r-t)/s+2:o=(t-n)/s+4,s/=u<.5?i+a:2-i-a,o*=60):s=u>0&&u<1?0:o,new Rn(o,s,u,e.opacity)}function YP(e,t,n,r){return arguments.length===1?Kx(e):new Rn(e,t,n,r??1)}function Rn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Mu(Rn,YP,ip(Ci,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new Rn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new Rn(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,a=2*n-r;return new zt(Kl(e>=240?e-240:e+120,a,r),Kl(e,a,r),Kl(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Rn(p0(this.h),_s(this.s),_s(this.l),yc(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=yc(this.opacity);return`${e===1?"hsl(":"hsla("}${p0(this.h)}, ${_s(this.s)*100}%, ${_s(this.l)*100}%${e===1?")":`, ${e})`}`}}));function p0(e){return e=(e||0)%360,e<0?e+360:e}function _s(e){return Math.max(0,Math.min(1,e||0))}function Kl(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 GP=Math.PI/180,ZP=180/Math.PI;var Xx=-.14861,op=1.78277,sp=-.29227,Ru=-.90649,No=1.97294,m0=No*Ru,g0=No*op,v0=op*sp-Ru*Xx;function KP(e){if(e instanceof ia)return new ia(e.h,e.s,e.l,e.opacity);e instanceof zt||(e=Zx(e));var t=e.r/255,n=e.g/255,r=e.b/255,a=(v0*r+m0*t-g0*n)/(v0+m0-g0),i=r-a,o=(No*(n-a)-sp*i)/Ru,s=Math.sqrt(o*o+i*i)/(No*a*(1-a)),u=s?Math.atan2(o,i)*ZP-120:NaN;return new ia(u<0?u+360:u,s,a,e.opacity)}function Xn(e,t,n,r){return arguments.length===1?KP(e):new ia(e,t,n,r??1)}function ia(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Mu(ia,Xn,ip(Ci,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new ia(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new ia(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*GP,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new zt(255*(t+n*(Xx*r+op*a)),255*(t+n*(sp*r+Ru*a)),255*(t+n*(No*r)),this.opacity)}}));function XP(e,t,n,r,a){var i=e*e,o=i*e;return((1-3*e+3*i-o)*t+(4-6*i+3*o)*n+(1+3*e+3*i-3*o)*r+o*a)/6}function JP(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),a=e[r],i=e[r+1],o=r>0?e[r-1]:2*a-i,s=r<t-1?e[r+2]:2*i-a;return XP((n-r/t)*t,o,a,i,s)}}const Au=e=>()=>e;function Jx(e,t){return function(n){return e+n*t}}function QP(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 eD(e,t){var n=t-e;return n?Jx(e,n>180||n<-180?n-360*Math.round(n/360):n):Au(isNaN(e)?t:e)}function tD(e){return(e=+e)==1?Va:function(t,n){return n-t?QP(t,n,e):Au(isNaN(t)?n:t)}}function Va(e,t){var n=t-e;return n?Jx(e,n):Au(isNaN(e)?t:e)}const y0=function e(t){var n=tD(t);function r(a,i){var o=n((a=ri(a)).r,(i=ri(i)).r),s=n(a.g,i.g),u=n(a.b,i.b),c=Va(a.opacity,i.opacity);return function(l){return a.r=o(l),a.g=s(l),a.b=u(l),a.opacity=c(l),a+""}}return r.gamma=e,r}(1);function nD(e){return function(t){var n=t.length,r=new Array(n),a=new Array(n),i=new Array(n),o,s;for(o=0;o<n;++o)s=ri(t[o]),r[o]=s.r||0,a[o]=s.g||0,i[o]=s.b||0;return r=e(r),a=e(a),i=e(i),s.opacity=1,function(u){return s.r=r(u),s.g=a(u),s.b=i(u),s+""}}}var rD=nD(JP);function aD(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function iD(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function oD(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),o;for(o=0;o<r;++o)a[o]=cp(e[o],t[o]);for(;o<n;++o)i[o]=t[o];return function(s){for(o=0;o<r;++o)i[o]=a[o](s);return i}}function sD(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function bc(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function cD(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=cp(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var vf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xl=new RegExp(vf.source,"g");function uD(e){return function(){return e}}function lD(e){return function(t){return e(t)+""}}function Qx(e,t){var n=vf.lastIndex=Xl.lastIndex=0,r,a,i,o=-1,s=[],u=[];for(e=e+"",t=t+"";(r=vf.exec(e))&&(a=Xl.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,u.push({i:o,x:bc(r,a)})),n=Xl.lastIndex;return n<t.length&&(i=t.slice(n),s[o]?s[o]+=i:s[++o]=i),s.length<2?u[0]?lD(u[0].x):uD(t):(t=u.length,function(c){for(var l=0,d;l<t;++l)s[(d=u[l]).i]=d.x(c);return s.join("")})}function cp(e,t){var n=typeof t,r;return t==null||n==="boolean"?Au(t):(n==="number"?bc:n==="string"?(r=Io(t))?(t=r,y0):Qx:t instanceof Io?y0:t instanceof Date?sD:iD(t)?aD:Array.isArray(t)?oD:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?cD:bc)(e,t)}function dD(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function e2(e){return function t(n){n=+n;function r(a,i){var o=e((a=Xn(a)).h,(i=Xn(i)).h),s=Va(a.s,i.s),u=Va(a.l,i.l),c=Va(a.opacity,i.opacity);return function(l){return a.h=o(l),a.s=s(l),a.l=u(Math.pow(l,n)),a.opacity=c(l),a+""}}return r.gamma=t,r}(1)}e2(eD);var up=e2(Va),fD=zr,hD=cn,pD=Un,mD="[object String]";function gD(e){return typeof e=="string"||!hD(e)&&pD(e)&&fD(e)==mD}var vD=gD;const yD=Tt(vD);function bD(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var t2=bD;const ye=Tt(t2);function Fs(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function xD(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function lp(e){let t,n,r;e.length!==2?(t=Fs,n=(s,u)=>Fs(e(s),u),r=(s,u)=>e(s)-u):(t=e===Fs||e===xD?e:_D,n=e,r=e);function a(s,u,c=0,l=s.length){if(c<l){if(t(u,u)!==0)return l;do{const d=c+l>>>1;n(s[d],u)<0?c=d+1:l=d}while(c<l)}return c}function i(s,u,c=0,l=s.length){if(c<l){if(t(u,u)!==0)return l;do{const d=c+l>>>1;n(s[d],u)<=0?c=d+1:l=d}while(c<l)}return c}function o(s,u,c=0,l=s.length){const d=a(s,u,c,l-1);return d>c&&r(s[d-1],u)>-r(s[d],u)?d-1:d}return{left:a,center:o,right:i}}function _D(){return 0}function wD(e){return e===null?NaN:+e}const TD=lp(Fs),CD=TD.right;lp(wD).center;class b0 extends Map{constructor(t,n=OD){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(x0(this,t))}has(t){return super.has(x0(this,t))}set(t,n){return super.set(kD(this,t),n)}delete(t){return super.delete(SD(this,t))}}function x0({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function kD({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function SD({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function OD(e){return e!==null&&typeof e=="object"?e.valueOf():e}const ED=Math.sqrt(50),$D=Math.sqrt(10),MD=Math.sqrt(2);function xc(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=ED?10:i>=$D?5:i>=MD?2:1;let s,u,c;return a<0?(c=Math.pow(10,-a)/o,s=Math.round(e*c),u=Math.round(t*c),s/c<e&&++s,u/c>t&&--u,c=-c):(c=Math.pow(10,a)*o,s=Math.round(e/c),u=Math.round(t/c),s*c<e&&++s,u*c>t&&--u),u<s&&.5<=n&&n<2?xc(e,t,n*2):[s,u,c]}function yf(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,o]=r?xc(t,e,n):xc(e,t,n);if(!(i>=a))return[];const s=i-a+1,u=new Array(s);if(r)if(o<0)for(let c=0;c<s;++c)u[c]=(i-c)/-o;else for(let c=0;c<s;++c)u[c]=(i-c)*o;else if(o<0)for(let c=0;c<s;++c)u[c]=(a+c)/-o;else for(let c=0;c<s;++c)u[c]=(a+c)*o;return u}function bf(e,t,n){return t=+t,e=+e,n=+n,xc(e,t,n)[2]}function xf(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?bf(t,e,n):bf(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function RD(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r<a;)i[r]=e+r*n;return i}function wa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const _0=Symbol("implicit");function Jr(){var e=new b0,t=[],n=[],r=_0;function a(i){let o=e.get(i);if(o===void 0){if(r!==_0)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new b0;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Jr(t,n).unknown(r)},wa.apply(a,arguments),a}function dp(){var e=Jr().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,o,s=!1,u=0,c=0,l=.5;delete e.unknown;function d(){var f=t().length,p=a<r,m=p?a:r,g=p?r:a;i=(g-m)/Math.max(1,f-u+c*2),s&&(i=Math.floor(i)),m+=(g-m-i*(f-u))*l,o=i*(1-u),s&&(m=Math.round(m),o=Math.round(o));var v=RD(f).map(function(x){return m+i*x});return n(p?v.reverse():v)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,a]=f,r=+r,a=+a,d()):[r,a]},e.rangeRound=function(f){return[r,a]=f,r=+r,a=+a,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(u=Math.min(1,c=+f),d()):u},e.paddingInner=function(f){return arguments.length?(u=Math.min(1,f),d()):u},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(l=Math.max(0,Math.min(1,f)),d()):l},e.copy=function(){return dp(t(),[r,a]).round(s).paddingInner(u).paddingOuter(c).align(l)},wa.apply(d(),arguments)}function n2(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return n2(t())},e}function AD(){return n2(dp.apply(null,arguments).paddingInner(1))}function jD(e){return function(){return e}}function PD(e){return+e}var w0=[0,1];function La(e){return e}function _f(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:jD(isNaN(t)?NaN:.5)}function DD(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function ID(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=_f(a,r),i=n(o,i)):(r=_f(r,a),i=n(i,o)),function(s){return i(r(s))}}function ND(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)a[o]=_f(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(s){var u=CD(e,s,1,r)-1;return i[u](a[u](s))}}function ju(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function fp(){var e=w0,t=w0,n=cp,r,a,i,o=La,s,u,c;function l(){var f=Math.min(e.length,t.length);return o!==La&&(o=DD(e[0],e[f-1])),s=f>2?ND:ID,u=c=null,d}function d(f){return f==null||isNaN(f=+f)?i:(u||(u=s(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(a((c||(c=s(t,e.map(r),bc)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,PD),l()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),l()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=dD,l()},d.clamp=function(f){return arguments.length?(o=f?!0:La,l()):o!==La},d.interpolate=function(f){return arguments.length?(n=f,l()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,p){return r=f,a=p,l()}}function r2(){return fp()(La,La)}function FD(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function _c(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 ai(e){return e=_c(Math.abs(e)),e?e[1]:NaN}function LD(e,t){return function(n,r){for(var a=n.length,i=[],o=0,s=e[0],u=0;a>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),i.push(n.substring(a-=s,a+s)),!((u+=s+1)>r));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function UD(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var BD=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fo(e){if(!(t=BD.exec(e)))throw new Error("invalid format: "+e);var t;return new hp({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]})}Fo.prototype=hp.prototype;function hp(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+""}hp.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 WD(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var a2;function zD(e,t){var n=_c(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(a2=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+_c(e,Math.max(0,t+i-1))[0]}function T0(e,t){var n=_c(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const C0={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:FD,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 T0(e*100,t)},r:T0,s:zD,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function k0(e){return e}var S0=Array.prototype.map,O0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function HD(e){var t=e.grouping===void 0||e.thousands===void 0?k0:LD(S0.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?k0:UD(S0.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function c(d){d=Fo(d);var f=d.fill,p=d.align,m=d.sign,g=d.symbol,v=d.zero,x=d.width,w=d.comma,b=d.precision,T=d.trim,_=d.type;_==="n"?(w=!0,_="g"):C0[_]||(b===void 0&&(b=12),T=!0,_="g"),(v||f==="0"&&p==="=")&&(v=!0,f="0",p="=");var C=g==="$"?n:g==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",$=g==="$"?r:/[%p]/.test(_)?o:"",A=C0[_],D=/[defgprs%]/.test(_);b=b===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function j(E){var F=C,M=$,R,I,U;if(_==="c")M=A(E)+M,E="";else{E=+E;var N=E<0||1/E<0;if(E=isNaN(E)?u:A(Math.abs(E),b),T&&(E=WD(E)),N&&+E==0&&m!=="+"&&(N=!1),F=(N?m==="("?m:s:m==="-"||m==="("?"":m)+F,M=(_==="s"?O0[8+a2/3]:"")+M+(N&&m==="("?")":""),D){for(R=-1,I=E.length;++R<I;)if(U=E.charCodeAt(R),48>U||U>57){M=(U===46?a+E.slice(R+1):E.slice(R))+M,E=E.slice(0,R);break}}}w&&!v&&(E=t(E,1/0));var q=F.length+E.length+M.length,z=q<x?new Array(x-q+1).join(f):"";switch(w&&v&&(E=t(z+E,z.length?x-M.length:1/0),z=""),p){case"<":E=F+E+M+z;break;case"=":E=F+z+E+M;break;case"^":E=z.slice(0,q=z.length>>1)+F+E+M+z.slice(q);break;default:E=z+F+E+M;break}return i(E)}return j.toString=function(){return d+""},j}function l(d,f){var p=c((d=Fo(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(ai(f)/3)))*3,g=Math.pow(10,-m),v=O0[8+m/3];return function(x){return p(g*x)+v}}return{format:c,formatPrefix:l}}var ws,os,i2;VD({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function VD(e){return ws=HD(e),os=ws.format,i2=ws.formatPrefix,ws}function qD(e){return Math.max(0,-ai(Math.abs(e)))}function YD(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ai(t)/3)))*3-ai(Math.abs(e)))}function GD(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ai(t)-ai(e))+1}function ZD(e,t,n,r){var a=xf(e,t,n),i;switch(r=Fo(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=YD(a,o))&&(r.precision=i),i2(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=GD(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=qD(a))&&(r.precision=i-(r.type==="%")*2);break}}return os(r)}function o2(e){var t=e.domain;return e.ticks=function(n){var r=t();return yf(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return ZD(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],s=r[i],u,c,l=10;for(s<o&&(c=o,o=s,s=c,c=a,a=i,i=c);l-- >0;){if(c=bf(o,s,n),c===u)return r[a]=o,r[i]=s,t(r);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;u=c}return e},e}function s2(){var e=r2();return e.copy=function(){return ju(e,s2())},wa.apply(e,arguments),o2(e)}function c2(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}function E0(e){return Math.log(e)}function $0(e){return Math.exp(e)}function KD(e){return-Math.log(-e)}function XD(e){return-Math.exp(-e)}function JD(e){return isFinite(e)?+("1e"+e):e<0?0:e}function QD(e){return e===10?JD:e===Math.E?Math.exp:t=>Math.pow(e,t)}function eI(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 M0(e){return(t,n)=>-e(-t,n)}function tI(e){const t=e(E0,$0),n=t.domain;let r=10,a,i;function o(){return a=eI(r),i=QD(r),n()[0]<0?(a=M0(a),i=M0(i),e(KD,XD)):e(E0,$0),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 u=n();let c=u[0],l=u[u.length-1];const d=l<c;d&&([c,l]=[l,c]);let f=a(c),p=a(l),m,g;const v=s==null?10:+s;let x=[];if(!(r%1)&&p-f<v){if(f=Math.floor(f),p=Math.ceil(p),c>0){for(;f<=p;++f)for(m=1;m<r;++m)if(g=f<0?m/i(-f):m*i(f),!(g<c)){if(g>l)break;x.push(g)}}else for(;f<=p;++f)for(m=r-1;m>=1;--m)if(g=f>0?m/i(-f):m*i(f),!(g<c)){if(g>l)break;x.push(g)}x.length*2<v&&(x=yf(c,l,v))}else x=yf(f,p,Math.min(p-f,v)).map(i);return d?x.reverse():x},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=Fo(u)).precision==null&&(u.trim=!0),u=os(u)),s===1/0)return u;const c=Math.max(1,r*s/t.ticks().length);return l=>{let d=l/i(Math.round(a(l)));return d*r<r-.5&&(d*=r),d<=c?u(l):""}},t.nice=()=>n(c2(n(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function u2(){const e=tI(fp()).domain([1,10]);return e.copy=()=>ju(e,u2()).base(e.base()),wa.apply(e,arguments),e}function R0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function A0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function nI(e){var t=1,n=e(R0(t),A0(t));return n.constant=function(r){return arguments.length?e(R0(t=+r),A0(t)):t},o2(n)}function l2(){var e=nI(fp());return e.copy=function(){return ju(e,l2()).constant(e.constant())},wa.apply(e,arguments)}const Jl=new Date,Ql=new Date;function Rt(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const u=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return u;let c;do u.push(c=new Date(+i)),t(i,s),e(i);while(c<i&&i<o);return u},a.filter=i=>Rt(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(Jl.setTime(+i),Ql.setTime(+o),e(Jl),e(Ql),Math.floor(n(Jl,Ql))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const wc=Rt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);wc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Rt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):wc);wc.range;const sr=1e3,Cn=sr*60,cr=Cn*60,mr=cr*24,pp=mr*7,j0=mr*30,ed=mr*365,Qr=Rt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*sr)},(e,t)=>(t-e)/sr,e=>e.getUTCSeconds());Qr.range;const mp=Rt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*sr)},(e,t)=>{e.setTime(+e+t*Cn)},(e,t)=>(t-e)/Cn,e=>e.getMinutes());mp.range;const gp=Rt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Cn)},(e,t)=>(t-e)/Cn,e=>e.getUTCMinutes());gp.range;const vp=Rt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*sr-e.getMinutes()*Cn)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getHours());vp.range;const yp=Rt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getUTCHours());yp.range;const bp=Rt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Cn)/mr,e=>e.getDate()-1);bp.range;const d2=Rt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mr,e=>e.getUTCDate()-1);d2.range;const f2=Rt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mr,e=>Math.floor(e/mr));f2.range;function Ta(e){return Rt(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())*Cn)/pp)}const xp=Ta(0),rI=Ta(1),aI=Ta(2),iI=Ta(3),oI=Ta(4),sI=Ta(5),cI=Ta(6);xp.range;rI.range;aI.range;iI.range;oI.range;sI.range;cI.range;function Ca(e){return Rt(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)/pp)}const _p=Ca(0),uI=Ca(1),lI=Ca(2),dI=Ca(3),fI=Ca(4),hI=Ca(5),pI=Ca(6);_p.range;uI.range;lI.range;dI.range;fI.range;hI.range;pI.range;const wp=Rt(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());wp.range;const Tp=Rt(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());Tp.range;const Pu=Rt(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());Pu.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Rt(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)});Pu.range;const Du=Rt(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());Du.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Rt(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)});Du.range;function h2(e,t,n,r,a,i){const o=[[Qr,1,sr],[Qr,5,5*sr],[Qr,15,15*sr],[Qr,30,30*sr],[i,1,Cn],[i,5,5*Cn],[i,15,15*Cn],[i,30,30*Cn],[a,1,cr],[a,3,3*cr],[a,6,6*cr],[a,12,12*cr],[r,1,mr],[r,2,2*mr],[n,1,pp],[t,1,j0],[t,3,3*j0],[e,1,ed]];function s(c,l,d){const f=l<c;f&&([c,l]=[l,c]);const p=d&&typeof d.range=="function"?d:u(c,l,d),m=p?p.range(c,+l+1):[];return f?m.reverse():m}function u(c,l,d){const f=Math.abs(l-c)/d,p=lp(([,,v])=>v).right(o,f);if(p===o.length)return e.every(xf(c/ed,l/ed,d));if(p===0)return wc.every(Math.max(xf(c,l,d),1));const[m,g]=o[f/o[p-1][2]<o[p][2]/f?p-1:p];return m.every(g)}return[s,u]}const[mI,gI]=h2(Du,Tp,_p,f2,yp,gp),[vI,yI]=h2(Pu,wp,xp,bp,vp,mp);var td=new Date,nd=new Date;function yr(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=function(i){return e(i=new Date(+i)),i},a.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},a.round=function(i){var o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=function(i,o){return t(i=new Date(+i),o==null?1:Math.floor(o)),i},a.range=function(i,o,s){var u=[],c;if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return u;do u.push(c=new Date(+i)),t(i,s),e(i);while(c<i&&i<o);return u},a.filter=function(i){return yr(function(o){if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););})},n&&(a.count=function(i,o){return td.setTime(+i),nd.setTime(+o),e(td),e(nd),Math.floor(n(td,nd))},a.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?function(o){return r(o)%i===0}:function(o){return a.count(0,o)%i===0}):a}),a}const bI=1e3,Cp=bI*60,xI=Cp*60,kp=xI*24,p2=kp*7;var Sp=yr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Cp)/kp,e=>e.getDate()-1);Sp.range;function ka(e){return yr(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())*Cp)/p2})}var m2=ka(0),Tc=ka(1),_I=ka(2),wI=ka(3),ii=ka(4),TI=ka(5),CI=ka(6);m2.range;Tc.range;_I.range;wI.range;ii.range;TI.range;CI.range;var ga=yr(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()});ga.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yr(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)})};ga.range;var Op=yr(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/kp},function(e){return e.getUTCDate()-1});Op.range;function Sa(e){return yr(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)/p2})}var g2=Sa(0),Cc=Sa(1),kI=Sa(2),SI=Sa(3),oi=Sa(4),OI=Sa(5),EI=Sa(6);g2.range;Cc.range;kI.range;SI.range;oi.range;OI.range;EI.range;var va=yr(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()});va.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yr(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)})};va.range;function rd(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 ad(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 Ui(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function $I(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,s=e.months,u=e.shortMonths,c=Bi(a),l=Wi(a),d=Bi(i),f=Wi(i),p=Bi(o),m=Wi(o),g=Bi(s),v=Wi(s),x=Bi(u),w=Wi(u),b={a:N,A:q,b:z,B:P,c:null,d:L0,e:L0,f:JI,g:cN,G:lN,H:ZI,I:KI,j:XI,L:v2,m:QI,M:eN,p:W,q:Z,Q:W0,s:z0,S:tN,u:nN,U:rN,V:aN,w:iN,W:oN,x:null,X:null,y:sN,Y:uN,Z:dN,"%":B0},T={a:ne,A:Y,b:Q,B:G,c:null,d:U0,e:U0,f:mN,g:kN,G:ON,H:fN,I:hN,j:pN,L:b2,m:gN,M:vN,p:J,q:re,Q:W0,s:z0,S:yN,u:bN,U:xN,V:_N,w:wN,W:TN,x:null,X:null,y:CN,Y:SN,Z:EN,"%":B0},_={a:j,A:E,b:F,B:M,c:R,d:N0,e:N0,f:VI,g:I0,G:D0,H:F0,I:F0,j:BI,L:HI,m:UI,M:WI,p:D,q:LI,Q:YI,s:GI,S:zI,u:PI,U:DI,V:II,w:jI,W:NI,x:I,X:U,y:I0,Y:D0,Z:FI,"%":qI};b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),T.x=C(n,T),T.X=C(r,T),T.c=C(t,T);function C(L,V){return function(ae){var k=[],ge=-1,pe=0,de=L.length,Ae,Pe,ft;for(ae instanceof Date||(ae=new Date(+ae));++ge<de;)L.charCodeAt(ge)===37&&(k.push(L.slice(pe,ge)),(Pe=P0[Ae=L.charAt(++ge)])!=null?Ae=L.charAt(++ge):Pe=Ae==="e"?" ":"0",(ft=V[Ae])&&(Ae=ft(ae,Pe)),k.push(Ae),pe=ge+1);return k.push(L.slice(pe,ge)),k.join("")}}function $(L,V){return function(ae){var k=Ui(1900,void 0,1),ge=A(k,L,ae+="",0),pe,de;if(ge!=ae.length)return null;if("Q"in k)return new Date(k.Q);if("s"in k)return new Date(k.s*1e3+("L"in k?k.L:0));if(V&&!("Z"in k)&&(k.Z=0),"p"in k&&(k.H=k.H%12+k.p*12),k.m===void 0&&(k.m="q"in k?k.q:0),"V"in k){if(k.V<1||k.V>53)return null;"w"in k||(k.w=1),"Z"in k?(pe=ad(Ui(k.y,0,1)),de=pe.getUTCDay(),pe=de>4||de===0?Cc.ceil(pe):Cc(pe),pe=Op.offset(pe,(k.V-1)*7),k.y=pe.getUTCFullYear(),k.m=pe.getUTCMonth(),k.d=pe.getUTCDate()+(k.w+6)%7):(pe=rd(Ui(k.y,0,1)),de=pe.getDay(),pe=de>4||de===0?Tc.ceil(pe):Tc(pe),pe=Sp.offset(pe,(k.V-1)*7),k.y=pe.getFullYear(),k.m=pe.getMonth(),k.d=pe.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),de="Z"in k?ad(Ui(k.y,0,1)).getUTCDay():rd(Ui(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(de+5)%7:k.w+k.U*7-(de+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,ad(k)):rd(k)}}function A(L,V,ae,k){for(var ge=0,pe=V.length,de=ae.length,Ae,Pe;ge<pe;){if(k>=de)return-1;if(Ae=V.charCodeAt(ge++),Ae===37){if(Ae=V.charAt(ge++),Pe=_[Ae in P0?V.charAt(ge++):Ae],!Pe||(k=Pe(L,ae,k))<0)return-1}else if(Ae!=ae.charCodeAt(k++))return-1}return k}function D(L,V,ae){var k=c.exec(V.slice(ae));return k?(L.p=l.get(k[0].toLowerCase()),ae+k[0].length):-1}function j(L,V,ae){var k=p.exec(V.slice(ae));return k?(L.w=m.get(k[0].toLowerCase()),ae+k[0].length):-1}function E(L,V,ae){var k=d.exec(V.slice(ae));return k?(L.w=f.get(k[0].toLowerCase()),ae+k[0].length):-1}function F(L,V,ae){var k=x.exec(V.slice(ae));return k?(L.m=w.get(k[0].toLowerCase()),ae+k[0].length):-1}function M(L,V,ae){var k=g.exec(V.slice(ae));return k?(L.m=v.get(k[0].toLowerCase()),ae+k[0].length):-1}function R(L,V,ae){return A(L,t,V,ae)}function I(L,V,ae){return A(L,n,V,ae)}function U(L,V,ae){return A(L,r,V,ae)}function N(L){return o[L.getDay()]}function q(L){return i[L.getDay()]}function z(L){return u[L.getMonth()]}function P(L){return s[L.getMonth()]}function W(L){return a[+(L.getHours()>=12)]}function Z(L){return 1+~~(L.getMonth()/3)}function ne(L){return o[L.getUTCDay()]}function Y(L){return i[L.getUTCDay()]}function Q(L){return u[L.getUTCMonth()]}function G(L){return s[L.getUTCMonth()]}function J(L){return a[+(L.getUTCHours()>=12)]}function re(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var V=C(L+="",b);return V.toString=function(){return L},V},parse:function(L){var V=$(L+="",!1);return V.toString=function(){return L},V},utcFormat:function(L){var V=C(L+="",T);return V.toString=function(){return L},V},utcParse:function(L){var V=$(L+="",!0);return V.toString=function(){return L},V}}}var P0={"-":"",_:" ",0:"0"},Dt=/^\s*\d+/,MI=/^%/,RI=/[\\^$*+?|[\]().{}]/g;function Be(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function AI(e){return e.replace(RI,"\\$&")}function Bi(e){return new RegExp("^(?:"+e.map(AI).join("|")+")","i")}function Wi(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function jI(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function PI(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function DI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function II(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function NI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function D0(e,t,n){var r=Dt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function I0(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function FI(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 LI(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function UI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function N0(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function BI(e,t,n){var r=Dt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function F0(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function WI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function zI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function HI(e,t,n){var r=Dt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function VI(e,t,n){var r=Dt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function qI(e,t,n){var r=MI.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function YI(e,t,n){var r=Dt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function GI(e,t,n){var r=Dt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function L0(e,t){return Be(e.getDate(),t,2)}function ZI(e,t){return Be(e.getHours(),t,2)}function KI(e,t){return Be(e.getHours()%12||12,t,2)}function XI(e,t){return Be(1+Sp.count(ga(e),e),t,3)}function v2(e,t){return Be(e.getMilliseconds(),t,3)}function JI(e,t){return v2(e,t)+"000"}function QI(e,t){return Be(e.getMonth()+1,t,2)}function eN(e,t){return Be(e.getMinutes(),t,2)}function tN(e,t){return Be(e.getSeconds(),t,2)}function nN(e){var t=e.getDay();return t===0?7:t}function rN(e,t){return Be(m2.count(ga(e)-1,e),t,2)}function y2(e){var t=e.getDay();return t>=4||t===0?ii(e):ii.ceil(e)}function aN(e,t){return e=y2(e),Be(ii.count(ga(e),e)+(ga(e).getDay()===4),t,2)}function iN(e){return e.getDay()}function oN(e,t){return Be(Tc.count(ga(e)-1,e),t,2)}function sN(e,t){return Be(e.getFullYear()%100,t,2)}function cN(e,t){return e=y2(e),Be(e.getFullYear()%100,t,2)}function uN(e,t){return Be(e.getFullYear()%1e4,t,4)}function lN(e,t){var n=e.getDay();return e=n>=4||n===0?ii(e):ii.ceil(e),Be(e.getFullYear()%1e4,t,4)}function dN(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Be(t/60|0,"0",2)+Be(t%60,"0",2)}function U0(e,t){return Be(e.getUTCDate(),t,2)}function fN(e,t){return Be(e.getUTCHours(),t,2)}function hN(e,t){return Be(e.getUTCHours()%12||12,t,2)}function pN(e,t){return Be(1+Op.count(va(e),e),t,3)}function b2(e,t){return Be(e.getUTCMilliseconds(),t,3)}function mN(e,t){return b2(e,t)+"000"}function gN(e,t){return Be(e.getUTCMonth()+1,t,2)}function vN(e,t){return Be(e.getUTCMinutes(),t,2)}function yN(e,t){return Be(e.getUTCSeconds(),t,2)}function bN(e){var t=e.getUTCDay();return t===0?7:t}function xN(e,t){return Be(g2.count(va(e)-1,e),t,2)}function x2(e){var t=e.getUTCDay();return t>=4||t===0?oi(e):oi.ceil(e)}function _N(e,t){return e=x2(e),Be(oi.count(va(e),e)+(va(e).getUTCDay()===4),t,2)}function wN(e){return e.getUTCDay()}function TN(e,t){return Be(Cc.count(va(e)-1,e),t,2)}function CN(e,t){return Be(e.getUTCFullYear()%100,t,2)}function kN(e,t){return e=x2(e),Be(e.getUTCFullYear()%100,t,2)}function SN(e,t){return Be(e.getUTCFullYear()%1e4,t,4)}function ON(e,t){var n=e.getUTCDay();return e=n>=4||n===0?oi(e):oi.ceil(e),Be(e.getUTCFullYear()%1e4,t,4)}function EN(){return"+0000"}function B0(){return"%"}function W0(e){return+e}function z0(e){return Math.floor(+e/1e3)}var Da,Iu,_2,w2,T2;$N({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 $N(e){return Da=$I(e),Iu=Da.format,_2=Da.parse,w2=Da.utcFormat,T2=Da.utcParse,Da}function MN(e){return new Date(e)}function RN(e){return e instanceof Date?+e:+new Date(+e)}function Ep(e,t,n,r,a,i,o,s,u,c){var l=r2(),d=l.invert,f=l.domain,p=c(".%L"),m=c(":%S"),g=c("%I:%M"),v=c("%I %p"),x=c("%a %d"),w=c("%b %d"),b=c("%B"),T=c("%Y");function _(C){return(u(C)<C?p:s(C)<C?m:o(C)<C?g:i(C)<C?v:r(C)<C?a(C)<C?x:w:n(C)<C?b:T)(C)}return l.invert=function(C){return new Date(d(C))},l.domain=function(C){return arguments.length?f(Array.from(C,RN)):f().map(MN)},l.ticks=function(C){var $=f();return e($[0],$[$.length-1],C??10)},l.tickFormat=function(C,$){return $==null?_:c($)},l.nice=function(C){var $=f();return(!C||typeof C.range!="function")&&(C=t($[0],$[$.length-1],C??10)),C?f(c2($,C)):l},l.copy=function(){return ju(l,Ep(e,t,n,r,a,i,o,s,u,c))},l}function AN(){return wa.apply(Ep(vI,yI,Pu,wp,xp,bp,vp,mp,Qr,Iu).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function jN(){return wa.apply(Ep(mI,gI,Du,Tp,_p,d2,yp,gp,Qr,w2).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function $e(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 C2=$e("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),k2=$e("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),S2=$e("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),O2=$e("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),E2=$e("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),$2=$e("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),M2=$e("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),R2=$e("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),$p=$e("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),PN=$e("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),nt=e=>rD(e[e.length-1]);var Nu=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map($e);const DN=nt(Nu);var Fu=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map($e);const IN=nt(Fu);var Lu=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map($e);const NN=nt(Lu);var Uu=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map($e);const FN=nt(Uu);var Bu=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map($e);const LN=nt(Bu);var Wu=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map($e);const UN=nt(Wu);var zu=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map($e);const BN=nt(zu);var Hu=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map($e);const WN=nt(Hu);var Vu=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map($e);const zN=nt(Vu);var qu=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map($e);const HN=nt(qu);var Yu=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map($e);const VN=nt(Yu);var Gu=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map($e);const qN=nt(Gu);var Zu=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map($e);const YN=nt(Zu);var Ku=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map($e);const GN=nt(Ku);var Xu=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map($e);const ZN=nt(Xu);var Ju=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map($e);const KN=nt(Ju);var Qu=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map($e);const XN=nt(Qu);var el=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map($e);const JN=nt(el);var tl=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map($e);const QN=nt(tl);var nl=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map($e);const eF=nt(nl);var rl=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map($e);const tF=nt(rl);var al=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map($e);const nF=nt(al);var il=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map($e);const rF=nt(il);var ol=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map($e);const aF=nt(ol);var sl=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map($e);const iF=nt(sl);var cl=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map($e);const oF=nt(cl);var ul=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map($e);const sF=nt(ul);function cF(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 uF=up(Xn(300,.5,0),Xn(-240,.5,1));var lF=up(Xn(-100,.75,.35),Xn(80,1.5,.8)),dF=up(Xn(260,.75,.35),Xn(80,1.5,.8)),Ts=Xn();function fF(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Ts.h=360*e-100,Ts.s=1.5-1.5*t,Ts.l=.8-.9*t,Ts+""}var Cs=ri(),hF=Math.PI/3,pF=Math.PI*2/3;function mF(e){var t;return e=(.5-e)*Math.PI,Cs.r=255*(t=Math.sin(e))*t,Cs.g=255*(t=Math.sin(e+hF))*t,Cs.b=255*(t=Math.sin(e+pF))*t,Cs+""}function gF(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 ll(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const vF=ll($e("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var yF=ll($e("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),bF=ll($e("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),xF=ll($e("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),_F="__lodash_hash_undefined__";function wF(e){return this.__data__.set(e,_F),this}var TF=wF;function CF(e){return this.__data__.has(e)}var kF=CF,SF=qh,OF=TF,EF=kF;function kc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new SF;++t<n;)this.add(e[t])}kc.prototype.add=kc.prototype.push=OF;kc.prototype.has=EF;var Mp=kc;function $F(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var MF=$F;function RF(e){return e!==e}var AF=RF;function jF(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var PF=jF,DF=MF,IF=AF,NF=PF;function FF(e,t,n){return t===t?NF(e,t,n):DF(e,IF,n)}var LF=FF,UF=LF;function BF(e,t){var n=e==null?0:e.length;return!!n&&UF(e,t,0)>-1}var A2=BF;function WF(e,t,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}var j2=WF;function zF(e,t){return e.has(t)}var Rp=zF,HF=Mp,VF=A2,qF=j2,YF=$u,GF=rs,ZF=Rp,KF=200;function XF(e,t,n,r){var a=-1,i=VF,o=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=YF(t,GF(n))),r?(i=qF,o=!1):t.length>=KF&&(i=ZF,o=!1,t=new HF(t));e:for(;++a<s;){var l=e[a],d=n==null?l:n(l);if(l=r||l!==0?l:0,o&&d===d){for(var f=c;f--;)if(t[f]===d)continue e;u.push(l)}else i(t,d,r)||u.push(l)}return u}var JF=XF,QF=JF,eL=np,tL=Nx,nL=eL(function(e,t){return tL(e)?QF(e,t):[]}),rL=nL;const P2=Tt(rL);function ut(e){return function(){return e}}const H0=Math.abs,Ut=Math.atan2,Hr=Math.cos,aL=Math.max,id=Math.min,Bn=Math.sin,Ua=Math.sqrt,Bt=1e-12,Lo=Math.PI,Sc=Lo/2,Ls=2*Lo;function iL(e){return e>1?0:e<-1?Lo:Math.acos(e)}function V0(e){return e>=1?Sc:e<=-1?-Sc:Math.asin(e)}const wf=Math.PI,Tf=2*wf,Yr=1e-6,oL=Tf-Yr;function D2(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function sL(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return D2;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;a<i;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class cL{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?D2:sL(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,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,i,o){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,n,r,a,i){if(t=+t,n=+n,r=+r,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,s=this._y1,u=r-t,c=a-n,l=o-t,d=s-n,f=l*l+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Yr)if(!(Math.abs(d*u-c*l)>Yr)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-o,m=a-s,g=u*u+c*c,v=p*p+m*m,x=Math.sqrt(g),w=Math.sqrt(f),b=i*Math.tan((wf-Math.acos((g+f-v)/(2*x*w)))/2),T=b/w,_=b/x;Math.abs(T-1)>Yr&&this._append`L${t+T*l},${n+T*d}`,this._append`A${i},${i},0,0,${+(d*p>l*m)},${this._x1=t+_*u},${this._y1=n+_*c}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(a),u=r*Math.sin(a),c=t+s,l=n+u,d=1^o,f=o?a-i:i-a;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Yr||Math.abs(this._y1-l)>Yr)&&this._append`L${c},${l}`,r&&(f<0&&(f=f%Tf+Tf),f>oL?this._append`A${r},${r},0,1,${d},${t-s},${n-u}A${r},${r},0,1,${d},${this._x1=c},${this._y1=l}`:f>Yr&&this._append`A${r},${r},0,${+(f>=wf)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function I2(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 cL(t)}function uL(e){return e.innerRadius}function lL(e){return e.outerRadius}function dL(e){return e.startAngle}function fL(e){return e.endAngle}function hL(e){return e&&e.padAngle}function pL(e,t,n,r,a,i,o,s){var u=n-e,c=r-t,l=o-a,d=s-i,f=d*u-l*c;if(!(f*f<Bt))return f=(l*(t-i)-d*(e-a))/f,[e+f*u,t+f*c]}function ks(e,t,n,r,a,i,o){var s=e-n,u=t-r,c=(o?i:-i)/Ua(s*s+u*u),l=c*u,d=-c*s,f=e+l,p=t+d,m=n+l,g=r+d,v=(f+m)/2,x=(p+g)/2,w=m-f,b=g-p,T=w*w+b*b,_=a-i,C=f*g-m*p,$=(b<0?-1:1)*Ua(aL(0,_*_*T-C*C)),A=(C*b-w*$)/T,D=(-C*w-b*$)/T,j=(C*b+w*$)/T,E=(-C*w+b*$)/T,F=A-v,M=D-x,R=j-v,I=E-x;return F*F+M*M>R*R+I*I&&(A=j,D=E),{cx:A,cy:D,x01:-l,y01:-d,x11:A*(a/_-1),y11:D*(a/_-1)}}function mL(){var e=uL,t=lL,n=ut(0),r=null,a=dL,i=fL,o=hL,s=null,u=I2(c);function c(){var l,d,f=+e.apply(this,arguments),p=+t.apply(this,arguments),m=a.apply(this,arguments)-Sc,g=i.apply(this,arguments)-Sc,v=H0(g-m),x=g>m;if(s||(s=l=u()),p<f&&(d=p,p=f,f=d),!(p>Bt))s.moveTo(0,0);else if(v>Ls-Bt)s.moveTo(p*Hr(m),p*Bn(m)),s.arc(0,0,p,m,g,!x),f>Bt&&(s.moveTo(f*Hr(g),f*Bn(g)),s.arc(0,0,f,g,m,x));else{var w=m,b=g,T=m,_=g,C=v,$=v,A=o.apply(this,arguments)/2,D=A>Bt&&(r?+r.apply(this,arguments):Ua(f*f+p*p)),j=id(H0(p-f)/2,+n.apply(this,arguments)),E=j,F=j,M,R;if(D>Bt){var I=V0(D/f*Bn(A)),U=V0(D/p*Bn(A));(C-=I*2)>Bt?(I*=x?1:-1,T+=I,_-=I):(C=0,T=_=(m+g)/2),($-=U*2)>Bt?(U*=x?1:-1,w+=U,b-=U):($=0,w=b=(m+g)/2)}var N=p*Hr(w),q=p*Bn(w),z=f*Hr(_),P=f*Bn(_);if(j>Bt){var W=p*Hr(b),Z=p*Bn(b),ne=f*Hr(T),Y=f*Bn(T),Q;if(v<Lo)if(Q=pL(N,q,ne,Y,W,Z,z,P)){var G=N-Q[0],J=q-Q[1],re=W-Q[0],L=Z-Q[1],V=1/Bn(iL((G*re+J*L)/(Ua(G*G+J*J)*Ua(re*re+L*L)))/2),ae=Ua(Q[0]*Q[0]+Q[1]*Q[1]);E=id(j,(f-ae)/(V-1)),F=id(j,(p-ae)/(V+1))}else E=F=0}$>Bt?F>Bt?(M=ks(ne,Y,N,q,p,F,x),R=ks(W,Z,z,P,p,F,x),s.moveTo(M.cx+M.x01,M.cy+M.y01),F<j?s.arc(M.cx,M.cy,F,Ut(M.y01,M.x01),Ut(R.y01,R.x01),!x):(s.arc(M.cx,M.cy,F,Ut(M.y01,M.x01),Ut(M.y11,M.x11),!x),s.arc(0,0,p,Ut(M.cy+M.y11,M.cx+M.x11),Ut(R.cy+R.y11,R.cx+R.x11),!x),s.arc(R.cx,R.cy,F,Ut(R.y11,R.x11),Ut(R.y01,R.x01),!x))):(s.moveTo(N,q),s.arc(0,0,p,w,b,!x)):s.moveTo(N,q),!(f>Bt)||!(C>Bt)?s.lineTo(z,P):E>Bt?(M=ks(z,P,W,Z,f,-E,x),R=ks(N,q,ne,Y,f,-E,x),s.lineTo(M.cx+M.x01,M.cy+M.y01),E<j?s.arc(M.cx,M.cy,E,Ut(M.y01,M.x01),Ut(R.y01,R.x01),!x):(s.arc(M.cx,M.cy,E,Ut(M.y01,M.x01),Ut(M.y11,M.x11),!x),s.arc(0,0,f,Ut(M.cy+M.y11,M.cx+M.x11),Ut(R.cy+R.y11,R.cx+R.x11),x),s.arc(R.cx,R.cy,E,Ut(R.y11,R.x11),Ut(R.y01,R.x01),!x))):s.arc(0,0,f,_,T,x)}if(s.closePath(),l)return s=null,l+""||null}return c.centroid=function(){var l=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-Lo/2;return[Hr(d)*l,Bn(d)*l]},c.innerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:ut(+l),c):e},c.outerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:ut(+l),c):t},c.cornerRadius=function(l){return arguments.length?(n=typeof l=="function"?l:ut(+l),c):n},c.padRadius=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ut(+l),c):r},c.startAngle=function(l){return arguments.length?(a=typeof l=="function"?l:ut(+l),c):a},c.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:ut(+l),c):i},c.padAngle=function(l){return arguments.length?(o=typeof l=="function"?l:ut(+l),c):o},c.context=function(l){return arguments.length?(s=l??null,c):s},c}function Ap(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function N2(e){this._context=e}N2.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 F2(e){return new N2(e)}function gL(e){return e[0]}function vL(e){return e[1]}function yL(e,t){var n=ut(!0),r=null,a=F2,i=null,o=I2(s);e=typeof e=="function"?e:e===void 0?gL:ut(e),t=typeof t=="function"?t:t===void 0?vL:ut(t);function s(u){var c,l=(u=Ap(u)).length,d,f=!1,p;for(r==null&&(i=a(p=o())),c=0;c<=l;++c)!(c<l&&n(d=u[c],c,u))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(d,c,u),+t(d,c,u));if(p)return i=null,p+""||null}return s.x=function(u){return arguments.length?(e=typeof u=="function"?u:ut(+u),s):e},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:ut(+u),s):t},s.defined=function(u){return arguments.length?(n=typeof u=="function"?u:ut(!!u),s):n},s.curve=function(u){return arguments.length?(a=u,r!=null&&(i=a(r)),s):a},s.context=function(u){return arguments.length?(u==null?r=i=null:i=a(r=u),s):r},s}function bL(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function xL(e){return e}function _L(){var e=xL,t=bL,n=null,r=ut(0),a=ut(Ls),i=ut(0);function o(s){var u,c=(s=Ap(s)).length,l,d,f=0,p=new Array(c),m=new Array(c),g=+r.apply(this,arguments),v=Math.min(Ls,Math.max(-Ls,a.apply(this,arguments)-g)),x,w=Math.min(Math.abs(v)/c,i.apply(this,arguments)),b=w*(v<0?-1:1),T;for(u=0;u<c;++u)(T=m[p[u]=u]=+e(s[u],u,s))>0&&(f+=T);for(t!=null?p.sort(function(_,C){return t(m[_],m[C])}):n!=null&&p.sort(function(_,C){return n(s[_],s[C])}),u=0,d=f?(v-c*b)/f:0;u<c;++u,g=x)l=p[u],T=m[l],x=g+(T>0?T*d:0)+b,m[l]={data:s[l],index:u,value:T,startAngle:g,endAngle:x,padAngle:w};return m}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:ut(+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:ut(+s),o):r},o.endAngle=function(s){return arguments.length?(a=typeof s=="function"?s:ut(+s),o):a},o.padAngle=function(s){return arguments.length?(i=typeof s=="function"?s:ut(+s),o):i},o}function Lr(){}function Oc(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 dl(e){this._context=e}dl.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:Oc(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:Oc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function wL(e){return new dl(e)}function L2(e){this._context=e}L2.prototype={areaStart:Lr,areaEnd:Lr,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:Oc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function TL(e){return new L2(e)}function U2(e){this._context=e}U2.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:Oc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function CL(e){return new U2(e)}function B2(e,t){this._basis=new dl(e),this._beta=t}B2.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],a=t[0],i=e[n]-r,o=t[n]-a,s=-1,u;++s<=n;)u=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+u*i),this._beta*t[s]+(1-this._beta)*(a+u*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const kL=function e(t){function n(r){return t===1?new dl(r):new B2(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Ec(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 jp(e,t){this._context=e,this._k=(1-t)/6}jp.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:Ec(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:Ec(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 SL=function e(t){function n(r){return new jp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Pp(e,t){this._context=e,this._k=(1-t)/6}Pp.prototype={areaStart:Lr,areaEnd:Lr,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:Ec(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 OL=function e(t){function n(r){return new Pp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Dp(e,t){this._context=e,this._k=(1-t)/6}Dp.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:Ec(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 EL=function e(t){function n(r){return new Dp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Ip(e,t,n){var r=e._x1,a=e._y1,i=e._x2,o=e._y2;if(e._l01_a>Bt){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Bt){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*c+e._x1*e._l23_2a-t*e._l12_2a)/l,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,a,i,o,e._x2,e._y2)}function W2(e,t){this._context=e,this._alpha=t}W2.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:Ip(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 $L=function e(t){function n(r){return t?new W2(r,t):new jp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function z2(e,t){this._context=e,this._alpha=t}z2.prototype={areaStart:Lr,areaEnd:Lr,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:Ip(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 ML=function e(t){function n(r){return t?new z2(r,t):new Pp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function H2(e,t){this._context=e,this._alpha=t}H2.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:Ip(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 RL=function e(t){function n(r){return t?new H2(r,t):new Dp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function V2(e){this._context=e}V2.prototype={areaStart:Lr,areaEnd:Lr,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 AL(e){return new V2(e)}function q0(e){return e<0?-1:1}function Y0(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),s=(i*a+o*r)/(r+a);return(q0(i)+q0(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function G0(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function od(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,a+s*t,i-s,o-s*n,i,o)}function $c(e){this._context=e}$c.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:od(this,this._t0,G0(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,od(this,G0(this,n=Y0(this,e,t)),n);break;default:od(this,this._t0,n=Y0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function q2(e){this._context=new Y2(e)}(q2.prototype=Object.create($c.prototype)).point=function(e,t){$c.prototype.point.call(this,t,e)};function Y2(e){this._context=e}Y2.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,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function jL(e){return new $c(e)}function PL(e){return new q2(e)}function G2(e){this._context=e}G2.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=Z0(e),a=Z0(t),i=0,o=1;o<n;++i,++o)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],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 Z0(e){var t,n=e.length-1,r,a=new Array(n),i=new Array(n),o=new Array(n);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,o[t]-=r*o[t-1];for(a[n-1]=o[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function DL(e){return new G2(e)}function fl(e,t){this._context=e,this._t=t}fl.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 IL(e){return new fl(e,.5)}function NL(e){return new fl(e,0)}function FL(e){return new fl(e,1)}function K0(e,t){if((o=e.length)>1)for(var n=1,r,a,i=e[t[0]],o,s=i.length;n<o;++n)for(a=i,i=e[t[n]],r=0;r<s;++r)i[r][1]+=i[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function X0(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function LL(e,t){return e[t]}function UL(e){const t=[];return t.key=e,t}function BL(){var e=ut([]),t=X0,n=K0,r=LL;function a(i){var o=Array.from(e.apply(this,arguments),UL),s,u=o.length,c=-1,l;for(const d of i)for(s=0,++c;s<u;++s)(o[s][c]=[0,+r(d,o[s].key,c,i)]).data=d;for(s=0,l=Ap(t(o));s<u;++s)o[l[s]].index=s;return n(o,l),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:ut(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:ut(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?X0:typeof i=="function"?i:ut(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??K0,a):n},a}function WL(e,t){if((u=e.length)>0)for(var n,r=0,a,i,o,s,u,c=e[t[0]].length;r<c;++r)for(o=s=0,n=0;n<u;++n)(i=(a=e[t[n]][r])[1]-a[0])>0?(a[0]=o,a[1]=o+=i):i<0?(a[1]=s,a[0]=s+=i):(a[0]=0,a[1]=i)}var zL=is,HL=Gx,VL=wi;function qL(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],s=zL(e,o);n(s,o)&&HL(i,VL(o,e),s)}return i}var YL=qL;function GL(e,t){return e!=null&&t in Object(e)}var ZL=GL,KL=wi,XL=Tu,JL=cn,QL=Su,eU=Xh,tU=Ti;function nU(e,t,n){t=KL(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=tU(t[r]);if(!(i=e!=null&&n(e,o)))break;e=e[o]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&eU(a)&&QL(o,a)&&(JL(e)||XL(e)))}var rU=nU,aU=ZL,iU=rU;function oU(e,t){return e!=null&&iU(e,t,aU)}var Z2=oU,sU=YL,cU=Z2;function uU(e,t){return sU(e,t,function(n,r){return cU(e,r)})}var lU=uU;function dU(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var Np=dU,J0=gi,fU=Tu,hU=cn,Q0=J0?J0.isConcatSpreadable:void 0;function pU(e){return hU(e)||fU(e)||!!(Q0&&e&&e[Q0])}var mU=pU,gU=Np,vU=mU;function K2(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=vU),a||(a=[]);++i<o;){var s=e[i];t>0&&n(s)?t>1?K2(s,t-1,n,r,a):gU(a,s):r||(a[a.length]=s)}return a}var X2=K2,yU=X2;function bU(e){var t=e==null?0:e.length;return t?yU(e,1):[]}var xU=bU,_U=xU,wU=Wx,TU=zx;function CU(e){return TU(wU(e,void 0,_U),e+"")}var J2=CU,kU=lU,SU=J2,OU=SU(function(e,t){return e==null?{}:kU(e,t)}),EU=OU;const $U=Tt(EU);function MU(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 RU=MU,AU=Mp,jU=RU,PU=Rp,DU=1,IU=2;function NU(e,t,n,r,a,i){var o=n&DU,s=e.length,u=t.length;if(s!=u&&!(o&&u>s))return!1;var c=i.get(e),l=i.get(t);if(c&&l)return c==t&&l==e;var d=-1,f=!0,p=n&IU?new AU:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var m=e[d],g=t[d];if(r)var v=o?r(g,m,d,t,e,i):r(m,g,d,e,t,i);if(v!==void 0){if(v)continue;f=!1;break}if(p){if(!jU(t,function(x,w){if(!PU(p,w)&&(m===x||a(m,x,n,r,i)))return p.push(w)})){f=!1;break}}else if(!(m===g||a(m,g,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var Q2=NU;function FU(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var LU=FU;function UU(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Fp=UU,ev=gi,tv=Rx,BU=ns,WU=Q2,zU=LU,HU=Fp,VU=1,qU=2,YU="[object Boolean]",GU="[object Date]",ZU="[object Error]",KU="[object Map]",XU="[object Number]",JU="[object RegExp]",QU="[object Set]",eB="[object String]",tB="[object Symbol]",nB="[object ArrayBuffer]",rB="[object DataView]",nv=ev?ev.prototype:void 0,sd=nv?nv.valueOf:void 0;function aB(e,t,n,r,a,i,o){switch(n){case rB:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case nB:return!(e.byteLength!=t.byteLength||!i(new tv(e),new tv(t)));case YU:case GU:case XU:return BU(+e,+t);case ZU:return e.name==t.name&&e.message==t.message;case JU:case eB:return e==t+"";case KU:var s=zU;case QU:var u=r&VU;if(s||(s=HU),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;r|=qU,o.set(e,t);var l=WU(s(e),s(t),r,a,i,o);return o.delete(e),l;case tB:if(sd)return sd.call(e)==sd.call(t)}return!1}var iB=aB,oB=Np,sB=cn;function cB(e,t,n){var r=t(e);return sB(e)?r:oB(r,n(e))}var e_=cB;function uB(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}var t_=uB;function lB(){return[]}var n_=lB,dB=t_,fB=n_,hB=Object.prototype,pB=hB.propertyIsEnumerable,rv=Object.getOwnPropertySymbols,mB=rv?function(e){return e==null?[]:(e=Object(e),dB(rv(e),function(t){return pB.call(e,t)}))}:fB,Lp=mB,gB=Px,vB=gB(Object.keys,Object),yB=vB,bB=Kh,xB=yB,_B=Object.prototype,wB=_B.hasOwnProperty;function TB(e){if(!bB(e))return xB(e);var t=[];for(var n in Object(e))wB.call(e,n)&&n!="constructor"&&t.push(n);return t}var CB=TB,kB=Ux,SB=CB,OB=xi;function EB(e){return OB(e)?kB(e):SB(e)}var ss=EB,$B=e_,MB=Lp,RB=ss;function AB(e){return $B(e,RB,MB)}var r_=AB,av=r_,jB=1,PB=Object.prototype,DB=PB.hasOwnProperty;function IB(e,t,n,r,a,i){var o=n&jB,s=av(e),u=s.length,c=av(t),l=c.length;if(u!=l&&!o)return!1;for(var d=u;d--;){var f=s[d];if(!(o?f in t:DB.call(t,f)))return!1}var p=i.get(e),m=i.get(t);if(p&&m)return p==t&&m==e;var g=!0;i.set(e,t),i.set(t,e);for(var v=o;++d<u;){f=s[d];var x=e[f],w=t[f];if(r)var b=o?r(w,x,f,t,e,i):r(x,w,f,e,t,i);if(!(b===void 0?x===w||a(x,w,n,r,i):b)){g=!1;break}v||(v=f=="constructor")}if(g&&!v){var T=e.constructor,_=t.constructor;T!=_&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof _=="function"&&_ instanceof _)&&(g=!1)}return i.delete(e),i.delete(t),g}var NB=IB,FB=_a,LB=Qn,UB=FB(LB,"DataView"),BB=UB,WB=_a,zB=Qn,HB=WB(zB,"Promise"),VB=HB,qB=_a,YB=Qn,GB=qB(YB,"Set"),a_=GB,ZB=_a,KB=Qn,XB=ZB(KB,"WeakMap"),JB=XB,Cf=BB,kf=Vh,Sf=VB,Of=a_,Ef=JB,i_=zr,ki=Sx,iv="[object Map]",QB="[object Object]",ov="[object Promise]",sv="[object Set]",cv="[object WeakMap]",uv="[object DataView]",eW=ki(Cf),tW=ki(kf),nW=ki(Sf),rW=ki(Of),aW=ki(Ef),Gr=i_;(Cf&&Gr(new Cf(new ArrayBuffer(1)))!=uv||kf&&Gr(new kf)!=iv||Sf&&Gr(Sf.resolve())!=ov||Of&&Gr(new Of)!=sv||Ef&&Gr(new Ef)!=cv)&&(Gr=function(e){var t=i_(e),n=t==QB?e.constructor:void 0,r=n?ki(n):"";if(r)switch(r){case eW:return uv;case tW:return iv;case nW:return ov;case rW:return sv;case aW:return cv}return t});var hl=Gr,cd=wu,iW=Q2,oW=iB,sW=NB,lv=hl,dv=cn,fv=Cu,cW=ep,uW=1,hv="[object Arguments]",pv="[object Array]",Ss="[object Object]",lW=Object.prototype,mv=lW.hasOwnProperty;function dW(e,t,n,r,a,i){var o=dv(e),s=dv(t),u=o?pv:lv(e),c=s?pv:lv(t);u=u==hv?Ss:u,c=c==hv?Ss:c;var l=u==Ss,d=c==Ss,f=u==c;if(f&&fv(e)){if(!fv(t))return!1;o=!0,l=!1}if(f&&!l)return i||(i=new cd),o||cW(e)?iW(e,t,n,r,a,i):oW(e,t,u,n,r,a,i);if(!(n&uW)){var p=l&&mv.call(e,"__wrapped__"),m=d&&mv.call(t,"__wrapped__");if(p||m){var g=p?e.value():e,v=m?t.value():t;return i||(i=new cd),a(g,v,n,r,i)}}return f?(i||(i=new cd),sW(e,t,n,r,a,i)):!1}var fW=dW,hW=fW,gv=Un;function o_(e,t,n,r,a){return e===t?!0:e==null||t==null||!gv(e)&&!gv(t)?e!==e&&t!==t:hW(e,t,n,r,o_,a)}var Up=o_,pW=Up;function mW(e,t){return pW(e,t)}var gW=mW;const vW=Tt(gW);var yW={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 In(){return In=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},In.apply(this,arguments)}function Bp(e,t){if(e==null)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var bW=["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"],xW=function(e,t){return In({},t,e)},_W=function(e,t){var n=Uj({},e,t);return bW.forEach(function(r){Ki(n,r,xW(pr(n,r),n.text))}),n},s_=h.createContext(),c_=function(e){var t=e.children,n=e.animate,r=n===void 0||n,a=e.config,i=a===void 0?"default":a,o=h.useMemo(function(){var s=yD(i)?Bh[i]:i;return{animate:r,config:s}},[r,i]);return y.jsx(s_.Provider,{value:o,children:t})},vv={animate:O.bool,motionConfig:O.oneOfType([O.oneOf(Object.keys(Bh)),O.shape({mass:O.number,tension:O.number,friction:O.number,clamp:O.bool,precision:O.number,velocity:O.number,duration:O.number,easing:O.func})])};c_.propTypes={children:O.node.isRequired,animate:vv.animate,config:vv.motionConfig};var un=function(){return h.useContext(s_)},wW=function(e){var t=un(),n=t.animate,r=t.config,a=function(s){var u=h.useRef();return h.useEffect(function(){u.current=s},[s]),u.current}(e),i=h.useMemo(function(){return Qx(a,e)},[a,e]),o=vr({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return Fr(o,i)},TW={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:ye(Nu),PRGn:ye(Fu),PiYG:ye(Lu),PuOr:ye(Uu),RdBu:ye(Bu),RdGy:ye(Wu),RdYlBu:ye(zu),RdYlGn:ye(Hu),spectral:ye(Vu),blues:ye(al),greens:ye(il),greys:ye(ol),oranges:ye(ul),purples:ye(sl),reds:ye(cl),BuGn:ye(qu),BuPu:ye(Yu),GnBu:ye(Gu),OrRd:ye(Zu),PuBuGn:ye(Ku),PuBu:ye(Xu),PuRd:ye(Ju),RdPu:ye(Qu),YlGnBu:ye(el),YlGn:ye(tl),YlOrBr:ye(nl),YlOrRd:ye(rl)},CW=Object.keys(TW);ye(Nu),ye(Fu),ye(Lu),ye(Uu),ye(Bu),ye(Wu),ye(zu),ye(Hu),ye(Vu),ye(al),ye(il),ye(ol),ye(ul),ye(sl),ye(cl),ye(qu),ye(Yu),ye(Gu),ye(Zu),ye(Ku),ye(Xu),ye(Ju),ye(Qu),ye(el),ye(tl),ye(nl),ye(rl);O.oneOfType([O.oneOf(CW),O.func,O.arrayOf(O.string)]);var kW={basis:wL,basisClosed:TL,basisOpen:CL,bundle:kL,cardinal:SL,cardinalClosed:OL,cardinalOpen:EL,catmullRom:$L,catmullRomClosed:ML,catmullRomOpen:RL,linear:F2,linearClosed:AL,monotoneX:jL,monotoneY:PL,natural:DL,step:IL,stepAfter:FL,stepBefore:NL},Wp=Object.keys(kW);Wp.filter(function(e){return e.endsWith("Closed")});P2(Wp,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");P2(Wp,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");O.shape({top:O.number,right:O.number,bottom:O.number,left:O.number}).isRequired;var SW=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];O.oneOf(SW);Jr($p);var OW={top:0,right:0,bottom:0,left:0},zp=function(e,t,n){return n===void 0&&(n={}),h.useMemo(function(){var r=In({},OW,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])},u_=function(){var e=h.useRef(null),t=h.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],a=h.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(i){var o=i[0];return r(o.contentRect)})})[0];return h.useEffect(function(){return e.current&&a!==null&&a.observe(e.current),function(){a!==null&&a.disconnect()}},[]),[e,n]},EW=function(e){return h.useMemo(function(){return _W(yW,e)},[e])},$W=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?Iu(e.slice("5")):os(e):function(t){return""+t}},pl=function(e){return h.useMemo(function(){return $W(e)},[e])},l_=h.createContext(),MW={},d_=function(e){var t=e.theme,n=t===void 0?MW:t,r=e.children,a=EW(n);return y.jsx(l_.Provider,{value:a,children:r})};d_.propTypes={children:O.node.isRequired,theme:O.object};var lt=function(){return h.useContext(l_)},RW=["outlineWidth","outlineColor","outlineOpacity"],Hp=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,Bp(e,RW)},f_=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?h.cloneElement(r,{},t):t};f_.propTypes={children:O.node.isRequired,condition:O.bool.isRequired,wrapper:O.element.isRequired};var AW={position:"relative"},ml=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,a=r===void 0||r,i=e.isInteractive,o=i===void 0||i,s=e.animate,u=e.motionConfig,c=h.useRef(null);return y.jsx(d_,{theme:n,children:y.jsx(c_,{animate:s,config:u,children:y.jsx(w8,{container:c,children:y.jsxs(f_,{condition:a,wrapper:y.jsx("div",{style:AW,ref:c}),children:[t,o&&y.jsx(_8,{})]})})})})};ml.propTypes={children:O.element.isRequired,isInteractive:O.bool,renderWrapper:O.bool,theme:O.object,animate:O.bool,motionConfig:O.string};O.func.isRequired,O.bool,O.bool,O.object.isRequired,O.bool.isRequired,O.string;var gl=function(e){var t=e.children,n=u_(),r=n[0],a=n[1],i=a.width>0&&a.height>0;return y.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:i&&t({width:a.width,height:a.height})})};gl.propTypes={children:O.func.isRequired};var jW=["id","colors"],h_=function(e){var t=e.id,n=e.colors,r=Bp(e,jW);return y.jsx("linearGradient",In({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(a){var i=a.offset,o=a.color,s=a.opacity;return y.jsx("stop",{offset:i+"%",stopColor:o,stopOpacity:s!==void 0?s:1},i)})}))};h_.propTypes={id:O.string.isRequired,colors:O.arrayOf(O.shape({offset:O.number.isRequired,color:O.string.isRequired,opacity:O.number})).isRequired,gradientTransform:O.string};var p_={linearGradient:h_},zi={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},$f=h.memo(function(e){var t=e.id,n=e.background,r=n===void 0?zi.background:n,a=e.color,i=a===void 0?zi.color:a,o=e.size,s=o===void 0?zi.size:o,u=e.padding,c=u===void 0?zi.padding:u,l=e.stagger,d=l===void 0?zi.stagger:l,f=s+c,p=s/2,m=c/2;return d===!0&&(f=2*s+2*c),y.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:f,height:f,fill:r}),y.jsx("circle",{cx:m+p,cy:m+p,r:p,fill:i}),d&&y.jsx("circle",{cx:1.5*c+s+p,cy:1.5*c+s+p,r:p,fill:i})]})});$f.displayName="PatternDots",$f.propTypes={id:O.string.isRequired,color:O.string.isRequired,background:O.string.isRequired,size:O.number.isRequired,padding:O.number.isRequired,stagger:O.bool.isRequired};var kn=function(e){return e*Math.PI/180},vl=function(e){return 180*e/Math.PI},PW=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},oa=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},DW=function(e){var t=e%360;return t<0&&(t+=360),t},IW={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"}}},Hi={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},Mf=h.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Hi.spacing:n,a=e.rotation,i=a===void 0?Hi.rotation:a,o=e.background,s=o===void 0?Hi.background:o,u=e.color,c=u===void 0?Hi.color:u,l=e.lineWidth,d=l===void 0?Hi.lineWidth:l,f=Math.round(i)%360,p=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var m,g=p,v=p;return f===0?m=`
254
+ M 0 0 L `+g+` 0
255
+ M 0 `+v+" L "+g+" "+v+`
256
+ `:f===90?m=`
257
+ M 0 0 L 0 `+v+`
258
+ M `+g+" 0 L "+g+" "+v+`
259
+ `:(g=Math.abs(p/Math.sin(kn(f))),v=p/Math.sin(kn(90-f)),m=f>0?`
260
+ M 0 `+-v+" L "+2*g+" "+v+`
261
+ M `+-g+" "+-v+" L "+g+" "+v+`
262
+ M `+-g+" 0 L "+g+" "+2*v+`
263
263
  `:`
264
- M `+-v+" "+m+" L "+v+" "+-m+`
265
- M `+-v+" "+2*m+" L "+2*v+" "+-m+`
266
- M 0 `+2*m+" L "+2*v+` 0
267
- `),y.jsxs("pattern",{id:t,width:v,height:m,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:v,height:m,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),y.jsx("path",{d:g,strokeWidth:d,stroke:u,strokeLinecap:"square"})]})});Mf.displayName="PatternLines",Mf.propTypes={id:O.string.isRequired,spacing:O.number.isRequired,rotation:O.number.isRequired,background:O.string.isRequired,color:O.string.isRequired,lineWidth:O.number.isRequired};var Vi={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Rf=h.memo(function(e){var t=e.id,n=e.color,r=n===void 0?Vi.color:n,a=e.background,i=a===void 0?Vi.background:a,o=e.size,s=o===void 0?Vi.size:o,c=e.padding,u=c===void 0?Vi.padding:c,l=e.stagger,d=l===void 0?Vi.stagger:l,f=s+u,p=u/2;return d===!0&&(f=2*s+2*u),y.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:f,height:f,fill:i}),y.jsx("rect",{x:p,y:p,width:s,height:s,fill:r}),d&&y.jsx("rect",{x:1.5*u+s,y:1.5*u+s,width:s,height:s,fill:r})]})});Rf.displayName="PatternSquares",Rf.propTypes={id:O.string.isRequired,color:O.string.isRequired,background:O.string.isRequired,size:O.number.isRequired,padding:O.number.isRequired,stagger:O.bool.isRequired};var m_={patternDots:$f,patternLines:Mf,patternSquares:Rf},NW=["type"],Af=In({},p_,m_),g_=function(e){var t=e.defs;return!t||t.length<1?null:y.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,a=Bp(n,NW);return Af[r]?h.createElement(Af[r],In({key:a.id},a)):null})})};g_.propTypes={defs:O.arrayOf(O.shape({type:O.oneOf(Object.keys(Af)).isRequired,id:O.string.isRequired}))};var FW=h.memo(g_),Vp=function(e){var t=e.width,n=e.height,r=e.margin,a=e.defs,i=e.children,o=e.role,s=e.ariaLabel,c=e.ariaLabelledBy,u=e.ariaDescribedBy,l=e.isFocusable,d=lt();return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,role:o,"aria-label":s,"aria-labelledby":c,"aria-describedby":u,focusable:l,tabIndex:l?0:void 0,children:[y.jsx(FW,{defs:a}),y.jsx("rect",{width:t,height:n,fill:d.background}),y.jsx("g",{transform:"translate("+r.left+","+r.top+")",children:i})]})};Vp.propTypes={width:O.number.isRequired,height:O.number.isRequired,margin:O.shape({top:O.number.isRequired,left:O.number.isRequired}).isRequired,defs:O.array,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired,role:O.string,isFocusable:O.bool,ariaLabel:O.string,ariaLabelledBy:O.string,ariaDescribedBy:O.string};var v_=function(e){var t=e.size,n=e.color,r=e.borderWidth,a=e.borderColor;return y.jsx("circle",{r:t/2,fill:n,stroke:a,strokeWidth:r,style:{pointerEvents:"none"}})};v_.propTypes={size:O.number.isRequired,color:O.string.isRequired,borderWidth:O.number.isRequired,borderColor:O.string.isRequired};var LW=h.memo(v_),y_=function(e){var t=e.x,n=e.y,r=e.symbol,a=r===void 0?LW:r,i=e.size,o=e.datum,s=e.color,c=e.borderWidth,u=e.borderColor,l=e.label,d=e.labelTextAnchor,f=d===void 0?"middle":d,p=e.labelYOffset,g=p===void 0?-12:p,v=lt(),m=un(),x=m.animate,w=m.config,b=vr({transform:"translate("+t+", "+n+")",config:w,immediate:!x});return y.jsxs(Qe.g,{transform:b.transform,style:{pointerEvents:"none"},children:[h.createElement(a,{size:i,color:s,datum:o,borderWidth:c,borderColor:u}),l&&y.jsx("text",{textAnchor:f,y:g,style:Hp(v.dots.text),children:l})]})};y_.propTypes={x:O.number.isRequired,y:O.number.isRequired,datum:O.object.isRequired,size:O.number.isRequired,color:O.string.isRequired,borderWidth:O.number.isRequired,borderColor:O.string.isRequired,symbol:O.oneOfType([O.func,O.object]),label:O.oneOfType([O.string,O.number]),labelTextAnchor:O.oneOf(["start","middle","end"]),labelYOffset:O.number};h.memo(y_);var b_=function(e){var t=e.width,n=e.height,r=e.axis,a=e.scale,i=e.value,o=e.lineStyle,s=e.textStyle,c=e.legend,u=e.legendPosition,l=u===void 0?"top-right":u,d=e.legendOffsetX,f=d===void 0?14:d,p=e.legendOffsetY,g=p===void 0?14:p,v=e.legendOrientation,m=v===void 0?"horizontal":v,x=lt(),w=0,b=0,T=0,_=0;r==="y"?(T=a(i),b=t):(w=a(i),_=n);var C=null;if(c){var $=function(A){var D=A.axis,j=A.width,E=A.height,F=A.position,M=A.offsetX,R=A.offsetY,I=A.orientation,U=0,N=0,q=I==="vertical"?-90:0,z="start";if(D==="x")switch(F){case"top-left":U=-M,N=R,z="end";break;case"top":N=-R,z=I==="horizontal"?"middle":"start";break;case"top-right":U=M,N=R,z=I==="horizontal"?"start":"end";break;case"right":U=M,N=E/2,z=I==="horizontal"?"start":"middle";break;case"bottom-right":U=M,N=E-R,z="start";break;case"bottom":N=E+R,z=I==="horizontal"?"middle":"end";break;case"bottom-left":N=E-R,U=-M,z=I==="horizontal"?"end":"start";break;case"left":U=-M,N=E/2,z=I==="horizontal"?"end":"middle"}else switch(F){case"top-left":U=M,N=-R,z="start";break;case"top":U=j/2,N=-R,z=I==="horizontal"?"middle":"start";break;case"top-right":U=j-M,N=-R,z=I==="horizontal"?"end":"start";break;case"right":U=j+M,z=I==="horizontal"?"start":"middle";break;case"bottom-right":U=j-M,N=R,z="end";break;case"bottom":U=j/2,N=R,z=I==="horizontal"?"middle":"end";break;case"bottom-left":U=M,N=R,z=I==="horizontal"?"start":"end";break;case"left":U=-M,z=I==="horizontal"?"end":"middle"}return{x:U,y:N,rotation:q,textAnchor:z}}({axis:r,width:t,height:n,position:l,offsetX:f,offsetY:g,orientation:m});C=y.jsx("text",{transform:"translate("+$.x+", "+$.y+") rotate("+$.rotation+")",textAnchor:$.textAnchor,dominantBaseline:"central",style:s,children:c})}return y.jsxs("g",{transform:"translate("+w+", "+T+")",children:[y.jsx("line",{x1:0,x2:b,y1:0,y2:_,stroke:x.markers.lineColor,strokeWidth:x.markers.lineStrokeWidth,style:o}),C]})};b_.propTypes={width:O.number.isRequired,height:O.number.isRequired,axis:O.oneOf(["x","y"]).isRequired,scale:O.func.isRequired,value:O.oneOfType([O.number,O.string,O.instanceOf(Date)]).isRequired,lineStyle:O.object,textStyle:O.object,legend:O.string,legendPosition:O.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:O.number.isRequired,legendOffsetY:O.number.isRequired,legendOrientation:O.oneOf(["horizontal","vertical"]).isRequired};var UW=h.memo(b_),x_=function(e){var t=e.markers,n=e.width,r=e.height,a=e.xScale,i=e.yScale;return t&&t.length!==0?t.map(function(o,s){return y.jsx(UW,In({},o,{width:n,height:r,scale:o.axis==="y"?i:a}),s)}):null};x_.propTypes={width:O.number.isRequired,height:O.number.isRequired,xScale:O.func.isRequired,yScale:O.func.isRequired,markers:O.arrayOf(O.shape({axis:O.oneOf(["x","y"]).isRequired,value:O.oneOfType([O.number,O.string,O.instanceOf(Date)]).isRequired,lineStyle:O.object,textStyle:O.object}))};var BW=h.memo(x_),__=function(e){return kx(e)?e:function(t){return pr(t,e)}},sa=function(e){return h.useMemo(function(){return __(e)},[e])},WW=function(e,t,n,r,a,i){return e<=a&&a<=e+n&&t<=i&&i<=t+r},ud=function(e,t){var n,r="touches"in t?t.touches[0]:t,a=r.clientX,i=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[(a-o.left)*s,(i-o.top)*s]},zW=Object.keys(p_),HW=Object.keys(m_),VW=function(e,t,n){if(e==="*")return!0;if(kx(e))return e(t);if(Qh(e)){var r=n?pr(t,n):t;return vW($U(r,Object.keys(e)),e)}return!1},w_=function(e,t,n,r){var a=r===void 0?{}:r,i=a.dataKey,o=a.colorKey,s=o===void 0?"color":o,c=a.targetKey,u=c===void 0?"fill":c,l=[],d={};return e.length&&t.length&&(l=[].concat(e),t.forEach(function(f){for(var p=function(){var v=n[g],m=v.id,x=v.match;if(VW(x,f,i)){var w=e.find(function(j){return j.id===m});if(w){if(HW.includes(w.type))if(w.background==="inherit"||w.color==="inherit"){var b=pr(f,s),T=w.background,_=w.color,C=m;w.background==="inherit"&&(C=C+".bg."+b,T=b),w.color==="inherit"&&(C=C+".fg."+b,_=b),Ki(f,u,"url(#"+C+")"),d[C]||(l.push(In({},w,{id:C,background:T,color:_})),d[C]=1)}else Ki(f,u,"url(#"+m+")");else if(zW.includes(w.type))if(w.colors.map(function(j){return j.color}).includes("inherit")){var $=pr(f,s),A=m,D=In({},w,{colors:w.colors.map(function(j,E){return j.color!=="inherit"?j:(A=A+"."+E+"."+$,In({},j,{color:j.color==="inherit"?$:j.color}))})});D.id=A,Ki(f,u,"url(#"+A+")"),d[A]||(l.push(D),d[A]=1)}else Ki(f,u,"url(#"+m+")")}return"break"}},g=0;g<n.length&&p()!=="break";g++);})),l};function Mc(){return Mc=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},Mc.apply(this,arguments)}function yv(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 qW(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(a,i){if(a){if(typeof a=="string")return yv(a,i);var o=Object.prototype.toString.call(a).slice(8,-1);return o==="Object"&&a.constructor&&(o=a.constructor.name),o==="Map"||o==="Set"?Array.from(a):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?yv(a,i):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 T_={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:C2,accent:k2,dark2:S2,paired:O2,pastel1:E2,pastel2:$2,set1:M2,set2:R2,set3:$p,tableau10:PN},YW=Object.keys(T_),C_={brown_blueGreen:Nu,purpleRed_green:Fu,pink_yellowGreen:Lu,purple_orange:Uu,red_blue:Bu,red_grey:Wu,red_yellow_blue:zu,red_yellow_green:Hu,spectral:Vu},GW=Object.keys(C_),ZW={brown_blueGreen:DN,purpleRed_green:IN,pink_yellowGreen:NN,purple_orange:FN,red_blue:LN,red_grey:UN,red_yellow_blue:BN,red_yellow_green:WN,spectral:zN},k_={blues:al,greens:il,greys:ol,oranges:ul,purples:sl,reds:cl,blue_green:qu,blue_purple:Yu,green_blue:Gu,orange_red:Zu,purple_blue_green:Ku,purple_blue:Xu,purple_red:Ju,red_purple:Qu,yellow_green_blue:el,yellow_green:tl,yellow_orange_brown:nl,yellow_orange_red:rl},KW=Object.keys(k_),XW={blues:nF,greens:rF,greys:aF,oranges:sF,purples:iF,reds:oF,turbo:gF,viridis:vF,inferno:bF,magma:yF,plasma:xF,cividis:cF,warm:lF,cool:dF,cubehelixDefault:uF,blue_green:HN,blue_purple:VN,green_blue:qN,orange_red:YN,purple_blue_green:GN,purple_blue:ZN,purple_red:KN,red_purple:XN,yellow_green_blue:JN,yellow_green:QN,yellow_orange_brown:eF,yellow_orange_red:tF},ld=Mc({},T_,C_,k_),JW=function(e){return YW.includes(e)},QW=function(e){return GW.includes(e)},ez=function(e){return KW.includes(e)},tz={rainbow:fF,sinebow:mF};Mc({},ZW,XW,tz);var nz=function(e,t){if(typeof e=="function")return e;if(Qh(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=pr(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 pr(c,e.from)};if(Array.isArray(e.modifiers)){for(var a,i=[],o=function(){var c=a.value,u=c[0],l=c[1];if(u==="brighter")i.push(function(d){return d.brighter(l)});else if(u==="darker")i.push(function(d){return d.darker(l)});else{if(u!=="opacity")throw new Error("Invalid color modifier: '"+u+"', must be one of: 'brighter', 'darker', 'opacity'");i.push(function(d){return d.opacity=l,d})}},s=qW(e.modifiers);!(a=s()).done;)o();return i.length===0?r:function(c){return i.reduce(function(u,l){return l(u)},ri(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}},si=function(e,t){return h.useMemo(function(){return nz(e,t)},[e,t])};O.oneOfType([O.string,O.func,O.shape({theme:O.string.isRequired}),O.shape({from:O.string.isRequired,modifiers:O.arrayOf(O.array)})]);var rz=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(d){return pr(d,t)};if(Array.isArray(e)){var r=Jr(e),a=function(d){return r(n(d))};return a.scale=r,a}if(Qh(e)){if(function(d){return d.datum!==void 0}(e))return function(d){return pr(d,e.datum)};if(function(d){return d.scheme!==void 0}(e)){if(JW(e.scheme)){var i=Jr(ld[e.scheme]),o=function(d){return i(n(d))};return o.scale=i,o}if(QW(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=Jr(ld[e.scheme][e.size||11]),c=function(d){return s(n(d))};return c.scale=s,c}if(ez(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 u=Jr(ld[e.scheme][e.size||9]),l=function(d){return u(n(d))};return l.scale=u,l}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},S_=function(e,t){return h.useMemo(function(){return rz(e,t)},[e,t])};function ot(){return ot=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},ot.apply(this,arguments)}var az={pointerEvents:"none"},iz=function(e){var t=e.label,n=e.style,r=lt();return y.jsx(Qe.g,{transform:n.transform,opacity:n.progress,style:az,children:y.jsx(Qe.text,{textAnchor:"middle",dominantBaseline:"central",style:ot({},r.labels.text,{fill:n.textColor}),children:t})})},O_=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},oz=function(e,t){return e.filter(function(n){return Math.abs(vl(n.arc.endAngle-n.arc.startAngle))>=t})},sz={startAngle:{enter:function(e){return ot({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return ot({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return ot({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return ot({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return ot({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return ot({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return ot({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return ot({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return ot({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return ot({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return ot({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return ot({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return ot({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return ot({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return ot({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return ot({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},E_=function(e,t){return h.useMemo(function(){var n=sz[e];return{enter:function(r){return ot({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return ot({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return ot({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},cz=function(e,t){var n=PW(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return oa(n,r)},uz=function(e){return function(t,n,r,a){return Fr([t,n,r,a],function(i,o,s,c){var u=cz({startAngle:i,endAngle:o,innerRadius:s,outerRadius:c},e);return"translate("+u.x+","+u.y+")"})}},lz=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var a=un(),i=a.animate,o=a.config,s=E_(n,r);return{transition:xa(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:!i}),interpolate:uz(t)}},dz=function(e){var t=e.center,n=e.data,r=e.transitionMode,a=e.label,i=e.radiusOffset,o=e.skipAngle,s=e.textColor,c=e.component,u=c===void 0?iz:c,l=sa(a),d=lt(),f=si(s,d),p=h.useMemo(function(){return n.filter(function(w){return Math.abs(vl(w.arc.endAngle-w.arc.startAngle))>=o})},[n,o]),g=lz(p,i,r),v=g.transition,m=g.interpolate,x=u;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(w,b){return h.createElement(x,{key:b.id,datum:b,label:l(b),style:ot({},w,{transform:m(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius),textColor:f(b)})})})})},fz=function(e){var t=e.label,n=e.style,r=lt();return y.jsxs(Qe.g,{opacity:n.opacity,children:[y.jsx(Qe.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),y.jsx(Qe.text,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:ot({},r.labels.text,{fill:n.textColor}),children:t})]})},hz=function(e){var t=O_(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},$_=function(e,t,n,r){var a,i,o=O_(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=oa(o,e.outerRadius+t),c=oa(o,e.outerRadius+t+n);return o<Math.PI/2||o>1.5*Math.PI?(a="after",i={x:c.x+r,y:c.y}):(a="before",i={x:c.x-r,y:c.y}),{side:a,points:[s,c,i]}},pz=yL().x(function(e){return e.x}).y(function(e){return e.y}),mz=function(e,t,n,r,a,i,o){return Fr([e,t,n,r,a,i,o],function(s,c,u,l,d,f,p){var g=$_({startAngle:s,endAngle:c,innerRadius:u,outerRadius:l},d,f,p).points;return pz(g)})},gz=function(e,t,n,r){return Fr([e,t,n,r],function(a,i,o,s){return hz({startAngle:a,endAngle:i,innerRadius:o,outerRadius:s})})},vz=function(e,t,n,r,a,i,o,s){return Fr([e,t,n,r,a,i,o,s],function(c,u,l,d,f,p,g,v){var m=$_({startAngle:c,endAngle:u,innerRadius:l,outerRadius:d},f,p,g),x=m.points,w=m.side,b=x[2];return w==="before"?b.x-=v:b.x+=v,"translate("+b.x+","+b.y+")"})},yz=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,a=e.diagonalLength,i=e.straightLength,o=e.skipAngle,s=o===void 0?0:o,c=e.textOffset,u=e.linkColor,l=e.textColor,d=un(),f=d.animate,p=d.config,g=lt(),v=si(u,g),m=si(l,g),x=function(b,T){return h.useMemo(function(){return oz(b,T)},[b,T])}(t,s),w=function(b){var T=b.offset,_=b.diagonalLength,C=b.straightLength,$=b.textOffset,A=b.getLinkColor,D=b.getTextColor;return h.useMemo(function(){return{enter:function(j){return{startAngle:j.arc.startAngle,endAngle:j.arc.endAngle,innerRadius:j.arc.innerRadius,outerRadius:j.arc.outerRadius,offset:T,diagonalLength:0,straightLength:0,textOffset:$,linkColor:A(j),textColor:D(j),opacity:0}},update:function(j){return{startAngle:j.arc.startAngle,endAngle:j.arc.endAngle,innerRadius:j.arc.innerRadius,outerRadius:j.arc.outerRadius,offset:T,diagonalLength:_,straightLength:C,textOffset:$,linkColor:A(j),textColor:D(j),opacity:1}},leave:function(j){return{startAngle:j.arc.startAngle,endAngle:j.arc.endAngle,innerRadius:j.arc.innerRadius,outerRadius:j.arc.outerRadius,offset:T,diagonalLength:0,straightLength:0,textOffset:$,linkColor:A(j),textColor:D(j),opacity:0}}}},[_,C,$,A,D,T])}({offset:r,diagonalLength:a,straightLength:i,textOffset:c,getLinkColor:v,getTextColor:m});return{transition:xa(x,{keys:function(b){return b.id},initial:w.update,from:w.enter,enter:w.update,update:w.update,leave:w.leave,config:p,immediate:!f}),interpolateLink:mz,interpolateTextAnchor:gz,interpolateTextPosition:vz}},bz=function(e){var t=e.center,n=e.data,r=e.label,a=e.skipAngle,i=e.offset,o=e.diagonalLength,s=e.straightLength,c=e.strokeWidth,u=e.textOffset,l=e.textColor,d=e.linkColor,f=e.component,p=f===void 0?fz:f,g=sa(r),v=yz({data:n,skipAngle:a,offset:i,diagonalLength:o,straightLength:s,textOffset:u,linkColor:d,textColor:l}),m=v.transition,x=v.interpolateLink,w=v.interpolateTextAnchor,b=v.interpolateTextPosition,T=p;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:m(function(_,C){return h.createElement(T,{key:C.id,datum:C,label:g(C),style:ot({},_,{thickness:c,path:x(_.startAngle,_.endAngle,_.innerRadius,_.outerRadius,_.offset,_.diagonalLength,_.straightLength),textAnchor:w(_.startAngle,_.endAngle,_.innerRadius,_.outerRadius),textPosition:b(_.startAngle,_.endAngle,_.innerRadius,_.outerRadius,_.offset,_.diagonalLength,_.straightLength,_.textOffset)})})})})},xz=function(e){var t=e.datum,n=e.style,r=e.onClick,a=e.onMouseEnter,i=e.onMouseMove,o=e.onMouseLeave,s=h.useCallback(function(d){return r==null?void 0:r(t,d)},[r,t]),c=h.useCallback(function(d){return a==null?void 0:a(t,d)},[a,t]),u=h.useCallback(function(d){return i==null?void 0:i(t,d)},[i,t]),l=h.useCallback(function(d){return o==null?void 0:o(t,d)},[o,t]);return y.jsx(Qe.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?s:void 0,onMouseEnter:a?c:void 0,onMouseMove:i?u:void 0,onMouseLeave:o?l:void 0})},_z=function(e,t,n,r,a){return Fr([e,t,n,r],function(i,o,s,c){return a({startAngle:i,endAngle:o,innerRadius:Math.max(0,s),outerRadius:Math.max(0,c)})})},wz=function(e,t,n){t===void 0&&(t="innerRadius");var r=un(),a=r.animate,i=r.config,o=E_(t,n);return{transition:xa(e,{keys:function(s){return s.id},initial:o.update,from:o.enter,enter:o.update,update:o.update,leave:o.leave,config:i,immediate:!a}),interpolate:_z}},Tz=function(e){var t=e.center,n=e.data,r=e.arcGenerator,a=e.borderWidth,i=e.borderColor,o=e.onClick,s=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,l=e.transitionMode,d=e.component,f=d===void 0?xz:d,p=lt(),g=si(i,p),v=wz(n,l,{enter:function(b){return{opacity:0,color:b.color,borderColor:g(b)}},update:function(b){return{opacity:1,color:b.color,borderColor:g(b)}},leave:function(b){return{opacity:0,color:b.color,borderColor:g(b)}}}),m=v.transition,x=v.interpolate,w=f;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:m(function(b,T){return h.createElement(w,{key:T.id,datum:T,style:ot({},b,{borderWidth:a,path:x(b.startAngle,b.endAngle,b.innerRadius,b.outerRadius,r)}),onClick:o,onMouseEnter:s,onMouseMove:c,onMouseLeave:u})})})},Cz=function(e,t,n,r,a,i){i===void 0&&(i=!0);var o=[],s=oa(kn(r),n);o.push([s.x,s.y]);var c=oa(kn(a),n);o.push([c.x,c.y]);for(var u=Math.round(Math.min(r,a));u<=Math.round(Math.max(r,a));u++)if(u%90==0){var l=oa(kn(u),n);o.push([l.x,l.y])}o=o.map(function(m){var x=m[0],w=m[1];return[e+x,t+w]}),i&&o.push([e,t]);var d=o.map(function(m){return m[0]}),f=o.map(function(m){return m[1]}),p=Math.min.apply(Math,d),g=Math.max.apply(Math,d),v=Math.min.apply(Math,f);return{points:o,x:p,y:v,width:g-p,height:Math.max.apply(Math,f)-v}},kz=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,a=t.padAngle,i=a===void 0?0:a;return h.useMemo(function(){return mL().innerRadius(function(o){return o.innerRadius}).outerRadius(function(o){return o.outerRadius}).cornerRadius(r).padAngle(i)},[r,i])},Sz=function(e){var t=e.x,n=e.y,r=e.size,a=e.fill,i=e.opacity,o=i===void 0?1:i,s=e.borderWidth,c=s===void 0?0:s,u=e.borderColor;return y.jsx("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:a,opacity:o,strokeWidth:c,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})},Oz=function(e){var t=e.x,n=e.y,r=e.size,a=e.fill,i=e.opacity,o=i===void 0?1:i,s=e.borderWidth,c=s===void 0?0:s,u=e.borderColor;return y.jsx("g",{transform:"translate("+t+","+n+")",children:y.jsx("path",{d:`
264
+ M `+-g+" "+v+" L "+g+" "+-v+`
265
+ M `+-g+" "+2*v+" L "+2*g+" "+-v+`
266
+ M 0 `+2*v+" L "+2*g+` 0
267
+ `),y.jsxs("pattern",{id:t,width:g,height:v,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:g,height:v,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),y.jsx("path",{d:m,strokeWidth:d,stroke:c,strokeLinecap:"square"})]})});Mf.displayName="PatternLines",Mf.propTypes={id:O.string.isRequired,spacing:O.number.isRequired,rotation:O.number.isRequired,background:O.string.isRequired,color:O.string.isRequired,lineWidth:O.number.isRequired};var Vi={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Rf=h.memo(function(e){var t=e.id,n=e.color,r=n===void 0?Vi.color:n,a=e.background,i=a===void 0?Vi.background:a,o=e.size,s=o===void 0?Vi.size:o,u=e.padding,c=u===void 0?Vi.padding:u,l=e.stagger,d=l===void 0?Vi.stagger:l,f=s+c,p=c/2;return d===!0&&(f=2*s+2*c),y.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:f,height:f,fill:i}),y.jsx("rect",{x:p,y:p,width:s,height:s,fill:r}),d&&y.jsx("rect",{x:1.5*c+s,y:1.5*c+s,width:s,height:s,fill:r})]})});Rf.displayName="PatternSquares",Rf.propTypes={id:O.string.isRequired,color:O.string.isRequired,background:O.string.isRequired,size:O.number.isRequired,padding:O.number.isRequired,stagger:O.bool.isRequired};var m_={patternDots:$f,patternLines:Mf,patternSquares:Rf},NW=["type"],Af=In({},p_,m_),g_=function(e){var t=e.defs;return!t||t.length<1?null:y.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,a=Bp(n,NW);return Af[r]?h.createElement(Af[r],In({key:a.id},a)):null})})};g_.propTypes={defs:O.arrayOf(O.shape({type:O.oneOf(Object.keys(Af)).isRequired,id:O.string.isRequired}))};var FW=h.memo(g_),Vp=function(e){var t=e.width,n=e.height,r=e.margin,a=e.defs,i=e.children,o=e.role,s=e.ariaLabel,u=e.ariaLabelledBy,c=e.ariaDescribedBy,l=e.isFocusable,d=lt();return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,role:o,"aria-label":s,"aria-labelledby":u,"aria-describedby":c,focusable:l,tabIndex:l?0:void 0,children:[y.jsx(FW,{defs:a}),y.jsx("rect",{width:t,height:n,fill:d.background}),y.jsx("g",{transform:"translate("+r.left+","+r.top+")",children:i})]})};Vp.propTypes={width:O.number.isRequired,height:O.number.isRequired,margin:O.shape({top:O.number.isRequired,left:O.number.isRequired}).isRequired,defs:O.array,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired,role:O.string,isFocusable:O.bool,ariaLabel:O.string,ariaLabelledBy:O.string,ariaDescribedBy:O.string};var v_=function(e){var t=e.size,n=e.color,r=e.borderWidth,a=e.borderColor;return y.jsx("circle",{r:t/2,fill:n,stroke:a,strokeWidth:r,style:{pointerEvents:"none"}})};v_.propTypes={size:O.number.isRequired,color:O.string.isRequired,borderWidth:O.number.isRequired,borderColor:O.string.isRequired};var LW=h.memo(v_),y_=function(e){var t=e.x,n=e.y,r=e.symbol,a=r===void 0?LW:r,i=e.size,o=e.datum,s=e.color,u=e.borderWidth,c=e.borderColor,l=e.label,d=e.labelTextAnchor,f=d===void 0?"middle":d,p=e.labelYOffset,m=p===void 0?-12:p,g=lt(),v=un(),x=v.animate,w=v.config,b=vr({transform:"translate("+t+", "+n+")",config:w,immediate:!x});return y.jsxs(Qe.g,{transform:b.transform,style:{pointerEvents:"none"},children:[h.createElement(a,{size:i,color:s,datum:o,borderWidth:u,borderColor:c}),l&&y.jsx("text",{textAnchor:f,y:m,style:Hp(g.dots.text),children:l})]})};y_.propTypes={x:O.number.isRequired,y:O.number.isRequired,datum:O.object.isRequired,size:O.number.isRequired,color:O.string.isRequired,borderWidth:O.number.isRequired,borderColor:O.string.isRequired,symbol:O.oneOfType([O.func,O.object]),label:O.oneOfType([O.string,O.number]),labelTextAnchor:O.oneOf(["start","middle","end"]),labelYOffset:O.number};h.memo(y_);var b_=function(e){var t=e.width,n=e.height,r=e.axis,a=e.scale,i=e.value,o=e.lineStyle,s=e.textStyle,u=e.legend,c=e.legendPosition,l=c===void 0?"top-right":c,d=e.legendOffsetX,f=d===void 0?14:d,p=e.legendOffsetY,m=p===void 0?14:p,g=e.legendOrientation,v=g===void 0?"horizontal":g,x=lt(),w=0,b=0,T=0,_=0;r==="y"?(T=a(i),b=t):(w=a(i),_=n);var C=null;if(u){var $=function(A){var D=A.axis,j=A.width,E=A.height,F=A.position,M=A.offsetX,R=A.offsetY,I=A.orientation,U=0,N=0,q=I==="vertical"?-90:0,z="start";if(D==="x")switch(F){case"top-left":U=-M,N=R,z="end";break;case"top":N=-R,z=I==="horizontal"?"middle":"start";break;case"top-right":U=M,N=R,z=I==="horizontal"?"start":"end";break;case"right":U=M,N=E/2,z=I==="horizontal"?"start":"middle";break;case"bottom-right":U=M,N=E-R,z="start";break;case"bottom":N=E+R,z=I==="horizontal"?"middle":"end";break;case"bottom-left":N=E-R,U=-M,z=I==="horizontal"?"end":"start";break;case"left":U=-M,N=E/2,z=I==="horizontal"?"end":"middle"}else switch(F){case"top-left":U=M,N=-R,z="start";break;case"top":U=j/2,N=-R,z=I==="horizontal"?"middle":"start";break;case"top-right":U=j-M,N=-R,z=I==="horizontal"?"end":"start";break;case"right":U=j+M,z=I==="horizontal"?"start":"middle";break;case"bottom-right":U=j-M,N=R,z="end";break;case"bottom":U=j/2,N=R,z=I==="horizontal"?"middle":"end";break;case"bottom-left":U=M,N=R,z=I==="horizontal"?"start":"end";break;case"left":U=-M,z=I==="horizontal"?"end":"middle"}return{x:U,y:N,rotation:q,textAnchor:z}}({axis:r,width:t,height:n,position:l,offsetX:f,offsetY:m,orientation:v});C=y.jsx("text",{transform:"translate("+$.x+", "+$.y+") rotate("+$.rotation+")",textAnchor:$.textAnchor,dominantBaseline:"central",style:s,children:u})}return y.jsxs("g",{transform:"translate("+w+", "+T+")",children:[y.jsx("line",{x1:0,x2:b,y1:0,y2:_,stroke:x.markers.lineColor,strokeWidth:x.markers.lineStrokeWidth,style:o}),C]})};b_.propTypes={width:O.number.isRequired,height:O.number.isRequired,axis:O.oneOf(["x","y"]).isRequired,scale:O.func.isRequired,value:O.oneOfType([O.number,O.string,O.instanceOf(Date)]).isRequired,lineStyle:O.object,textStyle:O.object,legend:O.string,legendPosition:O.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:O.number.isRequired,legendOffsetY:O.number.isRequired,legendOrientation:O.oneOf(["horizontal","vertical"]).isRequired};var UW=h.memo(b_),x_=function(e){var t=e.markers,n=e.width,r=e.height,a=e.xScale,i=e.yScale;return t&&t.length!==0?t.map(function(o,s){return y.jsx(UW,In({},o,{width:n,height:r,scale:o.axis==="y"?i:a}),s)}):null};x_.propTypes={width:O.number.isRequired,height:O.number.isRequired,xScale:O.func.isRequired,yScale:O.func.isRequired,markers:O.arrayOf(O.shape({axis:O.oneOf(["x","y"]).isRequired,value:O.oneOfType([O.number,O.string,O.instanceOf(Date)]).isRequired,lineStyle:O.object,textStyle:O.object}))};var BW=h.memo(x_),__=function(e){return kx(e)?e:function(t){return pr(t,e)}},sa=function(e){return h.useMemo(function(){return __(e)},[e])},WW=function(e,t,n,r,a,i){return e<=a&&a<=e+n&&t<=i&&i<=t+r},ud=function(e,t){var n,r="touches"in t?t.touches[0]:t,a=r.clientX,i=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[(a-o.left)*s,(i-o.top)*s]},zW=Object.keys(p_),HW=Object.keys(m_),VW=function(e,t,n){if(e==="*")return!0;if(kx(e))return e(t);if(Qh(e)){var r=n?pr(t,n):t;return vW($U(r,Object.keys(e)),e)}return!1},w_=function(e,t,n,r){var a=r===void 0?{}:r,i=a.dataKey,o=a.colorKey,s=o===void 0?"color":o,u=a.targetKey,c=u===void 0?"fill":u,l=[],d={};return e.length&&t.length&&(l=[].concat(e),t.forEach(function(f){for(var p=function(){var g=n[m],v=g.id,x=g.match;if(VW(x,f,i)){var w=e.find(function(j){return j.id===v});if(w){if(HW.includes(w.type))if(w.background==="inherit"||w.color==="inherit"){var b=pr(f,s),T=w.background,_=w.color,C=v;w.background==="inherit"&&(C=C+".bg."+b,T=b),w.color==="inherit"&&(C=C+".fg."+b,_=b),Ki(f,c,"url(#"+C+")"),d[C]||(l.push(In({},w,{id:C,background:T,color:_})),d[C]=1)}else Ki(f,c,"url(#"+v+")");else if(zW.includes(w.type))if(w.colors.map(function(j){return j.color}).includes("inherit")){var $=pr(f,s),A=v,D=In({},w,{colors:w.colors.map(function(j,E){return j.color!=="inherit"?j:(A=A+"."+E+"."+$,In({},j,{color:j.color==="inherit"?$:j.color}))})});D.id=A,Ki(f,c,"url(#"+A+")"),d[A]||(l.push(D),d[A]=1)}else Ki(f,c,"url(#"+v+")")}return"break"}},m=0;m<n.length&&p()!=="break";m++);})),l};function Mc(){return Mc=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},Mc.apply(this,arguments)}function yv(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 qW(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(a,i){if(a){if(typeof a=="string")return yv(a,i);var o=Object.prototype.toString.call(a).slice(8,-1);return o==="Object"&&a.constructor&&(o=a.constructor.name),o==="Map"||o==="Set"?Array.from(a):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?yv(a,i):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 T_={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:C2,accent:k2,dark2:S2,paired:O2,pastel1:E2,pastel2:$2,set1:M2,set2:R2,set3:$p,tableau10:PN},YW=Object.keys(T_),C_={brown_blueGreen:Nu,purpleRed_green:Fu,pink_yellowGreen:Lu,purple_orange:Uu,red_blue:Bu,red_grey:Wu,red_yellow_blue:zu,red_yellow_green:Hu,spectral:Vu},GW=Object.keys(C_),ZW={brown_blueGreen:DN,purpleRed_green:IN,pink_yellowGreen:NN,purple_orange:FN,red_blue:LN,red_grey:UN,red_yellow_blue:BN,red_yellow_green:WN,spectral:zN},k_={blues:al,greens:il,greys:ol,oranges:ul,purples:sl,reds:cl,blue_green:qu,blue_purple:Yu,green_blue:Gu,orange_red:Zu,purple_blue_green:Ku,purple_blue:Xu,purple_red:Ju,red_purple:Qu,yellow_green_blue:el,yellow_green:tl,yellow_orange_brown:nl,yellow_orange_red:rl},KW=Object.keys(k_),XW={blues:nF,greens:rF,greys:aF,oranges:sF,purples:iF,reds:oF,turbo:gF,viridis:vF,inferno:bF,magma:yF,plasma:xF,cividis:cF,warm:lF,cool:dF,cubehelixDefault:uF,blue_green:HN,blue_purple:VN,green_blue:qN,orange_red:YN,purple_blue_green:GN,purple_blue:ZN,purple_red:KN,red_purple:XN,yellow_green_blue:JN,yellow_green:QN,yellow_orange_brown:eF,yellow_orange_red:tF},ld=Mc({},T_,C_,k_),JW=function(e){return YW.includes(e)},QW=function(e){return GW.includes(e)},ez=function(e){return KW.includes(e)},tz={rainbow:fF,sinebow:mF};Mc({},ZW,XW,tz);var nz=function(e,t){if(typeof e=="function")return e;if(Qh(e)){if(function(u){return u.theme!==void 0}(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=pr(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(u){return u.from!==void 0}(e)){var r=function(u){return pr(u,e.from)};if(Array.isArray(e.modifiers)){for(var a,i=[],o=function(){var u=a.value,c=u[0],l=u[1];if(c==="brighter")i.push(function(d){return d.brighter(l)});else if(c==="darker")i.push(function(d){return d.darker(l)});else{if(c!=="opacity")throw new Error("Invalid color modifier: '"+c+"', must be one of: 'brighter', 'darker', 'opacity'");i.push(function(d){return d.opacity=l,d})}},s=qW(e.modifiers);!(a=s()).done;)o();return i.length===0?r:function(u){return i.reduce(function(c,l){return l(c)},ri(r(u))).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}},si=function(e,t){return h.useMemo(function(){return nz(e,t)},[e,t])};O.oneOfType([O.string,O.func,O.shape({theme:O.string.isRequired}),O.shape({from:O.string.isRequired,modifiers:O.arrayOf(O.array)})]);var rz=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(d){return pr(d,t)};if(Array.isArray(e)){var r=Jr(e),a=function(d){return r(n(d))};return a.scale=r,a}if(Qh(e)){if(function(d){return d.datum!==void 0}(e))return function(d){return pr(d,e.datum)};if(function(d){return d.scheme!==void 0}(e)){if(JW(e.scheme)){var i=Jr(ld[e.scheme]),o=function(d){return i(n(d))};return o.scale=i,o}if(QW(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=Jr(ld[e.scheme][e.size||11]),u=function(d){return s(n(d))};return u.scale=s,u}if(ez(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 c=Jr(ld[e.scheme][e.size||9]),l=function(d){return c(n(d))};return l.scale=c,l}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},S_=function(e,t){return h.useMemo(function(){return rz(e,t)},[e,t])};function ot(){return ot=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},ot.apply(this,arguments)}var az={pointerEvents:"none"},iz=function(e){var t=e.label,n=e.style,r=lt();return y.jsx(Qe.g,{transform:n.transform,opacity:n.progress,style:az,children:y.jsx(Qe.text,{textAnchor:"middle",dominantBaseline:"central",style:ot({},r.labels.text,{fill:n.textColor}),children:t})})},O_=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},oz=function(e,t){return e.filter(function(n){return Math.abs(vl(n.arc.endAngle-n.arc.startAngle))>=t})},sz={startAngle:{enter:function(e){return ot({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return ot({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return ot({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return ot({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return ot({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return ot({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return ot({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return ot({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return ot({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return ot({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return ot({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return ot({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return ot({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return ot({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return ot({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return ot({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},E_=function(e,t){return h.useMemo(function(){var n=sz[e];return{enter:function(r){return ot({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return ot({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return ot({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},cz=function(e,t){var n=PW(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return oa(n,r)},uz=function(e){return function(t,n,r,a){return Fr([t,n,r,a],function(i,o,s,u){var c=cz({startAngle:i,endAngle:o,innerRadius:s,outerRadius:u},e);return"translate("+c.x+","+c.y+")"})}},lz=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var a=un(),i=a.animate,o=a.config,s=E_(n,r);return{transition:xa(e,{keys:function(u){return u.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:o,immediate:!i}),interpolate:uz(t)}},dz=function(e){var t=e.center,n=e.data,r=e.transitionMode,a=e.label,i=e.radiusOffset,o=e.skipAngle,s=e.textColor,u=e.component,c=u===void 0?iz:u,l=sa(a),d=lt(),f=si(s,d),p=h.useMemo(function(){return n.filter(function(w){return Math.abs(vl(w.arc.endAngle-w.arc.startAngle))>=o})},[n,o]),m=lz(p,i,r),g=m.transition,v=m.interpolate,x=c;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:g(function(w,b){return h.createElement(x,{key:b.id,datum:b,label:l(b),style:ot({},w,{transform:v(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius),textColor:f(b)})})})})},fz=function(e){var t=e.label,n=e.style,r=lt();return y.jsxs(Qe.g,{opacity:n.opacity,children:[y.jsx(Qe.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),y.jsx(Qe.text,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:ot({},r.labels.text,{fill:n.textColor}),children:t})]})},hz=function(e){var t=O_(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},$_=function(e,t,n,r){var a,i,o=O_(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=oa(o,e.outerRadius+t),u=oa(o,e.outerRadius+t+n);return o<Math.PI/2||o>1.5*Math.PI?(a="after",i={x:u.x+r,y:u.y}):(a="before",i={x:u.x-r,y:u.y}),{side:a,points:[s,u,i]}},pz=yL().x(function(e){return e.x}).y(function(e){return e.y}),mz=function(e,t,n,r,a,i,o){return Fr([e,t,n,r,a,i,o],function(s,u,c,l,d,f,p){var m=$_({startAngle:s,endAngle:u,innerRadius:c,outerRadius:l},d,f,p).points;return pz(m)})},gz=function(e,t,n,r){return Fr([e,t,n,r],function(a,i,o,s){return hz({startAngle:a,endAngle:i,innerRadius:o,outerRadius:s})})},vz=function(e,t,n,r,a,i,o,s){return Fr([e,t,n,r,a,i,o,s],function(u,c,l,d,f,p,m,g){var v=$_({startAngle:u,endAngle:c,innerRadius:l,outerRadius:d},f,p,m),x=v.points,w=v.side,b=x[2];return w==="before"?b.x-=g:b.x+=g,"translate("+b.x+","+b.y+")"})},yz=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,a=e.diagonalLength,i=e.straightLength,o=e.skipAngle,s=o===void 0?0:o,u=e.textOffset,c=e.linkColor,l=e.textColor,d=un(),f=d.animate,p=d.config,m=lt(),g=si(c,m),v=si(l,m),x=function(b,T){return h.useMemo(function(){return oz(b,T)},[b,T])}(t,s),w=function(b){var T=b.offset,_=b.diagonalLength,C=b.straightLength,$=b.textOffset,A=b.getLinkColor,D=b.getTextColor;return h.useMemo(function(){return{enter:function(j){return{startAngle:j.arc.startAngle,endAngle:j.arc.endAngle,innerRadius:j.arc.innerRadius,outerRadius:j.arc.outerRadius,offset:T,diagonalLength:0,straightLength:0,textOffset:$,linkColor:A(j),textColor:D(j),opacity:0}},update:function(j){return{startAngle:j.arc.startAngle,endAngle:j.arc.endAngle,innerRadius:j.arc.innerRadius,outerRadius:j.arc.outerRadius,offset:T,diagonalLength:_,straightLength:C,textOffset:$,linkColor:A(j),textColor:D(j),opacity:1}},leave:function(j){return{startAngle:j.arc.startAngle,endAngle:j.arc.endAngle,innerRadius:j.arc.innerRadius,outerRadius:j.arc.outerRadius,offset:T,diagonalLength:0,straightLength:0,textOffset:$,linkColor:A(j),textColor:D(j),opacity:0}}}},[_,C,$,A,D,T])}({offset:r,diagonalLength:a,straightLength:i,textOffset:u,getLinkColor:g,getTextColor:v});return{transition:xa(x,{keys:function(b){return b.id},initial:w.update,from:w.enter,enter:w.update,update:w.update,leave:w.leave,config:p,immediate:!f}),interpolateLink:mz,interpolateTextAnchor:gz,interpolateTextPosition:vz}},bz=function(e){var t=e.center,n=e.data,r=e.label,a=e.skipAngle,i=e.offset,o=e.diagonalLength,s=e.straightLength,u=e.strokeWidth,c=e.textOffset,l=e.textColor,d=e.linkColor,f=e.component,p=f===void 0?fz:f,m=sa(r),g=yz({data:n,skipAngle:a,offset:i,diagonalLength:o,straightLength:s,textOffset:c,linkColor:d,textColor:l}),v=g.transition,x=g.interpolateLink,w=g.interpolateTextAnchor,b=g.interpolateTextPosition,T=p;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(_,C){return h.createElement(T,{key:C.id,datum:C,label:m(C),style:ot({},_,{thickness:u,path:x(_.startAngle,_.endAngle,_.innerRadius,_.outerRadius,_.offset,_.diagonalLength,_.straightLength),textAnchor:w(_.startAngle,_.endAngle,_.innerRadius,_.outerRadius),textPosition:b(_.startAngle,_.endAngle,_.innerRadius,_.outerRadius,_.offset,_.diagonalLength,_.straightLength,_.textOffset)})})})})},xz=function(e){var t=e.datum,n=e.style,r=e.onClick,a=e.onMouseEnter,i=e.onMouseMove,o=e.onMouseLeave,s=h.useCallback(function(d){return r==null?void 0:r(t,d)},[r,t]),u=h.useCallback(function(d){return a==null?void 0:a(t,d)},[a,t]),c=h.useCallback(function(d){return i==null?void 0:i(t,d)},[i,t]),l=h.useCallback(function(d){return o==null?void 0:o(t,d)},[o,t]);return y.jsx(Qe.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?s:void 0,onMouseEnter:a?u:void 0,onMouseMove:i?c:void 0,onMouseLeave:o?l:void 0})},_z=function(e,t,n,r,a){return Fr([e,t,n,r],function(i,o,s,u){return a({startAngle:i,endAngle:o,innerRadius:Math.max(0,s),outerRadius:Math.max(0,u)})})},wz=function(e,t,n){t===void 0&&(t="innerRadius");var r=un(),a=r.animate,i=r.config,o=E_(t,n);return{transition:xa(e,{keys:function(s){return s.id},initial:o.update,from:o.enter,enter:o.update,update:o.update,leave:o.leave,config:i,immediate:!a}),interpolate:_z}},Tz=function(e){var t=e.center,n=e.data,r=e.arcGenerator,a=e.borderWidth,i=e.borderColor,o=e.onClick,s=e.onMouseEnter,u=e.onMouseMove,c=e.onMouseLeave,l=e.transitionMode,d=e.component,f=d===void 0?xz:d,p=lt(),m=si(i,p),g=wz(n,l,{enter:function(b){return{opacity:0,color:b.color,borderColor:m(b)}},update:function(b){return{opacity:1,color:b.color,borderColor:m(b)}},leave:function(b){return{opacity:0,color:b.color,borderColor:m(b)}}}),v=g.transition,x=g.interpolate,w=f;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(b,T){return h.createElement(w,{key:T.id,datum:T,style:ot({},b,{borderWidth:a,path:x(b.startAngle,b.endAngle,b.innerRadius,b.outerRadius,r)}),onClick:o,onMouseEnter:s,onMouseMove:u,onMouseLeave:c})})})},Cz=function(e,t,n,r,a,i){i===void 0&&(i=!0);var o=[],s=oa(kn(r),n);o.push([s.x,s.y]);var u=oa(kn(a),n);o.push([u.x,u.y]);for(var c=Math.round(Math.min(r,a));c<=Math.round(Math.max(r,a));c++)if(c%90==0){var l=oa(kn(c),n);o.push([l.x,l.y])}o=o.map(function(v){var x=v[0],w=v[1];return[e+x,t+w]}),i&&o.push([e,t]);var d=o.map(function(v){return v[0]}),f=o.map(function(v){return v[1]}),p=Math.min.apply(Math,d),m=Math.max.apply(Math,d),g=Math.min.apply(Math,f);return{points:o,x:p,y:g,width:m-p,height:Math.max.apply(Math,f)-g}},kz=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,a=t.padAngle,i=a===void 0?0:a;return h.useMemo(function(){return mL().innerRadius(function(o){return o.innerRadius}).outerRadius(function(o){return o.outerRadius}).cornerRadius(r).padAngle(i)},[r,i])},Sz=function(e){var t=e.x,n=e.y,r=e.size,a=e.fill,i=e.opacity,o=i===void 0?1:i,s=e.borderWidth,u=s===void 0?0:s,c=e.borderColor;return y.jsx("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:a,opacity:o,strokeWidth:u,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})},Oz=function(e){var t=e.x,n=e.y,r=e.size,a=e.fill,i=e.opacity,o=i===void 0?1:i,s=e.borderWidth,u=s===void 0?0:s,c=e.borderColor;return y.jsx("g",{transform:"translate("+t+","+n+")",children:y.jsx("path",{d:`
269
269
  M`+r/2+` 0
270
270
  L`+.8*r+" "+r/2+`
271
271
  L`+r/2+" "+r+`
272
272
  L`+.2*r+" "+r/2+`
273
273
  L`+r/2+` 0
274
- `,fill:a,opacity:o,strokeWidth:c,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})})},Ez=function(e){var t=e.x,n=e.y,r=e.size,a=e.fill,i=e.opacity,o=i===void 0?1:i,s=e.borderWidth,c=s===void 0?0:s,u=e.borderColor;return y.jsx("rect",{x:t,y:n,fill:a,opacity:o,strokeWidth:c,stroke:u===void 0?"transparent":u,width:r,height:r,style:{pointerEvents:"none"}})},$z=function(e){var t=e.x,n=e.y,r=e.size,a=e.fill,i=e.opacity,o=i===void 0?1:i,s=e.borderWidth,c=s===void 0?0:s,u=e.borderColor;return y.jsx("g",{transform:"translate("+t+","+n+")",children:y.jsx("path",{d:`
274
+ `,fill:a,opacity:o,strokeWidth:u,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})},Ez=function(e){var t=e.x,n=e.y,r=e.size,a=e.fill,i=e.opacity,o=i===void 0?1:i,s=e.borderWidth,u=s===void 0?0:s,c=e.borderColor;return y.jsx("rect",{x:t,y:n,fill:a,opacity:o,strokeWidth:u,stroke:c===void 0?"transparent":c,width:r,height:r,style:{pointerEvents:"none"}})},$z=function(e){var t=e.x,n=e.y,r=e.size,a=e.fill,i=e.opacity,o=i===void 0?1:i,s=e.borderWidth,u=s===void 0?0:s,c=e.borderColor;return y.jsx("g",{transform:"translate("+t+","+n+")",children:y.jsx("path",{d:`
275
275
  M`+r/2+` 0
276
276
  L`+r+" "+r+`
277
277
  L0 `+r+`
278
278
  L`+r/2+` 0
279
- `,fill:a,opacity:o,strokeWidth:c,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})})};function ea(){return ea=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},ea.apply(this,arguments)}var Mz={top:0,right:0,bottom:0,left:0},qp=function(e){var t,n=e.direction,r=e.itemsSpacing,a=e.padding,i=e.itemCount,o=e.itemWidth,s=e.itemHeight;if(typeof a!="number"&&(typeof(t=a)!="object"||Array.isArray(t)||t===null))throw new Error("Invalid property padding, must be one of: number, object");var c=typeof a=="number"?{top:a,right:a,bottom:a,left:a}:ea({},Mz,a),u=c.left+c.right,l=c.top+c.bottom,d=o+u,f=s+l,p=(i-1)*r;return n==="row"?d=o*i+p+u:n==="column"&&(f=s*i+p+l),{width:d,height:f,padding:c}},M_=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,a=e.containerWidth,i=e.containerHeight,o=e.width,s=e.height,c=n,u=r;switch(t){case"top":c+=(a-o)/2;break;case"top-right":c+=a-o;break;case"right":c+=a-o,u+=(i-s)/2;break;case"bottom-right":c+=a-o,u+=i-s;break;case"bottom":c+=(a-o)/2,u+=i-s;break;case"bottom-left":u+=i-s;break;case"left":u+=(i-s)/2;break;case"center":c+=(a-o)/2,u+=(i-s)/2}return{x:c,y:u}},R_=function(e){var t,n,r,a,i,o,s=e.direction,c=e.justify,u=e.symbolSize,l=e.symbolSpacing,d=e.width,f=e.height;switch(s){case"left-to-right":t=0,n=(f-u)/2,a=f/2,o="central",c?(r=d,i="end"):(r=u+l,i="start");break;case"right-to-left":t=d-u,n=(f-u)/2,a=f/2,o="central",c?(r=0,i="start"):(r=d-u-l,i="end");break;case"top-to-bottom":t=(d-u)/2,n=0,r=d/2,i="middle",c?(a=f,o="alphabetic"):(a=u+l,o="text-before-edge");break;case"bottom-to-top":t=(d-u)/2,n=f-u,r=d/2,i="middle",c?(a=0,o="text-before-edge"):(a=f-u-l,o="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:a,labelAnchor:i,labelAlignment:o}},Rz={circle:Sz,diamond:Oz,square:Ez,triangle:$z},Az=function(e){var t,n,r,a,i,o,s,c,u,l,d,f=e.x,p=e.y,g=e.width,v=e.height,m=e.data,x=e.direction,w=x===void 0?"left-to-right":x,b=e.justify,T=b!==void 0&&b,_=e.textColor,C=e.background,$=C===void 0?"transparent":C,A=e.opacity,D=A===void 0?1:A,j=e.symbolShape,E=j===void 0?"square":j,F=e.symbolSize,M=F===void 0?16:F,R=e.symbolSpacing,I=R===void 0?8:R,U=e.symbolBorderWidth,N=U===void 0?0:U,q=e.symbolBorderColor,z=q===void 0?"transparent":q,P=e.onClick,W=e.onMouseEnter,Z=e.onMouseLeave,ne=e.toggleSerie,Y=e.effects,Q=h.useState({}),G=Q[0],J=Q[1],re=lt(),L=h.useCallback(function(We){if(Y){var rt=Y.filter(function(Ze){return Ze.on==="hover"}).reduce(function(Ze,xt){return ea({},Ze,xt.style)},{});J(rt)}W==null||W(m,We)},[W,m,Y]),V=h.useCallback(function(We){if(Y){var rt=Y.filter(function(Ze){return Ze.on!=="hover"}).reduce(function(Ze,xt){return ea({},Ze,xt.style)},{});J(rt)}Z==null||Z(m,We)},[Z,m,Y]),ae=R_({direction:w,justify:T,symbolSize:(t=G.symbolSize)!=null?t:M,symbolSpacing:I,width:g,height:v}),k=ae.symbolX,ge=ae.symbolY,pe=ae.labelX,de=ae.labelY,Ae=ae.labelAnchor,Pe=ae.labelAlignment,ft=[P,W,Z,ne].some(function(We){return We!==void 0}),gt=typeof E=="function"?E:Rz[E];return y.jsxs("g",{transform:"translate("+f+","+p+")",style:{opacity:(n=G.itemOpacity)!=null?n:D},children:[y.jsx("rect",{width:g,height:v,fill:(r=G.itemBackground)!=null?r:$,style:{cursor:ft?"pointer":"auto"},onClick:function(We){P==null||P(m,We),ne==null||ne(m.id)},onMouseEnter:L,onMouseLeave:V}),oe.createElement(gt,ea({id:m.id,x:k,y:ge,size:(a=G.symbolSize)!=null?a:M,fill:(i=(o=m.fill)!=null?o:m.color)!=null?i:"black",borderWidth:(s=G.symbolBorderWidth)!=null?s:N,borderColor:(c=G.symbolBorderColor)!=null?c:z},m.hidden?re.legends.hidden.symbol:void 0)),y.jsx("text",{textAnchor:Ae,style:ea({},Hp(re.legends.text),{fill:(u=(l=(d=G.itemTextColor)!=null?d:_)!=null?l:re.legends.text.fill)!=null?u:"black",dominantBaseline:Pe,pointerEvents:"none",userSelect:"none"},m.hidden?re.legends.hidden.text:void 0),x:pe,y:de,children:m.label})]})},jz=function(e){var t=e.data,n=e.x,r=e.y,a=e.direction,i=e.padding,o=i===void 0?0:i,s=e.justify,c=e.effects,u=e.itemWidth,l=e.itemHeight,d=e.itemDirection,f=d===void 0?"left-to-right":d,p=e.itemsSpacing,g=p===void 0?0:p,v=e.itemTextColor,m=e.itemBackground,x=m===void 0?"transparent":m,w=e.itemOpacity,b=w===void 0?1:w,T=e.symbolShape,_=e.symbolSize,C=e.symbolSpacing,$=e.symbolBorderWidth,A=e.symbolBorderColor,D=e.onClick,j=e.onMouseEnter,E=e.onMouseLeave,F=e.toggleSerie,M=qp({itemCount:t.length,itemWidth:u,itemHeight:l,itemsSpacing:g,direction:a,padding:o}).padding,R=a==="row"?u+g:0,I=a==="column"?l+g:0;return y.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(U,N){return y.jsx(Az,{data:U,x:N*R+M.left,y:N*I+M.top,width:u,height:l,direction:f,justify:s,effects:c,textColor:v,background:x,opacity:b,symbolShape:T,symbolSize:_,symbolSpacing:C,symbolBorderWidth:$,symbolBorderColor:A,onClick:D,onMouseEnter:j,onMouseLeave:E,toggleSerie:F},N)})})},A_=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,a=e.translateX,i=a===void 0?0:a,o=e.translateY,s=o===void 0?0:o,c=e.anchor,u=e.direction,l=e.padding,d=l===void 0?0:l,f=e.justify,p=e.itemsSpacing,g=p===void 0?0:p,v=e.itemWidth,m=e.itemHeight,x=e.itemDirection,w=e.itemTextColor,b=e.itemBackground,T=e.itemOpacity,_=e.symbolShape,C=e.symbolSize,$=e.symbolSpacing,A=e.symbolBorderWidth,D=e.symbolBorderColor,j=e.onClick,E=e.onMouseEnter,F=e.onMouseLeave,M=e.toggleSerie,R=e.effects,I=qp({itemCount:t.length,itemsSpacing:g,itemWidth:v,itemHeight:m,direction:u,padding:d}),U=I.width,N=I.height,q=M_({anchor:c,translateX:i,translateY:s,containerWidth:n,containerHeight:r,width:U,height:N}),z=q.x,P=q.y;return y.jsx(jz,{data:t,x:z,y:P,direction:u,padding:d,justify:f,effects:R,itemsSpacing:g,itemWidth:v,itemHeight:m,itemDirection:x,itemTextColor:w,itemBackground:b,itemOpacity:T,symbolShape:_,symbolSize:C,symbolSpacing:$,symbolBorderWidth:A,symbolBorderColor:D,onClick:j,onMouseEnter:E,onMouseLeave:F,toggleSerie:typeof M=="boolean"?void 0:M})},Pz={start:"left",middle:"center",end:"right"},Dz=function(e,t){var n=t.data,r=t.containerWidth,a=t.containerHeight,i=t.translateX,o=i===void 0?0:i,s=t.translateY,c=s===void 0?0:s,u=t.anchor,l=t.direction,d=t.padding,f=d===void 0?0:d,p=t.justify,g=p!==void 0&&p,v=t.itemsSpacing,m=v===void 0?0:v,x=t.itemWidth,w=t.itemHeight,b=t.itemDirection,T=b===void 0?"left-to-right":b,_=t.itemTextColor,C=t.symbolSize,$=C===void 0?16:C,A=t.symbolSpacing,D=A===void 0?8:A,j=t.theme,E=qp({itemCount:n.length,itemWidth:x,itemHeight:w,itemsSpacing:m,direction:l,padding:f}),F=E.width,M=E.height,R=E.padding,I=M_({anchor:u,translateX:o,translateY:c,containerWidth:r,containerHeight:a,width:F,height:M}),U=I.x,N=I.y,q=l==="row"?x+m:0,z=l==="column"?w+m:0;e.save(),e.translate(U,N),e.font=j.legends.text.fontSize+"px "+(j.legends.text.fontFamily||"sans-serif"),n.forEach(function(P,W){var Z,ne,Y=W*q+R.left,Q=W*z+R.top,G=R_({direction:T,justify:g,symbolSize:$,symbolSpacing:D,width:x,height:w}),J=G.symbolX,re=G.symbolY,L=G.labelX,V=G.labelY,ae=G.labelAnchor,k=G.labelAlignment;e.fillStyle=(Z=P.color)!=null?Z:"black",e.fillRect(Y+J,Q+re,$,$),e.textAlign=Pz[ae],k==="central"&&(e.textBaseline="middle"),e.fillStyle=(ne=_??j.legends.text.fill)!=null?ne:"black",e.fillText(String(P.label),Y+L,Q+V)}),e.restore()};function Ur(){return Ur=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},Ur.apply(this,arguments)}function j_(e,t){if(e==null)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var bv,Iz=function(e){var t=e.width,n=e.height,r=e.legends,a=e.data,i=e.toggleSerie;return y.jsx(y.Fragment,{children:r.map(function(o,s){var c;return y.jsx(A_,Ur({},o,{containerWidth:t,containerHeight:n,data:(c=o.data)!=null?c:a,toggleSerie:o.toggleSerie?i:void 0}),s)})})},be={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 y.jsx(xx,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(bv=window.devicePixelRatio)!=null?bv:1},Nz=["points"],Fz=function(e){var t=e.data,n=e.id,r=n===void 0?be.id:n,a=e.value,i=a===void 0?be.value:a,o=e.valueFormat,s=e.colors,c=s===void 0?be.colors:s,u=sa(r),l=sa(i),d=pl(o),f=S_(c,"id");return h.useMemo(function(){return t.map(function(p){var g,v=u(p),m=l(p),x={id:v,label:(g=p.label)!=null?g:v,hidden:!1,value:m,formattedValue:d(m),data:p};return Ur({},x,{color:f(x)})})},[t,u,l,d,f])},Lz=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,a=e.innerRadius,i=e.outerRadius,o=e.padAngle,s=e.sortByValue,c=e.activeId,u=e.activeInnerRadiusOffset,l=e.activeOuterRadiusOffset,d=e.hiddenIds,f=e.forwardLegendData,p=h.useMemo(function(){var x=_L().value(function(w){return w.value}).startAngle(kn(n)).endAngle(kn(r)).padAngle(kn(o));return s||x.sortValues(null),x},[n,r,o,s]),g=h.useMemo(function(){var x=t.filter(function(w){return!d.includes(w.id)});return{dataWithArc:p(x).map(function(w){var b=Math.abs(w.endAngle-w.startAngle);return Ur({},w.data,{arc:{index:w.index,startAngle:w.startAngle,endAngle:w.endAngle,innerRadius:c===w.data.id?a-u:a,outerRadius:c===w.data.id?i+l:i,thickness:i-a,padAngle:w.padAngle,angle:b,angleDeg:vl(b)}})}),legendData:t.map(function(w){return{id:w.id,label:w.label,color:w.color,hidden:d.includes(w.id),data:w}})}},[p,t,d,c,a,u,i,l]),v=g.legendData,m=h.useRef(f);return h.useEffect(function(){typeof m.current=="function"&&m.current(v)},[m,v]),g},Uz=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,a=t!==void 0,i=h.useState(a||r===void 0?null:r),o=i[0],s=i[1];return{activeId:a?t:o,setActiveId:h.useCallback(function(c){n&&n(c),a||s(c)},[a,n,s])}},Bz=function(e){var t=e.data,n=e.width,r=e.height,a=e.innerRadius,i=a===void 0?be.innerRadius:a,o=e.startAngle,s=o===void 0?be.startAngle:o,c=e.endAngle,u=c===void 0?be.endAngle:c,l=e.padAngle,d=l===void 0?be.padAngle:l,f=e.sortByValue,p=f===void 0?be.sortByValue:f,g=e.cornerRadius,v=g===void 0?be.cornerRadius:g,m=e.fit,x=m===void 0?be.fit:m,w=e.activeInnerRadiusOffset,b=w===void 0?be.activeInnerRadiusOffset:w,T=e.activeOuterRadiusOffset,_=T===void 0?be.activeOuterRadiusOffset:T,C=e.activeId,$=e.onActiveIdChange,A=e.defaultActiveId,D=e.forwardLegendData,j=Uz({activeId:C,onActiveIdChange:$,defaultActiveId:A}),E=j.activeId,F=j.setActiveId,M=h.useState([]),R=M[0],I=M[1],U=h.useMemo(function(){var z,P=Math.min(n,r)/2,W=P*Math.min(i,1),Z=n/2,ne=r/2;if(x){var Y=Cz(Z,ne,P,s-90,u-90),Q=Y.points,G=j_(Y,Nz),J=Math.min(n/G.width,r/G.height),re={width:G.width*J,height:G.height*J};re.x=(n-re.width)/2,re.y=(r-re.height)/2,Z=(Z-G.x)/G.width*G.width*J+re.x,ne=(ne-G.y)/G.height*G.height*J+re.y,z={box:G,ratio:J,points:Q},P*=J,W*=J}return{centerX:Z,centerY:ne,radius:P,innerRadius:W,debug:z}},[n,r,i,s,u,x]),N=Lz({data:t,startAngle:s,endAngle:u,innerRadius:U.innerRadius,outerRadius:U.radius,padAngle:d,sortByValue:p,activeId:E,activeInnerRadiusOffset:b,activeOuterRadiusOffset:_,hiddenIds:R,forwardLegendData:D}),q=h.useCallback(function(z){I(function(P){return P.indexOf(z)>-1?P.filter(function(W){return W!==z}):[].concat(P,[z])})},[]);return Ur({arcGenerator:kz({cornerRadius:v,padAngle:kn(d)}),activeId:E,setActiveId:F,toggleSerie:q},N,U)},Wz=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,a=e.centerY,i=e.radius,o=e.innerRadius;return h.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:a,radius:i,innerRadius:o}},[t,n,r,a,i,o])},zz=function(e){var t=e.center,n=e.data,r=e.arcGenerator,a=e.borderWidth,i=e.borderColor,o=e.isInteractive,s=e.onClick,c=e.onMouseEnter,u=e.onMouseMove,l=e.onMouseLeave,d=e.setActiveId,f=e.tooltip,p=e.transitionMode,g=Hh(),v=g.showTooltipFromEvent,m=g.hideTooltip,x=h.useMemo(function(){if(o)return function(_,C){s==null||s(_,C)}},[o,s]),w=h.useMemo(function(){if(o)return function(_,C){v(h.createElement(f,{datum:_}),C),d(_.id),c==null||c(_,C)}},[o,v,d,c,f]),b=h.useMemo(function(){if(o)return function(_,C){v(h.createElement(f,{datum:_}),C),u==null||u(_,C)}},[o,v,u,f]),T=h.useMemo(function(){if(o)return function(_,C){m(),d(null),l==null||l(_,C)}},[o,m,d,l]);return y.jsx(Tz,{center:t,data:n,arcGenerator:r,borderWidth:a,borderColor:i,transitionMode:p,onClick:x,onMouseEnter:w,onMouseMove:b,onMouseLeave:T})},Hz=["isInteractive","animate","motionConfig","theme","renderWrapper"],Vz=function(e){var t=e.data,n=e.id,r=n===void 0?be.id:n,a=e.value,i=a===void 0?be.value:a,o=e.valueFormat,s=e.sortByValue,c=s===void 0?be.sortByValue:s,u=e.layers,l=u===void 0?be.layers:u,d=e.startAngle,f=d===void 0?be.startAngle:d,p=e.endAngle,g=p===void 0?be.endAngle:p,v=e.padAngle,m=v===void 0?be.padAngle:v,x=e.fit,w=x===void 0?be.fit:x,b=e.innerRadius,T=b===void 0?be.innerRadius:b,_=e.cornerRadius,C=_===void 0?be.cornerRadius:_,$=e.activeInnerRadiusOffset,A=$===void 0?be.activeInnerRadiusOffset:$,D=e.activeOuterRadiusOffset,j=D===void 0?be.activeOuterRadiusOffset:D,E=e.width,F=e.height,M=e.margin,R=e.colors,I=R===void 0?be.colors:R,U=e.borderWidth,N=U===void 0?be.borderWidth:U,q=e.borderColor,z=q===void 0?be.borderColor:q,P=e.enableArcLabels,W=P===void 0?be.enableArcLabels:P,Z=e.arcLabel,ne=Z===void 0?be.arcLabel:Z,Y=e.arcLabelsSkipAngle,Q=Y===void 0?be.arcLabelsSkipAngle:Y,G=e.arcLabelsTextColor,J=G===void 0?be.arcLabelsTextColor:G,re=e.arcLabelsRadiusOffset,L=re===void 0?be.arcLabelsRadiusOffset:re,V=e.arcLabelsComponent,ae=e.enableArcLinkLabels,k=ae===void 0?be.enableArcLinkLabels:ae,ge=e.arcLinkLabel,pe=ge===void 0?be.arcLinkLabel:ge,de=e.arcLinkLabelsSkipAngle,Ae=de===void 0?be.arcLinkLabelsSkipAngle:de,Pe=e.arcLinkLabelsOffset,ft=Pe===void 0?be.arcLinkLabelsOffset:Pe,gt=e.arcLinkLabelsDiagonalLength,We=gt===void 0?be.arcLinkLabelsDiagonalLength:gt,rt=e.arcLinkLabelsStraightLength,Ze=rt===void 0?be.arcLinkLabelsStraightLength:rt,xt=e.arcLinkLabelsThickness,_t=xt===void 0?be.arcLinkLabelsThickness:xt,at=e.arcLinkLabelsTextOffset,xe=at===void 0?be.arcLinkLabelsTextOffset:at,Xe=e.arcLinkLabelsTextColor,Ct=Xe===void 0?be.arcLinkLabelsTextColor:Xe,Xt=e.arcLinkLabelsColor,kt=Xt===void 0?be.arcLinkLabelsColor:Xt,ht=e.arcLinkLabelComponent,wt=e.defs,ln=wt===void 0?be.defs:wt,vt=e.fill,At=vt===void 0?be.fill:vt,St=e.isInteractive,Jt=St===void 0?be.isInteractive:St,De=e.onClick,je=e.onMouseEnter,Ue=e.onMouseMove,pt=e.onMouseLeave,Ot=e.tooltip,Et=Ot===void 0?be.tooltip:Ot,xn=e.activeId,Qt=e.onActiveIdChange,Lt=e.defaultActiveId,dn=e.transitionMode,It=dn===void 0?be.transitionMode:dn,qt=e.legends,_n=qt===void 0?be.legends:qt,en=e.forwardLegendData,ze=e.role,Ne=ze===void 0?be.role:ze,Me=zp(E,F,M),et=Me.outerWidth,Yt=Me.outerHeight,jt=Me.margin,S=Me.innerWidth,K=Me.innerHeight,H=Fz({data:t,id:r,value:i,valueFormat:o,colors:I}),X=Bz({data:H,width:S,height:K,fit:w,innerRadius:T,startAngle:f,endAngle:g,padAngle:m,sortByValue:c,cornerRadius:C,activeInnerRadiusOffset:A,activeOuterRadiusOffset:j,activeId:xn,onActiveIdChange:Qt,defaultActiveId:Lt,forwardLegendData:en}),fe=X.dataWithArc,ve=X.legendData,le=X.arcGenerator,he=X.centerX,ke=X.centerY,Te=X.radius,Je=X.innerRadius,$t=X.setActiveId,yt=X.toggleSerie,fn=w_(ln,fe,At),se={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};l.includes("arcs")&&(se.arcs=y.jsx(zz,{center:[he,ke],data:fe,arcGenerator:le,borderWidth:N,borderColor:z,isInteractive:Jt,onClick:De,onMouseEnter:je,onMouseMove:Ue,onMouseLeave:pt,setActiveId:$t,tooltip:Et,transitionMode:It},"arcs")),k&&l.includes("arcLinkLabels")&&(se.arcLinkLabels=y.jsx(bz,{center:[he,ke],data:fe,label:pe,skipAngle:Ae,offset:ft,diagonalLength:We,straightLength:Ze,strokeWidth:_t,textOffset:xe,textColor:Ct,linkColor:kt,component:ht},"arcLinkLabels")),W&&l.includes("arcLabels")&&(se.arcLabels=y.jsx(dz,{center:[he,ke],data:fe,label:ne,radiusOffset:L,skipAngle:Q,textColor:J,transitionMode:It,component:V},"arcLabels")),_n.length>0&&l.includes("legends")&&(se.legends=y.jsx(Iz,{width:S,height:K,data:ve,legends:_n,toggleSerie:yt},"legends"));var hn=Wz({dataWithArc:fe,arcGenerator:le,centerX:he,centerY:ke,radius:Te,innerRadius:Je});return y.jsx(Vp,{width:et,height:Yt,margin:jt,defs:fn,role:Ne,children:l.map(function(Mt,xl){return se[Mt]!==void 0?se[Mt]:typeof Mt=="function"?y.jsx(h.Fragment,{children:h.createElement(Mt,hn)},xl):null})})},qz=function(e){var t=e.isInteractive,n=t===void 0?be.isInteractive:t,r=e.animate,a=r===void 0?be.animate:r,i=e.motionConfig,o=i===void 0?be.motionConfig:i,s=e.theme,c=e.renderWrapper,u=j_(e,Hz);return y.jsx(ml,{animate:a,isInteractive:n,motionConfig:o,renderWrapper:c,theme:s,children:y.jsx(Vz,Ur({isInteractive:n},u))})},Yz=function(e){return y.jsx(gl,{children:function(t){var n=t.width,r=t.height;return y.jsx(qz,Ur({width:n,height:r},e))}})};function Gz(){}var Zz=Gz,dd=a_,Kz=Zz,Xz=Fp,Jz=1/0,Qz=dd&&1/Xz(new dd([,-0]))[1]==Jz?function(e){return new dd(e)}:Kz,eH=Qz,tH=Mp,nH=A2,rH=j2,aH=Rp,iH=eH,oH=Fp,sH=200;function cH(e,t,n){var r=-1,a=nH,i=e.length,o=!0,s=[],c=s;if(n)o=!1,a=rH;else if(i>=sH){var u=t?null:iH(e);if(u)return oH(u);o=!1,a=aH,c=new tH}else c=t?[]:s;e:for(;++r<i;){var l=e[r],d=t?t(l):l;if(l=n||l!==0?l:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),s.push(l)}else a(c,d,n)||(c!==s&&c.push(d),s.push(l))}return s}var uH=cH,lH=wu,dH=Up,fH=1,hH=2;function pH(e,t,n,r){var a=n.length,i=a,o=!r;if(e==null)return!i;for(e=Object(e);a--;){var s=n[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=n[a];var c=s[0],u=e[c],l=s[1];if(o&&s[2]){if(u===void 0&&!(c in e))return!1}else{var d=new lH;if(r)var f=r(u,l,c,e,t,d);if(!(f===void 0?dH(l,u,fH|hH,r,d):f))return!1}}return!0}var mH=pH,gH=er;function vH(e){return e===e&&!gH(e)}var P_=vH,yH=P_,bH=ss;function xH(e){for(var t=bH(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,yH(a)]}return t}var _H=xH;function wH(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var D_=wH,TH=mH,CH=_H,kH=D_;function SH(e){var t=CH(e);return t.length==1&&t[0][2]?kH(t[0][0],t[0][1]):function(n){return n===e||TH(n,e,t)}}var OH=SH,EH=Up,$H=Yx,MH=Z2,RH=rp,AH=P_,jH=D_,PH=Ti,DH=1,IH=2;function NH(e,t){return RH(e)&&AH(t)?jH(PH(e),t):function(n){var r=$H(n,e);return r===void 0&&r===t?MH(n,e):EH(t,r,DH|IH)}}var FH=NH;function LH(e){return function(t){return t==null?void 0:t[e]}}var UH=LH,BH=is;function WH(e){return function(t){return BH(t,e)}}var zH=WH,HH=UH,VH=zH,qH=rp,YH=Ti;function GH(e){return qH(e)?HH(YH(e)):VH(e)}var ZH=GH,KH=OH,XH=FH,JH=Ou,QH=cn,eV=ZH;function tV(e){return typeof e=="function"?e:e==null?JH:typeof e=="object"?QH(e)?XH(e[0],e[1]):KH(e):eV(e)}var Yp=tV,nV=Yp,rV=uH;function aV(e,t){return e&&e.length?rV(e,nV(t)):[]}var iV=aV;const xv=Tt(iV);var oV=$x,sV=ss;function cV(e,t){return e&&oV(e,t,sV)}var uV=cV,lV=xi;function dV(e,t){return function(n,r){if(n==null)return n;if(!lV(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Object(n);(t?i--:++i<a)&&r(o[i],i,o)!==!1;);return n}}var fV=dV,hV=uV,pV=fV,mV=pV(hV),I_=mV,gV=I_,vV=xi;function yV(e,t){var n=-1,r=vV(e)?Array(e.length):[];return gV(e,function(a,i,o){r[++n]=t(a,i,o)}),r}var bV=yV;function xV(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var _V=xV,_v=Eu;function wV(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=_v(e),o=t!==void 0,s=t===null,c=t===t,u=_v(t);if(!s&&!u&&!i&&e>t||i&&o&&c&&!s&&!u||r&&o&&c||!n&&c||!a)return 1;if(!r&&!i&&!u&&e<t||u&&n&&a&&!r&&!i||s&&n&&a||!o&&a||!c)return-1}return 0}var TV=wV,CV=TV;function kV(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,o=a.length,s=n.length;++r<o;){var c=CV(a[r],i[r]);if(c){if(r>=s)return c;var u=n[r];return c*(u=="desc"?-1:1)}}return e.index-t.index}var SV=kV,fd=$u,OV=is,EV=Yp,$V=bV,MV=_V,RV=rs,AV=SV,jV=Ou,PV=cn;function DV(e,t,n){t.length?t=fd(t,function(i){return PV(i)?function(o){return OV(o,i.length===1?i[0]:i)}:i}):t=[jV];var r=-1;t=fd(t,RV(EV));var a=$V(e,function(i,o,s){var c=fd(t,function(u){return u(i)});return{criteria:c,index:++r,value:i}});return MV(a,function(i,o){return AV(i,o,n)})}var IV=DV,NV=X2,FV=IV,LV=np,wv=Hx;LV(function(e,t){if(e==null)return[];var n=t.length;return n>1&&wv(e,t[0],t[1])?t=[]:n>2&&wv(t[0],t[1],t[2])&&(t=[t[0]]),FV(e,NV(t,1),[])});var Tv=ku;Tv&&Tv.isDate;var hd=new Date,pd=new Date;function Pt(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=function(i){return e(i=new Date(+i)),i},a.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},a.round=function(i){var o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=function(i,o){return t(i=new Date(+i),o==null?1:Math.floor(o)),i},a.range=function(i,o,s){var c=[],u;if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return c;do c.push(u=new Date(+i)),t(i,s),e(i);while(u<i&&i<o);return c},a.filter=function(i){return Pt(function(o){if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););})},n&&(a.count=function(i,o){return hd.setTime(+i),pd.setTime(+o),e(hd),e(pd),Math.floor(n(hd,pd))},a.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?function(o){return r(o)%i===0}:function(o){return a.count(0,o)%i===0}):a}),a}var Uo=Pt(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Uo.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Pt(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Uo};Uo.range;var Rc=1e3,ci=6e4,Ac=36e5,N_=6048e5,jf=Pt(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Rc)},function(e,t){return(t-e)/Rc},function(e){return e.getUTCSeconds()});jf.range;var F_=Pt(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Rc)},function(e,t){e.setTime(+e+t*ci)},function(e,t){return(t-e)/ci},function(e){return e.getMinutes()});F_.range;var L_=Pt(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Rc-e.getMinutes()*ci)},function(e,t){e.setTime(+e+t*Ac)},function(e,t){return(t-e)/Ac},function(e){return e.getHours()});L_.range;function Oa(e){return Pt(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())*ci)/N_})}var Pf=Oa(0),U_=Oa(1),B_=Oa(2),W_=Oa(3),z_=Oa(4),H_=Oa(5),V_=Oa(6);Pf.range;U_.range;B_.range;W_.range;z_.range;H_.range;V_.range;var q_=Pt(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()});q_.range;var Gp=Pt(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()});Gp.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Pt(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)})};Gp.range;var Y_=Pt(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*ci)},function(e,t){return(t-e)/ci},function(e){return e.getUTCMinutes()});Y_.range;var G_=Pt(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Ac)},function(e,t){return(t-e)/Ac},function(e){return e.getUTCHours()});G_.range;function Ea(e){return Pt(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)/N_})}var Df=Ea(0),Z_=Ea(1),K_=Ea(2),X_=Ea(3),J_=Ea(4),Q_=Ea(5),ew=Ea(6);Df.range;Z_.range;K_.range;X_.range;J_.range;Q_.range;ew.range;var tw=Pt(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()});tw.range;var Zp=Pt(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()});Zp.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Pt(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)})};Zp.range;var Ia=[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)}],UV={millisecond:[],second:Ia.slice(0,1),minute:Ia.slice(0,2),hour:Ia.slice(0,3),day:Ia.slice(0,4),month:Ia.slice(0,5),year:Ia.slice(0,6)},BV=function(e){return function(t){return UV[e].forEach(function(n){n(t)}),t}},WV=function(e){var t=e.format,n=t===void 0?"native":t,r=e.precision,a=r===void 0?"millisecond":r,i=e.useUTC,o=i===void 0||i,s=BV(a);return function(c){if(c===void 0)return c;if(n==="native"||c instanceof Date)return s(c);var u=o?T2(n):_2(n);return s(u(c))}},zV=function(e,t,n,r){var a,i,o,s,c=e.min,u=c===void 0?0:c,l=e.max,d=l===void 0?"auto":l,f=e.stacked,p=f!==void 0&&f,g=e.reverse,v=g!==void 0&&g,m=e.clamp,x=m!==void 0&&m,w=e.nice,b=w!==void 0&&w;u==="auto"?a=p===!0?(i=t.minStacked)!=null?i:0:t.min:a=u,d==="auto"?o=p===!0?(s=t.maxStacked)!=null?s:0:t.max:o=d;var T=s2().rangeRound(r==="x"?[0,n]:[n,0]).domain(v?[o,a]:[a,o]).clamp(x);return b===!0?T.nice():typeof b=="number"&&T.nice(b),HV(T,p)},HV=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},VV=function(e,t,n){var r=AD().range([0,n]).domain(t.all);return r.type="point",r},qV=function(e,t,n,r){var a=e.round,i=a===void 0||a,o=dp().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(i);return YV(o)},YV=function(e){var t=e;return t.type="band",t},GV=function(e,t,n){var r,a,i=e.format,o=i===void 0?"native":i,s=e.precision,c=s===void 0?"millisecond":s,u=e.min,l=u===void 0?"auto":u,d=e.max,f=d===void 0?"auto":d,p=e.useUTC,g=p===void 0||p,v=e.nice,m=v!==void 0&&v,x=WV({format:o,precision:c,useUTC:g});r=l==="auto"?x(t.min):o!=="native"?x(l):l,a=f==="auto"?x(t.max):o!=="native"?x(f):f;var w=g?jN():AN();w.range([0,n]),r&&a&&w.domain([r,a]),m===!0?w.nice():typeof m!="object"&&typeof m!="number"||w.nice(m);var b=w;return b.type="time",b.useUTC=g,b},ZV=function(e,t,n,r){var a,i=e.base,o=i===void 0?10:i,s=e.min,c=s===void 0?"auto":s,u=e.max,l=u===void 0?"auto":u;if(t.all.some(function(v){return v===0}))throw new Error("a log scale domain must not include or cross zero");var d,f,p=!1;if(t.all.filter(function(v){return v!=null}).forEach(function(v){p||(a===void 0?a=Math.sign(v):Math.sign(v)!==a&&(p=!0))}),p)throw new Error("a log scale domain must be strictly-positive or strictly-negative");d=c==="auto"?t.min:c,f=l==="auto"?t.max:l;var g=u2().domain([d,f]).rangeRound(r==="x"?[0,n]:[n,0]).base(o).nice();return g.type="log",g},KV=function(e,t,n,r){var a,i,o=e.constant,s=o===void 0?1:o,c=e.min,u=c===void 0?"auto":c,l=e.max,d=l===void 0?"auto":l,f=e.reverse,p=f!==void 0&&f;a=u==="auto"?t.min:u,i=d==="auto"?t.max:d;var g=l2().constant(s).rangeRound(r==="x"?[0,n]:[n,0]).nice();p===!0?g.domain([i,a]):g.domain([a,i]);var v=g;return v.type="symlog",v};function Kp(e,t,n,r){switch(e.type){case"linear":return zV(e,t,n,r);case"point":return VV(e,t,n);case"band":return qV(e,t,n,r);case"time":return GV(e,t,n);case"log":return ZV(e,t,n,r);case"symlog":return KV(e,t,n,r);default:throw new Error("invalid scale spec")}}var nw=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 a;return((a=e(r))!=null?a:0)+n}},rw={millisecond:[Uo,Uo],second:[jf,jf],minute:[F_,Y_],hour:[L_,G_],day:[Pt(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)}),Pt(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:[Pf,Df],sunday:[Pf,Df],monday:[U_,Z_],tuesday:[B_,K_],wednesday:[W_,X_],thursday:[z_,J_],friday:[H_,Q_],saturday:[V_,ew],month:[q_,tw],year:[Gp,Zp]},XV=Object.keys(rw),JV=new RegExp("^every\\s*(\\d+)?\\s*("+XV.join("|")+")s?$","i"),aw=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(JV);if(n){var r=n[1],a=n[2],i=rw[a][e.useUTC?1:0];if(a==="day"){var o,s,c=e.domain(),u=c[0],l=c[1],d=new Date(l);return d.setDate(d.getDate()+1),(o=(s=i.every(Number(r??1)))==null?void 0:s.range(u,d))!=null?o:[]}if(r===void 0)return e.ticks(i);var f=i.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(p=t)=="number"&&isFinite(p)&&Math.floor(p)===p)return e.ticks(t)}var p;return e.domain()};function Sn(){return Sn=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},Sn.apply(this,arguments)}var iw=function(e){var t,n=e.axis,r=e.scale,a=e.ticksPosition,i=e.tickValues,o=e.tickSize,s=e.tickPadding,c=e.tickRotation,u=e.truncateTickAt,l=e.engine,d=l===void 0?"svg":l,f=aw(r,i),p=IW[d],g="bandwidth"in r?nw(r):r,v={lineX:0,lineY:0},m={textX:0,textY:0},x=typeof document=="object"&&document.dir==="rtl",w=p.align.center,b=p.baseline.center;return n==="x"?(t=function(T){var _;return{x:(_=g(T))!=null?_:0,y:0}},v.lineY=o*(a==="after"?1:-1),m.textY=(o+s)*(a==="after"?1:-1),b=a==="after"?p.baseline.top:p.baseline.bottom,c===0?w=p.align.center:a==="after"&&c<0||a==="before"&&c>0?(w=p.align[x?"left":"right"],b=p.baseline.center):(a==="after"&&c>0||a==="before"&&c<0)&&(w=p.align[x?"right":"left"],b=p.baseline.center)):(t=function(T){var _;return{x:0,y:(_=g(T))!=null?_:0}},v.lineX=o*(a==="after"?1:-1),m.textX=(o+s)*(a==="after"?1:-1),w=a==="after"?p.align.left:p.align.right),{ticks:f.map(function(T){var _=typeof T=="string"?function(C){var $=String(C).length;return u&&u>0&&$>u?""+String(C).slice(0,u).concat("..."):""+C}(T):T;return Sn({key:T instanceof Date?""+T.valueOf():""+T,value:_},t(T),v,m)}),textAlign:w,textBaseline:b}},ow=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=Iu(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return os(e)},If=function(e){var t,n=e.width,r=e.height,a=e.scale,i=e.axis,o=e.values,s=(t=o,(Array.isArray(t)?o:void 0)||aw(a,o)),c="bandwidth"in a?nw(a):a,u=i==="x"?s.map(function(l){var d,f;return{key:l instanceof Date?""+l.valueOf():""+l,x1:(d=c(l))!=null?d:0,x2:(f=c(l))!=null?f:0,y1:0,y2:r}}):s.map(function(l){var d,f;return{key:l instanceof Date?""+l.valueOf():""+l,x1:0,x2:n,y1:(d=c(l))!=null?d:0,y2:(f=c(l))!=null?f:0}});return u},QV=h.memo(function(e){var t,n=e.value,r=e.format,a=e.lineX,i=e.lineY,o=e.onClick,s=e.textBaseline,c=e.textAnchor,u=e.animatedProps,l=lt(),d=l.axis.ticks.line,f=l.axis.ticks.text,p=(t=r==null?void 0:r(n))!=null?t:n,g=h.useMemo(function(){var v={opacity:u.opacity};return o?{style:Sn({},v,{cursor:"pointer"}),onClick:function(m){return o(m,p)}}:{style:v}},[u.opacity,o,p]);return y.jsxs(Qe.g,Sn({transform:u.transform},g,{children:[y.jsx("line",{x1:0,x2:a,y1:0,y2:i,style:d}),f.outlineWidth>0&&y.jsx(Qe.text,{dominantBaseline:s,textAnchor:c,transform:u.textTransform,style:f,strokeWidth:2*f.outlineWidth,stroke:f.outlineColor,strokeLinejoin:"round",children:""+p}),y.jsx(Qe.text,{dominantBaseline:s,textAnchor:c,transform:u.textTransform,style:Hp(f),children:""+p})]}))}),eq=function(e){var t=e.axis,n=e.scale,r=e.x,a=r===void 0?0:r,i=e.y,o=i===void 0?0:i,s=e.length,c=e.ticksPosition,u=e.tickValues,l=e.tickSize,d=l===void 0?5:l,f=e.tickPadding,p=f===void 0?5:f,g=e.tickRotation,v=g===void 0?0:g,m=e.format,x=e.renderTick,w=x===void 0?QV:x,b=e.truncateTickAt,T=e.legend,_=e.legendPosition,C=_===void 0?"end":_,$=e.legendOffset,A=$===void 0?0:$,D=e.onClick,j=e.ariaHidden,E=lt(),F=E.axis.legend.text,M=h.useMemo(function(){return ow(m,n)},[m,n]),R=iw({axis:t,scale:n,ticksPosition:c,tickValues:u,tickSize:d,tickPadding:p,tickRotation:v,truncateTickAt:b}),I=R.ticks,U=R.textAlign,N=R.textBaseline,q=null;if(T!==void 0){var z,P=0,W=0,Z=0;t==="y"?(Z=-90,P=A,C==="start"?(z="start",W=s):C==="middle"?(z="middle",W=s/2):C==="end"&&(z="end")):(W=A,C==="start"?z="start":C==="middle"?(z="middle",P=s/2):C==="end"&&(z="end",P=s)),q=y.jsxs(y.Fragment,{children:[F.outlineWidth>0&&y.jsx("text",{transform:"translate("+P+", "+W+") rotate("+Z+")",textAnchor:z,style:Sn({dominantBaseline:"central"},F),strokeWidth:2*F.outlineWidth,stroke:F.outlineColor,strokeLinejoin:"round",children:T}),y.jsx("text",{transform:"translate("+P+", "+W+") rotate("+Z+")",textAnchor:z,style:Sn({dominantBaseline:"central"},F),children:T})]})}var ne=un(),Y=ne.animate,Q=ne.config,G=vr({transform:"translate("+a+","+o+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:Q,immediate:!Y}),J=h.useCallback(function(V){return{opacity:1,transform:"translate("+V.x+","+V.y+")",textTransform:"translate("+V.textX+","+V.textY+") rotate("+v+")"}},[v]),re=h.useCallback(function(V){return{opacity:0,transform:"translate("+V.x+","+V.y+")",textTransform:"translate("+V.textX+","+V.textY+") rotate("+v+")"}},[v]),L=xa(I,{keys:function(V){return V.key},initial:J,from:re,enter:J,update:J,leave:{opacity:0},config:Q,immediate:!Y});return y.jsxs(Qe.g,{transform:G.transform,"aria-hidden":j,children:[L(function(V,ae,k,ge){return oe.createElement(w,Sn({tickIndex:ge,format:M,rotate:v,textBaseline:N,textAnchor:U,truncateTickAt:b,animatedProps:V},ae,D?{onClick:D}:{}))}),y.jsx(Qe.line,{style:E.axis.domain.line,x1:0,x2:G.lineX2,y1:0,y2:G.lineY2}),q]})},tq=h.memo(eq),sw=["top","right","bottom","left"],nq=h.memo(function(e){var t=e.xScale,n=e.yScale,r=e.width,a=e.height,i={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return y.jsx(y.Fragment,{children:sw.map(function(o){var s=i[o];if(!s)return null;var c=o==="top"||o==="bottom";return y.jsx(tq,Sn({},s,{axis:c?"x":"y",x:o==="right"?r:0,y:o==="bottom"?a:0,scale:c?t:n,length:c?r:a,ticksPosition:o==="top"||o==="left"?"before":"after",truncateTickAt:s.truncateTickAt}),o)})})}),rq=h.memo(function(e){var t=e.animatedProps,n=lt();return y.jsx(Qe.line,Sn({},t,n.grid.line))}),Cv=h.memo(function(e){var t=e.lines,n=un(),r=n.animate,a=n.config,i=xa(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:a,immediate:!r});return y.jsx("g",{children:i(function(o,s){return h.createElement(rq,Sn({},s,{key:s.key,animatedProps:o}))})})}),aq=h.memo(function(e){var t=e.width,n=e.height,r=e.xScale,a=e.yScale,i=e.xValues,o=e.yValues,s=h.useMemo(function(){return!!r&&If({width:t,height:n,scale:r,axis:"x",values:i})},[r,i,t,n]),c=h.useMemo(function(){return!!a&&If({width:t,height:n,scale:a,axis:"y",values:o})},[n,t,a,o]);return y.jsxs(y.Fragment,{children:[s&&y.jsx(Cv,{lines:s}),c&&y.jsx(Cv,{lines:c})]})}),iq=function(e,t){var n,r=t.axis,a=t.scale,i=t.x,o=i===void 0?0:i,s=t.y,c=s===void 0?0:s,u=t.length,l=t.ticksPosition,d=t.tickValues,f=t.tickSize,p=f===void 0?5:f,g=t.tickPadding,v=g===void 0?5:g,m=t.tickRotation,x=m===void 0?0:m,w=t.format,b=t.legend,T=t.legendPosition,_=T===void 0?"end":T,C=t.legendOffset,$=C===void 0?0:C,A=t.theme,D=iw({axis:r,scale:a,ticksPosition:l,tickValues:d,tickSize:p,tickPadding:v,tickRotation:x,engine:"canvas"}),j=D.ticks,E=D.textAlign,F=D.textBaseline;e.save(),e.translate(o,c),e.textAlign=E,e.textBaseline=F;var M=A.axis.ticks.text;e.font=(M.fontWeight?M.fontWeight+" ":"")+M.fontSize+"px "+M.fontFamily,((n=A.axis.domain.line.strokeWidth)!=null?n:0)>0&&(e.lineWidth=Number(A.axis.domain.line.strokeWidth),e.lineCap="square",A.axis.domain.line.stroke&&(e.strokeStyle=A.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(r==="x"?u:0,r==="x"?0:u),e.stroke());var R=typeof w=="function"?w:function(z){return""+z};if(j.forEach(function(z){var P;((P=A.axis.ticks.line.strokeWidth)!=null?P:0)>0&&(e.lineWidth=Number(A.axis.ticks.line.strokeWidth),e.lineCap="square",A.axis.ticks.line.stroke&&(e.strokeStyle=A.axis.ticks.line.stroke),e.beginPath(),e.moveTo(z.x,z.y),e.lineTo(z.x+z.lineX,z.y+z.lineY),e.stroke());var W=R(z.value);e.save(),e.translate(z.x+z.textX,z.y+z.textY),e.rotate(kn(x)),M.outlineWidth>0&&(e.strokeStyle=M.outlineColor,e.lineWidth=2*M.outlineWidth,e.lineJoin="round",e.strokeText(""+W,0,0)),A.axis.ticks.text.fill&&(e.fillStyle=M.fill),e.fillText(""+W,0,0),e.restore()}),b!==void 0){var I=0,U=0,N=0,q="center";r==="y"?(N=-90,I=$,_==="start"?(q="start",U=u):_==="middle"?(q="center",U=u/2):_==="end"&&(q="end")):(U=$,_==="start"?q="start":_==="middle"?(q="center",I=u/2):_==="end"&&(q="end",I=u)),e.translate(I,U),e.rotate(kn(N)),e.font=(A.axis.legend.text.fontWeight?A.axis.legend.text.fontWeight+" ":"")+A.axis.legend.text.fontSize+"px "+A.axis.legend.text.fontFamily,A.axis.legend.text.fill&&(e.fillStyle=A.axis.legend.text.fill),e.textAlign=q,e.textBaseline="middle",e.fillText(b,0,0)}e.restore()},oq=function(e,t){var n=t.xScale,r=t.yScale,a=t.width,i=t.height,o=t.top,s=t.right,c=t.bottom,u=t.left,l=t.theme,d={top:o,right:s,bottom:c,left:u};sw.forEach(function(f){var p=d[f];if(!p)return null;var g=f==="top"||f==="bottom",v=f==="top"||f==="left"?"before":"after",m=g?n:r,x=ow(p.format,m);iq(e,Sn({},p,{axis:g?"x":"y",x:f==="right"?a:0,y:f==="bottom"?i:0,scale:m,format:x,length:g?a:i,ticksPosition:v,theme:l}))})},kv=function(e,t){var n=t.width,r=t.height,a=t.scale,i=t.axis,o=t.values;If({width:n,height:r,scale:a,axis:i,values:o}).forEach(function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()})},sq=I_;function cq(e,t){var n=[];return sq(e,function(r,a,i){t(r,a,i)&&n.push(r)}),n}var uq=cq,lq=t_,dq=uq,fq=Yp,hq=cn;function pq(e,t){var n=hq(e)?lq:dq;return n(e,fq(t))}var mq=pq;const gq=Tt(mq);var vq=zr,yq=Un,bq="[object Number]";function xq(e){return typeof e=="number"||yq(e)&&vq(e)==bq}var _q=xq;const Sv=Tt(_q);function wq(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Tq=wq,Cq=_i,kq=ss;function Sq(e,t){return e&&Cq(t,kq(t),e)}var Oq=Sq,Eq=_i,$q=as;function Mq(e,t){return e&&Eq(t,$q(t),e)}var Rq=Mq,Aq=_i,jq=Lp;function Pq(e,t){return Aq(e,jq(e),t)}var Dq=Pq,Iq=Np,Nq=Zh,Fq=Lp,Lq=n_,Uq=Object.getOwnPropertySymbols,Bq=Uq?function(e){for(var t=[];e;)Iq(t,Fq(e)),e=Nq(e);return t}:Lq,cw=Bq,Wq=_i,zq=cw;function Hq(e,t){return Wq(e,zq(e),t)}var Vq=Hq,qq=e_,Yq=cw,Gq=as;function Zq(e){return qq(e,Gq,Yq)}var uw=Zq,Kq=Object.prototype,Xq=Kq.hasOwnProperty;function Jq(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Xq.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Qq=Jq,eY=Gh;function tY(e,t){var n=t?eY(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var nY=tY,rY=/\w*$/;function aY(e){var t=new e.constructor(e.source,rY.exec(e));return t.lastIndex=e.lastIndex,t}var iY=aY,Ov=gi,Ev=Ov?Ov.prototype:void 0,$v=Ev?Ev.valueOf:void 0;function oY(e){return $v?Object($v.call(e)):{}}var sY=oY,cY=Gh,uY=nY,lY=iY,dY=sY,fY=Ax,hY="[object Boolean]",pY="[object Date]",mY="[object Map]",gY="[object Number]",vY="[object RegExp]",yY="[object Set]",bY="[object String]",xY="[object Symbol]",_Y="[object ArrayBuffer]",wY="[object DataView]",TY="[object Float32Array]",CY="[object Float64Array]",kY="[object Int8Array]",SY="[object Int16Array]",OY="[object Int32Array]",EY="[object Uint8Array]",$Y="[object Uint8ClampedArray]",MY="[object Uint16Array]",RY="[object Uint32Array]";function AY(e,t,n){var r=e.constructor;switch(t){case _Y:return cY(e);case hY:case pY:return new r(+e);case wY:return uY(e,n);case TY:case CY:case kY:case SY:case OY:case EY:case $Y:case MY:case RY:return fY(e,n);case mY:return new r;case gY:case bY:return new r(e);case vY:return lY(e);case yY:return new r;case xY:return dY(e)}}var jY=AY,PY=hl,DY=Un,IY="[object Map]";function NY(e){return DY(e)&&PY(e)==IY}var FY=NY,LY=FY,UY=rs,Mv=ku,Rv=Mv&&Mv.isMap,BY=Rv?UY(Rv):LY,WY=BY,zY=hl,HY=Un,VY="[object Set]";function qY(e){return HY(e)&&zY(e)==VY}var YY=qY,GY=YY,ZY=rs,Av=ku,jv=Av&&Av.isSet,KY=jv?ZY(jv):GY,XY=KY,JY=wu,QY=Tq,eG=tp,tG=Oq,nG=Rq,rG=Mx,aG=jx,iG=Dq,oG=Vq,sG=r_,cG=uw,uG=hl,lG=Qq,dG=jY,fG=Dx,hG=cn,pG=Cu,mG=WY,gG=er,vG=XY,yG=ss,bG=as,xG=1,_G=2,wG=4,lw="[object Arguments]",TG="[object Array]",CG="[object Boolean]",kG="[object Date]",SG="[object Error]",dw="[object Function]",OG="[object GeneratorFunction]",EG="[object Map]",$G="[object Number]",fw="[object Object]",MG="[object RegExp]",RG="[object Set]",AG="[object String]",jG="[object Symbol]",PG="[object WeakMap]",DG="[object ArrayBuffer]",IG="[object DataView]",NG="[object Float32Array]",FG="[object Float64Array]",LG="[object Int8Array]",UG="[object Int16Array]",BG="[object Int32Array]",WG="[object Uint8Array]",zG="[object Uint8ClampedArray]",HG="[object Uint16Array]",VG="[object Uint32Array]",it={};it[lw]=it[TG]=it[DG]=it[IG]=it[CG]=it[kG]=it[NG]=it[FG]=it[LG]=it[UG]=it[BG]=it[EG]=it[$G]=it[fw]=it[MG]=it[RG]=it[AG]=it[jG]=it[WG]=it[zG]=it[HG]=it[VG]=!0;it[SG]=it[dw]=it[PG]=!1;function Us(e,t,n,r,a,i){var o,s=t&xG,c=t&_G,u=t&wG;if(n&&(o=a?n(e,r,a,i):n(e)),o!==void 0)return o;if(!gG(e))return e;var l=hG(e);if(l){if(o=lG(e),!s)return aG(e,o)}else{var d=uG(e),f=d==dw||d==OG;if(pG(e))return rG(e,s);if(d==fw||d==lw||f&&!a){if(o=c||f?{}:fG(e),!s)return c?oG(e,nG(o,e)):iG(e,tG(o,e))}else{if(!it[d])return a?e:{};o=dG(e,d,s)}}i||(i=new JY);var p=i.get(e);if(p)return p;i.set(e,o),vG(e)?e.forEach(function(m){o.add(Us(m,t,n,m,e,i))}):mG(e)&&e.forEach(function(m,x){o.set(x,Us(m,t,n,x,e,i))});var g=u?c?cG:sG:c?bG:yG,v=l?void 0:g(e);return QY(v||e,function(m,x){v&&(x=m,m=e[x]),eG(o,x,Us(m,t,n,x,e,i))}),o}var qG=Us;function YG(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r<a;)i[r]=e[r+t];return i}var GG=YG,ZG=is,KG=GG;function XG(e,t){return t.length<2?e:ZG(e,KG(t,0,-1))}var JG=XG,QG=wi,eZ=t2,tZ=JG,nZ=Ti;function rZ(e,t){return t=QG(t,e),e=tZ(e,t),e==null||delete e[nZ(eZ(t))]}var aZ=rZ,iZ=Jh;function oZ(e){return iZ(e)?void 0:e}var sZ=oZ,cZ=$u,uZ=qG,lZ=aZ,dZ=wi,fZ=_i,hZ=sZ,pZ=J2,mZ=uw,gZ=1,vZ=2,yZ=4,bZ=pZ(function(e,t){var n={};if(e==null)return n;var r=!1;t=cZ(t,function(i){return i=dZ(i,e),r||(r=i.length>1),i}),fZ(e,mZ(e),n),r&&(n=uZ(n,gZ|vZ|yZ,hZ));for(var a=t.length;a--;)lZ(n,t[a]);return n}),xZ=bZ;const hw=Tt(xZ);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 Nf={dotSize:4,noteWidth:120,noteTextOffset:8,animate:!0},_Z=function(e){var t=typeof e;return h.isValidElement(e)||t==="string"||t==="function"||t==="object"},wZ=function(e){var t=typeof e;return t==="string"||t==="function"},Bo=function(e){return e.type==="circle"},Ff=function(e){return e.type==="dot"},Wo=function(e){return e.type==="rect"},TZ=function(e){var t=e.data,n=e.annotations,r=e.getPosition,a=e.getDimensions;return n.reduce(function(i,o){var s=o.offset||0;return[].concat(i,gq(t,o.match).map(function(c){var u=r(c),l=a(c);return(Bo(o)||Wo(o))&&(l.size=l.size+2*s,l.width=l.width+2*s,l.height=l.height+2*s),Jn({},hw(o,["match","offset"]),u,l,{size:o.size||l.size,datum:c})}))},[])},CZ=function(e,t,n,r){var a=Math.atan2(r-t,n-e);return DW(vl(a))},pw=function(e){var t,n,r=e.x,a=e.y,i=e.noteX,o=e.noteY,s=e.noteWidth,c=s===void 0?Nf.noteWidth:s,u=e.noteTextOffset,l=u===void 0?Nf.noteTextOffset:u;if(Sv(i))t=r+i;else{if(i.abs===void 0)throw new Error("noteX should be either a number or an object containing an 'abs' property");t=i.abs}if(Sv(o))n=a+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=a,p=CZ(r,a,t,n);if(Bo(e)){var g=oa(kn(p),e.size/2);d+=g.x,f+=g.y}if(Wo(e)){var v=Math.round((p+90)/45)%8;v===0&&(f-=e.height/2),v===1&&(d+=e.width/2,f-=e.height/2),v===2&&(d+=e.width/2),v===3&&(d+=e.width/2,f+=e.height/2),v===4&&(f+=e.height/2),v===5&&(d-=e.width/2,f+=e.height/2),v===6&&(d-=e.width/2),v===7&&(d-=e.width/2,f-=e.height/2)}var m=t,x=t;return(p+90)%360>180?(m-=c,x-=c):x+=c,{points:[[d,f],[t,n],[x,n]],text:[m,n-l],angle:p+90}},mw=function(e){var t=e.data,n=e.annotations,r=e.getPosition,a=e.getDimensions;return h.useMemo(function(){return TZ({data:t,annotations:n,getPosition:r,getDimensions:a})},[t,n,r,a])},kZ=function(e){var t=e.annotations;return h.useMemo(function(){return t.map(function(n){return Jn({},n,{computed:pw(Jn({},n))})})},[t])},SZ=function(e){return h.useMemo(function(){return pw(e)},[e])},OZ=function(e){var t=e.datum,n=e.x,r=e.y,a=e.note,i=lt(),o=un(),s=o.animate,c=o.config,u=vr({x:n,y:r,config:c,immediate:!s});return typeof a=="function"?h.createElement(a,{x:n,y:r,datum:t}):y.jsxs(y.Fragment,{children:[i.annotations.text.outlineWidth>0&&y.jsx(Qe.text,{x:u.x,y:u.y,style:Jn({},i.annotations.text,{strokeLinejoin:"round",strokeWidth:2*i.annotations.text.outlineWidth,stroke:i.annotations.text.outlineColor}),children:a}),y.jsx(Qe.text,{x:u.x,y:u.y,style:hw(i.annotations.text,["outlineWidth","outlineColor"]),children:a})]})},Pv=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,a=lt(),i=h.useMemo(function(){var c=t[0];return t.slice(1).reduce(function(u,l){return u+" L"+l[0]+","+l[1]},"M"+c[0]+","+c[1])},[t]),o=wW(i);if(r&&a.annotations.link.outlineWidth<=0)return null;var s=Jn({},a.annotations.link);return r&&(s.strokeLinecap="square",s.strokeWidth=a.annotations.link.strokeWidth+2*a.annotations.link.outlineWidth,s.stroke=a.annotations.link.outlineColor,s.opacity=a.annotations.link.outlineOpacity),y.jsx(Qe.path,{fill:"none",d:o,style:s})},EZ=function(e){var t=e.x,n=e.y,r=e.size,a=lt(),i=un(),o=i.animate,s=i.config,c=vr({x:t,y:n,radius:r/2,config:s,immediate:!o});return y.jsxs(y.Fragment,{children:[a.annotations.outline.outlineWidth>0&&y.jsx(Qe.circle,{cx:c.x,cy:c.y,r:c.radius,style:Jn({},a.annotations.outline,{fill:"none",strokeWidth:a.annotations.outline.strokeWidth+2*a.annotations.outline.outlineWidth,stroke:a.annotations.outline.outlineColor,opacity:a.annotations.outline.outlineOpacity})}),y.jsx(Qe.circle,{cx:c.x,cy:c.y,r:c.radius,style:a.annotations.outline})]})},$Z=function(e){var t=e.x,n=e.y,r=e.size,a=r===void 0?Nf.dotSize:r,i=lt(),o=un(),s=o.animate,c=o.config,u=vr({x:t,y:n,radius:a/2,config:c,immediate:!s});return y.jsxs(y.Fragment,{children:[i.annotations.outline.outlineWidth>0&&y.jsx(Qe.circle,{cx:u.x,cy:u.y,r:u.radius,style:Jn({},i.annotations.outline,{fill:"none",strokeWidth:2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),y.jsx(Qe.circle,{cx:u.x,cy:u.y,r:u.radius,style:i.annotations.symbol})]})},MZ=function(e){var t=e.x,n=e.y,r=e.width,a=e.height,i=e.borderRadius,o=i===void 0?6:i,s=lt(),c=un(),u=c.animate,l=c.config,d=vr({x:t-r/2,y:n-a/2,width:r,height:a,config:l,immediate:!u});return y.jsxs(y.Fragment,{children:[s.annotations.outline.outlineWidth>0&&y.jsx(Qe.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:Jn({},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})}),y.jsx(Qe.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:s.annotations.outline})]})},RZ=function(e){var t=e.datum,n=e.x,r=e.y,a=e.note,i=SZ(e);if(!_Z(a))throw new Error("note should be a valid react element");return y.jsxs(y.Fragment,{children:[y.jsx(Pv,{points:i.points,isOutline:!0}),Bo(e)&&y.jsx(EZ,{x:n,y:r,size:e.size}),Ff(e)&&y.jsx($Z,{x:n,y:r,size:e.size}),Wo(e)&&y.jsx(MZ,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),y.jsx(Pv,{points:i.points}),y.jsx(OZ,{datum:t,x:i.text[0],y:i.text[1],note:a})]})},Dv=function(e,t){t.forEach(function(n,r){var a=n[0],i=n[1];r===0?e.moveTo(a,i):e.lineTo(a,i)})},AZ=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(a){if(!wZ(a.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(),Dv(e,a.computed.points),e.stroke(),e.lineCap="butt"),Bo(a)&&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(a.x,a.y,a.size/2,0,2*Math.PI),e.stroke()),Ff(a)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(a.x,a.y,a.size/2,0,2*Math.PI),e.stroke()),Wo(a)&&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(a.x-a.width/2,a.y-a.height/2,a.width,a.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),Dv(e,a.computed.points),e.stroke(),Bo(a)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(a.x,a.y,a.size/2,0,2*Math.PI),e.stroke()),Ff(a)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(a.x,a.y,a.size/2,0,2*Math.PI),e.fill()),Wo(a)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(a.x-a.width/2,a.y-a.height/2,a.width,a.height),e.stroke()),typeof a.note=="function"?a.note(e,{datum:a.datum,x:a.computed.text[0],y:a.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(a.note,a.computed.text[0],a.computed.text[1]),e.lineJoin="miter"),e.fillText(a.note,a.computed.text[0],a.computed.text[1]))}),e.restore())};function Ke(){return Ke=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},Ke.apply(this,arguments)}function Si(e,t){if(e==null)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var Iv,jZ=function(e){var t=e.bars,n=e.annotations,r=mw({data:t,annotations:n,getPosition:function(a){return{x:a.x+a.width/2,y:a.y+a.height/2}},getDimensions:function(a){var i=a.height,o=a.width;return{width:o,height:i,size:Math.max(o,i)}}});return y.jsx(y.Fragment,{children:r.map(function(a,i){return y.jsx(RZ,Ke({},a),i)})})},PZ=function(e){var t=e.width,n=e.height,r=e.legends,a=e.toggleSerie;return y.jsx(y.Fragment,{children:r.map(function(i,o){var s,c=i[0],u=i[1];return y.jsx(A_,Ke({},c,{containerWidth:t,containerHeight:n,data:(s=c.data)!=null?s:u,toggleSerie:c.toggleSerie&&c.dataFrom==="keys"?a:void 0}),o)})})},DZ=["data"],IZ=function(e){var t,n=e.bar,r=n.data,a=Si(n,DZ),i=e.style,o=i.borderColor,s=i.color,c=i.height,u=i.labelColor,l=i.labelOpacity,d=i.labelX,f=i.labelY,p=i.transform,g=i.width,v=e.borderRadius,m=e.borderWidth,x=e.label,w=e.shouldRenderLabel,b=e.isInteractive,T=e.onClick,_=e.onMouseEnter,C=e.onMouseLeave,$=e.tooltip,A=e.isFocusable,D=e.ariaLabel,j=e.ariaLabelledBy,E=e.ariaDescribedBy,F=lt(),M=Hh(),R=M.showTooltipFromEvent,I=M.showTooltipAt,U=M.hideTooltip,N=h.useMemo(function(){return function(){return h.createElement($,Ke({},a,r))}},[$,a,r]),q=h.useCallback(function(Y){T==null||T(Ke({color:a.color},r),Y)},[a,r,T]),z=h.useCallback(function(Y){return R(N(),Y)},[R,N]),P=h.useCallback(function(Y){_==null||_(r,Y),R(N(),Y)},[r,_,R,N]),W=h.useCallback(function(Y){C==null||C(r,Y),U()},[r,U,C]),Z=h.useCallback(function(){I(N(),[a.absX+a.width/2,a.absY])},[I,N,a]),ne=h.useCallback(function(){U()},[U]);return y.jsxs(Qe.g,{transform:p,children:[y.jsx(Qe.rect,{width:Fr(g,function(Y){return Math.max(Y,0)}),height:Fr(c,function(Y){return Math.max(Y,0)}),rx:v,ry:v,fill:(t=r.fill)!=null?t:s,strokeWidth:m,stroke:o,focusable:A,tabIndex:A?0:void 0,"aria-label":D?D(r):void 0,"aria-labelledby":j?j(r):void 0,"aria-describedby":E?E(r):void 0,onMouseEnter:b?P:void 0,onMouseMove:b?z:void 0,onMouseLeave:b?W:void 0,onClick:b?q:void 0,onFocus:b&&A?Z:void 0,onBlur:b&&A?ne:void 0}),w&&y.jsx(Qe.text,{x:d,y:f,textAnchor:"middle",dominantBaseline:"central",fillOpacity:l,style:Ke({},F.labels.text,{pointerEvents:"none",fill:u}),children:x})]})},NZ=["color","label"],FZ=function(e){var t=e.color,n=e.label,r=Si(e,NZ);return y.jsx(xx,{id:n,value:r.formattedValue,enableChip:!0,color:t})},tt={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:FZ,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],markers:[],enableTotals:!1,totalsOffset:10},st=Ke({},tt,{layers:["grid","axes","bars","totals","markers","legends","annotations"],barComponent:IZ,defs:[],fill:[],animate:!0,motionConfig:"default",role:"img",isFocusable:!1}),Nt=Ke({},tt,{layers:["grid","axes","bars","totals","legends","annotations"],pixelRatio:typeof window<"u"&&(Iv=window.devicePixelRatio)!=null?Iv:1}),gw=function(e,t,n,r,a,i){return Kp(r,{all:e.map(t),min:0,max:0},a,i).padding(n)},vw=function(e,t){return e.map(function(n){return Ke({},t.reduce(function(r,a){return r[a]=null,r},{}),n)})},yl=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},bl=function(e){return[e,Number(e)]},LZ=["layout","minValue","maxValue","reverse","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],Xp=function(e,t){return e>t},yw=function(e,t){return e<t},bw=function(e,t){return Array.from(" ".repeat(t-e),function(n,r){return e+r})},UZ=function(e){return Xp(e,0)?0:e},BZ=function(e,t,n,r){var a=e.data,i=e.formatValue,o=e.getColor,s=e.getIndex,c=e.getTooltipLabel,u=e.innerPadding,l=u===void 0?0:u,d=e.keys,f=e.xScale,p=e.yScale,g=e.margin,v=n?yw:Xp,m=a.map(yl),x=[];return d.forEach(function(w,b){return bw(0,f.domain().length).forEach(function(T){var _,C,$,A=bl(a[T][w]),D=A[0],j=A[1],E=s(a[T]),F=((_=f(E))!=null?_:0)+t*b+l*b,M=v(C=j,0)?($=p(C))!=null?$:0:r,R=function(U,N){var q;return v(U,0)?r-N:((q=p(U))!=null?q:0)-r}(j,M),I={id:w,value:D===null?D:j,formattedValue:i(j),hidden:!1,index:T,indexValue:E,data:m[T]};x.push({key:w+"."+I.indexValue,index:x.length,data:I,x:F,y:M,absX:g.left+F,absY:g.top+M,width:t,height:R,color:o(I),label:c(I)})})}),x},WZ=function(e,t,n,r){var a=e.data,i=e.formatValue,o=e.getIndex,s=e.getColor,c=e.getTooltipLabel,u=e.keys,l=e.innerPadding,d=l===void 0?0:l,f=e.xScale,p=e.yScale,g=e.margin,v=n?yw:Xp,m=a.map(yl),x=[];return u.forEach(function(w,b){return bw(0,p.domain().length).forEach(function(T){var _,C,$,A=bl(a[T][w]),D=A[0],j=A[1],E=o(a[T]),F=v(C=j,0)?r:($=f(C))!=null?$:0,M=((_=p(E))!=null?_:0)+t*b+d*b,R=function(U,N){var q;return v(U,0)?((q=f(U))!=null?q:0)-r:r-N}(j,F),I={id:w,value:D===null?D:j,formattedValue:i(j),hidden:!1,index:T,indexValue:E,data:m[T]};x.push({key:w+"."+I.indexValue,index:x.length,data:I,x:F,y:M,absX:g.left+F,absY:g.top+M,width:R,height:t,color:s(I),label:c(I)})})}),x},zZ=function(e){var t,n,r=e.layout,a=e.minValue,i=e.maxValue,o=e.reverse,s=e.width,c=e.height,u=e.padding,l=u===void 0?0:u,d=e.innerPadding,f=d===void 0?0:d,p=e.valueScale,g=e.indexScale,v=e.hiddenIds,m=v===void 0?[]:v,x=Si(e,LZ),w=x.keys.filter(function(P){return!m.includes(P)}),b=vw(x.data,w),T=r==="vertical"?["y","x",s]:["x","y",c],_=T[0],C=T[1],$=T[2],A=gw(b,x.getIndex,l,g,$,C),D=Ke({max:i,min:a,reverse:o},p),j=D.min==="auto"?UZ:function(P){return P},E=b.reduce(function(P,W){return[].concat(P,w.map(function(Z){return W[Z]}))},[]).filter(Boolean),F=j(Math.min.apply(Math,E)),M=(n=Math.max.apply(Math,E),isFinite(n)?n:0),R=Kp(D,{all:E,min:F,max:M},_==="x"?s:c,_),I=r==="vertical"?[A,R]:[R,A],U=I[0],N=I[1],q=(A.bandwidth()-f*(w.length-1))/w.length,z=[Ke({},x,{data:b,keys:w,innerPadding:f,xScale:U,yScale:N}),q,D.reverse,(t=R(0))!=null?t:0];return{xScale:U,yScale:N,bars:q>0?r==="vertical"?BZ.apply(void 0,z):WZ.apply(void 0,z):[]}},HZ=["data","layout","minValue","maxValue","reverse","width","height","padding","valueScale","indexScale","hiddenIds"],VZ=function e(t){var n;return t.some(Array.isArray)?e((n=[]).concat.apply(n,t)):t},qZ=function(e,t,n){var r=e.formatValue,a=e.getColor,i=e.getIndex,o=e.getTooltipLabel,s=e.innerPadding,c=e.stackedData,u=e.xScale,l=e.yScale,d=e.margin,f=[];return c.forEach(function(p){return u.domain().forEach(function(g,v){var m,x,w=p[v],b=(m=u(i(w.data)))!=null?m:0,T=((x=function(j){return l(j[n?0:1])}(w))!=null?x:0)+.5*s,_=function(j,E){var F;return((F=l(j[n?1:0]))!=null?F:0)-E}(w,T)-s,C=bl(w.data[p.key]),$=C[0],A=C[1],D={id:p.key,value:$===null?$:A,formattedValue:r(A),hidden:!1,index:v,indexValue:g,data:yl(w.data)};f.push({key:p.key+"."+g,index:f.length,data:D,x:b,y:T,absX:d.left+b,absY:d.top+T,width:t,height:_,color:a(D),label:o(D)})})}),f},YZ=function(e,t,n){var r=e.formatValue,a=e.getColor,i=e.getIndex,o=e.getTooltipLabel,s=e.innerPadding,c=e.stackedData,u=e.xScale,l=e.yScale,d=e.margin,f=[];return c.forEach(function(p){return l.domain().forEach(function(g,v){var m,x,w=p[v],b=(m=l(i(w.data)))!=null?m:0,T=((x=function(j){return u(j[n?1:0])}(w))!=null?x:0)+.5*s,_=function(j,E){var F;return((F=u(j[n?0:1]))!=null?F:0)-E}(w,T)-s,C=bl(w.data[p.key]),$=C[0],A=C[1],D={id:p.key,value:$===null?$:A,formattedValue:r(A),hidden:!1,index:v,indexValue:g,data:yl(w.data)};f.push({key:p.key+"."+g,index:f.length,data:D,x:T,y:b,absX:d.left+T,absY:d.top+b,width:_,height:t,color:a(D),label:o(D)})})}),f},GZ=function(e){var t,n=e.data,r=e.layout,a=e.minValue,i=e.maxValue,o=e.reverse,s=e.width,c=e.height,u=e.padding,l=u===void 0?0:u,d=e.valueScale,f=e.indexScale,p=e.hiddenIds,g=p===void 0?[]:p,v=Si(e,HZ),m=v.keys.filter(function(q){return!g.includes(q)}),x=BL().keys(m).offset(WL)(vw(n,m)),w=r==="vertical"?["y","x",s]:["x","y",c],b=w[0],T=w[1],_=w[2],C=gw(n,v.getIndex,l,f,_,T),$=Ke({max:i,min:a,reverse:o},d),A=(t=VZ(x),d.type==="log"?t.filter(function(q){return q!==0}):t),D=Math.min.apply(Math,A),j=Math.max.apply(Math,A),E=Kp($,{all:A,min:D,max:j},b==="x"?s:c,b),F=r==="vertical"?[C,E]:[E,C],M=F[0],R=F[1],I=v.innerPadding>0?v.innerPadding:0,U=C.bandwidth(),N=[Ke({},v,{innerPadding:I,stackedData:x,xScale:M,yScale:R}),U,$.reverse];return{xScale:M,yScale:R,bars:U>0?r==="vertical"?qZ.apply(void 0,N):YZ.apply(void 0,N):[]}},ZZ=function(e){var t=e.bars,n=e.direction,r=e.from,a=e.groupMode,i=e.layout,o=e.legendLabel,s=e.reverse,c=__(o??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(u,l,d){var f=xv(u.map(function(p){var g,v;return{id:(g=p.data.indexValue)!=null?g:"",label:d(p.data),hidden:p.data.hidden,color:(v=p.color)!=null?v:"#000"}}),function(p){return p.id});return l==="horizontal"&&f.reverse(),f}(t,i,c):function(u,l,d,f,p,g){var v=xv(u.map(function(m){var x;return{id:m.data.id,label:g(m.data),hidden:m.data.hidden,color:(x=m.color)!=null?x:"#000"}}),function(m){return m.id});return(l==="vertical"&&f==="stacked"&&d==="column"&&p!==!0||l==="horizontal"&&f==="stacked"&&p===!0)&&v.reverse(),v}(t,i,n,a,s,c)},Nv=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},KZ=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},XZ=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},JZ=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},xw=function(e){var t=e.indexBy,n=t===void 0?tt.indexBy:t,r=e.keys,a=r===void 0?tt.keys:r,i=e.label,o=i===void 0?tt.label:i,s=e.tooltipLabel,c=s===void 0?tt.tooltipLabel:s,u=e.valueFormat,l=e.colors,d=l===void 0?tt.colors:l,f=e.colorBy,p=f===void 0?tt.colorBy:f,g=e.borderColor,v=g===void 0?tt.borderColor:g,m=e.labelTextColor,x=m===void 0?tt.labelTextColor:m,w=e.groupMode,b=w===void 0?tt.groupMode:w,T=e.layout,_=T===void 0?tt.layout:T,C=e.reverse,$=C===void 0?tt.reverse:C,A=e.data,D=e.minValue,j=D===void 0?tt.minValue:D,E=e.maxValue,F=E===void 0?tt.maxValue:E,M=e.margin,R=e.width,I=e.height,U=e.padding,N=U===void 0?tt.padding:U,q=e.innerPadding,z=q===void 0?tt.innerPadding:q,P=e.valueScale,W=P===void 0?tt.valueScale:P,Z=e.indexScale,ne=Z===void 0?tt.indexScale:Z,Y=e.initialHiddenIds,Q=Y===void 0?tt.initialHiddenIds:Y,G=e.enableLabel,J=G===void 0?tt.enableLabel:G,re=e.labelSkipWidth,L=re===void 0?tt.labelSkipWidth:re,V=e.labelSkipHeight,ae=V===void 0?tt.labelSkipHeight:V,k=e.legends,ge=k===void 0?tt.legends:k,pe=e.legendLabel,de=e.totalsOffset,Ae=de===void 0?tt.totalsOffset:de,Pe=h.useState(Q??[]),ft=Pe[0],gt=Pe[1],We=h.useCallback(function(De){gt(function(je){return je.indexOf(De)>-1?je.filter(function(Ue){return Ue!==De}):[].concat(je,[De])})},[]),rt=sa(n),Ze=sa(o),xt=sa(c),_t=pl(u),at=lt(),xe=S_(d,p),Xe=si(v,at),Ct=si(x,at),Xt=(b==="grouped"?zZ:GZ)({layout:_,reverse:$,data:A,getIndex:rt,keys:a,minValue:j,maxValue:F,width:R,height:I,getColor:xe,padding:N,innerPadding:z,valueScale:W,indexScale:ne,hiddenIds:ft,formatValue:_t,getTooltipLabel:xt,margin:M}),kt=Xt.bars,ht=Xt.xScale,wt=Xt.yScale,ln=h.useMemo(function(){return kt.filter(function(De){return De.data.value!==null}).map(function(De,je){return Ke({},De,{index:je})})},[kt]),vt=h.useCallback(function(De){var je=De.width,Ue=De.height;return!!J&&!(L>0&&je<L)&&!(ae>0&&Ue<ae)},[J,L,ae]),At=h.useMemo(function(){return a.map(function(De){var je=kt.find(function(Ue){return Ue.data.id===De});return Ke({},je,{data:Ke({id:De},je==null?void 0:je.data,{hidden:ft.includes(De)})})})},[ft,a,kt]),St=h.useMemo(function(){return ge.map(function(De){return[De,ZZ({bars:De.dataFrom==="keys"?At:kt,direction:De.direction,from:De.dataFrom,groupMode:b,layout:_,legendLabel:pe,reverse:$})]})},[ge,At,kt,b,_,pe,$]),Jt=h.useMemo(function(){return function(De,je,Ue,pt,Ot,Et,xn){pt===void 0&&(pt=tt.layout),Ot===void 0&&(Ot=tt.groupMode);var Qt=[];if(De.length===0)return Qt;var Lt=new Map,dn=De[0].width,It=De[0].height;if(Ot==="stacked"){var qt=new Map;De.forEach(function(ze){var Ne=ze.data,Me=Ne.indexValue,et=Ne.value;Nv(Lt,Me,Number(et)),KZ(qt,Me,Number(et))}),qt.forEach(function(ze,Ne){var Me,et,Yt,jt=Lt.get(Ne)||0;pt==="vertical"?(Me=je(Ne),et=Ue(ze),Yt=Ue(ze/2)):(Me=je(ze),et=Ue(Ne),Yt=je(ze/2)),Me+=pt==="vertical"?dn/2:Et,et+=pt==="vertical"?-Et:It/2,Qt.push({key:"total_"+Ne,x:Me,y:et,value:jt,formattedValue:xn(jt),animationOffset:Yt})})}else if(Ot==="grouped"){var _n=new Map,en=new Map;De.forEach(function(ze){var Ne=ze.data,Me=Ne.indexValue,et=Ne.value;Nv(Lt,Me,Number(et)),XZ(_n,Me,Number(et)),JZ(en,Me)}),_n.forEach(function(ze,Ne){var Me,et,Yt,jt=Lt.get(Ne)||0,S=en.get(Ne);pt==="vertical"?(Me=je(Ne),et=Ue(ze),Yt=Ue(ze/2)):(Me=je(ze),et=Ue(Ne),Yt=je(ze/2)),Me+=pt==="vertical"?S*dn/2:Et,et+=pt==="vertical"?-Et:S*It/2,Qt.push({key:"total_"+Ne,x:Me,y:et,value:jt,formattedValue:xn(jt),animationOffset:Yt})})}return Qt}(kt,ht,wt,_,b,Ae,_t)},[kt,ht,wt,_,b,Ae,_t]);return{bars:kt,barsWithValue:ln,xScale:ht,yScale:wt,getIndex:rt,getLabel:Ze,getTooltipLabel:xt,formatValue:_t,getColor:xe,getBorderColor:Xe,getLabelColor:Ct,shouldRenderBarLabel:vt,hiddenIds:ft,toggleSerie:We,legendsWithData:St,barTotals:Jt}},QZ=function(e){var t=e.data,n=e.springConfig,r=e.animate,a=e.layout,i=a===void 0?st.layout:a,o=lt();return xa(t,{keys:function(s){return s.key},from:function(s){return{x:i==="vertical"?s.x:s.animationOffset,y:i==="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:i==="vertical"?s.x:s.animationOffset,y:i==="vertical"?s.animationOffset:s.y,labelOpacity:0}},config:n,immediate:!r,initial:r?void 0:null})(function(s,c){return y.jsx(Qe.text,{x:s.x,y:s.y,fillOpacity:s.labelOpacity,style:Ke({},o.labels.text,{pointerEvents:"none",fill:o.text.fill}),fontWeight:"bold",fontSize:o.labels.text.fontSize,fontFamily:o.labels.text.fontFamily,textAnchor:i==="vertical"?"middle":"start",alignmentBaseline:i==="vertical"?"alphabetic":"middle",children:c.formattedValue},c.key)})},eK=["isInteractive","animate","motionConfig","theme","renderWrapper"],tK=function(e){var t=e.data,n=e.indexBy,r=e.keys,a=e.margin,i=e.width,o=e.height,s=e.groupMode,c=e.layout,u=e.reverse,l=e.minValue,d=e.maxValue,f=e.valueScale,p=e.indexScale,g=e.padding,v=e.innerPadding,m=e.axisTop,x=e.axisRight,w=e.axisBottom,b=w===void 0?st.axisBottom:w,T=e.axisLeft,_=T===void 0?st.axisLeft:T,C=e.enableGridX,$=C===void 0?st.enableGridX:C,A=e.enableGridY,D=A===void 0?st.enableGridY:A,j=e.gridXValues,E=e.gridYValues,F=e.layers,M=F===void 0?st.layers:F,R=e.barComponent,I=R===void 0?st.barComponent:R,U=e.enableLabel,N=U===void 0?st.enableLabel:U,q=e.label,z=e.labelSkipWidth,P=z===void 0?st.labelSkipWidth:z,W=e.labelSkipHeight,Z=W===void 0?st.labelSkipHeight:W,ne=e.labelTextColor,Y=e.markers,Q=Y===void 0?st.markers:Y,G=e.colorBy,J=e.colors,re=e.defs,L=re===void 0?st.defs:re,V=e.fill,ae=V===void 0?st.fill:V,k=e.borderRadius,ge=k===void 0?st.borderRadius:k,pe=e.borderWidth,de=pe===void 0?st.borderWidth:pe,Ae=e.borderColor,Pe=e.annotations,ft=Pe===void 0?st.annotations:Pe,gt=e.legendLabel,We=e.tooltipLabel,rt=e.valueFormat,Ze=e.isInteractive,xt=Ze===void 0?st.isInteractive:Ze,_t=e.tooltip,at=_t===void 0?st.tooltip:_t,xe=e.onClick,Xe=e.onMouseEnter,Ct=e.onMouseLeave,Xt=e.legends,kt=e.role,ht=kt===void 0?st.role:kt,wt=e.ariaLabel,ln=e.ariaLabelledBy,vt=e.ariaDescribedBy,At=e.isFocusable,St=At===void 0?st.isFocusable:At,Jt=e.barAriaLabel,De=e.barAriaLabelledBy,je=e.barAriaDescribedBy,Ue=e.initialHiddenIds,pt=e.enableTotals,Ot=pt===void 0?st.enableTotals:pt,Et=e.totalsOffset,xn=Et===void 0?st.totalsOffset:Et,Qt=un(),Lt=Qt.animate,dn=Qt.config,It=zp(i,o,a),qt=It.outerWidth,_n=It.outerHeight,en=It.margin,ze=It.innerWidth,Ne=It.innerHeight,Me=xw({indexBy:n,label:q,tooltipLabel:We,valueFormat:rt,colors:J,colorBy:G,borderColor:Ae,labelTextColor:ne,groupMode:s,layout:c,reverse:u,data:t,keys:r,minValue:l,maxValue:d,margin:en,width:ze,height:Ne,padding:g,innerPadding:v,valueScale:f,indexScale:p,enableLabel:N,labelSkipWidth:P,labelSkipHeight:Z,legends:Xt,legendLabel:gt,initialHiddenIds:Ue,totalsOffset:xn}),et=Me.bars,Yt=Me.barsWithValue,jt=Me.xScale,S=Me.yScale,K=Me.getLabel,H=Me.getTooltipLabel,X=Me.getBorderColor,fe=Me.getLabelColor,ve=Me.shouldRenderBarLabel,le=Me.toggleSerie,he=Me.legendsWithData,ke=Me.barTotals,Te=xa(Yt,{keys:function(se){return se.key},from:function(se){return Ke({borderColor:X(se),color:se.color,height:0,labelColor:fe(se),labelOpacity:0,labelX:se.width/2,labelY:se.height/2,transform:"translate("+se.x+", "+(se.y+se.height)+")",width:se.width},c==="vertical"?{}:{height:se.height,transform:"translate("+se.x+", "+se.y+")",width:0})},enter:function(se){return{borderColor:X(se),color:se.color,height:se.height,labelColor:fe(se),labelOpacity:1,labelX:se.width/2,labelY:se.height/2,transform:"translate("+se.x+", "+se.y+")",width:se.width}},update:function(se){return{borderColor:X(se),color:se.color,height:se.height,labelColor:fe(se),labelOpacity:1,labelX:se.width/2,labelY:se.height/2,transform:"translate("+se.x+", "+se.y+")",width:se.width}},leave:function(se){return Ke({borderColor:X(se),color:se.color,height:0,labelColor:fe(se),labelOpacity:0,labelX:se.width/2,labelY:0,transform:"translate("+se.x+", "+(se.y+se.height)+")",width:se.width},c==="vertical"?{}:{labelX:0,labelY:se.height/2,height:se.height,transform:"translate("+se.x+", "+se.y+")",width:0})},config:dn,immediate:!Lt,initial:Lt?void 0:null}),Je=h.useMemo(function(){return{borderRadius:ge,borderWidth:de,enableLabel:N,isInteractive:xt,labelSkipWidth:P,labelSkipHeight:Z,onClick:xe,onMouseEnter:Xe,onMouseLeave:Ct,getTooltipLabel:H,tooltip:at,isFocusable:St,ariaLabel:Jt,ariaLabelledBy:De,ariaDescribedBy:je}},[ge,de,N,H,xt,Z,P,xe,Xe,Ct,at,St,Jt,De,je]),$t=w_(L,et,ae,{dataKey:"data",targetKey:"data.fill"}),yt={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};M.includes("annotations")&&(yt.annotations=y.jsx(jZ,{bars:et,annotations:ft},"annotations")),M.includes("axes")&&(yt.axes=y.jsx(nq,{xScale:jt,yScale:S,width:ze,height:Ne,top:m,right:x,bottom:b,left:_},"axes")),M.includes("bars")&&(yt.bars=y.jsx(h.Fragment,{children:Te(function(se,hn){return h.createElement(I,Ke({},Je,{bar:hn,style:se,shouldRenderLabel:ve(hn),label:K(hn.data)}))})},"bars")),M.includes("grid")&&(yt.grid=y.jsx(aq,{width:ze,height:Ne,xScale:$?jt:null,yScale:D?S:null,xValues:j,yValues:E},"grid")),M.includes("legends")&&(yt.legends=y.jsx(PZ,{width:ze,height:Ne,legends:he,toggleSerie:le},"legends")),M.includes("markers")&&(yt.markers=y.jsx(BW,{markers:Q,width:ze,height:Ne,xScale:jt,yScale:S},"markers")),M.includes("totals")&&Ot&&(yt.totals=y.jsx(QZ,{data:ke,springConfig:dn,animate:Lt,layout:c},"totals"));var fn=h.useMemo(function(){return Ke({},Je,{margin:en,width:i,height:o,innerWidth:ze,innerHeight:Ne,bars:et,legendData:he,enableLabel:N,xScale:jt,yScale:S,tooltip:at,getTooltipLabel:H,onClick:xe,onMouseEnter:Xe,onMouseLeave:Ct})},[Je,en,i,o,ze,Ne,et,he,N,jt,S,at,H,xe,Xe,Ct]);return y.jsx(Vp,{width:qt,height:_n,margin:en,defs:$t,role:ht,ariaLabel:wt,ariaLabelledBy:ln,ariaDescribedBy:vt,isFocusable:St,children:M.map(function(se,hn){var Mt;return typeof se=="function"?y.jsx(h.Fragment,{children:h.createElement(se,fn)},hn):(Mt=yt==null?void 0:yt[se])!=null?Mt:null})})},nK=function(e){var t=e.isInteractive,n=t===void 0?st.isInteractive:t,r=e.animate,a=r===void 0?st.animate:r,i=e.motionConfig,o=i===void 0?st.motionConfig:i,s=e.theme,c=e.renderWrapper,u=Si(e,eK);return y.jsx(ml,{animate:a,isInteractive:n,motionConfig:o,renderWrapper:c,theme:s,children:y.jsx(tK,Ke({isInteractive:n},u))})},rK=["isInteractive","renderWrapper","theme"],md=function(e,t,n,r){return e.find(function(a){return WW(a.x+t.left,a.y+t.top,a.width,a.height,n,r)})},aK=function(e){var t=e.data,n=e.indexBy,r=e.keys,a=e.margin,i=e.width,o=e.height,s=e.groupMode,c=e.layout,u=e.reverse,l=e.minValue,d=e.maxValue,f=e.valueScale,p=e.indexScale,g=e.padding,v=e.innerPadding,m=e.axisTop,x=e.axisRight,w=e.axisBottom,b=w===void 0?Nt.axisBottom:w,T=e.axisLeft,_=T===void 0?Nt.axisLeft:T,C=e.enableGridX,$=C===void 0?Nt.enableGridX:C,A=e.enableGridY,D=A===void 0?Nt.enableGridY:A,j=e.gridXValues,E=e.gridYValues,F=e.layers,M=F===void 0?Nt.layers:F,R=e.renderBar,I=R===void 0?function(H,X){var fe=X.bar,ve=fe.color,le=fe.height,he=fe.width,ke=fe.x,Te=fe.y,Je=X.borderColor,$t=X.borderRadius,yt=X.borderWidth,fn=X.label,se=X.labelColor,hn=X.shouldRenderLabel;if(H.fillStyle=ve,yt>0&&(H.strokeStyle=Je,H.lineWidth=yt),H.beginPath(),$t>0){var Mt=Math.min($t,le);H.moveTo(ke+Mt,Te),H.lineTo(ke+he-Mt,Te),H.quadraticCurveTo(ke+he,Te,ke+he,Te+Mt),H.lineTo(ke+he,Te+le-Mt),H.quadraticCurveTo(ke+he,Te+le,ke+he-Mt,Te+le),H.lineTo(ke+Mt,Te+le),H.quadraticCurveTo(ke,Te+le,ke,Te+le-Mt),H.lineTo(ke,Te+Mt),H.quadraticCurveTo(ke,Te,ke+Mt,Te),H.closePath()}else H.rect(ke,Te,he,le);H.fill(),yt>0&&H.stroke(),hn&&(H.textBaseline="middle",H.textAlign="center",H.fillStyle=se,H.fillText(fn,ke+he/2,Te+le/2))}:R,U=e.enableLabel,N=U===void 0?Nt.enableLabel:U,q=e.label,z=e.labelSkipWidth,P=z===void 0?Nt.labelSkipWidth:z,W=e.labelSkipHeight,Z=W===void 0?Nt.labelSkipHeight:W,ne=e.labelTextColor,Y=e.colorBy,Q=e.colors,G=e.borderRadius,J=G===void 0?Nt.borderRadius:G,re=e.borderWidth,L=re===void 0?Nt.borderWidth:re,V=e.borderColor,ae=e.annotations,k=ae===void 0?Nt.annotations:ae,ge=e.legendLabel,pe=e.tooltipLabel,de=e.valueFormat,Ae=e.isInteractive,Pe=Ae===void 0?Nt.isInteractive:Ae,ft=e.tooltip,gt=ft===void 0?Nt.tooltip:ft,We=e.onClick,rt=e.onMouseEnter,Ze=e.onMouseLeave,xt=e.legends,_t=e.pixelRatio,at=_t===void 0?Nt.pixelRatio:_t,xe=e.canvasRef,Xe=e.enableTotals,Ct=Xe===void 0?Nt.enableTotals:Xe,Xt=e.totalsOffset,kt=Xt===void 0?Nt.totalsOffset:Xt,ht=h.useRef(null),wt=lt(),ln=zp(i,o,a),vt=ln.margin,At=ln.innerWidth,St=ln.innerHeight,Jt=ln.outerWidth,De=ln.outerHeight,je=xw({indexBy:n,label:q,tooltipLabel:pe,valueFormat:de,colors:Q,colorBy:Y,borderColor:V,labelTextColor:ne,groupMode:s,layout:c,reverse:u,data:t,keys:r,minValue:l,maxValue:d,margin:vt,width:At,height:St,padding:g,innerPadding:v,valueScale:f,indexScale:p,enableLabel:N,labelSkipWidth:P,labelSkipHeight:Z,legends:xt,legendLabel:ge,totalsOffset:kt}),Ue=je.bars,pt=je.barsWithValue,Ot=je.xScale,Et=je.yScale,xn=je.getLabel,Qt=je.getTooltipLabel,Lt=je.getBorderColor,dn=je.getLabelColor,It=je.shouldRenderBarLabel,qt=je.legendsWithData,_n=je.barTotals,en=Hh(),ze=en.showTooltipFromEvent,Ne=en.hideTooltip,Me=kZ({annotations:mw({data:Ue,annotations:k,getPosition:function(H){return{x:H.x,y:H.y}},getDimensions:function(H){var X=H.width,fe=H.height;return{width:X,height:fe,size:Math.max(X,fe)}}})}),et=h.useMemo(function(){return{borderRadius:J,borderWidth:L,isInteractive:Pe,isFocusable:!1,labelSkipWidth:P,labelSkipHeight:Z,margin:vt,width:i,height:o,innerWidth:At,innerHeight:St,bars:Ue,legendData:qt,enableLabel:N,xScale:Ot,yScale:Et,tooltip:gt,getTooltipLabel:Qt,onClick:We,onMouseEnter:rt,onMouseLeave:Ze}},[J,L,Pe,P,Z,vt,i,o,At,St,Ue,qt,N,Ot,Et,gt,Qt,We,rt,Ze]),Yt=pl(de);h.useEffect(function(){var H,X=(H=ht.current)==null?void 0:H.getContext("2d");ht.current&&X&&(ht.current.width=Jt*at,ht.current.height=De*at,X.scale(at,at),X.fillStyle=wt.background,X.fillRect(0,0,Jt,De),X.translate(vt.left,vt.top),M.forEach(function(fe){fe==="grid"?typeof wt.grid.line.strokeWidth=="number"&&wt.grid.line.strokeWidth>0&&(X.lineWidth=wt.grid.line.strokeWidth,X.strokeStyle=wt.grid.line.stroke,$&&kv(X,{width:At,height:St,scale:Ot,axis:"x",values:j}),D&&kv(X,{width:At,height:St,scale:Et,axis:"y",values:E})):fe==="axes"?oq(X,{xScale:Ot,yScale:Et,width:At,height:St,top:m,right:x,bottom:b,left:_,theme:wt}):fe==="bars"?pt.forEach(function(ve){I(X,{bar:ve,borderColor:Lt(ve),borderRadius:J,borderWidth:L,label:xn(ve.data),labelColor:dn(ve),shouldRenderLabel:It(ve)})}):fe==="legends"?qt.forEach(function(ve){var le=ve[0],he=ve[1];Dz(X,Ke({},le,{data:he,containerWidth:At,containerHeight:St,theme:wt}))}):fe==="annotations"?AZ(X,{annotations:Me,theme:wt}):fe==="totals"&&Ct?function(ve,le,he,ke){ke===void 0&&(ke=Nt.layout),ve.fillStyle=he.text.fill,ve.font="bold "+he.labels.text.fontSize+"px "+he.labels.text.fontFamily,ve.textBaseline=ke==="vertical"?"alphabetic":"middle",ve.textAlign=ke==="vertical"?"center":"start",le.forEach(function(Te){ve.fillText(Te.formattedValue,Te.x,Te.y)})}(X,_n,wt,c):typeof fe=="function"&&fe(X,et)}),X.save())},[b,_,x,m,pt,J,L,Me,$,D,Lt,xn,dn,j,E,s,o,St,At,et,M,c,qt,vt.left,vt.top,De,Jt,at,I,Ot,Et,u,It,wt,i,_n,Ct,Yt]);var jt=h.useCallback(function(H){if(Ue&&ht.current){var X=ud(ht.current,H),fe=X[0],ve=X[1],le=md(Ue,vt,fe,ve);le!==void 0?(ze(h.createElement(gt,Ke({},le.data,{color:le.color,label:le.label,value:Number(le.data.value)})),H),H.type==="mouseenter"&&(rt==null||rt(le.data,H))):Ne()}},[Ne,vt,rt,Ue,ze,gt]),S=h.useCallback(function(H){if(Ue&&ht.current){Ne();var X=ud(ht.current,H),fe=X[0],ve=X[1],le=md(Ue,vt,fe,ve);le&&(Ze==null||Ze(le.data,H))}},[Ne,vt,Ze,Ue]),K=h.useCallback(function(H){if(Ue&&ht.current){var X=ud(ht.current,H),fe=X[0],ve=X[1],le=md(Ue,vt,fe,ve);le!==void 0&&(We==null||We(Ke({},le.data,{color:le.color}),H))}},[vt,We,Ue]);return y.jsx("canvas",{ref:function(H){ht.current=H,xe&&"current"in xe&&(xe.current=H)},width:Jt*at,height:De*at,style:{width:Jt,height:De,cursor:Pe?"auto":"normal"},onMouseEnter:Pe?jt:void 0,onMouseMove:Pe?jt:void 0,onMouseLeave:Pe?S:void 0,onClick:Pe?K:void 0})},iK=h.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,a=e.theme,i=Si(e,rK);return y.jsx(ml,{isInteractive:n,renderWrapper:r,theme:a,animate:!1,children:y.jsx(aK,Ke({},i,{canvasRef:t}))})}),oK=function(e){return y.jsx(gl,{children:function(t){var n=t.width,r=t.height;return y.jsx(nK,Ke({width:n,height:r},e))}})};h.forwardRef(function(e,t){return y.jsx(gl,{children:function(n){var r=n.width,a=n.height;return y.jsx(iK,Ke({width:r,height:a},e,{ref:t}))}})});const Jp=({InputContainer:e=Xo,formField:t,label:n,resetsFields:r,options:a,isNumber:i,size:o,showClearIcon:s,clearValue:c,noSortOptions:u,required:l,hidden:d,disabled:f,withoutLabel:p,className:g})=>{const{register:v,formState:m,getValues:x,setValue:w,watch:b}=Wt.useFormContext(),[T,_]=h.useState(void 0),[C,$]=h.useState(!1),A=h.useMemo(()=>a.sort((E,F)=>u?0:(E.name??"").localeCompare(F.name??"")),[a,u]),D=h.useCallback(()=>{const E=c??null;i?w(t,E===null?null:Number(E),{shouldDirty:!0,shouldValidate:C}):w(t,(E==null?void 0:E.toString())??"",{shouldDirty:!0,shouldValidate:C})},[c,i,w,t,C]);h.useEffect(()=>{const E=t.split(".");let F=m.errors;E.forEach(M=>{F!==void 0&&(F=F[M])}),_(F)},[m,t]),h.useEffect(()=>{w(t,x(t))},[A,t,x,w]),h.useEffect(()=>{m.isSubmitted&&$(!0)},[m]);const j=T!==void 0;return y.jsx(y.Fragment,{children:y.jsxs(e,{label:`${n}${l?" *":""}`,hidden:d,withoutLabel:p,isInvalid:j,className:g,children:[y.jsxs(ya.Select,{size:o,...v(t,{setValueAs:E=>i?E==null||E===""?null:parseInt(E,10):E==null||E===""?null:E,onChange:()=>{r&&r.forEach(E=>w(E,null,{shouldDirty:!0,shouldValidate:C}))}}),isInvalid:j,hidden:d,disabled:f,className:"w-100",children:[y.jsx("option",{value:""}),A.map(E=>y.jsx("option",{value:E.id??"",children:E.name},E.id))]}),s&&b(t)&&y.jsx("div",{className:"luminus-input-remove-icon inset",children:y.jsx(su,{color:"secondary",size:"sm",onClick:D,children:y.jsx(Yc,{})})}),T&&y.jsx(cu,{message:T.message})]})})},Qp=({InputContainer:e=Xo,formField:t,label:n,resetsFields:r,size:a,showClearIcon:i,clearValue:o,required:s,hidden:c,disabled:u,rows:l,withoutLabel:d,customFormControlProps:f,className:p})=>{const{register:g,formState:v,setValue:m,watch:x}=Wt.useFormContext(),[w,b]=h.useState(void 0),[T,_]=h.useState(!1),C=h.useCallback(()=>{const D=o??null;m(t,(D==null?void 0:D.toString())??"",{shouldDirty:!0,shouldValidate:T})},[o,m,t,T]),$=h.useCallback(()=>{const D=t.split(".");let j=v.errors;D.forEach(E=>{j!==void 0&&(j=j[E])}),b(j)},[v,t]);h.useEffect(()=>{$()},[$]),h.useEffect(()=>{v.isSubmitted&&_(!0)},[v]);const A=w!==void 0;return y.jsxs(e,{label:`${n}${s?" *":""}`,hidden:c,withoutLabel:d,isInvalid:A,className:p,isForTextAreaInput:!0,children:[y.jsx(ya.Control,{as:"textarea",size:a,...g(t,{setValueAs:D=>D==null||D===""?null:D,onChange:()=>{r&&r.forEach(D=>m(D,null,{shouldDirty:!0,shouldValidate:T}))}}),isInvalid:A,hidden:c,disabled:u,rows:l??2,className:"w-100",...f}),i&&x(t)&&y.jsx("div",{className:"luminus-input-remove-icon",children:y.jsx(su,{color:"secondary",size:"sm",onClick:C,children:y.jsx(Yc,{})})}),w&&y.jsx(cu,{message:w.message})]})},zo=({InputContainer:e=Xo,type:t,formField:n,label:r,placeholder:a,size:i,resetsFields:o,showClearIcon:s,clearValue:c,required:u,hidden:l,disabled:d,withoutLabel:f,list:p,step:g,CustomOnChangeComponent:v,noSelectOnFocus:m,className:x})=>{const{register:w,formState:b,setValue:T,watch:_}=Wt.useFormContext(),[C,$]=h.useState(void 0),[A,D]=h.useState(!1),j=h.useCallback(()=>{const N=c??null;t==="number"?T(n,N!==null?Number(N):null,{shouldDirty:!0,shouldValidate:A}):T(n,(N==null?void 0:N.toString())??"",{shouldDirty:!0,shouldValidate:A})},[c,t,T,n,A]),E=h.useCallback(()=>{const N=n.split(".");let q=b.errors;N.forEach(z=>{q!==void 0&&(q=q[z])}),$(q)},[b,n]);h.useEffect(()=>{E()},[E]),h.useEffect(()=>{b.isSubmitted&&D(!0)},[b]);const F=C!==void 0,[M,R]=h.useState(!1),I=_(n),U=$1(t,I??null,M);return y.jsxs(e,{label:`${r}${u?" *":""}`,hidden:l,withoutLabel:f,isInvalid:F,className:x,children:[y.jsxs("div",{className:"luminus-input-container position-relative w-100",children:[y.jsx(ya.Control,{type:U,placeholder:a??r,size:i,onFocus:N=>{R(!0),!m&&N.target.select()},...w(n,{setValueAs:N=>t==="number"?N==null||N===""?null:Number(N):N==null||N===""?null:N,onChange:()=>{o&&o.forEach(N=>T(N,null,{shouldDirty:!0,shouldValidate:A}))},onBlur:()=>R(!1)}),isInvalid:F,hidden:l,disabled:d,list:p,className:"w-100",step:g}),v&&y.jsx("div",{className:"custom-picker-button",children:v})]}),s&&_(n)&&y.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:y.jsx(su,{color:"secondary",size:"sm",onClick:j,children:y.jsx(Yc,{})})}),C&&y.jsx(cu,{message:C.message})]})},sK="_wrapper_9omw0_1",cK="_controls_9omw0_16",uK="_explorerWindow_9omw0_20",lK="_folderList_9omw0_28",dK="_fileList_9omw0_35",fK="_dndText_9omw0_61",Vr={wrapper:sK,controls:cK,explorerWindow:uK,folderList:lK,fileList:dK,dndText:fK},Vt=h.createContext({apiActions:{},loadDocuments(){throw new Error("DocumentsContext was not initialized.")},reducer:[{},{}],entityType:"",entityId:-1}),hK="_folderIcon_nez54_1",pK="_defaultFolder_nez54_6",Fv={folderIcon:hK,defaultFolder:pK},_w=({isActive:e,isDefault:t,folderName:n})=>{const{ProjectIconComponent:r}=h.useContext(bn);return y.jsxs(y.Fragment,{children:[y.jsx(r,{icon:`folder${e?"-filled":""}`,className:ie("d-inline-block",t?Fv.defaultFolder:"text-primary"),iconProps:{className:Fv.folderIcon}}),y.jsx("span",{className:e?"fw-bold":"",children:n})," "]})},mK=({customText:e})=>{const{reducer:[t,n]}=h.useContext(Vt),r=h.useCallback(()=>{n({type:"select-folder",folderId:"root"})},[n]);return y.jsx("li",{children:y.jsx("button",{onClick:r,type:"button",className:ie("border-0 bg-transparent"),children:y.jsx(_w,{folderName:e??"root",isActive:t.activeFolder==="root",isDefault:!0})})})};function gK(e){if(e.state!=="openned-modal")throw new Error('Not in "openned-modal" state!')}const ww=()=>{const e=ru(),{startLoading:t,stopLoading:n}=h.useContext(Zc),{reducer:[,r]}=h.useContext(Vt),a=h.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]),i=h.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:a,createFolder:i}},Lv=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Wt.get(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Tw=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Lv(r.ref,n,e):r.refs&&r.refs.forEach(a=>Lv(a,n,e))}},vK=(e,t)=>{t.shouldUseNativeValidation&&Tw(e,t);const n={};for(const r in e){const a=Wt.get(t.fields,r),i=Object.assign(e[r]||{},{ref:a&&a.ref});if(yK(t.names||Object.keys(e),r)){const o=Object.assign({},Wt.get(n,r));Wt.set(o,"root",i),Wt.set(n,r,o)}else Wt.set(n,r,i)}return n},yK=(e,t)=>e.some(n=>n.startsWith(t+"."));var bK=function(e,t){for(var n={};e.length;){var r=e[0],a=r.code,i=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:i,type:a};if("unionErrors"in r&&r.unionErrors.forEach(function(l){return l.errors.forEach(function(d){return e.push(d)})}),t){var c=n[o].types,u=c&&c[r.code];n[o]=Wt.appendErrors(o,t,n,a,u?[].concat(u,r.message):r.message)}e.shift()}return n},em=function(e,t,n){return n===void 0&&(n={}),function(r,a,i){try{return Promise.resolve(function(o,s){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(u){return i.shouldUseNativeValidation&&Tw({},i),{errors:{},values:n.raw?r:u}})}catch(u){return s(u)}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:vK(bK(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}};const xK=()=>{const{reducer:[e],entityId:t,entityType:n}=h.useContext(Vt),{zNumberRequired:r,zStringRequired:a}=iu(),{createFolder:i}=ww(),o=Ft.object({name:a(),documentTypeId:r()}),s=Wt.useForm({resolver:em(o)}),c=h.useCallback(async u=>{const l={...u,dbObjectId:t.toString(),entity:n,parentFolderId:e.activeFolder==="root"?null:e.activeFolder};await i(l)},[i,t,n,e.activeFolder]);return{formMethods:s,onSubmit:c}},_K=({handleClose:e})=>{var o;const{texts:{documents:t}}=h.useContext(bn),{reducer:[n],entityType:r}=h.useContext(Vt);if(gK(n),n.modalType!=="create-folder")throw new Error("Tried to render CreateFolderModal without create-folder modal type reducer state.");const{onSubmit:a,formMethods:i}=xK();return y.jsx(y.Fragment,{children:y.jsx(Wt.FormProvider,{...i,children:y.jsxs(ya,{onSubmit:i.handleSubmit(a),children:[y.jsx(rn.Header,{closeButton:!0,children:y.jsx(rn.Title,{children:t.createFolderInFolder(((o=n.foldersMap.get(n.chosenFolderId))==null?void 0:o.name)??r)})}),y.jsxs(rn.Body,{children:[y.jsx(zo,{formField:"name",type:"text",label:t.name,required:!0}),y.jsx(Jp,{options:n.documentTypes,formField:"documentTypeId",label:t.folderType,isNumber:!0,required:!0})]}),y.jsxs(rn.Footer,{children:[y.jsx(fa,{onClick:e,variant:"outlined",color:"secondary",children:t.cancel}),y.jsx(fa,{type:"submit",children:t.createFolder})]})]})})})},Cw=100,wK=(e,t)=>{const n=ru(),{startLoading:r,stopLoading:a}=h.useContext(Zc),{loadDocuments:i}=h.useContext(Vt),{zStringRequired:o,zString:s,zNumberRequired:c,zDateRequired:u}=iu(),l=Ft.object({name:o(),description:s(),validToDate:u(),documentTypeId:c()}),d=Wt.useForm({resolver:em(l),defaultValues:{...e,validToDate:nu(e.validToDate)}}),f=h.useCallback(async p=>{r("documents-updateProperties");try{await n.put(`/documents/${e.id}/update-info`,p),await i(),t()}finally{a("documents-updateProperties")}},[n,e.id,t,i,r,a]);return{formMethods:d,onSubmit:f}},TK=({handleClose:e,file:t})=>{const{texts:{documents:n}}=h.useContext(bn),{reducer:[r]}=h.useContext(Vt),{formMethods:a,onSubmit:i}=wK(t,e);return y.jsxs(y.Fragment,{children:[y.jsx(rn.Header,{closeButton:!0,children:y.jsx(rn.Title,{children:n.editFileProperties})}),y.jsx(Wt.FormProvider,{...a,children:y.jsxs(ya,{onSubmit:a.handleSubmit(i),children:[y.jsxs(rn.Body,{children:[y.jsx(zo,{formField:"name",type:"text",label:n.name,required:!0}),y.jsx(zo,{formField:"validToDate",type:"date",label:n.validSince,required:!0}),y.jsx(Jp,{formField:"documentTypeId",label:n.category,options:r.documentTypes,isNumber:!0,required:!0}),y.jsx(Qp,{formField:"description",label:n.description,customFormControlProps:{maxLength:Cw}})]}),y.jsxs(rn.Footer,{children:[y.jsx(fa,{onClick:e,color:"secondary",variant:"outlined",children:n.cancel}),y.jsx(fa,{type:"submit",children:n.save})]})]})})]})},CK=({handleClose:e})=>{const{reducer:[t]}=h.useContext(Vt),n=h.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(),y.jsx(y.Fragment,{})):y.jsx(TK,{file:n,handleClose:e})},kK=()=>{const{reducer:[e,t]}=h.useContext(Vt),n=h.useCallback(()=>{t({type:"close-modal"})},[t]),r=h.useMemo(()=>{if(e.state!=="openned-modal")return null;switch(e.modalType){case"create-folder":return y.jsx(_K,{handleClose:n});case"edit-file-properties":return y.jsx(CK,{handleClose:n});default:return null}},[e.state,e.modalType]);return y.jsx(rn,{show:e.state==="openned-modal",onHide:n,children:r})},Uv="documents_drag_image_element",Os="drop-container-highlight-class",Bv="data-drop-container-id",Wv="data-draggable-id",SK=()=>{const e=document.getElementById(Uv);if(e!==null)return e;const t=document.createElement("div");return t.id=Uv,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},tm=()=>{const{apiActions:{moveDocuments:e},reducer:[t]}=h.useContext(Vt),n=h.useCallback(u=>{var l;if(t.markedFiles.length>0){const d=SK();d.innerHTML=t.markedFiles.length.toString(),u.dataTransfer.setDragImage(d,0,0),u.dataTransfer.clearData(),u.dataTransfer.setData("application/json",JSON.stringify(t.markedFiles)),u.dataTransfer.dropEffect="none",u.dataTransfer.effectAllowed="move"}else u.dataTransfer.setData("application/json",JSON.stringify([parseInt(((l=u.currentTarget.attributes.getNamedItem(Wv))==null?void 0:l.nodeValue)??"",10)])),u.dataTransfer.dropEffect="none",u.dataTransfer.effectAllowed="move"},[t.markedFiles]),r=h.useCallback(u=>({[Wv]:u,draggable:t.markedFiles.length===0||t.markedFiles.includes(u),onDragStart:n}),[n,t.markedFiles]),a=h.useCallback(u=>l=>{var p;l.preventDefault(),l.stopPropagation(),l.currentTarget.classList.remove(Os);const d=l.dataTransfer.files;if(u&&d&&d.length>0){u(d);return}const f=l.dataTransfer.getData("application/json");if(f){const g=JSON.parse(f),v=parseInt(((p=l.currentTarget.attributes.getNamedItem(Bv))==null?void 0:p.value)??"",10);e(v,g)}},[e]),i=h.useCallback(()=>u=>{u.preventDefault(),u.stopPropagation()},[]),o=h.useCallback(u=>l=>{l.preventDefault(),l.stopPropagation(),l.dataTransfer.types.includes("Files")?(l.dataTransfer.dropEffect="copy",l.currentTarget.classList.add(Os)):!u&&l.dataTransfer.types.includes("application/json")?(l.dataTransfer.dropEffect="move",l.currentTarget.classList.add(Os)):l.dataTransfer.dropEffect="none"},[]),s=h.useCallback(u=>{u.preventDefault(),u.stopPropagation(),u.target===u.currentTarget&&(u.dataTransfer.dropEffect="none",u.currentTarget.classList.remove(Os))},[]),c=h.useCallback((u,l)=>({onDrop:a(l==null?void 0:l.onFilesDrop),onDragOver:i(),onDragEnter:o(l==null?void 0:l.ignoreInner),onDragLeave:s,[Bv]:u}),[a,i,o,s]);return{getDraggableProps:r,getDropProps:c}};function kw(e,t,n){for(let r=0;r<e.childrenIds.length;r++){const a=e.childrenIds[r];if(a===t)return!0;const i=n.get(a);if(i&&kw(i,t,n))return!0}return!1}function OK(e){if(e.activeFolder==="root")return!1;const t=e.foldersMap.get(e.activeFolder);return!(t!=null&&t.onlyRead)}const EK=()=>{const{zString:e,zStringRequired:t,zNumberRequired:n}=iu();return{formSchema:h.useMemo(()=>Ft.object({validTo:t(),description:e(),documentTypeId:n()}),[n,e,t])}},nm=({handleClose:e,files:t,targetFolderId:n})=>{var f;const{texts:{documents:r}}=h.useContext(bn),{reducer:[a],apiActions:{uploadFiles:i}}=h.useContext(Vt),o=h.useMemo(()=>[...t],[t]),s=h.useMemo(()=>n??a.activeFolder,[a.activeFolder,n]),c=h.useMemo(()=>s==="root"?void 0:a.foldersMap.get(s),[s,a.foldersMap]),{formSchema:u}=EK(),l=Wt.useForm({resolver:em(u),defaultValues:{validTo:nu(new Date().toISOString()),documentTypeId:(f=a.documentTypes.find(p=>{var g;return p.name===((g=a.foldersMap.get(s))==null?void 0:g.defaultDocType)}))==null?void 0:f.id}}),d=h.useCallback(async p=>{s!=="root"&&(await i(t,{folderId:s,...p}),e())},[t,e,s,i]);return y.jsxs(rn,{show:!0,onHide:e,children:[y.jsx(rn.Header,{closeButton:!0,children:y.jsxs("div",{children:[r.uploadFilesPrompt(t.length,c.name),y.jsx("ul",{children:o.map((p,g)=>y.jsxs("li",{children:[p.name," - ",tu(p.size)]},`${p.name}-${g}`))})]})}),y.jsx(Wt.FormProvider,{...l,children:y.jsxs(ya,{onSubmit:l.handleSubmit(d),children:[y.jsxs(rn.Body,{children:[y.jsx(Jp,{formField:"documentTypeId",label:r.documentType,options:a.documentTypes,isNumber:!0,required:!0}),y.jsx(zo,{formField:"validTo",label:r.validSince,type:"date",required:!0}),y.jsx(Qp,{formField:"description",label:r.description,customFormControlProps:{maxLength:Cw}})]}),y.jsxs(rn.Footer,{children:[y.jsx(fa,{variant:"outlined",color:"secondary",onClick:e,children:r.cancel}),y.jsx(fa,{type:"submit",children:r.upload})]})]})})]})},$K="_folder_9nxe7_1",MK="_collapseArrowDiv_9nxe7_8",RK="_button_9nxe7_20",AK="_nestedList_9nxe7_24",jK="_numberOfFiles_9nxe7_31",PK="_folderType_9nxe7_37",DK="_collapseArrow_9nxe7_8",Tr={folder:$K,collapseArrowDiv:MK,button:RK,nestedList:AK,numberOfFiles:jK,folderType:PK,collapseArrow:DK},Sw=({dirId:e})=>{const{ProjectIconComponent:t}=h.useContext(bn),{reducer:[n,r]}=h.useContext(Vt),{getDropProps:a}=tm(),[i,o]=h.useState(null),[s,c]=h.useState(!0),u=h.useMemo(()=>{const g=n.foldersMap.get(e);if(g===void 0)throw new Error(`tried to get dir with id ${e}`);return g},[e,n.foldersMap]),l=h.useCallback(()=>{n.activeFolder!=="root"&&kw(u,n.activeFolder,n.foldersMap)&&r({type:"select-folder",folderId:e}),c(!0)},[e,u,r,n.activeFolder,n.foldersMap]),d=h.useMemo(()=>u.childrenIds.length>0,[u.childrenIds.length]),f=h.useCallback(()=>{r({type:"select-folder",folderId:e})},[e,r]),p=h.useMemo(()=>n.filteredFiles.filter(g=>g.folderId===e&&g.archive===!1).length,[e,n.filteredFiles]);return y.jsxs(y.Fragment,{children:[y.jsxs("li",{className:Tr.folder,children:[y.jsx("div",{className:Tr.collapseArrowDiv,children:d?s?y.jsx("button",{onClick:()=>c(!1),type:"button",children:y.jsx(t,{icon:"chevron-right",iconProps:{className:Tr.collapseArrow}})}):y.jsx("button",{onClick:l,type:"button",children:y.jsx(t,{icon:"chevron-down",iconProps:{className:Tr.collapseArrow}})}):null}),y.jsxs("button",{className:ie(Tr.button),onClick:f,type:"button",...u.onlyRead?{}:a(e,{onFilesDrop:g=>o(g)}),children:[y.jsx(_w,{isDefault:u.isDefault,folderName:u.name,isActive:e===n.activeFolder}),y.jsxs("span",{className:Tr.folderType,children:["(",u.defaultDocType,")"]})," ",p>0?y.jsxs("span",{className:Tr.numberOfFiles,children:["[",p,"]"]}):void 0]}),d?s?null:y.jsx("ul",{className:Tr.nestedList,children:u==null?void 0:u.childrenIds.map(g=>y.jsx(Sw,{dirId:g},g))}):void 0]}),i!==null?y.jsx(nm,{files:i,handleClose:()=>o(null),targetFolderId:e}):null]})},IK="_wrapper_1th2u_1",NK="_downloadButton_1th2u_9",Ow={wrapper:IK,downloadButton:NK};function FK(e){return Ie({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 LK(e){return Ie({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 UK(e){return Ie({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 BK(e){return Ie({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 WK="_excel_18ggp_1",zK="_word_18ggp_5",HK="_pdf_18ggp_9",VK="_image_18ggp_13",Es={excel:WK,word:zK,pdf:HK,image:VK},Ew=({fileExtension:e,className:t,...n})=>{switch(e==null?void 0:e.toUpperCase()){case"JPG":case"JPEG":case"BMP":case"PNG":return y.jsx("span",{className:ie(t,Es.image),children:y.jsx(LK,{...n})});case"XLS":case"XLSX":case"CSV":return y.jsx(UK,{className:ie(t,Es.excel),...n});case"DOC":case"DOCM":case"DOCX":return y.jsx(BK,{className:ie(t,Es.word),...n});case"PDF":return y.jsx(RE,{className:ie(t,Es.pdf),...n});default:return y.jsx(FK,{})}},qK=()=>{const{ProjectIconComponent:e,texts:{documents:t}}=h.useContext(bn),{apiActions:{downloadFile:n},reducer:[r]}=h.useContext(Vt),a=h.useMemo(()=>r.activeFolder==="root",[r.activeFolder]);return{columns:h.useMemo(()=>[{fieldName:"id",caption:"id",type:"number",isVisible:!1},...a?[{fieldName:"folderName",caption:t.folder,type:"string"}]:[],{fieldName:"--icon",caption:"",type:"string",valueFormat:o=>y.jsx(Ew,{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=>y.jsx(ou,{className:Ow.downloadButton,onClick:()=>n(o.row.original.id,!0),children:y.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?tu(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,a])}},YK=({BnfTableComponent:e,tableIdentifier:t})=>{const{reducer:[n,r]}=h.useContext(Vt),{columns:a}=qK(),i=h.useCallback(f=>{r({type:"mark-files-by-action",setStateAction:f})},[r]),o=h.useMemo(()=>n.activeFolder==="root",[n.activeFolder]),s=h.useMemo(()=>{var f;return n.activeFolder==="root"?!1:((f=n.foldersMap.get(n.activeFolder))==null?void 0:f.onlyRead)??!1},[n.activeFolder,n.foldersMap]),c=h.useMemo(()=>({enabled:!o,idField:"id",selectedRows:n.markedFiles,setSelectedRows:i}),[o,i,n.markedFiles]),u=h.useMemo(()=>n.activeFolder==="root"?n.filteredFiles:n.filteredFiles.filter(f=>f.folderId===n.activeFolder),[n.activeFolder,n.filteredFiles]),{getDraggableProps:l}=tm(),d=h.useCallback(f=>s?{}:l(f.id),[l,s]);return y.jsx("div",{className:ie(Ow.wrapper),children:y.jsx(e,{data:u,columnsDef:a,rowSelection:c,useScrollableContainer:!0,getRowProps:d,defaultConfig:{defaultFilters:[{id:"archive",value:"false"}]},tableId:t,searchStatePrefix:"docs",useSearchState:!0,hideBottomBar:!0},n.activeFolder)})},GK="_wrapper_1q562_1",ZK="_divButtons_1q562_10",gd={wrapper:GK,divButtons:ZK},KK="_wrapper_1bpdd_1",XK="_fileInput_1bpdd_5",zv={wrapper:KK,fileInput:XK},JK=({entityId:e,entityType:t,children:n,disabled:r})=>{const a=h.useRef(null),[i,o]=h.useState(null),{reducer:[s]}=h.useContext(Vt),c=f=>{var p;(((p=f.target.files)==null?void 0:p.length)??0)>0&&o(f.target.files)},u=h.useCallback(()=>{o(null),a.current&&(a.current.value="")},[]),l=h.useMemo(()=>`documents-upload-${t}-${e}`,[e,t]),d=h.useMemo(()=>r||s.activeFolder==="root",[r,s.activeFolder]);return y.jsxs("div",{className:zv.wrapper,children:[y.jsx("label",{htmlFor:l,className:ie("btn btn-context luminus-context-button",d?"disabled":void 0),children:n}),y.jsx("input",{id:l,type:"file",multiple:!0,onChange:c,className:zv.fileInput,ref:a,disabled:d}),i!==null?y.jsx(nm,{handleClose:u,files:i}):void 0]})},Wn=({children:e,onClick:t,className:n,disabled:r=!1})=>y.jsx(ou,{onClick:t,className:n,disabled:r,children:e}),QK=({className:e,entityId:t,entityType:n})=>{var $,A;const{texts:{documents:r}}=h.useContext(bn),{prompt:a}=Mb(),{confirm:i}=y1(),{apiActions:o,reducer:[s,c]}=h.useContext(Vt),{deleteFiles:u,renameFiles:l,downloadAsZip:d,archivateFiles:f,deleteDirectory:p}=o,{renameFolder:g}=ww(),v=h.useMemo(()=>s.markedFiles.length===0,[s.markedFiles.length]),m=h.useMemo(()=>s.markedFiles.length===1,[s.markedFiles.length]),x=h.useCallback(async()=>{if(s.activeFolder==="root")return;const D=await a(r.enterNewFolderName,{input:"input"});D!==null&&g(s.activeFolder,D)},[r.enterNewFolderName,a,g,s.activeFolder]),w=h.useCallback(async()=>{if(s.activeFolder==="root")return;const D=await a(r.enterNewFileName,{input:"input"});D!==null&&l(D)},[r.enterNewFileName,a,l,s.activeFolder]),b=h.useMemo(()=>s.activeFolder==="root",[s.activeFolder]),T=h.useMemo(()=>{var D;return s.activeFolder==="root"?!1:((D=s.foldersMap.get(s.activeFolder))==null?void 0:D.onlyRead)??!1},[s.activeFolder,s.foldersMap]),_=h.useMemo(()=>s.markedFiles.every(D=>{var j;return((j=s.constantFiles.find(E=>E.id===D))==null?void 0:j.archive)===!1}),[s.constantFiles,s.markedFiles]),C=h.useMemo(()=>s.markedFiles.every(D=>{var j;return((j=s.constantFiles.find(E=>E.id===D))==null?void 0:j.archive)===!0}),[s.constantFiles,s.markedFiles]);return y.jsx("div",{className:ie(e,gd.wrapper,s.state==="folder-choosing"?"ignore-dim":void 0,"d-flex justify-content-between"),children:s.state!=="folder-choosing"?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:gd.divButtons,children:[y.jsx(JK,{entityId:t,entityType:n,disabled:T,children:r.uploadFiles}),y.jsx(Wn,{onClick:()=>{c({type:"open-modal",modalType:"create-folder",chosenFolderId:s.activeFolder??"root"})},disabled:T,children:r.createFolder}),y.jsx(Wn,{disabled:s.activeFolder==="root"||(($=s.foldersMap.get(s.activeFolder))==null?void 0:$.isDefault),onClick:async()=>{var j;await i(`${r.deleteFolder} ${(j=s.foldersMap.get(s.activeFolder))==null?void 0:j.name}?`)&&p(s.activeFolder)},children:r.deleteFolder}),y.jsx(Wn,{disabled:s.activeFolder==="root"||((A=s.foldersMap.get(s.activeFolder))==null?void 0:A.isDefault),onClick:x,children:r.renameFolder})]}),!b&&!T?y.jsxs("div",{className:gd.divButtons,children:[y.jsx(Wn,{onClick:()=>{c({type:"open-modal",modalType:"edit-file-properties"})},disabled:!m,children:r.editFileProperties}),y.jsx(Wn,{onClick:async()=>{await i(r.confirmDeleteFile(s.markedFiles.length))&&u(s.markedFiles)},disabled:v,children:r.delete}),C?y.jsx(Wn,{onClick:async()=>{await i(r.confirmDearchiveFile(s.markedFiles.length))&&await f(!0)},disabled:v,children:r.dearchivate}):y.jsx(Wn,{onClick:async()=>{await i(r.confirmArchiveFile(s.markedFiles.length))&&await f()},disabled:v||!_,children:r.archivate}),y.jsx(Wn,{onClick:w,disabled:v,children:r.rename}),y.jsx(Wn,{onClick:d,disabled:v,children:r.downloadZip})]}):null]}):s.state==="folder-choosing"?y.jsx(y.Fragment,{children:y.jsx(Wn,{onClick:()=>c({type:"return-from-folder-choosing"}),className:ie("ignore-dim","body-background-color"),children:r.back})}):void 0})};function eX(e){return{name:e.name,defaultDocType:e.defaultDocType,childrenIds:[],parentId:e.parentId??null,isDefault:e.isDefault,onlyRead:e.onlyRead}}function tX(e){const t=[],n=new Map,r=new Map;return e.forEach(a=>{n.set(a.id,eX(a)),a.parentId===null?t.push(a.id):r.set(a.id,a.parentId)}),r.forEach((a,i)=>{const o=n.get(a);if(o===void 0)throw new Error(`Did not get folder with ID ${a}, which is supposed to be parent directory of folder with ID ${i}`);o.childrenIds.push(i)}),{dirsMap:n,rootIds:t}}function Hv(e,t){const n=t.toUpperCase();return e.filter(r=>{var i;const a=(i=r.name)==null?void 0:i.toUpperCase();return a==null?void 0:a.includes(n)})}function nX(e,t){return e.map(n=>{var r;return{...n,folderName:((r=t.get(n.folderId))==null?void 0:r.name)??""}})}const rX=([e,t],n,r)=>{const{texts:{documents:a}}=h.useContext(bn),{startLoading:i,stopLoading:o}=h.useContext(Zc),{addNotification:s}=Ch(),c=ru(),u=h.useCallback(async b=>{i("documentList");try{const _=(await c.get(`/documents/${n}/${r}`)).data,{dirsMap:C,rootIds:$}=tX(_.folders),A=nX(_.documents,C);t({type:"load-data",files:A,foldersMap:C,rootFolderIds:$,setActiveFolder:b})}finally{o("documentList")}},[c,t,r,n,i,o]);h.useEffect(()=>{u(!0)},[u]);const l=h.useCallback(async()=>{i("documents-types");try{const b=await c.get(`/documents/types/${n}`);if(b.status!==200)throw new Error(`Unexpected status code: ${b.status}`);t({type:"load-document-types",documentTypes:b.data})}finally{o("documents-types")}},[c,t,n,i,o]);h.useEffect(()=>{l()},[l]);const d=h.useCallback(async(b,T)=>{const _=T??e.markedFiles;i("documentsMove");try{await c.put(`/documents/move-to-folder?folderId=${b}`,_),t({type:"update-files",fileIds:_,newProperties:{folderId:b}}),s(a.fileMoveSuccessful(_.length,e.foldersMap.get(b).name),"success")}finally{o("documentsMove")}},[e.markedFiles,e.foldersMap,i,c,t,s,a,o]),f=h.useCallback(async b=>{const T=b??e.markedFiles;i("documentsFilesDelete");try{const _=await c.delete(`/documents/delete?${Yd(T,"documentIds")}`);if(_.status!==200)throw new Error(`Unexpected status code: ${_.status}`);t({type:"delete-files",fileIds:T}),s(a.fileDeleteSuccessful(T.length),"success")}finally{o("documentsFilesDelete")}},[e.markedFiles,i,c,t,s,a,o]),p=h.useCallback(async b=>{var T;if(!(b==="root"||(T=e.foldersMap.get(b))!=null&&T.isDefault)){i("documentsFolderDelete");try{const _=await c.delete(`/documents/folder/${b}`);if(_.status!==200)throw new Error(`Unexpected status code: ${_.status}`);t({type:"delete-folder",folderId:b}),s(a.folderDeleteSuccessful(e.foldersMap.get(b).name),"success")}finally{o("documentsFolderDelete")}}},[e.foldersMap,i,c,t,s,a,o]),g=h.useCallback(async b=>{i("documentsRename");try{const T=await c.put("/documents/update-name",{documentIds:e.markedFiles,name:b});if(T.status!==200)throw new Error(`Unexpected status code: ${T.status}`);u()}finally{o("documentsRename")}},[i,c,e.markedFiles,u,o]),v=h.useCallback(async b=>{i("documents-archivate");try{const T=await c.put(`/documents/${b?"dearchive":"archive"}`,e.markedFiles);if(T.status!==200)throw new Error(`Unexpected status code: ${T.status}`);t({type:"update-files",fileIds:e.markedFiles,newProperties:{archive:!b}}),s((b?a.dearchivateSuccessful:a.archivateSuccessful)(e.markedFiles.length),"success")}finally{o("documents-archivate")}},[i,c,e.markedFiles,t,s,a.archivateSuccessful,a.dearchivateSuccessful,o]),m=h.useCallback(async()=>{var T;if(e.activeFolder==="root")return;const b=e.markedFiles.length;s(a.downloadAsZip(b),"info"),i("documents-ZIP_download");try{const _=await c.get(`/documents/download-zip?${Yd(e.markedFiles,"documentIds")}`,{responseType:"blob"});nc(_.data,(((T=e.foldersMap.get(e.activeFolder))==null?void 0:T.name)??"")+"_files")}finally{o("documents-ZIP_download")}},[e.activeFolder,e.markedFiles,e.foldersMap,s,a,i,c,o]),x=h.useCallback(async(b,T)=>{s(a.downloadingFile,"info"),i("documents-downloading_file");try{const _=await c.get(`/documents/${b}?isSmall=true`,{responseType:"blob"}),C=e.constantFiles.find(A=>A.id===b),$=`${(C==null?void 0:C.name)??b.toString()}.${C!=null&&C.fileExtension?C==null?void 0:C.fileExtension.toLowerCase():"unknown"}`;nc(_.data,$,T)}finally{o("documents-downloading_file")}},[s,a.downloadingFile,i,c,e.constantFiles,o]),w=h.useCallback(async(b,T)=>{i("documents-upload"),s(a.uploadingDocuments,"info");try{await c.postForm("/documents/upload",{files:b,...T}),await u()}finally{o("documents-upload")}},[i,s,a.uploadingDocuments,c,u,o]);return{loadDocuments:u,moveDocuments:d,deleteFiles:f,deleteDirectory:p,renameFiles:g,archivateFiles:v,downloadAsZip:m,downloadFile:x,uploadFiles:w}},aX=(e,t)=>{var n,r;switch(t.type){case"load-data":{const a={...e,constantFiles:t.files,filteredFiles:Hv(t.files,e.searchString),foldersMap:t.foldersMap,rootFolderIds:t.rootFolderIds};if(t.setActiveFolder){const i=t.rootFolderIds.find(o=>t.files.some(s=>s.archive===!1&&s.folderId===o))??"root";a.activeFolder=i}return a}case"load-document-types":return{...e,documentTypes:t.documentTypes};case"select-folder":return{...e,activeFolder:t.folderId,markedFiles:[]};case"mark-file":{const a=e.markedFiles.includes(t.fileId)?[...e.markedFiles.filter(i=>i!==t.fileId)]:[...e.markedFiles,t.fileId];return{...e,state:a.length>0?"selection-file":"explorer",markedFiles:a}}case"mark-files-by-action":{const a=typeof t.setStateAction=="function"?t.setStateAction(e.markedFiles):t.setStateAction;return{...e,state:a.length>0?"selection-file":"explorer",markedFiles:a}}case"mark-all-files":return e.markedFiles.length<e.filteredFiles.filter(a=>a.folderId===e.activeFolder).length?{...e,markedFiles:e.filteredFiles.filter(a=>a.folderId===e.activeFolder).map(a=>a.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(a=>t.fileIds.includes(a.id)?{...a,...t.newProperties}:a)],constantFiles:[...e.constantFiles.map(a=>t.fileIds.includes(a.id)?{...a,...t.newProperties}:a)],markedFiles:[],state:"explorer"};case"update-folders":{const a=new Map(e.foldersMap);return t.folderIds.forEach(i=>{a.set(i,{...e.foldersMap.get(i),...t.newProperties})}),{...e,foldersMap:a}}case"delete-files":return{...e,filteredFiles:[...e.filteredFiles.filter(a=>!t.fileIds.includes(a.id))],constantFiles:[...e.constantFiles.filter(a=>!t.fileIds.includes(a.id))],markedFiles:e.markedFiles.filter(a=>!t.fileIds.includes(a)),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 a=new Map(e.foldersMap),i=(n=a.get(t.folderId))==null?void 0:n.parentId;let o=[...e.rootFolderIds];if(i){const s=JSON.parse(JSON.stringify(a.get(i)));s.childrenIds=s.childrenIds.filter(c=>c!==t.folderId),a.set(i,s)}else o=o.filter(s=>s!==t.folderId);return a.delete(t.folderId),{...e,rootFolderIds:o,foldersMap:a,activeFolder:"root"}}case"create-folder":{const a=new Map(e.foldersMap);a.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 i=[...e.rootFolderIds];if(t.folderData.parentFolderId===null)i.push(t.folderId);else{const o=a.get(t.folderData.parentFolderId),s=JSON.parse(JSON.stringify(o));s.childrenIds.push(t.folderId),a.set(t.folderData.parentFolderId,s)}return{...e,state:"explorer",rootFolderIds:i,foldersMap:a}}case"search-files":{const a=Hv(e.constantFiles,t.searchString);return{...e,searchString:t.searchString,filteredFiles:a,markedFiles:e.markedFiles.filter(i=>a.map(o=>o.id).includes(i))}}default:throw new Error("Wrong action.type specified.")}},iX=()=>{const e={state:"explorer",activeFolder:"root",searchString:"",filteredFiles:[],constantFiles:[],foldersMap:new Map,rootFolderIds:[],markedFiles:[],documentTypes:[]},[t,n]=h.useReducer(aX,e);return[t,n]},oX=h.memo(({entityType:e,entityId:t,className:n,BnfTableComponent:r,tableIdentifier:a,...i})=>{const{ProjectIconComponent:o,texts:{documents:s}}=h.useContext(bn),[c,u]=iX(),[l,d]=h.useState(null),{loadDocuments:f,...p}=rX([c,u],e,t),g=h.useMemo(()=>({entityId:t,entityType:e,apiActions:p,loadDocuments:f,reducer:[c,u]}),[t,e,p,f,c,u]),{getDropProps:v}=tm();return y.jsx("div",{...i,className:ie(Vr.wrapper,n),onDragOver:m=>{m.dataTransfer.dropEffect="none",m.stopPropagation(),m.preventDefault()},onDragEnter:m=>{m.dataTransfer.dropEffect="none",m.stopPropagation(),m.preventDefault()},children:y.jsxs(Vt.Provider,{value:g,children:[y.jsx("div",{className:ie(c.state==="folder-choosing"?"dim-others":void 0,Vr.explorerWindow),children:y.jsxs("ul",{className:Vr.folderList,children:[y.jsx(mK,{customText:e}),c.rootFolderIds.map(m=>y.jsx(Sw,{dirId:m},m))]})}),y.jsxs("div",{className:ie(Vr.explorerWindow,Vr.fileList),...OK(c)?v(c.activeFolder,{onFilesDrop:m=>d(m),ignoreInner:!0}):{},children:[y.jsxs("div",{className:Vr.dndText,children:[y.jsx(o,{icon:"file-upload",iconProps:{style:{marginRight:0}}}),y.jsx("span",{children:s.dropToUpload})]}),y.jsx(YK,{tableIdentifier:a,BnfTableComponent:r},(c.activeFolder==="root").toString())]}),y.jsx(QK,{className:Vr.controls,entityType:e,entityId:t}),y.jsx(kK,{}),l!==null?y.jsx(nm,{files:l,handleClose:()=>d(null),targetFolderId:c.activeFolder==="root"?void 0:c.activeFolder}):null]})})}),sX="_side-content-bar_17kwd_1",cX={"side-content-bar":"_side-content-bar_17kwd_1",sideContentBar:sX},$w=({width:e,children:t})=>y.jsx("section",{className:ie("luminus-side-content-bar shadow",cX.sideContentBar),style:{width:`${e}px`},children:t}),Mw=({title:e})=>y.jsx("div",{className:"mb-3",children:typeof e=="string"?y.jsx(Oh,{variant:"h3",children:e}):e}),uX="_full-screen-container_1rm4r_1",Rw={"full-screen-container":"_full-screen-container_1rm4r_1",fullScreenContainer:uX},lX=ie("overflow-hidden luminus-full-screen-container",Rw.fullScreenContainer),dX="container-fluid",fX=({title:e,children:t,sideContent:n,sideContentWidth:r=250,noPadding:a,className:i,variant:o="main",helmet:s})=>{const{addHelmet:c,removeHelmet:u}=h.useContext(R1),l=h.useMemo(()=>{switch(o){case"fullScreen":return lX;case"main":return dX;default:throw new Error(`PageContainer got incorrect variant type: ${o}`)}},[o]);return h.useEffect(()=>(s?c(s):typeof e=="string"&&e&&c(e),()=>u()),[s,c,u,e]),y.jsxs(y.Fragment,{children:[y.jsx("div",{className:ie(l,a?"p-0":"p-3",i),style:o==="fullScreen"?{width:n?`calc(100% - ${r}px)`:"100%"}:void 0,children:y.jsxs("div",{className:o==="fullScreen"?Rw.fullScreenContainer:void 0,style:o==="main"?{paddingRight:n?`${r}px`:void 0}:{height:"100%",width:"100%"},children:[e?y.jsx(Mw,{title:e}):null,t]})}),n&&y.jsx($w,{width:r,children:n})]})};var rm={};rm.match=yX;rm.parse=Aw;var hX=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,pX=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,mX=/^(?:(min|max)-)?(.+)/,gX=/(em|rem|px|cm|mm|in|pt|pc)?$/,vX=/(dpi|dpcm|dppx)?$/;function yX(e,t){return Aw(e).some(function(n){var r=n.inverse,a=n.type==="all"||t.type===n.type;if(a&&r||!(a||r))return!1;var i=n.expressions.every(function(o){var s=o.feature,c=o.modifier,u=o.value,l=t[s];if(!l)return!1;switch(s){case"orientation":case"scan":return l.toLowerCase()===u.toLowerCase();case"width":case"height":case"device-width":case"device-height":u=Yv(u),l=Yv(l);break;case"resolution":u=qv(u),l=qv(l);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":u=Vv(u),l=Vv(l);break;case"grid":case"color":case"color-index":case"monochrome":u=parseInt(u,10)||1,l=parseInt(l,10)||0;break}switch(c){case"min":return l>=u;case"max":return l<=u;default:return l===u}});return i&&!r||!i&&r})}function Aw(e){return e.split(",").map(function(t){t=t.trim();var n=t.match(hX),r=n[1],a=n[2],i=n[3]||"",o={};return o.inverse=!!r&&r.toLowerCase()==="not",o.type=a?a.toLowerCase():"all",i=i.match(/\([^\)]+\)/g)||[],o.expressions=i.map(function(s){var c=s.match(pX),u=c[1].toLowerCase().match(mX);return{modifier:u[1],feature:u[2],value:c[2]}}),o})}function Vv(e){var t=Number(e),n;return t||(n=e.match(/^(\d+)\s*\/\s*(\d+)$/),t=n[1]/n[2]),t}function qv(e){var t=parseFloat(e),n=String(e).match(vX)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return t*96;default:return t}}function Yv(e){var t=parseFloat(e),n=String(e).match(gX)[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 bX=rm.match,Gv=typeof window<"u"?window.matchMedia:null;function xX(e,t,n){var r=this,a;Gv&&!n&&(a=Gv.call(window,e)),a?(this.matches=a.matches,this.media=a.media,a.addListener(s)):(this.matches=bX(e,t),this.media=e),this.addListener=i,this.removeListener=o,this.dispose=c;function i(u){a&&a.addListener(u)}function o(u){a&&a.removeListener(u)}function s(u){r.matches=u.matches,r.media=u.media}function c(){a&&a.removeListener(s)}}function _X(e,t,n){return new xX(e,t,n)}var wX=_X;const TX=Tt(wX);var CX=/[A-Z]/g,kX=/^ms-/,vd={};function SX(e){return"-"+e.toLowerCase()}function jw(e){if(vd.hasOwnProperty(e))return vd[e];var t=e.replace(CX,SX);return vd[e]=kX.test(t)?"-"+t:t}function OX(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),a=n.length;if(r.length!==a)return!1;for(let i=0;i<a;i++){const o=n[i];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}const Gt=O.oneOfType([O.string,O.number]),am={all:O.bool,grid:O.bool,aural:O.bool,braille:O.bool,handheld:O.bool,print:O.bool,projection:O.bool,screen:O.bool,tty:O.bool,tv:O.bool,embossed:O.bool},Pw={orientation:O.oneOf(["portrait","landscape"]),scan:O.oneOf(["progressive","interlace"]),aspectRatio:O.string,deviceAspectRatio:O.string,height:Gt,deviceHeight:Gt,width:Gt,deviceWidth:Gt,color:O.bool,colorIndex:O.bool,monochrome:O.bool,resolution:Gt,type:Object.keys(am)},{type:WX,...EX}=Pw,Dw={minAspectRatio:O.string,maxAspectRatio:O.string,minDeviceAspectRatio:O.string,maxDeviceAspectRatio:O.string,minHeight:Gt,maxHeight:Gt,minDeviceHeight:Gt,maxDeviceHeight:Gt,minWidth:Gt,maxWidth:Gt,minDeviceWidth:Gt,maxDeviceWidth:Gt,minColor:O.number,maxColor:O.number,minColorIndex:O.number,maxColorIndex:O.number,minMonochrome:O.number,maxMonochrome:O.number,minResolution:Gt,maxResolution:Gt,...EX},$X={...am,...Dw};var MX={all:$X,types:am,matchers:Pw,features:Dw};const RX=e=>`not ${e}`,AX=(e,t)=>{const n=jw(e);return typeof t=="number"&&(t=`${t}px`),t===!0?n:t===!1?RX(n):`(${n}: ${t})`},jX=e=>e.join(" and "),PX=e=>{const t=[];return Object.keys(MX.all).forEach(n=>{const r=e[n];r!=null&&t.push(AX(n,r))}),jX(t)},DX=h.createContext(void 0),IX=e=>e.query||PX(e),Zv=e=>e?Object.keys(e).reduce((n,r)=>(n[jw(r)]=e[r],n),{}):void 0,Iw=()=>{const e=h.useRef(!1);return h.useEffect(()=>{e.current=!0},[]),e.current},NX=e=>{const t=h.useContext(DX),n=()=>Zv(e)||Zv(t),[r,a]=h.useState(n);return h.useEffect(()=>{const i=n();OX(r,i)||a(i)},[e,t]),r},FX=e=>{const t=()=>IX(e),[n,r]=h.useState(t);return h.useEffect(()=>{const a=t();n!==a&&r(a)},[e]),n},LX=(e,t)=>{const n=()=>TX(e,t||{},!!t),[r,a]=h.useState(n),i=Iw();return h.useEffect(()=>{if(i){const o=n();return a(o),()=>{o&&o.dispose()}}},[e,t]),r},UX=e=>{const[t,n]=h.useState(e.matches);return h.useEffect(()=>{const r=a=>{n(a.matches)};return e.addListener(r),n(e.matches),()=>{e.removeListener(r)}},[e]),t},yd=(e,t,n)=>{const r=NX(t),a=FX(e);if(!a)throw new Error("Invalid or missing MediaQuery!");const i=LX(a,r),o=UX(i),s=Iw();return h.useEffect(()=>{s&&n&&n(o)},[o]),h.useEffect(()=>()=>{i&&i.dispose()},[]),o},Nw="ResponsiveContextDropdownItem",BX=e=>e.type.displayName===Nw,im=()=>{};im.displayName=Nw;const Fw=({children:e})=>{const t=yd({maxWidth:768}),n=yd({minWidth:769,maxWidth:1200}),r=yd({minWidth:1201}),a=[t,n,r].indexOf(!0),i=["sm","md","lg","always"],o=[],s=[];let c=null;const u=l=>{const{hideOn:d,children:f,cKey:p,to:g,...v}=l.props;if(d==="always"||i.indexOf(d)>=a)c&&s.length>0&&s.push(c),c=null,g!=null?s.push(y.jsx(jc.Link,{to:g,children:y.jsx(ef,{...v,as:"div",children:f},p)})):s.push(y.jsx(ef,{...v,children:f},p));else{const m=g!=null?{as:"link",href:g}:{};o.push(y.jsx(ou,{...v,...m,children:l.props.children},p))}};return Array.isArray(e)?e.forEach(l=>{BX(l)?u(l):c=l}):u(e),y.jsxs("div",{className:"d-flex gap-1",children:[y.jsx(y.Fragment,{children:o.map(l=>l)}),s.length>0?y.jsx(I1,{toggle:y.jsx(D1,{as:j1}),children:s.map(l=>l)}):null]})};Fw.Item=im;exports.AbstractModalHeader=hb;exports.Anchor=Gf;exports.AuthContext=Sh;exports.AvatarIcon=P1;exports.BaseModal=cb;exports.BootstrapDropdown=co;exports.BootstrapModalManager=sk;exports.Button=Yf;exports.Button$1=Zf;exports.CloseButton=Lc;exports.ConfirmContext=Eb;exports.ContextButton=ou;exports.DelegationContext=M1;exports.Documents=oX;exports.Dropdown=I1;exports.DropdownItem=ef;exports.DropdownToggle=D1;exports.ENTERED=kr;exports.ENTERING=ar;exports.EXITED=Cr;exports.EXITING=Ws;exports.FaMinus=EE;exports.FaPlus=$E;exports.FaSearch=ME;exports.Fade=Ya;exports.FileExtensionIcon=Ew;exports.FloatingLabelInput=N1;exports.Form=ya;exports.FormCheckInput=qc;exports.FormControl=eb;exports.FormSelect=ch;exports.FromToDatePickerDropdownToggle=ZE;exports.HelmetContext=R1;exports.HookFormTextAreaInput=Qp;exports.HookFormTextInput=zo;exports.IconButton=su;exports.Ie=U6;exports.InvalidFeedback=cu;exports.LoadingContext=Zc;exports.LoginState=Pb;exports.LuminusComponentsContext=bn;exports.MdArrowRight=Ek;exports.MdCheck=$k;exports.MdCircle=Ok;exports.MdClear=Yc;exports.MdOutlineAddCircleOutline=Nk;exports.MdOutlineArrowOutward=Mk;exports.MdOutlineCameraAlt=zk;exports.MdOutlineChevronRight=Yk;exports.MdOutlineClose=Ob;exports.MdOutlineContentCopy=Fk;exports.MdOutlineDelete=Ak;exports.MdOutlineEdit=Hk;exports.MdOutlineExpand=jk;exports.MdOutlineFileUpload=Lk;exports.MdOutlineKeyboardArrowLeft=Uk;exports.MdOutlineKeyboardArrowRight=Bk;exports.MdOutlineKeyboardDoubleArrowLeft=Wk;exports.MdOutlineMenu=Gk;exports.MdOutlinePhotoLibrary=Vk;exports.MdOutlineStar=Kk;exports.MdSave=Sk;exports.MdSaveAs=kk;exports.MdSearch=Ck;exports.Modal=rn;exports.ModalContext=fh;exports.NavContext=ah;exports.NoInputContainer=F1;exports.OverlayTrigger=Cb;exports.PageContainer=fX;exports.PageTitle=Mw;exports.Popover=_b;exports.PrimaryButton=fa;exports.PromptContext=$b;exports.PropTypes=O;exports.Re=oK;exports.ResponsiveContextDropdown=Fw;exports.ResponsiveContextDropdownItem=im;exports.RowLabelInput=Xo;exports.SelectableContext=Ys;exports.SideContentBar=$w;exports.SimpleDropdownToggle=j1;exports.Tooltip=mh;exports.TransitionWrapper=py;exports.Typography=Oh;exports.UserAvatarToggle=NE;exports.UserContext=B6;exports._=Yz;exports.addLeadingZeros=Ge;exports.atobUtf8=u1;exports.buildEmployeeNameString=wS;exports.buildOrgUnitString=TS;exports.buildVehicleNameString=_S;exports.cancelToken=aO;exports.capitalizeFirstLetter=xS;exports.classNames=ie;exports.classes=Qd;exports.classes$1=A1;exports.compareDate=SS;exports.compareDateTime=OS;exports.constructFrom=ur;exports.context=Hc;exports.context$1=oh;exports.dataAttr=Wc;exports.dataProp=FC;exports.differenceInCalendarDays=ty;exports.divWithClassName=my;exports.extractErrorsFromResponse=_h;exports.extractFilename=h1;exports.extractPermissionsFromResponse=s1;exports.fixNameIdNulls=i1;exports.format=Wf;exports.formatDate=yS;exports.formatDateTime=bS;exports.formatFileSize=tu;exports.getDateString=jS;exports.getDaysDifference=ES;exports.getDefaultExportFromCjs=Tt;exports.getFirstDayOfMonth=d1;exports.getFirstDayOfOffsetMonth=$S;exports.getFirstDayOfYear=RS;exports.getLastDayOfMonth=f1;exports.getLastDayOfOffsetMonth=MS;exports.getLastDayOfYear=AS;exports.getSharedManager=lb;exports.getTimezoneOffsetInMilliseconds=_d;exports.hasOnlyNullValues=o1;exports.hookFormSetServerErrors=gS;exports.invariant=Td;exports.isISODate=l1;exports.isPrimitive=tc;exports.isValidDate=kS;exports.joinStrings=lo;exports.jsxRuntimeExports=y;exports.latinize=wh;exports.makeEventKey=Ad;exports.millisecondsInHour=Pc;exports.millisecondsInMinute=Uf;exports.millisecondsInWeek=Lf;exports.msToStartOfNextDay=CS;exports.parseISO=Ic;exports.qsa=ir;exports.replaceNullValuesOnlyObjectsWithNulls=mS;exports.saveFile=nc;exports.saveFileFromResponse=PS;exports.secondsInDay=Bf;exports.secondsInHour=Xv;exports.secondsInMinute=qw;exports.secondsInMonth=Qv;exports.secondsInQuarter=Gw;exports.secondsInWeek=Yw;exports.secondsInYear=Jv;exports.shortenText=vS;exports.startOfDay=xd;exports.startOfWeek=qa;exports.style=Rr;exports.toDate=yn;exports.transitionEndListener=fy;exports.triggerBrowserReflow=hy;exports.trimIsoDate=nu;exports.truncateText=c1;exports.urlfyArray=Yd;exports.useAuth=v1;exports.useAxios=ru;exports.useBootstrapPrefix=Le;exports.useCol=yy;exports.useConfirm=y1;exports.useCookies=Th;exports.useEventCallback=bt;exports.useForceUpdate=xy;exports.useFormControlType=$1;exports.useIsomorphicEffect=ao;exports.useMergedRefs=$n;exports.useNotifications=Ch;exports.usePrompt=Mb;exports.useUncontrolled=sy;exports.useZodSchemaTypes=iu;exports.warning=di;
279
+ `,fill:a,opacity:o,strokeWidth:u,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})};function ea(){return ea=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},ea.apply(this,arguments)}var Mz={top:0,right:0,bottom:0,left:0},qp=function(e){var t,n=e.direction,r=e.itemsSpacing,a=e.padding,i=e.itemCount,o=e.itemWidth,s=e.itemHeight;if(typeof a!="number"&&(typeof(t=a)!="object"||Array.isArray(t)||t===null))throw new Error("Invalid property padding, must be one of: number, object");var u=typeof a=="number"?{top:a,right:a,bottom:a,left:a}:ea({},Mz,a),c=u.left+u.right,l=u.top+u.bottom,d=o+c,f=s+l,p=(i-1)*r;return n==="row"?d=o*i+p+c:n==="column"&&(f=s*i+p+l),{width:d,height:f,padding:u}},M_=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,a=e.containerWidth,i=e.containerHeight,o=e.width,s=e.height,u=n,c=r;switch(t){case"top":u+=(a-o)/2;break;case"top-right":u+=a-o;break;case"right":u+=a-o,c+=(i-s)/2;break;case"bottom-right":u+=a-o,c+=i-s;break;case"bottom":u+=(a-o)/2,c+=i-s;break;case"bottom-left":c+=i-s;break;case"left":c+=(i-s)/2;break;case"center":u+=(a-o)/2,c+=(i-s)/2}return{x:u,y:c}},R_=function(e){var t,n,r,a,i,o,s=e.direction,u=e.justify,c=e.symbolSize,l=e.symbolSpacing,d=e.width,f=e.height;switch(s){case"left-to-right":t=0,n=(f-c)/2,a=f/2,o="central",u?(r=d,i="end"):(r=c+l,i="start");break;case"right-to-left":t=d-c,n=(f-c)/2,a=f/2,o="central",u?(r=0,i="start"):(r=d-c-l,i="end");break;case"top-to-bottom":t=(d-c)/2,n=0,r=d/2,i="middle",u?(a=f,o="alphabetic"):(a=c+l,o="text-before-edge");break;case"bottom-to-top":t=(d-c)/2,n=f-c,r=d/2,i="middle",u?(a=0,o="text-before-edge"):(a=f-c-l,o="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:a,labelAnchor:i,labelAlignment:o}},Rz={circle:Sz,diamond:Oz,square:Ez,triangle:$z},Az=function(e){var t,n,r,a,i,o,s,u,c,l,d,f=e.x,p=e.y,m=e.width,g=e.height,v=e.data,x=e.direction,w=x===void 0?"left-to-right":x,b=e.justify,T=b!==void 0&&b,_=e.textColor,C=e.background,$=C===void 0?"transparent":C,A=e.opacity,D=A===void 0?1:A,j=e.symbolShape,E=j===void 0?"square":j,F=e.symbolSize,M=F===void 0?16:F,R=e.symbolSpacing,I=R===void 0?8:R,U=e.symbolBorderWidth,N=U===void 0?0:U,q=e.symbolBorderColor,z=q===void 0?"transparent":q,P=e.onClick,W=e.onMouseEnter,Z=e.onMouseLeave,ne=e.toggleSerie,Y=e.effects,Q=h.useState({}),G=Q[0],J=Q[1],re=lt(),L=h.useCallback(function(We){if(Y){var rt=Y.filter(function(Ze){return Ze.on==="hover"}).reduce(function(Ze,xt){return ea({},Ze,xt.style)},{});J(rt)}W==null||W(v,We)},[W,v,Y]),V=h.useCallback(function(We){if(Y){var rt=Y.filter(function(Ze){return Ze.on!=="hover"}).reduce(function(Ze,xt){return ea({},Ze,xt.style)},{});J(rt)}Z==null||Z(v,We)},[Z,v,Y]),ae=R_({direction:w,justify:T,symbolSize:(t=G.symbolSize)!=null?t:M,symbolSpacing:I,width:m,height:g}),k=ae.symbolX,ge=ae.symbolY,pe=ae.labelX,de=ae.labelY,Ae=ae.labelAnchor,Pe=ae.labelAlignment,ft=[P,W,Z,ne].some(function(We){return We!==void 0}),gt=typeof E=="function"?E:Rz[E];return y.jsxs("g",{transform:"translate("+f+","+p+")",style:{opacity:(n=G.itemOpacity)!=null?n:D},children:[y.jsx("rect",{width:m,height:g,fill:(r=G.itemBackground)!=null?r:$,style:{cursor:ft?"pointer":"auto"},onClick:function(We){P==null||P(v,We),ne==null||ne(v.id)},onMouseEnter:L,onMouseLeave:V}),oe.createElement(gt,ea({id:v.id,x:k,y:ge,size:(a=G.symbolSize)!=null?a:M,fill:(i=(o=v.fill)!=null?o:v.color)!=null?i:"black",borderWidth:(s=G.symbolBorderWidth)!=null?s:N,borderColor:(u=G.symbolBorderColor)!=null?u:z},v.hidden?re.legends.hidden.symbol:void 0)),y.jsx("text",{textAnchor:Ae,style:ea({},Hp(re.legends.text),{fill:(c=(l=(d=G.itemTextColor)!=null?d:_)!=null?l:re.legends.text.fill)!=null?c:"black",dominantBaseline:Pe,pointerEvents:"none",userSelect:"none"},v.hidden?re.legends.hidden.text:void 0),x:pe,y:de,children:v.label})]})},jz=function(e){var t=e.data,n=e.x,r=e.y,a=e.direction,i=e.padding,o=i===void 0?0:i,s=e.justify,u=e.effects,c=e.itemWidth,l=e.itemHeight,d=e.itemDirection,f=d===void 0?"left-to-right":d,p=e.itemsSpacing,m=p===void 0?0:p,g=e.itemTextColor,v=e.itemBackground,x=v===void 0?"transparent":v,w=e.itemOpacity,b=w===void 0?1:w,T=e.symbolShape,_=e.symbolSize,C=e.symbolSpacing,$=e.symbolBorderWidth,A=e.symbolBorderColor,D=e.onClick,j=e.onMouseEnter,E=e.onMouseLeave,F=e.toggleSerie,M=qp({itemCount:t.length,itemWidth:c,itemHeight:l,itemsSpacing:m,direction:a,padding:o}).padding,R=a==="row"?c+m:0,I=a==="column"?l+m:0;return y.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(U,N){return y.jsx(Az,{data:U,x:N*R+M.left,y:N*I+M.top,width:c,height:l,direction:f,justify:s,effects:u,textColor:g,background:x,opacity:b,symbolShape:T,symbolSize:_,symbolSpacing:C,symbolBorderWidth:$,symbolBorderColor:A,onClick:D,onMouseEnter:j,onMouseLeave:E,toggleSerie:F},N)})})},A_=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,a=e.translateX,i=a===void 0?0:a,o=e.translateY,s=o===void 0?0:o,u=e.anchor,c=e.direction,l=e.padding,d=l===void 0?0:l,f=e.justify,p=e.itemsSpacing,m=p===void 0?0:p,g=e.itemWidth,v=e.itemHeight,x=e.itemDirection,w=e.itemTextColor,b=e.itemBackground,T=e.itemOpacity,_=e.symbolShape,C=e.symbolSize,$=e.symbolSpacing,A=e.symbolBorderWidth,D=e.symbolBorderColor,j=e.onClick,E=e.onMouseEnter,F=e.onMouseLeave,M=e.toggleSerie,R=e.effects,I=qp({itemCount:t.length,itemsSpacing:m,itemWidth:g,itemHeight:v,direction:c,padding:d}),U=I.width,N=I.height,q=M_({anchor:u,translateX:i,translateY:s,containerWidth:n,containerHeight:r,width:U,height:N}),z=q.x,P=q.y;return y.jsx(jz,{data:t,x:z,y:P,direction:c,padding:d,justify:f,effects:R,itemsSpacing:m,itemWidth:g,itemHeight:v,itemDirection:x,itemTextColor:w,itemBackground:b,itemOpacity:T,symbolShape:_,symbolSize:C,symbolSpacing:$,symbolBorderWidth:A,symbolBorderColor:D,onClick:j,onMouseEnter:E,onMouseLeave:F,toggleSerie:typeof M=="boolean"?void 0:M})},Pz={start:"left",middle:"center",end:"right"},Dz=function(e,t){var n=t.data,r=t.containerWidth,a=t.containerHeight,i=t.translateX,o=i===void 0?0:i,s=t.translateY,u=s===void 0?0:s,c=t.anchor,l=t.direction,d=t.padding,f=d===void 0?0:d,p=t.justify,m=p!==void 0&&p,g=t.itemsSpacing,v=g===void 0?0:g,x=t.itemWidth,w=t.itemHeight,b=t.itemDirection,T=b===void 0?"left-to-right":b,_=t.itemTextColor,C=t.symbolSize,$=C===void 0?16:C,A=t.symbolSpacing,D=A===void 0?8:A,j=t.theme,E=qp({itemCount:n.length,itemWidth:x,itemHeight:w,itemsSpacing:v,direction:l,padding:f}),F=E.width,M=E.height,R=E.padding,I=M_({anchor:c,translateX:o,translateY:u,containerWidth:r,containerHeight:a,width:F,height:M}),U=I.x,N=I.y,q=l==="row"?x+v:0,z=l==="column"?w+v:0;e.save(),e.translate(U,N),e.font=j.legends.text.fontSize+"px "+(j.legends.text.fontFamily||"sans-serif"),n.forEach(function(P,W){var Z,ne,Y=W*q+R.left,Q=W*z+R.top,G=R_({direction:T,justify:m,symbolSize:$,symbolSpacing:D,width:x,height:w}),J=G.symbolX,re=G.symbolY,L=G.labelX,V=G.labelY,ae=G.labelAnchor,k=G.labelAlignment;e.fillStyle=(Z=P.color)!=null?Z:"black",e.fillRect(Y+J,Q+re,$,$),e.textAlign=Pz[ae],k==="central"&&(e.textBaseline="middle"),e.fillStyle=(ne=_??j.legends.text.fill)!=null?ne:"black",e.fillText(String(P.label),Y+L,Q+V)}),e.restore()};function Ur(){return Ur=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},Ur.apply(this,arguments)}function j_(e,t){if(e==null)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var bv,Iz=function(e){var t=e.width,n=e.height,r=e.legends,a=e.data,i=e.toggleSerie;return y.jsx(y.Fragment,{children:r.map(function(o,s){var u;return y.jsx(A_,Ur({},o,{containerWidth:t,containerHeight:n,data:(u=o.data)!=null?u:a,toggleSerie:o.toggleSerie?i:void 0}),s)})})},be={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 y.jsx(xx,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(bv=window.devicePixelRatio)!=null?bv:1},Nz=["points"],Fz=function(e){var t=e.data,n=e.id,r=n===void 0?be.id:n,a=e.value,i=a===void 0?be.value:a,o=e.valueFormat,s=e.colors,u=s===void 0?be.colors:s,c=sa(r),l=sa(i),d=pl(o),f=S_(u,"id");return h.useMemo(function(){return t.map(function(p){var m,g=c(p),v=l(p),x={id:g,label:(m=p.label)!=null?m:g,hidden:!1,value:v,formattedValue:d(v),data:p};return Ur({},x,{color:f(x)})})},[t,c,l,d,f])},Lz=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,a=e.innerRadius,i=e.outerRadius,o=e.padAngle,s=e.sortByValue,u=e.activeId,c=e.activeInnerRadiusOffset,l=e.activeOuterRadiusOffset,d=e.hiddenIds,f=e.forwardLegendData,p=h.useMemo(function(){var x=_L().value(function(w){return w.value}).startAngle(kn(n)).endAngle(kn(r)).padAngle(kn(o));return s||x.sortValues(null),x},[n,r,o,s]),m=h.useMemo(function(){var x=t.filter(function(w){return!d.includes(w.id)});return{dataWithArc:p(x).map(function(w){var b=Math.abs(w.endAngle-w.startAngle);return Ur({},w.data,{arc:{index:w.index,startAngle:w.startAngle,endAngle:w.endAngle,innerRadius:u===w.data.id?a-c:a,outerRadius:u===w.data.id?i+l:i,thickness:i-a,padAngle:w.padAngle,angle:b,angleDeg:vl(b)}})}),legendData:t.map(function(w){return{id:w.id,label:w.label,color:w.color,hidden:d.includes(w.id),data:w}})}},[p,t,d,u,a,c,i,l]),g=m.legendData,v=h.useRef(f);return h.useEffect(function(){typeof v.current=="function"&&v.current(g)},[v,g]),m},Uz=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,a=t!==void 0,i=h.useState(a||r===void 0?null:r),o=i[0],s=i[1];return{activeId:a?t:o,setActiveId:h.useCallback(function(u){n&&n(u),a||s(u)},[a,n,s])}},Bz=function(e){var t=e.data,n=e.width,r=e.height,a=e.innerRadius,i=a===void 0?be.innerRadius:a,o=e.startAngle,s=o===void 0?be.startAngle:o,u=e.endAngle,c=u===void 0?be.endAngle:u,l=e.padAngle,d=l===void 0?be.padAngle:l,f=e.sortByValue,p=f===void 0?be.sortByValue:f,m=e.cornerRadius,g=m===void 0?be.cornerRadius:m,v=e.fit,x=v===void 0?be.fit:v,w=e.activeInnerRadiusOffset,b=w===void 0?be.activeInnerRadiusOffset:w,T=e.activeOuterRadiusOffset,_=T===void 0?be.activeOuterRadiusOffset:T,C=e.activeId,$=e.onActiveIdChange,A=e.defaultActiveId,D=e.forwardLegendData,j=Uz({activeId:C,onActiveIdChange:$,defaultActiveId:A}),E=j.activeId,F=j.setActiveId,M=h.useState([]),R=M[0],I=M[1],U=h.useMemo(function(){var z,P=Math.min(n,r)/2,W=P*Math.min(i,1),Z=n/2,ne=r/2;if(x){var Y=Cz(Z,ne,P,s-90,c-90),Q=Y.points,G=j_(Y,Nz),J=Math.min(n/G.width,r/G.height),re={width:G.width*J,height:G.height*J};re.x=(n-re.width)/2,re.y=(r-re.height)/2,Z=(Z-G.x)/G.width*G.width*J+re.x,ne=(ne-G.y)/G.height*G.height*J+re.y,z={box:G,ratio:J,points:Q},P*=J,W*=J}return{centerX:Z,centerY:ne,radius:P,innerRadius:W,debug:z}},[n,r,i,s,c,x]),N=Lz({data:t,startAngle:s,endAngle:c,innerRadius:U.innerRadius,outerRadius:U.radius,padAngle:d,sortByValue:p,activeId:E,activeInnerRadiusOffset:b,activeOuterRadiusOffset:_,hiddenIds:R,forwardLegendData:D}),q=h.useCallback(function(z){I(function(P){return P.indexOf(z)>-1?P.filter(function(W){return W!==z}):[].concat(P,[z])})},[]);return Ur({arcGenerator:kz({cornerRadius:g,padAngle:kn(d)}),activeId:E,setActiveId:F,toggleSerie:q},N,U)},Wz=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,a=e.centerY,i=e.radius,o=e.innerRadius;return h.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:a,radius:i,innerRadius:o}},[t,n,r,a,i,o])},zz=function(e){var t=e.center,n=e.data,r=e.arcGenerator,a=e.borderWidth,i=e.borderColor,o=e.isInteractive,s=e.onClick,u=e.onMouseEnter,c=e.onMouseMove,l=e.onMouseLeave,d=e.setActiveId,f=e.tooltip,p=e.transitionMode,m=Hh(),g=m.showTooltipFromEvent,v=m.hideTooltip,x=h.useMemo(function(){if(o)return function(_,C){s==null||s(_,C)}},[o,s]),w=h.useMemo(function(){if(o)return function(_,C){g(h.createElement(f,{datum:_}),C),d(_.id),u==null||u(_,C)}},[o,g,d,u,f]),b=h.useMemo(function(){if(o)return function(_,C){g(h.createElement(f,{datum:_}),C),c==null||c(_,C)}},[o,g,c,f]),T=h.useMemo(function(){if(o)return function(_,C){v(),d(null),l==null||l(_,C)}},[o,v,d,l]);return y.jsx(Tz,{center:t,data:n,arcGenerator:r,borderWidth:a,borderColor:i,transitionMode:p,onClick:x,onMouseEnter:w,onMouseMove:b,onMouseLeave:T})},Hz=["isInteractive","animate","motionConfig","theme","renderWrapper"],Vz=function(e){var t=e.data,n=e.id,r=n===void 0?be.id:n,a=e.value,i=a===void 0?be.value:a,o=e.valueFormat,s=e.sortByValue,u=s===void 0?be.sortByValue:s,c=e.layers,l=c===void 0?be.layers:c,d=e.startAngle,f=d===void 0?be.startAngle:d,p=e.endAngle,m=p===void 0?be.endAngle:p,g=e.padAngle,v=g===void 0?be.padAngle:g,x=e.fit,w=x===void 0?be.fit:x,b=e.innerRadius,T=b===void 0?be.innerRadius:b,_=e.cornerRadius,C=_===void 0?be.cornerRadius:_,$=e.activeInnerRadiusOffset,A=$===void 0?be.activeInnerRadiusOffset:$,D=e.activeOuterRadiusOffset,j=D===void 0?be.activeOuterRadiusOffset:D,E=e.width,F=e.height,M=e.margin,R=e.colors,I=R===void 0?be.colors:R,U=e.borderWidth,N=U===void 0?be.borderWidth:U,q=e.borderColor,z=q===void 0?be.borderColor:q,P=e.enableArcLabels,W=P===void 0?be.enableArcLabels:P,Z=e.arcLabel,ne=Z===void 0?be.arcLabel:Z,Y=e.arcLabelsSkipAngle,Q=Y===void 0?be.arcLabelsSkipAngle:Y,G=e.arcLabelsTextColor,J=G===void 0?be.arcLabelsTextColor:G,re=e.arcLabelsRadiusOffset,L=re===void 0?be.arcLabelsRadiusOffset:re,V=e.arcLabelsComponent,ae=e.enableArcLinkLabels,k=ae===void 0?be.enableArcLinkLabels:ae,ge=e.arcLinkLabel,pe=ge===void 0?be.arcLinkLabel:ge,de=e.arcLinkLabelsSkipAngle,Ae=de===void 0?be.arcLinkLabelsSkipAngle:de,Pe=e.arcLinkLabelsOffset,ft=Pe===void 0?be.arcLinkLabelsOffset:Pe,gt=e.arcLinkLabelsDiagonalLength,We=gt===void 0?be.arcLinkLabelsDiagonalLength:gt,rt=e.arcLinkLabelsStraightLength,Ze=rt===void 0?be.arcLinkLabelsStraightLength:rt,xt=e.arcLinkLabelsThickness,_t=xt===void 0?be.arcLinkLabelsThickness:xt,at=e.arcLinkLabelsTextOffset,xe=at===void 0?be.arcLinkLabelsTextOffset:at,Xe=e.arcLinkLabelsTextColor,Ct=Xe===void 0?be.arcLinkLabelsTextColor:Xe,Xt=e.arcLinkLabelsColor,kt=Xt===void 0?be.arcLinkLabelsColor:Xt,ht=e.arcLinkLabelComponent,wt=e.defs,ln=wt===void 0?be.defs:wt,vt=e.fill,At=vt===void 0?be.fill:vt,St=e.isInteractive,Jt=St===void 0?be.isInteractive:St,De=e.onClick,je=e.onMouseEnter,Ue=e.onMouseMove,pt=e.onMouseLeave,Ot=e.tooltip,Et=Ot===void 0?be.tooltip:Ot,xn=e.activeId,Qt=e.onActiveIdChange,Lt=e.defaultActiveId,dn=e.transitionMode,It=dn===void 0?be.transitionMode:dn,qt=e.legends,_n=qt===void 0?be.legends:qt,en=e.forwardLegendData,ze=e.role,Ne=ze===void 0?be.role:ze,Me=zp(E,F,M),et=Me.outerWidth,Yt=Me.outerHeight,jt=Me.margin,S=Me.innerWidth,K=Me.innerHeight,H=Fz({data:t,id:r,value:i,valueFormat:o,colors:I}),X=Bz({data:H,width:S,height:K,fit:w,innerRadius:T,startAngle:f,endAngle:m,padAngle:v,sortByValue:u,cornerRadius:C,activeInnerRadiusOffset:A,activeOuterRadiusOffset:j,activeId:xn,onActiveIdChange:Qt,defaultActiveId:Lt,forwardLegendData:en}),fe=X.dataWithArc,ve=X.legendData,le=X.arcGenerator,he=X.centerX,ke=X.centerY,Te=X.radius,Je=X.innerRadius,$t=X.setActiveId,yt=X.toggleSerie,fn=w_(ln,fe,At),se={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};l.includes("arcs")&&(se.arcs=y.jsx(zz,{center:[he,ke],data:fe,arcGenerator:le,borderWidth:N,borderColor:z,isInteractive:Jt,onClick:De,onMouseEnter:je,onMouseMove:Ue,onMouseLeave:pt,setActiveId:$t,tooltip:Et,transitionMode:It},"arcs")),k&&l.includes("arcLinkLabels")&&(se.arcLinkLabels=y.jsx(bz,{center:[he,ke],data:fe,label:pe,skipAngle:Ae,offset:ft,diagonalLength:We,straightLength:Ze,strokeWidth:_t,textOffset:xe,textColor:Ct,linkColor:kt,component:ht},"arcLinkLabels")),W&&l.includes("arcLabels")&&(se.arcLabels=y.jsx(dz,{center:[he,ke],data:fe,label:ne,radiusOffset:L,skipAngle:Q,textColor:J,transitionMode:It,component:V},"arcLabels")),_n.length>0&&l.includes("legends")&&(se.legends=y.jsx(Iz,{width:S,height:K,data:ve,legends:_n,toggleSerie:yt},"legends"));var hn=Wz({dataWithArc:fe,arcGenerator:le,centerX:he,centerY:ke,radius:Te,innerRadius:Je});return y.jsx(Vp,{width:et,height:Yt,margin:jt,defs:fn,role:Ne,children:l.map(function(Mt,xl){return se[Mt]!==void 0?se[Mt]:typeof Mt=="function"?y.jsx(h.Fragment,{children:h.createElement(Mt,hn)},xl):null})})},qz=function(e){var t=e.isInteractive,n=t===void 0?be.isInteractive:t,r=e.animate,a=r===void 0?be.animate:r,i=e.motionConfig,o=i===void 0?be.motionConfig:i,s=e.theme,u=e.renderWrapper,c=j_(e,Hz);return y.jsx(ml,{animate:a,isInteractive:n,motionConfig:o,renderWrapper:u,theme:s,children:y.jsx(Vz,Ur({isInteractive:n},c))})},Yz=function(e){return y.jsx(gl,{children:function(t){var n=t.width,r=t.height;return y.jsx(qz,Ur({width:n,height:r},e))}})};function Gz(){}var Zz=Gz,dd=a_,Kz=Zz,Xz=Fp,Jz=1/0,Qz=dd&&1/Xz(new dd([,-0]))[1]==Jz?function(e){return new dd(e)}:Kz,eH=Qz,tH=Mp,nH=A2,rH=j2,aH=Rp,iH=eH,oH=Fp,sH=200;function cH(e,t,n){var r=-1,a=nH,i=e.length,o=!0,s=[],u=s;if(n)o=!1,a=rH;else if(i>=sH){var c=t?null:iH(e);if(c)return oH(c);o=!1,a=aH,u=new tH}else u=t?[]:s;e:for(;++r<i;){var l=e[r],d=t?t(l):l;if(l=n||l!==0?l:0,o&&d===d){for(var f=u.length;f--;)if(u[f]===d)continue e;t&&u.push(d),s.push(l)}else a(u,d,n)||(u!==s&&u.push(d),s.push(l))}return s}var uH=cH,lH=wu,dH=Up,fH=1,hH=2;function pH(e,t,n,r){var a=n.length,i=a,o=!r;if(e==null)return!i;for(e=Object(e);a--;){var s=n[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=n[a];var u=s[0],c=e[u],l=s[1];if(o&&s[2]){if(c===void 0&&!(u in e))return!1}else{var d=new lH;if(r)var f=r(c,l,u,e,t,d);if(!(f===void 0?dH(l,c,fH|hH,r,d):f))return!1}}return!0}var mH=pH,gH=er;function vH(e){return e===e&&!gH(e)}var P_=vH,yH=P_,bH=ss;function xH(e){for(var t=bH(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,yH(a)]}return t}var _H=xH;function wH(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var D_=wH,TH=mH,CH=_H,kH=D_;function SH(e){var t=CH(e);return t.length==1&&t[0][2]?kH(t[0][0],t[0][1]):function(n){return n===e||TH(n,e,t)}}var OH=SH,EH=Up,$H=Yx,MH=Z2,RH=rp,AH=P_,jH=D_,PH=Ti,DH=1,IH=2;function NH(e,t){return RH(e)&&AH(t)?jH(PH(e),t):function(n){var r=$H(n,e);return r===void 0&&r===t?MH(n,e):EH(t,r,DH|IH)}}var FH=NH;function LH(e){return function(t){return t==null?void 0:t[e]}}var UH=LH,BH=is;function WH(e){return function(t){return BH(t,e)}}var zH=WH,HH=UH,VH=zH,qH=rp,YH=Ti;function GH(e){return qH(e)?HH(YH(e)):VH(e)}var ZH=GH,KH=OH,XH=FH,JH=Ou,QH=cn,eV=ZH;function tV(e){return typeof e=="function"?e:e==null?JH:typeof e=="object"?QH(e)?XH(e[0],e[1]):KH(e):eV(e)}var Yp=tV,nV=Yp,rV=uH;function aV(e,t){return e&&e.length?rV(e,nV(t)):[]}var iV=aV;const xv=Tt(iV);var oV=$x,sV=ss;function cV(e,t){return e&&oV(e,t,sV)}var uV=cV,lV=xi;function dV(e,t){return function(n,r){if(n==null)return n;if(!lV(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Object(n);(t?i--:++i<a)&&r(o[i],i,o)!==!1;);return n}}var fV=dV,hV=uV,pV=fV,mV=pV(hV),I_=mV,gV=I_,vV=xi;function yV(e,t){var n=-1,r=vV(e)?Array(e.length):[];return gV(e,function(a,i,o){r[++n]=t(a,i,o)}),r}var bV=yV;function xV(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var _V=xV,_v=Eu;function wV(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=_v(e),o=t!==void 0,s=t===null,u=t===t,c=_v(t);if(!s&&!c&&!i&&e>t||i&&o&&u&&!s&&!c||r&&o&&u||!n&&u||!a)return 1;if(!r&&!i&&!c&&e<t||c&&n&&a&&!r&&!i||s&&n&&a||!o&&a||!u)return-1}return 0}var TV=wV,CV=TV;function kV(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,o=a.length,s=n.length;++r<o;){var u=CV(a[r],i[r]);if(u){if(r>=s)return u;var c=n[r];return u*(c=="desc"?-1:1)}}return e.index-t.index}var SV=kV,fd=$u,OV=is,EV=Yp,$V=bV,MV=_V,RV=rs,AV=SV,jV=Ou,PV=cn;function DV(e,t,n){t.length?t=fd(t,function(i){return PV(i)?function(o){return OV(o,i.length===1?i[0]:i)}:i}):t=[jV];var r=-1;t=fd(t,RV(EV));var a=$V(e,function(i,o,s){var u=fd(t,function(c){return c(i)});return{criteria:u,index:++r,value:i}});return MV(a,function(i,o){return AV(i,o,n)})}var IV=DV,NV=X2,FV=IV,LV=np,wv=Hx;LV(function(e,t){if(e==null)return[];var n=t.length;return n>1&&wv(e,t[0],t[1])?t=[]:n>2&&wv(t[0],t[1],t[2])&&(t=[t[0]]),FV(e,NV(t,1),[])});var Tv=ku;Tv&&Tv.isDate;var hd=new Date,pd=new Date;function Pt(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=function(i){return e(i=new Date(+i)),i},a.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},a.round=function(i){var o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=function(i,o){return t(i=new Date(+i),o==null?1:Math.floor(o)),i},a.range=function(i,o,s){var u=[],c;if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return u;do u.push(c=new Date(+i)),t(i,s),e(i);while(c<i&&i<o);return u},a.filter=function(i){return Pt(function(o){if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););})},n&&(a.count=function(i,o){return hd.setTime(+i),pd.setTime(+o),e(hd),e(pd),Math.floor(n(hd,pd))},a.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?function(o){return r(o)%i===0}:function(o){return a.count(0,o)%i===0}):a}),a}var Uo=Pt(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Uo.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Pt(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Uo};Uo.range;var Rc=1e3,ci=6e4,Ac=36e5,N_=6048e5,jf=Pt(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Rc)},function(e,t){return(t-e)/Rc},function(e){return e.getUTCSeconds()});jf.range;var F_=Pt(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Rc)},function(e,t){e.setTime(+e+t*ci)},function(e,t){return(t-e)/ci},function(e){return e.getMinutes()});F_.range;var L_=Pt(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Rc-e.getMinutes()*ci)},function(e,t){e.setTime(+e+t*Ac)},function(e,t){return(t-e)/Ac},function(e){return e.getHours()});L_.range;function Oa(e){return Pt(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())*ci)/N_})}var Pf=Oa(0),U_=Oa(1),B_=Oa(2),W_=Oa(3),z_=Oa(4),H_=Oa(5),V_=Oa(6);Pf.range;U_.range;B_.range;W_.range;z_.range;H_.range;V_.range;var q_=Pt(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()});q_.range;var Gp=Pt(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()});Gp.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Pt(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)})};Gp.range;var Y_=Pt(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*ci)},function(e,t){return(t-e)/ci},function(e){return e.getUTCMinutes()});Y_.range;var G_=Pt(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Ac)},function(e,t){return(t-e)/Ac},function(e){return e.getUTCHours()});G_.range;function Ea(e){return Pt(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)/N_})}var Df=Ea(0),Z_=Ea(1),K_=Ea(2),X_=Ea(3),J_=Ea(4),Q_=Ea(5),ew=Ea(6);Df.range;Z_.range;K_.range;X_.range;J_.range;Q_.range;ew.range;var tw=Pt(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()});tw.range;var Zp=Pt(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()});Zp.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Pt(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)})};Zp.range;var Ia=[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)}],UV={millisecond:[],second:Ia.slice(0,1),minute:Ia.slice(0,2),hour:Ia.slice(0,3),day:Ia.slice(0,4),month:Ia.slice(0,5),year:Ia.slice(0,6)},BV=function(e){return function(t){return UV[e].forEach(function(n){n(t)}),t}},WV=function(e){var t=e.format,n=t===void 0?"native":t,r=e.precision,a=r===void 0?"millisecond":r,i=e.useUTC,o=i===void 0||i,s=BV(a);return function(u){if(u===void 0)return u;if(n==="native"||u instanceof Date)return s(u);var c=o?T2(n):_2(n);return s(c(u))}},zV=function(e,t,n,r){var a,i,o,s,u=e.min,c=u===void 0?0:u,l=e.max,d=l===void 0?"auto":l,f=e.stacked,p=f!==void 0&&f,m=e.reverse,g=m!==void 0&&m,v=e.clamp,x=v!==void 0&&v,w=e.nice,b=w!==void 0&&w;c==="auto"?a=p===!0?(i=t.minStacked)!=null?i:0:t.min:a=c,d==="auto"?o=p===!0?(s=t.maxStacked)!=null?s:0:t.max:o=d;var T=s2().rangeRound(r==="x"?[0,n]:[n,0]).domain(g?[o,a]:[a,o]).clamp(x);return b===!0?T.nice():typeof b=="number"&&T.nice(b),HV(T,p)},HV=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},VV=function(e,t,n){var r=AD().range([0,n]).domain(t.all);return r.type="point",r},qV=function(e,t,n,r){var a=e.round,i=a===void 0||a,o=dp().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(i);return YV(o)},YV=function(e){var t=e;return t.type="band",t},GV=function(e,t,n){var r,a,i=e.format,o=i===void 0?"native":i,s=e.precision,u=s===void 0?"millisecond":s,c=e.min,l=c===void 0?"auto":c,d=e.max,f=d===void 0?"auto":d,p=e.useUTC,m=p===void 0||p,g=e.nice,v=g!==void 0&&g,x=WV({format:o,precision:u,useUTC:m});r=l==="auto"?x(t.min):o!=="native"?x(l):l,a=f==="auto"?x(t.max):o!=="native"?x(f):f;var w=m?jN():AN();w.range([0,n]),r&&a&&w.domain([r,a]),v===!0?w.nice():typeof v!="object"&&typeof v!="number"||w.nice(v);var b=w;return b.type="time",b.useUTC=m,b},ZV=function(e,t,n,r){var a,i=e.base,o=i===void 0?10:i,s=e.min,u=s===void 0?"auto":s,c=e.max,l=c===void 0?"auto":c;if(t.all.some(function(g){return g===0}))throw new Error("a log scale domain must not include or cross zero");var d,f,p=!1;if(t.all.filter(function(g){return g!=null}).forEach(function(g){p||(a===void 0?a=Math.sign(g):Math.sign(g)!==a&&(p=!0))}),p)throw new Error("a log scale domain must be strictly-positive or strictly-negative");d=u==="auto"?t.min:u,f=l==="auto"?t.max:l;var m=u2().domain([d,f]).rangeRound(r==="x"?[0,n]:[n,0]).base(o).nice();return m.type="log",m},KV=function(e,t,n,r){var a,i,o=e.constant,s=o===void 0?1:o,u=e.min,c=u===void 0?"auto":u,l=e.max,d=l===void 0?"auto":l,f=e.reverse,p=f!==void 0&&f;a=c==="auto"?t.min:c,i=d==="auto"?t.max:d;var m=l2().constant(s).rangeRound(r==="x"?[0,n]:[n,0]).nice();p===!0?m.domain([i,a]):m.domain([a,i]);var g=m;return g.type="symlog",g};function Kp(e,t,n,r){switch(e.type){case"linear":return zV(e,t,n,r);case"point":return VV(e,t,n);case"band":return qV(e,t,n,r);case"time":return GV(e,t,n);case"log":return ZV(e,t,n,r);case"symlog":return KV(e,t,n,r);default:throw new Error("invalid scale spec")}}var nw=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 a;return((a=e(r))!=null?a:0)+n}},rw={millisecond:[Uo,Uo],second:[jf,jf],minute:[F_,Y_],hour:[L_,G_],day:[Pt(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)}),Pt(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:[Pf,Df],sunday:[Pf,Df],monday:[U_,Z_],tuesday:[B_,K_],wednesday:[W_,X_],thursday:[z_,J_],friday:[H_,Q_],saturday:[V_,ew],month:[q_,tw],year:[Gp,Zp]},XV=Object.keys(rw),JV=new RegExp("^every\\s*(\\d+)?\\s*("+XV.join("|")+")s?$","i"),aw=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(JV);if(n){var r=n[1],a=n[2],i=rw[a][e.useUTC?1:0];if(a==="day"){var o,s,u=e.domain(),c=u[0],l=u[1],d=new Date(l);return d.setDate(d.getDate()+1),(o=(s=i.every(Number(r??1)))==null?void 0:s.range(c,d))!=null?o:[]}if(r===void 0)return e.ticks(i);var f=i.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(p=t)=="number"&&isFinite(p)&&Math.floor(p)===p)return e.ticks(t)}var p;return e.domain()};function Sn(){return Sn=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},Sn.apply(this,arguments)}var iw=function(e){var t,n=e.axis,r=e.scale,a=e.ticksPosition,i=e.tickValues,o=e.tickSize,s=e.tickPadding,u=e.tickRotation,c=e.truncateTickAt,l=e.engine,d=l===void 0?"svg":l,f=aw(r,i),p=IW[d],m="bandwidth"in r?nw(r):r,g={lineX:0,lineY:0},v={textX:0,textY:0},x=typeof document=="object"&&document.dir==="rtl",w=p.align.center,b=p.baseline.center;return n==="x"?(t=function(T){var _;return{x:(_=m(T))!=null?_:0,y:0}},g.lineY=o*(a==="after"?1:-1),v.textY=(o+s)*(a==="after"?1:-1),b=a==="after"?p.baseline.top:p.baseline.bottom,u===0?w=p.align.center:a==="after"&&u<0||a==="before"&&u>0?(w=p.align[x?"left":"right"],b=p.baseline.center):(a==="after"&&u>0||a==="before"&&u<0)&&(w=p.align[x?"right":"left"],b=p.baseline.center)):(t=function(T){var _;return{x:0,y:(_=m(T))!=null?_:0}},g.lineX=o*(a==="after"?1:-1),v.textX=(o+s)*(a==="after"?1:-1),w=a==="after"?p.align.left:p.align.right),{ticks:f.map(function(T){var _=typeof T=="string"?function(C){var $=String(C).length;return c&&c>0&&$>c?""+String(C).slice(0,c).concat("..."):""+C}(T):T;return Sn({key:T instanceof Date?""+T.valueOf():""+T,value:_},t(T),g,v)}),textAlign:w,textBaseline:b}},ow=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=Iu(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return os(e)},If=function(e){var t,n=e.width,r=e.height,a=e.scale,i=e.axis,o=e.values,s=(t=o,(Array.isArray(t)?o:void 0)||aw(a,o)),u="bandwidth"in a?nw(a):a,c=i==="x"?s.map(function(l){var d,f;return{key:l instanceof Date?""+l.valueOf():""+l,x1:(d=u(l))!=null?d:0,x2:(f=u(l))!=null?f:0,y1:0,y2:r}}):s.map(function(l){var d,f;return{key:l instanceof Date?""+l.valueOf():""+l,x1:0,x2:n,y1:(d=u(l))!=null?d:0,y2:(f=u(l))!=null?f:0}});return c},QV=h.memo(function(e){var t,n=e.value,r=e.format,a=e.lineX,i=e.lineY,o=e.onClick,s=e.textBaseline,u=e.textAnchor,c=e.animatedProps,l=lt(),d=l.axis.ticks.line,f=l.axis.ticks.text,p=(t=r==null?void 0:r(n))!=null?t:n,m=h.useMemo(function(){var g={opacity:c.opacity};return o?{style:Sn({},g,{cursor:"pointer"}),onClick:function(v){return o(v,p)}}:{style:g}},[c.opacity,o,p]);return y.jsxs(Qe.g,Sn({transform:c.transform},m,{children:[y.jsx("line",{x1:0,x2:a,y1:0,y2:i,style:d}),f.outlineWidth>0&&y.jsx(Qe.text,{dominantBaseline:s,textAnchor:u,transform:c.textTransform,style:f,strokeWidth:2*f.outlineWidth,stroke:f.outlineColor,strokeLinejoin:"round",children:""+p}),y.jsx(Qe.text,{dominantBaseline:s,textAnchor:u,transform:c.textTransform,style:Hp(f),children:""+p})]}))}),eq=function(e){var t=e.axis,n=e.scale,r=e.x,a=r===void 0?0:r,i=e.y,o=i===void 0?0:i,s=e.length,u=e.ticksPosition,c=e.tickValues,l=e.tickSize,d=l===void 0?5:l,f=e.tickPadding,p=f===void 0?5:f,m=e.tickRotation,g=m===void 0?0:m,v=e.format,x=e.renderTick,w=x===void 0?QV:x,b=e.truncateTickAt,T=e.legend,_=e.legendPosition,C=_===void 0?"end":_,$=e.legendOffset,A=$===void 0?0:$,D=e.onClick,j=e.ariaHidden,E=lt(),F=E.axis.legend.text,M=h.useMemo(function(){return ow(v,n)},[v,n]),R=iw({axis:t,scale:n,ticksPosition:u,tickValues:c,tickSize:d,tickPadding:p,tickRotation:g,truncateTickAt:b}),I=R.ticks,U=R.textAlign,N=R.textBaseline,q=null;if(T!==void 0){var z,P=0,W=0,Z=0;t==="y"?(Z=-90,P=A,C==="start"?(z="start",W=s):C==="middle"?(z="middle",W=s/2):C==="end"&&(z="end")):(W=A,C==="start"?z="start":C==="middle"?(z="middle",P=s/2):C==="end"&&(z="end",P=s)),q=y.jsxs(y.Fragment,{children:[F.outlineWidth>0&&y.jsx("text",{transform:"translate("+P+", "+W+") rotate("+Z+")",textAnchor:z,style:Sn({dominantBaseline:"central"},F),strokeWidth:2*F.outlineWidth,stroke:F.outlineColor,strokeLinejoin:"round",children:T}),y.jsx("text",{transform:"translate("+P+", "+W+") rotate("+Z+")",textAnchor:z,style:Sn({dominantBaseline:"central"},F),children:T})]})}var ne=un(),Y=ne.animate,Q=ne.config,G=vr({transform:"translate("+a+","+o+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:Q,immediate:!Y}),J=h.useCallback(function(V){return{opacity:1,transform:"translate("+V.x+","+V.y+")",textTransform:"translate("+V.textX+","+V.textY+") rotate("+g+")"}},[g]),re=h.useCallback(function(V){return{opacity:0,transform:"translate("+V.x+","+V.y+")",textTransform:"translate("+V.textX+","+V.textY+") rotate("+g+")"}},[g]),L=xa(I,{keys:function(V){return V.key},initial:J,from:re,enter:J,update:J,leave:{opacity:0},config:Q,immediate:!Y});return y.jsxs(Qe.g,{transform:G.transform,"aria-hidden":j,children:[L(function(V,ae,k,ge){return oe.createElement(w,Sn({tickIndex:ge,format:M,rotate:g,textBaseline:N,textAnchor:U,truncateTickAt:b,animatedProps:V},ae,D?{onClick:D}:{}))}),y.jsx(Qe.line,{style:E.axis.domain.line,x1:0,x2:G.lineX2,y1:0,y2:G.lineY2}),q]})},tq=h.memo(eq),sw=["top","right","bottom","left"],nq=h.memo(function(e){var t=e.xScale,n=e.yScale,r=e.width,a=e.height,i={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return y.jsx(y.Fragment,{children:sw.map(function(o){var s=i[o];if(!s)return null;var u=o==="top"||o==="bottom";return y.jsx(tq,Sn({},s,{axis:u?"x":"y",x:o==="right"?r:0,y:o==="bottom"?a:0,scale:u?t:n,length:u?r:a,ticksPosition:o==="top"||o==="left"?"before":"after",truncateTickAt:s.truncateTickAt}),o)})})}),rq=h.memo(function(e){var t=e.animatedProps,n=lt();return y.jsx(Qe.line,Sn({},t,n.grid.line))}),Cv=h.memo(function(e){var t=e.lines,n=un(),r=n.animate,a=n.config,i=xa(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:a,immediate:!r});return y.jsx("g",{children:i(function(o,s){return h.createElement(rq,Sn({},s,{key:s.key,animatedProps:o}))})})}),aq=h.memo(function(e){var t=e.width,n=e.height,r=e.xScale,a=e.yScale,i=e.xValues,o=e.yValues,s=h.useMemo(function(){return!!r&&If({width:t,height:n,scale:r,axis:"x",values:i})},[r,i,t,n]),u=h.useMemo(function(){return!!a&&If({width:t,height:n,scale:a,axis:"y",values:o})},[n,t,a,o]);return y.jsxs(y.Fragment,{children:[s&&y.jsx(Cv,{lines:s}),u&&y.jsx(Cv,{lines:u})]})}),iq=function(e,t){var n,r=t.axis,a=t.scale,i=t.x,o=i===void 0?0:i,s=t.y,u=s===void 0?0:s,c=t.length,l=t.ticksPosition,d=t.tickValues,f=t.tickSize,p=f===void 0?5:f,m=t.tickPadding,g=m===void 0?5:m,v=t.tickRotation,x=v===void 0?0:v,w=t.format,b=t.legend,T=t.legendPosition,_=T===void 0?"end":T,C=t.legendOffset,$=C===void 0?0:C,A=t.theme,D=iw({axis:r,scale:a,ticksPosition:l,tickValues:d,tickSize:p,tickPadding:g,tickRotation:x,engine:"canvas"}),j=D.ticks,E=D.textAlign,F=D.textBaseline;e.save(),e.translate(o,u),e.textAlign=E,e.textBaseline=F;var M=A.axis.ticks.text;e.font=(M.fontWeight?M.fontWeight+" ":"")+M.fontSize+"px "+M.fontFamily,((n=A.axis.domain.line.strokeWidth)!=null?n:0)>0&&(e.lineWidth=Number(A.axis.domain.line.strokeWidth),e.lineCap="square",A.axis.domain.line.stroke&&(e.strokeStyle=A.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(r==="x"?c:0,r==="x"?0:c),e.stroke());var R=typeof w=="function"?w:function(z){return""+z};if(j.forEach(function(z){var P;((P=A.axis.ticks.line.strokeWidth)!=null?P:0)>0&&(e.lineWidth=Number(A.axis.ticks.line.strokeWidth),e.lineCap="square",A.axis.ticks.line.stroke&&(e.strokeStyle=A.axis.ticks.line.stroke),e.beginPath(),e.moveTo(z.x,z.y),e.lineTo(z.x+z.lineX,z.y+z.lineY),e.stroke());var W=R(z.value);e.save(),e.translate(z.x+z.textX,z.y+z.textY),e.rotate(kn(x)),M.outlineWidth>0&&(e.strokeStyle=M.outlineColor,e.lineWidth=2*M.outlineWidth,e.lineJoin="round",e.strokeText(""+W,0,0)),A.axis.ticks.text.fill&&(e.fillStyle=M.fill),e.fillText(""+W,0,0),e.restore()}),b!==void 0){var I=0,U=0,N=0,q="center";r==="y"?(N=-90,I=$,_==="start"?(q="start",U=c):_==="middle"?(q="center",U=c/2):_==="end"&&(q="end")):(U=$,_==="start"?q="start":_==="middle"?(q="center",I=c/2):_==="end"&&(q="end",I=c)),e.translate(I,U),e.rotate(kn(N)),e.font=(A.axis.legend.text.fontWeight?A.axis.legend.text.fontWeight+" ":"")+A.axis.legend.text.fontSize+"px "+A.axis.legend.text.fontFamily,A.axis.legend.text.fill&&(e.fillStyle=A.axis.legend.text.fill),e.textAlign=q,e.textBaseline="middle",e.fillText(b,0,0)}e.restore()},oq=function(e,t){var n=t.xScale,r=t.yScale,a=t.width,i=t.height,o=t.top,s=t.right,u=t.bottom,c=t.left,l=t.theme,d={top:o,right:s,bottom:u,left:c};sw.forEach(function(f){var p=d[f];if(!p)return null;var m=f==="top"||f==="bottom",g=f==="top"||f==="left"?"before":"after",v=m?n:r,x=ow(p.format,v);iq(e,Sn({},p,{axis:m?"x":"y",x:f==="right"?a:0,y:f==="bottom"?i:0,scale:v,format:x,length:m?a:i,ticksPosition:g,theme:l}))})},kv=function(e,t){var n=t.width,r=t.height,a=t.scale,i=t.axis,o=t.values;If({width:n,height:r,scale:a,axis:i,values:o}).forEach(function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()})},sq=I_;function cq(e,t){var n=[];return sq(e,function(r,a,i){t(r,a,i)&&n.push(r)}),n}var uq=cq,lq=t_,dq=uq,fq=Yp,hq=cn;function pq(e,t){var n=hq(e)?lq:dq;return n(e,fq(t))}var mq=pq;const gq=Tt(mq);var vq=zr,yq=Un,bq="[object Number]";function xq(e){return typeof e=="number"||yq(e)&&vq(e)==bq}var _q=xq;const Sv=Tt(_q);function wq(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Tq=wq,Cq=_i,kq=ss;function Sq(e,t){return e&&Cq(t,kq(t),e)}var Oq=Sq,Eq=_i,$q=as;function Mq(e,t){return e&&Eq(t,$q(t),e)}var Rq=Mq,Aq=_i,jq=Lp;function Pq(e,t){return Aq(e,jq(e),t)}var Dq=Pq,Iq=Np,Nq=Zh,Fq=Lp,Lq=n_,Uq=Object.getOwnPropertySymbols,Bq=Uq?function(e){for(var t=[];e;)Iq(t,Fq(e)),e=Nq(e);return t}:Lq,cw=Bq,Wq=_i,zq=cw;function Hq(e,t){return Wq(e,zq(e),t)}var Vq=Hq,qq=e_,Yq=cw,Gq=as;function Zq(e){return qq(e,Gq,Yq)}var uw=Zq,Kq=Object.prototype,Xq=Kq.hasOwnProperty;function Jq(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Xq.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Qq=Jq,eY=Gh;function tY(e,t){var n=t?eY(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var nY=tY,rY=/\w*$/;function aY(e){var t=new e.constructor(e.source,rY.exec(e));return t.lastIndex=e.lastIndex,t}var iY=aY,Ov=gi,Ev=Ov?Ov.prototype:void 0,$v=Ev?Ev.valueOf:void 0;function oY(e){return $v?Object($v.call(e)):{}}var sY=oY,cY=Gh,uY=nY,lY=iY,dY=sY,fY=Ax,hY="[object Boolean]",pY="[object Date]",mY="[object Map]",gY="[object Number]",vY="[object RegExp]",yY="[object Set]",bY="[object String]",xY="[object Symbol]",_Y="[object ArrayBuffer]",wY="[object DataView]",TY="[object Float32Array]",CY="[object Float64Array]",kY="[object Int8Array]",SY="[object Int16Array]",OY="[object Int32Array]",EY="[object Uint8Array]",$Y="[object Uint8ClampedArray]",MY="[object Uint16Array]",RY="[object Uint32Array]";function AY(e,t,n){var r=e.constructor;switch(t){case _Y:return cY(e);case hY:case pY:return new r(+e);case wY:return uY(e,n);case TY:case CY:case kY:case SY:case OY:case EY:case $Y:case MY:case RY:return fY(e,n);case mY:return new r;case gY:case bY:return new r(e);case vY:return lY(e);case yY:return new r;case xY:return dY(e)}}var jY=AY,PY=hl,DY=Un,IY="[object Map]";function NY(e){return DY(e)&&PY(e)==IY}var FY=NY,LY=FY,UY=rs,Mv=ku,Rv=Mv&&Mv.isMap,BY=Rv?UY(Rv):LY,WY=BY,zY=hl,HY=Un,VY="[object Set]";function qY(e){return HY(e)&&zY(e)==VY}var YY=qY,GY=YY,ZY=rs,Av=ku,jv=Av&&Av.isSet,KY=jv?ZY(jv):GY,XY=KY,JY=wu,QY=Tq,eG=tp,tG=Oq,nG=Rq,rG=Mx,aG=jx,iG=Dq,oG=Vq,sG=r_,cG=uw,uG=hl,lG=Qq,dG=jY,fG=Dx,hG=cn,pG=Cu,mG=WY,gG=er,vG=XY,yG=ss,bG=as,xG=1,_G=2,wG=4,lw="[object Arguments]",TG="[object Array]",CG="[object Boolean]",kG="[object Date]",SG="[object Error]",dw="[object Function]",OG="[object GeneratorFunction]",EG="[object Map]",$G="[object Number]",fw="[object Object]",MG="[object RegExp]",RG="[object Set]",AG="[object String]",jG="[object Symbol]",PG="[object WeakMap]",DG="[object ArrayBuffer]",IG="[object DataView]",NG="[object Float32Array]",FG="[object Float64Array]",LG="[object Int8Array]",UG="[object Int16Array]",BG="[object Int32Array]",WG="[object Uint8Array]",zG="[object Uint8ClampedArray]",HG="[object Uint16Array]",VG="[object Uint32Array]",it={};it[lw]=it[TG]=it[DG]=it[IG]=it[CG]=it[kG]=it[NG]=it[FG]=it[LG]=it[UG]=it[BG]=it[EG]=it[$G]=it[fw]=it[MG]=it[RG]=it[AG]=it[jG]=it[WG]=it[zG]=it[HG]=it[VG]=!0;it[SG]=it[dw]=it[PG]=!1;function Us(e,t,n,r,a,i){var o,s=t&xG,u=t&_G,c=t&wG;if(n&&(o=a?n(e,r,a,i):n(e)),o!==void 0)return o;if(!gG(e))return e;var l=hG(e);if(l){if(o=lG(e),!s)return aG(e,o)}else{var d=uG(e),f=d==dw||d==OG;if(pG(e))return rG(e,s);if(d==fw||d==lw||f&&!a){if(o=u||f?{}:fG(e),!s)return u?oG(e,nG(o,e)):iG(e,tG(o,e))}else{if(!it[d])return a?e:{};o=dG(e,d,s)}}i||(i=new JY);var p=i.get(e);if(p)return p;i.set(e,o),vG(e)?e.forEach(function(v){o.add(Us(v,t,n,v,e,i))}):mG(e)&&e.forEach(function(v,x){o.set(x,Us(v,t,n,x,e,i))});var m=c?u?cG:sG:u?bG:yG,g=l?void 0:m(e);return QY(g||e,function(v,x){g&&(x=v,v=e[x]),eG(o,x,Us(v,t,n,x,e,i))}),o}var qG=Us;function YG(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r<a;)i[r]=e[r+t];return i}var GG=YG,ZG=is,KG=GG;function XG(e,t){return t.length<2?e:ZG(e,KG(t,0,-1))}var JG=XG,QG=wi,eZ=t2,tZ=JG,nZ=Ti;function rZ(e,t){return t=QG(t,e),e=tZ(e,t),e==null||delete e[nZ(eZ(t))]}var aZ=rZ,iZ=Jh;function oZ(e){return iZ(e)?void 0:e}var sZ=oZ,cZ=$u,uZ=qG,lZ=aZ,dZ=wi,fZ=_i,hZ=sZ,pZ=J2,mZ=uw,gZ=1,vZ=2,yZ=4,bZ=pZ(function(e,t){var n={};if(e==null)return n;var r=!1;t=cZ(t,function(i){return i=dZ(i,e),r||(r=i.length>1),i}),fZ(e,mZ(e),n),r&&(n=uZ(n,gZ|vZ|yZ,hZ));for(var a=t.length;a--;)lZ(n,t[a]);return n}),xZ=bZ;const hw=Tt(xZ);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 Nf={dotSize:4,noteWidth:120,noteTextOffset:8,animate:!0},_Z=function(e){var t=typeof e;return h.isValidElement(e)||t==="string"||t==="function"||t==="object"},wZ=function(e){var t=typeof e;return t==="string"||t==="function"},Bo=function(e){return e.type==="circle"},Ff=function(e){return e.type==="dot"},Wo=function(e){return e.type==="rect"},TZ=function(e){var t=e.data,n=e.annotations,r=e.getPosition,a=e.getDimensions;return n.reduce(function(i,o){var s=o.offset||0;return[].concat(i,gq(t,o.match).map(function(u){var c=r(u),l=a(u);return(Bo(o)||Wo(o))&&(l.size=l.size+2*s,l.width=l.width+2*s,l.height=l.height+2*s),Jn({},hw(o,["match","offset"]),c,l,{size:o.size||l.size,datum:u})}))},[])},CZ=function(e,t,n,r){var a=Math.atan2(r-t,n-e);return DW(vl(a))},pw=function(e){var t,n,r=e.x,a=e.y,i=e.noteX,o=e.noteY,s=e.noteWidth,u=s===void 0?Nf.noteWidth:s,c=e.noteTextOffset,l=c===void 0?Nf.noteTextOffset:c;if(Sv(i))t=r+i;else{if(i.abs===void 0)throw new Error("noteX should be either a number or an object containing an 'abs' property");t=i.abs}if(Sv(o))n=a+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=a,p=CZ(r,a,t,n);if(Bo(e)){var m=oa(kn(p),e.size/2);d+=m.x,f+=m.y}if(Wo(e)){var g=Math.round((p+90)/45)%8;g===0&&(f-=e.height/2),g===1&&(d+=e.width/2,f-=e.height/2),g===2&&(d+=e.width/2),g===3&&(d+=e.width/2,f+=e.height/2),g===4&&(f+=e.height/2),g===5&&(d-=e.width/2,f+=e.height/2),g===6&&(d-=e.width/2),g===7&&(d-=e.width/2,f-=e.height/2)}var v=t,x=t;return(p+90)%360>180?(v-=u,x-=u):x+=u,{points:[[d,f],[t,n],[x,n]],text:[v,n-l],angle:p+90}},mw=function(e){var t=e.data,n=e.annotations,r=e.getPosition,a=e.getDimensions;return h.useMemo(function(){return TZ({data:t,annotations:n,getPosition:r,getDimensions:a})},[t,n,r,a])},kZ=function(e){var t=e.annotations;return h.useMemo(function(){return t.map(function(n){return Jn({},n,{computed:pw(Jn({},n))})})},[t])},SZ=function(e){return h.useMemo(function(){return pw(e)},[e])},OZ=function(e){var t=e.datum,n=e.x,r=e.y,a=e.note,i=lt(),o=un(),s=o.animate,u=o.config,c=vr({x:n,y:r,config:u,immediate:!s});return typeof a=="function"?h.createElement(a,{x:n,y:r,datum:t}):y.jsxs(y.Fragment,{children:[i.annotations.text.outlineWidth>0&&y.jsx(Qe.text,{x:c.x,y:c.y,style:Jn({},i.annotations.text,{strokeLinejoin:"round",strokeWidth:2*i.annotations.text.outlineWidth,stroke:i.annotations.text.outlineColor}),children:a}),y.jsx(Qe.text,{x:c.x,y:c.y,style:hw(i.annotations.text,["outlineWidth","outlineColor"]),children:a})]})},Pv=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,a=lt(),i=h.useMemo(function(){var u=t[0];return t.slice(1).reduce(function(c,l){return c+" L"+l[0]+","+l[1]},"M"+u[0]+","+u[1])},[t]),o=wW(i);if(r&&a.annotations.link.outlineWidth<=0)return null;var s=Jn({},a.annotations.link);return r&&(s.strokeLinecap="square",s.strokeWidth=a.annotations.link.strokeWidth+2*a.annotations.link.outlineWidth,s.stroke=a.annotations.link.outlineColor,s.opacity=a.annotations.link.outlineOpacity),y.jsx(Qe.path,{fill:"none",d:o,style:s})},EZ=function(e){var t=e.x,n=e.y,r=e.size,a=lt(),i=un(),o=i.animate,s=i.config,u=vr({x:t,y:n,radius:r/2,config:s,immediate:!o});return y.jsxs(y.Fragment,{children:[a.annotations.outline.outlineWidth>0&&y.jsx(Qe.circle,{cx:u.x,cy:u.y,r:u.radius,style:Jn({},a.annotations.outline,{fill:"none",strokeWidth:a.annotations.outline.strokeWidth+2*a.annotations.outline.outlineWidth,stroke:a.annotations.outline.outlineColor,opacity:a.annotations.outline.outlineOpacity})}),y.jsx(Qe.circle,{cx:u.x,cy:u.y,r:u.radius,style:a.annotations.outline})]})},$Z=function(e){var t=e.x,n=e.y,r=e.size,a=r===void 0?Nf.dotSize:r,i=lt(),o=un(),s=o.animate,u=o.config,c=vr({x:t,y:n,radius:a/2,config:u,immediate:!s});return y.jsxs(y.Fragment,{children:[i.annotations.outline.outlineWidth>0&&y.jsx(Qe.circle,{cx:c.x,cy:c.y,r:c.radius,style:Jn({},i.annotations.outline,{fill:"none",strokeWidth:2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),y.jsx(Qe.circle,{cx:c.x,cy:c.y,r:c.radius,style:i.annotations.symbol})]})},MZ=function(e){var t=e.x,n=e.y,r=e.width,a=e.height,i=e.borderRadius,o=i===void 0?6:i,s=lt(),u=un(),c=u.animate,l=u.config,d=vr({x:t-r/2,y:n-a/2,width:r,height:a,config:l,immediate:!c});return y.jsxs(y.Fragment,{children:[s.annotations.outline.outlineWidth>0&&y.jsx(Qe.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:Jn({},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})}),y.jsx(Qe.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:s.annotations.outline})]})},RZ=function(e){var t=e.datum,n=e.x,r=e.y,a=e.note,i=SZ(e);if(!_Z(a))throw new Error("note should be a valid react element");return y.jsxs(y.Fragment,{children:[y.jsx(Pv,{points:i.points,isOutline:!0}),Bo(e)&&y.jsx(EZ,{x:n,y:r,size:e.size}),Ff(e)&&y.jsx($Z,{x:n,y:r,size:e.size}),Wo(e)&&y.jsx(MZ,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),y.jsx(Pv,{points:i.points}),y.jsx(OZ,{datum:t,x:i.text[0],y:i.text[1],note:a})]})},Dv=function(e,t){t.forEach(function(n,r){var a=n[0],i=n[1];r===0?e.moveTo(a,i):e.lineTo(a,i)})},AZ=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(a){if(!wZ(a.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(),Dv(e,a.computed.points),e.stroke(),e.lineCap="butt"),Bo(a)&&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(a.x,a.y,a.size/2,0,2*Math.PI),e.stroke()),Ff(a)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(a.x,a.y,a.size/2,0,2*Math.PI),e.stroke()),Wo(a)&&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(a.x-a.width/2,a.y-a.height/2,a.width,a.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),Dv(e,a.computed.points),e.stroke(),Bo(a)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(a.x,a.y,a.size/2,0,2*Math.PI),e.stroke()),Ff(a)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(a.x,a.y,a.size/2,0,2*Math.PI),e.fill()),Wo(a)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(a.x-a.width/2,a.y-a.height/2,a.width,a.height),e.stroke()),typeof a.note=="function"?a.note(e,{datum:a.datum,x:a.computed.text[0],y:a.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(a.note,a.computed.text[0],a.computed.text[1]),e.lineJoin="miter"),e.fillText(a.note,a.computed.text[0],a.computed.text[1]))}),e.restore())};function Ke(){return Ke=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},Ke.apply(this,arguments)}function Si(e,t){if(e==null)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var Iv,jZ=function(e){var t=e.bars,n=e.annotations,r=mw({data:t,annotations:n,getPosition:function(a){return{x:a.x+a.width/2,y:a.y+a.height/2}},getDimensions:function(a){var i=a.height,o=a.width;return{width:o,height:i,size:Math.max(o,i)}}});return y.jsx(y.Fragment,{children:r.map(function(a,i){return y.jsx(RZ,Ke({},a),i)})})},PZ=function(e){var t=e.width,n=e.height,r=e.legends,a=e.toggleSerie;return y.jsx(y.Fragment,{children:r.map(function(i,o){var s,u=i[0],c=i[1];return y.jsx(A_,Ke({},u,{containerWidth:t,containerHeight:n,data:(s=u.data)!=null?s:c,toggleSerie:u.toggleSerie&&u.dataFrom==="keys"?a:void 0}),o)})})},DZ=["data"],IZ=function(e){var t,n=e.bar,r=n.data,a=Si(n,DZ),i=e.style,o=i.borderColor,s=i.color,u=i.height,c=i.labelColor,l=i.labelOpacity,d=i.labelX,f=i.labelY,p=i.transform,m=i.width,g=e.borderRadius,v=e.borderWidth,x=e.label,w=e.shouldRenderLabel,b=e.isInteractive,T=e.onClick,_=e.onMouseEnter,C=e.onMouseLeave,$=e.tooltip,A=e.isFocusable,D=e.ariaLabel,j=e.ariaLabelledBy,E=e.ariaDescribedBy,F=lt(),M=Hh(),R=M.showTooltipFromEvent,I=M.showTooltipAt,U=M.hideTooltip,N=h.useMemo(function(){return function(){return h.createElement($,Ke({},a,r))}},[$,a,r]),q=h.useCallback(function(Y){T==null||T(Ke({color:a.color},r),Y)},[a,r,T]),z=h.useCallback(function(Y){return R(N(),Y)},[R,N]),P=h.useCallback(function(Y){_==null||_(r,Y),R(N(),Y)},[r,_,R,N]),W=h.useCallback(function(Y){C==null||C(r,Y),U()},[r,U,C]),Z=h.useCallback(function(){I(N(),[a.absX+a.width/2,a.absY])},[I,N,a]),ne=h.useCallback(function(){U()},[U]);return y.jsxs(Qe.g,{transform:p,children:[y.jsx(Qe.rect,{width:Fr(m,function(Y){return Math.max(Y,0)}),height:Fr(u,function(Y){return Math.max(Y,0)}),rx:g,ry:g,fill:(t=r.fill)!=null?t:s,strokeWidth:v,stroke:o,focusable:A,tabIndex:A?0:void 0,"aria-label":D?D(r):void 0,"aria-labelledby":j?j(r):void 0,"aria-describedby":E?E(r):void 0,onMouseEnter:b?P:void 0,onMouseMove:b?z:void 0,onMouseLeave:b?W:void 0,onClick:b?q:void 0,onFocus:b&&A?Z:void 0,onBlur:b&&A?ne:void 0}),w&&y.jsx(Qe.text,{x:d,y:f,textAnchor:"middle",dominantBaseline:"central",fillOpacity:l,style:Ke({},F.labels.text,{pointerEvents:"none",fill:c}),children:x})]})},NZ=["color","label"],FZ=function(e){var t=e.color,n=e.label,r=Si(e,NZ);return y.jsx(xx,{id:n,value:r.formattedValue,enableChip:!0,color:t})},tt={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:FZ,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],markers:[],enableTotals:!1,totalsOffset:10},st=Ke({},tt,{layers:["grid","axes","bars","totals","markers","legends","annotations"],barComponent:IZ,defs:[],fill:[],animate:!0,motionConfig:"default",role:"img",isFocusable:!1}),Nt=Ke({},tt,{layers:["grid","axes","bars","totals","legends","annotations"],pixelRatio:typeof window<"u"&&(Iv=window.devicePixelRatio)!=null?Iv:1}),gw=function(e,t,n,r,a,i){return Kp(r,{all:e.map(t),min:0,max:0},a,i).padding(n)},vw=function(e,t){return e.map(function(n){return Ke({},t.reduce(function(r,a){return r[a]=null,r},{}),n)})},yl=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},bl=function(e){return[e,Number(e)]},LZ=["layout","minValue","maxValue","reverse","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],Xp=function(e,t){return e>t},yw=function(e,t){return e<t},bw=function(e,t){return Array.from(" ".repeat(t-e),function(n,r){return e+r})},UZ=function(e){return Xp(e,0)?0:e},BZ=function(e,t,n,r){var a=e.data,i=e.formatValue,o=e.getColor,s=e.getIndex,u=e.getTooltipLabel,c=e.innerPadding,l=c===void 0?0:c,d=e.keys,f=e.xScale,p=e.yScale,m=e.margin,g=n?yw:Xp,v=a.map(yl),x=[];return d.forEach(function(w,b){return bw(0,f.domain().length).forEach(function(T){var _,C,$,A=bl(a[T][w]),D=A[0],j=A[1],E=s(a[T]),F=((_=f(E))!=null?_:0)+t*b+l*b,M=g(C=j,0)?($=p(C))!=null?$:0:r,R=function(U,N){var q;return g(U,0)?r-N:((q=p(U))!=null?q:0)-r}(j,M),I={id:w,value:D===null?D:j,formattedValue:i(j),hidden:!1,index:T,indexValue:E,data:v[T]};x.push({key:w+"."+I.indexValue,index:x.length,data:I,x:F,y:M,absX:m.left+F,absY:m.top+M,width:t,height:R,color:o(I),label:u(I)})})}),x},WZ=function(e,t,n,r){var a=e.data,i=e.formatValue,o=e.getIndex,s=e.getColor,u=e.getTooltipLabel,c=e.keys,l=e.innerPadding,d=l===void 0?0:l,f=e.xScale,p=e.yScale,m=e.margin,g=n?yw:Xp,v=a.map(yl),x=[];return c.forEach(function(w,b){return bw(0,p.domain().length).forEach(function(T){var _,C,$,A=bl(a[T][w]),D=A[0],j=A[1],E=o(a[T]),F=g(C=j,0)?r:($=f(C))!=null?$:0,M=((_=p(E))!=null?_:0)+t*b+d*b,R=function(U,N){var q;return g(U,0)?((q=f(U))!=null?q:0)-r:r-N}(j,F),I={id:w,value:D===null?D:j,formattedValue:i(j),hidden:!1,index:T,indexValue:E,data:v[T]};x.push({key:w+"."+I.indexValue,index:x.length,data:I,x:F,y:M,absX:m.left+F,absY:m.top+M,width:R,height:t,color:s(I),label:u(I)})})}),x},zZ=function(e){var t,n,r=e.layout,a=e.minValue,i=e.maxValue,o=e.reverse,s=e.width,u=e.height,c=e.padding,l=c===void 0?0:c,d=e.innerPadding,f=d===void 0?0:d,p=e.valueScale,m=e.indexScale,g=e.hiddenIds,v=g===void 0?[]:g,x=Si(e,LZ),w=x.keys.filter(function(P){return!v.includes(P)}),b=vw(x.data,w),T=r==="vertical"?["y","x",s]:["x","y",u],_=T[0],C=T[1],$=T[2],A=gw(b,x.getIndex,l,m,$,C),D=Ke({max:i,min:a,reverse:o},p),j=D.min==="auto"?UZ:function(P){return P},E=b.reduce(function(P,W){return[].concat(P,w.map(function(Z){return W[Z]}))},[]).filter(Boolean),F=j(Math.min.apply(Math,E)),M=(n=Math.max.apply(Math,E),isFinite(n)?n:0),R=Kp(D,{all:E,min:F,max:M},_==="x"?s:u,_),I=r==="vertical"?[A,R]:[R,A],U=I[0],N=I[1],q=(A.bandwidth()-f*(w.length-1))/w.length,z=[Ke({},x,{data:b,keys:w,innerPadding:f,xScale:U,yScale:N}),q,D.reverse,(t=R(0))!=null?t:0];return{xScale:U,yScale:N,bars:q>0?r==="vertical"?BZ.apply(void 0,z):WZ.apply(void 0,z):[]}},HZ=["data","layout","minValue","maxValue","reverse","width","height","padding","valueScale","indexScale","hiddenIds"],VZ=function e(t){var n;return t.some(Array.isArray)?e((n=[]).concat.apply(n,t)):t},qZ=function(e,t,n){var r=e.formatValue,a=e.getColor,i=e.getIndex,o=e.getTooltipLabel,s=e.innerPadding,u=e.stackedData,c=e.xScale,l=e.yScale,d=e.margin,f=[];return u.forEach(function(p){return c.domain().forEach(function(m,g){var v,x,w=p[g],b=(v=c(i(w.data)))!=null?v:0,T=((x=function(j){return l(j[n?0:1])}(w))!=null?x:0)+.5*s,_=function(j,E){var F;return((F=l(j[n?1:0]))!=null?F:0)-E}(w,T)-s,C=bl(w.data[p.key]),$=C[0],A=C[1],D={id:p.key,value:$===null?$:A,formattedValue:r(A),hidden:!1,index:g,indexValue:m,data:yl(w.data)};f.push({key:p.key+"."+m,index:f.length,data:D,x:b,y:T,absX:d.left+b,absY:d.top+T,width:t,height:_,color:a(D),label:o(D)})})}),f},YZ=function(e,t,n){var r=e.formatValue,a=e.getColor,i=e.getIndex,o=e.getTooltipLabel,s=e.innerPadding,u=e.stackedData,c=e.xScale,l=e.yScale,d=e.margin,f=[];return u.forEach(function(p){return l.domain().forEach(function(m,g){var v,x,w=p[g],b=(v=l(i(w.data)))!=null?v:0,T=((x=function(j){return c(j[n?1:0])}(w))!=null?x:0)+.5*s,_=function(j,E){var F;return((F=c(j[n?0:1]))!=null?F:0)-E}(w,T)-s,C=bl(w.data[p.key]),$=C[0],A=C[1],D={id:p.key,value:$===null?$:A,formattedValue:r(A),hidden:!1,index:g,indexValue:m,data:yl(w.data)};f.push({key:p.key+"."+m,index:f.length,data:D,x:T,y:b,absX:d.left+T,absY:d.top+b,width:_,height:t,color:a(D),label:o(D)})})}),f},GZ=function(e){var t,n=e.data,r=e.layout,a=e.minValue,i=e.maxValue,o=e.reverse,s=e.width,u=e.height,c=e.padding,l=c===void 0?0:c,d=e.valueScale,f=e.indexScale,p=e.hiddenIds,m=p===void 0?[]:p,g=Si(e,HZ),v=g.keys.filter(function(q){return!m.includes(q)}),x=BL().keys(v).offset(WL)(vw(n,v)),w=r==="vertical"?["y","x",s]:["x","y",u],b=w[0],T=w[1],_=w[2],C=gw(n,g.getIndex,l,f,_,T),$=Ke({max:i,min:a,reverse:o},d),A=(t=VZ(x),d.type==="log"?t.filter(function(q){return q!==0}):t),D=Math.min.apply(Math,A),j=Math.max.apply(Math,A),E=Kp($,{all:A,min:D,max:j},b==="x"?s:u,b),F=r==="vertical"?[C,E]:[E,C],M=F[0],R=F[1],I=g.innerPadding>0?g.innerPadding:0,U=C.bandwidth(),N=[Ke({},g,{innerPadding:I,stackedData:x,xScale:M,yScale:R}),U,$.reverse];return{xScale:M,yScale:R,bars:U>0?r==="vertical"?qZ.apply(void 0,N):YZ.apply(void 0,N):[]}},ZZ=function(e){var t=e.bars,n=e.direction,r=e.from,a=e.groupMode,i=e.layout,o=e.legendLabel,s=e.reverse,u=__(o??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(c,l,d){var f=xv(c.map(function(p){var m,g;return{id:(m=p.data.indexValue)!=null?m:"",label:d(p.data),hidden:p.data.hidden,color:(g=p.color)!=null?g:"#000"}}),function(p){return p.id});return l==="horizontal"&&f.reverse(),f}(t,i,u):function(c,l,d,f,p,m){var g=xv(c.map(function(v){var x;return{id:v.data.id,label:m(v.data),hidden:v.data.hidden,color:(x=v.color)!=null?x:"#000"}}),function(v){return v.id});return(l==="vertical"&&f==="stacked"&&d==="column"&&p!==!0||l==="horizontal"&&f==="stacked"&&p===!0)&&g.reverse(),g}(t,i,n,a,s,u)},Nv=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},KZ=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},XZ=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},JZ=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},xw=function(e){var t=e.indexBy,n=t===void 0?tt.indexBy:t,r=e.keys,a=r===void 0?tt.keys:r,i=e.label,o=i===void 0?tt.label:i,s=e.tooltipLabel,u=s===void 0?tt.tooltipLabel:s,c=e.valueFormat,l=e.colors,d=l===void 0?tt.colors:l,f=e.colorBy,p=f===void 0?tt.colorBy:f,m=e.borderColor,g=m===void 0?tt.borderColor:m,v=e.labelTextColor,x=v===void 0?tt.labelTextColor:v,w=e.groupMode,b=w===void 0?tt.groupMode:w,T=e.layout,_=T===void 0?tt.layout:T,C=e.reverse,$=C===void 0?tt.reverse:C,A=e.data,D=e.minValue,j=D===void 0?tt.minValue:D,E=e.maxValue,F=E===void 0?tt.maxValue:E,M=e.margin,R=e.width,I=e.height,U=e.padding,N=U===void 0?tt.padding:U,q=e.innerPadding,z=q===void 0?tt.innerPadding:q,P=e.valueScale,W=P===void 0?tt.valueScale:P,Z=e.indexScale,ne=Z===void 0?tt.indexScale:Z,Y=e.initialHiddenIds,Q=Y===void 0?tt.initialHiddenIds:Y,G=e.enableLabel,J=G===void 0?tt.enableLabel:G,re=e.labelSkipWidth,L=re===void 0?tt.labelSkipWidth:re,V=e.labelSkipHeight,ae=V===void 0?tt.labelSkipHeight:V,k=e.legends,ge=k===void 0?tt.legends:k,pe=e.legendLabel,de=e.totalsOffset,Ae=de===void 0?tt.totalsOffset:de,Pe=h.useState(Q??[]),ft=Pe[0],gt=Pe[1],We=h.useCallback(function(De){gt(function(je){return je.indexOf(De)>-1?je.filter(function(Ue){return Ue!==De}):[].concat(je,[De])})},[]),rt=sa(n),Ze=sa(o),xt=sa(u),_t=pl(c),at=lt(),xe=S_(d,p),Xe=si(g,at),Ct=si(x,at),Xt=(b==="grouped"?zZ:GZ)({layout:_,reverse:$,data:A,getIndex:rt,keys:a,minValue:j,maxValue:F,width:R,height:I,getColor:xe,padding:N,innerPadding:z,valueScale:W,indexScale:ne,hiddenIds:ft,formatValue:_t,getTooltipLabel:xt,margin:M}),kt=Xt.bars,ht=Xt.xScale,wt=Xt.yScale,ln=h.useMemo(function(){return kt.filter(function(De){return De.data.value!==null}).map(function(De,je){return Ke({},De,{index:je})})},[kt]),vt=h.useCallback(function(De){var je=De.width,Ue=De.height;return!!J&&!(L>0&&je<L)&&!(ae>0&&Ue<ae)},[J,L,ae]),At=h.useMemo(function(){return a.map(function(De){var je=kt.find(function(Ue){return Ue.data.id===De});return Ke({},je,{data:Ke({id:De},je==null?void 0:je.data,{hidden:ft.includes(De)})})})},[ft,a,kt]),St=h.useMemo(function(){return ge.map(function(De){return[De,ZZ({bars:De.dataFrom==="keys"?At:kt,direction:De.direction,from:De.dataFrom,groupMode:b,layout:_,legendLabel:pe,reverse:$})]})},[ge,At,kt,b,_,pe,$]),Jt=h.useMemo(function(){return function(De,je,Ue,pt,Ot,Et,xn){pt===void 0&&(pt=tt.layout),Ot===void 0&&(Ot=tt.groupMode);var Qt=[];if(De.length===0)return Qt;var Lt=new Map,dn=De[0].width,It=De[0].height;if(Ot==="stacked"){var qt=new Map;De.forEach(function(ze){var Ne=ze.data,Me=Ne.indexValue,et=Ne.value;Nv(Lt,Me,Number(et)),KZ(qt,Me,Number(et))}),qt.forEach(function(ze,Ne){var Me,et,Yt,jt=Lt.get(Ne)||0;pt==="vertical"?(Me=je(Ne),et=Ue(ze),Yt=Ue(ze/2)):(Me=je(ze),et=Ue(Ne),Yt=je(ze/2)),Me+=pt==="vertical"?dn/2:Et,et+=pt==="vertical"?-Et:It/2,Qt.push({key:"total_"+Ne,x:Me,y:et,value:jt,formattedValue:xn(jt),animationOffset:Yt})})}else if(Ot==="grouped"){var _n=new Map,en=new Map;De.forEach(function(ze){var Ne=ze.data,Me=Ne.indexValue,et=Ne.value;Nv(Lt,Me,Number(et)),XZ(_n,Me,Number(et)),JZ(en,Me)}),_n.forEach(function(ze,Ne){var Me,et,Yt,jt=Lt.get(Ne)||0,S=en.get(Ne);pt==="vertical"?(Me=je(Ne),et=Ue(ze),Yt=Ue(ze/2)):(Me=je(ze),et=Ue(Ne),Yt=je(ze/2)),Me+=pt==="vertical"?S*dn/2:Et,et+=pt==="vertical"?-Et:S*It/2,Qt.push({key:"total_"+Ne,x:Me,y:et,value:jt,formattedValue:xn(jt),animationOffset:Yt})})}return Qt}(kt,ht,wt,_,b,Ae,_t)},[kt,ht,wt,_,b,Ae,_t]);return{bars:kt,barsWithValue:ln,xScale:ht,yScale:wt,getIndex:rt,getLabel:Ze,getTooltipLabel:xt,formatValue:_t,getColor:xe,getBorderColor:Xe,getLabelColor:Ct,shouldRenderBarLabel:vt,hiddenIds:ft,toggleSerie:We,legendsWithData:St,barTotals:Jt}},QZ=function(e){var t=e.data,n=e.springConfig,r=e.animate,a=e.layout,i=a===void 0?st.layout:a,o=lt();return xa(t,{keys:function(s){return s.key},from:function(s){return{x:i==="vertical"?s.x:s.animationOffset,y:i==="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:i==="vertical"?s.x:s.animationOffset,y:i==="vertical"?s.animationOffset:s.y,labelOpacity:0}},config:n,immediate:!r,initial:r?void 0:null})(function(s,u){return y.jsx(Qe.text,{x:s.x,y:s.y,fillOpacity:s.labelOpacity,style:Ke({},o.labels.text,{pointerEvents:"none",fill:o.text.fill}),fontWeight:"bold",fontSize:o.labels.text.fontSize,fontFamily:o.labels.text.fontFamily,textAnchor:i==="vertical"?"middle":"start",alignmentBaseline:i==="vertical"?"alphabetic":"middle",children:u.formattedValue},u.key)})},eK=["isInteractive","animate","motionConfig","theme","renderWrapper"],tK=function(e){var t=e.data,n=e.indexBy,r=e.keys,a=e.margin,i=e.width,o=e.height,s=e.groupMode,u=e.layout,c=e.reverse,l=e.minValue,d=e.maxValue,f=e.valueScale,p=e.indexScale,m=e.padding,g=e.innerPadding,v=e.axisTop,x=e.axisRight,w=e.axisBottom,b=w===void 0?st.axisBottom:w,T=e.axisLeft,_=T===void 0?st.axisLeft:T,C=e.enableGridX,$=C===void 0?st.enableGridX:C,A=e.enableGridY,D=A===void 0?st.enableGridY:A,j=e.gridXValues,E=e.gridYValues,F=e.layers,M=F===void 0?st.layers:F,R=e.barComponent,I=R===void 0?st.barComponent:R,U=e.enableLabel,N=U===void 0?st.enableLabel:U,q=e.label,z=e.labelSkipWidth,P=z===void 0?st.labelSkipWidth:z,W=e.labelSkipHeight,Z=W===void 0?st.labelSkipHeight:W,ne=e.labelTextColor,Y=e.markers,Q=Y===void 0?st.markers:Y,G=e.colorBy,J=e.colors,re=e.defs,L=re===void 0?st.defs:re,V=e.fill,ae=V===void 0?st.fill:V,k=e.borderRadius,ge=k===void 0?st.borderRadius:k,pe=e.borderWidth,de=pe===void 0?st.borderWidth:pe,Ae=e.borderColor,Pe=e.annotations,ft=Pe===void 0?st.annotations:Pe,gt=e.legendLabel,We=e.tooltipLabel,rt=e.valueFormat,Ze=e.isInteractive,xt=Ze===void 0?st.isInteractive:Ze,_t=e.tooltip,at=_t===void 0?st.tooltip:_t,xe=e.onClick,Xe=e.onMouseEnter,Ct=e.onMouseLeave,Xt=e.legends,kt=e.role,ht=kt===void 0?st.role:kt,wt=e.ariaLabel,ln=e.ariaLabelledBy,vt=e.ariaDescribedBy,At=e.isFocusable,St=At===void 0?st.isFocusable:At,Jt=e.barAriaLabel,De=e.barAriaLabelledBy,je=e.barAriaDescribedBy,Ue=e.initialHiddenIds,pt=e.enableTotals,Ot=pt===void 0?st.enableTotals:pt,Et=e.totalsOffset,xn=Et===void 0?st.totalsOffset:Et,Qt=un(),Lt=Qt.animate,dn=Qt.config,It=zp(i,o,a),qt=It.outerWidth,_n=It.outerHeight,en=It.margin,ze=It.innerWidth,Ne=It.innerHeight,Me=xw({indexBy:n,label:q,tooltipLabel:We,valueFormat:rt,colors:J,colorBy:G,borderColor:Ae,labelTextColor:ne,groupMode:s,layout:u,reverse:c,data:t,keys:r,minValue:l,maxValue:d,margin:en,width:ze,height:Ne,padding:m,innerPadding:g,valueScale:f,indexScale:p,enableLabel:N,labelSkipWidth:P,labelSkipHeight:Z,legends:Xt,legendLabel:gt,initialHiddenIds:Ue,totalsOffset:xn}),et=Me.bars,Yt=Me.barsWithValue,jt=Me.xScale,S=Me.yScale,K=Me.getLabel,H=Me.getTooltipLabel,X=Me.getBorderColor,fe=Me.getLabelColor,ve=Me.shouldRenderBarLabel,le=Me.toggleSerie,he=Me.legendsWithData,ke=Me.barTotals,Te=xa(Yt,{keys:function(se){return se.key},from:function(se){return Ke({borderColor:X(se),color:se.color,height:0,labelColor:fe(se),labelOpacity:0,labelX:se.width/2,labelY:se.height/2,transform:"translate("+se.x+", "+(se.y+se.height)+")",width:se.width},u==="vertical"?{}:{height:se.height,transform:"translate("+se.x+", "+se.y+")",width:0})},enter:function(se){return{borderColor:X(se),color:se.color,height:se.height,labelColor:fe(se),labelOpacity:1,labelX:se.width/2,labelY:se.height/2,transform:"translate("+se.x+", "+se.y+")",width:se.width}},update:function(se){return{borderColor:X(se),color:se.color,height:se.height,labelColor:fe(se),labelOpacity:1,labelX:se.width/2,labelY:se.height/2,transform:"translate("+se.x+", "+se.y+")",width:se.width}},leave:function(se){return Ke({borderColor:X(se),color:se.color,height:0,labelColor:fe(se),labelOpacity:0,labelX:se.width/2,labelY:0,transform:"translate("+se.x+", "+(se.y+se.height)+")",width:se.width},u==="vertical"?{}:{labelX:0,labelY:se.height/2,height:se.height,transform:"translate("+se.x+", "+se.y+")",width:0})},config:dn,immediate:!Lt,initial:Lt?void 0:null}),Je=h.useMemo(function(){return{borderRadius:ge,borderWidth:de,enableLabel:N,isInteractive:xt,labelSkipWidth:P,labelSkipHeight:Z,onClick:xe,onMouseEnter:Xe,onMouseLeave:Ct,getTooltipLabel:H,tooltip:at,isFocusable:St,ariaLabel:Jt,ariaLabelledBy:De,ariaDescribedBy:je}},[ge,de,N,H,xt,Z,P,xe,Xe,Ct,at,St,Jt,De,je]),$t=w_(L,et,ae,{dataKey:"data",targetKey:"data.fill"}),yt={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};M.includes("annotations")&&(yt.annotations=y.jsx(jZ,{bars:et,annotations:ft},"annotations")),M.includes("axes")&&(yt.axes=y.jsx(nq,{xScale:jt,yScale:S,width:ze,height:Ne,top:v,right:x,bottom:b,left:_},"axes")),M.includes("bars")&&(yt.bars=y.jsx(h.Fragment,{children:Te(function(se,hn){return h.createElement(I,Ke({},Je,{bar:hn,style:se,shouldRenderLabel:ve(hn),label:K(hn.data)}))})},"bars")),M.includes("grid")&&(yt.grid=y.jsx(aq,{width:ze,height:Ne,xScale:$?jt:null,yScale:D?S:null,xValues:j,yValues:E},"grid")),M.includes("legends")&&(yt.legends=y.jsx(PZ,{width:ze,height:Ne,legends:he,toggleSerie:le},"legends")),M.includes("markers")&&(yt.markers=y.jsx(BW,{markers:Q,width:ze,height:Ne,xScale:jt,yScale:S},"markers")),M.includes("totals")&&Ot&&(yt.totals=y.jsx(QZ,{data:ke,springConfig:dn,animate:Lt,layout:u},"totals"));var fn=h.useMemo(function(){return Ke({},Je,{margin:en,width:i,height:o,innerWidth:ze,innerHeight:Ne,bars:et,legendData:he,enableLabel:N,xScale:jt,yScale:S,tooltip:at,getTooltipLabel:H,onClick:xe,onMouseEnter:Xe,onMouseLeave:Ct})},[Je,en,i,o,ze,Ne,et,he,N,jt,S,at,H,xe,Xe,Ct]);return y.jsx(Vp,{width:qt,height:_n,margin:en,defs:$t,role:ht,ariaLabel:wt,ariaLabelledBy:ln,ariaDescribedBy:vt,isFocusable:St,children:M.map(function(se,hn){var Mt;return typeof se=="function"?y.jsx(h.Fragment,{children:h.createElement(se,fn)},hn):(Mt=yt==null?void 0:yt[se])!=null?Mt:null})})},nK=function(e){var t=e.isInteractive,n=t===void 0?st.isInteractive:t,r=e.animate,a=r===void 0?st.animate:r,i=e.motionConfig,o=i===void 0?st.motionConfig:i,s=e.theme,u=e.renderWrapper,c=Si(e,eK);return y.jsx(ml,{animate:a,isInteractive:n,motionConfig:o,renderWrapper:u,theme:s,children:y.jsx(tK,Ke({isInteractive:n},c))})},rK=["isInteractive","renderWrapper","theme"],md=function(e,t,n,r){return e.find(function(a){return WW(a.x+t.left,a.y+t.top,a.width,a.height,n,r)})},aK=function(e){var t=e.data,n=e.indexBy,r=e.keys,a=e.margin,i=e.width,o=e.height,s=e.groupMode,u=e.layout,c=e.reverse,l=e.minValue,d=e.maxValue,f=e.valueScale,p=e.indexScale,m=e.padding,g=e.innerPadding,v=e.axisTop,x=e.axisRight,w=e.axisBottom,b=w===void 0?Nt.axisBottom:w,T=e.axisLeft,_=T===void 0?Nt.axisLeft:T,C=e.enableGridX,$=C===void 0?Nt.enableGridX:C,A=e.enableGridY,D=A===void 0?Nt.enableGridY:A,j=e.gridXValues,E=e.gridYValues,F=e.layers,M=F===void 0?Nt.layers:F,R=e.renderBar,I=R===void 0?function(H,X){var fe=X.bar,ve=fe.color,le=fe.height,he=fe.width,ke=fe.x,Te=fe.y,Je=X.borderColor,$t=X.borderRadius,yt=X.borderWidth,fn=X.label,se=X.labelColor,hn=X.shouldRenderLabel;if(H.fillStyle=ve,yt>0&&(H.strokeStyle=Je,H.lineWidth=yt),H.beginPath(),$t>0){var Mt=Math.min($t,le);H.moveTo(ke+Mt,Te),H.lineTo(ke+he-Mt,Te),H.quadraticCurveTo(ke+he,Te,ke+he,Te+Mt),H.lineTo(ke+he,Te+le-Mt),H.quadraticCurveTo(ke+he,Te+le,ke+he-Mt,Te+le),H.lineTo(ke+Mt,Te+le),H.quadraticCurveTo(ke,Te+le,ke,Te+le-Mt),H.lineTo(ke,Te+Mt),H.quadraticCurveTo(ke,Te,ke+Mt,Te),H.closePath()}else H.rect(ke,Te,he,le);H.fill(),yt>0&&H.stroke(),hn&&(H.textBaseline="middle",H.textAlign="center",H.fillStyle=se,H.fillText(fn,ke+he/2,Te+le/2))}:R,U=e.enableLabel,N=U===void 0?Nt.enableLabel:U,q=e.label,z=e.labelSkipWidth,P=z===void 0?Nt.labelSkipWidth:z,W=e.labelSkipHeight,Z=W===void 0?Nt.labelSkipHeight:W,ne=e.labelTextColor,Y=e.colorBy,Q=e.colors,G=e.borderRadius,J=G===void 0?Nt.borderRadius:G,re=e.borderWidth,L=re===void 0?Nt.borderWidth:re,V=e.borderColor,ae=e.annotations,k=ae===void 0?Nt.annotations:ae,ge=e.legendLabel,pe=e.tooltipLabel,de=e.valueFormat,Ae=e.isInteractive,Pe=Ae===void 0?Nt.isInteractive:Ae,ft=e.tooltip,gt=ft===void 0?Nt.tooltip:ft,We=e.onClick,rt=e.onMouseEnter,Ze=e.onMouseLeave,xt=e.legends,_t=e.pixelRatio,at=_t===void 0?Nt.pixelRatio:_t,xe=e.canvasRef,Xe=e.enableTotals,Ct=Xe===void 0?Nt.enableTotals:Xe,Xt=e.totalsOffset,kt=Xt===void 0?Nt.totalsOffset:Xt,ht=h.useRef(null),wt=lt(),ln=zp(i,o,a),vt=ln.margin,At=ln.innerWidth,St=ln.innerHeight,Jt=ln.outerWidth,De=ln.outerHeight,je=xw({indexBy:n,label:q,tooltipLabel:pe,valueFormat:de,colors:Q,colorBy:Y,borderColor:V,labelTextColor:ne,groupMode:s,layout:u,reverse:c,data:t,keys:r,minValue:l,maxValue:d,margin:vt,width:At,height:St,padding:m,innerPadding:g,valueScale:f,indexScale:p,enableLabel:N,labelSkipWidth:P,labelSkipHeight:Z,legends:xt,legendLabel:ge,totalsOffset:kt}),Ue=je.bars,pt=je.barsWithValue,Ot=je.xScale,Et=je.yScale,xn=je.getLabel,Qt=je.getTooltipLabel,Lt=je.getBorderColor,dn=je.getLabelColor,It=je.shouldRenderBarLabel,qt=je.legendsWithData,_n=je.barTotals,en=Hh(),ze=en.showTooltipFromEvent,Ne=en.hideTooltip,Me=kZ({annotations:mw({data:Ue,annotations:k,getPosition:function(H){return{x:H.x,y:H.y}},getDimensions:function(H){var X=H.width,fe=H.height;return{width:X,height:fe,size:Math.max(X,fe)}}})}),et=h.useMemo(function(){return{borderRadius:J,borderWidth:L,isInteractive:Pe,isFocusable:!1,labelSkipWidth:P,labelSkipHeight:Z,margin:vt,width:i,height:o,innerWidth:At,innerHeight:St,bars:Ue,legendData:qt,enableLabel:N,xScale:Ot,yScale:Et,tooltip:gt,getTooltipLabel:Qt,onClick:We,onMouseEnter:rt,onMouseLeave:Ze}},[J,L,Pe,P,Z,vt,i,o,At,St,Ue,qt,N,Ot,Et,gt,Qt,We,rt,Ze]),Yt=pl(de);h.useEffect(function(){var H,X=(H=ht.current)==null?void 0:H.getContext("2d");ht.current&&X&&(ht.current.width=Jt*at,ht.current.height=De*at,X.scale(at,at),X.fillStyle=wt.background,X.fillRect(0,0,Jt,De),X.translate(vt.left,vt.top),M.forEach(function(fe){fe==="grid"?typeof wt.grid.line.strokeWidth=="number"&&wt.grid.line.strokeWidth>0&&(X.lineWidth=wt.grid.line.strokeWidth,X.strokeStyle=wt.grid.line.stroke,$&&kv(X,{width:At,height:St,scale:Ot,axis:"x",values:j}),D&&kv(X,{width:At,height:St,scale:Et,axis:"y",values:E})):fe==="axes"?oq(X,{xScale:Ot,yScale:Et,width:At,height:St,top:v,right:x,bottom:b,left:_,theme:wt}):fe==="bars"?pt.forEach(function(ve){I(X,{bar:ve,borderColor:Lt(ve),borderRadius:J,borderWidth:L,label:xn(ve.data),labelColor:dn(ve),shouldRenderLabel:It(ve)})}):fe==="legends"?qt.forEach(function(ve){var le=ve[0],he=ve[1];Dz(X,Ke({},le,{data:he,containerWidth:At,containerHeight:St,theme:wt}))}):fe==="annotations"?AZ(X,{annotations:Me,theme:wt}):fe==="totals"&&Ct?function(ve,le,he,ke){ke===void 0&&(ke=Nt.layout),ve.fillStyle=he.text.fill,ve.font="bold "+he.labels.text.fontSize+"px "+he.labels.text.fontFamily,ve.textBaseline=ke==="vertical"?"alphabetic":"middle",ve.textAlign=ke==="vertical"?"center":"start",le.forEach(function(Te){ve.fillText(Te.formattedValue,Te.x,Te.y)})}(X,_n,wt,u):typeof fe=="function"&&fe(X,et)}),X.save())},[b,_,x,v,pt,J,L,Me,$,D,Lt,xn,dn,j,E,s,o,St,At,et,M,u,qt,vt.left,vt.top,De,Jt,at,I,Ot,Et,c,It,wt,i,_n,Ct,Yt]);var jt=h.useCallback(function(H){if(Ue&&ht.current){var X=ud(ht.current,H),fe=X[0],ve=X[1],le=md(Ue,vt,fe,ve);le!==void 0?(ze(h.createElement(gt,Ke({},le.data,{color:le.color,label:le.label,value:Number(le.data.value)})),H),H.type==="mouseenter"&&(rt==null||rt(le.data,H))):Ne()}},[Ne,vt,rt,Ue,ze,gt]),S=h.useCallback(function(H){if(Ue&&ht.current){Ne();var X=ud(ht.current,H),fe=X[0],ve=X[1],le=md(Ue,vt,fe,ve);le&&(Ze==null||Ze(le.data,H))}},[Ne,vt,Ze,Ue]),K=h.useCallback(function(H){if(Ue&&ht.current){var X=ud(ht.current,H),fe=X[0],ve=X[1],le=md(Ue,vt,fe,ve);le!==void 0&&(We==null||We(Ke({},le.data,{color:le.color}),H))}},[vt,We,Ue]);return y.jsx("canvas",{ref:function(H){ht.current=H,xe&&"current"in xe&&(xe.current=H)},width:Jt*at,height:De*at,style:{width:Jt,height:De,cursor:Pe?"auto":"normal"},onMouseEnter:Pe?jt:void 0,onMouseMove:Pe?jt:void 0,onMouseLeave:Pe?S:void 0,onClick:Pe?K:void 0})},iK=h.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,a=e.theme,i=Si(e,rK);return y.jsx(ml,{isInteractive:n,renderWrapper:r,theme:a,animate:!1,children:y.jsx(aK,Ke({},i,{canvasRef:t}))})}),oK=function(e){return y.jsx(gl,{children:function(t){var n=t.width,r=t.height;return y.jsx(nK,Ke({width:n,height:r},e))}})};h.forwardRef(function(e,t){return y.jsx(gl,{children:function(n){var r=n.width,a=n.height;return y.jsx(iK,Ke({width:r,height:a},e,{ref:t}))}})});const Jp=({InputContainer:e=Xo,formField:t,label:n,resetsFields:r,options:a,isNumber:i,size:o,showClearIcon:s,clearValue:u,noSortOptions:c,required:l,hidden:d,disabled:f,withoutLabel:p,className:m})=>{const{register:g,formState:v,getValues:x,setValue:w,watch:b}=Wt.useFormContext(),[T,_]=h.useState(void 0),[C,$]=h.useState(!1),A=h.useMemo(()=>a.sort((E,F)=>c?0:(E.name??"").localeCompare(F.name??"")),[a,c]),D=h.useCallback(()=>{const E=u??null;i?w(t,E===null?null:Number(E),{shouldDirty:!0,shouldValidate:C}):w(t,(E==null?void 0:E.toString())??"",{shouldDirty:!0,shouldValidate:C})},[u,i,w,t,C]);h.useEffect(()=>{const E=t.split(".");let F=v.errors;E.forEach(M=>{F!==void 0&&(F=F[M])}),_(F)},[v,t]),h.useEffect(()=>{w(t,x(t))},[A,t,x,w]),h.useEffect(()=>{v.isSubmitted&&$(!0)},[v]);const j=T!==void 0;return y.jsx(y.Fragment,{children:y.jsxs(e,{label:`${n}${l?" *":""}`,hidden:d,withoutLabel:p,isInvalid:j,className:m,children:[y.jsxs(ya.Select,{size:o,...g(t,{setValueAs:E=>i?E==null||E===""?null:parseInt(E,10):E==null||E===""?null:E,onChange:()=>{r&&r.forEach(E=>w(E,null,{shouldDirty:!0,shouldValidate:C}))}}),isInvalid:j,hidden:d,disabled:f,className:"w-100",children:[y.jsx("option",{value:""}),A.map(E=>y.jsx("option",{value:E.id??"",children:E.name},E.id))]}),s&&b(t)&&y.jsx("div",{className:"luminus-input-remove-icon inset",children:y.jsx(su,{color:"secondary",size:"sm",onClick:D,children:y.jsx(Yc,{})})}),T&&y.jsx(cu,{message:T.message})]})})},Qp=({InputContainer:e=Xo,formField:t,label:n,resetsFields:r,size:a,showClearIcon:i,clearValue:o,required:s,hidden:u,disabled:c,rows:l,withoutLabel:d,customFormControlProps:f,className:p})=>{const{register:m,formState:g,setValue:v,watch:x}=Wt.useFormContext(),[w,b]=h.useState(void 0),[T,_]=h.useState(!1),C=h.useCallback(()=>{const D=o??null;v(t,(D==null?void 0:D.toString())??"",{shouldDirty:!0,shouldValidate:T})},[o,v,t,T]),$=h.useCallback(()=>{const D=t.split(".");let j=g.errors;D.forEach(E=>{j!==void 0&&(j=j[E])}),b(j)},[g,t]);h.useEffect(()=>{$()},[$]),h.useEffect(()=>{g.isSubmitted&&_(!0)},[g]);const A=w!==void 0;return y.jsxs(e,{label:`${n}${s?" *":""}`,hidden:u,withoutLabel:d,isInvalid:A,className:p,isForTextAreaInput:!0,children:[y.jsx(ya.Control,{as:"textarea",size:a,...m(t,{setValueAs:D=>D==null||D===""?null:D,onChange:()=>{r&&r.forEach(D=>v(D,null,{shouldDirty:!0,shouldValidate:T}))}}),isInvalid:A,hidden:u,disabled:c,rows:l??2,className:"w-100",...f}),i&&x(t)&&y.jsx("div",{className:"luminus-input-remove-icon",children:y.jsx(su,{color:"secondary",size:"sm",onClick:C,children:y.jsx(Yc,{})})}),w&&y.jsx(cu,{message:w.message})]})},zo=({InputContainer:e=Xo,type:t,formField:n,label:r,placeholder:a,size:i,resetsFields:o,showClearIcon:s,clearValue:u,required:c,hidden:l,disabled:d,withoutLabel:f,list:p,step:m,CustomOnChangeComponent:g,noSelectOnFocus:v,className:x})=>{const{register:w,formState:b,setValue:T,watch:_}=Wt.useFormContext(),[C,$]=h.useState(void 0),[A,D]=h.useState(!1),j=h.useCallback(()=>{const N=u??null;t==="number"?T(n,N!==null?Number(N):null,{shouldDirty:!0,shouldValidate:A}):T(n,(N==null?void 0:N.toString())??"",{shouldDirty:!0,shouldValidate:A})},[u,t,T,n,A]),E=h.useCallback(()=>{const N=n.split(".");let q=b.errors;N.forEach(z=>{q!==void 0&&(q=q[z])}),$(q)},[b,n]);h.useEffect(()=>{E()},[E]),h.useEffect(()=>{b.isSubmitted&&D(!0)},[b]);const F=C!==void 0,[M,R]=h.useState(!1),I=_(n),U=$1(t,I??null,M);return y.jsxs(e,{label:`${r}${c?" *":""}`,hidden:l,withoutLabel:f,isInvalid:F,className:x,children:[y.jsxs("div",{className:"luminus-input-container position-relative w-100",children:[y.jsx(ya.Control,{type:U,placeholder:a??r,size:i,onFocus:N=>{R(!0),!v&&N.target.select()},...w(n,{setValueAs:N=>t==="number"?N==null||N===""?null:Number(N):N==null||N===""?null:N,onChange:()=>{o&&o.forEach(N=>T(N,null,{shouldDirty:!0,shouldValidate:A}))},onBlur:()=>R(!1)}),isInvalid:F,hidden:l,disabled:d,list:p,className:"w-100",step:m}),g&&y.jsx("div",{className:"custom-picker-button",children:g})]}),s&&_(n)&&y.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:y.jsx(su,{color:"secondary",size:"sm",onClick:j,children:y.jsx(Yc,{})})}),C&&y.jsx(cu,{message:C.message})]})},sK="_wrapper_9omw0_1",cK="_controls_9omw0_16",uK="_explorerWindow_9omw0_20",lK="_folderList_9omw0_28",dK="_fileList_9omw0_35",fK="_dndText_9omw0_61",Vr={wrapper:sK,controls:cK,explorerWindow:uK,folderList:lK,fileList:dK,dndText:fK},Vt=h.createContext({apiActions:{},loadDocuments(){throw new Error("DocumentsContext was not initialized.")},reducer:[{},{}],entityType:"",entityId:-1}),hK="_folderIcon_nez54_1",pK="_defaultFolder_nez54_6",Fv={folderIcon:hK,defaultFolder:pK},_w=({isActive:e,isDefault:t,folderName:n})=>{const{ProjectIconComponent:r}=h.useContext(bn);return y.jsxs(y.Fragment,{children:[y.jsx(r,{icon:`folder${e?"-filled":""}`,className:ie("d-inline-block",t?Fv.defaultFolder:"text-primary"),iconProps:{className:Fv.folderIcon}}),y.jsx("span",{className:e?"fw-bold":"",children:n})," "]})},mK=({customText:e})=>{const{reducer:[t,n]}=h.useContext(Vt),r=h.useCallback(()=>{n({type:"select-folder",folderId:"root"})},[n]);return y.jsx("li",{children:y.jsx("button",{onClick:r,type:"button",className:ie("border-0 bg-transparent"),children:y.jsx(_w,{folderName:e??"root",isActive:t.activeFolder==="root",isDefault:!0})})})};function gK(e){if(e.state!=="openned-modal")throw new Error('Not in "openned-modal" state!')}const ww=()=>{const e=ru(),{startLoading:t,stopLoading:n}=h.useContext(Zc),{reducer:[,r]}=h.useContext(Vt),a=h.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]),i=h.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:a,createFolder:i}},Lv=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Wt.get(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Tw=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Lv(r.ref,n,e):r.refs&&r.refs.forEach(a=>Lv(a,n,e))}},vK=(e,t)=>{t.shouldUseNativeValidation&&Tw(e,t);const n={};for(const r in e){const a=Wt.get(t.fields,r),i=Object.assign(e[r]||{},{ref:a&&a.ref});if(yK(t.names||Object.keys(e),r)){const o=Object.assign({},Wt.get(n,r));Wt.set(o,"root",i),Wt.set(n,r,o)}else Wt.set(n,r,i)}return n},yK=(e,t)=>e.some(n=>n.startsWith(t+"."));var bK=function(e,t){for(var n={};e.length;){var r=e[0],a=r.code,i=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:i,type:a};if("unionErrors"in r&&r.unionErrors.forEach(function(l){return l.errors.forEach(function(d){return e.push(d)})}),t){var u=n[o].types,c=u&&u[r.code];n[o]=Wt.appendErrors(o,t,n,a,c?[].concat(c,r.message):r.message)}e.shift()}return n},em=function(e,t,n){return n===void 0&&(n={}),function(r,a,i){try{return Promise.resolve(function(o,s){try{var u=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(c){return i.shouldUseNativeValidation&&Tw({},i),{errors:{},values:n.raw?r:c}})}catch(c){return s(c)}return u&&u.then?u.then(void 0,s):u}(0,function(o){if(function(s){return Array.isArray(s==null?void 0:s.errors)}(o))return{values:{},errors:vK(bK(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}};const xK=()=>{const{reducer:[e],entityId:t,entityType:n}=h.useContext(Vt),{zNumberRequired:r,zStringRequired:a}=iu(),{createFolder:i}=ww(),o=Ft.object({name:a(),documentTypeId:r()}),s=Wt.useForm({resolver:em(o)}),u=h.useCallback(async c=>{const l={...c,dbObjectId:t.toString(),entity:n,parentFolderId:e.activeFolder==="root"?null:e.activeFolder};await i(l)},[i,t,n,e.activeFolder]);return{formMethods:s,onSubmit:u}},_K=({handleClose:e})=>{var o;const{texts:{documents:t}}=h.useContext(bn),{reducer:[n],entityType:r}=h.useContext(Vt);if(gK(n),n.modalType!=="create-folder")throw new Error("Tried to render CreateFolderModal without create-folder modal type reducer state.");const{onSubmit:a,formMethods:i}=xK();return y.jsx(y.Fragment,{children:y.jsx(Wt.FormProvider,{...i,children:y.jsxs(ya,{onSubmit:i.handleSubmit(a),children:[y.jsx(rn.Header,{closeButton:!0,children:y.jsx(rn.Title,{children:t.createFolderInFolder(((o=n.foldersMap.get(n.chosenFolderId))==null?void 0:o.name)??r)})}),y.jsxs(rn.Body,{children:[y.jsx(zo,{formField:"name",type:"text",label:t.name,required:!0}),y.jsx(Jp,{options:n.documentTypes,formField:"documentTypeId",label:t.folderType,isNumber:!0,required:!0})]}),y.jsxs(rn.Footer,{children:[y.jsx(fa,{onClick:e,variant:"outlined",color:"secondary",children:t.cancel}),y.jsx(fa,{type:"submit",children:t.createFolder})]})]})})})},Cw=100,wK=(e,t)=>{const n=ru(),{startLoading:r,stopLoading:a}=h.useContext(Zc),{loadDocuments:i}=h.useContext(Vt),{zStringRequired:o,zString:s,zNumberRequired:u,zDateRequired:c}=iu(),l=Ft.object({name:o(),description:s(),validToDate:c(),documentTypeId:u()}),d=Wt.useForm({resolver:em(l),defaultValues:{...e,validToDate:nu(e.validToDate)}}),f=h.useCallback(async p=>{r("documents-updateProperties");try{await n.put(`/documents/${e.id}/update-info`,p),await i(),t()}finally{a("documents-updateProperties")}},[n,e.id,t,i,r,a]);return{formMethods:d,onSubmit:f}},TK=({handleClose:e,file:t})=>{const{texts:{documents:n}}=h.useContext(bn),{reducer:[r]}=h.useContext(Vt),{formMethods:a,onSubmit:i}=wK(t,e);return y.jsxs(y.Fragment,{children:[y.jsx(rn.Header,{closeButton:!0,children:y.jsx(rn.Title,{children:n.editFileProperties})}),y.jsx(Wt.FormProvider,{...a,children:y.jsxs(ya,{onSubmit:a.handleSubmit(i),children:[y.jsxs(rn.Body,{children:[y.jsx(zo,{formField:"name",type:"text",label:n.name,required:!0}),y.jsx(zo,{formField:"validToDate",type:"date",label:n.validSince,required:!0}),y.jsx(Jp,{formField:"documentTypeId",label:n.category,options:r.documentTypes,isNumber:!0,required:!0}),y.jsx(Qp,{formField:"description",label:n.description,customFormControlProps:{maxLength:Cw}})]}),y.jsxs(rn.Footer,{children:[y.jsx(fa,{onClick:e,color:"secondary",variant:"outlined",children:n.cancel}),y.jsx(fa,{type:"submit",children:n.save})]})]})})]})},CK=({handleClose:e})=>{const{reducer:[t]}=h.useContext(Vt),n=h.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(),y.jsx(y.Fragment,{})):y.jsx(TK,{file:n,handleClose:e})},kK=()=>{const{reducer:[e,t]}=h.useContext(Vt),n=h.useCallback(()=>{t({type:"close-modal"})},[t]),r=h.useMemo(()=>{if(e.state!=="openned-modal")return null;switch(e.modalType){case"create-folder":return y.jsx(_K,{handleClose:n});case"edit-file-properties":return y.jsx(CK,{handleClose:n});default:return null}},[e.state,e.modalType]);return y.jsx(rn,{show:e.state==="openned-modal",onHide:n,children:r})},Uv="documents_drag_image_element",Os="drop-container-highlight-class",Bv="data-drop-container-id",Wv="data-draggable-id",SK=()=>{const e=document.getElementById(Uv);if(e!==null)return e;const t=document.createElement("div");return t.id=Uv,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},tm=()=>{const{apiActions:{moveDocuments:e},reducer:[t]}=h.useContext(Vt),n=h.useCallback(c=>{var l;if(t.markedFiles.length>0){const d=SK();d.innerHTML=t.markedFiles.length.toString(),c.dataTransfer.setDragImage(d,0,0),c.dataTransfer.clearData(),c.dataTransfer.setData("application/json",JSON.stringify(t.markedFiles)),c.dataTransfer.dropEffect="none",c.dataTransfer.effectAllowed="move"}else c.dataTransfer.setData("application/json",JSON.stringify([parseInt(((l=c.currentTarget.attributes.getNamedItem(Wv))==null?void 0:l.nodeValue)??"",10)])),c.dataTransfer.dropEffect="none",c.dataTransfer.effectAllowed="move"},[t.markedFiles]),r=h.useCallback(c=>({[Wv]:c,draggable:t.markedFiles.length===0||t.markedFiles.includes(c),onDragStart:n}),[n,t.markedFiles]),a=h.useCallback(c=>l=>{var p;l.preventDefault(),l.stopPropagation(),l.currentTarget.classList.remove(Os);const d=l.dataTransfer.files;if(c&&d&&d.length>0){c(d);return}const f=l.dataTransfer.getData("application/json");if(f){const m=JSON.parse(f),g=parseInt(((p=l.currentTarget.attributes.getNamedItem(Bv))==null?void 0:p.value)??"",10);e(g,m)}},[e]),i=h.useCallback(()=>c=>{c.preventDefault(),c.stopPropagation()},[]),o=h.useCallback(c=>l=>{l.preventDefault(),l.stopPropagation(),l.dataTransfer.types.includes("Files")?(l.dataTransfer.dropEffect="copy",l.currentTarget.classList.add(Os)):!c&&l.dataTransfer.types.includes("application/json")?(l.dataTransfer.dropEffect="move",l.currentTarget.classList.add(Os)):l.dataTransfer.dropEffect="none"},[]),s=h.useCallback(c=>{c.preventDefault(),c.stopPropagation(),c.target===c.currentTarget&&(c.dataTransfer.dropEffect="none",c.currentTarget.classList.remove(Os))},[]),u=h.useCallback((c,l)=>({onDrop:a(l==null?void 0:l.onFilesDrop),onDragOver:i(),onDragEnter:o(l==null?void 0:l.ignoreInner),onDragLeave:s,[Bv]:c}),[a,i,o,s]);return{getDraggableProps:r,getDropProps:u}};function kw(e,t,n){for(let r=0;r<e.childrenIds.length;r++){const a=e.childrenIds[r];if(a===t)return!0;const i=n.get(a);if(i&&kw(i,t,n))return!0}return!1}function OK(e){if(e.activeFolder==="root")return!1;const t=e.foldersMap.get(e.activeFolder);return!(t!=null&&t.onlyRead)}const EK=()=>{const{zString:e,zStringRequired:t,zNumberRequired:n}=iu();return{formSchema:h.useMemo(()=>Ft.object({validTo:t(),description:e(),documentTypeId:n()}),[n,e,t])}},nm=({handleClose:e,files:t,targetFolderId:n})=>{var f;const{texts:{documents:r}}=h.useContext(bn),{reducer:[a],apiActions:{uploadFiles:i}}=h.useContext(Vt),o=h.useMemo(()=>[...t],[t]),s=h.useMemo(()=>n??a.activeFolder,[a.activeFolder,n]),u=h.useMemo(()=>s==="root"?void 0:a.foldersMap.get(s),[s,a.foldersMap]),{formSchema:c}=EK(),l=Wt.useForm({resolver:em(c),defaultValues:{validTo:nu(new Date().toISOString()),documentTypeId:(f=a.documentTypes.find(p=>{var m;return p.name===((m=a.foldersMap.get(s))==null?void 0:m.defaultDocType)}))==null?void 0:f.id}}),d=h.useCallback(async p=>{s!=="root"&&(await i(t,{folderId:s,...p}),e())},[t,e,s,i]);return y.jsxs(rn,{show:!0,onHide:e,children:[y.jsx(rn.Header,{closeButton:!0,children:y.jsxs("div",{children:[r.uploadFilesPrompt(t.length,u.name),y.jsx("ul",{children:o.map((p,m)=>y.jsxs("li",{children:[p.name," - ",tu(p.size)]},`${p.name}-${m}`))})]})}),y.jsx(Wt.FormProvider,{...l,children:y.jsxs(ya,{onSubmit:l.handleSubmit(d),children:[y.jsxs(rn.Body,{children:[y.jsx(Jp,{formField:"documentTypeId",label:r.documentType,options:a.documentTypes,isNumber:!0,required:!0}),y.jsx(zo,{formField:"validTo",label:r.validSince,type:"date",required:!0}),y.jsx(Qp,{formField:"description",label:r.description,customFormControlProps:{maxLength:Cw}})]}),y.jsxs(rn.Footer,{children:[y.jsx(fa,{variant:"outlined",color:"secondary",onClick:e,children:r.cancel}),y.jsx(fa,{type:"submit",children:r.upload})]})]})})]})},$K="_folder_9nxe7_1",MK="_collapseArrowDiv_9nxe7_8",RK="_button_9nxe7_20",AK="_nestedList_9nxe7_24",jK="_numberOfFiles_9nxe7_31",PK="_folderType_9nxe7_37",DK="_collapseArrow_9nxe7_8",Tr={folder:$K,collapseArrowDiv:MK,button:RK,nestedList:AK,numberOfFiles:jK,folderType:PK,collapseArrow:DK},Sw=({dirId:e})=>{const{ProjectIconComponent:t}=h.useContext(bn),{reducer:[n,r]}=h.useContext(Vt),{getDropProps:a}=tm(),[i,o]=h.useState(null),[s,u]=h.useState(!0),c=h.useMemo(()=>{const m=n.foldersMap.get(e);if(m===void 0)throw new Error(`tried to get dir with id ${e}`);return m},[e,n.foldersMap]),l=h.useCallback(()=>{n.activeFolder!=="root"&&kw(c,n.activeFolder,n.foldersMap)&&r({type:"select-folder",folderId:e}),u(!0)},[e,c,r,n.activeFolder,n.foldersMap]),d=h.useMemo(()=>c.childrenIds.length>0,[c.childrenIds.length]),f=h.useCallback(()=>{r({type:"select-folder",folderId:e})},[e,r]),p=h.useMemo(()=>n.filteredFiles.filter(m=>m.folderId===e&&m.archive===!1).length,[e,n.filteredFiles]);return y.jsxs(y.Fragment,{children:[y.jsxs("li",{className:Tr.folder,children:[y.jsx("div",{className:Tr.collapseArrowDiv,children:d?s?y.jsx("button",{onClick:()=>u(!1),type:"button",children:y.jsx(t,{icon:"chevron-right",iconProps:{className:Tr.collapseArrow}})}):y.jsx("button",{onClick:l,type:"button",children:y.jsx(t,{icon:"chevron-down",iconProps:{className:Tr.collapseArrow}})}):null}),y.jsxs("button",{className:ie(Tr.button),onClick:f,type:"button",...c.onlyRead?{}:a(e,{onFilesDrop:m=>o(m)}),children:[y.jsx(_w,{isDefault:c.isDefault,folderName:c.name,isActive:e===n.activeFolder}),y.jsxs("span",{className:Tr.folderType,children:["(",c.defaultDocType,")"]})," ",p>0?y.jsxs("span",{className:Tr.numberOfFiles,children:["[",p,"]"]}):void 0]}),d?s?null:y.jsx("ul",{className:Tr.nestedList,children:c==null?void 0:c.childrenIds.map(m=>y.jsx(Sw,{dirId:m},m))}):void 0]}),i!==null?y.jsx(nm,{files:i,handleClose:()=>o(null),targetFolderId:e}):null]})},IK="_wrapper_1th2u_1",NK="_downloadButton_1th2u_9",Ow={wrapper:IK,downloadButton:NK};function FK(e){return Ie({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 LK(e){return Ie({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 UK(e){return Ie({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 BK(e){return Ie({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 WK="_excel_18ggp_1",zK="_word_18ggp_5",HK="_pdf_18ggp_9",VK="_image_18ggp_13",Es={excel:WK,word:zK,pdf:HK,image:VK},Ew=({fileExtension:e,className:t,...n})=>{switch(e==null?void 0:e.toUpperCase()){case"JPG":case"JPEG":case"BMP":case"PNG":return y.jsx("span",{className:ie(t,Es.image),children:y.jsx(LK,{...n})});case"XLS":case"XLSX":case"CSV":return y.jsx(UK,{className:ie(t,Es.excel),...n});case"DOC":case"DOCM":case"DOCX":return y.jsx(BK,{className:ie(t,Es.word),...n});case"PDF":return y.jsx(RE,{className:ie(t,Es.pdf),...n});default:return y.jsx(FK,{})}},qK=()=>{const{ProjectIconComponent:e,texts:{documents:t}}=h.useContext(bn),{apiActions:{downloadFile:n},reducer:[r]}=h.useContext(Vt),a=h.useMemo(()=>r.activeFolder==="root",[r.activeFolder]);return{columns:h.useMemo(()=>[{fieldName:"id",caption:"id",type:"number",isVisible:!1},...a?[{fieldName:"folderName",caption:t.folder,type:"string"}]:[],{fieldName:"--icon",caption:"",type:"string",valueFormat:o=>y.jsx(Ew,{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=>y.jsx(ou,{className:Ow.downloadButton,onClick:()=>n(o.row.original.id,!0),children:y.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?tu(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,a])}},YK=({BnfTableComponent:e,tableIdentifier:t})=>{const{reducer:[n,r]}=h.useContext(Vt),{columns:a}=qK(),i=h.useCallback(f=>{r({type:"mark-files-by-action",setStateAction:f})},[r]),o=h.useMemo(()=>n.activeFolder==="root",[n.activeFolder]),s=h.useMemo(()=>{var f;return n.activeFolder==="root"?!1:((f=n.foldersMap.get(n.activeFolder))==null?void 0:f.onlyRead)??!1},[n.activeFolder,n.foldersMap]),u=h.useMemo(()=>({enabled:!o,idField:"id",selectedRows:n.markedFiles,setSelectedRows:i}),[o,i,n.markedFiles]),c=h.useMemo(()=>n.activeFolder==="root"?n.filteredFiles:n.filteredFiles.filter(f=>f.folderId===n.activeFolder),[n.activeFolder,n.filteredFiles]),{getDraggableProps:l}=tm(),d=h.useCallback(f=>s?{}:l(f.id),[l,s]);return y.jsx("div",{className:ie(Ow.wrapper),children:y.jsx(e,{data:c,columnsDef:a,rowSelection:u,useScrollableContainer:!0,getRowProps:d,defaultConfig:{defaultFilters:[{id:"archive",value:"false"}]},tableId:t,searchStatePrefix:"docs",useSearchState:!0,hideBottomBar:!0},n.activeFolder)})},GK="_wrapper_1q562_1",ZK="_divButtons_1q562_10",gd={wrapper:GK,divButtons:ZK},KK="_wrapper_1bpdd_1",XK="_fileInput_1bpdd_5",zv={wrapper:KK,fileInput:XK},JK=({entityId:e,entityType:t,children:n,disabled:r})=>{const a=h.useRef(null),[i,o]=h.useState(null),{reducer:[s]}=h.useContext(Vt),u=f=>{var p;(((p=f.target.files)==null?void 0:p.length)??0)>0&&o(f.target.files)},c=h.useCallback(()=>{o(null),a.current&&(a.current.value="")},[]),l=h.useMemo(()=>`documents-upload-${t}-${e}`,[e,t]),d=h.useMemo(()=>r||s.activeFolder==="root",[r,s.activeFolder]);return y.jsxs("div",{className:zv.wrapper,children:[y.jsx("label",{htmlFor:l,className:ie("btn btn-context luminus-context-button",d?"disabled":void 0),children:n}),y.jsx("input",{id:l,type:"file",multiple:!0,onChange:u,className:zv.fileInput,ref:a,disabled:d}),i!==null?y.jsx(nm,{handleClose:c,files:i}):void 0]})},Wn=({children:e,onClick:t,className:n,disabled:r=!1})=>y.jsx(ou,{onClick:t,className:n,disabled:r,children:e}),QK=({className:e,entityId:t,entityType:n})=>{var $,A;const{texts:{documents:r}}=h.useContext(bn),{prompt:a}=Mb(),{confirm:i}=y1(),{apiActions:o,reducer:[s,u]}=h.useContext(Vt),{deleteFiles:c,renameFiles:l,downloadAsZip:d,archivateFiles:f,deleteDirectory:p}=o,{renameFolder:m}=ww(),g=h.useMemo(()=>s.markedFiles.length===0,[s.markedFiles.length]),v=h.useMemo(()=>s.markedFiles.length===1,[s.markedFiles.length]),x=h.useCallback(async()=>{if(s.activeFolder==="root")return;const D=await a(r.enterNewFolderName,{input:"input"});D!==null&&m(s.activeFolder,D)},[r.enterNewFolderName,a,m,s.activeFolder]),w=h.useCallback(async()=>{if(s.activeFolder==="root")return;const D=await a(r.enterNewFileName,{input:"input"});D!==null&&l(D)},[r.enterNewFileName,a,l,s.activeFolder]),b=h.useMemo(()=>s.activeFolder==="root",[s.activeFolder]),T=h.useMemo(()=>{var D;return s.activeFolder==="root"?!1:((D=s.foldersMap.get(s.activeFolder))==null?void 0:D.onlyRead)??!1},[s.activeFolder,s.foldersMap]),_=h.useMemo(()=>s.markedFiles.every(D=>{var j;return((j=s.constantFiles.find(E=>E.id===D))==null?void 0:j.archive)===!1}),[s.constantFiles,s.markedFiles]),C=h.useMemo(()=>s.markedFiles.every(D=>{var j;return((j=s.constantFiles.find(E=>E.id===D))==null?void 0:j.archive)===!0}),[s.constantFiles,s.markedFiles]);return y.jsx("div",{className:ie(e,gd.wrapper,s.state==="folder-choosing"?"ignore-dim":void 0,"d-flex justify-content-between"),children:s.state!=="folder-choosing"?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:gd.divButtons,children:[y.jsx(JK,{entityId:t,entityType:n,disabled:T,children:r.uploadFiles}),y.jsx(Wn,{onClick:()=>{u({type:"open-modal",modalType:"create-folder",chosenFolderId:s.activeFolder??"root"})},disabled:T,children:r.createFolder}),y.jsx(Wn,{disabled:s.activeFolder==="root"||(($=s.foldersMap.get(s.activeFolder))==null?void 0:$.isDefault),onClick:async()=>{var j;await i(`${r.deleteFolder} ${(j=s.foldersMap.get(s.activeFolder))==null?void 0:j.name}?`)&&p(s.activeFolder)},children:r.deleteFolder}),y.jsx(Wn,{disabled:s.activeFolder==="root"||((A=s.foldersMap.get(s.activeFolder))==null?void 0:A.isDefault),onClick:x,children:r.renameFolder})]}),!b&&!T?y.jsxs("div",{className:gd.divButtons,children:[y.jsx(Wn,{onClick:()=>{u({type:"open-modal",modalType:"edit-file-properties"})},disabled:!v,children:r.editFileProperties}),y.jsx(Wn,{onClick:async()=>{await i(r.confirmDeleteFile(s.markedFiles.length))&&c(s.markedFiles)},disabled:g,children:r.delete}),C?y.jsx(Wn,{onClick:async()=>{await i(r.confirmDearchiveFile(s.markedFiles.length))&&await f(!0)},disabled:g,children:r.dearchivate}):y.jsx(Wn,{onClick:async()=>{await i(r.confirmArchiveFile(s.markedFiles.length))&&await f()},disabled:g||!_,children:r.archivate}),y.jsx(Wn,{onClick:w,disabled:g,children:r.rename}),y.jsx(Wn,{onClick:d,disabled:g,children:r.downloadZip})]}):null]}):s.state==="folder-choosing"?y.jsx(y.Fragment,{children:y.jsx(Wn,{onClick:()=>u({type:"return-from-folder-choosing"}),className:ie("ignore-dim","body-background-color"),children:r.back})}):void 0})};function eX(e){return{name:e.name,defaultDocType:e.defaultDocType,childrenIds:[],parentId:e.parentId??null,isDefault:e.isDefault,onlyRead:e.onlyRead}}function tX(e){const t=[],n=new Map,r=new Map;return e.forEach(a=>{n.set(a.id,eX(a)),a.parentId===null?t.push(a.id):r.set(a.id,a.parentId)}),r.forEach((a,i)=>{const o=n.get(a);if(o===void 0)throw new Error(`Did not get folder with ID ${a}, which is supposed to be parent directory of folder with ID ${i}`);o.childrenIds.push(i)}),{dirsMap:n,rootIds:t}}function Hv(e,t){const n=t.toUpperCase();return e.filter(r=>{var i;const a=(i=r.name)==null?void 0:i.toUpperCase();return a==null?void 0:a.includes(n)})}function nX(e,t){return e.map(n=>{var r;return{...n,folderName:((r=t.get(n.folderId))==null?void 0:r.name)??""}})}const rX=([e,t],n,r)=>{const{texts:{documents:a}}=h.useContext(bn),{startLoading:i,stopLoading:o}=h.useContext(Zc),{addNotification:s}=Ch(),u=ru(),c=h.useCallback(async b=>{i("documentList");try{const _=(await u.get(`/documents/${n}/${r}`)).data,{dirsMap:C,rootIds:$}=tX(_.folders),A=nX(_.documents,C);t({type:"load-data",files:A,foldersMap:C,rootFolderIds:$,setActiveFolder:b})}finally{o("documentList")}},[u,t,r,n,i,o]);h.useEffect(()=>{c(!0)},[c]);const l=h.useCallback(async()=>{i("documents-types");try{const b=await u.get(`/documents/types/${n}`);if(b.status!==200)throw new Error(`Unexpected status code: ${b.status}`);t({type:"load-document-types",documentTypes:b.data})}finally{o("documents-types")}},[u,t,n,i,o]);h.useEffect(()=>{l()},[l]);const d=h.useCallback(async(b,T)=>{const _=T??e.markedFiles;i("documentsMove");try{await u.put(`/documents/move-to-folder?folderId=${b}`,_),t({type:"update-files",fileIds:_,newProperties:{folderId:b}}),s(a.fileMoveSuccessful(_.length,e.foldersMap.get(b).name),"success")}finally{o("documentsMove")}},[e.markedFiles,e.foldersMap,i,u,t,s,a,o]),f=h.useCallback(async b=>{const T=b??e.markedFiles;i("documentsFilesDelete");try{const _=await u.delete(`/documents/delete?${Yd(T,"documentIds")}`);if(_.status!==200)throw new Error(`Unexpected status code: ${_.status}`);t({type:"delete-files",fileIds:T}),s(a.fileDeleteSuccessful(T.length),"success")}finally{o("documentsFilesDelete")}},[e.markedFiles,i,u,t,s,a,o]),p=h.useCallback(async b=>{var T;if(!(b==="root"||(T=e.foldersMap.get(b))!=null&&T.isDefault)){i("documentsFolderDelete");try{const _=await u.delete(`/documents/folder/${b}`);if(_.status!==200)throw new Error(`Unexpected status code: ${_.status}`);t({type:"delete-folder",folderId:b}),s(a.folderDeleteSuccessful(e.foldersMap.get(b).name),"success")}finally{o("documentsFolderDelete")}}},[e.foldersMap,i,u,t,s,a,o]),m=h.useCallback(async b=>{i("documentsRename");try{const T=await u.put("/documents/update-name",{documentIds:e.markedFiles,name:b});if(T.status!==200)throw new Error(`Unexpected status code: ${T.status}`);c()}finally{o("documentsRename")}},[i,u,e.markedFiles,c,o]),g=h.useCallback(async b=>{i("documents-archivate");try{const T=await u.put(`/documents/${b?"dearchive":"archive"}`,e.markedFiles);if(T.status!==200)throw new Error(`Unexpected status code: ${T.status}`);t({type:"update-files",fileIds:e.markedFiles,newProperties:{archive:!b}}),s((b?a.dearchivateSuccessful:a.archivateSuccessful)(e.markedFiles.length),"success")}finally{o("documents-archivate")}},[i,u,e.markedFiles,t,s,a.archivateSuccessful,a.dearchivateSuccessful,o]),v=h.useCallback(async()=>{var T;if(e.activeFolder==="root")return;const b=e.markedFiles.length;s(a.downloadAsZip(b),"info"),i("documents-ZIP_download");try{const _=await u.get(`/documents/download-zip?${Yd(e.markedFiles,"documentIds")}`,{responseType:"blob"});nc(_.data,(((T=e.foldersMap.get(e.activeFolder))==null?void 0:T.name)??"")+"_files")}finally{o("documents-ZIP_download")}},[e.activeFolder,e.markedFiles,e.foldersMap,s,a,i,u,o]),x=h.useCallback(async(b,T)=>{s(a.downloadingFile,"info"),i("documents-downloading_file");try{const _=await u.get(`/documents/${b}?isSmall=true`,{responseType:"blob"}),C=e.constantFiles.find(A=>A.id===b),$=`${(C==null?void 0:C.name)??b.toString()}.${C!=null&&C.fileExtension?C==null?void 0:C.fileExtension.toLowerCase():"unknown"}`;nc(_.data,$,T)}finally{o("documents-downloading_file")}},[s,a.downloadingFile,i,u,e.constantFiles,o]),w=h.useCallback(async(b,T)=>{i("documents-upload"),s(a.uploadingDocuments,"info");try{await u.postForm("/documents/upload",{files:b,...T}),await c()}finally{o("documents-upload")}},[i,s,a.uploadingDocuments,u,c,o]);return{loadDocuments:c,moveDocuments:d,deleteFiles:f,deleteDirectory:p,renameFiles:m,archivateFiles:g,downloadAsZip:v,downloadFile:x,uploadFiles:w}},aX=(e,t)=>{var n,r;switch(t.type){case"load-data":{const a={...e,constantFiles:t.files,filteredFiles:Hv(t.files,e.searchString),foldersMap:t.foldersMap,rootFolderIds:t.rootFolderIds};if(t.setActiveFolder){const i=t.rootFolderIds.find(o=>t.files.some(s=>s.archive===!1&&s.folderId===o))??"root";a.activeFolder=i}return a}case"load-document-types":return{...e,documentTypes:t.documentTypes};case"select-folder":return{...e,activeFolder:t.folderId,markedFiles:[]};case"mark-file":{const a=e.markedFiles.includes(t.fileId)?[...e.markedFiles.filter(i=>i!==t.fileId)]:[...e.markedFiles,t.fileId];return{...e,state:a.length>0?"selection-file":"explorer",markedFiles:a}}case"mark-files-by-action":{const a=typeof t.setStateAction=="function"?t.setStateAction(e.markedFiles):t.setStateAction;return{...e,state:a.length>0?"selection-file":"explorer",markedFiles:a}}case"mark-all-files":return e.markedFiles.length<e.filteredFiles.filter(a=>a.folderId===e.activeFolder).length?{...e,markedFiles:e.filteredFiles.filter(a=>a.folderId===e.activeFolder).map(a=>a.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(a=>t.fileIds.includes(a.id)?{...a,...t.newProperties}:a)],constantFiles:[...e.constantFiles.map(a=>t.fileIds.includes(a.id)?{...a,...t.newProperties}:a)],markedFiles:[],state:"explorer"};case"update-folders":{const a=new Map(e.foldersMap);return t.folderIds.forEach(i=>{a.set(i,{...e.foldersMap.get(i),...t.newProperties})}),{...e,foldersMap:a}}case"delete-files":return{...e,filteredFiles:[...e.filteredFiles.filter(a=>!t.fileIds.includes(a.id))],constantFiles:[...e.constantFiles.filter(a=>!t.fileIds.includes(a.id))],markedFiles:e.markedFiles.filter(a=>!t.fileIds.includes(a)),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 a=new Map(e.foldersMap),i=(n=a.get(t.folderId))==null?void 0:n.parentId;let o=[...e.rootFolderIds];if(i){const s=JSON.parse(JSON.stringify(a.get(i)));s.childrenIds=s.childrenIds.filter(u=>u!==t.folderId),a.set(i,s)}else o=o.filter(s=>s!==t.folderId);return a.delete(t.folderId),{...e,rootFolderIds:o,foldersMap:a,activeFolder:"root"}}case"create-folder":{const a=new Map(e.foldersMap);a.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 i=[...e.rootFolderIds];if(t.folderData.parentFolderId===null)i.push(t.folderId);else{const o=a.get(t.folderData.parentFolderId),s=JSON.parse(JSON.stringify(o));s.childrenIds.push(t.folderId),a.set(t.folderData.parentFolderId,s)}return{...e,state:"explorer",rootFolderIds:i,foldersMap:a}}case"search-files":{const a=Hv(e.constantFiles,t.searchString);return{...e,searchString:t.searchString,filteredFiles:a,markedFiles:e.markedFiles.filter(i=>a.map(o=>o.id).includes(i))}}default:throw new Error("Wrong action.type specified.")}},iX=()=>{const e={state:"explorer",activeFolder:"root",searchString:"",filteredFiles:[],constantFiles:[],foldersMap:new Map,rootFolderIds:[],markedFiles:[],documentTypes:[]},[t,n]=h.useReducer(aX,e);return[t,n]},oX=h.memo(({entityType:e,entityId:t,className:n,BnfTableComponent:r,tableIdentifier:a,customRootFolderName:i,...o})=>{const{ProjectIconComponent:s,texts:{documents:u}}=h.useContext(bn),[c,l]=iX(),[d,f]=h.useState(null),{loadDocuments:p,...m}=rX([c,l],e,t),g=h.useMemo(()=>({entityId:t,entityType:e,apiActions:m,loadDocuments:p,reducer:[c,l]}),[t,e,m,p,c,l]),{getDropProps:v}=tm();return y.jsx("div",{...o,className:ie(Vr.wrapper,n),onDragOver:x=>{x.dataTransfer.dropEffect="none",x.stopPropagation(),x.preventDefault()},onDragEnter:x=>{x.dataTransfer.dropEffect="none",x.stopPropagation(),x.preventDefault()},children:y.jsxs(Vt.Provider,{value:g,children:[y.jsx("div",{className:ie(c.state==="folder-choosing"?"dim-others":void 0,Vr.explorerWindow),children:y.jsxs("ul",{className:Vr.folderList,children:[y.jsx(mK,{customText:i??e}),c.rootFolderIds.map(x=>y.jsx(Sw,{dirId:x},x))]})}),y.jsxs("div",{className:ie(Vr.explorerWindow,Vr.fileList),...OK(c)?v(c.activeFolder,{onFilesDrop:x=>f(x),ignoreInner:!0}):{},children:[y.jsxs("div",{className:Vr.dndText,children:[y.jsx(s,{icon:"file-upload",iconProps:{style:{marginRight:0}}}),y.jsx("span",{children:u.dropToUpload})]}),y.jsx(YK,{tableIdentifier:a,BnfTableComponent:r},(c.activeFolder==="root").toString())]}),y.jsx(QK,{className:Vr.controls,entityType:e,entityId:t}),y.jsx(kK,{}),d!==null?y.jsx(nm,{files:d,handleClose:()=>f(null),targetFolderId:c.activeFolder==="root"?void 0:c.activeFolder}):null]})})}),sX="_side-content-bar_17kwd_1",cX={"side-content-bar":"_side-content-bar_17kwd_1",sideContentBar:sX},$w=({width:e,children:t})=>y.jsx("section",{className:ie("luminus-side-content-bar shadow",cX.sideContentBar),style:{width:`${e}px`},children:t}),Mw=({title:e})=>y.jsx("div",{className:"mb-3",children:typeof e=="string"?y.jsx(Oh,{variant:"h3",children:e}):e}),uX="_full-screen-container_1rm4r_1",Rw={"full-screen-container":"_full-screen-container_1rm4r_1",fullScreenContainer:uX},lX=ie("overflow-hidden luminus-full-screen-container",Rw.fullScreenContainer),dX="container-fluid",fX=({title:e,children:t,sideContent:n,sideContentWidth:r=250,noPadding:a,className:i,variant:o="main",helmet:s})=>{const{addHelmet:u,removeHelmet:c}=h.useContext(R1),l=h.useMemo(()=>{switch(o){case"fullScreen":return lX;case"main":return dX;default:throw new Error(`PageContainer got incorrect variant type: ${o}`)}},[o]);return h.useEffect(()=>(s?u(s):typeof e=="string"&&e&&u(e),()=>c()),[s,u,c,e]),y.jsxs(y.Fragment,{children:[y.jsx("div",{className:ie(l,a?"p-0":"p-3",i),style:o==="fullScreen"?{width:n?`calc(100% - ${r}px)`:"100%"}:void 0,children:y.jsxs("div",{className:o==="fullScreen"?Rw.fullScreenContainer:void 0,style:o==="main"?{paddingRight:n?`${r}px`:void 0}:{height:"100%",width:"100%"},children:[e?y.jsx(Mw,{title:e}):null,t]})}),n&&y.jsx($w,{width:r,children:n})]})};var rm={};rm.match=yX;rm.parse=Aw;var hX=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,pX=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,mX=/^(?:(min|max)-)?(.+)/,gX=/(em|rem|px|cm|mm|in|pt|pc)?$/,vX=/(dpi|dpcm|dppx)?$/;function yX(e,t){return Aw(e).some(function(n){var r=n.inverse,a=n.type==="all"||t.type===n.type;if(a&&r||!(a||r))return!1;var i=n.expressions.every(function(o){var s=o.feature,u=o.modifier,c=o.value,l=t[s];if(!l)return!1;switch(s){case"orientation":case"scan":return l.toLowerCase()===c.toLowerCase();case"width":case"height":case"device-width":case"device-height":c=Yv(c),l=Yv(l);break;case"resolution":c=qv(c),l=qv(l);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":c=Vv(c),l=Vv(l);break;case"grid":case"color":case"color-index":case"monochrome":c=parseInt(c,10)||1,l=parseInt(l,10)||0;break}switch(u){case"min":return l>=c;case"max":return l<=c;default:return l===c}});return i&&!r||!i&&r})}function Aw(e){return e.split(",").map(function(t){t=t.trim();var n=t.match(hX),r=n[1],a=n[2],i=n[3]||"",o={};return o.inverse=!!r&&r.toLowerCase()==="not",o.type=a?a.toLowerCase():"all",i=i.match(/\([^\)]+\)/g)||[],o.expressions=i.map(function(s){var u=s.match(pX),c=u[1].toLowerCase().match(mX);return{modifier:c[1],feature:c[2],value:u[2]}}),o})}function Vv(e){var t=Number(e),n;return t||(n=e.match(/^(\d+)\s*\/\s*(\d+)$/),t=n[1]/n[2]),t}function qv(e){var t=parseFloat(e),n=String(e).match(vX)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return t*96;default:return t}}function Yv(e){var t=parseFloat(e),n=String(e).match(gX)[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 bX=rm.match,Gv=typeof window<"u"?window.matchMedia:null;function xX(e,t,n){var r=this,a;Gv&&!n&&(a=Gv.call(window,e)),a?(this.matches=a.matches,this.media=a.media,a.addListener(s)):(this.matches=bX(e,t),this.media=e),this.addListener=i,this.removeListener=o,this.dispose=u;function i(c){a&&a.addListener(c)}function o(c){a&&a.removeListener(c)}function s(c){r.matches=c.matches,r.media=c.media}function u(){a&&a.removeListener(s)}}function _X(e,t,n){return new xX(e,t,n)}var wX=_X;const TX=Tt(wX);var CX=/[A-Z]/g,kX=/^ms-/,vd={};function SX(e){return"-"+e.toLowerCase()}function jw(e){if(vd.hasOwnProperty(e))return vd[e];var t=e.replace(CX,SX);return vd[e]=kX.test(t)?"-"+t:t}function OX(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),a=n.length;if(r.length!==a)return!1;for(let i=0;i<a;i++){const o=n[i];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}const Gt=O.oneOfType([O.string,O.number]),am={all:O.bool,grid:O.bool,aural:O.bool,braille:O.bool,handheld:O.bool,print:O.bool,projection:O.bool,screen:O.bool,tty:O.bool,tv:O.bool,embossed:O.bool},Pw={orientation:O.oneOf(["portrait","landscape"]),scan:O.oneOf(["progressive","interlace"]),aspectRatio:O.string,deviceAspectRatio:O.string,height:Gt,deviceHeight:Gt,width:Gt,deviceWidth:Gt,color:O.bool,colorIndex:O.bool,monochrome:O.bool,resolution:Gt,type:Object.keys(am)},{type:WX,...EX}=Pw,Dw={minAspectRatio:O.string,maxAspectRatio:O.string,minDeviceAspectRatio:O.string,maxDeviceAspectRatio:O.string,minHeight:Gt,maxHeight:Gt,minDeviceHeight:Gt,maxDeviceHeight:Gt,minWidth:Gt,maxWidth:Gt,minDeviceWidth:Gt,maxDeviceWidth:Gt,minColor:O.number,maxColor:O.number,minColorIndex:O.number,maxColorIndex:O.number,minMonochrome:O.number,maxMonochrome:O.number,minResolution:Gt,maxResolution:Gt,...EX},$X={...am,...Dw};var MX={all:$X,types:am,matchers:Pw,features:Dw};const RX=e=>`not ${e}`,AX=(e,t)=>{const n=jw(e);return typeof t=="number"&&(t=`${t}px`),t===!0?n:t===!1?RX(n):`(${n}: ${t})`},jX=e=>e.join(" and "),PX=e=>{const t=[];return Object.keys(MX.all).forEach(n=>{const r=e[n];r!=null&&t.push(AX(n,r))}),jX(t)},DX=h.createContext(void 0),IX=e=>e.query||PX(e),Zv=e=>e?Object.keys(e).reduce((n,r)=>(n[jw(r)]=e[r],n),{}):void 0,Iw=()=>{const e=h.useRef(!1);return h.useEffect(()=>{e.current=!0},[]),e.current},NX=e=>{const t=h.useContext(DX),n=()=>Zv(e)||Zv(t),[r,a]=h.useState(n);return h.useEffect(()=>{const i=n();OX(r,i)||a(i)},[e,t]),r},FX=e=>{const t=()=>IX(e),[n,r]=h.useState(t);return h.useEffect(()=>{const a=t();n!==a&&r(a)},[e]),n},LX=(e,t)=>{const n=()=>TX(e,t||{},!!t),[r,a]=h.useState(n),i=Iw();return h.useEffect(()=>{if(i){const o=n();return a(o),()=>{o&&o.dispose()}}},[e,t]),r},UX=e=>{const[t,n]=h.useState(e.matches);return h.useEffect(()=>{const r=a=>{n(a.matches)};return e.addListener(r),n(e.matches),()=>{e.removeListener(r)}},[e]),t},yd=(e,t,n)=>{const r=NX(t),a=FX(e);if(!a)throw new Error("Invalid or missing MediaQuery!");const i=LX(a,r),o=UX(i),s=Iw();return h.useEffect(()=>{s&&n&&n(o)},[o]),h.useEffect(()=>()=>{i&&i.dispose()},[]),o},Nw="ResponsiveContextDropdownItem",BX=e=>e.type.displayName===Nw,im=()=>{};im.displayName=Nw;const Fw=({children:e})=>{const t=yd({maxWidth:768}),n=yd({minWidth:769,maxWidth:1200}),r=yd({minWidth:1201}),a=[t,n,r].indexOf(!0),i=["sm","md","lg","always"],o=[],s=[];let u=null;const c=l=>{const{hideOn:d,children:f,cKey:p,to:m,...g}=l.props;if(d==="always"||i.indexOf(d)>=a)u&&s.length>0&&s.push(u),u=null,m!=null?s.push(y.jsx(jc.Link,{to:m,children:y.jsx(ef,{...g,as:"div",children:f},p)})):s.push(y.jsx(ef,{...g,children:f},p));else{const v=m!=null?{as:"link",href:m}:{};o.push(y.jsx(ou,{...g,...v,children:l.props.children},p))}};return Array.isArray(e)?e.forEach(l=>{BX(l)?c(l):u=l}):c(e),y.jsxs("div",{className:"d-flex gap-1",children:[y.jsx(y.Fragment,{children:o.map(l=>l)}),s.length>0?y.jsx(I1,{toggle:y.jsx(D1,{as:j1}),children:s.map(l=>l)}):null]})};Fw.Item=im;exports.AbstractModalHeader=hb;exports.Anchor=Gf;exports.AuthContext=Sh;exports.AvatarIcon=P1;exports.BaseModal=cb;exports.BootstrapDropdown=co;exports.BootstrapModalManager=sk;exports.Button=Yf;exports.Button$1=Zf;exports.CloseButton=Lc;exports.ConfirmContext=Eb;exports.ContextButton=ou;exports.DelegationContext=M1;exports.Documents=oX;exports.Dropdown=I1;exports.DropdownItem=ef;exports.DropdownToggle=D1;exports.ENTERED=kr;exports.ENTERING=ar;exports.EXITED=Cr;exports.EXITING=Ws;exports.FaMinus=EE;exports.FaPlus=$E;exports.FaSearch=ME;exports.Fade=Ya;exports.FileExtensionIcon=Ew;exports.FloatingLabelInput=N1;exports.Form=ya;exports.FormCheckInput=qc;exports.FormControl=eb;exports.FormSelect=ch;exports.FromToDatePickerDropdownToggle=ZE;exports.HelmetContext=R1;exports.HookFormTextAreaInput=Qp;exports.HookFormTextInput=zo;exports.IconButton=su;exports.Ie=U6;exports.InvalidFeedback=cu;exports.LoadingContext=Zc;exports.LoginState=Pb;exports.LuminusComponentsContext=bn;exports.MdArrowRight=Ek;exports.MdCheck=$k;exports.MdCircle=Ok;exports.MdClear=Yc;exports.MdOutlineAddCircleOutline=Nk;exports.MdOutlineArrowOutward=Mk;exports.MdOutlineCameraAlt=zk;exports.MdOutlineChevronRight=Yk;exports.MdOutlineClose=Ob;exports.MdOutlineContentCopy=Fk;exports.MdOutlineDelete=Ak;exports.MdOutlineEdit=Hk;exports.MdOutlineExpand=jk;exports.MdOutlineFileUpload=Lk;exports.MdOutlineKeyboardArrowLeft=Uk;exports.MdOutlineKeyboardArrowRight=Bk;exports.MdOutlineKeyboardDoubleArrowLeft=Wk;exports.MdOutlineMenu=Gk;exports.MdOutlinePhotoLibrary=Vk;exports.MdOutlineStar=Kk;exports.MdSave=Sk;exports.MdSaveAs=kk;exports.MdSearch=Ck;exports.Modal=rn;exports.ModalContext=fh;exports.NavContext=ah;exports.NoInputContainer=F1;exports.OverlayTrigger=Cb;exports.PageContainer=fX;exports.PageTitle=Mw;exports.Popover=_b;exports.PrimaryButton=fa;exports.PromptContext=$b;exports.PropTypes=O;exports.Re=oK;exports.ResponsiveContextDropdown=Fw;exports.ResponsiveContextDropdownItem=im;exports.RowLabelInput=Xo;exports.SelectableContext=Ys;exports.SideContentBar=$w;exports.SimpleDropdownToggle=j1;exports.Tooltip=mh;exports.TransitionWrapper=py;exports.Typography=Oh;exports.UserAvatarToggle=NE;exports.UserContext=B6;exports._=Yz;exports.addLeadingZeros=Ge;exports.atobUtf8=u1;exports.buildEmployeeNameString=wS;exports.buildOrgUnitString=TS;exports.buildVehicleNameString=_S;exports.cancelToken=aO;exports.capitalizeFirstLetter=xS;exports.classNames=ie;exports.classes=Qd;exports.classes$1=A1;exports.compareDate=SS;exports.compareDateTime=OS;exports.constructFrom=ur;exports.context=Hc;exports.context$1=oh;exports.dataAttr=Wc;exports.dataProp=FC;exports.differenceInCalendarDays=ty;exports.divWithClassName=my;exports.extractErrorsFromResponse=_h;exports.extractFilename=h1;exports.extractPermissionsFromResponse=s1;exports.fixNameIdNulls=i1;exports.format=Wf;exports.formatDate=yS;exports.formatDateTime=bS;exports.formatFileSize=tu;exports.getDateString=jS;exports.getDaysDifference=ES;exports.getDefaultExportFromCjs=Tt;exports.getFirstDayOfMonth=d1;exports.getFirstDayOfOffsetMonth=$S;exports.getFirstDayOfYear=RS;exports.getLastDayOfMonth=f1;exports.getLastDayOfOffsetMonth=MS;exports.getLastDayOfYear=AS;exports.getSharedManager=lb;exports.getTimezoneOffsetInMilliseconds=_d;exports.hasOnlyNullValues=o1;exports.hookFormSetServerErrors=gS;exports.invariant=Td;exports.isISODate=l1;exports.isPrimitive=tc;exports.isValidDate=kS;exports.joinStrings=lo;exports.jsxRuntimeExports=y;exports.latinize=wh;exports.makeEventKey=Ad;exports.millisecondsInHour=Pc;exports.millisecondsInMinute=Uf;exports.millisecondsInWeek=Lf;exports.msToStartOfNextDay=CS;exports.parseISO=Ic;exports.qsa=ir;exports.replaceNullValuesOnlyObjectsWithNulls=mS;exports.saveFile=nc;exports.saveFileFromResponse=PS;exports.secondsInDay=Bf;exports.secondsInHour=Xv;exports.secondsInMinute=qw;exports.secondsInMonth=Qv;exports.secondsInQuarter=Gw;exports.secondsInWeek=Yw;exports.secondsInYear=Jv;exports.shortenText=vS;exports.startOfDay=xd;exports.startOfWeek=qa;exports.style=Rr;exports.toDate=yn;exports.transitionEndListener=fy;exports.triggerBrowserReflow=hy;exports.trimIsoDate=nu;exports.truncateText=c1;exports.urlfyArray=Yd;exports.useAuth=v1;exports.useAxios=ru;exports.useBootstrapPrefix=Le;exports.useCol=yy;exports.useConfirm=y1;exports.useCookies=Th;exports.useEventCallback=bt;exports.useForceUpdate=xy;exports.useFormControlType=$1;exports.useIsomorphicEffect=ao;exports.useMergedRefs=$n;exports.useNotifications=Ch;exports.usePrompt=Mb;exports.useUncontrolled=sy;exports.useZodSchemaTypes=iu;exports.warning=di;