react-luminus-components 2.0.4-table → 2.0.5-beta.r19-2

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 (92) hide show
  1. package/README.md +349 -349
  2. package/dist/.vite/manifest.json +52 -46
  3. package/dist/FormDisabledProvider-C8heDps-.js +51 -0
  4. package/dist/FormDisabledProvider-D0qy0L0K.cjs +1 -0
  5. package/dist/components/Buttons/ContextButton/FileUploadContextButton.d.ts +6 -3
  6. package/dist/components/Documents/components/DocumentsModals/components/CreateFolderModal/hooks/useDocCreateFolderForm.d.ts +4 -1
  7. package/dist/components/Documents/components/DocumentsModals/components/EditFileModal/hooks/useEditFileForm.d.ts +6 -1
  8. package/dist/components/Documents/hooks/useDocumentsReducer.d.ts +1 -1
  9. package/dist/components/Dropdown/comps/SimpleToggle/SimpleToggle.d.ts +6 -3
  10. package/dist/components/Dropdown/comps/UserAvatarToggle/UserAvatarToggle.d.ts +3 -1
  11. package/dist/components/Flexmonster/Flexmonster.d.ts +1 -1
  12. package/dist/components/Flexmonster/hooks/useReportVersionApi.d.ts +1 -1
  13. package/dist/components/Flexmonster/utils/flexMonsterUtils.d.ts +1 -1
  14. package/dist/components/HookForm/MiniDetailWrapper/MiniDetailWrapper.d.ts +1 -1
  15. package/dist/components/HookForm/TextInput/HookFormTextInput.d.ts +4 -17
  16. package/dist/components/InputContainers/FloatingLabelInput/FloatingLabelInput.d.ts +7 -38
  17. package/dist/components/InputContainers/NoInputContainer/NoInputContainer.d.ts +8 -38
  18. package/dist/components/InputContainers/RowLabelInput/RowLabelInput.d.ts +8 -38
  19. package/dist/components/NotifCenter/Actions/NotificationActions.d.ts +3 -3
  20. package/dist/components/NotifCenter/Actions/components/HistoryTable/NotificationHistoryTable.d.ts +1 -1
  21. package/dist/components/ResponsiveContextDropdown/components/ResponsiveContextDropdownItem/ResponsiveContextDropdownItem.d.ts +1 -1
  22. package/dist/components/ResponsiveContextDropdown/hooks/useReponsiveContextDropdownHelpers.d.ts +2 -2
  23. package/dist/components/ResponsiveContextDropdown/utils/responsiveContextDropdownUtils.d.ts +1 -1
  24. package/dist/components/Tooltip/HtmlTooltip/HtmlTooltip.d.ts +2 -2
  25. package/dist/components/Tooltip/SimpleTooltip/SimpleTooltip.d.ts +1 -1
  26. package/dist/components/common/AuthTemplate/AuthTemplate.d.ts +1 -1
  27. package/dist/components/common/ColumnResizer/ColumnResizer.d.ts +1 -1
  28. package/dist/components/common/DisabledRowLabelLink/DisabledRowLabelLink.d.ts +1 -1
  29. package/dist/components/common/ErrorBoundary/ErrorBoundary.d.ts +7 -3
  30. package/dist/components/common/FromToDatePicker/components/FromToDatePickerDropdownToggle/FromToDatePickerDropdownToggle.d.ts +3 -1
  31. package/dist/components/common/HomeDashboard/comps/HomeDashboardWidget/HomeDashboardWidget.d.ts +15 -0
  32. package/dist/components/common/LineChart/comps/LineChartTooltip/LineChartTooltip.d.ts +2 -2
  33. package/dist/components/common/PermissionsSubstitute/Detail/hooks/useSubstDetailForm.d.ts +8 -1
  34. package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/PhotoPreviews.d.ts +15 -0
  35. package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/PhotoPreview/PhotoPreview.d.ts +14 -0
  36. package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/PhotoPreview/comps/PreviewShadow/PreviewShadow.d.ts +5 -0
  37. package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/PhotoPreview/comps/index.d.ts +1 -0
  38. package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/index.d.ts +1 -0
  39. package/dist/components/common/PhotoLightbox/comps/index.d.ts +1 -0
  40. package/dist/components/common/QrCode/QrCode.d.ts +1 -1
  41. package/dist/components/common/RouteLink/RouteLink.d.ts +1 -1
  42. package/dist/components/common/SimplePicker/SimplePicker.d.ts +1 -1
  43. package/dist/components/common/index.d.ts +0 -1
  44. package/dist/contexts.cjs.js +1 -1
  45. package/dist/contexts.es.js +542 -941
  46. package/dist/hooks/index.d.ts +1 -0
  47. package/dist/hooks/useAxios/useAxios.d.ts +5 -2
  48. package/dist/hooks/useClickOutside/useClickOutside.d.ts +1 -1
  49. package/dist/hooks/useGetApiDataBound/useGetApiDataBound.d.ts +3 -0
  50. package/dist/hooks/useGetDataBound/useGetDataBound.d.ts +4 -2
  51. package/dist/hooks/useIsFormDirty/useIsFormDirty.d.ts +7 -0
  52. package/dist/hooks/useScrollSave/useScrollSave.d.ts +1 -1
  53. package/dist/hooks.cjs.js +1 -1
  54. package/dist/hooks.es.js +206 -136
  55. package/dist/layout/SideMenu/SideMenu.d.ts +3 -1
  56. package/dist/layout.cjs.js +1 -1
  57. package/dist/layout.es.js +282 -141
  58. package/dist/{localStorageUtils-DdeuyghB.js → localStorageUtils-CZ4HDRzi.js} +18 -8
  59. package/dist/localStorageUtils-CkZslzIU.cjs +1 -0
  60. package/dist/main.cjs.js +22 -184
  61. package/dist/main.es.js +11317 -11418
  62. package/dist/models/bntTable/IBnfTableDefColumn.d.ts +40 -0
  63. package/dist/models/prop-types/InputContainerProps.d.ts +4 -12
  64. package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +1 -1
  65. package/dist/models/prop-types/InputProps/InputBaseProps.d.ts +4 -2
  66. package/dist/models/prop-types/InputProps/NumericInputProps.d.ts +1 -1
  67. package/dist/models/prop-types/InputProps/TextInputProps.d.ts +1 -1
  68. package/dist/models/ui/notifications/NotificationHistoryTableModel.d.ts +6 -0
  69. package/dist/nivo-bar-BcQddlHb.js +41895 -0
  70. package/dist/nivo-bar-GEZlEbHd.cjs +326 -0
  71. package/dist/style.css +1 -1
  72. package/dist/useIsFormDirty-B125NdWZ.js +123 -0
  73. package/dist/useIsFormDirty-DORaJxqb.cjs +1 -0
  74. package/dist/useLocalStorageState-CMX4R5vm.js +95 -0
  75. package/dist/useLocalStorageState-DjAdoFfQ.cjs +1 -0
  76. package/dist/utils/index.d.ts +1 -1
  77. package/dist/utils/route/apiPathUtils.d.ts +1 -1
  78. package/dist/utils.cjs.js +1 -1
  79. package/dist/utils.es.js +133 -159
  80. package/dist/variables.scss +165 -165
  81. package/package.json +128 -123
  82. package/dist/FormDisabledProvider-1MOB6N34.cjs +0 -1
  83. package/dist/FormDisabledProvider-CHZ2m_zJ.js +0 -40
  84. package/dist/ShortcutLinksContext-DEirK-v9.js +0 -39884
  85. package/dist/ShortcutLinksContext-DLi4B8z5.cjs +0 -334
  86. package/dist/components/NotifCenter/Actions/types/NotificationHistoryTableModel.d.ts +0 -5
  87. package/dist/components/common/StrictModeDroppable/StrictModeDroppable.d.ts +0 -5
  88. package/dist/localStorageUtils-89Gfn6XS.cjs +0 -1
  89. package/dist/useLocalStorageState-B-CRodSS.cjs +0 -1
  90. package/dist/useLocalStorageState-BPYqQMTu.js +0 -78
  91. package/dist/useRenderDraggableInPortal-D0OLp7Qb.js +0 -78
  92. package/dist/useRenderDraggableInPortal-QPCaw-E_.cjs +0 -1
@@ -1,334 +0,0 @@
1
- "use strict";const h=require("react"),is=require("react-router-dom"),qM=require("@azure/msal-browser"),Uy=require("@azure/msal-react"),un=require("react-dom"),kn=require("react-hook-form");require("react-flexmonster");function YM(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ie=YM(h);var lr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lm={exports:{}},As={};/**
2
- * @license React
3
- * react-jsx-runtime.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Vy;function GM(){if(Vy)return As;Vy=1;var e=h,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,c,l){var u,d={},f=null,p=null;l!==void 0&&(f=""+l),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(p=c.ref);for(u in c)r.call(c,u)&&!o.hasOwnProperty(u)&&(d[u]=c[u]);if(s&&s.defaultProps)for(u in c=s.defaultProps,c)d[u]===void 0&&(d[u]=c[u]);return{$$typeof:t,type:s,key:f,ref:p,props:d,_owner:i.current}}return As.Fragment=n,As.jsx=a,As.jsxs=a,As}var js={};/**
10
- * @license React
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Hy;function KM(){return Hy||(Hy=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"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator";function v(q){if(q===null||typeof q!="object")return null;var me=g&&q[g]||q[m];return typeof me=="function"?me:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(q){{for(var me=arguments.length,le=new Array(me>1?me-1:0),he=1;he<me;he++)le[he-1]=arguments[he];_("error",q,le)}}function _(q,me,le){{var he=x.ReactDebugCurrentFrame,$e=he.getStackAddendum();$e!==""&&(me+="%s",le=le.concat([$e]));var De=le.map(function(Te){return String(Te)});De.unshift("Warning: "+me),Function.prototype.apply.call(console[q],console,De)}}var C=!1,y=!1,$=!1,E=!1,k=!1,T;T=Symbol.for("react.module.reference");function O(q){return!!(typeof q=="string"||typeof q=="function"||q===r||q===o||k||q===i||q===l||q===u||E||q===p||C||y||$||typeof q=="object"&&q!==null&&(q.$$typeof===f||q.$$typeof===d||q.$$typeof===a||q.$$typeof===s||q.$$typeof===c||q.$$typeof===T||q.getModuleId!==void 0))}function S(q,me,le){var he=q.displayName;if(he)return he;var $e=me.displayName||me.name||"";return $e!==""?le+"("+$e+")":le}function M(q){return q.displayName||"Context"}function A(q){if(q==null)return null;if(typeof q.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof q=="function")return q.displayName||q.name||null;if(typeof q=="string")return q;switch(q){case r:return"Fragment";case n:return"Portal";case o:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case u:return"SuspenseList"}if(typeof q=="object")switch(q.$$typeof){case s:var me=q;return M(me)+".Consumer";case a:var le=q;return M(le._context)+".Provider";case c:return S(q,q.render,"ForwardRef");case d:var he=q.displayName||null;return he!==null?he:A(q.type)||"Memo";case f:{var $e=q,De=$e._payload,Te=$e._init;try{return A(Te(De))}catch{return null}}}return null}var j=Object.assign,P=0,I,L,V,z,D,W,G;function J(){}J.__reactDisabledLog=!0;function Z(){{if(P===0){I=console.log,L=console.info,V=console.warn,z=console.error,D=console.group,W=console.groupCollapsed,G=console.groupEnd;var q={configurable:!0,enumerable:!0,value:J,writable:!0};Object.defineProperties(console,{info:q,log:q,warn:q,error:q,group:q,groupCollapsed:q,groupEnd:q})}P++}}function X(){{if(P--,P===0){var q={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},q,{value:I}),info:j({},q,{value:L}),warn:j({},q,{value:V}),error:j({},q,{value:z}),group:j({},q,{value:D}),groupCollapsed:j({},q,{value:W}),groupEnd:j({},q,{value:G})})}P<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ee=x.ReactCurrentDispatcher,ne;function F(q,me,le){{if(ne===void 0)try{throw Error()}catch($e){var he=$e.stack.trim().match(/\n( *(at )?)/);ne=he&&he[1]||""}return`
18
- `+ne+q}}var N=!1,B;{var H=typeof WeakMap=="function"?WeakMap:Map;B=new H}function R(q,me){if(!q||N)return"";{var le=B.get(q);if(le!==void 0)return le}var he;N=!0;var $e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var De;De=ee.current,ee.current=null,Z();try{if(me){var Te=function(){throw Error()};if(Object.defineProperty(Te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Te,[])}catch(Ce){he=Ce}Reflect.construct(q,[],Te)}else{try{Te.call()}catch(Ce){he=Ce}q.call(Te.prototype)}}else{try{throw Error()}catch(Ce){he=Ce}q()}}catch(Ce){if(Ce&&he&&typeof Ce.stack=="string"){for(var je=Ce.stack.split(`
19
- `),qe=he.stack.split(`
20
- `),We=je.length-1,st=qe.length-1;We>=1&&st>=0&&je[We]!==qe[st];)st--;for(;We>=1&&st>=0;We--,st--)if(je[We]!==qe[st]){if(We!==1||st!==1)do if(We--,st--,st<0||je[We]!==qe[st]){var nn=`
21
- `+je[We].replace(" at new "," at ");return q.displayName&&nn.includes("<anonymous>")&&(nn=nn.replace("<anonymous>",q.displayName)),typeof q=="function"&&B.set(q,nn),nn}while(We>=1&&st>=0);break}}}finally{N=!1,ee.current=De,X(),Error.prepareStackTrace=$e}var Ut=q?q.displayName||q.name:"",cn=Ut?F(Ut):"";return typeof q=="function"&&B.set(q,cn),cn}function Y(q,me,le){return R(q,!1)}function Q(q){var me=q.prototype;return!!(me&&me.isReactComponent)}function te(q,me,le){if(q==null)return"";if(typeof q=="function")return R(q,Q(q));if(typeof q=="string")return F(q);switch(q){case l:return F("Suspense");case u:return F("SuspenseList")}if(typeof q=="object")switch(q.$$typeof){case c:return Y(q.render);case d:return te(q.type,me,le);case f:{var he=q,$e=he._payload,De=he._init;try{return te(De($e),me,le)}catch{}}}return""}var ue=Object.prototype.hasOwnProperty,oe={},ae=x.ReactDebugCurrentFrame;function pe(q){if(q){var me=q._owner,le=te(q.type,q._source,me?me.type:null);ae.setExtraStackFrame(le)}else ae.setExtraStackFrame(null)}function ve(q,me,le,he,$e){{var De=Function.call.bind(ue);for(var Te in q)if(De(q,Te)){var je=void 0;try{if(typeof q[Te]!="function"){var qe=Error((he||"React class")+": "+le+" type `"+Te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof q[Te]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw qe.name="Invariant Violation",qe}je=q[Te](me,Te,he,le,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(We){je=We}je&&!(je instanceof Error)&&(pe($e),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).",he||"React class",le,Te,typeof je),pe(null)),je instanceof Error&&!(je.message in oe)&&(oe[je.message]=!0,pe($e),w("Failed %s type: %s",le,je.message),pe(null))}}}var Ee=Array.isArray;function Se(q){return Ee(q)}function Oe(q){{var me=typeof Symbol=="function"&&Symbol.toStringTag,le=me&&q[Symbol.toStringTag]||q.constructor.name||"Object";return le}}function Fe(q){try{return fe(q),!1}catch{return!0}}function fe(q){return""+q}function se(q){if(Fe(q))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Oe(q)),fe(q)}var we=x.ReactCurrentOwner,Ve={key:!0,ref:!0,__self:!0,__source:!0},Ot,ze,ft;ft={};function _t(q){if(ue.call(q,"ref")){var me=Object.getOwnPropertyDescriptor(q,"ref").get;if(me&&me.isReactWarning)return!1}return q.ref!==void 0}function Vt(q){if(ue.call(q,"key")){var me=Object.getOwnPropertyDescriptor(q,"key").get;if(me&&me.isReactWarning)return!1}return q.key!==void 0}function gt(q,me){if(typeof q.ref=="string"&&we.current&&me&&we.current.stateNode!==me){var le=A(we.current.type);ft[le]||(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',A(we.current.type),q.ref),ft[le]=!0)}}function bt(q,me){{var le=function(){Ot||(Ot=!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)",me))};le.isReactWarning=!0,Object.defineProperty(q,"key",{get:le,configurable:!0})}}function Ct(q,me){{var le=function(){ze||(ze=!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)",me))};le.isReactWarning=!0,Object.defineProperty(q,"ref",{get:le,configurable:!0})}}var Ht=function(q,me,le,he,$e,De,Te){var je={$$typeof:t,type:q,key:me,ref:le,props:Te,_owner:De};return je._store={},Object.defineProperty(je._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(je,"_self",{configurable:!1,enumerable:!1,writable:!1,value:he}),Object.defineProperty(je,"_source",{configurable:!1,enumerable:!1,writable:!1,value:$e}),Object.freeze&&(Object.freeze(je.props),Object.freeze(je)),je};function Be(q,me,le,he,$e){{var De,Te={},je=null,qe=null;le!==void 0&&(se(le),je=""+le),Vt(me)&&(se(me.key),je=""+me.key),_t(me)&&(qe=me.ref,gt(me,$e));for(De in me)ue.call(me,De)&&!Ve.hasOwnProperty(De)&&(Te[De]=me[De]);if(q&&q.defaultProps){var We=q.defaultProps;for(De in We)Te[De]===void 0&&(Te[De]=We[De])}if(je||qe){var st=typeof q=="function"?q.displayName||q.name||"Unknown":q;je&&bt(Te,st),qe&&Ct(Te,st)}return Ht(q,je,qe,$e,he,we.current,Te)}}var Ie=x.ReactCurrentOwner,et=x.ReactDebugCurrentFrame;function He(q){if(q){var me=q._owner,le=te(q.type,q._source,me?me.type:null);et.setExtraStackFrame(le)}else et.setExtraStackFrame(null)}var tt;tt=!1;function nt(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function $t(){{if(Ie.current){var q=A(Ie.current.type);if(q)return`
22
-
23
- Check the render method of \``+q+"`."}return""}}function ht(q){return""}var ut={};function xt(q){{var me=$t();if(!me){var le=typeof q=="string"?q:q.displayName||q.name;le&&(me=`
24
-
25
- Check the top-level render call using <`+le+">.")}return me}}function yt(q,me){{if(!q._store||q._store.validated||q.key!=null)return;q._store.validated=!0;var le=xt(me);if(ut[le])return;ut[le]=!0;var he="";q&&q._owner&&q._owner!==Ie.current&&(he=" It was passed a child from "+A(q._owner.type)+"."),He(q),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',le,he),He(null)}}function at(q,me){{if(typeof q!="object")return;if(Se(q))for(var le=0;le<q.length;le++){var he=q[le];nt(he)&&yt(he,me)}else if(nt(q))q._store&&(q._store.validated=!0);else if(q){var $e=v(q);if(typeof $e=="function"&&$e!==q.entries)for(var De=$e.call(q),Te;!(Te=De.next()).done;)nt(Te.value)&&yt(Te.value,me)}}}function St(q){{var me=q.type;if(me==null||typeof me=="string")return;var le;if(typeof me=="function")le=me.propTypes;else if(typeof me=="object"&&(me.$$typeof===c||me.$$typeof===d))le=me.propTypes;else return;if(le){var he=A(me);ve(le,q.props,"prop",he,q)}else if(me.PropTypes!==void 0&&!tt){tt=!0;var $e=A(me);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",$e||"Unknown")}typeof me.getDefaultProps=="function"&&!me.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Mt(q){{for(var me=Object.keys(q.props),le=0;le<me.length;le++){var he=me[le];if(he!=="children"&&he!=="key"){He(q),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",he),He(null);break}}q.ref!==null&&(He(q),w("Invalid attribute `ref` supplied to `React.Fragment`."),He(null))}}var _e={};function Me(q,me,le,he,$e,De){{var Te=O(q);if(!Te){var je="";(q===void 0||typeof q=="object"&&q!==null&&Object.keys(q).length===0)&&(je+=" 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 qe=ht();qe?je+=qe:je+=$t();var We;q===null?We="null":Se(q)?We="array":q!==void 0&&q.$$typeof===t?(We="<"+(A(q.type)||"Unknown")+" />",je=" Did you accidentally export a JSX literal instead of a component?"):We=typeof q,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",We,je)}var st=Be(q,me,le,$e,De);if(st==null)return st;if(Te){var nn=me.children;if(nn!==void 0)if(he)if(Se(nn)){for(var Ut=0;Ut<nn.length;Ut++)at(nn[Ut],q);Object.freeze&&Object.freeze(nn)}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 at(nn,q)}if(ue.call(me,"key")){var cn=A(q),Ce=Object.keys(me).filter(function(xr){return xr!=="key"}),xn=Ce.length>0?"{key: someKey, "+Ce.join(": ..., ")+": ...}":"{key: someKey}";if(!_e[cn+xn]){var qt=Ce.length>0?"{"+Ce.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
26
- let props = %s;
27
- <%s {...props} />
28
- React keys must be passed directly to JSX without using spread:
29
- let props = %s;
30
- <%s key={someKey} {...props} />`,xn,cn,qt,cn),_e[cn+xn]=!0}}return q===r?Mt(st):St(st),st}}function Ne(q,me,le){return Me(q,me,le,!0)}function Ke(q,me,le){return Me(q,me,le,!1)}var Ye=Ke,Et=Ne;js.Fragment=r,js.jsx=Ye,js.jsxs=Et}()),js}process.env.NODE_ENV==="production"?Lm.exports=GM():Lm.exports=KM();var b=Lm.exports,sC={exports:{}};/*!
31
- Copyright (c) 2018 Jed Watson.
32
- Licensed under the MIT License (MIT), see
33
- http://jedwatson.github.io/classnames
34
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)t.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(sC);var ZM=sC.exports;const de=rn(ZM);function Ln(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 mi(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function XM(e,t){const n=+Ln(e);return mi(e,n+t)}const QM=365.2425,wv=6048e5,JM=864e5,_v=6e4,ff=36e5,cC=3600,e6=60,Cv=cC*24,t6=Cv*7,lC=Cv*QM,uC=lC/12,n6=uC*3;function dC(e,t){return XM(e,t*ff)}let r6={};function hf(){return r6}function Ia(e,t){var s,c,l,u;const n=hf(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??0,i=Ln(e),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function nd(e){return Ia(e,{weekStartsOn:1})}function fC(e){const t=Ln(e),n=t.getFullYear(),r=mi(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=nd(r),o=mi(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const a=nd(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Fm(e){const t=Ln(e);return t.setHours(0,0,0,0),t}function Bm(e){const t=Ln(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 hC(e,t){const n=Fm(e),r=Fm(t),i=+n-Bm(n),o=+r-Bm(r);return Math.round((i-o)/JM)}function i6(e){const t=fC(e),n=mi(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),nd(n)}function o6(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function a6(e){if(!o6(e)&&typeof e!="number")return!1;const t=Ln(e);return!isNaN(Number(t))}function s6(e){const t=Ln(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function c6(e){const t=Ln(e),n=mi(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const l6={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"}},u6=(e,t,n)=>{let r;const i=l6[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function gp(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const d6={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},f6={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},h6={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},p6={date:gp({formats:d6,defaultWidth:"full"}),time:gp({formats:f6,defaultWidth:"full"}),dateTime:gp({formats:h6,defaultWidth:"full"})},m6={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},g6=(e,t,n,r)=>m6[e];function Ns(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const v6={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},b6={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},y6={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"]},x6={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"]},w6={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"}},_6={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"}},C6=(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"},$6={ordinalNumber:C6,era:Ns({values:v6,defaultWidth:"wide"}),quarter:Ns({values:b6,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ns({values:y6,defaultWidth:"wide"}),day:Ns({values:x6,defaultWidth:"wide"}),dayPeriod:Ns({values:w6,defaultWidth:"wide",formattingValues:_6,defaultFormattingWidth:"wide"})};function Ds(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?E6(s,d=>d.test(a)):S6(s,d=>d.test(a));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;const u=t.slice(a.length);return{value:l,rest:u}}}function S6(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function E6(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function T6(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const k6=/^(\d+)(th|st|nd|rd)?/i,O6=/\d+/i,M6={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},R6={any:[/^b/i,/^(a|c)/i]},A6={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},j6={any:[/1/i,/2/i,/3/i,/4/i]},N6={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},D6={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]},I6={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},P6={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]},L6={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},F6={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}},B6={ordinalNumber:T6({matchPattern:k6,parsePattern:O6,valueCallback:e=>parseInt(e,10)}),era:Ds({matchPatterns:M6,defaultMatchWidth:"wide",parsePatterns:R6,defaultParseWidth:"any"}),quarter:Ds({matchPatterns:A6,defaultMatchWidth:"wide",parsePatterns:j6,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ds({matchPatterns:N6,defaultMatchWidth:"wide",parsePatterns:D6,defaultParseWidth:"any"}),day:Ds({matchPatterns:I6,defaultMatchWidth:"wide",parsePatterns:P6,defaultParseWidth:"any"}),dayPeriod:Ds({matchPatterns:L6,defaultMatchWidth:"any",parsePatterns:F6,defaultParseWidth:"any"})},z6={code:"en-US",formatDistance:u6,formatLong:p6,formatRelative:g6,localize:$6,match:B6,options:{weekStartsOn:0,firstWeekContainsDate:1}};function W6(e){const t=Ln(e);return hC(t,c6(t))+1}function U6(e){const t=Ln(e),n=+nd(t)-+i6(t);return Math.round(n/wv)+1}function pC(e,t){var u,d,f,p;const n=Ln(e),r=n.getFullYear(),i=hf(),o=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((p=(f=i.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,a=mi(e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=Ia(a,t),c=mi(e,0);c.setFullYear(r,0,o),c.setHours(0,0,0,0);const l=Ia(c,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function V6(e,t){var s,c,l,u;const n=hf(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.firstWeekContainsDate)??1,i=pC(e,t),o=mi(e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Ia(o,t)}function H6(e,t){const n=Ln(e),r=+Ia(n,t)-+V6(n,t);return Math.round(r/wv)+1}function Pt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Oi={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Pt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Pt(n+1,2)},d(e,t){return Pt(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 Pt(e.getHours()%12||12,t.length)},H(e,t){return Pt(e.getHours(),t.length)},m(e,t){return Pt(e.getMinutes(),t.length)},s(e,t){return Pt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Pt(i,t.length)}},la={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},qy={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Oi.y(e,t)},Y:function(e,t,n,r){const i=pC(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Pt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Pt(o,t.length)},R:function(e,t){const n=fC(e);return Pt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Pt(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 Pt(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 Pt(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 Oi.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 Pt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=H6(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Pt(i,t.length)},I:function(e,t,n){const r=U6(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Pt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Oi.d(e,t)},D:function(e,t,n){const r=W6(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Pt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Pt(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Pt(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Pt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=la.noon:r===0?i=la.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=la.evening:r>=12?i=la.afternoon:r>=4?i=la.morning:i=la.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Oi.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Oi.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Pt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Pt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Oi.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Oi.s(e,t)},S:function(e,t){return Oi.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Gy(r);case"XXXX":case"XX":return bo(r);case"XXXXX":case"XXX":default:return bo(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Gy(r);case"xxxx":case"xx":return bo(r);case"xxxxx":case"xxx":default:return bo(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Yy(r,":");case"OOOO":default:return"GMT"+bo(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Yy(r,":");case"zzzz":default:return"GMT"+bo(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Pt(r,t.length)},T:function(e,t,n){const r=e.getTime();return Pt(r,t.length)}};function Yy(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Pt(o,2)}function Gy(e,t){return e%60===0?(e>0?"-":"+")+Pt(Math.abs(e)/60,2):bo(e,t)}function bo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Pt(Math.trunc(r/60),2),o=Pt(r%60,2);return n+i+t+o}const Ky=(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"})}},mC=(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"})}},q6=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Ky(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Ky(r,t)).replace("{{time}}",mC(i,t))},Y6={p:mC,P:q6},G6=/^D+$/,K6=/^Y+$/,Z6=["D","DD","YY","YYYY"];function X6(e){return G6.test(e)}function Q6(e){return K6.test(e)}function J6(e,t,n){const r=e5(e,t,n);if(console.warn(r),Z6.includes(e))throw new RangeError(r)}function e5(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 t5=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,n5=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,r5=/^'([^]*?)'?$/,i5=/''/g,o5=/[a-zA-Z]/;function $v(e,t,n){var u,d,f,p,g,m,v,x;const r=hf(),i=(n==null?void 0:n.locale)??r.locale??z6,o=(n==null?void 0:n.firstWeekContainsDate)??((d=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((m=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((x=(v=r.locale)==null?void 0:v.options)==null?void 0:x.weekStartsOn)??0,s=Ln(e);if(!a6(s))throw new RangeError("Invalid time value");let c=t.match(n5).map(w=>{const _=w[0];if(_==="p"||_==="P"){const C=Y6[_];return C(w,i.formatLong)}return w}).join("").match(t5).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const _=w[0];if(_==="'")return{isToken:!1,value:a5(w)};if(qy[_])return{isToken:!0,value:w};if(_.match(o5))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_+"`");return{isToken:!1,value:w}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const l={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return c.map(w=>{if(!w.isToken)return w.value;const _=w.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Q6(_)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&X6(_))&&J6(_,t,String(e));const C=qy[_[0]];return C(s,_,i.localize,l)}).join("")}function a5(e){const t=e.match(r5);return t?t[1].replace(i5,"'"):e}function gC(e){return+Ln(e)<Date.now()}function pf(e,t){const r=u5(e);let i;if(r.date){const c=d5(r.date,2);i=f5(c.restDateString,c.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const o=i.getTime();let a=0,s;if(r.time&&(a=h5(r.time),isNaN(a)))return new Date(NaN);if(r.timezone){if(s=p5(r.timezone),isNaN(s))return new Date(NaN)}else{const c=new Date(o+a),l=new Date(0);return l.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),l.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),l}return new Date(o+a+s)}const su={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},s5=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,c5=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l5=/^([+-])(\d{2})(?::?(\d{2}))?$/;function u5(e){const t={},n=e.split(su.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],su.timeZoneDelimiter.test(t.date)&&(t.date=e.split(su.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=su.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function d5(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function f5(e,t){if(t===null)return new Date(NaN);const n=e.match(s5);if(!n)return new Date(NaN);const r=!!n[4],i=Is(n[1]),o=Is(n[2])-1,a=Is(n[3]),s=Is(n[4]),c=Is(n[5])-1;if(r)return y5(t,s,c)?m5(t,s,c):new Date(NaN);{const l=new Date(0);return!v5(t,o,a)||!b5(t,i)?new Date(NaN):(l.setUTCFullYear(t,o,Math.max(i,a)),l)}}function Is(e){return e?parseInt(e):1}function h5(e){const t=e.match(c5);if(!t)return NaN;const n=vp(t[1]),r=vp(t[2]),i=vp(t[3]);return x5(n,r,i)?n*ff+r*_v+i*1e3:NaN}function vp(e){return e&&parseFloat(e.replace(",","."))||0}function p5(e){if(e==="Z")return 0;const t=e.match(l5);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return w5(r,i)?n*(r*ff+i*_v):NaN}function m5(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const g5=[31,null,31,30,31,30,31,31,30,31,30,31];function vC(e){return e%400===0||e%4===0&&e%100!==0}function v5(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(g5[t]||(vC(e)?29:28))}function b5(e,t){return t>=1&&t<=(vC(e)?366:365)}function y5(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function x5(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function w5(e,t){return t>=0&&t<=59}function rd(){return rd=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},rd.apply(null,arguments)}function Sv(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 _5=function(e,t,n,r,i,o,a,s){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,s],u=0;c=new Error(t.replace(/%s/g,function(){return l[u++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},C5=_5;const zm=rn(C5);function Zy(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function $5(e){var t=S5(e,"string");return typeof t=="symbol"?t:String(t)}function S5(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 bC(e,t,n){var r=h.useRef(e!==void 0),i=h.useState(t),o=i[0],a=i[1],s=e!==void 0,c=r.current;return r.current=s,!s&&c&&o!==t&&a(t),[s?e:o,h.useCallback(function(l){for(var u=arguments.length,d=new Array(u>1?u-1:0),f=1;f<u;f++)d[f-1]=arguments[f];n&&n.apply(void 0,[l].concat(d)),a(l)},[n])]}function Ev(e,t){return Object.keys(t).reduce(function(n,r){var i,o=n,a=o[Zy(r)],s=o[r],c=Sv(o,[Zy(r),r].map($5)),l=t[r],u=bC(s,a,e[l]),d=u[0],f=u[1];return rd({},c,(i={},i[r]=d,i[l]=f,i))},e)}function Wm(e,t){return Wm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Wm(e,t)}function yC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wm(e,t)}const E5=["xxl","xl","lg","md","sm","xs"],T5="xs",mf=ie.createContext({prefixes:{},breakpoints:E5,minBreakpoint:T5});function pt(e,t){const{prefixes:n}=h.useContext(mf);return e||n[t]||t}function xC(){const{breakpoints:e}=h.useContext(mf);return e}function wC(){const{minBreakpoint:e}=h.useContext(mf);return e}function gf(){const{dir:e}=h.useContext(mf);return e==="rtl"}function os(e){return e&&e.ownerDocument||document}function k5(e){var t=os(e);return t&&t.defaultView||window}function O5(e,t){return k5(e).getComputedStyle(e,t)}var M5=/([A-Z])/g;function R5(e){return e.replace(M5,"-$1").toLowerCase()}var A5=/^ms-/;function cu(e){return R5(e).replace(A5,"-ms-")}var j5=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function N5(e){return!!(e&&j5.test(e))}function Yi(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(cu(t))||O5(e).getPropertyValue(cu(t));Object.keys(t).forEach(function(i){var o=t[i];!o&&o!==0?e.style.removeProperty(cu(i)):N5(i)?r+=i+"("+o+") ":n+=cu(i)+": "+o+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var Um={exports:{}},lu={exports:{}},At={};/** @license React v16.13.1
35
- * react-is.production.min.js
36
- *
37
- * Copyright (c) Facebook, Inc. and its affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var Xy;function D5(){if(Xy)return At;Xy=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=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 _(y){if(typeof y=="object"&&y!==null){var $=y.$$typeof;switch($){case t:switch(y=y.type,y){case c:case l:case r:case o:case i:case d:return y;default:switch(y=y&&y.$$typeof,y){case s:case u:case g:case p:case a:return y;default:return $}}case n:return $}}}function C(y){return _(y)===l}return At.AsyncMode=c,At.ConcurrentMode=l,At.ContextConsumer=s,At.ContextProvider=a,At.Element=t,At.ForwardRef=u,At.Fragment=r,At.Lazy=g,At.Memo=p,At.Portal=n,At.Profiler=o,At.StrictMode=i,At.Suspense=d,At.isAsyncMode=function(y){return C(y)||_(y)===c},At.isConcurrentMode=C,At.isContextConsumer=function(y){return _(y)===s},At.isContextProvider=function(y){return _(y)===a},At.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},At.isForwardRef=function(y){return _(y)===u},At.isFragment=function(y){return _(y)===r},At.isLazy=function(y){return _(y)===g},At.isMemo=function(y){return _(y)===p},At.isPortal=function(y){return _(y)===n},At.isProfiler=function(y){return _(y)===o},At.isStrictMode=function(y){return _(y)===i},At.isSuspense=function(y){return _(y)===d},At.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===l||y===o||y===i||y===d||y===f||typeof y=="object"&&y!==null&&(y.$$typeof===g||y.$$typeof===p||y.$$typeof===a||y.$$typeof===s||y.$$typeof===u||y.$$typeof===v||y.$$typeof===x||y.$$typeof===w||y.$$typeof===m)},At.typeOf=_,At}var jt={};/** @license React v16.13.1
42
- * react-is.development.js
43
- *
44
- * Copyright (c) Facebook, Inc. and its affiliates.
45
- *
46
- * This source code is licensed under the MIT license found in the
47
- * LICENSE file in the root directory of this source tree.
48
- */var Qy;function I5(){return Qy||(Qy=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=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 _(R){return typeof R=="string"||typeof R=="function"||R===r||R===l||R===o||R===i||R===d||R===f||typeof R=="object"&&R!==null&&(R.$$typeof===g||R.$$typeof===p||R.$$typeof===a||R.$$typeof===s||R.$$typeof===u||R.$$typeof===v||R.$$typeof===x||R.$$typeof===w||R.$$typeof===m)}function C(R){if(typeof R=="object"&&R!==null){var Y=R.$$typeof;switch(Y){case t:var Q=R.type;switch(Q){case c:case l:case r:case o:case i:case d:return Q;default:var te=Q&&Q.$$typeof;switch(te){case s:case u:case g:case p:case a:return te;default:return Y}}case n:return Y}}}var y=c,$=l,E=s,k=a,T=t,O=u,S=r,M=g,A=p,j=n,P=o,I=i,L=d,V=!1;function z(R){return V||(V=!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.")),D(R)||C(R)===c}function D(R){return C(R)===l}function W(R){return C(R)===s}function G(R){return C(R)===a}function J(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function Z(R){return C(R)===u}function X(R){return C(R)===r}function ee(R){return C(R)===g}function ne(R){return C(R)===p}function F(R){return C(R)===n}function N(R){return C(R)===o}function B(R){return C(R)===i}function H(R){return C(R)===d}jt.AsyncMode=y,jt.ConcurrentMode=$,jt.ContextConsumer=E,jt.ContextProvider=k,jt.Element=T,jt.ForwardRef=O,jt.Fragment=S,jt.Lazy=M,jt.Memo=A,jt.Portal=j,jt.Profiler=P,jt.StrictMode=I,jt.Suspense=L,jt.isAsyncMode=z,jt.isConcurrentMode=D,jt.isContextConsumer=W,jt.isContextProvider=G,jt.isElement=J,jt.isForwardRef=Z,jt.isFragment=X,jt.isLazy=ee,jt.isMemo=ne,jt.isPortal=F,jt.isProfiler=N,jt.isStrictMode=B,jt.isSuspense=H,jt.isValidElementType=_,jt.typeOf=C}()),jt}var Jy;function Tv(){return Jy||(Jy=1,process.env.NODE_ENV==="production"?lu.exports=D5():lu.exports=I5()),lu.exports}/*
49
- object-assign
50
- (c) Sindre Sorhus
51
- @license MIT
52
- */var bp,e1;function P5(){if(e1)return bp;e1=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(u){l[u]=u}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return bp=i()?Object.assign:function(o,a){for(var s,c=r(o),l,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)t.call(s,d)&&(c[d]=s[d]);if(e){l=e(s);for(var f=0;f<l.length;f++)n.call(s,l[f])&&(c[l[f]]=s[l[f]])}}return c},bp}var yp,t1;function kv(){if(t1)return yp;t1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return yp=e,yp}var xp,n1;function _C(){return n1||(n1=1,xp=Function.call.bind(Object.prototype.hasOwnProperty)),xp}var wp,r1;function L5(){if(r1)return wp;r1=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=kv(),n={},r=_C();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,c,l){if(process.env.NODE_ENV!=="production"){for(var u in o)if(r(o,u)){var d;try{if(typeof o[u]!="function"){var f=Error((c||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=o[u](a,u,c,s,null,t)}catch(g){d=g}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=l?l():"";e("Failed "+s+" type: "+d.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},wp=i,wp}var _p,i1;function F5(){if(i1)return _p;i1=1;var e=Tv(),t=P5(),n=kv(),r=_C(),i=L5(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return _p=function(s,c){var l=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(D){var W=D&&(l&&D[l]||D[u]);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:_,element:C(),elementType:y(),instanceOf:$,node:O(),objectOf:k,oneOf:E,oneOfType:T,shape:M,exact:A};function g(D,W){return D===W?D!==0||1/D===1/W:D!==D&&W!==W}function m(D,W){this.message=D,this.data=W&&typeof W=="object"?W:{},this.stack=""}m.prototype=Error.prototype;function v(D){if(process.env.NODE_ENV!=="production")var W={},G=0;function J(X,ee,ne,F,N,B,H){if(F=F||f,B=B||ne,H!==n){if(c){var R=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 R.name="Invariant Violation",R}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Y=F+":"+ne;!W[Y]&&G<3&&(o("You are manually calling a React.PropTypes validation function for the `"+B+"` prop on `"+F+"`. 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[Y]=!0,G++)}}return ee[ne]==null?X?ee[ne]===null?new m("The "+N+" `"+B+"` is marked as required "+("in `"+F+"`, but its value is `null`.")):new m("The "+N+" `"+B+"` is marked as required in "+("`"+F+"`, but its value is `undefined`.")):null:D(ee,ne,F,N,B)}var Z=J.bind(null,!1);return Z.isRequired=J.bind(null,!0),Z}function x(D){function W(G,J,Z,X,ee,ne){var F=G[J],N=I(F);if(N!==D){var B=L(F);return new m("Invalid "+X+" `"+ee+"` of type "+("`"+B+"` supplied to `"+Z+"`, expected ")+("`"+D+"`."),{expectedType:D})}return null}return v(W)}function w(){return v(a)}function _(D){function W(G,J,Z,X,ee){if(typeof D!="function")return new m("Property `"+ee+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var ne=G[J];if(!Array.isArray(ne)){var F=I(ne);return new m("Invalid "+X+" `"+ee+"` of type "+("`"+F+"` supplied to `"+Z+"`, expected an array."))}for(var N=0;N<ne.length;N++){var B=D(ne,N,Z,X,ee+"["+N+"]",n);if(B instanceof Error)return B}return null}return v(W)}function C(){function D(W,G,J,Z,X){var ee=W[G];if(!s(ee)){var ne=I(ee);return new m("Invalid "+Z+" `"+X+"` of type "+("`"+ne+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return v(D)}function y(){function D(W,G,J,Z,X){var ee=W[G];if(!e.isValidElementType(ee)){var ne=I(ee);return new m("Invalid "+Z+" `"+X+"` of type "+("`"+ne+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return v(D)}function $(D){function W(G,J,Z,X,ee){if(!(G[J]instanceof D)){var ne=D.name||f,F=z(G[J]);return new m("Invalid "+X+" `"+ee+"` of type "+("`"+F+"` supplied to `"+Z+"`, expected ")+("instance of `"+ne+"`."))}return null}return v(W)}function E(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("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])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function W(G,J,Z,X,ee){for(var ne=G[J],F=0;F<D.length;F++)if(g(ne,D[F]))return null;var N=JSON.stringify(D,function(H,R){var Y=L(R);return Y==="symbol"?String(R):R});return new m("Invalid "+X+" `"+ee+"` of value `"+String(ne)+"` "+("supplied to `"+Z+"`, expected one of "+N+"."))}return v(W)}function k(D){function W(G,J,Z,X,ee){if(typeof D!="function")return new m("Property `"+ee+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var ne=G[J],F=I(ne);if(F!=="object")return new m("Invalid "+X+" `"+ee+"` of type "+("`"+F+"` supplied to `"+Z+"`, expected an object."));for(var N in ne)if(r(ne,N)){var B=D(ne,N,Z,X,ee+"."+N,n);if(B instanceof Error)return B}return null}return v(W)}function T(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var W=0;W<D.length;W++){var G=D[W];if(typeof G!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(G)+" at index "+W+"."),a}function J(Z,X,ee,ne,F){for(var N=[],B=0;B<D.length;B++){var H=D[B],R=H(Z,X,ee,ne,F,n);if(R==null)return null;R.data&&r(R.data,"expectedType")&&N.push(R.data.expectedType)}var Y=N.length>0?", expected one of type ["+N.join(", ")+"]":"";return new m("Invalid "+ne+" `"+F+"` supplied to "+("`"+ee+"`"+Y+"."))}return v(J)}function O(){function D(W,G,J,Z,X){return j(W[G])?null:new m("Invalid "+Z+" `"+X+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return v(D)}function S(D,W,G,J,Z){return new m((D||"React class")+": "+W+" type `"+G+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function M(D){function W(G,J,Z,X,ee){var ne=G[J],F=I(ne);if(F!=="object")return new m("Invalid "+X+" `"+ee+"` of type `"+F+"` "+("supplied to `"+Z+"`, expected `object`."));for(var N in D){var B=D[N];if(typeof B!="function")return S(Z,X,ee,N,L(B));var H=B(ne,N,Z,X,ee+"."+N,n);if(H)return H}return null}return v(W)}function A(D){function W(G,J,Z,X,ee){var ne=G[J],F=I(ne);if(F!=="object")return new m("Invalid "+X+" `"+ee+"` of type `"+F+"` "+("supplied to `"+Z+"`, expected `object`."));var N=t({},G[J],D);for(var B in N){var H=D[B];if(r(D,B)&&typeof H!="function")return S(Z,X,ee,B,L(H));if(!H)return new m("Invalid "+X+" `"+ee+"` key `"+B+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(G[J],null," ")+`
53
- Valid keys: `+JSON.stringify(Object.keys(D),null," "));var R=H(ne,B,Z,X,ee+"."+B,n);if(R)return R}return null}return v(W)}function j(D){switch(typeof D){case"number":case"string":case"undefined":return!0;case"boolean":return!D;case"object":if(Array.isArray(D))return D.every(j);if(D===null||s(D))return!0;var W=d(D);if(W){var G=W.call(D),J;if(W!==D.entries){for(;!(J=G.next()).done;)if(!j(J.value))return!1}else for(;!(J=G.next()).done;){var Z=J.value;if(Z&&!j(Z[1]))return!1}}else return!1;return!0;default:return!1}}function P(D,W){return D==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function I(D){var W=typeof D;return Array.isArray(D)?"array":D instanceof RegExp?"object":P(W,D)?"symbol":W}function L(D){if(typeof D>"u"||D===null)return""+D;var W=I(D);if(W==="object"){if(D instanceof Date)return"date";if(D instanceof RegExp)return"regexp"}return W}function V(D){var W=L(D);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function z(D){return!D.constructor||!D.constructor.name?f:D.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},_p}var Cp,o1;function B5(){if(o1)return Cp;o1=1;var e=kv();function t(){}function n(){}return n.resetWarningCache=t,Cp=function(){function r(a,s,c,l,u,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Cp}if(process.env.NODE_ENV!=="production"){var z5=Tv(),W5=!0;Um.exports=F5()(z5.isElement,W5)}else Um.exports=B5()();var U5=Um.exports;const K=rn(U5),a1={disabled:!1};var V5=process.env.NODE_ENV!=="production"?K.oneOfType([K.number,K.shape({enter:K.number,exit:K.number,appear:K.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&K.oneOfType([K.string,K.shape({enter:K.string,exit:K.string,active:K.string}),K.shape({enter:K.string,enterDone:K.string,enterActive:K.string,exit:K.string,exitDone:K.string,exitActive:K.string})]);const CC=h.createContext(null);var H5=function(t){return t.scrollTop},oc="unmounted",Di="exited",si="entering",Fi="entered",id="exiting",$i=function(e){yC(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,c;return o.appearStatus=null,r.in?s?(c=Di,o.appearStatus=si):c=Fi:r.unmountOnExit||r.mountOnEnter?c=oc:c=Di,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===oc?{status:Di}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==si&&a!==Fi&&(o=si):(a===si||a===Fi)&&(o=id)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===si){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:un.findDOMNode(this);a&&H5(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Di&&this.setState({status:oc})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[un.findDOMNode(this),s],l=c[0],u=c[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!i&&!a||a1.disabled){this.safeSetState({status:Fi},function(){o.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:si},function(){o.props.onEntering(l,u),o.onTransitionEnd(f,function(){o.safeSetState({status:Fi},function(){o.props.onEntered(l,u)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:un.findDOMNode(this);if(!o||a1.disabled){this.safeSetState({status:Di},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:id},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Di},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:un.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=c[0],u=c[1];this.props.addEndListener(l,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===oc)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Sv(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return h.createElement(CC.Provider,{value:null},typeof a=="function"?a(i,s):h.cloneElement(h.Children.only(a),s))},t}(h.Component);$i.contextType=CC;$i.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:K.shape({current:typeof Element>"u"?K.any:function(e,t,n,r,i,o){var a=e[t];return K.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:K.oneOfType([K.func.isRequired,K.element.isRequired]).isRequired,in:K.bool,mountOnEnter:K.bool,unmountOnExit:K.bool,appear:K.bool,enter:K.bool,exit:K.bool,timeout:function(t){var n=V5;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.apply(void 0,[t].concat(i))},addEndListener:K.func,onEnter:K.func,onEntering:K.func,onEntered:K.func,onExit:K.func,onExiting:K.func,onExited:K.func}:{};function ua(){}$i.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ua,onEntering:ua,onEntered:ua,onExit:ua,onExiting:ua,onExited:ua};$i.UNMOUNTED=oc;$i.EXITED=Di;$i.ENTERING=si;$i.ENTERED=Fi;$i.EXITING=id;const as=!!(typeof window<"u"&&window.document&&window.document.createElement);var Vm=!1,Hm=!1;try{var $p={get passive(){return Vm=!0},get once(){return Hm=Vm=!0}};as&&(window.addEventListener("test",$p,$p),window.removeEventListener("test",$p,!0))}catch{}function Ov(e,t,n,r){if(r&&typeof r!="boolean"&&!Hm){var i=r.once,o=r.capture,a=n;!Hm&&i&&(a=n.__once||function s(c){this.removeEventListener(t,s,o),n.call(this,c)},n.__once=a),e.addEventListener(t,a,Vm?r:o)}e.addEventListener(t,n,r)}function qm(e,t,n,r){var i=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}function ui(e,t,n,r){return Ov(e,t,n,r),function(){qm(e,t,n,r)}}function q5(e,t,n,r){if(r===void 0&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}function Y5(e){var t=Yi(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function G5(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||q5(e,"transitionend",!0)},t+n),o=ui(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),o()}}function $C(e,t,n,r){n==null&&(n=Y5(e)||0);var i=G5(e,n,r),o=ui(e,"transitionend",t);return function(){i(),o()}}function s1(e,t){const n=Yi(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function SC(e,t){const n=s1(e,"transitionDuration"),r=s1(e,"transitionDelay"),i=$C(e,o=>{o.target===e&&(i(),t(o))},n+r)}function EC(e){e.offsetHeight}const c1=e=>!e||typeof e=="function"?e:t=>{e.current=t};function K5(e,t){const n=c1(e),r=c1(t);return i=>{n&&n(i),r&&r(i)}}function br(e,t){return h.useMemo(()=>K5(e,t),[e,t])}function od(e){return e&&"setState"in e?un.findDOMNode(e):e??null}const TC=h.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:o,addEndListener:a,children:s,childRef:c,...l},u)=>{const d=h.useRef(null),f=br(d,c),p=$=>{f(od($))},g=$=>E=>{$&&d.current&&$(d.current,E)},m=h.useCallback(g(e),[e]),v=h.useCallback(g(t),[t]),x=h.useCallback(g(n),[n]),w=h.useCallback(g(r),[r]),_=h.useCallback(g(i),[i]),C=h.useCallback(g(o),[o]),y=h.useCallback(g(a),[a]);return b.jsx($i,{ref:u,...l,onEnter:m,onEntered:x,onEntering:v,onExit:w,onExited:C,onExiting:_,addEndListener:y,nodeRef:d,children:typeof s=="function"?($,E)=>s($,{...E,ref:p}):h.cloneElement(s,{ref:p})})});function Z5(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function en(e){const t=Z5(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const Mv=e=>ie.forwardRef((t,n)=>b.jsx("div",{...t,ref:n,className:de(t.className,e)})),kC=Mv("h4");kC.displayName="DivStyledAsH4";const OC=ie.forwardRef(({className:e,bsPrefix:t,as:n=kC,...r},i)=>(t=pt(t,"alert-heading"),b.jsx(n,{ref:i,className:de(e,t),...r})));OC.displayName="AlertHeading";function ad(){return h.useState(null)}function X5(e,t,n,r=!1){const i=en(n);h.useEffect(()=>{const o=typeof e=="function"?e():e;return o.addEventListener(t,i,r),()=>o.removeEventListener(t,i,r)},[e])}function Rv(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function MC(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current}const Q5=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",J5=typeof document<"u",Sc=J5||Q5?h.useLayoutEffect:h.useEffect,eR=["as","disabled"];function tR(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 nR(e){return!e||e.trim()==="#"}function Av({tagName:e,disabled:t,href:n,target:r,rel:i,role:o,onClick:a,tabIndex:s=0,type:c}){e||(n!=null||r!=null||i!=null?e="a":e="button");const l={tagName:e};if(e==="button")return[{type:c||"button",disabled:t},l];const u=f=>{if((t||e==="a"&&nR(n))&&f.preventDefault(),t){f.stopPropagation();return}a==null||a(f)},d=f=>{f.key===" "&&(f.preventDefault(),u(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:o??"button",disabled:void 0,tabIndex:t?void 0:s,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:u,onKeyDown:d},l]}const jv=ie.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=tR(e,eR);const[o,{tagName:a}]=Av(Object.assign({tagName:n,disabled:r},i));return b.jsx(a,Object.assign({},i,o,{ref:t}))});jv.displayName="Button";const rR=["onKeyDown"];function iR(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 oR(e){return!e||e.trim()==="#"}const Nv=ie.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=iR(e,rR);const[i]=Av(Object.assign({tagName:"a"},r)),o=en(a=>{i.onKeyDown(a),n==null||n(a)});return oR(r.href)||r.role==="button"?b.jsx("a",Object.assign({ref:t},r,i,{onKeyDown:o})):b.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});Nv.displayName="Anchor";const RC=ie.forwardRef(({className:e,bsPrefix:t,as:n=Nv,...r},i)=>(t=pt(t,"alert-link"),b.jsx(n,{ref:i,className:de(e,t),...r})));RC.displayName="AlertLink";function AC(e){return e.code==="Escape"||e.keyCode===27}function jC(){const e=ie.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const aR={[si]:"show",[Fi]:"show"},Ki=ie.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},o)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},s=h.useCallback((u,d)=>{EC(u),r==null||r(u,d)},[r]),{major:c}=jC(),l=c>=19?t.props.ref:t.ref;return b.jsx(TC,{ref:o,addEndListener:SC,...a,onEnter:s,childRef:l,children:(u,d)=>ie.cloneElement(t,{...d,className:de("fade",e,t.props.className,aR[u],n[u])})})});Ki.displayName="Fade";const sR={"aria-label":K.string,onClick:K.func,variant:K.oneOf(["white"])},vf=ie.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>b.jsx("button",{ref:i,type:"button",className:de("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));vf.displayName="CloseButton";vf.propTypes=sR;const NC=ie.forwardRef((e,t)=>{const{bsPrefix:n,show:r=!0,closeLabel:i="Close alert",closeVariant:o,className:a,children:s,variant:c="primary",onClose:l,dismissible:u,transition:d=Ki,...f}=Ev(e,{show:"onClose"}),p=pt(n,"alert"),g=en(x=>{l&&l(!1,x)}),m=d===!0?Ki:d,v=b.jsxs("div",{role:"alert",...m?void 0:f,ref:t,className:de(a,p,c&&`${p}-${c}`,u&&`${p}-dismissible`),children:[u&&b.jsx(vf,{onClick:g,"aria-label":i,variant:o}),s]});return m?b.jsx(m,{unmountOnExit:!0,...f,ref:void 0,in:r,children:v}):r?v:null});NC.displayName="Alert";const cR=Object.assign(NC,{Link:RC,Heading:OC}),Dv=ie.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:o=!1,className:a,...s},c)=>{const l=pt(t,"btn"),[u,{tagName:d}]=Av({tagName:e,disabled:o,...s}),f=d;return b.jsx(f,{...u,...s,ref:c,disabled:o,className:de(a,l,i&&"active",n&&`${l}-${n}`,r&&`${l}-${r}`,s.href&&o&&"disabled")})});Dv.displayName="Button";function lR(e){const t=h.useRef(e);return t.current=e,t}function Iv(e){const t=lR(e);h.useEffect(()=>()=>t.current(),[])}const Ym=2**31-1;function DC(e,t,n){const r=n-Date.now();e.current=r<=Ym?setTimeout(t,r):setTimeout(()=>DC(e,t,n),Ym)}function uR(){const e=Rv(),t=h.useRef();return Iv(()=>clearTimeout(t.current)),h.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(i,o=0){e()&&(n(),o<=Ym?t.current=setTimeout(i,o):DC(t,i,Date.now()+o))}return{set:r,clear:n,handleRef:t}},[])}function dR(e,t){return ie.Children.toArray(e).some(n=>ie.isValidElement(n)&&n.type===t)}function IC({as:e,bsPrefix:t,className:n,...r}){t=pt(t,"col");const i=xC(),o=wC(),a=[],s=[];return i.forEach(c=>{const l=r[c];delete r[c];let u,d,f;typeof l=="object"&&l!=null?{span:u,offset:d,order:f}=l:u=l;const p=c!==o?`-${c}`:"";u&&a.push(u===!0?`${t}${p}`:`${t}${p}-${u}`),f!=null&&s.push(`order${p}-${f}`),d!=null&&s.push(`offset${p}-${d}`)}),[{...r,className:de(n,...a,...s)},{as:e,bsPrefix:t,spans:a}]}const Pv=ie.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:o,spans:a}]=IC(e);return b.jsx(i,{...r,ref:t,className:de(n,!a.length&&o)})});Pv.displayName="Col";var fR=Function.prototype.bind.call(Function.prototype.call,[].slice);function ci(e,t){return fR(e.querySelectorAll(t))}function hR(e,t,n){const r=h.useRef(e!==void 0),[i,o]=h.useState(t),a=e!==void 0,s=r.current;return r.current=a,!a&&s&&i!==t&&o(t),[a?e:i,h.useCallback((...c)=>{const[l,...u]=c;let d=n==null?void 0:n(l,...u);return o(l),d},[n])]}function PC(){const[,e]=h.useReducer(t=>!t,!1);return e}const bf=ie.createContext(null);var l1=Object.prototype.hasOwnProperty;function u1(e,t,n){for(n of e.keys())if(dc(n,t))return n}function dc(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&dc(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i=="object"&&(i=u1(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i=="object"&&(i=u1(t,i),!i)||!dc(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(l1.call(e,n)&&++r&&!l1.call(t,n)||!(n in t)||!dc(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function pR(e){const t=Rv();return[e[0],h.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var Un="top",pr="bottom",mr="right",Vn="left",Lv="auto",xl=[Un,pr,mr,Vn],Pa="start",Ec="end",mR="clippingParents",LC="viewport",Ps="popper",gR="reference",d1=xl.reduce(function(e,t){return e.concat([t+"-"+Pa,t+"-"+Ec])},[]),FC=[].concat(xl,[Lv]).reduce(function(e,t){return e.concat([t,t+"-"+Pa,t+"-"+Ec])},[]),vR="beforeRead",bR="read",yR="afterRead",xR="beforeMain",wR="main",_R="afterMain",CR="beforeWrite",$R="write",SR="afterWrite",ER=[vR,bR,yR,xR,wR,_R,CR,$R,SR];function Dr(e){return e.split("-")[0]}function tr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Bo(e){var t=tr(e).Element;return e instanceof t||e instanceof Element}function Ir(e){var t=tr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fv(e){if(typeof ShadowRoot>"u")return!1;var t=tr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Ao=Math.max,sd=Math.min,La=Math.round;function Gm(){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 BC(){return!/^((?!chrome|android).)*safari/i.test(Gm())}function Fa(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Ir(e)&&(i=e.offsetWidth>0&&La(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&La(r.height)/e.offsetHeight||1);var a=Bo(e)?tr(e):window,s=a.visualViewport,c=!BC()&&n,l=(r.left+(c&&s?s.offsetLeft:0))/i,u=(r.top+(c&&s?s.offsetTop:0))/o,d=r.width/i,f=r.height/o;return{width:d,height:f,top:u,right:l+d,bottom:u+f,left:l,x:l,y:u}}function Bv(e){var t=Fa(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 zC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Fv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Zi(e){return e?(e.nodeName||"").toLowerCase():null}function gi(e){return tr(e).getComputedStyle(e)}function TR(e){return["table","td","th"].indexOf(Zi(e))>=0}function so(e){return((Bo(e)?e.ownerDocument:e.document)||window.document).documentElement}function yf(e){return Zi(e)==="html"?e:e.assignedSlot||e.parentNode||(Fv(e)?e.host:null)||so(e)}function f1(e){return!Ir(e)||gi(e).position==="fixed"?null:e.offsetParent}function kR(e){var t=/firefox/i.test(Gm()),n=/Trident/i.test(Gm());if(n&&Ir(e)){var r=gi(e);if(r.position==="fixed")return null}var i=yf(e);for(Fv(i)&&(i=i.host);Ir(i)&&["html","body"].indexOf(Zi(i))<0;){var o=gi(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function wl(e){for(var t=tr(e),n=f1(e);n&&TR(n)&&gi(n).position==="static";)n=f1(n);return n&&(Zi(n)==="html"||Zi(n)==="body"&&gi(n).position==="static")?t:n||kR(e)||t}function zv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fc(e,t,n){return Ao(e,sd(t,n))}function OR(e,t,n){var r=fc(e,t,n);return r>n?n:r}function WC(){return{top:0,right:0,bottom:0,left:0}}function UC(e){return Object.assign({},WC(),e)}function VC(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var MR=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,UC(typeof t!="number"?t:VC(t,xl))};function RR(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Dr(n.placement),c=zv(s),l=[Vn,mr].indexOf(s)>=0,u=l?"height":"width";if(!(!o||!a)){var d=MR(i.padding,n),f=Bv(o),p=c==="y"?Un:Vn,g=c==="y"?pr:mr,m=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],v=a[c]-n.rects.reference[c],x=wl(o),w=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,_=m/2-v/2,C=d[p],y=w-f[u]-d[g],$=w/2-f[u]/2+_,E=fc(C,$,y),k=c;n.modifiersData[r]=(t={},t[k]=E,t.centerOffset=E-$,t)}}function AR(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||zC(t.elements.popper,i)&&(t.elements.arrow=i))}const jR={name:"arrow",enabled:!0,phase:"main",fn:RR,effect:AR,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ba(e){return e.split("-")[1]}var NR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function DR(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:La(n*i)/i||0,y:La(r*i)/i||0}}function h1(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=f===void 0?0:f,g=a.y,m=g===void 0?0:g,v=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=v.x,m=v.y;var x=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),_=Vn,C=Un,y=window;if(l){var $=wl(n),E="clientHeight",k="clientWidth";if($===tr(n)&&($=so(n),gi($).position!=="static"&&s==="absolute"&&(E="scrollHeight",k="scrollWidth")),$=$,i===Un||(i===Vn||i===mr)&&o===Ec){C=pr;var T=d&&$===y&&y.visualViewport?y.visualViewport.height:$[E];m-=T-r.height,m*=c?1:-1}if(i===Vn||(i===Un||i===pr)&&o===Ec){_=mr;var O=d&&$===y&&y.visualViewport?y.visualViewport.width:$[k];p-=O-r.width,p*=c?1:-1}}var S=Object.assign({position:s},l&&NR),M=u===!0?DR({x:p,y:m},tr(n)):{x:p,y:m};if(p=M.x,m=M.y,c){var A;return Object.assign({},S,(A={},A[C]=w?"0":"",A[_]=x?"0":"",A.transform=(y.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",A))}return Object.assign({},S,(t={},t[C]=w?m+"px":"",t[_]=x?p+"px":"",t.transform="",t))}function IR(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:Dr(t.placement),variation:Ba(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,h1(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,h1(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const PR={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:IR,data:{}};var uu={passive:!0};function LR(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,c=tr(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(u){u.addEventListener("scroll",n.update,uu)}),s&&c.addEventListener("resize",n.update,uu),function(){o&&l.forEach(function(u){u.removeEventListener("scroll",n.update,uu)}),s&&c.removeEventListener("resize",n.update,uu)}}const FR={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:LR,data:{}};var BR={left:"right",right:"left",bottom:"top",top:"bottom"};function Bu(e){return e.replace(/left|right|bottom|top/g,function(t){return BR[t]})}var zR={start:"end",end:"start"};function p1(e){return e.replace(/start|end/g,function(t){return zR[t]})}function Wv(e){var t=tr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Uv(e){return Fa(so(e)).left+Wv(e).scrollLeft}function WR(e,t){var n=tr(e),r=so(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;var l=BC();(l||!l&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s+Uv(e),y:c}}function UR(e){var t,n=so(e),r=Wv(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Ao(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Ao(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Uv(e),c=-r.scrollTop;return gi(i||n).direction==="rtl"&&(s+=Ao(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}function Vv(e){var t=gi(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function HC(e){return["html","body","#document"].indexOf(Zi(e))>=0?e.ownerDocument.body:Ir(e)&&Vv(e)?e:HC(yf(e))}function hc(e,t){var n;t===void 0&&(t=[]);var r=HC(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=tr(r),a=i?[o].concat(o.visualViewport||[],Vv(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(hc(yf(a)))}function Km(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function VR(e,t){var n=Fa(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 m1(e,t,n){return t===LC?Km(WR(e,n)):Bo(t)?VR(t,n):Km(UR(so(e)))}function HR(e){var t=hc(yf(e)),n=["absolute","fixed"].indexOf(gi(e).position)>=0,r=n&&Ir(e)?wl(e):e;return Bo(r)?t.filter(function(i){return Bo(i)&&zC(i,r)&&Zi(i)!=="body"}):[]}function qR(e,t,n,r){var i=t==="clippingParents"?HR(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(c,l){var u=m1(e,l,r);return c.top=Ao(u.top,c.top),c.right=sd(u.right,c.right),c.bottom=sd(u.bottom,c.bottom),c.left=Ao(u.left,c.left),c},m1(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function qC(e){var t=e.reference,n=e.element,r=e.placement,i=r?Dr(r):null,o=r?Ba(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case Un:c={x:a,y:t.y-n.height};break;case pr:c={x:a,y:t.y+t.height};break;case mr:c={x:t.x+t.width,y:s};break;case Vn:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?zv(i):null;if(l!=null){var u=l==="y"?"height":"width";switch(o){case Pa:c[l]=c[l]-(t[u]/2-n[u]/2);break;case Ec:c[l]=c[l]+(t[u]/2-n[u]/2);break}}return c}function Tc(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,c=s===void 0?mR:s,l=n.rootBoundary,u=l===void 0?LC:l,d=n.elementContext,f=d===void 0?Ps:d,p=n.altBoundary,g=p===void 0?!1:p,m=n.padding,v=m===void 0?0:m,x=UC(typeof v!="number"?v:VC(v,xl)),w=f===Ps?gR:Ps,_=e.rects.popper,C=e.elements[g?w:f],y=qR(Bo(C)?C:C.contextElement||so(e.elements.popper),c,u,a),$=Fa(e.elements.reference),E=qC({reference:$,element:_,strategy:"absolute",placement:i}),k=Km(Object.assign({},_,E)),T=f===Ps?k:$,O={top:y.top-T.top+x.top,bottom:T.bottom-y.bottom+x.bottom,left:y.left-T.left+x.left,right:T.right-y.right+x.right},S=e.modifiersData.offset;if(f===Ps&&S){var M=S[i];Object.keys(O).forEach(function(A){var j=[mr,pr].indexOf(A)>=0?1:-1,P=[Un,pr].indexOf(A)>=0?"y":"x";O[A]+=M[P]*j})}return O}function YR(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?FC:c,u=Ba(r),d=u?s?d1:d1.filter(function(g){return Ba(g)===u}):xl,f=d.filter(function(g){return l.indexOf(g)>=0});f.length===0&&(f=d);var p=f.reduce(function(g,m){return g[m]=Tc(e,{placement:m,boundary:i,rootBoundary:o,padding:a})[Dr(m)],g},{});return Object.keys(p).sort(function(g,m){return p[g]-p[m]})}function GR(e){if(Dr(e)===Lv)return[];var t=Bu(e);return[p1(e),t,p1(t)]}function KR(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,g=p===void 0?!0:p,m=n.allowedAutoPlacements,v=t.options.placement,x=Dr(v),w=x===v,_=c||(w||!g?[Bu(v)]:GR(v)),C=[v].concat(_).reduce(function(Z,X){return Z.concat(Dr(X)===Lv?YR(t,{placement:X,boundary:u,rootBoundary:d,padding:l,flipVariations:g,allowedAutoPlacements:m}):X)},[]),y=t.rects.reference,$=t.rects.popper,E=new Map,k=!0,T=C[0],O=0;O<C.length;O++){var S=C[O],M=Dr(S),A=Ba(S)===Pa,j=[Un,pr].indexOf(M)>=0,P=j?"width":"height",I=Tc(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),L=j?A?mr:Vn:A?pr:Un;y[P]>$[P]&&(L=Bu(L));var V=Bu(L),z=[];if(o&&z.push(I[M]<=0),s&&z.push(I[L]<=0,I[V]<=0),z.every(function(Z){return Z})){T=S,k=!1;break}E.set(S,z)}if(k)for(var D=g?3:1,W=function(X){var ee=C.find(function(ne){var F=E.get(ne);if(F)return F.slice(0,X).every(function(N){return N})});if(ee)return T=ee,"break"},G=D;G>0;G--){var J=W(G);if(J==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const ZR={name:"flip",enabled:!0,phase:"main",fn:KR,requiresIfExists:["offset"],data:{_skip:!1}};function g1(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 v1(e){return[Un,mr,pr,Vn].some(function(t){return e[t]>=0})}function XR(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Tc(t,{elementContext:"reference"}),s=Tc(t,{altBoundary:!0}),c=g1(a,r),l=g1(s,i,o),u=v1(c),d=v1(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const QR={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:XR};function JR(e,t,n){var r=Dr(e),i=[Vn,Un].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Vn,mr].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function eA(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=FC.reduce(function(u,d){return u[d]=JR(d,t.rects,o),u},{}),s=a[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}const tA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eA};function nA(e){var t=e.state,n=e.name;t.modifiersData[n]=qC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const rA={name:"popperOffsets",enabled:!0,phase:"read",fn:nA,data:{}};function iA(e){return e==="x"?"y":"x"}function oA(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,g=n.tetherOffset,m=g===void 0?0:g,v=Tc(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),x=Dr(t.placement),w=Ba(t.placement),_=!w,C=zv(x),y=iA(C),$=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,T=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,O=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if($){if(o){var A,j=C==="y"?Un:Vn,P=C==="y"?pr:mr,I=C==="y"?"height":"width",L=$[C],V=L+v[j],z=L-v[P],D=p?-k[I]/2:0,W=w===Pa?E[I]:k[I],G=w===Pa?-k[I]:-E[I],J=t.elements.arrow,Z=p&&J?Bv(J):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:WC(),ee=X[j],ne=X[P],F=fc(0,E[I],Z[I]),N=_?E[I]/2-D-F-ee-O.mainAxis:W-F-ee-O.mainAxis,B=_?-E[I]/2+D+F+ne+O.mainAxis:G+F+ne+O.mainAxis,H=t.elements.arrow&&wl(t.elements.arrow),R=H?C==="y"?H.clientTop||0:H.clientLeft||0:0,Y=(A=S==null?void 0:S[C])!=null?A:0,Q=L+N-Y-R,te=L+B-Y,ue=fc(p?sd(V,Q):V,L,p?Ao(z,te):z);$[C]=ue,M[C]=ue-L}if(s){var oe,ae=C==="x"?Un:Vn,pe=C==="x"?pr:mr,ve=$[y],Ee=y==="y"?"height":"width",Se=ve+v[ae],Oe=ve-v[pe],Fe=[Un,Vn].indexOf(x)!==-1,fe=(oe=S==null?void 0:S[y])!=null?oe:0,se=Fe?Se:ve-E[Ee]-k[Ee]-fe+O.altAxis,we=Fe?ve+E[Ee]+k[Ee]-fe-O.altAxis:Oe,Ve=p&&Fe?OR(se,ve,we):fc(p?se:Se,ve,p?we:Oe);$[y]=Ve,M[y]=Ve-ve}t.modifiersData[r]=M}}const aA={name:"preventOverflow",enabled:!0,phase:"main",fn:oA,requiresIfExists:["offset"]};function sA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function cA(e){return e===tr(e)||!Ir(e)?Wv(e):sA(e)}function lA(e){var t=e.getBoundingClientRect(),n=La(t.width)/e.offsetWidth||1,r=La(t.height)/e.offsetHeight||1;return n!==1||r!==1}function uA(e,t,n){n===void 0&&(n=!1);var r=Ir(t),i=Ir(t)&&lA(t),o=so(t),a=Fa(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Zi(t)!=="body"||Vv(o))&&(s=cA(t)),Ir(t)?(c=Fa(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Uv(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function dA(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var c=t.get(s);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function fA(e){var t=dA(e);return ER.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function hA(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function pA(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var b1={placement:"bottom",modifiers:[],strategy:"absolute"};function y1(){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 mA(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?b1:i;return function(s,c,l){l===void 0&&(l=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},b1,o),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},d=[],f=!1,p={state:u,setOptions:function(x){var w=typeof x=="function"?x(u.options):x;m(),u.options=Object.assign({},o,u.options,w),u.scrollParents={reference:Bo(s)?hc(s):s.contextElement?hc(s.contextElement):[],popper:hc(c)};var _=fA(pA([].concat(r,u.options.modifiers)));return u.orderedModifiers=_.filter(function(C){return C.enabled}),g(),p.update()},forceUpdate:function(){if(!f){var x=u.elements,w=x.reference,_=x.popper;if(y1(w,_)){u.rects={reference:uA(w,wl(_),u.options.strategy==="fixed"),popper:Bv(_)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(O){return u.modifiersData[O.name]=Object.assign({},O.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var y=u.orderedModifiers[C],$=y.fn,E=y.options,k=E===void 0?{}:E,T=y.name;typeof $=="function"&&(u=$({state:u,options:k,name:T,instance:p})||u)}}}},update:hA(function(){return new Promise(function(v){p.forceUpdate(),v(u)})}),destroy:function(){m(),f=!0}};if(!y1(s,c))return p;p.setOptions(l).then(function(v){!f&&l.onFirstUpdate&&l.onFirstUpdate(v)});function g(){u.orderedModifiers.forEach(function(v){var x=v.name,w=v.options,_=w===void 0?{}:w,C=v.effect;if(typeof C=="function"){var y=C({state:u,name:x,instance:p,options:_}),$=function(){};d.push(y||$)}})}function m(){d.forEach(function(v){return v()}),d=[]}return p}}const gA=mA({defaultModifiers:[QR,rA,PR,FR,tA,ZR,aA,jR]}),vA=["enabled","placement","strategy","modifiers"];function bA(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 yA={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},xA={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(i=>i.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,i=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&i==="tooltip"&&"setAttribute"in r){const o=r.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",o?`${o},${n.id}`:n.id)}}},wA=[];function YC(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:o="absolute",modifiers:a=wA}=n,s=bA(n,vA);const c=h.useRef(a),l=h.useRef(),u=h.useCallback(()=>{var v;(v=l.current)==null||v.update()},[]),d=h.useCallback(()=>{var v;(v=l.current)==null||v.forceUpdate()},[]),[f,p]=pR(h.useState({placement:i,update:u,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=h.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:v})=>{const x={},w={};Object.keys(v.elements).forEach(_=>{x[_]=v.styles[_],w[_]=v.attributes[_]}),p({state:v,styles:x,attributes:w,update:u,forceUpdate:d,placement:v.placement})}}),[u,d,p]),m=h.useMemo(()=>(dc(c.current,a)||(c.current=a),c.current),[a]);return h.useEffect(()=>{!l.current||!r||l.current.setOptions({placement:i,strategy:o,modifiers:[...m,g,yA]})},[o,i,g,r,m]),h.useEffect(()=>{if(!(!r||e==null||t==null))return l.current=gA(e,t,Object.assign({},s,{placement:i,strategy:o,modifiers:[...m,xA,g]})),()=>{l.current!=null&&(l.current.destroy(),l.current=void 0,p(v=>Object.assign({},v,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function kc(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var _A=process.env.NODE_ENV!=="production",GC=function(){};if(_A){var CA=function(t,n){var r=arguments.length;n=new Array(r>1?r-1:0);for(var i=1;i<r;i++)n[i-1]=arguments[i];var o=0,a="Warning: "+t.replace(/%s/g,function(){return n[o++]});typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}};GC=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var i=2;i<r;i++)n[i-2]=arguments[i];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||CA.apply(null,[t].concat(n))}}var $A=GC;const Qo=rn($A),x1=()=>{};function SA(e){return e.button===0}function EA(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const zu=e=>e&&("current"in e?e.current:e),w1={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function KC(e,t=x1,{disabled:n,clickTrigger:r="click"}={}){const i=h.useRef(!1),o=h.useRef(!1),a=h.useCallback(l=>{const u=zu(e);Qo(!!u,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!u||EA(l)||!SA(l)||!!kc(u,l.target)||o.current,o.current=!1},[e]),s=en(l=>{const u=zu(e);u&&kc(u,l.target)&&(o.current=!0)}),c=en(l=>{i.current||t(l)});h.useEffect(()=>{var l,u;if(n||e==null)return;const d=os(zu(e)),f=d.defaultView||window;let p=(l=f.event)!=null?l:(u=f.parent)==null?void 0:u.event,g=null;w1[r]&&(g=ui(d,w1[r],s,!0));const m=ui(d,r,a,!0),v=ui(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=>ui(w,"mousemove",x1))),()=>{g==null||g(),m(),v(),x.forEach(w=>w())}},[e,n,r,a,s,c])}function TA(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function kA(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function ZC({enabled:e,enableEvents:t,placement:n,flip:r,offset:i,fixed:o,containerPadding:a,arrowElement:s,popperConfig:c={}}){var l,u,d,f,p;const g=TA(c.modifiers);return Object.assign({},c,{placement:n,enabled:e,strategy:o?"fixed":c.strategy,modifiers:kA(Object.assign({},g,{eventListeners:{enabled:t,options:(l=g.eventListeners)==null?void 0:l.options},preventOverflow:Object.assign({},g.preventOverflow,{options:a?Object.assign({padding:a},(u=g.preventOverflow)==null?void 0:u.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:i},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!s,options:Object.assign({},(p=g.arrow)==null?void 0:p.options,{element:s})}),flip:Object.assign({enabled:!!r},g.flip)}))})}const OA=["children","usePopper"];function MA(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 RA=()=>{};function XC(e={}){const t=h.useContext(bf),[n,r]=ad(),i=h.useRef(!1),{flip:o,offset:a,rootCloseEvent:s,fixed:c=!1,placement:l,popperConfig:u={},enableEventListeners:d=!0,usePopper:f=!!t}=e,p=(t==null?void 0:t.show)==null?!!e.show:t.show;p&&!i.current&&(i.current=!0);const g=$=>{t==null||t.toggle(!1,$)},{placement:m,setMenu:v,menuElement:x,toggleElement:w}=t||{},_=YC(w,x,ZC({placement:l||m||"bottom-start",enabled:f,enableEvents:d??p,offset:a,flip:o,fixed:c,arrowElement:n,popperConfig:u})),C=Object.assign({ref:v||RA,"aria-labelledby":w==null?void 0:w.id},_.attributes.popper,{style:_.styles.popper}),y={show:p,placement:m,hasShown:i.current,toggle:t==null?void 0:t.toggle,popper:f?_:null,arrowProps:f?Object.assign({ref:r},_.attributes.arrow,{style:_.styles.arrow}):{}};return KC(x,g,{clickTrigger:s,disabled:!p}),[C,y]}function QC(e){let{children:t,usePopper:n=!0}=e,r=MA(e,OA);const[i,o]=XC(Object.assign({},r,{usePopper:n}));return b.jsx(b.Fragment,{children:t(i,o)})}QC.displayName="DropdownMenu";const cd={prefix:String(Math.round(Math.random()*1e10)),current:0},JC=h.createContext(cd),AA=h.createContext(!1);let jA=!!(typeof window<"u"&&window.document&&window.document.createElement),Sp=new WeakMap;function NA(e=!1){let t=h.useContext(JC),n=h.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let a=Sp.get(o);a==null?Sp.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==a.state&&(t.current=a.id,Sp.delete(o))}n.current=++t.current}return n.current}function DA(e){let t=h.useContext(JC);t===cd&&!jA&&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=NA(!!e),r=t===cd&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function IA(e){let t=h.useId(),[n]=h.useState(zA()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${cd.prefix}`;return e||`${r}-${t}`}const PA=typeof h.useId=="function"?IA:DA;function LA(){return!1}function FA(){return!0}function BA(e){return()=>{}}function zA(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(BA,LA,FA):h.useContext(AA)}const e$=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},_1=()=>{};function t$(){const e=PA(),{show:t=!1,toggle:n=_1,setToggle:r,menuElement:i}=h.useContext(bf)||{},o=h.useCallback(s=>{n(!t,s)},[t,n]),a={id:e,ref:r||_1,onClick:o,"aria-expanded":!!t};return i&&e$(i)&&(a["aria-haspopup"]=!0),[a,{show:t,toggle:n}]}function n$({children:e}){const[t,n]=t$();return b.jsx(b.Fragment,{children:e(t,n)})}n$.displayName="DropdownToggle";const za=ie.createContext(null),Oc=(e,t=null)=>e!=null?String(e):t||null,xf=ie.createContext(null);xf.displayName="NavContext";const WA="data-rr-ui-",UA="rrUi";function ss(e){return`${WA}${e}`}function VA(e){return`${UA}${e}`}const HA=["eventKey","disabled","onClick","active","as"];function qA(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 r$({key:e,href:t,active:n,disabled:r,onClick:i}){const o=h.useContext(za),a=h.useContext(xf),{activeKey:s}=a||{},c=Oc(e,t),l=n==null&&e!=null?Oc(s)===c:n;return[{onClick:en(d=>{r||(i==null||i(d),o&&!d.isPropagationStopped()&&o(c,d))}),"aria-disabled":r||void 0,"aria-selected":l,[ss("dropdown-item")]:""},{isActive:l}]}const i$=ie.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:o,as:a=jv}=e,s=qA(e,HA);const[c]=r$({key:n,href:s.href,disabled:r,onClick:i,active:o});return b.jsx(a,Object.assign({},s,{ref:t},c))});i$.displayName="DropdownItem";const o$=h.createContext(as?window:void 0);o$.Provider;function wf(){return h.useContext(o$)}function C1(){const e=PC(),t=h.useRef(null),n=h.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function _l({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:i=`* [${ss("dropdown-item")}]`,focusFirstItemOnShow:o,placement:a="bottom-start",children:s}){const c=wf(),[l,u]=hR(t,e,r),[d,f]=C1(),p=d.current,[g,m]=C1(),v=g.current,x=MC(l),w=h.useRef(null),_=h.useRef(!1),C=h.useContext(za),y=h.useCallback((S,M,A=M==null?void 0:M.type)=>{u(S,{originalEvent:M,source:A})},[u]),$=en((S,M)=>{n==null||n(S,M),y(!1,M,"select"),M.isPropagationStopped()||C==null||C(S,M)}),E=h.useMemo(()=>({toggle:y,placement:a,show:l,menuElement:p,toggleElement:v,setMenu:f,setToggle:m}),[y,a,l,p,v,f,m]);p&&x&&!l&&(_.current=p.contains(p.ownerDocument.activeElement));const k=en(()=>{v&&v.focus&&v.focus()}),T=en(()=>{const S=w.current;let M=o;if(M==null&&(M=d.current&&e$(d.current)?"keyboard":!1),M===!1||M==="keyboard"&&!/^key.+$/.test(S))return;const A=ci(d.current,i)[0];A&&A.focus&&A.focus()});h.useEffect(()=>{l?T():_.current&&(_.current=!1,k())},[l,_,k,T]),h.useEffect(()=>{w.current=null});const O=(S,M)=>{if(!d.current)return null;const A=ci(d.current,i);let j=A.indexOf(S)+M;return j=Math.max(0,Math.min(j,A.length)),A[j]};return X5(h.useCallback(()=>c.document,[c]),"keydown",S=>{var M,A;const{key:j}=S,P=S.target,I=(M=d.current)==null?void 0:M.contains(P),L=(A=g.current)==null?void 0:A.contains(P);if(/input|textarea/i.test(P.tagName)&&(j===" "||j!=="Escape"&&I||j==="Escape"&&P.type==="search")||!I&&!L||j==="Tab"&&(!d.current||!l))return;w.current=S.type;const z={originalEvent:S,source:S.type};switch(j){case"ArrowUp":{const D=O(P,-1);D&&D.focus&&D.focus(),S.preventDefault();return}case"ArrowDown":if(S.preventDefault(),!l)u(!0,z);else{const D=O(P,1);D&&D.focus&&D.focus()}return;case"Tab":Ov(P.ownerDocument,"keyup",D=>{var W;(D.key==="Tab"&&!D.target||!((W=d.current)!=null&&W.contains(D.target)))&&u(!1,z)},{once:!0});break;case"Escape":j==="Escape"&&(S.preventDefault(),S.stopPropagation()),u(!1,z);break}}),b.jsx(za.Provider,{value:$,children:b.jsx(bf.Provider,{value:E,children:s})})}_l.displayName="Dropdown";_l.Menu=QC;_l.Toggle=n$;_l.Item=i$;const Hv=ie.createContext({});Hv.displayName="DropdownContext";const a$=ie.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...i},o)=>(t=pt(t,"dropdown-divider"),b.jsx(n,{ref:o,className:de(e,t),role:r,...i})));a$.displayName="DropdownDivider";const s$=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...i},o)=>(t=pt(t,"dropdown-header"),b.jsx(n,{ref:o,className:de(e,t),role:r,...i})));s$.displayName="DropdownHeader";const c$=ie.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:i,active:o,as:a=Nv,...s},c)=>{const l=pt(e,"dropdown-item"),[u,d]=r$({key:n,href:s.href,disabled:r,onClick:i,active:o});return b.jsx(a,{...s,...u,ref:c,className:de(t,l,d.isActive&&"active",r&&"disabled")})});c$.displayName="DropdownItem";const l$=ie.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=pt(t,"dropdown-item-text"),b.jsx(n,{ref:i,className:de(e,t),...r})));l$.displayName="DropdownItemText";const _f=ie.createContext(null);_f.displayName="InputGroupContext";const u$=ie.createContext(null);u$.displayName="NavbarContext";function d$(e,t){if(process.env.NODE_ENV==="production")return e;const n=h.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?zm(!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`):zm(!1))},[t]);return br(n,e)}function f$(e,t,n){const r=n?"top-end":"top-start",i=n?"top-start":"top-end",o=n?"bottom-end":"bottom-start",a=n?"bottom-start":"bottom-end",s=n?"right-start":"left-start",c=n?"right-end":"left-end",l=n?"left-start":"right-start",u=n?"left-end":"right-end";let d=e?a:o;return t==="up"?d=e?i:r:t==="end"?d=e?u:l:t==="start"?d=e?c:s:t==="down-centered"?d="bottom":t==="up-centered"&&(d="top"),d}const h$=ie.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:i=!0,show:o,renderOnMount:a,as:s="div",popperConfig:c,variant:l,...u},d)=>{let f=!1;const p=h.useContext(u$),g=pt(e,"dropdown-menu"),{align:m,drop:v,isRTL:x}=h.useContext(Hv);n=n||m;const w=h.useContext(_f),_=[];if(n)if(typeof n=="object"){const S=Object.keys(n);if(process.env.NODE_ENV!=="production"&&Qo(S.length===1,"There should only be 1 breakpoint when passing an object to `align`"),S.length){const M=S[0],A=n[M];f=A==="start",_.push(`${g}-${M}-${A}`)}}else n==="end"&&(f=!0);const C=f$(f,v,x),[y,{hasShown:$,popper:E,show:k,toggle:T}]=XC({flip:i,rootCloseEvent:r,show:o,usePopper:!p&&_.length===0,offset:[0,2],popperConfig:c,placement:C});if(y.ref=br(d$(d,"DropdownMenu"),y.ref),Sc(()=>{k&&(E==null||E.update())},[k]),!$&&!a&&!w)return null;typeof s!="string"&&(y.show=k,y.close=()=>T==null?void 0:T(!1),y.align=n);let O=u.style;return E!=null&&E.placement&&(O={...u.style,...y.style},u["x-placement"]=E.placement),b.jsx(s,{...u,...y,style:O,...(_.length||p)&&{"data-bs-popper":"static"},className:de(t,g,k&&"show",f&&`${g}-end`,l&&`${g}-${l}`,..._)})});h$.displayName="DropdownMenu";const p$=ie.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:i=Dv,...o},a)=>{const s=pt(e,"dropdown-toggle"),c=h.useContext(bf);r!==void 0&&(o.bsPrefix=r);const[l]=t$();return l.ref=br(l.ref,d$(a,"DropdownToggle")),b.jsx(i,{className:de(n,s,t&&`${s}-split`,(c==null?void 0:c.show)&&"show"),...l,...o})});p$.displayName="DropdownToggle";const m$=ie.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:i,className:o,align:a="start",onSelect:s,onToggle:c,focusFirstItemOnShow:l,as:u="div",navbar:d,autoClose:f=!0,...p}=Ev(e,{show:"onToggle"}),g=h.useContext(_f),m=pt(n,"dropdown"),v=gf(),x=E=>f===!1?E==="click":f==="inside"?E!=="rootClose":f==="outside"?E!=="select":!0,w=en((E,k)=>{var T;!((T=k.originalEvent)==null||(T=T.target)==null)&&T.classList.contains("dropdown-toggle")&&k.source==="mousedown"||(k.originalEvent.currentTarget===document&&(k.source!=="keydown"||k.originalEvent.key==="Escape")&&(k.source="rootClose"),x(k.source)&&(c==null||c(E,k)))}),C=f$(a==="end",r,v),y=h.useMemo(()=>({align:a,drop:r,isRTL:v}),[a,r,v]),$={down:m,"down-centered":`${m}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return b.jsx(Hv.Provider,{value:y,children:b.jsx(_l,{placement:C,show:i,onSelect:s,onToggle:w,focusFirstItemOnShow:l,itemSelector:`.${m}-item:not(.disabled):not(:disabled)`,children:g?p.children:b.jsx(u,{...p,ref:t,className:de(o,i&&"show",$[r])})})})});m$.displayName="Dropdown";const Wa=Object.assign(m$,{Toggle:p$,Menu:h$,Item:c$,ItemText:l$,Divider:a$,Header:s$}),YA={type:K.string,tooltip:K.bool,as:K.elementType},Cf=ie.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},o)=>b.jsx(e,{...i,ref:o,className:de(t,`${n}-${r?"tooltip":"feedback"}`)}));Cf.displayName="Feedback";Cf.propTypes=YA;const vi=ie.createContext({}),$f=ie.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:o=!1,as:a="input",...s},c)=>{const{controlId:l}=h.useContext(vi);return t=pt(t,"form-check-input"),b.jsx(a,{...s,ref:c,type:r,id:e||l,className:de(n,t,i&&"is-valid",o&&"is-invalid")})});$f.displayName="FormCheckInput";const ld=ie.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:o}=h.useContext(vi);return e=pt(e,"form-check-label"),b.jsx("label",{...r,ref:i,htmlFor:n||o,className:de(t,e)})});ld.displayName="FormCheckLabel";const g$=ie.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:i=!1,disabled:o=!1,isValid:a=!1,isInvalid:s=!1,feedbackTooltip:c=!1,feedback:l,feedbackType:u,className:d,style:f,title:p="",type:g="checkbox",label:m,children:v,as:x="input",...w},_)=>{t=pt(t,"form-check"),n=pt(n,"form-switch");const{controlId:C}=h.useContext(vi),y=h.useMemo(()=>({controlId:e||C}),[C,e]),$=!v&&m!=null&&m!==!1||dR(v,ld),E=b.jsx($f,{...w,type:g==="switch"?"checkbox":g,ref:_,isValid:a,isInvalid:s,disabled:o,as:x});return b.jsx(vi.Provider,{value:y,children:b.jsx("div",{style:f,className:de(d,$&&t,r&&`${t}-inline`,i&&`${t}-reverse`,g==="switch"&&n),children:v||b.jsxs(b.Fragment,{children:[E,$&&b.jsx(ld,{title:p,children:m}),l&&b.jsx(Cf,{type:u,tooltip:c,children:l})]})})})});g$.displayName="FormCheck";const ud=Object.assign(g$,{Input:$f,Label:ld}),v$=ie.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:i,className:o,isValid:a=!1,isInvalid:s=!1,plaintext:c,readOnly:l,as:u="input",...d},f)=>{const{controlId:p}=h.useContext(vi);return e=pt(e,"form-control"),process.env.NODE_ENV!=="production"&&Qo(p==null||!i,"`controlId` is ignored on `<FormControl>` when `id` is specified."),b.jsx(u,{...d,type:t,size:r,ref:f,readOnly:l,id:i||p,className:de(o,c?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,a&&"is-valid",s&&"is-invalid")})});v$.displayName="FormControl";const b$=Object.assign(v$,{Feedback:Cf}),y$=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=pt(t,"form-floating"),b.jsx(n,{ref:i,className:de(e,t),...r})));y$.displayName="FormFloating";const qv=ie.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=h.useMemo(()=>({controlId:e}),[e]);return b.jsx(vi.Provider,{value:i,children:b.jsx(t,{...n,ref:r})})});qv.displayName="FormGroup";const x$=ie.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:o,...a},s)=>{const{controlId:c}=h.useContext(vi);t=pt(t,"form-label");let l="col-form-label";typeof n=="string"&&(l=`${l} ${l}-${n}`);const u=de(i,t,r&&"visually-hidden",n&&l);return process.env.NODE_ENV!=="production"&&Qo(c==null||!o,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),o=o||c,n?b.jsx(Pv,{ref:s,as:"label",className:u,htmlFor:o,...a}):b.jsx(e,{ref:s,className:u,htmlFor:o,...a})});x$.displayName="FormLabel";const w$=ie.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:o}=h.useContext(vi);return e=pt(e,"form-range"),b.jsx("input",{...r,type:"range",ref:i,className:de(t,e),id:n||o})});w$.displayName="FormRange";const Yv=ie.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:o=!1,id:a,...s},c)=>{const{controlId:l}=h.useContext(vi);return e=pt(e,"form-select"),b.jsx("select",{...s,size:n,ref:c,className:de(r,e,t&&`${e}-${t}`,i&&"is-valid",o&&"is-invalid"),id:a||l})});Yv.displayName="FormSelect";const _$=ie.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},o)=>(e=pt(e,"form-text"),b.jsx(n,{...i,ref:o,className:de(t,e,r&&"text-muted")})));_$.displayName="FormText";const C$=ie.forwardRef((e,t)=>b.jsx(ud,{...e,ref:t,type:"switch"}));C$.displayName="Switch";const GA=Object.assign(C$,{Input:ud.Input,Label:ud.Label}),Gv=ie.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...o},a)=>(e=pt(e,"form-floating"),b.jsxs(qv,{ref:a,className:de(t,e),controlId:r,...o,children:[n,b.jsx("label",{htmlFor:r,children:i})]})));Gv.displayName="FloatingLabel";const KA={_ref:K.any,validated:K.bool,as:K.elementType},Kv=ie.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>b.jsx(n,{...r,ref:i,className:de(e,t&&"was-validated")}));Kv.displayName="Form";Kv.propTypes=KA;const Kr=Object.assign(Kv,{Group:qv,Control:b$,Floating:y$,Check:ud,Switch:GA,Label:x$,Text:_$,Range:w$,Select:Yv,FloatingLabel:Gv}),$$=ie.createContext(null),ZA=["as","active","eventKey"];function XA(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 S$({key:e,onClick:t,active:n,id:r,role:i,disabled:o}){const a=h.useContext(za),s=h.useContext(xf),c=h.useContext($$);let l=n;const u={role:i};if(s){!i&&s.role==="tablist"&&(u.role="tab");const d=s.getControllerId(e??null),f=s.getControlledId(e??null);u[ss("event-key")]=e,u.id=d||r,l=n==null&&e!=null?s.activeKey===e:n,(l||!(c!=null&&c.unmountOnExit)&&!(c!=null&&c.mountOnEnter))&&(u["aria-controls"]=f)}return u.role==="tab"&&(u["aria-selected"]=l,l||(u.tabIndex=-1),o&&(u.tabIndex=-1,u["aria-disabled"]=!0)),u.onClick=en(d=>{o||(t==null||t(d),e!=null&&a&&!d.isPropagationStopped()&&a(e,d))}),[u,{isActive:l}]}const E$=ie.forwardRef((e,t)=>{let{as:n=jv,active:r,eventKey:i}=e,o=XA(e,ZA);const[a,s]=S$(Object.assign({key:Oc(i,o.href),active:r},o));return a[ss("active")]=s.isActive,b.jsx(n,Object.assign({},o,a,{ref:t}))});E$.displayName="NavItem";const QA=["as","onSelect","activeKey","role","onKeyDown"];function JA(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 $1=()=>{},S1=ss("event-key"),T$=ie.forwardRef((e,t)=>{let{as:n="div",onSelect:r,activeKey:i,role:o,onKeyDown:a}=e,s=JA(e,QA);const c=PC(),l=h.useRef(!1),u=h.useContext(za),d=h.useContext($$);let f,p;d&&(o=o||"tablist",i=d.activeKey,f=d.getControlledId,p=d.getControllerId);const g=h.useRef(null),m=_=>{const C=g.current;if(!C)return null;const y=ci(C,`[${S1}]:not([aria-disabled=true])`),$=C.querySelector("[aria-selected=true]");if(!$||$!==document.activeElement)return null;const E=y.indexOf($);if(E===-1)return null;let k=E+_;return k>=y.length&&(k=0),k<0&&(k=y.length-1),y[k]},v=(_,C)=>{_!=null&&(r==null||r(_,C),u==null||u(_,C))},x=_=>{if(a==null||a(_),!d)return;let C;switch(_.key){case"ArrowLeft":case"ArrowUp":C=m(-1);break;case"ArrowRight":case"ArrowDown":C=m(1);break;default:return}C&&(_.preventDefault(),v(C.dataset[VA("EventKey")]||null,_),l.current=!0,c())};h.useEffect(()=>{if(g.current&&l.current){const _=g.current.querySelector(`[${S1}][aria-selected=true]`);_==null||_.focus()}l.current=!1});const w=br(t,g);return b.jsx(za.Provider,{value:v,children:b.jsx(xf.Provider,{value:{role:o,activeKey:Oc(i),getControlledId:f||$1,getControllerId:p||$1},children:b.jsx(n,Object.assign({},s,{onKeyDown:x,ref:w,role:o}))})})});T$.displayName="Nav";const ej=Object.assign(T$,{Item:E$}),Sf=ie.forwardRef(({bsPrefix:e,active:t,disabled:n,eventKey:r,className:i,variant:o,action:a,as:s,...c},l)=>{e=pt(e,"list-group-item");const[u,d]=S$({key:Oc(r,c.href),active:t,...c}),f=en(g=>{if(n){g.preventDefault(),g.stopPropagation();return}u.onClick(g)});n&&c.tabIndex===void 0&&(c.tabIndex=-1,c["aria-disabled"]=!0);const p=s||(a?c.href?"a":"button":"div");return process.env.NODE_ENV!=="production"&&Qo(s||!(!a&&c.href),"`action=false` and `href` should not be used together."),b.jsx(p,{ref:l,...c,...u,onClick:f,className:de(i,e,d.isActive&&"active",n&&"disabled",o&&`${e}-${o}`,a&&`${e}-action`)})});Sf.displayName="ListGroupItem";const k$=ie.forwardRef((e,t)=>{const{className:n,bsPrefix:r,variant:i,horizontal:o,numbered:a,as:s="div",...c}=Ev(e,{activeKey:"onSelect"}),l=pt(r,"list-group");let u;return o&&(u=o===!0?"horizontal":`horizontal-${o}`),process.env.NODE_ENV!=="production"&&Qo(!(o&&i==="flush"),'`variant="flush"` and `horizontal` should not be used together.'),b.jsx(ej,{ref:t,...c,as:s,className:de(n,l,i&&`${l}-${i}`,u&&`${l}-${u}`,a&&`${l}-numbered`)})});k$.displayName="ListGroup";const O$=Object.assign(k$,{Item:Sf});var du;function E1(e){if((!du&&du!==0||e)&&as){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),du=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return du}function Ep(e){e===void 0&&(e=os());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function tj(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const T1=ss("modal-open");class Zv{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return tj(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(Yi(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(T1,""),Yi(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(T1),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 Tp=(e,t)=>as?e==null?(t||os()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Zm(e,t){const n=wf(),[r,i]=h.useState(()=>Tp(e,n==null?void 0:n.document));if(!r){const o=Tp(e);o&&i(o)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const o=Tp(e);o!==r&&i(o)},[e,r]),r}function nj({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=h.useRef(null),a=h.useRef(t),s=en(n);h.useEffect(()=>{t?a.current=!0:s(o.current)},[t,s]);const c=br(o,e.ref),l=h.cloneElement(e,{ref:c});return t?l:i||!a.current&&r?null:l}const rj=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function ij(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 oj(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:o,onExited:a,addEndListener:s,children:c}=e,l=ij(e,rj);const{major:u}=jC(),d=u>=19?c.props.ref:c.ref,f=h.useRef(null),p=br(f,typeof c=="function"?null:d),g=$=>E=>{$&&f.current&&$(f.current,E)},m=h.useCallback(g(t),[t]),v=h.useCallback(g(n),[n]),x=h.useCallback(g(r),[r]),w=h.useCallback(g(i),[i]),_=h.useCallback(g(o),[o]),C=h.useCallback(g(a),[a]),y=h.useCallback(g(s),[s]);return Object.assign({},l,{nodeRef:f},t&&{onEnter:m},n&&{onEntering:v},r&&{onEntered:x},i&&{onExit:w},o&&{onExiting:_},a&&{onExited:C},s&&{addEndListener:y},{children:typeof c=="function"?($,E)=>c($,Object.assign({},E,{ref:p})):h.cloneElement(c,{ref:p})})}const aj=["component"];function sj(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 cj=ie.forwardRef((e,t)=>{let{component:n}=e,r=sj(e,aj);const i=oj(r);return b.jsx(n,Object.assign({ref:t},i))});function lj({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),i=en(t);return Sc(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),Sc(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function uj({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,a]=h.useState(!t);t&&o&&a(!1);const s=lj({in:!!t,onTransition:l=>{const u=()=>{l.isStale()||(l.in?r==null||r(l.element,l.initial):(a(!0),n==null||n(l.element)))};Promise.resolve(i(l)).then(u,d=>{throw l.in||a(!0),d})}}),c=br(s,e.ref);return o&&!t?null:h.cloneElement(e,{ref:c})}function Xm(e,t,n){return e?b.jsx(cj,Object.assign({},n,{component:e})):t?b.jsx(uj,Object.assign({},n,{transition:t})):b.jsx(nj,Object.assign({},n))}const dj=["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 fj(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 kp;function hj(e){return kp||(kp=new Zv({ownerDocument:e==null?void 0:e.document})),kp}function pj(e){const t=wf(),n=e||hj(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(i=>{r.current.dialog=i},[]),setBackdropRef:h.useCallback(i=>{r.current.backdrop=i},[])})}const M$=h.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:o,children:a,backdrop:s=!0,keyboard:c=!0,onBackdropClick:l,onEscapeKeyDown:u,transition:d,runTransition:f,backdropTransition:p,runBackdropTransition:g,autoFocus:m=!0,enforceFocus:v=!0,restoreFocus:x=!0,restoreFocusOptions:w,renderDialog:_,renderBackdrop:C=te=>b.jsx("div",Object.assign({},te)),manager:y,container:$,onShow:E,onHide:k=()=>{},onExit:T,onExited:O,onExiting:S,onEnter:M,onEntering:A,onEntered:j}=e,P=fj(e,dj);const I=wf(),L=Zm($),V=pj(y),z=Rv(),D=MC(n),[W,G]=h.useState(!n),J=h.useRef(null);h.useImperativeHandle(t,()=>V,[V]),as&&!D&&n&&(J.current=Ep(I==null?void 0:I.document)),n&&W&&G(!1);const Z=en(()=>{if(V.add(),B.current=ui(document,"keydown",F),N.current=ui(document,"focus",()=>setTimeout(ee),!0),E&&E(),m){var te,ue;const oe=Ep((te=(ue=V.dialog)==null?void 0:ue.ownerDocument)!=null?te:I==null?void 0:I.document);V.dialog&&oe&&!kc(V.dialog,oe)&&(J.current=oe,V.dialog.focus())}}),X=en(()=>{if(V.remove(),B.current==null||B.current(),N.current==null||N.current(),x){var te;(te=J.current)==null||te.focus==null||te.focus(w),J.current=null}});h.useEffect(()=>{!n||!L||Z()},[n,L,Z]),h.useEffect(()=>{W&&X()},[W,X]),Iv(()=>{X()});const ee=en(()=>{if(!v||!z()||!V.isTopModal())return;const te=Ep(I==null?void 0:I.document);V.dialog&&te&&!kc(V.dialog,te)&&V.dialog.focus()}),ne=en(te=>{te.target===te.currentTarget&&(l==null||l(te),s===!0&&k())}),F=en(te=>{c&&AC(te)&&V.isTopModal()&&(u==null||u(te),te.defaultPrevented||k())}),N=h.useRef(),B=h.useRef(),H=(...te)=>{G(!0),O==null||O(...te)};if(!L)return null;const R=Object.assign({role:r,ref:V.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},P,{style:o,className:i,tabIndex:-1});let Y=_?_(R):b.jsx("div",Object.assign({},R,{children:ie.cloneElement(a,{role:"document"})}));Y=Xm(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:T,onExiting:S,onExited:H,onEnter:M,onEntering:A,onEntered:j,children:Y});let Q=null;return s&&(Q=C({ref:V.setBackdropRef,onClick:ne}),Q=Xm(p,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Q})),b.jsx(b.Fragment,{children:un.createPortal(b.jsxs(b.Fragment,{children:[Q,Y]}),L)})});M$.displayName="Modal";const R$=Object.assign(M$,{Manager:Zv});function Qm(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function mj(e,t){e.classList?e.classList.add(t):Qm(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function k1(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function gj(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=k1(e.className,t):e.setAttribute("class",k1(e.className&&e.className.baseVal||"",t))}const da={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class A$ extends Zv{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,Yi(n,{[t]:`${parseFloat(Yi(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],Yi(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(mj(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";ci(n,da.FIXED_CONTENT).forEach(o=>this.adjustAndStore(r,o,t.scrollBarWidth)),ci(n,da.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),ci(n,da.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();gj(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";ci(n,da.FIXED_CONTENT).forEach(o=>this.restore(r,o)),ci(n,da.STICKY_CONTENT).forEach(o=>this.restore(i,o)),ci(n,da.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let Op;function j$(e){return Op||(Op=new A$(e)),Op}const N$=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=pt(t,"modal-body"),b.jsx(n,{ref:i,className:de(e,t),...r})));N$.displayName="ModalBody";const Xv=ie.createContext({onHide(){}}),Qv=ie.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:o,children:a,scrollable:s,...c},l)=>{e=pt(e,"modal");const u=`${e}-dialog`,d=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return b.jsx("div",{...c,ref:l,className:de(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,o&&d),children:b.jsx("div",{className:de(`${e}-content`,n),children:a})})});Qv.displayName="ModalDialog";const D$=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=pt(t,"modal-footer"),b.jsx(n,{ref:i,className:de(e,t),...r})));D$.displayName="ModalFooter";const I$=ie.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...o},a)=>{const s=h.useContext(Xv),c=en(()=>{s==null||s.onHide(),r==null||r()});return b.jsxs("div",{ref:a,...o,children:[i,n&&b.jsx(vf,{"aria-label":e,variant:t,onClick:c})]})}),P$=ie.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},o)=>(e=pt(e,"modal-header"),b.jsx(I$,{ref:o,...i,className:de(t,e),closeLabel:n,closeButton:r})));P$.displayName="ModalHeader";const vj=Mv("h4"),L$=ie.forwardRef(({className:e,bsPrefix:t,as:n=vj,...r},i)=>(t=pt(t,"modal-title"),b.jsx(n,{ref:i,className:de(e,t),...r})));L$.displayName="ModalTitle";function bj(e){return b.jsx(Ki,{...e,timeout:null})}function yj(e){return b.jsx(Ki,{...e,timeout:null})}const F$=ie.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:o,dialogAs:a=Qv,"data-bs-theme":s,"aria-labelledby":c,"aria-describedby":l,"aria-label":u,show:d=!1,animation:f=!0,backdrop:p=!0,keyboard:g=!0,onEscapeKeyDown:m,onShow:v,onHide:x,container:w,autoFocus:_=!0,enforceFocus:C=!0,restoreFocus:y=!0,restoreFocusOptions:$,onEntered:E,onExit:k,onExiting:T,onEnter:O,onEntering:S,onExited:M,backdropClassName:A,manager:j,...P},I)=>{const[L,V]=h.useState({}),[z,D]=h.useState(!1),W=h.useRef(!1),G=h.useRef(!1),J=h.useRef(null),[Z,X]=ad(),ee=br(I,X),ne=en(x),F=gf();e=pt(e,"modal");const N=h.useMemo(()=>({onHide:ne}),[ne]);function B(){return j||j$({isRTL:F})}function H(se){if(!as)return;const we=B().getScrollbarWidth()>0,Ve=se.scrollHeight>os(se).documentElement.clientHeight;V({paddingRight:we&&!Ve?E1():void 0,paddingLeft:!we&&Ve?E1():void 0})}const R=en(()=>{Z&&H(Z.dialog)});Iv(()=>{qm(window,"resize",R),J.current==null||J.current()});const Y=()=>{W.current=!0},Q=se=>{W.current&&Z&&se.target===Z.dialog&&(G.current=!0),W.current=!1},te=()=>{D(!0),J.current=$C(Z.dialog,()=>{D(!1)})},ue=se=>{se.target===se.currentTarget&&te()},oe=se=>{if(p==="static"){ue(se);return}if(G.current||se.target!==se.currentTarget){G.current=!1;return}x==null||x()},ae=se=>{g?m==null||m(se):(se.preventDefault(),p==="static"&&te())},pe=(se,we)=>{se&&H(se),O==null||O(se,we)},ve=se=>{J.current==null||J.current(),k==null||k(se)},Ee=(se,we)=>{S==null||S(se,we),Ov(window,"resize",R)},Se=se=>{se&&(se.style.display=""),M==null||M(se),qm(window,"resize",R)},Oe=h.useCallback(se=>b.jsx("div",{...se,className:de(`${e}-backdrop`,A,!f&&"show")}),[f,A,e]),Fe={...n,...L};Fe.display="block";const fe=se=>b.jsx("div",{role:"dialog",...se,style:Fe,className:de(t,e,z&&`${e}-static`,!f&&"show"),onClick:p?oe:void 0,onMouseUp:Q,"data-bs-theme":s,"aria-label":u,"aria-labelledby":c,"aria-describedby":l,children:b.jsx(a,{...P,onMouseDown:Y,className:r,contentClassName:i,children:o})});return b.jsx(Xv.Provider,{value:N,children:b.jsx(R$,{show:d,ref:ee,backdrop:p,container:w,keyboard:!0,autoFocus:_,enforceFocus:C,restoreFocus:y,restoreFocusOptions:$,onEscapeKeyDown:ae,onShow:v,onHide:x,onEnter:pe,onEntering:Ee,onEntered:E,onExit:ve,onExiting:T,onExited:Se,manager:B(),transition:f?bj:void 0,backdropTransition:f?yj:void 0,renderBackdrop:Oe,renderDialog:fe})})});F$.displayName="Modal";const Wn=Object.assign(F$,{Body:N$,Header:P$,Title:L$,Footer:D$,Dialog:Qv,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),xj=()=>{};function wj(e,t,{disabled:n,clickTrigger:r}={}){const i=t||xj;KC(e,i,{disabled:n,clickTrigger:r});const o=en(a=>{AC(a)&&i(a)});h.useEffect(()=>{if(n||e==null)return;const a=os(zu(e));let s=(a.defaultView||window).event;const c=ui(a,"keyup",l=>{if(l===s){s=void 0;return}o(l)});return()=>{c()}},[e,n,o])}const B$=ie.forwardRef((e,t)=>{const{flip:n,offset:r,placement:i,containerPadding:o,popperConfig:a={},transition:s,runTransition:c}=e,[l,u]=ad(),[d,f]=ad(),p=br(u,t),g=Zm(e.container),m=Zm(e.target),[v,x]=h.useState(!e.show),w=YC(m,l,ZC({placement:i,enableEvents:!!e.show,containerPadding:o||5,flip:n,offset:r,arrowElement:d,popperConfig:a}));e.show&&v&&x(!1);const _=(...S)=>{x(!0),e.onExited&&e.onExited(...S)},C=e.show||!v;if(wj(l,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!C)return null;const{onExit:y,onExiting:$,onEnter:E,onEntering:k,onEntered:T}=e;let O=e.children(Object.assign({},w.attributes.popper,{style:w.styles.popper,ref:p}),{popper:w,placement:i,show:!!e.show,arrowProps:Object.assign({},w.attributes.arrow,{style:w.styles.arrow,ref:f})});return O=Xm(s,c,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:O,onExit:y,onExiting:$,onExited:_,onEnter:E,onEntering:k,onEntered:T}),g?un.createPortal(O,g):null});B$.displayName="Overlay";const z$=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=pt(t,"popover-header"),b.jsx(n,{ref:i,className:de(e,t),...r})));z$.displayName="PopoverHeader";const Jv=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=pt(t,"popover-body"),b.jsx(n,{ref:i,className:de(e,t),...r})));Jv.displayName="PopoverBody";function W$(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function U$(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const _j=ie.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,body:o,arrowProps:a,hasDoneInitialMeasure:s,popper:c,show:l,...u},d)=>{const f=pt(e,"popover"),p=gf(),[g]=(t==null?void 0:t.split("-"))||[],m=W$(g,p);let v=r;return l&&!s&&(v={...r,...U$(c==null?void 0:c.strategy)}),b.jsxs("div",{ref:d,role:"tooltip",style:v,"x-placement":g,className:de(n,f,g&&`bs-popover-${m}`),...u,children:[b.jsx("div",{className:"popover-arrow",...a}),o?b.jsx(Jv,{children:i}):i]})}),Wu=Object.assign(_j,{Header:z$,Body:Jv,POPPER_OFFSET:[0,8]}),V$=ie.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,arrowProps:o,hasDoneInitialMeasure:a,popper:s,show:c,...l},u)=>{e=pt(e,"tooltip");const d=gf(),[f]=(t==null?void 0:t.split("-"))||[],p=W$(f,d);let g=r;return c&&!a&&(g={...r,...U$(s==null?void 0:s.strategy)}),b.jsxs("div",{ref:u,style:g,role:"tooltip","x-placement":f,className:de(n,e,`bs-tooltip-${p}`),...l,children:[b.jsx("div",{className:"tooltip-arrow",...o}),b.jsx("div",{className:`${e}-inner`,children:i})]})});V$.displayName="Tooltip";const H$=Object.assign(V$,{TOOLTIP_OFFSET:[0,6]});function Cj(e){const t=h.useRef(null),n=pt(void 0,"popover"),r=pt(void 0,"tooltip"),i=h.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Qm(t.current,n))return Wu.POPPER_OFFSET;if(Qm(t.current,r))return H$.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[i]]}function $j(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=i=>n(od(i))),t.ref=r.__wrapped||(r.__wrapped=i=>r(od(i)))}const q$=ie.forwardRef(({children:e,transition:t=Ki,popperConfig:n={},rootClose:r=!1,placement:i="top",show:o=!1,...a},s)=>{const c=h.useRef({}),[l,u]=h.useState(null),[d,f]=Cj(a.offset),p=br(s,d),g=t===!0?Ki:t||void 0,m=en(v=>{u(v),n==null||n.onFirstUpdate==null||n.onFirstUpdate(v)});return Sc(()=>{l&&a.target&&(c.current.scheduleUpdate==null||c.current.scheduleUpdate())},[l,a.target]),h.useEffect(()=>{o||u(null)},[o]),b.jsx(B$,{...a,ref:p,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:m},transition:g,rootClose:r,placement:i,show:o,children:(v,{arrowProps:x,popper:w,show:_})=>{var C;$j(v,x);const y=w==null?void 0:w.placement,$=Object.assign(c.current,{state:w==null?void 0:w.state,scheduleUpdate:w==null?void 0:w.update,placement:y,outOfBoundaries:(w==null||(C=w.state)==null||(C=C.modifiersData.hide)==null?void 0:C.isReferenceHidden)||!1,strategy:n.strategy}),E=!!l;return typeof e=="function"?e({...v,placement:y,show:_,...!t&&_&&{className:"show"},popper:$,arrowProps:x,hasDoneInitialMeasure:E}):ie.cloneElement(e,{...v,placement:y,arrowProps:x,popper:$,hasDoneInitialMeasure:E,className:de(e.props.className,!t&&_&&"show"),style:{...e.props.style,...v.style}})}})});q$.displayName="Overlay";function Sj(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function O1(e,t,n){const[r]=t,i=r.currentTarget,o=r.relatedTarget||r.nativeEvent[n];(!o||o!==i)&&!kc(i,o)&&e(...t)}K.oneOf(["click","hover","focus"]);const Y$=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:i,defaultShow:o=!1,onToggle:a,delay:s,placement:c,flip:l=c&&c.indexOf("auto")!==-1,...u})=>{const d=h.useRef(null),f=br(d,n.ref),p=uR(),g=h.useRef(""),[m,v]=bC(i,o,a),x=Sj(s),{onFocus:w,onBlur:_,onClick:C}=typeof n!="function"?ie.Children.only(n).props:{},y=P=>{f(od(P))},$=h.useCallback(()=>{if(p.clear(),g.current="show",!x.show){v(!0);return}p.set(()=>{g.current==="show"&&v(!0)},x.show)},[x.show,v,p]),E=h.useCallback(()=>{if(p.clear(),g.current="hide",!x.hide){v(!1);return}p.set(()=>{g.current==="hide"&&v(!1)},x.hide)},[x.hide,v,p]),k=h.useCallback((...P)=>{$(),w==null||w(...P)},[$,w]),T=h.useCallback((...P)=>{E(),_==null||_(...P)},[E,_]),O=h.useCallback((...P)=>{v(!m),C==null||C(...P)},[C,v,m]),S=h.useCallback((...P)=>{O1($,P,"fromElement")},[$]),M=h.useCallback((...P)=>{O1(E,P,"toElement")},[E]),A=e==null?[]:[].concat(e),j={ref:y};return A.indexOf("click")!==-1&&(j.onClick=O),A.indexOf("focus")!==-1&&(j.onFocus=k,j.onBlur=T),A.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&Qo(A.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.'),j.onMouseOver=S,j.onMouseOut=M),b.jsxs(b.Fragment,{children:[typeof n=="function"?n(j):h.cloneElement(n,j),b.jsx(q$,{...u,show:m,onHide:E,flip:l,placement:c,popperConfig:r,target:d.current,children:t})]})},e0=ie.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:i="div",className:o,...a},s)=>{e=pt(e,"spinner");const c=`${e}-${n}`;return b.jsx(i,{ref:s,...a,className:de(o,c,r&&`${c}-${r}`,t&&`text-${t}`)})});e0.displayName="Spinner";var G$={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},M1=h.createContext&&h.createContext(G$),Ej=["attr","size","title"];function Tj(e,t){if(e==null)return{};var n=kj(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kj(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 dd(){return dd=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},dd.apply(this,arguments)}function R1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R1(Object(n),!0).forEach(function(r){Oj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Oj(e,t,n){return t=Mj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mj(e){var t=Rj(e,"string");return typeof t=="symbol"?t:t+""}function Rj(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 K$(e){return e&&e.map((t,n)=>h.createElement(t.tag,fd({key:n},t.attr),K$(t.child)))}function mt(e){return t=>h.createElement(Aj,dd({attr:fd({},e.attr)},t),K$(e.child))}function Aj(e){var t=n=>{var{attr:r,size:i,title:o}=e,a=Tj(e,Ej),s=i||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),h.createElement("svg",dd({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:c,style:fd(fd({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&h.createElement("title",null,o),e.children)};return M1!==void 0?h.createElement(M1.Consumer,null,n=>t(n)):t(G$)}function jj(e){return mt({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 Cl(e){return mt({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 Nj(e){return mt({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 Dj(e){return mt({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 Ij(e){return mt({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 Pj(e){return mt({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 Lj(e){return mt({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 Fj(e){return mt({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 Z$(e){return mt({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 Bj(e){return mt({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 zj(e){return mt({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 Wj(e){return mt({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 Uj(e){return mt({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 Vj(e){return mt({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 Hj(e){return mt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"},child:[]}]})(e)}function qj(e){return mt({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 X$(e){return mt({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 Yj(e){return mt({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 Gj(e){return mt({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 Kj(e){return mt({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 Zj(e){return mt({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 Xj(e){return mt({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 Qj(e){return mt({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 Jj(e){return mt({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 e8(e){return mt({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 Q$(e){return mt({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 t8(e){return mt({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 J$(e){return mt({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 n8(e){return mt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},child:[]}]})(e)}function r8(e){return mt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M24 24H0V0h24v24z",opacity:".87"},child:[]},{tag:"path",attr:{d:"m19 15-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"},child:[]}]})(e)}function i8(e){return mt({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 sn=h.createContext({cookieDomain:"",axiosOptions:{},language:"",localizationContext:{},texts:{},ProjectIconComponent:{},chartColorPalette:void 0}),eS=h.createContext({show:!1,text:"",textSm:!1,showConfirm:(e,t)=>{},hideConfirm:()=>{}}),tS=h.createContext({isShown:!1,text:"",hidePrompt:()=>{},showPrompt:()=>{},resolveRef:{current:()=>{}},options:{input:"textarea",type:"text"},setOptions:()=>{}}),nS=()=>{const{isShown:e,text:t,showPrompt:n,hidePrompt:r,resolveRef:i,setOptions:o}=h.useContext(tS),a=h.useCallback(c=>{r(),i.current(c)},[r,i]),s=h.useCallback(async(c,l)=>(o(u=>({...u,...l})),n(c),new Promise(u=>{i.current=u})),[i,o,n]);return{isShown:e,text:t,prompt:s,onFinish:a}};let o8={data:""},a8=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||o8,s8=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,c8=/\/\*[^]*?\*\/| +/g,A1=/\n+/g,Bi=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];o[0]=="@"?o[1]=="i"?n=o+" "+a+";":r+=o[1]=="f"?Bi(a,o):o+"{"+Bi(a,o[1]=="k"?"":t)+"}":typeof a=="object"?r+=Bi(a,t?t.replace(/([^,])+/g,s=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,s):s?s+" "+c:c)):o):a!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Bi.p?Bi.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},ni={},rS=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+rS(e[n]);return t}return e},l8=(e,t,n,r,i)=>{let o=rS(e),a=ni[o]||(ni[o]=(c=>{let l=0,u=11;for(;l<c.length;)u=101*u+c.charCodeAt(l++)>>>0;return"go"+u})(o));if(!ni[a]){let c=o!==e?e:(l=>{let u,d,f=[{}];for(;u=s8.exec(l.replace(c8,""));)u[4]?f.shift():u[3]?(d=u[3].replace(A1," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][u[1]]=u[2].replace(A1," ").trim();return f[0]})(e);ni[a]=Bi(i?{["@keyframes "+a]:c}:c,n?"":"."+a)}let s=n&&ni.g?ni.g:null;return n&&(ni.g=ni[a]),((c,l,u,d)=>{d?l.data=l.data.replace(d,c):l.data.indexOf(c)===-1&&(l.data=u?c+l.data:l.data+c)})(ni[a],t,r,s),a},u8=(e,t,n)=>e.reduce((r,i,o)=>{let a=t[o];if(a&&a.call){let s=a(n),c=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=c?"."+c:s&&typeof s=="object"?s.props?"":Bi(s,""):s===!1?"":s}return r+i+(a??"")},"");function Ef(e){let t=this||{},n=e.call?e(t.p):e;return l8(n.unshift?n.raw?u8(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,a8(t.target),t.g,t.o,t.k)}let iS,Jm,eg;Ef.bind({g:1});let bi=Ef.bind({k:1});function d8(e,t,n,r){Bi.p=t,iS=e,Jm=n,eg=r}function co(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),c=s.className||i.className;n.p=Object.assign({theme:Jm&&Jm()},s),n.o=/ *go\d+/.test(c),s.className=Ef.apply(n,r)+(c?" "+c:"");let l=e;return e[0]&&(l=s.as||e,delete s.as),eg&&l[0]&&eg(s),iS(l,s)}return i}}var f8=e=>typeof e=="function",hd=(e,t)=>f8(e)?e(t):e,h8=(()=>{let e=0;return()=>(++e).toString()})(),oS=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),p8=20,Uu=new Map,m8=1e3,j1=e=>{if(Uu.has(e))return;let t=setTimeout(()=>{Uu.delete(e),Jo({type:4,toastId:e})},m8);Uu.set(e,t)},g8=e=>{let t=Uu.get(e);t&&clearTimeout(t)},tg=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,p8)};case 1:return t.toast.id&&g8(t.toast.id),{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case 2:let{toast:n}=t;return e.toasts.find(o=>o.id===n.id)?tg(e,{type:1,toast:n}):tg(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?j1(r):e.toasts.forEach(o=>{j1(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===r||r===void 0?{...o,visible:!1}:o)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+i}))}}},Vu=[],Hu={toasts:[],pausedAt:void 0},Jo=e=>{Hu=tg(Hu,e),Vu.forEach(t=>{t(Hu)})},v8={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},b8=(e={})=>{let[t,n]=h.useState(Hu);h.useEffect(()=>(Vu.push(n),()=>{let i=Vu.indexOf(n);i>-1&&Vu.splice(i,1)}),[t]);let r=t.toasts.map(i=>{var o,a;return{...e,...e[i.type],...i,duration:i.duration||((o=e[i.type])==null?void 0:o.duration)||(e==null?void 0:e.duration)||v8[i.type],style:{...e.style,...(a=e[i.type])==null?void 0:a.style,...i.style}}});return{...t,toasts:r}},y8=(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)||h8()}),$l=e=>(t,n)=>{let r=y8(t,e,n);return Jo({type:2,toast:r}),r.id},Qn=(e,t)=>$l("blank")(e,t);Qn.error=$l("error");Qn.success=$l("success");Qn.loading=$l("loading");Qn.custom=$l("custom");Qn.dismiss=e=>{Jo({type:3,toastId:e})};Qn.remove=e=>Jo({type:4,toastId:e});Qn.promise=(e,t,n)=>{let r=Qn.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(Qn.success(hd(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{Qn.error(hd(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var x8=(e,t)=>{Jo({type:1,toast:{id:e,height:t}})},w8=()=>{Jo({type:5,time:Date.now()})},_8=e=>{let{toasts:t,pausedAt:n}=b8(e);h.useEffect(()=>{if(n)return;let o=Date.now(),a=t.map(s=>{if(s.duration===1/0)return;let c=(s.duration||0)+s.pauseDuration-(o-s.createdAt);if(c<0){s.visible&&Qn.dismiss(s.id);return}return setTimeout(()=>Qn.dismiss(s.id),c)});return()=>{a.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=h.useCallback(()=>{n&&Jo({type:6,time:Date.now()})},[n]),i=h.useCallback((o,a)=>{let{reverseOrder:s=!1,gutter:c=8,defaultPosition:l}=a||{},u=t.filter(p=>(p.position||l)===(o.position||l)&&p.height),d=u.findIndex(p=>p.id===o.id),f=u.filter((p,g)=>g<d&&p.visible).length;return u.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:x8,startPause:w8,endPause:r,calculateOffset:i}}},C8=bi`
54
- from {
55
- transform: scale(0) rotate(45deg);
56
- opacity: 0;
57
- }
58
- to {
59
- transform: scale(1) rotate(45deg);
60
- opacity: 1;
61
- }`,$8=bi`
62
- from {
63
- transform: scale(0);
64
- opacity: 0;
65
- }
66
- to {
67
- transform: scale(1);
68
- opacity: 1;
69
- }`,S8=bi`
70
- from {
71
- transform: scale(0) rotate(90deg);
72
- opacity: 0;
73
- }
74
- to {
75
- transform: scale(1) rotate(90deg);
76
- opacity: 1;
77
- }`,E8=co("div")`
78
- width: 20px;
79
- opacity: 0;
80
- height: 20px;
81
- border-radius: 10px;
82
- background: ${e=>e.primary||"#ff4b4b"};
83
- position: relative;
84
- transform: rotate(45deg);
85
-
86
- animation: ${C8} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
87
- forwards;
88
- animation-delay: 100ms;
89
-
90
- &:after,
91
- &:before {
92
- content: '';
93
- animation: ${$8} 0.15s ease-out forwards;
94
- animation-delay: 150ms;
95
- position: absolute;
96
- border-radius: 3px;
97
- opacity: 0;
98
- background: ${e=>e.secondary||"#fff"};
99
- bottom: 9px;
100
- left: 4px;
101
- height: 2px;
102
- width: 12px;
103
- }
104
-
105
- &:before {
106
- animation: ${S8} 0.15s ease-out forwards;
107
- animation-delay: 180ms;
108
- transform: rotate(90deg);
109
- }
110
- `,T8=bi`
111
- from {
112
- transform: rotate(0deg);
113
- }
114
- to {
115
- transform: rotate(360deg);
116
- }
117
- `,k8=co("div")`
118
- width: 12px;
119
- height: 12px;
120
- box-sizing: border-box;
121
- border: 2px solid;
122
- border-radius: 100%;
123
- border-color: ${e=>e.secondary||"#e0e0e0"};
124
- border-right-color: ${e=>e.primary||"#616161"};
125
- animation: ${T8} 1s linear infinite;
126
- `,O8=bi`
127
- from {
128
- transform: scale(0) rotate(45deg);
129
- opacity: 0;
130
- }
131
- to {
132
- transform: scale(1) rotate(45deg);
133
- opacity: 1;
134
- }`,M8=bi`
135
- 0% {
136
- height: 0;
137
- width: 0;
138
- opacity: 0;
139
- }
140
- 40% {
141
- height: 0;
142
- width: 6px;
143
- opacity: 1;
144
- }
145
- 100% {
146
- opacity: 1;
147
- height: 10px;
148
- }`,R8=co("div")`
149
- width: 20px;
150
- opacity: 0;
151
- height: 20px;
152
- border-radius: 10px;
153
- background: ${e=>e.primary||"#61d345"};
154
- position: relative;
155
- transform: rotate(45deg);
156
-
157
- animation: ${O8} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
158
- forwards;
159
- animation-delay: 100ms;
160
- &:after {
161
- content: '';
162
- box-sizing: border-box;
163
- animation: ${M8} 0.2s ease-out forwards;
164
- opacity: 0;
165
- animation-delay: 200ms;
166
- position: absolute;
167
- border-right: 2px solid;
168
- border-bottom: 2px solid;
169
- border-color: ${e=>e.secondary||"#fff"};
170
- bottom: 6px;
171
- left: 6px;
172
- height: 10px;
173
- width: 6px;
174
- }
175
- `,A8=co("div")`
176
- position: absolute;
177
- `,j8=co("div")`
178
- position: relative;
179
- display: flex;
180
- justify-content: center;
181
- align-items: center;
182
- min-width: 20px;
183
- min-height: 20px;
184
- `,N8=bi`
185
- from {
186
- transform: scale(0.6);
187
- opacity: 0.4;
188
- }
189
- to {
190
- transform: scale(1);
191
- opacity: 1;
192
- }`,D8=co("div")`
193
- position: relative;
194
- transform: scale(0.6);
195
- opacity: 0.4;
196
- min-width: 20px;
197
- animation: ${N8} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
198
- forwards;
199
- `,I8=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?ie.createElement(D8,null,t):t:n==="blank"?null:ie.createElement(j8,null,ie.createElement(k8,{...r}),n!=="loading"&&ie.createElement(A8,null,n==="error"?ie.createElement(E8,{...r}):ie.createElement(R8,{...r})))},P8=e=>`
200
- 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
201
- 100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
202
- `,L8=e=>`
203
- 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
204
- 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
205
- `,F8="0%{opacity:0;} 100%{opacity:1;}",B8="0%{opacity:1;} 100%{opacity:0;}",z8=co("div")`
206
- display: flex;
207
- align-items: center;
208
- background: #fff;
209
- color: #363636;
210
- line-height: 1.3;
211
- will-change: transform;
212
- box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
213
- max-width: 350px;
214
- pointer-events: auto;
215
- padding: 8px 10px;
216
- border-radius: 8px;
217
- `,W8=co("div")`
218
- display: flex;
219
- justify-content: center;
220
- margin: 4px 10px;
221
- color: inherit;
222
- flex: 1 1 auto;
223
- white-space: pre-line;
224
- `,U8=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=oS()?[F8,B8]:[P8(n),L8(n)];return{animation:t?`${bi(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${bi(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},V8=ie.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?U8(e.position||t||"top-center",e.visible):{opacity:0},o=ie.createElement(I8,{toast:e}),a=ie.createElement(W8,{...e.ariaProps},hd(e.message,e));return ie.createElement(z8,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:o,message:a}):ie.createElement(ie.Fragment,null,o,a))});d8(ie.createElement);var H8=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let o=ie.useCallback(a=>{if(a){let s=()=>{let c=a.getBoundingClientRect().height;r(e,c)};s(),new MutationObserver(s).observe(a,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return ie.createElement("div",{ref:o,className:t,style:n},i)},q8=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:oS()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},Y8=Ef`
225
- z-index: 9999;
226
- > * {
227
- pointer-events: auto;
228
- }
229
- `,fu=16,G8=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:o,containerClassName:a})=>{let{toasts:s,handlers:c}=_8(n);return ie.createElement("div",{style:{position:"fixed",zIndex:9999,top:fu,left:fu,right:fu,bottom:fu,pointerEvents:"none",...o},className:a,onMouseEnter:c.startPause,onMouseLeave:c.endPause},s.map(l=>{let u=l.position||t,d=c.calculateOffset(l,{reverseOrder:e,gutter:r,defaultPosition:t}),f=q8(u,d);return ie.createElement(H8,{id:l.id,key:l.id,onHeightUpdate:c.updateHeight,className:l.visible?Y8:"",style:f},l.type==="custom"?hd(l.message,l):i?i(l):ie.createElement(V8,{toast:l,position:u}))}))},fa=Qn;const Tf=h.createContext({isLoading:!1,startLoading:e=>{},stopLoading:e=>{}});var ng;(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"})(ng||(ng={}));const aS=ng;var rg;(function(e){e[e.Odebrano=-2]="Odebrano",e[e.Zamitnuto=-1]="Zamitnuto",e[e.Nevyrizeno=0]="Nevyrizeno",e[e.Schvaleno=1]="Schvaleno"})(rg||(rg={}));const K8=rg,sS=h.createContext({user:null,userLoginState:{state:aS.LOGGED_OUT,user:null},loginUser:()=>Promise.resolve(!0),logoutUser:()=>{}}),kf=h.createContext({useMsal:!1,msalInstance:null,msalScopes:[],msalExtraScopes:[],getToken:async()=>null}),cS=h.createContext({delegation:null,setDelegation:()=>{},availableDelegations:null,setAvailableDelegations:()=>{},refreshAvailableDelegations:async()=>{}}),pd=e=>e==null?!0:!(typeof e=="object"||typeof e=="function"),lS=e=>{pd(e)||Object.keys(e).forEach(t=>{const n=e[t];if(pd(n))return;const r=Object.keys(n);r.includes("id")&&r.length===1&&n.id===null?e[t]=null:lS(n)})},uS=e=>Object.values(e).every(t=>t===null),Z8=e=>{const t={};return Object.entries(e).forEach(([n,r])=>{r&&typeof r=="object"&&uS(r)?t[n]=null:t[n]=r}),t},t0=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(o=>`${o.charAt(0).toLowerCase()}${o.slice(1)}`).join("."),errors:r.errors})):[]},X8=(e,t)=>{t0(t).forEach(r=>{e.setError(r.name,{message:r.errors,type:"server"},{shouldFocus:!0}),pd(e.getValues(r.name))||e.setError(`${r.name}.id`,{message:r.errors,type:"server"},{shouldFocus:!0})})},dS=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},fS=({heading:e,content:t,placement:n,children:r,trigger:i=["hover"],popoverClassName:o,small:a,delay:s,...c})=>{const l=i.includes("hover")&&!i.includes("focus")?[...i,"focus"]:i;return b.jsx(Y$,{placement:n,overlay:b.jsxs(Wu,{className:de("luminus-popover",{"luminus-popover-sm":a},o),onClick:u=>u.stopPropagation(),children:[e&&b.jsx(Wu.Header,{children:typeof e=="string"?b.jsx(jn,{variant:"h6",className:"text-primary",children:e}):e}),b.jsx(Wu.Body,{children:t})]}),trigger:l,rootClose:!0,show:c.controlled?c.isOpen:void 0,onToggle:c.controlled?u=>c.setIsOpen(u):void 0,delay:s,children:r})},Q8="_h1_14r4v_1",J8="_h3_14r4v_8",e7="_h6_14r4v_15",t7="_subtitle_14r4v_22",n7="_body_14r4v_29",r7="_body2_14r4v_36",i7="_caption_14r4v_43",o7="_form-label_14r4v_50",Mi={h1:Q8,h3:J8,h6:e7,subtitle:t7,body:n7,body2:r7,caption:i7,"form-label":"_form-label_14r4v_50",formLabel:o7},a7=({variant:e,className:t,children:n})=>{switch(e){case"h1":return b.jsx("h1",{className:de("luminus-text-primary luminus-h1",Mi.h1,t),children:n});case"h3":return b.jsx("h3",{className:de("luminus-text luminus-h3",Mi.h3,t),children:n});case"h6":return b.jsx("h6",{className:de("luminus-text luminus-h6",Mi.h6,t),children:n});case"subtitle":return b.jsx("div",{className:de("luminus-text luminus-subtitle",Mi.subtitle,t),children:n});case"body":return b.jsx("div",{className:de("luminus-text luminus-body",Mi.body,t),children:n});case"body2":return b.jsx("div",{className:de("luminus-text luminus-body2",Mi.body2,t),children:n});case"caption":return b.jsx("div",{className:de("luminus-text-muted luminus-caption",Mi.caption,t),children:n});case"form-label":return b.jsx("div",{className:de("luminus-text luminus-form-label",Mi.formLabel,t),children:n});default:return b.jsx(b.Fragment,{children:n})}},jn=({variant:e,className:t,children:n})=>b.jsx(a7,{variant:e,className:t,children:n}),n0=({text:e,placement:t,children:n,delay:r})=>b.jsx(fS,{content:b.jsx(jn,{variant:"body2",className:"text-center",children:e}),placement:t,delay:r,small:!0,children:n}),hS=e=>e.length<300?e:e.substring(0,300)+"...",Ua=e=>e<1024?`${e.toFixed(2)} bytes`:e>=1024&&e<1048576?`${(e/1024).toFixed(1)} kB`:`${(e/1048576).toFixed(1)} MB`;function Mc(e=" ",...t){return t.filter(n=>n!=null&&n.length>0).join(e)}const ig=(e,t)=>e.map(n=>`&${t}=${n}`).join("").substring(1),s7=(e,t)=>e===null?null:e.length<=t?e:e.slice(0,t)+"…";function c7(e){return e==null?"":$v(pf(e),"dd.MM.yyyy")}function Of(e){return(e==null?void 0:e.toString().split("T")[0])??""}function l7(e){return e==null?"":$v(pf(e),"dd.MM.yyyy HH:mm")}function u7(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const d7=(e,t)=>Mc(" ",e?`${e},`:void 0,t),f7=(e,t)=>`${t}${e!=null?` (${e})`:""}`,h7=(e,t)=>`[${e??""}] ${t??""}`,pS=e=>decodeURIComponent(atob(e).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")),mS=e=>{const t=pf(e);return!Number.isNaN(t.getTime())};function p7(){const e=new Date,t=new Date(e);return t.setHours(24,0,0,0),t.getTime()-e.getTime()}function m7(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function g7(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 v7(e,t){const n=new Date(e),r=new Date(t);return n.getTime()-r.getTime()}function b7(e=Date.now(),t=Date.now()){const n=new Date(e),r=new Date(t);n.setHours(10,0,0,0),r.setHours(0,0,0,0);const i=n.getTime()-r.getTime();return Math.floor(i/(1e3*3600*24))}function gS(e=new Date){const t=new Date(e);return t.setUTCDate(1),t}function vS(e=new Date){return s6(e)}function y7(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),gS(t)}function x7(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),vS(t)}function w7(e){const t=e??new Date().getFullYear(),n=new Date(t,0,1);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function _7(e){const t=e??new Date().getFullYear(),n=new Date(t,11,31);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function C7(e){return Of(e.toISOString())}function bS(e){const t=/filename\*?=(?:UTF-8''|")?(.*?)(?:''|")?(?:;|$)/i,n=e.match(t);if(n&&n[1]){let r=n[1];const i=/=\?([^?]+)\?([BbQq])\?([^?]+)\?=/,o=r.match(i);if(o){const a=o[2].toUpperCase(),s=o[3];try{return a==="B"?r=pS(s):a==="Q"&&(r=s.replace(/_/g," ").replace(/=([A-Fa-f0-9]{2})/g,(c,l)=>String.fromCharCode(parseInt(l,16)))),decodeURIComponent(r)}catch(c){return console.error("Error decoding MIME encoded filename:",c),r}}try{return decodeURIComponent(r)}catch(a){return console.error("Error decoding filename:",a),r}}return null}function md(e,t,n=!0){const r=URL.createObjectURL(e),i=document.createElement("a");i.href=r,i.setAttribute("style","display: none"),n?(window.open(r,"_blank","noopener,noreferrer"),setTimeout(()=>URL.revokeObjectURL(r),6e4)):(i.setAttribute("download",t),document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r))}const $7=["application/pdf","text/plain","text/html","application/xml","text/xml","image/jpeg","image/png","image/gif","image/webp","image/svg+xml","image/bmp","image/x-icon","audio/mpeg","audio/wav","audio/ogg","audio/mp4","video/mp4","video/webm","video/ogg"],S7=["pdf","txt","html","xml","jpg","jpeg","png","gif","webp","svg","bmp","ico","mp3","wav","ogg","m4a","mp4","webm","ogv"],yS=e=>$7.includes(e.type),xS=e=>S7.includes(e.toLowerCase());function E7(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 o=e.headers.get("Content-disposition");typeof o=="string"&&o.length>0&&(n=bS(e.headers.get("Content-disposition"))??n)}const r=yS(e.data),i=(t==null?void 0:t.tryToOpen)===void 0?localStorage.getItem("file-download-try-opening")!=="false":t.tryToOpen;md(e.data,n,r?i:!1)}function Va(e,t=Va.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}Va.characters={Á:"A",Ă:"A",Ắ:"A",Ặ:"A",Ằ:"A",Ẳ:"A",Ẵ:"A",Ǎ:"A",Â:"A",Ấ:"A",Ậ:"A",Ầ:"A",Ẩ:"A",Ẫ:"A",Ä:"A",Ǟ:"A",Ȧ:"A",Ǡ:"A",Ạ:"A",Ȁ:"A",À:"A",Ả:"A",Ȃ:"A",Ā:"A",Ą:"A",Å:"A",Ǻ:"A",Ḁ:"A","Ⱥ":"A",Ã:"A","Ꜳ":"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY",Ḃ:"B",Ḅ:"B",Ɓ:"B",Ḇ:"B","Ƀ":"B",Ƃ:"B",Ć:"C",Č:"C",Ç:"C",Ḉ:"C",Ĉ:"C",Ċ:"C",Ƈ:"C","Ȼ":"C",Ď:"D",Ḑ:"D",Ḓ:"D",Ḋ:"D",Ḍ:"D",Ɗ:"D",Ḏ:"D",Dz:"D",Dž:"D",Đ:"D",Ð:"D",Ƌ:"D",DZ:"DZ",DŽ:"DZ",É:"E",Ĕ:"E",Ě:"E",Ȩ:"E",Ḝ:"E",Ê:"E",Ế:"E",Ệ:"E",Ề:"E",Ể:"E",Ễ:"E",Ḙ:"E",Ë:"E",Ė:"E",Ẹ:"E",Ȅ:"E",È:"E",Ẻ:"E",Ȇ:"E",Ē:"E",Ḗ:"E",Ḕ:"E",Ę:"E","Ɇ":"E",Ẽ:"E",Ḛ:"E","Ꝫ":"ET",Ḟ:"F",Ƒ:"F",Ǵ:"G",Ğ:"G",Ǧ:"G",Ģ:"G",Ĝ:"G",Ġ:"G",Ɠ:"G",Ḡ:"G",Ǥ:"G",Ḫ:"H",Ȟ:"H",Ḩ:"H",Ĥ:"H","Ⱨ":"H",Ḧ:"H",Ḣ:"H",Ḥ:"H",Ħ:"H",Í:"I",Ĭ:"I",Ǐ:"I",Î:"I",Ï:"I",Ḯ:"I",İ:"I",Ị:"I",Ȉ:"I",Ì:"I",Ỉ:"I",Ȋ:"I",Ī:"I",Į:"I",Ɨ:"I",Ĩ:"I",Ḭ:"I",І:"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS",Ĵ:"J","Ɉ":"J",Ḱ:"K",Ǩ:"K",Ķ:"K","Ⱪ":"K","Ꝃ":"K",Ḳ:"K",Ƙ:"K",Ḵ:"K","Ꝁ":"K","Ꝅ":"K",Ĺ:"L","Ƚ":"L",Ľ:"L",Ļ:"L",Ḽ:"L",Ḷ:"L",Ḹ:"L","Ⱡ":"L","Ꝉ":"L",Ḻ:"L",Ŀ:"L","Ɫ":"L",Lj:"L",Ł:"L",LJ:"LJ",Ḿ:"M",Ṁ:"M",Ṃ:"M","Ɱ":"M",Ń:"N",Ň:"N",Ņ:"N",Ṋ:"N",Ṅ:"N",Ṇ:"N",Ǹ:"N",Ɲ:"N",Ṉ:"N","Ƞ":"N",Nj:"N",Ñ:"N",NJ:"NJ",Ó:"O",Ŏ:"O",Ǒ:"O",Ô:"O",Ố:"O",Ộ:"O",Ồ:"O",Ổ:"O",Ỗ:"O",Ö:"O",Ȫ:"O",Ȯ:"O",Ȱ:"O",Ọ:"O",Ő:"O",Ȍ:"O",Ò:"O",Ỏ:"O",Ơ:"O",Ớ:"O",Ợ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ȏ:"O","Ꝋ":"O","Ꝍ":"O",Ō:"O",Ṓ:"O",Ṑ:"O",Ɵ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Õ:"O",Ṍ:"O",Ṏ:"O",Ȭ:"O",Ƣ:"OI","Ꝏ":"OO",Ɛ:"E",Ɔ:"O",Ȣ:"OU",Ṕ:"P",Ṗ:"P","Ꝓ":"P",Ƥ:"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q",Ŕ:"R",Ř:"R",Ŗ:"R",Ṙ:"R",Ṛ:"R",Ṝ:"R",Ȑ:"R",Ȓ:"R",Ṟ:"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C",Ǝ:"E",Ś:"S",Ṥ:"S",Š:"S",Ṧ:"S",Ş:"S",Ŝ:"S",Ș:"S",Ṡ:"S",Ṣ:"S",Ṩ:"S",ß:"ss",Ť:"T",Ţ:"T",Ṱ:"T",Ț:"T","Ⱦ":"T",Ṫ:"T",Ṭ:"T",Ƭ:"T",Ṯ:"T",Ʈ:"T",Ŧ:"T","Ɐ":"A","Ꞁ":"L",Ɯ:"M","Ʌ":"V","Ꜩ":"TZ",Ú:"U",Ŭ:"U",Ǔ:"U",Û:"U",Ṷ:"U",Ü:"U",Ǘ:"U",Ǚ:"U",Ǜ:"U",Ǖ:"U",Ṳ:"U",Ụ:"U",Ű:"U",Ȕ:"U",Ù:"U",Ủ:"U",Ư:"U",Ứ:"U",Ự:"U",Ừ:"U",Ử:"U",Ữ:"U",Ȗ:"U",Ū:"U",Ṻ:"U",Ų:"U",Ů:"U",Ũ:"U",Ṹ:"U",Ṵ:"U","Ꝟ":"V",Ṿ:"V",Ʋ:"V",Ṽ:"V","Ꝡ":"VY",Ẃ:"W",Ŵ:"W",Ẅ:"W",Ẇ:"W",Ẉ:"W",Ẁ:"W","Ⱳ":"W",Ẍ:"X",Ẋ:"X",Ý:"Y",Ŷ:"Y",Ÿ:"Y",Ẏ:"Y",Ỵ:"Y",Ỳ:"Y",Ƴ:"Y",Ỷ:"Y","Ỿ":"Y",Ȳ:"Y","Ɏ":"Y",Ỹ:"Y",Ї:"YI",Ź:"Z",Ž:"Z",Ẑ:"Z","Ⱬ":"Z",Ż:"Z",Ẓ:"Z",Ȥ:"Z",Ẕ:"Z",Ƶ:"Z",Þ:"TH",IJ:"IJ",Œ:"OE","ᴀ":"A","ᴁ":"AE",ʙ:"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F",ɢ:"G",ʛ:"G",ʜ:"H",ɪ:"I",ʁ:"R","ᴊ":"J","ᴋ":"K",ʟ:"L","ᴌ":"L","ᴍ":"M",ɴ:"N","ᴏ":"O",ɶ:"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P",ʀ:"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W",ʏ:"Y","ᴢ":"Z",á:"a",ă:"a",ắ:"a",ặ:"a",ằ:"a",ẳ:"a",ẵ:"a",ǎ:"a",â:"a",ấ:"a",ậ:"a",ầ:"a",ẩ:"a",ẫ:"a",ä:"a",ǟ:"a",ȧ:"a",ǡ:"a",ạ:"a",ȁ:"a",à:"a",ả:"a",ȃ:"a",ā:"a",ą:"a","ᶏ":"a",ẚ:"a",å:"a",ǻ:"a",ḁ:"a","ⱥ":"a",ã:"a","ꜳ":"aa",æ:"ae",ǽ:"ae",ǣ:"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay",ḃ:"b",ḅ:"b",ɓ:"b",ḇ:"b","ᵬ":"b","ᶀ":"b",ƀ:"b",ƃ:"b",ɵ:"o",ć:"c",č:"c",ç:"c",ḉ:"c",ĉ:"c",ɕ:"c",ċ:"c",ƈ:"c","ȼ":"c",ď:"d",ḑ:"d",ḓ:"d","ȡ":"d",ḋ:"d",ḍ:"d",ɗ:"d","ᶑ":"d",ḏ:"d","ᵭ":"d","ᶁ":"d",đ:"d",ɖ:"d",ƌ:"d",ð:"d",ı:"i","ȷ":"j",ɟ:"j",ʄ:"j",dz:"dz",dž:"dz",é:"e",ĕ:"e",ě:"e",ȩ:"e",ḝ:"e",ê:"e",ế:"e",ệ:"e",ề:"e",ể:"e",ễ:"e",ḙ:"e",ë:"e",ė:"e",ẹ:"e",ȅ:"e",è:"e",ẻ:"e",ȇ:"e",ē:"e",ḗ:"e",ḕ:"e","ⱸ":"e",ę:"e","ᶒ":"e","ɇ":"e",ẽ:"e",ḛ:"e","ꝫ":"et",ḟ:"f",ƒ:"f","ᵮ":"f","ᶂ":"f",ǵ:"g",ğ:"g",ǧ:"g",ģ:"g",ĝ:"g",ġ:"g",ɠ:"g",ḡ:"g","ᶃ":"g",ǥ:"g",ḫ:"h",ȟ:"h",ḩ:"h",ĥ:"h","ⱨ":"h",ḧ:"h",ḣ:"h",ḥ:"h",ɦ:"h",ẖ:"h",ħ:"h",ƕ:"hv",í:"i",ĭ:"i",ǐ:"i",î:"i",ï:"i",ḯ:"i",ị:"i",ȉ:"i",ì:"i",ỉ:"i",ȋ:"i",ī:"i",į:"i","ᶖ":"i",ɨ:"i",ĩ:"i",ḭ:"i",і:"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is",ǰ:"j",ĵ:"j",ʝ:"j","ɉ":"j",ḱ:"k",ǩ:"k",ķ:"k","ⱪ":"k","ꝃ":"k",ḳ:"k",ƙ:"k",ḵ:"k","ᶄ":"k","ꝁ":"k","ꝅ":"k",ĺ:"l",ƚ:"l",ɬ:"l",ľ:"l",ļ:"l",ḽ:"l","ȴ":"l",ḷ:"l",ḹ:"l","ⱡ":"l","ꝉ":"l",ḻ:"l",ŀ:"l",ɫ:"l","ᶅ":"l",ɭ:"l",ł:"l",lj:"lj",ſ:"s","ẜ":"s",ẛ:"s","ẝ":"s",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m","ᵯ":"m","ᶆ":"m",ń:"n",ň:"n",ņ:"n",ṋ:"n","ȵ":"n",ṅ:"n",ṇ:"n",ǹ:"n",ɲ:"n",ṉ:"n",ƞ:"n","ᵰ":"n","ᶇ":"n",ɳ:"n",ñ:"n",nj:"nj",ó:"o",ŏ:"o",ǒ:"o",ô:"o",ố:"o",ộ:"o",ồ:"o",ổ:"o",ỗ:"o",ö:"o",ȫ:"o",ȯ:"o",ȱ:"o",ọ:"o",ő:"o",ȍ:"o",ò:"o",ỏ:"o",ơ:"o",ớ:"o",ợ:"o",ờ:"o",ở:"o",ỡ:"o",ȏ:"o","ꝋ":"o","ꝍ":"o","ⱺ":"o",ō:"o",ṓ:"o",ṑ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",õ:"o",ṍ:"o",ṏ:"o",ȭ:"o",ƣ:"oi","ꝏ":"oo",ɛ:"e","ᶓ":"e",ɔ:"o","ᶗ":"o",ȣ:"ou",ṕ:"p",ṗ:"p","ꝓ":"p",ƥ:"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q",ʠ:"q","ɋ":"q","ꝗ":"q",ŕ:"r",ř:"r",ŗ:"r",ṙ:"r",ṛ:"r",ṝ:"r",ȑ:"r",ɾ:"r","ᵳ":"r",ȓ:"r",ṟ:"r",ɼ:"r","ᵲ":"r","ᶉ":"r","ɍ":"r",ɽ:"r","ↄ":"c","ꜿ":"c",ɘ:"e",ɿ:"r",ś:"s",ṥ:"s",š:"s",ṧ:"s",ş:"s",ŝ:"s",ș:"s",ṡ:"s",ṣ:"s",ṩ:"s",ʂ:"s","ᵴ":"s","ᶊ":"s","ȿ":"s",ɡ:"g","ᴑ":"o","ᴓ":"o","ᴝ":"u",ť:"t",ţ:"t",ṱ:"t",ț:"t","ȶ":"t",ẗ:"t","ⱦ":"t",ṫ:"t",ṭ:"t",ƭ:"t",ṯ:"t","ᵵ":"t",ƫ:"t",ʈ:"t",ŧ:"t","ᵺ":"th",ɐ:"a","ᴂ":"ae",ǝ:"e","ᵷ":"g",ɥ:"h","ʮ":"h","ʯ":"h","ᴉ":"i",ʞ:"k","ꞁ":"l",ɯ:"m",ɰ:"m","ᴔ":"oe",ɹ:"r",ɻ:"r",ɺ:"r","ⱹ":"r",ʇ:"t",ʌ:"v",ʍ:"w",ʎ:"y","ꜩ":"tz",ú:"u",ŭ:"u",ǔ:"u",û:"u",ṷ:"u",ü:"u",ǘ:"u",ǚ:"u",ǜ:"u",ǖ:"u",ṳ:"u",ụ:"u",ű:"u",ȕ:"u",ù:"u",ủ:"u",ư:"u",ứ:"u",ự:"u",ừ:"u",ử:"u",ữ:"u",ȗ:"u",ū:"u",ṻ:"u",ų:"u","ᶙ":"u",ů:"u",ũ:"u",ṹ:"u",ṵ:"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v",ṿ:"v",ʋ:"v","ᶌ":"v","ⱱ":"v",ṽ:"v","ꝡ":"vy",ẃ:"w",ŵ:"w",ẅ:"w",ẇ:"w",ẉ:"w",ẁ:"w","ⱳ":"w",ẘ:"w",ẍ:"x",ẋ:"x","ᶍ":"x",ý:"y",ŷ:"y",ÿ:"y",ẏ:"y",ỵ:"y",ỳ:"y",ƴ:"y",ỷ:"y","ỿ":"y",ȳ:"y",ẙ:"y","ɏ":"y",ỹ:"y",ї:"yi",ź:"z",ž:"z",ẑ:"z",ʑ:"z","ⱬ":"z",ż:"z",ẓ:"z",ȥ:"z",ẕ:"z","ᵶ":"z","ᶎ":"z",ʐ:"z",ƶ:"z","ɀ":"z",þ:"th",ff:"ff",ffi:"ffi",ffl:"ffl",fi:"fi",fl:"fl",ij:"ij",œ:"oe",st:"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x",Ё:"YO",Й:"I",Ц:"TS",У:"U",К:"K",Е:"E",Н:"N",Г:"G",Ґ:"G",Ш:"SH",Щ:"SCH",З:"Z",Х:"H",Ъ:"'",ё:"yo",й:"i",ц:"ts",у:"u",к:"k",е:"e",н:"n",г:"g",ґ:"g",ш:"sh",щ:"sch",з:"z",х:"h",ъ:"'",Ф:"F",Ы:"I",В:"V",А:"a",П:"P",Р:"R",О:"O",Л:"L",Д:"D",Ж:"ZH",Э:"E",ф:"f",ы:"i",в:"v",а:"a",п:"p",р:"r",о:"o",л:"l",д:"d",ж:"zh",э:"e",Я:"Ya",Ч:"CH",С:"S",М:"M",И:"I",Т:"T",Ь:"'",Б:"B",Ю:"YU",я:"ya",ч:"ch",с:"s",м:"m",и:"i",т:"t",ь:"'",б:"b",ю:"yu"};const og=(e,t)=>t?e?Va(e).toLowerCase().includes(Va(t.toLowerCase())):!1:!0,wS=(e,t)=>t?e?Va(e).toLowerCase().startsWith(Va(t.toLowerCase())):!1:!0,r0=(e,t,n)=>{const r=localStorage.getItem("search-use-asterisk")!=="false",i=n!=null&&n.trimSpaces?t==null?void 0:t.replaceAll(" ",""):t,o=n!=null&&n.trimSpaces?e==null?void 0:e.replaceAll(" ",""):e;return i?r?i.startsWith("*")?og(o,i.substring(1)):wS(o,i):og(o,i):!0};function _S(e,t){return function(){return e.apply(t,arguments)}}const{toString:T7}=Object.prototype,{getPrototypeOf:i0}=Object,Mf=(e=>t=>{const n=T7.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Rr=e=>(e=e.toLowerCase(),t=>Mf(t)===e),Rf=e=>t=>typeof t===e,{isArray:cs}=Array,Rc=Rf("undefined");function k7(e){return e!==null&&!Rc(e)&&e.constructor!==null&&!Rc(e.constructor)&&Jn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const CS=Rr("ArrayBuffer");function O7(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&CS(e.buffer),t}const M7=Rf("string"),Jn=Rf("function"),$S=Rf("number"),Af=e=>e!==null&&typeof e=="object",R7=e=>e===!0||e===!1,qu=e=>{if(Mf(e)!=="object")return!1;const t=i0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},A7=Rr("Date"),j7=Rr("File"),N7=Rr("Blob"),D7=Rr("FileList"),I7=e=>Af(e)&&Jn(e.pipe),P7=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Jn(e.append)&&((t=Mf(e))==="formdata"||t==="object"&&Jn(e.toString)&&e.toString()==="[object FormData]"))},L7=Rr("URLSearchParams"),[F7,B7,z7,W7]=["ReadableStream","Request","Response","Headers"].map(Rr),U7=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Sl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),cs(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function SS(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const $o=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ES=e=>!Rc(e)&&e!==$o;function ag(){const{caseless:e}=ES(this)&&this||{},t={},n=(r,i)=>{const o=e&&SS(t,i)||i;qu(t[o])&&qu(r)?t[o]=ag(t[o],r):qu(r)?t[o]=ag({},r):cs(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Sl(arguments[r],n);return t}const V7=(e,t,n,{allOwnKeys:r}={})=>(Sl(t,(i,o)=>{n&&Jn(i)?e[o]=_S(i,n):e[o]=i},{allOwnKeys:r}),e),H7=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),q7=(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)},Y7=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&i0(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},G7=(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},K7=e=>{if(!e)return null;if(cs(e))return e;let t=e.length;if(!$S(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Z7=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&i0(Uint8Array)),X7=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Q7=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},J7=Rr("HTMLFormElement"),eN=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),N1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),tN=Rr("RegExp"),TS=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Sl(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},nN=e=>{TS(e,(t,n)=>{if(Jn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Jn(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+"'")})}})},rN=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return cs(e)?r(e):r(String(e).split(t)),n},iN=()=>{},oN=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Mp="abcdefghijklmnopqrstuvwxyz",D1="0123456789",kS={DIGIT:D1,ALPHA:Mp,ALPHA_DIGIT:Mp+Mp.toUpperCase()+D1},aN=(e=16,t=kS.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function sN(e){return!!(e&&Jn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const cN=e=>{const t=new Array(10),n=(r,i)=>{if(Af(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=cs(r)?[]:{};return Sl(r,(a,s)=>{const c=n(a,i+1);!Rc(c)&&(o[s]=c)}),t[i]=void 0,o}}return r};return n(e,0)},lN=Rr("AsyncFunction"),uN=e=>e&&(Af(e)||Jn(e))&&Jn(e.then)&&Jn(e.catch),OS=((e,t)=>e?setImmediate:t?((n,r)=>($o.addEventListener("message",({source:i,data:o})=>{i===$o&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),$o.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Jn($o.postMessage)),dN=typeof queueMicrotask<"u"?queueMicrotask.bind($o):typeof process<"u"&&process.nextTick||OS,ce={isArray:cs,isArrayBuffer:CS,isBuffer:k7,isFormData:P7,isArrayBufferView:O7,isString:M7,isNumber:$S,isBoolean:R7,isObject:Af,isPlainObject:qu,isReadableStream:F7,isRequest:B7,isResponse:z7,isHeaders:W7,isUndefined:Rc,isDate:A7,isFile:j7,isBlob:N7,isRegExp:tN,isFunction:Jn,isStream:I7,isURLSearchParams:L7,isTypedArray:Z7,isFileList:D7,forEach:Sl,merge:ag,extend:V7,trim:U7,stripBOM:H7,inherits:q7,toFlatObject:Y7,kindOf:Mf,kindOfTest:Rr,endsWith:G7,toArray:K7,forEachEntry:X7,matchAll:Q7,isHTMLForm:J7,hasOwnProperty:N1,hasOwnProp:N1,reduceDescriptors:TS,freezeMethods:nN,toObjectSet:rN,toCamelCase:eN,noop:iN,toFiniteNumber:oN,findKey:SS,global:$o,isContextDefined:ES,ALPHABET:kS,generateString:aN,isSpecCompliantForm:sN,toJSONObject:cN,isAsyncFn:lN,isThenable:uN,setImmediate:OS,asap:dN};function it(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}ce.inherits(it,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:ce.toJSONObject(this.config),code:this.code,status:this.status}}});const MS=it.prototype,RS={};["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=>{RS[e]={value:e}});Object.defineProperties(it,RS);Object.defineProperty(MS,"isAxiosError",{value:!0});it.from=(e,t,n,r,i,o)=>{const a=Object.create(MS);return ce.toFlatObject(e,a,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),it.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const fN=null;function sg(e){return ce.isPlainObject(e)||ce.isArray(e)}function AS(e){return ce.endsWith(e,"[]")?e.slice(0,-2):e}function I1(e,t,n){return e?e.concat(t).map(function(i,o){return i=AS(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function hN(e){return ce.isArray(e)&&!e.some(sg)}const pN=ce.toFlatObject(ce,{},null,function(t){return/^is[A-Z]/.test(t)});function jf(e,t,n){if(!ce.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ce.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!ce.isUndefined(v[m])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&ce.isSpecCompliantForm(t);if(!ce.isFunction(i))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(ce.isDate(g))return g.toISOString();if(!c&&ce.isBlob(g))throw new it("Blob is not supported. Use a Buffer instead.");return ce.isArrayBuffer(g)||ce.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,m,v){let x=g;if(g&&!v&&typeof g=="object"){if(ce.endsWith(m,"{}"))m=r?m:m.slice(0,-2),g=JSON.stringify(g);else if(ce.isArray(g)&&hN(g)||(ce.isFileList(g)||ce.endsWith(m,"[]"))&&(x=ce.toArray(g)))return m=AS(m),x.forEach(function(_,C){!(ce.isUndefined(_)||_===null)&&t.append(a===!0?I1([m],C,o):a===null?m:m+"[]",l(_))}),!1}return sg(g)?!0:(t.append(I1(v,m,o),l(g)),!1)}const d=[],f=Object.assign(pN,{defaultVisitor:u,convertValue:l,isVisitable:sg});function p(g,m){if(!ce.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(g),ce.forEach(g,function(x,w){(!(ce.isUndefined(x)||x===null)&&i.call(t,x,ce.isString(w)?w.trim():w,m,f))===!0&&p(x,m?m.concat(w):[w])}),d.pop()}}if(!ce.isObject(e))throw new TypeError("data must be an object");return p(e),t}function P1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function o0(e,t){this._pairs=[],e&&jf(e,this,t)}const jS=o0.prototype;jS.append=function(t,n){this._pairs.push([t,n])};jS.toString=function(t){const n=t?function(r){return t.call(this,r,P1)}:P1;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function mN(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function NS(e,t,n){if(!t)return e;const r=n&&n.encode||mN,i=n&&n.serialize;let o;if(i?o=i(t,n):o=ce.isURLSearchParams(t)?t.toString():new o0(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class L1{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){ce.forEach(this.handlers,function(r){r!==null&&t(r)})}}const DS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gN=typeof URLSearchParams<"u"?URLSearchParams:o0,vN=typeof FormData<"u"?FormData:null,bN=typeof Blob<"u"?Blob:null,yN={isBrowser:!0,classes:{URLSearchParams:gN,FormData:vN,Blob:bN},protocols:["http","https","file","blob","url","data"]},a0=typeof window<"u"&&typeof document<"u",cg=typeof navigator=="object"&&navigator||void 0,xN=a0&&(!cg||["ReactNative","NativeScript","NS"].indexOf(cg.product)<0),wN=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_N=a0&&window.location.href||"http://localhost",CN=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:a0,hasStandardBrowserEnv:xN,hasStandardBrowserWebWorkerEnv:wN,navigator:cg,origin:_N},Symbol.toStringTag,{value:"Module"})),Hn={...CN,...yN};function $N(e,t){return jf(e,new Hn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Hn.isNode&&ce.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function SN(e){return ce.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function EN(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function IS(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),c=o>=n.length;return a=!a&&ce.isArray(i)?i.length:a,c?(ce.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!ce.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&ce.isArray(i[a])&&(i[a]=EN(i[a])),!s)}if(ce.isFormData(e)&&ce.isFunction(e.entries)){const n={};return ce.forEachEntry(e,(r,i)=>{t(SN(r),i,n,0)}),n}return null}function TN(e,t,n){if(ce.isString(e))try{return(t||JSON.parse)(e),ce.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const El={transitional:DS,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=ce.isObject(t);if(o&&ce.isHTMLForm(t)&&(t=new FormData(t)),ce.isFormData(t))return i?JSON.stringify(IS(t)):t;if(ce.isArrayBuffer(t)||ce.isBuffer(t)||ce.isStream(t)||ce.isFile(t)||ce.isBlob(t)||ce.isReadableStream(t))return t;if(ce.isArrayBufferView(t))return t.buffer;if(ce.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return $N(t,this.formSerializer).toString();if((s=ce.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return jf(s?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),TN(t)):t}],transformResponse:[function(t){const n=this.transitional||El.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(ce.isResponse(t)||ce.isReadableStream(t))return t;if(t&&ce.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?it.from(s,it.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:Hn.classes.FormData,Blob:Hn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ce.forEach(["delete","get","head","post","put","patch"],e=>{El.headers[e]={}});const kN=ce.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"]),ON=e=>{const t={};let n,r,i;return e&&e.split(`
230
- `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&kN[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},F1=Symbol("internals");function Ls(e){return e&&String(e).trim().toLowerCase()}function Yu(e){return e===!1||e==null?e:ce.isArray(e)?e.map(Yu):String(e)}function MN(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 RN=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rp(e,t,n,r,i){if(ce.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ce.isString(t)){if(ce.isString(r))return t.indexOf(r)!==-1;if(ce.isRegExp(r))return r.test(t)}}function AN(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function jN(e,t){const n=ce.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class qn{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,c,l){const u=Ls(c);if(!u)throw new Error("header name must be a non-empty string");const d=ce.findKey(i,u);(!d||i[d]===void 0||l===!0||l===void 0&&i[d]!==!1)&&(i[d||c]=Yu(s))}const a=(s,c)=>ce.forEach(s,(l,u)=>o(l,u,c));if(ce.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(ce.isString(t)&&(t=t.trim())&&!RN(t))a(ON(t),n);else if(ce.isHeaders(t))for(const[s,c]of t.entries())o(c,s,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=Ls(t),t){const r=ce.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return MN(i);if(ce.isFunction(n))return n.call(this,i,r);if(ce.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ls(t),t){const r=ce.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Rp(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=Ls(a),a){const s=ce.findKey(r,a);s&&(!n||Rp(r,r[s],s,n))&&(delete r[s],i=!0)}}return ce.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Rp(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return ce.forEach(this,(i,o)=>{const a=ce.findKey(r,o);if(a){n[a]=Yu(i),delete n[o];return}const s=t?AN(o):String(o).trim();s!==o&&delete n[o],n[s]=Yu(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ce.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ce.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
231
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[F1]=this[F1]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=Ls(a);r[s]||(jN(i,a),r[s]=!0)}return ce.isArray(t)?t.forEach(o):o(t),this}}qn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ce.reduceDescriptors(qn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ce.freezeMethods(qn);function Ap(e,t){const n=this||El,r=t||n,i=qn.from(r.headers);let o=r.data;return ce.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function PS(e){return!!(e&&e.__CANCEL__)}function ls(e,t,n){it.call(this,e??"canceled",it.ERR_CANCELED,t,n),this.name="CanceledError"}ce.inherits(ls,it,{__CANCEL__:!0});function LS(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new it("Request failed with status code "+n.status,[it.ERR_BAD_REQUEST,it.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function NN(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function DN(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=r[o];a||(a=l),n[i]=c,r[i]=l;let d=o,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),l-a<t)return;const p=u&&l-u;return p?Math.round(f*1e3/p):void 0}}function IN(e,t){let n=0,r=1e3/t,i,o;const a=(l,u=Date.now())=>{n=u,i=null,o&&(clearTimeout(o),o=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=r?a(l,u):(i=l,o||(o=setTimeout(()=>{o=null,a(i)},r-d)))},()=>i&&a(i)]}const gd=(e,t,n=3)=>{let r=0;const i=DN(50,250);return IN(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,c=a-r,l=i(c),u=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:c,rate:l||void 0,estimated:l&&s&&u?(s-a)/l:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},B1=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},z1=e=>(...t)=>ce.asap(()=>e(...t)),PN=Hn.hasStandardBrowserEnv?function(){const t=Hn.navigator&&/(msie|trident)/i.test(Hn.navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){const s=ce.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),LN=Hn.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];ce.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ce.isString(r)&&a.push("path="+r),ce.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.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 FN(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function BN(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function FS(e,t){return e&&!FN(t)?BN(e,t):t}const W1=e=>e instanceof qn?{...e}:e;function zo(e,t){t=t||{};const n={};function r(l,u,d){return ce.isPlainObject(l)&&ce.isPlainObject(u)?ce.merge.call({caseless:d},l,u):ce.isPlainObject(u)?ce.merge({},u):ce.isArray(u)?u.slice():u}function i(l,u,d){if(ce.isUndefined(u)){if(!ce.isUndefined(l))return r(void 0,l,d)}else return r(l,u,d)}function o(l,u){if(!ce.isUndefined(u))return r(void 0,u)}function a(l,u){if(ce.isUndefined(u)){if(!ce.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function s(l,u,d){if(d in t)return r(l,u);if(d in e)return r(void 0,l)}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(l,u)=>i(W1(l),W1(u),!0)};return ce.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=c[u]||i,f=d(e[u],t[u],u);ce.isUndefined(f)&&d!==s||(n[u]=f)}),n}const BS=e=>{const t=zo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=qn.from(a),t.url=NS(FS(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let c;if(ce.isFormData(n)){if(Hn.hasStandardBrowserEnv||Hn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[l,...u]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([l||"multipart/form-data",...u].join("; "))}}if(Hn.hasStandardBrowserEnv&&(r&&ce.isFunction(r)&&(r=r(t)),r||r!==!1&&PN(t.url))){const l=i&&o&&LN.read(o);l&&a.set(i,l)}return t},zN=typeof XMLHttpRequest<"u",WN=zN&&function(e){return new Promise(function(n,r){const i=BS(e);let o=i.data;const a=qn.from(i.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:l}=i,u,d,f,p,g;function m(){p&&p(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function x(){if(!v)return;const _=qn.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),y={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:_,config:e,request:v};LS(function(E){n(E),m()},function(E){r(E),m()},y),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 it("Request aborted",it.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new it("Network Error",it.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const y=i.transitional||DS;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new it(C,y.clarifyTimeoutError?it.ETIMEDOUT:it.ECONNABORTED,e,v)),v=null},o===void 0&&a.setContentType(null),"setRequestHeader"in v&&ce.forEach(a.toJSON(),function(C,y){v.setRequestHeader(y,C)}),ce.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),l&&([f,g]=gd(l,!0),v.addEventListener("progress",f)),c&&v.upload&&([d,p]=gd(c),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(u=_=>{v&&(r(!_||_.type?new ls(null,e,v):_),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const w=NN(i.url);if(w&&Hn.protocols.indexOf(w)===-1){r(new it("Unsupported protocol "+w+":",it.ERR_BAD_REQUEST,e));return}v.send(o||null)})},UN=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(l){if(!i){i=!0,s();const u=l instanceof Error?l:this.reason;r.abort(u instanceof it?u:new ls(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,o(new it(`timeout ${t} of ms exceeded`,it.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),e=null)};e.forEach(l=>l.addEventListener("abort",o));const{signal:c}=r;return c.unsubscribe=()=>ce.asap(s),c}},VN=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},HN=async function*(e,t){for await(const n of qN(e))yield*VN(n,t)},qN=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},U1=(e,t,n,r)=>{const i=HN(e,t);let o=0,a,s=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await i.next();if(l){s(),c.close();return}let d=u.byteLength;if(n){let f=o+=d;n(f)}c.enqueue(new Uint8Array(u))}catch(l){throw s(l),l}},cancel(c){return s(c),i.return()}},{highWaterMark:2})},Nf=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",zS=Nf&&typeof ReadableStream=="function",YN=Nf&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),WS=(e,...t)=>{try{return!!e(...t)}catch{return!1}},GN=zS&&WS(()=>{let e=!1;const t=new Request(Hn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),V1=64*1024,lg=zS&&WS(()=>ce.isReadableStream(new Response("").body)),vd={stream:lg&&(e=>e.body)};Nf&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!vd[t]&&(vd[t]=ce.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new it(`Response type '${t}' is not supported`,it.ERR_NOT_SUPPORT,r)})})})(new Response);const KN=async e=>{if(e==null)return 0;if(ce.isBlob(e))return e.size;if(ce.isSpecCompliantForm(e))return(await new Request(Hn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ce.isArrayBufferView(e)||ce.isArrayBuffer(e))return e.byteLength;if(ce.isURLSearchParams(e)&&(e=e+""),ce.isString(e))return(await YN(e)).byteLength},ZN=async(e,t)=>{const n=ce.toFiniteNumber(e.getContentLength());return n??KN(t)},XN=Nf&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:f}=BS(e);l=l?(l+"").toLowerCase():"text";let p=UN([i,o&&o.toAbortSignal()],a),g;const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let v;try{if(c&&GN&&n!=="get"&&n!=="head"&&(v=await ZN(u,r))!==0){let y=new Request(t,{method:"POST",body:r,duplex:"half"}),$;if(ce.isFormData(r)&&($=y.headers.get("content-type"))&&u.setContentType($),y.body){const[E,k]=B1(v,gd(z1(c)));r=U1(y.body,V1,E,k)}}ce.isString(d)||(d=d?"include":"omit");const x="credentials"in Request.prototype;g=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:x?d:void 0});let w=await fetch(g);const _=lg&&(l==="stream"||l==="response");if(lg&&(s||_&&m)){const y={};["status","statusText","headers"].forEach(T=>{y[T]=w[T]});const $=ce.toFiniteNumber(w.headers.get("content-length")),[E,k]=s&&B1($,gd(z1(s),!0))||[];w=new Response(U1(w.body,V1,E,()=>{k&&k(),m&&m()}),y)}l=l||"text";let C=await vd[ce.findKey(vd,l)||"text"](w,e);return!_&&m&&m(),await new Promise((y,$)=>{LS(y,$,{data:C,headers:qn.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:g})})}catch(x){throw m&&m(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new it("Network Error",it.ERR_NETWORK,e,g),{cause:x.cause||x}):it.from(x,x&&x.code,e,g)}}),ug={http:fN,xhr:WN,fetch:XN};ce.forEach(ug,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const H1=e=>`- ${e}`,QN=e=>ce.isFunction(e)||e===null||e===!1,US={getAdapter:e=>{e=ce.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let a;if(r=n,!QN(n)&&(r=ug[(a=String(n)).toLowerCase()],r===void 0))throw new it(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
232
- `+o.map(H1).join(`
233
- `):" "+H1(o[0]):"as no adapter specified";throw new it("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:ug};function jp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ls(null,e)}function q1(e){return jp(e),e.headers=qn.from(e.headers),e.data=Ap.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),US.getAdapter(e.adapter||El.adapter)(e).then(function(r){return jp(e),r.data=Ap.call(e,e.transformResponse,r),r.headers=qn.from(r.headers),r},function(r){return PS(r)||(jp(e),r&&r.response&&(r.response.data=Ap.call(e,e.transformResponse,r.response),r.response.headers=qn.from(r.response.headers))),Promise.reject(r)})}const VS="1.7.7",s0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{s0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Y1={};s0.transitional=function(t,n,r){function i(o,a){return"[Axios v"+VS+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new it(i(a," has been removed"+(n?" in "+n:"")),it.ERR_DEPRECATED);return n&&!Y1[a]&&(Y1[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};function JN(e,t,n){if(typeof e!="object")throw new it("options must be an object",it.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],c=s===void 0||a(s,o,e);if(c!==!0)throw new it("option "+o+" must be "+c,it.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new it("Unknown option "+o,it.ERR_BAD_OPTION)}}const dg={assertOptions:JN,validators:s0},Ri=dg.validators;class jo{constructor(t){this.defaults=t,this.interceptors={request:new L1,response:new L1}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
234
- `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=zo(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&dg.assertOptions(r,{silentJSONParsing:Ri.transitional(Ri.boolean),forcedJSONParsing:Ri.transitional(Ri.boolean),clarifyTimeoutError:Ri.transitional(Ri.boolean)},!1),i!=null&&(ce.isFunction(i)?n.paramsSerializer={serialize:i}:dg.assertOptions(i,{encode:Ri.function,serialize:Ri.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&ce.merge(o.common,o[n.method]);o&&ce.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=qn.concat(a,o);const s=[];let c=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(c=c&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let u,d=0,f;if(!c){const g=[q1.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,l),f=g.length,u=Promise.resolve(n);d<f;)u=u.then(g[d++],g[d++]);return u}f=s.length;let p=n;for(d=0;d<f;){const g=s[d++],m=s[d++];try{p=g(p)}catch(v){m.call(this,v);break}}try{u=q1.call(this,p)}catch(g){return Promise.reject(g)}for(d=0,f=l.length;d<f;)u=u.then(l[d++],l[d++]);return u}getUri(t){t=zo(this.defaults,t);const n=FS(t.baseURL,t.url);return NS(n,t.params,t.paramsSerializer)}}ce.forEach(["delete","get","head","options"],function(t){jo.prototype[t]=function(n,r){return this.request(zo(r||{},{method:t,url:n,data:(r||{}).data}))}});ce.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(zo(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}jo.prototype[t]=n(),jo.prototype[t+"Form"]=n(!0)});class c0{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new ls(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new c0(function(i){t=i}),cancel:t}}}function eD(e){return function(n){return e.apply(null,n)}}function tD(e){return ce.isObject(e)&&e.isAxiosError===!0}const fg={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(fg).forEach(([e,t])=>{fg[t]=e});function HS(e){const t=new jo(e),n=_S(jo.prototype.request,t);return ce.extend(n,jo.prototype,t,{allOwnKeys:!0}),ce.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return HS(zo(e,i))},n}const tn=HS(El);tn.Axios=jo;tn.CanceledError=ls;tn.CancelToken=c0;tn.isCancel=PS;tn.VERSION=VS;tn.toFormData=jf;tn.AxiosError=it;tn.Cancel=tn.CanceledError;tn.all=function(t){return Promise.all(t)};tn.spread=eD;tn.isAxiosError=tD;tn.mergeConfig=zo;tn.AxiosHeaders=qn;tn.formToJSON=e=>IS(ce.isHTMLForm(e)?new FormData(e):e);tn.getAdapter=US.getAdapter;tn.HttpStatusCode=fg;tn.default=tn;var hu={};/*!
235
- * cookie
236
- * Copyright(c) 2012-2014 Roman Shtylman
237
- * Copyright(c) 2015 Douglas Christopher Wilson
238
- * MIT Licensed
239
- */var G1;function nD(){if(G1)return hu;G1=1,hu.parse=a,hu.serialize=l;var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,r=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/;function a(p,g){if(typeof p!="string")throw new TypeError("argument str must be a string");var m={},v=p.length;if(v<2)return m;var x=g&&g.decode||u,w=0,_=0,C=0;do{if(_=p.indexOf("=",w),_===-1)break;if(C=p.indexOf(";",w),C===-1)C=v;else if(_>C){w=p.lastIndexOf(";",_-1)+1;continue}var y=s(p,w,_),$=c(p,_,y),E=p.slice(y,$);if(!t.call(m,E)){var k=s(p,_+1,C),T=c(p,C,k);p.charCodeAt(k)===34&&p.charCodeAt(T-1)===34&&(k++,T--);var O=p.slice(k,T);m[E]=f(O,x)}w=C+1}while(w<v);return m}function s(p,g,m){do{var v=p.charCodeAt(g);if(v!==32&&v!==9)return g}while(++g<m);return m}function c(p,g,m){for(;g>m;){var v=p.charCodeAt(--g);if(v!==32&&v!==9)return g+1}return m}function l(p,g,m){var v=m&&m.encode||encodeURIComponent;if(typeof v!="function")throw new TypeError("option encode is invalid");if(!n.test(p))throw new TypeError("argument name is invalid");var x=v(g);if(!r.test(x))throw new TypeError("argument val is invalid");var w=p+"="+x;if(!m)return w;if(m.maxAge!=null){var _=Math.floor(m.maxAge);if(!isFinite(_))throw new TypeError("option maxAge is invalid");w+="; Max-Age="+_}if(m.domain){if(!i.test(m.domain))throw new TypeError("option domain is invalid");w+="; Domain="+m.domain}if(m.path){if(!o.test(m.path))throw new TypeError("option path is invalid");w+="; Path="+m.path}if(m.expires){var C=m.expires;if(!d(C)||isNaN(C.valueOf()))throw new TypeError("option expires is invalid");w+="; Expires="+C.toUTCString()}if(m.httpOnly&&(w+="; HttpOnly"),m.secure&&(w+="; Secure"),m.partitioned&&(w+="; Partitioned"),m.priority){var y=typeof m.priority=="string"?m.priority.toLowerCase():m.priority;switch(y){case"low":w+="; Priority=Low";break;case"medium":w+="; Priority=Medium";break;case"high":w+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(m.sameSite){var $=typeof m.sameSite=="string"?m.sameSite.toLowerCase():m.sameSite;switch($){case!0:w+="; SameSite=Strict";break;case"lax":w+="; SameSite=Lax";break;case"strict":w+="; SameSite=Strict";break;case"none":w+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return w}function u(p){return p.indexOf("%")!==-1?decodeURIComponent(p):p}function d(p){return e.call(p)==="[object Date]"}function f(p,g){try{return g(p)}catch{return p}}return hu}var Gu=nD();function rD(){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 iD(e){return typeof e=="string"?Gu.parse(e):typeof e=="object"&&e!==null?e:{}}function Np(e,t={}){const n=oD(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function oD(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class aD{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=Gu.parse(document.cookie),this._checkChanges(i)};const r=typeof document>"u"?"":document.cookie;this.cookies=iD(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=rD()}_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:Np(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),Np(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=Np(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const i=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:i}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=Gu.serialize(t,i,r)),this._emitChange({name:t,value:n,options:r})}remove(t,n){const r=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=Gu.serialize(t,"",r)),this._emitChange({name:t,value:void 0,options:n})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const sD=ie.createContext(new aD);var pu={exports:{}},Nt={};/** @license React v16.13.1
240
- * react-is.production.min.js
241
- *
242
- * Copyright (c) Facebook, Inc. and its affiliates.
243
- *
244
- * This source code is licensed under the MIT license found in the
245
- * LICENSE file in the root directory of this source tree.
246
- */var K1;function cD(){if(K1)return Nt;K1=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=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 _(y){if(typeof y=="object"&&y!==null){var $=y.$$typeof;switch($){case t:switch(y=y.type,y){case c:case l:case r:case o:case i:case d:return y;default:switch(y=y&&y.$$typeof,y){case s:case u:case g:case p:case a:return y;default:return $}}case n:return $}}}function C(y){return _(y)===l}return Nt.AsyncMode=c,Nt.ConcurrentMode=l,Nt.ContextConsumer=s,Nt.ContextProvider=a,Nt.Element=t,Nt.ForwardRef=u,Nt.Fragment=r,Nt.Lazy=g,Nt.Memo=p,Nt.Portal=n,Nt.Profiler=o,Nt.StrictMode=i,Nt.Suspense=d,Nt.isAsyncMode=function(y){return C(y)||_(y)===c},Nt.isConcurrentMode=C,Nt.isContextConsumer=function(y){return _(y)===s},Nt.isContextProvider=function(y){return _(y)===a},Nt.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},Nt.isForwardRef=function(y){return _(y)===u},Nt.isFragment=function(y){return _(y)===r},Nt.isLazy=function(y){return _(y)===g},Nt.isMemo=function(y){return _(y)===p},Nt.isPortal=function(y){return _(y)===n},Nt.isProfiler=function(y){return _(y)===o},Nt.isStrictMode=function(y){return _(y)===i},Nt.isSuspense=function(y){return _(y)===d},Nt.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===l||y===o||y===i||y===d||y===f||typeof y=="object"&&y!==null&&(y.$$typeof===g||y.$$typeof===p||y.$$typeof===a||y.$$typeof===s||y.$$typeof===u||y.$$typeof===v||y.$$typeof===x||y.$$typeof===w||y.$$typeof===m)},Nt.typeOf=_,Nt}var Dt={};/** @license React v16.13.1
247
- * react-is.development.js
248
- *
249
- * Copyright (c) Facebook, Inc. and its affiliates.
250
- *
251
- * This source code is licensed under the MIT license found in the
252
- * LICENSE file in the root directory of this source tree.
253
- */var Z1;function lD(){return Z1||(Z1=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=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 _(R){return typeof R=="string"||typeof R=="function"||R===r||R===l||R===o||R===i||R===d||R===f||typeof R=="object"&&R!==null&&(R.$$typeof===g||R.$$typeof===p||R.$$typeof===a||R.$$typeof===s||R.$$typeof===u||R.$$typeof===v||R.$$typeof===x||R.$$typeof===w||R.$$typeof===m)}function C(R){if(typeof R=="object"&&R!==null){var Y=R.$$typeof;switch(Y){case t:var Q=R.type;switch(Q){case c:case l:case r:case o:case i:case d:return Q;default:var te=Q&&Q.$$typeof;switch(te){case s:case u:case g:case p:case a:return te;default:return Y}}case n:return Y}}}var y=c,$=l,E=s,k=a,T=t,O=u,S=r,M=g,A=p,j=n,P=o,I=i,L=d,V=!1;function z(R){return V||(V=!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.")),D(R)||C(R)===c}function D(R){return C(R)===l}function W(R){return C(R)===s}function G(R){return C(R)===a}function J(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function Z(R){return C(R)===u}function X(R){return C(R)===r}function ee(R){return C(R)===g}function ne(R){return C(R)===p}function F(R){return C(R)===n}function N(R){return C(R)===o}function B(R){return C(R)===i}function H(R){return C(R)===d}Dt.AsyncMode=y,Dt.ConcurrentMode=$,Dt.ContextConsumer=E,Dt.ContextProvider=k,Dt.Element=T,Dt.ForwardRef=O,Dt.Fragment=S,Dt.Lazy=M,Dt.Memo=A,Dt.Portal=j,Dt.Profiler=P,Dt.StrictMode=I,Dt.Suspense=L,Dt.isAsyncMode=z,Dt.isConcurrentMode=D,Dt.isContextConsumer=W,Dt.isContextProvider=G,Dt.isElement=J,Dt.isForwardRef=Z,Dt.isFragment=X,Dt.isLazy=ee,Dt.isMemo=ne,Dt.isPortal=F,Dt.isProfiler=N,Dt.isStrictMode=B,Dt.isSuspense=H,Dt.isValidElementType=_,Dt.typeOf=C}()),Dt}var X1;function uD(){return X1||(X1=1,process.env.NODE_ENV==="production"?pu.exports=cD():pu.exports=lD()),pu.exports}var Dp,Q1;function dD(){if(Q1)return Dp;Q1=1;var e=uD(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=i;function a(g){return e.isMemo(g)?i:o[g.$$typeof]||t}var s=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function p(g,m,v){if(typeof m!="string"){if(f){var x=d(m);x&&x!==f&&p(g,x,v)}var w=c(m);l&&(w=w.concat(l(m)));for(var _=a(g),C=a(m),y=0;y<w.length;++y){var $=w[y];if(!n[$]&&!(v&&v[$])&&!(C&&C[$])&&!(_&&_[$])){var E=u(m,$);try{s(g,$,E)}catch{}}}}return g}return Dp=p,Dp}dD();function fD(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function l0(e,t){const n=h.useContext(sD);if(!n)throw new Error("Missing <CookiesProvider>");const i=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[o,a]=h.useState(()=>n.getAll(i));fD()&&h.useLayoutEffect(()=>{function u(){const d=n.getAll(i);hD(e||null,d,o)&&a(d)}return n.addChangeListener(u),()=>{n.removeChangeListener(u)}},[n,o]);const s=h.useMemo(()=>n.set.bind(n),[n]),c=h.useMemo(()=>n.remove.bind(n),[n]),l=h.useMemo(()=>n.update.bind(n),[n]);return[o,s,c,l]}function hD(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const pD=()=>{const{axiosOptions:e,cookieDomain:t}=h.useContext(sn),[,n,r]=l0(["Authorization"]),i=tn.create(e),o=h.useCallback(()=>{const c=localStorage.getItem("token");return c!==null&&c.length>0},[]),a=h.useCallback(async(c,l)=>i.post("/user/login",{kid:c,password:l}).then(u=>(localStorage.setItem("token",u.data),n("Authorization",u.data,{path:"/",secure:!0,sameSite:"none",domain:t,expires:dC(new Date(Date.now()),24)}),u.data)).catch(u=>(console.log(u),null)),[i,n,t]),s=h.useCallback(()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),r("Authorization")},[r]);return{isAuthenticated:o,login:a,logout:s}},mD=()=>{const[,,e]=l0(["Authorization"]),{msalScopes:t,msalExtraScopes:n}=h.useContext(kf),{instance:r,inProgress:i}=Uy.useMsal(),o=Uy.useIsAuthenticated(),a=h.useCallback(()=>o,[o]),s=h.useCallback(()=>!a()&&i!==qM.InteractionStatus.None,[a,i]),c=h.useCallback(async()=>r.loginRedirect({scopes:t,extraScopesToConsent:n}).then(()=>"").catch(()=>null),[r,t,n]),l=h.useCallback(()=>{r.logout(),localStorage.removeItem("user"),e("Authorization")},[e,r]);return{isAuthenticated:a,isAuthenticating:s,login:c,logout:l}},qS=()=>{const{useMsal:e}=h.useContext(kf),t=pD(),n=mD();return{isAuthenticated:e?n.isAuthenticated:t.isAuthenticated,isAuthenticating:e?n.isAuthenticating:()=>!1,login:e?n.login:t.login,logout:e?n.logout:t.logout}},gD="_toast_1s57i_1",Fs={toast:gD},vD=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}},Df=()=>({addNotification:h.useCallback((t,n)=>{const r=hS(t),i=vD(n),o=b.jsxs(b.Fragment,{children:[r,b.jsx(Q$,{onClick:()=>fa.dismiss(r),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});switch(n){case"success":{fa(o,{id:r,duration:i,position:"top-center",icon:b.jsx(Jj,{size:12}),className:de("luminus-toast-success rounded shadow bg-success",Fs.toast)});break}case"danger":{fa(o,{id:r,duration:i,position:"top-center",icon:b.jsx(Uj,{size:12}),className:de("luminus-toast-danger rounded shadow bg-danger",Fs.toast)});break}case"warning":{fa(o,{id:r,duration:i,position:"top-center",icon:b.jsx(Fj,{size:12}),className:de("luminus-toast-warning rounded shadow bg-warning",Fs.toast)});break}case"info":{fa(o,{id:r,duration:i,position:"top-center",icon:b.jsx(zj,{size:12}),className:de("luminus-toast-info rounded shadow bg-info",Fs.toast)});break}case"prompt":{fa(o,{id:r,duration:i,position:"top-center",icon:b.jsx(Wj,{size:12}),className:de("luminus-toast-prompt rounded shadow bg-light",Fs.toast)});break}}},[])}),bD=tn.CancelToken,If=e=>{const{authenticated:t=!0,differentBaseUrl:n,silent:r=!1,customToken:i,ignoreDelegation:o,noToastOnStatus:a}={...e},{language:s,axiosOptions:c,texts:{axios:l}}=h.useContext(sn),{delegation:u}=h.useContext(cS),{getToken:d}=h.useContext(kf),f=h.useMemo(()=>(u==null?void 0:u.id)??null,[u==null?void 0:u.id]),{addNotification:p}=Df(),{isAuthenticating:g}=qS(),m=h.useMemo(()=>tn.create(c),[c]),v=h.useCallback(async w=>{var C,y,$;if(t&&!w.headers.Authorization){if(g())return console.log("Authentication in progress, waiting for token..."),Promise.reject(new Error("Authentication in progress"));const E=i?{token:i,expiresOn:dC(new Date(Date.now()),1)}:await d();if(!E)return console.log("No bearer token"),Promise.reject(new Error("No bearer token"));if(gC(E.expiresOn))return console.log("Token expired"),Promise.reject(new Error("Token expired"));w.headers.Authorization=`Bearer ${E.token}`}f!==null&&!o&&(w.headers.DelegationId=f.toString());const _=localStorage.getItem("search-use-asterisk")!=="false";return w.headers["Search-Use-Asterisk"]=_?"true":"false",(C=w.url)!=null&&C.includes("culture=")?w.url=(y=w.url)==null?void 0:y.replace(/culture=[a-z]{2}/,`culture=${s}`):w.url=`${w.url}${($=w.url)!=null&&$.includes("?")?"&":"?"}culture=${s}`,w},[t,d,s,i,f,o,g]),x=h.useCallback(w=>{var y,$;if(console.log(w),tn.isCancel(w)||w.message==="Authentication in progress"||w.message==="No bearer token"||w.message==="Token expired")return Promise.reject(w);const _=t0(w);if(_.length>0){const E=_.find(k=>k.name.toLowerCase()==="others");return E?(!r&&p(E.errors,"danger"),Promise.reject(w)):(!r&&p(l.validationError,"warning"),Promise.reject(w))}const C=dS(w);return C!==null?(!r&&p(`${l.permissionError}: ${Mc(", ",...C)}`,"danger"),Promise.reject(w)):(a??[]).includes((y=w.response)==null?void 0:y.status)?Promise.reject(w):(($=w.response)==null?void 0:$.status)===403?(!r&&p(l.forbiddenError,"danger"),Promise.reject(w)):w.message&&w.message==="Network Error"?(!r&&p(l.networkError,"danger"),Promise.reject(w)):(tn.isCancel(w)||(!r&&p(l.unexpectedError,"danger"),(w.response||w.request)&&!r&&p(l.unexpectedError,"danger")),Promise.reject(w))},[p,l.forbiddenError,l.networkError,l.permissionError,l.unexpectedError,l.validationError,r,a]);return h.useEffect(()=>{n&&(m.defaults.baseURL=n),m.interceptors.request.clear(),m.interceptors.response.clear();const w=m.interceptors.request.use(v,C=>Promise.reject(C)),_=m.interceptors.response.use(C=>C,x);return()=>{m.interceptors.request.eject(w),m.interceptors.response.eject(_)}},[m.defaults,m.interceptors.request,m.interceptors.response,n,v,x]),m};let Bs;const u0=()=>{const{show:e,text:t,showConfirm:n,hideConfirm:r,textSm:i}=h.useContext(eS),o=()=>{r()};return{confirm:async(l,u)=>(n(l,u),new Promise(d=>{Bs=d})),onConfirm:()=>{o(),Bs&&Bs(!0)},onCancel:()=>{o(),Bs&&Bs(!1)},show:e,text:t,textSm:i}};var wt;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const o={};for(const a of i)o[a]=a;return o},e.getValidEnumValues=i=>{const o=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),a={};for(const s of o)a[s]=i[s];return e.objectValues(a)},e.objectValues=i=>e.objectKeys(i).map(function(o){return i[o]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&o.push(a);return o},e.find=(i,o)=>{for(const a of i)if(o(a))return a},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,o=" | "){return i.map(a=>typeof a=="string"?`'${a}'`:a).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(wt||(wt={}));var hg;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(hg||(hg={}));const Re=wt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),zi=e=>{switch(typeof e){case"undefined":return Re.undefined;case"string":return Re.string;case"number":return isNaN(e)?Re.nan:Re.number;case"boolean":return Re.boolean;case"function":return Re.function;case"bigint":return Re.bigint;case"symbol":return Re.symbol;case"object":return Array.isArray(e)?Re.array:e===null?Re.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Re.promise:typeof Map<"u"&&e instanceof Map?Re.map:typeof Set<"u"&&e instanceof Set?Re.set:typeof Date<"u"&&e instanceof Date?Re.date:Re.object;default:return Re.unknown}},ye=wt.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"]),yD=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class er 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(o){return o.message},r={_errors:[]},i=o=>{for(const a of o.issues)if(a.code==="invalid_union")a.unionErrors.map(i);else if(a.code==="invalid_return_type")i(a.returnTypeError);else if(a.code==="invalid_arguments")i(a.argumentsError);else if(a.path.length===0)r._errors.push(n(a));else{let s=r,c=0;for(;c<a.path.length;){const l=a.path[c];c===a.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(n(a))):s[l]=s[l]||{_errors:[]},s=s[l],c++}}};return i(this),r}static assert(t){if(!(t instanceof er))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,wt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}er.create=e=>new er(e);const Ha=(e,t)=>{let n;switch(e.code){case ye.invalid_type:e.received===Re.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ye.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,wt.jsonStringifyReplacer)}`;break;case ye.unrecognized_keys:n=`Unrecognized key(s) in object: ${wt.joinValues(e.keys,", ")}`;break;case ye.invalid_union:n="Invalid input";break;case ye.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${wt.joinValues(e.options)}`;break;case ye.invalid_enum_value:n=`Invalid enum value. Expected ${wt.joinValues(e.options)}, received '${e.received}'`;break;case ye.invalid_arguments:n="Invalid function arguments";break;case ye.invalid_return_type:n="Invalid function return type";break;case ye.invalid_date:n="Invalid date";break;case ye.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}"`:wt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ye.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 ye.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 ye.custom:n="Invalid input";break;case ye.invalid_intersection_types:n="Intersection results could not be merged";break;case ye.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ye.not_finite:n="Number must be finite";break;default:n=t.defaultError,wt.assertNever(e)}return{message:n}};let YS=Ha;function xD(e){YS=e}function bd(){return YS}const yd=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],a={...i,path:o};if(i.message!==void 0)return{...i,path:o,message:i.message};let s="";const c=r.filter(l=>!!l).slice().reverse();for(const l of c)s=l(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}},wD=[];function ke(e,t){const n=bd(),r=yd({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ha?void 0:Ha].filter(i=>!!i)});e.common.issues.push(r)}class Mn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return Ze;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const o=await i.key,a=await i.value;r.push({key:o,value:a})}return Mn.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:o,value:a}=i;if(o.status==="aborted"||a.status==="aborted")return Ze;o.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof a.value<"u"||i.alwaysSet)&&(r[o.value]=a.value)}return{status:t.value,value:r}}}const Ze=Object.freeze({status:"aborted"}),$a=e=>({status:"dirty",value:e}),Pn=e=>({status:"valid",value:e}),pg=e=>e.status==="aborted",mg=e=>e.status==="dirty",Ac=e=>e.status==="valid",jc=e=>typeof Promise<"u"&&e instanceof Promise;function xd(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 GS(e,t,n,r,i){if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var Le;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Le||(Le={}));var ac,sc;class zr{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const J1=(e,t)=>{if(Ac(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 er(e.common.issues);return this._error=n,this._error}}};function ot(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(a,s)=>{var c,l;const{message:u}=e;return a.code==="invalid_enum_value"?{message:u??s.defaultError}:typeof s.data>"u"?{message:(c=u??r)!==null&&c!==void 0?c:s.defaultError}:a.code!=="invalid_type"?{message:s.defaultError}:{message:(l=u??n)!==null&&l!==void 0?l:s.defaultError}},description:i}}class dt{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 zi(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:zi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Mn,ctx:{common:t.parent.common,data:t.data,parsedType:zi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(jc(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:zi(t)},o=this._parseSync({data:t,path:i.path,parent:i});return J1(i,o)}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:zi(t)},i=this._parse({data:t,path:r.path,parent:r}),o=await(jc(i)?i:Promise.resolve(i));return J1(r,o)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,o)=>{const a=t(i),s=()=>o.addIssue({code:ye.custom,...r(i)});return typeof Promise<"u"&&a instanceof Promise?a.then(c=>c?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new kr({schema:this,typeName:Ge.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Pr.create(this,this._def)}nullable(){return eo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Tr.create(this,this._def)}promise(){return Ya.create(this,this._def)}or(t){return Pc.create([this,t],this._def)}and(t){return Lc.create(this,t,this._def)}transform(t){return new kr({...ot(this._def),schema:this,typeName:Ge.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Uc({...ot(this._def),innerType:this,defaultValue:n,typeName:Ge.ZodDefault})}brand(){return new d0({typeName:Ge.ZodBranded,type:this,...ot(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Vc({...ot(this._def),innerType:this,catchValue:n,typeName:Ge.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Tl.create(this,t)}readonly(){return Hc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const _D=/^c[^\s-]{8,}$/i,CD=/^[0-9a-z]+$/,$D=/^[0-9A-HJKMNP-TV-Z]{26}$/,SD=/^[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,ED=/^[a-z0-9_-]{21}$/i,TD=/^[-+]?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)?)??$/,kD=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,OD="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ip;const MD=/^(?:(?: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])$/,RD=/^(([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})))$/,AD=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,KS="((\\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])))",jD=new RegExp(`^${KS}$`);function ZS(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 ND(e){return new RegExp(`^${ZS(e)}$`)}function XS(e){let t=`${KS}T${ZS(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 DD(e,t){return!!((t==="v4"||!t)&&MD.test(e)||(t==="v6"||!t)&&RD.test(e))}class Sr extends dt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Re.string){const o=this._getOrReturnCtx(t);return ke(o,{code:ye.invalid_type,expected:Re.string,received:o.parsedType}),Ze}const r=new Mn;let i;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(i=this._getOrReturnCtx(t,i),ke(i,{code:ye.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(i=this._getOrReturnCtx(t,i),ke(i,{code:ye.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const a=t.data.length>o.value,s=t.data.length<o.value;(a||s)&&(i=this._getOrReturnCtx(t,i),a?ke(i,{code:ye.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&ke(i,{code:ye.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")kD.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"email",code:ye.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")Ip||(Ip=new RegExp(OD,"u")),Ip.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"emoji",code:ye.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")SD.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"uuid",code:ye.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")ED.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"nanoid",code:ye.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")_D.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"cuid",code:ye.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")CD.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"cuid2",code:ye.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")$D.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"ulid",code:ye.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),ke(i,{validation:"url",code:ye.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"regex",code:ye.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(i=this._getOrReturnCtx(t,i),ke(i,{code:ye.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(i=this._getOrReturnCtx(t,i),ke(i,{code:ye.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(i=this._getOrReturnCtx(t,i),ke(i,{code:ye.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?XS(o).test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{code:ye.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?jD.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{code:ye.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?ND(o).test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{code:ye.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?TD.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"duration",code:ye.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?DD(t.data,o.version)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"ip",code:ye.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?AD.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"base64",code:ye.invalid_string,message:o.message}),r.dirty()):wt.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:ye.invalid_string,...Le.errToObj(r)})}_addCheck(t){return new Sr({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Le.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Le.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Le.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Le.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Le.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Le.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Le.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Le.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Le.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Le.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,...Le.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,...Le.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Le.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Le.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Le.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Le.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Le.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Le.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Le.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Le.errToObj(n)})}nonempty(t){return this.min(1,Le.errToObj(t))}trim(){return new Sr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Sr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Sr({...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}}Sr.create=e=>{var t;return new Sr({checks:[],typeName:Ge.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ot(e)})};function ID(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=parseInt(e.toFixed(i).replace(".","")),a=parseInt(t.toFixed(i).replace(".",""));return o%a/Math.pow(10,i)}class Xi extends dt{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)!==Re.number){const o=this._getOrReturnCtx(t);return ke(o,{code:ye.invalid_type,expected:Re.number,received:o.parsedType}),Ze}let r;const i=new Mn;for(const o of this._def.checks)o.kind==="int"?wt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ke(r,{code:ye.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),ke(r,{code:ye.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),ke(r,{code:ye.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?ID(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),ke(r,{code:ye.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ke(r,{code:ye.not_finite,message:o.message}),i.dirty()):wt.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Le.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Le.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Le.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Le.toString(n))}setLimit(t,n,r,i){return new Xi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Le.toString(i)}]})}_addCheck(t){return new Xi({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Le.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Le.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Le.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Le.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Le.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Le.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"&&wt.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)}}Xi.create=e=>new Xi({checks:[],typeName:Ge.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ot(e)});class Qi extends dt{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)!==Re.bigint){const o=this._getOrReturnCtx(t);return ke(o,{code:ye.invalid_type,expected:Re.bigint,received:o.parsedType}),Ze}let r;const i=new Mn;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),ke(r,{code:ye.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),ke(r,{code:ye.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ke(r,{code:ye.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):wt.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Le.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Le.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Le.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Le.toString(n))}setLimit(t,n,r,i){return new Qi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Le.toString(i)}]})}_addCheck(t){return new Qi({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Le.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Le.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}}Qi.create=e=>{var t;return new Qi({checks:[],typeName:Ge.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ot(e)})};class Nc extends dt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Re.boolean){const r=this._getOrReturnCtx(t);return ke(r,{code:ye.invalid_type,expected:Re.boolean,received:r.parsedType}),Ze}return Pn(t.data)}}Nc.create=e=>new Nc({typeName:Ge.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ot(e)});class Wo extends dt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Re.date){const o=this._getOrReturnCtx(t);return ke(o,{code:ye.invalid_type,expected:Re.date,received:o.parsedType}),Ze}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return ke(o,{code:ye.invalid_date}),Ze}const r=new Mn;let i;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(i=this._getOrReturnCtx(t,i),ke(i,{code:ye.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(i=this._getOrReturnCtx(t,i),ke(i,{code:ye.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):wt.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Wo({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Le.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Le.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}}Wo.create=e=>new Wo({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ge.ZodDate,...ot(e)});class wd extends dt{_parse(t){if(this._getType(t)!==Re.symbol){const r=this._getOrReturnCtx(t);return ke(r,{code:ye.invalid_type,expected:Re.symbol,received:r.parsedType}),Ze}return Pn(t.data)}}wd.create=e=>new wd({typeName:Ge.ZodSymbol,...ot(e)});class Dc extends dt{_parse(t){if(this._getType(t)!==Re.undefined){const r=this._getOrReturnCtx(t);return ke(r,{code:ye.invalid_type,expected:Re.undefined,received:r.parsedType}),Ze}return Pn(t.data)}}Dc.create=e=>new Dc({typeName:Ge.ZodUndefined,...ot(e)});class Ic extends dt{_parse(t){if(this._getType(t)!==Re.null){const r=this._getOrReturnCtx(t);return ke(r,{code:ye.invalid_type,expected:Re.null,received:r.parsedType}),Ze}return Pn(t.data)}}Ic.create=e=>new Ic({typeName:Ge.ZodNull,...ot(e)});class qa extends dt{constructor(){super(...arguments),this._any=!0}_parse(t){return Pn(t.data)}}qa.create=e=>new qa({typeName:Ge.ZodAny,...ot(e)});class No extends dt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Pn(t.data)}}No.create=e=>new No({typeName:Ge.ZodUnknown,...ot(e)});class yi extends dt{_parse(t){const n=this._getOrReturnCtx(t);return ke(n,{code:ye.invalid_type,expected:Re.never,received:n.parsedType}),Ze}}yi.create=e=>new yi({typeName:Ge.ZodNever,...ot(e)});class _d extends dt{_parse(t){if(this._getType(t)!==Re.undefined){const r=this._getOrReturnCtx(t);return ke(r,{code:ye.invalid_type,expected:Re.void,received:r.parsedType}),Ze}return Pn(t.data)}}_d.create=e=>new _d({typeName:Ge.ZodVoid,...ot(e)});class Tr extends dt{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Re.array)return ke(n,{code:ye.invalid_type,expected:Re.array,received:n.parsedType}),Ze;if(i.exactLength!==null){const a=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(a||s)&&(ke(n,{code:a?ye.too_big:ye.too_small,minimum:s?i.exactLength.value:void 0,maximum:a?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(ke(n,{code:ye.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(ke(n,{code:ye.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((a,s)=>i.type._parseAsync(new zr(n,a,n.path,s)))).then(a=>Mn.mergeArray(r,a));const o=[...n.data].map((a,s)=>i.type._parseSync(new zr(n,a,n.path,s)));return Mn.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Tr({...this._def,minLength:{value:t,message:Le.toString(n)}})}max(t,n){return new Tr({...this._def,maxLength:{value:t,message:Le.toString(n)}})}length(t,n){return new Tr({...this._def,exactLength:{value:t,message:Le.toString(n)}})}nonempty(t){return this.min(1,t)}}Tr.create=(e,t)=>new Tr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ge.ZodArray,...ot(t)});function Ca(e){if(e instanceof an){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Pr.create(Ca(r))}return new an({...e._def,shape:()=>t})}else return e instanceof Tr?new Tr({...e._def,type:Ca(e.element)}):e instanceof Pr?Pr.create(Ca(e.unwrap())):e instanceof eo?eo.create(Ca(e.unwrap())):e instanceof Wr?Wr.create(e.items.map(t=>Ca(t))):e}class an extends dt{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=wt.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==Re.object){const l=this._getOrReturnCtx(t);return ke(l,{code:ye.invalid_type,expected:Re.object,received:l.parsedType}),Ze}const{status:r,ctx:i}=this._processInputParams(t),{shape:o,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof yi&&this._def.unknownKeys==="strip"))for(const l in i.data)a.includes(l)||s.push(l);const c=[];for(const l of a){const u=o[l],d=i.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new zr(i,d,i.path,l)),alwaysSet:l in i.data})}if(this._def.catchall instanceof yi){const l=this._def.unknownKeys;if(l==="passthrough")for(const u of s)c.push({key:{status:"valid",value:u},value:{status:"valid",value:i.data[u]}});else if(l==="strict")s.length>0&&(ke(i,{code:ye.unrecognized_keys,keys:s}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const u of s){const d=i.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new zr(i,d,i.path,u)),alwaysSet:u in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const l=[];for(const u of c){const d=await u.key,f=await u.value;l.push({key:d,value:f,alwaysSet:u.alwaysSet})}return l}).then(l=>Mn.mergeObjectSync(r,l)):Mn.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return Le.errToObj,new an({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,o,a,s;const c=(a=(o=(i=this._def).errorMap)===null||o===void 0?void 0:o.call(i,n,r).message)!==null&&a!==void 0?a:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=Le.errToObj(t).message)!==null&&s!==void 0?s:c}:{message:c}}}:{}})}strip(){return new an({...this._def,unknownKeys:"strip"})}passthrough(){return new an({...this._def,unknownKeys:"passthrough"})}extend(t){return new an({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new an({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ge.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new an({...this._def,catchall:t})}pick(t){const n={};return wt.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new an({...this._def,shape:()=>n})}omit(t){const n={};return wt.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new an({...this._def,shape:()=>n})}deepPartial(){return Ca(this)}partial(t){const n={};return wt.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new an({...this._def,shape:()=>n})}required(t){const n={};return wt.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Pr;)o=o._def.innerType;n[r]=o}}),new an({...this._def,shape:()=>n})}keyof(){return QS(wt.objectKeys(this.shape))}}an.create=(e,t)=>new an({shape:()=>e,unknownKeys:"strip",catchall:yi.create(),typeName:Ge.ZodObject,...ot(t)});an.strictCreate=(e,t)=>new an({shape:()=>e,unknownKeys:"strict",catchall:yi.create(),typeName:Ge.ZodObject,...ot(t)});an.lazycreate=(e,t)=>new an({shape:e,unknownKeys:"strip",catchall:yi.create(),typeName:Ge.ZodObject,...ot(t)});class Pc extends dt{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(o){for(const s of o)if(s.result.status==="valid")return s.result;for(const s of o)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const a=o.map(s=>new er(s.ctx.common.issues));return ke(n,{code:ye.invalid_union,unionErrors:a}),Ze}if(n.common.async)return Promise.all(r.map(async o=>{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(i);{let o;const a=[];for(const c of r){const l={...n,common:{...n.common,issues:[]},parent:null},u=c._parseSync({data:n.data,path:n.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!o&&(o={result:u,ctx:l}),l.common.issues.length&&a.push(l.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const s=a.map(c=>new er(c));return ke(n,{code:ye.invalid_union,unionErrors:s}),Ze}}get options(){return this._def.options}}Pc.create=(e,t)=>new Pc({options:e,typeName:Ge.ZodUnion,...ot(t)});const ii=e=>e instanceof Bc?ii(e.schema):e instanceof kr?ii(e.innerType()):e instanceof zc?[e.value]:e instanceof Ji?e.options:e instanceof Wc?wt.objectValues(e.enum):e instanceof Uc?ii(e._def.innerType):e instanceof Dc?[void 0]:e instanceof Ic?[null]:e instanceof Pr?[void 0,...ii(e.unwrap())]:e instanceof eo?[null,...ii(e.unwrap())]:e instanceof d0||e instanceof Hc?ii(e.unwrap()):e instanceof Vc?ii(e._def.innerType):[];class Pf extends dt{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Re.object)return ke(n,{code:ye.invalid_type,expected:Re.object,received:n.parsedType}),Ze;const r=this.discriminator,i=n.data[r],o=this.optionsMap.get(i);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(ke(n,{code:ye.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Ze)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const o of n){const a=ii(o.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of a){if(i.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);i.set(s,o)}}return new Pf({typeName:Ge.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...ot(r)})}}function gg(e,t){const n=zi(e),r=zi(t);if(e===t)return{valid:!0,data:e};if(n===Re.object&&r===Re.object){const i=wt.objectKeys(t),o=wt.objectKeys(e).filter(s=>i.indexOf(s)!==-1),a={...e,...t};for(const s of o){const c=gg(e[s],t[s]);if(!c.valid)return{valid:!1};a[s]=c.data}return{valid:!0,data:a}}else if(n===Re.array&&r===Re.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let o=0;o<e.length;o++){const a=e[o],s=t[o],c=gg(a,s);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return n===Re.date&&r===Re.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Lc extends dt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(o,a)=>{if(pg(o)||pg(a))return Ze;const s=gg(o.value,a.value);return s.valid?((mg(o)||mg(a))&&n.dirty(),{status:n.value,value:s.data}):(ke(r,{code:ye.invalid_intersection_types}),Ze)};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(([o,a])=>i(o,a)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Lc.create=(e,t,n)=>new Lc({left:e,right:t,typeName:Ge.ZodIntersection,...ot(n)});class Wr extends dt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Re.array)return ke(r,{code:ye.invalid_type,expected:Re.array,received:r.parsedType}),Ze;if(r.data.length<this._def.items.length)return ke(r,{code:ye.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ze;!this._def.rest&&r.data.length>this._def.items.length&&(ke(r,{code:ye.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((a,s)=>{const c=this._def.items[s]||this._def.rest;return c?c._parse(new zr(r,a,r.path,s)):null}).filter(a=>!!a);return r.common.async?Promise.all(o).then(a=>Mn.mergeArray(n,a)):Mn.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new Wr({...this._def,rest:t})}}Wr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Wr({items:e,typeName:Ge.ZodTuple,rest:null,...ot(t)})};class Fc extends dt{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!==Re.object)return ke(r,{code:ye.invalid_type,expected:Re.object,received:r.parsedType}),Ze;const i=[],o=this._def.keyType,a=this._def.valueType;for(const s in r.data)i.push({key:o._parse(new zr(r,s,r.path,s)),value:a._parse(new zr(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?Mn.mergeObjectAsync(n,i):Mn.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof dt?new Fc({keyType:t,valueType:n,typeName:Ge.ZodRecord,...ot(r)}):new Fc({keyType:Sr.create(),valueType:t,typeName:Ge.ZodRecord,...ot(n)})}}class Cd extends dt{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!==Re.map)return ke(r,{code:ye.invalid_type,expected:Re.map,received:r.parsedType}),Ze;const i=this._def.keyType,o=this._def.valueType,a=[...r.data.entries()].map(([s,c],l)=>({key:i._parse(new zr(r,s,r.path,[l,"key"])),value:o._parse(new zr(r,c,r.path,[l,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const c of a){const l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return Ze;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(l.value,u.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const c of a){const l=c.key,u=c.value;if(l.status==="aborted"||u.status==="aborted")return Ze;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(l.value,u.value)}return{status:n.value,value:s}}}}Cd.create=(e,t,n)=>new Cd({valueType:t,keyType:e,typeName:Ge.ZodMap,...ot(n)});class Uo extends dt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Re.set)return ke(r,{code:ye.invalid_type,expected:Re.set,received:r.parsedType}),Ze;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(ke(r,{code:ye.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(ke(r,{code:ye.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const o=this._def.valueType;function a(c){const l=new Set;for(const u of c){if(u.status==="aborted")return Ze;u.status==="dirty"&&n.dirty(),l.add(u.value)}return{status:n.value,value:l}}const s=[...r.data.values()].map((c,l)=>o._parse(new zr(r,c,r.path,l)));return r.common.async?Promise.all(s).then(c=>a(c)):a(s)}min(t,n){return new Uo({...this._def,minSize:{value:t,message:Le.toString(n)}})}max(t,n){return new Uo({...this._def,maxSize:{value:t,message:Le.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Uo.create=(e,t)=>new Uo({valueType:e,minSize:null,maxSize:null,typeName:Ge.ZodSet,...ot(t)});class Oa extends dt{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Re.function)return ke(n,{code:ye.invalid_type,expected:Re.function,received:n.parsedType}),Ze;function r(s,c){return yd({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,bd(),Ha].filter(l=>!!l),issueData:{code:ye.invalid_arguments,argumentsError:c}})}function i(s,c){return yd({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,bd(),Ha].filter(l=>!!l),issueData:{code:ye.invalid_return_type,returnTypeError:c}})}const o={errorMap:n.common.contextualErrorMap},a=n.data;if(this._def.returns instanceof Ya){const s=this;return Pn(async function(...c){const l=new er([]),u=await s._def.args.parseAsync(c,o).catch(p=>{throw l.addIssue(r(c,p)),l}),d=await Reflect.apply(a,this,u);return await s._def.returns._def.type.parseAsync(d,o).catch(p=>{throw l.addIssue(i(d,p)),l})})}else{const s=this;return Pn(function(...c){const l=s._def.args.safeParse(c,o);if(!l.success)throw new er([r(c,l.error)]);const u=Reflect.apply(a,this,l.data),d=s._def.returns.safeParse(u,o);if(!d.success)throw new er([i(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Oa({...this._def,args:Wr.create(t).rest(No.create())})}returns(t){return new Oa({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Oa({args:t||Wr.create([]).rest(No.create()),returns:n||No.create(),typeName:Ge.ZodFunction,...ot(r)})}}class Bc extends dt{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})}}Bc.create=(e,t)=>new Bc({getter:e,typeName:Ge.ZodLazy,...ot(t)});class zc extends dt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ke(n,{received:n.data,code:ye.invalid_literal,expected:this._def.value}),Ze}return{status:"valid",value:t.data}}get value(){return this._def.value}}zc.create=(e,t)=>new zc({value:e,typeName:Ge.ZodLiteral,...ot(t)});function QS(e,t){return new Ji({values:e,typeName:Ge.ZodEnum,...ot(t)})}class Ji extends dt{constructor(){super(...arguments),ac.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ke(n,{expected:wt.joinValues(r),received:n.parsedType,code:ye.invalid_type}),Ze}if(xd(this,ac)||GS(this,ac,new Set(this._def.values)),!xd(this,ac).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ke(n,{received:n.data,code:ye.invalid_enum_value,options:r}),Ze}return Pn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Ji.create(t,{...this._def,...n})}exclude(t,n=this._def){return Ji.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}ac=new WeakMap;Ji.create=QS;class Wc extends dt{constructor(){super(...arguments),sc.set(this,void 0)}_parse(t){const n=wt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Re.string&&r.parsedType!==Re.number){const i=wt.objectValues(n);return ke(r,{expected:wt.joinValues(i),received:r.parsedType,code:ye.invalid_type}),Ze}if(xd(this,sc)||GS(this,sc,new Set(wt.getValidEnumValues(this._def.values))),!xd(this,sc).has(t.data)){const i=wt.objectValues(n);return ke(r,{received:r.data,code:ye.invalid_enum_value,options:i}),Ze}return Pn(t.data)}get enum(){return this._def.values}}sc=new WeakMap;Wc.create=(e,t)=>new Wc({values:e,typeName:Ge.ZodNativeEnum,...ot(t)});class Ya extends dt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Re.promise&&n.common.async===!1)return ke(n,{code:ye.invalid_type,expected:Re.promise,received:n.parsedType}),Ze;const r=n.parsedType===Re.promise?n.data:Promise.resolve(n.data);return Pn(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Ya.create=(e,t)=>new Ya({type:e,typeName:Ge.ZodPromise,...ot(t)});class kr extends dt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ge.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,o={addIssue:a=>{ke(r,a),a.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const a=i.transform(r.data,o);if(r.common.async)return Promise.resolve(a).then(async s=>{if(n.value==="aborted")return Ze;const c=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return c.status==="aborted"?Ze:c.status==="dirty"||n.value==="dirty"?$a(c.value):c});{if(n.value==="aborted")return Ze;const s=this._def.schema._parseSync({data:a,path:r.path,parent:r});return s.status==="aborted"?Ze:s.status==="dirty"||n.value==="dirty"?$a(s.value):s}}if(i.type==="refinement"){const a=s=>{const c=i.refinement(s,o);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"?Ze:(s.status==="dirty"&&n.dirty(),a(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"?Ze:(s.status==="dirty"&&n.dirty(),a(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Ac(a))return a;const s=i.transform(a.value,o);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(a=>Ac(a)?Promise.resolve(i.transform(a.value,o)).then(s=>({status:n.value,value:s})):a);wt.assertNever(i)}}kr.create=(e,t,n)=>new kr({schema:e,typeName:Ge.ZodEffects,effect:t,...ot(n)});kr.createWithPreprocess=(e,t,n)=>new kr({schema:t,effect:{type:"preprocess",transform:e},typeName:Ge.ZodEffects,...ot(n)});class Pr extends dt{_parse(t){return this._getType(t)===Re.undefined?Pn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Pr.create=(e,t)=>new Pr({innerType:e,typeName:Ge.ZodOptional,...ot(t)});class eo extends dt{_parse(t){return this._getType(t)===Re.null?Pn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}eo.create=(e,t)=>new eo({innerType:e,typeName:Ge.ZodNullable,...ot(t)});class Uc extends dt{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Re.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Uc.create=(e,t)=>new Uc({innerType:e,typeName:Ge.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ot(t)});class Vc extends dt{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return jc(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new er(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new er(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Vc.create=(e,t)=>new Vc({innerType:e,typeName:Ge.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ot(t)});class $d extends dt{_parse(t){if(this._getType(t)!==Re.nan){const r=this._getOrReturnCtx(t);return ke(r,{code:ye.invalid_type,expected:Re.nan,received:r.parsedType}),Ze}return{status:"valid",value:t.data}}}$d.create=e=>new $d({typeName:Ge.ZodNaN,...ot(e)});const PD=Symbol("zod_brand");class d0 extends dt{_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 Tl extends dt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?Ze:o.status==="dirty"?(n.dirty(),$a(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Ze:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new Tl({in:t,out:n,typeName:Ge.ZodPipeline})}}class Hc extends dt{_parse(t){const n=this._def.innerType._parse(t),r=i=>(Ac(i)&&(i.value=Object.freeze(i.value)),i);return jc(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}Hc.create=(e,t)=>new Hc({innerType:e,typeName:Ge.ZodReadonly,...ot(t)});function JS(e,t={},n){return e?qa.create().superRefine((r,i)=>{var o,a;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,c=(a=(o=s.fatal)!==null&&o!==void 0?o:n)!==null&&a!==void 0?a:!0,l=typeof s=="string"?{message:s}:s;i.addIssue({code:"custom",...l,fatal:c})}}):qa.create()}const LD={object:an.lazycreate};var Ge;(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"})(Ge||(Ge={}));const FD=(e,t={message:`Input not instance of ${e.name}`})=>JS(n=>n instanceof e,t),eE=Sr.create,tE=Xi.create,BD=$d.create,zD=Qi.create,nE=Nc.create,WD=Wo.create,UD=wd.create,VD=Dc.create,HD=Ic.create,qD=qa.create,YD=No.create,GD=yi.create,KD=_d.create,ZD=Tr.create,XD=an.create,QD=an.strictCreate,JD=Pc.create,eI=Pf.create,tI=Lc.create,nI=Wr.create,rI=Fc.create,iI=Cd.create,oI=Uo.create,aI=Oa.create,sI=Bc.create,cI=zc.create,lI=Ji.create,uI=Wc.create,dI=Ya.create,ex=kr.create,fI=Pr.create,hI=eo.create,pI=kr.createWithPreprocess,mI=Tl.create,gI=()=>eE().optional(),vI=()=>tE().optional(),bI=()=>nE().optional(),yI={string:e=>Sr.create({...e,coerce:!0}),number:e=>Xi.create({...e,coerce:!0}),boolean:e=>Nc.create({...e,coerce:!0}),bigint:e=>Qi.create({...e,coerce:!0}),date:e=>Wo.create({...e,coerce:!0})},xI=Ze;var vn=Object.freeze({__proto__:null,defaultErrorMap:Ha,setErrorMap:xD,getErrorMap:bd,makeIssue:yd,EMPTY_PATH:wD,addIssueToContext:ke,ParseStatus:Mn,INVALID:Ze,DIRTY:$a,OK:Pn,isAborted:pg,isDirty:mg,isValid:Ac,isAsync:jc,get util(){return wt},get objectUtil(){return hg},ZodParsedType:Re,getParsedType:zi,ZodType:dt,datetimeRegex:XS,ZodString:Sr,ZodNumber:Xi,ZodBigInt:Qi,ZodBoolean:Nc,ZodDate:Wo,ZodSymbol:wd,ZodUndefined:Dc,ZodNull:Ic,ZodAny:qa,ZodUnknown:No,ZodNever:yi,ZodVoid:_d,ZodArray:Tr,ZodObject:an,ZodUnion:Pc,ZodDiscriminatedUnion:Pf,ZodIntersection:Lc,ZodTuple:Wr,ZodRecord:Fc,ZodMap:Cd,ZodSet:Uo,ZodFunction:Oa,ZodLazy:Bc,ZodLiteral:zc,ZodEnum:Ji,ZodNativeEnum:Wc,ZodPromise:Ya,ZodEffects:kr,ZodTransformer:kr,ZodOptional:Pr,ZodNullable:eo,ZodDefault:Uc,ZodCatch:Vc,ZodNaN:$d,BRAND:PD,ZodBranded:d0,ZodPipeline:Tl,ZodReadonly:Hc,custom:JS,Schema:dt,ZodSchema:dt,late:LD,get ZodFirstPartyTypeKind(){return Ge},coerce:yI,any:qD,array:ZD,bigint:zD,boolean:nE,date:WD,discriminatedUnion:eI,effect:ex,enum:lI,function:aI,instanceof:FD,intersection:tI,lazy:sI,literal:cI,map:iI,nan:BD,nativeEnum:uI,never:GD,null:HD,nullable:hI,number:tE,object:XD,oboolean:bI,onumber:vI,optional:fI,ostring:gI,pipeline:mI,preprocess:pI,promise:dI,record:rI,set:oI,strictObject:QD,string:eE,symbol:UD,transformer:ex,tuple:nI,undefined:VD,union:JD,unknown:YD,void:KD,NEVER:xI,ZodIssueCode:ye,quotelessJson:yD,ZodError:er});const Lf=()=>{const{texts:{formValidation:e}}=h.useContext(sn),t=h.useCallback(m=>{let v=(m!=null&&m.useCoerce?vn.coerce:vn).string({invalid_type_error:e.required,required_error:e.required});return m!=null&&m.email&&(v=v.email(e.invalidEmail)),m!=null&&m.length&&(v=v.min(m.length,e.length(m.length))),m!=null&&m.minLength&&(v=v.min(m.minLength,e.minLength(m.minLength))),m!=null&&m.maxLength&&(v=v.max(m.maxLength,e.maxLength(m.maxLength))),m!=null&&m.numeric&&(v=v.regex(/^\d+$/,e.noCharactersOtherThanNumbers)),m!=null&&m.regex&&(v=v.regex(m.regex,e.invalidFormat)),v.transform(x=>x??null)},[e]),n=h.useCallback(m=>t(m).nullable().optional().transform(v=>v??null),[t]),r=h.useCallback(m=>{const v=(m==null?void 0:m.min)??Number.MIN_SAFE_INTEGER,x=(m==null?void 0:m.max)??Number.MAX_SAFE_INTEGER,w=(m!=null&&m.useCoerce?vn.coerce:vn).number({invalid_type_error:e.required,required_error:e.required}).min(v,e.lessThanMin(v)).max(x,e.moreThanMax(x));return w.transform(_=>_??null),w},[e]),i=h.useCallback(m=>r(m).nullable().optional().transform(v=>v??null),[r]),o=h.useCallback(m=>(m!=null&&m.useCoerce?vn.coerce:vn).boolean({invalid_type_error:e.required,required_error:e.required}).transform(v=>v??null),[e.required]),a=h.useCallback(m=>(m!=null&&m.useCoerce?vn.coerce:vn).string({invalid_type_error:e.required,required_error:e.required}).refine(mS,{message:e.invalidDate}).transform(x=>x??null),[e.invalidDate,e.required]),s=h.useCallback(m=>a(m).nullable().transform(v=>v??null),[a]),c=h.useCallback((m,v)=>vn.enum(m,{invalid_type_error:e.required,required_error:e.required}).transform(w=>w??null),[e.required]),l=h.useCallback((m,v)=>c(m,v).nullable().transform(x=>x??null),[c]),u=h.useCallback(m=>vn.object({id:i({useCoerce:!0})}).nullable().transform(x=>x??null),[i]),d=h.useCallback(m=>vn.object({id:r()}).transform(x=>x??null),[r]),f=h.useCallback(m=>vn.object({id:n({useCoerce:!0})}).nullable().transform(x=>x??null),[n]),p=h.useCallback(m=>vn.object({id:t()}).transform(x=>x??null),[t]),g=h.useCallback(({required:m,multiple:v,maxFileSize:x})=>vn.any().transform(_=>Array.from(_??[])).refine(_=>!m||(_==null?void 0:_.length)>0,"File is required.").refine(_=>v||(_==null?void 0:_.length)<=1,"Multiple files not allowed.").refine(_=>_.every(C=>C.size<=x),`Maximum file size is ${Ua(x)}.`).transform(_=>(v?_:_==null?void 0:_[0])??null),[]);return{zString:n,zStringRequired:t,zNumber:i,zNumberRequired:r,zBool:o,zDate:s,zDateRequired:a,zEnum:l,zEnumRequired:c,zObjectIdInt:u,zObjectIdIntRequired:d,zObjectIdStr:f,zObjectIdStrRequired:p,zFile:g}},rE=(e,t)=>{h.useEffect(()=>{const n=r=>{e.some(i=>i.current&&i.current.contains(r.target))||t()};return document.addEventListener("mouseup",n),()=>{document.removeEventListener("mouseup",n)}},[e,t])},iE=()=>{const{user:e}=h.useContext(sS);return{checkUserHasPermissions:h.useCallback((n,r="any")=>n.length===0?!0:r==="any"?n.some(i=>{var o;return(o=e==null?void 0:e.permissions)==null?void 0:o.includes(i)}):n.every(i=>{var o;return(o=e==null?void 0:e.permissions)==null?void 0:o.includes(i)}),[e])}},oE=(e,t)=>{h.useEffect(()=>(document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}),[e]),h.useEffect(()=>t===void 0?()=>{}:(document.addEventListener("keyup",t),()=>{document.removeEventListener("keyup",t)}),[t])},f0=(e,t,n)=>h.useMemo(()=>n||e!=="date"&&e!=="datetime-local"&&e!=="time"||t?e:"text",[t,e,n]),aE=()=>{const{addNotification:e}=Df(),{texts:{clipboard:t}}=h.useContext(sn);return{copyToClipboard:h.useCallback(async r=>{var i;try{await((i=navigator.clipboard)==null?void 0:i.writeText(r)),e(t.copySuccess(r),"prompt")}catch(o){console.error(o),e(t.copyError,"danger")}},[e,t])}},kl=()=>{const[e,t]=h.useState(window.innerWidth),[n,r]=h.useState(window.innerHeight),i=()=>{t(window.innerWidth),r(window.innerHeight)};return h.useEffect(()=>(window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)),[]),{width:e,height:n,isMobile:e<992}},sE=h.createContext({addHelmet:e=>{},removeHelmet:()=>{}}),cE=h.createContext(void 0),tx={falseIfNotInit:!1},Ff=({falseIfNotInit:e=tx.falseIfNotInit}=tx)=>{const t=h.useContext(cE);if(!e&&t===void 0)throw new Error("FormDisabledProvider not initilized. Probably tried to use useFormDisabledContext outside FormDisabledProvider.");return t??!1},wI="_button_1wjon_1",_I="_filled_1wjon_7",CI="_sm_1wjon_13",$I="_md_1wjon_18",SI="_lg_1wjon_23",ha={button:wI,filled:_I,sm:CI,md:$I,lg:SI},Vo=({variant:e="filled",color:t="primary",size:n="md",className:r,children:i,...o})=>o.as==="link"?b.jsx(is.Link,{to:o.href??"/",className:de(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,ha.button,ha[e],ha[n]),...o,children:i}):o.as==="button"||o.as===void 0?b.jsx("button",{type:"button",className:de(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,ha.button,ha[e],ha[n]),...o,children:i}):null,EI="_button_1r3i0_1",vg={button:EI},Bf=({color:e="primary",icon:t,className:n,children:r,...i})=>i.as==="link"?b.jsxs(is.Link,{to:i.href??"/",className:de(`luminus-context-button btn text-${e} ${n??""}`,vg.button),...i,children:[t,r]}):i.as==="button"||i.as===void 0?b.jsxs("button",{type:"button",className:de(`luminus-context-button btn text-${e} ${n??""}`,vg.button),...i,children:[t,r]}):null,TI=h.forwardRef(({color:e="primary",icon:t=b.jsx(X$,{size:12}),inputId:n="context-file-input",accept:r="*",onUpload:i,className:o,children:a,multiple:s,...c},l)=>{const u=d=>{d.target.files&&(i(d.target.files),d.target.value="")};return b.jsxs(b.Fragment,{children:[b.jsxs("label",{ref:l,htmlFor:n,className:de(`luminus-context-button btn text-${e} ${o??""}`,vg.button),...c,children:[t,a]}),b.jsx("input",{id:n,type:"file",accept:r,onChange:u,hidden:!0,multiple:s})]})}),kI="_icon-button_15e26_1",OI="_sm_15e26_14",MI="_md_15e26_23",RI="_lg_15e26_32",mu={"icon-button":"_icon-button_15e26_1",iconButton:kI,sm:OI,md:MI,lg:RI},Ol=({type:e="button",color:t="primary",size:n="md",children:r,className:i,...o})=>o.as==="link"?b.jsx(is.Link,{to:o.href??"/",className:de(`luminus-icon-button btn text-${t} ${i??""}`,mu.iconButton,mu[n]),...o,children:r}):o.as==="button"||o.as===void 0?b.jsx("button",{type:e,className:de(`luminus-icon-button btn text-${t} ${i??""}`,mu.iconButton,mu[n]),...o,children:r}):null,AI="_feedback_esh1j_1",jI="_feedback-spacer_esh1j_8",nx={feedback:AI,"feedback-spacer":"_feedback-spacer_esh1j_8",feedbackSpacer:jI},zf=({message:e})=>b.jsxs(b.Fragment,{children:[b.jsx("div",{className:de("invalid-feedback luminus-invalid-feedback",nx.feedback),children:e}),b.jsx("div",{className:de("invalid-feedback-spacer",nx.feedbackSpacer),children:e})]}),NI="_item_1dy8x_1",lE={item:NI},So=({color:e="primary",icon:t,className:n,children:r,to:i,as:o,...a})=>b.jsxs(Wa.Item,{className:de(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${n??""}`,lE.item),as:o==="link"?is.Link:void 0,to:i??"",...a,children:[t,r]}),DI="_button_qhwih_1",II={button:DI},h0=h.forwardRef(({color:e="primary",icon:t=b.jsx(J$,{size:21}),text:n,onClick:r,className:i,children:o,...a},s)=>b.jsxs("button",{type:"button",ref:s,onClick:c=>{c.preventDefault(),r(c)},"aria-label":"dropdown toggle",className:de(`btn luminus-context-button text-${e} ${i??""}`,II.button),...a,children:[t,n]})),PI="_avatar-icon_1axl6_1",LI={"avatar-icon":"_avatar-icon_1axl6_1",avatarIcon:PI},uE=({name:e,fontSize:t,size:n})=>{const r=h.useMemo(()=>{const a=e.split(" ");return a.length<2?e:Mc(" ",a.at(a.length-2),a.at(a.length-1))},[e]),i=h.useMemo(()=>{const a=r.split(" ");return Mc("",...a.map(s=>s.at(0)??void 0))},[r]),o=a=>{let s=0,c;for(c=0;c<a.length;c+=1)s=a.charCodeAt(c)+((s<<5)-s);let l="#";for(c=0;c<3;c+=1){const u=s>>c*8&255;l+=`00${u.toString(16)}`.slice(-2)}return l};return b.jsx(Y$,{placement:"bottom",overlay:b.jsx(H$,{children:e}),children:b.jsx("div",{className:de("luminus-avatar-icon",LI.avatarIcon),style:{backgroundColor:o(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:b.jsx("div",{children:i})})})},FI=h.forwardRef(({userName:e,onClick:t,children:n},r)=>b.jsxs("button",{type:"button",ref:r,onClick:i=>{i.preventDefault(),t(i)},"aria-label":"User avatar toggle",className:"m-0 p-0",style:{backgroundColor:"transparent",border:"none",cursor:"pointer"},children:[b.jsx(uE,{name:e}),n]})),p0=e=>b.jsx(Wa.Toggle,{...e}),BI="_divider_1e6rk_1",zI={divider:BI},bg=({className:e})=>b.jsx(Wa.Divider,{className:de("luminus-dropdown-divider",e,zI.divider)}),WI="_dropdown_1lk66_1",UI={dropdown:WI},m0=({toggle:e,children:t,align:n,...r})=>b.jsxs(Wa,{...r,align:n,children:[e,b.jsx(Wa.Menu,{className:de("luminus-dropdown rounded shadow",UI.dropdown),align:n,children:t})]});function VI(e,t,n){var r=this,i=h.useRef(null),o=h.useRef(0),a=h.useRef(null),s=h.useRef([]),c=h.useRef(),l=h.useRef(),u=h.useRef(e),d=h.useRef(!0);u.current=e;var f=typeof window<"u",p=!t&&t!==0&&f;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,v="maxWait"in n,x="debounceOnServer"in n&&!!n.debounceOnServer,w=v?Math.max(+n.maxWait||0,t):null;h.useEffect(function(){return d.current=!0,function(){d.current=!1}},[]);var _=h.useMemo(function(){var C=function(O){var S=s.current,M=c.current;return s.current=c.current=null,o.current=O,l.current=u.current.apply(M,S)},y=function(O,S){p&&cancelAnimationFrame(a.current),a.current=p?requestAnimationFrame(O):setTimeout(O,S)},$=function(O){if(!d.current)return!1;var S=O-i.current;return!i.current||S>=t||S<0||v&&O-o.current>=w},E=function(O){return a.current=null,m&&s.current?C(O):(s.current=c.current=null,l.current)},k=function O(){var S=Date.now();if($(S))return E(S);if(d.current){var M=t-(S-i.current),A=v?Math.min(M,w-(S-o.current)):M;y(O,A)}},T=function(){if(f||x){var O=Date.now(),S=$(O);if(s.current=[].slice.call(arguments),c.current=r,i.current=O,S){if(!a.current&&d.current)return o.current=i.current,y(k,t),g?C(i.current):l.current;if(v)return y(k,t),C(i.current)}return a.current||y(k,t),l.current}};return T.cancel=function(){a.current&&(p?cancelAnimationFrame(a.current):clearTimeout(a.current)),o.current=0,s.current=i.current=c.current=a.current=null},T.isPending=function(){return!!a.current},T.flush=function(){return a.current?E(Date.now()):l.current},T},[g,v,t,w,m,p,f,x]);return _}function HI(e,t){return e===t}function dE(e,t,n){var r=HI,i=h.useRef(e),o=h.useState({})[1],a=VI(h.useCallback(function(c){i.current=c,o({})},[o]),t,n),s=h.useRef(e);return r(s.current,e)||(a(e),s.current=e),[i.current,a]}const qI="_wrapper_1mvyk_1",YI="_open_1mvyk_9",GI="_dropdown_1mvyk_13",KI="_search-input-container_1mvyk_19",ZI="_search-input_1mvyk_19",XI="_loading-container_1mvyk_25",QI="_items-container_1mvyk_32",JI="_header-row_1mvyk_38",eP="_name_1mvyk_49",tP="_item_1mvyk_32",nP="_column-item_1mvyk_65",rP="_icon_1mvyk_69",iP="_action-buttons-container_1mvyk_89",oP="_reverse_1mvyk_97",aP="_action-button_1mvyk_89",sP="_actions-dropdown_1mvyk_110",gn={wrapper:qI,open:YI,dropdown:GI,"search-input-container":"_search-input-container_1mvyk_19",searchInputContainer:KI,"search-input":"_search-input_1mvyk_19",searchInput:ZI,"loading-container":"_loading-container_1mvyk_25",loadingContainer:XI,"items-container":"_items-container_1mvyk_32",itemsContainer:QI,"header-row":"_header-row_1mvyk_38",headerRow:JI,name:eP,item:tP,"column-item":"_column-item_1mvyk_65",columnItem:nP,icon:rP,"action-buttons-container":"_action-buttons-container_1mvyk_89",actionButtonsContainer:iP,reverse:oP,"action-button":"_action-button_1mvyk_89",actionButton:aP,"actions-dropdown":"_actions-dropdown_1mvyk_110",actionsDropdown:sP},fE=({show:e,onCancel:t,items:n,suggestedItems:r,suggestedItemsTitle:i,currentSelection:o,onSelectionChange:a,onSearchQueryChange:s,texts:c,itemsNameWidth:l,additionalColumns:u,displayIdAsName:d=!1,autoHideSearch:f=!1,allItemsLength:p,disabled:g,isLoading:m=!1,inputRef:v,archiveColumn:x="archive",addNewOptionPath:w,refreshOptions:_,noRemoveButton:C=!1,customEllipsisOptions:y})=>{var Fe;const{texts:{customSelect:$}}=h.useContext(sn),E=h.useRef(null),k=h.useRef(null),T=h.useRef(null),O=h.useRef(null),S=h.useRef(null),[M,A]=h.useState(""),[j]=dE(M,500),[,P]=h.useState(!1),{copyToClipboard:I}=aE(),L=(Fe=v.current)==null?void 0:Fe.getBoundingClientRect(),V=(L==null?void 0:L.x)??0,z=((L==null?void 0:L.x)??0)+((L==null?void 0:L.width)??0),D=(L==null?void 0:L.y)??0,W=((L==null?void 0:L.y)??0)+((L==null?void 0:L.height)??0),G=(L==null?void 0:L.width)??0,J=(L==null?void 0:L.height)??0,Z=5,{isMobile:X}=kl(),ee=8,ne=h.useMemo(()=>V?V>window.innerWidth/2-ee:!1,[V]),F=h.useMemo(()=>D?D>window.innerHeight/2-ee:!1,[D]);h.useEffect(()=>{var fe;e&&((fe=T.current)==null||fe.focus())},[T,e]),h.useEffect(()=>{e||A("")},[e]),h.useEffect(()=>{s&&s(j)},[j,s]);const[N,B]=h.useState(null);h.useEffect(()=>{e&&n.length>0?B(0):B(null)},[n,e]);const H=h.useMemo(()=>N!==null?n.at(N)??null:null,[N,n]),R=h.useCallback((fe,se)=>{var Ve,Ot;const we=document.getElementById(`item-${fe}`);if(we){const ze=we.clientHeight??0;se==="down"?(Ve=O.current)==null||Ve.scrollBy({left:0,top:ze,behavior:"smooth"}):(Ot=O.current)==null||Ot.scrollBy({left:0,top:-ze,behavior:"smooth"})}},[]),Y=h.useCallback(fe=>{if(N===null||g)return;const se=N+fe;se<0||se>=n.length||B(we=>(we!==null&&R(we,fe>0?"down":"up"),se))},[N,n,g,R]),Q=h.useCallback(fe=>{if(e)switch(fe.key){case"Escape":fe.stopPropagation(),fe.preventDefault(),t();break;case"Enter":fe.stopPropagation(),fe.preventDefault(),g||a(H);break;case"ArrowUp":fe.stopPropagation(),fe.preventDefault(),Y(-1);break;case"ArrowDown":fe.stopPropagation(),fe.preventDefault(),Y(1);break}},[t,e,Y,H,g,a]),te=h.useCallback(()=>{P(fe=>!fe)},[]);h.useEffect(()=>(window.addEventListener("scroll",te),()=>{window.removeEventListener("scroll",te)}),[te]),h.useEffect(()=>(window.addEventListener("resize",te),()=>{window.removeEventListener("resize",te)}),[te]),oE(Q),rE([E,k,S],t);const ue=l??(u&&u.length>0?250:0),oe=(u==null?void 0:u.reduce((fe,se)=>fe+(se.width??100),0))??0,ae=h.useMemo(()=>(o&&e&&!g&&!C)??!1,[o,e,g,C]),pe=h.useMemo(()=>(o&&e)??!1,[o,e]),ve=h.useMemo(()=>e&&(pe||w!==void 0||_!==void 0||y!=null&&y.length>0),[e,pe,w,_,y]),Ee=32,Se=X?`calc(100vw - ${Ee}px)`:`calc(max(${G}px, calc(${ue}px + ${oe}px)))`,Oe=h.useMemo(()=>(M.length<1&&r&&r.length>0?r:n).map(fe=>{var se,we;return d?((se=fe.id)==null?void 0:se.toString())??"":((we=fe.name)==null?void 0:we.toString())??""}).reduce((fe,se)=>fe.length>se.length?fe:se,""),[M,r,n,d]);return b.jsxs(b.Fragment,{children:[b.jsx(wE,{show:e,onClick:t}),b.jsxs("div",{className:de("luminus-dropdown-picker-actions",gn.actionButtonsContainer,{[gn.reverse]:ne}),style:{top:`calc(${D}px + ${J/2}px - 12px)`,left:ne?ae&&pe?`calc(${V}px - 24px - 8px - 24px - 4px)`:`calc(${V}px - 24px - 8px)`:`calc(${z}px + 8px)`},children:[ae&&b.jsx("button",{ref:k,type:"button",className:de("luminus-dropdown-picker-clear-button",gn.actionButton),onClick:()=>!g&&a(null),children:b.jsx(jn,{variant:"caption",className:"text-danger",children:b.jsx(Z$,{size:16})})}),ve?b.jsx("div",{ref:S,children:b.jsxs(m0,{toggle:b.jsx(p0,{as:h0,className:de("luminus-dropdown-picker-actions-dropdown",gn.actionsDropdown),icon:b.jsx(jn,{variant:"caption",className:"text-primary",children:b.jsx(J$,{size:16})})}),children:[pe?b.jsx(So,{icon:b.jsx(qj,{}),onClick:()=>{var fe,se;I(d?((fe=o==null?void 0:o.id)==null?void 0:fe.toString())??"":((se=o==null?void 0:o.name)==null?void 0:se.toString())??"")},children:$.copySelection}):null,pe&&(w||_)?b.jsx(bg,{}):null,w?b.jsx(So,{icon:b.jsx(Hj,{}),onClick:()=>{window.open(w,"_blank")},children:$.addNewOption}):null,_?b.jsx(So,{icon:b.jsx(n8,{}),onClick:()=>{_()},children:$.refreshOptions}):null,y&&y.length>0?b.jsx(bg,{}):null,y==null?void 0:y.map(fe=>b.jsxs(So,{onClick:()=>{fe.onClick(),t()},children:[fe.icon??null,fe.label]},fe.label))]})}):null]}),b.jsx("div",{className:de("luminus-dropdown-picker",gn.wrapper,{[gn.open]:e}),style:{top:F?`calc(${D}px - 50vh - 8px)`:`calc(${W}px + 8px)`,left:X?`${Ee/2}px`:ne?`calc(${z}px - ${Se})`:V,right:X?`${Ee/2}px`:ne?`${z}px`:`calc(${V}px + ${Se})`,width:Se,justifyContent:F?"flex-end":"flex-start"},children:b.jsx("div",{ref:E,className:de("shadow rounded",gn.dropdown),children:!g&&b.jsxs(b.Fragment,{children:[!s||f&&(p??n.length)<=Z?null:b.jsx("div",{className:de("search-input-container border-bottom",gn.searchInputContainer),children:b.jsx(Kr.Control,{ref:T,type:"search",size:"sm",className:gn.searchInput,placeholder:c.searchPlaceholder,value:M,onChange:fe=>{var se;return A(((se=fe.target)==null?void 0:se.value)??"")}})}),M.length<1&&r&&r.length>0?b.jsx(x0,{variant:"info",size:"sm",children:i??$.suggestedItemsTitle}):null,m?b.jsx("div",{className:gn.loadingContainer,children:b.jsx(e0,{animation:"border",variant:"primary"})}):(M.length<1&&r&&(r==null?void 0:r.length)>0||n.length>0)&&b.jsxs("div",{ref:O,className:de("items",gn.itemsContainer),children:[u&&u.length>0&&b.jsxs("div",{className:de("header-row border-bottom",gn.headerRow),children:[b.jsx("div",{className:gn.name,children:b.jsx(jn,{variant:"body2",children:Oe})}),u==null?void 0:u.filter(fe=>fe.key!==x).map(fe=>b.jsx("div",{className:gn.columnItem,style:{width:`${fe.width??100}px`,minWidth:`${fe.width??100}px`,maxWidth:`${fe.width??100}px`},children:b.jsx(jn,{variant:"caption",children:fe.name})},fe.key))]}),(M.length<1&&r&&r.length>0?r:n).map((fe,se)=>b.jsxs("button",{id:`item-${se}`,type:"button",className:de("item cursor-pointer",gn.item,{[gn.focused]:N===se},{focused:N===se},{archive:fe.additionalColumns?fe.additionalColumns[x]:!1}),onClick:()=>!g&&a(fe),onMouseEnter:()=>B(se),children:[b.jsx("div",{className:gn.name,children:b.jsx(jn,{variant:"body2",children:d?fe.id:fe.name})}),u==null?void 0:u.filter(we=>we.key!==x).map(we=>b.jsx("div",{className:gn.columnItem,style:{width:`${we.width??100}px`,minWidth:`${we.width??100}px`,maxWidth:`${we.width??100}px`},children:b.jsx(jn,{variant:"caption",className:de("text-muted"),children:fe.additionalColumns&&fe.additionalColumns[we.key]})},we.key))]},fe.id))]})]})})})]})};var g0={};g0.match=hP;g0.parse=hE;var cP=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,lP=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,uP=/^(?:(min|max)-)?(.+)/,dP=/(em|rem|px|cm|mm|in|pt|pc)?$/,fP=/(dpi|dpcm|dppx)?$/;function hP(e,t){return hE(e).some(function(n){var r=n.inverse,i=n.type==="all"||t.type===n.type;if(i&&r||!(i||r))return!1;var o=n.expressions.every(function(a){var s=a.feature,c=a.modifier,l=a.value,u=t[s];if(!u)return!1;switch(s){case"orientation":case"scan":return u.toLowerCase()===l.toLowerCase();case"width":case"height":case"device-width":case"device-height":l=ox(l),u=ox(u);break;case"resolution":l=ix(l),u=ix(u);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":l=rx(l),u=rx(u);break;case"grid":case"color":case"color-index":case"monochrome":l=parseInt(l,10)||1,u=parseInt(u,10)||0;break}switch(c){case"min":return u>=l;case"max":return u<=l;default:return u===l}});return o&&!r||!o&&r})}function hE(e){return e.split(",").map(function(t){t=t.trim();var n=t.match(cP),r=n[1],i=n[2],o=n[3]||"",a={};return a.inverse=!!r&&r.toLowerCase()==="not",a.type=i?i.toLowerCase():"all",o=o.match(/\([^\)]+\)/g)||[],a.expressions=o.map(function(s){var c=s.match(lP),l=c[1].toLowerCase().match(uP);return{modifier:l[1],feature:l[2],value:c[2]}}),a})}function rx(e){var t=Number(e),n;return t||(n=e.match(/^(\d+)\s*\/\s*(\d+)$/),t=n[1]/n[2]),t}function ix(e){var t=parseFloat(e),n=String(e).match(fP)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return t*96;default:return t}}function ox(e){var t=parseFloat(e),n=String(e).match(dP)[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 pP=g0.match,ax=typeof window<"u"?window.matchMedia:null;function mP(e,t,n){var r=this,i;ax&&!n&&(i=ax.call(window,e)),i?(this.matches=i.matches,this.media=i.media,i.addListener(s)):(this.matches=pP(e,t),this.media=e),this.addListener=o,this.removeListener=a,this.dispose=c;function o(l){i&&i.addListener(l)}function a(l){i&&i.removeListener(l)}function s(l){r.matches=l.matches,r.media=l.media}function c(){i&&i.removeListener(s)}}function gP(e,t,n){return new mP(e,t,n)}var vP=gP;const bP=rn(vP);var yP=/[A-Z]/g,xP=/^ms-/,Pp={};function wP(e){return"-"+e.toLowerCase()}function pE(e){if(Pp.hasOwnProperty(e))return Pp[e];var t=e.replace(yP,wP);return Pp[e]=xP.test(t)?"-"+t:t}function _P(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(let o=0;o<i;o++){const a=n[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}const An=K.oneOfType([K.string,K.number]),v0={all:K.bool,grid:K.bool,aural:K.bool,braille:K.bool,handheld:K.bool,print:K.bool,projection:K.bool,screen:K.bool,tty:K.bool,tv:K.bool,embossed:K.bool},mE={orientation:K.oneOf(["portrait","landscape"]),scan:K.oneOf(["progressive","interlace"]),aspectRatio:K.string,deviceAspectRatio:K.string,height:An,deviceHeight:An,width:An,deviceWidth:An,color:K.bool,colorIndex:K.bool,monochrome:K.bool,resolution:An,type:Object.keys(v0)},{type:p0e,...CP}=mE,gE={minAspectRatio:K.string,maxAspectRatio:K.string,minDeviceAspectRatio:K.string,maxDeviceAspectRatio:K.string,minHeight:An,maxHeight:An,minDeviceHeight:An,maxDeviceHeight:An,minWidth:An,maxWidth:An,minDeviceWidth:An,maxDeviceWidth:An,minColor:K.number,maxColor:K.number,minColorIndex:K.number,maxColorIndex:K.number,minMonochrome:K.number,maxMonochrome:K.number,minResolution:An,maxResolution:An,...CP},$P={...v0,...gE};var SP={all:$P,types:v0,matchers:mE,features:gE};const EP=e=>`not ${e}`,TP=(e,t)=>{const n=pE(e);return typeof t=="number"&&(t=`${t}px`),t===!0?n:t===!1?EP(n):`(${n}: ${t})`},kP=e=>e.join(" and "),OP=e=>{const t=[];return Object.keys(SP.all).forEach(n=>{const r=e[n];r!=null&&t.push(TP(n,r))}),kP(t)},MP=h.createContext(void 0),RP=e=>e.query||OP(e),sx=e=>e?Object.keys(e).reduce((n,r)=>(n[pE(r)]=e[r],n),{}):void 0,vE=()=>{const e=h.useRef(!1);return h.useEffect(()=>{e.current=!0},[]),e.current},AP=e=>{const t=h.useContext(MP),n=()=>sx(e)||sx(t),[r,i]=h.useState(n);return h.useEffect(()=>{const o=n();_P(r,o)||i(o)},[e,t]),r},jP=e=>{const t=()=>RP(e),[n,r]=h.useState(t);return h.useEffect(()=>{const i=t();n!==i&&r(i)},[e]),n},NP=(e,t)=>{const n=()=>bP(e,t||{},!!t),[r,i]=h.useState(n),o=vE();return h.useEffect(()=>{if(o){const a=n();return i(a),()=>{a&&a.dispose()}}},[e,t]),r},DP=e=>{const[t,n]=h.useState(e.matches);return h.useEffect(()=>{const r=i=>{n(i.matches)};return e.addListener(r),n(e.matches),()=>{e.removeListener(r)}},[e]),t},Lp=(e,t,n)=>{const r=AP(t),i=jP(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const o=NP(i,r),a=DP(o),s=vE();return h.useEffect(()=>{s&&n&&n(a)},[a]),h.useEffect(()=>()=>{o&&o.dispose()},[]),a},IP=["sm","md","lg","always"],bE="ResponsiveContextDropdownItem",PP=e=>e.type.displayName===bE,b0=e=>({});b0.displayName=bE;function LP(e){return e.type&&e.type===h.Fragment}const yE=e=>{const t=[];Array.isArray(e)?t.push(...e):t.push(e);const n=[];return t.forEach(r=>{if(r){if(LP(r)){n.push(...yE(r.props.children));return}n.push(r)}}),n},FP=(e,t)=>{if(t===void 0)return e;const{searchQueryString:n,...r}=t;return is.generatePath(e,r)+"?"+n},BP="_disabled_9mp5v_1",zP={disabled:BP},WP=()=>{const{ProjectIconComponent:e}=h.useContext(sn),{checkUserHasPermissions:t}=iE();return{getProcessedChildren:h.useCallback((r,i)=>{const o=[],a=[];let s=null;const c=u=>{const{hideOn:d,children:f,cKey:p,to:g,toRoute:m,disabled:v,icon:x,pathParams:w,..._}=u.props,C=(m==null?void 0:m.permissions)!=null,y=(m==null?void 0:m.permissions)!=null&&t(m==null?void 0:m.permissions),$=(v??!1)||C&&!y,E=g??(m==null?void 0:FP(m==null?void 0:m.route,w)),k=f??(m==null?void 0:m.name),T=x??(m!=null?b.jsx(e,{icon:"link"}):void 0);if(d==="always"||IP.indexOf(d)>=i){s&&a.length>0&&a.push(s),s=null;const O=de(_.className,{[zP.disabled]:$});E!=null?a.push(b.jsx(So,{..._,as:"link",to:E,disabled:$,icon:T,className:O,children:k},p)):a.push(b.jsx(So,{..._,icon:T,className:O,children:k},p))}else{const O=E!=null?{as:"link",href:E}:{};o.push(b.jsx(Bf,{..._,...O,icon:T,className:de($?"disabled":void 0,_.className),children:k},p))}};return yE(r).forEach(u=>{u&&h.isValidElement(u)&&(PP(u)?c(u):s=u)}),{buttons:o,dropdownItems:a}},[e,t])}},xE=({children:e})=>{const{getProcessedChildren:t}=WP(),n=Lp({maxWidth:768}),r=Lp({minWidth:769,maxWidth:1200}),i=Lp({minWidth:1201}),o=[n,r,i].indexOf(!0),{buttons:a,dropdownItems:s}=t(e,o);return b.jsxs("div",{className:"d-flex gap-1",children:[b.jsx(b.Fragment,{children:a}),s.length>0?b.jsx(m0,{toggle:b.jsx(p0,{as:h0}),children:s}):null]})};xE.Item=b0;const UP="Left",VP="Right",HP="Up",qP="Down",Sa={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},yg={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},cx="mousemove",lx="mouseup",YP="touchend",GP="touchmove",KP="touchstart";function ZP(e,t,n,r){return e>t?n>0?VP:UP:r>0?qP:HP}function ux(e,t){if(t===0)return e;const n=Math.PI/180*t,r=e[0]*Math.cos(n)+e[1]*Math.sin(n),i=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[r,i]}function XP(e,t){const n=u=>{const d="touches"in u;d&&u.touches.length>1||e((f,p)=>{p.trackMouse&&!d&&(document.addEventListener(cx,r),document.addEventListener(lx,a));const{clientX:g,clientY:m}=d?u.touches[0]:u,v=ux([g,m],p.rotationAngle);return p.onTouchStartOrOnMouseDown&&p.onTouchStartOrOnMouseDown({event:u}),Object.assign(Object.assign(Object.assign({},f),yg),{initial:v.slice(),xy:v,start:u.timeStamp||0})})},r=u=>{e((d,f)=>{const p="touches"in u;if(p&&u.touches.length>1)return d;if(u.timeStamp-d.start>f.swipeDuration)return d.swiping?Object.assign(Object.assign({},d),{swiping:!1}):d;const{clientX:g,clientY:m}=p?u.touches[0]:u,[v,x]=ux([g,m],f.rotationAngle),w=v-d.xy[0],_=x-d.xy[1],C=Math.abs(w),y=Math.abs(_),$=(u.timeStamp||0)-d.start,E=Math.sqrt(C*C+y*y)/($||1),k=[w/($||1),_/($||1)],T=ZP(C,y,w,_),O=typeof f.delta=="number"?f.delta:f.delta[T.toLowerCase()]||Sa.delta;if(C<O&&y<O&&!d.swiping)return d;const S={absX:C,absY:y,deltaX:w,deltaY:_,dir:T,event:u,first:d.first,initial:d.initial,velocity:E,vxvy:k};S.first&&f.onSwipeStart&&f.onSwipeStart(S),f.onSwiping&&f.onSwiping(S);let M=!1;return(f.onSwiping||f.onSwiped||f[`onSwiped${T}`])&&(M=!0),M&&f.preventScrollOnSwipe&&f.trackTouch&&u.cancelable&&u.preventDefault(),Object.assign(Object.assign({},d),{first:!1,eventData:S,swiping:!0})})},i=u=>{e((d,f)=>{let p;if(d.swiping&&d.eventData){if(u.timeStamp-d.start<f.swipeDuration){p=Object.assign(Object.assign({},d.eventData),{event:u}),f.onSwiped&&f.onSwiped(p);const g=f[`onSwiped${p.dir}`];g&&g(p)}}else f.onTap&&f.onTap({event:u});return f.onTouchEndOrOnMouseUp&&f.onTouchEndOrOnMouseUp({event:u}),Object.assign(Object.assign(Object.assign({},d),yg),{eventData:p})})},o=()=>{document.removeEventListener(cx,r),document.removeEventListener(lx,a)},a=u=>{o(),i(u)},s=(u,d)=>{let f=()=>{};if(u&&u.addEventListener){const p=Object.assign(Object.assign({},Sa.touchEventOptions),d.touchEventOptions),g=[[KP,n,p],[GP,r,Object.assign(Object.assign({},p),d.preventScrollOnSwipe?{passive:!1}:{})],[YP,i,p]];g.forEach(([m,v,x])=>u.addEventListener(m,v,x)),f=()=>g.forEach(([m,v])=>u.removeEventListener(m,v))}return f},l={ref:u=>{u!==null&&e((d,f)=>{if(d.el===u)return d;const p={};return d.el&&d.el!==u&&d.cleanUpTouch&&(d.cleanUpTouch(),p.cleanUpTouch=void 0),f.trackTouch&&u&&(p.cleanUpTouch=s(u,f)),Object.assign(Object.assign(Object.assign({},d),{el:u}),p)})}};return t.trackMouse&&(l.onMouseDown=n),[l,s]}function QP(e,t,n,r){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})}function y0(e){const{trackMouse:t}=e,n=ie.useRef(Object.assign({},yg)),r=ie.useRef(Object.assign({},Sa)),i=ie.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Sa),e);let o;for(o in Sa)r.current[o]===void 0&&(r.current[o]=Sa[o]);const[a,s]=ie.useMemo(()=>XP(c=>n.current=c(n.current,r.current),{trackMouse:t}),[t]);return n.current=QP(n.current,r.current,i.current,s),a}const JP="_backdrop_3huvf_1",e9="_show_3huvf_11",dx={backdrop:JP,show:e9},wE=({show:e,onClick:t})=>b.jsx("div",{className:de("luminus-backdrop",dx.backdrop,{[dx.show]:e}),onClick:()=>t&&t()}),x0=e=>{const{variant:t,children:n,className:r,size:i="md",typographyVariant:o=i==="sm"?"body2":"body",...a}={...e};return b.jsx(cR,{variant:t,className:`text-center ${i==="sm"?"p-1":i==="md"?"p-3":"p-4"} bg-${t} bg-opacity-10 border-none ${r??""}`,...a,children:b.jsx(jn,{variant:o,children:n})})},t9="_floating-label_3xm9u_1",n9="_without-label_3xm9u_21",r9="_floating-label-check_3xm9u_184",Fp={"floating-label":"_floating-label_3xm9u_1",floatingLabel:t9,"without-label":"_without-label_3xm9u_21",withoutLabel:n9,"floating-label-check":"_floating-label-check_3xm9u_184",floatingLabelCheck:r9},i9=({hint:e,children:t})=>e?b.jsx(n0,{text:e,placement:"top",children:t}):t,Wf=h.forwardRef(({hidden:e,children:t,className:n,isInvalid:r,isForRadioInput:i,inputContainerClassName:o,isForCheckInput:a,hint:s,required:c,disabled:l,...u},d)=>{const{ProjectIconComponent:f}=h.useContext(sn),p=u.withoutLabel?"":b.jsxs("div",{className:"d-flex gap-1 align-items-center",children:[u.label,c?b.jsx("span",{className:de("fw-bold",{"text-danger":!l}),style:{fontSize:"16px"},children:"*"}):null,s?b.jsx("div",{className:"d-flex align-items-center",children:b.jsx(f,{icon:"info"})}):null]});return a?b.jsx("div",{className:de("luminus-floating-label-check",Fp.floatingLabelCheck),children:t}):b.jsx(i9,{hint:s,children:b.jsx(Gv,{ref:d,label:b.jsx("div",{className:"d-flex gap-1 align-items-center",children:p}),hidden:e??!1,className:de(`luminus-floating-label ${n??""}`,Fp.floatingLabel,{[o??""]:o},{[Fp.withoutLabel]:u.withoutLabel}),children:t})})});Wf.displayName="FloatingLabelInput";const o9="_row-label-input_i295l_1",a9="_label_i295l_4",s9="_input-container_i295l_9",c9="_invalid-feedback_i295l_104",l9="_keep-check-label_i295l_132",u9="_is-invalid_i295l_160",zs={"row-label-input":"_row-label-input_i295l_1",rowLabelInput:o9,label:a9,"input-container":"_input-container_i295l_9",inputContainer:s9,"invalid-feedback":"_invalid-feedback_i295l_104",invalidFeedback:c9,"keep-check-label":"_keep-check-label_i295l_132",keepCheckLabel:l9,"is-invalid":"_is-invalid_i295l_160",isInvalid:u9},Ml=h.forwardRef(({hidden:e,children:t,required:n,disabled:r,className:i,isInvalid:o,isForRadioInput:a,isForTextAreaInput:s,inputContainerClassName:c,hint:l,...u},d)=>{const{ProjectIconComponent:f}=h.useContext(sn),p=u.withoutLabel?b.jsx(b.Fragment,{}):b.jsx("label",{className:de("label col-6",{"col-12":s},zs.label),children:b.jsxs(jn,{variant:"form-label",className:de("d-flex gap-1 align-items-center",o?"text-danger":""),children:[u.label,n?b.jsx("span",{className:de("fw-bold",{"text-danger":!r}),style:{fontSize:"16px"},children:"*"}):null,l?b.jsx("div",{className:"d-flex align-items-center",style:{paddingTop:"2px"},children:b.jsx(f,{icon:"info"})}):null]})});return b.jsxs("div",{ref:d,className:de("luminus-row-label row gx-0 gy-0",{"is-invalid":o},{[zs.isInvalid]:o},{[i??""]:i},{"d-none":e},zs.rowLabelInput),children:[l?b.jsx(n0,{text:l,placement:"top",children:p}):p,b.jsx("div",{className:de("input-container",zs.inputContainer,{"col-6":!u.withoutLabel&&!s},{"col-12":u.withoutLabel||s},{[zs.keepCheckLabel]:a},{[c??""]:c}),children:t})]})});Ml.displayName="RowLabelInput";const _E=h.forwardRef(({children:e,className:t,hidden:n},r)=>b.jsx("div",{ref:r,className:`${n?"d-none":""} ${t}`,children:e}));_E.displayName="NoInputContainer";const CE=({currentSelection:e,selectedItemNavigateTo:t,children:n})=>{if(!e||!e.id||!t)return b.jsx("div",{className:"luminus-input-container position-relative w-100",children:n});const r=t(e);return b.jsx(is.Link,{to:r,className:"luminus-input-container position-relative w-100 text-decoration-none",children:n})},$E=({InputContainer:e=Wf,type:t,value:n,onChange:r,debounceMs:i,label:o,withoutLabel:a,placeholder:s,size:c,hidden:l,disabled:u,showClearIcon:d,clearValue:f,list:p,className:g,step:m,minLength:v,maxLength:x,noSelectOnFocus:w,hint:_,onConfirm:C,autoComplete:y})=>{var D,W,G;const $=t==="number",E=h.useCallback(()=>{if(!r)return;const J=f??null;r($?J?Number(J):null:(J==null?void 0:J.toString())??"")},[f,$,r]),k=h.useRef(null),[T,O]=h.useState((n==null?void 0:n.toString())??""),S=h.useCallback(J=>{const Z=J;r&&r($?Z==null||Z===""?null:Number(Z):Z||null)},[$,r]),M=h.useCallback(J=>{var X;const Z=(X=J.target)==null?void 0:X.value;if(!i){S(Z);return}O(Z),k.current!==null&&window.clearTimeout(k.current),k.current=window.setTimeout(()=>{S(Z)},i)},[i,S]),A=h.useMemo(()=>{if(C!==void 0)return J=>{J.key==="Enter"&&C&&C()}},[C]);h.useEffect(()=>{O(n===null?"":n.toString())},[n]);const[j,P]=h.useState(!1),I=f0(t,n?n.toString()??null:null,j),L=h.useRef(null),V=(((D=L.current)==null?void 0:D.scrollWidth)??0)>(((W=L.current)==null?void 0:W.clientWidth)??0),z=(G=L.current)==null?void 0:G.getBoundingClientRect();return b.jsxs(e,{withoutLabel:a,label:o??"",hidden:l,className:g,hint:_,disabled:u,children:[b.jsx(Kr.Control,{type:I,placeholder:s??o,size:c,value:i?T:(n==null?void 0:n.toString())??"",onChange:M,className:g??"",hidden:l,disabled:u??!1,list:p,onFocus:J=>{P(!0),!w&&J.target.select()},onBlur:()=>P(!1),onKeyDown:A,step:m,minLength:v,maxLength:x,autoComplete:y,ref:L}),d&&n!==null&&r&&!u&&b.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:b.jsx(Ol,{color:"secondary",size:"sm",onClick:E,children:b.jsx(Cl,{})})}),V?b.jsx("div",{className:"luminus-overflow-tooltip",style:{opacity:0,position:"fixed",top:((z==null?void 0:z.top)??0)+((z==null?void 0:z.height)??0),left:(z==null?void 0:z.left)??0},children:i?T:(n==null?void 0:n.toString())??""}):null]})};var w0={},Sd={exports:{}};Sd.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",c="[object Array]",l="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",g="[object GeneratorFunction]",m="[object Map]",v="[object Number]",x="[object Null]",w="[object Object]",_="[object Promise]",C="[object Proxy]",y="[object RegExp]",$="[object Set]",E="[object String]",k="[object Symbol]",T="[object Undefined]",O="[object WeakMap]",S="[object ArrayBuffer]",M="[object DataView]",A="[object Float32Array]",j="[object Float64Array]",P="[object Int8Array]",I="[object Int16Array]",L="[object Int32Array]",V="[object Uint8Array]",z="[object Uint8ClampedArray]",D="[object Uint16Array]",W="[object Uint32Array]",G=/[\\^$.*+?()[\]{}|]/g,J=/^\[object .+?Constructor\]$/,Z=/^(?:0|[1-9]\d*)$/,X={};X[A]=X[j]=X[P]=X[I]=X[L]=X[V]=X[z]=X[D]=X[W]=!0,X[s]=X[c]=X[S]=X[u]=X[M]=X[d]=X[f]=X[p]=X[m]=X[v]=X[w]=X[y]=X[$]=X[E]=X[O]=!1;var ee=typeof lr=="object"&&lr&&lr.Object===Object&&lr,ne=typeof self=="object"&&self&&self.Object===Object&&self,F=ee||ne||Function("return this")(),N=t&&!t.nodeType&&t,B=N&&!0&&e&&!e.nodeType&&e,H=B&&B.exports===N,R=H&&ee.process,Y=function(){try{return R&&R.binding&&R.binding("util")}catch{}}(),Q=Y&&Y.isTypedArray;function te(U,re){for(var ge=-1,Ae=U==null?0:U.length,Xt=0,ct=[];++ge<Ae;){var ln=U[ge];re(ln,ge,U)&&(ct[Xt++]=ln)}return ct}function ue(U,re){for(var ge=-1,Ae=re.length,Xt=U.length;++ge<Ae;)U[Xt+ge]=re[ge];return U}function oe(U,re){for(var ge=-1,Ae=U==null?0:U.length;++ge<Ae;)if(re(U[ge],ge,U))return!0;return!1}function ae(U,re){for(var ge=-1,Ae=Array(U);++ge<U;)Ae[ge]=re(ge);return Ae}function pe(U){return function(re){return U(re)}}function ve(U,re){return U.has(re)}function Ee(U,re){return U==null?void 0:U[re]}function Se(U){var re=-1,ge=Array(U.size);return U.forEach(function(Ae,Xt){ge[++re]=[Xt,Ae]}),ge}function Oe(U,re){return function(ge){return U(re(ge))}}function Fe(U){var re=-1,ge=Array(U.size);return U.forEach(function(Ae){ge[++re]=Ae}),ge}var fe=Array.prototype,se=Function.prototype,we=Object.prototype,Ve=F["__core-js_shared__"],Ot=se.toString,ze=we.hasOwnProperty,ft=function(){var U=/[^.]+$/.exec(Ve&&Ve.keys&&Ve.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),_t=we.toString,Vt=RegExp("^"+Ot.call(ze).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=H?F.Buffer:void 0,bt=F.Symbol,Ct=F.Uint8Array,Ht=we.propertyIsEnumerable,Be=fe.splice,Ie=bt?bt.toStringTag:void 0,et=Object.getOwnPropertySymbols,He=gt?gt.isBuffer:void 0,tt=Oe(Object.keys,Object),nt=ca(F,"DataView"),$t=ca(F,"Map"),ht=ca(F,"Promise"),ut=ca(F,"Set"),xt=ca(F,"WeakMap"),yt=ca(Object,"create"),at=fo(nt),St=fo($t),Mt=fo(ht),_e=fo(ut),Me=fo(xt),Ne=bt?bt.prototype:void 0,Ke=Ne?Ne.valueOf:void 0;function Ye(U){var re=-1,ge=U==null?0:U.length;for(this.clear();++re<ge;){var Ae=U[re];this.set(Ae[0],Ae[1])}}function Et(){this.__data__=yt?yt(null):{},this.size=0}function q(U){var re=this.has(U)&&delete this.__data__[U];return this.size-=re?1:0,re}function me(U){var re=this.__data__;if(yt){var ge=re[U];return ge===r?void 0:ge}return ze.call(re,U)?re[U]:void 0}function le(U){var re=this.__data__;return yt?re[U]!==void 0:ze.call(re,U)}function he(U,re){var ge=this.__data__;return this.size+=this.has(U)?0:1,ge[U]=yt&&re===void 0?r:re,this}Ye.prototype.clear=Et,Ye.prototype.delete=q,Ye.prototype.get=me,Ye.prototype.has=le,Ye.prototype.set=he;function $e(U){var re=-1,ge=U==null?0:U.length;for(this.clear();++re<ge;){var Ae=U[re];this.set(Ae[0],Ae[1])}}function De(){this.__data__=[],this.size=0}function Te(U){var re=this.__data__,ge=nu(re,U);if(ge<0)return!1;var Ae=re.length-1;return ge==Ae?re.pop():Be.call(re,ge,1),--this.size,!0}function je(U){var re=this.__data__,ge=nu(re,U);return ge<0?void 0:re[ge][1]}function qe(U){return nu(this.__data__,U)>-1}function We(U,re){var ge=this.__data__,Ae=nu(ge,U);return Ae<0?(++this.size,ge.push([U,re])):ge[Ae][1]=re,this}$e.prototype.clear=De,$e.prototype.delete=Te,$e.prototype.get=je,$e.prototype.has=qe,$e.prototype.set=We;function st(U){var re=-1,ge=U==null?0:U.length;for(this.clear();++re<ge;){var Ae=U[re];this.set(Ae[0],Ae[1])}}function nn(){this.size=0,this.__data__={hash:new Ye,map:new($t||$e),string:new Ye}}function Ut(U){var re=ru(this,U).delete(U);return this.size-=re?1:0,re}function cn(U){return ru(this,U).get(U)}function Ce(U){return ru(this,U).has(U)}function xn(U,re){var ge=ru(this,U),Ae=ge.size;return ge.set(U,re),this.size+=ge.size==Ae?0:1,this}st.prototype.clear=nn,st.prototype.delete=Ut,st.prototype.get=cn,st.prototype.has=Ce,st.prototype.set=xn;function qt(U){var re=-1,ge=U==null?0:U.length;for(this.__data__=new st;++re<ge;)this.add(U[re])}function xr(U){return this.__data__.set(U,r),this}function eu(U){return this.__data__.has(U)}qt.prototype.add=qt.prototype.push=xr,qt.prototype.has=eu;function wr(U){var re=this.__data__=new $e(U);this.size=re.size}function uo(){this.__data__=new $e,this.size=0}function tu(U){var re=this.__data__,ge=re.delete(U);return this.size=re.size,ge}function Jr(U){return this.__data__.get(U)}function pp(U){return this.__data__.has(U)}function ei(U,re){var ge=this.__data__;if(ge instanceof $e){var Ae=ge.__data__;if(!$t||Ae.length<n-1)return Ae.push([U,re]),this.size=++ge.size,this;ge=this.__data__=new st(Ae)}return ge.set(U,re),this.size=ge.size,this}wr.prototype.clear=uo,wr.prototype.delete=tu,wr.prototype.get=Jr,wr.prototype.has=pp,wr.prototype.set=ei;function Os(U,re){var ge=iu(U),Ae=!ge&&BM(U),Xt=!ge&&!Ae&&mp(U),ct=!ge&&!Ae&&!Xt&&zy(U),ln=ge||Ae||Xt||ct,mn=ln?ae(U.length,String):[],wn=mn.length;for(var on in U)ze.call(U,on)&&!(ln&&(on=="length"||Xt&&(on=="offset"||on=="parent")||ct&&(on=="buffer"||on=="byteLength"||on=="byteOffset")||DM(on,wn)))&&mn.push(on);return mn}function nu(U,re){for(var ge=U.length;ge--;)if(Py(U[ge][0],re))return ge;return-1}function EM(U,re,ge){var Ae=re(U);return iu(U)?Ae:ue(Ae,ge(U))}function Ms(U){return U==null?U===void 0?T:x:Ie&&Ie in Object(U)?jM(U):FM(U)}function jy(U){return Rs(U)&&Ms(U)==s}function Ny(U,re,ge,Ae,Xt){return U===re?!0:U==null||re==null||!Rs(U)&&!Rs(re)?U!==U&&re!==re:TM(U,re,ge,Ae,Ny,Xt)}function TM(U,re,ge,Ae,Xt,ct){var ln=iu(U),mn=iu(re),wn=ln?c:Ti(U),on=mn?c:Ti(re);wn=wn==s?w:wn,on=on==s?w:on;var Xn=wn==w,_r=on==w,Cn=wn==on;if(Cn&&mp(U)){if(!mp(re))return!1;ln=!0,Xn=!1}if(Cn&&!Xn)return ct||(ct=new wr),ln||zy(U)?Dy(U,re,ge,Ae,Xt,ct):RM(U,re,wn,ge,Ae,Xt,ct);if(!(ge&i)){var ir=Xn&&ze.call(U,"__wrapped__"),or=_r&&ze.call(re,"__wrapped__");if(ir||or){var ki=ir?U.value():U,ti=or?re.value():re;return ct||(ct=new wr),Xt(ki,ti,ge,Ae,ct)}}return Cn?(ct||(ct=new wr),AM(U,re,ge,Ae,Xt,ct)):!1}function kM(U){if(!By(U)||PM(U))return!1;var re=Ly(U)?Vt:J;return re.test(fo(U))}function OM(U){return Rs(U)&&Fy(U.length)&&!!X[Ms(U)]}function MM(U){if(!LM(U))return tt(U);var re=[];for(var ge in Object(U))ze.call(U,ge)&&ge!="constructor"&&re.push(ge);return re}function Dy(U,re,ge,Ae,Xt,ct){var ln=ge&i,mn=U.length,wn=re.length;if(mn!=wn&&!(ln&&wn>mn))return!1;var on=ct.get(U);if(on&&ct.get(re))return on==re;var Xn=-1,_r=!0,Cn=ge&o?new qt:void 0;for(ct.set(U,re),ct.set(re,U);++Xn<mn;){var ir=U[Xn],or=re[Xn];if(Ae)var ki=ln?Ae(or,ir,Xn,re,U,ct):Ae(ir,or,Xn,U,re,ct);if(ki!==void 0){if(ki)continue;_r=!1;break}if(Cn){if(!oe(re,function(ti,ho){if(!ve(Cn,ho)&&(ir===ti||Xt(ir,ti,ge,Ae,ct)))return Cn.push(ho)})){_r=!1;break}}else if(!(ir===or||Xt(ir,or,ge,Ae,ct))){_r=!1;break}}return ct.delete(U),ct.delete(re),_r}function RM(U,re,ge,Ae,Xt,ct,ln){switch(ge){case M:if(U.byteLength!=re.byteLength||U.byteOffset!=re.byteOffset)return!1;U=U.buffer,re=re.buffer;case S:return!(U.byteLength!=re.byteLength||!ct(new Ct(U),new Ct(re)));case u:case d:case v:return Py(+U,+re);case f:return U.name==re.name&&U.message==re.message;case y:case E:return U==re+"";case m:var mn=Se;case $:var wn=Ae&i;if(mn||(mn=Fe),U.size!=re.size&&!wn)return!1;var on=ln.get(U);if(on)return on==re;Ae|=o,ln.set(U,re);var Xn=Dy(mn(U),mn(re),Ae,Xt,ct,ln);return ln.delete(U),Xn;case k:if(Ke)return Ke.call(U)==Ke.call(re)}return!1}function AM(U,re,ge,Ae,Xt,ct){var ln=ge&i,mn=Iy(U),wn=mn.length,on=Iy(re),Xn=on.length;if(wn!=Xn&&!ln)return!1;for(var _r=wn;_r--;){var Cn=mn[_r];if(!(ln?Cn in re:ze.call(re,Cn)))return!1}var ir=ct.get(U);if(ir&&ct.get(re))return ir==re;var or=!0;ct.set(U,re),ct.set(re,U);for(var ki=ln;++_r<wn;){Cn=mn[_r];var ti=U[Cn],ho=re[Cn];if(Ae)var Wy=ln?Ae(ho,ti,Cn,re,U,ct):Ae(ti,ho,Cn,U,re,ct);if(!(Wy===void 0?ti===ho||Xt(ti,ho,ge,Ae,ct):Wy)){or=!1;break}ki||(ki=Cn=="constructor")}if(or&&!ki){var ou=U.constructor,au=re.constructor;ou!=au&&"constructor"in U&&"constructor"in re&&!(typeof ou=="function"&&ou instanceof ou&&typeof au=="function"&&au instanceof au)&&(or=!1)}return ct.delete(U),ct.delete(re),or}function Iy(U){return EM(U,UM,NM)}function ru(U,re){var ge=U.__data__;return IM(re)?ge[typeof re=="string"?"string":"hash"]:ge.map}function ca(U,re){var ge=Ee(U,re);return kM(ge)?ge:void 0}function jM(U){var re=ze.call(U,Ie),ge=U[Ie];try{U[Ie]=void 0;var Ae=!0}catch{}var Xt=_t.call(U);return Ae&&(re?U[Ie]=ge:delete U[Ie]),Xt}var NM=et?function(U){return U==null?[]:(U=Object(U),te(et(U),function(re){return Ht.call(U,re)}))}:VM,Ti=Ms;(nt&&Ti(new nt(new ArrayBuffer(1)))!=M||$t&&Ti(new $t)!=m||ht&&Ti(ht.resolve())!=_||ut&&Ti(new ut)!=$||xt&&Ti(new xt)!=O)&&(Ti=function(U){var re=Ms(U),ge=re==w?U.constructor:void 0,Ae=ge?fo(ge):"";if(Ae)switch(Ae){case at:return M;case St:return m;case Mt:return _;case _e:return $;case Me:return O}return re});function DM(U,re){return re=re??a,!!re&&(typeof U=="number"||Z.test(U))&&U>-1&&U%1==0&&U<re}function IM(U){var re=typeof U;return re=="string"||re=="number"||re=="symbol"||re=="boolean"?U!=="__proto__":U===null}function PM(U){return!!ft&&ft in U}function LM(U){var re=U&&U.constructor,ge=typeof re=="function"&&re.prototype||we;return U===ge}function FM(U){return _t.call(U)}function fo(U){if(U!=null){try{return Ot.call(U)}catch{}try{return U+""}catch{}}return""}function Py(U,re){return U===re||U!==U&&re!==re}var BM=jy(function(){return arguments}())?jy:function(U){return Rs(U)&&ze.call(U,"callee")&&!Ht.call(U,"callee")},iu=Array.isArray;function zM(U){return U!=null&&Fy(U.length)&&!Ly(U)}var mp=He||HM;function WM(U,re){return Ny(U,re)}function Ly(U){if(!By(U))return!1;var re=Ms(U);return re==p||re==g||re==l||re==C}function Fy(U){return typeof U=="number"&&U>-1&&U%1==0&&U<=a}function By(U){var re=typeof U;return U!=null&&(re=="object"||re=="function")}function Rs(U){return U!=null&&typeof U=="object"}var zy=Q?pe(Q):OM;function UM(U){return zM(U)?Os(U):MM(U)}function VM(){return[]}function HM(){return!1}e.exports=WM})(Sd,Sd.exports);var d9=Sd.exports,SE={exports:{}};(function(e,t){var n=function(){var r=function(y,$){var E=236,k=17,T=y,O=o[$],S=null,M=0,A=null,j=[],P={},I=function(F,N){M=T*4+17,S=function(B){for(var H=new Array(B),R=0;R<B;R+=1){H[R]=new Array(B);for(var Y=0;Y<B;Y+=1)H[R][Y]=null}return H}(M),L(0,0),L(M-7,0),L(0,M-7),D(),z(),G(F,N),T>=7&&W(F),A==null&&(A=X(T,O,j)),J(A,N)},L=function(F,N){for(var B=-1;B<=7;B+=1)if(!(F+B<=-1||M<=F+B))for(var H=-1;H<=7;H+=1)N+H<=-1||M<=N+H||(0<=B&&B<=6&&(H==0||H==6)||0<=H&&H<=6&&(B==0||B==6)||2<=B&&B<=4&&2<=H&&H<=4?S[F+B][N+H]=!0:S[F+B][N+H]=!1)},V=function(){for(var F=0,N=0,B=0;B<8;B+=1){I(!0,B);var H=s.getLostPoint(P);(B==0||F>H)&&(F=H,N=B)}return N},z=function(){for(var F=8;F<M-8;F+=1)S[F][6]==null&&(S[F][6]=F%2==0);for(var N=8;N<M-8;N+=1)S[6][N]==null&&(S[6][N]=N%2==0)},D=function(){for(var F=s.getPatternPosition(T),N=0;N<F.length;N+=1)for(var B=0;B<F.length;B+=1){var H=F[N],R=F[B];if(S[H][R]==null)for(var Y=-2;Y<=2;Y+=1)for(var Q=-2;Q<=2;Q+=1)Y==-2||Y==2||Q==-2||Q==2||Y==0&&Q==0?S[H+Y][R+Q]=!0:S[H+Y][R+Q]=!1}},W=function(F){for(var N=s.getBCHTypeNumber(T),B=0;B<18;B+=1){var H=!F&&(N>>B&1)==1;S[Math.floor(B/3)][B%3+M-8-3]=H}for(var B=0;B<18;B+=1){var H=!F&&(N>>B&1)==1;S[B%3+M-8-3][Math.floor(B/3)]=H}},G=function(F,N){for(var B=O<<3|N,H=s.getBCHTypeInfo(B),R=0;R<15;R+=1){var Y=!F&&(H>>R&1)==1;R<6?S[R][8]=Y:R<8?S[R+1][8]=Y:S[M-15+R][8]=Y}for(var R=0;R<15;R+=1){var Y=!F&&(H>>R&1)==1;R<8?S[8][M-R-1]=Y:R<9?S[8][15-R-1+1]=Y:S[8][15-R-1]=Y}S[M-8][8]=!F},J=function(F,N){for(var B=-1,H=M-1,R=7,Y=0,Q=s.getMaskFunction(N),te=M-1;te>0;te-=2)for(te==6&&(te-=1);;){for(var ue=0;ue<2;ue+=1)if(S[H][te-ue]==null){var oe=!1;Y<F.length&&(oe=(F[Y]>>>R&1)==1);var ae=Q(H,te-ue);ae&&(oe=!oe),S[H][te-ue]=oe,R-=1,R==-1&&(Y+=1,R=7)}if(H+=B,H<0||M<=H){H-=B,B=-B;break}}},Z=function(F,N){for(var B=0,H=0,R=0,Y=new Array(N.length),Q=new Array(N.length),te=0;te<N.length;te+=1){var ue=N[te].dataCount,oe=N[te].totalCount-ue;H=Math.max(H,ue),R=Math.max(R,oe),Y[te]=new Array(ue);for(var ae=0;ae<Y[te].length;ae+=1)Y[te][ae]=255&F.getBuffer()[ae+B];B+=ue;var pe=s.getErrorCorrectPolynomial(oe),ve=l(Y[te],pe.getLength()-1),Ee=ve.mod(pe);Q[te]=new Array(pe.getLength()-1);for(var ae=0;ae<Q[te].length;ae+=1){var Se=ae+Ee.getLength()-Q[te].length;Q[te][ae]=Se>=0?Ee.getAt(Se):0}}for(var Oe=0,ae=0;ae<N.length;ae+=1)Oe+=N[ae].totalCount;for(var Fe=new Array(Oe),fe=0,ae=0;ae<H;ae+=1)for(var te=0;te<N.length;te+=1)ae<Y[te].length&&(Fe[fe]=Y[te][ae],fe+=1);for(var ae=0;ae<R;ae+=1)for(var te=0;te<N.length;te+=1)ae<Q[te].length&&(Fe[fe]=Q[te][ae],fe+=1);return Fe},X=function(F,N,B){for(var H=u.getRSBlocks(F,N),R=d(),Y=0;Y<B.length;Y+=1){var Q=B[Y];R.put(Q.getMode(),4),R.put(Q.getLength(),s.getLengthInBits(Q.getMode(),F)),Q.write(R)}for(var te=0,Y=0;Y<H.length;Y+=1)te+=H[Y].dataCount;if(R.getLengthInBits()>te*8)throw"code length overflow. ("+R.getLengthInBits()+">"+te*8+")";for(R.getLengthInBits()+4<=te*8&&R.put(0,4);R.getLengthInBits()%8!=0;)R.putBit(!1);for(;!(R.getLengthInBits()>=te*8||(R.put(E,8),R.getLengthInBits()>=te*8));)R.put(k,8);return Z(R,H)};P.addData=function(F,N){N=N||"Byte";var B=null;switch(N){case"Numeric":B=f(F);break;case"Alphanumeric":B=p(F);break;case"Byte":B=g(F);break;case"Kanji":B=m(F);break;default:throw"mode:"+N}j.push(B),A=null},P.isDark=function(F,N){if(F<0||M<=F||N<0||M<=N)throw F+","+N;return S[F][N]},P.getModuleCount=function(){return M},P.make=function(){if(T<1){for(var F=1;F<40;F++){for(var N=u.getRSBlocks(F,O),B=d(),H=0;H<j.length;H++){var R=j[H];B.put(R.getMode(),4),B.put(R.getLength(),s.getLengthInBits(R.getMode(),F)),R.write(B)}for(var Y=0,H=0;H<N.length;H++)Y+=N[H].dataCount;if(B.getLengthInBits()<=Y*8)break}T=F}I(!1,V())},P.createTableTag=function(F,N){F=F||2,N=typeof N>"u"?F*4:N;var B="";B+='<table style="',B+=" border-width: 0px; border-style: none;",B+=" border-collapse: collapse;",B+=" padding: 0px; margin: "+N+"px;",B+='">',B+="<tbody>";for(var H=0;H<P.getModuleCount();H+=1){B+="<tr>";for(var R=0;R<P.getModuleCount();R+=1)B+='<td style="',B+=" border-width: 0px; border-style: none;",B+=" border-collapse: collapse;",B+=" padding: 0px; margin: 0px;",B+=" width: "+F+"px;",B+=" height: "+F+"px;",B+=" background-color: ",B+=P.isDark(H,R)?"#000000":"#ffffff",B+=";",B+='"/>';B+="</tr>"}return B+="</tbody>",B+="</table>",B},P.createSvgTag=function(F,N,B,H){var R={};typeof arguments[0]=="object"&&(R=arguments[0],F=R.cellSize,N=R.margin,B=R.alt,H=R.title),F=F||2,N=typeof N>"u"?F*4:N,B=typeof B=="string"?{text:B}:B||{},B.text=B.text||null,B.id=B.text?B.id||"qrcode-description":null,H=typeof H=="string"?{text:H}:H||{},H.text=H.text||null,H.id=H.text?H.id||"qrcode-title":null;var Y=P.getModuleCount()*F+N*2,Q,te,ue,oe,ae="",pe;for(pe="l"+F+",0 0,"+F+" -"+F+",0 0,-"+F+"z ",ae+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',ae+=R.scalable?"":' width="'+Y+'px" height="'+Y+'px"',ae+=' viewBox="0 0 '+Y+" "+Y+'" ',ae+=' preserveAspectRatio="xMinYMin meet"',ae+=H.text||B.text?' role="img" aria-labelledby="'+ee([H.id,B.id].join(" ").trim())+'"':"",ae+=">",ae+=H.text?'<title id="'+ee(H.id)+'">'+ee(H.text)+"</title>":"",ae+=B.text?'<description id="'+ee(B.id)+'">'+ee(B.text)+"</description>":"",ae+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',ae+='<path d="',ue=0;ue<P.getModuleCount();ue+=1)for(oe=ue*F+N,Q=0;Q<P.getModuleCount();Q+=1)P.isDark(ue,Q)&&(te=Q*F+N,ae+="M"+te+","+oe+pe);return ae+='" stroke="transparent" fill="black"/>',ae+="</svg>",ae},P.createDataURL=function(F,N){F=F||2,N=typeof N>"u"?F*4:N;var B=P.getModuleCount()*F+N*2,H=N,R=B-N;return C(B,B,function(Y,Q){if(H<=Y&&Y<R&&H<=Q&&Q<R){var te=Math.floor((Y-H)/F),ue=Math.floor((Q-H)/F);return P.isDark(ue,te)?0:1}else return 1})},P.createImgTag=function(F,N,B){F=F||2,N=typeof N>"u"?F*4:N;var H=P.getModuleCount()*F+N*2,R="";return R+="<img",R+=' src="',R+=P.createDataURL(F,N),R+='"',R+=' width="',R+=H,R+='"',R+=' height="',R+=H,R+='"',B&&(R+=' alt="',R+=ee(B),R+='"'),R+="/>",R};var ee=function(F){for(var N="",B=0;B<F.length;B+=1){var H=F.charAt(B);switch(H){case"<":N+="&lt;";break;case">":N+="&gt;";break;case"&":N+="&amp;";break;case'"':N+="&quot;";break;default:N+=H;break}}return N},ne=function(F){var N=1;F=typeof F>"u"?N*2:F;var B=P.getModuleCount()*N+F*2,H=F,R=B-F,Y,Q,te,ue,oe,ae={"██":"█","█ ":"▀"," █":"▄"," ":" "},pe={"██":"▀","█ ":"▀"," █":" "," ":" "},ve="";for(Y=0;Y<B;Y+=2){for(te=Math.floor((Y-H)/N),ue=Math.floor((Y+1-H)/N),Q=0;Q<B;Q+=1)oe="█",H<=Q&&Q<R&&H<=Y&&Y<R&&P.isDark(te,Math.floor((Q-H)/N))&&(oe=" "),H<=Q&&Q<R&&H<=Y+1&&Y+1<R&&P.isDark(ue,Math.floor((Q-H)/N))?oe+=" ":oe+="█",ve+=F<1&&Y+1>=R?pe[oe]:ae[oe];ve+=`
254
- `}return B%2&&F>0?ve.substring(0,ve.length-B-1)+Array(B+1).join("▀"):ve.substring(0,ve.length-1)};return P.createASCII=function(F,N){if(F=F||1,F<2)return ne(N);F-=1,N=typeof N>"u"?F*2:N;var B=P.getModuleCount()*F+N*2,H=N,R=B-N,Y,Q,te,ue,oe=Array(F+1).join("██"),ae=Array(F+1).join(" "),pe="",ve="";for(Y=0;Y<B;Y+=1){for(te=Math.floor((Y-H)/F),ve="",Q=0;Q<B;Q+=1)ue=1,H<=Q&&Q<R&&H<=Y&&Y<R&&P.isDark(te,Math.floor((Q-H)/F))&&(ue=0),ve+=ue?oe:ae;for(te=0;te<F;te+=1)pe+=ve+`
255
- `}return pe.substring(0,pe.length-1)},P.renderTo2dContext=function(F,N){N=N||2;for(var B=P.getModuleCount(),H=0;H<B;H++)for(var R=0;R<B;R++)F.fillStyle=P.isDark(H,R)?"black":"white",F.fillRect(H*N,R*N,N,N)},P};r.stringToBytesFuncs={default:function(y){for(var $=[],E=0;E<y.length;E+=1){var k=y.charCodeAt(E);$.push(k&255)}return $}},r.stringToBytes=r.stringToBytesFuncs.default,r.createStringToBytes=function(y,$){var E=function(){for(var T=w(y),O=function(){var z=T.read();if(z==-1)throw"eof";return z},S=0,M={};;){var A=T.read();if(A==-1)break;var j=O(),P=O(),I=O(),L=String.fromCharCode(A<<8|j),V=P<<8|I;M[L]=V,S+=1}if(S!=$)throw S+" != "+$;return M}(),k=63;return function(T){for(var O=[],S=0;S<T.length;S+=1){var M=T.charCodeAt(S);if(M<128)O.push(M);else{var A=E[T.charAt(S)];typeof A=="number"?(A&255)==A?O.push(A):(O.push(A>>>8),O.push(A&255)):O.push(k)}}return O}};var i={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},o={L:1,M:0,Q:3,H:2},a={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},s=function(){var y=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],$=1335,E=7973,k=21522,T={},O=function(S){for(var M=0;S!=0;)M+=1,S>>>=1;return M};return T.getBCHTypeInfo=function(S){for(var M=S<<10;O(M)-O($)>=0;)M^=$<<O(M)-O($);return(S<<10|M)^k},T.getBCHTypeNumber=function(S){for(var M=S<<12;O(M)-O(E)>=0;)M^=E<<O(M)-O(E);return S<<12|M},T.getPatternPosition=function(S){return y[S-1]},T.getMaskFunction=function(S){switch(S){case a.PATTERN000:return function(M,A){return(M+A)%2==0};case a.PATTERN001:return function(M,A){return M%2==0};case a.PATTERN010:return function(M,A){return A%3==0};case a.PATTERN011:return function(M,A){return(M+A)%3==0};case a.PATTERN100:return function(M,A){return(Math.floor(M/2)+Math.floor(A/3))%2==0};case a.PATTERN101:return function(M,A){return M*A%2+M*A%3==0};case a.PATTERN110:return function(M,A){return(M*A%2+M*A%3)%2==0};case a.PATTERN111:return function(M,A){return(M*A%3+(M+A)%2)%2==0};default:throw"bad maskPattern:"+S}},T.getErrorCorrectPolynomial=function(S){for(var M=l([1],0),A=0;A<S;A+=1)M=M.multiply(l([1,c.gexp(A)],0));return M},T.getLengthInBits=function(S,M){if(1<=M&&M<10)switch(S){case i.MODE_NUMBER:return 10;case i.MODE_ALPHA_NUM:return 9;case i.MODE_8BIT_BYTE:return 8;case i.MODE_KANJI:return 8;default:throw"mode:"+S}else if(M<27)switch(S){case i.MODE_NUMBER:return 12;case i.MODE_ALPHA_NUM:return 11;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 10;default:throw"mode:"+S}else if(M<41)switch(S){case i.MODE_NUMBER:return 14;case i.MODE_ALPHA_NUM:return 13;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 12;default:throw"mode:"+S}else throw"type:"+M},T.getLostPoint=function(S){for(var M=S.getModuleCount(),A=0,j=0;j<M;j+=1)for(var P=0;P<M;P+=1){for(var I=0,L=S.isDark(j,P),V=-1;V<=1;V+=1)if(!(j+V<0||M<=j+V))for(var z=-1;z<=1;z+=1)P+z<0||M<=P+z||V==0&&z==0||L==S.isDark(j+V,P+z)&&(I+=1);I>5&&(A+=3+I-5)}for(var j=0;j<M-1;j+=1)for(var P=0;P<M-1;P+=1){var D=0;S.isDark(j,P)&&(D+=1),S.isDark(j+1,P)&&(D+=1),S.isDark(j,P+1)&&(D+=1),S.isDark(j+1,P+1)&&(D+=1),(D==0||D==4)&&(A+=3)}for(var j=0;j<M;j+=1)for(var P=0;P<M-6;P+=1)S.isDark(j,P)&&!S.isDark(j,P+1)&&S.isDark(j,P+2)&&S.isDark(j,P+3)&&S.isDark(j,P+4)&&!S.isDark(j,P+5)&&S.isDark(j,P+6)&&(A+=40);for(var P=0;P<M;P+=1)for(var j=0;j<M-6;j+=1)S.isDark(j,P)&&!S.isDark(j+1,P)&&S.isDark(j+2,P)&&S.isDark(j+3,P)&&S.isDark(j+4,P)&&!S.isDark(j+5,P)&&S.isDark(j+6,P)&&(A+=40);for(var W=0,P=0;P<M;P+=1)for(var j=0;j<M;j+=1)S.isDark(j,P)&&(W+=1);var G=Math.abs(100*W/M/M-50)/5;return A+=G*10,A},T}(),c=function(){for(var y=new Array(256),$=new Array(256),E=0;E<8;E+=1)y[E]=1<<E;for(var E=8;E<256;E+=1)y[E]=y[E-4]^y[E-5]^y[E-6]^y[E-8];for(var E=0;E<255;E+=1)$[y[E]]=E;var k={};return k.glog=function(T){if(T<1)throw"glog("+T+")";return $[T]},k.gexp=function(T){for(;T<0;)T+=255;for(;T>=256;)T-=255;return y[T]},k}();function l(y,$){if(typeof y.length>"u")throw y.length+"/"+$;var E=function(){for(var T=0;T<y.length&&y[T]==0;)T+=1;for(var O=new Array(y.length-T+$),S=0;S<y.length-T;S+=1)O[S]=y[S+T];return O}(),k={};return k.getAt=function(T){return E[T]},k.getLength=function(){return E.length},k.multiply=function(T){for(var O=new Array(k.getLength()+T.getLength()-1),S=0;S<k.getLength();S+=1)for(var M=0;M<T.getLength();M+=1)O[S+M]^=c.gexp(c.glog(k.getAt(S))+c.glog(T.getAt(M)));return l(O,0)},k.mod=function(T){if(k.getLength()-T.getLength()<0)return k;for(var O=c.glog(k.getAt(0))-c.glog(T.getAt(0)),S=new Array(k.getLength()),M=0;M<k.getLength();M+=1)S[M]=k.getAt(M);for(var M=0;M<T.getLength();M+=1)S[M]^=c.gexp(c.glog(T.getAt(M))+O);return l(S,0).mod(T)},k}var u=function(){var y=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],$=function(T,O){var S={};return S.totalCount=T,S.dataCount=O,S},E={},k=function(T,O){switch(O){case o.L:return y[(T-1)*4+0];case o.M:return y[(T-1)*4+1];case o.Q:return y[(T-1)*4+2];case o.H:return y[(T-1)*4+3];default:return}};return E.getRSBlocks=function(T,O){var S=k(T,O);if(typeof S>"u")throw"bad rs block @ typeNumber:"+T+"/errorCorrectionLevel:"+O;for(var M=S.length/3,A=[],j=0;j<M;j+=1)for(var P=S[j*3+0],I=S[j*3+1],L=S[j*3+2],V=0;V<P;V+=1)A.push($(I,L));return A},E}(),d=function(){var y=[],$=0,E={};return E.getBuffer=function(){return y},E.getAt=function(k){var T=Math.floor(k/8);return(y[T]>>>7-k%8&1)==1},E.put=function(k,T){for(var O=0;O<T;O+=1)E.putBit((k>>>T-O-1&1)==1)},E.getLengthInBits=function(){return $},E.putBit=function(k){var T=Math.floor($/8);y.length<=T&&y.push(0),k&&(y[T]|=128>>>$%8),$+=1},E},f=function(y){var $=i.MODE_NUMBER,E=y,k={};k.getMode=function(){return $},k.getLength=function(S){return E.length},k.write=function(S){for(var M=E,A=0;A+2<M.length;)S.put(T(M.substring(A,A+3)),10),A+=3;A<M.length&&(M.length-A==1?S.put(T(M.substring(A,A+1)),4):M.length-A==2&&S.put(T(M.substring(A,A+2)),7))};var T=function(S){for(var M=0,A=0;A<S.length;A+=1)M=M*10+O(S.charAt(A));return M},O=function(S){if("0"<=S&&S<="9")return S.charCodeAt(0)-48;throw"illegal char :"+S};return k},p=function(y){var $=i.MODE_ALPHA_NUM,E=y,k={};k.getMode=function(){return $},k.getLength=function(O){return E.length},k.write=function(O){for(var S=E,M=0;M+1<S.length;)O.put(T(S.charAt(M))*45+T(S.charAt(M+1)),11),M+=2;M<S.length&&O.put(T(S.charAt(M)),6)};var T=function(O){if("0"<=O&&O<="9")return O.charCodeAt(0)-48;if("A"<=O&&O<="Z")return O.charCodeAt(0)-65+10;switch(O){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+O}};return k},g=function(y){var $=i.MODE_8BIT_BYTE,E=r.stringToBytes(y),k={};return k.getMode=function(){return $},k.getLength=function(T){return E.length},k.write=function(T){for(var O=0;O<E.length;O+=1)T.put(E[O],8)},k},m=function(y){var $=i.MODE_KANJI,E=r.stringToBytesFuncs.SJIS;if(!E)throw"sjis not supported.";(function(O,S){var M=E(O);if(M.length!=2||(M[0]<<8|M[1])!=S)throw"sjis not supported."})("友",38726);var k=E(y),T={};return T.getMode=function(){return $},T.getLength=function(O){return~~(k.length/2)},T.write=function(O){for(var S=k,M=0;M+1<S.length;){var A=(255&S[M])<<8|255&S[M+1];if(33088<=A&&A<=40956)A-=33088;else if(57408<=A&&A<=60351)A-=49472;else throw"illegal char at "+(M+1)+"/"+A;A=(A>>>8&255)*192+(A&255),O.put(A,13),M+=2}if(M<S.length)throw"illegal char at "+(M+1)},T},v=function(){var y=[],$={};return $.writeByte=function(E){y.push(E&255)},$.writeShort=function(E){$.writeByte(E),$.writeByte(E>>>8)},$.writeBytes=function(E,k,T){k=k||0,T=T||E.length;for(var O=0;O<T;O+=1)$.writeByte(E[O+k])},$.writeString=function(E){for(var k=0;k<E.length;k+=1)$.writeByte(E.charCodeAt(k))},$.toByteArray=function(){return y},$.toString=function(){var E="";E+="[";for(var k=0;k<y.length;k+=1)k>0&&(E+=","),E+=y[k];return E+="]",E},$},x=function(){var y=0,$=0,E=0,k="",T={},O=function(M){k+=String.fromCharCode(S(M&63))},S=function(M){if(!(M<0)){if(M<26)return 65+M;if(M<52)return 97+(M-26);if(M<62)return 48+(M-52);if(M==62)return 43;if(M==63)return 47}throw"n:"+M};return T.writeByte=function(M){for(y=y<<8|M&255,$+=8,E+=1;$>=6;)O(y>>>$-6),$-=6},T.flush=function(){if($>0&&(O(y<<6-$),y=0,$=0),E%3!=0)for(var M=3-E%3,A=0;A<M;A+=1)k+="="},T.toString=function(){return k},T},w=function(y){var $=y,E=0,k=0,T=0,O={};O.read=function(){for(;T<8;){if(E>=$.length){if(T==0)return-1;throw"unexpected end of file./"+T}var M=$.charAt(E);if(E+=1,M=="=")return T=0,-1;if(M.match(/^\s$/))continue;k=k<<6|S(M.charCodeAt(0)),T+=6}var A=k>>>T-8&255;return T-=8,A};var S=function(M){if(65<=M&&M<=90)return M-65;if(97<=M&&M<=122)return M-97+26;if(48<=M&&M<=57)return M-48+52;if(M==43)return 62;if(M==47)return 63;throw"c:"+M};return O},_=function(y,$){var E=y,k=$,T=new Array(y*$),O={};O.setPixel=function(j,P,I){T[P*E+j]=I},O.write=function(j){j.writeString("GIF87a"),j.writeShort(E),j.writeShort(k),j.writeByte(128),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(255),j.writeByte(255),j.writeByte(255),j.writeString(","),j.writeShort(0),j.writeShort(0),j.writeShort(E),j.writeShort(k),j.writeByte(0);var P=2,I=M(P);j.writeByte(P);for(var L=0;I.length-L>255;)j.writeByte(255),j.writeBytes(I,L,255),L+=255;j.writeByte(I.length-L),j.writeBytes(I,L,I.length-L),j.writeByte(0),j.writeString(";")};var S=function(j){var P=j,I=0,L=0,V={};return V.write=function(z,D){if(z>>>D)throw"length over";for(;I+D>=8;)P.writeByte(255&(z<<I|L)),D-=8-I,z>>>=8-I,L=0,I=0;L=z<<I|L,I=I+D},V.flush=function(){I>0&&P.writeByte(L)},V},M=function(j){for(var P=1<<j,I=(1<<j)+1,L=j+1,V=A(),z=0;z<P;z+=1)V.add(String.fromCharCode(z));V.add(String.fromCharCode(P)),V.add(String.fromCharCode(I));var D=v(),W=S(D);W.write(P,L);var G=0,J=String.fromCharCode(T[G]);for(G+=1;G<T.length;){var Z=String.fromCharCode(T[G]);G+=1,V.contains(J+Z)?J=J+Z:(W.write(V.indexOf(J),L),V.size()<4095&&(V.size()==1<<L&&(L+=1),V.add(J+Z)),J=Z)}return W.write(V.indexOf(J),L),W.write(I,L),W.flush(),D.toByteArray()},A=function(){var j={},P=0,I={};return I.add=function(L){if(I.contains(L))throw"dup key:"+L;j[L]=P,P+=1},I.size=function(){return P},I.indexOf=function(L){return j[L]},I.contains=function(L){return typeof j[L]<"u"},I};return O},C=function(y,$,E){for(var k=_(y,$),T=0;T<$;T+=1)for(var O=0;O<y;O+=1)k.setPixel(O,T,E(O,T));var S=v();k.write(S);for(var M=x(),A=S.toByteArray(),j=0;j<A.length;j+=1)M.writeByte(A[j]);return M.flush(),"data:image/gif;base64,"+M};return r}();(function(){n.stringToBytesFuncs["UTF-8"]=function(r){function i(o){for(var a=[],s=0;s<o.length;s++){var c=o.charCodeAt(s);c<128?a.push(c):c<2048?a.push(192|c>>6,128|c&63):c<55296||c>=57344?a.push(224|c>>12,128|c>>6&63,128|c&63):(s++,c=65536+((c&1023)<<10|o.charCodeAt(s)&1023),a.push(240|c>>18,128|c>>12&63,128|c>>6&63,128|c&63))}return a}return i(r)}})(),function(r){e.exports=r()}(function(){return n})})(SE);var f9=SE.exports,h9=lr&&lr.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),xg=lr&&lr.__assign||function(){return xg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},xg.apply(this,arguments)};Object.defineProperty(w0,"__esModule",{value:!0});exports.QRCode_1=w0.QRCode=void 0;var p9=d9,m9=f9,Bp=h,g9=function(e){h9(t,e);function t(n){var r=e.call(this,n)||this;return r.canvasRef=Bp.createRef(),r}return t.prototype.download=function(n,r){if(this.canvasRef.current){var i=void 0;switch(n){case"jpg":i="image/jpeg";break;case"webp":i="image/webp";break;case"png":default:i="image/png";break}var o=this.canvasRef.current.toDataURL(i,1),a=document.createElement("a");a.download=r??"react-qrcode-logo",a.href=o,a.click()}},t.prototype.utf16to8=function(n){var r="",i,o,a=n.length;for(i=0;i<a;i++)o=n.charCodeAt(i),o>=1&&o<=127?r+=n.charAt(i):o>2047?(r+=String.fromCharCode(224|o>>12&15),r+=String.fromCharCode(128|o>>6&63),r+=String.fromCharCode(128|o>>0&63)):(r+=String.fromCharCode(192|o>>6&31),r+=String.fromCharCode(128|o>>0&63));return r},t.prototype.drawRoundedSquare=function(n,r,i,o,a,s,c,l){l.lineWidth=n,l.fillStyle=a,l.strokeStyle=a,i+=n/2,r+=n/2,o-=n,Array.isArray(s)||(s=[s,s,s,s]),s=s.map(function(g){return g=Math.min(g,o/2),g<0?0:g});var u=s[0]||0,d=s[1]||0,f=s[2]||0,p=s[3]||0;l.beginPath(),l.moveTo(r+u,i),l.lineTo(r+o-d,i),d&&l.quadraticCurveTo(r+o,i,r+o,i+d),l.lineTo(r+o,i+o-f),f&&l.quadraticCurveTo(r+o,i+o,r+o-f,i+o),l.lineTo(r+p,i+o),p&&l.quadraticCurveTo(r,i+o,r,i+o-p),l.lineTo(r,i+u),u&&l.quadraticCurveTo(r,i,r+u,i),l.closePath(),l.stroke(),c&&l.fill()},t.prototype.drawPositioningPattern=function(n,r,i,o,a,s,c){c===void 0&&(c=[0,0,0,0]);var l=Math.ceil(r),u,d;typeof c!="number"&&!Array.isArray(c)?(u=c.outer||0,d=c.inner||0):(u=c,d=u);var f,p;typeof s!="string"?(f=s.outer,p=s.inner):(f=s,p=s);var g=o*r+i,m=a*r+i,v=r*7;this.drawRoundedSquare(l,m,g,v,f,u,!1,n),v=r*3,g+=r*2,m+=r*2,this.drawRoundedSquare(l,m,g,v,p,d,!0,n)},t.prototype.isInPositioninZone=function(n,r,i){return i.some(function(o){return r>=o.row&&r<=o.row+7&&n>=o.col&&n<=o.col+7})},t.prototype.transformPixelLengthIntoNumberOfCells=function(n,r){return n/r},t.prototype.isCoordinateInImage=function(n,r,i,o,a,s,c,l){if(l){var u=2,d=this.transformPixelLengthIntoNumberOfCells(a,c),f=this.transformPixelLengthIntoNumberOfCells(s,c),p=this.transformPixelLengthIntoNumberOfCells(i,c)-1,g=this.transformPixelLengthIntoNumberOfCells(o,c)-1;return r>=d-u&&r<=d+p+u&&n>=f-u&&n<=f+g+u}else return!1},t.prototype.shouldComponentUpdate=function(n){return!p9(this.props,n)},t.prototype.componentDidMount=function(){this.update()},t.prototype.componentDidUpdate=function(){this.update()},t.prototype.update=function(){var n,r=this.props,i=r.value,o=r.ecLevel,a=r.enableCORS,s=r.bgColor,c=r.fgColor,l=r.logoImage,u=r.logoOpacity,d=r.logoOnLoad,f=r.removeQrCodeBehindLogo,p=r.qrStyle,g=r.eyeRadius,m=r.eyeColor,v=r.logoPaddingStyle,x=+this.props.size,w=+this.props.quietZone,_=this.props.logoWidth?+this.props.logoWidth:0,C=this.props.logoHeight?+this.props.logoHeight:0,y=this.props.logoPadding?+this.props.logoPadding:0,$=m9(0,o);$.addData(this.utf16to8(i)),$.make();var E=(n=this.canvasRef)===null||n===void 0?void 0:n.current,k=E.getContext("2d"),T=x+2*w,O=$.getModuleCount(),S=x/O,M=window.devicePixelRatio||1;E.height=E.width=T*M,k.scale(M,M),k.fillStyle=s,k.fillRect(0,0,T,T);var A=w,j=[{row:0,col:0},{row:0,col:O-7},{row:O-7,col:0}];if(k.strokeStyle=c,p==="dots"){k.fillStyle=c;for(var P=S/2,I=0;I<O;I++)for(var L=0;L<O;L++)$.isDark(I,L)&&!this.isInPositioninZone(I,L,j)&&(k.beginPath(),k.arc(Math.round(L*S)+P+A,Math.round(I*S)+P+A,P/100*75,0,2*Math.PI,!1),k.closePath(),k.fill())}else if(p==="fluid"){for(var P=Math.ceil(S/2),I=0;I<O;I++)for(var L=0;L<O;L++)if($.isDark(I,L)&&!this.isInPositioninZone(I,L,j)){var V=[!1,!1,!1,!1];I>0&&!$.isDark(I-1,L)&&L>0&&!$.isDark(I,L-1)&&(V[0]=!0),I>0&&!$.isDark(I-1,L)&&L<O-1&&!$.isDark(I,L+1)&&(V[1]=!0),I<O-1&&!$.isDark(I+1,L)&&L<O-1&&!$.isDark(I,L+1)&&(V[2]=!0),I<O-1&&!$.isDark(I+1,L)&&L>0&&!$.isDark(I,L-1)&&(V[3]=!0);var z=Math.ceil((L+1)*S)-Math.floor(L*S),D=Math.ceil((I+1)*S)-Math.floor(I*S);k.fillStyle=c,k.beginPath(),k.arc(Math.round(L*S)+P+A,Math.round(I*S)+P+A,P,0,2*Math.PI,!1),k.closePath(),k.fill(),V[0]||k.fillRect(Math.round(L*S)+A,Math.round(I*S)+A,z/2,D/2),V[1]||k.fillRect(Math.round(L*S)+A+Math.floor(z/2),Math.round(I*S)+A,z/2,D/2),V[2]||k.fillRect(Math.round(L*S)+A+Math.floor(z/2),Math.round(I*S)+A+Math.floor(D/2),z/2,D/2),V[3]||k.fillRect(Math.round(L*S)+A,Math.round(I*S)+A+Math.floor(D/2),z/2,D/2)}}else for(var I=0;I<O;I++)for(var L=0;L<O;L++)if($.isDark(I,L)&&!this.isInPositioninZone(I,L,j)){k.fillStyle=c;var z=Math.ceil((L+1)*S)-Math.floor(L*S),D=Math.ceil((I+1)*S)-Math.floor(I*S);k.fillRect(Math.round(L*S)+A,Math.round(I*S)+A,z,D)}for(var W=0;W<3;W++){var G=j[W],I=G.row,L=G.col,J=g,Z=void 0;Array.isArray(J)&&(J=J[W]),typeof J=="number"&&(J=[J,J,J,J]),m?Array.isArray(m)?Z=m[W]:Z=m:Z=c,this.drawPositioningPattern(k,S,A,I,L,Z,J)}if(l){var X=new Image;a&&(X.crossOrigin="Anonymous"),X.onload=function(ee){k.save();var ne=_||x*.2,F=C||ne,N=(x-ne)/2,B=(x-F)/2;if(f||y){k.beginPath(),k.strokeStyle=s,k.fillStyle=s;var H=ne+2*y,R=F+2*y,Y=N+A-y,Q=B+A-y;if(v==="circle"){var te=Y+H/2,ue=Q+R/2;k.ellipse(te,ue,H/2,R/2,0,0,2*Math.PI),k.stroke(),k.fill()}else k.fillRect(Y,Q,H,R)}k.globalAlpha=u,k.drawImage(X,N+A,B+A,ne,F),k.restore(),d&&d(ee)},X.src=l}},t.prototype.render=function(){var n,r=+this.props.size+2*+this.props.quietZone;return Bp.createElement("canvas",{id:(n=this.props.id)!==null&&n!==void 0?n:"react-qrcode-logo",height:r,width:r,style:xg({height:r+"px",width:r+"px"},this.props.style),ref:this.canvasRef})},t.defaultProps={value:"https://reactjs.org/",ecLevel:"M",enableCORS:!1,size:150,quietZone:10,bgColor:"#FFFFFF",fgColor:"#000000",logoOpacity:1,qrStyle:"squares",eyeRadius:[0,0,0],logoPaddingStyle:"square"},t}(Bp.Component);exports.QRCode_1=w0.QRCode=g9;const EE=({value:e,MiniDetailComponent:t,children:n,miniDetailPlacement:r})=>!e||!t?n:b.jsx(t,{id:e.toString(),placement:r,children:n}),TE=({InputContainer:e=Wf,value:t,options:n,onChange:r,label:i,withoutLabel:o,isNumber:a,size:s,hidden:c,disabled:l,noSortOptions:u,className:d,suffixIdToName:f,noEmptyOption:p,appendCurrentSelectionWithName:g,dropdownWidth:m,hint:v,addNewOptionPath:x,refreshOptions:w,MiniDetailComponent:_,miniDetailPlacement:C,selectedItemNavigateTo:y,noRemoveButton:$})=>{const{texts:{customSelect:E}}=h.useContext(sn),[k,T]=h.useState(!1),[O,S]=h.useState(""),M=h.useCallback(z=>{S(z)},[]),A=h.useMemo(()=>n.find(z=>z.id===t)??null,[n,t]),j=h.useCallback(z=>{var D;return z===null?"":!z.name||z.name.length===0?((D=z.id)==null?void 0:D.toString())??"":f?`${z.name} (${z.id})`:z.name},[f]),P=h.useMemo(()=>{const z=n?[...n]:[];return g!==void 0&&t!==void 0&&t!==null&&(z.some(D=>D.id===t)||z.push({id:t,name:g})),z.map(D=>({id:D.id,name:j(D)})).filter(D=>r0(D.name,O)).sort((D,W)=>u?0:(D.name??"").localeCompare(W.name??""))},[n,u,O,j,g,t]),I=h.useCallback(z=>{var D;r&&r((z==null?void 0:z.id)===void 0||(z==null?void 0:z.id)===null?null:a?Number(z.id):(D=z.id)==null?void 0:D.toString())},[r,a]),L=h.useCallback(z=>{T(!1),I(z)},[I]),V=h.useRef(null);return b.jsx(b.Fragment,{children:b.jsxs(e,{withoutLabel:o,label:i??"",hidden:c,inputContainerClassName:de({"luminus-dropdown-select-open":k}),className:d,hint:v,disabled:l,children:[b.jsx(CE,{currentSelection:A,selectedItemNavigateTo:y,children:b.jsx(EE,{value:t,MiniDetailComponent:_,miniDetailPlacement:C,children:b.jsxs(Kr.Select,{ref:V,size:s,value:t??"",onMouseDown:z=>{z.currentTarget.focus(),z.preventDefault()},onClick:()=>{!l&&T(!0)},onChange:()=>{},className:de("w-100",{"luminus-dropdown-picker-disabled":l}),hidden:c,children:[p&&!(t==null||t==="")?void 0:b.jsx("option",{value:""}),t!=null&&b.jsx("option",{value:t,children:j(A)})]})})}),V.current&&b.jsx(fE,{show:k,onCancel:()=>T(!1),items:P,currentSelection:A??null,onSelectionChange:L,onSearchQueryChange:M,texts:E,disabled:l,inputRef:V,autoHideSearch:!0,allItemsLength:n.length,itemsNameWidth:m,addNewOptionPath:x,refreshOptions:w,noRemoveButton:$})]})})};function v9(e){return mt({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 b9(e){return mt({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 y9(e){return mt({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 x9(e){return mt({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 w9=h.forwardRef(({onClick:e,text:t},n)=>b.jsx("div",{ref:n,onClick:r=>{r.preventDefault(),e(r)},role:"button",className:"middle-div",children:b.jsxs("div",{className:"d-flex flex-column align-items-center",children:[b.jsx("div",{className:"mt-",children:"…"}),b.jsx("div",{className:"mt-1 middle-letter",children:t})]})}));var _0=Al(),rt=e=>Rl(e,_0),C0=Al();rt.write=e=>Rl(e,C0);var Uf=Al();rt.onStart=e=>Rl(e,Uf);var $0=Al();rt.onFrame=e=>Rl(e,$0);var S0=Al();rt.onFinish=e=>Rl(e,S0);var Ma=[];rt.setTimeout=(e,t)=>{const n=rt.now()+t,r=()=>{const o=Ma.findIndex(a=>a.cancel==r);~o&&Ma.splice(o,1),Hi-=~o?1:0},i={time:n,handler:e,cancel:r};return Ma.splice(kE(n),0,i),Hi+=1,OE(),i};var kE=e=>~(~Ma.findIndex(t=>t.time>e)||~Ma.length);rt.cancel=e=>{Uf.delete(e),$0.delete(e),S0.delete(e),_0.delete(e),C0.delete(e)};rt.sync=e=>{wg=!0,rt.batchedUpdates(e),wg=!1};rt.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,rt.onStart(n)}return r.handler=e,r.cancel=()=>{Uf.delete(n),t=null},r};var E0=typeof window<"u"?window.requestAnimationFrame:()=>{};rt.use=e=>E0=e;rt.now=typeof performance<"u"?()=>performance.now():Date.now;rt.batchedUpdates=e=>e();rt.catch=console.error;rt.frameLoop="always";rt.advance=()=>{rt.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):RE()};var Vi=-1,Hi=0,wg=!1;function Rl(e,t){wg?(t.delete(e),e(0)):(t.add(e),OE())}function OE(){Vi<0&&(Vi=0,rt.frameLoop!=="demand"&&E0(ME))}function _9(){Vi=-1}function ME(){~Vi&&(E0(ME),rt.batchedUpdates(RE))}function RE(){const e=Vi;Vi=rt.now();const t=kE(Vi);if(t&&(AE(Ma.splice(0,t),n=>n.handler()),Hi-=t),!Hi){_9();return}Uf.flush(),_0.flush(e?Math.min(64,Vi-e):16.667),$0.flush(),C0.flush(),S0.flush()}function Al(){let e=new Set,t=e;return{add(n){Hi+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Hi-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Hi-=t.size,AE(t,r=>r(n)&&e.add(r)),Hi+=e.size,t=e)}}}function AE(e,t){e.forEach(n=>{try{t(n)}catch(r){rt.catch(r)}})}var C9=Object.defineProperty,$9=(e,t)=>{for(var n in t)C9(e,n,{get:t[n],enumerable:!0})},Or={};$9(Or,{assign:()=>E9,colors:()=>Gi,createStringInterpolator:()=>k0,skipAnimation:()=>NE,to:()=>jE,willAdvance:()=>O0});function _g(){}var S9=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),be={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 oi(e,t){if(be.arr(e)){if(!be.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 Je=(e,t)=>e.forEach(t);function Ur(e,t,n){if(be.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 Dn=e=>be.und(e)?[]:be.arr(e)?e:[e];function pc(e,t){if(e.size){const n=Array.from(e);e.clear(),Je(n,t)}}var cc=(e,...t)=>pc(e,n=>n(...t)),T0=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),k0,jE,Gi=null,NE=!1,O0=_g,E9=e=>{e.to&&(jE=e.to),e.now&&(rt.now=e.now),e.colors!==void 0&&(Gi=e.colors),e.skipAnimation!=null&&(NE=e.skipAnimation),e.createStringInterpolator&&(k0=e.createStringInterpolator),e.requestAnimationFrame&&rt.use(e.requestAnimationFrame),e.batchedUpdates&&(rt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(O0=e.willAdvance),e.frameLoop&&(rt.frameLoop=e.frameLoop)},mc=new Set,cr=[],zp=[],Ed=0,Vf={get idle(){return!mc.size&&!cr.length},start(e){Ed>e.priority?(mc.add(e),rt.onStart(T9)):(DE(e),rt(Cg))},advance:Cg,sort(e){if(Ed)rt.onFrame(()=>Vf.sort(e));else{const t=cr.indexOf(e);~t&&(cr.splice(t,1),IE(e))}},clear(){cr=[],mc.clear()}};function T9(){mc.forEach(DE),mc.clear(),rt(Cg)}function DE(e){cr.includes(e)||IE(e)}function IE(e){cr.splice(k9(cr,t=>t.priority>e.priority),0,e)}function Cg(e){const t=zp;for(let n=0;n<cr.length;n++){const r=cr[n];Ed=r.priority,r.idle||(O0(r),r.advance(e),r.idle||t.push(r))}return Ed=0,zp=cr,zp.length=0,cr=t,cr.length>0}function k9(e,t){const n=e.findIndex(t);return n<0?e.length:n}var O9=(e,t,n)=>Math.min(Math.max(n,e),t),M9={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},Er="[-+]?\\d*\\.?\\d+",Td=Er+"%";function Hf(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var R9=new RegExp("rgb"+Hf(Er,Er,Er)),A9=new RegExp("rgba"+Hf(Er,Er,Er,Er)),j9=new RegExp("hsl"+Hf(Er,Td,Td)),N9=new RegExp("hsla"+Hf(Er,Td,Td,Er)),D9=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,I9=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,P9=/^#([0-9a-fA-F]{6})$/,L9=/^#([0-9a-fA-F]{8})$/;function F9(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=P9.exec(e))?parseInt(t[1]+"ff",16)>>>0:Gi&&Gi[e]!==void 0?Gi[e]:(t=R9.exec(e))?(pa(t[1])<<24|pa(t[2])<<16|pa(t[3])<<8|255)>>>0:(t=A9.exec(e))?(pa(t[1])<<24|pa(t[2])<<16|pa(t[3])<<8|px(t[4]))>>>0:(t=D9.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=L9.exec(e))?parseInt(t[1],16)>>>0:(t=I9.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=j9.exec(e))?(fx(hx(t[1]),gu(t[2]),gu(t[3]))|255)>>>0:(t=N9.exec(e))?(fx(hx(t[1]),gu(t[2]),gu(t[3]))|px(t[4]))>>>0:null}function Wp(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 fx(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Wp(i,r,e+1/3),a=Wp(i,r,e),s=Wp(i,r,e-1/3);return Math.round(o*255)<<24|Math.round(a*255)<<16|Math.round(s*255)<<8}function pa(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function hx(e){return(parseFloat(e)%360+360)%360/360}function px(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function gu(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function mx(e){let t=F9(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,o=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${o})`}var qc=(e,t,n)=>{if(be.fun(e))return e;if(be.arr(e))return qc({range:e,output:t,extrapolate:n});if(be.str(e.output[0]))return k0(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",c=r.easing||(l=>l);return l=>{const u=z9(l,o);return B9(l,o[u],o[u+1],i[u],i[u+1],c,a,s,r.map)}};function B9(e,t,n,r,i,o,a,s,c){let l=c?c(e):e;if(l<t){if(a==="identity")return l;a==="clamp"&&(l=t)}if(l>n){if(s==="identity")return l;s==="clamp"&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l=l-t:l=(l-t)/(n-t),l=o(l),r===-1/0?l=-l:i===1/0?l=l+r:l=l*(i-r)+r,l)}function z9(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var W9=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return O9(0,1,i/e)},kd=1.70158,vu=kd*1.525,gx=kd+1,vx=2*Math.PI/3,bx=2*Math.PI/4.5,bu=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,U9={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=>gx*e*e*e-kd*e*e,easeOutBack:e=>1+gx*Math.pow(e-1,3)+kd*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((vu+1)*2*e-vu)/2:(Math.pow(2*e-2,2)*((vu+1)*(e*2-2)+vu)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*vx),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*vx)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*bx))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*bx)/2+1,easeInBounce:e=>1-bu(1-e),easeOutBounce:bu,easeInOutBounce:e=>e<.5?(1-bu(1-2*e))/2:(1+bu(2*e-1))/2,steps:W9},Yc=Symbol.for("FluidValue.get"),Ga=Symbol.for("FluidValue.observers"),sr=e=>!!(e&&e[Yc]),Bn=e=>e&&e[Yc]?e[Yc]():e,yx=e=>e[Ga]||null;function V9(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Gc(e,t){const n=e[Ga];n&&n.forEach(r=>{V9(r,t)})}var PE=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");H9(this,e)}},H9=(e,t)=>LE(e,Yc,t);function us(e,t){if(e[Yc]){let n=e[Ga];n||LE(e,Ga,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Kc(e,t){const n=e[Ga];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ga]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var LE=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ku=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q9=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,xx=new RegExp(`(${Ku.source})(%|[a-z]+)`,"i"),Y9=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,qf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,FE=e=>{const[t,n]=G9(e);if(!t||T0())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&qf.test(n))return FE(n);if(n)return n}return e},G9=e=>{const t=qf.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Up,K9=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,BE=e=>{Up||(Up=Gi?new RegExp(`(${Object.keys(Gi).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>Bn(o).replace(qf,FE).replace(q9,mx).replace(Up,mx)),n=t.map(o=>o.match(Ku).map(Number)),i=n[0].map((o,a)=>n.map(s=>{if(!(a in s))throw Error('The arity of each "output" value must be equal');return s[a]})).map(o=>qc({...e,output:o}));return o=>{var c;const a=!xx.test(t[0])&&((c=t.find(l=>xx.test(l)))==null?void 0:c.replace(Ku,""));let s=0;return t[0].replace(Ku,()=>`${i[s++](o)}${a||""}`).replace(Y9,K9)}},M0="react-spring: ",zE=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${M0}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Z9=zE(console.warn);function X9(){Z9(`${M0}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Q9=zE(console.warn);function J9(){Q9(`${M0}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 Yf(e){return be.str(e)&&(e[0]=="#"||/\d/.test(e)||!T0()&&qf.test(e)||e in(Gi||{}))}var Eo=T0()?h.useEffect:h.useLayoutEffect,eL=()=>{const e=h.useRef(!1);return Eo(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function R0(){const e=h.useState()[1],t=eL();return()=>{t.current&&e(Math.random())}}function tL(e,t){const[n]=h.useState(()=>({inputs:t,result:e()})),r=h.useRef(),i=r.current;let o=i;return o?t&&o.inputs&&nL(t,o.inputs)||(o={inputs:t,result:e()}):o=n,h.useEffect(()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}function nL(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 A0=e=>h.useEffect(e,rL),rL=[];function $g(e){const t=h.useRef();return h.useEffect(()=>{t.current=e}),t.current}var Zc=Symbol.for("Animated:node"),iL=e=>!!e&&e[Zc]===e,Nr=e=>e&&e[Zc],j0=(e,t)=>S9(e,Zc,t),Gf=e=>e&&e[Zc]&&e[Zc].getPayload(),WE=class{constructor(){j0(this,this)}getPayload(){return this.payload||[]}},jl=class extends WE{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,be.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new jl(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return be.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,be.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Xc=class extends jl{constructor(e){super(0),this._string=null,this._toString=qc({output:[e,e]})}static create(e){return new Xc(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(be.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=qc({output:[this.getValue(),e]})),this._value=0,super.reset()}},Od={dependencies:null},Kf=class extends WE{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Ur(this.source,(n,r)=>{iL(n)?t[r]=n.getValue(e):sr(n)?t[r]=Bn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Je(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Ur(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Od.dependencies&&sr(e)&&Od.dependencies.add(e);const t=Gf(e);t&&Je(t,n=>this.add(n))}},UE=class extends Kf{constructor(e){super(e)}static create(e){return new UE(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(oL)),!0)}};function oL(e){return(Yf(e)?Xc:jl).create(e)}function Sg(e){const t=Nr(e);return t?t.constructor:be.arr(e)?UE:Yf(e)?Xc:jl}var wx=(e,t)=>{const n=!be.fun(e)||e.prototype&&e.prototype.isReactComponent;return h.forwardRef((r,i)=>{const o=h.useRef(null),a=n&&h.useCallback(g=>{o.current=cL(i,g)},[i]),[s,c]=sL(r,t),l=R0(),u=()=>{const g=o.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,s.getValue(!0)):!1)===!1&&l()},d=new aL(u,c),f=h.useRef();Eo(()=>(f.current=d,Je(c,g=>us(g,d)),()=>{f.current&&(Je(f.current.deps,g=>Kc(g,f.current)),rt.cancel(f.current.update))})),h.useEffect(u,[]),A0(()=>()=>{const g=f.current;Je(g.deps,m=>Kc(m,g))});const p=t.getComponentProps(s.getValue());return ie.createElement(e,{...p,ref:a})})},aL=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&rt.write(this.update)}};function sL(e,t){const n=new Set;return Od.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Kf(e),Od.dependencies=null,[e,n]}function cL(e,t){return e&&(be.fun(e)?e(t):e.current=t),t}var _x=Symbol.for("AnimatedComponent"),lL=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new Kf(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=a=>{const s=Cx(a)||"Anonymous";return be.str(a)?a=o[a]||(o[a]=wx(a,i)):a=a[_x]||(a[_x]=wx(a,i)),a.displayName=`Animated(${s})`,a};return Ur(e,(a,s)=>{be.arr(e)&&(s=Cx(a)),o[s]=o(a)}),{animated:o}},Cx=e=>be.str(e)?e:e&&be.str(e.displayName)?e.displayName:be.fun(e)&&e.name||null;function zn(e,...t){return be.fun(e)?e(...t):e}var gc=(e,t)=>e===!0||!!(t&&e&&(be.fun(e)?e(t):Dn(e).includes(t))),VE=(e,t)=>be.obj(e)?t&&e[t]:e,HE=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,uL=e=>e,Zf=(e,t=uL)=>{let n=dL;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const o=t(e[i],i);be.und(o)||(r[i]=o)}return r},dL=["config","onProps","onStart","onChange","onPause","onResume","onRest"],fL={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 hL(e){const t={};let n=0;if(Ur(e,(r,i)=>{fL[i]||(t[i]=r,n++)}),n)return t}function N0(e){const t=hL(e);if(t){const n={to:t};return Ur(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Qc(e){return e=Bn(e),be.arr(e)?e.map(Qc):Yf(e)?Or.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function qE(e){for(const t in e)return!0;return!1}function Eg(e){return be.fun(e)||be.arr(e)&&be.obj(e[0])}function Tg(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function YE(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var D0={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}},kg={...D0.default,mass:1,damping:1,easing:U9.linear,clamp:!1},pL=class{constructor(){this.velocity=0,Object.assign(this,kg)}};function mL(e,t,n){n&&(n={...n},$x(n,t),t={...n,...t}),$x(e,t),Object.assign(e,t);for(const a in kg)e[a]==null&&(e[a]=kg[a]);let{frequency:r,damping:i}=e;const{mass:o}=e;return be.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r),e}function $x(e,t){if(!be.und(t.decay))e.duration=void 0;else{const n=!be.und(t.tension)||!be.und(t.friction);(n||!be.und(t.frequency)||!be.und(t.damping)||!be.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Sx=[],gL=class{constructor(){this.changed=!1,this.values=Sx,this.toValues=null,this.fromValues=Sx,this.config=new pL,this.immediate=!1}};function GE(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let c,l,u=gc(n.cancel??(r==null?void 0:r.cancel),t);if(u)p();else{be.und(n.pause)||(i.paused=gc(n.pause,t));let g=r==null?void 0:r.pause;g!==!0&&(g=i.paused||gc(g,t)),c=zn(n.delay||0,t),g?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(l),l.cancel(),c=l.time-rt.now()}function f(){c>0&&!Or.skipAnimation?(i.delayed=!0,l=rt.setTimeout(p,c),i.pauseQueue.add(d),i.timeouts.add(l)):p()}function p(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(l),e<=(i.cancelId||0)&&(u=!0);try{o.start({...n,callId:e,cancel:u},a)}catch(g){s(g)}}})}var I0=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Ra(e.get()):t.every(n=>n.noop)?KE(e.get()):Cr(e.get(),t.every(n=>n.finished)),KE=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Cr=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Ra=e=>({value:e,cancelled:!0,finished:!1});function ZE(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:c}=n;return!o&&e===s&&!t.reset?c:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const l=Zf(t,(v,x)=>x==="onRest"?void 0:v);let u,d;const f=new Promise((v,x)=>(u=v,d=x)),p=v=>{const x=i<=(n.cancelId||0)&&Ra(r)||i!==n.asyncId&&Cr(r,!1);if(x)throw v.result=x,d(v),v},g=(v,x)=>{const w=new Ex,_=new Tx;return(async()=>{if(Or.skipAnimation)throw Jc(n),_.result=Cr(r,!1),d(_),_;p(w);const C=be.obj(v)?{...v}:{...x,to:v};C.parentId=i,Ur(l,($,E)=>{be.und(C[E])&&(C[E]=$)});const y=await r.start(C);return p(w),n.paused&&await new Promise($=>{n.resumeQueue.add($)}),y})()};let m;if(Or.skipAnimation)return Jc(n),Cr(r,!1);try{let v;be.arr(e)?v=(async x=>{for(const w of x)await g(w)})(e):v=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([v.then(u),f]),m=Cr(r.get(),!0,!1)}catch(v){if(v instanceof Ex)m=v.result;else if(v instanceof Tx)m=v.result;else throw v}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?c:void 0)}return be.fun(a)&&rt.batchedUpdates(()=>{a(m,r,r.item)}),m})()}function Jc(e,t){pc(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Ex=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.")}},Tx=class extends Error{constructor(){super("SkipAnimationSignal")}},Og=e=>e instanceof P0,vL=1,P0=class extends PE{constructor(){super(...arguments),this.id=vL++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Nr(this);return e&&e.getValue()}to(...e){return Or.to(this,e)}interpolate(...e){return X9(),Or.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){Gc(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Vf.sort(this),Gc(this,{type:"priority",parent:this,priority:e})}},Ho=Symbol.for("SpringPhase"),XE=1,Mg=2,Rg=4,Vp=e=>(e[Ho]&XE)>0,Ai=e=>(e[Ho]&Mg)>0,Ws=e=>(e[Ho]&Rg)>0,kx=(e,t)=>t?e[Ho]|=Mg|XE:e[Ho]&=~Mg,Ox=(e,t)=>t?e[Ho]|=Rg:e[Ho]&=~Rg,bL=class extends P0{constructor(e,t){if(super(),this.animation=new gL,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,!be.und(e)||!be.und(t)){const n=be.obj(e)?{...e}:{...t,from:e};be.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Ai(this)||this._state.asyncTo)||Ws(this)}get goal(){return Bn(this.animation.to)}get velocity(){const e=Nr(this);return e instanceof jl?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Vp(this)}get isAnimating(){return Ai(this)}get isPaused(){return Ws(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:o}=r,a=Gf(r.to);!a&&sr(r.to)&&(i=Dn(Bn(r.to))),r.values.forEach((l,u)=>{if(l.done)return;const d=l.constructor==Xc?1:a?a[u].lastPosition:i[u];let f=r.immediate,p=d;if(!f){if(p=l.lastPosition,o.tension<=0){l.done=!0;return}let g=l.elapsedTime+=e;const m=r.fromValues[u],v=l.v0!=null?l.v0:l.v0=be.arr(o.velocity)?o.velocity[u]:o.velocity;let x;const w=o.precision||(m==d?.005:Math.min(1,Math.abs(d-m)*.001));if(be.und(o.duration))if(o.decay){const _=o.decay===!0?.998:o.decay,C=Math.exp(-(1-_)*g);p=m+v/(1-_)*(1-C),f=Math.abs(l.lastPosition-p)<=w,x=v*C}else{x=l.lastVelocity==null?v:l.lastVelocity;const _=o.restVelocity||w/10,C=o.clamp?0:o.bounce,y=!be.und(C),$=m==d?l.v0>0:m<d;let E,k=!1;const T=1,O=Math.ceil(e/T);for(let S=0;S<O&&(E=Math.abs(x)>_,!(!E&&(f=Math.abs(d-p)<=w,f)));++S){y&&(k=p==d||p>d==$,k&&(x=-x*C,p=d));const M=-o.tension*1e-6*(p-d),A=-o.friction*.001*x,j=(M+A)/o.mass;x=x+j*T,p=p+x*T}}else{let _=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,l.durationProgress>0&&(l.elapsedTime=o.duration*l.durationProgress,g=l.elapsedTime+=e)),_=(o.progress||0)+g/this._memoizedDuration,_=_>1?1:_<0?0:_,l.durationProgress=_),p=m+o.easing(_)*(d-m),x=(p-l.lastPosition)/e,f=_==1}l.lastVelocity=x,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}a&&!a[u].done&&(f=!1),f?l.done=!0:t=!1,l.setValue(p,o.round)&&(n=!0)});const s=Nr(this),c=s.getValue();if(t){const l=Bn(r.to);(c!==l||n)&&!o.decay?(s.setValue(l),this._onChange(l)):n&&o.decay&&this._onChange(c),this._stop()}else n&&this._onChange(c)}set(e){return rt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Ai(this)){const{to:e,config:t}=this.animation;rt.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 be.und(e)?(n=this.queue||[],this.queue=[]):n=[be.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>I0(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Jc(this._state,e&&this._lastCallId),rt.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=be.obj(n)?n[t]:n,(n==null||Eg(n))&&(n=void 0),r=be.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return Vp(this)||(e.reverse&&([n,r]=[r,n]),r=Bn(r),be.und(r)?Nr(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Zf(e,(a,s)=>/^on/.test(s)?VE(a,n):a)),Rx(this,e,"onProps"),Vs(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return GE(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{Ws(this)||(Ox(this,!0),cc(o.pauseQueue),Vs(this,"onPause",Cr(this,Us(this,this.animation.to)),this))},resume:()=>{Ws(this)&&(Ox(this,!1),Ai(this)&&this._resume(),cc(o.resumeQueue),Vs(this,"onResume",Cr(this,Us(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(a=>{if(e.loop&&a.finished&&!(t&&a.noop)){const s=QE(e);if(s)return this._update(s,!0)}return a})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Ra(this));const r=!be.und(e.to),i=!be.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Ra(this));const{key:o,defaultProps:a,animation:s}=this,{to:c,from:l}=s;let{to:u=c,from:d=l}=e;i&&!r&&(!t.default||be.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);const f=!oi(d,l);f&&(s.from=d),d=Bn(d);const p=!oi(u,c);p&&this._focus(u);const g=Eg(t.to),{config:m}=s,{decay:v,velocity:x}=m;(r||i)&&(m.velocity=0),t.config&&!g&&mL(m,zn(t.config,o),t.config!==a.config?zn(a.config,o):void 0);let w=Nr(this);if(!w||be.und(u))return n(Cr(this,!0));const _=be.und(t.reset)?i&&!t.default:!be.und(d)&&gc(t.reset,o),C=_?d:this.get(),y=Qc(u),$=be.num(y)||be.arr(y)||Yf(y),E=!g&&(!$||gc(a.immediate||t.immediate,o));if(p){const S=Sg(u);if(S!==w.constructor)if(E)w=this._set(y);else throw Error(`Cannot animate between ${w.constructor.name} and ${S.name}, as the "to" prop suggests`)}const k=w.constructor;let T=sr(u),O=!1;if(!T){const S=_||!Vp(this)&&f;(p||S)&&(O=oi(Qc(C),y),T=!O),(!oi(s.immediate,E)&&!E||!oi(m.decay,v)||!oi(m.velocity,x))&&(T=!0)}if(O&&Ai(this)&&(s.changed&&!_?T=!0:T||this._stop(c)),!g&&((T||sr(c))&&(s.values=w.getPayload(),s.toValues=sr(u)?null:k==Xc?[1]:Dn(y)),s.immediate!=E&&(s.immediate=E,!E&&!_&&this._set(c)),T)){const{onRest:S}=s;Je(xL,A=>Rx(this,t,A));const M=Cr(this,Us(this,c));cc(this._pendingCalls,M),this._pendingCalls.add(n),s.changed&&rt.batchedUpdates(()=>{var A;s.changed=!_,S==null||S(M,this),_?zn(a.onRest,M):(A=s.onStart)==null||A.call(s,M,this)})}_&&this._set(C),g?n(ZE(t.to,t,this._state,this)):T?this._start():Ai(this)&&!p?this._pendingCalls.add(n):n(KE(C))}_focus(e){const t=this.animation;e!==t.to&&(yx(this)&&this._detach(),t.to=e,yx(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;sr(t)&&(us(t,this),Og(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;sr(e)&&Kc(e,this)}_set(e,t=!0){const n=Bn(e);if(!be.und(n)){const r=Nr(this);if(!r||!oi(n,r.getValue())){const i=Sg(n);!r||r.constructor!=i?j0(this,i.create(n)):r.setValue(n),r&&rt.batchedUpdates(()=>{this._onChange(n,t)})}}return Nr(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Vs(this,"onStart",Cr(this,Us(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),zn(this.animation.onChange,e,this)),zn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Nr(this).reset(Bn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Ai(this)||(kx(this,!0),Ws(this)||this._resume())}_resume(){Or.skipAnimation?this.finish():Vf.start(this)}_stop(e,t){if(Ai(this)){kx(this,!1);const n=this.animation;Je(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Gc(this,{type:"idle",parent:this});const r=t?Ra(this.get()):Cr(this.get(),Us(this,e??n.to));cc(this._pendingCalls,r),n.changed&&(n.changed=!1,Vs(this,"onRest",r,this))}}};function Us(e,t){const n=Qc(t),r=Qc(e.get());return oi(r,n)}function QE(e,t=e.loop,n=e.to){const r=zn(t);if(r){const i=r!==!0&&N0(r),o=(i||e).reverse,a=!i||i.reset;return el({...e,loop:t,default:!1,pause:void 0,to:!o||Eg(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function el(e){const{to:t,from:n}=e=N0(e),r=new Set;return be.obj(t)&&Mx(t,r),be.obj(n)&&Mx(n,r),e.keys=r.size?Array.from(r):null,e}function yL(e){const t=el(e);return be.und(t.default)&&(t.default=Zf(t)),t}function Mx(e,t){Ur(e,(n,r)=>n!=null&&t.add(r))}var xL=["onStart","onRest","onChange","onPause","onResume"];function Rx(e,t,n){e.animation[n]=t[n]!==HE(t,n)?VE(t[n],e.key):void 0}function Vs(e,t,...n){var r,i,o,a;(i=(r=e.animation)[t])==null||i.call(r,...n),(a=(o=e.defaultProps)[t])==null||a.call(o,...n)}var wL=["onStart","onChange","onRest"],_L=1,JE=class{constructor(e,t){this.id=_L++,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];be.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(el(e)),this}start(e){let{queue:t}=this;return e?t=Dn(e).map(el):this.queue=[],this._flush?this._flush(this,t):(iT(this,t),Ag(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Je(Dn(t),r=>n[r].stop(!!e))}else Jc(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(be.und(e))this.start({pause:!0});else{const t=this.springs;Je(Dn(e),n=>t[n].pause())}return this}resume(e){if(be.und(e))this.start({pause:!1});else{const t=this.springs;Je(Dn(e),n=>t[n].resume())}return this}each(e){Ur(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,pc(e,([s,c])=>{c.value=this.get(),s(c,this,this._item)}));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&pc(t,([s,c])=>{c.value=a,s(c,this,this._item)}),o&&(this._started=!1,pc(n,([s,c])=>{c.value=a,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;rt.onFrame(this._onFrame)}};function Ag(e,t){return Promise.all(t.map(n=>eT(e,n))).then(n=>I0(e,n))}async function eT(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:c}=t,l=be.obj(t.default)&&t.default;a&&(t.loop=!1),i===!1&&(t.to=null),o===!1&&(t.from=null);const u=be.arr(i)||be.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):Je(wL,m=>{const v=t[m];if(be.fun(v)){const x=e._events[m];t[m]=({finished:w,cancelled:_})=>{const C=x.get(v);C?(w||(C.finished=!1),_&&(C.cancelled=!0)):x.set(v,{value:null,finished:w||!1,cancelled:_||!1})},l&&(l[m]=t[m])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,cc(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(m=>e.springs[m].start(t)),p=t.cancel===!0||HE(t,"cancel")===!0;(u||p&&d.asyncId)&&f.push(GE(++e._lastAsyncId,{props:t,state:d,actions:{pause:_g,resume:_g,start(m,v){p?(Jc(d,e._lastAsyncId),v(Ra(e))):(m.onRest=s,v(ZE(u,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const g=I0(e,await Promise.all(f));if(a&&g.finished&&!(n&&g.noop)){const m=QE(t,a,i);if(m)return iT(e,[m]),eT(e,m,!0)}return c&&rt.batchedUpdates(()=>c(g,e,e.item)),g}function jg(e,t){const n={...e.springs};return t&&Je(Dn(t),r=>{be.und(r.keys)&&(r=el(r)),be.obj(r.to)||(r={...r,to:void 0}),rT(n,r,i=>nT(i))}),tT(e,n),n}function tT(e,t){Ur(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,us(n,e))})}function nT(e,t){const n=new bL;return n.key=e,t&&us(n,t),n}function rT(e,t,n){t.keys&&Je(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function iT(e,t){Je(t,n=>{rT(e.springs,n,r=>nT(r,e))})}var Nl=({children:e,...t})=>{const n=h.useContext(Md),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=tL(()=>({pause:r,immediate:i}),[r,i]);const{Provider:o}=Md;return ie.createElement(o,{value:t},e)},Md=CL(Nl,{});Nl.Provider=Md.Provider;Nl.Consumer=Md.Consumer;function CL(e,t){return Object.assign(e,ie.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var oT=()=>{const e=[],t=function(r){J9();const i=[];return Je(e,(o,a)=>{if(be.und(r))i.push(o.start());else{const s=n(r,o,a);s&&i.push(o.start(s))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return Je(e,r=>r.pause(...arguments)),this},t.resume=function(){return Je(e,r=>r.resume(...arguments)),this},t.set=function(r){Je(e,(i,o)=>{const a=be.fun(r)?r(o,i):r;a&&i.set(a)})},t.start=function(r){const i=[];return Je(e,(o,a)=>{if(be.und(r))i.push(o.start());else{const s=this._getProps(r,o,a);s&&i.push(o.start(s))}}),i},t.stop=function(){return Je(e,r=>r.stop(...arguments)),this},t.update=function(r){return Je(e,(i,o)=>i.update(this._getProps(r,i,o))),this};const n=function(r,i,o){return be.fun(r)?r(o,i):r};return t._getProps=n,t};function $L(e,t,n){const r=be.fun(t)&&t;r&&!n&&(n=[]);const i=h.useMemo(()=>r||arguments.length==3?oT():void 0,[]),o=h.useRef(0),a=R0(),s=h.useMemo(()=>({ctrls:[],queue:[],flush(x,w){const _=jg(x,w);return o.current>0&&!s.queue.length&&!Object.keys(_).some(y=>!x.springs[y])?Ag(x,w):new Promise(y=>{tT(x,_),s.queue.push(()=>{y(Ag(x,w))}),a()})}}),[]),c=h.useRef([...s.ctrls]),l=[],u=$g(e)||0;h.useMemo(()=>{Je(c.current.slice(e,u),x=>{Tg(x,i),x.stop(!0)}),c.current.length=e,d(u,e)},[e]),h.useMemo(()=>{d(0,Math.min(u,e))},n);function d(x,w){for(let _=x;_<w;_++){const C=c.current[_]||(c.current[_]=new JE(null,s.flush)),y=r?r(_,C):t[_];y&&(l[_]=yL(y))}}const f=c.current.map((x,w)=>jg(x,l[w])),p=h.useContext(Nl),g=$g(p),m=p!==g&&qE(p);Eo(()=>{o.current++,s.ctrls=c.current;const{queue:x}=s;x.length&&(s.queue=[],Je(x,w=>w())),Je(c.current,(w,_)=>{i==null||i.add(w),m&&w.start({default:p});const C=l[_];C&&(YE(w,C.ref),w.ref?w.queue.push(C):w.start(C))})}),A0(()=>()=>{Je(s.ctrls,x=>x.stop(!0))});const v=f.map(x=>({...x}));return i?[v,i]:v}function Zr(e,t){const n=be.fun(e),[[r],i]=$L(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}function ea(e,t,n){const r=be.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:c=!1,onDestroyed:l,ref:u,config:d}=r?r():t,f=h.useMemo(()=>r||arguments.length==3?oT():void 0,[]),p=Dn(e),g=[],m=h.useRef(null),v=i?null:m.current;Eo(()=>{m.current=g}),A0(()=>(Je(g,j=>{f==null||f.add(j.ctrl),j.ctrl.ref=f}),()=>{Je(m.current,j=>{j.expired&&clearTimeout(j.expirationId),Tg(j.ctrl,f),j.ctrl.stop(!0)})}));const x=EL(p,r?r():t,v),w=i&&m.current||[];Eo(()=>Je(w,({ctrl:j,item:P,key:I})=>{Tg(j,f),zn(l,P,I)}));const _=[];if(v&&Je(v,(j,P)=>{j.expired?(clearTimeout(j.expirationId),w.push(j)):(P=_[P]=x.indexOf(j.key),~P&&(g[P]=j))}),Je(p,(j,P)=>{g[P]||(g[P]={key:x[P],item:j,phase:"mount",ctrl:new JE},g[P].ctrl.item=j)}),_.length){let j=-1;const{leave:P}=r?r():t;Je(_,(I,L)=>{const V=v[L];~I?(j=g.indexOf(V),g[j]={...V,item:p[I]}):P&&g.splice(++j,0,V)})}be.fun(o)&&g.sort((j,P)=>o(j.item,P.item));let C=-a;const y=R0(),$=Zf(t),E=new Map,k=h.useRef(new Map),T=h.useRef(!1);Je(g,(j,P)=>{const I=j.key,L=j.phase,V=r?r():t;let z,D;const W=zn(V.delay||0,I);if(L=="mount")z=V.enter,D="enter";else{const X=x.indexOf(I)<0;if(L!="leave")if(X)z=V.leave,D="leave";else if(z=V.update)D="update";else return;else if(!X)z=V.enter,D="enter";else return}if(z=zn(z,j.item,P),z=be.obj(z)?N0(z):{to:z},!z.config){const X=d||$.config;z.config=zn(X,j.item,P,D)}C+=a;const G={...$,delay:W+C,ref:u,immediate:V.immediate,reset:!1,...z};if(D=="enter"&&be.und(G.from)){const X=r?r():t,ee=be.und(X.initial)||v?X.from:X.initial;G.from=zn(ee,j.item,P)}const{onResolve:J}=G;G.onResolve=X=>{zn(J,X);const ee=m.current,ne=ee.find(F=>F.key===I);if(ne&&!(X.cancelled&&ne.phase!="update")&&ne.ctrl.idle){const F=ee.every(N=>N.ctrl.idle);if(ne.phase=="leave"){const N=zn(s,ne.item);if(N!==!1){const B=N===!0?0:N;if(ne.expired=!0,!F&&B>0){B<=2147483647&&(ne.expirationId=setTimeout(y,B));return}}}F&&ee.some(N=>N.expired)&&(k.current.delete(ne),c&&(T.current=!0),y())}};const Z=jg(j.ctrl,G);D==="leave"&&c?k.current.set(j,{phase:D,springs:Z,payload:G}):E.set(j,{phase:D,springs:Z,payload:G})});const O=h.useContext(Nl),S=$g(O),M=O!==S&&qE(O);Eo(()=>{M&&Je(g,j=>{j.ctrl.start({default:O})})},[O]),Je(E,(j,P)=>{if(k.current.size){const I=g.findIndex(L=>L.key===P.key);g.splice(I,1)}}),Eo(()=>{Je(k.current.size?k.current:E,({phase:j,payload:P},I)=>{const{ctrl:L}=I;I.phase=j,f==null||f.add(L),M&&j=="enter"&&L.start({default:O}),P&&(YE(L,P.ref),(L.ref||f)&&!T.current?L.update(P):(L.start(P),T.current&&(T.current=!1)))})},i?void 0:n);const A=j=>ie.createElement(ie.Fragment,null,g.map((P,I)=>{const{springs:L}=E.get(P)||P.ctrl,V=j({...L},P.item,P,I);return V&&V.type?ie.createElement(V.type,{...V.props,key:be.str(P.key)||be.num(P.key)?P.key:P.ctrl.id,ref:V.ref}):V}));return f?[A,f]:A}var SL=1;function EL(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(o=>{const a=r&&r.find(s=>s.item===o&&s.phase!=="leave"&&!i.has(s));return a?(i.add(a),a.key):SL++})}return be.und(n)?e:be.fun(n)?e.map(n):Dn(n)}var aT=class extends P0{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=qc(...t);const n=this._get(),r=Sg(n);j0(this,r.create(n))}advance(e){const t=this._get(),n=this.get();oi(t,n)||(Nr(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Ax(this._active)&&Hp(this)}_get(){const e=be.arr(this.source)?this.source.map(Bn):Dn(Bn(this.source));return this.calc(...e)}_start(){this.idle&&!Ax(this._active)&&(this.idle=!1,Je(Gf(this),e=>{e.done=!1}),Or.skipAnimation?(rt.batchedUpdates(()=>this.advance()),Hp(this)):Vf.start(this))}_attach(){let e=1;Je(Dn(this.source),t=>{sr(t)&&us(t,this),Og(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Je(Dn(this.source),e=>{sr(e)&&Kc(e,this)}),this._active.clear(),Hp(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=Dn(this.source).reduce((t,n)=>Math.max(t,(Og(n)?n.priority:0)+1),0))}};function TL(e){return e.idle!==!1}function Ax(e){return!e.size||Array.from(e).every(TL)}function Hp(e){e.idle||(e.idle=!0,Je(Gf(e),t=>{t.done=!0}),Gc(e,{type:"idle",parent:e}))}var to=(e,...t)=>new aT(e,t);Or.assign({createStringInterpolator:BE,to:(e,t)=>new aT(e,t)});var sT=/^--/;function kL(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!sT.test(e)&&!(vc.hasOwnProperty(e)&&vc[e])?t+"px":(""+t).trim()}var jx={};function OL(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:i,children:o,scrollTop:a,scrollLeft:s,viewBox:c,...l}=t,u=Object.values(l),d=Object.keys(l).map(f=>n||e.hasAttribute(f)?f:jx[f]||(jx[f]=f.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));o!==void 0&&(e.textContent=o);for(const f in i)if(i.hasOwnProperty(f)){const p=kL(f,i[f]);sT.test(f)?e.style.setProperty(f,p):e.style[f]=p}d.forEach((f,p)=>{e.setAttribute(f,u[p])}),r!==void 0&&(e.className=r),a!==void 0&&(e.scrollTop=a),s!==void 0&&(e.scrollLeft=s),c!==void 0&&e.setAttribute("viewBox",c)}var vc={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},ML=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),RL=["Webkit","Ms","Moz","O"];vc=Object.keys(vc).reduce((e,t)=>(RL.forEach(n=>e[ML(n,t)]=e[t]),e),vc);var AL=/^(matrix|translate|scale|rotate|skew)/,jL=/^(translate)/,NL=/^(rotate|skew)/,qp=(e,t)=>be.num(e)&&e!==0?e+t:e,Zu=(e,t)=>be.arr(e)?e.every(n=>Zu(n,t)):be.num(e)?e===t:parseFloat(e)===t,DL=class extends Kf{constructor({x:e,y:t,z:n,...r}){const i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(a=>[`translate3d(${a.map(s=>qp(s,"px")).join(",")})`,Zu(a,0)])),Ur(r,(a,s)=>{if(s==="transform")i.push([a||""]),o.push(c=>[c,c===""]);else if(AL.test(s)){if(delete r[s],be.und(a))return;const c=jL.test(s)?"px":NL.test(s)?"deg":"";i.push(Dn(a)),o.push(s==="rotate3d"?([l,u,d,f])=>[`rotate3d(${l},${u},${d},${qp(f,c)})`,Zu(f,0)]:l=>[`${s}(${l.map(u=>qp(u,c)).join(",")})`,Zu(l,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new IL(i,o)),super(r)}},IL=class extends PE{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 Je(this.inputs,(n,r)=>{const i=Bn(n[0]),[o,a]=this.transforms[r](be.arr(i)?i:n.map(Bn));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){e==1&&Je(this.inputs,t=>Je(t,n=>sr(n)&&us(n,this)))}observerRemoved(e){e==0&&Je(this.inputs,t=>Je(t,n=>sr(n)&&Kc(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Gc(this,e)}},PL=["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"];Or.assign({batchedUpdates:un.unstable_batchedUpdates,createStringInterpolator:BE,colors:M9});var LL=lL(PL,{applyAnimatedValues:OL,createAnimatedStyle:e=>new DL(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Lt=LL.animated;function qo(){return qo=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},qo.apply(this,arguments)}var FL={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},Nx=function(e,t){return"translate("+e+"px, "+t+"px)"},cT=h.memo(function(e){var t,n=e.position,r=e.anchor,i=e.children,o=Ft(),a=Fn(),s=a.animate,c=a.config,l=pk(),u=l[0],d=l[1],f=h.useRef(!1),p=void 0,g=!1,m=d.width>0&&d.height>0,v=Math.round(n[0]),x=Math.round(n[1]);m&&(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:Nx(v,x)},f.current||(g=!0),f.current=[v,x]);var w=Zr({to:p,config:c,immediate:!s||g}),_=qo({},FL,o.tooltip.wrapper,{transform:(t=w.transform)!=null?t:Nx(v,x),opacity:w.transform?1:0});return b.jsx(Lt.div,{ref:u,style:_,children:i})});cT.displayName="TooltipWrapper";var lT=h.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return b.jsx("span",{style:qo({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})}),L0=h.memo(function(e){var t,n=e.id,r=e.value,i=e.format,o=e.enableChip,a=o!==void 0&&o,s=e.color,c=e.renderContent,l=Ft(),u=Qa(i);if(typeof c=="function")t=c();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=b.jsxs("div",{style:l.tooltip.basic,children:[a&&b.jsx(lT,{color:s,style:l.tooltip.chip}),d!==void 0?b.jsxs("span",{children:[n,": ",b.jsx("strong",{children:""+d})]}):n]})}return b.jsx("div",{style:l.tooltip.container,children:t})}),BL={width:"100%",borderCollapse:"collapse"},uT=h.memo(function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,o=e.renderContent,a=Ft();return i.length?(t=typeof o=="function"?o():b.jsxs("div",{children:[n&&n,b.jsx("table",{style:qo({},BL,a.tooltip.table),children:b.jsx("tbody",{children:i.map(function(s,c){return b.jsx("tr",{children:s.map(function(l,u){return b.jsx("td",{style:a.tooltip.tableCell,children:l},u)})},c)})})})]}),b.jsx("div",{style:a.tooltip.container,children:t})):null});uT.displayName="TableTooltip";var Ng=h.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,o=Ft(),a=Fn(),s=a.animate,c=a.config,l=h.useMemo(function(){return qo({},o.crosshair.line,{pointerEvents:"none"})},[o.crosshair.line]),u=Zr({x1:t,x2:n,y1:r,y2:i,config:c,immediate:!s});return b.jsx(Lt.line,qo({},u,{fill:"none",style:l}))});Ng.displayName="CrosshairLine";var Dg=h.memo(function(e){var t,n,r=e.width,i=e.height,o=e.type,a=e.x,s=e.y;return o==="cross"?(t={x0:a,x1:a,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):o==="top-left"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:0,x1:a,y0:s,y1:s}):o==="top"?t={x0:a,x1:a,y0:0,y1:s}:o==="top-right"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:a,x1:r,y0:s,y1:s}):o==="right"?n={x0:a,x1:r,y0:s,y1:s}:o==="bottom-right"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:a,x1:r,y0:s,y1:s}):o==="bottom"?t={x0:a,x1:a,y0:s,y1:i}:o==="bottom-left"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:0,x1:a,y0:s,y1:s}):o==="left"?n={x0:0,x1:a,y0:s,y1:s}:o==="x"?t={x0:a,x1:a,y0:0,y1:i}:o==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),b.jsxs(b.Fragment,{children:[t&&b.jsx(Ng,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&b.jsx(Ng,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});Dg.displayName="Crosshair";var dT=h.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),Ig={isVisible:!1,position:[null,null],content:null,anchor:null},fT=h.createContext(Ig),zL=function(e){var t=h.useState(Ig),n=t[0],r=t[1],i=h.useCallback(function(s,c,l){var u=c[0],d=c[1];l===void 0&&(l="top"),r({isVisible:!0,position:[u,d],anchor:l,content:s})},[r]),o=h.useCallback(function(s,c,l){l===void 0&&(l="top");var u=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===u.width?1:d/u.width,p="touches"in c?c.touches[0]:c,g=p.clientX,m=p.clientY,v=(g-u.left)*f,x=(m-u.top)*f;l!=="left"&&l!=="right"||(l=v<u.width/2?"right":"left"),r({isVisible:!0,position:[v,x],anchor:l,content:s})},[e,r]),a=h.useCallback(function(){r(Ig)},[r]);return{actions:h.useMemo(function(){return{showTooltipAt:i,showTooltipFromEvent:o,hideTooltip:a}},[i,o,a]),state:n}},ta=function(){var e=h.useContext(dT);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},WL=function(){var e=h.useContext(fT);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},UL=function(e){return e.isVisible},VL=function(){var e=WL();return UL(e)?b.jsx(cT,{position:e.position,anchor:e.anchor,children:e.content}):null},HL=function(e){var t=e.container,n=e.children,r=zL(t),i=r.actions,o=r.state;return b.jsx(dT.Provider,{value:i,children:b.jsx(fT.Provider,{value:o,children:n})})};function qL(){this.__data__=[],this.size=0}var YL=qL;function GL(e,t){return e===t||e!==e&&t!==t}var Dl=GL,KL=Dl;function ZL(e,t){for(var n=e.length;n--;)if(KL(e[n][0],t))return n;return-1}var Xf=ZL,XL=Xf,QL=Array.prototype,JL=QL.splice;function eF(e){var t=this.__data__,n=XL(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():JL.call(t,n,1),--this.size,!0}var tF=eF,nF=Xf;function rF(e){var t=this.__data__,n=nF(t,e);return n<0?void 0:t[n][1]}var iF=rF,oF=Xf;function aF(e){return oF(this.__data__,e)>-1}var sF=aF,cF=Xf;function lF(e,t){var n=this.__data__,r=cF(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var uF=lF,dF=YL,fF=tF,hF=iF,pF=sF,mF=uF;function ds(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])}}ds.prototype.clear=dF;ds.prototype.delete=fF;ds.prototype.get=hF;ds.prototype.has=pF;ds.prototype.set=mF;var Qf=ds,gF=Qf;function vF(){this.__data__=new gF,this.size=0}var bF=vF;function yF(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var xF=yF;function wF(e){return this.__data__.get(e)}var _F=wF;function CF(e){return this.__data__.has(e)}var $F=CF,SF=typeof lr=="object"&&lr&&lr.Object===Object&&lr,hT=SF,EF=hT,TF=typeof self=="object"&&self&&self.Object===Object&&self,kF=EF||TF||Function("return this")(),Xr=kF,OF=Xr,MF=OF.Symbol,fs=MF,Dx=fs,pT=Object.prototype,RF=pT.hasOwnProperty,AF=pT.toString,Hs=Dx?Dx.toStringTag:void 0;function jF(e){var t=RF.call(e,Hs),n=e[Hs];try{e[Hs]=void 0;var r=!0}catch{}var i=AF.call(e);return r&&(t?e[Hs]=n:delete e[Hs]),i}var NF=jF,DF=Object.prototype,IF=DF.toString;function PF(e){return IF.call(e)}var LF=PF,Ix=fs,FF=NF,BF=LF,zF="[object Null]",WF="[object Undefined]",Px=Ix?Ix.toStringTag:void 0;function UF(e){return e==null?e===void 0?WF:zF:Px&&Px in Object(e)?FF(e):BF(e)}var Si=UF;function VF(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Qr=VF,HF=Si,qF=Qr,YF="[object AsyncFunction]",GF="[object Function]",KF="[object GeneratorFunction]",ZF="[object Proxy]";function XF(e){if(!qF(e))return!1;var t=HF(e);return t==GF||t==KF||t==YF||t==ZF}var Jf=XF;const F0=rn(Jf);var QF=Xr,JF=QF["__core-js_shared__"],eB=JF,Yp=eB,Lx=function(){var e=/[^.]+$/.exec(Yp&&Yp.keys&&Yp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function tB(e){return!!Lx&&Lx in e}var nB=tB,rB=Function.prototype,iB=rB.toString;function oB(e){if(e!=null){try{return iB.call(e)}catch{}try{return e+""}catch{}}return""}var mT=oB,aB=Jf,sB=nB,cB=Qr,lB=mT,uB=/[\\^$.*+?()[\]{}|]/g,dB=/^\[object .+?Constructor\]$/,fB=Function.prototype,hB=Object.prototype,pB=fB.toString,mB=hB.hasOwnProperty,gB=RegExp("^"+pB.call(mB).replace(uB,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vB(e){if(!cB(e)||sB(e))return!1;var t=aB(e)?gB:dB;return t.test(lB(e))}var bB=vB;function yB(e,t){return e==null?void 0:e[t]}var xB=yB,wB=bB,_B=xB;function CB(e,t){var n=_B(e,t);return wB(n)?n:void 0}var na=CB,$B=na,SB=Xr,EB=$B(SB,"Map"),B0=EB,TB=na,kB=TB(Object,"create"),eh=kB,Fx=eh;function OB(){this.__data__=Fx?Fx(null):{},this.size=0}var MB=OB;function RB(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var AB=RB,jB=eh,NB="__lodash_hash_undefined__",DB=Object.prototype,IB=DB.hasOwnProperty;function PB(e){var t=this.__data__;if(jB){var n=t[e];return n===NB?void 0:n}return IB.call(t,e)?t[e]:void 0}var LB=PB,FB=eh,BB=Object.prototype,zB=BB.hasOwnProperty;function WB(e){var t=this.__data__;return FB?t[e]!==void 0:zB.call(t,e)}var UB=WB,VB=eh,HB="__lodash_hash_undefined__";function qB(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=VB&&t===void 0?HB:t,this}var YB=qB,GB=MB,KB=AB,ZB=LB,XB=UB,QB=YB;function hs(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])}}hs.prototype.clear=GB;hs.prototype.delete=KB;hs.prototype.get=ZB;hs.prototype.has=XB;hs.prototype.set=QB;var JB=hs,Bx=JB,ez=Qf,tz=B0;function nz(){this.size=0,this.__data__={hash:new Bx,map:new(tz||ez),string:new Bx}}var rz=nz;function iz(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var oz=iz,az=oz;function sz(e,t){var n=e.__data__;return az(t)?n[typeof t=="string"?"string":"hash"]:n.map}var th=sz,cz=th;function lz(e){var t=cz(this,e).delete(e);return this.size-=t?1:0,t}var uz=lz,dz=th;function fz(e){return dz(this,e).get(e)}var hz=fz,pz=th;function mz(e){return pz(this,e).has(e)}var gz=mz,vz=th;function bz(e,t){var n=vz(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var yz=bz,xz=rz,wz=uz,_z=hz,Cz=gz,$z=yz;function ps(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])}}ps.prototype.clear=xz;ps.prototype.delete=wz;ps.prototype.get=_z;ps.prototype.has=Cz;ps.prototype.set=$z;var z0=ps,Sz=Qf,Ez=B0,Tz=z0,kz=200;function Oz(e,t){var n=this.__data__;if(n instanceof Sz){var r=n.__data__;if(!Ez||r.length<kz-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Tz(r)}return n.set(e,t),this.size=n.size,this}var Mz=Oz,Rz=Qf,Az=bF,jz=xF,Nz=_F,Dz=$F,Iz=Mz;function ms(e){var t=this.__data__=new Rz(e);this.size=t.size}ms.prototype.clear=Az;ms.prototype.delete=jz;ms.prototype.get=Nz;ms.prototype.has=Dz;ms.prototype.set=Iz;var nh=ms,Pz=na,Lz=function(){try{var e=Pz(Object,"defineProperty");return e({},"",{}),e}catch{}}(),gT=Lz,zx=gT;function Fz(e,t,n){t=="__proto__"&&zx?zx(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var W0=Fz,Bz=W0,zz=Dl;function Wz(e,t,n){(n!==void 0&&!zz(e[t],n)||n===void 0&&!(t in e))&&Bz(e,t,n)}var vT=Wz;function Uz(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++i];if(n(o[c],c,o)===!1)break}return t}}var Vz=Uz,Hz=Vz,qz=Hz(),bT=qz,Rd={exports:{}};Rd.exports;(function(e,t){var n=Xr,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;function c(l,u){if(u)return l.slice();var d=l.length,f=s?s(d):new l.constructor(d);return l.copy(f),f}e.exports=c})(Rd,Rd.exports);var yT=Rd.exports,Yz=Xr,Gz=Yz.Uint8Array,xT=Gz,Wx=xT;function Kz(e){var t=new e.constructor(e.byteLength);return new Wx(t).set(new Wx(e)),t}var U0=Kz,Zz=U0;function Xz(e,t){var n=t?Zz(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var wT=Xz;function Qz(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var _T=Qz,Jz=Qr,Ux=Object.create,eW=function(){function e(){}return function(t){if(!Jz(t))return{};if(Ux)return Ux(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),tW=eW;function nW(e,t){return function(n){return e(t(n))}}var CT=nW,rW=CT,iW=rW(Object.getPrototypeOf,Object),V0=iW,oW=Object.prototype;function aW(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||oW;return e===n}var H0=aW,sW=tW,cW=V0,lW=H0;function uW(e){return typeof e.constructor=="function"&&!lW(e)?sW(cW(e)):{}}var $T=uW;function dW(e){return e!=null&&typeof e=="object"}var yr=dW,fW=Si,hW=yr,pW="[object Arguments]";function mW(e){return hW(e)&&fW(e)==pW}var gW=mW,Vx=gW,vW=yr,ST=Object.prototype,bW=ST.hasOwnProperty,yW=ST.propertyIsEnumerable,xW=Vx(function(){return arguments}())?Vx:function(e){return vW(e)&&bW.call(e,"callee")&&!yW.call(e,"callee")},rh=xW,wW=Array.isArray,Kn=wW,_W=9007199254740991;function CW(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=_W}var q0=CW,$W=Jf,SW=q0;function EW(e){return e!=null&&SW(e.length)&&!$W(e)}var gs=EW,TW=gs,kW=yr;function OW(e){return kW(e)&&TW(e)}var ET=OW,Ad={exports:{}};function MW(){return!1}var RW=MW;Ad.exports;(function(e,t){var n=Xr,r=RW,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,c=s?s.isBuffer:void 0,l=c||r;e.exports=l})(Ad,Ad.exports);var ih=Ad.exports,AW=Si,jW=V0,NW=yr,DW="[object Object]",IW=Function.prototype,PW=Object.prototype,TT=IW.toString,LW=PW.hasOwnProperty,FW=TT.call(Object);function BW(e){if(!NW(e)||AW(e)!=DW)return!1;var t=jW(e);if(t===null)return!0;var n=LW.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&TT.call(n)==FW}var Y0=BW;const G0=rn(Y0);var zW=Si,WW=q0,UW=yr,VW="[object Arguments]",HW="[object Array]",qW="[object Boolean]",YW="[object Date]",GW="[object Error]",KW="[object Function]",ZW="[object Map]",XW="[object Number]",QW="[object Object]",JW="[object RegExp]",eU="[object Set]",tU="[object String]",nU="[object WeakMap]",rU="[object ArrayBuffer]",iU="[object DataView]",oU="[object Float32Array]",aU="[object Float64Array]",sU="[object Int8Array]",cU="[object Int16Array]",lU="[object Int32Array]",uU="[object Uint8Array]",dU="[object Uint8ClampedArray]",fU="[object Uint16Array]",hU="[object Uint32Array]",Jt={};Jt[oU]=Jt[aU]=Jt[sU]=Jt[cU]=Jt[lU]=Jt[uU]=Jt[dU]=Jt[fU]=Jt[hU]=!0;Jt[VW]=Jt[HW]=Jt[rU]=Jt[qW]=Jt[iU]=Jt[YW]=Jt[GW]=Jt[KW]=Jt[ZW]=Jt[XW]=Jt[QW]=Jt[JW]=Jt[eU]=Jt[tU]=Jt[nU]=!1;function pU(e){return UW(e)&&WW(e.length)&&!!Jt[zW(e)]}var mU=pU;function gU(e){return function(t){return e(t)}}var vs=gU,jd={exports:{}};jd.exports;(function(e,t){var n=hT,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var c=i&&i.require&&i.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(jd,jd.exports);var oh=jd.exports,vU=mU,bU=vs,Hx=oh,qx=Hx&&Hx.isTypedArray,yU=qx?bU(qx):vU,K0=yU;function xU(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var kT=xU,wU=W0,_U=Dl,CU=Object.prototype,$U=CU.hasOwnProperty;function SU(e,t,n){var r=e[t];(!($U.call(e,t)&&_U(r,n))||n===void 0&&!(t in e))&&wU(e,t,n)}var Z0=SU,EU=Z0,TU=W0;function kU(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?TU(n,s,c):EU(n,s,c)}return n}var bs=kU;function OU(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var MU=OU,RU=9007199254740991,AU=/^(?:0|[1-9]\d*)$/;function jU(e,t){var n=typeof e;return t=t??RU,!!t&&(n=="number"||n!="symbol"&&AU.test(e))&&e>-1&&e%1==0&&e<t}var ah=jU,NU=MU,DU=rh,IU=Kn,PU=ih,LU=ah,FU=K0,BU=Object.prototype,zU=BU.hasOwnProperty;function WU(e,t){var n=IU(e),r=!n&&DU(e),i=!n&&!r&&PU(e),o=!n&&!r&&!i&&FU(e),a=n||r||i||o,s=a?NU(e.length,String):[],c=s.length;for(var l in e)(t||zU.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||LU(l,c)))&&s.push(l);return s}var OT=WU;function UU(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var VU=UU,HU=Qr,qU=H0,YU=VU,GU=Object.prototype,KU=GU.hasOwnProperty;function ZU(e){if(!HU(e))return YU(e);var t=qU(e),n=[];for(var r in e)r=="constructor"&&(t||!KU.call(e,r))||n.push(r);return n}var XU=ZU,QU=OT,JU=XU,eV=gs;function tV(e){return eV(e)?QU(e,!0):JU(e)}var Il=tV,nV=bs,rV=Il;function iV(e){return nV(e,rV(e))}var oV=iV,Yx=vT,aV=yT,sV=wT,cV=_T,lV=$T,Gx=rh,Kx=Kn,uV=ET,dV=ih,fV=Jf,hV=Qr,pV=Y0,mV=K0,Zx=kT,gV=oV;function vV(e,t,n,r,i,o,a){var s=Zx(e,n),c=Zx(t,n),l=a.get(c);if(l){Yx(e,n,l);return}var u=o?o(s,c,n+"",e,t,a):void 0,d=u===void 0;if(d){var f=Kx(c),p=!f&&dV(c),g=!f&&!p&&mV(c);u=c,f||p||g?Kx(s)?u=s:uV(s)?u=cV(s):p?(d=!1,u=aV(c,!0)):g?(d=!1,u=sV(c,!0)):u=[]:pV(c)||Gx(c)?(u=s,Gx(s)?u=gV(s):(!hV(s)||fV(s))&&(u=lV(c))):d=!1}d&&(a.set(c,u),i(u,c,r,o,a),a.delete(c)),Yx(e,n,u)}var bV=vV,yV=nh,xV=vT,wV=bT,_V=bV,CV=Qr,$V=Il,SV=kT;function MT(e,t,n,r,i){e!==t&&wV(t,function(o,a){if(i||(i=new yV),CV(o))_V(e,t,a,n,MT,r,i);else{var s=r?r(SV(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),xV(e,a,s)}},$V)}var EV=MT;function TV(e){return e}var sh=TV;function kV(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 OV=kV,MV=OV,Xx=Math.max;function RV(e,t,n){return t=Xx(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Xx(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),MV(e,this,s)}}var RT=RV;function AV(e){return function(){return e}}var jV=AV,NV=jV,Qx=gT,DV=sh,IV=Qx?function(e,t){return Qx(e,"toString",{configurable:!0,enumerable:!1,value:NV(t),writable:!0})}:DV,PV=IV,LV=800,FV=16,BV=Date.now;function zV(e){var t=0,n=0;return function(){var r=BV(),i=FV-(r-n);if(n=r,i>0){if(++t>=LV)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var WV=zV,UV=PV,VV=WV,HV=VV(UV),AT=HV,qV=sh,YV=RT,GV=AT;function KV(e,t){return GV(YV(e,t,qV),e+"")}var X0=KV,ZV=Dl,XV=gs,QV=ah,JV=Qr;function eH(e,t,n){if(!JV(n))return!1;var r=typeof t;return(r=="number"?XV(n)&&QV(t,n.length):r=="string"&&t in n)?ZV(n[t],e):!1}var jT=eH,tH=X0,nH=jT;function rH(e){return tH(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&nH(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var iH=rH,oH=EV,aH=iH,sH=aH(function(e,t,n){oH(e,t,n)}),cH=sH;const lH=rn(cH);var uH=Si,dH=yr,fH="[object Symbol]";function hH(e){return typeof e=="symbol"||dH(e)&&uH(e)==fH}var ch=hH,pH=Kn,mH=ch,gH=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vH=/^\w*$/;function bH(e,t){if(pH(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||mH(e)?!0:vH.test(e)||!gH.test(e)||t!=null&&e in Object(t)}var Q0=bH,NT=z0,yH="Expected a function";function J0(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(yH);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(J0.Cache||NT),n}J0.Cache=NT;var xH=J0,wH=xH,_H=500;function CH(e){var t=wH(e,function(r){return n.size===_H&&n.clear(),r}),n=t.cache;return t}var $H=CH,SH=$H,EH=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,TH=/\\(\\)?/g,kH=SH(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(EH,function(n,r,i,o){t.push(i?o.replace(TH,"$1"):r||n)}),t}),OH=kH;function MH(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var lh=MH,Jx=fs,RH=lh,AH=Kn,jH=ch,NH=1/0,ew=Jx?Jx.prototype:void 0,tw=ew?ew.toString:void 0;function DT(e){if(typeof e=="string")return e;if(AH(e))return RH(e,DT)+"";if(jH(e))return tw?tw.call(e):"";var t=e+"";return t=="0"&&1/e==-NH?"-0":t}var DH=DT,IH=DH;function PH(e){return e==null?"":IH(e)}var IT=PH,LH=Kn,FH=Q0,BH=OH,zH=IT;function WH(e,t){return LH(e)?e:FH(e,t)?[e]:BH(zH(e))}var ys=WH,UH=ch,VH=1/0;function HH(e){if(typeof e=="string"||UH(e))return e;var t=e+"";return t=="0"&&1/e==-VH?"-0":t}var xs=HH,qH=ys,YH=xs;function GH(e,t){t=qH(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[YH(t[n++])];return n&&n==r?e:void 0}var Pl=GH,KH=Pl;function ZH(e,t,n){var r=e==null?void 0:KH(e,t);return r===void 0?n:r}var PT=ZH;const Vr=rn(PT);var XH=Z0,QH=ys,JH=ah,nw=Qr,eq=xs;function tq(e,t,n,r){if(!nw(e))return e;t=QH(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var c=eq(t[i]),l=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=a){var u=s[c];l=r?r(u,c,s):void 0,l===void 0&&(l=nw(u)?u:JH(t[i+1])?[]:{})}XH(s,c,l),s=s[c]}return e}var LT=tq,nq=LT;function rq(e,t,n){return e==null?e:nq(e,t,n)}var iq=rq;const lc=rn(iq);function uh(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function eb(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ws(){}var Yo=.7,Ka=1/Yo,Aa="\\s*([+-]?\\d+)\\s*",tl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Lr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",oq=/^#([0-9a-f]{3,8})$/,aq=new RegExp(`^rgb\\(${Aa},${Aa},${Aa}\\)$`),sq=new RegExp(`^rgb\\(${Lr},${Lr},${Lr}\\)$`),cq=new RegExp(`^rgba\\(${Aa},${Aa},${Aa},${tl}\\)$`),lq=new RegExp(`^rgba\\(${Lr},${Lr},${Lr},${tl}\\)$`),uq=new RegExp(`^hsl\\(${tl},${Lr},${Lr}\\)$`),dq=new RegExp(`^hsla\\(${tl},${Lr},${Lr},${tl}\\)$`),rw={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};uh(ws,nl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:iw,formatHex:iw,formatHex8:fq,formatHsl:hq,formatRgb:ow,toString:ow});function iw(){return this.rgb().formatHex()}function fq(){return this.rgb().formatHex8()}function hq(){return BT(this).formatHsl()}function ow(){return this.rgb().formatRgb()}function nl(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=oq.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?aw(t):n===3?new On(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?yu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?yu(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=aq.exec(e))?new On(t[1],t[2],t[3],1):(t=sq.exec(e))?new On(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=cq.exec(e))?yu(t[1],t[2],t[3],t[4]):(t=lq.exec(e))?yu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=uq.exec(e))?lw(t[1],t[2]/100,t[3]/100,1):(t=dq.exec(e))?lw(t[1],t[2]/100,t[3]/100,t[4]):rw.hasOwnProperty(e)?aw(rw[e]):e==="transparent"?new On(NaN,NaN,NaN,0):null}function aw(e){return new On(e>>16&255,e>>8&255,e&255,1)}function yu(e,t,n,r){return r<=0&&(e=t=n=NaN),new On(e,t,n,r)}function FT(e){return e instanceof ws||(e=nl(e)),e?(e=e.rgb(),new On(e.r,e.g,e.b,e.opacity)):new On}function Za(e,t,n,r){return arguments.length===1?FT(e):new On(e,t,n,r??1)}function On(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}uh(On,Za,eb(ws,{brighter(e){return e=e==null?Ka:Math.pow(Ka,e),new On(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Yo:Math.pow(Yo,e),new On(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new On(Do(this.r),Do(this.g),Do(this.b),Nd(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:sw,formatHex:sw,formatHex8:pq,formatRgb:cw,toString:cw}));function sw(){return`#${To(this.r)}${To(this.g)}${To(this.b)}`}function pq(){return`#${To(this.r)}${To(this.g)}${To(this.b)}${To((isNaN(this.opacity)?1:this.opacity)*255)}`}function cw(){const e=Nd(this.opacity);return`${e===1?"rgb(":"rgba("}${Do(this.r)}, ${Do(this.g)}, ${Do(this.b)}${e===1?")":`, ${e})`}`}function Nd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Do(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function To(e){return e=Do(e),(e<16?"0":"")+e.toString(16)}function lw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new $r(e,t,n,r)}function BT(e){if(e instanceof $r)return new $r(e.h,e.s,e.l,e.opacity);if(e instanceof ws||(e=nl(e)),!e)return new $r;if(e instanceof $r)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,c=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new $r(a,s,c,e.opacity)}function mq(e,t,n,r){return arguments.length===1?BT(e):new $r(e,t,n,r??1)}function $r(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}uh($r,mq,eb(ws,{brighter(e){return e=e==null?Ka:Math.pow(Ka,e),new $r(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Yo:Math.pow(Yo,e),new $r(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new On(Gp(e>=240?e-240:e+120,i,r),Gp(e,i,r),Gp(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new $r(uw(this.h),xu(this.s),xu(this.l),Nd(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=Nd(this.opacity);return`${e===1?"hsl(":"hsla("}${uw(this.h)}, ${xu(this.s)*100}%, ${xu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function uw(e){return e=(e||0)%360,e<0?e+360:e}function xu(e){return Math.max(0,Math.min(1,e||0))}function Gp(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 gq=Math.PI/180,vq=180/Math.PI;var zT=-.14861,tb=1.78277,nb=-.29227,dh=-.90649,rl=1.97294,dw=rl*dh,fw=rl*tb,hw=tb*nb-dh*zT;function bq(e){if(e instanceof Io)return new Io(e.h,e.s,e.l,e.opacity);e instanceof On||(e=FT(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(hw*r+dw*t-fw*n)/(hw+dw-fw),o=r-i,a=(rl*(n-i)-nb*o)/dh,s=Math.sqrt(a*a+o*o)/(rl*i*(1-i)),c=s?Math.atan2(a,o)*vq-120:NaN;return new Io(c<0?c+360:c,s,i,e.opacity)}function Hr(e,t,n,r){return arguments.length===1?bq(e):new Io(e,t,n,r??1)}function Io(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}uh(Io,Hr,eb(ws,{brighter(e){return e=e==null?Ka:Math.pow(Ka,e),new Io(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Yo:Math.pow(Yo,e),new Io(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*gq,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new On(255*(t+n*(zT*r+tb*i)),255*(t+n*(nb*r+dh*i)),255*(t+n*(rl*r)),this.opacity)}}));function yq(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function xq(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return yq((n-r/t)*t,a,i,o,s)}}const fh=e=>()=>e;function WT(e,t){return function(n){return e+n*t}}function wq(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 _q(e,t){var n=t-e;return n?WT(e,n>180||n<-180?n-360*Math.round(n/360):n):fh(isNaN(e)?t:e)}function Cq(e){return(e=+e)==1?ja:function(t,n){return n-t?wq(t,n,e):fh(isNaN(t)?n:t)}}function ja(e,t){var n=t-e;return n?WT(e,n):fh(isNaN(e)?t:e)}const pw=function e(t){var n=Cq(t);function r(i,o){var a=n((i=Za(i)).r,(o=Za(o)).r),s=n(i.g,o.g),c=n(i.b,o.b),l=ja(i.opacity,o.opacity);return function(u){return i.r=a(u),i.g=s(u),i.b=c(u),i.opacity=l(u),i+""}}return r.gamma=e,r}(1);function $q(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),o=new Array(n),a,s;for(a=0;a<n;++a)s=Za(t[a]),r[a]=s.r||0,i[a]=s.g||0,o[a]=s.b||0;return r=e(r),i=e(i),o=e(o),s.opacity=1,function(c){return s.r=r(c),s.g=i(c),s.b=o(c),s+""}}}var Sq=$q(xq);function Eq(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function Tq(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function kq(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=rb(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function Oq(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Dd(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Mq(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=rb(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Pg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kp=new RegExp(Pg.source,"g");function Rq(e){return function(){return e}}function Aq(e){return function(t){return e(t)+""}}function UT(e,t){var n=Pg.lastIndex=Kp.lastIndex=0,r,i,o,a=-1,s=[],c=[];for(e=e+"",t=t+"";(r=Pg.exec(e))&&(i=Kp.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,c.push({i:a,x:Dd(r,i)})),n=Kp.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?Aq(c[0].x):Rq(t):(t=c.length,function(l){for(var u=0,d;u<t;++u)s[(d=c[u]).i]=d.x(l);return s.join("")})}function rb(e,t){var n=typeof t,r;return t==null||n==="boolean"?fh(t):(n==="number"?Dd:n==="string"?(r=nl(t))?(t=r,pw):UT:t instanceof nl?pw:t instanceof Date?Oq:Tq(t)?Eq:Array.isArray(t)?kq:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Mq:Dd)(e,t)}function jq(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function VT(e){return function t(n){n=+n;function r(i,o){var a=e((i=Hr(i)).h,(o=Hr(o)).h),s=ja(i.s,o.s),c=ja(i.l,o.l),l=ja(i.opacity,o.opacity);return function(u){return i.h=a(u),i.s=s(u),i.l=c(Math.pow(u,n)),i.opacity=l(u),i+""}}return r.gamma=t,r}(1)}VT(_q);var ib=VT(ja),Nq=Si,Dq=Kn,Iq=yr,Pq="[object String]";function Lq(e){return typeof e=="string"||!Dq(e)&&Iq(e)&&Nq(e)==Pq}var Fq=Lq;const Bq=rn(Fq);function zq(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var HT=zq;const Pe=rn(HT);function Xu(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Wq(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ob(e){let t,n,r;e.length!==2?(t=Xu,n=(s,c)=>Xu(e(s),c),r=(s,c)=>e(s)-c):(t=e===Xu||e===Wq?e:Uq,n=e,r=e);function i(s,c,l=0,u=s.length){if(l<u){if(t(c,c)!==0)return u;do{const d=l+u>>>1;n(s[d],c)<0?l=d+1:u=d}while(l<u)}return l}function o(s,c,l=0,u=s.length){if(l<u){if(t(c,c)!==0)return u;do{const d=l+u>>>1;n(s[d],c)<=0?l=d+1:u=d}while(l<u)}return l}function a(s,c,l=0,u=s.length){const d=i(s,c,l,u-1);return d>l&&r(s[d-1],c)>-r(s[d],c)?d-1:d}return{left:i,center:a,right:o}}function Uq(){return 0}function Vq(e){return e===null?NaN:+e}const Hq=ob(Xu),qq=Hq.right;ob(Vq).center;class mw extends Map{constructor(t,n=Kq){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(gw(this,t))}has(t){return super.has(gw(this,t))}set(t,n){return super.set(Yq(this,t),n)}delete(t){return super.delete(Gq(this,t))}}function gw({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Yq({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Gq({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Kq(e){return e!==null&&typeof e=="object"?e.valueOf():e}const Zq=Math.sqrt(50),Xq=Math.sqrt(10),Qq=Math.sqrt(2);function Id(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=Zq?10:o>=Xq?5:o>=Qq?2:1;let s,c,l;return i<0?(l=Math.pow(10,-i)/a,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=Math.pow(10,i)*a,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?Id(e,t,n*2):[s,c,l]}function Lg(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?Id(t,e,n):Id(e,t,n);if(!(o>=i))return[];const s=o-i+1,c=new Array(s);if(r)if(a<0)for(let l=0;l<s;++l)c[l]=(o-l)/-a;else for(let l=0;l<s;++l)c[l]=(o-l)*a;else if(a<0)for(let l=0;l<s;++l)c[l]=(i+l)/-a;else for(let l=0;l<s;++l)c[l]=(i+l)*a;return c}function Fg(e,t,n){return t=+t,e=+e,n=+n,Id(e,t,n)[2]}function Bg(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Fg(t,e,n):Fg(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Jq(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function ra(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const vw=Symbol("implicit");function ko(){var e=new mw,t=[],n=[],r=vw;function i(o){let a=e.get(o);if(a===void 0){if(r!==vw)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new mw;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return ko(t,n).unknown(r)},ra.apply(i,arguments),i}function ab(){var e=ko().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var f=t().length,p=i<r,g=p?i:r,m=p?r:i;o=(m-g)/Math.max(1,f-c+l*2),s&&(o=Math.floor(o)),g+=(m-g-o*(f-c))*u,a=o*(1-c),s&&(g=Math.round(g),a=Math.round(a));var v=Jq(f).map(function(x){return g+o*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,i]=f,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(c=Math.min(1,l=+f),d()):c},e.paddingInner=function(f){return arguments.length?(c=Math.min(1,f),d()):c},e.paddingOuter=function(f){return arguments.length?(l=+f,d()):l},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return ab(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},ra.apply(d(),arguments)}function qT(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return qT(t())},e}function eY(){return qT(ab.apply(null,arguments).paddingInner(1))}function tY(e){return function(){return e}}function nY(e){return+e}var bw=[0,1];function Ea(e){return e}function zg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:tY(isNaN(t)?NaN:.5)}function rY(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function iY(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=zg(i,r),o=n(a,o)):(r=zg(r,i),o=n(o,a)),function(s){return o(r(s))}}function oY(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=zg(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var c=qq(e,s,1,r)-1;return o[c](i[c](s))}}function hh(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function sb(){var e=bw,t=bw,n=rb,r,i,o,a=Ea,s,c,l;function u(){var f=Math.min(e.length,t.length);return a!==Ea&&(a=rY(e[0],e[f-1])),s=f>2?oY:iY,c=l=null,d}function d(f){return f==null||isNaN(f=+f)?o:(c||(c=s(e.map(r),t,n)))(r(a(f)))}return d.invert=function(f){return a(i((l||(l=s(t,e.map(r),Dd)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,nY),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=jq,u()},d.clamp=function(f){return arguments.length?(a=f?!0:Ea,u()):a!==Ea},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(o=f,d):o},function(f,p){return r=f,i=p,u()}}function YT(){return sb()(Ea,Ea)}function aY(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Pd(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 Xa(e){return e=Pd(Math.abs(e)),e?e[1]:NaN}function sY(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function cY(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var lY=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function il(e){if(!(t=lY.exec(e)))throw new Error("invalid format: "+e);var t;return new cb({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]})}il.prototype=cb.prototype;function cb(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+""}cb.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 uY(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var GT;function dY(e,t){var n=Pd(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(GT=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Pd(e,Math.max(0,t+o-1))[0]}function yw(e,t){var n=Pd(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const xw={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:aY,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 yw(e*100,t)},r:yw,s:dY,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function ww(e){return e}var _w=Array.prototype.map,Cw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function fY(e){var t=e.grouping===void 0||e.thousands===void 0?ww:sY(_w.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?ww:cY(_w.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function l(d){d=il(d);var f=d.fill,p=d.align,g=d.sign,m=d.symbol,v=d.zero,x=d.width,w=d.comma,_=d.precision,C=d.trim,y=d.type;y==="n"?(w=!0,y="g"):xw[y]||(_===void 0&&(_=12),C=!0,y="g"),(v||f==="0"&&p==="=")&&(v=!0,f="0",p="=");var $=m==="$"?n:m==="#"&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",E=m==="$"?r:/[%p]/.test(y)?a:"",k=xw[y],T=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function O(S){var M=$,A=E,j,P,I;if(y==="c")A=k(S)+A,S="";else{S=+S;var L=S<0||1/S<0;if(S=isNaN(S)?c:k(Math.abs(S),_),C&&(S=uY(S)),L&&+S==0&&g!=="+"&&(L=!1),M=(L?g==="("?g:s:g==="-"||g==="("?"":g)+M,A=(y==="s"?Cw[8+GT/3]:"")+A+(L&&g==="("?")":""),T){for(j=-1,P=S.length;++j<P;)if(I=S.charCodeAt(j),48>I||I>57){A=(I===46?i+S.slice(j+1):S.slice(j))+A,S=S.slice(0,j);break}}}w&&!v&&(S=t(S,1/0));var V=M.length+S.length+A.length,z=V<x?new Array(x-V+1).join(f):"";switch(w&&v&&(S=t(z+S,z.length?x-A.length:1/0),z=""),p){case"<":S=M+S+A+z;break;case"=":S=M+z+S+A;break;case"^":S=z.slice(0,V=z.length>>1)+M+S+A+z.slice(V);break;default:S=z+M+S+A;break}return o(S)}return O.toString=function(){return d+""},O}function u(d,f){var p=l((d=il(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(Xa(f)/3)))*3,m=Math.pow(10,-g),v=Cw[8+g/3];return function(x){return p(m*x)+v}}return{format:l,formatPrefix:u}}var wu,Ll,KT;hY({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function hY(e){return wu=fY(e),Ll=wu.format,KT=wu.formatPrefix,wu}function pY(e){return Math.max(0,-Xa(Math.abs(e)))}function mY(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Xa(t)/3)))*3-Xa(Math.abs(e)))}function gY(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Xa(t)-Xa(e))+1}function vY(e,t,n,r){var i=Bg(e,t,n),o;switch(r=il(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=mY(i,a))&&(r.precision=o),KT(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=gY(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=pY(i))&&(r.precision=o-(r.type==="%")*2);break}}return Ll(r)}function ZT(e){var t=e.domain;return e.ticks=function(n){var r=t();return Lg(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return vY(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],c,l,u=10;for(s<a&&(l=a,a=s,s=l,l=i,i=o,o=l);u-- >0;){if(l=Fg(a,s,n),l===c)return r[i]=a,r[o]=s,t(r);if(l>0)a=Math.floor(a/l)*l,s=Math.ceil(s/l)*l;else if(l<0)a=Math.ceil(a*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function XT(){var e=YT();return e.copy=function(){return hh(e,XT())},ra.apply(e,arguments),ZT(e)}function QT(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function $w(e){return Math.log(e)}function Sw(e){return Math.exp(e)}function bY(e){return-Math.log(-e)}function yY(e){return-Math.exp(-e)}function xY(e){return isFinite(e)?+("1e"+e):e<0?0:e}function wY(e){return e===10?xY:e===Math.E?Math.exp:t=>Math.pow(e,t)}function _Y(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 Ew(e){return(t,n)=>-e(-t,n)}function CY(e){const t=e($w,Sw),n=t.domain;let r=10,i,o;function a(){return i=_Y(r),o=wY(r),n()[0]<0?(i=Ew(i),o=Ew(o),e(bY,yY)):e($w,Sw),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const c=n();let l=c[0],u=c[c.length-1];const d=u<l;d&&([l,u]=[u,l]);let f=i(l),p=i(u),g,m;const v=s==null?10:+s;let x=[];if(!(r%1)&&p-f<v){if(f=Math.floor(f),p=Math.ceil(p),l>0){for(;f<=p;++f)for(g=1;g<r;++g)if(m=f<0?g/o(-f):g*o(f),!(m<l)){if(m>u)break;x.push(m)}}else for(;f<=p;++f)for(g=r-1;g>=1;--g)if(m=f>0?g/o(-f):g*o(f),!(m<l)){if(m>u)break;x.push(m)}x.length*2<v&&(x=Lg(l,u,v))}else x=Lg(f,p,Math.min(p-f,v)).map(o);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=il(c)).precision==null&&(c.trim=!0),c=Ll(c)),s===1/0)return c;const l=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/o(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=l?c(u):""}},t.nice=()=>n(QT(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function JT(){const e=CY(sb()).domain([1,10]);return e.copy=()=>hh(e,JT()).base(e.base()),ra.apply(e,arguments),e}function Tw(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function kw(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function $Y(e){var t=1,n=e(Tw(t),kw(t));return n.constant=function(r){return arguments.length?e(Tw(t=+r),kw(t)):t},ZT(n)}function e4(){var e=$Y(sb());return e.copy=function(){return hh(e,e4()).constant(e.constant())},ra.apply(e,arguments)}const Zp=new Date,Xp=new Date;function pn(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const c=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return c;let l;do c.push(l=new Date(+o)),t(o,s),e(o);while(l<o&&o<a);return c},i.filter=o=>pn(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(Zp.setTime(+o),Xp.setTime(+a),e(Zp),e(Xp),Math.floor(n(Zp,Xp))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Ld=pn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ld.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?pn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Ld);Ld.range;const di=1e3,ur=di*60,fi=ur*60,xi=fi*24,lb=xi*7,Ow=xi*30,Qp=xi*365,Oo=pn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*di)},(e,t)=>(t-e)/di,e=>e.getUTCSeconds());Oo.range;const ub=pn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*di)},(e,t)=>{e.setTime(+e+t*ur)},(e,t)=>(t-e)/ur,e=>e.getMinutes());ub.range;const db=pn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ur)},(e,t)=>(t-e)/ur,e=>e.getUTCMinutes());db.range;const fb=pn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*di-e.getMinutes()*ur)},(e,t)=>{e.setTime(+e+t*fi)},(e,t)=>(t-e)/fi,e=>e.getHours());fb.range;const hb=pn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*fi)},(e,t)=>(t-e)/fi,e=>e.getUTCHours());hb.range;const pb=pn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ur)/xi,e=>e.getDate()-1);pb.range;const t4=pn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/xi,e=>e.getUTCDate()-1);t4.range;const n4=pn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/xi,e=>Math.floor(e/xi));n4.range;function ia(e){return pn(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())*ur)/lb)}const mb=ia(0),SY=ia(1),EY=ia(2),TY=ia(3),kY=ia(4),OY=ia(5),MY=ia(6);mb.range;SY.range;EY.range;TY.range;kY.range;OY.range;MY.range;function oa(e){return pn(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)/lb)}const gb=oa(0),RY=oa(1),AY=oa(2),jY=oa(3),NY=oa(4),DY=oa(5),IY=oa(6);gb.range;RY.range;AY.range;jY.range;NY.range;DY.range;IY.range;const vb=pn(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());vb.range;const bb=pn(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());bb.range;const ph=pn(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());ph.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:pn(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)});ph.range;const mh=pn(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());mh.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:pn(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)});mh.range;function r4(e,t,n,r,i,o){const a=[[Oo,1,di],[Oo,5,5*di],[Oo,15,15*di],[Oo,30,30*di],[o,1,ur],[o,5,5*ur],[o,15,15*ur],[o,30,30*ur],[i,1,fi],[i,3,3*fi],[i,6,6*fi],[i,12,12*fi],[r,1,xi],[r,2,2*xi],[n,1,lb],[t,1,Ow],[t,3,3*Ow],[e,1,Qp]];function s(l,u,d){const f=u<l;f&&([l,u]=[u,l]);const p=d&&typeof d.range=="function"?d:c(l,u,d),g=p?p.range(l,+u+1):[];return f?g.reverse():g}function c(l,u,d){const f=Math.abs(u-l)/d,p=ob(([,,v])=>v).right(a,f);if(p===a.length)return e.every(Bg(l/Qp,u/Qp,d));if(p===0)return Ld.every(Math.max(Bg(l,u,d),1));const[g,m]=a[f/a[p-1][2]<a[p][2]/f?p-1:p];return g.every(m)}return[s,c]}const[PY,LY]=r4(mh,bb,gb,n4,hb,db),[FY,BY]=r4(ph,vb,mb,pb,fb,ub);var Jp=new Date,em=new Date;function dn(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=function(o){return e(o=new Date(+o)),o},i.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},i.round=function(o){var a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=function(o,a){return t(o=new Date(+o),a==null?1:Math.floor(a)),o},i.range=function(o,a,s){var c=[],l;if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return c;do c.push(l=new Date(+o)),t(o,s),e(o);while(l<o&&o<a);return c},i.filter=function(o){return dn(function(a){if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););})},n&&(i.count=function(o,a){return Jp.setTime(+o),em.setTime(+a),e(Jp),e(em),Math.floor(n(Jp,em))},i.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?function(a){return r(a)%o===0}:function(a){return i.count(0,a)%o===0}):i}),i}var ol=dn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});ol.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?dn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):ol};ol.range;var Fd=1e3,Go=6e4,Bd=36e5,i4=864e5,o4=6048e5,Wg=dn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Fd)},function(e,t){return(t-e)/Fd},function(e){return e.getUTCSeconds()});Wg.range;var a4=dn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Fd)},function(e,t){e.setTime(+e+t*Go)},function(e,t){return(t-e)/Go},function(e){return e.getMinutes()});a4.range;var s4=dn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Fd-e.getMinutes()*Go)},function(e,t){e.setTime(+e+t*Bd)},function(e,t){return(t-e)/Bd},function(e){return e.getHours()});s4.range;var yb=dn(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Go)/i4},function(e){return e.getDate()-1});yb.range;function aa(e){return dn(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())*Go)/o4})}var zd=aa(0),al=aa(1),c4=aa(2),l4=aa(3),Ko=aa(4),u4=aa(5),d4=aa(6);zd.range;al.range;c4.range;l4.range;Ko.range;u4.range;d4.range;var f4=dn(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()});f4.range;var no=dn(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()});no.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:dn(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)})};no.range;var h4=dn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Go)},function(e,t){return(t-e)/Go},function(e){return e.getUTCMinutes()});h4.range;var p4=dn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Bd)},function(e,t){return(t-e)/Bd},function(e){return e.getUTCHours()});p4.range;var xb=dn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/i4},function(e){return e.getUTCDate()-1});xb.range;function sa(e){return dn(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)/o4})}var Wd=sa(0),sl=sa(1),m4=sa(2),g4=sa(3),Zo=sa(4),v4=sa(5),b4=sa(6);Wd.range;sl.range;m4.range;g4.range;Zo.range;v4.range;b4.range;var y4=dn(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()});y4.range;var ro=dn(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()});ro.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:dn(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)})};ro.range;function tm(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 nm(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 qs(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function zY(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,l=Ys(i),u=Gs(i),d=Ys(o),f=Gs(o),p=Ys(a),g=Gs(a),m=Ys(s),v=Gs(s),x=Ys(c),w=Gs(c),_={a:L,A:V,b:z,B:D,c:null,d:Dw,e:Dw,f:uG,g:xG,G:_G,H:sG,I:cG,j:lG,L:x4,m:dG,M:fG,p:W,q:G,Q:Lw,s:Fw,S:hG,u:pG,U:mG,V:gG,w:vG,W:bG,x:null,X:null,y:yG,Y:wG,Z:CG,"%":Pw},C={a:J,A:Z,b:X,B:ee,c:null,d:Iw,e:Iw,f:TG,g:PG,G:FG,H:$G,I:SG,j:EG,L:_4,m:kG,M:OG,p:ne,q:F,Q:Lw,s:Fw,S:MG,u:RG,U:AG,V:jG,w:NG,W:DG,x:null,X:null,y:IG,Y:LG,Z:BG,"%":Pw},y={a:O,A:S,b:M,B:A,c:j,d:jw,e:jw,f:rG,g:Aw,G:Rw,H:Nw,I:Nw,j:JY,L:nG,m:QY,M:eG,p:T,q:XY,Q:oG,s:aG,S:tG,u:qY,U:YY,V:GY,w:HY,W:KY,x:P,X:I,y:Aw,Y:Rw,Z:ZY,"%":iG};_.x=$(n,_),_.X=$(r,_),_.c=$(t,_),C.x=$(n,C),C.X=$(r,C),C.c=$(t,C);function $(N,B){return function(H){var R=[],Y=-1,Q=0,te=N.length,ue,oe,ae;for(H instanceof Date||(H=new Date(+H));++Y<te;)N.charCodeAt(Y)===37&&(R.push(N.slice(Q,Y)),(oe=Mw[ue=N.charAt(++Y)])!=null?ue=N.charAt(++Y):oe=ue==="e"?" ":"0",(ae=B[ue])&&(ue=ae(H,oe)),R.push(ue),Q=Y+1);return R.push(N.slice(Q,Y)),R.join("")}}function E(N,B){return function(H){var R=qs(1900,void 0,1),Y=k(R,N,H+="",0),Q,te;if(Y!=H.length)return null;if("Q"in R)return new Date(R.Q);if("s"in R)return new Date(R.s*1e3+("L"in R?R.L:0));if(B&&!("Z"in R)&&(R.Z=0),"p"in R&&(R.H=R.H%12+R.p*12),R.m===void 0&&(R.m="q"in R?R.q:0),"V"in R){if(R.V<1||R.V>53)return null;"w"in R||(R.w=1),"Z"in R?(Q=nm(qs(R.y,0,1)),te=Q.getUTCDay(),Q=te>4||te===0?sl.ceil(Q):sl(Q),Q=xb.offset(Q,(R.V-1)*7),R.y=Q.getUTCFullYear(),R.m=Q.getUTCMonth(),R.d=Q.getUTCDate()+(R.w+6)%7):(Q=tm(qs(R.y,0,1)),te=Q.getDay(),Q=te>4||te===0?al.ceil(Q):al(Q),Q=yb.offset(Q,(R.V-1)*7),R.y=Q.getFullYear(),R.m=Q.getMonth(),R.d=Q.getDate()+(R.w+6)%7)}else("W"in R||"U"in R)&&("w"in R||(R.w="u"in R?R.u%7:"W"in R?1:0),te="Z"in R?nm(qs(R.y,0,1)).getUTCDay():tm(qs(R.y,0,1)).getDay(),R.m=0,R.d="W"in R?(R.w+6)%7+R.W*7-(te+5)%7:R.w+R.U*7-(te+6)%7);return"Z"in R?(R.H+=R.Z/100|0,R.M+=R.Z%100,nm(R)):tm(R)}}function k(N,B,H,R){for(var Y=0,Q=B.length,te=H.length,ue,oe;Y<Q;){if(R>=te)return-1;if(ue=B.charCodeAt(Y++),ue===37){if(ue=B.charAt(Y++),oe=y[ue in Mw?B.charAt(Y++):ue],!oe||(R=oe(N,H,R))<0)return-1}else if(ue!=H.charCodeAt(R++))return-1}return R}function T(N,B,H){var R=l.exec(B.slice(H));return R?(N.p=u.get(R[0].toLowerCase()),H+R[0].length):-1}function O(N,B,H){var R=p.exec(B.slice(H));return R?(N.w=g.get(R[0].toLowerCase()),H+R[0].length):-1}function S(N,B,H){var R=d.exec(B.slice(H));return R?(N.w=f.get(R[0].toLowerCase()),H+R[0].length):-1}function M(N,B,H){var R=x.exec(B.slice(H));return R?(N.m=w.get(R[0].toLowerCase()),H+R[0].length):-1}function A(N,B,H){var R=m.exec(B.slice(H));return R?(N.m=v.get(R[0].toLowerCase()),H+R[0].length):-1}function j(N,B,H){return k(N,t,B,H)}function P(N,B,H){return k(N,n,B,H)}function I(N,B,H){return k(N,r,B,H)}function L(N){return a[N.getDay()]}function V(N){return o[N.getDay()]}function z(N){return c[N.getMonth()]}function D(N){return s[N.getMonth()]}function W(N){return i[+(N.getHours()>=12)]}function G(N){return 1+~~(N.getMonth()/3)}function J(N){return a[N.getUTCDay()]}function Z(N){return o[N.getUTCDay()]}function X(N){return c[N.getUTCMonth()]}function ee(N){return s[N.getUTCMonth()]}function ne(N){return i[+(N.getUTCHours()>=12)]}function F(N){return 1+~~(N.getUTCMonth()/3)}return{format:function(N){var B=$(N+="",_);return B.toString=function(){return N},B},parse:function(N){var B=E(N+="",!1);return B.toString=function(){return N},B},utcFormat:function(N){var B=$(N+="",C);return B.toString=function(){return N},B},utcParse:function(N){var B=E(N+="",!0);return B.toString=function(){return N},B}}}var Mw={"-":"",_:" ",0:"0"},yn=/^\s*\d+/,WY=/^%/,UY=/[\\^$*+?|[\]().{}]/g;function Tt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function VY(e){return e.replace(UY,"\\$&")}function Ys(e){return new RegExp("^(?:"+e.map(VY).join("|")+")","i")}function Gs(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function HY(e,t,n){var r=yn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function qY(e,t,n){var r=yn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function YY(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function GY(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function KY(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Rw(e,t,n){var r=yn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Aw(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ZY(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 XY(e,t,n){var r=yn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function QY(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function jw(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function JY(e,t,n){var r=yn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Nw(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function eG(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function tG(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function nG(e,t,n){var r=yn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function rG(e,t,n){var r=yn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function iG(e,t,n){var r=WY.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function oG(e,t,n){var r=yn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function aG(e,t,n){var r=yn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Dw(e,t){return Tt(e.getDate(),t,2)}function sG(e,t){return Tt(e.getHours(),t,2)}function cG(e,t){return Tt(e.getHours()%12||12,t,2)}function lG(e,t){return Tt(1+yb.count(no(e),e),t,3)}function x4(e,t){return Tt(e.getMilliseconds(),t,3)}function uG(e,t){return x4(e,t)+"000"}function dG(e,t){return Tt(e.getMonth()+1,t,2)}function fG(e,t){return Tt(e.getMinutes(),t,2)}function hG(e,t){return Tt(e.getSeconds(),t,2)}function pG(e){var t=e.getDay();return t===0?7:t}function mG(e,t){return Tt(zd.count(no(e)-1,e),t,2)}function w4(e){var t=e.getDay();return t>=4||t===0?Ko(e):Ko.ceil(e)}function gG(e,t){return e=w4(e),Tt(Ko.count(no(e),e)+(no(e).getDay()===4),t,2)}function vG(e){return e.getDay()}function bG(e,t){return Tt(al.count(no(e)-1,e),t,2)}function yG(e,t){return Tt(e.getFullYear()%100,t,2)}function xG(e,t){return e=w4(e),Tt(e.getFullYear()%100,t,2)}function wG(e,t){return Tt(e.getFullYear()%1e4,t,4)}function _G(e,t){var n=e.getDay();return e=n>=4||n===0?Ko(e):Ko.ceil(e),Tt(e.getFullYear()%1e4,t,4)}function CG(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Tt(t/60|0,"0",2)+Tt(t%60,"0",2)}function Iw(e,t){return Tt(e.getUTCDate(),t,2)}function $G(e,t){return Tt(e.getUTCHours(),t,2)}function SG(e,t){return Tt(e.getUTCHours()%12||12,t,2)}function EG(e,t){return Tt(1+xb.count(ro(e),e),t,3)}function _4(e,t){return Tt(e.getUTCMilliseconds(),t,3)}function TG(e,t){return _4(e,t)+"000"}function kG(e,t){return Tt(e.getUTCMonth()+1,t,2)}function OG(e,t){return Tt(e.getUTCMinutes(),t,2)}function MG(e,t){return Tt(e.getUTCSeconds(),t,2)}function RG(e){var t=e.getUTCDay();return t===0?7:t}function AG(e,t){return Tt(Wd.count(ro(e)-1,e),t,2)}function C4(e){var t=e.getUTCDay();return t>=4||t===0?Zo(e):Zo.ceil(e)}function jG(e,t){return e=C4(e),Tt(Zo.count(ro(e),e)+(ro(e).getUTCDay()===4),t,2)}function NG(e){return e.getUTCDay()}function DG(e,t){return Tt(sl.count(ro(e)-1,e),t,2)}function IG(e,t){return Tt(e.getUTCFullYear()%100,t,2)}function PG(e,t){return e=C4(e),Tt(e.getUTCFullYear()%100,t,2)}function LG(e,t){return Tt(e.getUTCFullYear()%1e4,t,4)}function FG(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Zo(e):Zo.ceil(e),Tt(e.getUTCFullYear()%1e4,t,4)}function BG(){return"+0000"}function Pw(){return"%"}function Lw(e){return+e}function Fw(e){return Math.floor(+e/1e3)}var ma,gh,$4,S4,E4;zG({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 zG(e){return ma=zY(e),gh=ma.format,$4=ma.parse,S4=ma.utcFormat,E4=ma.utcParse,ma}function WG(e){return new Date(e)}function UG(e){return e instanceof Date?+e:+new Date(+e)}function wb(e,t,n,r,i,o,a,s,c,l){var u=YT(),d=u.invert,f=u.domain,p=l(".%L"),g=l(":%S"),m=l("%I:%M"),v=l("%I %p"),x=l("%a %d"),w=l("%b %d"),_=l("%B"),C=l("%Y");function y($){return(c($)<$?p:s($)<$?g:a($)<$?m:o($)<$?v:r($)<$?i($)<$?x:w:n($)<$?_:C)($)}return u.invert=function($){return new Date(d($))},u.domain=function($){return arguments.length?f(Array.from($,UG)):f().map(WG)},u.ticks=function($){var E=f();return e(E[0],E[E.length-1],$??10)},u.tickFormat=function($,E){return E==null?y:l(E)},u.nice=function($){var E=f();return(!$||typeof $.range!="function")&&($=t(E[0],E[E.length-1],$??10)),$?f(QT(E,$)):u},u.copy=function(){return hh(u,wb(e,t,n,r,i,o,a,s,c,l))},u}function VG(){return ra.apply(wb(FY,BY,ph,vb,mb,pb,fb,ub,Oo,gh).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function HG(){return ra.apply(wb(PY,LY,mh,bb,gb,t4,hb,db,Oo,S4).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function lt(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 T4=lt("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),k4=lt("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),O4=lt("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),M4=lt("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),R4=lt("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),A4=lt("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),j4=lt("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),N4=lt("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),_b=lt("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),qG=lt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Gt=e=>Sq(e[e.length-1]);var vh=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(lt);const YG=Gt(vh);var bh=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(lt);const GG=Gt(bh);var yh=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(lt);const KG=Gt(yh);var xh=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(lt);const ZG=Gt(xh);var wh=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(lt);const XG=Gt(wh);var _h=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(lt);const QG=Gt(_h);var Ch=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(lt);const JG=Gt(Ch);var $h=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(lt);const eK=Gt($h);var Sh=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(lt);const tK=Gt(Sh);var Eh=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(lt);const nK=Gt(Eh);var Th=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(lt);const rK=Gt(Th);var kh=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(lt);const iK=Gt(kh);var Oh=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(lt);const oK=Gt(Oh);var Mh=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(lt);const aK=Gt(Mh);var Rh=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(lt);const sK=Gt(Rh);var Ah=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(lt);const cK=Gt(Ah);var jh=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(lt);const lK=Gt(jh);var Nh=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(lt);const uK=Gt(Nh);var Dh=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(lt);const dK=Gt(Dh);var Ih=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(lt);const fK=Gt(Ih);var Ph=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(lt);const hK=Gt(Ph);var Lh=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(lt);const pK=Gt(Lh);var Fh=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(lt);const mK=Gt(Fh);var Bh=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(lt);const gK=Gt(Bh);var zh=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(lt);const vK=Gt(zh);var Wh=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(lt);const bK=Gt(Wh);var Uh=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(lt);const yK=Gt(Uh);function xK(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 wK=ib(Hr(300,.5,0),Hr(-240,.5,1));var _K=ib(Hr(-100,.75,.35),Hr(80,1.5,.8)),CK=ib(Hr(260,.75,.35),Hr(80,1.5,.8)),_u=Hr();function $K(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return _u.h=360*e-100,_u.s=1.5-1.5*t,_u.l=.8-.9*t,_u+""}var Cu=Za(),SK=Math.PI/3,EK=Math.PI*2/3;function TK(e){var t;return e=(.5-e)*Math.PI,Cu.r=255*(t=Math.sin(e))*t,Cu.g=255*(t=Math.sin(e+SK))*t,Cu.b=255*(t=Math.sin(e+EK))*t,Cu+""}function kK(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 Vh(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const OK=Vh(lt("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var MK=Vh(lt("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),RK=Vh(lt("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),AK=Vh(lt("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),jK="__lodash_hash_undefined__";function NK(e){return this.__data__.set(e,jK),this}var DK=NK;function IK(e){return this.__data__.has(e)}var PK=IK,LK=z0,FK=DK,BK=PK;function Ud(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new LK;++t<n;)this.add(e[t])}Ud.prototype.add=Ud.prototype.push=FK;Ud.prototype.has=BK;var Cb=Ud;function zK(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var WK=zK;function UK(e){return e!==e}var VK=UK;function HK(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var qK=HK,YK=WK,GK=VK,KK=qK;function ZK(e,t,n){return t===t?KK(e,t,n):YK(e,GK,n)}var XK=ZK,QK=XK;function JK(e,t){var n=e==null?0:e.length;return!!n&&QK(e,t,0)>-1}var D4=JK;function eZ(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var I4=eZ;function tZ(e,t){return e.has(t)}var $b=tZ,nZ=Cb,rZ=D4,iZ=I4,oZ=lh,aZ=vs,sZ=$b,cZ=200;function lZ(e,t,n,r){var i=-1,o=rZ,a=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=oZ(t,aZ(n))),r?(o=iZ,a=!1):t.length>=cZ&&(o=sZ,a=!1,t=new nZ(t));e:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,a&&d===d){for(var f=l;f--;)if(t[f]===d)continue e;c.push(u)}else o(t,d,r)||c.push(u)}return c}var uZ=lZ,dZ=uZ,fZ=X0,hZ=ET,pZ=fZ(function(e,t){return hZ(e)?dZ(e,t):[]}),mZ=pZ;const P4=rn(mZ);function vt(e){return function(){return e}}const Bw=Math.abs,$n=Math.atan2,po=Math.cos,gZ=Math.max,rm=Math.min,Ar=Math.sin,Ta=Math.sqrt,En=1e-12,cl=Math.PI,Vd=cl/2,Qu=2*cl;function vZ(e){return e>1?0:e<-1?cl:Math.acos(e)}function zw(e){return e>=1?Vd:e<=-1?-Vd:Math.asin(e)}const Ug=Math.PI,Vg=2*Ug,yo=1e-6,bZ=Vg-yo;function L4(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function yZ(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return L4;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let xZ=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?L4:yZ(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,c=r-t,l=i-n,u=a-t,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>yo)if(!(Math.abs(d*c-l*u)>yo)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-a,g=i-s,m=c*c+l*l,v=p*p+g*g,x=Math.sqrt(m),w=Math.sqrt(f),_=o*Math.tan((Ug-Math.acos((m+f-v)/(2*x*w)))/2),C=_/w,y=_/x;Math.abs(C-1)>yo&&this._append`L${t+C*u},${n+C*d}`,this._append`A${o},${o},0,0,${+(d*p>u*g)},${this._x1=t+y*c},${this._y1=n+y*l}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),c=r*Math.sin(i),l=t+s,u=n+c,d=1^a,f=a?i-o:o-i;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>yo||Math.abs(this._y1-u)>yo)&&this._append`L${l},${u}`,r&&(f<0&&(f=f%Vg+Vg),f>bZ?this._append`A${r},${r},0,1,${d},${t-s},${n-c}A${r},${r},0,1,${d},${this._x1=l},${this._y1=u}`:f>yo&&this._append`A${r},${r},0,${+(f>=Ug)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function Sb(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 xZ(t)}function wZ(e){return e.innerRadius}function _Z(e){return e.outerRadius}function CZ(e){return e.startAngle}function $Z(e){return e.endAngle}function SZ(e){return e&&e.padAngle}function EZ(e,t,n,r,i,o,a,s){var c=n-e,l=r-t,u=a-i,d=s-o,f=d*c-u*l;if(!(f*f<En))return f=(u*(t-o)-d*(e-i))/f,[e+f*c,t+f*l]}function $u(e,t,n,r,i,o,a){var s=e-n,c=t-r,l=(a?o:-o)/Ta(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,g=n+u,m=r+d,v=(f+g)/2,x=(p+m)/2,w=g-f,_=m-p,C=w*w+_*_,y=i-o,$=f*m-g*p,E=(_<0?-1:1)*Ta(gZ(0,y*y*C-$*$)),k=($*_-w*E)/C,T=(-$*w-_*E)/C,O=($*_+w*E)/C,S=(-$*w+_*E)/C,M=k-v,A=T-x,j=O-v,P=S-x;return M*M+A*A>j*j+P*P&&(k=O,T=S),{cx:k,cy:T,x01:-u,y01:-d,x11:k*(i/y-1),y11:T*(i/y-1)}}function TZ(){var e=wZ,t=_Z,n=vt(0),r=null,i=CZ,o=$Z,a=SZ,s=null,c=Sb(l);function l(){var u,d,f=+e.apply(this,arguments),p=+t.apply(this,arguments),g=i.apply(this,arguments)-Vd,m=o.apply(this,arguments)-Vd,v=Bw(m-g),x=m>g;if(s||(s=u=c()),p<f&&(d=p,p=f,f=d),!(p>En))s.moveTo(0,0);else if(v>Qu-En)s.moveTo(p*po(g),p*Ar(g)),s.arc(0,0,p,g,m,!x),f>En&&(s.moveTo(f*po(m),f*Ar(m)),s.arc(0,0,f,m,g,x));else{var w=g,_=m,C=g,y=m,$=v,E=v,k=a.apply(this,arguments)/2,T=k>En&&(r?+r.apply(this,arguments):Ta(f*f+p*p)),O=rm(Bw(p-f)/2,+n.apply(this,arguments)),S=O,M=O,A,j;if(T>En){var P=zw(T/f*Ar(k)),I=zw(T/p*Ar(k));($-=P*2)>En?(P*=x?1:-1,C+=P,y-=P):($=0,C=y=(g+m)/2),(E-=I*2)>En?(I*=x?1:-1,w+=I,_-=I):(E=0,w=_=(g+m)/2)}var L=p*po(w),V=p*Ar(w),z=f*po(y),D=f*Ar(y);if(O>En){var W=p*po(_),G=p*Ar(_),J=f*po(C),Z=f*Ar(C),X;if(v<cl)if(X=EZ(L,V,J,Z,W,G,z,D)){var ee=L-X[0],ne=V-X[1],F=W-X[0],N=G-X[1],B=1/Ar(vZ((ee*F+ne*N)/(Ta(ee*ee+ne*ne)*Ta(F*F+N*N)))/2),H=Ta(X[0]*X[0]+X[1]*X[1]);S=rm(O,(f-H)/(B-1)),M=rm(O,(p-H)/(B+1))}else S=M=0}E>En?M>En?(A=$u(J,Z,L,V,p,M,x),j=$u(W,G,z,D,p,M,x),s.moveTo(A.cx+A.x01,A.cy+A.y01),M<O?s.arc(A.cx,A.cy,M,$n(A.y01,A.x01),$n(j.y01,j.x01),!x):(s.arc(A.cx,A.cy,M,$n(A.y01,A.x01),$n(A.y11,A.x11),!x),s.arc(0,0,p,$n(A.cy+A.y11,A.cx+A.x11),$n(j.cy+j.y11,j.cx+j.x11),!x),s.arc(j.cx,j.cy,M,$n(j.y11,j.x11),$n(j.y01,j.x01),!x))):(s.moveTo(L,V),s.arc(0,0,p,w,_,!x)):s.moveTo(L,V),!(f>En)||!($>En)?s.lineTo(z,D):S>En?(A=$u(z,D,W,G,f,-S,x),j=$u(L,V,J,Z,f,-S,x),s.lineTo(A.cx+A.x01,A.cy+A.y01),S<O?s.arc(A.cx,A.cy,S,$n(A.y01,A.x01),$n(j.y01,j.x01),!x):(s.arc(A.cx,A.cy,S,$n(A.y01,A.x01),$n(A.y11,A.x11),!x),s.arc(0,0,f,$n(A.cy+A.y11,A.cx+A.x11),$n(j.cy+j.y11,j.cx+j.x11),x),s.arc(j.cx,j.cy,S,$n(j.y11,j.x11),$n(j.y01,j.x01),!x))):s.arc(0,0,f,y,C,x)}if(s.closePath(),u)return s=null,u+""||null}return l.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-cl/2;return[po(d)*u,Ar(d)*u]},l.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:vt(+u),l):e},l.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:vt(+u),l):t},l.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:vt(+u),l):n},l.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:vt(+u),l):r},l.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:vt(+u),l):i},l.endAngle=function(u){return arguments.length?(o=typeof u=="function"?u:vt(+u),l):o},l.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:vt(+u),l):a},l.context=function(u){return arguments.length?(s=u??null,l):s},l}function Hh(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function F4(e){this._context=e}F4.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 Eb(e){return new F4(e)}function B4(e){return e[0]}function z4(e){return e[1]}function Tb(e,t){var n=vt(!0),r=null,i=Eb,o=null,a=Sb(s);e=typeof e=="function"?e:e===void 0?B4:vt(e),t=typeof t=="function"?t:t===void 0?z4:vt(t);function s(c){var l,u=(c=Hh(c)).length,d,f=!1,p;for(r==null&&(o=i(p=a())),l=0;l<=u;++l)!(l<u&&n(d=c[l],l,c))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(d,l,c),+t(d,l,c));if(p)return o=null,p+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:vt(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:vt(+c),s):t},s.defined=function(c){return arguments.length?(n=typeof c=="function"?c:vt(!!c),s):n},s.curve=function(c){return arguments.length?(i=c,r!=null&&(o=i(r)),s):i},s.context=function(c){return arguments.length?(c==null?r=o=null:o=i(r=c),s):r},s}function kZ(e,t,n){var r=null,i=vt(!0),o=null,a=Eb,s=null,c=Sb(l);e=typeof e=="function"?e:e===void 0?B4:vt(+e),t=typeof t=="function"?t:vt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?z4:vt(+n);function l(d){var f,p,g,m=(d=Hh(d)).length,v,x=!1,w,_=new Array(m),C=new Array(m);for(o==null&&(s=a(w=c())),f=0;f<=m;++f){if(!(f<m&&i(v=d[f],f,d))===x)if(x=!x)p=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=f-1;g>=p;--g)s.point(_[g],C[g]);s.lineEnd(),s.areaEnd()}x&&(_[f]=+e(v,f,d),C[f]=+t(v,f,d),s.point(r?+r(v,f,d):_[f],n?+n(v,f,d):C[f]))}if(w)return s=null,w+""||null}function u(){return Tb().defined(i).curve(a).context(o)}return l.x=function(d){return arguments.length?(e=typeof d=="function"?d:vt(+d),r=null,l):e},l.x0=function(d){return arguments.length?(e=typeof d=="function"?d:vt(+d),l):e},l.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:vt(+d),l):r},l.y=function(d){return arguments.length?(t=typeof d=="function"?d:vt(+d),n=null,l):t},l.y0=function(d){return arguments.length?(t=typeof d=="function"?d:vt(+d),l):t},l.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:vt(+d),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(d){return arguments.length?(i=typeof d=="function"?d:vt(!!d),l):i},l.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),l):a},l.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),l):o},l}function OZ(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function MZ(e){return e}function RZ(){var e=MZ,t=OZ,n=null,r=vt(0),i=vt(Qu),o=vt(0);function a(s){var c,l=(s=Hh(s)).length,u,d,f=0,p=new Array(l),g=new Array(l),m=+r.apply(this,arguments),v=Math.min(Qu,Math.max(-Qu,i.apply(this,arguments)-m)),x,w=Math.min(Math.abs(v)/l,o.apply(this,arguments)),_=w*(v<0?-1:1),C;for(c=0;c<l;++c)(C=g[p[c]=c]=+e(s[c],c,s))>0&&(f+=C);for(t!=null?p.sort(function(y,$){return t(g[y],g[$])}):n!=null&&p.sort(function(y,$){return n(s[y],s[$])}),c=0,d=f?(v-l*_)/f:0;c<l;++c,m=x)u=p[c],C=g[u],x=m+(C>0?C*d:0)+_,g[u]={data:s[u],index:c,value:C,startAngle:m,endAngle:x,padAngle:w};return g}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:vt(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:vt(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:vt(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:vt(+s),a):o},a}function io(){}function Hd(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 qh(e){this._context=e}qh.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:Hd(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:Hd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function AZ(e){return new qh(e)}function W4(e){this._context=e}W4.prototype={areaStart:io,areaEnd:io,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:Hd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jZ(e){return new W4(e)}function U4(e){this._context=e}U4.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:Hd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function NZ(e){return new U4(e)}function V4(e,t){this._basis=new qh(e),this._beta=t}V4.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],o=e[n]-r,a=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*o),this._beta*t[s]+(1-this._beta)*(i+c*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const DZ=function e(t){function n(r){return t===1?new qh(r):new V4(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function qd(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 kb(e,t){this._context=e,this._k=(1-t)/6}kb.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:qd(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:qd(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 IZ=function e(t){function n(r){return new kb(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Ob(e,t){this._context=e,this._k=(1-t)/6}Ob.prototype={areaStart:io,areaEnd:io,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:qd(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 PZ=function e(t){function n(r){return new Ob(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Mb(e,t){this._context=e,this._k=(1-t)/6}Mb.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:qd(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 LZ=function e(t){function n(r){return new Mb(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Rb(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>En){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>En){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function H4(e,t){this._context=e,this._alpha=t}H4.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:Rb(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 FZ=function e(t){function n(r){return t?new H4(r,t):new kb(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function q4(e,t){this._context=e,this._alpha=t}q4.prototype={areaStart:io,areaEnd:io,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:Rb(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 BZ=function e(t){function n(r){return t?new q4(r,t):new Ob(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Y4(e,t){this._context=e,this._alpha=t}Y4.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:Rb(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 zZ=function e(t){function n(r){return t?new Y4(r,t):new Mb(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function G4(e){this._context=e}G4.prototype={areaStart:io,areaEnd:io,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 WZ(e){return new G4(e)}function Ww(e){return e<0?-1:1}function Uw(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Ww(o)+Ww(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Vw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function im(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Yd(e){this._context=e}Yd.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:im(this,this._t0,Vw(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,im(this,Vw(this,n=Uw(this,e,t)),n);break;default:im(this,this._t0,n=Uw(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function K4(e){this._context=new Z4(e)}(K4.prototype=Object.create(Yd.prototype)).point=function(e,t){Yd.prototype.point.call(this,t,e)};function Z4(e){this._context=e}Z4.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function UZ(e){return new Yd(e)}function VZ(e){return new K4(e)}function X4(e){this._context=e}X4.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=Hw(e),i=Hw(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(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 Hw(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function HZ(e){return new X4(e)}function Yh(e,t){this._context=e,this._t=t}Yh.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 qZ(e){return new Yh(e,.5)}function YZ(e){return new Yh(e,0)}function GZ(e){return new Yh(e,1)}function qw(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Yw(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function KZ(e,t){return e[t]}function ZZ(e){const t=[];return t.key=e,t}function XZ(){var e=vt([]),t=Yw,n=qw,r=KZ;function i(o){var a=Array.from(e.apply(this,arguments),ZZ),s,c=a.length,l=-1,u;for(const d of o)for(s=0,++l;s<c;++s)(a[s][l]=[0,+r(d,a[s].key,l,o)]).data=d;for(s=0,u=Hh(t(a));s<c;++s)a[u[s]].index=s;return n(a,u),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:vt(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:vt(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?Yw:typeof o=="function"?o:vt(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??qw,i):n},i}function QZ(e,t){if((c=e.length)>0)for(var n,r=0,i,o,a,s,c,l=e[t[0]].length;r<l;++r)for(a=s=0,n=0;n<c;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}var JZ=Pl,eX=LT,tX=ys;function nX(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=JZ(e,a);n(s,a)&&eX(o,tX(a,e),s)}return o}var rX=nX;function iX(e,t){return e!=null&&t in Object(e)}var oX=iX,aX=ys,sX=rh,cX=Kn,lX=ah,uX=q0,dX=xs;function fX(e,t,n){t=aX(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=dX(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&uX(i)&&lX(a,i)&&(cX(e)||sX(e)))}var hX=fX,pX=oX,mX=hX;function gX(e,t){return e!=null&&mX(e,t,pX)}var Q4=gX,vX=rX,bX=Q4;function yX(e,t){return vX(e,t,function(n,r){return bX(e,r)})}var xX=yX;function wX(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Ab=wX,Gw=fs,_X=rh,CX=Kn,Kw=Gw?Gw.isConcatSpreadable:void 0;function $X(e){return CX(e)||_X(e)||!!(Kw&&e&&e[Kw])}var SX=$X,EX=Ab,TX=SX;function J4(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=TX),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?J4(s,t-1,n,r,i):EX(i,s):r||(i[i.length]=s)}return i}var ek=J4,kX=ek;function OX(e){var t=e==null?0:e.length;return t?kX(e,1):[]}var MX=OX,RX=MX,AX=RT,jX=AT;function NX(e){return jX(AX(e,void 0,RX),e+"")}var tk=NX,DX=xX,IX=tk,PX=IX(function(e,t){return e==null?{}:DX(e,t)}),LX=PX;const FX=rn(LX);function BX(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 zX=BX,WX=Cb,UX=zX,VX=$b,HX=1,qX=2;function YX(e,t,n,r,i,o){var a=n&HX,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(e),u=o.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&qX?new WX:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var g=e[d],m=t[d];if(r)var v=a?r(m,g,d,t,e,o):r(g,m,d,e,t,o);if(v!==void 0){if(v)continue;f=!1;break}if(p){if(!UX(t,function(x,w){if(!VX(p,w)&&(g===x||i(g,x,n,r,o)))return p.push(w)})){f=!1;break}}else if(!(g===m||i(g,m,n,r,o))){f=!1;break}}return o.delete(e),o.delete(t),f}var nk=YX;function GX(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var KX=GX;function ZX(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var jb=ZX,Zw=fs,Xw=xT,XX=Dl,QX=nk,JX=KX,eQ=jb,tQ=1,nQ=2,rQ="[object Boolean]",iQ="[object Date]",oQ="[object Error]",aQ="[object Map]",sQ="[object Number]",cQ="[object RegExp]",lQ="[object Set]",uQ="[object String]",dQ="[object Symbol]",fQ="[object ArrayBuffer]",hQ="[object DataView]",Qw=Zw?Zw.prototype:void 0,om=Qw?Qw.valueOf:void 0;function pQ(e,t,n,r,i,o,a){switch(n){case hQ:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case fQ:return!(e.byteLength!=t.byteLength||!o(new Xw(e),new Xw(t)));case rQ:case iQ:case sQ:return XX(+e,+t);case oQ:return e.name==t.name&&e.message==t.message;case cQ:case uQ:return e==t+"";case aQ:var s=JX;case lQ:var c=r&tQ;if(s||(s=eQ),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=nQ,a.set(e,t);var u=QX(s(e),s(t),r,i,o,a);return a.delete(e),u;case dQ:if(om)return om.call(e)==om.call(t)}return!1}var mQ=pQ,gQ=Ab,vQ=Kn;function bQ(e,t,n){var r=t(e);return vQ(e)?r:gQ(r,n(e))}var rk=bQ;function yQ(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var ik=yQ;function xQ(){return[]}var ok=xQ,wQ=ik,_Q=ok,CQ=Object.prototype,$Q=CQ.propertyIsEnumerable,Jw=Object.getOwnPropertySymbols,SQ=Jw?function(e){return e==null?[]:(e=Object(e),wQ(Jw(e),function(t){return $Q.call(e,t)}))}:_Q,Nb=SQ,EQ=CT,TQ=EQ(Object.keys,Object),kQ=TQ,OQ=H0,MQ=kQ,RQ=Object.prototype,AQ=RQ.hasOwnProperty;function jQ(e){if(!OQ(e))return MQ(e);var t=[];for(var n in Object(e))AQ.call(e,n)&&n!="constructor"&&t.push(n);return t}var NQ=jQ,DQ=OT,IQ=NQ,PQ=gs;function LQ(e){return PQ(e)?DQ(e):IQ(e)}var Fl=LQ,FQ=rk,BQ=Nb,zQ=Fl;function WQ(e){return FQ(e,zQ,BQ)}var ak=WQ,e2=ak,UQ=1,VQ=Object.prototype,HQ=VQ.hasOwnProperty;function qQ(e,t,n,r,i,o){var a=n&UQ,s=e2(e),c=s.length,l=e2(t),u=l.length;if(c!=u&&!a)return!1;for(var d=c;d--;){var f=s[d];if(!(a?f in t:HQ.call(t,f)))return!1}var p=o.get(e),g=o.get(t);if(p&&g)return p==t&&g==e;var m=!0;o.set(e,t),o.set(t,e);for(var v=a;++d<c;){f=s[d];var x=e[f],w=t[f];if(r)var _=a?r(w,x,f,t,e,o):r(x,w,f,e,t,o);if(!(_===void 0?x===w||i(x,w,n,r,o):_)){m=!1;break}v||(v=f=="constructor")}if(m&&!v){var C=e.constructor,y=t.constructor;C!=y&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof y=="function"&&y instanceof y)&&(m=!1)}return o.delete(e),o.delete(t),m}var YQ=qQ,GQ=na,KQ=Xr,ZQ=GQ(KQ,"DataView"),XQ=ZQ,QQ=na,JQ=Xr,eJ=QQ(JQ,"Promise"),tJ=eJ,nJ=na,rJ=Xr,iJ=nJ(rJ,"Set"),sk=iJ,oJ=na,aJ=Xr,sJ=oJ(aJ,"WeakMap"),cJ=sJ,Hg=XQ,qg=B0,Yg=tJ,Gg=sk,Kg=cJ,ck=Si,_s=mT,t2="[object Map]",lJ="[object Object]",n2="[object Promise]",r2="[object Set]",i2="[object WeakMap]",o2="[object DataView]",uJ=_s(Hg),dJ=_s(qg),fJ=_s(Yg),hJ=_s(Gg),pJ=_s(Kg),xo=ck;(Hg&&xo(new Hg(new ArrayBuffer(1)))!=o2||qg&&xo(new qg)!=t2||Yg&&xo(Yg.resolve())!=n2||Gg&&xo(new Gg)!=r2||Kg&&xo(new Kg)!=i2)&&(xo=function(e){var t=ck(e),n=t==lJ?e.constructor:void 0,r=n?_s(n):"";if(r)switch(r){case uJ:return o2;case dJ:return t2;case fJ:return n2;case hJ:return r2;case pJ:return i2}return t});var Gh=xo,am=nh,mJ=nk,gJ=mQ,vJ=YQ,a2=Gh,s2=Kn,c2=ih,bJ=K0,yJ=1,l2="[object Arguments]",u2="[object Array]",Su="[object Object]",xJ=Object.prototype,d2=xJ.hasOwnProperty;function wJ(e,t,n,r,i,o){var a=s2(e),s=s2(t),c=a?u2:a2(e),l=s?u2:a2(t);c=c==l2?Su:c,l=l==l2?Su:l;var u=c==Su,d=l==Su,f=c==l;if(f&&c2(e)){if(!c2(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new am),a||bJ(e)?mJ(e,t,n,r,i,o):gJ(e,t,c,n,r,i,o);if(!(n&yJ)){var p=u&&d2.call(e,"__wrapped__"),g=d&&d2.call(t,"__wrapped__");if(p||g){var m=p?e.value():e,v=g?t.value():t;return o||(o=new am),i(m,v,n,r,o)}}return f?(o||(o=new am),vJ(e,t,n,r,i,o)):!1}var _J=wJ,CJ=_J,f2=yr;function lk(e,t,n,r,i){return e===t?!0:e==null||t==null||!f2(e)&&!f2(t)?e!==e&&t!==t:CJ(e,t,n,r,lk,i)}var Db=lk,$J=Db;function SJ(e,t){return $J(e,t)}var EJ=SJ;const TJ=rn(EJ);var kJ={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 dr(){return dr=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},dr.apply(this,arguments)}function Zg(e,t){return Zg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Zg(e,t)}function Kh(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var OJ=["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"],MJ=function(e,t){return dr({},t,e)},RJ=function(e,t){var n=lH({},e,t);return OJ.forEach(function(r){lc(n,r,MJ(Vr(n,r),n.text))}),n},uk=h.createContext(),dk=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,o=i===void 0?"default":i,a=h.useMemo(function(){var s=Bq(o)?D0[o]:o;return{animate:r,config:s}},[r,o]);return b.jsx(uk.Provider,{value:a,children:t})},h2={animate:K.bool,motionConfig:K.oneOfType([K.oneOf(Object.keys(D0)),K.shape({mass:K.number,tension:K.number,friction:K.number,clamp:K.bool,precision:K.number,velocity:K.number,duration:K.number,easing:K.func})])};dk.propTypes={children:K.node.isRequired,animate:h2.animate,config:h2.motionConfig};var Fn=function(){return h.useContext(uk)},Ib=function(e){var t=Fn(),n=t.animate,r=t.config,i=function(s){var c=h.useRef();return h.useEffect(function(){c.current=s},[s]),c.current}(e),o=h.useMemo(function(){return UT(i,e)},[i,e]),a=Zr({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return to(a,o)},AJ={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:Pe(vh),PRGn:Pe(bh),PiYG:Pe(yh),PuOr:Pe(xh),RdBu:Pe(wh),RdGy:Pe(_h),RdYlBu:Pe(Ch),RdYlGn:Pe($h),spectral:Pe(Sh),blues:Pe(Lh),greens:Pe(Fh),greys:Pe(Bh),oranges:Pe(Uh),purples:Pe(zh),reds:Pe(Wh),BuGn:Pe(Eh),BuPu:Pe(Th),GnBu:Pe(kh),OrRd:Pe(Oh),PuBuGn:Pe(Mh),PuBu:Pe(Rh),PuRd:Pe(Ah),RdPu:Pe(jh),YlGnBu:Pe(Nh),YlGn:Pe(Dh),YlOrBr:Pe(Ih),YlOrRd:Pe(Ph)},jJ=Object.keys(AJ);Pe(vh),Pe(bh),Pe(yh),Pe(xh),Pe(wh),Pe(_h),Pe(Ch),Pe($h),Pe(Sh),Pe(Lh),Pe(Fh),Pe(Bh),Pe(Uh),Pe(zh),Pe(Wh),Pe(Eh),Pe(Th),Pe(kh),Pe(Oh),Pe(Mh),Pe(Rh),Pe(Ah),Pe(jh),Pe(Nh),Pe(Dh),Pe(Ih),Pe(Ph);K.oneOfType([K.oneOf(jJ),K.func,K.arrayOf(K.string)]);var Xg={basis:AZ,basisClosed:jZ,basisOpen:NZ,bundle:DZ,cardinal:IZ,cardinalClosed:PZ,cardinalOpen:LZ,catmullRom:FZ,catmullRomClosed:BZ,catmullRomOpen:zZ,linear:Eb,linearClosed:WZ,monotoneX:UZ,monotoneY:VZ,natural:HZ,step:qZ,stepAfter:GZ,stepBefore:YZ},Pb=Object.keys(Xg);Pb.filter(function(e){return e.endsWith("Closed")});P4(Pb,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");P4(Pb,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var fk=function(e){if(!Xg[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return Xg[e]};K.shape({top:K.number,right:K.number,bottom:K.number,left:K.number}).isRequired;var NJ=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];K.oneOf(NJ);ko(_b);var hk={top:0,right:0,bottom:0,left:0},Bl=function(e,t,n){return n===void 0&&(n={}),h.useMemo(function(){var r=dr({},hk,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])},pk=function(){var e=h.useRef(null),t=h.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=h.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(o){var a=o[0];return r(a.contentRect)})})[0];return h.useEffect(function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}},[]),[e,n]},DJ=function(e){return h.useMemo(function(){return RJ(kJ,e)},[e])},IJ=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?gh(e.slice("5")):Ll(e):function(t){return""+t}},Qa=function(e){return h.useMemo(function(){return IJ(e)},[e])},mk=h.createContext(),PJ={},gk=function(e){var t=e.theme,n=t===void 0?PJ:t,r=e.children,i=DJ(n);return b.jsx(mk.Provider,{value:i,children:r})};gk.propTypes={children:K.node.isRequired,theme:K.object};var Ft=function(){return h.useContext(mk)},LJ=["outlineWidth","outlineColor","outlineOpacity"],Lb=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,Kh(e,LJ)},vk=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?h.cloneElement(r,{},t):t};vk.propTypes={children:K.node.isRequired,condition:K.bool.isRequired,wrapper:K.element.isRequired};var FJ={position:"relative"},zl=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,o=e.isInteractive,a=o===void 0||o,s=e.animate,c=e.motionConfig,l=h.useRef(null);return b.jsx(gk,{theme:n,children:b.jsx(dk,{animate:s,config:c,children:b.jsx(HL,{container:l,children:b.jsxs(vk,{condition:i,wrapper:b.jsx("div",{style:FJ,ref:l}),children:[t,a&&b.jsx(VL,{})]})})})})};zl.propTypes={children:K.element.isRequired,isInteractive:K.bool,renderWrapper:K.bool,theme:K.object,animate:K.bool,motionConfig:K.string};K.func.isRequired,K.bool,K.bool,K.object.isRequired,K.bool.isRequired,K.string;var Cs=function(e){var t=e.children,n=pk(),r=n[0],i=n[1],o=i.width>0&&i.height>0;return b.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:o&&t({width:i.width,height:i.height})})};Cs.propTypes={children:K.func.isRequired};var BJ=["id","colors"],bk=function(e){var t=e.id,n=e.colors,r=Kh(e,BJ);return b.jsx("linearGradient",dr({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(i){var o=i.offset,a=i.color,s=i.opacity;return b.jsx("stop",{offset:o+"%",stopColor:a,stopOpacity:s!==void 0?s:1},o)})}))};bk.propTypes={id:K.string.isRequired,colors:K.arrayOf(K.shape({offset:K.number.isRequired,color:K.string.isRequired,opacity:K.number})).isRequired,gradientTransform:K.string};var yk={linearGradient:bk},Ks={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Qg=h.memo(function(e){var t=e.id,n=e.background,r=n===void 0?Ks.background:n,i=e.color,o=i===void 0?Ks.color:i,a=e.size,s=a===void 0?Ks.size:a,c=e.padding,l=c===void 0?Ks.padding:c,u=e.stagger,d=u===void 0?Ks.stagger:u,f=s+l,p=s/2,g=l/2;return d===!0&&(f=2*s+2*l),b.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[b.jsx("rect",{width:f,height:f,fill:r}),b.jsx("circle",{cx:g+p,cy:g+p,r:p,fill:o}),d&&b.jsx("circle",{cx:1.5*l+s+p,cy:1.5*l+s+p,r:p,fill:o})]})});Qg.displayName="PatternDots",Qg.propTypes={id:K.string.isRequired,color:K.string.isRequired,background:K.string.isRequired,size:K.number.isRequired,padding:K.number.isRequired,stagger:K.bool.isRequired};var fr=function(e){return e*Math.PI/180},Zh=function(e){return 180*e/Math.PI},zJ=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},Po=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},WJ=function(e){var t=e%360;return t<0&&(t+=360),t},UJ={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"}}},Zs={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},Jg=h.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Zs.spacing:n,i=e.rotation,o=i===void 0?Zs.rotation:i,a=e.background,s=a===void 0?Zs.background:a,c=e.color,l=c===void 0?Zs.color:c,u=e.lineWidth,d=u===void 0?Zs.lineWidth:u,f=Math.round(o)%360,p=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var g,m=p,v=p;return f===0?g=`
256
- M 0 0 L `+m+` 0
257
- M 0 `+v+" L "+m+" "+v+`
258
- `:f===90?g=`
259
- M 0 0 L 0 `+v+`
260
- M `+m+" 0 L "+m+" "+v+`
261
- `:(m=Math.abs(p/Math.sin(fr(f))),v=p/Math.sin(fr(90-f)),g=f>0?`
262
- M 0 `+-v+" L "+2*m+" "+v+`
263
- M `+-m+" "+-v+" L "+m+" "+v+`
264
- M `+-m+" 0 L "+m+" "+2*v+`
265
- `:`
266
- M `+-m+" "+v+" L "+m+" "+-v+`
267
- M `+-m+" "+2*v+" L "+2*m+" "+-v+`
268
- M 0 `+2*v+" L "+2*m+` 0
269
- `),b.jsxs("pattern",{id:t,width:m,height:v,patternUnits:"userSpaceOnUse",children:[b.jsx("rect",{width:m,height:v,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),b.jsx("path",{d:g,strokeWidth:d,stroke:l,strokeLinecap:"square"})]})});Jg.displayName="PatternLines",Jg.propTypes={id:K.string.isRequired,spacing:K.number.isRequired,rotation:K.number.isRequired,background:K.string.isRequired,color:K.string.isRequired,lineWidth:K.number.isRequired};var Xs={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},ev=h.memo(function(e){var t=e.id,n=e.color,r=n===void 0?Xs.color:n,i=e.background,o=i===void 0?Xs.background:i,a=e.size,s=a===void 0?Xs.size:a,c=e.padding,l=c===void 0?Xs.padding:c,u=e.stagger,d=u===void 0?Xs.stagger:u,f=s+l,p=l/2;return d===!0&&(f=2*s+2*l),b.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[b.jsx("rect",{width:f,height:f,fill:o}),b.jsx("rect",{x:p,y:p,width:s,height:s,fill:r}),d&&b.jsx("rect",{x:1.5*l+s,y:1.5*l+s,width:s,height:s,fill:r})]})});ev.displayName="PatternSquares",ev.propTypes={id:K.string.isRequired,color:K.string.isRequired,background:K.string.isRequired,size:K.number.isRequired,padding:K.number.isRequired,stagger:K.bool.isRequired};var xk={patternDots:Qg,patternLines:Jg,patternSquares:ev},VJ=["type"],tv=dr({},yk,xk),wk=function(e){var t=e.defs;return!t||t.length<1?null:b.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,i=Kh(n,VJ);return tv[r]?h.createElement(tv[r],dr({key:i.id},i)):null})})};wk.propTypes={defs:K.arrayOf(K.shape({type:K.oneOf(Object.keys(tv)).isRequired,id:K.string.isRequired}))};var HJ=h.memo(wk),Xh=function(e){var t=e.width,n=e.height,r=e.margin,i=e.defs,o=e.children,a=e.role,s=e.ariaLabel,c=e.ariaLabelledBy,l=e.ariaDescribedBy,u=e.isFocusable,d=Ft();return b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,role:a,"aria-label":s,"aria-labelledby":c,"aria-describedby":l,focusable:u,tabIndex:u?0:void 0,children:[b.jsx(HJ,{defs:i}),b.jsx("rect",{width:t,height:n,fill:d.background}),b.jsx("g",{transform:"translate("+r.left+","+r.top+")",children:o})]})};Xh.propTypes={width:K.number.isRequired,height:K.number.isRequired,margin:K.shape({top:K.number.isRequired,left:K.number.isRequired}).isRequired,defs:K.array,children:K.oneOfType([K.arrayOf(K.node),K.node]).isRequired,role:K.string,isFocusable:K.bool,ariaLabel:K.string,ariaLabelledBy:K.string,ariaDescribedBy:K.string};var _k=function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return b.jsx("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})};_k.propTypes={size:K.number.isRequired,color:K.string.isRequired,borderWidth:K.number.isRequired,borderColor:K.string.isRequired};var qJ=h.memo(_k),Ck=function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?qJ:r,o=e.size,a=e.datum,s=e.color,c=e.borderWidth,l=e.borderColor,u=e.label,d=e.labelTextAnchor,f=d===void 0?"middle":d,p=e.labelYOffset,g=p===void 0?-12:p,m=Ft(),v=Fn(),x=v.animate,w=v.config,_=Zr({transform:"translate("+t+", "+n+")",config:w,immediate:!x});return b.jsxs(Lt.g,{transform:_.transform,style:{pointerEvents:"none"},children:[h.createElement(i,{size:o,color:s,datum:a,borderWidth:c,borderColor:l}),u&&b.jsx("text",{textAnchor:f,y:g,style:Lb(m.dots.text),children:u})]})};Ck.propTypes={x:K.number.isRequired,y:K.number.isRequired,datum:K.object.isRequired,size:K.number.isRequired,color:K.string.isRequired,borderWidth:K.number.isRequired,borderColor:K.string.isRequired,symbol:K.oneOfType([K.func,K.object]),label:K.oneOfType([K.string,K.number]),labelTextAnchor:K.oneOf(["start","middle","end"]),labelYOffset:K.number};var YJ=h.memo(Ck),$k=function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,o=e.value,a=e.lineStyle,s=e.textStyle,c=e.legend,l=e.legendPosition,u=l===void 0?"top-right":l,d=e.legendOffsetX,f=d===void 0?14:d,p=e.legendOffsetY,g=p===void 0?14:p,m=e.legendOrientation,v=m===void 0?"horizontal":m,x=Ft(),w=0,_=0,C=0,y=0;r==="y"?(C=i(o),_=t):(w=i(o),y=n);var $=null;if(c){var E=function(k){var T=k.axis,O=k.width,S=k.height,M=k.position,A=k.offsetX,j=k.offsetY,P=k.orientation,I=0,L=0,V=P==="vertical"?-90:0,z="start";if(T==="x")switch(M){case"top-left":I=-A,L=j,z="end";break;case"top":L=-j,z=P==="horizontal"?"middle":"start";break;case"top-right":I=A,L=j,z=P==="horizontal"?"start":"end";break;case"right":I=A,L=S/2,z=P==="horizontal"?"start":"middle";break;case"bottom-right":I=A,L=S-j,z="start";break;case"bottom":L=S+j,z=P==="horizontal"?"middle":"end";break;case"bottom-left":L=S-j,I=-A,z=P==="horizontal"?"end":"start";break;case"left":I=-A,L=S/2,z=P==="horizontal"?"end":"middle"}else switch(M){case"top-left":I=A,L=-j,z="start";break;case"top":I=O/2,L=-j,z=P==="horizontal"?"middle":"start";break;case"top-right":I=O-A,L=-j,z=P==="horizontal"?"end":"start";break;case"right":I=O+A,z=P==="horizontal"?"start":"middle";break;case"bottom-right":I=O-A,L=j,z="end";break;case"bottom":I=O/2,L=j,z=P==="horizontal"?"middle":"end";break;case"bottom-left":I=A,L=j,z=P==="horizontal"?"start":"end";break;case"left":I=-A,z=P==="horizontal"?"end":"middle"}return{x:I,y:L,rotation:V,textAnchor:z}}({axis:r,width:t,height:n,position:u,offsetX:f,offsetY:g,orientation:v});$=b.jsx("text",{transform:"translate("+E.x+", "+E.y+") rotate("+E.rotation+")",textAnchor:E.textAnchor,dominantBaseline:"central",style:s,children:c})}return b.jsxs("g",{transform:"translate("+w+", "+C+")",children:[b.jsx("line",{x1:0,x2:_,y1:0,y2:y,stroke:x.markers.lineColor,strokeWidth:x.markers.lineStrokeWidth,style:a}),$]})};$k.propTypes={width:K.number.isRequired,height:K.number.isRequired,axis:K.oneOf(["x","y"]).isRequired,scale:K.func.isRequired,value:K.oneOfType([K.number,K.string,K.instanceOf(Date)]).isRequired,lineStyle:K.object,textStyle:K.object,legend:K.string,legendPosition:K.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:K.number.isRequired,legendOffsetY:K.number.isRequired,legendOrientation:K.oneOf(["horizontal","vertical"]).isRequired};var GJ=h.memo($k),Sk=function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,o=e.yScale;return t&&t.length!==0?t.map(function(a,s){return b.jsx(GJ,dr({},a,{width:n,height:r,scale:a.axis==="y"?o:i}),s)}):null};Sk.propTypes={width:K.number.isRequired,height:K.number.isRequired,xScale:K.func.isRequired,yScale:K.func.isRequired,markers:K.arrayOf(K.shape({axis:K.oneOf(["x","y"]).isRequired,value:K.oneOfType([K.number,K.string,K.instanceOf(Date)]).isRequired,lineStyle:K.object,textStyle:K.object}))};var Ek=h.memo(Sk),KJ=["theme","renderWrapper","animate","motionConfig"],Tk=function(e){return function(t){var n,r;function i(){return t.apply(this,arguments)||this}return r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,Zg(n,r),i.prototype.render=function(){var o=this.props,a=o.theme,s=o.renderWrapper,c=o.animate,l=o.motionConfig,u=Kh(o,KJ);return b.jsx(zl,{theme:a,renderWrapper:s,isInteractive:u.isInteractive,animate:c,motionConfig:l,children:b.jsx(e,dr({},u))})},i}(h.Component)},ZJ=function(e,t){var n=F0(e)?e:function(r){return Vr(r,e)};return n},kk=function(e){return F0(e)?e:function(t){return Vr(t,e)}},Lo=function(e){return h.useMemo(function(){return kk(e)},[e])},XJ=function(e,t,n,r){var i=n-e,o=r-t;return i*=i,o*=o,Math.sqrt(i+o)},Ok=function(e,t,n,r,i,o){return e<=i&&i<=e+n&&t<=o&&o<=t+r},bc=function(e,t){var n,r="touches"in t?t.touches[0]:t,i=r.clientX,o=r.clientY,a=e.getBoundingClientRect(),s=(n=e.getBBox!==void 0?e.getBBox():{width:e.offsetWidth||0,height:e.offsetHeight||0}).width===a.width?1:n.width/a.width;return[(i-a.left)*s,(o-a.top)*s]},QJ=Object.keys(yk),JJ=Object.keys(xk),eee=function(e,t,n){if(e==="*")return!0;if(F0(e))return e(t);if(G0(e)){var r=n?Vr(t,n):t;return TJ(FX(r,Object.keys(e)),e)}return!1},Fb=function(e,t,n,r){var i=r===void 0?{}:r,o=i.dataKey,a=i.colorKey,s=a===void 0?"color":a,c=i.targetKey,l=c===void 0?"fill":c,u=[],d={};return e.length&&t.length&&(u=[].concat(e),t.forEach(function(f){for(var p=function(){var m=n[g],v=m.id,x=m.match;if(eee(x,f,o)){var w=e.find(function(O){return O.id===v});if(w){if(JJ.includes(w.type))if(w.background==="inherit"||w.color==="inherit"){var _=Vr(f,s),C=w.background,y=w.color,$=v;w.background==="inherit"&&($=$+".bg."+_,C=_),w.color==="inherit"&&($=$+".fg."+_,y=_),lc(f,l,"url(#"+$+")"),d[$]||(u.push(dr({},w,{id:$,background:C,color:y})),d[$]=1)}else lc(f,l,"url(#"+v+")");else if(QJ.includes(w.type))if(w.colors.map(function(O){return O.color}).includes("inherit")){var E=Vr(f,s),k=v,T=dr({},w,{colors:w.colors.map(function(O,S){return O.color!=="inherit"?O:(k=k+"."+S+"."+E,dr({},O,{color:O.color==="inherit"?E:O.color}))})});T.id=k,lc(f,l,"url(#"+k+")"),d[k]||(u.push(T),d[k]=1)}else lc(f,l,"url(#"+v+")")}return"break"}},g=0;g<n.length&&p()!=="break";g++);})),u};function Gd(){return Gd=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},Gd.apply(this,arguments)}function p2(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 tee(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(i,o){if(i){if(typeof i=="string")return p2(i,o);var a=Object.prototype.toString.call(i).slice(8,-1);return a==="Object"&&i.constructor&&(a=i.constructor.name),a==="Map"||a==="Set"?Array.from(i):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?p2(i,o):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.
270
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Mk={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:T4,accent:k4,dark2:O4,paired:M4,pastel1:R4,pastel2:A4,set1:j4,set2:N4,set3:_b,tableau10:qG},nee=Object.keys(Mk),Rk={brown_blueGreen:vh,purpleRed_green:bh,pink_yellowGreen:yh,purple_orange:xh,red_blue:wh,red_grey:_h,red_yellow_blue:Ch,red_yellow_green:$h,spectral:Sh},ree=Object.keys(Rk),iee={brown_blueGreen:YG,purpleRed_green:GG,pink_yellowGreen:KG,purple_orange:ZG,red_blue:XG,red_grey:QG,red_yellow_blue:JG,red_yellow_green:eK,spectral:tK},Ak={blues:Lh,greens:Fh,greys:Bh,oranges:Uh,purples:zh,reds:Wh,blue_green:Eh,blue_purple:Th,green_blue:kh,orange_red:Oh,purple_blue_green:Mh,purple_blue:Rh,purple_red:Ah,red_purple:jh,yellow_green_blue:Nh,yellow_green:Dh,yellow_orange_brown:Ih,yellow_orange_red:Ph},oee=Object.keys(Ak),aee={blues:pK,greens:mK,greys:gK,oranges:yK,purples:vK,reds:bK,turbo:kK,viridis:OK,inferno:RK,magma:MK,plasma:AK,cividis:xK,warm:_K,cool:CK,cubehelixDefault:wK,blue_green:nK,blue_purple:rK,green_blue:iK,orange_red:oK,purple_blue_green:aK,purple_blue:sK,purple_red:cK,red_purple:lK,yellow_green_blue:uK,yellow_green:dK,yellow_orange_brown:fK,yellow_orange_red:hK},sm=Gd({},Mk,Rk,Ak),see=function(e){return nee.includes(e)},cee=function(e){return ree.includes(e)},lee=function(e){return oee.includes(e)},uee={rainbow:$K,sinebow:TK};Gd({},iee,aee,uee);var dee=function(e,t){if(typeof e=="function")return e;if(G0(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=Vr(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 Vr(c,e.from)};if(Array.isArray(e.modifiers)){for(var i,o=[],a=function(){var c=i.value,l=c[0],u=c[1];if(l==="brighter")o.push(function(d){return d.brighter(u)});else if(l==="darker")o.push(function(d){return d.darker(u)});else{if(l!=="opacity")throw new Error("Invalid color modifier: '"+l+"', must be one of: 'brighter', 'darker', 'opacity'");o.push(function(d){return d.opacity=u,d})}},s=tee(e.modifiers);!(i=s()).done;)a();return o.length===0?r:function(c){return o.reduce(function(l,u){return u(l)},Za(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}},qr=function(e,t){return h.useMemo(function(){return dee(e,t)},[e,t])};K.oneOfType([K.string,K.func,K.shape({theme:K.string.isRequired}),K.shape({from:K.string.isRequired,modifiers:K.arrayOf(K.array)})]);var fee=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(d){return Vr(d,t)};if(Array.isArray(e)){var r=ko(e),i=function(d){return r(n(d))};return i.scale=r,i}if(G0(e)){if(function(d){return d.datum!==void 0}(e))return function(d){return Vr(d,e.datum)};if(function(d){return d.scheme!==void 0}(e)){if(see(e.scheme)){var o=ko(sm[e.scheme]),a=function(d){return o(n(d))};return a.scale=o,a}if(cee(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=ko(sm[e.scheme][e.size||11]),c=function(d){return s(n(d))};return c.scale=s,c}if(lee(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var l=ko(sm[e.scheme][e.size||9]),u=function(d){return l(n(d))};return u.scale=l,u}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},Bb=function(e,t){return h.useMemo(function(){return fee(e,t)},[e,t])};function Zt(){return Zt=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},Zt.apply(this,arguments)}var hee={pointerEvents:"none"},pee=function(e){var t=e.label,n=e.style,r=Ft();return b.jsx(Lt.g,{transform:n.transform,opacity:n.progress,style:hee,children:b.jsx(Lt.text,{textAnchor:"middle",dominantBaseline:"central",style:Zt({},r.labels.text,{fill:n.textColor}),children:t})})},jk=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},mee=function(e,t){return e.filter(function(n){return Math.abs(Zh(n.arc.endAngle-n.arc.startAngle))>=t})},gee={startAngle:{enter:function(e){return Zt({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return Zt({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Zt({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Zt({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return Zt({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return Zt({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return Zt({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Zt({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Zt({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Zt({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return Zt({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return Zt({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return Zt({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Zt({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return Zt({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return Zt({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},Nk=function(e,t){return h.useMemo(function(){var n=gee[e];return{enter:function(r){return Zt({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return Zt({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return Zt({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},vee=function(e,t){var n=zJ(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return Po(n,r)},bee=function(e){return function(t,n,r,i){return to([t,n,r,i],function(o,a,s,c){var l=vee({startAngle:o,endAngle:a,innerRadius:s,outerRadius:c},e);return"translate("+l.x+","+l.y+")"})}},yee=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var i=Fn(),o=i.animate,a=i.config,s=Nk(n,r);return{transition:ea(e,{keys:function(c){return c.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:a,immediate:!o}),interpolate:bee(t)}},xee=function(e){var t=e.center,n=e.data,r=e.transitionMode,i=e.label,o=e.radiusOffset,a=e.skipAngle,s=e.textColor,c=e.component,l=c===void 0?pee:c,u=Lo(i),d=Ft(),f=qr(s,d),p=h.useMemo(function(){return n.filter(function(w){return Math.abs(Zh(w.arc.endAngle-w.arc.startAngle))>=a})},[n,a]),g=yee(p,o,r),m=g.transition,v=g.interpolate,x=l;return b.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:m(function(w,_){return h.createElement(x,{key:_.id,datum:_,label:u(_),style:Zt({},w,{transform:v(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius),textColor:f(_)})})})})},wee=function(e){var t=e.label,n=e.style,r=Ft();return b.jsxs(Lt.g,{opacity:n.opacity,children:[b.jsx(Lt.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),b.jsx(Lt.text,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Zt({},r.labels.text,{fill:n.textColor}),children:t})]})},_ee=function(e){var t=jk(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},Dk=function(e,t,n,r){var i,o,a=jk(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=Po(a,e.outerRadius+t),c=Po(a,e.outerRadius+t+n);return a<Math.PI/2||a>1.5*Math.PI?(i="after",o={x:c.x+r,y:c.y}):(i="before",o={x:c.x-r,y:c.y}),{side:i,points:[s,c,o]}},Cee=Tb().x(function(e){return e.x}).y(function(e){return e.y}),$ee=function(e,t,n,r,i,o,a){return to([e,t,n,r,i,o,a],function(s,c,l,u,d,f,p){var g=Dk({startAngle:s,endAngle:c,innerRadius:l,outerRadius:u},d,f,p).points;return Cee(g)})},See=function(e,t,n,r){return to([e,t,n,r],function(i,o,a,s){return _ee({startAngle:i,endAngle:o,innerRadius:a,outerRadius:s})})},Eee=function(e,t,n,r,i,o,a,s){return to([e,t,n,r,i,o,a,s],function(c,l,u,d,f,p,g,m){var v=Dk({startAngle:c,endAngle:l,innerRadius:u,outerRadius:d},f,p,g),x=v.points,w=v.side,_=x[2];return w==="before"?_.x-=m:_.x+=m,"translate("+_.x+","+_.y+")"})},Tee=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,i=e.diagonalLength,o=e.straightLength,a=e.skipAngle,s=a===void 0?0:a,c=e.textOffset,l=e.linkColor,u=e.textColor,d=Fn(),f=d.animate,p=d.config,g=Ft(),m=qr(l,g),v=qr(u,g),x=function(_,C){return h.useMemo(function(){return mee(_,C)},[_,C])}(t,s),w=function(_){var C=_.offset,y=_.diagonalLength,$=_.straightLength,E=_.textOffset,k=_.getLinkColor,T=_.getTextColor;return h.useMemo(function(){return{enter:function(O){return{startAngle:O.arc.startAngle,endAngle:O.arc.endAngle,innerRadius:O.arc.innerRadius,outerRadius:O.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:E,linkColor:k(O),textColor:T(O),opacity:0}},update:function(O){return{startAngle:O.arc.startAngle,endAngle:O.arc.endAngle,innerRadius:O.arc.innerRadius,outerRadius:O.arc.outerRadius,offset:C,diagonalLength:y,straightLength:$,textOffset:E,linkColor:k(O),textColor:T(O),opacity:1}},leave:function(O){return{startAngle:O.arc.startAngle,endAngle:O.arc.endAngle,innerRadius:O.arc.innerRadius,outerRadius:O.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:E,linkColor:k(O),textColor:T(O),opacity:0}}}},[y,$,E,k,T,C])}({offset:r,diagonalLength:i,straightLength:o,textOffset:c,getLinkColor:m,getTextColor:v});return{transition:ea(x,{keys:function(_){return _.id},initial:w.update,from:w.enter,enter:w.update,update:w.update,leave:w.leave,config:p,immediate:!f}),interpolateLink:$ee,interpolateTextAnchor:See,interpolateTextPosition:Eee}},kee=function(e){var t=e.center,n=e.data,r=e.label,i=e.skipAngle,o=e.offset,a=e.diagonalLength,s=e.straightLength,c=e.strokeWidth,l=e.textOffset,u=e.textColor,d=e.linkColor,f=e.component,p=f===void 0?wee:f,g=Lo(r),m=Tee({data:n,skipAngle:i,offset:o,diagonalLength:a,straightLength:s,textOffset:l,linkColor:d,textColor:u}),v=m.transition,x=m.interpolateLink,w=m.interpolateTextAnchor,_=m.interpolateTextPosition,C=p;return b.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(y,$){return h.createElement(C,{key:$.id,datum:$,label:g($),style:Zt({},y,{thickness:c,path:x(y.startAngle,y.endAngle,y.innerRadius,y.outerRadius,y.offset,y.diagonalLength,y.straightLength),textAnchor:w(y.startAngle,y.endAngle,y.innerRadius,y.outerRadius),textPosition:_(y.startAngle,y.endAngle,y.innerRadius,y.outerRadius,y.offset,y.diagonalLength,y.straightLength,y.textOffset)})})})})},Oee=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,o=e.onMouseMove,a=e.onMouseLeave,s=h.useCallback(function(d){return r==null?void 0:r(t,d)},[r,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]),u=h.useCallback(function(d){return a==null?void 0:a(t,d)},[a,t]);return b.jsx(Lt.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?s:void 0,onMouseEnter:i?c:void 0,onMouseMove:o?l:void 0,onMouseLeave:a?u:void 0})},Mee=function(e,t,n,r,i){return to([e,t,n,r],function(o,a,s,c){return i({startAngle:o,endAngle:a,innerRadius:Math.max(0,s),outerRadius:Math.max(0,c)})})},Ree=function(e,t,n){t===void 0&&(t="innerRadius");var r=Fn(),i=r.animate,o=r.config,a=Nk(t,n);return{transition:ea(e,{keys:function(s){return s.id},initial:a.update,from:a.enter,enter:a.update,update:a.update,leave:a.leave,config:o,immediate:!i}),interpolate:Mee}},Aee=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,a=e.onClick,s=e.onMouseEnter,c=e.onMouseMove,l=e.onMouseLeave,u=e.transitionMode,d=e.component,f=d===void 0?Oee:d,p=Ft(),g=qr(o,p),m=Ree(n,u,{enter:function(_){return{opacity:0,color:_.color,borderColor:g(_)}},update:function(_){return{opacity:1,color:_.color,borderColor:g(_)}},leave:function(_){return{opacity:0,color:_.color,borderColor:g(_)}}}),v=m.transition,x=m.interpolate,w=f;return b.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(_,C){return h.createElement(w,{key:C.id,datum:C,style:Zt({},_,{borderWidth:i,path:x(_.startAngle,_.endAngle,_.innerRadius,_.outerRadius,r)}),onClick:a,onMouseEnter:s,onMouseMove:c,onMouseLeave:l})})})},jee=function(e,t,n,r,i,o){o===void 0&&(o=!0);var a=[],s=Po(fr(r),n);a.push([s.x,s.y]);var c=Po(fr(i),n);a.push([c.x,c.y]);for(var l=Math.round(Math.min(r,i));l<=Math.round(Math.max(r,i));l++)if(l%90==0){var u=Po(fr(l),n);a.push([u.x,u.y])}a=a.map(function(v){var x=v[0],w=v[1];return[e+x,t+w]}),o&&a.push([e,t]);var d=a.map(function(v){return v[0]}),f=a.map(function(v){return v[1]}),p=Math.min.apply(Math,d),g=Math.max.apply(Math,d),m=Math.min.apply(Math,f);return{points:a,x:p,y:m,width:g-p,height:Math.max.apply(Math,f)-m}},Nee=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,i=t.padAngle,o=i===void 0?0:i;return h.useMemo(function(){return TZ().innerRadius(function(a){return a.innerRadius}).outerRadius(function(a){return a.outerRadius}).cornerRadius(r).padAngle(o)},[r,o])},Dee=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return b.jsx("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:i,opacity:a,strokeWidth:c,stroke:l===void 0?"transparent":l,style:{pointerEvents:"none"}})},Iee=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return b.jsx("g",{transform:"translate("+t+","+n+")",children:b.jsx("path",{d:`
271
- M`+r/2+` 0
272
- L`+.8*r+" "+r/2+`
273
- L`+r/2+" "+r+`
274
- L`+.2*r+" "+r/2+`
275
- L`+r/2+` 0
276
- `,fill:i,opacity:a,strokeWidth:c,stroke:l===void 0?"transparent":l,style:{pointerEvents:"none"}})})},Pee=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return b.jsx("rect",{x:t,y:n,fill:i,opacity:a,strokeWidth:c,stroke:l===void 0?"transparent":l,width:r,height:r,style:{pointerEvents:"none"}})},Lee=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return b.jsx("g",{transform:"translate("+t+","+n+")",children:b.jsx("path",{d:`
277
- M`+r/2+` 0
278
- L`+r+" "+r+`
279
- L0 `+r+`
280
- L`+r/2+` 0
281
- `,fill:i,opacity:a,strokeWidth:c,stroke:l===void 0?"transparent":l,style:{pointerEvents:"none"}})})};function Mo(){return Mo=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},Mo.apply(this,arguments)}var Fee={top:0,right:0,bottom:0,left:0},zb=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,o=e.itemCount,a=e.itemWidth,s=e.itemHeight;if(typeof i!="number"&&(typeof(t=i)!="object"||Array.isArray(t)||t===null))throw new Error("Invalid property padding, must be one of: number, object");var c=typeof i=="number"?{top:i,right:i,bottom:i,left:i}:Mo({},Fee,i),l=c.left+c.right,u=c.top+c.bottom,d=a+l,f=s+u,p=(o-1)*r;return n==="row"?d=a*o+p+l:n==="column"&&(f=s*o+p+u),{width:d,height:f,padding:c}},Ik=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,o=e.containerHeight,a=e.width,s=e.height,c=n,l=r;switch(t){case"top":c+=(i-a)/2;break;case"top-right":c+=i-a;break;case"right":c+=i-a,l+=(o-s)/2;break;case"bottom-right":c+=i-a,l+=o-s;break;case"bottom":c+=(i-a)/2,l+=o-s;break;case"bottom-left":l+=o-s;break;case"left":l+=(o-s)/2;break;case"center":c+=(i-a)/2,l+=(o-s)/2}return{x:c,y:l}},Pk=function(e){var t,n,r,i,o,a,s=e.direction,c=e.justify,l=e.symbolSize,u=e.symbolSpacing,d=e.width,f=e.height;switch(s){case"left-to-right":t=0,n=(f-l)/2,i=f/2,a="central",c?(r=d,o="end"):(r=l+u,o="start");break;case"right-to-left":t=d-l,n=(f-l)/2,i=f/2,a="central",c?(r=0,o="start"):(r=d-l-u,o="end");break;case"top-to-bottom":t=(d-l)/2,n=0,r=d/2,o="middle",c?(i=f,a="alphabetic"):(i=l+u,a="text-before-edge");break;case"bottom-to-top":t=(d-l)/2,n=f-l,r=d/2,o="middle",c?(i=0,a="text-before-edge"):(i=f-l-u,a="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:o,labelAlignment:a}},Bee={circle:Dee,diamond:Iee,square:Pee,triangle:Lee},zee=function(e){var t,n,r,i,o,a,s,c,l,u,d,f=e.x,p=e.y,g=e.width,m=e.height,v=e.data,x=e.direction,w=x===void 0?"left-to-right":x,_=e.justify,C=_!==void 0&&_,y=e.textColor,$=e.background,E=$===void 0?"transparent":$,k=e.opacity,T=k===void 0?1:k,O=e.symbolShape,S=O===void 0?"square":O,M=e.symbolSize,A=M===void 0?16:M,j=e.symbolSpacing,P=j===void 0?8:j,I=e.symbolBorderWidth,L=I===void 0?0:I,V=e.symbolBorderColor,z=V===void 0?"transparent":V,D=e.onClick,W=e.onMouseEnter,G=e.onMouseLeave,J=e.toggleSerie,Z=e.effects,X=h.useState({}),ee=X[0],ne=X[1],F=Ft(),N=h.useCallback(function(ve){if(Z){var Ee=Z.filter(function(Se){return Se.on==="hover"}).reduce(function(Se,Oe){return Mo({},Se,Oe.style)},{});ne(Ee)}W==null||W(v,ve)},[W,v,Z]),B=h.useCallback(function(ve){if(Z){var Ee=Z.filter(function(Se){return Se.on!=="hover"}).reduce(function(Se,Oe){return Mo({},Se,Oe.style)},{});ne(Ee)}G==null||G(v,ve)},[G,v,Z]),H=Pk({direction:w,justify:C,symbolSize:(t=ee.symbolSize)!=null?t:A,symbolSpacing:P,width:g,height:m}),R=H.symbolX,Y=H.symbolY,Q=H.labelX,te=H.labelY,ue=H.labelAnchor,oe=H.labelAlignment,ae=[D,W,G,J].some(function(ve){return ve!==void 0}),pe=typeof S=="function"?S:Bee[S];return b.jsxs("g",{transform:"translate("+f+","+p+")",style:{opacity:(n=ee.itemOpacity)!=null?n:T},children:[b.jsx("rect",{width:g,height:m,fill:(r=ee.itemBackground)!=null?r:E,style:{cursor:ae?"pointer":"auto"},onClick:function(ve){D==null||D(v,ve),J==null||J(v.id)},onMouseEnter:N,onMouseLeave:B}),ie.createElement(pe,Mo({id:v.id,x:R,y:Y,size:(i=ee.symbolSize)!=null?i:A,fill:(o=(a=v.fill)!=null?a:v.color)!=null?o:"black",borderWidth:(s=ee.symbolBorderWidth)!=null?s:L,borderColor:(c=ee.symbolBorderColor)!=null?c:z},v.hidden?F.legends.hidden.symbol:void 0)),b.jsx("text",{textAnchor:ue,style:Mo({},Lb(F.legends.text),{fill:(l=(u=(d=ee.itemTextColor)!=null?d:y)!=null?u:F.legends.text.fill)!=null?l:"black",dominantBaseline:oe,pointerEvents:"none",userSelect:"none"},v.hidden?F.legends.hidden.text:void 0),x:Q,y:te,children:v.label})]})},Wee=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,o=e.padding,a=o===void 0?0:o,s=e.justify,c=e.effects,l=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=d===void 0?"left-to-right":d,p=e.itemsSpacing,g=p===void 0?0:p,m=e.itemTextColor,v=e.itemBackground,x=v===void 0?"transparent":v,w=e.itemOpacity,_=w===void 0?1:w,C=e.symbolShape,y=e.symbolSize,$=e.symbolSpacing,E=e.symbolBorderWidth,k=e.symbolBorderColor,T=e.onClick,O=e.onMouseEnter,S=e.onMouseLeave,M=e.toggleSerie,A=zb({itemCount:t.length,itemWidth:l,itemHeight:u,itemsSpacing:g,direction:i,padding:a}).padding,j=i==="row"?l+g:0,P=i==="column"?u+g:0;return b.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(I,L){return b.jsx(zee,{data:I,x:L*j+A.left,y:L*P+A.top,width:l,height:u,direction:f,justify:s,effects:c,textColor:m,background:x,opacity:_,symbolShape:C,symbolSize:y,symbolSpacing:$,symbolBorderWidth:E,symbolBorderColor:k,onClick:T,onMouseEnter:O,onMouseLeave:S,toggleSerie:M},L)})})},Wb=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,o=i===void 0?0:i,a=e.translateY,s=a===void 0?0:a,c=e.anchor,l=e.direction,u=e.padding,d=u===void 0?0:u,f=e.justify,p=e.itemsSpacing,g=p===void 0?0:p,m=e.itemWidth,v=e.itemHeight,x=e.itemDirection,w=e.itemTextColor,_=e.itemBackground,C=e.itemOpacity,y=e.symbolShape,$=e.symbolSize,E=e.symbolSpacing,k=e.symbolBorderWidth,T=e.symbolBorderColor,O=e.onClick,S=e.onMouseEnter,M=e.onMouseLeave,A=e.toggleSerie,j=e.effects,P=zb({itemCount:t.length,itemsSpacing:g,itemWidth:m,itemHeight:v,direction:l,padding:d}),I=P.width,L=P.height,V=Ik({anchor:c,translateX:o,translateY:s,containerWidth:n,containerHeight:r,width:I,height:L}),z=V.x,D=V.y;return b.jsx(Wee,{data:t,x:z,y:D,direction:l,padding:d,justify:f,effects:j,itemsSpacing:g,itemWidth:m,itemHeight:v,itemDirection:x,itemTextColor:w,itemBackground:_,itemOpacity:C,symbolShape:y,symbolSize:$,symbolSpacing:E,symbolBorderWidth:k,symbolBorderColor:T,onClick:O,onMouseEnter:S,onMouseLeave:M,toggleSerie:typeof A=="boolean"?void 0:A})},Uee={start:"left",middle:"center",end:"right"},Lk=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,o=t.translateX,a=o===void 0?0:o,s=t.translateY,c=s===void 0?0:s,l=t.anchor,u=t.direction,d=t.padding,f=d===void 0?0:d,p=t.justify,g=p!==void 0&&p,m=t.itemsSpacing,v=m===void 0?0:m,x=t.itemWidth,w=t.itemHeight,_=t.itemDirection,C=_===void 0?"left-to-right":_,y=t.itemTextColor,$=t.symbolSize,E=$===void 0?16:$,k=t.symbolSpacing,T=k===void 0?8:k,O=t.theme,S=zb({itemCount:n.length,itemWidth:x,itemHeight:w,itemsSpacing:v,direction:u,padding:f}),M=S.width,A=S.height,j=S.padding,P=Ik({anchor:l,translateX:a,translateY:c,containerWidth:r,containerHeight:i,width:M,height:A}),I=P.x,L=P.y,V=u==="row"?x+v:0,z=u==="column"?w+v:0;e.save(),e.translate(I,L),e.font=O.legends.text.fontSize+"px "+(O.legends.text.fontFamily||"sans-serif"),n.forEach(function(D,W){var G,J,Z=W*V+j.left,X=W*z+j.top,ee=Pk({direction:C,justify:g,symbolSize:E,symbolSpacing:T,width:x,height:w}),ne=ee.symbolX,F=ee.symbolY,N=ee.labelX,B=ee.labelY,H=ee.labelAnchor,R=ee.labelAlignment;e.fillStyle=(G=D.color)!=null?G:"black",e.fillRect(Z+ne,X+F,E,E),e.textAlign=Uee[H],R==="central"&&(e.textBaseline="middle"),e.fillStyle=(J=y??O.legends.text.fill)!=null?J:"black",e.fillText(String(D.label),Z+N,X+B)}),e.restore()};function oo(){return oo=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},oo.apply(this,arguments)}function Fk(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var m2,Vee=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,o=e.toggleSerie;return b.jsx(b.Fragment,{children:r.map(function(a,s){var c;return b.jsx(Wb,oo({},a,{containerWidth:t,containerHeight:n,data:(c=a.data)!=null?c:i,toggleSerie:a.toggleSerie?o:void 0}),s)})})},Ue={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 b.jsx(L0,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(m2=window.devicePixelRatio)!=null?m2:1},Hee=["points"],qee=function(e){var t=e.data,n=e.id,r=n===void 0?Ue.id:n,i=e.value,o=i===void 0?Ue.value:i,a=e.valueFormat,s=e.colors,c=s===void 0?Ue.colors:s,l=Lo(r),u=Lo(o),d=Qa(a),f=Bb(c,"id");return h.useMemo(function(){return t.map(function(p){var g,m=l(p),v=u(p),x={id:m,label:(g=p.label)!=null?g:m,hidden:!1,value:v,formattedValue:d(v),data:p};return oo({},x,{color:f(x)})})},[t,l,u,d,f])},Yee=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,i=e.innerRadius,o=e.outerRadius,a=e.padAngle,s=e.sortByValue,c=e.activeId,l=e.activeInnerRadiusOffset,u=e.activeOuterRadiusOffset,d=e.hiddenIds,f=e.forwardLegendData,p=h.useMemo(function(){var x=RZ().value(function(w){return w.value}).startAngle(fr(n)).endAngle(fr(r)).padAngle(fr(a));return s||x.sortValues(null),x},[n,r,a,s]),g=h.useMemo(function(){var x=t.filter(function(w){return!d.includes(w.id)});return{dataWithArc:p(x).map(function(w){var _=Math.abs(w.endAngle-w.startAngle);return oo({},w.data,{arc:{index:w.index,startAngle:w.startAngle,endAngle:w.endAngle,innerRadius:c===w.data.id?i-l:i,outerRadius:c===w.data.id?o+u:o,thickness:o-i,padAngle:w.padAngle,angle:_,angleDeg:Zh(_)}})}),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,i,l,o,u]),m=g.legendData,v=h.useRef(f);return h.useEffect(function(){typeof v.current=="function"&&v.current(m)},[v,m]),g},Gee=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,i=t!==void 0,o=h.useState(i||r===void 0?null:r),a=o[0],s=o[1];return{activeId:i?t:a,setActiveId:h.useCallback(function(c){n&&n(c),i||s(c)},[i,n,s])}},Kee=function(e){var t=e.data,n=e.width,r=e.height,i=e.innerRadius,o=i===void 0?Ue.innerRadius:i,a=e.startAngle,s=a===void 0?Ue.startAngle:a,c=e.endAngle,l=c===void 0?Ue.endAngle:c,u=e.padAngle,d=u===void 0?Ue.padAngle:u,f=e.sortByValue,p=f===void 0?Ue.sortByValue:f,g=e.cornerRadius,m=g===void 0?Ue.cornerRadius:g,v=e.fit,x=v===void 0?Ue.fit:v,w=e.activeInnerRadiusOffset,_=w===void 0?Ue.activeInnerRadiusOffset:w,C=e.activeOuterRadiusOffset,y=C===void 0?Ue.activeOuterRadiusOffset:C,$=e.activeId,E=e.onActiveIdChange,k=e.defaultActiveId,T=e.forwardLegendData,O=Gee({activeId:$,onActiveIdChange:E,defaultActiveId:k}),S=O.activeId,M=O.setActiveId,A=h.useState([]),j=A[0],P=A[1],I=h.useMemo(function(){var z,D=Math.min(n,r)/2,W=D*Math.min(o,1),G=n/2,J=r/2;if(x){var Z=jee(G,J,D,s-90,l-90),X=Z.points,ee=Fk(Z,Hee),ne=Math.min(n/ee.width,r/ee.height),F={width:ee.width*ne,height:ee.height*ne};F.x=(n-F.width)/2,F.y=(r-F.height)/2,G=(G-ee.x)/ee.width*ee.width*ne+F.x,J=(J-ee.y)/ee.height*ee.height*ne+F.y,z={box:ee,ratio:ne,points:X},D*=ne,W*=ne}return{centerX:G,centerY:J,radius:D,innerRadius:W,debug:z}},[n,r,o,s,l,x]),L=Yee({data:t,startAngle:s,endAngle:l,innerRadius:I.innerRadius,outerRadius:I.radius,padAngle:d,sortByValue:p,activeId:S,activeInnerRadiusOffset:_,activeOuterRadiusOffset:y,hiddenIds:j,forwardLegendData:T}),V=h.useCallback(function(z){P(function(D){return D.indexOf(z)>-1?D.filter(function(W){return W!==z}):[].concat(D,[z])})},[]);return oo({arcGenerator:Nee({cornerRadius:m,padAngle:fr(d)}),activeId:S,setActiveId:M,toggleSerie:V},L,I)},Zee=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,o=e.radius,a=e.innerRadius;return h.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:o,innerRadius:a}},[t,n,r,i,o,a])},Xee=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,a=e.isInteractive,s=e.onClick,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.setActiveId,f=e.tooltip,p=e.transitionMode,g=ta(),m=g.showTooltipFromEvent,v=g.hideTooltip,x=h.useMemo(function(){if(a)return function(y,$){s==null||s(y,$)}},[a,s]),w=h.useMemo(function(){if(a)return function(y,$){m(h.createElement(f,{datum:y}),$),d(y.id),c==null||c(y,$)}},[a,m,d,c,f]),_=h.useMemo(function(){if(a)return function(y,$){m(h.createElement(f,{datum:y}),$),l==null||l(y,$)}},[a,m,l,f]),C=h.useMemo(function(){if(a)return function(y,$){v(),d(null),u==null||u(y,$)}},[a,v,d,u]);return b.jsx(Aee,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:o,transitionMode:p,onClick:x,onMouseEnter:w,onMouseMove:_,onMouseLeave:C})},Qee=["isInteractive","animate","motionConfig","theme","renderWrapper"],Jee=function(e){var t=e.data,n=e.id,r=n===void 0?Ue.id:n,i=e.value,o=i===void 0?Ue.value:i,a=e.valueFormat,s=e.sortByValue,c=s===void 0?Ue.sortByValue:s,l=e.layers,u=l===void 0?Ue.layers:l,d=e.startAngle,f=d===void 0?Ue.startAngle:d,p=e.endAngle,g=p===void 0?Ue.endAngle:p,m=e.padAngle,v=m===void 0?Ue.padAngle:m,x=e.fit,w=x===void 0?Ue.fit:x,_=e.innerRadius,C=_===void 0?Ue.innerRadius:_,y=e.cornerRadius,$=y===void 0?Ue.cornerRadius:y,E=e.activeInnerRadiusOffset,k=E===void 0?Ue.activeInnerRadiusOffset:E,T=e.activeOuterRadiusOffset,O=T===void 0?Ue.activeOuterRadiusOffset:T,S=e.width,M=e.height,A=e.margin,j=e.colors,P=j===void 0?Ue.colors:j,I=e.borderWidth,L=I===void 0?Ue.borderWidth:I,V=e.borderColor,z=V===void 0?Ue.borderColor:V,D=e.enableArcLabels,W=D===void 0?Ue.enableArcLabels:D,G=e.arcLabel,J=G===void 0?Ue.arcLabel:G,Z=e.arcLabelsSkipAngle,X=Z===void 0?Ue.arcLabelsSkipAngle:Z,ee=e.arcLabelsTextColor,ne=ee===void 0?Ue.arcLabelsTextColor:ee,F=e.arcLabelsRadiusOffset,N=F===void 0?Ue.arcLabelsRadiusOffset:F,B=e.arcLabelsComponent,H=e.enableArcLinkLabels,R=H===void 0?Ue.enableArcLinkLabels:H,Y=e.arcLinkLabel,Q=Y===void 0?Ue.arcLinkLabel:Y,te=e.arcLinkLabelsSkipAngle,ue=te===void 0?Ue.arcLinkLabelsSkipAngle:te,oe=e.arcLinkLabelsOffset,ae=oe===void 0?Ue.arcLinkLabelsOffset:oe,pe=e.arcLinkLabelsDiagonalLength,ve=pe===void 0?Ue.arcLinkLabelsDiagonalLength:pe,Ee=e.arcLinkLabelsStraightLength,Se=Ee===void 0?Ue.arcLinkLabelsStraightLength:Ee,Oe=e.arcLinkLabelsThickness,Fe=Oe===void 0?Ue.arcLinkLabelsThickness:Oe,fe=e.arcLinkLabelsTextOffset,se=fe===void 0?Ue.arcLinkLabelsTextOffset:fe,we=e.arcLinkLabelsTextColor,Ve=we===void 0?Ue.arcLinkLabelsTextColor:we,Ot=e.arcLinkLabelsColor,ze=Ot===void 0?Ue.arcLinkLabelsColor:Ot,ft=e.arcLinkLabelComponent,_t=e.defs,Vt=_t===void 0?Ue.defs:_t,gt=e.fill,bt=gt===void 0?Ue.fill:gt,Ct=e.isInteractive,Ht=Ct===void 0?Ue.isInteractive:Ct,Be=e.onClick,Ie=e.onMouseEnter,et=e.onMouseMove,He=e.onMouseLeave,tt=e.tooltip,nt=tt===void 0?Ue.tooltip:tt,$t=e.activeId,ht=e.onActiveIdChange,ut=e.defaultActiveId,xt=e.transitionMode,yt=xt===void 0?Ue.transitionMode:xt,at=e.legends,St=at===void 0?Ue.legends:at,Mt=e.forwardLegendData,_e=e.role,Me=_e===void 0?Ue.role:_e,Ne=Bl(S,M,A),Ke=Ne.outerWidth,Ye=Ne.outerHeight,Et=Ne.margin,q=Ne.innerWidth,me=Ne.innerHeight,le=qee({data:t,id:r,value:o,valueFormat:a,colors:P}),he=Kee({data:le,width:q,height:me,fit:w,innerRadius:C,startAngle:f,endAngle:g,padAngle:v,sortByValue:c,cornerRadius:$,activeInnerRadiusOffset:k,activeOuterRadiusOffset:O,activeId:$t,onActiveIdChange:ht,defaultActiveId:ut,forwardLegendData:Mt}),$e=he.dataWithArc,De=he.legendData,Te=he.arcGenerator,je=he.centerX,qe=he.centerY,We=he.radius,st=he.innerRadius,nn=he.setActiveId,Ut=he.toggleSerie,cn=Fb(Vt,$e,bt),Ce={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes("arcs")&&(Ce.arcs=b.jsx(Xee,{center:[je,qe],data:$e,arcGenerator:Te,borderWidth:L,borderColor:z,isInteractive:Ht,onClick:Be,onMouseEnter:Ie,onMouseMove:et,onMouseLeave:He,setActiveId:nn,tooltip:nt,transitionMode:yt},"arcs")),R&&u.includes("arcLinkLabels")&&(Ce.arcLinkLabels=b.jsx(kee,{center:[je,qe],data:$e,label:Q,skipAngle:ue,offset:ae,diagonalLength:ve,straightLength:Se,strokeWidth:Fe,textOffset:se,textColor:Ve,linkColor:ze,component:ft},"arcLinkLabels")),W&&u.includes("arcLabels")&&(Ce.arcLabels=b.jsx(xee,{center:[je,qe],data:$e,label:J,radiusOffset:N,skipAngle:X,textColor:ne,transitionMode:yt,component:B},"arcLabels")),St.length>0&&u.includes("legends")&&(Ce.legends=b.jsx(Vee,{width:q,height:me,data:De,legends:St,toggleSerie:Ut},"legends"));var xn=Zee({dataWithArc:$e,arcGenerator:Te,centerX:je,centerY:qe,radius:We,innerRadius:st});return b.jsx(Xh,{width:Ke,height:Ye,margin:Et,defs:cn,role:Me,children:u.map(function(qt,xr){return Ce[qt]!==void 0?Ce[qt]:typeof qt=="function"?b.jsx(h.Fragment,{children:h.createElement(qt,xn)},xr):null})})},ete=function(e){var t=e.isInteractive,n=t===void 0?Ue.isInteractive:t,r=e.animate,i=r===void 0?Ue.animate:r,o=e.motionConfig,a=o===void 0?Ue.motionConfig:o,s=e.theme,c=e.renderWrapper,l=Fk(e,Qee);return b.jsx(zl,{animate:i,isInteractive:n,motionConfig:a,renderWrapper:c,theme:s,children:b.jsx(Jee,oo({isInteractive:n},l))})},tte=function(e){return b.jsx(Cs,{children:function(t){var n=t.width,r=t.height;return b.jsx(ete,oo({width:n,height:r},e))}})};function nte(){}var rte=nte,cm=sk,ite=rte,ote=jb,ate=1/0,ste=cm&&1/ote(new cm([,-0]))[1]==ate?function(e){return new cm(e)}:ite,cte=ste,lte=Cb,ute=D4,dte=I4,fte=$b,hte=cte,pte=jb,mte=200;function gte(e,t,n){var r=-1,i=ute,o=e.length,a=!0,s=[],c=s;if(n)a=!1,i=dte;else if(o>=mte){var l=t?null:hte(e);if(l)return pte(l);a=!1,i=fte,c=new lte}else c=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}var Bk=gte,vte=Bk;function bte(e){return e&&e.length?vte(e):[]}var yte=bte;const g2=rn(yte);var xte=nh,wte=Db,_te=1,Cte=2;function $te(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var c=s[0],l=e[c],u=s[1];if(a&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new xte;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?wte(u,l,_te|Cte,r,d):f))return!1}}return!0}var Ste=$te,Ete=Qr;function Tte(e){return e===e&&!Ete(e)}var zk=Tte,kte=zk,Ote=Fl;function Mte(e){for(var t=Ote(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,kte(i)]}return t}var Rte=Mte;function Ate(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Wk=Ate,jte=Ste,Nte=Rte,Dte=Wk;function Ite(e){var t=Nte(e);return t.length==1&&t[0][2]?Dte(t[0][0],t[0][1]):function(n){return n===e||jte(n,e,t)}}var Pte=Ite,Lte=Db,Fte=PT,Bte=Q4,zte=Q0,Wte=zk,Ute=Wk,Vte=xs,Hte=1,qte=2;function Yte(e,t){return zte(e)&&Wte(t)?Ute(Vte(e),t):function(n){var r=Fte(n,e);return r===void 0&&r===t?Bte(n,e):Lte(t,r,Hte|qte)}}var Gte=Yte;function Kte(e){return function(t){return t==null?void 0:t[e]}}var Zte=Kte,Xte=Pl;function Qte(e){return function(t){return Xte(t,e)}}var Jte=Qte,ene=Zte,tne=Jte,nne=Q0,rne=xs;function ine(e){return nne(e)?ene(rne(e)):tne(e)}var one=ine,ane=Pte,sne=Gte,cne=sh,lne=Kn,une=one;function dne(e){return typeof e=="function"?e:e==null?cne:typeof e=="object"?lne(e)?sne(e[0],e[1]):ane(e):une(e)}var Ub=dne,fne=Ub,hne=Bk;function pne(e,t){return e&&e.length?hne(e,fne(t)):[]}var mne=pne;const nv=rn(mne);var gne=bT,vne=Fl;function bne(e,t){return e&&gne(e,t,vne)}var yne=bne,xne=gs;function wne(e,t){return function(n,r){if(n==null)return n;if(!xne(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var _ne=wne,Cne=yne,$ne=_ne,Sne=$ne(Cne),Uk=Sne,Ene=Uk,Tne=gs;function kne(e,t){var n=-1,r=Tne(e)?Array(e.length):[];return Ene(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var One=kne;function Mne(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var Rne=Mne,v2=ch;function Ane(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=v2(e),a=t!==void 0,s=t===null,c=t===t,l=v2(t);if(!s&&!l&&!o&&e>t||o&&a&&c&&!s&&!l||r&&a&&c||!n&&c||!i)return 1;if(!r&&!o&&!l&&e<t||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!c)return-1}return 0}var jne=Ane,Nne=jne;function Dne(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var c=Nne(i[r],o[r]);if(c){if(r>=s)return c;var l=n[r];return c*(l=="desc"?-1:1)}}return e.index-t.index}var Ine=Dne,lm=lh,Pne=Pl,Lne=Ub,Fne=One,Bne=Rne,zne=vs,Wne=Ine,Une=sh,Vne=Kn;function Hne(e,t,n){t.length?t=lm(t,function(o){return Vne(o)?function(a){return Pne(a,o.length===1?o[0]:o)}:o}):t=[Une];var r=-1;t=lm(t,zne(Lne));var i=Fne(e,function(o,a,s){var c=lm(t,function(l){return l(o)});return{criteria:c,index:++r,value:o}});return Bne(i,function(o,a){return Wne(o,a,n)})}var qne=Hne,Yne=ek,Gne=qne,Kne=X0,b2=jT,Zne=Kne(function(e,t){if(e==null)return[];var n=t.length;return n>1&&b2(e,t[0],t[1])?t=[]:n>2&&b2(t[0],t[1],t[2])&&(t=[t[0]]),Gne(e,Yne(t,1),[])}),Xne=Zne;const Qne=rn(Xne);var Jne=Si,ere=yr,tre="[object Date]";function nre(e){return ere(e)&&Jne(e)==tre}var rre=nre,ire=rre,ore=vs,y2=oh,x2=y2&&y2.isDate,are=x2?ore(x2):ire,sre=are;const cre=rn(sre);function _o(){return _o=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},_o.apply(this,arguments)}var ga=[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)}],lre={millisecond:[],second:ga.slice(0,1),minute:ga.slice(0,2),hour:ga.slice(0,3),day:ga.slice(0,4),month:ga.slice(0,5),year:ga.slice(0,6)},ure=function(e){return function(t){return lre[e].forEach(function(n){n(t)}),t}},Vk=function(e){var t=e.format,n=t===void 0?"native":t,r=e.precision,i=r===void 0?"millisecond":r,o=e.useUTC,a=o===void 0||o,s=ure(i);return function(c){if(c===void 0)return c;if(n==="native"||c instanceof Date)return s(c);var l=a?E4(n):$4(n);return s(l(c))}},dre=function(e,t,n,r){var i,o,a,s,c=e.min,l=c===void 0?0:c,u=e.max,d=u===void 0?"auto":u,f=e.stacked,p=f!==void 0&&f,g=e.reverse,m=g!==void 0&&g,v=e.clamp,x=v!==void 0&&v,w=e.nice,_=w!==void 0&&w;l==="auto"?i=p===!0?(o=t.minStacked)!=null?o:0:t.min:i=l,d==="auto"?a=p===!0?(s=t.maxStacked)!=null?s:0:t.max:a=d;var C=XT().rangeRound(r==="x"?[0,n]:[n,0]).domain(m?[a,i]:[i,a]).clamp(x);return _===!0?C.nice():typeof _=="number"&&C.nice(_),fre(C,p)},fre=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},hre=function(e,t,n){var r=eY().range([0,n]).domain(t.all);return r.type="point",r},pre=function(e,t,n,r){var i=e.round,o=i===void 0||i,a=ab().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(o);return mre(a)},mre=function(e){var t=e;return t.type="band",t},gre=function(e,t,n){var r,i,o=e.format,a=o===void 0?"native":o,s=e.precision,c=s===void 0?"millisecond":s,l=e.min,u=l===void 0?"auto":l,d=e.max,f=d===void 0?"auto":d,p=e.useUTC,g=p===void 0||p,m=e.nice,v=m!==void 0&&m,x=Vk({format:a,precision:c,useUTC:g});r=u==="auto"?x(t.min):a!=="native"?x(u):u,i=f==="auto"?x(t.max):a!=="native"?x(f):f;var w=g?HG():VG();w.range([0,n]),r&&i&&w.domain([r,i]),v===!0?w.nice():typeof v!="object"&&typeof v!="number"||w.nice(v);var _=w;return _.type="time",_.useUTC=g,_},vre=function(e,t,n,r){var i,o=e.base,a=o===void 0?10:o,s=e.min,c=s===void 0?"auto":s,l=e.max,u=l===void 0?"auto":l;if(t.all.some(function(m){return m===0}))throw new Error("a log scale domain must not include or cross zero");var d,f,p=!1;if(t.all.filter(function(m){return m!=null}).forEach(function(m){p||(i===void 0?i=Math.sign(m):Math.sign(m)!==i&&(p=!0))}),p)throw new Error("a log scale domain must be strictly-positive or strictly-negative");d=c==="auto"?t.min:c,f=u==="auto"?t.max:u;var g=JT().domain([d,f]).rangeRound(r==="x"?[0,n]:[n,0]).base(a).nice();return g.type="log",g},bre=function(e,t,n,r){var i,o,a=e.constant,s=a===void 0?1:a,c=e.min,l=c===void 0?"auto":c,u=e.max,d=u===void 0?"auto":u,f=e.reverse,p=f!==void 0&&f;i=l==="auto"?t.min:l,o=d==="auto"?t.max:d;var g=e4().constant(s).rangeRound(r==="x"?[0,n]:[n,0]).nice();p===!0?g.domain([o,i]):g.domain([i,o]);var m=g;return m.type="symlog",m},yre=function(e){return e==="x"?"y":"x"},xre=function(e,t){return e===t},wre=function(e,t){return e.getTime()===t.getTime()};function ll(e,t,n,r){switch(e.type){case"linear":return dre(e,t,n,r);case"point":return hre(e,t,n);case"band":return pre(e,t,n,r);case"time":return gre(e,t,n);case"log":return vre(e,t,n,r);case"symlog":return bre(e,t,n,r);default:throw new Error("invalid scale spec")}}var w2=function(e,t,n){var r;if("stacked"in n&&n.stacked){var i=e.data[t==="x"?"xStacked":"yStacked"];return i==null?null:n(i)}return(r=n(e.data[t]))!=null?r:null},_re=function(e,t,n,r,i){var o=e.map(function(u){return function(d){return _o({},d,{data:d.data.map(function(f){return{data:_o({},f)}})})}(u)}),a=Cre(o,t,n);"stacked"in t&&t.stacked===!0&&$re(a,o),"stacked"in n&&n.stacked===!0&&Sre(a,o);var s=ll(t,a.x,r,"x"),c=ll(n,a.y,i,"y"),l=o.map(function(u){return _o({},u,{data:u.data.map(function(d){return _o({},d,{position:{x:w2(d,"x",s),y:w2(d,"y",c)}})})})});return _o({},a,{series:l,xScale:s,yScale:c})},Cre=function(e,t,n){return{x:_2(e,"x",t),y:_2(e,"y",n)}},_2=function(e,t,n,r){var i={},o=i.getValue,a=o===void 0?function(g){return g.data[t]}:o,s=i.setValue,c=s===void 0?function(g,m){g.data[t]=m}:s;if(n.type==="linear")e.forEach(function(g){g.data.forEach(function(m){var v=a(m);v&&c(m,parseFloat(String(v)))})});else if(n.type==="time"&&n.format!=="native"){var l=Vk(n);e.forEach(function(g){g.data.forEach(function(m){var v=a(m);v&&c(m,l(v))})})}var u=[];switch(e.forEach(function(g){g.data.forEach(function(m){u.push(a(m))})}),n.type){case"linear":var d=Qne(g2(u).filter(function(g){return g!==null}),function(g){return g});return{all:d,min:Math.min.apply(Math,d),max:Math.max.apply(Math,d)};case"time":var f=nv(u,function(g){return g.getTime()}).slice(0).sort(function(g,m){return m.getTime()-g.getTime()}).reverse();return{all:f,min:f[0],max:Pe(f)};default:var p=g2(u);return{all:p,min:p[0],max:Pe(p)}}},Hk=function(e,t,n){var r=yre(e),i=[];t[r].all.forEach(function(o){var a=cre(o)?wre:xre,s=[];n.forEach(function(c){var l=c.data.find(function(p){return a(p.data[r],o)}),u=null,d=null;if(l!==void 0){if((u=l.data[e])!==null){var f=Pe(s);f===void 0?d=u:f!==null&&(d=f+u)}l.data[e==="x"?"xStacked":"yStacked"]=d}s.push(d),d!==null&&i.push(d)})}),t[e].minStacked=Math.min.apply(Math,i),t[e].maxStacked=Math.max.apply(Math,i)},$re=function(e,t){return Hk("x",e,t)},Sre=function(e,t){return Hk("y",e,t)},qk=function(e){var t=e.bandwidth();if(t===0)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(r){var i;return((i=e(r))!=null?i:0)+n}},Yk={millisecond:[ol,ol],second:[Wg,Wg],minute:[a4,h4],hour:[s4,p4],day:[dn(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)}),dn(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:[zd,Wd],sunday:[zd,Wd],monday:[al,sl],tuesday:[c4,m4],wednesday:[l4,g4],thursday:[Ko,Zo],friday:[u4,v4],saturday:[d4,b4],month:[f4,y4],year:[no,ro]},Ere=Object.keys(Yk),Tre=new RegExp("^every\\s*(\\d+)?\\s*("+Ere.join("|")+")s?$","i"),Gk=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(Tre);if(n){var r=n[1],i=n[2],o=Yk[i][e.useUTC?1:0];if(i==="day"){var a,s,c=e.domain(),l=c[0],u=c[1],d=new Date(u);return d.setDate(d.getDate()+1),(a=(s=o.every(Number(r??1)))==null?void 0:s.range(l,d))!=null?a:[]}if(r===void 0)return e.ticks(o);var f=o.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 hr(){return hr=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},hr.apply(this,arguments)}var Kk=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,o=e.tickValues,a=e.tickSize,s=e.tickPadding,c=e.tickRotation,l=e.truncateTickAt,u=e.engine,d=u===void 0?"svg":u,f=Gk(r,o),p=UJ[d],g="bandwidth"in r?qk(r):r,m={lineX:0,lineY:0},v={textX:0,textY:0},x=typeof document=="object"&&document.dir==="rtl",w=p.align.center,_=p.baseline.center;return n==="x"?(t=function(C){var y;return{x:(y=g(C))!=null?y:0,y:0}},m.lineY=a*(i==="after"?1:-1),v.textY=(a+s)*(i==="after"?1:-1),_=i==="after"?p.baseline.top:p.baseline.bottom,c===0?w=p.align.center:i==="after"&&c<0||i==="before"&&c>0?(w=p.align[x?"left":"right"],_=p.baseline.center):(i==="after"&&c>0||i==="before"&&c<0)&&(w=p.align[x?"right":"left"],_=p.baseline.center)):(t=function(C){var y;return{x:0,y:(y=g(C))!=null?y:0}},m.lineX=a*(i==="after"?1:-1),v.textX=(a+s)*(i==="after"?1:-1),w=i==="after"?p.align.left:p.align.right),{ticks:f.map(function(C){var y=typeof C=="string"?function($){var E=String($).length;return l&&l>0&&E>l?""+String($).slice(0,l).concat("..."):""+$}(C):C;return hr({key:C instanceof Date?""+C.valueOf():""+C,value:y},t(C),m,v)}),textAlign:w,textBaseline:_}},Zk=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=gh(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return Ll(e)},rv=function(e){var t,n=e.width,r=e.height,i=e.scale,o=e.axis,a=e.values,s=(t=a,(Array.isArray(t)?a:void 0)||Gk(i,a)),c="bandwidth"in i?qk(i):i,l=o==="x"?s.map(function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:(d=c(u))!=null?d:0,x2:(f=c(u))!=null?f:0,y1:0,y2:r}}):s.map(function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:0,x2:n,y1:(d=c(u))!=null?d:0,y2:(f=c(u))!=null?f:0}});return l},kre=h.memo(function(e){var t,n=e.value,r=e.format,i=e.lineX,o=e.lineY,a=e.onClick,s=e.textBaseline,c=e.textAnchor,l=e.animatedProps,u=Ft(),d=u.axis.ticks.line,f=u.axis.ticks.text,p=(t=r==null?void 0:r(n))!=null?t:n,g=h.useMemo(function(){var m={opacity:l.opacity};return a?{style:hr({},m,{cursor:"pointer"}),onClick:function(v){return a(v,p)}}:{style:m}},[l.opacity,a,p]);return b.jsxs(Lt.g,hr({transform:l.transform},g,{children:[b.jsx("line",{x1:0,x2:i,y1:0,y2:o,style:d}),f.outlineWidth>0&&b.jsx(Lt.text,{dominantBaseline:s,textAnchor:c,transform:l.textTransform,style:f,strokeWidth:2*f.outlineWidth,stroke:f.outlineColor,strokeLinejoin:"round",children:""+p}),b.jsx(Lt.text,{dominantBaseline:s,textAnchor:c,transform:l.textTransform,style:Lb(f),children:""+p})]}))}),Ore=function(e){var t=e.axis,n=e.scale,r=e.x,i=r===void 0?0:r,o=e.y,a=o===void 0?0:o,s=e.length,c=e.ticksPosition,l=e.tickValues,u=e.tickSize,d=u===void 0?5:u,f=e.tickPadding,p=f===void 0?5:f,g=e.tickRotation,m=g===void 0?0:g,v=e.format,x=e.renderTick,w=x===void 0?kre:x,_=e.truncateTickAt,C=e.legend,y=e.legendPosition,$=y===void 0?"end":y,E=e.legendOffset,k=E===void 0?0:E,T=e.onClick,O=e.ariaHidden,S=Ft(),M=S.axis.legend.text,A=h.useMemo(function(){return Zk(v,n)},[v,n]),j=Kk({axis:t,scale:n,ticksPosition:c,tickValues:l,tickSize:d,tickPadding:p,tickRotation:m,truncateTickAt:_}),P=j.ticks,I=j.textAlign,L=j.textBaseline,V=null;if(C!==void 0){var z,D=0,W=0,G=0;t==="y"?(G=-90,D=k,$==="start"?(z="start",W=s):$==="middle"?(z="middle",W=s/2):$==="end"&&(z="end")):(W=k,$==="start"?z="start":$==="middle"?(z="middle",D=s/2):$==="end"&&(z="end",D=s)),V=b.jsxs(b.Fragment,{children:[M.outlineWidth>0&&b.jsx("text",{transform:"translate("+D+", "+W+") rotate("+G+")",textAnchor:z,style:hr({dominantBaseline:"central"},M),strokeWidth:2*M.outlineWidth,stroke:M.outlineColor,strokeLinejoin:"round",children:C}),b.jsx("text",{transform:"translate("+D+", "+W+") rotate("+G+")",textAnchor:z,style:hr({dominantBaseline:"central"},M),children:C})]})}var J=Fn(),Z=J.animate,X=J.config,ee=Zr({transform:"translate("+i+","+a+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:X,immediate:!Z}),ne=h.useCallback(function(B){return{opacity:1,transform:"translate("+B.x+","+B.y+")",textTransform:"translate("+B.textX+","+B.textY+") rotate("+m+")"}},[m]),F=h.useCallback(function(B){return{opacity:0,transform:"translate("+B.x+","+B.y+")",textTransform:"translate("+B.textX+","+B.textY+") rotate("+m+")"}},[m]),N=ea(P,{keys:function(B){return B.key},initial:ne,from:F,enter:ne,update:ne,leave:{opacity:0},config:X,immediate:!Z});return b.jsxs(Lt.g,{transform:ee.transform,"aria-hidden":O,children:[N(function(B,H,R,Y){return ie.createElement(w,hr({tickIndex:Y,format:A,rotate:m,textBaseline:L,textAnchor:I,truncateTickAt:_,animatedProps:B},H,T?{onClick:T}:{}))}),b.jsx(Lt.line,{style:S.axis.domain.line,x1:0,x2:ee.lineX2,y1:0,y2:ee.lineY2}),V]})},Mre=h.memo(Ore),Xk=["top","right","bottom","left"],Qk=h.memo(function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,o={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return b.jsx(b.Fragment,{children:Xk.map(function(a){var s=o[a];if(!s)return null;var c=a==="top"||a==="bottom";return b.jsx(Mre,hr({},s,{axis:c?"x":"y",x:a==="right"?r:0,y:a==="bottom"?i:0,scale:c?t:n,length:c?r:i,ticksPosition:a==="top"||a==="left"?"before":"after",truncateTickAt:s.truncateTickAt}),a)})})}),Rre=h.memo(function(e){var t=e.animatedProps,n=Ft();return b.jsx(Lt.line,hr({},t,n.grid.line))}),C2=h.memo(function(e){var t=e.lines,n=Fn(),r=n.animate,i=n.config,o=ea(t,{keys:function(a){return a.key},initial:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},from:function(a){return{opacity:0,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},enter:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},update:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},leave:{opacity:0},config:i,immediate:!r});return b.jsx("g",{children:o(function(a,s){return h.createElement(Rre,hr({},s,{key:s.key,animatedProps:a}))})})}),Jk=h.memo(function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,o=e.xValues,a=e.yValues,s=h.useMemo(function(){return!!r&&rv({width:t,height:n,scale:r,axis:"x",values:o})},[r,o,t,n]),c=h.useMemo(function(){return!!i&&rv({width:t,height:n,scale:i,axis:"y",values:a})},[n,t,i,a]);return b.jsxs(b.Fragment,{children:[s&&b.jsx(C2,{lines:s}),c&&b.jsx(C2,{lines:c})]})}),Are=function(e,t){var n,r=t.axis,i=t.scale,o=t.x,a=o===void 0?0:o,s=t.y,c=s===void 0?0:s,l=t.length,u=t.ticksPosition,d=t.tickValues,f=t.tickSize,p=f===void 0?5:f,g=t.tickPadding,m=g===void 0?5:g,v=t.tickRotation,x=v===void 0?0:v,w=t.format,_=t.legend,C=t.legendPosition,y=C===void 0?"end":C,$=t.legendOffset,E=$===void 0?0:$,k=t.theme,T=Kk({axis:r,scale:i,ticksPosition:u,tickValues:d,tickSize:p,tickPadding:m,tickRotation:x,engine:"canvas"}),O=T.ticks,S=T.textAlign,M=T.textBaseline;e.save(),e.translate(a,c),e.textAlign=S,e.textBaseline=M;var A=k.axis.ticks.text;e.font=(A.fontWeight?A.fontWeight+" ":"")+A.fontSize+"px "+A.fontFamily,((n=k.axis.domain.line.strokeWidth)!=null?n:0)>0&&(e.lineWidth=Number(k.axis.domain.line.strokeWidth),e.lineCap="square",k.axis.domain.line.stroke&&(e.strokeStyle=k.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(r==="x"?l:0,r==="x"?0:l),e.stroke());var j=typeof w=="function"?w:function(z){return""+z};if(O.forEach(function(z){var D;((D=k.axis.ticks.line.strokeWidth)!=null?D:0)>0&&(e.lineWidth=Number(k.axis.ticks.line.strokeWidth),e.lineCap="square",k.axis.ticks.line.stroke&&(e.strokeStyle=k.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=j(z.value);e.save(),e.translate(z.x+z.textX,z.y+z.textY),e.rotate(fr(x)),A.outlineWidth>0&&(e.strokeStyle=A.outlineColor,e.lineWidth=2*A.outlineWidth,e.lineJoin="round",e.strokeText(""+W,0,0)),k.axis.ticks.text.fill&&(e.fillStyle=A.fill),e.fillText(""+W,0,0),e.restore()}),_!==void 0){var P=0,I=0,L=0,V="center";r==="y"?(L=-90,P=E,y==="start"?(V="start",I=l):y==="middle"?(V="center",I=l/2):y==="end"&&(V="end")):(I=E,y==="start"?V="start":y==="middle"?(V="center",P=l/2):y==="end"&&(V="end",P=l)),e.translate(P,I),e.rotate(fr(L)),e.font=(k.axis.legend.text.fontWeight?k.axis.legend.text.fontWeight+" ":"")+k.axis.legend.text.fontSize+"px "+k.axis.legend.text.fontFamily,k.axis.legend.text.fill&&(e.fillStyle=k.axis.legend.text.fill),e.textAlign=V,e.textBaseline="middle",e.fillText(_,0,0)}e.restore()},eO=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,o=t.height,a=t.top,s=t.right,c=t.bottom,l=t.left,u=t.theme,d={top:a,right:s,bottom:c,left:l};Xk.forEach(function(f){var p=d[f];if(!p)return null;var g=f==="top"||f==="bottom",m=f==="top"||f==="left"?"before":"after",v=g?n:r,x=Zk(p.format,v);Are(e,hr({},p,{axis:g?"x":"y",x:f==="right"?i:0,y:f==="bottom"?o:0,scale:v,format:x,length:g?i:o,ticksPosition:m,theme:u}))})},Kd=function(e,t){var n=t.width,r=t.height,i=t.scale,o=t.axis,a=t.values;rv({width:n,height:r,scale:i,axis:o,values:a}).forEach(function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()})},jre=IT,Nre=0;function Dre(e){var t=++Nre;return jre(e)+t}var Ire=Dre;const Pre=rn(Ire),hi=11102230246251565e-32,Sn=134217729,Lre=(3+8*hi)*hi;function um(e,t,n,r,i){let o,a,s,c,l=t[0],u=r[0],d=0,f=0;u>l==u>-l?(o=l,l=t[++d]):(o=u,u=r[++f]);let p=0;if(d<e&&f<n)for(u>l==u>-l?(a=l+o,s=o-(a-l),l=t[++d]):(a=u+o,s=o-(a-u),u=r[++f]),o=a,s!==0&&(i[p++]=s);d<e&&f<n;)u>l==u>-l?(a=o+l,c=a-o,s=o-(a-c)+(l-c),l=t[++d]):(a=o+u,c=a-o,s=o-(a-c)+(u-c),u=r[++f]),o=a,s!==0&&(i[p++]=s);for(;d<e;)a=o+l,c=a-o,s=o-(a-c)+(l-c),l=t[++d],o=a,s!==0&&(i[p++]=s);for(;f<n;)a=o+u,c=a-o,s=o-(a-c)+(u-c),u=r[++f],o=a,s!==0&&(i[p++]=s);return(o!==0||p===0)&&(i[p++]=o),p}function Fre(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function Wl(e){return new Float64Array(e)}const Bre=(3+16*hi)*hi,zre=(2+12*hi)*hi,Wre=(9+64*hi)*hi*hi,va=Wl(4),$2=Wl(8),S2=Wl(12),E2=Wl(16),Rn=Wl(4);function Ure(e,t,n,r,i,o,a){let s,c,l,u,d,f,p,g,m,v,x,w,_,C,y,$,E,k;const T=e-i,O=n-i,S=t-o,M=r-o;C=T*M,f=Sn*T,p=f-(f-T),g=T-p,f=Sn*M,m=f-(f-M),v=M-m,y=g*v-(C-p*m-g*m-p*v),$=S*O,f=Sn*S,p=f-(f-S),g=S-p,f=Sn*O,m=f-(f-O),v=O-m,E=g*v-($-p*m-g*m-p*v),x=y-E,d=y-x,va[0]=y-(x+d)+(d-E),w=C+x,d=w-C,_=C-(w-d)+(x-d),x=_-$,d=_-x,va[1]=_-(x+d)+(d-$),k=w+x,d=k-w,va[2]=w-(k-d)+(x-d),va[3]=k;let A=Fre(4,va),j=zre*a;if(A>=j||-A>=j||(d=e-T,s=e-(T+d)+(d-i),d=n-O,l=n-(O+d)+(d-i),d=t-S,c=t-(S+d)+(d-o),d=r-M,u=r-(M+d)+(d-o),s===0&&c===0&&l===0&&u===0)||(j=Wre*a+Lre*Math.abs(A),A+=T*u+M*s-(S*l+O*c),A>=j||-A>=j))return A;C=s*M,f=Sn*s,p=f-(f-s),g=s-p,f=Sn*M,m=f-(f-M),v=M-m,y=g*v-(C-p*m-g*m-p*v),$=c*O,f=Sn*c,p=f-(f-c),g=c-p,f=Sn*O,m=f-(f-O),v=O-m,E=g*v-($-p*m-g*m-p*v),x=y-E,d=y-x,Rn[0]=y-(x+d)+(d-E),w=C+x,d=w-C,_=C-(w-d)+(x-d),x=_-$,d=_-x,Rn[1]=_-(x+d)+(d-$),k=w+x,d=k-w,Rn[2]=w-(k-d)+(x-d),Rn[3]=k;const P=um(4,va,4,Rn,$2);C=T*u,f=Sn*T,p=f-(f-T),g=T-p,f=Sn*u,m=f-(f-u),v=u-m,y=g*v-(C-p*m-g*m-p*v),$=S*l,f=Sn*S,p=f-(f-S),g=S-p,f=Sn*l,m=f-(f-l),v=l-m,E=g*v-($-p*m-g*m-p*v),x=y-E,d=y-x,Rn[0]=y-(x+d)+(d-E),w=C+x,d=w-C,_=C-(w-d)+(x-d),x=_-$,d=_-x,Rn[1]=_-(x+d)+(d-$),k=w+x,d=k-w,Rn[2]=w-(k-d)+(x-d),Rn[3]=k;const I=um(P,$2,4,Rn,S2);C=s*u,f=Sn*s,p=f-(f-s),g=s-p,f=Sn*u,m=f-(f-u),v=u-m,y=g*v-(C-p*m-g*m-p*v),$=c*l,f=Sn*c,p=f-(f-c),g=c-p,f=Sn*l,m=f-(f-l),v=l-m,E=g*v-($-p*m-g*m-p*v),x=y-E,d=y-x,Rn[0]=y-(x+d)+(d-E),w=C+x,d=w-C,_=C-(w-d)+(x-d),x=_-$,d=_-x,Rn[1]=_-(x+d)+(d-$),k=w+x,d=k-w,Rn[2]=w-(k-d)+(x-d),Rn[3]=k;const L=um(I,S2,4,Rn,E2);return E2[L-1]}function Eu(e,t,n,r,i,o){const a=(t-o)*(n-i),s=(e-i)*(r-o),c=a-s,l=Math.abs(a+s);return Math.abs(c)>=Bre*l?c:-Ure(e,t,n,r,i,o,l)}const T2=Math.pow(2,-52),Tu=new Uint32Array(512);class Zd{static from(t,n=Gre,r=Kre){const i=t.length,o=new Float64Array(i*2);for(let a=0;a<i;a++){const s=t[a];o[2*a]=n(s),o[2*a+1]=r(s)}return new Zd(o)}constructor(t){const n=t.length>>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:i,_hullHash:o}=this,a=t.length>>1;let s=1/0,c=1/0,l=-1/0,u=-1/0;for(let T=0;T<a;T++){const O=t[2*T],S=t[2*T+1];O<s&&(s=O),S<c&&(c=S),O>l&&(l=O),S>u&&(u=S),this._ids[T]=T}const d=(s+l)/2,f=(c+u)/2;let p,g,m;for(let T=0,O=1/0;T<a;T++){const S=dm(d,f,t[2*T],t[2*T+1]);S<O&&(p=T,O=S)}const v=t[2*p],x=t[2*p+1];for(let T=0,O=1/0;T<a;T++){if(T===p)continue;const S=dm(v,x,t[2*T],t[2*T+1]);S<O&&S>0&&(g=T,O=S)}let w=t[2*g],_=t[2*g+1],C=1/0;for(let T=0;T<a;T++){if(T===p||T===g)continue;const O=qre(v,x,w,_,t[2*T],t[2*T+1]);O<C&&(m=T,C=O)}let y=t[2*m],$=t[2*m+1];if(C===1/0){for(let S=0;S<a;S++)this._dists[S]=t[2*S]-t[0]||t[2*S+1]-t[1];ka(this._ids,this._dists,0,a-1);const T=new Uint32Array(a);let O=0;for(let S=0,M=-1/0;S<a;S++){const A=this._ids[S],j=this._dists[A];j>M&&(T[O++]=A,M=j)}this.hull=T.subarray(0,O),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(Eu(v,x,w,_,y,$)<0){const T=g,O=w,S=_;g=m,w=y,_=$,m=T,y=O,$=S}const E=Yre(v,x,w,_,y,$);this._cx=E.x,this._cy=E.y;for(let T=0;T<a;T++)this._dists[T]=dm(t[2*T],t[2*T+1],E.x,E.y);ka(this._ids,this._dists,0,a-1),this._hullStart=p;let k=3;r[p]=n[m]=g,r[g]=n[p]=m,r[m]=n[g]=p,i[p]=0,i[g]=1,i[m]=2,o.fill(-1),o[this._hashKey(v,x)]=p,o[this._hashKey(w,_)]=g,o[this._hashKey(y,$)]=m,this.trianglesLen=0,this._addTriangle(p,g,m,-1,-1,-1);for(let T=0,O,S;T<this._ids.length;T++){const M=this._ids[T],A=t[2*M],j=t[2*M+1];if(T>0&&Math.abs(A-O)<=T2&&Math.abs(j-S)<=T2||(O=A,S=j,M===p||M===g||M===m))continue;let P=0;for(let D=0,W=this._hashKey(A,j);D<this._hashSize&&(P=o[(W+D)%this._hashSize],!(P!==-1&&P!==r[P]));D++);P=n[P];let I=P,L;for(;L=r[I],Eu(A,j,t[2*I],t[2*I+1],t[2*L],t[2*L+1])>=0;)if(I=L,I===P){I=-1;break}if(I===-1)continue;let V=this._addTriangle(I,M,r[I],-1,-1,i[I]);i[M]=this._legalize(V+2),i[I]=V,k++;let z=r[I];for(;L=r[z],Eu(A,j,t[2*z],t[2*z+1],t[2*L],t[2*L+1])<0;)V=this._addTriangle(z,M,L,i[M],-1,i[z]),i[M]=this._legalize(V+2),r[z]=z,k--,z=L;if(I===P)for(;L=n[I],Eu(A,j,t[2*L],t[2*L+1],t[2*I],t[2*I+1])<0;)V=this._addTriangle(L,M,I,-1,i[I],i[L]),this._legalize(V+2),i[L]=V,r[I]=I,k--,I=L;this._hullStart=n[M]=I,r[I]=n[z]=M,r[M]=z,o[this._hashKey(A,j)]=M,o[this._hashKey(t[2*I],t[2*I+1])]=I}this.hull=new Uint32Array(k);for(let T=0,O=this._hullStart;T<k;T++)this.hull[T]=O,O=r[O];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(Vre(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:r,coords:i}=this;let o=0,a=0;for(;;){const s=r[t],c=t-t%3;if(a=c+(t+2)%3,s===-1){if(o===0)break;t=Tu[--o];continue}const l=s-s%3,u=c+(t+1)%3,d=l+(s+2)%3,f=n[a],p=n[t],g=n[u],m=n[d];if(Hre(i[2*f],i[2*f+1],i[2*p],i[2*p+1],i[2*g],i[2*g+1],i[2*m],i[2*m+1])){n[t]=m,n[s]=f;const x=r[d];if(x===-1){let _=this._hullStart;do{if(this._hullTri[_]===d){this._hullTri[_]=t;break}_=this._hullPrev[_]}while(_!==this._hullStart)}this._link(t,x),this._link(s,r[a]),this._link(a,d);const w=l+(s+1)%3;o<Tu.length&&(Tu[o++]=w)}else{if(o===0)break;t=Tu[--o]}}return a}_link(t,n){this._halfedges[t]=n,n!==-1&&(this._halfedges[n]=t)}_addTriangle(t,n,r,i,o,a){const s=this.trianglesLen;return this._triangles[s]=t,this._triangles[s+1]=n,this._triangles[s+2]=r,this._link(s,i),this._link(s+1,o),this._link(s+2,a),this.trianglesLen+=3,s}}function Vre(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function dm(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function Hre(e,t,n,r,i,o,a,s){const c=e-a,l=t-s,u=n-a,d=r-s,f=i-a,p=o-s,g=c*c+l*l,m=u*u+d*d,v=f*f+p*p;return c*(d*v-m*p)-l*(u*v-m*f)+g*(u*p-d*f)<0}function qre(e,t,n,r,i,o){const a=n-e,s=r-t,c=i-e,l=o-t,u=a*a+s*s,d=c*c+l*l,f=.5/(a*l-s*c),p=(l*u-s*d)*f,g=(a*d-c*u)*f;return p*p+g*g}function Yre(e,t,n,r,i,o){const a=n-e,s=r-t,c=i-e,l=o-t,u=a*a+s*s,d=c*c+l*l,f=.5/(a*l-s*c),p=e+(l*u-s*d)*f,g=t+(a*d-c*u)*f;return{x:p,y:g}}function ka(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const o=e[i],a=t[o];let s=i-1;for(;s>=n&&t[e[s]]>a;)e[s+1]=e[s--];e[s+1]=o}else{const i=n+r>>1;let o=n+1,a=r;Qs(e,i,o),t[e[n]]>t[e[r]]&&Qs(e,n,r),t[e[o]]>t[e[r]]&&Qs(e,o,r),t[e[n]]>t[e[o]]&&Qs(e,n,o);const s=e[o],c=t[s];for(;;){do o++;while(t[e[o]]<c);do a--;while(t[e[a]]>c);if(a<o)break;Qs(e,o,a)}e[n+1]=e[a],e[a]=s,r-o+1>=a-n?(ka(e,t,o,r),ka(e,t,n,a-1)):(ka(e,t,n,a-1),ka(e,t,o,r))}}function Qs(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Gre(e){return e[0]}function Kre(e){return e[1]}const k2=1e-6;class Ro{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const i=t+r,o=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${i},${o}`:(Math.abs(this._x1-i)>k2||Math.abs(this._y1-o)>k2)&&(this._+="L"+i+","+o),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=i},${this._y1=o}`)}rect(t,n,r,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+i}h${-r}Z`}value(){return this._||null}}class iv{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class Zre{constructor(t,[n,r,i,o]=[0,0,960,500]){if(!((i=+i)>=(n=+n))||!((o=+o)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=i,this.xmin=n,this.ymax=o,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:i}=this;let o,a;const s=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let m=0,v=0,x=r.length,w,_;m<x;m+=3,v+=2){const C=r[m]*2,y=r[m+1]*2,$=r[m+2]*2,E=t[C],k=t[C+1],T=t[y],O=t[y+1],S=t[$],M=t[$+1],A=T-E,j=O-k,P=S-E,I=M-k,L=(A*I-j*P)*2;if(Math.abs(L)<1e-9){if(o===void 0){o=a=0;for(const z of n)o+=t[z*2],a+=t[z*2+1];o/=n.length,a/=n.length}const V=1e9*Math.sign((o-E)*I-(a-k)*P);w=(E+S)/2-V*I,_=(k+M)/2+V*P}else{const V=1/L,z=A*A+j*j,D=P*P+I*I;w=E+(I*z-j*D)*V,_=k+(A*D-P*z)*V}s[v]=w,s[v+1]=_}let c=n[n.length-1],l,u=c*4,d,f=t[2*c],p,g=t[2*c+1];i.fill(0);for(let m=0;m<n.length;++m)c=n[m],l=u,d=f,p=g,u=c*4,f=t[2*c],g=t[2*c+1],i[l+2]=i[u]=p-g,i[l+3]=i[u+1]=f-d}render(t){const n=t==null?t=new Ro:void 0,{delaunay:{halfedges:r,inedges:i,hull:o},circumcenters:a,vectors:s}=this;if(o.length<=1)return null;for(let u=0,d=r.length;u<d;++u){const f=r[u];if(f<u)continue;const p=Math.floor(u/3)*2,g=Math.floor(f/3)*2,m=a[p],v=a[p+1],x=a[g],w=a[g+1];this._renderSegment(m,v,x,w,t)}let c,l=o[o.length-1];for(let u=0;u<o.length;++u){c=l,l=o[u];const d=Math.floor(i[l]/3)*2,f=a[d],p=a[d+1],g=c*4,m=this._project(f,p,s[g+2],s[g+3]);m&&this._renderSegment(f,p,m[0],m[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new Ro:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const r=n==null?n=new Ro:void 0,i=this._clip(t);if(i===null||!i.length)return;n.moveTo(i[0],i[1]);let o=i.length;for(;i[0]===i[o-2]&&i[1]===i[o-1]&&o>1;)o-=2;for(let a=2;a<o;a+=2)(i[a]!==i[a-2]||i[a+1]!==i[a-1])&&n.lineTo(i[a],i[a+1]);return n.closePath(),r&&r.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,r=t.length/2;n<r;++n){const i=this.cellPolygon(n);i&&(i.index=n,yield i)}}cellPolygon(t){const n=new iv;return this.renderCell(t,n),n.value()}_renderSegment(t,n,r,i,o){let a;const s=this._regioncode(t,n),c=this._regioncode(r,i);s===0&&c===0?(o.moveTo(t,n),o.lineTo(r,i)):(a=this._clipSegment(t,n,r,i,s,c))&&(o.moveTo(a[0],a[1]),o.lineTo(a[2],a[3]))}contains(t,n,r){return n=+n,n!==n||(r=+r,r!==r)?!1:this.delaunay._step(t,n,r)===t}*neighbors(t){const n=this._clip(t);if(n)for(const r of this.delaunay.neighbors(t)){const i=this._clip(r);if(i){e:for(let o=0,a=n.length;o<a;o+=2)for(let s=0,c=i.length;s<c;s+=2)if(n[o]===i[s]&&n[o+1]===i[s+1]&&n[(o+2)%a]===i[(s+c-2)%c]&&n[(o+3)%a]===i[(s+c-1)%c]){yield r;break e}}}}_cell(t){const{circumcenters:n,delaunay:{inedges:r,halfedges:i,triangles:o}}=this,a=r[t];if(a===-1)return null;const s=[];let c=a;do{const l=Math.floor(c/3);if(s.push(n[l*2],n[l*2+1]),c=c%3===2?c-2:c+1,o[c]!==t)break;c=i[c]}while(c!==a&&c!==-1);return s}_clip(t){if(t===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(n===null)return null;const{vectors:r}=this,i=t*4;return this._simplify(r[i]||r[i+1]?this._clipInfinite(t,n,r[i],r[i+1],r[i+2],r[i+3]):this._clipFinite(t,n))}_clipFinite(t,n){const r=n.length;let i=null,o,a,s=n[r-2],c=n[r-1],l,u=this._regioncode(s,c),d,f=0;for(let p=0;p<r;p+=2)if(o=s,a=c,s=n[p],c=n[p+1],l=u,u=this._regioncode(s,c),l===0&&u===0)d=f,f=0,i?i.push(s,c):i=[s,c];else{let g,m,v,x,w;if(l===0){if((g=this._clipSegment(o,a,s,c,l,u))===null)continue;[m,v,x,w]=g}else{if((g=this._clipSegment(s,c,o,a,u,l))===null)continue;[x,w,m,v]=g,d=f,f=this._edgecode(m,v),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(m,v):i=[m,v]}d=f,f=this._edgecode(x,w),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(x,w):i=[x,w]}if(i)d=f,f=this._edgecode(i[0],i[1]),d&&f&&this._edge(t,d,f,i,i.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return i}_clipSegment(t,n,r,i,o,a){const s=o<a;for(s&&([t,n,r,i,o,a]=[r,i,t,n,a,o]);;){if(o===0&&a===0)return s?[r,i,t,n]:[t,n,r,i];if(o&a)return null;let c,l,u=o||a;u&8?(c=t+(r-t)*(this.ymax-n)/(i-n),l=this.ymax):u&4?(c=t+(r-t)*(this.ymin-n)/(i-n),l=this.ymin):u&2?(l=n+(i-n)*(this.xmax-t)/(r-t),c=this.xmax):(l=n+(i-n)*(this.xmin-t)/(r-t),c=this.xmin),o?(t=c,n=l,o=this._regioncode(t,n)):(r=c,i=l,a=this._regioncode(r,i))}}_clipInfinite(t,n,r,i,o,a){let s=Array.from(n),c;if((c=this._project(s[0],s[1],r,i))&&s.unshift(c[0],c[1]),(c=this._project(s[s.length-2],s[s.length-1],o,a))&&s.push(c[0],c[1]),s=this._clipFinite(t,s))for(let l=0,u=s.length,d,f=this._edgecode(s[u-2],s[u-1]);l<u;l+=2)d=f,f=this._edgecode(s[l],s[l+1]),d&&f&&(l=this._edge(t,d,f,s,l),u=s.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(t,n,r,i,o){for(;n!==r;){let a,s;switch(n){case 5:n=4;continue;case 4:n=6,a=this.xmax,s=this.ymin;break;case 6:n=2;continue;case 2:n=10,a=this.xmax,s=this.ymax;break;case 10:n=8;continue;case 8:n=9,a=this.xmin,s=this.ymax;break;case 9:n=1;continue;case 1:n=5,a=this.xmin,s=this.ymin;break}(i[o]!==a||i[o+1]!==s)&&this.contains(t,a,s)&&(i.splice(o,0,a,s),o+=2)}return o}_project(t,n,r,i){let o=1/0,a,s,c;if(i<0){if(n<=this.ymin)return null;(a=(this.ymin-n)/i)<o&&(c=this.ymin,s=t+(o=a)*r)}else if(i>0){if(n>=this.ymax)return null;(a=(this.ymax-n)/i)<o&&(c=this.ymax,s=t+(o=a)*r)}if(r>0){if(t>=this.xmax)return null;(a=(this.xmax-t)/r)<o&&(s=this.xmax,c=n+(o=a)*i)}else if(r<0){if(t<=this.xmin)return null;(a=(this.xmin-t)/r)<o&&(s=this.xmin,c=n+(o=a)*i)}return[s,c]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let n=0;n<t.length;n+=2){const r=(n+2)%t.length,i=(n+4)%t.length;(t[n]===t[r]&&t[r]===t[i]||t[n+1]===t[r+1]&&t[r+1]===t[i+1])&&(t.splice(r,2),n-=2)}t.length||(t=null)}return t}}const Xre=2*Math.PI,ba=Math.pow;function Qre(e){return e[0]}function Jre(e){return e[1]}function eie(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const i=2*t[r],o=2*t[r+1],a=2*t[r+2];if((n[a]-n[i])*(n[o+1]-n[i+1])-(n[o]-n[i])*(n[a+1]-n[i+1])>1e-10)return!1}return!0}function tie(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class Vb{static from(t,n=Qre,r=Jre,i){return new Vb("length"in t?nie(t,n,r,i):Float64Array.from(rie(t,n,r,i)))}constructor(t){this._delaunator=new Zd(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&eie(t)){this.collinear=Int32Array.from({length:n.length/2},(f,p)=>p).sort((f,p)=>n[2*f]-n[2*p]||n[2*f+1]-n[2*p+1]);const c=this.collinear[0],l=this.collinear[this.collinear.length-1],u=[n[2*c],n[2*c+1],n[2*l],n[2*l+1]],d=1e-8*Math.hypot(u[3]-u[1],u[2]-u[0]);for(let f=0,p=n.length/2;f<p;++f){const g=tie(n[2*f],n[2*f+1],d);n[2*f]=g[0],n[2*f+1]=g[1]}this._delaunator=new Zd(n)}else delete this.collinear;const r=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,o=this.triangles=this._delaunator.triangles,a=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let c=0,l=r.length;c<l;++c){const u=o[c%3===2?c-2:c+1];(r[c]===-1||a[u]===-1)&&(a[u]=c)}for(let c=0,l=i.length;c<l;++c)s[i[c]]=c;i.length<=2&&i.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=i[0],a[i[0]]=1,i.length===2&&(a[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(t){return new Zre(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:i,halfedges:o,triangles:a,collinear:s}=this;if(s){const d=s.indexOf(t);d>0&&(yield s[d-1]),d<s.length-1&&(yield s[d+1]);return}const c=n[t];if(c===-1)return;let l=c,u=-1;do{if(yield u=a[l],l=l%3===2?l-2:l+1,a[l]!==t)return;if(l=o[l],l===-1){const d=r[(i[t]+1)%r.length];d!==u&&(yield d);return}}while(l!==c)}find(t,n,r=0){if(t=+t,t!==t||(n=+n,n!==n))return-1;const i=r;let o;for(;(o=this._step(r,t,n))>=0&&o!==r&&o!==i;)r=o;return o}_step(t,n,r){const{inedges:i,hull:o,_hullIndex:a,halfedges:s,triangles:c,points:l}=this;if(i[t]===-1||!l.length)return(t+1)%(l.length>>1);let u=t,d=ba(n-l[t*2],2)+ba(r-l[t*2+1],2);const f=i[t];let p=f;do{let g=c[p];const m=ba(n-l[g*2],2)+ba(r-l[g*2+1],2);if(m<d&&(d=m,u=g),p=p%3===2?p-2:p+1,c[p]!==t)break;if(p=s[p],p===-1){if(p=o[(a[t]+1)%o.length],p!==g&&ba(n-l[p*2],2)+ba(r-l[p*2+1],2)<d)return p;break}}while(p!==f);return u}render(t){const n=t==null?t=new Ro:void 0,{points:r,halfedges:i,triangles:o}=this;for(let a=0,s=i.length;a<s;++a){const c=i[a];if(c<a)continue;const l=o[a]*2,u=o[c]*2;t.moveTo(r[l],r[l+1]),t.lineTo(r[u],r[u+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n){n===void 0&&(!t||typeof t.moveTo!="function")&&(n=t,t=null),n=n==null?2:+n;const r=t==null?t=new Ro:void 0,{points:i}=this;for(let o=0,a=i.length;o<a;o+=2){const s=i[o],c=i[o+1];t.moveTo(s+n,c),t.arc(s,c,n,0,Xre)}return r&&r.value()}renderHull(t){const n=t==null?t=new Ro:void 0,{hull:r,points:i}=this,o=r[0]*2,a=r.length;t.moveTo(i[o],i[o+1]);for(let s=1;s<a;++s){const c=2*r[s];t.lineTo(i[c],i[c+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new iv;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new Ro:void 0,{points:i,triangles:o}=this,a=o[t*=3]*2,s=o[t+1]*2,c=o[t+2]*2;return n.moveTo(i[a],i[a+1]),n.lineTo(i[s],i[s+1]),n.lineTo(i[c],i[c+1]),n.closePath(),r&&r.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,r=t.length/3;n<r;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new iv;return this.renderTriangle(t,n),n.value()}}function nie(e,t,n,r){const i=e.length,o=new Float64Array(i*2);for(let a=0;a<i;++a){const s=e[a];o[a*2]=t.call(r,s,a,e),o[a*2+1]=n.call(r,s,a,e)}return o}function*rie(e,t,n,r){let i=0;for(const o of e)yield t.call(r,o,i,e),yield n.call(r,o,i,e),++i}var Hb=function(e){return[e.x,e.y]},Ul=hk,tO="cursor",nO="top",iie=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?Hb:n,i=e.margin,o=i===void 0?Ul:i;return t.map(function(a){var s=r(a),c=s[0],l=s[1];return[c+o.left,l+o.top]})},oie=function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=i===void 0?Ul:i,a=e.debug,s=Vb.from(t),c=a?s.voronoi([0,0,o.left+n+o.right,o.top+r+o.bottom]):void 0;return{points:t,delaunay:s,voronoi:c}},rO=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?Hb:n,i=e.width,o=e.height,a=e.margin,s=a===void 0?Ul:a,c=e.debug;return h.useMemo(function(){return oie({points:iie({points:t,margin:s,getNodePosition:r}),width:i,height:o,margin:s,debug:c})},[t,i,o,s,c])},aie=function(e){var t=e.elementRef,n=e.nodes,r=e.getNodePosition,i=r===void 0?Hb:r,o=e.delaunay,a=e.setCurrent,s=e.margin,c=s===void 0?Ul:s,l=e.detectionRadius,u=l===void 0?1/0:l,d=e.isInteractive,f=d===void 0||d,p=e.onMouseEnter,g=e.onMouseMove,m=e.onMouseLeave,v=e.onClick,x=e.onTouchStart,w=e.onTouchMove,_=e.onTouchEnd,C=e.enableTouchCrosshair,y=C!==void 0&&C,$=e.tooltip,E=e.tooltipPosition,k=E===void 0?tO:E,T=e.tooltipAnchor,O=T===void 0?nO:T,S=h.useState(null),M=S[0],A=S[1],j=h.useRef(null);h.useEffect(function(){j.current=M},[j,M]);var P=h.useCallback(function(F){if(!t.current)return null;var N=bc(t.current,F),B=N[0],H=N[1],R=o.find(B,H),Y=R!==void 0?n[R]:null;if(Y&&u!==1/0){var Q=i(Y),te=Q[0],ue=Q[1];XJ(B,H,te+c.left,ue+c.top)>u&&(R=null,Y=null)}return R===null||Y===null?null:[R,Y]},[t,o,n,i,c,u]),I=ta(),L=I.showTooltipAt,V=I.showTooltipFromEvent,z=I.hideTooltip,D=h.useMemo(function(){if($)return k==="cursor"?function(F,N){V($(F),N,O)}:function(F){var N=i(F),B=N[0],H=N[1];L($(F),[B+c.left,H+c.top],O)}},[L,V,$,k,O,i,c]),W=h.useCallback(function(F){var N=P(F);if(A(N),a==null||a(N?N[1]:null),N){var B=N[1];D==null||D(B,F),p==null||p(N[1],F)}},[P,A,a,D,p]),G=h.useCallback(function(F){var N=P(F);if(A(N),N){var B=N[0],H=N[1];if(a==null||a(H),D==null||D(H,F),j.current){var R=j.current,Y=R[0],Q=R[1];B!==Y?m==null||m(Q,F):g==null||g(H,F)}else p==null||p(H,F)}else a==null||a(null),z==null||z(),j.current&&(m==null||m(j.current[1],F))},[P,A,j,p,g,m,D,z]),J=h.useCallback(function(F){A(null),a==null||a(null),z(),m&&j.current&&m(j.current[1],F)},[A,a,j,z,m]),Z=h.useCallback(function(F){var N=P(F);A(N),N&&(v==null||v(N[1],F))},[P,A,v]),X=h.useCallback(function(F){var N=P(F);y&&(A(N),a==null||a(N?N[1]:null)),N&&(x==null||x(N[1],F))},[P,A,a,y,x]),ee=h.useCallback(function(F){var N=P(F);y&&(A(N),a==null||a(N?N[1]:null)),N&&(w==null||w(N[1],F))},[P,A,a,y,w]),ne=h.useCallback(function(F){y&&(A(null),a==null||a(null)),_&&j.current&&_(j.current[1],F)},[y,A,a,_,j]);return{current:M,handleMouseEnter:f?W:void 0,handleMouseMove:f?G:void 0,handleMouseLeave:f?J:void 0,handleClick:f?Z:void 0,handleTouchStart:f?X:void 0,handleTouchMove:f?ee:void 0,handleTouchEnd:f?ne:void 0}},sie=function(e){var t=e.nodes,n=e.width,r=e.height,i=e.margin,o=i===void 0?Ul:i,a=e.getNodePosition,s=e.setCurrent,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,p=e.onTouchMove,g=e.onTouchEnd,m=e.enableTouchCrosshair,v=m!==void 0&&m,x=e.detectionRadius,w=x===void 0?1/0:x,_=e.tooltip,C=e.tooltipPosition,y=C===void 0?tO:C,$=e.tooltipAnchor,E=$===void 0?nO:$,k=e.debug,T=h.useRef(null),O=rO({points:t,getNodePosition:a,width:n,height:r,margin:o,debug:k}),S=O.delaunay,M=O.voronoi,A=aie({elementRef:T,nodes:t,delaunay:S,margin:o,detectionRadius:w,setCurrent:s,onMouseEnter:c,onMouseMove:l,onMouseLeave:u,onClick:d,onTouchStart:f,onTouchMove:p,onTouchEnd:g,enableTouchCrosshair:v,tooltip:_,tooltipPosition:y,tooltipAnchor:E}),j=A.current,P=A.handleMouseEnter,I=A.handleMouseMove,L=A.handleMouseLeave,V=A.handleClick,z=A.handleTouchStart,D=A.handleTouchMove,W=A.handleTouchEnd,G=h.useMemo(function(){if(k&&M)return M.render()},[k,M]);return b.jsxs("g",{ref:T,transform:"translate("+-o.left+","+-o.top+")",children:[k&&M&&b.jsxs(b.Fragment,{children:[b.jsx("path",{d:G,stroke:"red",strokeWidth:1,opacity:.75}),w<1/0&&b.jsx("path",{stroke:"red",strokeWidth:.35,fill:"none",d:S.renderPoints(void 0,w)}),j&&b.jsx("path",{fill:"pink",opacity:.35,d:M.renderCell(j[0])})]}),b.jsx("rect",{"data-ref":"mesh-interceptor",width:o.left+n+o.right,height:o.top+r+o.bottom,fill:"red",opacity:0,style:{cursor:"auto"},onMouseEnter:P,onMouseMove:I,onMouseLeave:L,onTouchStart:z,onTouchMove:D,onTouchEnd:W,onClick:V})]})},cie=function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()},lie=function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle="pink",e.fill(),e.restore()};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)}var qb=h.memo(function(e){var t=e.point;return b.jsx(L0,{id:b.jsxs("span",{children:["x: ",b.jsx("strong",{children:t.data.xFormatted}),", y:"," ",b.jsx("strong",{children:t.data.yFormatted})]}),enableChip:!0,color:t.serieColor})}),iO=h.memo(function(e){var t=e.slice,n=e.axis,r=Ft(),i=n==="x"?"y":"x";return b.jsx(uT,{rows:t.points.map(function(o){return[b.jsx(lT,{color:o.serieColor,style:r.tooltip.chip},"chip"),o.serieId,b.jsx("span",{style:r.tooltip.tableCellValue,children:o.data[i+"Formatted"]},"value")]})})}),oO={curve:"linear",xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto"},layers:["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"],axisBottom:{},axisLeft:{},enableGridX:!0,enableGridY:!0,enablePoints:!0,pointSize:6,pointColor:{from:"color"},pointBorderWidth:0,pointBorderColor:{theme:"background"},enablePointLabel:!1,pointLabel:"yFormatted",colors:{scheme:"nivo"},enableArea:!1,areaBaselineValue:0,areaOpacity:.2,areaBlendMode:"normal",lineWidth:2,legends:[],isInteractive:!0,tooltip:qb,enableSlices:!1,debugSlices:!1,sliceTooltip:iO,debugMesh:!1,enableCrosshair:!0,crosshairType:"bottom-left"},ji=In({},oO,{enablePointLabel:!1,useMesh:!1,enableTouchCrosshair:!1,animate:!0,motionConfig:"gentle",defs:[],fill:[],role:"img"});In({},oO,{pixelRatio:typeof window<"u"&&window.devicePixelRatio||1});var uie=function(e){var t=e.curve;return h.useMemo(function(){return Tb().defined(function(n){return n.x!==null&&n.y!==null}).x(function(n){return n.x}).y(function(n){return n.y}).curve(fk(t))},[t])},die=function(e){var t=e.curve,n=e.yScale,r=e.areaBaselineValue;return h.useMemo(function(){return kZ().defined(function(i){return i.x!==null&&i.y!==null}).x(function(i){return i.x}).y1(function(i){return i.y}).curve(fk(t)).y0(n(r))},[t,n,r])},fie=function(e){var t=e.componentId,n=e.enableSlices,r=e.points,i=e.width,o=e.height;return h.useMemo(function(){if(n===!1)return[];if(n==="x"){var a=new Map;return r.forEach(function(c){c.data.x!==null&&c.data.y!==null&&(a.has(c.x)?a.get(c.x).push(c):a.set(c.x,[c]))}),Array.from(a.entries()).sort(function(c,l){return c[0]-l[0]}).map(function(c,l,u){var d,f,p=c[0],g=c[1],m=u[l-1],v=u[l+1];return d=m?p-(p-m[0])/2:p,f=v?p-d+(v[0]-p)/2:i-d,{id:"slice:"+t+":"+p,x0:d,x:p,y0:0,y:0,width:f,height:o,points:g.reverse()}})}if(n==="y"){var s=new Map;return r.forEach(function(c){c.data.x!==null&&c.data.y!==null&&(s.has(c.y)?s.get(c.y).push(c):s.set(c.y,[c]))}),Array.from(s.entries()).sort(function(c,l){return c[0]-l[0]}).map(function(c,l,u){var d,f,p=c[0],g=c[1],m=u[l-1],v=u[l+1];return d=m?p-(p-m[0])/2:p,f=v?p-d+(v[0]-p)/2:o-d,{id:p,x0:0,x:0,y0:d,y:p,width:i,height:f,points:g.reverse()}})}},[t,n,o,r,i])},hie="line",aO=function(e){var t=e.data,n=e.xScale,r=n===void 0?ji.xScale:n,i=e.xFormat,o=e.yScale,a=o===void 0?ji.yScale:o,s=e.yFormat,c=e.width,l=e.height,u=e.colors,d=u===void 0?ji.colors:u,f=e.curve,p=f===void 0?ji.curve:f,g=e.areaBaselineValue,m=g===void 0?ji.areaBaselineValue:g,v=e.pointColor,x=v===void 0?ji.pointColor:v,w=e.pointBorderColor,_=w===void 0?ji.pointBorderColor:w,C=e.enableSlices,y=C===void 0?ji.enableSlicesTooltip:C,$=h.useState(Pre(hie))[0],E=Qa(i),k=Qa(s),T=Bb(d,"id"),O=Ft(),S=qr(x,O),M=qr(_,O),A=h.useState([]),j=A[0],P=A[1],I=h.useMemo(function(){return _re(t.filter(function(ee){return j.indexOf(ee.id)===-1}),r,a,c,l)},[t,j,r,a,c,l]),L=I.xScale,V=I.yScale,z=I.series,D=h.useMemo(function(){var ee=t.map(function(F){return{id:F.id,label:F.id,color:T(F)}}),ne=ee.map(function(F){return In({},z.find(function(N){return N.id===F.id}),{color:F.color})}).filter(function(F){return!!F.id});return{legendData:ee.map(function(F){return In({},F,{hidden:!ne.find(function(N){return N.id===F.id})})}).reverse(),series:ne}},[t,z,T]),W=D.legendData,G=D.series,J=h.useCallback(function(ee){P(function(ne){return ne.indexOf(ee)>-1?ne.filter(function(F){return F!==ee}):[].concat(ne,[ee])})},[]),Z=function(ee){var ne=ee.series,F=ee.getPointColor,N=ee.getPointBorderColor,B=ee.formatX,H=ee.formatY;return h.useMemo(function(){return ne.reduce(function(R,Y){return[].concat(R,Y.data.filter(function(Q){return Q.position.x!==null&&Q.position.y!==null}).map(function(Q,te){var ue={id:Y.id+"."+te,index:R.length+te,serieId:Y.id,serieColor:Y.color,x:Q.position.x,y:Q.position.y};return ue.color=F(Y),ue.borderColor=N(ue),ue.data=In({},Q.data,{xFormatted:B(Q.data.x),yFormatted:H(Q.data.y)}),ue}))},[])},[ne,F,N,B,H])}({series:G,getPointColor:S,getPointBorderColor:M,formatX:E,formatY:k}),X=fie({componentId:$,enableSlices:y,points:Z,width:c,height:l});return{legendData:W,toggleSerie:J,lineGenerator:uie({curve:p}),areaGenerator:die({curve:p,yScale:V,areaBaselineValue:m}),getColor:T,series:G,xScale:L,yScale:V,slices:X,points:Z}},pie=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,i=e.fill,o=e.path,a=Fn(),s=a.animate,c=a.config,l=Ib(o),u=Zr({color:r,config:c,immediate:!s});return b.jsx(Lt.path,{d:l,fill:i||u.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})},mie=h.memo(function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,i=e.lines.slice(0).reverse();return b.jsx("g",{children:i.map(function(o){return b.jsx(pie,In({path:t(o.data.map(function(a){return a.position}))},In({areaOpacity:n,areaBlendMode:r},o)),o.id)})})}),gie=h.memo(function(e){var t=e.lineGenerator,n=e.points,r=e.color,i=e.thickness,o=h.useMemo(function(){return t(n)},[t,n]),a=Ib(o);return b.jsx(Lt.path,{d:a,fill:"none",strokeWidth:i,stroke:r})}),vie=h.memo(function(e){var t=e.lines,n=e.lineGenerator,r=e.lineWidth;return t.slice(0).reverse().map(function(i){var o=i.id,a=i.data,s=i.color;return b.jsx(gie,{id:o,points:a.map(function(c){return c.position}),lineGenerator:n,color:s,thickness:r},o)})}),bie=h.memo(function(e){var t=e.slice,n=e.slices,r=e.axis,i=e.debug,o=e.tooltip,a=e.isCurrent,s=e.setCurrent,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,p=e.onTouchMove,g=e.onTouchEnd,m=ta(),v=m.showTooltipFromEvent,x=m.hideTooltip,w=h.useCallback(function(T){v(h.createElement(o,{slice:t,axis:r}),T,"right"),s(t),c&&c(t,T)},[v,o,t,r,s,c]),_=h.useCallback(function(T){v(h.createElement(o,{slice:t,axis:r}),T,"right"),l&&l(t,T)},[v,o,t,r,l]),C=h.useCallback(function(T){x(),s(null),u&&u(t,T)},[x,s,u,t]),y=h.useCallback(function(T){d&&d(t,T)},[t,d]),$=h.useCallback(function(T){v(h.createElement(o,{slice:t,axis:r}),T,"right"),s(t),f&&f(t,T)},[r,f,s,v,t,o]),E=h.useCallback(function(T){var O=T.touches[0],S=document.elementFromPoint(O.clientX,O.clientY),M=S==null?void 0:S.getAttribute("data-ref");if(M){var A=n.find(function(j){return j.id===M});A&&(v(h.createElement(o,{slice:A,axis:r}),T,"right"),s(A))}p&&p(t,T)},[r,p,s,v,t,n,o]),k=h.useCallback(function(T){x(),s(null),g&&g(t,T)},[x,s,g,t]);return b.jsx("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:i?1:0,strokeOpacity:.75,fill:"red",fillOpacity:a&&i?.35:0,onMouseEnter:w,onMouseMove:_,onMouseLeave:C,onClick:y,onTouchStart:$,onTouchMove:E,onTouchEnd:k,"data-ref":t.id})}),yie=h.memo(function(e){var t=e.slices,n=e.axis,r=e.debug,i=e.height,o=e.tooltip,a=e.current,s=e.setCurrent,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,p=e.onTouchMove,g=e.onTouchEnd;return t.map(function(m){return b.jsx(bie,{slice:m,slices:t,axis:n,debug:r,height:i,tooltip:o,setCurrent:s,isCurrent:a!==null&&a.id===m.id,onMouseEnter:c,onMouseMove:l,onMouseLeave:u,onClick:d,onTouchStart:f,onTouchMove:p,onTouchEnd:g},m.id)})}),xie=h.memo(function(e){var t=e.points,n=e.symbol,r=e.size,i=e.borderWidth,o=e.enableLabel,a=e.label,s=e.labelYOffset,c=Ft(),l=ZJ(a),u=t.slice(0).reverse().map(function(d){return{id:d.id,x:d.x,y:d.y,datum:d.data,fill:d.color,stroke:d.borderColor,label:o?l(d):null}});return b.jsx("g",{children:u.map(function(d){return b.jsx(YJ,{x:d.x,y:d.y,datum:d.datum,symbol:n,size:r,color:d.fill,borderWidth:i,borderColor:d.stroke,label:d.label,labelYOffset:s,theme:c},d.id)})})}),wie=h.memo(function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=e.setCurrent,a=e.onMouseEnter,s=e.onMouseMove,c=e.onMouseLeave,l=e.onClick,u=e.onTouchStart,d=e.onTouchMove,f=e.onTouchEnd,p=e.tooltip,g=e.debug,m=e.enableTouchCrosshair,v=ta(),x=v.showTooltipAt,w=v.hideTooltip,_=h.useCallback(function(O,S){x(h.createElement(p,{point:O}),[O.x+i.left,O.y+i.top],"top"),a&&a(O,S)},[x,p,a,i]),C=h.useCallback(function(O,S){x(h.createElement(p,{point:O}),[O.x+i.left,O.y+i.top],"top"),s&&s(O,S)},[x,p,i.left,i.top,s]),y=h.useCallback(function(O,S){w(),c&&c(O,S)},[w,c]),$=h.useCallback(function(O,S){l&&l(O,S)},[l]),E=h.useCallback(function(O,S){x(h.createElement(p,{point:O}),[O.x+i.left,O.y+i.top],"top"),u&&u(O,S)},[i.left,i.top,u,x,p]),k=h.useCallback(function(O,S){x(h.createElement(p,{point:O}),[O.x+i.left,O.y+i.top],"top"),d&&d(O,S)},[i.left,i.top,d,x,p]),T=h.useCallback(function(O,S){w(),f&&f(O,S)},[f,w]);return b.jsx(sie,{nodes:t,width:n,height:r,setCurrent:o,onMouseEnter:_,onMouseMove:C,onMouseLeave:y,onClick:$,onTouchStart:E,onTouchMove:k,onTouchEnd:T,enableTouchCrosshair:m,debug:g})}),_ie=Tk(function(e){var t=e.data,n=e.xScale,r=n===void 0?{type:"point"}:n,i=e.xFormat,o=e.yScale,a=o===void 0?{type:"linear",min:0,max:"auto"}:o,s=e.yFormat,c=e.layers,l=c===void 0?["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"]:c,u=e.curve,d=u===void 0?"linear":u,f=e.areaBaselineValue,p=f===void 0?0:f,g=e.colors,m=g===void 0?{scheme:"nivo"}:g,v=e.margin,x=e.width,w=e.height,_=e.axisTop,C=e.axisRight,y=e.axisBottom,$=y===void 0?{}:y,E=e.axisLeft,k=E===void 0?{}:E,T=e.enableGridX,O=T===void 0||T,S=e.enableGridY,M=S===void 0||S,A=e.gridXValues,j=e.gridYValues,P=e.lineWidth,I=P===void 0?2:P,L=e.enableArea,V=L!==void 0&&L,z=e.areaOpacity,D=z===void 0?.2:z,W=e.areaBlendMode,G=W===void 0?"normal":W,J=e.enablePoints,Z=J===void 0||J,X=e.pointSymbol,ee=e.pointSize,ne=ee===void 0?6:ee,F=e.pointColor,N=F===void 0?{from:"color"}:F,B=e.pointBorderWidth,H=B===void 0?0:B,R=e.pointBorderColor,Y=R===void 0?{theme:"background"}:R,Q=e.enablePointLabel,te=Q!==void 0&&Q,ue=e.pointLabel,oe=ue===void 0?"data.yFormatted":ue,ae=e.pointLabelYOffset,pe=e.defs,ve=pe===void 0?[]:pe,Ee=e.fill,Se=Ee===void 0?[]:Ee,Oe=e.markers,Fe=e.legends,fe=Fe===void 0?[]:Fe,se=e.isInteractive,we=se===void 0||se,Ve=e.useMesh,Ot=Ve!==void 0&&Ve,ze=e.debugMesh,ft=ze!==void 0&&ze,_t=e.onMouseEnter,Vt=e.onMouseMove,gt=e.onMouseLeave,bt=e.onClick,Ct=e.onTouchStart,Ht=e.onTouchMove,Be=e.onTouchEnd,Ie=e.tooltip,et=Ie===void 0?qb:Ie,He=e.enableSlices,tt=He!==void 0&&He,nt=e.debugSlices,$t=nt!==void 0&&nt,ht=e.sliceTooltip,ut=ht===void 0?iO:ht,xt=e.enableCrosshair,yt=xt===void 0||xt,at=e.crosshairType,St=at===void 0?"bottom-left":at,Mt=e.enableTouchCrosshair,_e=Mt!==void 0&&Mt,Me=e.role,Ne=Me===void 0?"img":Me,Ke=Bl(x,w,v),Ye=Ke.margin,Et=Ke.innerWidth,q=Ke.innerHeight,me=Ke.outerWidth,le=Ke.outerHeight,he=aO({data:t,xScale:r,xFormat:i,yScale:a,yFormat:s,width:Et,height:q,colors:m,curve:d,areaBaselineValue:p,pointColor:N,pointBorderColor:Y,enableSlices:tt}),$e=he.legendData,De=he.toggleSerie,Te=he.lineGenerator,je=he.areaGenerator,qe=he.series,We=he.xScale,st=he.yScale,nn=he.slices,Ut=he.points,cn=Ft(),Ce=qr(N,cn),xn=qr(Y,cn),qt=h.useState(null),xr=qt[0],eu=qt[1],wr=h.useState(null),uo=wr[0],tu=wr[1],Jr={grid:b.jsx(Jk,{theme:cn,width:Et,height:q,xScale:O?We:null,yScale:M?st:null,xValues:A,yValues:j},"grid"),markers:b.jsx(Ek,{markers:Oe,width:Et,height:q,xScale:We,yScale:st,theme:cn},"markers"),axes:b.jsx(Qk,{xScale:We,yScale:st,width:Et,height:q,theme:cn,top:_,right:C,bottom:$,left:k},"axes"),areas:null,lines:b.jsx(vie,{lines:qe,lineGenerator:Te,lineWidth:I},"lines"),slices:null,points:null,crosshair:null,mesh:null,legends:fe.map(function(ei,Os){return b.jsx(Wb,In({},ei,{containerWidth:Et,containerHeight:q,data:ei.data||$e,theme:cn,toggleSerie:ei.toggleSerie?De:void 0}),"legend."+Os)})},pp=Fb(ve,qe,Se);return V&&(Jr.areas=b.jsx(mie,{areaGenerator:je,areaOpacity:D,areaBlendMode:G,lines:qe},"areas")),we&&tt!==!1&&(Jr.slices=b.jsx(yie,{slices:nn,axis:tt,debug:$t,height:q,tooltip:ut,current:uo,setCurrent:tu,onMouseEnter:_t,onMouseMove:Vt,onMouseLeave:gt,onClick:bt,onTouchStart:Ct,onTouchMove:Ht,onTouchEnd:Be},"slices")),Z&&(Jr.points=b.jsx(xie,{points:Ut,symbol:X,size:ne,color:Ce,borderWidth:H,borderColor:xn,enableLabel:te,label:oe,labelYOffset:ae},"points")),we&&yt&&(xr!==null&&(Jr.crosshair=b.jsx(Dg,{width:Et,height:q,x:xr.x,y:xr.y,type:St},"crosshair")),uo!==null&&(Jr.crosshair=b.jsx(Dg,{width:Et,height:q,x:uo.x,y:uo.y,type:tt},"crosshair"))),we&&Ot&&tt===!1&&(Jr.mesh=b.jsx(wie,{points:Ut,width:Et,height:q,margin:Ye,current:xr,setCurrent:eu,onMouseEnter:_t,onMouseMove:Vt,onMouseLeave:gt,onClick:bt,onTouchStart:Ct,onTouchMove:Ht,onTouchEnd:Be,tooltip:et,enableTouchCrosshair:_e,debug:ft},"mesh")),b.jsx(Xh,{defs:pp,width:me,height:le,margin:Ye,role:Ne,children:l.map(function(ei,Os){return typeof ei=="function"?b.jsx(h.Fragment,{children:ei(In({},e,{innerWidth:Et,innerHeight:q,series:qe,slices:nn,points:Ut,xScale:We,yScale:st,lineGenerator:Te,areaGenerator:je,currentPoint:xr,setCurrentPoint:eu,currentSlice:uo,setCurrentSlice:tu}))},Os):Jr[ei]})})}),Cie=function(e){return b.jsx(Cs,{children:function(t){var n=t.width,r=t.height;return b.jsx(_ie,In({width:n,height:r},e))}})},$ie=Tk(function(e){var t=h.useRef(null),n=e.width,r=e.height,i=e.margin,o=e.pixelRatio,a=o===void 0?typeof window<"u"&&window.devicePixelRatio||1:o,s=e.data,c=e.xScale,l=c===void 0?{type:"point"}:c,u=e.xFormat,d=e.yScale,f=d===void 0?{type:"linear",min:0,max:"auto"}:d,p=e.yFormat,g=e.curve,m=g===void 0?"linear":g,v=e.layers,x=v===void 0?["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"]:v,w=e.colors,_=w===void 0?{scheme:"nivo"}:w,C=e.lineWidth,y=C===void 0?2:C,$=e.enableArea,E=$!==void 0&&$,k=e.areaBaselineValue,T=k===void 0?0:k,O=e.areaOpacity,S=O===void 0?.2:O,M=e.enablePoints,A=M===void 0||M,j=e.pointSize,P=j===void 0?6:j,I=e.pointColor,L=I===void 0?{from:"color"}:I,V=e.pointBorderWidth,z=V===void 0?0:V,D=e.pointBorderColor,W=D===void 0?{theme:"background"}:D,G=e.enableGridX,J=G===void 0||G,Z=e.gridXValues,X=e.enableGridY,ee=X===void 0||X,ne=e.gridYValues,F=e.axisTop,N=e.axisRight,B=e.axisBottom,H=B===void 0?{}:B,R=e.axisLeft,Y=R===void 0?{}:R,Q=e.legends,te=Q===void 0?[]:Q,ue=e.isInteractive,oe=ue===void 0||ue,ae=e.debugMesh,pe=ae!==void 0&&ae,ve=e.onMouseLeave,Ee=e.onClick,Se=e.tooltip,Oe=Se===void 0?qb:Se,Fe=e.canvasRef,fe=Bl(n,r,i),se=fe.margin,we=fe.innerWidth,Ve=fe.innerHeight,Ot=fe.outerWidth,ze=fe.outerHeight,ft=Ft(),_t=h.useState(null),Vt=_t[0],gt=_t[1],bt=aO({data:s,xScale:l,xFormat:u,yScale:f,yFormat:p,width:we,height:Ve,colors:_,curve:m,areaBaselineValue:T,pointColor:L,pointBorderColor:W}),Ct=bt.lineGenerator,Ht=bt.areaGenerator,Be=bt.series,Ie=bt.xScale,et=bt.yScale,He=bt.points,tt=rO({points:He,width:we,height:Ve,debug:pe}),nt=tt.delaunay,$t=tt.voronoi;h.useEffect(function(){Fe&&(Fe.current=t.current),t.current.width=Ot*a,t.current.height=ze*a;var _e=t.current.getContext("2d");_e.scale(a,a),_e.fillStyle=ft.background,_e.fillRect(0,0,Ot,ze),_e.translate(se.left,se.top),x.forEach(function(Me){if(typeof Me=="function"&&Me({ctx:_e,innerWidth:we,innerHeight:Ve,series:Be,points:He,xScale:Ie,yScale:et,lineWidth:y,lineGenerator:Ct,areaGenerator:Ht,currentPoint:Vt,setCurrentPoint:gt}),Me==="grid"&&ft.grid.line.strokeWidth>0&&(_e.lineWidth=ft.grid.line.strokeWidth,_e.strokeStyle=ft.grid.line.stroke,J&&Kd(_e,{width:we,height:Ve,scale:Ie,axis:"x",values:Z}),ee&&Kd(_e,{width:we,height:Ve,scale:et,axis:"y",values:ne})),Me==="axes"&&eO(_e,{xScale:Ie,yScale:et,width:we,height:Ve,top:F,right:N,bottom:H,left:Y,theme:ft}),Me==="areas"&&E===!0){_e.save(),_e.globalAlpha=S,Ht.context(_e);for(var Ne=Be.length-1;Ne>=0;Ne--)_e.fillStyle=Be[Ne].color,_e.beginPath(),Ht(Be[Ne].data.map(function(Ye){return Ye.position})),_e.fill();_e.restore()}if(Me==="lines"&&(Ct.context(_e),Be.forEach(function(Ye){_e.strokeStyle=Ye.color,_e.lineWidth=y,_e.beginPath(),Ct(Ye.data.map(function(Et){return Et.position})),_e.stroke()})),Me==="points"&&A===!0&&P>0&&He.forEach(function(Ye){_e.fillStyle=Ye.color,_e.beginPath(),_e.arc(Ye.x,Ye.y,P/2,0,2*Math.PI),_e.fill(),z>0&&(_e.strokeStyle=Ye.borderColor,_e.lineWidth=z,_e.stroke())}),Me==="mesh"&&pe===!0&&(cie(_e,$t),Vt&&lie(_e,$t,Vt.index)),Me==="legends"){var Ke=Be.map(function(Ye){return{id:Ye.id,label:Ye.id,color:Ye.color}}).reverse();te.forEach(function(Ye){Lk(_e,In({},Ye,{data:Ye.data||Ke,containerWidth:we,containerHeight:Ve,theme:ft}))})}})},[t,Ot,ze,x,ft,Ct,Be,Ie,et,J,Z,ee,ne,F,N,H,Y,te,He,A,P,Vt]);var ht=h.useCallback(function(_e){var Me=bc(t.current,_e),Ne=Me[0],Ke=Me[1];if(!Ok(se.left,se.top,we,Ve,Ne,Ke))return null;var Ye=nt.find(Ne-se.left,Ke-se.top);return He[Ye]},[t,se,we,Ve,nt]),ut=ta(),xt=ut.showTooltipFromEvent,yt=ut.hideTooltip,at=h.useCallback(function(_e){var Me=ht(_e);gt(Me),Me?xt(h.createElement(Oe,{point:Me}),_e):yt()},[ht,gt,xt,yt,Oe]),St=h.useCallback(function(_e){yt(),gt(null),Vt&&ve&&ve(Vt,_e)},[yt,gt,ve]),Mt=h.useCallback(function(_e){if(Ee){var Me=ht(_e);Me&&Ee(Me,_e)}},[ht,Ee]);return b.jsx("canvas",{ref:t,width:Ot*a,height:ze*a,style:{width:Ot,height:ze,cursor:oe?"auto":"normal"},onMouseEnter:oe?at:void 0,onMouseMove:oe?at:void 0,onMouseLeave:oe?St:void 0,onClick:oe?Mt:void 0})}),Sie=h.forwardRef(function(e,t){return b.jsx($ie,In({},e,{canvasRef:t}))});h.forwardRef(function(e,t){return b.jsx(Cs,{children:function(n){var r=n.width,i=n.height;return b.jsx(Sie,In({width:r,height:i},e,{ref:t}))}})});var Eie=Uk;function Tie(e,t){var n=[];return Eie(e,function(r,i,o){t(r,i,o)&&n.push(r)}),n}var kie=Tie,Oie=ik,Mie=kie,Rie=Ub,Aie=Kn;function jie(e,t){var n=Aie(e)?Oie:Mie;return n(e,Rie(t))}var Nie=jie;const Die=rn(Nie);var Iie=Si,Pie=yr,Lie="[object Number]";function Fie(e){return typeof e=="number"||Pie(e)&&Iie(e)==Lie}var Bie=Fie;const O2=rn(Bie);function zie(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Wie=zie,Uie=bs,Vie=Fl;function Hie(e,t){return e&&Uie(t,Vie(t),e)}var qie=Hie,Yie=bs,Gie=Il;function Kie(e,t){return e&&Yie(t,Gie(t),e)}var Zie=Kie,Xie=bs,Qie=Nb;function Jie(e,t){return Xie(e,Qie(e),t)}var eoe=Jie,toe=Ab,noe=V0,roe=Nb,ioe=ok,ooe=Object.getOwnPropertySymbols,aoe=ooe?function(e){for(var t=[];e;)toe(t,roe(e)),e=noe(e);return t}:ioe,sO=aoe,soe=bs,coe=sO;function loe(e,t){return soe(e,coe(e),t)}var uoe=loe,doe=rk,foe=sO,hoe=Il;function poe(e){return doe(e,hoe,foe)}var cO=poe,moe=Object.prototype,goe=moe.hasOwnProperty;function voe(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&goe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var boe=voe,yoe=U0;function xoe(e,t){var n=t?yoe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var woe=xoe,_oe=/\w*$/;function Coe(e){var t=new e.constructor(e.source,_oe.exec(e));return t.lastIndex=e.lastIndex,t}var $oe=Coe,M2=fs,R2=M2?M2.prototype:void 0,A2=R2?R2.valueOf:void 0;function Soe(e){return A2?Object(A2.call(e)):{}}var Eoe=Soe,Toe=U0,koe=woe,Ooe=$oe,Moe=Eoe,Roe=wT,Aoe="[object Boolean]",joe="[object Date]",Noe="[object Map]",Doe="[object Number]",Ioe="[object RegExp]",Poe="[object Set]",Loe="[object String]",Foe="[object Symbol]",Boe="[object ArrayBuffer]",zoe="[object DataView]",Woe="[object Float32Array]",Uoe="[object Float64Array]",Voe="[object Int8Array]",Hoe="[object Int16Array]",qoe="[object Int32Array]",Yoe="[object Uint8Array]",Goe="[object Uint8ClampedArray]",Koe="[object Uint16Array]",Zoe="[object Uint32Array]";function Xoe(e,t,n){var r=e.constructor;switch(t){case Boe:return Toe(e);case Aoe:case joe:return new r(+e);case zoe:return koe(e,n);case Woe:case Uoe:case Voe:case Hoe:case qoe:case Yoe:case Goe:case Koe:case Zoe:return Roe(e,n);case Noe:return new r;case Doe:case Loe:return new r(e);case Ioe:return Ooe(e);case Poe:return new r;case Foe:return Moe(e)}}var Qoe=Xoe,Joe=Gh,eae=yr,tae="[object Map]";function nae(e){return eae(e)&&Joe(e)==tae}var rae=nae,iae=rae,oae=vs,j2=oh,N2=j2&&j2.isMap,aae=N2?oae(N2):iae,sae=aae,cae=Gh,lae=yr,uae="[object Set]";function dae(e){return lae(e)&&cae(e)==uae}var fae=dae,hae=fae,pae=vs,D2=oh,I2=D2&&D2.isSet,mae=I2?pae(I2):hae,gae=mae,vae=nh,bae=Wie,yae=Z0,xae=qie,wae=Zie,_ae=yT,Cae=_T,$ae=eoe,Sae=uoe,Eae=ak,Tae=cO,kae=Gh,Oae=boe,Mae=Qoe,Rae=$T,Aae=Kn,jae=ih,Nae=sae,Dae=Qr,Iae=gae,Pae=Fl,Lae=Il,Fae=1,Bae=2,zae=4,lO="[object Arguments]",Wae="[object Array]",Uae="[object Boolean]",Vae="[object Date]",Hae="[object Error]",uO="[object Function]",qae="[object GeneratorFunction]",Yae="[object Map]",Gae="[object Number]",dO="[object Object]",Kae="[object RegExp]",Zae="[object Set]",Xae="[object String]",Qae="[object Symbol]",Jae="[object WeakMap]",ese="[object ArrayBuffer]",tse="[object DataView]",nse="[object Float32Array]",rse="[object Float64Array]",ise="[object Int8Array]",ose="[object Int16Array]",ase="[object Int32Array]",sse="[object Uint8Array]",cse="[object Uint8ClampedArray]",lse="[object Uint16Array]",use="[object Uint32Array]",Kt={};Kt[lO]=Kt[Wae]=Kt[ese]=Kt[tse]=Kt[Uae]=Kt[Vae]=Kt[nse]=Kt[rse]=Kt[ise]=Kt[ose]=Kt[ase]=Kt[Yae]=Kt[Gae]=Kt[dO]=Kt[Kae]=Kt[Zae]=Kt[Xae]=Kt[Qae]=Kt[sse]=Kt[cse]=Kt[lse]=Kt[use]=!0;Kt[Hae]=Kt[uO]=Kt[Jae]=!1;function Ju(e,t,n,r,i,o){var a,s=t&Fae,c=t&Bae,l=t&zae;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!Dae(e))return e;var u=Aae(e);if(u){if(a=Oae(e),!s)return Cae(e,a)}else{var d=kae(e),f=d==uO||d==qae;if(jae(e))return _ae(e,s);if(d==dO||d==lO||f&&!i){if(a=c||f?{}:Rae(e),!s)return c?Sae(e,wae(a,e)):$ae(e,xae(a,e))}else{if(!Kt[d])return i?e:{};a=Mae(e,d,s)}}o||(o=new vae);var p=o.get(e);if(p)return p;o.set(e,a),Iae(e)?e.forEach(function(v){a.add(Ju(v,t,n,v,e,o))}):Nae(e)&&e.forEach(function(v,x){a.set(x,Ju(v,t,n,x,e,o))});var g=l?c?Tae:Eae:c?Lae:Pae,m=u?void 0:g(e);return bae(m||e,function(v,x){m&&(x=v,v=e[x]),yae(a,x,Ju(v,t,n,x,e,o))}),a}var dse=Ju;function fse(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var hse=fse,pse=Pl,mse=hse;function gse(e,t){return t.length<2?e:pse(e,mse(t,0,-1))}var vse=gse,bse=ys,yse=HT,xse=vse,wse=xs;function _se(e,t){return t=bse(t,e),e=xse(e,t),e==null||delete e[wse(yse(t))]}var Cse=_se,$se=Y0;function Sse(e){return $se(e)?void 0:e}var Ese=Sse,Tse=lh,kse=dse,Ose=Cse,Mse=ys,Rse=bs,Ase=Ese,jse=tk,Nse=cO,Dse=1,Ise=2,Pse=4,Lse=jse(function(e,t){var n={};if(e==null)return n;var r=!1;t=Tse(t,function(o){return o=Mse(o,e),r||(r=o.length>1),o}),Rse(e,Nse(e),n),r&&(n=kse(n,Dse|Ise|Pse,Ase));for(var i=t.length;i--;)Ose(n,t[i]);return n}),Fse=Lse;const fO=rn(Fse);function Yr(){return Yr=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},Yr.apply(this,arguments)}var ov={dotSize:4,noteWidth:120,noteTextOffset:8,animate:!0},Bse=function(e){var t=typeof e;return h.isValidElement(e)||t==="string"||t==="function"||t==="object"},zse=function(e){var t=typeof e;return t==="string"||t==="function"},ul=function(e){return e.type==="circle"},av=function(e){return e.type==="dot"},dl=function(e){return e.type==="rect"},Wse=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce(function(o,a){var s=a.offset||0;return[].concat(o,Die(t,a.match).map(function(c){var l=r(c),u=i(c);return(ul(a)||dl(a))&&(u.size=u.size+2*s,u.width=u.width+2*s,u.height=u.height+2*s),Yr({},fO(a,["match","offset"]),l,u,{size:a.size||u.size,datum:c})}))},[])},Use=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return WJ(Zh(i))},hO=function(e){var t,n,r=e.x,i=e.y,o=e.noteX,a=e.noteY,s=e.noteWidth,c=s===void 0?ov.noteWidth:s,l=e.noteTextOffset,u=l===void 0?ov.noteTextOffset:l;if(O2(o))t=r+o;else{if(o.abs===void 0)throw new Error("noteX should be either a number or an object containing an 'abs' property");t=o.abs}if(O2(a))n=i+a;else{if(a.abs===void 0)throw new Error("noteY should be either a number or an object containing an 'abs' property");n=a.abs}var d=r,f=i,p=Use(r,i,t,n);if(ul(e)){var g=Po(fr(p),e.size/2);d+=g.x,f+=g.y}if(dl(e)){var m=Math.round((p+90)/45)%8;m===0&&(f-=e.height/2),m===1&&(d+=e.width/2,f-=e.height/2),m===2&&(d+=e.width/2),m===3&&(d+=e.width/2,f+=e.height/2),m===4&&(f+=e.height/2),m===5&&(d-=e.width/2,f+=e.height/2),m===6&&(d-=e.width/2),m===7&&(d-=e.width/2,f-=e.height/2)}var v=t,x=t;return(p+90)%360>180?(v-=c,x-=c):x+=c,{points:[[d,f],[t,n],[x,n]],text:[v,n-u],angle:p+90}},pO=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return h.useMemo(function(){return Wse({data:t,annotations:n,getPosition:r,getDimensions:i})},[t,n,r,i])},Vse=function(e){var t=e.annotations;return h.useMemo(function(){return t.map(function(n){return Yr({},n,{computed:hO(Yr({},n))})})},[t])},Hse=function(e){return h.useMemo(function(){return hO(e)},[e])},qse=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=Ft(),a=Fn(),s=a.animate,c=a.config,l=Zr({x:n,y:r,config:c,immediate:!s});return typeof i=="function"?h.createElement(i,{x:n,y:r,datum:t}):b.jsxs(b.Fragment,{children:[o.annotations.text.outlineWidth>0&&b.jsx(Lt.text,{x:l.x,y:l.y,style:Yr({},o.annotations.text,{strokeLinejoin:"round",strokeWidth:2*o.annotations.text.outlineWidth,stroke:o.annotations.text.outlineColor}),children:i}),b.jsx(Lt.text,{x:l.x,y:l.y,style:fO(o.annotations.text,["outlineWidth","outlineColor"]),children:i})]})},P2=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,i=Ft(),o=h.useMemo(function(){var c=t[0];return t.slice(1).reduce(function(l,u){return l+" L"+u[0]+","+u[1]},"M"+c[0]+","+c[1])},[t]),a=Ib(o);if(r&&i.annotations.link.outlineWidth<=0)return null;var s=Yr({},i.annotations.link);return r&&(s.strokeLinecap="square",s.strokeWidth=i.annotations.link.strokeWidth+2*i.annotations.link.outlineWidth,s.stroke=i.annotations.link.outlineColor,s.opacity=i.annotations.link.outlineOpacity),b.jsx(Lt.path,{fill:"none",d:a,style:s})},Yse=function(e){var t=e.x,n=e.y,r=e.size,i=Ft(),o=Fn(),a=o.animate,s=o.config,c=Zr({x:t,y:n,radius:r/2,config:s,immediate:!a});return b.jsxs(b.Fragment,{children:[i.annotations.outline.outlineWidth>0&&b.jsx(Lt.circle,{cx:c.x,cy:c.y,r:c.radius,style:Yr({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),b.jsx(Lt.circle,{cx:c.x,cy:c.y,r:c.radius,style:i.annotations.outline})]})},Gse=function(e){var t=e.x,n=e.y,r=e.size,i=r===void 0?ov.dotSize:r,o=Ft(),a=Fn(),s=a.animate,c=a.config,l=Zr({x:t,y:n,radius:i/2,config:c,immediate:!s});return b.jsxs(b.Fragment,{children:[o.annotations.outline.outlineWidth>0&&b.jsx(Lt.circle,{cx:l.x,cy:l.y,r:l.radius,style:Yr({},o.annotations.outline,{fill:"none",strokeWidth:2*o.annotations.outline.outlineWidth,stroke:o.annotations.outline.outlineColor,opacity:o.annotations.outline.outlineOpacity})}),b.jsx(Lt.circle,{cx:l.x,cy:l.y,r:l.radius,style:o.annotations.symbol})]})},Kse=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=e.borderRadius,a=o===void 0?6:o,s=Ft(),c=Fn(),l=c.animate,u=c.config,d=Zr({x:t-r/2,y:n-i/2,width:r,height:i,config:u,immediate:!l});return b.jsxs(b.Fragment,{children:[s.annotations.outline.outlineWidth>0&&b.jsx(Lt.rect,{x:d.x,y:d.y,rx:a,ry:a,width:d.width,height:d.height,style:Yr({},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})}),b.jsx(Lt.rect,{x:d.x,y:d.y,rx:a,ry:a,width:d.width,height:d.height,style:s.annotations.outline})]})},Zse=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=Hse(e);if(!Bse(i))throw new Error("note should be a valid react element");return b.jsxs(b.Fragment,{children:[b.jsx(P2,{points:o.points,isOutline:!0}),ul(e)&&b.jsx(Yse,{x:n,y:r,size:e.size}),av(e)&&b.jsx(Gse,{x:n,y:r,size:e.size}),dl(e)&&b.jsx(Kse,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),b.jsx(P2,{points:o.points}),b.jsx(qse,{datum:t,x:o.text[0],y:o.text[1],note:i})]})},L2=function(e,t){t.forEach(function(n,r){var i=n[0],o=n[1];r===0?e.moveTo(i,o):e.lineTo(i,o)})},Xse=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(i){if(!zse(i.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),L2(e,i.computed.points),e.stroke(),e.lineCap="butt"),ul(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),av(i)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),dl(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),L2(e,i.computed.points),e.stroke(),ul(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),av(i)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.fill()),dl(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),typeof i.note=="function"?i.note(e,{datum:i.datum,x:i.computed.text[0],y:i.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+"px "+r.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(i.note,i.computed.text[0],i.computed.text[1]),e.lineJoin="miter"),e.fillText(i.note,i.computed.text[0],i.computed.text[1]))}),e.restore())};function Wt(){return Wt=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},Wt.apply(this,arguments)}function $s(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var F2,Qse=function(e){var t=e.bars,n=e.annotations,r=pO({data:t,annotations:n,getPosition:function(i){return{x:i.x+i.width/2,y:i.y+i.height/2}},getDimensions:function(i){var o=i.height,a=i.width;return{width:a,height:o,size:Math.max(a,o)}}});return b.jsx(b.Fragment,{children:r.map(function(i,o){return b.jsx(Zse,Wt({},i),o)})})},Jse=function(e){var t=e.width,n=e.height,r=e.legends,i=e.toggleSerie;return b.jsx(b.Fragment,{children:r.map(function(o,a){var s,c=o[0],l=o[1];return b.jsx(Wb,Wt({},c,{containerWidth:t,containerHeight:n,data:(s=c.data)!=null?s:l,toggleSerie:c.toggleSerie&&c.dataFrom==="keys"?i:void 0}),a)})})},ece=["data"],tce=function(e){var t,n=e.bar,r=n.data,i=$s(n,ece),o=e.style,a=o.borderColor,s=o.color,c=o.height,l=o.labelColor,u=o.labelOpacity,d=o.labelX,f=o.labelY,p=o.transform,g=o.width,m=e.borderRadius,v=e.borderWidth,x=e.label,w=e.shouldRenderLabel,_=e.isInteractive,C=e.onClick,y=e.onMouseEnter,$=e.onMouseLeave,E=e.tooltip,k=e.isFocusable,T=e.ariaLabel,O=e.ariaLabelledBy,S=e.ariaDescribedBy,M=Ft(),A=ta(),j=A.showTooltipFromEvent,P=A.showTooltipAt,I=A.hideTooltip,L=h.useMemo(function(){return function(){return h.createElement(E,Wt({},i,r))}},[E,i,r]),V=h.useCallback(function(Z){C==null||C(Wt({color:i.color},r),Z)},[i,r,C]),z=h.useCallback(function(Z){return j(L(),Z)},[j,L]),D=h.useCallback(function(Z){y==null||y(r,Z),j(L(),Z)},[r,y,j,L]),W=h.useCallback(function(Z){$==null||$(r,Z),I()},[r,I,$]),G=h.useCallback(function(){P(L(),[i.absX+i.width/2,i.absY])},[P,L,i]),J=h.useCallback(function(){I()},[I]);return b.jsxs(Lt.g,{transform:p,children:[b.jsx(Lt.rect,{width:to(g,function(Z){return Math.max(Z,0)}),height:to(c,function(Z){return Math.max(Z,0)}),rx:m,ry:m,fill:(t=r.fill)!=null?t:s,strokeWidth:v,stroke:a,focusable:k,tabIndex:k?0:void 0,"aria-label":T?T(r):void 0,"aria-labelledby":O?O(r):void 0,"aria-describedby":S?S(r):void 0,onMouseEnter:_?D:void 0,onMouseMove:_?z:void 0,onMouseLeave:_?W:void 0,onClick:_?V:void 0,onFocus:_&&k?G:void 0,onBlur:_&&k?J:void 0}),w&&b.jsx(Lt.text,{x:d,y:f,textAnchor:"middle",dominantBaseline:"central",fillOpacity:u,style:Wt({},M.labels.text,{pointerEvents:"none",fill:l}),children:x})]})},nce=["color","label"],rce=function(e){var t=e.color,n=e.label,r=$s(e,nce);return b.jsx(L0,{id:n,value:r.formattedValue,enableChip:!0,color:t})},Yt={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:rce,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],markers:[],enableTotals:!1,totalsOffset:10},Qt=Wt({},Yt,{layers:["grid","axes","bars","totals","markers","legends","annotations"],barComponent:tce,defs:[],fill:[],animate:!0,motionConfig:"default",role:"img",isFocusable:!1}),_n=Wt({},Yt,{layers:["grid","axes","bars","totals","legends","annotations"],pixelRatio:typeof window<"u"&&(F2=window.devicePixelRatio)!=null?F2:1}),mO=function(e,t,n,r,i,o){return ll(r,{all:e.map(t),min:0,max:0},i,o).padding(n)},gO=function(e,t){return e.map(function(n){return Wt({},t.reduce(function(r,i){return r[i]=null,r},{}),n)})},Qh=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},Jh=function(e){return[e,Number(e)]},ice=["layout","minValue","maxValue","reverse","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],Yb=function(e,t){return e>t},vO=function(e,t){return e<t},bO=function(e,t){return Array.from(" ".repeat(t-e),function(n,r){return e+r})},oce=function(e){return Yb(e,0)?0:e},ace=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getColor,s=e.getIndex,c=e.getTooltipLabel,l=e.innerPadding,u=l===void 0?0:l,d=e.keys,f=e.xScale,p=e.yScale,g=e.margin,m=n?vO:Yb,v=i.map(Qh),x=[];return d.forEach(function(w,_){return bO(0,f.domain().length).forEach(function(C){var y,$,E,k=Jh(i[C][w]),T=k[0],O=k[1],S=s(i[C]),M=((y=f(S))!=null?y:0)+t*_+u*_,A=m($=O,0)?(E=p($))!=null?E:0:r,j=function(I,L){var V;return m(I,0)?r-L:((V=p(I))!=null?V:0)-r}(O,A),P={id:w,value:T===null?T:O,formattedValue:o(O),hidden:!1,index:C,indexValue:S,data:v[C]};x.push({key:w+"."+P.indexValue,index:x.length,data:P,x:M,y:A,absX:g.left+M,absY:g.top+A,width:t,height:j,color:a(P),label:c(P)})})}),x},sce=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getIndex,s=e.getColor,c=e.getTooltipLabel,l=e.keys,u=e.innerPadding,d=u===void 0?0:u,f=e.xScale,p=e.yScale,g=e.margin,m=n?vO:Yb,v=i.map(Qh),x=[];return l.forEach(function(w,_){return bO(0,p.domain().length).forEach(function(C){var y,$,E,k=Jh(i[C][w]),T=k[0],O=k[1],S=a(i[C]),M=m($=O,0)?r:(E=f($))!=null?E:0,A=((y=p(S))!=null?y:0)+t*_+d*_,j=function(I,L){var V;return m(I,0)?((V=f(I))!=null?V:0)-r:r-L}(O,M),P={id:w,value:T===null?T:O,formattedValue:o(O),hidden:!1,index:C,indexValue:S,data:v[C]};x.push({key:w+"."+P.indexValue,index:x.length,data:P,x:M,y:A,absX:g.left+M,absY:g.top+A,width:j,height:t,color:s(P),label:c(P)})})}),x},cce=function(e){var t,n,r=e.layout,i=e.minValue,o=e.maxValue,a=e.reverse,s=e.width,c=e.height,l=e.padding,u=l===void 0?0:l,d=e.innerPadding,f=d===void 0?0:d,p=e.valueScale,g=e.indexScale,m=e.hiddenIds,v=m===void 0?[]:m,x=$s(e,ice),w=x.keys.filter(function(D){return!v.includes(D)}),_=gO(x.data,w),C=r==="vertical"?["y","x",s]:["x","y",c],y=C[0],$=C[1],E=C[2],k=mO(_,x.getIndex,u,g,E,$),T=Wt({max:o,min:i,reverse:a},p),O=T.min==="auto"?oce:function(D){return D},S=_.reduce(function(D,W){return[].concat(D,w.map(function(G){return W[G]}))},[]).filter(Boolean),M=O(Math.min.apply(Math,S)),A=(n=Math.max.apply(Math,S),isFinite(n)?n:0),j=ll(T,{all:S,min:M,max:A},y==="x"?s:c,y),P=r==="vertical"?[k,j]:[j,k],I=P[0],L=P[1],V=(k.bandwidth()-f*(w.length-1))/w.length,z=[Wt({},x,{data:_,keys:w,innerPadding:f,xScale:I,yScale:L}),V,T.reverse,(t=j(0))!=null?t:0];return{xScale:I,yScale:L,bars:V>0?r==="vertical"?ace.apply(void 0,z):sce.apply(void 0,z):[]}},lce=["data","layout","minValue","maxValue","reverse","width","height","padding","valueScale","indexScale","hiddenIds"],uce=function e(t){var n;return t.some(Array.isArray)?e((n=[]).concat.apply(n,t)):t},dce=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,c=e.stackedData,l=e.xScale,u=e.yScale,d=e.margin,f=[];return c.forEach(function(p){return l.domain().forEach(function(g,m){var v,x,w=p[m],_=(v=l(o(w.data)))!=null?v:0,C=((x=function(O){return u(O[n?0:1])}(w))!=null?x:0)+.5*s,y=function(O,S){var M;return((M=u(O[n?1:0]))!=null?M:0)-S}(w,C)-s,$=Jh(w.data[p.key]),E=$[0],k=$[1],T={id:p.key,value:E===null?E:k,formattedValue:r(k),hidden:!1,index:m,indexValue:g,data:Qh(w.data)};f.push({key:p.key+"."+g,index:f.length,data:T,x:_,y:C,absX:d.left+_,absY:d.top+C,width:t,height:y,color:i(T),label:a(T)})})}),f},fce=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,c=e.stackedData,l=e.xScale,u=e.yScale,d=e.margin,f=[];return c.forEach(function(p){return u.domain().forEach(function(g,m){var v,x,w=p[m],_=(v=u(o(w.data)))!=null?v:0,C=((x=function(O){return l(O[n?1:0])}(w))!=null?x:0)+.5*s,y=function(O,S){var M;return((M=l(O[n?0:1]))!=null?M:0)-S}(w,C)-s,$=Jh(w.data[p.key]),E=$[0],k=$[1],T={id:p.key,value:E===null?E:k,formattedValue:r(k),hidden:!1,index:m,indexValue:g,data:Qh(w.data)};f.push({key:p.key+"."+g,index:f.length,data:T,x:C,y:_,absX:d.left+C,absY:d.top+_,width:y,height:t,color:i(T),label:a(T)})})}),f},hce=function(e){var t,n=e.data,r=e.layout,i=e.minValue,o=e.maxValue,a=e.reverse,s=e.width,c=e.height,l=e.padding,u=l===void 0?0:l,d=e.valueScale,f=e.indexScale,p=e.hiddenIds,g=p===void 0?[]:p,m=$s(e,lce),v=m.keys.filter(function(V){return!g.includes(V)}),x=XZ().keys(v).offset(QZ)(gO(n,v)),w=r==="vertical"?["y","x",s]:["x","y",c],_=w[0],C=w[1],y=w[2],$=mO(n,m.getIndex,u,f,y,C),E=Wt({max:o,min:i,reverse:a},d),k=(t=uce(x),d.type==="log"?t.filter(function(V){return V!==0}):t),T=Math.min.apply(Math,k),O=Math.max.apply(Math,k),S=ll(E,{all:k,min:T,max:O},_==="x"?s:c,_),M=r==="vertical"?[$,S]:[S,$],A=M[0],j=M[1],P=m.innerPadding>0?m.innerPadding:0,I=$.bandwidth(),L=[Wt({},m,{innerPadding:P,stackedData:x,xScale:A,yScale:j}),I,E.reverse];return{xScale:A,yScale:j,bars:I>0?r==="vertical"?dce.apply(void 0,L):fce.apply(void 0,L):[]}},pce=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,o=e.layout,a=e.legendLabel,s=e.reverse,c=kk(a??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(l,u,d){var f=nv(l.map(function(p){var g,m;return{id:(g=p.data.indexValue)!=null?g:"",label:d(p.data),hidden:p.data.hidden,color:(m=p.color)!=null?m:"#000"}}),function(p){return p.id});return u==="horizontal"&&f.reverse(),f}(t,o,c):function(l,u,d,f,p,g){var m=nv(l.map(function(v){var x;return{id:v.data.id,label:g(v.data),hidden:v.data.hidden,color:(x=v.color)!=null?x:"#000"}}),function(v){return v.id});return(u==="vertical"&&f==="stacked"&&d==="column"&&p!==!0||u==="horizontal"&&f==="stacked"&&p===!0)&&m.reverse(),m}(t,o,n,i,s,c)},B2=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},mce=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},gce=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},vce=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},yO=function(e){var t=e.indexBy,n=t===void 0?Yt.indexBy:t,r=e.keys,i=r===void 0?Yt.keys:r,o=e.label,a=o===void 0?Yt.label:o,s=e.tooltipLabel,c=s===void 0?Yt.tooltipLabel:s,l=e.valueFormat,u=e.colors,d=u===void 0?Yt.colors:u,f=e.colorBy,p=f===void 0?Yt.colorBy:f,g=e.borderColor,m=g===void 0?Yt.borderColor:g,v=e.labelTextColor,x=v===void 0?Yt.labelTextColor:v,w=e.groupMode,_=w===void 0?Yt.groupMode:w,C=e.layout,y=C===void 0?Yt.layout:C,$=e.reverse,E=$===void 0?Yt.reverse:$,k=e.data,T=e.minValue,O=T===void 0?Yt.minValue:T,S=e.maxValue,M=S===void 0?Yt.maxValue:S,A=e.margin,j=e.width,P=e.height,I=e.padding,L=I===void 0?Yt.padding:I,V=e.innerPadding,z=V===void 0?Yt.innerPadding:V,D=e.valueScale,W=D===void 0?Yt.valueScale:D,G=e.indexScale,J=G===void 0?Yt.indexScale:G,Z=e.initialHiddenIds,X=Z===void 0?Yt.initialHiddenIds:Z,ee=e.enableLabel,ne=ee===void 0?Yt.enableLabel:ee,F=e.labelSkipWidth,N=F===void 0?Yt.labelSkipWidth:F,B=e.labelSkipHeight,H=B===void 0?Yt.labelSkipHeight:B,R=e.legends,Y=R===void 0?Yt.legends:R,Q=e.legendLabel,te=e.totalsOffset,ue=te===void 0?Yt.totalsOffset:te,oe=h.useState(X??[]),ae=oe[0],pe=oe[1],ve=h.useCallback(function(Be){pe(function(Ie){return Ie.indexOf(Be)>-1?Ie.filter(function(et){return et!==Be}):[].concat(Ie,[Be])})},[]),Ee=Lo(n),Se=Lo(a),Oe=Lo(c),Fe=Qa(l),fe=Ft(),se=Bb(d,p),we=qr(m,fe),Ve=qr(x,fe),Ot=(_==="grouped"?cce:hce)({layout:y,reverse:E,data:k,getIndex:Ee,keys:i,minValue:O,maxValue:M,width:j,height:P,getColor:se,padding:L,innerPadding:z,valueScale:W,indexScale:J,hiddenIds:ae,formatValue:Fe,getTooltipLabel:Oe,margin:A}),ze=Ot.bars,ft=Ot.xScale,_t=Ot.yScale,Vt=h.useMemo(function(){return ze.filter(function(Be){return Be.data.value!==null}).map(function(Be,Ie){return Wt({},Be,{index:Ie})})},[ze]),gt=h.useCallback(function(Be){var Ie=Be.width,et=Be.height;return!!ne&&!(N>0&&Ie<N)&&!(H>0&&et<H)},[ne,N,H]),bt=h.useMemo(function(){return i.map(function(Be){var Ie=ze.find(function(et){return et.data.id===Be});return Wt({},Ie,{data:Wt({id:Be},Ie==null?void 0:Ie.data,{hidden:ae.includes(Be)})})})},[ae,i,ze]),Ct=h.useMemo(function(){return Y.map(function(Be){return[Be,pce({bars:Be.dataFrom==="keys"?bt:ze,direction:Be.direction,from:Be.dataFrom,groupMode:_,layout:y,legendLabel:Q,reverse:E})]})},[Y,bt,ze,_,y,Q,E]),Ht=h.useMemo(function(){return function(Be,Ie,et,He,tt,nt,$t){He===void 0&&(He=Yt.layout),tt===void 0&&(tt=Yt.groupMode);var ht=[];if(Be.length===0)return ht;var ut=new Map,xt=Be[0].width,yt=Be[0].height;if(tt==="stacked"){var at=new Map;Be.forEach(function(_e){var Me=_e.data,Ne=Me.indexValue,Ke=Me.value;B2(ut,Ne,Number(Ke)),mce(at,Ne,Number(Ke))}),at.forEach(function(_e,Me){var Ne,Ke,Ye,Et=ut.get(Me)||0;He==="vertical"?(Ne=Ie(Me),Ke=et(_e),Ye=et(_e/2)):(Ne=Ie(_e),Ke=et(Me),Ye=Ie(_e/2)),Ne+=He==="vertical"?xt/2:nt,Ke+=He==="vertical"?-nt:yt/2,ht.push({key:"total_"+Me,x:Ne,y:Ke,value:Et,formattedValue:$t(Et),animationOffset:Ye})})}else if(tt==="grouped"){var St=new Map,Mt=new Map;Be.forEach(function(_e){var Me=_e.data,Ne=Me.indexValue,Ke=Me.value;B2(ut,Ne,Number(Ke)),gce(St,Ne,Number(Ke)),vce(Mt,Ne)}),St.forEach(function(_e,Me){var Ne,Ke,Ye,Et=ut.get(Me)||0,q=Mt.get(Me);He==="vertical"?(Ne=Ie(Me),Ke=et(_e),Ye=et(_e/2)):(Ne=Ie(_e),Ke=et(Me),Ye=Ie(_e/2)),Ne+=He==="vertical"?q*xt/2:nt,Ke+=He==="vertical"?-nt:q*yt/2,ht.push({key:"total_"+Me,x:Ne,y:Ke,value:Et,formattedValue:$t(Et),animationOffset:Ye})})}return ht}(ze,ft,_t,y,_,ue,Fe)},[ze,ft,_t,y,_,ue,Fe]);return{bars:ze,barsWithValue:Vt,xScale:ft,yScale:_t,getIndex:Ee,getLabel:Se,getTooltipLabel:Oe,formatValue:Fe,getColor:se,getBorderColor:we,getLabelColor:Ve,shouldRenderBarLabel:gt,hiddenIds:ae,toggleSerie:ve,legendsWithData:Ct,barTotals:Ht}},bce=function(e){var t=e.data,n=e.springConfig,r=e.animate,i=e.layout,o=i===void 0?Qt.layout:i,a=Ft();return ea(t,{keys:function(s){return s.key},from:function(s){return{x:o==="vertical"?s.x:s.animationOffset,y:o==="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:o==="vertical"?s.x:s.animationOffset,y:o==="vertical"?s.animationOffset:s.y,labelOpacity:0}},config:n,immediate:!r,initial:r?void 0:null})(function(s,c){return b.jsx(Lt.text,{x:s.x,y:s.y,fillOpacity:s.labelOpacity,style:Wt({},a.labels.text,{pointerEvents:"none",fill:a.text.fill}),fontWeight:"bold",fontSize:a.labels.text.fontSize,fontFamily:a.labels.text.fontFamily,textAnchor:o==="vertical"?"middle":"start",alignmentBaseline:o==="vertical"?"alphabetic":"middle",children:c.formattedValue},c.key)})},yce=["isInteractive","animate","motionConfig","theme","renderWrapper"],xce=function(e){var t=e.data,n=e.indexBy,r=e.keys,i=e.margin,o=e.width,a=e.height,s=e.groupMode,c=e.layout,l=e.reverse,u=e.minValue,d=e.maxValue,f=e.valueScale,p=e.indexScale,g=e.padding,m=e.innerPadding,v=e.axisTop,x=e.axisRight,w=e.axisBottom,_=w===void 0?Qt.axisBottom:w,C=e.axisLeft,y=C===void 0?Qt.axisLeft:C,$=e.enableGridX,E=$===void 0?Qt.enableGridX:$,k=e.enableGridY,T=k===void 0?Qt.enableGridY:k,O=e.gridXValues,S=e.gridYValues,M=e.layers,A=M===void 0?Qt.layers:M,j=e.barComponent,P=j===void 0?Qt.barComponent:j,I=e.enableLabel,L=I===void 0?Qt.enableLabel:I,V=e.label,z=e.labelSkipWidth,D=z===void 0?Qt.labelSkipWidth:z,W=e.labelSkipHeight,G=W===void 0?Qt.labelSkipHeight:W,J=e.labelTextColor,Z=e.markers,X=Z===void 0?Qt.markers:Z,ee=e.colorBy,ne=e.colors,F=e.defs,N=F===void 0?Qt.defs:F,B=e.fill,H=B===void 0?Qt.fill:B,R=e.borderRadius,Y=R===void 0?Qt.borderRadius:R,Q=e.borderWidth,te=Q===void 0?Qt.borderWidth:Q,ue=e.borderColor,oe=e.annotations,ae=oe===void 0?Qt.annotations:oe,pe=e.legendLabel,ve=e.tooltipLabel,Ee=e.valueFormat,Se=e.isInteractive,Oe=Se===void 0?Qt.isInteractive:Se,Fe=e.tooltip,fe=Fe===void 0?Qt.tooltip:Fe,se=e.onClick,we=e.onMouseEnter,Ve=e.onMouseLeave,Ot=e.legends,ze=e.role,ft=ze===void 0?Qt.role:ze,_t=e.ariaLabel,Vt=e.ariaLabelledBy,gt=e.ariaDescribedBy,bt=e.isFocusable,Ct=bt===void 0?Qt.isFocusable:bt,Ht=e.barAriaLabel,Be=e.barAriaLabelledBy,Ie=e.barAriaDescribedBy,et=e.initialHiddenIds,He=e.enableTotals,tt=He===void 0?Qt.enableTotals:He,nt=e.totalsOffset,$t=nt===void 0?Qt.totalsOffset:nt,ht=Fn(),ut=ht.animate,xt=ht.config,yt=Bl(o,a,i),at=yt.outerWidth,St=yt.outerHeight,Mt=yt.margin,_e=yt.innerWidth,Me=yt.innerHeight,Ne=yO({indexBy:n,label:V,tooltipLabel:ve,valueFormat:Ee,colors:ne,colorBy:ee,borderColor:ue,labelTextColor:J,groupMode:s,layout:c,reverse:l,data:t,keys:r,minValue:u,maxValue:d,margin:Mt,width:_e,height:Me,padding:g,innerPadding:m,valueScale:f,indexScale:p,enableLabel:L,labelSkipWidth:D,labelSkipHeight:G,legends:Ot,legendLabel:pe,initialHiddenIds:et,totalsOffset:$t}),Ke=Ne.bars,Ye=Ne.barsWithValue,Et=Ne.xScale,q=Ne.yScale,me=Ne.getLabel,le=Ne.getTooltipLabel,he=Ne.getBorderColor,$e=Ne.getLabelColor,De=Ne.shouldRenderBarLabel,Te=Ne.toggleSerie,je=Ne.legendsWithData,qe=Ne.barTotals,We=ea(Ye,{keys:function(Ce){return Ce.key},from:function(Ce){return Wt({borderColor:he(Ce),color:Ce.color,height:0,labelColor:$e(Ce),labelOpacity:0,labelX:Ce.width/2,labelY:Ce.height/2,transform:"translate("+Ce.x+", "+(Ce.y+Ce.height)+")",width:Ce.width},c==="vertical"?{}:{height:Ce.height,transform:"translate("+Ce.x+", "+Ce.y+")",width:0})},enter:function(Ce){return{borderColor:he(Ce),color:Ce.color,height:Ce.height,labelColor:$e(Ce),labelOpacity:1,labelX:Ce.width/2,labelY:Ce.height/2,transform:"translate("+Ce.x+", "+Ce.y+")",width:Ce.width}},update:function(Ce){return{borderColor:he(Ce),color:Ce.color,height:Ce.height,labelColor:$e(Ce),labelOpacity:1,labelX:Ce.width/2,labelY:Ce.height/2,transform:"translate("+Ce.x+", "+Ce.y+")",width:Ce.width}},leave:function(Ce){return Wt({borderColor:he(Ce),color:Ce.color,height:0,labelColor:$e(Ce),labelOpacity:0,labelX:Ce.width/2,labelY:0,transform:"translate("+Ce.x+", "+(Ce.y+Ce.height)+")",width:Ce.width},c==="vertical"?{}:{labelX:0,labelY:Ce.height/2,height:Ce.height,transform:"translate("+Ce.x+", "+Ce.y+")",width:0})},config:xt,immediate:!ut,initial:ut?void 0:null}),st=h.useMemo(function(){return{borderRadius:Y,borderWidth:te,enableLabel:L,isInteractive:Oe,labelSkipWidth:D,labelSkipHeight:G,onClick:se,onMouseEnter:we,onMouseLeave:Ve,getTooltipLabel:le,tooltip:fe,isFocusable:Ct,ariaLabel:Ht,ariaLabelledBy:Be,ariaDescribedBy:Ie}},[Y,te,L,le,Oe,G,D,se,we,Ve,fe,Ct,Ht,Be,Ie]),nn=Fb(N,Ke,H,{dataKey:"data",targetKey:"data.fill"}),Ut={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};A.includes("annotations")&&(Ut.annotations=b.jsx(Qse,{bars:Ke,annotations:ae},"annotations")),A.includes("axes")&&(Ut.axes=b.jsx(Qk,{xScale:Et,yScale:q,width:_e,height:Me,top:v,right:x,bottom:_,left:y},"axes")),A.includes("bars")&&(Ut.bars=b.jsx(h.Fragment,{children:We(function(Ce,xn){return h.createElement(P,Wt({},st,{bar:xn,style:Ce,shouldRenderLabel:De(xn),label:me(xn.data)}))})},"bars")),A.includes("grid")&&(Ut.grid=b.jsx(Jk,{width:_e,height:Me,xScale:E?Et:null,yScale:T?q:null,xValues:O,yValues:S},"grid")),A.includes("legends")&&(Ut.legends=b.jsx(Jse,{width:_e,height:Me,legends:je,toggleSerie:Te},"legends")),A.includes("markers")&&(Ut.markers=b.jsx(Ek,{markers:X,width:_e,height:Me,xScale:Et,yScale:q},"markers")),A.includes("totals")&&tt&&(Ut.totals=b.jsx(bce,{data:qe,springConfig:xt,animate:ut,layout:c},"totals"));var cn=h.useMemo(function(){return Wt({},st,{margin:Mt,width:o,height:a,innerWidth:_e,innerHeight:Me,bars:Ke,legendData:je,enableLabel:L,xScale:Et,yScale:q,tooltip:fe,getTooltipLabel:le,onClick:se,onMouseEnter:we,onMouseLeave:Ve})},[st,Mt,o,a,_e,Me,Ke,je,L,Et,q,fe,le,se,we,Ve]);return b.jsx(Xh,{width:at,height:St,margin:Mt,defs:nn,role:ft,ariaLabel:_t,ariaLabelledBy:Vt,ariaDescribedBy:gt,isFocusable:Ct,children:A.map(function(Ce,xn){var qt;return typeof Ce=="function"?b.jsx(h.Fragment,{children:h.createElement(Ce,cn)},xn):(qt=Ut==null?void 0:Ut[Ce])!=null?qt:null})})},wce=function(e){var t=e.isInteractive,n=t===void 0?Qt.isInteractive:t,r=e.animate,i=r===void 0?Qt.animate:r,o=e.motionConfig,a=o===void 0?Qt.motionConfig:o,s=e.theme,c=e.renderWrapper,l=$s(e,yce);return b.jsx(zl,{animate:i,isInteractive:n,motionConfig:a,renderWrapper:c,theme:s,children:b.jsx(xce,Wt({isInteractive:n},l))})},_ce=["isInteractive","renderWrapper","theme"],fm=function(e,t,n,r){return e.find(function(i){return Ok(i.x+t.left,i.y+t.top,i.width,i.height,n,r)})},Cce=function(e){var t=e.data,n=e.indexBy,r=e.keys,i=e.margin,o=e.width,a=e.height,s=e.groupMode,c=e.layout,l=e.reverse,u=e.minValue,d=e.maxValue,f=e.valueScale,p=e.indexScale,g=e.padding,m=e.innerPadding,v=e.axisTop,x=e.axisRight,w=e.axisBottom,_=w===void 0?_n.axisBottom:w,C=e.axisLeft,y=C===void 0?_n.axisLeft:C,$=e.enableGridX,E=$===void 0?_n.enableGridX:$,k=e.enableGridY,T=k===void 0?_n.enableGridY:k,O=e.gridXValues,S=e.gridYValues,M=e.layers,A=M===void 0?_n.layers:M,j=e.renderBar,P=j===void 0?function(le,he){var $e=he.bar,De=$e.color,Te=$e.height,je=$e.width,qe=$e.x,We=$e.y,st=he.borderColor,nn=he.borderRadius,Ut=he.borderWidth,cn=he.label,Ce=he.labelColor,xn=he.shouldRenderLabel;if(le.fillStyle=De,Ut>0&&(le.strokeStyle=st,le.lineWidth=Ut),le.beginPath(),nn>0){var qt=Math.min(nn,Te);le.moveTo(qe+qt,We),le.lineTo(qe+je-qt,We),le.quadraticCurveTo(qe+je,We,qe+je,We+qt),le.lineTo(qe+je,We+Te-qt),le.quadraticCurveTo(qe+je,We+Te,qe+je-qt,We+Te),le.lineTo(qe+qt,We+Te),le.quadraticCurveTo(qe,We+Te,qe,We+Te-qt),le.lineTo(qe,We+qt),le.quadraticCurveTo(qe,We,qe+qt,We),le.closePath()}else le.rect(qe,We,je,Te);le.fill(),Ut>0&&le.stroke(),xn&&(le.textBaseline="middle",le.textAlign="center",le.fillStyle=Ce,le.fillText(cn,qe+je/2,We+Te/2))}:j,I=e.enableLabel,L=I===void 0?_n.enableLabel:I,V=e.label,z=e.labelSkipWidth,D=z===void 0?_n.labelSkipWidth:z,W=e.labelSkipHeight,G=W===void 0?_n.labelSkipHeight:W,J=e.labelTextColor,Z=e.colorBy,X=e.colors,ee=e.borderRadius,ne=ee===void 0?_n.borderRadius:ee,F=e.borderWidth,N=F===void 0?_n.borderWidth:F,B=e.borderColor,H=e.annotations,R=H===void 0?_n.annotations:H,Y=e.legendLabel,Q=e.tooltipLabel,te=e.valueFormat,ue=e.isInteractive,oe=ue===void 0?_n.isInteractive:ue,ae=e.tooltip,pe=ae===void 0?_n.tooltip:ae,ve=e.onClick,Ee=e.onMouseEnter,Se=e.onMouseLeave,Oe=e.legends,Fe=e.pixelRatio,fe=Fe===void 0?_n.pixelRatio:Fe,se=e.canvasRef,we=e.enableTotals,Ve=we===void 0?_n.enableTotals:we,Ot=e.totalsOffset,ze=Ot===void 0?_n.totalsOffset:Ot,ft=h.useRef(null),_t=Ft(),Vt=Bl(o,a,i),gt=Vt.margin,bt=Vt.innerWidth,Ct=Vt.innerHeight,Ht=Vt.outerWidth,Be=Vt.outerHeight,Ie=yO({indexBy:n,label:V,tooltipLabel:Q,valueFormat:te,colors:X,colorBy:Z,borderColor:B,labelTextColor:J,groupMode:s,layout:c,reverse:l,data:t,keys:r,minValue:u,maxValue:d,margin:gt,width:bt,height:Ct,padding:g,innerPadding:m,valueScale:f,indexScale:p,enableLabel:L,labelSkipWidth:D,labelSkipHeight:G,legends:Oe,legendLabel:Y,totalsOffset:ze}),et=Ie.bars,He=Ie.barsWithValue,tt=Ie.xScale,nt=Ie.yScale,$t=Ie.getLabel,ht=Ie.getTooltipLabel,ut=Ie.getBorderColor,xt=Ie.getLabelColor,yt=Ie.shouldRenderBarLabel,at=Ie.legendsWithData,St=Ie.barTotals,Mt=ta(),_e=Mt.showTooltipFromEvent,Me=Mt.hideTooltip,Ne=Vse({annotations:pO({data:et,annotations:R,getPosition:function(le){return{x:le.x,y:le.y}},getDimensions:function(le){var he=le.width,$e=le.height;return{width:he,height:$e,size:Math.max(he,$e)}}})}),Ke=h.useMemo(function(){return{borderRadius:ne,borderWidth:N,isInteractive:oe,isFocusable:!1,labelSkipWidth:D,labelSkipHeight:G,margin:gt,width:o,height:a,innerWidth:bt,innerHeight:Ct,bars:et,legendData:at,enableLabel:L,xScale:tt,yScale:nt,tooltip:pe,getTooltipLabel:ht,onClick:ve,onMouseEnter:Ee,onMouseLeave:Se}},[ne,N,oe,D,G,gt,o,a,bt,Ct,et,at,L,tt,nt,pe,ht,ve,Ee,Se]),Ye=Qa(te);h.useEffect(function(){var le,he=(le=ft.current)==null?void 0:le.getContext("2d");ft.current&&he&&(ft.current.width=Ht*fe,ft.current.height=Be*fe,he.scale(fe,fe),he.fillStyle=_t.background,he.fillRect(0,0,Ht,Be),he.translate(gt.left,gt.top),A.forEach(function($e){$e==="grid"?typeof _t.grid.line.strokeWidth=="number"&&_t.grid.line.strokeWidth>0&&(he.lineWidth=_t.grid.line.strokeWidth,he.strokeStyle=_t.grid.line.stroke,E&&Kd(he,{width:bt,height:Ct,scale:tt,axis:"x",values:O}),T&&Kd(he,{width:bt,height:Ct,scale:nt,axis:"y",values:S})):$e==="axes"?eO(he,{xScale:tt,yScale:nt,width:bt,height:Ct,top:v,right:x,bottom:_,left:y,theme:_t}):$e==="bars"?He.forEach(function(De){P(he,{bar:De,borderColor:ut(De),borderRadius:ne,borderWidth:N,label:$t(De.data),labelColor:xt(De),shouldRenderLabel:yt(De)})}):$e==="legends"?at.forEach(function(De){var Te=De[0],je=De[1];Lk(he,Wt({},Te,{data:je,containerWidth:bt,containerHeight:Ct,theme:_t}))}):$e==="annotations"?Xse(he,{annotations:Ne,theme:_t}):$e==="totals"&&Ve?function(De,Te,je,qe){qe===void 0&&(qe=_n.layout),De.fillStyle=je.text.fill,De.font="bold "+je.labels.text.fontSize+"px "+je.labels.text.fontFamily,De.textBaseline=qe==="vertical"?"alphabetic":"middle",De.textAlign=qe==="vertical"?"center":"start",Te.forEach(function(We){De.fillText(We.formattedValue,We.x,We.y)})}(he,St,_t,c):typeof $e=="function"&&$e(he,Ke)}),he.save())},[_,y,x,v,He,ne,N,Ne,E,T,ut,$t,xt,O,S,s,a,Ct,bt,Ke,A,c,at,gt.left,gt.top,Be,Ht,fe,P,tt,nt,l,yt,_t,o,St,Ve,Ye]);var Et=h.useCallback(function(le){if(et&&ft.current){var he=bc(ft.current,le),$e=he[0],De=he[1],Te=fm(et,gt,$e,De);Te!==void 0?(_e(h.createElement(pe,Wt({},Te.data,{color:Te.color,label:Te.label,value:Number(Te.data.value)})),le),le.type==="mouseenter"&&(Ee==null||Ee(Te.data,le))):Me()}},[Me,gt,Ee,et,_e,pe]),q=h.useCallback(function(le){if(et&&ft.current){Me();var he=bc(ft.current,le),$e=he[0],De=he[1],Te=fm(et,gt,$e,De);Te&&(Se==null||Se(Te.data,le))}},[Me,gt,Se,et]),me=h.useCallback(function(le){if(et&&ft.current){var he=bc(ft.current,le),$e=he[0],De=he[1],Te=fm(et,gt,$e,De);Te!==void 0&&(ve==null||ve(Wt({},Te.data,{color:Te.color}),le))}},[gt,ve,et]);return b.jsx("canvas",{ref:function(le){ft.current=le,se&&"current"in se&&(se.current=le)},width:Ht*fe,height:Be*fe,style:{width:Ht,height:Be,cursor:oe?"auto":"normal"},onMouseEnter:oe?Et:void 0,onMouseMove:oe?Et:void 0,onMouseLeave:oe?q:void 0,onClick:oe?me:void 0})},$ce=h.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=$s(e,_ce);return b.jsx(zl,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:b.jsx(Cce,Wt({},o,{canvasRef:t}))})}),Sce=function(e){return b.jsx(Cs,{children:function(t){var n=t.width,r=t.height;return b.jsx(wce,Wt({width:n,height:r},e))}})};h.forwardRef(function(e,t){return b.jsx(Cs,{children:function(n){var r=n.width,i=n.height;return b.jsx($ce,Wt({width:r,height:i},e,{ref:t}))}})});const Ece="_side-content-bar_16o0s_1",Tce="_mobile_16o0s_12",kce="_expanded_16o0s_20",Oce="_content-container_16o0s_23",Mce="_resizer_16o0s_31",Rce="_expander_16o0s_46",Ace="_icon_16o0s_65",ri={"side-content-bar":"_side-content-bar_16o0s_1",sideContentBar:Ece,mobile:Tce,expanded:kce,"content-container":"_content-container_16o0s_23",contentContainer:Oce,resizer:Mce,expander:Rce,icon:Ace},xO=({width:e,children:t,isExpandedOnMobileState:[n,r],resizeable:i=!0,onResize:o})=>{const{ProjectIconComponent:a}=h.useContext(sn),{isMobile:s}=kl(),c=y0({onSwipedRight:d=>{d.velocity>.8&&r(!1)},delta:100}),[l,u]=h.useState(null);return b.jsxs(b.Fragment,{children:[b.jsxs("section",{className:de("luminus-side-content-bar shadow",ri.sideContentBar,{[ri.mobile]:s},{[ri.expanded]:n}),style:{width:`${e}px`},...c,children:[i&&!s?b.jsx("div",{role:"button",className:de(ri.resizer,"luminus-side-content-bar-resizer","shadow"),draggable:!0,onDragStart:d=>u({startX:d.clientX,widthStart:e}),onDrag:d=>o(((l==null?void 0:l.widthStart)??0)+(((l==null?void 0:l.startX)??0)-d.clientX)),onDragEnd:()=>u(null),children:b.jsx(a,{className:ri.icon,icon:"resizer-horizontal"})}):null,b.jsx("div",{className:ri.contentContainer,children:t})]}),s?b.jsx("div",{role:"button",onClick:()=>r(!n),className:de(ri.expander,{[ri.expanded]:n},"luminus-side-content-bar-expander","shadow"),children:b.jsx(a,{className:ri.icon,icon:"chevron-left"})}):null]})},jce=({title:e})=>b.jsx("div",{className:"mb-3",children:typeof e=="string"?b.jsx(jn,{variant:"h3",children:e}):e}),Nce="_full-screen-container_1rm4r_1",wO={"full-screen-container":"_full-screen-container_1rm4r_1",fullScreenContainer:Nce},Dce=de("overflow-hidden luminus-full-screen-container",wO.fullScreenContainer),Ice="container-fluid",Pce=({title:e,children:t,sideContent:n,sideContentWidth:r=250,sideContentResizeable:i=!0,noPadding:o,className:a,variant:s="main",helmet:c,unavailableOnMobile:l})=>{const{addHelmet:u,removeHelmet:d}=h.useContext(sE),{texts:{container:f}}=h.useContext(sn),[p,g]=h.useState(r),[m,v]=h.useState(!1),x=h.useMemo(()=>{switch(s){case"fullScreen":return Dce;case"main":return Ice;default:throw new Error(`PageContainer got incorrect variant type: ${s}`)}},[s]);h.useEffect(()=>(c?u(c):typeof e=="string"&&e&&u(e),()=>d()),[c,u,d,e]);const w=y0({onSwipedLeft:y=>{y.velocity>.8&&v(!0)},delta:100}),{isMobile:_}=kl(),C=h.useMemo(()=>_&&l,[_,l]);return h.useEffect(()=>{g(r)},[r]),b.jsxs(b.Fragment,{children:[b.jsx("div",{className:de(x,o?"p-0":"p-3",a),style:s==="fullScreen"?{width:n?`calc(100% - ${p}px)`:"100%"}:void 0,...w,children:b.jsx("div",{className:s==="fullScreen"?wO.fullScreenContainer:void 0,style:s==="main"?{paddingRight:n?`${p}px`:void 0}:{height:"100%",width:"100%"},children:C?b.jsx(x0,{variant:"warning",children:f.unavailableOnMobile}):b.jsxs(b.Fragment,{children:[e?b.jsx(jce,{title:e}):null,t]})})}),n&&!C?b.jsx(xO,{width:p,isExpandedOnMobileState:[m,v],resizeable:i,onResize:y=>i?g(y):{},children:n}):null]})};function ep(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var z2={exports:{}};/*!
282
- Copyright (c) 2018 Jed Watson.
283
- Licensed under the MIT License (MIT), see
284
- http://jedwatson.github.io/classnames
285
- */var W2;function Lce(){return W2||(W2=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)t.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(z2)),z2.exports}var Fce=Lce();const xe=ep(Fce),_O=6048e5,Bce=864e5,U2=Symbol.for("constructDateFrom");function wi(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&U2 in e?e[U2](t):e instanceof Date?new e.constructor(t):new Date(t)}function nr(e,t){return wi(t||e,e)}function CO(e,t){const n=()=>wi(t==null?void 0:t.in,NaN),r=Vce(e);let i;if(r.date){const c=Hce(r.date,2);i=qce(c.restDateString,c.year)}if(!i||isNaN(+i))return n();const o=+i;let a=0,s;if(r.time&&(a=Yce(r.time),isNaN(a)))return n();if(r.timezone){if(s=Gce(r.timezone),isNaN(s))return n()}else{const c=new Date(o+a),l=nr(0,t==null?void 0:t.in);return l.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),l.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),l}return nr(o+a+s,t==null?void 0:t.in)}const ku={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},zce=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Wce=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Uce=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Vce(e){const t={},n=e.split(ku.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],ku.timeZoneDelimiter.test(t.date)&&(t.date=e.split(ku.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=ku.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Hce(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function qce(e,t){if(t===null)return new Date(NaN);const n=e.match(zce);if(!n)return new Date(NaN);const r=!!n[4],i=Js(n[1]),o=Js(n[2])-1,a=Js(n[3]),s=Js(n[4]),c=Js(n[5])-1;if(r)return Jce(t,s,c)?Kce(t,s,c):new Date(NaN);{const l=new Date(0);return!Xce(t,o,a)||!Qce(t,i)?new Date(NaN):(l.setUTCFullYear(t,o,Math.max(i,a)),l)}}function Js(e){return e?parseInt(e):1}function Yce(e){const t=e.match(Wce);if(!t)return NaN;const n=hm(t[1]),r=hm(t[2]),i=hm(t[3]);return ele(n,r,i)?n*36e5+r*6e4+i*1e3:NaN}function hm(e){return e&&parseFloat(e.replace(",","."))||0}function Gce(e){if(e==="Z")return 0;const t=e.match(Uce);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return tle(r,i)?n*(r*36e5+i*6e4):NaN}function Kce(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const Zce=[31,null,31,30,31,30,31,31,30,31,30,31];function $O(e){return e%400===0||e%4===0&&e%100!==0}function Xce(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Zce[t]||($O(e)?29:28))}function Qce(e,t){return t>=1&&t<=($O(e)?366:365)}function Jce(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function ele(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function tle(e,t){return t>=0&&t<=59}let nle={};function tp(){return nle}function fl(e,t){var s,c,l,u;const n=tp(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??0,i=nr(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function Xd(e,t){return fl(e,{...t,weekStartsOn:1})}function SO(e,t){const n=nr(e,t==null?void 0:t.in),r=n.getFullYear(),i=wi(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=Xd(i),a=wi(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=Xd(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function V2(e){const t=nr(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 rle(e,...t){const n=wi.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function H2(e,t){const n=nr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function ile(e,t,n){const[r,i]=rle(n==null?void 0:n.in,e,t),o=H2(r),a=H2(i),s=+o-V2(o),c=+a-V2(a);return Math.round((s-c)/Bce)}function ole(e,t){const n=SO(e,t),r=wi(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Xd(r)}function ale(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function sle(e){return!(!ale(e)&&typeof e!="number"||isNaN(+nr(e)))}function cle(e,t){const n=nr(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const lle={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"}},ule=(e,t,n)=>{let r;const i=lle[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function pm(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const dle={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},fle={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},hle={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ple={date:pm({formats:dle,defaultWidth:"full"}),time:pm({formats:fle,defaultWidth:"full"}),dateTime:pm({formats:hle,defaultWidth:"full"})},mle={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},gle=(e,t,n,r)=>mle[e];function ec(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const vle={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ble={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},yle={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"]},xle={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"]},wle={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"}},_le={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"}},Cle=(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"},$le={ordinalNumber:Cle,era:ec({values:vle,defaultWidth:"wide"}),quarter:ec({values:ble,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ec({values:yle,defaultWidth:"wide"}),day:ec({values:xle,defaultWidth:"wide"}),dayPeriod:ec({values:wle,defaultWidth:"wide",formattingValues:_le,defaultFormattingWidth:"wide"})};function tc(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Ele(s,d=>d.test(a)):Sle(s,d=>d.test(a));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;const u=t.slice(a.length);return{value:l,rest:u}}}function Sle(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Ele(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Tle(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const kle=/^(\d+)(th|st|nd|rd)?/i,Ole=/\d+/i,Mle={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},Rle={any:[/^b/i,/^(a|c)/i]},Ale={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},jle={any:[/1/i,/2/i,/3/i,/4/i]},Nle={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},Dle={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]},Ile={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},Ple={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]},Lle={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},Fle={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}},Ble={ordinalNumber:Tle({matchPattern:kle,parsePattern:Ole,valueCallback:e=>parseInt(e,10)}),era:tc({matchPatterns:Mle,defaultMatchWidth:"wide",parsePatterns:Rle,defaultParseWidth:"any"}),quarter:tc({matchPatterns:Ale,defaultMatchWidth:"wide",parsePatterns:jle,defaultParseWidth:"any",valueCallback:e=>e+1}),month:tc({matchPatterns:Nle,defaultMatchWidth:"wide",parsePatterns:Dle,defaultParseWidth:"any"}),day:tc({matchPatterns:Ile,defaultMatchWidth:"wide",parsePatterns:Ple,defaultParseWidth:"any"}),dayPeriod:tc({matchPatterns:Lle,defaultMatchWidth:"any",parsePatterns:Fle,defaultParseWidth:"any"})},zle={code:"en-US",formatDistance:ule,formatLong:ple,formatRelative:gle,localize:$le,match:Ble,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Wle(e,t){const n=nr(e,t==null?void 0:t.in);return ile(n,cle(n))+1}function Ule(e,t){const n=nr(e,t==null?void 0:t.in),r=+Xd(n)-+ole(n);return Math.round(r/_O)+1}function EO(e,t){var u,d,f,p;const n=nr(e,t==null?void 0:t.in),r=n.getFullYear(),i=tp(),o=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((p=(f=i.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,a=wi((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=fl(a,t),c=wi((t==null?void 0:t.in)||e,0);c.setFullYear(r,0,o),c.setHours(0,0,0,0);const l=fl(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function Vle(e,t){var a,s,c,l;const n=tp(),r=(t==null?void 0:t.firstWeekContainsDate)??((s=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:s.firstWeekContainsDate)??n.firstWeekContainsDate??((l=(c=n.locale)==null?void 0:c.options)==null?void 0:l.firstWeekContainsDate)??1,i=EO(e,t),o=wi((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),fl(o,t)}function Hle(e,t){const n=nr(e,t==null?void 0:t.in),r=+fl(n,t)-+Vle(n,t);return Math.round(r/_O)+1}function zt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ni={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return zt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):zt(n+1,2)},d(e,t){return zt(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 zt(e.getHours()%12||12,t.length)},H(e,t){return zt(e.getHours(),t.length)},m(e,t){return zt(e.getMinutes(),t.length)},s(e,t){return zt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return zt(i,t.length)}},ya={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},q2={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Ni.y(e,t)},Y:function(e,t,n,r){const i=EO(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return zt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):zt(o,t.length)},R:function(e,t){const n=SO(e);return zt(n,t.length)},u:function(e,t){const n=e.getFullYear();return zt(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 zt(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 zt(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 Ni.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 zt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=Hle(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):zt(i,t.length)},I:function(e,t,n){const r=Ule(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):zt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ni.d(e,t)},D:function(e,t,n){const r=Wle(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):zt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return zt(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return zt(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return zt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=ya.noon:r===0?i=ya.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=ya.evening:r>=12?i=ya.afternoon:r>=4?i=ya.morning:i=ya.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Ni.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ni.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):zt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):zt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ni.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ni.s(e,t)},S:function(e,t){return Ni.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return G2(r);case"XXXX":case"XX":return wo(r);case"XXXXX":case"XXX":default:return wo(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return G2(r);case"xxxx":case"xx":return wo(r);case"xxxxx":case"xxx":default:return wo(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Y2(r,":");case"OOOO":default:return"GMT"+wo(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Y2(r,":");case"zzzz":default:return"GMT"+wo(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return zt(r,t.length)},T:function(e,t,n){return zt(+e,t.length)}};function Y2(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+zt(o,2)}function G2(e,t){return e%60===0?(e>0?"-":"+")+zt(Math.abs(e)/60,2):wo(e,t)}function wo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=zt(Math.trunc(r/60),2),o=zt(r%60,2);return n+i+t+o}const K2=(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"})}},TO=(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"})}},qle=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return K2(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",K2(r,t)).replace("{{time}}",TO(i,t))},Yle={p:TO,P:qle},Gle=/^D+$/,Kle=/^Y+$/,Zle=["D","DD","YY","YYYY"];function Xle(e){return Gle.test(e)}function Qle(e){return Kle.test(e)}function Jle(e,t,n){const r=eue(e,t,n);if(console.warn(r),Zle.includes(e))throw new RangeError(r)}function eue(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 tue=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nue=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rue=/^'([^]*?)'?$/,iue=/''/g,oue=/[a-zA-Z]/;function kO(e,t,n){var u,d,f,p;const r=tp(),i=r.locale??zle,o=r.firstWeekContainsDate??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,a=r.weekStartsOn??((p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.weekStartsOn)??0,s=nr(e,n==null?void 0:n.in);if(!sle(s))throw new RangeError("Invalid time value");let c=t.match(nue).map(g=>{const m=g[0];if(m==="p"||m==="P"){const v=Yle[m];return v(g,i.formatLong)}return g}).join("").match(tue).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const m=g[0];if(m==="'")return{isToken:!1,value:aue(g)};if(q2[m])return{isToken:!0,value:g};if(m.match(oue))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:g}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const l={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return c.map(g=>{if(!g.isToken)return g.value;const m=g.value;(Qle(m)||Xle(m))&&Jle(m,t,String(e));const v=q2[m[0]];return v(s,m,i.localize,l)}).join("")}function aue(e){const t=e.match(rue);return t?t[1].replace(iue,"'"):e}function OO(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var hl;(function(e){e.event="event",e.props="prop"})(hl||(hl={}));function Wi(){}function sue(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(o,a){return o===t[a]})||(t=r,n=e.apply(void 0,r)),n}}function pl(e){return!!(e||"").match(/\d/)}function Na(e){return e==null}function cue(e){return typeof e=="number"&&isNaN(e)}function MO(e){return Na(e)||cue(e)||typeof e=="number"&&!isFinite(e)}function RO(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function lue(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function uue(e,t,n){var r=lue(n),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(r,"$1"+t)}function due(e){var t=h.useRef(e);t.current=e;var n=h.useRef(function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t.current.apply(t,r)});return n.current}function Gb(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var i=e.split("."),o=i[0],a=i[1]||"";return{beforeDecimal:o,afterDecimal:a,hasNegation:n,addNegation:r}}function fue(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",i=n[1]||"";return(t?"-":"")+r+(i?"."+i:"")}function AO(e,t,n){for(var r="",i=n?"0":"",o=0;o<=t-1;o++)r+=e[o]||i;return r}function Z2(e,t){return Array(t+1).join(e)}function jO(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],o=r[1];if(o=Number(o),!o)return n+i;i=i.replace(".","");var a=1+o,s=i.length;return a<0?i="0."+Z2("0",Math.abs(a))+i:a>=s?i=i+Z2("0",a-s):i=(i.substring(0,a)||"0")+"."+i.substring(a),n+i}function X2(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=Gb(e),o=i.beforeDecimal,a=i.afterDecimal,s=i.hasNegation,c=parseFloat("0."+(a||"0")),l=a.length<=t?"0."+a:c.toFixed(t),u=l.split("."),d=o;o&&Number(u[0])&&(d=o.split("").reverse().reduce(function(m,v,x){return m.length>x?(Number(m[0])+Number(v)).toString()+m.substring(1,m.length):v+m},u[0]));var f=AO(u[1]||"",t,n),p=s?"-":"",g=r?".":"";return""+p+d+g+f}function Co(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var NO=sue(function(e,t){for(var n=0,r=0,i=e.length,o=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[o-1-r]&&o-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:o-r}}}),hue=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function pue(e,t,n){return Math.min(Math.max(e,t),n)}function mm(e){return Math.max(e.selectionStart,e.selectionEnd)}function mue(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function gue(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function vue(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function bue(e,t,n,r,i,o,a){a===void 0&&(a=vue);var s=i.findIndex(function(C){return C}),c=e.slice(0,s);!t&&!n.startsWith(c)&&(t=c,n=c+n,r=r+c.length);for(var l=n.length,u=e.length,d={},f=new Array(l),p=0;p<l;p++){f[p]=-1;for(var g=0,m=u;g<m;g++){var v=a({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:g});if(v&&d[g]!==!0){f[p]=g,d[g]=!0;break}}}for(var x=r;x<l&&(f[x]===-1||!o(n[x]));)x++;var w=x===l||f[x]===-1?u:f[x];for(x=r-1;x>0&&f[x]===-1;)x--;var _=x===-1||f[x]===-1?0:f[x]+1;return _>w?w:r-_<w-r?_:w}function Q2(e,t,n,r){var i=e.length;if(t=pue(t,0,i),r==="left"){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return t===-1&&(t=i),t}function yue(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(pl(e[n])||pl(e[n-1]));return t}function DO(e,t,n,r,i,o){o===void 0&&(o=Wi);var a=due(function(g,m){var v,x;return MO(g)?(x="",v=""):typeof g=="number"||m?(x=typeof g=="number"?jO(g):g,v=r(x)):(x=i(g,void 0),v=r(x)),{formattedValue:v,numAsString:x}}),s=h.useState(function(){return a(Na(e)?t:e,n)}),c=s[0],l=s[1],u=function(g,m){g.formattedValue!==c.formattedValue&&l({formattedValue:g.formattedValue,numAsString:g.value}),o(g,m)},d=e,f=n;Na(e)&&(d=c.numAsString,f=!0);var p=a(d,f);return h.useMemo(function(){l(p)},[p.formattedValue]),[c,u]}function xue(e){return e.replace(/[^0-9]/g,"")}function wue(e){return e}function _ue(e){var t=e.type;t===void 0&&(t="text");var n=e.displayType;n===void 0&&(n="input");var r=e.customInput,i=e.renderText,o=e.getInputRef,a=e.format;a===void 0&&(a=wue);var s=e.removeFormatting;s===void 0&&(s=xue);var c=e.defaultValue,l=e.valueIsNumericString,u=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=Wi);var p=e.onKeyDown;p===void 0&&(p=Wi);var g=e.onMouseUp;g===void 0&&(g=Wi);var m=e.onFocus;m===void 0&&(m=Wi);var v=e.onBlur;v===void 0&&(v=Wi);var x=e.value,w=e.getCaretBoundary;w===void 0&&(w=yue);var _=e.isValidInputCharacter;_===void 0&&(_=pl);var C=e.isCharacterSame,y=OO(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),$=DO(x,c,!!l,a,s,u),E=$[0],k=E.formattedValue,T=E.numAsString,O=$[1],S=h.useRef(),M=h.useRef({formattedValue:k,numAsString:T}),A=function(oe,ae){M.current={formattedValue:oe.formattedValue,numAsString:oe.value},O(oe,ae)},j=h.useState(!1),P=j[0],I=j[1],L=h.useRef(null),V=h.useRef({setCaretTimeout:null,focusTimeout:null});h.useEffect(function(){return I(!0),function(){clearTimeout(V.current.setCaretTimeout),clearTimeout(V.current.focusTimeout)}},[]);var z=a,D=function(oe,ae){var pe=parseFloat(ae);return{formattedValue:oe,value:ae,floatValue:isNaN(pe)?void 0:pe}},W=function(oe,ae,pe){oe.selectionStart===0&&oe.selectionEnd===oe.value.length||(Co(oe,ae),V.current.setCaretTimeout=setTimeout(function(){oe.value===pe&&oe.selectionStart!==ae&&Co(oe,ae)},0))},G=function(oe,ae,pe){return Q2(oe,ae,w(oe),pe)},J=function(oe,ae,pe){var ve=w(ae),Ee=bue(ae,k,oe,pe,ve,_,C);return Ee=Q2(ae,Ee,ve),Ee},Z=function(oe){var ae=oe.formattedValue;ae===void 0&&(ae="");var pe=oe.input,ve=oe.source,Ee=oe.event,Se=oe.numAsString,Oe;if(pe){var Fe=oe.inputValue||pe.value,fe=mm(pe);pe.value=ae,Oe=J(Fe,ae,fe),Oe!==void 0&&W(pe,Oe,ae)}ae!==k&&A(D(ae,Se),{event:Ee,source:ve})};h.useEffect(function(){var oe=M.current,ae=oe.formattedValue,pe=oe.numAsString;(k!==ae||T!==pe)&&A(D(k,T),{event:void 0,source:hl.props})},[k,T]);var X=L.current?mm(L.current):void 0,ee=typeof window<"u"?h.useLayoutEffect:h.useEffect;ee(function(){var oe=L.current;if(k!==M.current.formattedValue&&oe){var ae=J(M.current.formattedValue,k,X);oe.value=k,W(oe,ae,k)}},[k]);var ne=function(oe,ae,pe){var ve=ae.target,Ee=S.current?hue(S.current,ve.selectionEnd):NO(k,oe),Se=Object.assign(Object.assign({},Ee),{lastValue:k}),Oe=s(oe,Se),Fe=z(Oe);if(Oe=s(Fe,void 0),d&&!d(D(Fe,Oe))){var fe=ae.target,se=mm(fe),we=J(oe,k,se);return fe.value=k,W(fe,we,k),!1}return Z({formattedValue:Fe,numAsString:Oe,inputValue:oe,event:ae,source:pe,input:ae.target}),!0},F=function(oe,ae){ae===void 0&&(ae=0);var pe=oe.selectionStart,ve=oe.selectionEnd;S.current={selectionStart:pe,selectionEnd:ve+ae}},N=function(oe){var ae=oe.target,pe=ae.value,ve=ne(pe,oe,hl.event);ve&&f(oe),S.current=void 0},B=function(oe){var ae=oe.target,pe=oe.key,ve=ae.selectionStart,Ee=ae.selectionEnd,Se=ae.value;Se===void 0&&(Se="");var Oe;pe==="ArrowLeft"||pe==="Backspace"?Oe=Math.max(ve-1,0):pe==="ArrowRight"?Oe=Math.min(ve+1,Se.length):pe==="Delete"&&(Oe=ve);var Fe=0;pe==="Delete"&&ve===Ee&&(Fe=1);var fe=pe==="ArrowLeft"||pe==="ArrowRight";if(Oe===void 0||ve!==Ee&&!fe){p(oe),F(ae,Fe);return}var se=Oe;if(fe){var we=pe==="ArrowLeft"?"left":"right";se=G(Se,Oe,we),se!==Oe&&oe.preventDefault()}else pe==="Delete"&&!_(Se[Oe])?se=G(Se,Oe,"right"):pe==="Backspace"&&!_(Se[Oe])&&(se=G(Se,Oe,"left"));se!==Oe&&W(ae,se,Se),p(oe),F(ae,Fe)},H=function(oe){var ae=oe.target,pe=function(){var ve=ae.selectionStart,Ee=ae.selectionEnd,Se=ae.value;if(Se===void 0&&(Se=""),ve===Ee){var Oe=G(Se,ve);Oe!==ve&&W(ae,Oe,Se)}};pe(),requestAnimationFrame(function(){pe()}),g(oe),F(ae)},R=function(oe){oe.persist&&oe.persist();var ae=oe.target,pe=oe.currentTarget;L.current=ae,V.current.focusTimeout=setTimeout(function(){var ve=ae.selectionStart,Ee=ae.selectionEnd,Se=ae.value;Se===void 0&&(Se="");var Oe=G(Se,ve);Oe!==ve&&!(ve===0&&Ee===Se.length)&&W(ae,Oe,Se),m(Object.assign(Object.assign({},oe),{currentTarget:pe}))},0)},Y=function(oe){L.current=null,clearTimeout(V.current.focusTimeout),clearTimeout(V.current.setCaretTimeout),v(oe)},Q=P&&mue()?"numeric":void 0,te=Object.assign({inputMode:Q},y,{type:t,value:k,onChange:N,onKeyDown:B,onMouseUp:H,onFocus:R,onBlur:Y});if(n==="text")return i?h.createElement(h.Fragment,null,i(k,y)||null):h.createElement("span",Object.assign({},y,{ref:o}),k);if(r){var ue=r;return h.createElement(ue,Object.assign({},te,{ref:o}))}return h.createElement("input",Object.assign({},te,{ref:o}))}function J2(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var o=t.suffix;o===void 0&&(o="");var a=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var c=np(t),l=c.thousandSeparator,u=c.decimalSeparator,d=n!==0&&e.indexOf(".")!==-1||n&&r,f=Gb(e,a),p=f.beforeDecimal,g=f.afterDecimal,m=f.addNegation;return n!==void 0&&(g=AO(g,n,!!r)),l&&(p=uue(p,l,s)),i&&(p=i+p),o&&(g=g+o),m&&(p="-"+p),e=p+(d&&u||"")+g,e}function np(e){var t=e.decimalSeparator;t===void 0&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function Cue(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),i=n.test(e),o=r.test(e);return e=e.replace(/-/g,""),i&&!o&&t&&(e="-"+e),e}function $ue(e,t){return new RegExp("(^-)|[0-9]|"+RO(e),"g")}function Sue(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function Eue(e,t,n){var r;t===void 0&&(t=gue(e));var i=n.allowNegative,o=n.prefix;o===void 0&&(o="");var a=n.suffix;a===void 0&&(a="");var s=n.decimalScale,c=t.from,l=t.to,u=l.start,d=l.end,f=np(n),p=f.allowedDecimalSeparators,g=f.decimalSeparator,m=e[d]===g;if(pl(e)&&(e===o||e===a)&&t.lastValue==="")return e;if(d-u===1&&p.indexOf(e[u])!==-1){var v=s===0?"":g;e=e.substring(0,u)+v+e.substring(u+1,e.length)}var x=function(L,V,z){var D=!1,W=!1;o.startsWith("-")?D=!1:L.startsWith("--")?(D=!1,W=!0):a.startsWith("-")&&L.length===a.length?D=!1:L[0]==="-"&&(D=!0);var G=D?1:0;return W&&(G=2),G&&(L=L.substring(G),V-=G,z-=G),{value:L,start:V,end:z,hasNegation:D}},w=x(e,u,d),_=w.hasNegation;r=w,e=r.value,u=r.start,d=r.end;var C=x(t.lastValue,c.start,c.end),y=C.start,$=C.end,E=C.value,k=e.substring(u,d);e.length&&E.length&&(y>E.length-a.length||$<o.length)&&!(k&&a.startsWith(k))&&(e=E);var T=0;e.startsWith(o)?T+=o.length:u<o.length&&(T=u),e=e.substring(T),d-=T;var O=e.length,S=e.length-a.length;e.endsWith(a)?O=S:(d>S||d>e.length-a.length)&&(O=d),e=e.substring(0,O),e=Cue(_?"-"+e:e,i),e=(e.match($ue(g))||[]).join("");var M=e.indexOf(g);e=e.replace(new RegExp(RO(g),"g"),function(L,V){return V===M?".":""});var A=Gb(e,i),j=A.beforeDecimal,P=A.afterDecimal,I=A.addNegation;return l.end-l.start<c.end-c.start&&j===""&&m&&!parseFloat(P)&&(e=I?"-":""),e}function Tue(e,t){var n=t.prefix;n===void 0&&(n="");var r=t.suffix;r===void 0&&(r="");var i=Array.from({length:e.length+1}).map(function(){return!0}),o=e[0]==="-";i.fill(!1,0,n.length+(o?1:0));var a=e.length;return i.fill(!1,a-r.length+1,a+1),i}function kue(e){var t=np(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var o=e.allowNegative;if(o===void 0&&(o=!0),n===r)throw new Error(`
286
- Decimal separator can't be same as thousand separator.
287
- thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
288
- decimalSeparator: `+r+` (default value for decimalSeparator is .)
289
- `);return i.startsWith("-")&&o&&(console.error(`
290
- Prefix can't start with '-' when allowNegative is true.
291
- prefix: `+i+`
292
- allowNegative: `+o+`
293
- `),o=!1),Object.assign(Object.assign({},e),{allowNegative:o})}function Oue(e){e=kue(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=Wi);var o=e.onBlur;o===void 0&&(o=Wi);var a=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,l=e.prefix;l===void 0&&(l="");var u=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,g=OO(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=np(e),v=m.decimalSeparator,x=m.allowedDecimalSeparators,w=function(I){return J2(I,e)},_=function(I,L){return Eue(I,L,e)},C=Na(d)?u:d,y=f??Sue(C,l,t);Na(d)?Na(u)||(y=y||typeof u=="number"):y=y||typeof d=="number";var $=function(I){return MO(I)?I:(typeof I=="number"&&(I=jO(I)),y&&typeof s=="number"?X2(I,s,!!c):I)},E=DO($(d),$(u),!!y,w,_,p),k=E[0],T=k.numAsString,O=k.formattedValue,S=E[1],M=function(I){var L=I.target,V=I.key,z=L.selectionStart,D=L.selectionEnd,W=L.value;if(W===void 0&&(W=""),(V==="Backspace"||V==="Delete")&&D<l.length){I.preventDefault();return}if(z!==D){i(I);return}V==="Backspace"&&W[0]==="-"&&z===l.length+1&&n&&Co(L,1),s&&c&&(V==="Backspace"&&W[z-1]===v?(Co(L,z-1),I.preventDefault()):V==="Delete"&&W[z]===v&&I.preventDefault()),x!=null&&x.includes(V)&&W[z]===v&&Co(L,z+1);var G=a===!0?",":a;V==="Backspace"&&W[z-1]===G&&Co(L,z-1),V==="Delete"&&W[z]===G&&Co(L,z+1),i(I)},A=function(I){var L=T;if(L.match(/\d/g)||(L=""),r||(L=fue(L)),c&&s&&(L=X2(L,s,c)),L!==T){var V=J2(L,e);S({formattedValue:V,value:L,floatValue:parseFloat(L)},{event:I,source:hl.event})}o(I)},j=function(I){return I===v?!0:pl(I)},P=function(I){var L=I.currentValue,V=I.lastValue,z=I.formattedValue,D=I.currentValueIndex,W=I.formattedValueIndex,G=L[D],J=z[W],Z=NO(V,L),X=Z.to,ee=function(ne){return _(ne).indexOf(".")+l.length};return d===0&&c&&s&&L[X.start]===v&&ee(L)<D&&ee(z)>W?!1:D>=X.start&&D<X.end&&x&&x.includes(G)&&J===v?!0:G===J};return Object.assign(Object.assign({},g),{value:O,valueIsNumericString:!1,isValidInputCharacter:j,isCharacterSame:P,onValueChange:S,format:w,removeFormatting:_,getCaretBoundary:function(I){return Tue(I,e)},onKeyDown:M,onBlur:A})}function Mue(e){var t=Oue(e);return h.createElement(_ue,Object.assign({},t))}const Rue=(e,t)=>{var i,o;const n=e.getValue(),r=((o=(i=e.column.columnDef)==null?void 0:i.meta)==null?void 0:o.alignment)??"center";return n===!0||n===!1?b.jsx(t,{className:xe({"text-success":n===!0,"text-muted":n===!1,"justify-content-center":r==="center","justify-content-start":r==="left","justify-content-end":r==="right"}),icon:n?"boolean-yes":"boolean-no"}):null},Aue=e=>{const t=e.getValue();return t?kO(CO(t.toString()),"dd.MM.yyyy"):null},jue=e=>{const t=e.getValue();return t?kO(CO(t.toString()),"dd.MM.yyyy HH:mm"):null},Nue=e=>{const t=e.getValue(),n=e.column.columnDef,r=n.type==="number"?n.numericMeta:void 0;return t==null||t===void 0||t===""?null:r!=null&&r.noFormatting?(t==null?void 0:t.toString())??null:b.jsx(Mue,{decimalScale:(r==null?void 0:r.decimalScale)??2,decimalSeparator:",",defaultValue:"",displayType:"text",fixedDecimalScale:r==null?void 0:r.fixedDecimalScale,prefix:r==null?void 0:r.prefix,suffix:r==null?void 0:r.suffix,thousandSeparator:" ",value:t.toString()})},Due=e=>{const t=e,n=e.meta;return n!=null&&n.filterVariant?(n==null?void 0:n.filterVariant)==="select"?(t==null?void 0:t.type)==="boolean"?"multiselectBoolean":"multiselect":(t==null?void 0:t.type)==="string"?"text":t==null?void 0:t.type:(t==null?void 0:t.type)==="string"?"text":(t==null?void 0:t.type)==="boolean"?"multiselectBoolean":t==null?void 0:t.type},Iue=["xxl","xl","lg","md","sm","xs"],Pue="xs",rp=ie.createContext({prefixes:{},breakpoints:Iue,minBreakpoint:Pue});function kt(e,t){const{prefixes:n}=h.useContext(rp);return e||n[t]||t}function Lue(){const{breakpoints:e}=h.useContext(rp);return e}function Fue(){const{minBreakpoint:e}=h.useContext(rp);return e}function IO(){const{dir:e}=h.useContext(rp);return e==="rtl"}var Ou={exports:{}},gm={exports:{}},It={};/** @license React v16.13.1
294
- * react-is.production.min.js
295
- *
296
- * Copyright (c) Facebook, Inc. and its affiliates.
297
- *
298
- * This source code is licensed under the MIT license found in the
299
- * LICENSE file in the root directory of this source tree.
300
- */var e_;function Bue(){if(e_)return It;e_=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=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 _(y){if(typeof y=="object"&&y!==null){var $=y.$$typeof;switch($){case t:switch(y=y.type,y){case c:case l:case r:case o:case i:case d:return y;default:switch(y=y&&y.$$typeof,y){case s:case u:case g:case p:case a:return y;default:return $}}case n:return $}}}function C(y){return _(y)===l}return It.AsyncMode=c,It.ConcurrentMode=l,It.ContextConsumer=s,It.ContextProvider=a,It.Element=t,It.ForwardRef=u,It.Fragment=r,It.Lazy=g,It.Memo=p,It.Portal=n,It.Profiler=o,It.StrictMode=i,It.Suspense=d,It.isAsyncMode=function(y){return C(y)||_(y)===c},It.isConcurrentMode=C,It.isContextConsumer=function(y){return _(y)===s},It.isContextProvider=function(y){return _(y)===a},It.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},It.isForwardRef=function(y){return _(y)===u},It.isFragment=function(y){return _(y)===r},It.isLazy=function(y){return _(y)===g},It.isMemo=function(y){return _(y)===p},It.isPortal=function(y){return _(y)===n},It.isProfiler=function(y){return _(y)===o},It.isStrictMode=function(y){return _(y)===i},It.isSuspense=function(y){return _(y)===d},It.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===l||y===o||y===i||y===d||y===f||typeof y=="object"&&y!==null&&(y.$$typeof===g||y.$$typeof===p||y.$$typeof===a||y.$$typeof===s||y.$$typeof===u||y.$$typeof===v||y.$$typeof===x||y.$$typeof===w||y.$$typeof===m)},It.typeOf=_,It}var Bt={};/** @license React v16.13.1
301
- * react-is.development.js
302
- *
303
- * Copyright (c) Facebook, Inc. and its affiliates.
304
- *
305
- * This source code is licensed under the MIT license found in the
306
- * LICENSE file in the root directory of this source tree.
307
- */var t_;function zue(){return t_||(t_=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=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 _(R){return typeof R=="string"||typeof R=="function"||R===r||R===l||R===o||R===i||R===d||R===f||typeof R=="object"&&R!==null&&(R.$$typeof===g||R.$$typeof===p||R.$$typeof===a||R.$$typeof===s||R.$$typeof===u||R.$$typeof===v||R.$$typeof===x||R.$$typeof===w||R.$$typeof===m)}function C(R){if(typeof R=="object"&&R!==null){var Y=R.$$typeof;switch(Y){case t:var Q=R.type;switch(Q){case c:case l:case r:case o:case i:case d:return Q;default:var te=Q&&Q.$$typeof;switch(te){case s:case u:case g:case p:case a:return te;default:return Y}}case n:return Y}}}var y=c,$=l,E=s,k=a,T=t,O=u,S=r,M=g,A=p,j=n,P=o,I=i,L=d,V=!1;function z(R){return V||(V=!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.")),D(R)||C(R)===c}function D(R){return C(R)===l}function W(R){return C(R)===s}function G(R){return C(R)===a}function J(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function Z(R){return C(R)===u}function X(R){return C(R)===r}function ee(R){return C(R)===g}function ne(R){return C(R)===p}function F(R){return C(R)===n}function N(R){return C(R)===o}function B(R){return C(R)===i}function H(R){return C(R)===d}Bt.AsyncMode=y,Bt.ConcurrentMode=$,Bt.ContextConsumer=E,Bt.ContextProvider=k,Bt.Element=T,Bt.ForwardRef=O,Bt.Fragment=S,Bt.Lazy=M,Bt.Memo=A,Bt.Portal=j,Bt.Profiler=P,Bt.StrictMode=I,Bt.Suspense=L,Bt.isAsyncMode=z,Bt.isConcurrentMode=D,Bt.isContextConsumer=W,Bt.isContextProvider=G,Bt.isElement=J,Bt.isForwardRef=Z,Bt.isFragment=X,Bt.isLazy=ee,Bt.isMemo=ne,Bt.isPortal=F,Bt.isProfiler=N,Bt.isStrictMode=B,Bt.isSuspense=H,Bt.isValidElementType=_,Bt.typeOf=C}()),Bt}var n_;function PO(){return n_||(n_=1,process.env.NODE_ENV==="production"?gm.exports=Bue():gm.exports=zue()),gm.exports}/*
308
- object-assign
309
- (c) Sindre Sorhus
310
- @license MIT
311
- */var vm,r_;function Wue(){if(r_)return vm;r_=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(u){l[u]=u}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return vm=i()?Object.assign:function(o,a){for(var s,c=r(o),l,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)t.call(s,d)&&(c[d]=s[d]);if(e){l=e(s);for(var f=0;f<l.length;f++)n.call(s,l[f])&&(c[l[f]]=s[l[f]])}}return c},vm}var bm,i_;function Kb(){if(i_)return bm;i_=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return bm=e,bm}var o_,a_;function LO(){return a_||(a_=1,o_=Function.call.bind(Object.prototype.hasOwnProperty)),o_}var ym,s_;function Uue(){if(s_)return ym;s_=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Kb(),n={},r=LO();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,c,l){if(process.env.NODE_ENV!=="production"){for(var u in o)if(r(o,u)){var d;try{if(typeof o[u]!="function"){var f=Error((c||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=o[u](a,u,c,s,null,t)}catch(g){d=g}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=l?l():"";e("Failed "+s+" type: "+d.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},ym=i,ym}var xm,c_;function Vue(){if(c_)return xm;c_=1;var e=PO(),t=Wue(),n=Kb(),r=LO(),i=Uue(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return xm=function(s,c){var l=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(D){var W=D&&(l&&D[l]||D[u]);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:_,element:C(),elementType:y(),instanceOf:$,node:O(),objectOf:k,oneOf:E,oneOfType:T,shape:M,exact:A};function g(D,W){return D===W?D!==0||1/D===1/W:D!==D&&W!==W}function m(D,W){this.message=D,this.data=W&&typeof W=="object"?W:{},this.stack=""}m.prototype=Error.prototype;function v(D){if(process.env.NODE_ENV!=="production")var W={},G=0;function J(X,ee,ne,F,N,B,H){if(F=F||f,B=B||ne,H!==n){if(c){var R=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 R.name="Invariant Violation",R}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Y=F+":"+ne;!W[Y]&&G<3&&(o("You are manually calling a React.PropTypes validation function for the `"+B+"` prop on `"+F+"`. 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[Y]=!0,G++)}}return ee[ne]==null?X?ee[ne]===null?new m("The "+N+" `"+B+"` is marked as required "+("in `"+F+"`, but its value is `null`.")):new m("The "+N+" `"+B+"` is marked as required in "+("`"+F+"`, but its value is `undefined`.")):null:D(ee,ne,F,N,B)}var Z=J.bind(null,!1);return Z.isRequired=J.bind(null,!0),Z}function x(D){function W(G,J,Z,X,ee,ne){var F=G[J],N=I(F);if(N!==D){var B=L(F);return new m("Invalid "+X+" `"+ee+"` of type "+("`"+B+"` supplied to `"+Z+"`, expected ")+("`"+D+"`."),{expectedType:D})}return null}return v(W)}function w(){return v(a)}function _(D){function W(G,J,Z,X,ee){if(typeof D!="function")return new m("Property `"+ee+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var ne=G[J];if(!Array.isArray(ne)){var F=I(ne);return new m("Invalid "+X+" `"+ee+"` of type "+("`"+F+"` supplied to `"+Z+"`, expected an array."))}for(var N=0;N<ne.length;N++){var B=D(ne,N,Z,X,ee+"["+N+"]",n);if(B instanceof Error)return B}return null}return v(W)}function C(){function D(W,G,J,Z,X){var ee=W[G];if(!s(ee)){var ne=I(ee);return new m("Invalid "+Z+" `"+X+"` of type "+("`"+ne+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return v(D)}function y(){function D(W,G,J,Z,X){var ee=W[G];if(!e.isValidElementType(ee)){var ne=I(ee);return new m("Invalid "+Z+" `"+X+"` of type "+("`"+ne+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return v(D)}function $(D){function W(G,J,Z,X,ee){if(!(G[J]instanceof D)){var ne=D.name||f,F=z(G[J]);return new m("Invalid "+X+" `"+ee+"` of type "+("`"+F+"` supplied to `"+Z+"`, expected ")+("instance of `"+ne+"`."))}return null}return v(W)}function E(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("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])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function W(G,J,Z,X,ee){for(var ne=G[J],F=0;F<D.length;F++)if(g(ne,D[F]))return null;var N=JSON.stringify(D,function(B,H){var R=L(H);return R==="symbol"?String(H):H});return new m("Invalid "+X+" `"+ee+"` of value `"+String(ne)+"` "+("supplied to `"+Z+"`, expected one of "+N+"."))}return v(W)}function k(D){function W(G,J,Z,X,ee){if(typeof D!="function")return new m("Property `"+ee+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var ne=G[J],F=I(ne);if(F!=="object")return new m("Invalid "+X+" `"+ee+"` of type "+("`"+F+"` supplied to `"+Z+"`, expected an object."));for(var N in ne)if(r(ne,N)){var B=D(ne,N,Z,X,ee+"."+N,n);if(B instanceof Error)return B}return null}return v(W)}function T(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var W=0;W<D.length;W++){var G=D[W];if(typeof G!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(G)+" at index "+W+"."),a}function J(Z,X,ee,ne,F){for(var N=[],B=0;B<D.length;B++){var H=D[B],R=H(Z,X,ee,ne,F,n);if(R==null)return null;R.data&&r(R.data,"expectedType")&&N.push(R.data.expectedType)}var Y=N.length>0?", expected one of type ["+N.join(", ")+"]":"";return new m("Invalid "+ne+" `"+F+"` supplied to "+("`"+ee+"`"+Y+"."))}return v(J)}function O(){function D(W,G,J,Z,X){return j(W[G])?null:new m("Invalid "+Z+" `"+X+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return v(D)}function S(D,W,G,J,Z){return new m((D||"React class")+": "+W+" type `"+G+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function M(D){function W(G,J,Z,X,ee){var ne=G[J],F=I(ne);if(F!=="object")return new m("Invalid "+X+" `"+ee+"` of type `"+F+"` "+("supplied to `"+Z+"`, expected `object`."));for(var N in D){var B=D[N];if(typeof B!="function")return S(Z,X,ee,N,L(B));var H=B(ne,N,Z,X,ee+"."+N,n);if(H)return H}return null}return v(W)}function A(D){function W(G,J,Z,X,ee){var ne=G[J],F=I(ne);if(F!=="object")return new m("Invalid "+X+" `"+ee+"` of type `"+F+"` "+("supplied to `"+Z+"`, expected `object`."));var N=t({},G[J],D);for(var B in N){var H=D[B];if(r(D,B)&&typeof H!="function")return S(Z,X,ee,B,L(H));if(!H)return new m("Invalid "+X+" `"+ee+"` key `"+B+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(G[J],null," ")+`
312
- Valid keys: `+JSON.stringify(Object.keys(D),null," "));var R=H(ne,B,Z,X,ee+"."+B,n);if(R)return R}return null}return v(W)}function j(D){switch(typeof D){case"number":case"string":case"undefined":return!0;case"boolean":return!D;case"object":if(Array.isArray(D))return D.every(j);if(D===null||s(D))return!0;var W=d(D);if(W){var G=W.call(D),J;if(W!==D.entries){for(;!(J=G.next()).done;)if(!j(J.value))return!1}else for(;!(J=G.next()).done;){var Z=J.value;if(Z&&!j(Z[1]))return!1}}else return!1;return!0;default:return!1}}function P(D,W){return D==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function I(D){var W=typeof D;return Array.isArray(D)?"array":D instanceof RegExp?"object":P(W,D)?"symbol":W}function L(D){if(typeof D>"u"||D===null)return""+D;var W=I(D);if(W==="object"){if(D instanceof Date)return"date";if(D instanceof RegExp)return"regexp"}return W}function V(D){var W=L(D);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function z(D){return!D.constructor||!D.constructor.name?f:D.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},xm}var wm,l_;function Hue(){if(l_)return wm;l_=1;var e=Kb();function t(){}function n(){}return n.resetWarningCache=t,wm=function(){function r(a,s,c,l,u,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},wm}var u_;function que(){if(u_)return Ou.exports;if(u_=1,process.env.NODE_ENV!=="production"){var e=PO(),t=!0;Ou.exports=Vue()(e.isElement,t)}else Ou.exports=Hue()();return Ou.exports}var Yue=que();const Qe=ep(Yue);function Gue(e,t){return ie.Children.toArray(e).some(n=>ie.isValidElement(n)&&n.type===t)}function Kue({as:e,bsPrefix:t,className:n,...r}){t=kt(t,"col");const i=Lue(),o=Fue(),a=[],s=[];return i.forEach(c=>{const l=r[c];delete r[c];let u,d,f;typeof l=="object"&&l!=null?{span:u,offset:d,order:f}=l:u=l;const p=c!==o?`-${c}`:"";u&&a.push(u===!0?`${t}${p}`:`${t}${p}-${u}`),f!=null&&s.push(`order${p}-${f}`),d!=null&&s.push(`offset${p}-${d}`)}),[{...r,className:xe(n,...a,...s)},{as:e,bsPrefix:t,spans:a}]}const FO=ie.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:o,spans:a}]=Kue(e);return b.jsx(i,{...r,ref:t,className:xe(n,!a.length&&o)})});FO.displayName="Col";var _m,d_;function Zue(){if(d_)return _m;d_=1;var e=process.env.NODE_ENV!=="production",t=function(){};if(e){var n=function(r,i){var o=arguments.length;i=new Array(o>1?o-1:0);for(var a=1;a<o;a++)i[a-1]=arguments[a];var s=0,c="Warning: "+r.replace(/%s/g,function(){return i[s++]});typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}};t=function(r,i,o){var a=arguments.length;o=new Array(a>2?a-2:0);for(var s=2;s<a;s++)o[s-2]=arguments[s];if(i===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");r||n.apply(null,[i].concat(o))}}return _m=t,_m}var Xue=Zue();const ip=ep(Xue),Que={type:Qe.string,tooltip:Qe.bool,as:Qe.elementType},op=ie.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},o)=>b.jsx(e,{...i,ref:o,className:xe(t,`${n}-${r?"tooltip":"feedback"}`)}));op.displayName="Feedback";op.propTypes=Que;const _i=ie.createContext({}),Zb=ie.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:o=!1,as:a="input",...s},c)=>{const{controlId:l}=h.useContext(_i);return t=kt(t,"form-check-input"),b.jsx(a,{...s,ref:c,type:r,id:e||l,className:xe(n,t,i&&"is-valid",o&&"is-invalid")})});Zb.displayName="FormCheckInput";const Qd=ie.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:o}=h.useContext(_i);return e=kt(e,"form-check-label"),b.jsx("label",{...r,ref:i,htmlFor:n||o,className:xe(t,e)})});Qd.displayName="FormCheckLabel";const BO=ie.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:i=!1,disabled:o=!1,isValid:a=!1,isInvalid:s=!1,feedbackTooltip:c=!1,feedback:l,feedbackType:u,className:d,style:f,title:p="",type:g="checkbox",label:m,children:v,as:x="input",...w},_)=>{t=kt(t,"form-check"),n=kt(n,"form-switch");const{controlId:C}=h.useContext(_i),y=h.useMemo(()=>({controlId:e||C}),[C,e]),$=!v&&m!=null&&m!==!1||Gue(v,Qd),E=b.jsx(Zb,{...w,type:g==="switch"?"checkbox":g,ref:_,isValid:a,isInvalid:s,disabled:o,as:x});return b.jsx(_i.Provider,{value:y,children:b.jsx("div",{style:f,className:xe(d,$&&t,r&&`${t}-inline`,i&&`${t}-reverse`,g==="switch"&&n),children:v||b.jsxs(b.Fragment,{children:[E,$&&b.jsx(Qd,{title:p,children:m}),l&&b.jsx(op,{type:u,tooltip:c,children:l})]})})})});BO.displayName="FormCheck";const Jd=Object.assign(BO,{Input:Zb,Label:Qd}),zO=ie.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:i,className:o,isValid:a=!1,isInvalid:s=!1,plaintext:c,readOnly:l,as:u="input",...d},f)=>{const{controlId:p}=h.useContext(_i);return e=kt(e,"form-control"),process.env.NODE_ENV!=="production"&&ip(p==null||!i,"`controlId` is ignored on `<FormControl>` when `id` is specified."),b.jsx(u,{...d,type:t,size:r,ref:f,readOnly:l,id:i||p,className:xe(o,c?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,a&&"is-valid",s&&"is-invalid")})});zO.displayName="FormControl";const Jue=Object.assign(zO,{Feedback:op}),WO=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=kt(t,"form-floating"),b.jsx(n,{ref:i,className:xe(e,t),...r})));WO.displayName="FormFloating";const Xb=ie.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=h.useMemo(()=>({controlId:e}),[e]);return b.jsx(_i.Provider,{value:i,children:b.jsx(t,{...n,ref:r})})});Xb.displayName="FormGroup";const UO=ie.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:o,...a},s)=>{const{controlId:c}=h.useContext(_i);t=kt(t,"form-label");let l="col-form-label";typeof n=="string"&&(l=`${l} ${l}-${n}`);const u=xe(i,t,r&&"visually-hidden",n&&l);return process.env.NODE_ENV!=="production"&&ip(c==null||!o,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),o=o||c,n?b.jsx(FO,{ref:s,as:"label",className:u,htmlFor:o,...a}):b.jsx(e,{ref:s,className:u,htmlFor:o,...a})});UO.displayName="FormLabel";const VO=ie.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:o}=h.useContext(_i);return e=kt(e,"form-range"),b.jsx("input",{...r,type:"range",ref:i,className:xe(t,e),id:n||o})});VO.displayName="FormRange";const HO=ie.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:o=!1,id:a,...s},c)=>{const{controlId:l}=h.useContext(_i);return e=kt(e,"form-select"),b.jsx("select",{...s,size:n,ref:c,className:xe(r,e,t&&`${e}-${t}`,i&&"is-valid",o&&"is-invalid"),id:a||l})});HO.displayName="FormSelect";const qO=ie.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},o)=>(e=kt(e,"form-text"),b.jsx(n,{...i,ref:o,className:xe(t,e,r&&"text-muted")})));qO.displayName="FormText";const YO=ie.forwardRef((e,t)=>b.jsx(Jd,{...e,ref:t,type:"switch"}));YO.displayName="Switch";const ede=Object.assign(YO,{Input:Jd.Input,Label:Jd.Label}),GO=ie.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...o},a)=>(e=kt(e,"form-floating"),b.jsxs(Xb,{ref:a,className:xe(t,e),controlId:r,...o,children:[n,b.jsx("label",{htmlFor:r,children:i})]})));GO.displayName="FloatingLabel";const tde={_ref:Qe.any,validated:Qe.bool,as:Qe.elementType},Qb=ie.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>b.jsx(n,{...r,ref:i,className:xe(e,t&&"was-validated")}));Qb.displayName="Form";Qb.propTypes=tde;const ef=Object.assign(Qb,{Group:Xb,Control:Jue,Floating:WO,Check:Jd,Switch:ede,Label:UO,Text:qO,Range:VO,Select:HO,FloatingLabel:GO}),nde=({column:e,filterValue:t,IconComponent:n,texts:r})=>{const[i,o]=h.useState(t??""),[a,s]=h.useState(!1),[c,l]=h.useState(!1);h.useEffect(()=>{o(t??"")},[t]),h.useEffect(()=>{if((i||null)===(t||null))return;const d=setTimeout(()=>{e.setFilterValue(i??null)},500);return()=>clearTimeout(d)},[i,e,t]);const u=h.useMemo(()=>i==="no_value_filter_value",[i]);return b.jsx("div",{className:"w-100 h-100 position-relative",children:u?b.jsx("div",{className:"d-flex align-items-center text-muted w-100 h-100 border rounded px-2",role:"button",style:{fontSize:"12px",minHeight:"31px",height:"31px",maxHeight:"31px"},onClick:()=>{o(""),l(!1),s(!1)},children:r.noValue}):b.jsxs(b.Fragment,{children:[b.jsx(ef.Control,{className:xe("filter w-100",{filtered:!!t}),"data-testId":`filter-${e.id}`,id:`filter-${e.id}`,role:"filter-input",size:"sm",type:"text",value:i,onChange:d=>{o(d.target.value??"")},onKeyDown:d=>{d.key==="Escape"&&o("")},onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)}),u?null:b.jsx("div",{className:"position-absolute",style:{top:"calc(50% - 8px)",right:"6px",opacity:a||c?1:0,transition:"opacity 0.3s ease-in-out"},onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:b.jsx("div",{role:"button",onClick:()=>{o(u?"":"no_value_filter_value"),s(!1)},children:b.jsx(n,{icon:"no-value",iconProps:{style:{fontSize:"13px",background:"transparent"}}})})})]})})};function tf(e,t=tf.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}tf.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"};function sv(){return sv=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},sv.apply(null,arguments)}function KO(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Cm,f_;function rde(){if(f_)return Cm;f_=1;var e=function(t,n,r,i,o,a,s,c){if(process.env.NODE_ENV!=="production"&&n===void 0)throw new Error("invariant requires an error message argument");if(!t){var l;if(n===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,i,o,a,s,c],d=0;l=new Error(n.replace(/%s/g,function(){return u[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};return Cm=e,Cm}var ide=rde();const h_=ep(ide);function p_(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function ode(e){var t=ade(e,"string");return typeof t=="symbol"?t:String(t)}function ade(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 sde(e,t,n){var r=h.useRef(e!==void 0),i=h.useState(t),o=i[0],a=i[1],s=e!==void 0,c=r.current;return r.current=s,!s&&c&&o!==t&&a(t),[s?e:o,h.useCallback(function(l){for(var u=arguments.length,d=new Array(u>1?u-1:0),f=1;f<u;f++)d[f-1]=arguments[f];n&&n.apply(void 0,[l].concat(d)),a(l)},[n])]}function ZO(e,t){return Object.keys(t).reduce(function(n,r){var i,o=n,a=o[p_(r)],s=o[r],c=KO(o,[p_(r),r].map(ode)),l=t[r],u=sde(s,a,e[l]),d=u[0],f=u[1];return sv({},c,(i={},i[r]=d,i[l]=f,i))},e)}function Vl(e){return e&&e.ownerDocument||document}const Ss=!!(typeof window<"u"&&window.document&&window.document.createElement);var cv=!1,lv=!1;try{var $m={get passive(){return cv=!0},get once(){return lv=cv=!0}};Ss&&(window.addEventListener("test",$m,$m),window.removeEventListener("test",$m,!0))}catch{}function Jb(e,t,n,r){if(r&&typeof r!="boolean"&&!lv){var i=r.once,o=r.capture,a=n;!lv&&i&&(a=n.__once||function s(c){this.removeEventListener(t,s,o),n.call(this,c)},n.__once=a),e.addEventListener(t,a,cv?r:o)}e.addEventListener(t,n,r)}function uv(e,t,n,r){var i=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}function qi(e,t,n,r){return Jb(e,t,n,r),function(){uv(e,t,n,r)}}const m_=e=>!e||typeof e=="function"?e:t=>{e.current=t};function cde(e,t){const n=m_(e),r=m_(t);return i=>{n&&n(i),r&&r(i)}}function Hl(e,t){return h.useMemo(()=>cde(e,t),[e,t])}function lde(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function nf(e){const t=lde(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function ude(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function Nn(e){const t=ude(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function XO(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function QO(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current}var dde=Function.prototype.bind.call(Function.prototype.call,[].slice);function Ii(e,t){return dde(e.querySelectorAll(t))}function rf(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}const fde="data-rr-ui-";function ey(e){return`${fde}${e}`}const JO=h.createContext(Ss?window:void 0);JO.Provider;function ap(){return h.useContext(JO)}const hde=["as","disabled"];function pde(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 mde(e){return!e||e.trim()==="#"}function ty({tagName:e,disabled:t,href:n,target:r,rel:i,role:o,onClick:a,tabIndex:s=0,type:c}){e||(n!=null||r!=null||i!=null?e="a":e="button");const l={tagName:e};if(e==="button")return[{type:c||"button",disabled:t},l];const u=f=>{if((t||e==="a"&&mde(n))&&f.preventDefault(),t){f.stopPropagation();return}a==null||a(f)},d=f=>{f.key===" "&&(f.preventDefault(),u(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:o??"button",disabled:void 0,tabIndex:t?void 0:s,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:u,onKeyDown:d},l]}const e3=ie.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=pde(e,hde);const[o,{tagName:a}]=ty(Object.assign({tagName:n,disabled:r},i));return b.jsx(a,Object.assign({},i,o,{ref:t}))});e3.displayName="Button";const ny=ie.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:o=!1,className:a,...s},c)=>{const l=kt(t,"btn"),[u,{tagName:d}]=ty({tagName:e,disabled:o,...s});return b.jsx(d,{...u,...s,ref:c,disabled:o,className:xe(a,l,i&&"active",n&&`${l}-${n}`,r&&`${l}-${r}`,s.href&&o&&"disabled")})});ny.displayName="Button";function gde(){return h.useState(null)}function vde(e,t,n,r=!1){const i=Nn(n);h.useEffect(()=>{const o=typeof e=="function"?e():e;return o.addEventListener(t,i,r),()=>o.removeEventListener(t,i,r)},[e])}const bde=["onKeyDown"];function yde(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 xde(e){return!e||e.trim()==="#"}const t3=ie.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=yde(e,bde);const[i]=ty(Object.assign({tagName:"a"},r)),o=Nn(a=>{i.onKeyDown(a),n==null||n(a)});return xde(r.href)||r.role==="button"?b.jsx("a",Object.assign({ref:t},r,i,{onKeyDown:o})):b.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});t3.displayName="Anchor";function wde(e,t,n){const r=h.useRef(e!==void 0),[i,o]=h.useState(t),a=e!==void 0,s=r.current;return r.current=a,!a&&s&&i!==t&&o(t),[a?e:i,h.useCallback((...c)=>{const[l,...u]=c;let d=n==null?void 0:n(l,...u);return o(l),d},[n])]}function _de(){const[,e]=h.useReducer(t=>t+1,0);return e}const sp=ie.createContext(null);var g_=Object.prototype.hasOwnProperty;function v_(e,t,n){for(n of e.keys())if(yc(n,t))return n}function yc(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&yc(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i=="object"&&(i=v_(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i=="object"&&(i=v_(t,i),!i)||!yc(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(g_.call(e,n)&&++r&&!g_.call(t,n)||!(n in t)||!yc(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function Cde(e){const t=XO();return[e[0],h.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var Yn="top",gr="bottom",vr="right",Gn="left",ry="auto",ql=[Yn,gr,vr,Gn],Ja="start",ml="end",$de="clippingParents",n3="viewport",nc="popper",Sde="reference",b_=ql.reduce(function(e,t){return e.concat([t+"-"+Ja,t+"-"+ml])},[]),r3=[].concat(ql,[ry]).reduce(function(e,t){return e.concat([t,t+"-"+Ja,t+"-"+ml])},[]),Ede="beforeRead",Tde="read",kde="afterRead",Ode="beforeMain",Mde="main",Rde="afterMain",Ade="beforeWrite",jde="write",Nde="afterWrite",Dde=[Ede,Tde,kde,Ode,Mde,Rde,Ade,jde,Nde];function Fr(e){return e.split("-")[0]}function rr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xo(e){var t=rr(e).Element;return e instanceof t||e instanceof Element}function Br(e){var t=rr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function iy(e){if(typeof ShadowRoot>"u")return!1;var t=rr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Fo=Math.max,of=Math.min,es=Math.round;function dv(){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 i3(){return!/^((?!chrome|android).)*safari/i.test(dv())}function ts(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Br(e)&&(i=e.offsetWidth>0&&es(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&es(r.height)/e.offsetHeight||1);var a=Xo(e)?rr(e):window,s=a.visualViewport,c=!i3()&&n,l=(r.left+(c&&s?s.offsetLeft:0))/i,u=(r.top+(c&&s?s.offsetTop:0))/o,d=r.width/i,f=r.height/o;return{width:d,height:f,top:u,right:l+d,bottom:u+f,left:l,x:l,y:u}}function oy(e){var t=ts(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 o3(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&iy(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ao(e){return e?(e.nodeName||"").toLowerCase():null}function Ci(e){return rr(e).getComputedStyle(e)}function Ide(e){return["table","td","th"].indexOf(ao(e))>=0}function lo(e){return((Xo(e)?e.ownerDocument:e.document)||window.document).documentElement}function cp(e){return ao(e)==="html"?e:e.assignedSlot||e.parentNode||(iy(e)?e.host:null)||lo(e)}function y_(e){return!Br(e)||Ci(e).position==="fixed"?null:e.offsetParent}function Pde(e){var t=/firefox/i.test(dv()),n=/Trident/i.test(dv());if(n&&Br(e)){var r=Ci(e);if(r.position==="fixed")return null}var i=cp(e);for(iy(i)&&(i=i.host);Br(i)&&["html","body"].indexOf(ao(i))<0;){var o=Ci(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Yl(e){for(var t=rr(e),n=y_(e);n&&Ide(n)&&Ci(n).position==="static";)n=y_(n);return n&&(ao(n)==="html"||ao(n)==="body"&&Ci(n).position==="static")?t:n||Pde(e)||t}function ay(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xc(e,t,n){return Fo(e,of(t,n))}function Lde(e,t,n){var r=xc(e,t,n);return r>n?n:r}function a3(){return{top:0,right:0,bottom:0,left:0}}function s3(e){return Object.assign({},a3(),e)}function c3(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Fde=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,s3(typeof e!="number"?e:c3(e,ql))};function Bde(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Fr(n.placement),c=ay(s),l=[Gn,vr].indexOf(s)>=0,u=l?"height":"width";if(!(!o||!a)){var d=Fde(i.padding,n),f=oy(o),p=c==="y"?Yn:Gn,g=c==="y"?gr:vr,m=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],v=a[c]-n.rects.reference[c],x=Yl(o),w=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,_=m/2-v/2,C=d[p],y=w-f[u]-d[g],$=w/2-f[u]/2+_,E=xc(C,$,y),k=c;n.modifiersData[r]=(t={},t[k]=E,t.centerOffset=E-$,t)}}function zde(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||o3(t.elements.popper,i)&&(t.elements.arrow=i))}const Wde={name:"arrow",enabled:!0,phase:"main",fn:Bde,effect:zde,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ns(e){return e.split("-")[1]}var Ude={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vde(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:es(n*i)/i||0,y:es(r*i)/i||0}}function x_(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=f===void 0?0:f,g=a.y,m=g===void 0?0:g,v=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=v.x,m=v.y;var x=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),_=Gn,C=Yn,y=window;if(l){var $=Yl(n),E="clientHeight",k="clientWidth";if($===rr(n)&&($=lo(n),Ci($).position!=="static"&&s==="absolute"&&(E="scrollHeight",k="scrollWidth")),$=$,i===Yn||(i===Gn||i===vr)&&o===ml){C=gr;var T=d&&$===y&&y.visualViewport?y.visualViewport.height:$[E];m-=T-r.height,m*=c?1:-1}if(i===Gn||(i===Yn||i===gr)&&o===ml){_=vr;var O=d&&$===y&&y.visualViewport?y.visualViewport.width:$[k];p-=O-r.width,p*=c?1:-1}}var S=Object.assign({position:s},l&&Ude),M=u===!0?Vde({x:p,y:m},rr(n)):{x:p,y:m};if(p=M.x,m=M.y,c){var A;return Object.assign({},S,(A={},A[C]=w?"0":"",A[_]=x?"0":"",A.transform=(y.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",A))}return Object.assign({},S,(t={},t[C]=w?m+"px":"",t[_]=x?p+"px":"",t.transform="",t))}function Hde(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:Fr(t.placement),variation:ns(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,x_(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,x_(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const qde={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Hde,data:{}};var Mu={passive:!0};function Yde(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,c=rr(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(u){u.addEventListener("scroll",n.update,Mu)}),s&&c.addEventListener("resize",n.update,Mu),function(){o&&l.forEach(function(u){u.removeEventListener("scroll",n.update,Mu)}),s&&c.removeEventListener("resize",n.update,Mu)}}const Gde={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Yde,data:{}};var Kde={left:"right",right:"left",bottom:"top",top:"bottom"};function ed(e){return e.replace(/left|right|bottom|top/g,function(t){return Kde[t]})}var Zde={start:"end",end:"start"};function w_(e){return e.replace(/start|end/g,function(t){return Zde[t]})}function sy(e){var t=rr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function cy(e){return ts(lo(e)).left+sy(e).scrollLeft}function Xde(e,t){var n=rr(e),r=lo(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;var l=i3();(l||!l&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s+cy(e),y:c}}function Qde(e){var t,n=lo(e),r=sy(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Fo(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Fo(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+cy(e),c=-r.scrollTop;return Ci(i||n).direction==="rtl"&&(s+=Fo(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}function ly(e){var t=Ci(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function l3(e){return["html","body","#document"].indexOf(ao(e))>=0?e.ownerDocument.body:Br(e)&&ly(e)?e:l3(cp(e))}function wc(e,t){var n;t===void 0&&(t=[]);var r=l3(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=rr(r),a=i?[o].concat(o.visualViewport||[],ly(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(wc(cp(a)))}function fv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Jde(e,t){var n=ts(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 __(e,t,n){return t===n3?fv(Xde(e,n)):Xo(t)?Jde(t,n):fv(Qde(lo(e)))}function efe(e){var t=wc(cp(e)),n=["absolute","fixed"].indexOf(Ci(e).position)>=0,r=n&&Br(e)?Yl(e):e;return Xo(r)?t.filter(function(i){return Xo(i)&&o3(i,r)&&ao(i)!=="body"}):[]}function tfe(e,t,n,r){var i=t==="clippingParents"?efe(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(c,l){var u=__(e,l,r);return c.top=Fo(u.top,c.top),c.right=of(u.right,c.right),c.bottom=of(u.bottom,c.bottom),c.left=Fo(u.left,c.left),c},__(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function u3(e){var t=e.reference,n=e.element,r=e.placement,i=r?Fr(r):null,o=r?ns(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case Yn:c={x:a,y:t.y-n.height};break;case gr:c={x:a,y:t.y+t.height};break;case vr:c={x:t.x+t.width,y:s};break;case Gn:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?ay(i):null;if(l!=null){var u=l==="y"?"height":"width";switch(o){case Ja:c[l]=c[l]-(t[u]/2-n[u]/2);break;case ml:c[l]=c[l]+(t[u]/2-n[u]/2);break}}return c}function gl(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,c=s===void 0?$de:s,l=n.rootBoundary,u=l===void 0?n3:l,d=n.elementContext,f=d===void 0?nc:d,p=n.altBoundary,g=p===void 0?!1:p,m=n.padding,v=m===void 0?0:m,x=s3(typeof v!="number"?v:c3(v,ql)),w=f===nc?Sde:nc,_=e.rects.popper,C=e.elements[g?w:f],y=tfe(Xo(C)?C:C.contextElement||lo(e.elements.popper),c,u,a),$=ts(e.elements.reference),E=u3({reference:$,element:_,placement:i}),k=fv(Object.assign({},_,E)),T=f===nc?k:$,O={top:y.top-T.top+x.top,bottom:T.bottom-y.bottom+x.bottom,left:y.left-T.left+x.left,right:T.right-y.right+x.right},S=e.modifiersData.offset;if(f===nc&&S){var M=S[i];Object.keys(O).forEach(function(A){var j=[vr,gr].indexOf(A)>=0?1:-1,P=[Yn,gr].indexOf(A)>=0?"y":"x";O[A]+=M[P]*j})}return O}function nfe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?r3:c,u=ns(r),d=u?s?b_:b_.filter(function(g){return ns(g)===u}):ql,f=d.filter(function(g){return l.indexOf(g)>=0});f.length===0&&(f=d);var p=f.reduce(function(g,m){return g[m]=gl(e,{placement:m,boundary:i,rootBoundary:o,padding:a})[Fr(m)],g},{});return Object.keys(p).sort(function(g,m){return p[g]-p[m]})}function rfe(e){if(Fr(e)===ry)return[];var t=ed(e);return[w_(e),t,w_(t)]}function ife(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,g=p===void 0?!0:p,m=n.allowedAutoPlacements,v=t.options.placement,x=Fr(v),w=x===v,_=c||(w||!g?[ed(v)]:rfe(v)),C=[v].concat(_).reduce(function(Z,X){return Z.concat(Fr(X)===ry?nfe(t,{placement:X,boundary:u,rootBoundary:d,padding:l,flipVariations:g,allowedAutoPlacements:m}):X)},[]),y=t.rects.reference,$=t.rects.popper,E=new Map,k=!0,T=C[0],O=0;O<C.length;O++){var S=C[O],M=Fr(S),A=ns(S)===Ja,j=[Yn,gr].indexOf(M)>=0,P=j?"width":"height",I=gl(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),L=j?A?vr:Gn:A?gr:Yn;y[P]>$[P]&&(L=ed(L));var V=ed(L),z=[];if(o&&z.push(I[M]<=0),s&&z.push(I[L]<=0,I[V]<=0),z.every(function(Z){return Z})){T=S,k=!1;break}E.set(S,z)}if(k)for(var D=g?3:1,W=function(Z){var X=C.find(function(ee){var ne=E.get(ee);if(ne)return ne.slice(0,Z).every(function(F){return F})});if(X)return T=X,"break"},G=D;G>0;G--){var J=W(G);if(J==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const ofe={name:"flip",enabled:!0,phase:"main",fn:ife,requiresIfExists:["offset"],data:{_skip:!1}};function C_(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 $_(e){return[Yn,vr,gr,Gn].some(function(t){return e[t]>=0})}function afe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=gl(t,{elementContext:"reference"}),s=gl(t,{altBoundary:!0}),c=C_(a,r),l=C_(s,i,o),u=$_(c),d=$_(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const sfe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:afe};function cfe(e,t,n){var r=Fr(e),i=[Gn,Yn].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Gn,vr].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function lfe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=r3.reduce(function(u,d){return u[d]=cfe(d,t.rects,o),u},{}),s=a[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}const ufe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:lfe};function dfe(e){var t=e.state,n=e.name;t.modifiersData[n]=u3({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const ffe={name:"popperOffsets",enabled:!0,phase:"read",fn:dfe,data:{}};function hfe(e){return e==="x"?"y":"x"}function pfe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,g=n.tetherOffset,m=g===void 0?0:g,v=gl(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),x=Fr(t.placement),w=ns(t.placement),_=!w,C=ay(x),y=hfe(C),$=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,T=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,O=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if($){if(o){var A,j=C==="y"?Yn:Gn,P=C==="y"?gr:vr,I=C==="y"?"height":"width",L=$[C],V=L+v[j],z=L-v[P],D=p?-k[I]/2:0,W=w===Ja?E[I]:k[I],G=w===Ja?-k[I]:-E[I],J=t.elements.arrow,Z=p&&J?oy(J):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:a3(),ee=X[j],ne=X[P],F=xc(0,E[I],Z[I]),N=_?E[I]/2-D-F-ee-O.mainAxis:W-F-ee-O.mainAxis,B=_?-E[I]/2+D+F+ne+O.mainAxis:G+F+ne+O.mainAxis,H=t.elements.arrow&&Yl(t.elements.arrow),R=H?C==="y"?H.clientTop||0:H.clientLeft||0:0,Y=(A=S==null?void 0:S[C])!=null?A:0,Q=L+N-Y-R,te=L+B-Y,ue=xc(p?of(V,Q):V,L,p?Fo(z,te):z);$[C]=ue,M[C]=ue-L}if(s){var oe,ae=C==="x"?Yn:Gn,pe=C==="x"?gr:vr,ve=$[y],Ee=y==="y"?"height":"width",Se=ve+v[ae],Oe=ve-v[pe],Fe=[Yn,Gn].indexOf(x)!==-1,fe=(oe=S==null?void 0:S[y])!=null?oe:0,se=Fe?Se:ve-E[Ee]-k[Ee]-fe+O.altAxis,we=Fe?ve+E[Ee]+k[Ee]-fe-O.altAxis:Oe,Ve=p&&Fe?Lde(se,ve,we):xc(p?se:Se,ve,p?we:Oe);$[y]=Ve,M[y]=Ve-ve}t.modifiersData[r]=M}}const mfe={name:"preventOverflow",enabled:!0,phase:"main",fn:pfe,requiresIfExists:["offset"]};function gfe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function vfe(e){return e===rr(e)||!Br(e)?sy(e):gfe(e)}function bfe(e){var t=e.getBoundingClientRect(),n=es(t.width)/e.offsetWidth||1,r=es(t.height)/e.offsetHeight||1;return n!==1||r!==1}function yfe(e,t,n){n===void 0&&(n=!1);var r=Br(t),i=Br(t)&&bfe(t),o=lo(t),a=ts(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((ao(t)!=="body"||ly(o))&&(s=vfe(t)),Br(t)?(c=ts(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=cy(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function xfe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var c=t.get(s);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function wfe(e){var t=xfe(e);return Dde.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function _fe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Cfe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var S_={placement:"bottom",modifiers:[],strategy:"absolute"};function E_(){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 $fe(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?S_:i;return function(a,s,c){c===void 0&&(c=o);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},S_,o),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},u=[],d=!1,f={state:l,setOptions:function(m){var v=typeof m=="function"?m(l.options):m;g(),l.options=Object.assign({},o,l.options,v),l.scrollParents={reference:Xo(a)?wc(a):a.contextElement?wc(a.contextElement):[],popper:wc(s)};var x=wfe(Cfe([].concat(r,l.options.modifiers)));return l.orderedModifiers=x.filter(function(w){return w.enabled}),p(),f.update()},forceUpdate:function(){if(!d){var m=l.elements,v=m.reference,x=m.popper;if(E_(v,x)){l.rects={reference:yfe(v,Yl(x),l.options.strategy==="fixed"),popper:oy(x)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(k){return l.modifiersData[k.name]=Object.assign({},k.data)});for(var w=0;w<l.orderedModifiers.length;w++){if(l.reset===!0){l.reset=!1,w=-1;continue}var _=l.orderedModifiers[w],C=_.fn,y=_.options,$=y===void 0?{}:y,E=_.name;typeof C=="function"&&(l=C({state:l,options:$,name:E,instance:f})||l)}}}},update:_fe(function(){return new Promise(function(m){f.forceUpdate(),m(l)})}),destroy:function(){g(),d=!0}};if(!E_(a,s))return f;f.setOptions(c).then(function(m){!d&&c.onFirstUpdate&&c.onFirstUpdate(m)});function p(){l.orderedModifiers.forEach(function(m){var v=m.name,x=m.options,w=x===void 0?{}:x,_=m.effect;if(typeof _=="function"){var C=_({state:l,name:v,instance:f,options:w}),y=function(){};u.push(C||y)}})}function g(){u.forEach(function(m){return m()}),u=[]}return f}}const Sfe=$fe({defaultModifiers:[sfe,ffe,qde,Gde,ufe,ofe,mfe,Wde]}),Efe=["enabled","placement","strategy","modifiers"];function Tfe(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 kfe={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Ofe={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(i=>i.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,i=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&i==="tooltip"&&"setAttribute"in r){const o=r.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",o?`${o},${n.id}`:n.id)}}},Mfe=[];function Rfe(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:o="absolute",modifiers:a=Mfe}=n,s=Tfe(n,Efe);const c=h.useRef(a),l=h.useRef(),u=h.useCallback(()=>{var v;(v=l.current)==null||v.update()},[]),d=h.useCallback(()=>{var v;(v=l.current)==null||v.forceUpdate()},[]),[f,p]=Cde(h.useState({placement:i,update:u,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=h.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:v})=>{const x={},w={};Object.keys(v.elements).forEach(_=>{x[_]=v.styles[_],w[_]=v.attributes[_]}),p({state:v,styles:x,attributes:w,update:u,forceUpdate:d,placement:v.placement})}}),[u,d,p]),m=h.useMemo(()=>(yc(c.current,a)||(c.current=a),c.current),[a]);return h.useEffect(()=>{!l.current||!r||l.current.setOptions({placement:i,strategy:o,modifiers:[...m,g,kfe]})},[o,i,g,r,m]),h.useEffect(()=>{if(!(!r||e==null||t==null))return l.current=Sfe(e,t,Object.assign({},s,{placement:i,strategy:o,modifiers:[...m,Ofe,g]})),()=>{l.current!=null&&(l.current.destroy(),l.current=void 0,p(v=>Object.assign({},v,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}const T_=()=>{};function Afe(e){return e.button===0}function jfe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Sm=e=>e&&("current"in e?e.current:e),k_={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Nfe(e,t=T_,{disabled:n,clickTrigger:r="click"}={}){const i=h.useRef(!1),o=h.useRef(!1),a=h.useCallback(l=>{const u=Sm(e);ip(!!u,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!u||jfe(l)||!Afe(l)||!!rf(u,l.target)||o.current,o.current=!1},[e]),s=Nn(l=>{const u=Sm(e);u&&rf(u,l.target)?o.current=!0:o.current=!1}),c=Nn(l=>{i.current||t(l)});h.useEffect(()=>{var l,u;if(n||e==null)return;const d=Vl(Sm(e)),f=d.defaultView||window;let p=(l=f.event)!=null?l:(u=f.parent)==null?void 0:u.event,g=null;k_[r]&&(g=qi(d,k_[r],s,!0));const m=qi(d,r,a,!0),v=qi(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=>qi(w,"mousemove",T_))),()=>{g==null||g(),m(),v(),x.forEach(w=>w())}},[e,n,r,a,s,c])}function Dfe(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function Ife(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Pfe({enabled:e,enableEvents:t,placement:n,flip:r,offset:i,fixed:o,containerPadding:a,arrowElement:s,popperConfig:c={}}){var l,u,d,f,p;const g=Dfe(c.modifiers);return Object.assign({},c,{placement:n,enabled:e,strategy:o?"fixed":c.strategy,modifiers:Ife(Object.assign({},g,{eventListeners:{enabled:t,options:(l=g.eventListeners)==null?void 0:l.options},preventOverflow:Object.assign({},g.preventOverflow,{options:a?Object.assign({padding:a},(u=g.preventOverflow)==null?void 0:u.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:i},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!s,options:Object.assign({},(p=g.arrow)==null?void 0:p.options,{element:s})}),flip:Object.assign({enabled:!!r},g.flip)}))})}const Lfe=["children","usePopper"];function Ffe(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 Bfe=()=>{};function d3(e={}){const t=h.useContext(sp),[n,r]=gde(),i=h.useRef(!1),{flip:o,offset:a,rootCloseEvent:s,fixed:c=!1,placement:l,popperConfig:u={},enableEventListeners:d=!0,usePopper:f=!!t}=e,p=(t==null?void 0:t.show)==null?!!e.show:t.show;p&&!i.current&&(i.current=!0);const g=$=>{t==null||t.toggle(!1,$)},{placement:m,setMenu:v,menuElement:x,toggleElement:w}=t||{},_=Rfe(w,x,Pfe({placement:l||m||"bottom-start",enabled:f,enableEvents:d??p,offset:a,flip:o,fixed:c,arrowElement:n,popperConfig:u})),C=Object.assign({ref:v||Bfe,"aria-labelledby":w==null?void 0:w.id},_.attributes.popper,{style:_.styles.popper}),y={show:p,placement:m,hasShown:i.current,toggle:t==null?void 0:t.toggle,popper:f?_:null,arrowProps:f?Object.assign({ref:r},_.attributes.arrow,{style:_.styles.arrow}):{}};return Nfe(x,g,{clickTrigger:s,disabled:!p}),[C,y]}function f3(e){let{children:t,usePopper:n=!0}=e,r=Ffe(e,Lfe);const[i,o]=d3(Object.assign({},r,{usePopper:n}));return b.jsx(b.Fragment,{children:t(i,o)})}f3.displayName="DropdownMenu";const af={prefix:String(Math.round(Math.random()*1e10)),current:0},h3=h.createContext(af),zfe=h.createContext(!1);let Wfe=!!(typeof window<"u"&&window.document&&window.document.createElement),Em=new WeakMap;function Ufe(e=!1){let t=h.useContext(h3),n=h.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let a=Em.get(o);a==null?Em.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==a.state&&(t.current=a.id,Em.delete(o))}n.current=++t.current}return n.current}function Vfe(e){let t=h.useContext(h3);t===af&&!Wfe&&process.env.NODE_ENV!=="production"&&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=Ufe(!!e),r=t===af&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function Hfe(e){let t=h.useId(),[n]=h.useState(Zfe()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${af.prefix}`;return e||`${r}-${t}`}const qfe=typeof h.useId=="function"?Hfe:Vfe;function Yfe(){return!1}function Gfe(){return!0}function Kfe(e){return()=>{}}function Zfe(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(Kfe,Yfe,Gfe):h.useContext(zfe)}const p3=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},O_=()=>{};function m3(){const e=qfe(),{show:t=!1,toggle:n=O_,setToggle:r,menuElement:i}=h.useContext(sp)||{},o=h.useCallback(s=>{n(!t,s)},[t,n]),a={id:e,ref:r||O_,onClick:o,"aria-expanded":!!t};return i&&p3(i)&&(a["aria-haspopup"]=!0),[a,{show:t,toggle:n}]}function g3({children:e}){const[t,n]=m3();return b.jsx(b.Fragment,{children:e(t,n)})}g3.displayName="DropdownToggle";const hv=ie.createContext(null),M_=(e,t=null)=>e!=null?String(e):t||null,v3=ie.createContext(null);v3.displayName="NavContext";const Xfe=["eventKey","disabled","onClick","active","as"];function Qfe(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 b3({key:e,href:t,active:n,disabled:r,onClick:i}){const o=h.useContext(hv),a=h.useContext(v3),{activeKey:s}=a||{},c=M_(e,t),l=n==null&&e!=null?M_(s)===c:n;return[{onClick:Nn(u=>{r||(i==null||i(u),o&&!u.isPropagationStopped()&&o(c,u))}),"aria-disabled":r||void 0,"aria-selected":l,[ey("dropdown-item")]:""},{isActive:l}]}const y3=ie.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:o,as:a=e3}=e,s=Qfe(e,Xfe);const[c]=b3({key:n,href:s.href,disabled:r,onClick:i,active:o});return b.jsx(a,Object.assign({},s,{ref:t},c))});y3.displayName="DropdownItem";function R_(){const e=_de(),t=h.useRef(null),n=h.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function Gl({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:i=`* [${ey("dropdown-item")}]`,focusFirstItemOnShow:o,placement:a="bottom-start",children:s}){const c=ap(),[l,u]=wde(t,e,r),[d,f]=R_(),p=d.current,[g,m]=R_(),v=g.current,x=QO(l),w=h.useRef(null),_=h.useRef(!1),C=h.useContext(hv),y=h.useCallback((S,M,A=M==null?void 0:M.type)=>{u(S,{originalEvent:M,source:A})},[u]),$=Nn((S,M)=>{n==null||n(S,M),y(!1,M,"select"),M.isPropagationStopped()||(C==null||C(S,M))}),E=h.useMemo(()=>({toggle:y,placement:a,show:l,menuElement:p,toggleElement:v,setMenu:f,setToggle:m}),[y,a,l,p,v,f,m]);p&&x&&!l&&(_.current=p.contains(p.ownerDocument.activeElement));const k=Nn(()=>{v&&v.focus&&v.focus()}),T=Nn(()=>{const S=w.current;let M=o;if(M==null&&(M=d.current&&p3(d.current)?"keyboard":!1),M===!1||M==="keyboard"&&!/^key.+$/.test(S))return;const A=Ii(d.current,i)[0];A&&A.focus&&A.focus()});h.useEffect(()=>{l?T():_.current&&(_.current=!1,k())},[l,_,k,T]),h.useEffect(()=>{w.current=null});const O=(S,M)=>{if(!d.current)return null;const A=Ii(d.current,i);let j=A.indexOf(S)+M;return j=Math.max(0,Math.min(j,A.length)),A[j]};return vde(h.useCallback(()=>c.document,[c]),"keydown",S=>{var M,A;const{key:j}=S,P=S.target,I=(M=d.current)==null?void 0:M.contains(P),L=(A=g.current)==null?void 0:A.contains(P);if(/input|textarea/i.test(P.tagName)&&(j===" "||j!=="Escape"&&I||j==="Escape"&&P.type==="search")||!I&&!L||j==="Tab"&&(!d.current||!l))return;w.current=S.type;const V={originalEvent:S,source:S.type};switch(j){case"ArrowUp":{const z=O(P,-1);z&&z.focus&&z.focus(),S.preventDefault();return}case"ArrowDown":if(S.preventDefault(),!l)u(!0,V);else{const z=O(P,1);z&&z.focus&&z.focus()}return;case"Tab":Jb(P.ownerDocument,"keyup",z=>{var D;(z.key==="Tab"&&!z.target||!((D=d.current)!=null&&D.contains(z.target)))&&u(!1,V)},{once:!0});break;case"Escape":j==="Escape"&&(S.preventDefault(),S.stopPropagation()),u(!1,V);break}}),b.jsx(hv.Provider,{value:$,children:b.jsx(sp.Provider,{value:E,children:s})})}Gl.displayName="Dropdown";Gl.Menu=f3;Gl.Toggle=g3;Gl.Item=y3;const uy=ie.createContext({});uy.displayName="DropdownContext";const x3=ie.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...i},o)=>(t=kt(t,"dropdown-divider"),b.jsx(n,{ref:o,className:xe(e,t),role:r,...i})));x3.displayName="DropdownDivider";const w3=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...i},o)=>(t=kt(t,"dropdown-header"),b.jsx(n,{ref:o,className:xe(e,t),role:r,...i})));w3.displayName="DropdownHeader";const _3=ie.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:i,active:o,as:a=t3,...s},c)=>{const l=kt(e,"dropdown-item"),[u,d]=b3({key:n,href:s.href,disabled:r,onClick:i,active:o});return b.jsx(a,{...s,...u,ref:c,className:xe(t,l,d.isActive&&"active",r&&"disabled")})});_3.displayName="DropdownItem";const C3=ie.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=kt(t,"dropdown-item-text"),b.jsx(n,{ref:i,className:xe(e,t),...r})));C3.displayName="DropdownItemText";const Jfe=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",ehe=typeof document<"u",the=ehe||Jfe?h.useLayoutEffect:h.useEffect,dy=ie.createContext(null);dy.displayName="InputGroupContext";const $3=ie.createContext(null);$3.displayName="NavbarContext";function S3(e,t){if(process.env.NODE_ENV==="production")return e;const n=h.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?h_(!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`):h_(!1))},[t]);return Hl(n,e)}function E3(e,t,n){const r=n?"top-end":"top-start",i=n?"top-start":"top-end",o=n?"bottom-end":"bottom-start",a=n?"bottom-start":"bottom-end",s=n?"right-start":"left-start",c=n?"right-end":"left-end",l=n?"left-start":"right-start",u=n?"left-end":"right-end";let d=e?a:o;return t==="up"?d=e?i:r:t==="end"?d=e?u:l:t==="start"?d=e?c:s:t==="down-centered"?d="bottom":t==="up-centered"&&(d="top"),d}const T3=ie.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:i=!0,show:o,renderOnMount:a,as:s="div",popperConfig:c,variant:l,...u},d)=>{let f=!1;const p=h.useContext($3),g=kt(e,"dropdown-menu"),{align:m,drop:v,isRTL:x}=h.useContext(uy);n=n||m;const w=h.useContext(dy),_=[];if(n)if(typeof n=="object"){const S=Object.keys(n);if(process.env.NODE_ENV!=="production"&&ip(S.length===1,"There should only be 1 breakpoint when passing an object to `align`"),S.length){const M=S[0],A=n[M];f=A==="start",_.push(`${g}-${M}-${A}`)}}else n==="end"&&(f=!0);const C=E3(f,v,x),[y,{hasShown:$,popper:E,show:k,toggle:T}]=d3({flip:i,rootCloseEvent:r,show:o,usePopper:!p&&_.length===0,offset:[0,2],popperConfig:c,placement:C});if(y.ref=Hl(S3(d,"DropdownMenu"),y.ref),the(()=>{k&&(E==null||E.update())},[k]),!$&&!a&&!w)return null;typeof s!="string"&&(y.show=k,y.close=()=>T==null?void 0:T(!1),y.align=n);let O=u.style;return E!=null&&E.placement&&(O={...u.style,...y.style},u["x-placement"]=E.placement),b.jsx(s,{...u,...y,style:O,...(_.length||p)&&{"data-bs-popper":"static"},className:xe(t,g,k&&"show",f&&`${g}-end`,l&&`${g}-${l}`,..._)})});T3.displayName="DropdownMenu";const k3=ie.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:i=ny,...o},a)=>{const s=kt(e,"dropdown-toggle"),c=h.useContext(sp);r!==void 0&&(o.bsPrefix=r);const[l]=m3();return l.ref=Hl(l.ref,S3(a,"DropdownToggle")),b.jsx(i,{className:xe(n,s,t&&`${s}-split`,(c==null?void 0:c.show)&&"show"),...l,...o})});k3.displayName="DropdownToggle";const O3=ie.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:i,className:o,align:a="start",onSelect:s,onToggle:c,focusFirstItemOnShow:l,as:u="div",navbar:d,autoClose:f=!0,...p}=ZO(e,{show:"onToggle"}),g=h.useContext(dy),m=kt(n,"dropdown"),v=IO(),x=$=>f===!1?$==="click":f==="inside"?$!=="rootClose":f==="outside"?$!=="select":!0,w=nf(($,E)=>{var k;!((k=E.originalEvent)==null||(k=k.target)==null)&&k.classList.contains("dropdown-toggle")&&E.source==="mousedown"||(E.originalEvent.currentTarget===document&&(E.source!=="keydown"||E.originalEvent.key==="Escape")&&(E.source="rootClose"),x(E.source)&&(c==null||c($,E)))}),_=E3(a==="end",r,v),C=h.useMemo(()=>({align:a,drop:r,isRTL:v}),[a,r,v]),y={down:m,"down-centered":`${m}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return b.jsx(uy.Provider,{value:C,children:b.jsx(Gl,{placement:_,show:i,onSelect:s,onToggle:w,focusFirstItemOnShow:l,itemSelector:`.${m}-item:not(.disabled):not(:disabled)`,children:g?p.children:b.jsx(u,{...p,ref:t,className:xe(o,i&&"show",y[r])})})})});O3.displayName="Dropdown";const Tn=Object.assign(O3,{Toggle:k3,Menu:T3,Item:_3,ItemText:C3,Divider:x3,Header:w3}),nhe="_multiselect_krzom_1",rhe="_multiselect-menu_krzom_34",ihe="_search-item_krzom_41",ohe="_special-option_krzom_45",Ru={multiselect:nhe,multiselectMenu:rhe,searchItem:ihe,specialOption:ohe},A_=10,ahe=({column:e,filterValue:t,texts:n})=>{var g,m,v;const[r,i]=h.useState(""),o=h.useMemo(()=>Array.from(e.getFacetedUniqueValues().keys()).map(x=>x===!0||x===!1?x:(x==null?void 0:x.toString())??"").sort(),[e]),a=h.useMemo(()=>o.some(x=>x===""||x===null||x===void 0),[o]),s=h.useMemo(()=>(t==null?void 0:t.split(";"))??[],[t]),c=x=>{const w=x===""?[]:s.includes(x)?s.filter(_=>_!==x):[...s,x];e.setFilterValue(!w||w.length<1?"":w.join(";"))},l=h.useMemo(()=>{const x=[{value:"",label:n.multiselect.all||"vše",specialOption:!0}];return a&&x.push({value:"no_value_filter_value",label:n.multiselect.noValue||"bez hodnoty",specialOption:!0}),o.forEach(w=>{x.push({value:(w==null?void 0:w.toString())||"",label:w===!0?n.booleanYes||"ano":w===!1?n.booleanNo||"ne":w,specialOption:!1})}),s.forEach(w=>{w&&w!=="no_value_filter_value"&&!o.some(_=>_.toString()===w.toString())&&x.push({value:w,label:w,specialOption:!1})}),Array.from(new Set(x.map(w=>w.value))).map(w=>x.find(_=>_.value===w))},[o,s,a,n]),u=h.useRef(null),d=h.useRef(null),[f,p]=h.useState(!1);return h.useEffect(()=>{f&&d.current&&d.current.focus()},[f]),h.useEffect(()=>{l.length<A_&&i("")},[l]),b.jsxs(Tn,{autoClose:"outside",onToggle:x=>p(x),children:[b.jsx(Tn.Toggle,{className:xe("filter multiselect border",Ru.multiselect,{filtered:t}),"data-testId":`filter-${e.id}`,id:`filter-${e.id}`,ref:u,role:"filter-input",size:"sm",onKeyDown:x=>{x.key==="Escape"&&e.setFilterValue("")},children:s.length>1?n.multiselect.xValues?n.multiselect.xValues(s.length):`${s.length} hodnoty`:s.length===1?(g=l.find(x=>x.value===t))==null?void 0:g.label:n.multiselect.all||"vše"}),b.jsxs(Tn.Menu,{className:xe("multiselect-menu shadow-sm",Ru.multiselectMenu),style:{position:"relative",left:(m=u.current)==null?void 0:m.getBoundingClientRect().left,top:(v=u.current)==null?void 0:v.getBoundingClientRect().bottom},children:[l.length>=A_?b.jsx(Tn.Item,{className:xe("rounded search-item",Ru.searchItem),children:b.jsx(ef.Control,{className:"w-100",ref:d,size:"sm",type:"search",value:r,onChange:x=>i(x.target.value??"")})}):null,l.filter(x=>x.specialOption?!0:r?tf(x.value).toLowerCase().includes(tf(r.toLowerCase())):!0).map(x=>b.jsx(Tn.Item,{className:xe("rounded",{"special-option":x.specialOption},{[Ru.specialOption]:x.specialOption}),onClick:()=>c(x.value),children:b.jsx(ef.Check,{checked:x.value===""?s.length<1:s.includes(x.value),label:x.label,onChange:()=>{}})},x.value))]})]})},she=({column:e,IconComponent:t,texts:n})=>{const r=e.getFilterValue(),i=Due(e.columnDef);return["text","number","date","datetime"].includes(i)?b.jsx(nde,{column:e,filterValue:r?r.toString():null,IconComponent:t,texts:n}):b.jsx(ahe,{column:e,filterValue:r?r.toString():null,IconComponent:t,texts:n})};/**
313
- * table-core
314
- *
315
- * Copyright (c) TanStack
316
- *
317
- * This source code is licensed under the MIT license found in the
318
- * LICENSE.md file in the root directory of this source tree.
319
- *
320
- * @license MIT
321
- */function che(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}/**
322
- * react-table
323
- *
324
- * Copyright (c) TanStack
325
- *
326
- * This source code is licensed under the MIT license found in the
327
- * LICENSE.md file in the root directory of this source tree.
328
- *
329
- * @license MIT
330
- */function M3(e,t){return e?lhe(e)?ie.createElement(e,t):e:null}function lhe(e){return uhe(e)||typeof e=="function"||dhe(e)}function uhe(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function dhe(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function fhe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h.useMemo(()=>r=>{t.forEach(i=>i(r))},t)}const lp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Es(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function fy(e){return"nodeType"in e}function Zn(e){var t,n;return e?Es(e)?e:fy(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function hy(e){const{Document:t}=Zn(e);return e instanceof t}function Kl(e){return Es(e)?!1:e instanceof Zn(e).HTMLElement}function R3(e){return e instanceof Zn(e).SVGElement}function Ts(e){return e?Es(e)?e.document:fy(e)?hy(e)?e:Kl(e)||R3(e)?e.ownerDocument:document:document:document}const Gr=lp?h.useLayoutEffect:h.useEffect;function py(e){const t=h.useRef(e);return Gr(()=>{t.current=e}),h.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function hhe(){const e=h.useRef(null),t=h.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=h.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function vl(e,t){t===void 0&&(t=[e]);const n=h.useRef(e);return Gr(()=>{n.current!==e&&(n.current=e)},t),n}function Zl(e,t){const n=h.useRef();return h.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function sf(e){const t=py(e),n=h.useRef(null),r=h.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function pv(e){const t=h.useRef();return h.useEffect(()=>{t.current=e},[e]),t.current}let Tm={};function Xl(e,t){return h.useMemo(()=>{if(t)return t;const n=Tm[e]==null?0:Tm[e]+1;return Tm[e]=n,e+"-"+n},[e,t])}function A3(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((o,a)=>{const s=Object.entries(a);for(const[c,l]of s){const u=o[c];u!=null&&(o[c]=u+e*l)}return o},{...t})}}const Da=A3(1),cf=A3(-1);function phe(e){return"clientX"in e&&"clientY"in e}function my(e){if(!e)return!1;const{KeyboardEvent:t}=Zn(e.target);return t&&e instanceof t}function mhe(e){if(!e)return!1;const{TouchEvent:t}=Zn(e.target);return t&&e instanceof t}function mv(e){if(mhe(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return phe(e)?{x:e.clientX,y:e.clientY}:null}const bl=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[bl.Translate.toString(e),bl.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),j_="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function ghe(e){return e.matches(j_)?e:e.querySelector(j_)}const vhe={display:"none"};function bhe(e){let{id:t,value:n}=e;return h.createElement("div",{id:t,style:vhe},n)}function yhe(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const i={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return h.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function xhe(){const[e,t]=h.useState("");return{announce:h.useCallback(n=>{n!=null&&t(n)},[]),announcement:e}}const j3=h.createContext(null);function whe(e){const t=h.useContext(j3);h.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function _he(){const[e]=h.useState(()=>new Set),t=h.useCallback(n=>(e.add(n),()=>e.delete(n)),[e]);return[h.useCallback(n=>{let{type:r,event:i}=n;e.forEach(o=>{var a;return(a=o[r])==null?void 0:a.call(o,i)})},[e]),t]}const Che={draggable:`
331
- To pick up a draggable item, press the space bar.
332
- While dragging, use the arrow keys to move the item.
333
- Press space again to drop the item in its new position, or press escape to cancel.
334
- `},$he={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function She(e){let{announcements:t=$he,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=Che}=e;const{announce:o,announcement:a}=xhe(),s=Xl("DndLiveRegion"),[c,l]=h.useState(!1);if(h.useEffect(()=>{l(!0)},[]),whe(h.useMemo(()=>({onDragStart(d){let{active:f}=d;o(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:p}=d;t.onDragMove&&o(t.onDragMove({active:f,over:p}))},onDragOver(d){let{active:f,over:p}=d;o(t.onDragOver({active:f,over:p}))},onDragEnd(d){let{active:f,over:p}=d;o(t.onDragEnd({active:f,over:p}))},onDragCancel(d){let{active:f,over:p}=d;o(t.onDragCancel({active:f,over:p}))}}),[o,t])),!c)return null;const u=h.createElement(h.Fragment,null,h.createElement(bhe,{id:r,value:i.draggable}),h.createElement(yhe,{id:s,announcement:a}));return n?un.createPortal(u,n):u}var fn;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(fn||(fn={}));function lf(){}function km(e,t){return h.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Ehe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Mr=Object.freeze({x:0,y:0});function The(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function khe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Ohe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Mhe(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function N_(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const Rhe=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=N_(t,t.left,t.top),o=[];for(const a of r){const{id:s}=a,c=n.get(s);if(c){const l=The(N_(c),i);o.push({id:s,data:{droppableContainer:a,value:l}})}}return o.sort(khe)};function Ahe(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r<i&&n<o){const c=t.width*t.height,l=e.width*e.height,u=a*s,d=u/(c+l-u);return Number(d.toFixed(4))}return 0}const jhe=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:a}=o,s=n.get(a);if(s){const c=Ahe(s,t);c>0&&i.push({id:a,data:{droppableContainer:o,value:c}})}}return i.sort(Ohe)};function Nhe(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function N3(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Mr}function Dhe(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((o,a)=>({...o,top:o.top+e*a.y,bottom:o.bottom+e*a.y,left:o.left+e*a.x,right:o.right+e*a.x}),{...t})}}const Ihe=Dhe(1);function Phe(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Lhe(e,t,n){const r=Phe(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,c=e.left-a-(1-i)*parseFloat(n),l=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}const Fhe={ignoreTransform:!1};function ks(e,t){t===void 0&&(t=Fhe);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:l,transformOrigin:u}=Zn(e).getComputedStyle(e);l&&(n=Lhe(n,l,u))}const{top:r,left:i,width:o,height:a,bottom:s,right:c}=n;return{top:r,left:i,width:o,height:a,bottom:s,right:c}}function D_(e){return ks(e,{ignoreTransform:!0})}function Bhe(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function zhe(e,t){return t===void 0&&(t=Zn(e).getComputedStyle(e)),t.position==="fixed"}function Whe(e,t){t===void 0&&(t=Zn(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const i=t[r];return typeof i=="string"?n.test(i):!1})}function gy(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(hy(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Kl(i)||R3(i)||n.includes(i))return n;const o=Zn(e).getComputedStyle(i);return i!==e&&Whe(i,o)&&n.push(i),zhe(i,o)?n:r(i.parentNode)}return e?r(e):n}function D3(e){const[t]=gy(e,1);return t??null}function Om(e){return!lp||!e?null:Es(e)?e:fy(e)?hy(e)||e===Ts(e).scrollingElement?window:Kl(e)?e:null:null}function I3(e){return Es(e)?e.scrollX:e.scrollLeft}function P3(e){return Es(e)?e.scrollY:e.scrollTop}function gv(e){return{x:I3(e),y:P3(e)}}var bn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(bn||(bn={}));function L3(e){return!lp||!e?!1:e===document.scrollingElement}function F3(e){const t={x:0,y:0},n=L3(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,a=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:a,isRight:s,maxScroll:r,minScroll:t}}const Uhe={x:.2,y:.2};function Vhe(e,t,n,r,i){let{top:o,left:a,right:s,bottom:c}=n;r===void 0&&(r=10),i===void 0&&(i=Uhe);const{isTop:l,isBottom:u,isLeft:d,isRight:f}=F3(e),p={x:0,y:0},g={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!l&&o<=t.top+m.height?(p.y=bn.Backward,g.y=r*Math.abs((t.top+m.height-o)/m.height)):!u&&c>=t.bottom-m.height&&(p.y=bn.Forward,g.y=r*Math.abs((t.bottom-m.height-c)/m.height)),!f&&s>=t.right-m.width?(p.x=bn.Forward,g.x=r*Math.abs((t.right-m.width-s)/m.width)):!d&&a<=t.left+m.width&&(p.x=bn.Backward,g.x=r*Math.abs((t.left+m.width-a)/m.width)),{direction:p,speed:g}}function Hhe(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:a}=window;return{top:0,left:0,right:o,bottom:a,width:o,height:a}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function B3(e){return e.reduce((t,n)=>Da(t,gv(n)),Mr)}function qhe(e){return e.reduce((t,n)=>t+I3(n),0)}function Yhe(e){return e.reduce((t,n)=>t+P3(n),0)}function Ghe(e,t){if(t===void 0&&(t=ks),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);D3(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Khe=[["x",["left","right"],qhe],["y",["top","bottom"],Yhe]];class vy{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=gy(n),i=B3(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,a,s]of Khe)for(const c of a)Object.defineProperty(this,c,{get:()=>{const l=s(r),u=i[o]-l;return this.rect[c]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class _c{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function Zhe(e){const{EventTarget:t}=Zn(e);return e instanceof t?e:Ts(e)}function Mm(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var ar;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(ar||(ar={}));function I_(e){e.preventDefault()}function Xhe(e){e.stopPropagation()}var Rt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Rt||(Rt={}));const z3={start:[Rt.Space,Rt.Enter],cancel:[Rt.Esc],end:[Rt.Space,Rt.Enter,Rt.Tab]},Qhe=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Rt.Right:return{...n,x:n.x+25};case Rt.Left:return{...n,x:n.x-25};case Rt.Down:return{...n,y:n.y+25};case Rt.Up:return{...n,y:n.y-25}}};let by=class{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new _c(Ts(n)),this.windowListeners=new _c(Zn(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ar.Resize,this.handleCancel),this.windowListeners.add(ar.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ar.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&Ghe(r),n(Mr)}handleKeyDown(t){if(my(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=z3,coordinateGetter:a=Qhe,scrollBehavior:s="smooth"}=i,{code:c}=t;if(o.end.includes(c)){this.handleEnd(t);return}if(o.cancel.includes(c)){this.handleCancel(t);return}const{collisionRect:l}=r.current,u=l?{x:l.left,y:l.top}:Mr;this.referenceCoordinates||(this.referenceCoordinates=u);const d=a(t,{active:n,context:r.current,currentCoordinates:u});if(d){const f=cf(d,u),p={x:0,y:0},{scrollableAncestors:g}=r.current;for(const m of g){const v=t.code,{isTop:x,isRight:w,isLeft:_,isBottom:C,maxScroll:y,minScroll:$}=F3(m),E=Hhe(m),k={x:Math.min(v===Rt.Right?E.right-E.width/2:E.right,Math.max(v===Rt.Right?E.left:E.left+E.width/2,d.x)),y:Math.min(v===Rt.Down?E.bottom-E.height/2:E.bottom,Math.max(v===Rt.Down?E.top:E.top+E.height/2,d.y))},T=v===Rt.Right&&!w||v===Rt.Left&&!_,O=v===Rt.Down&&!C||v===Rt.Up&&!x;if(T&&k.x!==d.x){const S=m.scrollLeft+f.x,M=v===Rt.Right&&S<=y.x||v===Rt.Left&&S>=$.x;if(M&&!f.y){m.scrollTo({left:S,behavior:s});return}M?p.x=m.scrollLeft-S:p.x=v===Rt.Right?m.scrollLeft-y.x:m.scrollLeft-$.x,p.x&&m.scrollBy({left:-p.x,behavior:s});break}else if(O&&k.y!==d.y){const S=m.scrollTop+f.y,M=v===Rt.Down&&S<=y.y||v===Rt.Up&&S>=$.y;if(M&&!f.x){m.scrollTo({top:S,behavior:s});return}M?p.y=m.scrollTop-S:p.y=v===Rt.Down?m.scrollTop-y.y:m.scrollTop-$.y,p.y&&m.scrollBy({top:-p.y,behavior:s});break}}this.handleMove(t,Da(cf(d,this.referenceCoordinates),p))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};by.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=z3,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const s=o.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function P_(e){return!!(e&&"distance"in e)}function L_(e){return!!(e&&"delay"in e)}class yy{constructor(t,n,r){var i;r===void 0&&(r=Zhe(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:a}=o;this.props=t,this.events=n,this.document=Ts(a),this.documentListeners=new _c(this.document),this.listeners=new _c(r),this.windowListeners=new _c(Zn(a)),this.initialCoordinates=(i=mv(o))!=null?i:Mr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(ar.Resize,this.handleCancel),this.windowListeners.add(ar.DragStart,I_),this.windowListeners.add(ar.VisibilityChange,this.handleCancel),this.windowListeners.add(ar.ContextMenu,I_),this.documentListeners.add(ar.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(L_(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(P_(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(ar.Click,Xhe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ar.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:a,options:{activationConstraint:s}}=o;if(!i)return;const c=(n=mv(t))!=null?n:Mr,l=cf(i,c);if(!r&&s){if(P_(s)){if(s.tolerance!=null&&Mm(l,s.tolerance))return this.handleCancel();if(Mm(l,s.distance))return this.handleStart()}if(L_(s)&&Mm(l,s.tolerance))return this.handleCancel();this.handlePending(s,l);return}t.cancelable&&t.preventDefault(),a(c)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Rt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Jhe={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};let W3=class extends yy{constructor(t){const{event:n}=t,r=Ts(n.target);super(t,Jhe,r)}};W3.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const epe={move:{name:"mousemove"},end:{name:"mouseup"}};var vv;(function(e){e[e.RightClick=2]="RightClick"})(vv||(vv={}));class U3 extends yy{constructor(t){super(t,epe,Ts(t.event.target))}}U3.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===vv.RightClick?!1:(r==null||r({event:n}),!0)}}];const Rm={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class V3 extends yy{constructor(t){super(t,Rm)}static setup(){return window.addEventListener(Rm.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Rm.move.name,t)};function t(){}}}V3.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var Cc;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Cc||(Cc={}));var uf;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(uf||(uf={}));function tpe(e){let{acceleration:t,activator:n=Cc.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:a=5,order:s=uf.TreeOrder,pointerCoordinates:c,scrollableAncestors:l,scrollableAncestorRects:u,delta:d,threshold:f}=e;const p=rpe({delta:d,disabled:!o}),[g,m]=hhe(),v=h.useRef({x:0,y:0}),x=h.useRef({x:0,y:0}),w=h.useMemo(()=>{switch(n){case Cc.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Cc.DraggableRect:return i}},[n,i,c]),_=h.useRef(null),C=h.useCallback(()=>{const $=_.current;if(!$)return;const E=v.current.x*x.current.x,k=v.current.y*x.current.y;$.scrollBy(E,k)},[]),y=h.useMemo(()=>s===uf.TreeOrder?[...l].reverse():l,[s,l]);h.useEffect(()=>{if(!o||!l.length||!w){m();return}for(const $ of y){if((r==null?void 0:r($))===!1)continue;const E=l.indexOf($),k=u[E];if(!k)continue;const{direction:T,speed:O}=Vhe($,k,w,t,f);for(const S of["x","y"])p[S][T[S]]||(O[S]=0,T[S]=0);if(O.x>0||O.y>0){m(),_.current=$,g(C,a),v.current=O,x.current=T;return}}v.current={x:0,y:0},x.current={x:0,y:0},m()},[t,C,r,m,o,a,JSON.stringify(w),JSON.stringify(p),g,l,y,u,JSON.stringify(f)])}const npe={x:{[bn.Backward]:!1,[bn.Forward]:!1},y:{[bn.Backward]:!1,[bn.Forward]:!1}};function rpe(e){let{delta:t,disabled:n}=e;const r=pv(t);return Zl(i=>{if(n||!r||!i)return npe;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[bn.Backward]:i.x[bn.Backward]||o.x===-1,[bn.Forward]:i.x[bn.Forward]||o.x===1},y:{[bn.Backward]:i.y[bn.Backward]||o.y===-1,[bn.Forward]:i.y[bn.Forward]||o.y===1}}},[n,t,r])}function ipe(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Zl(i=>{var o;return t==null?null:(o=r??i)!=null?o:null},[r,t])}function ope(e,t){return h.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,o=i.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,r)}));return[...n,...o]},[]),[e,t])}var yl;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(yl||(yl={}));var bv;(function(e){e.Optimized="optimized"})(bv||(bv={}));const F_=new Map;function ape(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,a]=h.useState(null),{frequency:s,measure:c,strategy:l}=i,u=h.useRef(e),d=v(),f=vl(d),p=h.useCallback(function(x){x===void 0&&(x=[]),!f.current&&a(w=>w===null?x:w.concat(x.filter(_=>!w.includes(_))))},[f]),g=h.useRef(null),m=Zl(x=>{if(d&&!n)return F_;if(!x||x===F_||u.current!==e||o!=null){const w=new Map;for(let _ of e){if(!_)continue;if(o&&o.length>0&&!o.includes(_.id)&&_.rect.current){w.set(_.id,_.rect.current);continue}const C=_.node.current,y=C?new vy(c(C),C):null;_.rect.current=y,y&&w.set(_.id,y)}return w}return x},[e,o,n,d,c]);return h.useEffect(()=>{u.current=e},[e]),h.useEffect(()=>{d||p()},[n,d]),h.useEffect(()=>{o&&o.length>0&&a(null)},[JSON.stringify(o)]),h.useEffect(()=>{d||typeof s!="number"||g.current!==null||(g.current=setTimeout(()=>{p(),g.current=null},s))},[s,d,p,...r]),{droppableRects:m,measureDroppableContainers:p,measuringScheduled:o!=null};function v(){switch(l){case yl.Always:return!1;case yl.BeforeDragging:return n;default:return!n}}}function H3(e,t){return Zl(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function spe(e,t){return H3(e,t)}function cpe(e){let{callback:t,disabled:n}=e;const r=py(t),i=h.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return h.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function up(e){let{callback:t,disabled:n}=e;const r=py(t),i=h.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return h.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function lpe(e){return new vy(ks(e),e)}function B_(e,t,n){t===void 0&&(t=lpe);const[r,i]=h.useState(null);function o(){i(c=>{if(!e)return null;if(e.isConnected===!1){var l;return(l=c??n)!=null?l:null}const u=t(e);return JSON.stringify(c)===JSON.stringify(u)?c:u})}const a=cpe({callback(c){if(e)for(const l of c){const{type:u,target:d}=l;if(u==="childList"&&d instanceof HTMLElement&&d.contains(e)){o();break}}}}),s=up({callback:o});return Gr(()=>{o(),e?(s==null||s.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(s==null||s.disconnect(),a==null||a.disconnect())},[e]),r}function upe(e){const t=H3(e);return N3(e,t)}const z_=[];function dpe(e){const t=h.useRef(e),n=Zl(r=>e?r&&r!==z_&&e&&t.current&&e.parentNode===t.current.parentNode?r:gy(e):z_,[e]);return h.useEffect(()=>{t.current=e},[e]),n}function fpe(e){const[t,n]=h.useState(null),r=h.useRef(e),i=h.useCallback(o=>{const a=Om(o.target);a&&n(s=>s?(s.set(a,gv(a)),new Map(s)):null)},[]);return h.useEffect(()=>{const o=r.current;if(e!==o){a(o);const s=e.map(c=>{const l=Om(c);return l?(l.addEventListener("scroll",i,{passive:!0}),[l,gv(l)]):null}).filter(c=>c!=null);n(s.length?new Map(s):null),r.current=e}return()=>{a(e),a(o)};function a(s){s.forEach(c=>{const l=Om(c);l==null||l.removeEventListener("scroll",i)})}},[i,e]),h.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,a)=>Da(o,a),Mr):B3(e):Mr,[e,t])}function W_(e,t){t===void 0&&(t=[]);const n=h.useRef(null);return h.useEffect(()=>{n.current=null},t),h.useEffect(()=>{const r=e!==Mr;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?cf(e,n.current):Mr}function hpe(e){h.useEffect(()=>{if(!lp)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function ppe(e,t){return h.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=a=>{o(a,t)},n},{}),[e,t])}function q3(e){return h.useMemo(()=>e?Bhe(e):null,[e])}const U_=[];function mpe(e,t){t===void 0&&(t=ks);const[n]=e,r=q3(n?Zn(n):null),[i,o]=h.useState(U_);function a(){o(()=>e.length?e.map(c=>L3(c)?r:new vy(t(c),c)):U_)}const s=up({callback:a});return Gr(()=>{s==null||s.disconnect(),a(),e.forEach(c=>s==null?void 0:s.observe(c))},[e]),i}function gpe(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Kl(t)?t:e}function vpe(e){let{measure:t}=e;const[n,r]=h.useState(null),i=h.useCallback(l=>{for(const{target:u}of l)if(Kl(u)){r(d=>{const f=t(u);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),o=up({callback:i}),a=h.useCallback(l=>{const u=gpe(l);o==null||o.disconnect(),u&&(o==null||o.observe(u)),r(u?t(u):null)},[t,o]),[s,c]=sf(a);return h.useMemo(()=>({nodeRef:s,rect:n,setRef:c}),[n,s,c])}const bpe=[{sensor:W3,options:{}},{sensor:by,options:{}}],ype={current:{}},td={draggable:{measure:D_},droppable:{measure:D_,strategy:yl.WhileDragging,frequency:bv.Optimized},dragOverlay:{measure:ks}};class $c extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const xpe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new $c,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:lf},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:td,measureDroppableContainers:lf,windowRect:null,measuringScheduled:!1},wpe={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:lf,draggableNodes:new Map,over:null,measureDroppableContainers:lf},dp=h.createContext(wpe),Y3=h.createContext(xpe);function _pe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new $c}}}function Cpe(e,t){switch(t.type){case fn.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case fn.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case fn.DragEnd:case fn.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case fn.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new $c(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case fn.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new $c(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case fn.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new $c(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function $pe(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=h.useContext(dp),o=pv(r),a=pv(n==null?void 0:n.id);return h.useEffect(()=>{if(!t&&!r&&o&&a!=null){if(!my(o)||document.activeElement===o.target)return;const s=i.get(a);if(!s)return;const{activatorNode:c,node:l}=s;if(!c.current&&!l.current)return;requestAnimationFrame(()=>{for(const u of[c.current,l.current]){if(!u)continue;const d=ghe(u);if(d){d.focus();break}}})}},[r,t,i,a,o]),null}function Spe(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...r}),n):n}function Epe(e){return h.useMemo(()=>({draggable:{...td.draggable,...e==null?void 0:e.draggable},droppable:{...td.droppable,...e==null?void 0:e.droppable},dragOverlay:{...td.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function Tpe(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=h.useRef(!1),{x:a,y:s}=typeof i=="boolean"?{x:i,y:i}:i;Gr(()=>{if(!a&&!s||!t){o.current=!1;return}if(o.current||!r)return;const c=t==null?void 0:t.node.current;if(!c||c.isConnected===!1)return;const l=n(c),u=N3(l,r);if(a||(u.x=0),s||(u.y=0),o.current=!0,Math.abs(u.x)>0||Math.abs(u.y)>0){const d=D3(c);d&&d.scrollBy({top:u.y,left:u.x})}},[t,a,s,r,n])}const G3=h.createContext({...Mr,scaleX:1,scaleY:1});var Pi;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Pi||(Pi={}));const kpe=h.memo(function(e){var t,n,r,i;let{id:o,accessibility:a,autoScroll:s=!0,children:c,sensors:l=bpe,collisionDetection:u=jhe,measuring:d,modifiers:f,...p}=e;const g=h.useReducer(Cpe,void 0,_pe),[m,v]=g,[x,w]=_he(),[_,C]=h.useState(Pi.Uninitialized),y=_===Pi.Initialized,{draggable:{active:$,nodes:E,translate:k},droppable:{containers:T}}=m,O=$!=null?E.get($):null,S=h.useRef({initial:null,translated:null}),M=h.useMemo(()=>{var He;return $!=null?{id:$,data:(He=O==null?void 0:O.data)!=null?He:ype,rect:S}:null},[$,O]),A=h.useRef(null),[j,P]=h.useState(null),[I,L]=h.useState(null),V=vl(p,Object.values(p)),z=Xl("DndDescribedBy",o),D=h.useMemo(()=>T.getEnabled(),[T]),W=Epe(d),{droppableRects:G,measureDroppableContainers:J,measuringScheduled:Z}=ape(D,{dragging:y,dependencies:[k.x,k.y],config:W.droppable}),X=ipe(E,$),ee=h.useMemo(()=>I?mv(I):null,[I]),ne=et(),F=spe(X,W.draggable.measure);Tpe({activeNode:$!=null?E.get($):null,config:ne.layoutShiftCompensation,initialRect:F,measure:W.draggable.measure});const N=B_(X,W.draggable.measure,F),B=B_(X?X.parentElement:null),H=h.useRef({activatorEvent:null,active:null,activeNode:X,collisionRect:null,collisions:null,droppableRects:G,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:T,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),R=T.getNodeFor((t=H.current.over)==null?void 0:t.id),Y=vpe({measure:W.dragOverlay.measure}),Q=(n=Y.nodeRef.current)!=null?n:X,te=y?(r=Y.rect)!=null?r:N:null,ue=!!(Y.nodeRef.current&&Y.rect),oe=upe(ue?null:N),ae=q3(Q?Zn(Q):null),pe=dpe(y?R??X:null),ve=mpe(pe),Ee=Spe(f,{transform:{x:k.x-oe.x,y:k.y-oe.y,scaleX:1,scaleY:1},activatorEvent:I,active:M,activeNodeRect:N,containerNodeRect:B,draggingNodeRect:te,over:H.current.over,overlayNodeRect:Y.rect,scrollableAncestors:pe,scrollableAncestorRects:ve,windowRect:ae}),Se=ee?Da(ee,k):null,Oe=fpe(pe),Fe=W_(Oe),fe=W_(Oe,[N]),se=Da(Ee,Fe),we=te?Ihe(te,Ee):null,Ve=M&&we?u({active:M,collisionRect:we,droppableRects:G,droppableContainers:D,pointerCoordinates:Se}):null,Ot=Mhe(Ve,"id"),[ze,ft]=h.useState(null),_t=ue?Ee:Da(Ee,fe),Vt=Nhe(_t,(i=ze==null?void 0:ze.rect)!=null?i:null,N),gt=h.useRef(null),bt=h.useCallback((He,tt)=>{let{sensor:nt,options:$t}=tt;if(A.current==null)return;const ht=E.get(A.current);if(!ht)return;const ut=He.nativeEvent,xt=new nt({active:A.current,activeNode:ht,event:ut,options:$t,context:H,onAbort(at){if(!E.get(at))return;const{onDragAbort:St}=V.current,Mt={id:at};St==null||St(Mt),x({type:"onDragAbort",event:Mt})},onPending(at,St,Mt,_e){if(!E.get(at))return;const{onDragPending:Me}=V.current,Ne={id:at,constraint:St,initialCoordinates:Mt,offset:_e};Me==null||Me(Ne),x({type:"onDragPending",event:Ne})},onStart(at){const St=A.current;if(St==null)return;const Mt=E.get(St);if(!Mt)return;const{onDragStart:_e}=V.current,Me={activatorEvent:ut,active:{id:St,data:Mt.data,rect:S}};un.unstable_batchedUpdates(()=>{_e==null||_e(Me),C(Pi.Initializing),v({type:fn.DragStart,initialCoordinates:at,active:St}),x({type:"onDragStart",event:Me}),P(gt.current),L(ut)})},onMove(at){v({type:fn.DragMove,coordinates:at})},onEnd:yt(fn.DragEnd),onCancel:yt(fn.DragCancel)});gt.current=xt;function yt(at){return async function(){const{active:St,collisions:Mt,over:_e,scrollAdjustedTranslate:Me}=H.current;let Ne=null;if(St&&Me){const{cancelDrop:Ke}=V.current;Ne={activatorEvent:ut,active:St,collisions:Mt,delta:Me,over:_e},at===fn.DragEnd&&typeof Ke=="function"&&await Promise.resolve(Ke(Ne))&&(at=fn.DragCancel)}A.current=null,un.unstable_batchedUpdates(()=>{v({type:at}),C(Pi.Uninitialized),ft(null),P(null),L(null),gt.current=null;const Ke=at===fn.DragEnd?"onDragEnd":"onDragCancel";if(Ne){const Ye=V.current[Ke];Ye==null||Ye(Ne),x({type:Ke,event:Ne})}})}}},[E]),Ct=h.useCallback((He,tt)=>(nt,$t)=>{const ht=nt.nativeEvent,ut=E.get($t);if(A.current!==null||!ut||ht.dndKit||ht.defaultPrevented)return;const xt={active:ut};He(nt,tt.options,xt)===!0&&(ht.dndKit={capturedBy:tt.sensor},A.current=$t,bt(nt,tt))},[E,bt]),Ht=ope(l,Ct);hpe(l),Gr(()=>{N&&_===Pi.Initializing&&C(Pi.Initialized)},[N,_]),h.useEffect(()=>{const{onDragMove:He}=V.current,{active:tt,activatorEvent:nt,collisions:$t,over:ht}=H.current;if(!tt||!nt)return;const ut={active:tt,activatorEvent:nt,collisions:$t,delta:{x:se.x,y:se.y},over:ht};un.unstable_batchedUpdates(()=>{He==null||He(ut),x({type:"onDragMove",event:ut})})},[se.x,se.y]),h.useEffect(()=>{const{active:He,activatorEvent:tt,collisions:nt,droppableContainers:$t,scrollAdjustedTranslate:ht}=H.current;if(!He||A.current==null||!tt||!ht)return;const{onDragOver:ut}=V.current,xt=$t.get(Ot),yt=xt&&xt.rect.current?{id:xt.id,rect:xt.rect.current,data:xt.data,disabled:xt.disabled}:null,at={active:He,activatorEvent:tt,collisions:nt,delta:{x:ht.x,y:ht.y},over:yt};un.unstable_batchedUpdates(()=>{ft(yt),ut==null||ut(at),x({type:"onDragOver",event:at})})},[Ot]),Gr(()=>{H.current={activatorEvent:I,active:M,activeNode:X,collisionRect:we,collisions:Ve,droppableRects:G,draggableNodes:E,draggingNode:Q,draggingNodeRect:te,droppableContainers:T,over:ze,scrollableAncestors:pe,scrollAdjustedTranslate:se},S.current={initial:te,translated:we}},[M,X,Ve,we,E,Q,te,G,T,ze,pe,se]),tpe({...ne,delta:k,draggingRect:we,pointerCoordinates:Se,scrollableAncestors:pe,scrollableAncestorRects:ve});const Be=h.useMemo(()=>({active:M,activeNode:X,activeNodeRect:N,activatorEvent:I,collisions:Ve,containerNodeRect:B,dragOverlay:Y,draggableNodes:E,droppableContainers:T,droppableRects:G,over:ze,measureDroppableContainers:J,scrollableAncestors:pe,scrollableAncestorRects:ve,measuringConfiguration:W,measuringScheduled:Z,windowRect:ae}),[M,X,N,I,Ve,B,Y,E,T,G,ze,J,pe,ve,W,Z,ae]),Ie=h.useMemo(()=>({activatorEvent:I,activators:Ht,active:M,activeNodeRect:N,ariaDescribedById:{draggable:z},dispatch:v,draggableNodes:E,over:ze,measureDroppableContainers:J}),[I,Ht,M,N,v,z,E,ze,J]);return h.createElement(j3.Provider,{value:w},h.createElement(dp.Provider,{value:Ie},h.createElement(Y3.Provider,{value:Be},h.createElement(G3.Provider,{value:Vt},c)),h.createElement($pe,{disabled:(a==null?void 0:a.restoreFocus)===!1})),h.createElement(She,{...a,hiddenTextDescribedById:z}));function et(){const He=(j==null?void 0:j.autoScrollEnabled)===!1,tt=typeof s=="object"?s.enabled===!1:s===!1,nt=y&&!He&&!tt;return typeof s=="object"?{...s,enabled:nt}:{enabled:nt}}}),Ope=h.createContext(null),V_="button",Mpe="Draggable";function Rpe(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=Xl(Mpe),{activators:a,activatorEvent:s,active:c,activeNodeRect:l,ariaDescribedById:u,draggableNodes:d,over:f}=h.useContext(dp),{role:p=V_,roleDescription:g="draggable",tabIndex:m=0}=i??{},v=(c==null?void 0:c.id)===t,x=h.useContext(v?G3:Ope),[w,_]=sf(),[C,y]=sf(),$=ppe(a,t),E=vl(n);Gr(()=>(d.set(t,{id:t,key:o,node:w,activatorNode:C,data:E}),()=>{const T=d.get(t);T&&T.key===o&&d.delete(t)}),[d,t]);const k=h.useMemo(()=>({role:p,tabIndex:m,"aria-disabled":r,"aria-pressed":v&&p===V_?!0:void 0,"aria-roledescription":g,"aria-describedby":u.draggable}),[r,p,m,v,g,u.draggable]);return{active:c,activatorEvent:s,activeNodeRect:l,attributes:k,isDragging:v,listeners:r?void 0:$,node:w,over:f,setNodeRef:_,setActivatorNodeRef:y,transform:x}}function Ape(){return h.useContext(Y3)}const jpe="Droppable",Npe={timeout:25};function Dpe(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=Xl(jpe),{active:a,dispatch:s,over:c,measureDroppableContainers:l}=h.useContext(dp),u=h.useRef({disabled:n}),d=h.useRef(!1),f=h.useRef(null),p=h.useRef(null),{disabled:g,updateMeasurementsFor:m,timeout:v}={...Npe,...i},x=vl(m??r),w=h.useCallback(()=>{if(!d.current){d.current=!0;return}p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{l(Array.isArray(x.current)?x.current:[x.current]),p.current=null},v)},[v]),_=up({callback:w,disabled:g||!a}),C=h.useCallback((k,T)=>{_&&(T&&(_.unobserve(T),d.current=!1),k&&_.observe(k))},[_]),[y,$]=sf(C),E=vl(t);return h.useEffect(()=>{!_||!y.current||(_.disconnect(),d.current=!1,_.observe(y.current))},[y,_]),h.useEffect(()=>(s({type:fn.RegisterDroppable,element:{id:r,key:o,disabled:n,node:y,rect:f,data:E}}),()=>s({type:fn.UnregisterDroppable,key:o,id:r})),[r]),h.useEffect(()=>{n!==u.current.disabled&&(s({type:fn.SetDroppableDisabled,id:r,key:o,disabled:n}),u.current.disabled=n)},[r,o,n,s]),{active:a,rect:f,isOver:(c==null?void 0:c.id)===r,node:y,over:c,setNodeRef:$}}function xy(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Ipe(e,t){return e.reduce((n,r,i)=>{const o=t.get(r);return o&&(n[i]=o),n},Array(e.length))}function Au(e){return e!==null&&e>=0}function Ppe(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Lpe(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const ju={scaleX:1,scaleY:1},Fpe=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:i,overIndex:o,index:a}=e;const s=(t=n[i])!=null?t:r;if(!s)return null;const c=Bpe(n,a,i);if(a===i){const l=n[o];return l?{x:i<o?l.left+l.width-(s.left+s.width):l.left-s.left,y:0,...ju}:null}return a>i&&a<=o?{x:-s.width-c,y:0,...ju}:a<i&&a>=o?{x:s.width+c,y:0,...ju}:{x:0,y:0,...ju}};function Bpe(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return!r||!i&&!o?0:n<t?i?r.left-(i.left+i.width):o.left-(r.left+r.width):o?o.left-(r.left+r.width):r.left-(i.left+i.width)}const K3=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=xy(t,r,n),a=t[i],s=o[i];return!s||!a?null:{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}},Z3="Sortable",X3=h.createContext({activeIndex:-1,containerId:Z3,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:K3,disabled:{draggable:!1,droppable:!1}});function zpe(e){let{children:t,id:n,items:r,strategy:i=K3,disabled:o=!1}=e;const{active:a,dragOverlay:s,droppableRects:c,over:l,measureDroppableContainers:u}=Ape(),d=Xl(Z3,n),f=s.rect!==null,p=h.useMemo(()=>r.map($=>typeof $=="object"&&"id"in $?$.id:$),[r]),g=a!=null,m=a?p.indexOf(a.id):-1,v=l?p.indexOf(l.id):-1,x=h.useRef(p),w=!Ppe(p,x.current),_=v!==-1&&m===-1||w,C=Lpe(o);Gr(()=>{w&&g&&u(p)},[w,p,g,u]),h.useEffect(()=>{x.current=p},[p]);const y=h.useMemo(()=>({activeIndex:m,containerId:d,disabled:C,disableTransforms:_,items:p,overIndex:v,useDragOverlay:f,sortedRects:Ipe(p,c),strategy:i}),[m,d,C.draggable,C.droppable,_,p,v,c,f,i]);return h.createElement(X3.Provider,{value:y},t)}const Wpe=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return xy(n,r,i).indexOf(t)},Upe=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:a,previousItems:s,previousContainerId:c,transition:l}=e;return!l||!r||s!==o&&i===a?!1:n?!0:a!==i&&t===c},Vpe={duration:200,easing:"ease"},Q3="transform",Hpe=bl.Transition.toString({property:Q3,duration:0,easing:"linear"}),qpe={roleDescription:"sortable"};function Ype(e){let{disabled:t,index:n,node:r,rect:i}=e;const[o,a]=h.useState(null),s=h.useRef(n);return Gr(()=>{if(!t&&n!==s.current&&r.current){const c=i.current;if(c){const l=ks(r.current,{ignoreTransform:!0}),u={x:c.left-l.left,y:c.top-l.top,scaleX:c.width/l.width,scaleY:c.height/l.height};(u.x||u.y)&&a(u)}}n!==s.current&&(s.current=n)},[t,n,r,i]),h.useEffect(()=>{o&&a(null)},[o]),o}function Gpe(e){let{animateLayoutChanges:t=Upe,attributes:n,disabled:r,data:i,getNewIndex:o=Wpe,id:a,strategy:s,resizeObserverConfig:c,transition:l=Vpe}=e;const{items:u,containerId:d,activeIndex:f,disabled:p,disableTransforms:g,sortedRects:m,overIndex:v,useDragOverlay:x,strategy:w}=h.useContext(X3),_=Kpe(r,p),C=u.indexOf(a),y=h.useMemo(()=>({sortable:{containerId:d,index:C,items:u},...i}),[d,i,C,u]),$=h.useMemo(()=>u.slice(u.indexOf(a)),[u,a]),{rect:E,node:k,isOver:T,setNodeRef:O}=Dpe({id:a,data:y,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:$,...c}}),{active:S,activatorEvent:M,activeNodeRect:A,attributes:j,setNodeRef:P,listeners:I,isDragging:L,over:V,setActivatorNodeRef:z,transform:D}=Rpe({id:a,data:y,attributes:{...qpe,...n},disabled:_.draggable}),W=fhe(O,P),G=!!S,J=G&&!g&&Au(f)&&Au(v),Z=!x&&L,X=Z&&J?D:null,ee=J?X??(s??w)({rects:m,activeNodeRect:A,activeIndex:f,overIndex:v,index:C}):null,ne=Au(f)&&Au(v)?o({id:a,items:u,activeIndex:f,overIndex:v}):C,F=S==null?void 0:S.id,N=h.useRef({activeId:F,items:u,newIndex:ne,containerId:d}),B=u!==N.current.items,H=t({active:S,containerId:d,isDragging:L,isSorting:G,id:a,index:C,items:u,newIndex:N.current.newIndex,previousItems:N.current.items,previousContainerId:N.current.containerId,transition:l,wasDragging:N.current.activeId!=null}),R=Ype({disabled:!H,index:C,node:k,rect:E});return h.useEffect(()=>{G&&N.current.newIndex!==ne&&(N.current.newIndex=ne),d!==N.current.containerId&&(N.current.containerId=d),u!==N.current.items&&(N.current.items=u)},[G,ne,d,u]),h.useEffect(()=>{if(F===N.current.activeId)return;if(F!=null&&N.current.activeId==null){N.current.activeId=F;return}const Q=setTimeout(()=>{N.current.activeId=F},50);return()=>clearTimeout(Q)},[F]),{active:S,activeIndex:f,attributes:j,data:y,rect:E,index:C,newIndex:ne,items:u,isOver:T,isSorting:G,isDragging:L,listeners:I,node:k,overIndex:v,over:V,setNodeRef:W,setActivatorNodeRef:z,setDroppableNodeRef:O,setDraggableNodeRef:P,transform:R??ee,transition:Y()};function Y(){if(R||B&&N.current.newIndex===C)return Hpe;if(!(Z&&!my(M)||!l)&&(G||H))return bl.Transition.toString({...l,property:Q3})}}function Kpe(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}Rt.Down,Rt.Right,Rt.Up,Rt.Left;const Zpe="_table-scroll-container_1l7nn_1",Xpe="_full-screen_1l7nn_8",Qpe="_table_1l7nn_1",Jpe="_thead_1l7nn_24",eme="_tbody_1l7nn_25",tme="_th_1l7nn_24",nme="_pinned_1l7nn_38",rme="_sorted_1l7nn_41",ime="_resizer_1l7nn_44",ome="_resizer-bar_1l7nn_58",ame="_reorder-handle_1l7nn_63",sme="_dragging_1l7nn_68",cme="_row-selection-info_1l7nn_72",lme="_tr_1l7nn_76",ume="_td_1l7nn_84",dme="_left_1l7nn_101",fme="_center_1l7nn_105",hme="_right_1l7nn_109",pme="_first-right_1l7nn_118",mme="_grouped_1l7nn_126",gme="_expanded_1l7nn_130",vme="_selected-cell_1l7nn_134",bme="_sm_1l7nn_138",yme="_lg_1l7nn_143",xme="_clickable_1l7nn_148",wme="_cell-selected-row_1l7nn_151",_me="_cell-selection-disabled_1l7nn_159",Cme="_own-click_1l7nn_178",$me="_expander-button_1l7nn_184",Sme="_empty-table-alert_1l7nn_189",Eme="_remove-filters-button-wrapper_1l7nn_197",Tme="_remove-filters-button_1l7nn_197",kme="_bottom-bar_1l7nn_227",Ome="_left-items_1l7nn_243",Mme="_pagination_1l7nn_249",Rme="_page-info-text_1l7nn_255",Ame="_right-items_1l7nn_261",jme="_sizing-toggle_1l7nn_267",Nme="_sizing-menu_1l7nn_272",Dme="_sizing-menu-item_1l7nn_276",Xe={tableScrollContainer:Zpe,fullScreen:Xpe,table:Qpe,thead:Jpe,tbody:eme,th:tme,pinned:nme,sorted:rme,resizer:ime,resizerBar:ome,reorderHandle:ame,dragging:sme,rowSelectionInfo:cme,tr:lme,td:ume,left:dme,center:fme,right:hme,firstRight:pme,grouped:mme,expanded:gme,selectedCell:vme,sm:bme,lg:yme,clickable:xme,cellSelectedRow:wme,cellSelectionDisabled:_me,ownClick:Cme,expanderButton:$me,emptyTableAlert:Sme,removeFiltersButtonWrapper:Eme,removeFiltersButton:Tme,bottomBar:kme,leftItems:Ome,pagination:Mme,pageInfoText:Rme,rightItems:Ame,sizingToggle:jme,sizingMenu:Nme,sizingMenuItem:Dme},Ime="_column-menu_1r3rf_1",Pme="_column-menu-item_1r3rf_5",Nu={columnMenu:Ime,columnMenuItem:Pme},Lme=({header:e,table:t,className:n,IconComponent:r,texts:i,columnMenuPos:o,onColumnMenu:a,dragEnabled:s,style:c})=>{var k,T;const{attributes:l,listeners:u,setNodeRef:d,transform:f,isDragging:p}=Gpe({id:e.id,disabled:!s}),g={...c??{},flex:`${e.column.getSize()} 1 0`,minWidth:e.column.getSize(),...s?{transform:bl.Translate.toString(f)}:{}},m=O=>O.column.getCanSort()?"button":void 0,v=O=>{const S=O.column.getIsSorted(),M=O.column.getIsGrouped();return xe("th",Xe.th,{sorted:S,[Xe.sorted]:S},{grouped:M,[Xe.grouped]:M})},x=O=>{const S=O.column.getCanSort();return xe("d-flex flex-row align-items-center justify-content-between",{"cursor-pointer":S})},w=O=>{O.preventDefault(),a({id:e.id,x:O.clientX,y:O.clientY})},_=()=>a(null),C=(o==null?void 0:o.id)===e.id,y=e.column.getIsPinned(),$=e.column.getIsGrouped(),E=(T=(k=e.column.columnDef)==null?void 0:k.meta)==null?void 0:T.alwaysPinned;return b.jsxs("div",{className:xe(n,v(e.getContext())),ref:d,style:g,onContextMenu:w,children:[b.jsx(Tn,{autoClose:!0,show:C,onToggle:O=>!O&&_(),children:un.createPortal(b.jsxs(Tn.Menu,{show:!0,className:xe("shadow-lg column-menu",Nu.columnMenu),style:{position:"fixed",top:C?o.y??0:0,left:C?o.x??0:0,zIndex:9999,display:C?"block":"none"},onClick:_,children:[y!=="right"&&e.column.getCanPin()&&!E?b.jsx(Tn.Item,{className:xe(Nu.columnMenuItem,{"text-danger":y}),onClick:()=>e.column.pin(y==="left"?!1:"left"),children:y==="left"?i.columnUnpin:i.columnPinLeft}):null,y!=="left"&&e.column.getCanPin()&&!E?b.jsx(Tn.Item,{className:xe(Nu.columnMenuItem,{"text-danger":y}),onClick:()=>e.column.pin(y==="right"?!1:"right"),children:y==="right"?i.columnUnpin:i.columnPinRight}):null,e.column.getCanGroup()?b.jsx(Tn.Item,{className:xe(Nu.columnMenuItem,{"text-danger":$}),onClick:e.column.getToggleGroupingHandler(),children:$?i.columnUngroup:i.columnGroup}):null]}),document.body)}),e.isPlaceholder?null:b.jsxs("div",{children:[b.jsxs("div",{className:x(e.getContext()),role:m(e.getContext()),onClick:e.column.getToggleSortingHandler(),children:[b.jsxs("div",{className:"d-flex flex-row align-items-center gap-1",children:[s?b.jsx("div",{...u,...l,className:xe("reorder-handle",Xe.reorderHandle,{dragging:p,[Xe.dragging]:p}),children:b.jsx(r,{icon:"drag-handle"})}):null,M3(e.column.columnDef.header,e.getContext())]}),e.column.getCanSort()&&e.column.getIsSorted()?b.jsx(r,{icon:`sort-${e.column.getIsSorted()||"asc"}`}):null]}),e.column.getCanFilter()?b.jsx(she,{column:e.column,IconComponent:r,texts:i}):e.column.id==="select-col"?b.jsx("div",{className:xe("row-selection-info",Xe.rowSelectionInfo),children:`[${Object.values(t.getState().rowSelection).filter(Boolean).length}]`}):null]}),e.column.getCanResize()?b.jsx("div",{onDoubleClick:()=>e.column.resetSize(),onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler(),className:xe("resizer",Xe.resizer),style:{transform:t.options.columnResizeMode==="onEnd"&&e.column.getIsResizing()?`translateX(${(t.options.columnResizeDirection==="rtl"?-1:1)*(t.getState().columnSizingInfo.deltaOffset??0)}px)`:""},children:b.jsx("div",{className:xe("resizer-bar",Xe.resizerBar)})}):null]})},Fme="_icon-button_1nuxt_1",Bme="_sm_1nuxt_34",zme="_lg_1nuxt_47",Du={"icon-button":"_icon-button_1nuxt_1",iconButton:Fme,sm:Bme,lg:zme},ai=({onClick:e,color:t="primary",disabled:n,children:r,size:i,className:o,...a})=>b.jsx("button",{"aria-disabled":n,className:xe(o,"icon-button",Du.iconButton,Du[t],{"text-primary":!n&&t==="primary","text-secondary":n||t==="secondary","text-danger":!n&&t==="danger","text-success":!n&&t==="success"},{[Du.sm]:i==="sm",[Du.lg]:i==="lg"}),disabled:n,type:"button",onClick:e,...a,children:r}),Wme=e=>{var n,r,i,o,a;const t=(n=e==null?void 0:e.columnDef)==null?void 0:n.header;if(!t)return e==null?void 0:e.id;if(typeof t=="string")return t;if(typeof t=="function"){const s=t({column:e});return typeof s=="string"?s:h.isValidElement(s)&&typeof((r=s.props)==null?void 0:r.children)=="string"?(i=s.props)==null?void 0:i.children:e==null?void 0:e.id}return h.isValidElement(t)&&typeof((o=t==null?void 0:t.props)==null?void 0:o.children)=="string"?(a=t==null?void 0:t.props)==null?void 0:a.children:e==null?void 0:e.id},H_=({onClick:e,variant:t="primary",disabled:n,children:r,size:i,...o})=>b.jsx(ny,{disabled:n,size:i,variant:t,onClick:e,...o,children:r});function yv(e,t){return yv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},yv(e,t)}function Ume(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yv(e,t)}function Vme(e){var t=Vl(e);return t&&t.defaultView||window}function Hme(e,t){return Vme(e).getComputedStyle(e,t)}var qme=/([A-Z])/g;function Yme(e){return e.replace(qme,"-$1").toLowerCase()}var Gme=/^ms-/;function Iu(e){return Yme(e).replace(Gme,"-ms-")}var Kme=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function Zme(e){return!!(e&&Kme.test(e))}function pi(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(Iu(t))||Hme(e).getPropertyValue(Iu(t));Object.keys(t).forEach(function(i){var o=t[i];!o&&o!==0?e.style.removeProperty(Iu(i)):Zme(i)?r+=i+"("+o+") ":n+=Iu(i)+": "+o+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}const q_={disabled:!1};var Xme=process.env.NODE_ENV!=="production"?Qe.oneOfType([Qe.number,Qe.shape({enter:Qe.number,exit:Qe.number,appear:Qe.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&Qe.oneOfType([Qe.string,Qe.shape({enter:Qe.string,exit:Qe.string,active:Qe.string}),Qe.shape({enter:Qe.string,enterDone:Qe.string,enterActive:Qe.string,exit:Qe.string,exitDone:Qe.string,exitActive:Qe.string})]);const J3=h.createContext(null);var Qme=function(e){return e.scrollTop},uc="unmounted",Li="exited",li="entering",Ui="entered",df="exiting",Ei=function(e){Ume(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,c;return o.appearStatus=null,r.in?s?(c=Li,o.appearStatus=li):c=Ui:r.unmountOnExit||r.mountOnEnter?c=uc:c=Li,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(r,i){var o=r.in;return o&&i.status===uc?{status:Li}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var i=null;if(r!==this.props){var o=this.state.status;this.props.in?o!==li&&o!==Ui&&(i=li):(o===li||o===Ui)&&(i=df)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,i,o,a;return i=o=a=r,r!=null&&typeof r!="number"&&(i=r.exit,o=r.enter,a=r.appear!==void 0?r.appear:o),{exit:i,enter:o,appear:a}},n.updateStatus=function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===li){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:un.findDOMNode(this);o&&Qme(o)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Li&&this.setState({status:uc})},n.performEnter=function(r){var i=this,o=this.props.enter,a=this.context?this.context.isMounting:r,s=this.props.nodeRef?[a]:[un.findDOMNode(this),a],c=s[0],l=s[1],u=this.getTimeouts(),d=a?u.appear:u.enter;if(!r&&!o||q_.disabled){this.safeSetState({status:Ui},function(){i.props.onEntered(c)});return}this.props.onEnter(c,l),this.safeSetState({status:li},function(){i.props.onEntering(c,l),i.onTransitionEnd(d,function(){i.safeSetState({status:Ui},function(){i.props.onEntered(c,l)})})})},n.performExit=function(){var r=this,i=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:un.findDOMNode(this);if(!i||q_.disabled){this.safeSetState({status:Li},function(){r.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:df},function(){r.props.onExiting(a),r.onTransitionEnd(o.exit,function(){r.safeSetState({status:Li},function(){r.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},n.setNextCallback=function(r){var i=this,o=!0;return this.nextCallback=function(a){o&&(o=!1,i.nextCallback=null,r(a))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(r,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:un.findDOMNode(this),a=r==null&&!this.props.addEndListener;if(!o||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],c=s[0],l=s[1];this.props.addEndListener(c,l)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===uc)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=KO(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return h.createElement(J3.Provider,{value:null},typeof o=="function"?o(r,a):h.cloneElement(h.Children.only(o),a))},t}(h.Component);Ei.contextType=J3;Ei.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Qe.shape({current:typeof Element>"u"?Qe.any:function(e,t,n,r,i,o){var a=e[t];return Qe.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:Qe.oneOfType([Qe.func.isRequired,Qe.element.isRequired]).isRequired,in:Qe.bool,mountOnEnter:Qe.bool,unmountOnExit:Qe.bool,appear:Qe.bool,enter:Qe.bool,exit:Qe.bool,timeout:function(e){var t=Xme;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,[e].concat(r))},addEndListener:Qe.func,onEnter:Qe.func,onEntering:Qe.func,onEntered:Qe.func,onExit:Qe.func,onExiting:Qe.func,onExited:Qe.func}:{};function xa(){}Ei.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xa,onEntering:xa,onEntered:xa,onExit:xa,onExiting:xa,onExited:xa};Ei.UNMOUNTED=uc;Ei.EXITED=Li;Ei.ENTERING=li;Ei.ENTERED=Ui;Ei.EXITING=df;function Jme(e){return e.code==="Escape"||e.keyCode===27}function ege(){const e=ie.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function Ql(e){if(!e||typeof e=="function")return null;const{major:t}=ege();return t>=19?e.props.ref:e.ref}function tge(e,t,n,r){if(r===void 0&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}function nge(e){var t=pi(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function rge(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||tge(e,"transitionend",!0)},t+n),o=qi(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),o()}}function eM(e,t,n,r){n==null&&(n=nge(e)||0);var i=rge(e,n,r),o=qi(e,"transitionend",t);return function(){i(),o()}}function Y_(e,t){const n=pi(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function tM(e,t){const n=Y_(e,"transitionDuration"),r=Y_(e,"transitionDelay"),i=eM(e,o=>{o.target===e&&(i(),t(o))},n+r)}function rc(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...r){t.apply(this,r),n.apply(this,r)}},null)}function nM(e){e.offsetHeight}function ige(e){return e&&"setState"in e?un.findDOMNode(e):e??null}const wy=h.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:o,addEndListener:a,children:s,childRef:c,...l},u)=>{const d=h.useRef(null),f=Hl(d,c),p=$=>{f(ige($))},g=$=>E=>{$&&d.current&&$(d.current,E)},m=h.useCallback(g(e),[e]),v=h.useCallback(g(t),[t]),x=h.useCallback(g(n),[n]),w=h.useCallback(g(r),[r]),_=h.useCallback(g(i),[i]),C=h.useCallback(g(o),[o]),y=h.useCallback(g(a),[a]);return b.jsx(Ei,{ref:u,...l,onEnter:m,onEntered:x,onEntering:v,onExit:w,onExited:C,onExiting:_,addEndListener:y,nodeRef:d,children:typeof s=="function"?($,E)=>s($,{...E,ref:p}):h.cloneElement(s,{ref:p})})});wy.displayName="TransitionWrapper";const oge={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function age(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],i=oge[e];return r+parseInt(pi(t,i[0]),10)+parseInt(pi(t,i[1]),10)}const sge={[Li]:"collapse",[df]:"collapsing",[li]:"collapsing",[Ui]:"collapse show"},rM=h.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,className:o,children:a,dimension:s="height",in:c=!1,timeout:l=300,mountOnEnter:u=!1,unmountOnExit:d=!1,appear:f=!1,getDimensionValue:p=age,...g},m)=>{const v=typeof s=="function"?s():s,x=h.useMemo(()=>rc($=>{$.style[v]="0"},e),[v,e]),w=h.useMemo(()=>rc($=>{const E=`scroll${v[0].toUpperCase()}${v.slice(1)}`;$.style[v]=`${$[E]}px`},t),[v,t]),_=h.useMemo(()=>rc($=>{$.style[v]=null},n),[v,n]),C=h.useMemo(()=>rc($=>{$.style[v]=`${p(v,$)}px`,nM($)},r),[r,p,v]),y=h.useMemo(()=>rc($=>{$.style[v]=null},i),[v,i]);return b.jsx(wy,{ref:m,addEndListener:tM,...g,"aria-expanded":g.role?c:null,onEnter:x,onEntering:w,onEntered:_,onExit:C,onExiting:y,childRef:Ql(a),in:c,timeout:l,mountOnEnter:u,unmountOnExit:d,appear:f,children:($,E)=>h.cloneElement(a,{...E,className:xe(o,a.props.className,sge[$],v==="width"&&"collapse-horizontal")})})});rM.displayName="Collapse";function iM(e,t){return Array.isArray(e)?e.includes(t):e===t}const Jl=ie.createContext({});Jl.displayName="AccordionContext";const _y=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,children:r,eventKey:i,...o},a)=>{const{activeEventKey:s}=h.useContext(Jl);return t=kt(t,"accordion-collapse"),b.jsx(rM,{ref:a,in:iM(s,i),...o,className:xe(n,t),children:b.jsx(e,{children:ie.Children.only(r)})})});_y.displayName="AccordionCollapse";const fp=ie.createContext({eventKey:""});fp.displayName="AccordionItemContext";const oM=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,onEnter:r,onEntering:i,onEntered:o,onExit:a,onExiting:s,onExited:c,...l},u)=>{t=kt(t,"accordion-body");const{eventKey:d}=h.useContext(fp);return b.jsx(_y,{eventKey:d,onEnter:r,onEntering:i,onEntered:o,onExit:a,onExiting:s,onExited:c,children:b.jsx(e,{ref:u,...l,className:xe(n,t)})})});oM.displayName="AccordionBody";function cge(e,t){const{activeEventKey:n,onSelect:r,alwaysOpen:i}=h.useContext(Jl);return o=>{let a=e===n?null:e;i&&(Array.isArray(n)?n.includes(e)?a=n.filter(s=>s!==e):a=[...n,e]:a=[e]),r==null||r(a,o),t==null||t(o)}}const Cy=ie.forwardRef(({as:e="button",bsPrefix:t,className:n,onClick:r,...i},o)=>{t=kt(t,"accordion-button");const{eventKey:a}=h.useContext(fp),s=cge(a,r),{activeEventKey:c}=h.useContext(Jl);return e==="button"&&(i.type="button"),b.jsx(e,{ref:o,onClick:s,...i,"aria-expanded":Array.isArray(c)?c.includes(a):a===c,className:xe(n,t,!iM(c,a)&&"collapsed")})});Cy.displayName="AccordionButton";const aM=ie.forwardRef(({as:e="h2","aria-controls":t,bsPrefix:n,className:r,children:i,onClick:o,...a},s)=>(n=kt(n,"accordion-header"),b.jsx(e,{ref:s,...a,className:xe(r,n),children:b.jsx(Cy,{onClick:o,"aria-controls":t,children:i})})));aM.displayName="AccordionHeader";const sM=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,eventKey:r,...i},o)=>{t=kt(t,"accordion-item");const a=h.useMemo(()=>({eventKey:r}),[r]);return b.jsx(fp.Provider,{value:a,children:b.jsx(e,{ref:o,...i,className:xe(n,t)})})});sM.displayName="AccordionItem";const cM=ie.forwardRef((e,t)=>{const{as:n="div",activeKey:r,bsPrefix:i,className:o,onSelect:a,flush:s,alwaysOpen:c,...l}=ZO(e,{activeKey:"onSelect"}),u=kt(i,"accordion"),d=h.useMemo(()=>({activeEventKey:r,onSelect:a,alwaysOpen:c}),[r,a,c]);return b.jsx(Jl.Provider,{value:d,children:b.jsx(n,{ref:t,...l,className:xe(o,u,s&&`${u}-flush`)})})});cM.displayName="Accordion";const mo=Object.assign(cM,{Button:Cy,Collapse:_y,Item:sM,Header:aM,Body:oM}),lge=e=>ie.forwardRef((t,n)=>b.jsx("div",{...t,ref:n,className:xe(t.className,e)})),uge=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",dge=typeof document<"u",G_=dge||uge?h.useLayoutEffect:h.useEffect,fge={[li]:"show",[Ui]:"show"},$y=ie.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},o)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},s=h.useCallback((c,l)=>{nM(c),r==null||r(c,l)},[r]);return b.jsx(wy,{ref:o,addEndListener:tM,...a,onEnter:s,childRef:Ql(t),children:(c,l)=>ie.cloneElement(t,{...l,className:xe("fade",e,t.props.className,fge[c],n[c])})})});$y.displayName="Fade";const hge={"aria-label":Qe.string,onClick:Qe.func,variant:Qe.oneOf(["white"])},Sy=ie.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>b.jsx("button",{ref:i,type:"button",className:xe("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Sy.displayName="CloseButton";Sy.propTypes=hge;function pge(e){const t=h.useRef(e);return t.current=e,t}function mge(e){const t=pge(e);h.useEffect(()=>()=>t.current(),[])}const K_=e=>!e||typeof e=="function"?e:t=>{e.current=t};function gge(e,t){const n=K_(e),r=K_(t);return i=>{n&&n(i),r&&r(i)}}function Ey(e,t){return h.useMemo(()=>gge(e,t),[e,t])}var Pu;function Z_(e){if((!Pu&&Pu!==0||e)&&Ss){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),Pu=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Pu}function vge(){return h.useState(null)}function Am(e){e===void 0&&(e=Vl());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function bge(e){const t=h.useRef(e);return t.current=e,t}function yge(e){const t=bge(e);h.useEffect(()=>()=>t.current(),[])}function xge(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const X_=ey("modal-open");class Ty{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return xge(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(pi(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(X_,""),pi(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(X_),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 jm=(e,t)=>Ss?e==null?(t||Vl()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function wge(e,t){const n=ap(),[r,i]=h.useState(()=>jm(e,n==null?void 0:n.document));if(!r){const o=jm(e);o&&i(o)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const o=jm(e);o!==r&&i(o)},[e,r]),r}function _ge({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=h.useRef(null),a=h.useRef(t),s=Nn(n);h.useEffect(()=>{t?a.current=!0:s(o.current)},[t,s]);const c=Ey(o,Ql(e)),l=h.cloneElement(e,{ref:c});return t?l:i||!a.current&&r?null:l}const Cge=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function $ge(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 Sge(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:o,onExited:a,addEndListener:s,children:c}=e,l=$ge(e,Cge);const u=h.useRef(null),d=Ey(u,Ql(c)),f=C=>y=>{C&&u.current&&C(u.current,y)},p=h.useCallback(f(t),[t]),g=h.useCallback(f(n),[n]),m=h.useCallback(f(r),[r]),v=h.useCallback(f(i),[i]),x=h.useCallback(f(o),[o]),w=h.useCallback(f(a),[a]),_=h.useCallback(f(s),[s]);return Object.assign({},l,{nodeRef:u},t&&{onEnter:p},n&&{onEntering:g},r&&{onEntered:m},i&&{onExit:v},o&&{onExiting:x},a&&{onExited:w},s&&{addEndListener:_},{children:typeof c=="function"?(C,y)=>c(C,Object.assign({},y,{ref:d})):h.cloneElement(c,{ref:d})})}const Ege=["component"];function Tge(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 kge=ie.forwardRef((e,t)=>{let{component:n}=e,r=Tge(e,Ege);const i=Sge(r);return b.jsx(n,Object.assign({ref:t},i))});function Oge({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),i=Nn(t);return G_(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),G_(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function Mge({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,a]=h.useState(!t);t&&o&&a(!1);const s=Oge({in:!!t,onTransition:l=>{const u=()=>{l.isStale()||(l.in?r==null||r(l.element,l.initial):(a(!0),n==null||n(l.element)))};Promise.resolve(i(l)).then(u,d=>{throw l.in||a(!0),d})}}),c=Ey(s,Ql(e));return o&&!t?null:h.cloneElement(e,{ref:c})}function Q_(e,t,n){return e?b.jsx(kge,Object.assign({},n,{component:e})):t?b.jsx(Mge,Object.assign({},n,{transition:t})):b.jsx(_ge,Object.assign({},n))}const Rge=["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 Age(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 Nm;function jge(e){return Nm||(Nm=new Ty({ownerDocument:e==null?void 0:e.document})),Nm}function Nge(e){const t=ap(),n=e||jge(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(i=>{r.current.dialog=i},[]),setBackdropRef:h.useCallback(i=>{r.current.backdrop=i},[])})}const lM=h.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:o,children:a,backdrop:s=!0,keyboard:c=!0,onBackdropClick:l,onEscapeKeyDown:u,transition:d,runTransition:f,backdropTransition:p,runBackdropTransition:g,autoFocus:m=!0,enforceFocus:v=!0,restoreFocus:x=!0,restoreFocusOptions:w,renderDialog:_,renderBackdrop:C=te=>b.jsx("div",Object.assign({},te)),manager:y,container:$,onShow:E,onHide:k=()=>{},onExit:T,onExited:O,onExiting:S,onEnter:M,onEntering:A,onEntered:j}=e,P=Age(e,Rge);const I=ap(),L=wge($),V=Nge(y),z=XO(),D=QO(n),[W,G]=h.useState(!n),J=h.useRef(null);h.useImperativeHandle(t,()=>V,[V]),Ss&&!D&&n&&(J.current=Am(I==null?void 0:I.document)),n&&W&&G(!1);const Z=Nn(()=>{if(V.add(),B.current=qi(document,"keydown",F),N.current=qi(document,"focus",()=>setTimeout(ee),!0),E&&E(),m){var te,ue;const oe=Am((te=(ue=V.dialog)==null?void 0:ue.ownerDocument)!=null?te:I==null?void 0:I.document);V.dialog&&oe&&!rf(V.dialog,oe)&&(J.current=oe,V.dialog.focus())}}),X=Nn(()=>{if(V.remove(),B.current==null||B.current(),N.current==null||N.current(),x){var te;(te=J.current)==null||te.focus==null||te.focus(w),J.current=null}});h.useEffect(()=>{!n||!L||Z()},[n,L,Z]),h.useEffect(()=>{W&&X()},[W,X]),yge(()=>{X()});const ee=Nn(()=>{if(!v||!z()||!V.isTopModal())return;const te=Am(I==null?void 0:I.document);V.dialog&&te&&!rf(V.dialog,te)&&V.dialog.focus()}),ne=Nn(te=>{te.target===te.currentTarget&&(l==null||l(te),s===!0&&k())}),F=Nn(te=>{c&&Jme(te)&&V.isTopModal()&&(u==null||u(te),te.defaultPrevented||k())}),N=h.useRef(),B=h.useRef(),H=(...te)=>{G(!0),O==null||O(...te)};if(!L)return null;const R=Object.assign({role:r,ref:V.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},P,{style:o,className:i,tabIndex:-1});let Y=_?_(R):b.jsx("div",Object.assign({},R,{children:ie.cloneElement(a,{role:"document"})}));Y=Q_(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:T,onExiting:S,onExited:H,onEnter:M,onEntering:A,onEntered:j,children:Y});let Q=null;return s&&(Q=C({ref:V.setBackdropRef,onClick:ne}),Q=Q_(p,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Q})),b.jsx(b.Fragment,{children:un.createPortal(b.jsxs(b.Fragment,{children:[Q,Y]}),L)})});lM.displayName="Modal";const Dge=Object.assign(lM,{Manager:Ty});function Ige(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Pge(e,t){e.classList?e.classList.add(t):Ige(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function J_(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Lge(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=J_(e.className,t):e.setAttribute("class",J_(e.className&&e.className.baseVal||"",t))}const wa={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Fge extends Ty{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,pi(n,{[t]:`${parseFloat(pi(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],pi(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(Pge(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Ii(n,wa.FIXED_CONTENT).forEach(o=>this.adjustAndStore(r,o,t.scrollBarWidth)),Ii(n,wa.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),Ii(n,wa.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();Lge(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Ii(n,wa.FIXED_CONTENT).forEach(o=>this.restore(r,o)),Ii(n,wa.STICKY_CONTENT).forEach(o=>this.restore(i,o)),Ii(n,wa.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let Dm;function Bge(e){return Dm||(Dm=new Fge(e)),Dm}const uM=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=kt(t,"modal-body"),b.jsx(n,{ref:i,className:xe(e,t),...r})));uM.displayName="ModalBody";const dM=ie.createContext({onHide(){}}),ky=ie.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:o,children:a,scrollable:s,...c},l)=>{e=kt(e,"modal");const u=`${e}-dialog`,d=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return b.jsx("div",{...c,ref:l,className:xe(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,o&&d),children:b.jsx("div",{className:xe(`${e}-content`,n),children:a})})});ky.displayName="ModalDialog";const fM=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=kt(t,"modal-footer"),b.jsx(n,{ref:i,className:xe(e,t),...r})));fM.displayName="ModalFooter";const hM=ie.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...o},a)=>{const s=h.useContext(dM),c=nf(()=>{s==null||s.onHide(),r==null||r()});return b.jsxs("div",{ref:a,...o,children:[i,n&&b.jsx(Sy,{"aria-label":e,variant:t,onClick:c})]})});hM.displayName="AbstractModalHeader";const pM=ie.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},o)=>(e=kt(e,"modal-header"),b.jsx(hM,{ref:o,...i,className:xe(t,e),closeLabel:n,closeButton:r})));pM.displayName="ModalHeader";const zge=lge("h4"),mM=ie.forwardRef(({className:e,bsPrefix:t,as:n=zge,...r},i)=>(t=kt(t,"modal-title"),b.jsx(n,{ref:i,className:xe(e,t),...r})));mM.displayName="ModalTitle";function Wge(e){return b.jsx($y,{...e,timeout:null})}function Uge(e){return b.jsx($y,{...e,timeout:null})}const gM=ie.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:o,dialogAs:a=ky,"data-bs-theme":s,"aria-labelledby":c,"aria-describedby":l,"aria-label":u,show:d=!1,animation:f=!0,backdrop:p=!0,keyboard:g=!0,onEscapeKeyDown:m,onShow:v,onHide:x,container:w,autoFocus:_=!0,enforceFocus:C=!0,restoreFocus:y=!0,restoreFocusOptions:$,onEntered:E,onExit:k,onExiting:T,onEnter:O,onEntering:S,onExited:M,backdropClassName:A,manager:j,...P},I)=>{const[L,V]=h.useState({}),[z,D]=h.useState(!1),W=h.useRef(!1),G=h.useRef(!1),J=h.useRef(null),[Z,X]=vge(),ee=Hl(I,X),ne=nf(x),F=IO();e=kt(e,"modal");const N=h.useMemo(()=>({onHide:ne}),[ne]);function B(){return j||Bge({isRTL:F})}function H(se){if(!Ss)return;const we=B().getScrollbarWidth()>0,Ve=se.scrollHeight>Vl(se).documentElement.clientHeight;V({paddingRight:we&&!Ve?Z_():void 0,paddingLeft:!we&&Ve?Z_():void 0})}const R=nf(()=>{Z&&H(Z.dialog)});mge(()=>{uv(window,"resize",R),J.current==null||J.current()});const Y=()=>{W.current=!0},Q=se=>{W.current&&Z&&se.target===Z.dialog&&(G.current=!0),W.current=!1},te=()=>{D(!0),J.current=eM(Z.dialog,()=>{D(!1)})},ue=se=>{se.target===se.currentTarget&&te()},oe=se=>{if(p==="static"){ue(se);return}if(G.current||se.target!==se.currentTarget){G.current=!1;return}x==null||x()},ae=se=>{g?m==null||m(se):(se.preventDefault(),p==="static"&&te())},pe=(se,we)=>{se&&H(se),O==null||O(se,we)},ve=se=>{J.current==null||J.current(),k==null||k(se)},Ee=(se,we)=>{S==null||S(se,we),Jb(window,"resize",R)},Se=se=>{se&&(se.style.display=""),M==null||M(se),uv(window,"resize",R)},Oe=h.useCallback(se=>b.jsx("div",{...se,className:xe(`${e}-backdrop`,A,!f&&"show")}),[f,A,e]),Fe={...n,...L};Fe.display="block";const fe=se=>b.jsx("div",{role:"dialog",...se,style:Fe,className:xe(t,e,z&&`${e}-static`,!f&&"show"),onClick:p?oe:void 0,onMouseUp:Q,"data-bs-theme":s,"aria-label":u,"aria-labelledby":c,"aria-describedby":l,children:b.jsx(a,{...P,onMouseDown:Y,className:r,contentClassName:i,children:o})});return b.jsx(dM.Provider,{value:N,children:b.jsx(Dge,{show:d,ref:ee,backdrop:p,container:w,keyboard:!0,autoFocus:_,enforceFocus:C,restoreFocus:y,restoreFocusOptions:$,onEscapeKeyDown:ae,onShow:v,onHide:x,onEnter:pe,onEntering:Ee,onEntered:E,onExit:ve,onExiting:T,onExited:Se,manager:B(),transition:f?Wge:void 0,backdropTransition:f?Uge:void 0,renderBackdrop:Oe,renderDialog:fe})})});gM.displayName="Modal";const ic=Object.assign(gM,{Body:uM,Header:pM,Title:mM,Footer:fM,Dialog:ky,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Vge="_modal_1sw52_1",Hge="_settings-item_1sw52_1",qge="_label_1sw52_8",Yge="_content_1sw52_11",Gge="_column-item_1sw52_14",Kge="_is-hidden_1sw52_20",_a={modal:Vge,settingsItem:Hge,label:qge,content:Yge,columnItem:Gge,isHidden:Kge},Zge=({show:e,handleClose:t,texts:n,pageSize:r,columns:i,IconComponent:o,resetToDefault:a})=>{const[s,c]=h.useState(r.value?r.value.toString():"");return h.useEffect(()=>{e&&c(r.value?r.value.toString():"")},[e,r.value]),b.jsxs(ic,{className:xe("settings-modal",_a.modal),"data-testId":"settings-modal",show:e,onHide:t,children:[b.jsx(ic.Header,{closeButton:!0,children:b.jsx(ic.Title,{children:n==null?void 0:n.settingsModal.title})}),b.jsx(ic.Body,{children:b.jsxs(mo,{children:[b.jsxs(mo.Item,{eventKey:"general-settings",children:[b.jsx(mo.Header,{children:n==null?void 0:n.settingsModal.generalSettings}),b.jsx(mo.Body,{className:"d-flex flex-column gap-1",children:r.enabled?b.jsxs("div",{className:_a.settingsItem,children:[b.jsx("div",{className:xe("text-nowrap",_a.label),children:n==null?void 0:n.settingsModal.pageSize}),b.jsxs("div",{className:xe("text-nowrap",_a.content),children:[b.jsx(ef.Control,{"data-testId":"page-size-input",list:"pageSizes",max:1e3,min:0,size:"sm",type:"number",value:s,onChange:l=>{c(l.target.value),l.target.value&&r.onChange(Number(l.target.value))}}),b.jsxs("datalist",{id:"pageSizes",children:[b.jsx("option",{value:"10"}),b.jsx("option",{value:"20"}),b.jsx("option",{value:"30"}),b.jsx("option",{value:"50"}),b.jsx("option",{value:"100"})]})]})]}):null})]}),b.jsxs(mo.Item,{eventKey:"column-settings",children:[b.jsx(mo.Header,{children:n==null?void 0:n.settingsModal.columnSettings}),b.jsx(mo.Body,{className:"d-flex flex-column gap-1",children:i.allColumns.filter(l=>{var u;return l.getCanHide()&&((u=l.columnDef.meta)==null?void 0:u.hidden)!==!0}).map(l=>b.jsxs("div",{className:xe("column-item rounded border",_a.columnItem,{[_a.isHidden]:!l.getIsVisible()}),children:[Wme(l),b.jsx(ai,{color:"secondary",onClick:()=>l.toggleVisibility(),children:b.jsx(o,{icon:l.getIsVisible()?"visibility":"visibility-off"})})]},l.id))})]})]})}),b.jsxs(ic.Footer,{className:"d-flex justify-content-between align-items-center",children:[b.jsx(H_,{variant:"outline-secondary",onClick:()=>{a(),t()},children:n==null?void 0:n.settingsModal.revertDefaultSettings}),b.jsx(H_,{onClick:t,children:n==null?void 0:n.settingsModal.done})]})]})},Xge=[["ArrowUp",[0,-1]],["ArrowDown",[0,1]],["ArrowLeft",[-1,0]],["ArrowRight",[1,0]]],eC=new Map(Xge),Qge=(e,t,n,r,i,o)=>{const a=h.useState([0,0]),[s,c]=(e==null?void 0:e.cellSelectionState)??a,[l,u]=h.useState(),[d,f]=h.useState(),p=h.useCallback(v=>{e!=null&&e.disabled||c(v)},[e==null?void 0:e.disabled,c]),g=({fieldName:v,dataIndex:x})=>{u(v),f(x)},m=h.useCallback(v=>{if(e!=null&&e.disabled)return;const x=v.target;if(!(["INPUT","TEXTAREA"].includes(x.tagName)||x.isContentEditable))switch(v.code){case"Space":case"Enter":{v.preventDefault();const w=t.get(s[0]);if(e!=null&&e.onlyRowSelection){n[s[1]].toggleSelected();break}if(!w)return;w==="selection"&&n[s[1]].toggleSelected();break}case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":{v.preventDefault(),p(w=>{const _=[Math.min(Math.max(w[0]+eC.get(v.code)[0],0),t.size-1),Math.min(Math.max(w[1]+eC.get(v.code)[1],0),n.length-1)];if(r!==void 0){const C=Math.floor(_[1]/r);i(C)}return _});break}case"Tab":if(v.preventDefault(),v.shiftKey)p(w=>w[0]<=0?w[1]<=0?w:[t.size-1,w[1]-1]:[w[0]-1,w[1]]);else{p(w=>w[0]>=t.size-1?w[1]>=n.length-1?w:[0,w[1]+1]:[w[0]+1,w[1]]);break}}},[e==null?void 0:e.disabled,e==null?void 0:e.onlyRowSelection,t,s,n,p,r,i]);return h.useEffect(()=>{if(l===void 0)return;u(void 0);const v=[...t.entries()].findIndex(x=>x[1]===l);c(x=>[v,x[1]])},[l,c,t]),h.useEffect(()=>{if(d===void 0)return;f(void 0);const v=n.findIndex(x=>x.index===d);if(c(x=>[x[0],v]),r!==void 0){const x=Math.floor(v/r);i(x)}},[i,r,d,n,c]),h.useEffect(()=>{if((e==null?void 0:e.onCellSelect)===void 0)return;const v=new AbortController;return window.addEventListener("keydown",m,{signal:v.signal}),()=>v.abort()},[m,e==null?void 0:e.onCellSelect]),h.useEffect(()=>{var v;(v=o.current)==null||v.scrollIntoView({behavior:"instant",block:"center",inline:"nearest"})},[o,s]),h.useEffect(()=>{var x;if((e==null?void 0:e.onCellSelect)===void 0)return;if(((x=n[s[1]])==null?void 0:x.index)===void 0){n.length>0&&p(w=>[w[0],0]);return}const v=t.get(s[0]);if(v===void 0){console.error(`Tried to access non-existing key ${s[0]} from following map: `,t);return}e==null||e.onCellSelect(n[s[1]].index,v)},[e,p,n,s,t]),{selectedCoords:s,changeSelectedCoords:p,setSelectedCellByFNDI:g}},Jge=e=>e.type==="number"?"sum":"uniqueCount",eve=(e,t,n)=>{var i;const r=t.column.columnDef;return(i=r.meta)!=null&&i.customCellRender?r.meta.customCellRender(t):r.type==="boolean"?n.boolean(t):r.type==="date"?n.date(t):r.type==="datetime"?n.datetime(t):r.type==="number"?n.number(t):M3(e,t)},tve=(e,t,n)=>{var r;return(r=e.meta)!=null&&r.customAggregatedCellRender?e.meta.customAggregatedCellRender(t):(Jge(e)==="sum"?n.aggregation.sum:n.aggregation.uniqueCount)(Number(t.getValue()))},nve=e=>{let{transform:t}=e;return{...t,y:0}},rve=h.forwardRef(({isLink:e,to:t,children:n,LinkComponent:r,onClick:i,onCellInteraction:o,...a},s)=>e&&t?b.jsx(r,{ref:s,to:t,onAuxClick:c=>{c.button===1&&(o==null||o())},onClick:()=>{i==null||i(),o==null||o()},onContextMenu:()=>{o==null||o()},...a,children:n}):b.jsx("div",{ref:s,onAuxClick:i?c=>{c.button===1&&(o==null||o())}:void 0,onClick:i?()=>{i==null||i(),o==null||o()}:void 0,onContextMenu:i?()=>{o==null||o()}:void 0,...a,children:n})),ive=({row:e,cell:t,className:n,rowClassName:r,style:i,IconComponent:o,texts:a,formatters:s,LinkComponent:c,onRowClick:l,rowNavigation:u,onCellInteraction:d},f)=>{var m,v,x;const p=t.column.columnDef,g=h.useMemo(()=>{var w,_,C,y,$;if(!((w=p.meta)!=null&&w.disableCellClick)&&!t.getIsGrouped()&&!t.getIsAggregated()){if((_=p.meta)!=null&&_.onCellClick)return["onClickOwn",()=>{var E,k;return(k=(E=p.meta)==null?void 0:E.onCellClick)==null?void 0:k.call(E,e.original)}];if((C=p.meta)!=null&&C.cellNavigation){const E=($=(y=p.meta)==null?void 0:y.cellNavigation)==null?void 0:$.call(y,e.original);if(E)return["navigateOwn",E]}if(l)return["onClick",()=>l==null?void 0:l(e.original)];if(u){const E=u==null?void 0:u(e.original);if(E)return["navigate",E]}}},[p,e,l,u,t]);return b.jsxs(rve,{className:xe((w=>{var E,k,T,O,S;const _=((E=p==null?void 0:p.meta)==null?void 0:E.alignment)??"left",C=w.column.getIsSorted(),y=w.cell.getIsGrouped(),$=w.row.getIsExpanded();return xe("td",Xe.td,{[Xe.left]:_==="left",[Xe.center]:_==="center",[Xe.right]:_==="right"},{sorted:C,[Xe.sorted]:C},{grouped:y,[Xe.grouped]:y},{expanded:$,[Xe.expanded]:$},{clickable:!!g,[Xe.clickable]:!!g},{"own-click":(k=g==null?void 0:g[0])==null?void 0:k.endsWith("Own"),[Xe.ownClick]:(T=g==null?void 0:g[0])==null?void 0:T.endsWith("Own")},r,(S=(O=p.meta)==null?void 0:O.className)==null?void 0:S.call(O,e.original))})(t.getContext()),n),isLink:!!((m=g==null?void 0:g[0])!=null&&m.startsWith("navigate")),LinkComponent:c,ref:f,style:{flex:`${t.column.getSize()} 1 0`,minWidth:t.column.getSize(),...i??{}},to:(v=g==null?void 0:g[0])!=null&&v.startsWith("navigate")?g[1]:void 0,onCellInteraction:d?()=>d==null?void 0:d(e.original):void 0,onClick:(x=g==null?void 0:g[0])!=null&&x.startsWith("onClick")?g[1]:void 0,children:[t.getIsGrouped()&&e.getCanExpand()?b.jsx(ai,{className:xe("expander-button",Xe.expanderButton),size:"sm",onClick:e.getToggleExpandedHandler(),children:b.jsx(o,{icon:e.getIsExpanded()?"chevron-up":"chevron-down"})}):null,t.getIsAggregated()?tve(t.column.columnDef,t.getContext(),a):t.getIsPlaceholder()?null:eve(t.column.columnDef.cell,t.getContext(),s)," ",t.getIsGrouped()?`(${e.subRows.length})`:null]})},ove=h.forwardRef(ive),ave=({table:e,additionalOptions:t,IconComponent:n,texts:r,formatters:i,bottomBar:o,testId:a,LinkComponent:s,className:c,rowsClassName:l,onRowClick:u,rowNavigation:d,onCellInteraction:f,cellSelection:p,getRowProps:g},m)=>{var Z,X,ee,ne,F,N,B,H,R;const v={boolean:Y=>Rue(Y,n),date:Aue,datetime:jue,number:Nue,...i},[x,w]=h.useState(!1),_=h.useMemo(()=>!!e.options.getPaginationRowModel,[e]),C=Ehe(km(U3,{}),km(V3,{}),km(by,{})),y=h.useMemo(()=>e.getState().columnOrder,[e]),$=Y=>{const{active:Q,over:te}=Y;Q&&te&&Q.id!==te.id&&e.setColumnOrder(ue=>{const oe=ue.indexOf(Q.id),ae=ue.indexOf(te.id);return oe===-1||ae===-1?ue:xy(ue,oe,ae)})},[E,k]=h.useState(null),T=Y=>{k(Y)},O=Y=>{if(!Y.getCanPin())return"";const Q=Y.getIsPinned(),te=Q==="right"&&Y.getIsFirstColumn("right"),ue=Q==="left"&&Y.getIsLastColumn("left");return xe({pinned:Q,[Xe.pinned]:Q,"first-right":te,[Xe.firstRight]:te,"last-left":ue,[Xe.lastLeft]:ue})},S=Y=>{if(!Y.getCanPin())return{};const Q=Y.getIsPinned();return{left:Q==="left"?`${Y.getStart("left")}px`:void 0,right:Q==="right"?`${Y.getAfter("right")}px`:void 0}},M=e.getState().sorting;h.useEffect(()=>{var Y,Q;if(M.length>0){const te=M[0];if((Y=document.activeElement)!=null&&Y.classList.contains("filter"))return;(Q=document.getElementById(`filter-${te.id}`))==null||Q.focus()}},[M]);const A=e.getRowModel().rows,j=new Map(e.getVisibleLeafColumns().map((Y,Q)=>[Q,Y.id])),P=h.useRef(null),{selectedCoords:I,changeSelectedCoords:L,setSelectedCellByFNDI:V}=Qge(p,j,A,_?((Z=e.getState().pagination)==null?void 0:Z.pageSize)??0:void 0,e.setPageIndex,P);h.useImperativeHandle(m,()=>({setSelectedCell:V}));const z=Y=>{var Q;return p!=null&&p.onlyRowSelection&&((Q=A[I[1]])==null?void 0:Q.index)===Y.index?xe(Xe.cellSelectedRow,"cell-selected-row",{[Xe.cellSelectionDisabled]:p.disabled}):""},D=(Y,Q)=>{var te;return(p==null?void 0:p.onCellSelect)===void 0||I[0]!==Y||((te=A[I[1]])==null?void 0:te.index)!==Q||p.onlyRowSelection?"":p.disabled?"bg-primary-subtle":xe("selected-cell",Xe.selectedCell)},W=t.fullScreen.canFullScreen?((X=t.fullScreen)==null?void 0:X.isFullScreen)??!1:!1,G=(ee=t.sizing)!=null&&ee.canSize?((ne=t.sizing)==null?void 0:ne.size)??"md":"md",J=e.getState().columnFilters;return b.jsx(kpe,{collisionDetection:Rhe,modifiers:[nve],sensors:C,onDragEnd:$,children:b.jsxs("div",{className:xe("tanstack-bnf-table-container",Xe.tableScrollContainer,{"full-screen":W,[Xe.fullScreen]:W}),children:[J&&J.length>0?b.jsx("div",{className:xe("remove-filters-button-wrapper",Xe.removeFiltersButtonWrapper),children:b.jsxs("button",{className:xe(Xe.removeFiltersButton,"remove-filters-button"),type:"button",onClick:()=>e.resetColumnFilters(),children:[b.jsx("div",{className:"d-flex align-items-center justify-content-center",children:b.jsx(n,{icon:"remove-filters"})}),(r==null?void 0:r.removeFilters)??"Zrušit filtry"]})}):null,b.jsxs("div",{className:xe("tanstack-bnf-table",Xe.table,{sm:G==="sm",lg:G==="lg",[Xe.sm]:G==="sm",[Xe.lg]:G==="lg"},c),"data-testid":a,children:[b.jsx("div",{className:xe("thead",Xe.thead),children:e.getHeaderGroups().map(Y=>b.jsx("div",{className:xe("tr",Xe.tr),children:b.jsx(zpe,{items:y,strategy:Fpe,children:Y.headers.map(Q=>{var te,ue;return b.jsx(Lme,{className:O(Q.column),columnMenuPos:E,dragEnabled:t.enableReordering&&((ue=(te=Q.column.columnDef)==null?void 0:te.meta)==null?void 0:ue.enableReordering)!==!1,header:Q,IconComponent:n,style:S(Q.column),table:e,texts:r,onColumnMenu:T},Q.id)})})},Y.id))}),b.jsxs("div",{className:xe("tbody",Xe.tbody),children:[(((N=(F=e.options)==null?void 0:F.data)==null?void 0:N.length)??0)===0?b.jsx("div",{className:xe("alert alert-warning empty-table-alert",Xe.emptyTableAlert),children:r.emptyTable}):null,e.getRowModel().rows.map((Y,Q)=>{var te;return b.jsx("div",{className:xe("tr",Xe.tr,z(Y),g?(te=g(Y.original))==null?void 0:te.className:null),role:"data-row",...g?g(Y.original):{},children:Y.getVisibleCells().map((ue,oe)=>{var ae;return b.jsx(ove,{cell:ue,className:xe(O(ue.column),D(oe,Y.index)),formatters:v,IconComponent:n,LinkComponent:s,ref:(p==null?void 0:p.onCellSelect)!==void 0&&I[0]===oe&&((ae=A[I[1]])==null?void 0:ae.index)===Y.index?P:null,row:Y,rowClassName:xe(...(l==null?void 0:l.filter(pe=>pe.selector(Y.original)).map(pe=>pe.className))??[]),rowNavigation:d,style:S(ue.column),texts:r,onCellInteraction:(p==null?void 0:p.onCellSelect)===void 0?f:pe=>{var ve,Ee;L([oe,((ve=e.getState().pagination)==null?void 0:ve.pageIndex)*((Ee=e.getState().pagination)==null?void 0:Ee.pageSize)+Q]),f==null||f(pe)},onRowClick:u},ue.id)})},Y.id)})]}),b.jsx(Zge,{columns:{allColumns:e.getAllColumns()},handleClose:()=>w(!1),IconComponent:n,pageSize:{enabled:_,value:((B=e.getState().pagination)==null?void 0:B.pageSize)??0,onChange:Y=>e.setPageSize(Y)},resetToDefault:t.resetToInitialValues,show:x,texts:r})]}),o!=null&&o.hidden?null:b.jsxs("div",{className:xe("bottom-bar",Xe.bottomBar),children:[b.jsxs("div",{className:xe("left-items",Xe.leftItems),children:[_?b.jsxs("div",{className:xe("pagination",Xe.pagination),children:[b.jsx(ai,{disabled:!e.getCanPreviousPage(),onClick:()=>e.firstPage(),children:b.jsx(n,{icon:"page-first"})}),b.jsx(ai,{disabled:!e.getCanPreviousPage(),onClick:()=>e.previousPage(),children:b.jsx(n,{icon:"page-previous"})}),b.jsx("div",{className:xe("page-info-text",Xe.pageInfoText),children:r.pagination.infoText(e.getState().pagination.pageIndex+1,e.getPageCount())}),b.jsx(ai,{disabled:!e.getCanNextPage(),onClick:()=>e.nextPage(),children:b.jsx(n,{icon:"page-next"})}),b.jsx(ai,{disabled:!e.getCanNextPage(),onClick:()=>e.lastPage(),children:b.jsx(n,{icon:"page-last"})})]}):null,b.jsx("div",{className:xe("row-count-text",Xe.rowCountText),children:r.rowCountText(e.getRowCount())})]}),b.jsxs("div",{className:xe("right-items",Xe.rightItems),children:[(H=t.sizing)!=null&&H.canSize?b.jsxs(Tn,{drop:"up",children:[b.jsx(Tn.Toggle,{bsPrefix:"sizing-toggle",className:xe("sizing-toggle",Xe.sizingToggle),id:"table-sizing-button",size:"sm",children:r.sizing[G]}),b.jsxs(Tn.Menu,{className:xe("shadow-lg sizing-menu",Xe.sizingMenu),children:[b.jsx(Tn.Item,{className:xe("sizing-menu-item",Xe.sizingMenuItem),onClick:()=>t.sizing.setSize("sm"),children:r.sizing.sm}),b.jsx(Tn.Item,{className:xe("sizing-menu-item",Xe.sizingMenuItem),onClick:()=>t.sizing.setSize("md"),children:r.sizing.md}),b.jsx(Tn.Item,{className:xe("sizing-menu-item",Xe.sizingMenuItem),onClick:()=>t.sizing.setSize("lg"),children:r.sizing.lg})]})]}):null,(R=t.fullScreen)!=null&&R.canFullScreen?b.jsx(ai,{color:t.fullScreen.isFullScreen?"danger":"primary","data-testId":"table-fullscreen-button",onClick:()=>t.fullScreen.toggleFullScreen(),children:b.jsx(n,{icon:t.fullScreen.isFullScreen?"fullscreen-exit":"fullscreen"})}):null,t.excelExport.canExport?b.jsx(ai,{"data-testId":"table-excel-export-button",onClick:()=>t.excelExport.onExport(r),children:b.jsx(n,{icon:"excel-export"})}):null,b.jsx(ai,{"data-testId":"table-settings-button",onClick:()=>w(!0),children:b.jsx(n,{icon:"settings"})})]})]})]})})};h.forwardRef(ave);const sve=(e,t)=>t.split(".").reduce((n,r)=>n&&typeof n=="object"?n[r]:void 0,e),vM=()=>{const e=che();return{accessor:(t,n)=>{const r=i=>sve(i,t)??"";return e.accessor(r,{...n,id:t})},display:t=>e.display(t),group:t=>e.group(t)}},Oy=({InputContainer:e=Ml,formField:t,label:n,resetsFields:r,options:i,isNumber:o,size:a,showClearIcon:s,clearValue:c,noSortOptions:l,required:u,hidden:d,disabled:f,withoutLabel:p,hint:g,className:m})=>{const{register:v,formState:x,getValues:w,setValue:_,watch:C}=kn.useFormContext(),y=Ff({falseIfNotInit:!0});console.log("disabled ",f),console.log("formDisabled ",y);const[$,E]=h.useState(void 0),[k,T]=h.useState(!1),O=h.useMemo(()=>i.toSorted((j,P)=>l?0:(j.name??"").localeCompare(P.name??"")),[i,l]),S=h.useCallback(()=>{const j=c??null;o?_(t,j===null?null:Number(j),{shouldDirty:!0,shouldValidate:k}):_(t,(j==null?void 0:j.toString())??"",{shouldDirty:!0,shouldValidate:k})},[c,o,_,t,k]);h.useEffect(()=>{const j=t.split(".");let P=x.errors;j.forEach(I=>{P!==void 0&&(P=P[I])}),E(P)},[x,t]);const M=h.useMemo(()=>f||y,[f,y]);console.log(M),h.useEffect(()=>{_(t,w(t))},[O,t,w,_]),h.useEffect(()=>{x.isSubmitted&&T(!0)},[x]);const A=$!==void 0;return b.jsx(b.Fragment,{children:b.jsxs(e,{label:n??"",required:u,disabled:M,hidden:d,withoutLabel:p,isInvalid:A,hint:g,className:m,children:[b.jsxs(Kr.Select,{size:a,...v(t,{setValueAs:j=>o?j==null||j===""?null:parseInt(j,10):j==null||j===""?null:j,onChange:()=>{r&&r.forEach(j=>_(j,null,{shouldDirty:!0,shouldValidate:k}))}}),isInvalid:A,hidden:d,disabled:M,className:"w-100",children:[b.jsx("option",{value:""}),O.map(j=>b.jsx("option",{value:j.id??"",children:j.name},j.id))]}),s&&C(t)&&b.jsx("div",{className:"luminus-input-remove-icon inset",children:b.jsx(Ol,{color:"secondary",size:"sm",onClick:S,children:b.jsx(Cl,{})})}),$&&b.jsx(zf,{message:$.message})]})})},My=({InputContainer:e=Ml,formField:t,label:n,resetsFields:r,size:i,showClearIcon:o,clearValue:a,required:s,hidden:c,disabled:l,rows:u,withoutLabel:d,customFormControlProps:f,minLength:p,maxLength:g,hint:m,onChange:v,className:x})=>{const{register:w,formState:_,setValue:C,watch:y}=kn.useFormContext(),$=Ff({falseIfNotInit:!0}),[E,k]=h.useState(void 0),[T,O]=h.useState(!1),S=h.useCallback(()=>{const P=a??null;C(t,(P==null?void 0:P.toString())??"",{shouldDirty:!0,shouldValidate:T})},[a,C,t,T]),M=h.useCallback(()=>{const P=t.split(".");let I=_.errors;P.forEach(L=>{I!==void 0&&(I=I[L])}),k(I)},[_,t]),A=h.useMemo(()=>l||$,[l,$]);h.useEffect(()=>{M()},[M]),h.useEffect(()=>{_.isSubmitted&&O(!0)},[_]);const j=E!==void 0;return b.jsxs(e,{label:n??"",required:s,disabled:A,hidden:c,withoutLabel:d,isInvalid:j,className:x,hint:m,isForTextAreaInput:!0,children:[b.jsx(Kr.Control,{as:"textarea",size:i,...w(t,{setValueAs:P=>P==null||P===""?null:P,onChange:P=>{var I;r&&r.forEach(L=>C(L,null,{shouldDirty:!0,shouldValidate:T})),v&&v((I=P.target)!=null&&I.value?P.target.value.toString():null)}}),isInvalid:j,hidden:c,disabled:A,rows:u??2,className:"w-100",minLength:p,maxLength:g,...f}),o&&y(t)&&b.jsx("div",{className:"luminus-input-remove-icon",children:b.jsx(Ol,{color:"secondary",size:"sm",onClick:S,children:b.jsx(Cl,{})})}),E&&b.jsx(zf,{message:E.message})]})},rs=h.forwardRef(({InputContainer:e=Ml,type:t,formField:n,label:r,placeholder:i,size:o,resetsFields:a,showClearIcon:s,clearValue:c,required:l,hidden:u,disabled:d,withoutLabel:f,list:p,step:g,CustomOnChangeComponent:m,noSelectOnFocus:v,minLength:x,maxLength:w,hint:_,onChange:C,className:y,autoComplete:$},E)=>{var B,H,R,Y;const{register:k,formState:T,setValue:O,watch:S}=kn.useFormContext(),M=Ff({falseIfNotInit:!0}),[A,j]=h.useState(void 0),[P,I]=h.useState(!1),L=h.useCallback(()=>{const Q=c??null;t==="number"?O(n,Q!==null?Number(Q):null,{shouldDirty:!0,shouldValidate:P}):O(n,(Q==null?void 0:Q.toString())??"",{shouldDirty:!0,shouldValidate:P})},[c,t,O,n,P]),V=h.useCallback(()=>{const Q=n.split(".");let te=T.errors;Q.forEach(ue=>{te!==void 0&&(te=te[ue])}),j(te)},[T,n]),z=h.useMemo(()=>d||M,[d,M]);h.useEffect(()=>{V()},[V]),h.useEffect(()=>{T.isSubmitted&&I(!0)},[T]);const D=A!==void 0,[W,G]=h.useState(!1),J=S(n),Z=f0(t,J??null,W),{ref:X,...ee}=k(n,{setValueAs:Q=>t==="number"?Q==null||Q===""?null:Number(Q):Q==null||Q===""?null:Q,onChange:Q=>{var te;a&&a.forEach(ue=>O(ue,null,{shouldDirty:!0,shouldValidate:P})),C&&C((te=Q.target)!=null&&te.value?t==="number"?Number(Q.target.value)??null:Q.target.value.toString():null)},onBlur:()=>G(!1)}),ne=h.useRef(null),F=(((B=ne.current)==null?void 0:B.scrollWidth)??0)>(((H=ne.current)==null?void 0:H.clientWidth)??0),N=(R=ne.current)==null?void 0:R.getBoundingClientRect();return h.useImperativeHandle(E,()=>ne.current,[ne]),b.jsxs(e,{label:r??"",required:l,disabled:z,hidden:u,withoutLabel:f,isInvalid:D,hint:_,className:y,children:[b.jsxs("div",{className:"luminus-input-container position-relative w-100",children:[b.jsx(Kr.Control,{type:Z,placeholder:i??r,size:o,onFocus:Q=>{G(!0),!v&&Q.target.select()},...ee,ref:Q=>{X(Q),ne.current=Q},isInvalid:D,hidden:u,disabled:z,list:p,className:"w-100",step:g,minLength:x,maxLength:w,autoComplete:$}),m&&b.jsx("div",{className:"custom-picker-button",children:m})]}),s&&S(n)&&b.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:b.jsx(Ol,{color:"secondary",size:"sm",onClick:L,children:b.jsx(Cl,{})})}),F?b.jsx("div",{className:"luminus-overflow-tooltip",style:{opacity:0,position:"fixed",top:((N==null?void 0:N.top)??0)+((N==null?void 0:N.height)??0),left:(N==null?void 0:N.left)??0,pointerEvents:"none"},children:((Y=ne.current)==null?void 0:Y.value)??""}):null,A&&b.jsx(zf,{message:A.message})]})}),tC=(e,t,n)=>{if(e&&"reportValidity"in e){const r=kn.get(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},bM=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?tC(r.ref,n,e):r.refs&&r.refs.forEach(i=>tC(i,n,e))}},cve=(e,t)=>{t.shouldUseNativeValidation&&bM(e,t);const n={};for(const r in e){const i=kn.get(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(lve(t.names||Object.keys(e),r)){const a=Object.assign({},kn.get(n,r));kn.set(a,"root",o),kn.set(n,r,a)}else kn.set(n,r,o)}return n},lve=(e,t)=>e.some(n=>n.startsWith(t+"."));var uve=function(e,t){for(var n={};e.length;){var r=e[0],i=r.code,o=r.message,a=r.path.join(".");if(!n[a])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[a]={message:s.message,type:s.code}}else n[a]={message:o,type:i};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var c=n[a].types,l=c&&c[r.code];n[a]=kn.appendErrors(a,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n},hp=function(e,t,n){return n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(a,s){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return o.shouldUseNativeValidation&&bM({},o),{errors:{},values:n.raw?r:l}})}catch(l){return s(l)}return c&&c.then?c.then(void 0,s):c}(0,function(a){if(function(s){return Array.isArray(s==null?void 0:s.errors)}(a))return{values:{},errors:cve(uve(a.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw a}))}catch(a){return Promise.reject(a)}}};const dve="_wrapper_1tb6d_1",fve="_controls_1tb6d_16",hve="_explorerWindow_1tb6d_20",pve="_folderList_1tb6d_28",mve="_fileList_1tb6d_35",gve="_dndText_1tb6d_61",vve="_extensionIcon_1tb6d_72",go={wrapper:dve,controls:fve,explorerWindow:hve,folderList:pve,fileList:mve,dndText:gve,extensionIcon:vve},hn=h.createContext({apiActions:{},loadDocuments(){throw new Error("DocumentsContext was not initialized.")},reducer:[{},{}],entityType:"",entityId:-1}),bve="_defaultFolder_8tlxv_1",yve="_names_8tlxv_5",xve="_folderType_8tlxv_9",Im={defaultFolder:bve,names:yve,folderType:xve},yM=({isActive:e,isDefault:t,folderName:n,typeName:r})=>{const{ProjectIconComponent:i}=h.useContext(sn);return b.jsxs("div",{className:"d-flex gap-2 align-items-center",children:[b.jsx(i,{icon:`folder${e?"-filled":""}`,className:de("d-inline-block",t?Im.defaultFolder:"text-primary"),iconProps:{className:"d-block"},size:18}),b.jsxs("div",{className:de("d-flex flex-column gap-0 align-items-start",Im.names),children:[b.jsx("span",{className:e?"fw-bold":"",children:n}),r?b.jsxs("span",{className:Im.folderType,children:["(",r,")"]}):null]})]})},wve=({customText:e})=>{const{reducer:[t,n]}=h.useContext(hn),r=h.useCallback(()=>{n({type:"select-folder",folderId:"root"})},[n]);return b.jsx("li",{children:b.jsx("button",{onClick:r,type:"button",className:de("border-0 bg-transparent"),children:b.jsx(yM,{folderName:e??"root",isActive:t.activeFolder==="root",typeName:"",isDefault:!0})})})};function _ve(e){if(e.state!=="openned-modal")throw new Error('Not in "openned-modal" state!')}const xM=()=>{const e=If(),{startLoading:t,stopLoading:n}=h.useContext(Tf),{reducer:[,r]}=h.useContext(hn),i=h.useCallback(async(a,s)=>{t("documents-renameFolder");try{await e.put("/documents/folder/rename",{folderId:a,name:s}),r({type:"update-folders",folderIds:[a],newProperties:{name:s}})}finally{n("documents-renameFolder")}},[e,r,t,n]),o=h.useCallback(async a=>{t("documentsFolderCreate");try{const s=await e.post("/documents/folder",a);r({type:"create-folder",folderData:a,folderId:s.data.id,isOnlyRead:s.data.onlyRead})}finally{n("documentsFolderCreate")}},[e,r,t,n]);return{renameFolder:i,createFolder:o}},Cve=()=>{const{reducer:[e],entityId:t,entityType:n}=h.useContext(hn),{zNumberRequired:r,zStringRequired:i}=Lf(),{createFolder:o}=xM(),a=vn.object({name:i(),documentTypeId:r()}),s=kn.useForm({resolver:hp(a)}),c=h.useCallback(async l=>{const u={...l,dbObjectId:t.toString(),entity:n,parentFolderId:e.activeFolder==="root"?null:e.activeFolder};await o(u)},[o,t,n,e.activeFolder]);return{formMethods:s,onSubmit:c}},$ve=({handleClose:e})=>{var a;const{texts:{documents:t}}=h.useContext(sn),{reducer:[n],entityType:r}=h.useContext(hn);if(_ve(n),n.modalType!=="create-folder")throw new Error("Tried to render CreateFolderModal without create-folder modal type reducer state.");const{onSubmit:i,formMethods:o}=Cve();return b.jsx(b.Fragment,{children:b.jsx(kn.FormProvider,{...o,children:b.jsxs(Kr,{onSubmit:o.handleSubmit(i),children:[b.jsx(Wn.Header,{closeButton:!0,children:b.jsx(Wn.Title,{children:t.createFolderInFolder(((a=n.foldersMap.get(n.chosenFolderId))==null?void 0:a.name)??r)})}),b.jsxs(Wn.Body,{children:[b.jsx(rs,{formField:"name",type:"text",label:t.name,required:!0}),b.jsx(Oy,{options:n.documentTypes,formField:"documentTypeId",label:t.folderType,isNumber:!0,required:!0})]}),b.jsxs(Wn.Footer,{children:[b.jsx(Vo,{onClick:e,variant:"outlined",color:"secondary",children:t.cancel}),b.jsx(Vo,{type:"submit",children:t.createFolder})]})]})})})},wM=100,Sve=(e,t)=>{const n=If(),{startLoading:r,stopLoading:i}=h.useContext(Tf),{loadDocuments:o}=h.useContext(hn),{zStringRequired:a,zString:s,zNumberRequired:c,zDateRequired:l}=Lf(),u=vn.object({name:a(),description:s(),validToDate:l(),documentTypeId:c()}),d=kn.useForm({resolver:hp(u),defaultValues:{...e,validToDate:Of(e.validToDate)}}),f=h.useCallback(async p=>{r("documents-updateProperties");try{await n.put(`/documents/${e.id}/update-info`,p),await o(),t()}finally{i("documents-updateProperties")}},[n,e.id,t,o,r,i]);return{formMethods:d,onSubmit:f}},Eve=({handleClose:e,file:t})=>{const{texts:{documents:n}}=h.useContext(sn),{reducer:[r]}=h.useContext(hn),{formMethods:i,onSubmit:o}=Sve(t,e);return b.jsxs(b.Fragment,{children:[b.jsx(Wn.Header,{closeButton:!0,children:b.jsx(Wn.Title,{children:n.editFileProperties})}),b.jsx(kn.FormProvider,{...i,children:b.jsxs(Kr,{onSubmit:i.handleSubmit(o),children:[b.jsxs(Wn.Body,{children:[b.jsx(rs,{formField:"name",type:"text",label:n.name,required:!0}),b.jsx(rs,{formField:"validToDate",type:"date",label:n.validSince,required:!0}),b.jsx(Oy,{formField:"documentTypeId",label:n.category,options:r.documentTypes,isNumber:!0,required:!0}),b.jsx(My,{formField:"description",label:n.description,customFormControlProps:{maxLength:wM}})]}),b.jsxs(Wn.Footer,{children:[b.jsx(Vo,{onClick:e,color:"secondary",variant:"outlined",children:n.cancel}),b.jsx(Vo,{type:"submit",children:n.save})]})]})})]})},Tve=({handleClose:e})=>{const{reducer:[t]}=h.useContext(hn),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(),b.jsx(b.Fragment,{})):b.jsx(Eve,{file:n,handleClose:e})},kve=()=>{const{reducer:[e,t]}=h.useContext(hn),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 b.jsx($ve,{handleClose:n});case"edit-file-properties":return b.jsx(Tve,{handleClose:n});default:return null}},[e.state,e.modalType]);return b.jsx(Wn,{show:e.state==="openned-modal",onHide:n,children:r})},nC="documents_drag_image_element",Lu="drop-container-highlight-class",rC="data-drop-container-id",iC="data-draggable-id",Ove=()=>{const e=document.getElementById(nC);if(e!==null)return e;const t=document.createElement("div");return t.id=nC,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},Ry=()=>{const{apiActions:{moveDocuments:e},reducer:[t]}=h.useContext(hn),n=h.useCallback(l=>{var u;if(t.markedFiles.length>0){const d=Ove();d.innerHTML=t.markedFiles.length.toString(),l.dataTransfer.setDragImage(d,0,0),l.dataTransfer.clearData(),l.dataTransfer.setData("application/json",JSON.stringify(t.markedFiles)),l.dataTransfer.dropEffect="none",l.dataTransfer.effectAllowed="move"}else l.dataTransfer.setData("application/json",JSON.stringify([parseInt(((u=l.currentTarget.attributes.getNamedItem(iC))==null?void 0:u.nodeValue)??"",10)])),l.dataTransfer.dropEffect="none",l.dataTransfer.effectAllowed="move"},[t.markedFiles]),r=h.useCallback(l=>({[iC]:l,draggable:t.markedFiles.length===0||t.markedFiles.includes(l),onDragStart:n}),[n,t.markedFiles]),i=h.useCallback(l=>u=>{var p;u.preventDefault(),u.stopPropagation(),u.currentTarget.classList.remove(Lu);const d=u.dataTransfer.files;if(l&&d&&d.length>0){l(d);return}const f=u.dataTransfer.getData("application/json");if(f){const g=JSON.parse(f),m=parseInt(((p=u.currentTarget.attributes.getNamedItem(rC))==null?void 0:p.value)??"",10);e(m,g)}},[e]),o=h.useCallback(()=>l=>{l.preventDefault(),l.stopPropagation()},[]),a=h.useCallback(l=>u=>{u.preventDefault(),u.stopPropagation(),u.dataTransfer.types.includes("Files")?(u.dataTransfer.dropEffect="copy",u.currentTarget.classList.add(Lu)):!l&&u.dataTransfer.types.includes("application/json")?(u.dataTransfer.dropEffect="move",u.currentTarget.classList.add(Lu)):u.dataTransfer.dropEffect="none"},[]),s=h.useCallback(l=>{l.preventDefault(),l.stopPropagation(),l.target===l.currentTarget&&(l.dataTransfer.dropEffect="none",l.currentTarget.classList.remove(Lu))},[]),c=h.useCallback((l,u)=>({onDrop:i(u==null?void 0:u.onFilesDrop),onDragOver:o(),onDragEnter:a(u==null?void 0:u.ignoreInner),onDragLeave:s,[rC]:l}),[i,o,a,s]);return{getDraggableProps:r,getDropProps:c}};function _M(e,t,n){for(let r=0;r<e.childrenIds.length;r++){const i=e.childrenIds[r];if(i===t)return!0;const o=n.get(i);if(o&&_M(o,t,n))return!0}return!1}function Mve(e){if(e.activeFolder==="root")return!1;const t=e.foldersMap.get(e.activeFolder);return!(t!=null&&t.onlyRead)}function CM(e,t){const n=t.get(e);return n===void 0?"":n.parentId===null?n.name:`${CM(n.parentId,t)}/${n.name}`}const Rve=()=>{const{zString:e,zStringRequired:t,zNumberRequired:n}=Lf();return{formSchema:h.useMemo(()=>vn.object({validToDate:t(),description:e(),name:e(),documentTypeId:n()}),[n,e,t])}},Ay=({handleClose:e,files:t,targetFolderId:n})=>{var f;const{texts:{documents:r}}=h.useContext(sn),{reducer:[i],apiActions:{uploadFiles:o}}=h.useContext(hn),a=h.useMemo(()=>[...t],[t]),s=h.useMemo(()=>n??i.activeFolder,[i.activeFolder,n]),c=h.useMemo(()=>s==="root"?void 0:i.foldersMap.get(s),[s,i.foldersMap]),{formSchema:l}=Rve(),u=kn.useForm({resolver:hp(l),defaultValues:{validToDate:Of(new Date().toISOString()),documentTypeId:(f=i.documentTypes.find(p=>{var g;return p.name===((g=i.foldersMap.get(s))==null?void 0:g.defaultDocType)}))==null?void 0:f.id}}),d=h.useCallback(async p=>{s!=="root"&&(await o(t,{folderId:s,...p}),e())},[t,e,s,o]);return b.jsxs(Wn,{show:!0,onHide:e,children:[b.jsx(Wn.Header,{closeButton:!0,children:b.jsxs("div",{children:[r.uploadFilesPrompt(t.length,c.name),b.jsx("ul",{children:a.map((p,g)=>b.jsxs("li",{children:[p.name," - ",Ua(p.size)]},`${p.name}-${g}`))})]})}),b.jsx(kn.FormProvider,{...u,children:b.jsxs(Kr,{onSubmit:u.handleSubmit(d),children:[b.jsxs(Wn.Body,{children:[b.jsx(Oy,{formField:"documentTypeId",label:r.documentType,options:i.documentTypes,isNumber:!0,required:!0}),b.jsx(rs,{formField:"validToDate",label:r.validSince,type:"date",required:!0}),a.length===1?b.jsx(rs,{formField:"name",label:r.name,type:"text"}):null,b.jsx(My,{formField:"description",label:r.description,customFormControlProps:{maxLength:wM}})]}),b.jsxs(Wn.Footer,{children:[b.jsx(Vo,{variant:"outlined",color:"secondary",onClick:e,children:r.cancel}),b.jsx(Vo,{type:"submit",children:r.upload})]})]})})]})},Ave="_folder_1cktt_1",jve="_collapseArrowDiv_1cktt_8",Nve="_button_1cktt_20",Dve="_nestedList_1cktt_24",Ive="_numberOfFiles_1cktt_31",Pve="_collapseArrow_1cktt_8",vo={folder:Ave,collapseArrowDiv:jve,button:Nve,nestedList:Dve,numberOfFiles:Ive,collapseArrow:Pve},$M=({dirId:e,writePermissions:t})=>{const{ProjectIconComponent:n}=h.useContext(sn),{reducer:[r,i]}=h.useContext(hn),{getDropProps:o}=Ry(),[a,s]=h.useState(null),[c,l]=h.useState(!0),u=h.useMemo(()=>{const m=r.foldersMap.get(e);if(m===void 0)throw new Error(`tried to get dir with id ${e}`);return m},[e,r.foldersMap]),d=h.useCallback(()=>{r.activeFolder!=="root"&&_M(u,r.activeFolder,r.foldersMap)&&i({type:"select-folder",folderId:e}),l(!0)},[e,u,i,r.activeFolder,r.foldersMap]),f=h.useMemo(()=>u.childrenIds.length>0,[u.childrenIds.length]),p=h.useCallback(()=>{i({type:"select-folder",folderId:e})},[e,i]),g=h.useMemo(()=>r.filteredFiles.filter(m=>m.folderId===e&&m.archive===!1).length,[e,r.filteredFiles]);return b.jsxs(b.Fragment,{children:[b.jsxs("li",{className:vo.folder,children:[b.jsx("div",{className:vo.collapseArrowDiv,children:f?c?b.jsx("button",{onClick:()=>l(!1),type:"button",children:b.jsx(n,{icon:"chevron-right",iconProps:{className:vo.collapseArrow}})}):b.jsx("button",{onClick:d,type:"button",children:b.jsx(n,{icon:"chevron-down",iconProps:{className:vo.collapseArrow}})}):null}),b.jsx("button",{className:de(vo.button),onClick:p,type:"button",...t&&!u.onlyRead?o(e,{onFilesDrop:m=>s(m)}):{},children:b.jsxs("div",{className:"d-flex align-items-center gap-2",children:[b.jsx(yM,{isDefault:u.isDefault,folderName:u.name,typeName:u.defaultDocType??"",isActive:e===r.activeFolder}),g>0?b.jsxs("span",{className:vo.numberOfFiles,children:["[",g,"]"]}):void 0]})}),f?c?null:b.jsx("ul",{className:vo.nestedList,children:u==null?void 0:u.childrenIds.map(m=>b.jsx($M,{dirId:m,writePermissions:t},m))}):void 0]}),a!==null?b.jsx(Ay,{files:a,handleClose:()=>s(null),targetFolderId:e}):null]})},Lve="_wrapper_1th2u_1",Fve="_downloadButton_1th2u_9",xv={wrapper:Lve,downloadButton:Fve};function Bve(e){return mt({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 zve(e){return mt({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 Wve(e){return mt({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 Uve(e){return mt({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 Vve="_excel_18ggp_1",Hve="_word_18ggp_5",qve="_pdf_18ggp_9",Yve="_image_18ggp_13",Fu={excel:Vve,word:Hve,pdf:qve,image:Yve},SM=({fileExtension:e,className:t,...n})=>{switch(e==null?void 0:e.toUpperCase()){case"JPG":case"JPEG":case"BMP":case"PNG":return b.jsx("span",{className:de(t,Fu.image),children:b.jsx(zve,{...n})});case"XLS":case"XLSX":case"CSV":return b.jsx(Wve,{className:de(t,Fu.excel),...n});case"DOC":case"DOCM":case"DOCX":return b.jsx(Uve,{className:de(t,Fu.word),...n});case"PDF":return b.jsx(x9,{className:de(t,Fu.pdf),...n});default:return b.jsx(Bve,{})}},Gve=()=>{const{ProjectIconComponent:e,texts:{documents:t}}=h.useContext(sn),{apiActions:{downloadFile:n},reducer:[r]}=h.useContext(hn),i=h.useMemo(()=>r.activeFolder==="root",[r.activeFolder]),o=h.useCallback((c,l,u)=>c?xS(l??"")&&localStorage.getItem("file-download-try-opening")!=="false"?b.jsx("span",{role:"button",className:"link link-primary d-flex align-items-center",onClick:f=>{f.stopPropagation(),n(u,!0)},children:c}):c:"",[n]),a=vM();return{columns:h.useMemo(()=>[a.accessor("id",{header:"id",type:"number",meta:{hidden:!0}}),...i?[a.accessor("folderName",{header:t.folder,type:"string"})]:[],a.accessor("--icon",{header:"",type:"string",size:36,enableSorting:!1,meta:{alignment:"center",filterVariant:"none",customCellRender:c=>{const l=c.row.getValue("fileExtension"),u=c.row.getValue("id");return o(b.jsx(SM,{fileExtension:(l==null?void 0:l.toString())??"",className:xv.extensionIcon,size:18}),(l==null?void 0:l.toString())??"",Number((u==null?void 0:u.toString())??""))}}}),a.accessor("name",{header:t.name,type:"string",meta:{customCellRender:c=>{const l=c.row.getValue("name"),u=c.row.getValue("fileExtension"),d=c.row.getValue("id");return o((l==null?void 0:l.toString())??"",(u==null?void 0:u.toString())??"",Number((d==null?void 0:d.toString())??""))}}}),a.accessor("description",{header:t.description,type:"string"}),a.accessor("fileExtension",{header:t.fileExtension,type:"string",size:50,meta:{filterVariant:"select"}}),a.accessor("--downloadButton",{header:"",type:"number",size:38,enableSorting:!1,meta:{alignment:"center",filterVariant:"none",customCellRender:c=>{const l=c.row.getValue("id");return b.jsx(Bf,{className:xv.downloadButton,onClick:()=>n(Number((l==null?void 0:l.toString())??""),!1),children:b.jsx(e,{icon:"file-download",size:18})})}}}),a.accessor("documentTypeName",{header:t.documentType,type:"string",meta:{filterVariant:"select"}}),a.accessor("validToDate",{header:t.validSince,type:"date"}),a.accessor("size",{header:t.size,type:"number",meta:{filterVariant:"none",customCellRender:c=>{var u;const l=Number(((u=c.getValue())==null?void 0:u.toString())??"");return l!==void 0?Ua(l*1024*1024):""}}}),a.accessor("archive",{header:t.archived,type:"boolean",meta:{filterVariant:"select",customCellRender:c=>c.getValue()?t.yes[0]:t.no[0]}})],[e,t.archived,t.description,t.documentType,t.fileExtension,t.folder,t.name,t.no,t.size,t.validSince,t.yes,n,i,o,a])}},Kve=({BnfTableComponent:e,tableIdentifier:t,writePermissions:n})=>{const{reducer:[r,i]}=h.useContext(hn),{columns:o}=Gve(),a=h.useCallback(p=>{i({type:"mark-files-by-action",setStateAction:p})},[i]),s=h.useMemo(()=>r.activeFolder==="root",[r.activeFolder]),c=h.useMemo(()=>{var p;return r.activeFolder==="root"?!1:((p=r.foldersMap.get(r.activeFolder))==null?void 0:p.onlyRead)??!1},[r.activeFolder,r.foldersMap]),l=h.useMemo(()=>({enabled:n&&!s,getRowId:p=>{var g;return((g=p.id)==null?void 0:g.toString())??""},selectedRows:Object.fromEntries(r.markedFiles.map(p=>[p.toString(),!0])),setSelectedRows:p=>{const g=Object.keys(p).filter(m=>p[m]).map(m=>Number(m));a(g)}}),[s,r.markedFiles,n,a]),u=h.useMemo(()=>r.activeFolder==="root"?r.filteredFiles:r.filteredFiles.filter(p=>p.folderId===r.activeFolder),[r.activeFolder,r.filteredFiles]),{getDraggableProps:d}=Ry(),f=h.useCallback(p=>n===!1||c?{}:d(p.id),[d,c,n]);return b.jsx("div",{className:de(xv.wrapper),children:b.jsx(e,{data:u,columns:o,rowSelection:l,getRowProps:f,initState:{columnFilters:[{id:"archive",value:"false"}]},tableId:t,bottomBar:{hidden:!0}},r.activeFolder)})},Zve="_wrapper_1q562_1",Xve="_divButtons_1q562_10",Pm={wrapper:Zve,divButtons:Xve},Qve="_wrapper_1bpdd_1",Jve="_fileInput_1bpdd_5",oC={wrapper:Qve,fileInput:Jve},e0e=({entityId:e,entityType:t,children:n,disabled:r})=>{const i=h.useRef(null),[o,a]=h.useState(null),{reducer:[s]}=h.useContext(hn),c=f=>{var p;(((p=f.target.files)==null?void 0:p.length)??0)>0&&a(f.target.files)},l=h.useCallback(()=>{a(null),i.current&&(i.current.value="")},[]),u=h.useMemo(()=>`documents-upload-${t}-${e}`,[e,t]),d=h.useMemo(()=>r||s.activeFolder==="root",[r,s.activeFolder]);return b.jsxs("div",{className:oC.wrapper,children:[b.jsx("label",{htmlFor:u,className:de("btn btn-context luminus-context-button",d?"disabled":void 0),children:n}),b.jsx("input",{id:u,type:"file",multiple:!0,onChange:c,className:oC.fileInput,ref:i,disabled:d}),o!==null?b.jsx(Ay,{handleClose:l,files:o}):void 0]})},jr=({children:e,onClick:t,className:n,disabled:r=!1})=>b.jsx(Bf,{onClick:t,className:n,disabled:r,children:e}),t0e=({className:e,entityId:t,entityType:n})=>{var E,k;const{texts:{documents:r}}=h.useContext(sn),{prompt:i}=nS(),{confirm:o}=u0(),{apiActions:a,reducer:[s,c]}=h.useContext(hn),{deleteFiles:l,renameFiles:u,downloadAsZip:d,archivateFiles:f,deleteDirectory:p}=a,{renameFolder:g}=xM(),m=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 T=await i(r.enterNewFolderName,{input:"input"});T!==null&&g(s.activeFolder,T)},[r.enterNewFolderName,i,g,s.activeFolder]),w=h.useCallback(async()=>{if(s.activeFolder==="root")return;const T=await i(r.enterNewFileName,{input:"input"});T!==null&&u(T)},[r.enterNewFileName,i,u,s.activeFolder]),_=h.useMemo(()=>s.activeFolder==="root",[s.activeFolder]),C=h.useMemo(()=>{var T;return s.activeFolder==="root"?!1:((T=s.foldersMap.get(s.activeFolder))==null?void 0:T.onlyRead)??!1},[s.activeFolder,s.foldersMap]),y=h.useMemo(()=>s.markedFiles.every(T=>{var O;return((O=s.constantFiles.find(S=>S.id===T))==null?void 0:O.archive)===!1}),[s.constantFiles,s.markedFiles]),$=h.useMemo(()=>s.markedFiles.every(T=>{var O;return((O=s.constantFiles.find(S=>S.id===T))==null?void 0:O.archive)===!0}),[s.constantFiles,s.markedFiles]);return b.jsx("div",{className:de(e,Pm.wrapper,s.state==="folder-choosing"?"ignore-dim":void 0,"d-flex justify-content-between"),children:s.state!=="folder-choosing"?b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:Pm.divButtons,children:[b.jsx(e0e,{entityId:t,entityType:n,disabled:C,children:r.uploadFiles}),b.jsx(jr,{onClick:()=>{c({type:"open-modal",modalType:"create-folder",chosenFolderId:s.activeFolder??"root"})},disabled:C,children:r.createFolder}),b.jsx(jr,{disabled:s.activeFolder==="root"||((E=s.foldersMap.get(s.activeFolder))==null?void 0:E.isDefault),onClick:async()=>{var O;await o(`${r.deleteFolder} ${(O=s.foldersMap.get(s.activeFolder))==null?void 0:O.name}?`)&&p(s.activeFolder)},children:r.deleteFolder}),b.jsx(jr,{disabled:s.activeFolder==="root"||((k=s.foldersMap.get(s.activeFolder))==null?void 0:k.isDefault),onClick:x,children:r.renameFolder})]}),!_&&!C?b.jsxs("div",{className:Pm.divButtons,children:[b.jsx(jr,{onClick:()=>{c({type:"open-modal",modalType:"edit-file-properties"})},disabled:!v,children:r.editFileProperties}),b.jsx(jr,{onClick:async()=>{await o(r.confirmDeleteFile(s.markedFiles.length))&&l(s.markedFiles)},disabled:m,children:r.delete}),$?b.jsx(jr,{onClick:async()=>{await o(r.confirmDearchiveFile(s.markedFiles.length))&&await f(!0)},disabled:m,children:r.dearchivate}):b.jsx(jr,{onClick:async()=>{await o(r.confirmArchiveFile(s.markedFiles.length))&&await f()},disabled:m||!y,children:r.archivate}),b.jsx(jr,{onClick:w,disabled:m,children:r.rename}),b.jsx(jr,{onClick:d,disabled:m,children:r.downloadZip})]}):null]}):s.state==="folder-choosing"?b.jsx(b.Fragment,{children:b.jsx(jr,{onClick:()=>c({type:"return-from-folder-choosing"}),className:de("ignore-dim","body-background-color"),children:r.back})}):void 0})},n0e=({file:e})=>{const{confirm:t}=u0(),{reducer:[n],apiActions:{downloadFile:r}}=h.useContext(hn),{texts:{documents:i}}=h.useContext(sn),o=h.useCallback(async()=>{await t(i.confirmFileDownload(e.name,e.size==null?void 0:Ua(e.size*1024*1024)))&&r(e.id)},[t,i,r,e.id,e.name,e.size]);return b.jsxs(Sf,{action:!0,onClick:o,children:[b.jsx(jn,{variant:"body",className:"text-muted",children:CM(e.folderId,n.foldersMap)}),b.jsxs("div",{className:"d-flex justify-content-between gap-2",children:[b.jsx(jn,{variant:"body",children:e.name}),b.jsx(jn,{variant:"body",children:e.size==null?null:Ua(e.size*1024*1024)})]})]})},r0e="_typeSelect_m3myk_1",i0e={typeSelect:r0e},o0e=()=>{const{reducer:[e]}=h.useContext(hn),{texts:{documents:t}}=h.useContext(sn),[n,r]=h.useState(""),[i,o]=h.useState(null),a=h.useMemo(()=>{const c=new Map;return e.filteredFiles.forEach(u=>{c.get(u.documentTypeId)===void 0&&c.set(u.documentTypeId,u.documentTypeName)}),[{id:null,name:t.all},...Array.from(c).map(u=>({id:u[0],name:u[1]}))]},[t.all,e.filteredFiles]),s=h.useMemo(()=>e.filteredFiles.filter(c=>r0(c.name,n)&&(i===null||c.documentTypeId===i)),[n,i,e.filteredFiles]);return b.jsxs("div",{className:"d-flex h-100 flex-column",children:[b.jsxs("div",{className:"d-flex gap-1 mb-1",children:[b.jsx(TE,{options:a,label:t.documentType,value:i,onChange:o,isNumber:!0,size:"sm",className:i0e.typeSelect}),b.jsx($E,{label:t.search,type:"text",value:n,onChange:c=>r(c===null?"":c),className:"flex-grow-1",size:"sm"})]}),b.jsx(O$,{className:"overflow-y-auto",children:s.map(c=>b.jsx(n0e,{file:c},c.id))})]})};function a0e(e){return{name:e.name,defaultDocType:e.defaultDocType,childrenIds:[],parentId:e.parentId??null,isDefault:e.isDefault,onlyRead:e.onlyRead}}function s0e(e){const t=[],n=new Map,r=new Map;return e.forEach(i=>{n.set(i.id,a0e(i)),i.parentId===null?t.push(i.id):r.set(i.id,i.parentId)}),r.forEach((i,o)=>{const a=n.get(i);if(a===void 0)throw new Error(`Did not get folder with ID ${i}, which is supposed to be parent directory of folder with ID ${o}`);a.childrenIds.push(o)}),{dirsMap:n,rootIds:t}}function aC(e,t){const n=t.toUpperCase();return e.filter(r=>{var o;const i=(o=r.name)==null?void 0:o.toUpperCase();return i==null?void 0:i.includes(n)})}function c0e(e,t){return e.map(n=>{var r;return{...n,folderName:((r=t.get(n.folderId))==null?void 0:r.name)??""}})}const l0e=([e,t],n,r)=>{const{texts:{documents:i}}=h.useContext(sn),{startLoading:o,stopLoading:a}=h.useContext(Tf),{addNotification:s}=Df(),c=If(),l=h.useCallback(async _=>{o("documentList");try{const y=(await c.get(`/documents/${n}/${r}`)).data,{dirsMap:$,rootIds:E}=s0e(y.folders),k=c0e(y.documents,$);t({type:"load-data",files:k,foldersMap:$,rootFolderIds:E,setActiveFolder:_})}finally{a("documentList")}},[c,t,r,n,o,a]);h.useEffect(()=>{l(!0)},[l]);const u=h.useCallback(async()=>{o("documents-types");try{const _=await c.get(`/documents/types/${n}`);if(_.status!==200)throw new Error(`Unexpected status code: ${_.status}`);t({type:"load-document-types",documentTypes:_.data})}finally{a("documents-types")}},[c,t,n,o,a]);h.useEffect(()=>{u()},[u]);const d=h.useCallback(async(_,C)=>{const y=C??e.markedFiles;o("documentsMove");try{await c.put(`/documents/move-to-folder?folderId=${_}`,y),t({type:"update-files",fileIds:y,newProperties:{folderId:_}}),s(i.fileMoveSuccessful(y.length,e.foldersMap.get(_).name),"success")}finally{a("documentsMove")}},[e.markedFiles,e.foldersMap,o,c,t,s,i,a]),f=h.useCallback(async _=>{const C=_??e.markedFiles;o("documentsFilesDelete");try{const y=await c.delete(`/documents/delete?${ig(C,"documentIds")}`);if(y.status!==200)throw new Error(`Unexpected status code: ${y.status}`);t({type:"delete-files",fileIds:C}),s(i.fileDeleteSuccessful(C.length),"success")}finally{a("documentsFilesDelete")}},[e.markedFiles,o,c,t,s,i,a]),p=h.useCallback(async _=>{var C;if(!(_==="root"||(C=e.foldersMap.get(_))!=null&&C.isDefault)){o("documentsFolderDelete");try{const y=await c.delete(`/documents/folder/${_}`);if(y.status!==200)throw new Error(`Unexpected status code: ${y.status}`);t({type:"delete-folder",folderId:_}),s(i.folderDeleteSuccessful(e.foldersMap.get(_).name),"success")}finally{a("documentsFolderDelete")}}},[e.foldersMap,o,c,t,s,i,a]),g=h.useCallback(async _=>{o("documentsRename");try{const C=await c.put("/documents/update-name",{documentIds:e.markedFiles,name:_});if(C.status!==200)throw new Error(`Unexpected status code: ${C.status}`);l()}finally{a("documentsRename")}},[o,c,e.markedFiles,l,a]),m=h.useCallback(async _=>{o("documents-archivate");try{const C=await c.put(`/documents/${_?"dearchive":"archive"}`,e.markedFiles);if(C.status!==200)throw new Error(`Unexpected status code: ${C.status}`);t({type:"update-files",fileIds:e.markedFiles,newProperties:{archive:!_}}),s((_?i.dearchivateSuccessful:i.archivateSuccessful)(e.markedFiles.length),"success")}finally{a("documents-archivate")}},[o,c,e.markedFiles,t,s,i.archivateSuccessful,i.dearchivateSuccessful,a]),v=h.useCallback(async()=>{var C;if(e.activeFolder==="root")return;const _=e.markedFiles.length;s(i.downloadAsZip(_),"info"),o("documents-ZIP_download");try{const y=await c.get(`/documents/download-zip?${ig(e.markedFiles,"documentIds")}`,{responseType:"blob"});md(y.data,(((C=e.foldersMap.get(e.activeFolder))==null?void 0:C.name)??"")+"_files")}finally{a("documents-ZIP_download")}},[e.activeFolder,e.markedFiles,e.foldersMap,s,i,o,c,a]),x=h.useCallback(async(_,C)=>{s(i.downloadingFile,"info"),o("documents-downloading_file");try{const y=await c.get(`/documents/${_}?isSmall=true`,{responseType:"blob"}),$=e.constantFiles.find(k=>k.id===_),E=`${($==null?void 0:$.name)??_.toString()}.${$!=null&&$.fileExtension?$==null?void 0:$.fileExtension.toLowerCase():"unknown"}`;md(y.data,E,C)}finally{a("documents-downloading_file")}},[s,i.downloadingFile,o,c,e.constantFiles,a]),w=h.useCallback(async(_,C)=>{o("documents-upload"),s(i.uploadingDocuments,"info");try{await c.postForm("/documents/upload",{files:_,...C}),await l()}finally{a("documents-upload")}},[o,s,i.uploadingDocuments,c,l,a]);return{loadDocuments:l,moveDocuments:d,deleteFiles:f,deleteDirectory:p,renameFiles:g,archivateFiles:m,downloadAsZip:v,downloadFile:x,uploadFiles:w}},u0e=(e,t)=>{var n,r;switch(t.type){case"load-data":{const i={...e,constantFiles:t.files,filteredFiles:aC(t.files,e.searchString),foldersMap:t.foldersMap,rootFolderIds:t.rootFolderIds};if(t.setActiveFolder){const o=t.rootFolderIds.find(a=>t.files.some(s=>s.archive===!1&&s.folderId===a))??"root";i.activeFolder=o}return i}case"load-document-types":return{...e,documentTypes:t.documentTypes};case"select-folder":return{...e,activeFolder:t.folderId,markedFiles:[]};case"mark-file":{const i=e.markedFiles.includes(t.fileId)?[...e.markedFiles.filter(o=>o!==t.fileId)]:[...e.markedFiles,t.fileId];return{...e,state:i.length>0?"selection-file":"explorer",markedFiles:i}}case"mark-files-by-action":{const i=typeof t.setStateAction=="function"?t.setStateAction(e.markedFiles):t.setStateAction;return{...e,state:i.length>0?"selection-file":"explorer",markedFiles:i}}case"mark-all-files":return e.markedFiles.length<e.filteredFiles.filter(i=>i.folderId===e.activeFolder).length?{...e,markedFiles:e.filteredFiles.filter(i=>i.folderId===e.activeFolder).map(i=>i.id),state:"explorer"}:{...e,markedFiles:[],state:"explorer"};case"enter-folder-choosing":return e.state==="folder-choosing"||e.state==="openned-modal"?e:{...e,state:"folder-choosing",canTargetRoot:t.canTargetRoot??!1,previousState:e.state,choosingType:t.choosingType};case"return-from-folder-choosing":return e.state!=="folder-choosing"?e:{...e,state:e.previousState};case"update-files":return{...e,filteredFiles:[...e.filteredFiles.map(i=>t.fileIds.includes(i.id)?{...i,...t.newProperties}:i)],constantFiles:[...e.constantFiles.map(i=>t.fileIds.includes(i.id)?{...i,...t.newProperties}:i)],markedFiles:[],state:"explorer"};case"update-folders":{const i=new Map(e.foldersMap);return t.folderIds.forEach(o=>{i.set(o,{...e.foldersMap.get(o),...t.newProperties})}),{...e,foldersMap:i}}case"delete-files":return{...e,filteredFiles:[...e.filteredFiles.filter(i=>!t.fileIds.includes(i.id))],constantFiles:[...e.constantFiles.filter(i=>!t.fileIds.includes(i.id))],markedFiles:e.markedFiles.filter(i=>!t.fileIds.includes(i)),state:"explorer"};case"open-modal":switch(t.modalType){case"create-folder":return{...e,state:"openned-modal",modalType:t.modalType,chosenFolderId:t.chosenFolderId};default:return{...e,state:"openned-modal",modalType:t.modalType}}case"close-modal":return{...e,state:"explorer"};case"delete-folder":{const i=new Map(e.foldersMap),o=(n=i.get(t.folderId))==null?void 0:n.parentId;let a=[...e.rootFolderIds];if(o){const s=JSON.parse(JSON.stringify(i.get(o)));s.childrenIds=s.childrenIds.filter(c=>c!==t.folderId),i.set(o,s)}else a=a.filter(s=>s!==t.folderId);return i.delete(t.folderId),{...e,rootFolderIds:a,foldersMap:i,activeFolder:"root"}}case"create-folder":{const i=new Map(e.foldersMap);i.set(t.folderId,{name:t.folderData.name,defaultDocType:(r=e.documentTypes.find(a=>a.id===t.folderData.documentTypeId))==null?void 0:r.name,childrenIds:[],parentId:t.folderData.parentFolderId,isDefault:!1,onlyRead:t.isOnlyRead});const o=[...e.rootFolderIds];if(t.folderData.parentFolderId===null)o.push(t.folderId);else{const a=i.get(t.folderData.parentFolderId),s=JSON.parse(JSON.stringify(a));s.childrenIds.push(t.folderId),i.set(t.folderData.parentFolderId,s)}return{...e,state:"explorer",rootFolderIds:o,foldersMap:i}}case"search-files":{const i=aC(e.constantFiles,t.searchString);return{...e,searchString:t.searchString,filteredFiles:i,markedFiles:e.markedFiles.filter(o=>i.map(a=>a.id).includes(o))}}default:throw new Error("Wrong action.type specified.")}},d0e=()=>{const e={state:"explorer",activeFolder:"root",searchString:"",filteredFiles:[],constantFiles:[],foldersMap:new Map,rootFolderIds:[],markedFiles:[],documentTypes:[]},[t,n]=h.useReducer(u0e,e);return[t,n]},f0e=h.memo(({entityType:e,entityId:t,className:n,BnfTableComponent:r,tableIdentifier:i,customRootFolderName:o,writePermissions:a=!0,...s})=>{const{isMobile:c}=kl(),{ProjectIconComponent:l,texts:{documents:u}}=h.useContext(sn),[d,f]=d0e(),[p,g]=h.useState(null),{loadDocuments:m,...v}=l0e([d,f],e,t),x=h.useMemo(()=>({entityId:t,entityType:e,apiActions:v,loadDocuments:m,reducer:[d,f]}),[t,e,v,m,d,f]),{getDropProps:w}=Ry();return c?b.jsx(hn.Provider,{value:x,children:b.jsx(o0e,{})}):b.jsx("div",{...s,className:de(go.wrapper,n),onDragOver:_=>{_.dataTransfer.dropEffect="none",_.stopPropagation(),_.preventDefault()},onDragEnter:_=>{_.dataTransfer.dropEffect="none",_.stopPropagation(),_.preventDefault()},children:b.jsxs(hn.Provider,{value:x,children:[b.jsx("div",{className:de(d.state==="folder-choosing"?"dim-others":void 0,go.explorerWindow),children:b.jsxs("ul",{className:go.folderList,children:[b.jsx(wve,{customText:o??e}),d.rootFolderIds.map(_=>b.jsx($M,{dirId:_,writePermissions:a},_))]})}),b.jsxs("div",{className:de(go.explorerWindow,go.fileList),...a&&Mve(d)?w(d.activeFolder,{onFilesDrop:_=>g(_),ignoreInner:!0}):{},children:[b.jsxs("div",{className:go.dndText,children:[b.jsx(l,{icon:"file-upload",iconProps:{style:{marginRight:0}}}),b.jsx("span",{children:u.dropToUpload})]}),b.jsx(Kve,{tableIdentifier:i,BnfTableComponent:r,writePermissions:a},(d.activeFolder==="root").toString())]}),a?b.jsx(t0e,{className:go.controls,entityType:e,entityId:t}):null,b.jsx(kve,{}),p!==null?b.jsx(Ay,{files:p,handleClose:()=>g(null),targetFolderId:d.activeFolder==="root"?void 0:d.activeFolder}):null]})})}),h0e=h.createContext(void 0);exports.AbstractModalHeader=I$;exports.Alert=x0;exports.ApprovalState=K8;exports.AuthContext=kf;exports.AvatarIcon=uE;exports.Backdrop=wE;exports.BaseModal=R$;exports.BootstrapModalManager=A$;exports.Button=Dv;exports.Col=Pv;exports.ConfirmContext=eS;exports.ContextButton=Bf;exports.CustomSelectInput=TE;exports.DelegationContext=cS;exports.Documents=f0e;exports.Dropdown=m0;exports.Dropdown$1=Wa;exports.DropdownDivider=bg;exports.DropdownItem=So;exports.DropdownToggle=p0;exports.ENTERED=Fi;exports.ENTERING=si;exports.EXITED=Di;exports.EXITING=id;exports.FaMinus=v9;exports.FaPlus=b9;exports.FaSearch=y9;exports.Fade=Ki;exports.FileExtensionIcon=SM;exports.FileUploadContextButton=TI;exports.FloatingLabelInput=Wf;exports.Form=Kr;exports.FormCheckInput=$f;exports.FormControl=b$;exports.FormDisabledContext=cE;exports.FormSelect=Yv;exports.FromToDatePickerDropdownToggle=w9;exports.HelmetContext=sE;exports.HookFormTextAreaInput=My;exports.HookFormTextInput=rs;exports.HtmlTooltip=fS;exports.IconButton=Ol;exports.Ie=G8;exports.InputAnchorContainer=CE;exports.InvalidFeedback=zf;exports.ListGroup=O$;exports.ListGroupItem=Sf;exports.LoadingContext=Tf;exports.LoginState=aS;exports.LuminusComponentsContext=sn;exports.MdCheck=Pj;exports.MdCircle=Ij;exports.MdClear=Cl;exports.MdOutlineAddCircleOutline=Vj;exports.MdOutlineArrowOutward=Lj;exports.MdOutlineCameraAlt=Zj;exports.MdOutlineChevronRight=e8;exports.MdOutlineClose=Q$;exports.MdOutlineDelete=Z$;exports.MdOutlineEdit=Xj;exports.MdOutlineExpand=Bj;exports.MdOutlineFileUpload=X$;exports.MdOutlineKeyboardArrowLeft=Yj;exports.MdOutlineKeyboardArrowRight=Gj;exports.MdOutlineKeyboardDoubleArrowLeft=Kj;exports.MdOutlineMenu=t8;exports.MdOutlinePhotoLibrary=Qj;exports.MdOutlineStar=i8;exports.MdOutlineSubdirectoryArrowRight=r8;exports.MdSave=Dj;exports.MdSaveAs=Nj;exports.MdSearch=jj;exports.MiniDetailWrapper=EE;exports.Modal=Wn;exports.ModalContext=Xv;exports.NoInputContainer=_E;exports.Oe=K;exports.PageContainer=Pce;exports.PrimaryButton=Vo;exports.PromptContext=tS;exports.Re=Sce;exports.ResponsiveContextDropdown=xE;exports.ResponsiveContextDropdownItem=b0;exports.RowLabelInput=Ml;exports.ShortcutLinksContext=h0e;exports.SideContentBar=xO;exports.SimpleDropdownToggle=h0;exports.SimplePicker=fE;exports.SimpleTooltip=n0;exports.Spinner=e0;exports.TextInput=$E;exports.TransitionWrapper=TC;exports.Typography=jn;exports.UserAvatarToggle=FI;exports.UserContext=sS;exports._=tte;exports._extends=rd;exports._inheritsLoose=yC;exports._objectWithoutPropertiesLoose=Sv;exports.a=dE;exports.addLeadingZeros=Pt;exports.atobUtf8=pS;exports.axios=tn;exports.buildEmployeeNameString=f7;exports.buildOrgUnitString=h7;exports.buildVehicleNameString=d7;exports.cancelToken=bD;exports.capitalizeFirstLetter=u7;exports.classNames=de;exports.classes=lE;exports.compareDate=g7;exports.compareDateTime=v7;exports.constructFrom=mi;exports.context=_f;exports.differenceInCalendarDays=hC;exports.divWithClassName=Mv;exports.extractErrorsFromResponse=t0;exports.extractFilename=bS;exports.extractPermissionsFromResponse=dS;exports.fixNameIdNulls=lS;exports.format=$v;exports.formatDate=c7;exports.formatDateTime=l7;exports.formatFileSize=Ua;exports.getDateString=C7;exports.getDaysDifference=b7;exports.getDefaultExportFromCjs=rn;exports.getFirstDayOfMonth=gS;exports.getFirstDayOfOffsetMonth=y7;exports.getFirstDayOfYear=w7;exports.getLastDayOfMonth=vS;exports.getLastDayOfOffsetMonth=x7;exports.getLastDayOfYear=_7;exports.getSharedManager=j$;exports.getTimezoneOffsetInMilliseconds=Bm;exports.hasOnlyNullValues=uS;exports.hookFormSetServerErrors=X8;exports.invariant=zm;exports.isExtensionOpenable=xS;exports.isFileOpenable=yS;exports.isISODate=mS;exports.isPast=gC;exports.isPrimitive=pd;exports.isValidDate=m7;exports.joinStrings=Mc;exports.jsxRuntimeExports=b;exports.millisecondsInHour=ff;exports.millisecondsInMinute=_v;exports.millisecondsInWeek=wv;exports.msToStartOfNextDay=p7;exports.parseISO=pf;exports.pe=Cie;exports.replaceNullValuesOnlyObjectsWithNulls=Z8;exports.requireReactIs=Tv;exports.saveFile=md;exports.saveFileFromResponse=E7;exports.secondsInDay=Cv;exports.secondsInHour=cC;exports.secondsInMinute=e6;exports.secondsInMonth=uC;exports.secondsInQuarter=n6;exports.secondsInWeek=t6;exports.secondsInYear=lC;exports.shortenText=s7;exports.startOfDay=Fm;exports.startOfWeek=Ia;exports.stringContains=og;exports.stringSearchWithin=r0;exports.stringStartsWith=wS;exports.style=Yi;exports.t=hp;exports.toDate=Ln;exports.transitionEndListener=SC;exports.triggerBrowserReflow=EC;exports.trimIsoDate=Of;exports.truncateText=hS;exports.u=vM;exports.urlfyArray=ig;exports.useAuth=qS;exports.useAxios=If;exports.useBootstrapBreakpoints=xC;exports.useBootstrapMinBreakpoint=wC;exports.useBootstrapPrefix=pt;exports.useClickOutside=rE;exports.useClipboard=aE;exports.useCol=IC;exports.useConfirm=u0;exports.useCookies=l0;exports.useEventCallback=en;exports.useFormControlType=f0;exports.useFormDisabledContext=Ff;exports.useIsomorphicEffect=Sc;exports.useKeyPress=oE;exports.useNotifications=Df;exports.usePermissions=iE;exports.usePrompt=nS;exports.useSwipeable=y0;exports.useWindowSize=kl;exports.useZodSchemaTypes=Lf;exports.z=vn;